simplified
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1603 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -36,32 +36,22 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
RCSID("$Id$");
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
void msg(char *text)
|
BOOL WINAPI
|
||||||
{
|
DllMain (HANDLE hInst,
|
||||||
HWND wnd = GetActiveWindow();
|
|
||||||
|
|
||||||
MessageBox(wnd, text, "KClient message", MB_OK|MB_APPLMODAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOL WINAPI DllMain (HANDLE hInst,
|
|
||||||
ULONG reason,
|
ULONG reason,
|
||||||
LPVOID lpReserved)
|
LPVOID lpReserved)
|
||||||
{
|
{
|
||||||
WORD wVersionRequested;
|
|
||||||
WSADATA wsaData;
|
|
||||||
int err;
|
|
||||||
switch(reason) {
|
switch(reason) {
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
WSACleanup();
|
default:
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
msg("Initializing krb4.dll OK");
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user