OpenSCManagerW method

Pointer<SC_HANDLE__> OpenSCManagerW(
  1. Pointer<Uint16> lpMachineName,
  2. Pointer<Uint16> lpDatabaseName,
  3. int dwDesiredAccess
)

Implementation

ffi.Pointer<SC_HANDLE__> OpenSCManagerW(
  ffi.Pointer<ffi.Uint16> lpMachineName,
  ffi.Pointer<ffi.Uint16> lpDatabaseName,
  int dwDesiredAccess,
) {
  return (_OpenSCManagerW ??=
      _dylib.lookupFunction<_c_OpenSCManagerW, _dart_OpenSCManagerW>(
          'OpenSCManagerW'))(
    lpMachineName,
    lpDatabaseName,
    dwDesiredAccess,
  );
}