CreateServiceW method
Pointer<SC_HANDLE__>
CreateServiceW(
- Pointer<
SC_HANDLE__> hSCManager, - Pointer<
Uint16> lpServiceName, - Pointer<
Uint16> lpDisplayName, - int dwDesiredAccess,
- int dwServiceType,
- int dwStartType,
- int dwErrorControl,
- Pointer<
Uint16> lpBinaryPathName, - Pointer<
Uint16> lpLoadOrderGroup, - Pointer<
Uint64> lpdwTagId, - Pointer<
Uint16> lpDependencies, - Pointer<
Uint16> lpServiceStartName, - 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,
);
}