mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
ntdll: Update RTL_HEAP_PARAMETERS definition.
This commit is contained in:
parent
416fc8067b
commit
73647adaef
Notes:
Alexandre Julliard
2024-01-17 22:49:47 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/wine/-/merge_requests/4813
3 changed files with 21 additions and 23 deletions
|
@ -1490,23 +1490,9 @@ static void heap_set_debug_flags( HANDLE handle )
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* RtlCreateHeap (NTDLL.@)
|
* RtlCreateHeap (NTDLL.@)
|
||||||
*
|
|
||||||
* Create a new Heap.
|
|
||||||
*
|
|
||||||
* PARAMS
|
|
||||||
* flags [I] HEAP_ flags from "winnt.h"
|
|
||||||
* addr [I] Desired base address
|
|
||||||
* totalSize [I] Total size of the heap, or 0 for a growable heap
|
|
||||||
* commitSize [I] Amount of heap space to commit
|
|
||||||
* unknown [I] Not yet understood
|
|
||||||
* definition [I] Heap definition
|
|
||||||
*
|
|
||||||
* RETURNS
|
|
||||||
* Success: A HANDLE to the newly created heap.
|
|
||||||
* Failure: a NULL HANDLE.
|
|
||||||
*/
|
*/
|
||||||
HANDLE WINAPI RtlCreateHeap( ULONG flags, void *addr, SIZE_T total_size, SIZE_T commit_size,
|
HANDLE WINAPI RtlCreateHeap( ULONG flags, void *addr, SIZE_T total_size, SIZE_T commit_size,
|
||||||
void *unknown, RTL_HEAP_DEFINITION *definition )
|
void *lock, RTL_HEAP_PARAMETERS *params )
|
||||||
{
|
{
|
||||||
struct entry *entry;
|
struct entry *entry;
|
||||||
struct heap *heap;
|
struct heap *heap;
|
||||||
|
@ -1514,8 +1500,8 @@ HANDLE WINAPI RtlCreateHeap( ULONG flags, void *addr, SIZE_T total_size, SIZE_T
|
||||||
SUBHEAP *subheap;
|
SUBHEAP *subheap;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
TRACE( "flags %#lx, addr %p, total_size %#Ix, commit_size %#Ix, unknown %p, definition %p\n",
|
TRACE( "flags %#lx, addr %p, total_size %#Ix, commit_size %#Ix, lock %p, params %p\n",
|
||||||
flags, addr, total_size, commit_size, unknown, definition );
|
flags, addr, total_size, commit_size, lock, params );
|
||||||
|
|
||||||
flags &= ~(HEAP_TAIL_CHECKING_ENABLED|HEAP_FREE_CHECKING_ENABLED);
|
flags &= ~(HEAP_TAIL_CHECKING_ENABLED|HEAP_FREE_CHECKING_ENABLED);
|
||||||
if (process_heap) flags |= HEAP_PRIVATE;
|
if (process_heap) flags |= HEAP_PRIVATE;
|
||||||
|
|
|
@ -2577,11 +2577,23 @@ typedef struct _PROCESS_STACK_ALLOCATION_INFORMATION_EX
|
||||||
PROCESS_STACK_ALLOCATION_INFORMATION AllocInfo;
|
PROCESS_STACK_ALLOCATION_INFORMATION AllocInfo;
|
||||||
} PROCESS_STACK_ALLOCATION_INFORMATION_EX, *PPROCESS_STACK_ALLOCATION_INFORMATION_EX;
|
} PROCESS_STACK_ALLOCATION_INFORMATION_EX, *PPROCESS_STACK_ALLOCATION_INFORMATION_EX;
|
||||||
|
|
||||||
typedef struct _RTL_HEAP_DEFINITION {
|
typedef NTSTATUS (NTAPI RTL_HEAP_COMMIT_ROUTINE)(PVOID base, PVOID *address, PSIZE_T size);
|
||||||
ULONG Length; /* = sizeof(RTL_HEAP_DEFINITION) */
|
typedef RTL_HEAP_COMMIT_ROUTINE *PRTL_HEAP_COMMIT_ROUTINE;
|
||||||
|
|
||||||
ULONG Unknown[11];
|
typedef struct _RTL_HEAP_PARAMETERS
|
||||||
} RTL_HEAP_DEFINITION, *PRTL_HEAP_DEFINITION;
|
{
|
||||||
|
ULONG Length;
|
||||||
|
SIZE_T SegmentReserve;
|
||||||
|
SIZE_T SegmentCommit;
|
||||||
|
SIZE_T DeCommitFreeblockThreshold;
|
||||||
|
SIZE_T DeCommitTotalFreeThreshold;
|
||||||
|
SIZE_T MaximumAllocationSize;
|
||||||
|
SIZE_T VirtualMemoryThreshold;
|
||||||
|
SIZE_T InitialCommit;
|
||||||
|
SIZE_T InitialReserve;
|
||||||
|
PRTL_HEAP_COMMIT_ROUTINE CommitRoutine;
|
||||||
|
SIZE_T Reserved[2];
|
||||||
|
} RTL_HEAP_PARAMETERS, *PRTL_HEAP_PARAMETERS;
|
||||||
|
|
||||||
typedef struct _RTL_RWLOCK {
|
typedef struct _RTL_RWLOCK {
|
||||||
RTL_CRITICAL_SECTION rtlCS;
|
RTL_CRITICAL_SECTION rtlCS;
|
||||||
|
@ -4665,7 +4677,7 @@ NTSYSAPI NTSTATUS WINAPI RtlCreateAcl(PACL,DWORD,DWORD);
|
||||||
NTSYSAPI NTSTATUS WINAPI RtlCreateActivationContext(HANDLE*,const void*);
|
NTSYSAPI NTSTATUS WINAPI RtlCreateActivationContext(HANDLE*,const void*);
|
||||||
NTSYSAPI NTSTATUS WINAPI RtlCreateAtomTable(ULONG,RTL_ATOM_TABLE*);
|
NTSYSAPI NTSTATUS WINAPI RtlCreateAtomTable(ULONG,RTL_ATOM_TABLE*);
|
||||||
NTSYSAPI NTSTATUS WINAPI RtlCreateEnvironment(BOOLEAN, PWSTR*);
|
NTSYSAPI NTSTATUS WINAPI RtlCreateEnvironment(BOOLEAN, PWSTR*);
|
||||||
NTSYSAPI HANDLE WINAPI RtlCreateHeap(ULONG,PVOID,SIZE_T,SIZE_T,PVOID,PRTL_HEAP_DEFINITION);
|
NTSYSAPI HANDLE WINAPI RtlCreateHeap(ULONG,PVOID,SIZE_T,SIZE_T,PVOID,PRTL_HEAP_PARAMETERS);
|
||||||
NTSYSAPI NTSTATUS WINAPI RtlCreateProcessParameters(RTL_USER_PROCESS_PARAMETERS**,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,PWSTR,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*);
|
NTSYSAPI NTSTATUS WINAPI RtlCreateProcessParameters(RTL_USER_PROCESS_PARAMETERS**,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,PWSTR,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*);
|
||||||
NTSYSAPI NTSTATUS WINAPI RtlCreateProcessParametersEx(RTL_USER_PROCESS_PARAMETERS**,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,PWSTR,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,ULONG);
|
NTSYSAPI NTSTATUS WINAPI RtlCreateProcessParametersEx(RTL_USER_PROCESS_PARAMETERS**,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,PWSTR,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,const UNICODE_STRING*,ULONG);
|
||||||
NTSYSAPI PDEBUG_BUFFER WINAPI RtlCreateQueryDebugBuffer(ULONG,BOOLEAN);
|
NTSYSAPI PDEBUG_BUFFER WINAPI RtlCreateQueryDebugBuffer(ULONG,BOOLEAN);
|
||||||
|
|
|
@ -3344,7 +3344,7 @@ POBJECT_ATTRIBUTES
|
||||||
PPRIVILEGE_SET
|
PPRIVILEGE_SET
|
||||||
PRTL_BITMAP
|
PRTL_BITMAP
|
||||||
PRTL_BITMAP_RUN
|
PRTL_BITMAP_RUN
|
||||||
PRTL_HEAP_DEFINITION
|
PRTL_HEAP_PARAMETERS
|
||||||
PRTL_QUERY_REGISTRY_TABLE
|
PRTL_QUERY_REGISTRY_TABLE
|
||||||
PRTL_THREAD_START_ROUTINE
|
PRTL_THREAD_START_ROUTINE
|
||||||
PRTL_USER_PROCESS_PARAMETERS
|
PRTL_USER_PROCESS_PARAMETERS
|
||||||
|
|
Loading…
Reference in a new issue