全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1108
推到 Plurk!
推到 Facebook!

請問Shell監控

答題得分者是:william
bakayaro
一般會員


發表:12
回覆:14
積分:5
註冊:2002-10-28

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-03-01 11:25:38 IP:61.220.xxx.xxx 未訂閱
我目前需要使用到JACKKCG大大所提供http://delphi.ktop.com.tw/topic.php?method=AddScore&topic_id=22388&ToMemberID=411Shell監控的一些功能,可是拷貝這些程式碼下來貼在我的D6上面,卻一直會出現Access Violation ad address 0046BB61 ...ooxx...Write of address 00000004 我有追蹤過,會卡在function SHNotify_Register(hWnd: Integer): Bool裡面,只要一執行到ps.bWatchSubFolders := 1;這一行就會跳出來,請問有辦法解決這個問題嗎?
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-03-01 12:36:50 IP:147.8.xxx.xxx 未訂閱
ps is declared as a pointer, you need to allocate memory for it first. BTW, Windows 2000 and later only? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shchangenotifyregister.asp
bakayaro
一般會員


發表:12
回覆:14
積分:5
註冊:2002-10-28

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-03-01 14:36:48 IP:61.220.xxx.xxx 未訂閱
引言: ps is declared as a pointer, you need to allocate memory for it first. BTW, Windows 2000 and later only? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shchangenotifyregister.asp
感謝您的回答,但是我真的不知道該怎麼先給他一塊區間使用,是否可以告訴我,或者有相關的參考資料我可以查詢的?謝謝!
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-03-01 14:57:36 IP:147.8.xxx.xxx 未訂閱
In function SHNotify_Register:    ps:PIDLSTRUCT; m_hSHNotify := SHChangeNotifyRegister(hWnd, (SHCNF_TYPE Or SHCNF_IDLIST), (SHCNE_ALLEVENTS Or SHCNE_INTERRUPT), WM_SHNOTIFY, 1, @ps); Above is NOT tested
bakayaro
一般會員


發表:12
回覆:14
積分:5
註冊:2002-10-28

發送簡訊給我
#5 引用回覆 回覆 發表時間:2004-03-01 15:33:44 IP:61.220.xxx.xxx 未訂閱
引言: In function SHNotify_Register: ps:PIDLSTRUCT; m_hSHNotify := SHChangeNotifyRegister(hWnd, (SHCNF_TYPE Or SHCNF_IDLIST), (SHCNE_ALLEVENTS Or SHCNE_INTERRUPT), WM_SHNOTIFY, 1, @ps); Above is NOT tested < face="Verdana, Arial, Helvetica"> Thanks!! It's Works!!!!!!!!!!!!
系統時間:2024-05-13 4:29:54
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!