From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66864 invoked by alias); 7 Feb 2020 14:49:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 66774 invoked by uid 89); 7 Feb 2020 14:49:04 -0000 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 Received: from mail-wr1-f46.google.com (HELO mail-wr1-f46.google.com) (209.85.221.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Feb 2020 14:49:03 +0000 Received: by mail-wr1-f46.google.com with SMTP id z3so3035220wru.3 for ; Fri, 07 Feb 2020 06:49:03 -0800 (PST) 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== Return-Path: Received: from ?IPv6:2003:ee:6727:2e01:a538:71e4:6454:c4e0? (p200300EE67272E01A53871E46454C4E0.dip0.t-ipconnect.de. [2003:ee:6727:2e01:a538:71e4:6454:c4e0]) by smtp.gmail.com with ESMTPSA id e17sm3400877wrn.62.2020.02.07.06.48.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Feb 2020 06:49:00 -0800 (PST) Subject: Re: DllMain not called To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: Date: Fri, 07 Feb 2020 14:49:00 -0000 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 X-SW-Source: 2020-02/txt/msg00049.txt.bz2 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