📄 sp2fix.h
字号:
/*
This file is part of KCeasy (http://www.kceasy.com)
Copyright (C) 2002-2005 Markus Kern <mkern@kceasy.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
//---------------------------------------------------------------------------
#ifndef SP2FixH
#define SP2FixH
//---------------------------------------------------------------------------
#include <windows.h>
#include <string>
//---------------------------------------------------------------------------
using std::string;
class TTcpIpPatcher
{
public:
TTcpIpPatcher();
~TTcpIpPatcher();
bool NeedsPatching();
bool RunningInWow64();
// return false if driver is not loaded or if we cannot access it
bool IsDriverLoaded();
bool LoadDriver();
bool UnloadDriver();
unsigned int GetLimit();
bool SetLimit(unsigned int NewLimit);
const string& GetDriverLog() { return DriverLog; }
private:
string DriverLog;
HANDLE OpenDeviceHandle();
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -