|
|
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 |
|
There is no answer at this time. |
|
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! |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |