BOOL snapStream(LONG LuserId,LONG lChannel,char filename[256])
{
//FILE *Videofile = NULL;
Videofile = fopen(filename,"wb+");
NET_DVR_CLIENTINFO ClientInfo; // = {0}
memset(&ClientInfo, 0, sizeof(NET_DVR_CLIENTINFO));
//需要SDK解碼時句柄設為有效值,僅取流不解碼時可設為空
ClientInfo.hPlayWnd = NULL;
//預覽通道號
ClientInfo.lChannel = lChannel;
//最高位(31)為0表示主碼流,為1表示子碼流
ClientInfo.lLinkMode = 1;
//多播地址,需要多播預覽時配置
ClientInfo.sMultiCastIP = NULL;
BOOL bPreviewBlock = false;