Windows 7 UAC whitelist:
Proof-of-concept source code

Win7Elevate.exe:

Win7Elevate.dll:

See the detailed description for a step-by-step guide to what the code does.

See the main page for compiled binaries, Visual Studio project, general discussion, etc.

UAC comedy tragedy security theatre

Win7Elevate_Inject.h


#pragma once

namespace W7EInject
{
    void AttemptOperation(HWND hWnd, bool bInject, bool bElevate, DWORD dwPid, const wchar_t *szProcName,
                          const wchar_t *szCmd, const wchar_t *szArgs, const wchar_t *szDir,
                          const wchar_t *szPathToOurDll);
}