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

📄 kinterlockedcounter.h

📁 尔罗斯著名黑客写的rootkit
💻 H
字号:
#ifndef __KINTERLOCKEDCOUNTER_H
 #define __KINTERLOCKEDCOUNTER_H

extern "C"
{
 #include "ntddk.h"
}

#include "../Include/KNew.h"

class KInterlockedCounter;
//********************************************************************//

class KInterlockedCounter
{
  public:
   explicit
   KInterlockedCounter(LONG nStartValue = 0);
   virtual ~KInterlockedCounter();

   KInterlockedCounter& operator=(const KInterlockedCounter& right);
   KInterlockedCounter& operator=(const LONG nValue);

   KInterlockedCounter& operator++();
   const KInterlockedCounter operator++(int);
   KInterlockedCounter& operator--();
   const KInterlockedCounter operator--(int);

   BOOLEAN CompareExchange(const LONG nValueComperand, const LONG nValueExchange);

 private:
   KInterlockedCounter(const KInterlockedCounter& right);

 protected:
   LONG     m_nValue;

};

#endif //__KINTERLOCKEDCOUNTER_H

⌨️ 快捷键说明

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