LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop/start NT services from CVI?

I would like to manage a NT Service from CVI application has anyone tried this ?
Maybe i must use SDK but are there a command line program capable of above ??
0 Kudos
Message 1 of 2
(2,889 Views)
Hello Peter,
You are correct in assuming that CVI does not provide functions for starting and stopping services. The two common ways of handling this are to use the command-line "net" program ("net start " for example) or the Microsoft Platform SDK function StartService(). Please see http://www.msdn.microsoft.com >> Platform SDK >> Base Services >> DLLs, Processes, and Threads >> Services >> Service Functions for further information on programmatically controlling services.

Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,889 Views)