摘要: case ntohl(CMPP_CONNECT_RESP_tag.Status) of 0: R_mem.Lines.Add('连接返回内容:状态=' + inttostr(ntohl(CMPP_CONNECT_RESP_tag.Status)) + '正确.'); 1: R_mem.Lines.Add('连接返回内容:状态=' + inttostr(ntohl(CMPP_CONNECT_RESP... 阅读全文
posted @ 2010-04-27 21:40 94cool 阅读(466) 评论(0) 推荐(0)
摘要: publicclassWin32API{#region====Kernel32.dll====///<summary>///取得当前线程ID///</summary>///<returns></returns>[DllImport("kernel32.dll",CharSet=CharSet.Auto,CallingConvention=Callin... 阅读全文
posted @ 2010-04-27 14:32 94cool 阅读(232) 评论(0) 推荐(0)
摘要: 进程只是提供了一段地址空间和内核对象,其运行时通过在其地址空间内的主线程来体现的。当主线程的进入点函数返回时,进程也就随之结束。这种进程的终止方式是进程的正常退出,进程中的所有线程资源都能够得到正确的清除。除了这种进程的正常退出方式外,有时还需要在程序中通过代码来强制结束本进程或其他进程的运行。ExitProcess()函数的原型为:void ExitProcess(UINT uExitCode)... 阅读全文
posted @ 2010-04-27 14:09 94cool 阅读(1206) 评论(0) 推荐(0)