⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdafx.h

📁 一个在Linux下开发的IP摄像头的驱动程序及控制软件
💻 H
字号:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently

#pragma once

#pragma comment(linker, "/nodefaultlib:libc.lib")
#pragma comment(linker, "/nodefaultlib:libcd.lib")

// NOTE - this is value is not strongly correlated to the Windows CE OS version being targeted
#define WINVER _WIN32_WCE

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

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS	// some CString constructors will be explicit
#ifdef _CE_DCOM
#define _ATL_APARTMENT_THREADED
#endif

// turns off MFC's hiding of some common and often safely ignored warning messages
#define _AFX_ALL_WARNINGS

#include <ceconfig.h>
#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
#define SHELL_AYGSHELL
#endif

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions

#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#endif



#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT



#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)
#ifndef _DEVICE_RESOLUTION_AWARE
#define _DEVICE_RESOLUTION_AWARE
#endif
#endif

#ifdef _DEVICE_RESOLUTION_AWARE
#include "DeviceResolutionAware.h"
#endif

#ifdef SHELL_AYGSHELL
#include <aygshell.h>
#pragma comment(lib, "aygshell.lib") 
#endif // SHELL_AYGSHELL

#if (_WIN32_WCE < 0x500) && ( defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP) )
	#pragma comment(lib, "ccrtrtti.lib")
	#ifdef _X86_	
		#if defined(_DEBUG)
			#pragma comment(lib, "libcmtx86d.lib")
		#else
			#pragma comment(lib, "libcmtx86.lib")
		#endif
	#endif
#endif

#include <altcecrt.h>


enum CH_STATUS
{
	channelStopped = 0,
	channelConnecting = 1,
	channelConnected = 2,
	channelDisconnecting = 3,
};

enum ETalkState
{
	eTalkNone = 0,
	eTalkEstablishing = 1,
	eTalkTalking = 2,
	eTalkStopping = 3,
};

enum ERtspRunState
{
	eRtspStNone = 0,
	eRtspStPlay = 1,
	eRtspStPause = 2,
};

typedef struct Channel_Info
{
	HANDLE				hDataConn;
	HANDLE				hChannel;
	HWND				hDisplay;
	TCHAR 				szHostIP[64];
	TCHAR				szUserName[32];
	TCHAR				szPassword[32];
	TCHAR				szServer_Type[32];
	TCHAR				szLocation[64];
	TCHAR				szUserUrl[MAX_PATH];
	TCHAR				szUserUrlExtra[MAX_PATH];
	DWORD				dwHTTPPort;
	DWORD				dwCtrlPort;	// for RTSP server
	DWORD				dwProtocol;//1->TCP,2->UDP,3->HTTP
	DWORD				dwMediaType;
	DWORD				dwCamera;	// only for VS2K
	DWORD				dwVSize;	// only for VS2K
	DWORD				dwQuality;	// only for VS2K
	DWORD				dwContext;

	DWORD				dwVideo_Width;
	DWORD				dwVideo_Height;
	BOOL				bConnecting;
	BOOL				bRecording;

	DWORD				dwWantMedia;
	CH_STATUS			chStatus;

	DWORD				dwTickStart;
	void				*pvDlg;

	// for packet maker
	HANDLE				hAudioCapCh;

	// for tx operation
	int					nTxConn;	// 0 nothing, 1 txing, 2 talking
	DWORD				dwBufLen;
	BYTE				*pbyTxData;
	int					iAudioMode;
	DWORD				dwPrivilege;
	ETalkState			eTalkState;
	DWORD				dwAOnlyCBCount;
	int					nXAdd;
	int					nYAdd;
	int					nLastSecond;
	DWORD				dwLastAudioSec;
	DWORD				dwLastAudioMiliSec;
	BOOL				bUserStoppingTalk;
	DWORD				dwAOnlyX;
	DWORD				dwAOnlyY;

	// for statistics
	int					nFrames;
	DWORD				dwReconnCnt;

	// for auto reconnect
	BOOL				bUserStop;
	BOOL				bNeedReconnect;

	// for RTSP
	DWORD				dwMediaStart;
	DWORD				dwMediaEnd;
	ERtspRunState		eRtspState;
} TCHANNEL_INFO, *PTCHANNEL_INFO;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -