UINT CopyCallback(
HWND hwnd, file://Handle/ of the parent window for displaying UI objects
UINT wFunc, file://Operation/ to perform.
UINT wFlags, file://Flags/ that control the operation
LPCSTR pszSrcFile, file://Pointer/ to the source file
DWORD dwSrcAttribs, file://Source/ file attributes
LPCSTR pszDestFile, file://Pointer/ to the destination file
DWORD dwDestAttribs file://Destination/ file attributes
);
SetFilePermission (Win32 API)来设置NTFS上的
文件和目录的权限
用法如下:
BOOL SetFilePermission(LPCTSTR lpFileName, // address of string for filename
SECURITY_INFORMATION SecurityInformation, // type of information to set
PSECURITY_DESCRIPTOR pSecurityDescriptor // address of security descriptor
);