|
ServiceHelperQueryServiceConfig2 Method |
Namespace: Xcalibur.NativeMethods.V2.ServicesAssembly: 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
)
<DllImportAttribute("advapi32.dll", CharSet := CharSet.Unicode>]
Public Shared Function QueryServiceConfig2 (
serviceHandle As IntPtr,
infoLevel As ServiceInfoLevel,
buffer As IntPtr,
bufferSize As UInteger,
ByRef bytesNeeded As UInteger
) As Boolean
public:
[DllImportAttribute(L"advapi32.dll", CharSet = CharSet::Unicode)]
static bool QueryServiceConfig2(
IntPtr serviceHandle,
ServiceInfoLevel infoLevel,
IntPtr buffer,
unsigned int bufferSize,
unsigned int% bytesNeeded
)
[<DllImportAttribute("advapi32.dll", CharSet = CharSet.Unicode)>]
static member QueryServiceConfig2 :
serviceHandle : IntPtr *
infoLevel : ServiceInfoLevel *
buffer : IntPtr *
bufferSize : uint32 *
bytesNeeded : uint32 byref -> bool
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
BooleanSee Also Reference
CreateService(IntPtr, String, String, UInt32, ServiceTypes, ServiceStartTypes, ServiceErrors, String, String, String, String, String, String)