Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

ERROR_ACCESS_DENIED (Constants)
 
.
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 .

 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions