00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(AFX_FILEEXECUTOR_H__FD5DD55D_4F14_48BB_B158_78680A23289F__INCLUDED_)
00023 #define AFX_FILEEXECUTOR_H__FD5DD55D_4F14_48BB_B158_78680A23289F__INCLUDED_
00024
00025 #pragma once
00026
00027 class CMediaWnd;
00028 class CLibraryWnd;
00029
00030
00031 class CFileExecutor
00032 {
00033
00034 public:
00035 static BOOL Execute(LPCTSTR pszFile, BOOL bForce = FALSE);
00036 static BOOL Enqueue(LPCTSTR pszFiles, BOOL bForce = FALSE);
00037 static BOOL ShowBitziTicket(DWORD nFile);
00038 static BOOL DisplayURL(LPCTSTR pszURL);
00039
00040
00041 protected:
00042 static void GetFileComponents(LPCTSTR pszFile, CString& strPath, CString& strType);
00043 static CMediaWnd* GetMediaWindow(BOOL bFocus);
00044 static CLibraryWnd* GetLibraryWindow();
00045 static HDDEDATA CALLBACK DDECallback(UINT wType, UINT wFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2);
00046
00047 };
00048
00049 #endif // !defined(AFX_FILEEXECUTOR_H__FD5DD55D_4F14_48BB_B158_78680A23289F__INCLUDED_)