Storage Property Set

[This is preliminary documentation and subject to change.]

The storage property set defines properties found on files in a file system. The GUID for storage properties is PSGUID_STORAGE, which is defined in ntquery.h as:

#define PSGUID_STORAGE \
    { 0xb725f130, 0x47ef, 0x101a, \
        { 0xa5, 0xf1, 0x02, 0x60, 0x8c, 0x9e, 0xeb, 0xac } }
 
PID_STG_DIRECTORY
The directory in which a file is located. Default type is VT_LPWSTR. The Index Server friendly name is "directory".
PID_STG_CLASSID
Class ID of a file. Default type is VT_CLSID. The Index Server friendly name is "classid".
PID_STG_NAME
The name of the file. Default type is VT_LPWSTR. The Index Server friendly name is "filename".
PID_STG_PATH
The complete path for a file. Default type is VT_LPWSTR. The Index Server friendly name is "path".
PID_STG_SIZE
The size of a file. Default type is VT_I8. The Index Server friendly name is "size".
PID_STG_ATTRIBUTES
The attribute flags for a file. Default type is VT_UI4. The Index Server friendly name is "attrib".
PID_STG_WRITETIME
The date and time of the last write to the file. Default type is VT_FILETIME. The Index Server friendly name is "write".
PID_STG_CREATETIME
The date and time the file was created. Default type is VT_FILETIME. The Index Server friendly name is "create".
PID_STG_ACCESSTIME
The time of the last access to the file. Default type is VT_FILETIME. The Index Server friendly name is "access".
PID_STG_CONTENTS
The contents of the file. This property is for query restrictions only; it cannot be retrieved in a query result. Default type is VT_LPWSTR. The Index Server friendly name is "contents".
PID_STG_SHORTNAME
The short (8.3) filename for the file. Default type is VT_LPWSTR. The Index Server friendly name is "shortname".