_SignalID, _BlockOnID, Get_Cur_Thread_Handle

Hello, everyone, I want to wrap these VMMCall, are these right?
Thanks

void VXDINLINE
SignalID(DWORD id)
{
_asm push [id]
VMMCall( _SignalID );
_asm add esp, 04h
}

void VXDINLINE
BlockOnID(DWORD id, ULONG Flags)
{
_asm push [Flags]
_asm push [id]
VMMCall( _BlockOnID );
_asm add esp, 08h
}

DWORD VXDINLINE
Get_Cur_Thread_Handle()
{
DWORD hThread;
VMMCall( Get_Cur_Thread_Handle );
_asm mov [hThread], edi
return hThread;
}

Min


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Yeah, these wrappers are quite right.

----- Original Message -----
From: “jiangmin”
To: “NT Developers Interest List”
Sent: Friday, January 25, 2002 2:17 AM
Subject: [ntdev] _SignalID, _BlockOnID, Get_Cur_Thread_Handle

> Hello, everyone, I want to wrap these VMMCall, are these right?
> Thanks
>
> void VXDINLINE
> SignalID(DWORD id)
> {
> _asm push [id]
> VMMCall( _SignalID );
> _asm add esp, 04h
> }
>
> void VXDINLINE
> BlockOnID(DWORD id, ULONG Flags)
> {
> _asm push [Flags]
> _asm push [id]
> VMMCall( _BlockOnID );
> _asm add esp, 08h
> }
>
> DWORD VXDINLINE
> Get_Cur_Thread_Handle()
> {
> DWORD hThread;
> VMMCall( Get_Cur_Thread_Handle );
> _asm mov [hThread], edi
> return hThread;
> }
>
> Min
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@nival.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com