Skip to content

Latest commit

 

History

History
86 lines (66 loc) · 2.65 KB

nf-winbase-globaldiscard.md

File metadata and controls

86 lines (66 loc) · 2.65 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winbase.GlobalDiscard
GlobalDiscard macro (winbase.h)
Discards the specified global memory block.
GlobalDiscard
GlobalDiscard macro
_win32_globaldiscard
base.globaldiscard
winbase/GlobalDiscard
base\globaldiscard.htm
base
af6160ce-ab7a-4198-bca3-dd5d51cacfa5
12/05/2018
GlobalDiscard, GlobalDiscard macro, _win32_globaldiscard, base.globaldiscard, winbase/GlobalDiscard
winbase.h
Windows.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
GlobalDiscard
winbase/GlobalDiscard
c++
APIRef
kbSyntax
HeaderDef
WinBase.h
GlobalDiscard

GlobalDiscard macro

-description

Discards the specified global memory block. The lock count of the memory object must be zero.

Note  The global functions have greater overhead and provide fewer features than other memory management functions. New applications should use the heap functions unless documentation states that a global function should be used. For more information, see Global and Local Functions.
 

-parameters

-param h [in]

A handle to the global memory object. This handle is returned by either the GlobalAlloc or GlobalReAlloc function.

-remarks

Although GlobalDiscard discards the object's memory block, the handle to the object remains valid. The process can subsequently pass the handle to the GlobalReAlloc function to allocate another global memory block identified by the same handle.

-see-also

Global and Local Functions

GlobalAlloc

GlobalReAlloc

Memory Management Functions