delorie.com/archives/browse.cgi | search |
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=Epri7nu48cz/VxAb | |
RHymGYFKsaBTfNccYKj9ZsYwbtM6MsTvSiK/pCspft3kqyH8888Xmthkttcqfpil | |
H7qFpW51SQw8JUDwcJinEr4Ce1FxVYVJgHTIazEVHvw2+uw115u0rq7d2FVrQ269 | |
sSsT4xiRtMdXWbNBID7xTmqKC5I= | |
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=8X0fJQ9xXdFI8J/5z6SeQQ | |
Ra1fU=; b=eURcV9ZfZxC9fkVhGqrpxZTkYcn6vRf4gTF7C2MC9YKUnPseuk+uL3 | |
Z58btN7GjDG8bIvnnfdbNlCPUMMvL8jxExPj3VbHhk2CA+6FkkHlpZ6I6a43tJjM | |
CDtRtB576Xk+1Ne8PEQUG6VglhvOW6Bu3zLqJpsRPCyF4snTYo77w= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=joost, Joost, H*f:sk:5a745b3, injector |
X-HELO: | mail-wr1-f44.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=nfNwkwPz4uoYTA59n8Picnli9rnR+QeIaJ+JNEx3A6w=; b=qCRXoLrBR19gLOO/Ykd+ip855JOxwflD+wVLCPkRXMR1IUdUW4VXzPbaLiqyYSpcNY FsGGVroBzsGWjeRDglBak40hxvszUL2fyccR0nk0BsiArMMzbNbqyW2dTXC2UK1UIca6 kp7gusO/5VywKrKywEu4RU3eM0IXuo0CPAM/fLxISSn5Vt+QEZ1SzMtxAYp2Wha5ZEti kpoGg3wZF8zI+L1O/YUVQLdcobI/g3V+9k02OXHopxFE8VYDlFPeyXOzmQoB8mF77dpH CTPcNko1C4b9lqx729ZnWTyj2I/JHa5QUhIZSS8YLFoNoOwp9HSGkJaaSgJtsQwfoE9o g0OQ== |
Subject: | Re: DllMain not called in CreateRemoteThread |
To: | cygwin AT cygwin DOT com |
References: | <CAJZVxRkk3K6jOtiXUsW6iOFzDAGm4yf393zcYTYphfCKY-qSQg AT mail DOT gmail DOT com> <c9486fc4-b69f-2704-b759-ce8a5ab23965 AT gmail DOT com> <CAJZVxR=gFdeYeZYorqmxOL_BKXcrO22EqsMbteD-h+qT9igngg AT mail DOT gmail DOT com> <5a745b381650978f29cb650757ffa3c4acc62f49 DOT camel AT Askesis DOT nl> <CAJZVxR==EeX0y02Y5_ZhoFKnFCMmONg_-7jzv93pZqmrSdK-pA AT mail DOT gmail DOT com> |
From: | Marco Atzeri <marco DOT atzeri AT gmail DOT com> |
Message-ID: | <a723e665-7266-aafa-3578-16387903fd7c@gmail.com> |
Date: | Sat, 8 Feb 2020 06:39:58 +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: | <CAJZVxR==EeX0y02Y5_ZhoFKnFCMmONg_-7jzv93pZqmrSdK-pA@mail.gmail.com> |
X-IsSubscribed: | yes |
please bottom post on this mailing list Am 08.02.2020 um 01:12 schrieb Olivia Nelson: > Sorry, I made a mistake. I've updated the title .. > > To summarize: > > 1. I can load the DLL compiled with cygwin with LoadLibraryA, > but not remotely with CreateRemoteThread. > 2. The same DLL compiled with msvc works with both LoadLibraryA and > CreateRemoteThread > > Answer to Joost: > constructor and destructor are called with LoadLibraryA, but not with > CreateRemoteThread either > > Answer to Marco > 1. I can't use mingw, it does not provide sys/XXX.h, e,g socket > 2. I copied cygwin1.dll to system32, and it works outside cygwin environment > > Here's a implementation of the DLL injector in C#: > https://codingvision.net/miscellaneous/c-inject-a-dll-into-a-process-w-createremotethread > Which of the sys/XXX.h are you looking for ? $ cygcheck -l mingw64-x86_64-headers | grep "/sys/" /usr/x86_64-w64-mingw32/sys-root/mingw/include/sec_api/sys/timeb_s.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/cdefs.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/fcntl.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/file.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/locking.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/param.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/stat.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/time.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/timeb.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/types.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/unistd.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/sys/utime.h for what I know the Windows program use winsock2.h and winsock.h for their own socket interface $ cygcheck -l mingw64-x86_64-headers | grep "sock" /usr/x86_64-w64-mingw32/sys-root/mingw/include/hvsocket.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/mswsock.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/psdk_inc/_socket_types.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock.h /usr/x86_64-w64-mingw32/sys-root/mingw/include/winsock2.h -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |