The memory management API is the same for in-process and out-of-process operations.
For information on the memory management API, see Memory Management API. Some special cautions apply when these are used with in-process operations; see Notes about Allocating and Deallocating Memory in In-process Code.