]> git.cworth.org Git - apitrace/blobdiff - winapi.py
Get DDraw/D3D7 building.
[apitrace] / winapi.py
index 3777dcbf3c8baab08f5a3818a1b64da977e91f0d..ee619821aff8fd3992838d824b368fe4f5589c50 100644 (file)
--- a/winapi.py
+++ b/winapi.py
@@ -43,13 +43,13 @@ BYTE = Literal("BYTE", "UInt", base=16)
 WORD = Literal("WORD", "UInt", base=16)
 DWORD = Literal("DWORD", "UInt", base=16)
 
+
 BOOL = Alias("BOOL", Bool)
 
 LPLONG = Pointer(LONG)
 LPWORD = Pointer(WORD)
 LPDWORD = Pointer(DWORD)
 LPBOOL = Pointer(BOOL)
-LPSIZE = LPDWORD
 
 LPSTR = CString
 LPCSTR = Const(CString)
@@ -109,6 +109,12 @@ POINT = Struct("POINT", (
 )) 
 LPPOINT = Pointer(POINT)
 
+SIZE = Struct("SIZE", (
+  (LONG, "cx"),
+  (LONG, "cy"),
+)) 
+LPSIZE = Pointer(SIZE)
+
 RECT = Struct("RECT", (
   (LONG, "left"),
   (LONG, "top"),