X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=winapi.py;h=5345a0dc5bd62ec527298d7cdf371051a06d1fa5;hb=7012598b8837eee4b633bb1dd3a6a465c5ec5b13;hp=eec3fde014470244d7f44d2aedca964c3d6ad7df;hpb=f20c12630e0f1e12c4740478ab760b0013592946;p=apitrace diff --git a/winapi.py b/winapi.py index eec3fde..5345a0d 100644 --- a/winapi.py +++ b/winapi.py @@ -25,7 +25,7 @@ """Win32 API type description.""" -from base import * +from stdapi import * SHORT = Alias("SHORT", Short) USHORT = Alias("USHORT", UShort) @@ -199,13 +199,13 @@ class Dll: print r' if(!GetSystemDirectory(g_szDll, MAX_PATH))' print r' return FALSE;' print r' _tcscat(g_szDll, TEXT("\\%s.dll"));' % self.name - print r' Log::Open("%s");' % self.name + print r' Trace::Open("%s");' % self.name print r' case DLL_THREAD_ATTACH:' print r' return TRUE;' print r' case DLL_THREAD_DETACH:' print r' return TRUE;' print r' case DLL_PROCESS_DETACH:' - print r' Log::Close();' + print r' Trace::Close();' print r' if(g_hDll) {' print r' FreeLibrary(g_hDll);' print r' g_hDll = NULL;'