Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using advapi32.dll to install a service
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01155465
Message ID:
01155530
Views:
22
Not exactly a sharing, but the WMI version of this code is free:

Encapsulating access to the Windows Services in a class
http://www.news2news.com/vfp/?example=476

API functions used:
CloseServiceHandle
ControlService
EnumServicesStatus
GetLastError
LocalAlloc
LocalFree
LockServiceDatabase
OpenSCManager
OpenService
StartService
UnlockServiceDatabase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform