Article View: pl.comp.lang.asm
Article #1564Argumenty funkcji
From: Remek
Date: Sat, 24 Nov 2007 13:18
Date: Sat, 24 Nov 2007 13:18
20 lines
1259 bytes
1259 bytes
Witam
Mam Dll zrobiona w C++, w której jest jedna funkcja:
{
int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*
lpReserved)
}
Jak tę funkcję wywołac z poziomu asemblera? Jakie należy podac parametry?
Póki co jako "HINSTANCE hinst" podaję uchwyt biblioteki uzyskany przez
LoadLibrary, jako "lpReserved" daję 0 (null). A co podać jako "unsigned
long reason"?
push 0
push offset ???
push offset hLib
call F1_Offset
Remek
Technical Details
Message-ID:
<fi984m$mhm$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: "Remek" <wiasmed@neostrada.pl> Newsgroups: pl.comp.lang.asm Subject: Argumenty funkcji Date: Sat, 24 Nov 2007 14:18:01 +0100 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 21 Message-ID: <fi984m$mhm$1@inews.gazeta.pl> NNTP-Posting-Host: 213.199.219.7 Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1195910103 23094 213.199.219.7 (24 Nov 2007 13:15:03 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Sat, 24 Nov 2007 13:15:03 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-User: remeka X-MSMail-Priority: Normal Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit