| 5857 | return ( bContinue ); |
| 5858 | } |
| 5859 | BOOL CALLBACK EnumWndProc2 ( HWND hwnd, LPARAM lParam ) |
| 5860 | { |
| 5861 | BOOL bContinue = TRUE; |
| 5862 | WCHAR szClassName[64]; |
| 5863 | if ( GetClassName ( hwnd, szClassName, COUNTOF ( szClassName ) ) ) |
| 5864 | if ( lstrcmpi ( szClassName, wchWndClass ) == 0 ) { |
| 5865 | DWORD dwReuseLock = GetDlgItemInt ( hwnd, IDC_REUSELOCK, NULL, FALSE ); |
| 5866 | if ( GetTickCount() - dwReuseLock >= REUSEWINDOWLOCKTIMEOUT ) { |
| 5867 | WCHAR tchFileName[MAX_PATH] = L""; |
| 5868 | if ( IsWindowEnabled ( hwnd ) ) { |
| 5869 | bContinue = FALSE; |
| 5870 | } |
| 5871 | GetDlgItemText ( hwnd, IDC_FILENAME, tchFileName, COUNTOF ( tchFileName ) ); |
| 5872 | if ( lstrcmpi ( tchFileName, lpFileArg ) == 0 ) { |
| 5873 | * ( HWND * ) lParam = hwnd; |
| 5874 | } else { |
| 5875 | bContinue = TRUE; |
| 5876 | } |
| 5877 | } |
| 5878 | } |
| 5879 | return ( bContinue ); |
| 5880 | } |
| 5881 | BOOL ActivatePrevInst() |
| 5882 | { |
| 5883 | HWND hwnd = NULL; |
nothing calls this directly
no outgoing calls
no test coverage detected