网站首页  计算机词典

请输入您要查询的字词:

 

字词 encryptfile
释义 EncryptFile
语法:
C++
BOOL WINAPI EncryptFile(
__in LPCTSTR lpFileName
);
EncryptFile的功能
加密文件或目录。在一个文件中的所有数据流进行加密。在加密的目录中创建的所有新的文件被加密。
参数
lpFileName [in]
该文件名或目录进行加密。
调用者必须有FILE_READ_DATA,FILE_WRITE_DATA,FILE_READ_ATTRIBUTES,FILE_WRITE_ATTRIBUTES和同步访问权限。有关更多信息,请参阅文件安全性和访问权限。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在EncryptFile的函数需要独占访问的文件被加密,并会失败的另一个进程正在使用的文件。
如果该文件已经加密,EncryptFile的只是返回一个非零值,这表明成功。如果该文件被压缩,EncryptFile的加密前将它解压缩文件。
如果lpFileName指定一个只读文件,该函数失败并GetLastError返回ERROR_FILE_READ_ONLY。如果lpFileName指定目录,其中包含一个只读文件,成功的职能,但没有加密的目录。
解密加密的文件,请使用DecryptFile功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinBase.h(头文件:winuser.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
Unicode和ANSI namesEncryptFileW(Unicode)和EncryptFileA(ANSI)的
参见
DecryptFile
文件加密
文件管理函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==EncryptFile Function
Encrypts a file or directory. All data streams in a file are encrypted. All new files created in an encrypted directory are encrypted.
Syntax
C++
BOOL WINAPI EncryptFile(
__in LPCTSTR lpFileName
);
Parameters
lpFileName [in]
The name of the file or directory to be encrypted.
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 .
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 EncryptFile function requires exclusive access to the file being encrypted, and will fail if another process is using the file.
If the file is already encrypted, EncryptFile simply returns a nonzero value, which indicates success. If the file is compressed, EncryptFile will decompress the file before encrypting it.
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 encrypted.
To decrypt an encrypted file, use the DecryptFile function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinBase.h (include Windows.h)
LibraryAdvapi32.lib
DLLAdvapi32.dll
Unicode and ANSI namesEncryptFileW (Unicode) and EncryptFileA (ANSI)
See Also
DecryptFile
File Encryption
File Management Functions
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa364021(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:34:27