MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / InstanceRunning

Method InstanceRunning

ColorCop/ColorCop.cpp:106–111  ·  view source on GitHub ↗

uses a Mutex to figure out if there is an instance of color cop running

Source from the content-addressed store, hash-verified

104
105// uses a Mutex to figure out if there is an instance of color cop running
106bool CColorCopApp::InstanceRunning() {
107 if (!m_hMutex) {
108 m_hMutex = CreateMutex(NULL, TRUE, _T("ColorCop_Mutex"));
109 }
110 return (m_hMutex && GetLastError() == ERROR_ALREADY_EXISTS);
111}
112
113BOOL CColorCopApp::GetShellFolderPath(LPCTSTR pShellFolder, LPTSTR pShellPath) {
114 // pShellFolder can be one of the following

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected