CreateServiceW method

Pointer<SC_HANDLE__> CreateServiceW(
  1. Pointer<SC_HANDLE__> hSCManager,
  2. Pointer<Uint16> lpServiceName,
  3. Pointer<Uint16> lpDisplayName,
  4. int dwDesiredAccess,
  5. int dwServiceType,
  6. int dwStartType,
  7. int dwErrorControl,
  8. Pointer<Uint16> lpBinaryPathName,
  9. Pointer<Uint16> lpLoadOrderGroup,
  10. Pointer<Uint64> lpdwTagId,
  11. Pointer<Uint16> lpDependencies,
  12. Pointer<Uint16> lpServiceStartName,
  13. Pointer<Uint16> lpPassword,
)

Implementation

ffi.Pointer<SC_HANDLE__> CreateServiceW(
  ffi.Pointer<SC_HANDLE__> hSCManager,
  ffi.Pointer<ffi.Uint16> lpServiceName,
  ffi.Pointer<ffi.Uint16> lpDisplayName,
  int dwDesiredAccess,
  int dwServiceType,
  int dwStartType,
  int dwErrorControl,
  ffi.Pointer<ffi.Uint16> lpBinaryPathName,
  ffi.Pointer<ffi.Uint16> lpLoadOrderGroup,
  ffi.Pointer<ffi.Uint64> lpdwTagId,
  ffi.Pointer<ffi.Uint16> lpDependencies,
  ffi.Pointer<ffi.Uint16> lpServiceStartName,
  ffi.Pointer<ffi.Uint16> lpPassword,
) {
  return (_CreateServiceW ??=
      _dylib.lookupFunction<_c_CreateServiceW, _dart_CreateServiceW>(
          'CreateServiceW'))(
    hSCManager,
    lpServiceName,
    lpDisplayName,
    dwDesiredAccess,
    dwServiceType,
    dwStartType,
    dwErrorControl,
    lpBinaryPathName,
    lpLoadOrderGroup,
    lpdwTagId,
    lpDependencies,
    lpServiceStartName,
    lpPassword,
  );
}