阅读:2267回复:5
怎么样加密文件夹
这个个问题没有解决, 有人骗我
|
|
沙发#
发布于:2004-04-12 22:14
我看错了嘛,不要生气啊
|
|
|
板凳#
发布于:2004-04-13 09:16
呵呵,有意思.
|
|
|
地板#
发布于:2004-04-14 14:19
EFS
MSDN里有 |
|
|
地下室#
发布于:2004-04-17 00:12
是这个吗?
Platform SDK: Storage DuplicateEncryptionInfoFile The DuplicateEncryptionInfoFile function copies the EFS metadata from one file or directory to another. DWORD DuplicateEncryptionInfoFile( LPCTSTR SrcFileName, LPCTSTR DstFileName, DWORD dwCreationDistribution, DWORD dwAttributes, const LPSECURITY_ATTRIBUTES lpSecurityAttributes ); Parameters SrcFileName [in] Pointer to a string that specifies the name of the file or directory from which the EFS metadata is to be copied. This source file or directory must be encrypted. DstFileName [in] Pointer to a string that specifies the name of the file or directory to which the EFS metadata is to be copied. This destination file or directory does not have to be encrypted before the call to this function; however if this function completes successfully, it will be encrypted. If the value of SrcFileName specifies a file, the value of this parameter must also specify a file, and likewise for directories. If a file or directory with the name specified by this parameter does not exist, a file or directory (depending on whether SrcFileName specifies a file or directory) will be created. dwCreationDistribution [in] Describes how the destination file or directory identified by the DstFileName parameter value is to be opened. The following are the valid values of this parameter. Value Meaning CREATE_ALWAYS Always create the destination file or directory. Any value passed in this parameter other than CREATE_NEW will be processed as CREATE_ALWAYS. CREATE_NEW Create the destination file or directory only if it does not already exist. If it does exist, and this value is specified, this function will fail. dwAttributes [in] File attributes of the destination file or directory. The FILE_READ_ONLY attribute is currently not processed by this function. lpSecurityAttributes [in] Pointer to a SECURITY_ATTRIBUTES structure that specifies the security attributes of the destination file or directory, if it does not already exist. If you specify NULL, the file or directory gets a default security descriptor. The ACLs in the default security descriptor for a file or directory are inherited from its parent directory. Return Values If the function succeeds, the return value is ERROR_SUCCESS. If the function fails, the return value is a system error code. For a complete list of error codes, see System Error Codes or the header file WinError.h. Remarks Exclusive access to the destination file or directory is required by EFS for the call to this function. If this access is not provided, this function will fail. The caller should have the EFS key for the source file or directory, and at least the READ_ATTRIBUTE ACL for the source file or directory. The specified source and destination file or directories should reside on the same computer; otherwise, an error will be returned. Requirements Client: Included in Windows XP. Server: Included in Windows Server 2003. Header: Declared in Winefs.h; include Windows.h. Library: Use Advapi32.lib. See Also File Encryption, File Management Functions, SECURITY_ATTRIBUTES Platform SDK Release: February 2003 What did you think of this topic? Order a Platform SDK CD Requirements Client: Included in Windows XP. Server: Included in Windows Server 2003. Header: Declared in Winefs.h; include Windows.h. Library: Use Advapi32.lib. See Also File Encryption, File Management Functions, SECURITY_ATTRIBUTES |
|
|
5楼#
发布于:2004-06-22 22:18
你怎么不把MSDN全贴上来啊!:)
|
|