Troubleshooting "Access Denied" errors

Anyone who has used Windows has encountered the dreaded “Access Denied” error.  (AKA error code 5 or 0x5). This error typically implies you can’t do something like open or save a file.  The error implies that you have encountered some type of security issue. In the past, an “Access Denied” issue came down to 2 things…

1

How can my application work when UAC is enabled and fail when it is disabled?

Hello Everyone, My name is Frank Kim and I work in Developer Support.  My expertise is in Windows Security (Authorization + Authentication), Remote Desktop and Windows Services.  For my first blog post, I thought I would discuss an interesting issue encountered by several of my customers. User Access Control (UAC) was introduced in Windows VISTA to…

0

Access denied on a Mutex

If you are in a situation where, one process creates a MUTEX with default security descriptor and other process running in the same user’s context is not able to access it. You might be facing the problem because of newly introduced integrity mechanism in Windows. Integrity level implemented as a SID and is defined in…

0

SetWindowHookEx API with WH_JOURNALRECORD. This API fails with access denied (Error 5).

A while ago I came across a problem in which  SetWindowHookEx API with WH_JOURNALRECORD was failing with Access denied on Windows Vista. If you have the same problem you can do what I tried. 1)      Create and Embed an Application Manifest with Your Application. o   In our case we would need manifest with <requestedExecutionLevel level=”requireAdministrator”…