liqiqi
驱动牛犊
驱动牛犊
  • 注册日期2004-04-10
  • 最后登录2004-05-08
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值1点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2208回复:5

怎么样加密文件夹

楼主#
更多 发布于:2004-04-12 22:08
这个个问题没有解决, 有人骗我
moonYut
驱动小牛
驱动小牛
  • 注册日期2004-03-09
  • 最后登录2006-12-21
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望138点
  • 贡献值17点
  • 好评度117点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-04-12 22:14
我看错了嘛,不要生气啊
刚则折,柔恒存,柔羽胜刚强! 万法自然,无根无极!--太极
wowocock
VIP专家组
VIP专家组
  • 注册日期2002-04-08
  • 最后登录2016-01-09
  • 粉丝16
  • 关注2
  • 积分601分
  • 威望1651点
  • 贡献值1点
  • 好评度1227点
  • 原创分1分
  • 专家分0分
板凳#
发布于:2004-04-13 09:16
呵呵,有意思.
花开了,然后又会凋零,星星是璀璨的,可那光芒也会消失。在这样 一瞬间,人降生了,笑者,哭着,战斗,伤害,喜悦,悲伤憎恶,爱。一切都只是刹那间的邂逅,而最后都要归入死亡的永眠
walkonthesky
驱动中牛
驱动中牛
  • 注册日期2003-11-26
  • 最后登录2012-11-06
  • 粉丝0
  • 关注0
  • 积分1分
  • 威望20点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2004-04-14 14:19
EFS

MSDN里有
[img]http://www.driverdevelop.com/forum/upload/walkonthesky/2004-07-08_2004-07-07_b847.gif[/img]
moonYut
驱动小牛
驱动小牛
  • 注册日期2004-03-09
  • 最后登录2006-12-21
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望138点
  • 贡献值17点
  • 好评度117点
  • 原创分0分
  • 专家分0分
地下室#
发布于: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
刚则折,柔恒存,柔羽胜刚强! 万法自然,无根无极!--太极
xxljamxxl
驱动牛犊
驱动牛犊
  • 注册日期2004-06-22
  • 最后登录2004-06-23
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2004-06-22 22:18
你怎么不把MSDN全贴上来啊!:)
游客

返回顶部