LocalDiscard macro (minwinbase.h)
Discards the specified local memory object. The lock count of the memory object must be zero.
Syntax
void LocalDiscard(
[in] h
);
Parameters
[in] h
A handle to the local memory object. This handle is returned by either the LocalAlloc or LocalReAlloc function.
Return value
None
Remarks
Although LocalDiscard discards the object's memory block, the handle to the object remains valid. A process can subsequently pass the handle to the LocalReAlloc function to allocate another local memory object identified by the same handle.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | minwinbase.h (include Windows.h) |
See also
Feedback
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.
Submit and view feedback for