Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
技术板块灌水区
» 请教CnFileSystemWatcher的问题
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 请教CnFileSystemWatcher的问题
kidking2001
新警察
UID 40738
Digest Posts 0
Credits 22
Posts 8
点点分 22
Reading Access 10
Registered 2008-8-4
Status Offline
#1
Post at 2008-10-21 11:18
Profile
|
Blog
|
P.M.
请教CnFileSystemWatcher的问题
使用CnFileSystemWatcher的程序在users权限下运行,cpu使用会达到100%,而且无法获取文件修改消息,如果程序需要在users权限下运行该怎么处理呢?
solokey
新警察
UID 30253
Digest Posts 0
Credits 28
Posts 12
点点分 28
Reading Access 10
Registered 2007-11-2
Status Offline
#2
Post at 2008-10-24 23:54
Profile
|
Blog
|
P.M.
问题已经修正,我已经把修改后的组件交给了管理员.
受限用户模式下,CreateFile用Write,Delete参数..就会被拒绝访问.
只要把CreateFile那句改成如下:
TempHandle := CreateFile(PChar(FDirectory), GENERIC_READ, FILE_SHARE_READ,
nil, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS
or FILE_FLAG_OVERLAPPED, 0);
或者你可以等待管理员更新后,从CVS获取最新版本.
谢谢你对我工作的支持.
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#3
Post at 2008-10-25 07:12
Profile
|
Blog
|
P.M.
CVS上的代码已经更新,烦请楼主按这帖子所说来获得最新代码。
http://bbs.cnpack.org/viewthread.php?tid=1882&extra=page%3D1
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-24 13:15
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.006983 second(s), 7 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats