00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_VMSSINGLEINSTANCE_H__63F59A67_04AD_4F96_B174_02D846146257__INCLUDED_) 00007 #define AFX_VMSSINGLEINSTANCE_H__63F59A67_04AD_4F96_B174_02D846146257__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #define WM_APP_NEEDSHUTDOWN 0x8000 00014 00015 class vmsSingleInstance 00016 { 00017 public: 00018 void FreeInstance(); 00019 00020 BOOL is_1stInstance (); 00021 00022 void Shutdown1stInstance(); 00023 00024 HWND get_1stInstanceHWND(); 00025 00026 00027 void set_1stInstanceHWND (HWND hwnd); 00028 00029 00030 vmsSingleInstance(LPCSTR pszAppName); 00031 virtual ~vmsSingleInstance(); 00032 00033 protected: 00034 HANDLE m_hmx; 00035 }; 00036 00037 #endif
1.5.6