- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 Windows SID
在win7 命令行下输入whoami/user获得当前用户SID信息typedef struct _SID { BYTE Revision; BYTE SubAuthorityCount; SID_IDENTIFIER_AUTHORITY IdentifierAuthority; DWORD SubAuthority[ANYSIZE_ARRAY];
2016-09-12 17:09:02 643
原创 进程权限有关
BOOL GetProcessElevation(TOKEN_ELEVATION_TYPE * pElevationType, BOOL *pIsAdmin)
2016-09-04 21:34:36 633
原创 卸载程序,清除目录文件
wchar_t wcCmd[MAX_PATH] = { 0 };swprintf_s(wcCmd, MAX_PATH, L"cmd.exe /c ping 127.0.0.1 -n 5 >NUL&&rd /s /q \"%s\", wsRunPath.c_str()");STARTUPINFO si = { 0 };si.cb = sizeof(si);si.dwFlags
2016-05-17 11:18:41 636
原创 VS新建工程配置
常规:1,输出目录..\build\$(ProjectName)\$(Configuration)\2,中间目录$(OutDir)lib\
2016-05-04 14:56:07 453
原创 设计模式
1.创建型模式简单工厂模式(Simple Factory);工厂方法模式(Factory Method);抽象工厂模式(Abstract Factory);创建者模式(Builder);原型模式(Prototype);单例模式(Singleton)。2.结构型模式外观模式(Facade);适配器模式(Adapter);代理模式(Proxy);装饰模式(D
2016-04-29 14:46:09 279
原创 DIY 手动制作自己的win pe
首先,写在前面的话,从网上下载的winpe 用着总是觉得不安心(。。。),在然后自己做的pe可以封装进去自己常用的工具。准备1,在MSDN我告诉你上面下载win7 64 sp1的安装包。2,EasyBoot 和UltraISO。这两个工具自己去官网下载。注册的话,自己百度注册#码。3,imagex工具,(这个工具应该是在window AIK里面)。我这用的是一个64位的程序。(...
2016-04-21 12:09:42 25074 6
原创 gid+ 初始化
#include //初始化com口#include #pragma comment(lib, "gdiplus.lib")using namespace Gdiplus;ULONG_PTR gdiplusToken;GdiplusStartupInput gdiplusStartupInput;//初始化GDI +GdiplusSt
2016-04-19 15:49:22 565
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人