Chapter03-验证一个句柄是否是继承的
2012-04-07 09:22 java20130722 阅读(173) 评论(0) 收藏 举报关键是GetHandleInformation 函数
GetHandleInformation 函数原型:
BOOL GetHandleInformation(HANDLE hObject, PDWORD pdwFlags);
This function returns the current flag settings for the specified handle in
the DWORD pointed to by pdwFlags. To see if a handle is inheritable,
do the following:
DWORD dwFlags; GetHandleInformation(hObj, &dwFlags); BOOL fHandleIsInheritable = (0 != (dwFlags & HANDLE_FLAG_INHERIT));
【推荐】博客园的心动:当一群程序员决定开源共建一个真诚相亲平台
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】Flutter适配HarmonyOS 5知识地图,实战解析+高频避坑指南
【推荐】开源 Linux 服务器运维管理面板 1Panel V2 版本正式发布
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步