DosQPathInfo returns attribute and extended attribute information for a file or subdirectory.
DosQPathInfo
PathName (PSZ) - input
DosQSysInfo is called by an application during initialization to determine the maximum path length allowed by OS/2.
Level 1 Information
filedate (FDATE)
Bit
Bit
cbList (ULONG)
fpGEAList (PGEALIST)
On input, PathInfoBuf is an EAOP structure. fpGEAList points to a GEA list defining the attribute names whose values are returned. fpFEAList points to a data area where the relevant FEA list is returned. The length field of this FEA list is valid, giving the size of the FEA list buffer. oError points to the offending GEA entry in case of error. Following is the format of the GEAList structure:
cbName (BYTE)
cbList (ULONG)
Flags (BYTE)
Bit
For DosQPathInfo to return information contained in any of the file information levels, the file object must be opened for read access, with a deny-write sharing mode specified for access by other processes. Thus, if the file object is already accessed by another process that holds conflicting sharing and access rights, a call to DosQPathInfo fails.