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

📄 debug.h

📁 这是运行在windows ce 4.2 版本下的关于硬盘加载的驱动程序
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
#ifndef _DEBUG_H_
#define _DEBUG_H_

#include "atapi2.h"

#ifdef DEBUG
//
// Debug zones
//
#define ZONEID_INIT        0
#define ZONEID_DEINIT      1
#define ZONEID_MAIN       2
#define ZONEID_IO          3
#define ZONEID_PCMCIA     4
#define ZONEID_PCI         5
#define ZONEID_IOCTL       6
#define ZONEID_CDROM      7
#define ZONEID_DMA        8
#define ZONEID_WARNING   12
#define ZONEID_ERROR      13
#define ZONEID_HELPER     14
#define ZONEID_CURRENT   15


#define ZONE_INIT        DEBUGZONE(ZONEID_INIT)
#define ZONE_DEINIT      DEBUGZONE(ZONEID_DEINIT)
#define ZONE_MAIN       DEBUGZONE(ZONEID_MAIN)
#define ZONE_IO          DEBUGZONE(ZONEID_IO)
#define ZONE_PCMCIA     DEBUGZONE(ZONEID_PCMCIA)
#define ZONE_PCI         DEBUGZONE(ZONEID_PCI)
#define ZONE_IOCTL      DEBUGZONE(ZONEID_IOCTL)
#define ZONE_CDROM      DEBUGZONE(ZONEID_CDROM)
#define ZONE_DMA        DEBUGZONE(ZONEID_DMA)
#define ZONE_WARNING    DEBUGZONE(ZONEID_WARNING)
#define ZONE_ERROR      DEBUGZONE(ZONEID_ERROR)
#define ZONE_HELPER     DEBUGZONE(ZONEID_HELPER)
#define ZONE_CURRENT    DEBUGZONE(ZONEID_CURRENT)

#define ZONEMASK_INIT        ( 1 << ZONEID_INIT)
#define ZONEMASK_DEINIT     ( 1 << ZONEID_DEINIT)
#define ZONEMASK_MAIN       (1 << ZONEID_MAIN)
#define ZONEMASK_IO          (1 << ZONEID_IO)
#define ZONEMASK_PCMCIA     ( 1 << ZONEID_PCMCIA)
#define ZONEMASK_PCI         (1 << ZONEID_PCI)
#define ZONEMASK_IOCTL      ( 1 << ZONEID_IOCTL)
#define ZONEMASK_CDROM      (1 << ZONEID_CDROM)
#define ZONEMASK_DMA        (1 << ZONEID_DMA)
#define ZONEMASK_WARNING   (1 << ZONEID_WARNING)
#define ZONEMASK_ERROR      ( 1 << ZONEID_ERROR)
#define ZONEMASK_HELPER     ( 1 << ZONEID_HELPER)
#define ZONEMASK_CURRENT   ( 1<<ZONEID_CURRENT)

void DumpRegKey( DWORD dwZone, PTSTR szKey, HKEY hKey);
#define DUMPREGKEY(dwZone, szKey, hKey) DumpRegKey(dwZone, szKey, hKey)
void AtaPrintIdentify(IDENTIFY_DATA *pId);
#define ATAPRINTIDENTIFY(pId) AtaPrintIdentify( pId)

#else
#define DUMPREGKEY(dwZone, szKey, hKey)
#define ATAPRINTIDENTIFY(pId) 
#endif  // DEBUG

#endif //_DEBUG_H_



⌨️ 快捷键说明

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