OpenServiceW method

Pointer<SC_HANDLE__> OpenServiceW(
  1. Pointer<SC_HANDLE__> hSCManager,
  2. Pointer<Uint16> lpServiceName,
  3. int dwDesiredAccess
)

Implementation

ffi.Pointer<SC_HANDLE__> OpenServiceW(
  ffi.Pointer<SC_HANDLE__> hSCManager,
  ffi.Pointer<ffi.Uint16> lpServiceName,
  int dwDesiredAccess,
) {
  return (_OpenServiceW ??= _dylib
      .lookupFunction<_c_OpenServiceW, _dart_OpenServiceW>('OpenServiceW'))(
    hSCManager,
    lpServiceName,
    dwDesiredAccess,
  );
}