GetFileSecurityW method

int GetFileSecurityW(
  1. Pointer<Uint16> lpFileName,
  2. int RequestedInformation,
  3. Pointer<Void> pSecurityDescriptor,
  4. int nLength,
  5. Pointer<Uint64> lpnLengthNeeded,
)

Implementation

int GetFileSecurityW(
  ffi.Pointer<ffi.Uint16> lpFileName,
  int RequestedInformation,
  ffi.Pointer<ffi.Void> pSecurityDescriptor,
  int nLength,
  ffi.Pointer<ffi.Uint64> lpnLengthNeeded,
) {
  return (_GetFileSecurityW ??=
      _dylib.lookupFunction<_c_GetFileSecurityW, _dart_GetFileSecurityW>(
          'GetFileSecurityW'))(
    lpFileName,
    RequestedInformation,
    pSecurityDescriptor,
    nLength,
    lpnLengthNeeded,
  );
}