#include "stdafx.h"
#include <windows.h>
#include <process.h>
#include <stdio.h>
HANDLE Event;
PTP_WAIT pWaitItem;
VOID CALLBACK WaitCallBack(PTP_CALLBACK_INSTANCE pInstance,PVOID Context,PTP_WAIT Wait,TP_WAIT_RESULT WaitResult){
printf("OK\n\n");
SetThreadpoolWait(pWaitItem,Event,NULL);
//_tprintf(TEXT("小的得令啊~\n"));
}
int _tmain(int argc, _TCHAR* argv[])
{
//printf("weiuq");
Event = CreateEvent(NULL,FALSE,FALSE,NULL);
pWaitItem = CreateThreadpoolWait(WaitCallBack,NULL,NULL);
Set
#include <windows.h>
#include <process.h>
#include <stdio.h>
HANDLE Event;
PTP_WAIT pWaitItem;
VOID CALLBACK WaitCallBack(PTP_CALLBACK_INSTANCE pInstance,PVOID Context,PTP_WAIT Wait,TP_WAIT_RESULT WaitResult){
printf("OK\n\n");
SetThreadpoolWait(pWaitItem,Event,NULL);
//_tprintf(TEXT("小的得令啊~\n"));
}
int _tmain(int argc, _TCHAR* argv[])
{
//printf("weiuq");
Event = CreateEvent(NULL,FALSE,FALSE,NULL);
pWaitItem = CreateThreadpoolWait(WaitCallBack,NULL,NULL);
Set