> Is there a reason why you changed the return type of 
> `RtlMultipleAllocateHeap` from `DWORD` to
`ULONG`? They are the same type and interchangeable.

No reason, just found all the other definitions used ULONG (since
DWORD generally isn't available in the kernel/ntdll context).
Feel free to remove this part of the patch if it's undesirable :)

> The new ones in your patch also seem incorrect. For example, I have
> looked into https://github.com/winsiderss/systeminformer/tree/master/phnt
> and RtlSetHeapInformation and RtlQueryHeapInformation return NTSTATUS.
> Also, I verified that by looking into those functions in ntdll.

As mentioned in the initial description NTSTATUS is not available in
winnt.h, so I opted for LONG which fixes the compilation error.

On Sat, 4 Jan 2025 at 05:10, Biswapriyo Nath <nathbap...@gmail.com> wrote:
>
> The new ones in your patch also seem incorrect. For example, I have
> looked into https://github.com/winsiderss/systeminformer/tree/master/phnt
> and RtlSetHeapInformation and RtlQueryHeapInformation return NTSTATUS.
> Also, I verified that by looking into those functions in ntdll.


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to