Article View: pl.comp.lang.asm
Article #263problem z asm w c++
From: lemkat
Date: Sat, 20 May 2006 13:14
Date: Sat, 20 May 2006 13:14
65 lines
1816 bytes
1816 bytes
Mam funkcje ktora jest wywolywana przez aplikacje ktore wywoluja send(),
( inject dll to another process ) niestety problem polega na tym iz
aplikacje te wykonuja nieprawidlowa operacje i zostaja zamkniete, w
miejscu iBytes powinno byc __LOCAL_SIZE ale c++ builder nie rozpoznaje
__LOCAL_SIZE, jakies sugestie co jest nie tak i co moge zmienic aby dzialalo
void custom_sendto(void)
{
// send params
BYTE *buf;
int len;
int iBytes;
iBytes = sizeof( iBytes ) + sizeof( buf ) + sizeof( len );
_asm
{
push ebp
mov ebp, esp
sub esp, iBytes
mov eax, [ebp + MAGIC_STACKFRAME_SIZE + 4]
mov [buf], eax
mov eax, [ebp + MAGIC_STACKFRAME_SIZE + 8]
mov [len], eax
}
some code here...
_asm
{
mov esp, ebp
pop ebp
ret
}
};
Technical Details
Message-ID:
<e4n4nr$cde$1@atlantis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: lemkat <lemkat@eranet.pl> Newsgroups: pl.comp.lang.asm Subject: problem z asm w c++ Date: Sat, 20 May 2006 15:14:09 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 65 Message-ID: <e4n4nr$cde$1@atlantis.news.tpi.pl> NNTP-Posting-Host: cba100.neoplus.adsl.tpnet.pl Mime-Version: 1.0 X-Trace: atlantis.news.tpi.pl 1148130875 12718 83.30.98.100 (20 May 2006 13:14:35 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sat, 20 May 2006 13:14:35 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: pl, en-us, en X-Antivirus: avast! (VPS 0620-3, 19-05-2006), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit