GetServiceKeyNameW method

int GetServiceKeyNameW(
  1. Pointer<SC_HANDLE__> hSCManager,
  2. Pointer<Uint16> lpDisplayName,
  3. Pointer<Uint16> lpServiceName,
  4. Pointer<Uint64> lpcchBuffer,
)

Implementation

int GetServiceKeyNameW(
  ffi.Pointer<SC_HANDLE__> hSCManager,
  ffi.Pointer<ffi.Uint16> lpDisplayName,
  ffi.Pointer<ffi.Uint16> lpServiceName,
  ffi.Pointer<ffi.Uint64> lpcchBuffer,
) {
  return (_GetServiceKeyNameW ??=
      _dylib.lookupFunction<_c_GetServiceKeyNameW, _dart_GetServiceKeyNameW>(
          'GetServiceKeyNameW'))(
    hSCManager,
    lpDisplayName,
    lpServiceName,
    lpcchBuffer,
  );
}