One of the many error codes returned by GetLastError, which should not be used within the .NET framework. Instead you must use Marshal.GetLastWin32Error().
Documentation
Derived from MSDN and WinBase.h original value was: ((DWORD)-1) which is the same numerically as above. [Ummmm, please explain how -1 is equal to 5...]
Attach current process to the console of a specified process, or to the current one by default (see ATTACH_PARENT_PROCESS) (this is an large contrib article, and since the net add-in insists on using this one, i decided to place it here and not in the original place.)