术语 | decryptfile |
释义 | DecryptFile 语法: C++ BOOL WINAPI DecryptFile( __in LPCTSTR lpFileName, __reserved DWORD dwReserved ); DecryptFile功能 解密加密的文件或目录。 参数 lpFileName [in] 该文件名或目录进行解密。 调用者必须有FILE_READ_DATA,FILE_WRITE_DATA,FILE_READ_ATTRIBUTES,FILE_WRITE_ATTRIBUTES和同步访问权限。有关更多信息,请参阅文件安全性和访问权限。 dwReserved 版权所有;必须为零。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 该DecryptFile函数需要独占访问的文件被解密,将失败的另一个进程正在使用的文件。如果该文件没有加密,DecryptFile只是返回一个非零值,这表明成功。 如果lpFileName指定一个只读文件,该函数失败并GetLastError返回ERROR_FILE_READ_ONLY。如果lpFileName指定目录,其中包含一个只读文件,成功的功能,但该目录不解密。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinBase.h(头文件:winuser.h) LibraryAdvapi32.lib DLLAdvapi32.dll Unicode和ANSI namesDecryptFileW(Unicode)和DecryptFileA(ANSI)的 参见 CreateFile EncryptFile的 文件加密 文件管理函数 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年9月3日 ==英文原文==DecryptFile Function Decrypts an encrypted file or directory. Syntax C++ BOOL WINAPI DecryptFile( __in LPCTSTR lpFileName, __reserved DWORD dwReserved ); Parameters lpFileName [in] The name of the file or directory to be decrypted. The caller must have the FILE_READ_DATA, FILE_WRITE_DATA, FILE_READ_ATTRIBUTES, FILE_WRITE_ATTRIBUTES, and SYNCHRONIZE access rights. For more information, see File Security and Access Rights . dwReserved Reserved; must be zero. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Remarks The DecryptFile function requires exclusive access to the file being decrypted, and will fail if another process is using the file. If the file is not encrypted, DecryptFile simply returns a nonzero value, which indicates success. If lpFileName specifies a read-only file, the function fails and GetLastError returns ERROR_FILE_READ_ONLY. If lpFileName specifies a directory that contains a read-only file, the functions succeeds but the directory is not decrypted. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinBase.h (include Windows.h) LibraryAdvapi32.lib DLLAdvapi32.dll Unicode and ANSI namesDecryptFileW (Unicode) and DecryptFileA (ANSI) See Also CreateFile EncryptFile File Encryption File Management Functions Send comments about this topic to Microsoft Build date: 9/3/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/aa363903(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。