6 #ifndef _INC_cWinProcess_H
7 #define _INC_cWinProcess_H
12 #include "../GrayLibBase.h"
13 #include "../System/cOSProcessX.h"
21 class cWinProcess :
public cOSProcessX
27 const GChar_t*
const m_pszWindowClass;
33 cWinProcess(
const GChar_t* pszWindowClass)
34 : m_pszWindowClass(pszWindowClass)
35 , m_tStarted(cTimeSys::k_CLEAR)
40 HWND get_ProcWnd()
const
44 void DisconnectProcWnd()
48 bool FindProcWnd(
bool bUsePid)
56 if (m_pszWindowClass ==
nullptr && (!bUsePid || get_ProcessId() ==
PROCESSID_BAD))
61 m_hWndProc = cOSProcess::FindWindowForProcessID(bUsePid ? get_ProcessId() :
PROCESSID_BAD, 0, m_pszWindowClass);
#define WINHANDLE_NULL
HWND, HPEN, etc are NOT OS Handles. like HWND_DESKTOP. like HANDLEPTR_NULL. This is a WINAPI void* ha...
Definition: cOSHandle.h:23
UNITTEST2_PREDEF(cQuadtree)
constexpr PROCESSID_t PROCESSID_BAD
Invalid process id.
Definition: cOSProcess.h:46
char GChar_t
My version of TCHAR, _TCHAR.
Definition: StrConst.h:26