【API】获取当前进程的用户对象和GDI对象

2021-02-16 23:16

阅读:354

标签:png   use   inf   code   query   gdi   eof   size   sha   

GR_GDIOBJECTS 0 Return the count of GDI objects. // GR_USEROBJECTS 1 Return the count of USER objects. HANDLE hProcess = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,FALSE,7604); //传对应的进程ID //GetProcessMemoryInfo(hProcess,&ProMem,sizeof(ProMem)); DWORD dwGdi = GetGuiResources(hProcess, GR_GDIOBJECTS); DWORD dwUser = GetGuiResources(hProcess, GR_USEROBJECTS); CloseHandle(hProcess);

技术分享图片

【API】获取当前进程的用户对象和GDI对象

标签:png   use   inf   code   query   gdi   eof   size   sha   

原文地址:http://blog.51cto.com/383156647/2067833


评论


亲,登录后才可以留言!