我想做一个隐藏WINDOWS文件的小软件,让WINDOWS的搜索也搜不到,软件的大致工作过程是这样的:先将自己注册为系统进程,隐身,设置为随机启动,然后将指定的文件或文件夹设置为隐藏,用WINDOWS的搜索也搜不到。请问其中要用到那些API,钩子函数应该怎么设置,如果能详细讲解一下,将非常感谢。当然最好有代码说明了,哈哈!!!

解决方案 »

  1.   

    BOOL SetFileAttributes(    LPCTSTR lpFileName, // address of filename 
        DWORD dwFileAttributes  // address of attributes to set 
       );ParameterslpFileNamePoints to a string that specifies the name of the file whose attributes are to be set. dwFileAttributesSpecifies the file attributes to set for the file. This parameter can be a combination of the following values. However, all other values overrideReturn ValuesIf the function succeeds, the return value is nonzero.