?? driverinstall.h
字號:
#ifdef DRIVERINSTALL_EXPORTS
#define DRIVERINSTALL_API __declspec(dllexport)
#else
#define DRIVERINSTALL_API __declspec(dllimport)
#endif
#include <windows.h>
#define IN
#define DRIVER_FUNC_INSTALL 0x01 //install
#define DRIVER_FUNC_REMOVE 0x02 //remove
#define BOOLEAN bool
extern DRIVERINSTALL_API BOOLEAN
ManageDriver(
IN LPCTSTR DriverName,
IN LPCTSTR ServiceName,
IN USHORT Function
);
//usage example:
//install:
// ManageDriver("hellotest", "D:\\WINDDK\\3790.1830\\src\\general\\ioctl\\exe\\objchk_wxp_x86\\i386\\sioctl.sys", DRIVER_FUNC_INSTALL);
//remove:
// ManageDriver("hellotest","D:\\WINDDK\\3790.1830\\src\\general\\ioctl\\exe\\objchk_wxp_x86\\i386\\sioctl.sys", DRIVER_FUNC_REMOVE);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -