svvitch
digital signage player
D:/vs_workspace/switch_sf/src/svvitch/flash.h
Go to the documentation of this file.
00001 #pragma once
00002 
00006 #ifdef UNICODE
00007 #define FormatMessage FormatMessageW
00008 #define FindResource FindResourceW
00009 #define GetModuleFileName GetModuleFileNameW
00010 #define CreateFile CreateFileW
00011 #define LoadLibrary LoadLibraryW
00012 #define CreateEvent CreateEventW
00013 #else
00014 #define FormatMessage FormatMessageA
00015 #define FindResource FindResourceA
00016 #define GetModuleFileName GetModuleFileNameA
00017 #define CreateFile CreateFileA
00018 #define LoadLibrary LoadLibraryA
00019 #define CreateEvent CreateEventA
00020 #endif // !UNICODE
00021 
00022 #include <windows.h>
00023 #include <atlbase.h>
00024 
00025 #pragma warning(disable: 4192)
00026 #import <C:¥¥Windows¥¥SysWOW64¥¥Macromed¥¥Flash¥¥Flash11e.ocx> named_guids
00027 //#import <C:¥¥WINDOWS¥¥system32¥¥Macromed¥¥Flash¥¥Flash64_11_1_102.ocx> named_guids
00028 #pragma warning(default: 4192)
00029 
00030 using namespace ShockwaveFlashObjects;
00031 
00032 
00033 typedef HRESULT (__stdcall *DllGetClassObjectFunc)(REFCLSID rclsid, REFIID riid, LPVOID * ppv);
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines