/******************************************************************************** Copyright (C) 2012 Hugh Bailey This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. ********************************************************************************/ #pragma once #define WINVER 0x0600 #define _WIN32_WINDOWS 0x0600 #define _WIN32_WINNT 0x0600 #define WIN32_LEAN_AND_MEAN #define ISOLATION_AWARE_ENABLED 1 #include #include #include #include #include #include //------------------------------------------- // direct3d 10.1 #include #include #include //------------------------------------------- // API DLL #include "OBSApi.h" //------------------------------------------- // application globals class OBS; extern HWND hwndMain; extern HWND hwndRenderFrame; extern HINSTANCE hinstMain; extern ConfigFile *GlobalConfig; extern ConfigFile *AppConfig; extern OBS *App; extern TCHAR lpAppDataPath[MAX_PATH]; #define OBS_VERSION 0x000429 #define OBS_VERSION_STRING_ANSI "Open Broadcaster Software v0.43a [test version 1]" #define OBS_VERSION_STRING TEXT(OBS_VERSION_STRING_ANSI) #define OBS_WINDOW_CLASS TEXT("OBSWindowClass") #define OBS_RENDERFRAME_CLASS TEXT("RenderFrame") inline UINT ConvertMSTo100NanoSec(UINT ms) { return ms*1000*10; //1000 microseconds, then 10 "100nanosecond" segments } //------------------------------------------- // application headers #include "../resource.h" #include "VolumeControl.h" #include "OBS.h" #include "WindowStuff.h" #include "CodeTokenizer.h" #include "D3D10System.h"