[NTUSER] Move TL structure definition to ntuser.h (#4644)

- Move struct _TL and TL definitions from win32.h to ntuser.h.
- Modify the type of TL.pfnFree as newly-defined TL_FN_FREE function pointer.
CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-08-30 09:35:27 +09:00 committed by GitHub
parent 8222c0e6d8
commit facc2837a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View file

@ -9,6 +9,15 @@
#define UserEnterCo UserEnterExclusive
#define UserLeaveCo UserLeave
typedef VOID (*TL_FN_FREE)(PVOID);
typedef struct _TL
{
struct _TL* next;
PVOID pobj;
TL_FN_FREE pfnFree;
} TL, *PTL;
extern PSERVERINFO gpsi;
extern PTHREADINFO gptiCurrent;
extern PPROCESSINFO gppiList;

View file

@ -53,13 +53,8 @@ extern HANDLE hModuleWin; // This Win32k Instance.
extern struct _CLS *SystemClassList;
extern BOOL RegisteredSysClasses;
// FIXME: Move to ntuser.h
typedef struct _TL
{
struct _TL* next;
PVOID pobj;
PVOID pfnFree;
} TL, *PTL;
struct _TL;
typedef struct _TL *PTL;
typedef struct _W32THREAD
{