GlobFunction.h
上传用户:swkcbjrc
上传日期:2016-04-02
资源大小:45277k
文件大小:0k
源码类别:

游戏

开发平台:

Visual C++

  1. #include <winsock2.h>
  2. #include <process.h>
  3. //将C的运行期函数参数转化为C++的
  4. //##ModelId=3B394E0B0029
  5. typedef unsigned (__stdcall *PTHREAD_START)(void *);
  6. #define chBEGINTHREADEX(psa,cbStack,pfnStartAddr,
  7. pvParam,fdwCreate,pdwThreadID)( 
  8. (HANDLE) _beginthreadex( 
  9. (void*)(psa),(unsigned)(cbStack), 
  10. (PTHREAD_START)(pfnStartAddr), 
  11. (void*)(pvParam), 
  12. (unsigned)(fdwCreate), 
  13. (unsigned*)(pdwThreadID) ) )