![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VC
zwfgdlc
这个作者很懒,什么都没留下…
展开
-
自定义电源按钮动作.
<br />#include "stdafx.h"#include <windows.h>#include <Powrprof.h>#pragma comment(lib, "Powrprof.lib") int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPreInstance, LPTSTR lpCmdLine, int nShowCmd){ UINT uiID = 0; GLOBAL_POWER_POLICY原创 2011-05-13 05:01:00 · 1837 阅读 · 0 评论 -
屏蔽按CapsLock键切换到大写时,编辑框自动弹出的提示
WNDPROC OldProc;LPCTSTR lpStr = TEXT("保持大写锁定打开可能会使您错误输入密码");LRESULT CALLBACK WindowProc( _In_ HWND hwnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam){ if (uMsg == TTM_ADDTOOL)原创 2015-11-02 20:16:48 · 9621 阅读 · 0 评论 -
二进制字符串转整数
void BinaryStringToInt(LPCTSTR lpszBinary, LONG* a){ for (int i = _tcslen(lpBinary) - 1, BitOffset = 0; i >= 0; i--, BitOffset++) { if (lpBinary[i] == TEXT('1')) { __asm { mov eax, Bi原创 2015-11-20 00:33:19 · 1259 阅读 · 0 评论 -
RtlAdjustPrivilege进程提权,权限ID对照表
SeCreateTokenPrivilege 0x2SeAssignPrimaryTokenPrivilege 0x3SeLockMemoryPrivilege 0x4SeIncreaseQuotaPrivilege 0x5SeUnsolicitedInputPrivilege 0x0SeMachineA原创 2016-10-12 10:02:35 · 4123 阅读 · 0 评论