- Handle
GlobalAlloc(Integer Flags dWord Bytes)
The GlobalAlloc function allocates the specified number of bytes from the
heap. The 'Flags' parameter specifies how to allocate memory. If zero is
specified, the default is GMEM_FIXED. Except for the incompatible
combinations that are specifically noted, any combination of the following
flags can be used. To indicate whether the function allocates fixed or
movable memory, specify one of the first four flags.
- Handle
GlobalDiscard(Handle MemObject)
The GlobalDiscard function discards the specified global memory block. The
lock count of the memory object must be zero.
- Integer
GlobalFlags(Handle MemObject)
The GlobalFlags function returns information about the specified global
memory object.
- Handle
GlobalFree(Handle MemObject)
The GlobalFree function frees the specified global memory object and
invalidates its handle.
- Handle
GlobalHandle(Pointer MemObject)
The GlobalHandle function retrieves the handle associated with the
specified pointer to a global memory block.
- Pointer
GlobalLock(Handle MemObject)
The GlobalLock function locks a global memory object and returns a pointer
to the first byte of the object's memory block. The memory block associated
with a locked memory object cannot be moved or discarded. For memory
objects allocated with the GMEM_MOVEABLE flag, the function increments the
lock count associated with the memory object.
- Handle
GlobalReAlloc(Handle MemObject dWord Bytes Integer Flags)
The GlobalReAlloc function changes the size or attributes of a specified
global memory object. The size can increase or decrease.
- dWord
GlobalSize(Handle MemObject)
The GlobalSize function retrieves the current size, in bytes, of the
specified global memory object.
- Integer
GlobalUnlock(Handle MemObject)
The GlobalUnlock function decrements the lock count associated with a
memory object that was allocated with the GMEM_MOVEABLE flag. This function
has no effect on memory objects allocated with the GMEM_FIXED flag.
- Integer
WOWGetVDMPointer(dWord vp dWord dwBytes Integer fProtectedMode)
The WOWGetVDMPointer function converts a 16:16 address to the equivalent
linear address.
- Integer
WOWGetVDMPointerFix(dWord vp dWord d2wBytes Integer fProtectedMode)
The WOWGetVDMPointerFix function converts a 16:16 address to the equivalent
linear address.
Windows 95: This function calls the GlobalFix function before returning the
linear address so that the 16-bit memory block will not be moved around in
the 16-bit global heap.
Windows NT: This function behaves like the WOWGetVDMPointer function. The
memory is not fixed.
- Integer
WOWGetVDMPointerUnfix(Pointer vp)
Windows 95: The WOWGetVDMPointerUnfix function uses the GlobalUnfix
function to unfix a pointer retrieved by the WOWGetVDMPointerFix function.
Windows NT: This function has no effect
- Integer
WOWGlobalAlloc16(Integer wFlags dWord cb)
The WOWGlobalAlloc16 function allocates the specified number of bytes from
the 16-bit global heap.
- dWord
WOWGlobalAllocLock16(Integer wFlags dWord cb Integer phMem)
The WOWGlobalAllocLock16 function combines the functionality of the
WOWGlobalAlloc16 and WOWGlobalLock16 functions.
- Integer
WOWGlobalFree16(Integer hMem)
The WOWGlobalFree16 function frees the specified global memory object.
- dWord
WOWGlobalLock16(Integer hMem)
The WOWGlobalLock16 function locks a global memory object and returns a
pointer to the first byte of the object's memory block.
- dWord
WOWGlobalLockSize16(Integer hMem dWord pcb)
The WOWGlobalLockSize16 function combines the functionality of the
WOWGlobalLock16 and 16-bit GlobalSize functions.
- Integer
WOWGlobalUnlock16(Integer hMem)
The WOWGlobalUnlock16 function unlocks a global memory object.
- Integer
WOWGlobalUnlockFree16(dWord vpMem)
The WOWGlobalUnlockFree16 function combines the functionality of the
WOWGlobalUnlock16 and WOWGlobalFree16 functions.
- Integer
WOWHandle16(Handle hHandle Integer iType)
The WOWHandle16 function is used to map a 32-bit handle to a 16-bit handle.
Because the relationship between a Win16 handle and a Win32 handle may
change in the future, use this function to convert handles instead of any
knowledge of the relationship between them.
- Handle
WOWHandle32(Integer hHandle Integer iType)
The WOWHandle32 function is used to map a 16-bit handle to a 32-bit handle.
Because the relationship between a Win16 handle and a Win32 handle may
change in the future, use this function to convert handles instead of any
knowledge of the relationship between them.