|

楼主 |
发表于 2020-5-13 18:47:17
|
显示全部楼层
bool MsgSend(MESSAGE_STACK* Stack, int Msg, duint Param1, duint Param2)
{
if(Stack->Destroy)
return false;
MESSAGE newMessage;
newMessage.msg = Msg;
newMessage.param1 = Param1;
newMessage.param2 = Param2;
// Asynchronous send
asend(Stack->msgs, newMessage);
return true;
}
代码就是怎么写的,我进去看了asend函数,他是VC\include\agents.h的函数
template <class _Type>
bool asend(_Inout_ ITarget<_Type> * _Trg, const _Type& _Data)
{
return details::_Originator::_asend(_Trg, _Data);
} |
|