Click or drag to resize
Xcalibur Systems LLC Logo

ServiceHelperQueryServiceConfig2 Method

Retrieves the optional configuration parameters of the specified service.

QueryServiceConfig2 function


Namespace: Xcalibur.NativeMethods.V2.Services
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("advapi32.dll", CharSet = CharSet.Unicode)]
public static bool QueryServiceConfig2(
	IntPtr serviceHandle,
	ServiceInfoLevel infoLevel,
	IntPtr buffer,
	uint bufferSize,
	ref uint bytesNeeded
)

Parameters

serviceHandle  IntPtr
A handle to the service. This handle is returned by the or function, and it must have the access right.
infoLevel  ServiceInfoLevel
The configuration information to be queried.
buffer  IntPtr
A pointer to the buffer that receives the service configuration information. The format of this data depends on the value of the infoLevel parameter.
bufferSize  UInt32
The size of the structure pointed to by the buffer parameter, in bytes.
bytesNeeded  UInt32
A pointer to a variable that receives the number of bytes required to store the configuration information, if the function fails with .

Return Value

Boolean
See Also