参考:http://www.cnblogs.com/wz19860913/articles/1274214.html
https://msdn.microsoft.com/en-us/magazine/cc163327.aspx
http://www.cnblogs.com/kzloser/archive/2013/03/11/2909221.html
http://www.cnblogs.com/BeginnerClassroom/archive/2009/10/28/1591590.html
http://blog.csdn.net/ithzhang/article/details/8496232
方法1:TrySubmitThreadpoolCallback (向线程池提交工作请求函数<一次性>,回调函数原型)
#include <windows.h>
#include <iostream>
using namespace std;
static VOID NTAPI SimpleCallback( //函数名可以任意
PTP_CALLBACK_INSTANCE pInstance,
PVOID pvContext) //函数参数
{
cout<<(int)pvContext<<endl;
}
int main()
{
cout<<"main 0"<<endl;
TrySubmitThreadpoolCallback(SimpleCallback,(PVOID)1,NULL);
Sleep(30000);
}