Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using advapi32.dll to install a service
Message
 
To
20/09/2006 15:18:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01155465
Message ID:
01155732
Views:
33
Frank,

OK, let me start again :)

I've never created a service, but to get you started you can do something like:
loLocator		= CREATEOBJECT('WBEMScripting.SWBEMLocator')
loWMI			= loLocator.ConnectServer()
loServiceM		= loWMI.Get('Win32_Service')
lnResult		= loServiceM.Create({Parameter List})
Where {Parameter List} you can read from here http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/create_method_in_class_win32_service.asp hopefully you won't need the last two :)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform