Also, try using a larger buffer size. The function returns successfully
if the buffer is too small without placing any results in the buffer.
At several dir levels down, you're probably exceeding the 50 byte
size specified.
Roger
___
Python-win32
Check out win32\test\test_win32file - it has a test for that function,
including some comments about using it with threads.
The short version is that you don't sleep - just call
ReadDirectoryChangesW - it will return when a change happens.
> The result is that the api works good only if the chang
Try changing your idle loop from:
while 1:
time.sleep(0.2)
to:
while 1:
pythoncom.PumpWaitingMessages()
time.sleep(0.2)
(possibly importing pythoncom first).
Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of ÎÄÁú
Sent: Sun
Hi,
After searched a lot on web, not quit sure anybody met similar
problem before.
When I try to track the event fired by MS Agent by using
'DispatchWithEvents', I thought may be this is because IAgentNotifySink
did not registered by server.
I'm quite new to Python Com, it wrapped well, I wonder