ppb (PPVOID) - output
cb (ULONG) - input
The size is rounded up to the next page-size boundary. The size of a page is 4KB.
flag (ULONG) - input
A set of flags describing the allocation attributes and desired access protection for the private memory object. Possible values are shown in the lists below:
Allocation Attributes
PAG_COMMIT (0x00000010)
32-bit 32-bit 16-bit alias
Offset Object Selectors
BaseAddress+000KBÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ÄÄÄÄÄ Sel
³ ³
BaseAddress+064KBÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ÄÄÄÄÄ Sel+HugeInc
³ ³
BaseAddress+128KBÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ÄÄÄÄÄ Sel+HugeInc*2
³ ³
BaseAddress+192KBÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ÄÄÄÄÄ Sel+HugeInc*3
³ ³
HugeInc is the huge increment used for DosAllocHuge.
Desired Access Protection
PAG_EXECUTE (0x00000004)
ulrc (APIRET) - returns
DosAllocMem returns one of the following values: