예제 #1
0
파일: dvcman.c 프로젝트: lvyu/FreeRDP-1.0
static int dvcman_push_event(IWTSVirtualChannelManager* pChannelMgr,
                             FRDP_EVENT* pEvent)
{
    DVCMAN* dvcman = (DVCMAN*)pChannelMgr;
    int error;

    error = drdynvc_push_event(dvcman->drdynvc, pEvent);
    if (error == 0)
    {
        DEBUG_DVC("event_type %d pushed.", pEvent->event_type);
    }
    else
    {
        DEBUG_WARN("event_type %d push failed.", pEvent->event_type);
    }
    return error;
}
예제 #2
0
파일: dvcman.c 프로젝트: Auto-Droid/FreeRDP
static int dvcman_push_event(IWTSVirtualChannelManager *pChannelMgr, wMessage *pEvent)
{
	int status;
	DVCMAN *dvcman = (DVCMAN *) pChannelMgr;
	assert(dvcman);
	status = drdynvc_push_event(dvcman->drdynvc, pEvent);

	if (status == 0)
	{
		DEBUG_DVC("event_type %d pushed.", GetMessageType(pEvent->id));
	}
	else
	{
		DEBUG_WARN("event_type %d push failed.", GetMessageType(pEvent->id));
	}

	return status;
}