3 ==============================================================================
5 This file is part of the mini timer
6 Copyright 2005-10 by Satoshi Fujiwara.
8 mini timer can be redistributed and/or modified under the terms of the
9 GNU General Public License, as published by the Free Software Foundation;
10 either version 2 of the License, or (at your option) any later version.
12 mini timer is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with mini timer; if not, visit www.gnu.org/licenses or write to the
19 Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20 Boston, MA 02111-1307 USA
22 ==============================================================================
24 #include "singleton.h"
25 #include "exception.h"
27 class application : public singleton<application>
31 : public sf::win32_error_exception
33 exception(uint32_t hr) : win32_error_exception(hr) {};
34 exception() : win32_error_exception() {} ;
40 int execute(HINSTANCE hInstance,
41 HINSTANCE hPrevInstance,
46 std::wstring& app_id(){return app_id_;};
47 HINSTANCE instance_handle() {return instance_handle_;};
50 static std::wstring app_id_;
51 HINSTANCE instance_handle_;