X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; q=dns; s=default; b=L4iE0iFvVbWxQ8GwRQ2W4scCSK3Nw
	S8irW4whCqFC6nfQYzxaptmJkNg5y1Ur2PVVTnGj5LiHkldaN/V79ofvy9WcX0sH
	IU64x1q+k+u+9fcSMk8XxU56FbtDdCyvnow67aCh2Wl6PneZP9s7kIsm6R809HM4
	/MksCpZ7jNwUr8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:from:date:message-id:subject:to
	:content-type; s=default; bh=gHwQOaLze+ue7hcKHrjYZWUw3xs=; b=Uk2
	JTpgEcZOrsWe1lBKJUiYJaNfbPGfgh+bhBKJHvojlfP9/QED7su7S1ZCvMvT7lL1
	XmygLZEx4vEbooGnIF3cX15VzeK+usdvj4QWzgrw4suxMqUDN7YRcUE91rtGMIpl
	3mkG/hxb/ZIEhq0gPV7SchcdHPAYp704/qmMt9eo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=
X-HELO: mail-vs1-f54.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20161025;        h=mime-version:from:date:message-id:subject:to;        bh=m4HcB9iPMVS+ewqCsKHlH11GXQoM8WGxrX9zUxTfMjQ=;        b=ny7K9L8Z6Dypm6XYuSUiG0LmEj/wx1cJ4Nw409OeG8RfcD6dD4BXEXBBaf4QSH/0Wq         9+NDD+qudKMn9skwyu0KZaqbOdn9JVTTYQFp6s4U8Z/mJQJLqq3PzyWYzTDvM9vX665W         gYt4hkrrmL0Nu098Ek2vO1gYi9hkfs9av4dCXX7FTiITd6UN8Sj3LGRviyV8qxjCMWZq         okXmRwEVNKKGPg2dy0L1zYe9KD6QXFjyW4bRou4a3N0Ms8aCBuq85GWQCfehFxVihAo7         73mTkHRLUAJtFtFXm7y0iZlsm9oFQlwgjh08h4k9QPdPLTR8LWUB6UOaxrNJcEgL0JfA         tWLQ==
MIME-Version: 1.0
From: Olivia Nelson <the.warl0ck.1989@gmail.com>
Date: Fri, 7 Feb 2020 16:46:47 +0800
Message-ID: <CAJZVxRkk3K6jOtiXUsW6iOFzDAGm4yf393zcYTYphfCKY-qSQg@mail.gmail.com>
Subject: DllMain not called
To: cygwin@cygwin.com
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

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

