uses a Mutex to figure out if there is an instance of color cop running
| 104 | |
| 105 | // uses a Mutex to figure out if there is an instance of color cop running |
| 106 | bool 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 | |
| 113 | BOOL CColorCopApp::GetShellFolderPath(LPCTSTR pShellFolder, LPTSTR pShellPath) { |
| 114 | // pShellFolder can be one of the following |
nothing calls this directly
no outgoing calls
no test coverage detected