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

📄 cpprt.h

📁 完整的基于Conxant平台的USB电视棒的WIN驱动程序。
💻 H
字号:
/*+++ *******************************************************************\ 
* 
*  Copyright and Disclaimer: 
*  
*     --------------------------------------------------------------- 
*     This software is provided "AS IS" without warranty of any kind, 
*     either expressed or implied, including but not limited to the 
*     implied warranties of noninfringement, merchantability and/or 
*     fitness for a particular purpose.
*     --------------------------------------------------------------- 
*   
*     Copyright (c) 2008 Conexant Systems, Inc. 
*     All rights reserved. 
*
\******************************************************************* ---*/ 

#ifndef _CPPRT_H
#define _CPPRT_H

#include "debug.h"

#if 0
inline void* _cdecl operator new( size_t sz, POOL_TYPE pt, ULONG tag )
{
	if(sz % 8)
    {                
        sz = ((sz/8) + 1 ) * 8;
    }
    void *p = ExAllocatePoolWithTag( pt, sz, tag );
    //DbgLogTrace(("new(%x) returned %x POOL_TYPE = %d\n", sz, p, pt ) );
    return p;
}
#endif

inline void* _cdecl operator new( size_t sz )
{
	if(sz % 8)
    {                
        sz = ((sz/8) + 1 ) * 8;
    }
    void *p = ExAllocatePoolWithTag( NonPagedPool, sz, 'txnC' );
	//DbgLogTrace(("new(%x) returned %x \n", sz, p ) );
    return p;
}


inline void _cdecl operator delete( void *p )
{
	//DbgLogTrace(("delete(%x)\n", p ) );
    if( p )
    {
        ExFreePool( p );
    }
}

#endif

⌨️ 快捷键说明

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