Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Mountie

    CreateService in Visual Basic

    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 =...
  2. Mountie

    CreateService in Visual Basic

    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...
  3. Mountie

    CreateService in Visual Basic

    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...

Part and Inventory Search

Back
Top