xuejianhui

导航

回调函数的使用格式

#include<WinDef.h>

//定于播放接口
typedef VOID(CALLBACK *pfRealDataCallBack)(CHAR *szBuffer, LONG lSize, VOID *pUsrData);
_HW_PU_API ULONG __stdcall IVS_PU_RealPlay(ULONG ulIdentifyID, 
                                            LPPU_CLIENT_INFO_S pstClientInfo, 
                                            pfRealDataCallBack fRealDataCallBack, 
                                            VOID *pUsrData);

//本地调用接口
ULONG ulPlayhandle = IVS_PU_RealPlay(g_struDeviceInfo[iDeviceIndex].lLoginID, 
                                    &clientinfo, 
                                    FedReaplayMessageCallback, 
                                    &g_struDeviceInfo[iDeviceIndex].lLoginID);

//本地回调实现
void CALLBACK FedReaplayMessageCallback(CHAR * szBuffer, LONG lSize, void *pUsrData)
{
    // Do your thing... ...
}

posted on 2012-10-22 17:40  xuejianhui  阅读(304)  评论(0编辑  收藏  举报