#if !defined(AFX_STDAFX_H__5ED3FEF7_78C3_4C54_AFA5_8ABDDFEDBBF2__INCLUDED_)
#define AFX_STDAFX_H__5ED3FEF7_78C3_4C54_AFA5_8ABDDFEDBBF2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// stdafx.h : include file for standard system include files,
//      or project specific include files that are used frequently,
//      but are changed infrequently

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxctl.h>         // MFC support for ActiveX Controls
#include <afxext.h>         // MFC extensions
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Comon Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <process.h> 

// Delete the two includes below if you do not wish to use the MFC
//  database classes
#include <afxdb.h>			// MFC database classes
#include <afxdao.h>			// MFC DAO database classes

#include "launet.h"

#define FACE_COLOR		RGB(10,10,10)//RGB(192,0,192)//
#define UNLINK_COLOR	RGB(198,190,155)
#define SERIAL_MAXRECVSIZE 1024

//用户指定录像文件夹,与DXHJ的用户指定文件名、264后缀等不大噶
//#define USER_CUSTOMRECDIR
//用户指定抓拍文件夹,与DXHJ的用户指定文件名、264后缀等不大噶
//#define USER_CUSTOMCAPBMPDIR
//亿维定制图片抓拍命名规则：视频服务器的ip+通道+时间
//#define USER_YWPICNAME_URL

/*
文件记录索引格式
*/
typedef struct
{
	char sername[40];
	unsigned char ch;
	int           year;
	unsigned char month;
	unsigned char day;
	unsigned char hour;
	unsigned char minute;
	unsigned char second;
	int		      revtype;
#ifdef USER_CUSTOMFILENAME
    char          filename[MAX_PATH];
#endif
}FLATFISH_RECINDEX;

#define NET_MSG_ID	(WM_USER + 300)
#define WM_SERIAL   (WM_USER + 301)
#define WM_USERMSG_JPEGEVENT	(WM_USER + 302)
#define WM_USERMSG_JPEGDATA		(WM_USER + 303)
#define WM_USEABLEWIFI			(WM_USER + 304)
#define WM_INVALIDATE			(WM_USER + 305)

//#define CONTROL_TYPE_DXHJ_H264
#define MP4_FILEEXPAND      "264"
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__5ED3FEF7_78C3_4C54_AFA5_8ABDDFEDBBF2__INCLUDED_)