Kernel32HeapSetInformation Method
Enables features for a specified heap.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", SetLastError = true)]
public static bool HeapSetInformation(
IntPtr hHeap,
HeapInformationClass heapInformationClass,
IntPtr heapInformation,
uint heapInformationLength
)
<DllImportAttribute("Kernel32.dll", SetLastError := true>]
Public Shared Function HeapSetInformation (
hHeap As IntPtr,
heapInformationClass As HeapInformationClass,
heapInformation As IntPtr,
heapInformationLength As UInteger
) As Boolean
Dim hHeap As IntPtr
Dim heapInformationClass As HeapInformationClass
Dim heapInformation As IntPtr
Dim heapInformationLength As UInteger
Dim returnValue As Boolean
returnValue = Kernel32.HeapSetInformation(hHeap,
heapInformationClass, heapInformation,
heapInformationLength)
public:
[DllImportAttribute(L"Kernel32.dll", SetLastError = true)]
static bool HeapSetInformation(
[InAttribute] IntPtr hHeap,
HeapInformationClass heapInformationClass,
[InAttribute] IntPtr heapInformation,
unsigned int heapInformationLength
)
[<DllImportAttribute("Kernel32.dll", SetLastError = true)>]
static member HeapSetInformation :
hHeap : IntPtr *
heapInformationClass : HeapInformationClass *
heapInformation : IntPtr *
heapInformationLength : uint32 -> bool
No code example is currently available or this language may not be supported.
- hHeap IntPtr
-
A handle to the heap where information is to be set.
This handle is returned by either the HeapCreate(HeapFlags, UInt32, UInt32) or
GetProcessHeap function.
- heapInformationClass HeapInformationClass
-
The class of information to be set.
- heapInformation IntPtr
-
The heap information buffer.
The format of this data depends on the value of the heapInformationClass parameter.
If the heapInformationClass parameter is CompatibilityInformation,
the heapInformation parameter is a pointer to a ULONG variable.
If the heapInformationClass parameter is EnableTerminationOnCorruption,
the heapInformation parameter should be NULL
and heapInformationLength should be 0 (zero).
- heapInformationLength UInt32
-
The size of the heapInformation buffer, in bytes.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.