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

📄 projpch.h

📁 最近在学习directshow, Directshow实务精选的源代码
💻 H
字号:

/*++

    Copyright (c) 2000-2002  Microsoft Corporation.  All Rights Reserved.

    Module Name:

        projpch.h

    Abstract:

        Common include for all components hosted in the AX file.

    Notes:

--*/


#ifndef __projpch_h
#define __projpch_h

#if(_WIN32_WINNT < 0x0400)
#undef  _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif

// (Build Compatibility for VC6/PSDK/VC.NET)
//
// To allow a clean build with standard Visual C++ 6.0 headers
// (without benefit of an updated Platform SDK), define SOCKET
// to prevent compilation errors within <winsock2.h>.
typedef unsigned int    SOCKET;

// Include before Windows.h to prevent inclusion of Winsock.h
#include <winsock2.h>   


#include <streams.h>
#include <tchar.h>

#include <nspapi.h>
#include <ws2tcpip.h>

#define LOOPBACK_IFC                "Loopback\0"
#define ANY_IFC                     "any\0"
#define UNDEFINED_STR               "undefined\0"

//  combo boxes don't like to have -1 data associated with them, so we flag with the
//   next most unlikely value, I think ..
#define UNDEFINED                   ((-1) & ~1)

#define MAX_UDP_PAYLOAD             (65536 - 20 - 8)
#define MAX_IOBUFFER_LENGTH         8192
#define TS_PACKET_LENGTH            188

#define RELEASE_AND_CLEAR(p)        if (p) { (p) -> Release () ; (p) = NULL ; }
#define DELETE_RESET(p)             { delete (p) ; (p) = NULL ; }

template <class T> T Min (T a, T b) { return (a < b ? a : b) ; }

#endif  __projpch_h

⌨️ 快捷键说明

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