PROCESS_DEVICEMAP_INFORMATION_EX - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)

typedef struct _PROCESS_DEVICEMAP_INFORMATION_EX
{
    union
    {
        struct
        {
            HANDLE DirectoryHandle; // needs DIRECTORY_TRAVERSE access
        } Set;
        struct
        {
            ULONG DriveMap; // bit mask
            UCHAR DriveType[32]; // DRIVE_* WinBase.h
        } Query;
    };
    ULONG Flags; // PROCESS_LUID_DOSDEVICES_ONLY
} PROCESS_DEVICEMAP_INFORMATION_EX, *PPROCESS_DEVICEMAP_INFORMATION_EX;

#endif
#endif

View code on GitHub

This structure defines information about the process's DOS Devices map.

Applicable to

Members

Set

DirectoryHandle

A handle to a directory object to set as the new device map for the process. The handle must grant DIRECTORY_TRAVERSE access.

See also

Query

DriveMap

A bit mask defining which drive letters are currently in use in the process's device map. Bit 0 corresponds to A:, bit 1 to B:, and so on.

DriveType

An array where each element defines the type of the drive associated with the specified letter. The value is meaningful only when the corresponding bit is set in the DriveMap field.

Known values

The possible values are defined in SDK in WinBase.h:

Flags

A bit mask of flags that control the operation.

Known flags

See also