Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "EnumDependentServices" in [All]

advapi32

.

    /// Required to call the EnumDependentServices function to enumerate all

.

    /// Required to call the EnumDependentServices function to enumerate all

.

    ''' Required to call the EnumDependentServices function to enumerate all

.

    ''' Required to call the EnumDependentServices function to enumerate all

.
Summary
The EnumDependentServices function retrieves the name and status of each service that depends on the specified service; that is, the specified service must be running before the dependent services can run.
.

[DllImport("advapi32.dll", EntryPoint="EnumDependentServicesW", ExactSpelling=true, SetLastError=true)]

.

static extern bool EnumDependentServices( IntPtr hService,

.

Declare Function EnumDependentServices Lib "advapi32.dll" (TODO) As TODO

.

             if ( !EnumDependentServices( hService,

.

             if ( !EnumDependentServices( hService,

.

                 Debug.WriteLine("EnumDependentServices Failed " + Marshal.GetLastWin32Error() );

.
Documentation
[EnumDependentServices] on MSDN
.

Unless you are going use EnumDependentServices API please use 'System.ServiceProcess.ServiceController' that is provided in the framework.

Structures

.
Summary
The ENUM_SERVICE_STATUS structure is used by the EnumDependentServices and EnumServicesStatus functions to return the name of a service in a service control manager database and to return information about that service.
.
Summary
The SERVICE_STATUS structure contains information about a service. The ControlService, EnumDependentServices, EnumServicesStatus, and QueryServiceStatus functions use this structure to return information about a service. A service uses this structure in the SetServiceStatus function to report its current status to the service control manager.
.

See EnumServicesStatus and EnumDependentServices.


 
Access PInvoke.net directly from VS: