Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHandle Inheritance in Windows [modified] Pin
Sudhan Gandhi21-Mar-11 0:59
Sudhan Gandhi21-Mar-11 0:59 
AnswerRe: Handle Inheritance in Windows Pin
«_Superman_»21-Mar-11 1:24
professional«_Superman_»21-Mar-11 1:24 
GeneralRe: Handle Inheritance in Windows Pin
Sudhan Gandhi21-Mar-11 2:01
Sudhan Gandhi21-Mar-11 2:01 
GeneralRe: Handle Inheritance in Windows Pin
Richard MacCutchan21-Mar-11 2:57
mveRichard MacCutchan21-Mar-11 2:57 
GeneralRe: Handle Inheritance in Windows Pin
Sudhan Gandhi21-Mar-11 4:27
Sudhan Gandhi21-Mar-11 4:27 
GeneralRe: Handle Inheritance in Windows Pin
Richard MacCutchan21-Mar-11 5:44
mveRichard MacCutchan21-Mar-11 5:44 
AnswerRe: Handle Inheritance in Windows Pin
Michael Dunn22-Mar-11 21:08
sitebuilderMichael Dunn22-Mar-11 21:08 
GeneralRe: Handle Inheritance in Windows Pin
Sudhan Gandhi22-Mar-11 23:32
Sudhan Gandhi22-Mar-11 23:32 
Hi Mike,

This is what I was looking for. Handles are copied in the process table of the child process if the inherit flag is set to true but how would the child process know which handle is pointing to which kernel object and which to use.

This link [^] explains the concept:

"To use a handle, the child process must retrieve the handle value and "know" the object to which it refers. Usually, the parent process communicates this information to the child process through its command line, environment block, or some form of interprocess communication."

I was looking for an sample code showing the above step(highlighted in bold).
AnswerRe: Handle Inheritance in Windows Pin
Emilio Garavaglia22-Mar-11 22:34
Emilio Garavaglia22-Mar-11 22:34 
QuestionShowDropDown(...) error Pin
_Flaviu21-Mar-11 0:30
_Flaviu21-Mar-11 0:30 
AnswerRe: ShowDropDown(...) error Pin
Code-o-mat21-Mar-11 1:48
Code-o-mat21-Mar-11 1:48 
GeneralRe: ShowDropDown(...) error Pin
_Flaviu21-Mar-11 3:00
_Flaviu21-Mar-11 3:00 
GeneralRe: ShowDropDown(...) error Pin
Code-o-mat21-Mar-11 3:25
Code-o-mat21-Mar-11 3:25 
QuestionAutomatically Stepping over stl code in Visual Studio PinPopular
ed welch21-Mar-11 0:28
ed welch21-Mar-11 0:28 
AnswerRe: Automatically Stepping over stl code in Visual Studio PinPopular
Stefan_Lang21-Mar-11 7:32
Stefan_Lang21-Mar-11 7:32 
GeneralRe: Automatically Stepping over stl code in Visual Studio Pin
ed welch21-Mar-11 9:48
ed welch21-Mar-11 9:48 
GeneralRe: Automatically Stepping over stl code in Visual Studio Pin
Niklas L21-Mar-11 22:52
Niklas L21-Mar-11 22:52 
AnswerRe: Automatically Stepping over stl code in Visual Studio Pin
Rajesh R Subramanian22-Mar-11 5:53
professionalRajesh R Subramanian22-Mar-11 5:53 
QuestionHow can read a unicode text file as character by character? Pin
Le@rner20-Mar-11 22:20
Le@rner20-Mar-11 22:20 
AnswerRe: How can read a unicode text file as character by character? Pin
pix_programmer20-Mar-11 22:39
pix_programmer20-Mar-11 22:39 
GeneralRe: How can read a unicode text file as character by character? Pin
Le@rner20-Mar-11 22:42
Le@rner20-Mar-11 22:42 
QuestionRe: How can read a unicode text file as character by character? Pin
CPallini20-Mar-11 23:03
mveCPallini20-Mar-11 23:03 
AnswerRe: How can read a unicode text file as character by character? Pin
Le@rner20-Mar-11 23:21
Le@rner20-Mar-11 23:21 
GeneralRe: How can read a unicode text file as character by character? Pin
CPallini20-Mar-11 23:33
mveCPallini20-Mar-11 23:33 
GeneralRe: How can read a unicode text file as character by character? Pin
Albert Holguin21-Mar-11 3:31
professionalAlbert Holguin21-Mar-11 3:31 

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.