public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* DllMain not called
@ 2020-02-07  8:47 Olivia Nelson
  2020-02-07 14:49 ` Marco Atzeri
  0 siblings, 1 reply; 10+ messages in thread
From: Olivia Nelson @ 2020-02-07  8:47 UTC (permalink / raw)
  To: cygwin

I have a simple C program that output something to DbgView on startup:

#include <windows.h>
BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                     )
{
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
        OutputDebugStringA("DLL_PROCESS_ATTACH called");
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
        break;
    }
    return TRUE;
}

I didn't observe anything when the DLL is loaded, what was wrong?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-02-10 18:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-07  8:47 DllMain not called Olivia Nelson
2020-02-07 14:49 ` Marco Atzeri
2020-02-07 15:07   ` Olivia Nelson
2020-02-07 15:46     ` Marco Atzeri
2020-02-07 18:19     ` Joost Kraaijeveld
2020-02-07 19:10     ` Joost Kraaijeveld
2020-02-08  0:12       ` DllMain not called in CreateRemoteThread Olivia Nelson
2020-02-08  5:40         ` Marco Atzeri
2020-02-09 14:52           ` Olivia Nelson
2020-02-10 18:50             ` Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).