|
-
Jun 8th, 2001, 03:52 AM
#1
Thread Starter
Addicted Member
is "ANYONE" any good with services
I am officialy almost stuck. lol,
Option Explicit
Public iOpenScManagerResult As Long
Public iOpenService As Long
Public iGetServiceKeyNameResult As Long
Public iLockServiceDatabaseResult As Long
Public iUnlockServiceDatabaseResult As Long
Public slpMachineName As String
Public slpDatabaseName As String
Public sServiceName As String
Public slpServiceName As String
Public srServiceName As String
Public iLenServiceName As Long
Private Sub Form_Load()
sServiceName = "Dr Solomon's Task Manager" & Null
'get service control number
iOpenScManagerResult = OpenSCManager(slpMachineName, slpDatabaseName, SC_MANAGER_ALL_ACCESS)
'lock service control database so that it can be modified
iLockServiceDatabaseResult = LockServiceDatabase(iOpenScManagerResult)
iGetServiceKeyNameResult = GetServiceKeyName(iOpenScManagerResult, sServiceName, srServiceName, iLenServiceName)
MsgBox srServiceName
iOpenService = OpenService(iOpenScManagerResult, srServiceName, SERVICE_ALL_ACCESS)
're-open service control database
iUnlockServiceDatabaseResult = UnlockServiceDatabase(iLockServiceDatabaseResult)
End Sub
Due to the energy crisis, the light at the end of the tunnel has been turned off.
Sorry for any inconvenience this may cause
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|