标签:
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东西
,