如何得到进程自身的句柄? 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 HANDLE hCurrentProcess=GetCurrentProcess(); AfxGetInstanceHandle HINSTANCE AfxGetInstanceHandle( );Return ValueAn HINSTANCE to the current instance of the application. If called from within a DLL linked with the USRDLL version of MFC, an HINSTANCE to the DLL is returned. 在此我想问一下,HINSTANCE是应用程序实例句柄,HANDLE是进程实例句柄,两者是一样的吗? 同意DentistryDoctor,HINSTANCE是Module句柄,是和执行文件相关的。两者不一样的 通常情况下GetCurrentProcess返回的是一个伪句柄,要获取真实的句柄,必须用GetCurrentProcessId找到pid,然后以此OpenProcess方能获得真正的句柄. 好象在Windows95以前用的是HInstance,后来为了兼容就留下来了,好象在以后没有很大的区别! 关于修改窗口标题高度 请教如何重连SQL数据库 VC6和.net有什么区别? 删除_bstr_t中的字符,怎么做? …在线等候… 谁研究过DXF文件格式/?请进,有问题请教!! 怎样控制系统的声音? 在VC中用ADO连接SOL SERVER的问题 vc.net 2003修改资源后6.0打开资源怎么没变化 关于socket的,怎么控制buffer呢,有没有好的例成,不胜感激!!请回到[email protected] 用VC++搞软件开发学数学有必要吗?(不包括离散等) 求购《Delphi 6组件大全》 谁知道IConfigAsfWriter在哪个头文件中
HINSTANCE AfxGetInstanceHandle( );Return ValueAn HINSTANCE to the current instance of the application. If called from within a DLL linked with the USRDLL version of MFC, an HINSTANCE to the DLL is returned.