STD_OUTPUT_HANDLE

  • Thread starter Thread starter Stefano Camaiani
  • Start date Start date
S

Stefano Camaiani

Hello, i need to find the STD_OUTPUT_HANDLE of a new process or a shelled
process...

I should not use standard redirections like MyProcess.StandardOutput....

I really need to find only this Handle: STD_OUTPUT_HANDLE...

In VC++ or VB6.0 if i call the AllocConsole API, this new console will show
his new handle by the API GetStdHandle(), but if i try to use AllocConsol
within VB.net and C# or if i try to start a new process, the Handle returned
is not the handle of the created console but the same handle of the calling
application...

I hope of someone should understand my bad english..

Then this is: I need to find STD_OUTPUT_HANDLE of a created process or a
shelled console application from my Windows Based(GUI) application...
Thanks....

Stefano from Italy
 
Hi Stefano,

You've posted this one to us in the languages.vb group as well.
Unfortunately you did this separately and so the C#ies will not see the VBers
replies and vice versa.

Given that, if you get an answer in one, you might care to post it to the
other so that anyone with the same interest as yours might benefit.

Thanks. :-)

Regards,
Fergus
 
Back
Top