VirtualBox

Changeset 77816 in vbox for trunk/include/iprt/nt


Ignore:
Timestamp:
Mar 21, 2019 12:01:49 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129490
Message:

SupHardNt: Made RTNtPathExpand8dot3Path() work correctly in kernel context (needs IPRT_NT_MAP_TO_ZW) and expand 8.3 names when comparing the executable image we found in the memory map with what NT returns for the process.

File:
1 edited

Legend:

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

    r76585 r77816  
    4040
    4141#ifdef IPRT_NT_MAP_TO_ZW
     42# define NtQueryDirectoryFile           ZwQueryDirectoryFile
    4243# define NtQueryInformationFile         ZwQueryInformationFile
    4344# define NtQueryInformationProcess      ZwQueryInformationProcess
     
    388389 */
    389390RTDECL(int) RTNtPathExpand8dot3Path(struct _UNICODE_STRING *pUniStr, bool fPathOnly);
     391
     392/**
     393 * Wrapper around RTNtPathExpand8dot3Path that allocates a buffer instead of
     394 * working on the input buffer.
     395 *
     396 * @returns IPRT status code, see RTNtPathExpand8dot3Path().
     397 * @param   pUniStrSrc  The path to fix up. MaximumLength is the max buffer
     398 *                      length.
     399 * @param   fPathOnly   Whether to only process the path and leave the filename
     400 *                      as passed in.
     401 * @param   pUniStrDst  Output string.  On success, the caller must use
     402 *                      RTUtf16Free to free what the Buffer member points to.
     403 *                      This is all zeros and NULL on failure.
     404 */
     405RTDECL(int) RTNtPathExpand8dot3PathA(struct _UNICODE_STRING const *pShort, bool fPathOnly, struct _UNICODE_STRING *pUniStrDst);
    390406
    391407
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