Click here to Skip to main content
16,006,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCMap [modified] Pin
devvvy29-Dec-06 14:44
devvvy29-Dec-06 14:44 
AnswerRe: CMap Pin
Blake Miller2-Jan-07 11:01
Blake Miller2-Jan-07 11:01 
QuestionHow to Detect the Users CD Rom drive Pin
Larry Mills Sr29-Dec-06 13:25
Larry Mills Sr29-Dec-06 13:25 
AnswerRe: How to Detect the Users CD Rom drive Pin
bolivar12329-Dec-06 17:52
bolivar12329-Dec-06 17:52 
AnswerRe: How to Detect the Users CD Rom drive Pin
Gary R. Wheeler30-Dec-06 3:34
Gary R. Wheeler30-Dec-06 3:34 
QuestionWay to tell which process last wrote to a file? Pin
RDarrylR29-Dec-06 12:50
RDarrylR29-Dec-06 12:50 
AnswerRe: Way to tell which process last wrote to a file? Pin
Garth J Lancaster29-Dec-06 13:23
professionalGarth J Lancaster29-Dec-06 13:23 
GeneralRe: Way to tell which process last wrote to a file? Pin
RDarrylR29-Dec-06 13:56
RDarrylR29-Dec-06 13:56 
Garth J Lancaster wrote:
I would have thought it was easier for each process to tag the entry/entries in the log file with a moniker unique to that process - I guess it depends on the lifetime of the process as to what you're doing with the information


Unfortunatley I don't think this can be done in my case.


Garth J Lancaster wrote:

or use a filesystem watcher to raise an event when the log file is modified, but Im not sure if that gives you the process details


FileSystemWatcher is what I am using now. In the Changed event handler I don't seem to have access to any process information. I get only the change type (Changed, Created, Deleted, or Renamed) and the file name and directory name.

Since the file is opened only a very brief time while 1 line is written to it I'm not sure if I will be able to hook off of processes opening files but that may be a possibility.

Thanks for your advice and maybe someone else has other insights as well?

Darryl
AnswerRe: Way to tell which process last wrote to a file? Pin
Cristian Amarie29-Dec-06 22:44
Cristian Amarie29-Dec-06 22:44 
GeneralRe: Way to tell which process last wrote to a file? Pin
RDarrylR30-Dec-06 3:23
RDarrylR30-Dec-06 3:23 
AnswerRe: Way to tell which process last wrote to a file? Pin
Hamid_RT30-Dec-06 5:57
Hamid_RT30-Dec-06 5:57 
GeneralRe: Way to tell which process last wrote to a file? Pin
Cristian Amarie30-Dec-06 7:04
Cristian Amarie30-Dec-06 7:04 
QuestionMessage Removed Pin
29-Dec-06 11:31
Armond Sarkisian29-Dec-06 11:31 
AnswerRe: Opening a dialogue window Pin
Hamid_RT29-Dec-06 17:10
Hamid_RT29-Dec-06 17:10 
AnswerRe: Opening a dialogue window Pin
Joan M30-Dec-06 2:34
professionalJoan M30-Dec-06 2:34 
QuestionDriver installation checking Pin
RomTibi29-Dec-06 10:57
RomTibi29-Dec-06 10:57 
AnswerRe: Driver installation checking Pin
Ralf Lohmueller29-Dec-06 14:53
Ralf Lohmueller29-Dec-06 14:53 
GeneralRe: Driver installation checking Pin
RomTibi29-Dec-06 19:25
RomTibi29-Dec-06 19:25 
QuestionVC++6 InitInstance strange thing? Pin
Joan M29-Dec-06 9:59
professionalJoan M29-Dec-06 9:59 
AnswerRe: VC++6 InitInstance strange thing? Pin
David Crow29-Dec-06 10:07
David Crow29-Dec-06 10:07 
GeneralRe: VC++6 InitInstance strange thing? Pin
Joan M29-Dec-06 10:14
professionalJoan M29-Dec-06 10:14 
GeneralRe: VC++6 InitInstance strange thing? Pin
David Crow29-Dec-06 10:24
David Crow29-Dec-06 10:24 
GeneralRe: VC++6 InitInstance strange thing? Pin
Joan M29-Dec-06 10:36
professionalJoan M29-Dec-06 10:36 
GeneralRe: VC++6 InitInstance strange thing? Pin
David Crow29-Dec-06 10:46
David Crow29-Dec-06 10:46 
GeneralRe: VC++6 InitInstance strange thing? Pin
Joan M29-Dec-06 10:56
professionalJoan M29-Dec-06 10:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.