Desktop Functions: Smart Device Functions:
|
OpenSCManager (advapi32)
C# Signature:
[DllImport("advapi32.dll", SetLastError=true)] VB Signature:
<DllImport("advapi32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _ User-Defined Types:None. Notes:Tips & Tricks:Pass in Null/Nothing for MachineName to use the local machine. Pass in Null/nothing as the database name to use the default SERVICES_ACTIVE_DATABASE Sample Code:
Dim scHandle As IntPtr = OpenSCManager(Nothing, Nothing, 0) Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|