CreateServiceA method
Pointer<SC_HANDLE__>
CreateServiceA(
- Pointer<
SC_HANDLE__> hSCManager, - Pointer<
Int8> lpServiceName, - Pointer<
Int8> lpDisplayName, - int dwDesiredAccess,
- int dwServiceType,
- int dwStartType,
- int dwErrorControl,
- Pointer<
Int8> lpBinaryPathName, - Pointer<
Int8> lpLoadOrderGroup, - Pointer<
Uint64> lpdwTagId, - Pointer<
Int8> lpDependencies, - Pointer<
Int8> lpServiceStartName, - Pointer<
Int8> lpPassword,
Implementation
ffi.Pointer<SC_HANDLE__> CreateServiceA(
ffi.Pointer<SC_HANDLE__> hSCManager,
ffi.Pointer<ffi.Int8> lpServiceName,
ffi.Pointer<ffi.Int8> lpDisplayName,
int dwDesiredAccess,
int dwServiceType,
int dwStartType,
int dwErrorControl,
ffi.Pointer<ffi.Int8> lpBinaryPathName,
ffi.Pointer<ffi.Int8> lpLoadOrderGroup,
ffi.Pointer<ffi.Uint64> lpdwTagId,
ffi.Pointer<ffi.Int8> lpDependencies,
ffi.Pointer<ffi.Int8> lpServiceStartName,
ffi.Pointer<ffi.Int8> lpPassword,
) {
return (_CreateServiceA ??=
_dylib.lookupFunction<_c_CreateServiceA, _dart_CreateServiceA>(
'CreateServiceA'))(
hSCManager,
lpServiceName,
lpDisplayName,
dwDesiredAccess,
dwServiceType,
dwStartType,
dwErrorControl,
lpBinaryPathName,
lpLoadOrderGroup,
lpdwTagId,
lpDependencies,
lpServiceStartName,
lpPassword,
);
}