mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Update qprocessinfo to 0d591f19f17805d65ef4880c3fc51021523003df
This commit is contained in:
@@ -67,7 +67,7 @@ static BOOL CALLBACK fillWindowTitles(HWND hwnd, LPARAM lp)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
QProcessList QProcessInfo::enumerate()
|
||||
QProcessList QProcessInfo::enumerate(bool includeWindowTitles)
|
||||
{
|
||||
QProcessList ret;
|
||||
|
||||
@@ -88,6 +88,9 @@ QProcessList QProcessInfo::enumerate()
|
||||
}
|
||||
CloseHandle(h);
|
||||
|
||||
if(!includeWindowTitles)
|
||||
return ret;
|
||||
|
||||
HMODULE user32 = LoadLibraryA("user32.dll");
|
||||
|
||||
if(user32)
|
||||
@@ -123,7 +126,7 @@ QProcessList QProcessInfo::enumerate()
|
||||
#include <QStandardPaths>
|
||||
#include <QTextStream>
|
||||
|
||||
QProcessList QProcessInfo::enumerate()
|
||||
QProcessList QProcessInfo::enumerate(bool includeWindowTitles)
|
||||
{
|
||||
QProcessList ret;
|
||||
|
||||
@@ -205,6 +208,7 @@ QProcessList QProcessInfo::enumerate()
|
||||
}
|
||||
}
|
||||
|
||||
if(includeWindowTitles)
|
||||
{
|
||||
// get a list of all windows. This is faster than searching with --pid
|
||||
// for every PID, and usually there will be fewer windows than PIDs.
|
||||
@@ -334,7 +338,7 @@ QProcessList QProcessInfo::enumerate()
|
||||
|
||||
#else
|
||||
|
||||
QProcessList QProcessInfo::enumerate()
|
||||
QProcessList QProcessInfo::enumerate(bool includeWindowTitles)
|
||||
{
|
||||
QProcessList ret;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class QProcessInfo
|
||||
public:
|
||||
QProcessInfo();
|
||||
|
||||
static QProcessList enumerate();
|
||||
static QProcessList enumerate(bool includeWindowTitles = true);
|
||||
|
||||
uint32_t pid() const;
|
||||
void setPid(uint32_t pid);
|
||||
|
||||
Reference in New Issue
Block a user