From: José Fonseca Date: Mon, 13 Apr 2009 12:49:51 +0000 (+0100) Subject: Open the log when the dll is loaded. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=df82498bac49066de65c179a31cdcd67f0128ab8;p=apitrace Open the log when the dll is loaded. --- diff --git a/windows.py b/windows.py index d9b915b..dba4bca 100644 --- a/windows.py +++ b/windows.py @@ -164,6 +164,7 @@ 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' case DLL_THREAD_ATTACH:' print r' return TRUE;' print r' case DLL_THREAD_DETACH:' @@ -184,7 +185,7 @@ class Dll: for function in self.functions: type = 'P' + function.name print function.prototype() + ' {' - if 1: + if 0: print ' Log::Close();' print ' Log::Open("%s");' % self.name #print ' Log::ReOpen();'