ATTACH_PARENT_PROCESS (Constants)
Last changed: 172.56.37.2

.
Summary
Used by AttachConsole, to allocate the console to the parent PID of the calling thread.

C# Constants:

    const uint ATTACH_PARENT_PROCESS = 0x0ffffffff;

VB Constants:

    Public ATTACH_PARENT_PROCESS As UInteger = UInteger.MaxValue ' constant representation workaround used

Notes:

Visual basic users: Not tested, and may not work. Since the bug in .NET 2005 VB not allowing a hexidecimal representation of &H0FFFFFFFF, I am not sure if it will work or not. In theory it should work unless there are other bugs I don't know about. I do not use VB, so if anyone finds out fix the article if there is a bug.

Documentation

Derived from MSDN and WinBase.h original value was: ((DWORD)-1) which is the same numerically as above.

Author

Contributed by [ http://www.paradisim.net ] [ http://inversegoogle.paradisim.net/index3.htm ] - gabriel@paradisim.net