上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 劫持系统进程禁止打开任何进程(5) windows创建进程的函数:把这个函数劫持之后注射到 explore.exe进程中即可。现在注射到印象笔记中测试:#include#include#include#include"detours.h"#pragma comment (lib ,"detours.lib" )BOOL(WINAPI * oldCreateProcessW)( ... 阅读全文
posted @ 2015-05-26 19:21 外禅内定,程序人生 阅读(479) 评论(0) 推荐(0)
摘要: 劫持系统进程禁止创建文件 #include#include#include#include"detours.h"#pragma comment (lib ,"detours.lib" )HANDLE(WINAPI * oldCreateFileW)( _In_ LPCWSTR lpFileName, _In_ DWORD dwDesiredAccess, ... 阅读全文
posted @ 2015-05-26 19:19 外禅内定,程序人生 阅读(697) 评论(0) 推荐(0)
摘要: 缓冲区(1)(文件结构体) 文件结构体源码: 来自为知笔记(Wiz) 阅读全文
posted @ 2015-05-26 19:17 外禅内定,程序人生 阅读(231) 评论(0) 推荐(0)
摘要: 仿函数--创建结构体或类的内部函数指针 #include#include#includeusing namespace std;using namespace std::placeholders;//仿函数 创建一个结构体或类的内部函数的函数指针struct MyStruct{ void add( int a){ cout << a << endl;... 阅读全文
posted @ 2015-05-26 19:15 外禅内定,程序人生 阅读(458) 评论(0) 推荐(0)
摘要: vector实现十字链表管理不规则数据 #include#includeusing std::vector ;void main(){ vector myvector1; myvector1.push_back(12); myvector1.push_back(13); myvector1.push_back(13); myvec... 阅读全文
posted @ 2015-05-26 19:15 外禅内定,程序人生 阅读(165) 评论(0) 推荐(0)
摘要: 非缓冲 和 全缓冲 非缓冲:不需要flush函数刷新,直接从缓冲区自动补上了#include#includeint main(){ printf( "%d\n", *(stdin ->_ptr)); //打印换成区内容 \0 -> 0 printf( "%d\n", stdin ->_cnt);//缓冲区还有多少个字节 char ch = getcha... 阅读全文
posted @ 2015-05-26 19:15 外禅内定,程序人生 阅读(157) 评论(0) 推荐(0)
摘要: 缓冲区(2) #include#includeint main(){ printf( "%d\n", *(stdin ->_ptr)); //打印换成区内容 \0 -> 0 printf( "%d\n", stdin ->_cnt);//缓冲区还有多少个字节 char ch = getchar(); //输入123 会把1提走 缓冲区剩余... 阅读全文
posted @ 2015-05-26 19:15 外禅内定,程序人生 阅读(152) 评论(0) 推荐(0)
摘要: auto_ptr 智能指针(C98)#includeusing namespace std;void main(){//auto_ptrfor ( int i = 0; i a_p(p);}cin.get();}查看任务管理器: 阅读全文
posted @ 2015-05-26 19:06 外禅内定,程序人生 阅读(312) 评论(0) 推荐(0)
摘要: static_cast,const_cast,reinterpret_cast,dynamic_cast详解 #include//c++的数据类型转换:static_cast(要转换的数据),//用于一般的数据类型转换void main1(){ int n = static_cast(78.98); int* p = static_cast(malloc(100... 阅读全文
posted @ 2015-05-26 19:05 外禅内定,程序人生 阅读(370) 评论(0) 推荐(0)
摘要: mysql面试(转载) 问题1:你如何确定 MySQL 是否处于运行状态?答案: Debian 上运行命令service mysql status,在RedHat 上运行命令service mysqld status。然后看看输出即可。问题2:如何开启或停止 MySQL 服务?答案:运行命令service mysqld start开启服务;运行命令service mysqld stop停止... 阅读全文
posted @ 2015-05-26 19:02 外禅内定,程序人生 阅读(187) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页