स्वीकृत उत्तर एक पूर्ण stat
समतुल्य प्रदान नहीं करता है। stat
struct
struct stat {
dev_t st_dev; /* ID of device containing file */
ino_t st_ino; /* inode number */
mode_t st_mode; /* protection */
nlink_t st_nlink; /* number of hard links */
uid_t st_uid; /* user ID of owner */
gid_t st_gid; /* group ID of owner */
dev_t st_rdev; /* device ID (if special file) */
off_t st_size; /* total size, in bytes */
blksize_t st_blksize; /* blocksize for filesystem I/O */
blkcnt_t st_blocks; /* number of 512B blocks allocated */
time_t st_atime; /* time of last access */
time_t st_mtime; /* time of last modification */
time_t st_ctime; /* time of last status change */
};
के रूप में परिभाषित किया गया है, लेकिन किसी भी मालिक जानकारी GetFileAttributes..
प्रदान नहीं करता है (यह एक WIN32_FIND_DATA वस्तु में डेटा देता है)। अगर आपको उस मालिक की जानकारी की आवश्यकता है, तो ऐसा लगता है कि आप GetSecurityInfo
[1] का उपयोग कर सकते हैं।
[1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa446629%28v=vs.85%29.aspx
बहुत बहुत शुक्रिया .. मुझे कोशिश करते हैं और –