CreateServiceA method

Pointer<SC_HANDLE__> CreateServiceA(
  1. Pointer<SC_HANDLE__> hSCManager,
  2. Pointer<Int8> lpServiceName,
  3. Pointer<Int8> lpDisplayName,
  4. int dwDesiredAccess,
  5. int dwServiceType,
  6. int dwStartType,
  7. int dwErrorControl,
  8. Pointer<Int8> lpBinaryPathName,
  9. Pointer<Int8> lpLoadOrderGroup,
  10. Pointer<Uint64> lpdwTagId,
  11. Pointer<Int8> lpDependencies,
  12. Pointer<Int8> lpServiceStartName,
  13. 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,
  );
}