source: trunk/Utilities/InjectLibrary/Library/dllmain.cpp

Last change on this file was 68, checked in by roman, 12 years ago
  • Property svn:keywords set to Id
File size: 751 bytes
Line 
1////////////////////////////////////////////////////////////
2// Copyright (C) Roman Ryltsov, 2008-2012
3// Created by Roman Ryltsov roman@alax.info
4//
5// $Id: dllmain.cpp 68 2012-06-11 14:23:05Z roman $
6
7#include "stdafx.h"
8
9BOOL APIENTRY DllMain(HMODULE hModule, DWORD nReason, VOID* pvReserved)
10{
11        pvReserved;
12        TCHAR pszMessage[1024] = { 0 };
13        _stprintf_s(pszMessage, _T("GetCurrentProcessId() %d, hModule 0x%p, nReason %d\r\n"), GetCurrentProcessId(), hModule, nReason);
14        //MessageBox(NULL /*GetActiveWindow()*/, pszMessage, _T("Debug"), MB_ICONINFORMATION | MB_OK);
15        OutputDebugString(pszMessage);
16        //switch(nReason)
17        //{
18        //case DLL_PROCESS_ATTACH:
19        //case DLL_THREAD_ATTACH:
20        //case DLL_THREAD_DETACH:
21        //case DLL_PROCESS_DETACH:
22        //      break;
23        //}
24        return TRUE;
25}
26
Note: See TracBrowser for help on using the repository browser.