| 1 | #cxx . . $ `<file>/ProcessListWindows.h`/ifndef PROCESSLISTWINDOWS_H |
| 2 | #define PROCESSLISTWINDOWS_Hcxx . . $ `ProcessListWindows.h:2:9`! |
| 3 | |
| 4 | #include <QObject> |
| 5 | |
| 6 | #include <QString> |
| 7 | #include <QStringList> |
| 8 | #include <QMap> |
| 9 | #include "ProcessList.h"cxx . . $ `<file>/ProcessList.h`/ |
| 10 | |
| 11 | #if defined(Q_OS_WIN) |
| 12 | #include <windows.h> |
| 13 | #include <stdio.h> |
| 14 | #include <psapi.h> |
| 15 | #include <tchar.h> |
| 16 | #include <stdlib.h> |
| 17 | #include <iostream> |
| 18 | #include <stdio.h> |
| 19 | |
| 20 | |
| 21 | #define ProcessBasicInformation 0 |
| 22 | |
| 23 | typedef struct |
| 24 | { |
| 25 | USHORT Length; |
| 26 | USHORT MaximumLength; |
| 27 | PWSTR Buffer; |
| 28 | } UNICODE_STRING, *PUNICODE_STRING; |
| 29 | |
| 30 | typedef struct |
| 31 | { |
| 32 | ULONG AllocationSize; |
| 33 | ULONG ActualSize; |
| 34 | ULONG Flags; |
| 35 | ULONG Unknown1; |
| 36 | UNICODE_STRING Unknown2; |
| 37 | HANDLE InputHandle; |
| 38 | HANDLE OutputHandle; |
| 39 | HANDLE ErrorHandle; |
| 40 | UNICODE_STRING CurrentDirectory; |
| 41 | HANDLE CurrentDirectoryHandle; |
| 42 | UNICODE_STRING SearchPaths; |
| 43 | UNICODE_STRING ApplicationName; |
| 44 | UNICODE_STRING CommandLine; |
| 45 | PVOID EnvironmentBlock; |
| 46 | ULONG Unknown[9]; |
| 47 | UNICODE_STRING Unknown3; |
| 48 | UNICODE_STRING Unknown4; |
| 49 | UNICODE_STRING Unknown5; |
| 50 | UNICODE_STRING Unknown6; |
| 51 | } PROCESS_PARAMETERS, *PPROCESS_PARAMETERS; |
| 52 | |
| 53 | typedef struct |
| 54 | { |
| 55 | ULONG AllocationSize; |
| 56 | ULONG Unknown1; |
| 57 | HINSTANCE ProcessHinstance; |
| 58 | PVOID ListDlls; |
| 59 | PPROCESS_PARAMETERS ProcessParameters; |
| 60 | ULONG Unknown2; |
| 61 | HANDLE Heap; |
| 62 | } PEB, *PPEB; |
| 63 | |
| 64 | typedef struct |
| 65 | { |
| 66 | DWORD ExitStatus; |
| 67 | PPEB PebBaseAddress; |
| 68 | DWORD AffinityMask; |
| 69 | DWORD BasePriority; |
| 70 | ULONG UniqueProcessId; |
| 71 | ULONG InheritedFromUniqueProcessId; |
| 72 | } PROCESS_BASIC_INFORMATION; |
| 73 | |
| 74 | #endif |
| 75 | |
| 76 | class ProcessListWindowscxx . . $ ProcessListWindows# : public QObjectcxx . . $ QObject#{ |
| 77 | Q_OBJECTcxx . . $ ProcessListWindows#staticMetaObject. |
| 78 | public: |
| 79 | explicit ProcessListWindowscxx . . $ ProcessListWindows#ProcessListWindows(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = 0); |
| 80 | int initProccessListcxx . . $ ProcessListWindows#initProccessList(b126dc7c1de90089).(); |
| 81 | sProccesscxx . . $ sProccess# getProccxx . . $ ProcessListWindows#getProc(a30611555c524a2e).(QStringcxx . . $ QString# pid); |
| 82 | |
| 83 | private: |
| 84 | QStringListcxx . . $ QStringList# getSocketscxx . . $ ProcessListWindows#getSockets(327870d3b2cb3fa6).(QStringcxx . . $ QString# pid); |
| 85 | QStringcxx . . $ QString# getProgramcxx . . $ ProcessListWindows#getProgram(f7f320d754b8fd09).(QStringcxx . . $ QString# pid); |
| 86 | QStringcxx . . $ QString# getCmdlinecxx . . $ ProcessListWindows#getCmdline(f7f320d754b8fd09).(QStringcxx . . $ QString# pid); |
| 87 | |
| 88 | #if defined(Q_OS_WIN) |
| 89 | BOOL GetProcessCmdLine(DWORD dwId,LPWSTR wBuf,DWORD dwBufLen); |
| 90 | #endif |
| 91 | |
| 92 | |
| 93 | |
| 94 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 95 | |
| 96 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 97 | |
| 98 | }; |
| 99 | |
| 100 | #endif // PROCESSLISTWINDOWS_H |