VirtualBox

Changeset 107382 in vbox


Ignore:
Timestamp:
Dec 19, 2024 1:55:07 PM (4 weeks ago)
Author:
vboxsync
Message:

IPRT/r3/nt: Some FILE_INFORMATION_CLASS doc updates for NT4 and earlier. bugref:10826

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/nt.h

    r106494 r107382  
    24802480    FileMailslotSetInformation,
    24812481    FileCompressionInformation,
    2482     FileObjectIdInformation,
     2482    /* NT351 and NT4 have different stuff assigned from here on. */
     2483    FileObjectIdInformation,        /**< NT4 and earlier has FileCopyOnWriteInformation here - only for setting, not querying. */
    24832484    FileCompletionInformation,
    24842485    FileMoveClusterInformation,
    2485     FileQuotaInformation,
    2486     FileReparsePointInformation,
     2486    FileQuotaInformation,           /**< NT35 has FileStorageInformation here (query+set) and NT4 FileOleClassIdInformation (set only). Last for NT35. */
     2487    FileReparsePointInformation,    /**< NT4 has FileOleStateBitsInformation here (set only). */
    24872488    FileNetworkOpenInformation,
    2488     FileAttributeTagInformation,
    2489     FileTrackingInformation,
    2490     FileIdBothDirectoryInformation,
    2491     FileIdFullDirectoryInformation,
    2492     FileValidDataLengthInformation,
    2493     FileShortNameInformation,
     2489    FileAttributeTagInformation,    /**< NT4 has FileObjectIdInformation here (set only). */
     2490    FileTrackingInformation,        /**< NT4 has FileOleAllInformation here (query only). Last for W2K. */
     2491    FileIdBothDirectoryInformation, /**< NT4 has FileOleDirectoryInformation here (dir query only). */
     2492    FileIdFullDirectoryInformation, /**< NT4 has FileContentIndexInformation here (set only). */
     2493    FileValidDataLengthInformation, /**< NT4 has FileInheritContentIndexInformation here (set only). */
     2494    FileShortNameInformation,       /**< NT4 has FileOleInformation here (query + set). Last for NT4. */
    24942495    FileIoCompletionNotificationInformation,
    24952496    FileIoStatusBlockRangeInformation,
  • trunk/src/VBox/Runtime/r3/nt/RTFileDelete-r3-nt.cpp

    r107378 r107382  
    111111             *
    112112             * See @bugref{10632}.
     113             *
     114             * Note! On NT4 the value later used for FileAttributeTagInformation was
     115             *       called FileObjectIdInformation, but fortunately that could only
     116             *       be set and will fail with STATUS_INVALID_INFO_CLASS when queried.
    113117             */
    114118            FILE_ATTRIBUTE_TAG_INFORMATION TagInfo = {0, 0};
     
    134138                }
    135139            }
    136             else if (   rcNt == STATUS_INVALID_PARAMETER || rcNt == STATUS_NOT_IMPLEMENTED
    137                      /** Needed for NT4. See @bugref{10826}. */
    138                      || rcNt == STATUS_INVALID_INFO_CLASS)
     140            else if (   rcNt == STATUS_INVALID_PARAMETER
     141                     || rcNt == STATUS_NOT_IMPLEMENTED
     142                     || rcNt == STATUS_INVALID_INFO_CLASS /* NT4 and earlier */)
    139143                rcNt = STATUS_SUCCESS;
    140144            else
  • trunk/src/VBox/Runtime/r3/nt/RTPathQueryInfo-nt.cpp

    r106061 r107382  
    483483        if (NT_SUCCESS(rcNt))
    484484        {
    485             /* Query tag information first in order to try re-open non-symlink reparse points. */
     485            /* Query tag information first in order to try re-open non-symlink reparse points.
     486               Note! On NT4 the value later used for FileAttributeTagInformation was
     487                     called FileObjectIdInformation, but fortunately that could only
     488                     be set and will fail with STATUS_INVALID_INFO_CLASS when queried. */
    486489            FILE_ATTRIBUTE_TAG_INFORMATION TagInfo;
    487490            rcNt = NtQueryInformationFile(hFile, &Ios, &TagInfo, sizeof(TagInfo), FileAttributeTagInformation);
  • trunk/src/VBox/Runtime/r3/nt/direnum-r3-nt.cpp

    r106497 r107382  
    182182
    183183                /*
    184                  * We now need to check if we opened a symbolic directory link.
     184                 * We now need to check if we opened a symbolic directory link (W2K+;
     185                 * on NT4 this is FileObjectIdInformation but it can't be queried and
     186                 * should thus fail with STATUS_INVALID_INFO_CLASS).
    185187                 * (These can be enumerated, but contains only '.' and '..'.)
    186188                 */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette