摘要:
函数原型为:DWORD WaitForSingleObject(HANDLE hHandle,DWORD dwMilliseconds); hHandle为要监视的对象(一般为同步对象,也可以是线程)的句柄; dwMilliseconds为hHandle对象所设置的超时值,单位为毫秒; 当在某一线程中调用该函数时,线程暂时挂起,系统监视hHandle所指向的对象的状态。如果在挂起的dwMill... 阅读全文
摘要:
vc多线程实例http://www.cnblogs.com/Files/ahuo/MultiThread.rar 阅读全文
摘要:
DWORD dwVersion = GetVersion(); // Get the Windows version. DWORD dwWindowsMajorVersion = (DWORD)(LOBYTE(LOWORD(dwVersion))); DWORD dwWindowsMinorVersion = (DWORD)(HIBYTE(LOWORD(dwVersion))); // G... 阅读全文
摘要:
MAKEINTRESOURCE是一个资源名转换的宏, VC的定义是(winuser.h): #define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i))) #define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i))) #ifdef UNICODE #define MAKEINTRES... 阅读全文