QueryServiceObjectSecurity method

int QueryServiceObjectSecurity(
  1. Pointer<SC_HANDLE__> hService,
  2. int dwSecurityInformation,
  3. Pointer<Void> lpSecurityDescriptor,
  4. int cbBufSize,
  5. Pointer<Uint64> pcbBytesNeeded,
)

Implementation

int QueryServiceObjectSecurity(
  ffi.Pointer<SC_HANDLE__> hService,
  int dwSecurityInformation,
  ffi.Pointer<ffi.Void> lpSecurityDescriptor,
  int cbBufSize,
  ffi.Pointer<ffi.Uint64> pcbBytesNeeded,
) {
  return (_QueryServiceObjectSecurity ??= _dylib.lookupFunction<
      _c_QueryServiceObjectSecurity,
      _dart_QueryServiceObjectSecurity>('QueryServiceObjectSecurity'))(
    hService,
    dwSecurityInformation,
    lpSecurityDescriptor,
    cbBufSize,
    pcbBytesNeeded,
  );
}