📄 cpprt.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 + -