【API】获取当前进程的用户对象和GDI对象
2021-02-16 23:16
标签:png use inf code query gdi eof size sha 【API】获取当前进程的用户对象和GDI对象 标签:png use inf code query gdi eof size sha 原文地址:http://blog.51cto.com/383156647/2067833GR_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对象
文章链接:http://soscw.com/index.php/essay/56301.html