18,356
社区成员
发帖
与我相关
我的任务
分享
void __declspec(naked) custom_send(void)
{
// send params
BYTE *buf;
int len;
_asm {
push ebp
mov ebp, esp
sub esp, __LOCAL_SIZE
mov eax, [ebp + MAGIC_STACKFRAME_SIZE + 4]
mov [buf], eax
mov eax, [ebp + MAGIC_STACKFRAME_SIZE + 8]
mov [len], eax
}
//这里怎么处理 buf就是数据
_asm {
mov esp, ebp
pop ebp
ret
}
};