在Release模式下DEBUGMSG(..)函數不會打印信息出來,爲了單獨調試某個驅動,增加打印,可以做如下修改
在驅動文件的頭部加上:
#undef DEBUGMSG
#define DEBUGMSG(x,s) NKDbgPrintfW s
或
#undef DEBUGMSG
#define DEBUGMSG(x,s) RETAILMSG(1,s)
在Release模式下DEBUGMSG(..)函數不會打印信息出來,爲了單獨調試某個驅動,增加打印,可以做如下修改
在驅動文件的頭部加上:
#undef DEBUGMSG
#define DEBUGMSG(x,s) NKDbgPrintfW s
或
#undef DEBUGMSG
#define DEBUGMSG(x,s) RETAILMSG(1,s)
HWND hwnd = ::FindWindow(_T("HHTaskBar"), NULL); ::ShowWindow(hwnd, SW_HI
private void btncb_Click(object sender, EventArgs e) { //原路徑 string path =