X-Recipient: archive-cygwin AT delorie DOT 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=CXgBRL6OE8TH6ydq pHY3rLTKmMbDxirRwPc7LJMdXYhNpwAP4OznqpU4GXQIzzg76jqxb7/oPHRDO4hu 1JPFeoINNAtoQhw/0cmKZIjI7ne/Gqs0anz9hnvRK+N4GJTk3+YZuM8JKfvMGjI8 +Yyh/pCB5Ig9kg0GFzqAcutTvGk= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=lh00pNnL59kw+disyTLUxj ZH2D4=; b=un9g8nz6MgWXDEL6Nq3cxWo/K0IwPhN08lJmKY7lfInOxbbeBHnXj2 nfGYHA0V2lDX9K2PZz42FTEN88tTSKu5hW/DNEiWy9ds510+w9vieFLRHFtseFpy p7n56k7oME2nAkwaRPg23AB/RJZOW0+IIKR31hwA9CUk+JTzNLzuA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=olivia, Olivia, lpReserved, DbgView X-HELO: mail-wr1-f46.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=B0EUOxbnBWdgAt+TfkXxiKiCpbumWVnpK9HbfA+AvuY=; b=CRpxjmQGpKr1nRFWgoJ0B8uUjD4AboDehQwLyZNrVLdqoSXFKY49HT+BVeXkAp8vu5 lrpq1JZXlMG+w2252FPlP2tOpAm0zNucT5UbRfX3PD5jrjckgroq7PZhkw285c08yTvX V32VAKMBLiTftGmTiQffzyUUbnKbCCPBnP4skFKcI0l1mNjWQnVhDLiQXd9eOeGPcQfD fIx88cpcRlL647ogGaeI5fR90HBXxdVfn6qctzIBh5gDY5uptoyqQy0LWxjaBVB240bm DD0+FQyN9WVnnPVQOhixwBke7/tP40hAuyqZNdkIrisP9nApV30s7UW6bgdVaBYczm7t ZGRw== Subject: Re: DllMain not called To: cygwin AT cygwin DOT com References: From: Marco Atzeri Message-ID: Date: Fri, 7 Feb 2020 15:48:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Am 07.02.2020 um 09:46 schrieb Olivia Nelson: > I have a simple C program that output something to DbgView on startup: > > #include > 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? > This seems a pure Windows program, not a Unix like. How you compiled it and how are you tring to run it ? Regards Marco -- 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