Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi everybody. I am trying to write a piece of code in c++ that can detect when a folder is opened and return the path of that folder .is there any way to do that without using driver programing? any help can be so useful. tnx
Posted
Updated 26-Aug-13 19:06pm
v2
Comments
Sergey Alexandrovich Kryukov 27-Aug-13 2:27am    
Why? What do you mean by that, exactly?
—SA
Mojtaba Setoodeh 27-Aug-13 2:42am    
i want to check sth in the folders when they r opened

You cannot. There is no such concept as "opened folder". You can detect if some file is open or not, but for the folder it simply makes no sense.

—SA
 
Share this answer
 
Comments
Mojtaba Setoodeh 27-Aug-13 2:49am    
There is sth named enumWindowsProc that can return list of all of the folders and files which they r opened o executed. so we have a concept named opened folders. i just want to check sth in the folders when they r opened. any idea can be so helpful. tnx
Mojtaba Setoodeh 29-Aug-13 0:41am    
bye the way, do u know the way to find the path of a directory when someone opens it MR professor.
Sergey Alexandrovich Kryukov 29-Aug-13 1:23am    
Please stop your gibberish. Of course you know, and maybe I'll answer if you ask a sensible question. Start from this: what do you think is "open a directory". There is no such thing, so there is nothing to capture.
—SA
http://blogs.msdn.com/b/oldnewthing/archive/2004/05/20/135841.aspx[^]
That is the solution to do that. this link has send to me by Graham Breach(http://www.codeproject.com/script/Membership/View.aspx?mid=6796338[^]). tnx from him
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900