4 * A stub DllMain function which will be called by DLLs which do not
5 * have a user supplied DllMain.
8 * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
10 * THIS SOFTWARE IS NOT COPYRIGHTED
12 * This source code is offered for use in the public domain. You may
13 * use, modify or distribute it freely.
15 * This code is distributed in the hope that it will be useful but
16 * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY
17 * DISCLAMED. This includes but is not limited to warrenties of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 * $Date: 1999/04/14 00:51:19 $
29 void debug_printf(char* fmt
, ...)
36 OutputHandle
= GetStdHandle(STD_OUTPUT_HANDLE
);
38 vsprintf(buffer
,fmt
,args
);
39 WriteConsoleA(OutputHandle
, buffer
, strlen(buffer
), NULL
, NULL
);
43 BOOL WINAPI
DllMain (HANDLE hDll
, DWORD dwReason
, LPVOID lpReserved
)