GetServiceDirectory method

int GetServiceDirectory(
  1. Pointer<SERVICE_STATUS_HANDLE__> hServiceStatus,
  2. int eDirectoryType,
  3. Pointer<Uint16> lpPathBuffer,
  4. int cchPathBufferLength,
  5. Pointer<Uint64> lpcchRequiredBufferLength,
)

Implementation

int GetServiceDirectory(
  ffi.Pointer<SERVICE_STATUS_HANDLE__> hServiceStatus,
  int eDirectoryType,
  ffi.Pointer<ffi.Uint16> lpPathBuffer,
  int cchPathBufferLength,
  ffi.Pointer<ffi.Uint64> lpcchRequiredBufferLength,
) {
  return (_GetServiceDirectory ??= _dylib.lookupFunction<
      _c_GetServiceDirectory,
      _dart_GetServiceDirectory>('GetServiceDirectory'))(
    hServiceStatus,
    eDirectoryType,
    lpPathBuffer,
    cchPathBufferLength,
    lpcchRequiredBufferLength,
  );
}