NtMapCMFModule - NtDoc

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

/**
 * The NtMapCMFModule routine maps a Code Map File (CMF) module into memory
 * and returns information about the cached view.
 *
 * \param What Specifies the CMF operation to perform.
 * \param Index The module index to map. Only valid for CmfSegmentOp operations.
 * \param CacheIndexOut Optional pointer that receives the cache index.
 * \param CacheFlagsOut Optional pointer that receives cache flags.
 * \param ViewSizeOut Optional pointer that receives the size of the mapped view.
 * \param BaseAddress Optional pointer that receives the base address of the mapped module.
 * \return NTSTATUS Successful or errant status.
 */
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtMapCMFModule(
    _In_ ULONG What,
    _In_ ULONG Index,
    _Out_opt_ PULONG CacheIndexOut,
    _Out_opt_ PULONG CacheFlagsOut,
    _Out_opt_ PULONG ViewSizeOut,
    _Out_opt_ PVOID *BaseAddress
    );

// end_private
#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwMapCMFModule(
    _In_ ULONG What,
    _In_ ULONG Index,
    _Out_opt_ PULONG CacheIndexOut,
    _Out_opt_ PULONG CacheFlagsOut,
    _Out_opt_ PULONG ViewSizeOut,
    _Out_opt_ PVOID *BaseAddress
    );

#endif

View code on GitHub

NtDoc

No description available.