DecryptFile function Null safety advapi32

int DecryptFile (
  1. Pointer<Utf16> lpFileName,
  2. int dwReserved
)

Decrypts an encrypted file or directory.

BOOL DecryptFileW(
  LPCWSTR lpFileName,
  DWORD   dwReserved
);

Implementation

int DecryptFile(Pointer<Utf16> lpFileName, int dwReserved) {
  final _DecryptFile = _advapi32.lookupFunction<
      Int32 Function(Pointer<Utf16> lpFileName, Uint32 dwReserved),
      int Function(Pointer<Utf16> lpFileName, int dwReserved)>('DecryptFileW');
  return _DecryptFile(lpFileName, dwReserved);
}