StartService function advapi32

Win32Result<bool> StartService(
  1. SC_HANDLE hService,
  2. int dwNumServiceArgs,
  3. Pointer<Pointer<Utf16>>? lpServiceArgVectors
)

Implementation

Win32Result<bool> StartService(
  SC_HANDLE hService,
  int dwNumServiceArgs,
  Pointer<Pointer<Utf16>>? lpServiceArgVectors,
) {
  resolveGetLastError();
  final result_ = _StartService(
    hService,
    dwNumServiceArgs,
    lpServiceArgVectors ?? nullptr,
  );
  return .new(value: result_ != FALSE, error: GetLastError());
}