STD_OUTPUT_HANDLE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stefano Camaiani

    #1

    STD_OUTPUT_HANDLE

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

    I should not use standard redirections like MyProcess.Stand ardOutput....

    I really need to find only this Handle: STD_OUTPUT_HAND LE...

    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_HAND LE of a created process or a
    shelled console application from my Windows Based(GUI) application...
    Thanks....

    Stefano from Italy


  • Fergus Cooney

    #2
    Re: STD_OUTPUT_HAND LE

    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


    Comment

    Working...