Compartir a través de


2.2.4.7 FILE_INFO_3

The FILE_INFO_3 structure contains the identifier and other pertinent information about files, devices, and pipes.

 typedef struct _FILE_INFO_3 {
   DWORD fi3_id;
   DWORD fi3_permissions;
   DWORD fi3_num_locks;
   [string] wchar_t* fi3_pathname;
   [string] wchar_t* fi3_username;
 } FILE_INFO_3,
  *PFILE_INFO_3,
  *LPFILE_INFO_3;

fi3_id: Specifies a DWORD value that contains the identifier that is assigned to the file, device, or pipe when it was opened. See section 3.1.1 for details.

fi3_permissions: Specifies a DWORD value that contains the access permissions that are associated with the opening application. This member MUST be a combination of one or more of the following values.

Value

Meaning

PERM_FILE_READ

0x00000001

Permission to read a resource, and, by default, execute the resource.

PERM_FILE_WRITE

0x00000002

Permission to write to a resource.

PERM_FILE_CREATE

0x00000004

Permission to create a resource; data can be written when creating the resource.

ACCESS_EXEC

0x00000008

Permission to execute a resource.

ACCESS_DELETE

0x00000010

Permission to delete a resource.

ACCESS_ATRIB

0x00000020

Permission to modify the attributes of a resource.

ACCESS_PERM

0x00000040

Permission to modify the permissions assigned to a resource for a user or application.

fi3_num_locks: Specifies a DWORD value that contains the number of file locks on the file, device, or pipe.

fi3_pathname: A pointer to a string that specifies the path of the opened file, device, or pipe.

fi3_username: A pointer to a string that specifies which user opened the file, device, or pipe.