Opened Resources Level 3
struct file_info_3 {
unsigned long fi3_id;
unsigned short fi3_permissions;
unsigned short fi3_num_locks;
unsigned char LSFAR * LSPTR fi3_pathname;
unsigned char LSFAR * LSPTR fi3_username;
};
where:
- The first field in this data structure is identical
to that in the previous level.
- fi3_permissions indicates the access permissions
of the opening application. The bit mask of fi3_permissions is defined
in the SHARES.H header file as follows: ┌────────────────────┬───────┬─────────────────────────────────────────────────┐
│ SYMBOLIC CONSTANT │ BIT │ MEANING │
│ │ MASK │ │
├────────────────────┼───────┼─────────────────────────────────────────────────┤
│ FILE_READ │ 0x1 │ Permission to read a resource, and by default,
│
│ │ │ run the resource. │
├────────────────────┼───────┼─────────────────────────────────────────────────┤
│ FILE_WRITE │ 0x2 │ Permission to write to a resource. │
├────────────────────┼───────┼─────────────────────────────────────────────────┤
│ FILE_CREATE │ 0x4 │ Permission to create a resource; data can be
│
│ │ │ written when creating the resource. │
└────────────────────┴───────┴─────────────────────────────────────────────────┘
- fi3_num_locks indicates the number of file
locks on the file, device, or pipe.
- fi3_pathname points to an ASCIIZ string giving
the path name of the opened resource.
- fi3_username points to an ASCIIZ string indicating
the user that opened the resource.
[Back: Opened Resources Level 2]
[Next: NetFileClose2 or Net32FileClose2]