Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionerror C2040: '!=' : 'HANDLE' differs in levels of indirection from 'unsigned int' Pin
VCProgrammer30-Oct-08 2:14
VCProgrammer30-Oct-08 2:14 
AnswerRe: error C2040: '!=' : 'HANDLE' differs in levels of indirection from 'unsigned int' Pin
Rajkumar R30-Oct-08 2:19
Rajkumar R30-Oct-08 2:19 
AnswerRe: error C2040: '!=' : 'HANDLE' differs in levels of indirection from 'unsigned int' Pin
Moak30-Oct-08 2:21
Moak30-Oct-08 2:21 
QuestionRe: error C2040: '!=' : 'HANDLE' differs in levels of indirection from 'unsigned int' Pin
Mark Salsbery30-Oct-08 5:36
Mark Salsbery30-Oct-08 5:36 
AnswerRe: error C2040: '!=' : 'HANDLE' differs in levels of indirection from 'unsigned int' Pin
David Crow30-Oct-08 9:14
David Crow30-Oct-08 9:14 
GeneralRe: error C2040: '!=' : 'HANDLE' differs in levels of indirection from 'unsigned int' Pin
Mark Salsbery30-Oct-08 9:29
Mark Salsbery30-Oct-08 9:29 
JokeRe: error C2040: '!=' : 'HANDLE' differs in levels of indirection from 'unsigned int' Pin
Rajesh R Subramanian30-Oct-08 19:40
professionalRajesh R Subramanian30-Oct-08 19:40 
QuestionGet open files by process id (winapi) Pin
Marco1430-Oct-08 1:21
Marco1430-Oct-08 1:21 
Hi,

I try to build up a monitoring system, which shows me all opened files and the process ids, using this files.
All opened files mean not only the exe and dlls but .cpp , .h, .pdf, .doc, etc...
I get either the process id using a driver and "NtQuerySystemInformation" function or get the files by using "ReadDirectoryChanges".

So, how can I get the association between them? Is there a way to get it by the driver or is there any winapi function which gives me the pid and open files (not only processes and modules) together.

Thank you in advance for any hints, code or examples.

Marco
QuestionRe: Get open files by process id (winapi) Pin
David Crow30-Oct-08 2:41
David Crow30-Oct-08 2:41 
AnswerRe: Get open files by process id (winapi) Pin
Marco1430-Oct-08 3:06
Marco1430-Oct-08 3:06 
AnswerRe: Get open files by process id (winapi) Pin
Marco1430-Oct-08 3:42
Marco1430-Oct-08 3:42 
GeneralRe: Get open files by process id (winapi) Pin
David Crow30-Oct-08 4:45
David Crow30-Oct-08 4:45 
Questionerror C2593: 'operator +=' is ambiguous Pin
VCProgrammer30-Oct-08 0:00
VCProgrammer30-Oct-08 0:00 
AnswerRe: error C2593: 'operator +=' is ambiguous Pin
Rajesh R Subramanian30-Oct-08 0:23
professionalRajesh R Subramanian30-Oct-08 0:23 
GeneralRe: error C2593: 'operator +=' is ambiguous Pin
VCProgrammer30-Oct-08 2:18
VCProgrammer30-Oct-08 2:18 
GeneralRe: error C2593: 'operator +=' is ambiguous Pin
Rajesh R Subramanian30-Oct-08 2:24
professionalRajesh R Subramanian30-Oct-08 2:24 
QuestionRe: error C2593: 'operator +=' is ambiguous Pin
CPallini30-Oct-08 0:46
mveCPallini30-Oct-08 0:46 
QuestionHow to invoke Microsoft Outlook create new profile dialog from MFC/C++ code Pin
sarat12in29-Oct-08 23:53
sarat12in29-Oct-08 23:53 
AnswerRe: How to invoke Microsoft Outlook create new profile dialog from MFC/C++ code Pin
Rajkumar R30-Oct-08 2:57
Rajkumar R30-Oct-08 2:57 
GeneralRe: How to invoke Microsoft Outlook create new profile dialog from MFC/C++ code Pin
sarat12in30-Oct-08 3:09
sarat12in30-Oct-08 3:09 
GeneralRe: How to invoke Microsoft Outlook create new profile dialog from MFC/C++ code Pin
sarat12in30-Oct-08 20:05
sarat12in30-Oct-08 20:05 
GeneralRe: How to invoke Microsoft Outlook create new profile dialog from MFC/C++ code Pin
sarat12in31-Oct-08 4:11
sarat12in31-Oct-08 4:11 
QuestionHow to send email programatically in back ground... Pin
BlrBoy29-Oct-08 21:25
BlrBoy29-Oct-08 21:25 
AnswerRe: How to send email programatically in back ground... Pin
SandipG 29-Oct-08 21:35
SandipG 29-Oct-08 21:35 
QuestionRe: How to send email programatically in back ground... Pin
David Crow30-Oct-08 2:43
David Crow30-Oct-08 2:43 

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.