QueryServiceConfig function advapi32

int QueryServiceConfig(
  1. int hService,
  2. Pointer<QUERY_SERVICE_CONFIG> lpServiceConfig,
  3. int cbBufSize,
  4. Pointer<Uint32> pcbBytesNeeded,
)

Retrieves the configuration parameters of the specified service. Optional configuration parameters are available using the QueryServiceConfig2 function.

BOOL QueryServiceConfigW(
  [in]            SC_HANDLE               hService,
  [out, optional] LPQUERY_SERVICE_CONFIGW lpServiceConfig,
  [in]            DWORD                   cbBufSize,
  [out]           LPDWORD                 pcbBytesNeeded
);

Implementation

int QueryServiceConfig(
        int hService,
        Pointer<QUERY_SERVICE_CONFIG> lpServiceConfig,
        int cbBufSize,
        Pointer<Uint32> pcbBytesNeeded) =>
    _QueryServiceConfig(hService, lpServiceConfig, cbBufSize, pcbBytesNeeded);