VirtualBox

Changeset 107382 in vbox for trunk/src/VBox/Runtime


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/src/VBox/Runtime/r3/nt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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