X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fwinapi.py;h=be50155180e4aa419b6bf20fff299db743be1c29;hb=7a9fb5103e052150232b64cb5d99374cda3f1234;hp=c27d0be12897ed5b05e2497c0c78a276cc8241ba;hpb=c748fbcb434374ec13e14cc837ade7c581789e0c;p=apitrace diff --git a/specs/winapi.py b/specs/winapi.py index c27d0be..be50155 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"), @@ -178,6 +178,11 @@ LOGFONTW = Struct("LOGFONTW", [ (WString, "lfFaceName"), ]) +SECURITY_ATTRIBUTES = Struct("SECURITY_ATTRIBUTES", [ + (DWORD, "nLength"), + (LPVOID, "lpSecurityDescriptor"), + (BOOL, "bInheritHandle"), +]) # http://msdn.microsoft.com/en-us/library/ff485842.aspx # http://msdn.microsoft.com/en-us/library/windows/desktop/ms681381.aspx @@ -206,7 +211,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", ()), )