现在主要的是通过往ZwSetInformationFile发送HANDLE和改名请求再者就是往IoSetInformation发送FILEOBJECT和改名请求以及我自己模仿iosetinformation写成的创建IRP改名voidRenameFileROutineByHandle(){
UNIC...
分类:
其他好文 时间:
2014-06-03 11:40:58
阅读次数:
386
#include "stdafx.h"#include #include using
namespace std;int _tmain (int argc, LPTSTR argv[]){ HANDLE
h=CreateMutex(NULL,TRUE,"AAAAAAA"); if(Get...
分类:
其他好文 时间:
2014-05-31 16:44:37
阅读次数:
209
在Android源码中发现,会如下使用:dlsym(RTLD_DEFAULT, name);也就是说
handle=RTLD_DEFAULT,在网上查了下,大致是说会在当前进程中按照 default library search
order搜索name这个symbol。其中RTLD_DEFAULT=...
分类:
其他好文 时间:
2014-05-31 13:12:22
阅读次数:
196
1 #include 2 #include 3 #include 4 //信号量与关键段 5
CRITICAL_SECTION g_cs; 6 HANDLE Empty,Full; 7 8 const int
BUFFER_SIZE=10;//10个缓冲池 9 const int numo...
分类:
编程语言 时间:
2014-05-30 09:20:55
阅读次数:
371
WCF services don’t run on IIS 8 with the default
configuration, because the webserver doesn’t know, how to handle incoming
requests targeting .svc fil...
DWORD AdjustProcessToken(HANDLE hProcess, LPCTSTR
lpPrivilegeName){ HANDLE hToken; TOKEN_PRIVILEGES tp; tp.PrivilegeCount =1;
tp.Privileg...
分类:
其他好文 时间:
2014-05-29 16:18:44
阅读次数:
263
A dispatchsemaphore(信号量) is useful if you need
a concurrency control for a small portion(部分) of the source code that has
smaller granularity(颗粒度) than...
分类:
其他好文 时间:
2014-05-28 21:51:45
阅读次数:
395
boolhandle(constosgGA::GUIEventAdapter& ea,
osgGA::GUIActionAdapter& aa){osgViewer::Viewer* viewer
=dynamic_cast(&aa);}bool ControlMan::handle(const o...
分类:
其他好文 时间:
2014-05-28 21:26:06
阅读次数:
670
当我们在处理下载或是其他需要长时间执行的任务时,如果直接把处理函数放Activity的OnCreate或是OnStart中,会导致执行过程中整个Activity无响应,如果时间过长,程序还会挂掉。Handler就是把这些功能放到一个单独的线程里执行,与Activity互不影响。
当用户点击一个按钮时...
分类:
移动开发 时间:
2014-05-28 01:50:06
阅读次数:
315
http://baptiste-wicht.com/posts/2012/04/c11-concurrency-tutorial-advanced-locking-and-condition-variables.htmlstruct
BoundedBuffer { int* buffer; ...
分类:
编程语言 时间:
2014-05-27 16:04:22
阅读次数:
303