請問Shell監控 |
答題得分者是:william
|
bakayaro
一般會員 發表:12 回覆:14 積分:5 註冊:2002-10-28 發送簡訊給我 |
我目前需要使用到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 發送簡訊給我 |
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 發送簡訊給我 |
引言: 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 發送簡訊給我 |
|
bakayaro
一般會員 發表:12 回覆:14 積分:5 註冊:2002-10-28 發送簡訊給我 |
引言: In function SHNotify_Register: ps: |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |