X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fwinapi.py;h=4436c6ddb971d494329db0e1a2dd1f9d7b798407;hb=a936afc3ebb349c3aec8b5a595706f3c9749ad37;hp=c27d0be12897ed5b05e2497c0c78a276cc8241ba;hpb=9a40d9e636d026a3e60af2ebe8be50ebdae608a8;p=apitrace diff --git a/specs/winapi.py b/specs/winapi.py index c27d0be..4436c6d 100644 --- a/specs/winapi.py +++ b/specs/winapi.py @@ -65,9 +65,9 @@ LPDWORD = Pointer(DWORD) LPBOOL = Pointer(BOOL) LPSTR = CString -LPCSTR = Const(CString) +LPCSTR = ConstCString LPWSTR = WString -LPCWSTR = Const(WString) +LPCWSTR = ConstWString LARGE_INTEGER = Struct("LARGE_INTEGER", [ (LONGLONG, 'QuadPart'), @@ -152,7 +152,7 @@ RGNDATA = Struct("RGNDATA", [ ]) LPRGNDATA = Pointer(RGNDATA) -HMODULE = DECLARE_HANDLE("HMODULE") +HMODULE = IntPointer("HMODULE") FILETIME = Struct("FILETIME", [ (DWORD, "dwLowDateTime"), @@ -206,7 +206,7 @@ IUnknown = Interface("IUnknown") IUnknown.methods = ( StdMethod(HRESULT, "QueryInterface", ((REFIID, "riid"), Out(Pointer(ObjPointer(Void)), "ppvObj"))), - StdMethod(ULONG, "AddRef", (), sideeffects=False), + StdMethod(ULONG, "AddRef", ()), StdMethod(ULONG, "Release", ()), )