mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 03:44:36 +00:00
- Implement HeapSetInformation
- Implement HeapQueryInformation svn path=/trunk/; revision=39536
This commit is contained in:
parent
53d65bf17a
commit
9291fbf1e4
|
@ -271,4 +271,58 @@ HeapWalk(HANDLE hHeap,
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
HeapQueryInformation(HANDLE HeapHandle,
|
||||
HEAP_INFORMATION_CLASS HeapInformationClass,
|
||||
PVOID HeapInformation OPTIONAL,
|
||||
SIZE_T HeapInformationLength OPTIONAL,
|
||||
PSIZE_T ReturnLength OPTIONAL)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = RtlQueryHeapInformation(HeapHandle,
|
||||
HeapInformationClass,
|
||||
HeapInformation,
|
||||
HeapInformationLength,
|
||||
ReturnLength);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
HeapSetInformation(HANDLE HeapHandle,
|
||||
HEAP_INFORMATION_CLASS HeapInformationClass,
|
||||
PVOID HeapInformation OPTIONAL,
|
||||
SIZE_T HeapInformationLength OPTIONAL)
|
||||
{
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = RtlSetHeapInformation(HeapHandle,
|
||||
HeapInformationClass,
|
||||
HeapInformation,
|
||||
HeapInformationLength);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -386,39 +386,6 @@ GetNumaProcessorNode(
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
HeapQueryInformation (
|
||||
HANDLE HeapHandle,
|
||||
HEAP_INFORMATION_CLASS HeapInformationClass,
|
||||
PVOID HeapInformation OPTIONAL,
|
||||
SIZE_T HeapInformationLength OPTIONAL,
|
||||
PSIZE_T ReturnLength OPTIONAL
|
||||
)
|
||||
{
|
||||
STUB;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
HeapSetInformation (
|
||||
HANDLE HeapHandle,
|
||||
HEAP_INFORMATION_CLASS HeapInformationClass,
|
||||
PVOID HeapInformation OPTIONAL,
|
||||
SIZE_T HeapInformationLength OPTIONAL
|
||||
)
|
||||
{
|
||||
STUB;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue