Click here to Skip to main content
16,014,860 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateWindow from DLL Pin
Tomasz Sowinski4-Apr-02 9:16
Tomasz Sowinski4-Apr-02 9:16 
GeneralRe: CreateWindow from DLL Pin
User 66584-Apr-02 9:27
User 66584-Apr-02 9:27 
GeneralRe: CreateWindow from DLL [corrected] Pin
Joaquín M López Muñoz4-Apr-02 9:37
Joaquín M López Muñoz4-Apr-02 9:37 
GeneralRe: CreateWindow from DLL [corrected] Pin
User 66584-Apr-02 9:55
User 66584-Apr-02 9:55 
GeneralRe: CreateWindow from DLL [corrected] Pin
Joaquín M López Muñoz4-Apr-02 9:58
Joaquín M López Muñoz4-Apr-02 9:58 
GeneralRe: CreateWindow from DLL [corrected] Pin
User 66584-Apr-02 10:02
User 66584-Apr-02 10:02 
GeneralRe: CreateWindow from DLL [corrected] Pin
Joaquín M López Muñoz4-Apr-02 10:07
Joaquín M López Muñoz4-Apr-02 10:07 
GeneralRe: CreateWindow from DLL [corrected] Pin
User 66584-Apr-02 10:12
User 66584-Apr-02 10:12 
CreateWindow is called from the DllMain function:

BOOL APIENTRY DllMain( HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved )
{
     hInstance = hModule;
    
     if (dwReason == DLL_PROCESS_ATTACH) 
     {
        CreateLogWindow(hInstance);		
     }
     else if (dwReason == DLL_PROCESS_DETACH) 
     {
     }

     return TRUE;
}


And I think the EXE has a message pump since it has a main window.

Probably there is to mention that my Dll is one using the Microsoft Detours libary. Perhaps you know about it. My Dll attaches itself to an exe and thus can interupt Api calls from the main app and modify them.

This way I want to intercept the send() and sendto() functions in order to watch what the apps are sending. The window I want to create shall display the buffer of send() and sendto()

regards

modified 12-Sep-18 21:01pm.

GeneralRe: CreateWindow from DLL [corrected] Pin
Joaquín M López Muñoz4-Apr-02 10:18
Joaquín M López Muñoz4-Apr-02 10:18 
GeneralRe: CreateWindow from DLL [corrected] Pin
User 66584-Apr-02 10:22
User 66584-Apr-02 10:22 
GeneralRe: CreateWindow from DLL [corrected] Pin
Joaquín M López Muñoz4-Apr-02 10:25
Joaquín M López Muñoz4-Apr-02 10:25 
GeneralRe: CreateWindow from DLL Pin
Jeremy Falcon4-Apr-02 9:39
professionalJeremy Falcon4-Apr-02 9:39 
GeneralRe: CreateWindow from DLL Pin
User 66584-Apr-02 9:46
User 66584-Apr-02 9:46 
GeneralRe: CreateWindow from DLL Pin
Jeremy Falcon4-Apr-02 10:12
professionalJeremy Falcon4-Apr-02 10:12 
GeneralRe: CreateWindow from DLL Pin
Tim Smith4-Apr-02 10:19
Tim Smith4-Apr-02 10:19 
GeneralRe: CreateWindow from DLL Pin
User 66584-Apr-02 10:16
User 66584-Apr-02 10:16 
GeneralRe: CreateWindow from DLL Pin
Tomasz Sowinski4-Apr-02 10:21
Tomasz Sowinski4-Apr-02 10:21 
GeneralRe: CreateWindow from DLL Pin
User 66584-Apr-02 10:26
User 66584-Apr-02 10:26 
GeneralRe: CreateWindow from DLL Pin
Joaquín M López Muñoz4-Apr-02 10:23
Joaquín M López Muñoz4-Apr-02 10:23 
GeneralRe: CreateWindow from DLL Pin
Jeremy Falcon4-Apr-02 10:23
professionalJeremy Falcon4-Apr-02 10:23 
GeneralRe: CreateWindow from DLL Pin
Tim Smith4-Apr-02 11:53
Tim Smith4-Apr-02 11:53 
GeneralCImageList + BitBlt Pin
4-Apr-02 8:15
suss4-Apr-02 8:15 
GeneralRe: CImageList + BitBlt Pin
Shog94-Apr-02 9:15
sitebuilderShog94-Apr-02 9:15 
GeneralRe: CImageList + BitBlt Pin
4-Apr-02 9:39
suss4-Apr-02 9:39 
GeneralCPrintDialog Pin
Rick Crone4-Apr-02 8:14
Rick Crone4-Apr-02 8:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.