GetCurrentProcess返回0xffffffff是什么意思?

cugblue 2006-07-21 09:17:18
rt
...全文
692 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
louifox 2006-07-23
  • 打赏
  • 举报
回复
伪句柄,值都是-1
XiangDong 2006-07-22
  • 打赏
  • 举报
回复
This function only returns a pseudo handle. That means you can't make it inheriatable and pass it to other process. you can use it normally in current process.

---sorry I can't switch to chinese right now...
realorg 2006-07-22
  • 打赏
  • 举报
回复
获得的进程句柄无效!
有多种可能导致这个结果:
1 可能是由于函数调用失败,如多线程同步访问此 API函数。
2 可能是由于参数传递错误,如进程ID无效。

可以结贴了!
snowbirdfly 2006-07-21
  • 打赏
  • 举报
回复
GetCurrentProcess返回0xffffffff是什么意思? ~~~
A pseudo handle is a special constant, currently (HANDLE)-1, that is interpreted as the current process handle~~
表示的意思是当前进程的句柄~~因为-1表示刚好是0xffffffff`~~

15,467

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧