FileEncryptionStatus function Null safety advapi32

int FileEncryptionStatus(
  1. Pointer<Utf16> lpFileName,
  2. Pointer<Uint32> lpStatus
)

Retrieves the encryption status of the specified file.

BOOL FileEncryptionStatusW(
  LPCWSTR lpFileName,
  LPDWORD lpStatus
);

Implementation

int FileEncryptionStatus(Pointer<Utf16> lpFileName, Pointer<Uint32> lpStatus) {
  final _FileEncryptionStatus = _advapi32.lookupFunction<
      Int32 Function(Pointer<Utf16> lpFileName, Pointer<Uint32> lpStatus),
      int Function(Pointer<Utf16> lpFileName,
          Pointer<Uint32> lpStatus)>('FileEncryptionStatusW');
  return _FileEncryptionStatus(lpFileName, lpStatus);
}