写一个文件系统钩子,象CIH那样

解决方案 »

  1.   

    Areslee能详细讲讲?
    谢谢!
      

  2.   

    文件可以用Crypt Api来加密,文件夹我就不懂了,文件加密到www.v-galaxy.com上有一篇蔬菜的文章或www.vckbase.com与其《知识库8》
      

  3.   

    vcmfc(超级菜鸟):Crypt Api是一系列API函数,还是一个类?
      

  4.   

    EncryptFile
    The 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.BOOL EncryptFile(
      LPCTSTR lpFileName  // file name
    );
    Parameters
    lpFileName 
    [in] Pointer to a null-terminated string that specifies 
    the name of the file or directory to encrypt. 
    The caller must have FILE_READ_DATA, FILE_WRITE_DATA, 
    FILE_READ_ATTRIBUTES, FILE_WRITE_ATTRIBUTES, and 
    SYNCHRONIZE access to the file. Return Values
    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. Res
    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. To decrypt an encrypted file, use the DecryptFile 
    function. Requirements 
      Windows NT/2000: Requires Windows 2000 or later.
      Windows 95/98: Unsupported.
      Header: Declared in Winbase.h; include Windows.h.
      Library: Use Kernel32.lib.
      Unicode: Implemented as Unicode and ANSI versions on 
    Windows 2000.