现在主要的是通过往ZwSetInformationFile发送HANDLE和改名请求再者就是往IoSetInformation发送FILEOBJECT和改名请求以及我自己模仿iosetinformation写成的创建IRP改名voidRenameFileROutineByHandle(){
UNIC...
分类:
其他好文 时间:
2014-06-03 11:40:58
阅读次数:
386
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
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
#include "stdafx.h"#include #include #include
#include #pragma comment(lib, "advapi32.lib")TCHAR szCommand[10];TCHAR
szSvcName[80];SC_HANDLE schSCMana...
Features
Make asynchronous HTTP requests, handle responses in anonymous callbacksHTTP requests happen outside the UI threadRequests use a threadpool to cap concurrent resource usageGET/POST params ...
分类:
移动开发 时间:
2014-05-26 04:08:22
阅读次数:
330
Windows内核之作业
1 定义:
作业是一种内核对象,它相当于一个容器,里面可以加入很多进程,通过配置作业,可以让作业内的进程具有相同的配置,例如进程的最大执行时间,cpu片占用时间等。
2 作业的创建相关函数
HANDLE CreateJobObject(LPSECURITY_ATTRIBUTESlpJobAttributes,LPCTSTR lpName);
H...
方法一:适用于App不适用于UIWebViewNSURL *iTunesURL;// Process
a LinkShare/TradeDoubler/DGM URL to something iPhone can handle-
(void)openReferralURL:(NSURL *)ref...
分类:
移动开发 时间:
2014-05-25 14:02:32
阅读次数:
377