The following is my function in VB. The whole thing...
Dim lpszBinaryPathName As String, lpServiceName As String, _
lpDisplayName As String
Dim schService As Long ' Handle to CreateService function
Dim schOpenSCM As Long ' Handle to Service Control Manager
lpszBinaryPathName =...
Below is the Function I call from the API. This I got from Microsoft's web site, from the API Viewer in Visual Basic and from Dan Appleman's book.
Declare Function CreateService _
Lib "advapi32.dll" Alias "CreateServiceA" _
(ByVal hSCManager As Long, _
ByVal...
I am trying to install and run a service using Visual Basic 6. I receive a handle to the SCM after executing the function OpenSCManager. I then try to install the service by using the function CreateService. At this point the program returns a 0 to indicate that it has an error and has not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.