Google Answers Logo
View Question
 
Q: Determine the process name which created a new file or a directory in Windows? ( No Answer,   1 Comment )
Question  
Subject: Determine the process name which created a new file or a directory in Windows?
Category: Computers > Programming
Asked by: yusufa-ga
List Price: $25.00
Posted: 12 May 2004 09:52 PDT
Expires: 14 May 2004 10:59 PDT
Question ID: 345185
I am trying to programatically determine a way to find out which
process created a new file or directory in a given volume in Windows
Operating Systems using Visual C++.

Win32 API provides the following function which let's you know when a
new file or directory is created but doesn't let you know the process
name that created it:

BOOL ReadDirectoryChangesW(HANDLE hDirectory, LPVOID lpBuffer, DWORD
nBufferLength, BOOL bWatchSubTree, DWORD dwNotifyFilter, LPDWORD
lpBytesReturned, LPOVERLAPPED lpOverlapped,
LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionROutine);

In your answer, please provide a sample Visual C++ code which shows
the necessary API to call in order for an application to be notified
when a new file or directory is created and the process name which
created it.

Thank you,
Yusuf
Answer  
There is no answer at this time.

Comments  
Subject: Re: Determine the process name which created a new file or a directory in Windows?
From: newjackhustler-ga on 12 May 2004 23:03 PDT
 
I don't think this is possible. I'm sure you have a very valid reason
for doing it, but it doesn't make sense for Windows to capture this
information - which is why it isn't available. Good luck!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy