NtAcquireCMFViewOwnership - 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
#if (PHNT_VERSION < PHNT_WINDOWS_7)

/**
 * The NtAcquireCMFViewOwnership routine acquires ownership of the Code Map
 * File (CMF) view and optionally replaces an existing ownership token.
 *
 * \param TimeStamp A pointer that receives the timestamp associated with the
 * CMF view ownership.
 * \param tokenTaken A pointer that receives TRUE if the caller successfully
 * acquired the ownership token, or FALSE if another owner already held it.
 * \param replaceExisting If TRUE, replaces any existing ownership token.
 * \return NTSTATUS Successful or errant status.
 */
NTSYSCALLAPI
NTSTATUS
NTAPI
NtAcquireCMFViewOwnership(
    _Out_ PULONGLONG TimeStamp,
    _Out_ PBOOLEAN tokenTaken,
    _In_ BOOLEAN replaceExisting
    );

#endif
// end_private
#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwAcquireCMFViewOwnership(
    _Out_ PULONGLONG TimeStamp,
    _Out_ PBOOLEAN tokenTaken,
    _In_ BOOLEAN replaceExisting
    );

#endif

View code on GitHub

NtDoc

No description available.