Which Data Types Need Thunking

The following table lists common data types that require thunking, along with their thunked equivalents.

Pointer-precision data type (before thunking)Equivalent 32-bit fixed-precision data type (after thunking)

HANDLE

VOID * POINTER_32

INT_PTR

INT32

LONG_PTR

LONG32

LPARAM

LONG32

PCHAR

Char * POINTER_32

PDWORD

DWORD * POINTER_32

PHANDLE

VOID ** POINTER_32

PULONG

ULONG * POINTER_32

PVOID

VOID * POINTER_32

PWORD

WORD * POINTER_32

SIZE_T

INT32

ULONG_PTR

ULONG32

UNICODE_STRING

UNICODE_STRING32

 

 

 

Send comments about this topic to Microsoft

Show: