CeZeroPointer (Windows CE 5.0)

Send Feedback

This function converts a pointer that is mapped to a process into an unmapped pointer.

LPVOID CeZeroPointer(LPVOID ptr); 

Parameters

  • ptr
    [in] Pointer to be unmapped.

Return Values

If ptr is a mapped pointer, it returns its corresponding unmapped pointer. Otherwise, ptr itself is returned.

Remarks

A mapped pointer is a pointer that is mapped to a specific process slot. An unmapped pointer is at slot zero. For example, if process A is loaded at slot 0x0E000000, then an unmapped pointer 0x00011234 in process A points to the same physical location as its mapped version, which is 0x0E011234.

The CeZeroPointer function calls into the ZeroPtr macro. For information about the ZeroPtr macro, see %_WINCEROOT%\Public\Common\OAK\Inc\Pkfuncs.h.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

Process and Thread Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.