提升当前的进程权限
void AdjustPrivilege(int pid, BOOL bEnable)
{
阅读全文……
权限提升代码 [ 2007-08-22 | C\C++相关 | rick@博客园 ]
防止注入的代码 [ 2007-08-22 | C\C++相关 | rick@博客园 ]
#define PROTECTED_DACL_SECURITY_INFORMATION (0x80000000L)
BOOL Lock_CurrentProcess()
{
HANDLE hProcess = ::GetCurrentProcess();
阅读全文……
BOOL Lock_CurrentProcess()
{
HANDLE hProcess = ::GetCurrentProcess();
阅读全文……