VirtualBox

Changeset 82833 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 22, 2020 4:22:59 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/nt: Added OBJECT_BASIC_INFORMATION and promoted rtNtPathFromHandle to public access. ticketref:19003

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/nt/pathint-nt.cpp

    r78200 r82833  
    572572 * @param   cwcExtra            How much extra space is needed.
    573573 */
    574 static int rtNtPathFromHandle(struct _UNICODE_STRING *pNtName, HANDLE hHandle, size_t cwcExtra)
     574RTDECL(int) RTNtPathFromHandle(struct _UNICODE_STRING *pNtName, HANDLE hHandle, size_t cwcExtra)
    575575{
    576576    /*
     
    634634    {
    635635        RTUtf16Free(pNtName->Buffer);
    636         rc = rtNtPathFromHandle(pNtName, *phRootDir, pNtName->Length / sizeof(RTUTF16) + 2);
     636        rc = RTNtPathFromHandle(pNtName, *phRootDir, pNtName->Length / sizeof(RTUTF16) + 2);
    637637        if (RT_SUCCESS(rc))
    638638        {
     
    646646        UNICODE_STRING RootDir;
    647647        size_t const   cwcAppend = pNtName->Length / sizeof(RTUTF16);
    648         rc = rtNtPathFromHandle(&RootDir, *phRootDir, cwcAppend + 2);
     648        rc = RTNtPathFromHandle(&RootDir, *phRootDir, cwcAppend + 2);
    649649        if (RT_SUCCESS(rc))
    650650        {
     
    802802                                            {
    803803                                                RTUtf16Free(pwszDst);
    804                                                 rc = rtNtPathFromHandle(pNtName, *phRootDir, cwcMax + 2);
     804                                                rc = RTNtPathFromHandle(pNtName, *phRootDir, cwcMax + 2);
    805805                                                if (RT_FAILURE(rc))
    806806                                                    return rc;
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