GetServiceDisplayNameW method

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

Implementation

int GetServiceDisplayNameW(
  ffi.Pointer<SC_HANDLE__> hSCManager,
  ffi.Pointer<ffi.Uint16> lpServiceName,
  ffi.Pointer<ffi.Uint16> lpDisplayName,
  ffi.Pointer<ffi.Uint64> lpcchBuffer,
) {
  return (_GetServiceDisplayNameW ??= _dylib.lookupFunction<
      _c_GetServiceDisplayNameW,
      _dart_GetServiceDisplayNameW>('GetServiceDisplayNameW'))(
    hSCManager,
    lpServiceName,
    lpDisplayName,
    lpcchBuffer,
  );
}