I have a cracker for ya.

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
User avatar
kgschlosser
Site Admin
Posts: 4202
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

I have a cracker for ya.

Post by kgschlosser » Sat Jul 21, 2018 12:56 pm

OK so i guess I am a little coo coo. (ok maybe a lot)

fore those of you that dabble in ctypes this is a great nugget to have

I really got tired of having to look up ctypes mappings to windows data types So I put together a few of them. only around 396 different data types all wrapped up into a nice file that can be imported if placed into the WinApi folder in EG


and here is the list

Code: Select all

ANSI_NULL
ANSI_STRING
ANSI_STRING32
ANSI_STRING64
APIENTRY
APIPRIVATE
ATOM
BOOL
BOOLEAN
BYTE
CALLBACK
CANSI_STRING
CCHAR
CDECL
CFUNCTYPE
CHAR
CLONG
CLSID
CLSID_NULL
COLORREF
COORD
CSHORT
CSTRING
DEFINE_GUID
DEFINE_OLEGUID
DOUBLE
DWORD
DWORD32
DWORD64
DWORDLONG
DWORD_PTR
ENUM
EXTERN_GUID
FAR
FARPROC
FCHAR
FILETIME
FLOAT
FLOAT128
FLONG
FMTID
FMTID_NULL
FSHORT
GLOBALHANDLE
GUID
GUID_NULL
HACCEL
HALF_PTR
HANDLE
HANDLE_PTR
HBITMAP
HBRUSH
HCOLORSPACE
HCONV
HCONVLIST
HCURSOR
HDC
HDDEDATA
HDESK
HDROP
HDWP
HENHMETAFILE
HEVENT
HFILE
HFONT
HGDIOBJ
HGLOBAL
HGLRC
HHOOK
HICON
HINSTANCE
HKEY
HKL
HLOCAL
HLSURF
HMENU
HMETAFILE
HMODULE
HMONITOR
HPALETTE
HPEN
HRESULT
HRGN
HRSRC
HSPRITE
HSTR
HSZ
HTASK
HUMPD
HWINEVENTHOOK
HWINSTA
HWND
IID
IID_NULL
INT
INT16
INT32
INT64
INT8
INT_PTR
KAFFINITY
KIRQL
LANGID
LARGE_INTEGER
LCID
LCTYPE
LGRPID
LOCALHANDLE
LOGICAL
LONG
LONG32
LONG64
LONGLONG
LONG_PTR
LP
LPARAM
LPBOOL
LPBYTE
LPCCH
LPCGUID
LPCH
LPCLSID
LPCOLESTR
LPCOLORREF
LPCRECT
LPCRECTL
LPCSTR
LPCTCH
LPCTSTR
LPCUTSTR
LPCUWCHAR
LPCUWSTR
LPCVOID
LPCWCH
LPCWCHAR
LPCWSTR
LPDWORD
LPFILETIME
LPFMTID
LPGUID
LPHANDLE
LPIID
LPINT
LPLONG
LPOLESTR
LPPOINT
LPPOINTS
LPRECT
LPRECTL
LPSIZE
LPSIZEL
LPSTR
LPTCH
LPTSTR
LPUTSTR
LPUWSTR
LPVOID
LPWCH
LPWORD
LPWSTR
LRESULT
LUID
MSG
NEAR
NEARPROC
NPPOINT
NPRECT
NPSTR
NTSTATUS
NULL
NULL64
NWPSTR
OEM_STRING
OLESTR
PANSI_STRING
PANSI_STRING32
PANSI_STRING64
PASCAL
PBOOL
PBOOLEAN
PBYTE
PBYTE256
PCANSI_STRING
PCCH
PCCHAR
PCH
PCHAR
PCLONG
PCNZCH
PCNZTCH
PCNZWCH
PCSHORT
PCSTR
PCSTRING
PCSZ
PCTCH
PCTSTR
PCUCHAR
PCULONG
PCUNICODE_STRING
PCUNZTCH
PCUNZWCH
PCUSHORT
PCUTSTR
PCUWCHAR
PCUWSTR
PCUZZTSTR
PCUZZWSTR
PCWCH
PCWCHAR
PCWSTR
PCZPCSTR
PCZPCWSTR
PCZPSTR
PCZPWSTR
PCZZSTR
PCZZTSTR
PCZZWSTR
PDWORD
PDWORD32
PDWORD64
PDWORDLONG
PDWORD_PTR
PFILETIME
PFLOAT
PFLOAT128
PHALF_PTR
PHANDLE
PHKEY
PHYSICAL_ADDRESS
PINT
PINT16
PINT32
PINT64
PINT8
PINT_PTR
PKAFFINITY
PKIRQL
PLARGE_INTEGER
PLCID
PLOGICAL
PLONG
PLONG32
PLONG64
PLONGLONG
PLONG_PTR
PLUID
PNTSTATUS
PNZCH
PNZTCH
PNZWCH
POEM_STRING
POINT
POINTER
POINTER_32
POINTER_64
POINTER_64_INT
POINTER_SIGNED
POINTER_UNSIGNED
POINTL
POINTS
PPHYSICAL_ADDRESS
PPOINT
PPOINTL
PPOINTS
PQUAD
PRECT
PRECTL
PROC
PRTL_REFERENCE_COUNT
PRTL_REFERENCE_COUNT32
PSCHAR
PSHORT
PSIZE
PSIZEL
PSIZE_T
PSSIZE_T
PSTR
PSTRING
PSTRING32
PSTRING64
PSZ
PTBYTE
PTCH
PTCHAR
PTIME
PTSTR
PTUCHAR
PUCHAR
PUCSCHAR
PUCSSTR
PUHALF_PTR
PUINT
PUINT16
PUINT32
PUINT64
PUINT8
PUINT_PTR
PULARGE_INTEGER
PULONG
PULONG32
PULONG64
PULONGLONG
PULONG_PTR
PUNICODE_STRING
PUNICODE_STRING32
PUNICODE_STRING64
PUNZTCH
PUNZWCH
PUQUAD
PUSHORT
PUTSTR
PUWSTR
PUZZTSTR
PUZZWSTR
PVOID
PWCH
PWCHAR
PWORD
PWSTR
PZPCSTR
PZPCWSTR
PZPSTR
PZPTSTR
PZPWSTR
PZZSTR
PZZTSTR
PZZWSTR
QUAD
QWORD
RECT
RECTL
REFCLSID
REFFMTID
REFGUID
REFIID
RTL_REFERENCE_COUNT
RTL_REFERENCE_COUNT32
RTL_STRING_LENGTH_TYPE
SCHAR
SC_HANDLE
SC_LOCK
SERVICE_STATUS_HANDLE
SHANDLE_PTR
SHORT
SIZE
SIZEL
SIZE_T
SMALL_RECT
SPHANDLE
SPOINTER_32
SSIZE_T
STRING
STRING32
STRING64
TBYTE
TCHAR
TEXT
TIME
TUCHAR
UBYTE
UCHAR
UCSCHAR
UHALF_PTR
UINT
UINT16
UINT32
UINT64
UINT8
UINT_PTR
ULARGE_INTEGER
ULONG
ULONG32
ULONG64
ULONGLONG
ULONG_PTR
UNICODE_NULL
UNICODE_STRING
UNICODE_STRING32
UNICODE_STRING64
UPOINTER_32
UQUAD
USHORT
USN
VARIANT_BOOL
VOID
WCHAR
WIN32_FIND_DATAA
WIN32_FIND_DATAW
WINAPI
WINAPIV
WINAPI_INLINE
WINFUNCTYPE
WORD
WPARAM
WSTRING

file is attached
Attachments
ctypes_win_data_types.zip
(4.29 KiB) Downloaded 18 times
If you like the work I have been doing then feel free to Image

Post Reply