7 Memory API Function
The FillMemory function fills a block of memory with a specified value....
Hits: 6573 Rating: (3.34) votes 2463
GlobalUnlock decrements the lock count of a moveable memory block by one. The memory block is locked if its lock count is greater than zero; it is considered unlocked if its lock count is zero. A moveable memory block cannot be moved or discarded while it is locked. The function returns 1 if, after ...
Hits: 4008 Rating: (2.75) votes 1663
GlobalFree frees up the resources associated with a memory block, including of course the memory itself. This function should be used to deallocate any memory blocks allocated by GlobalAlloc after you are finished using it. The function returns 0 if successful, or the value passed as hMem if an erro...
Hits: 4501 Rating: (3.00) votes 1422
GlobalLock locks a moveable block of memory into its current physical position. The block's internal lock count is incremented by one; a memory block is considered locked if its lock counter is greater than zero. Memory blocks cannot be moved or discarded while locked. The function returns a pointer...
Hits: 4869 Rating: (2.83) votes 1812
The GlobalMemoryStatus function retrieves information about current available memory. The function returns information about both physical and virtual memory. This function supersedes the GetFreeSpace function....
Hits: 6928 Rating: (3.12) votes 2897
GlobalAlloc allocates a series of bytes in the computer's global memory. The memory can be used for any purpose necessary. The function's return value, if successful, depends on the flags specified in wFlags. It will either be a pointer to the block of allocated memory or a handle to the block of al...
Hits: 6744 Rating: (3.07) votes 1180
CopyMemory copies a series of bytes from one location in the computer's memory to another. This function can be used to transfer data between any kinds of variables, arrays, data structures, or even abstract memory addresses. (To use arrays, reference the first element of the array.) Normally, the h...
Hits: 18930 Rating: (2.87) votes 767
Records 1 to 7 of 7