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

📄 cpprt.hpp

📁 一个开放源码的bt848/878驱动程序的源码
💻 HPP
字号:
#ifndef CPPRT_HPP_
#define CPPRT_HPP_

#include "debug.hpp" 
#include "WDMHeaders.hpp"

void * _cdecl operator new( size_t sz );
void _cdecl operator delete( void *p );

#ifndef VC_4X_BUILD

// In VC versions below 5.0, the following two cases are covered by the 
// new and delete defined above. The following syntax is invalid in pre-
// 5.0 versions.
void * _cdecl operator new[]( size_t sz );
void _cdecl operator delete []( void *p );

#endif


VOID InitCppRT(void);
VOID TermCppRT(void);

// Timing functions

// Delay function in us. It spends at least the time request, but can be much longer
void udelay( DWORD time ); // delay in us.

// Delay function in ms. It spends at least the time request, but can be much longer
void mdelay( DWORD time );

// GetTickCount in milliseconds
ULONG GetTickCountInMs( void );

// BusyWait in us
void busywaitus( DWORD time );

// Create a new thread
bool CreateThread(PKSTART_ROUTINE ThreadStart, PVOID ptr);

// End the current Thread
void ExitThread(void);

#endif

⌨️ 快捷键说明

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