ERROR_ACCESS_DENIED (Constants)
Last changed: 94.229.131.27

.
Summary
Access Denied, in context of AttachConsole, it means that the console is attached elsewhere. It may have other meaning to other API functions.

C# Constants:

public const int ERROR_ACCESS_DENIED = 5;

VB Constants:

Public ERROR_ACCESS_DENIED As Integer = 5

Notes:

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...]

Author

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