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

📄 debugzones.h

📁 基于SD卡的软实现CSP程序
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
#ifndef INCL_DBGZONES_H
#define INCL_DBGZONES_H

// Definitions for our debug zones								 
#define ZONEID_INIT 	 0
#define ZONEID_CARD 	 1
#define ZONEID_CONTAINER 2
#define ZONEID_CONTEXT	 3
#define ZONEID_RSAPROV	 4
#define ZONEID_RSVD5	 5
#define ZONEID_RSVD6	 6
#define ZONEID_RSVD7	 7
#define ZONEID_RSVD8	 8
#define ZONEID_RSVD9	 9
#define ZONEID_RSVD10	10
#define ZONEID_RSVD11	11
#define ZONEID_RSVD12	12
#define ZONEID_RSVD13	13		  
#define ZONEID_WARN 	14
#define ZONEID_ERROR	15

// These masks are useful for initialization of dpCurSettings									 
#define ZONEMASK_INIT	   (1<<ZONEID_INIT) 
#define ZONEMASK_CARD	   (1<<ZONEID_CARD) 
#define ZONEMASK_CONTAINER (1<<ZONEID_CONTAINER) 
#define ZONEMASK_CONTEXT   (1<<ZONEID_CONTEXT) 
#define ZONEMASK_RSAPROV   (1<<ZONEID_RSAPROV) 
#define ZONEMASK_RSVD5	   (1<<ZONEID_RSVD5) 
#define ZONEMASK_RSVD6	   (1<<ZONEID_RSVD6) 
#define ZONEMASK_RSVD7	   (1<<ZONEID_RSVD7) 
#define ZONEMASK_RSVD8	   (1<<ZONEID_RSVD8) 
#define ZONEMASK_RSVD9	   (1<<ZONEID_RSVD9) 
#define ZONEMASK_RSVD10    (1<<ZONEID_RSVD10)
#define ZONEMASK_RSVD11    (1<<ZONEID_RSVD11)
#define ZONEMASK_RSVD12    (1<<ZONEID_RSVD12)
#define ZONEMASK_RSVD13    (1<<ZONEID_RSVD13)		 
#define ZONEMASK_WARN	   (1<<ZONEID_WARN )  
#define ZONEMASK_ERROR	   (1<<ZONEID_ERROR) 

#ifdef DEBUG
// These macros are used as the first arg to DEBUGMSG
#define ZONE_INIT		DEBUGZONE(ZONEID_INIT)
#define ZONE_CARD   	DEBUGZONE(ZONEID_CARD)
#define ZONE_CONTAINER 	DEBUGZONE(ZONEID_CONTAINER)
#define ZONE_CONTEXT	DEBUGZONE(ZONEID_CONTEXT)
#define ZONE_RSAPROV	DEBUGZONE(ZONEID_RSAPROV)
#define ZONE_RSVD5		DEBUGZONE(ZONEID_RSVD5)
#define ZONE_RSVD6		DEBUGZONE(ZONEID_RSVD6)
#define ZONE_RSVD7		DEBUGZONE(ZONEID_RSVD7)
#define ZONE_RSVD8		DEBUGZONE(ZONEID_RSVD8)
#define ZONE_RSVD9		DEBUGZONE(ZONEID_RSVD9)
#define ZONE_RSVD10 	DEBUGZONE(ZONEID_RSVD10)
#define ZONE_RSVD11 	DEBUGZONE(ZONEID_RSVD11)
#define ZONE_RSVD12 	DEBUGZONE(ZONEID_RSVD12)
#define ZONE_RSVD13 	DEBUGZONE(ZONEID_RSVD13)
#define ZONE_WARN		DEBUGZONE(ZONEID_WARN )
#define ZONE_ERROR		DEBUGZONE(ZONEID_ERROR)
#else		  
// For RETAIL builds, these conditionals are always 0
#define ZONE_INIT		0
#define ZONE_CARD 		0
#define ZONE_CONTAINER 	0
#define ZONE_CONTEXT	0
#define ZONE_RSAPROV	0
#define ZONE_RSVD5		0
#define ZONE_RSVD6		0
#define ZONE_RSVD7		0
#define ZONE_RSVD8		0
#define ZONE_RSVD9		0
#define ZONE_RSVD10 	0
#define ZONE_RSVD11 	0
#define ZONE_RSVD12 	0
#define ZONE_RSVD13 	0
#define ZONE_WARN		0
#define ZONE_ERROR		0

#endif//DEBUG

#endif//INCL_DBGZONES_H

⌨️ 快捷键说明

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