diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2006-06-25 01:37:43 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2006-06-25 01:37:43 +0400 |
commit | 0868305e78da2b0742c2ce349efa041d5622ae21 (patch) | |
tree | 663fd93132c7927910ba7c13188d6332b2e3e5b2 /src/apps/mpcinfo | |
parent | 43c8656956a0460fc4551e3ea7a39b9f3094a3e3 (diff) |
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@14 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mpcinfo')
-rw-r--r-- | src/apps/mpcinfo/Resource.h | 16 | ||||
-rw-r--r-- | src/apps/mpcinfo/doc/mpcinfo.txt | 72 | ||||
-rw-r--r-- | src/apps/mpcinfo/mpcinfo.cpp | 288 | ||||
-rw-r--r-- | src/apps/mpcinfo/mpcinfo.def | 13 | ||||
-rw-r--r-- | src/apps/mpcinfo/mpcinfo.h | 48 | ||||
-rw-r--r-- | src/apps/mpcinfo/mpcinfo.ncb | bin | 0 -> 27648 bytes | |||
-rw-r--r-- | src/apps/mpcinfo/mpcinfo.rc | 135 | ||||
-rw-r--r-- | src/apps/mpcinfo/mpcinfo.sln | 21 | ||||
-rw-r--r-- | src/apps/mpcinfo/mpcinfo.suo | bin | 0 -> 7680 bytes | |||
-rw-r--r-- | src/apps/mpcinfo/mpcinfo.vcproj | 190 | ||||
-rw-r--r-- | src/apps/mpcinfo/res/mpcinfo.rc2 | 13 | ||||
-rw-r--r-- | src/apps/mpcinfo/stdafx.cpp | 28 | ||||
-rw-r--r-- | src/apps/mpcinfo/stdafx.h | 73 |
13 files changed, 897 insertions, 0 deletions
diff --git a/src/apps/mpcinfo/Resource.h b/src/apps/mpcinfo/Resource.h new file mode 100644 index 000000000..ef473e336 --- /dev/null +++ b/src/apps/mpcinfo/Resource.h @@ -0,0 +1,16 @@ +//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by mpcinfo.RC
+//
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+
+#define _APS_NEXT_RESOURCE_VALUE 3000
+#define _APS_NEXT_CONTROL_VALUE 3000
+#define _APS_NEXT_SYMED_VALUE 3000
+#define _APS_NEXT_COMMAND_VALUE 32771
+#endif
+#endif
diff --git a/src/apps/mpcinfo/doc/mpcinfo.txt b/src/apps/mpcinfo/doc/mpcinfo.txt new file mode 100644 index 000000000..22653f002 --- /dev/null +++ b/src/apps/mpcinfo/doc/mpcinfo.txt @@ -0,0 +1,72 @@ +MPCINFO.DLL by Gabest
+MPCINFO.TXT by Krofinzki
+
+The dll file reads information from Media Player Classic. Wich is a great player!
+It can be downloaded from: http://www.gabest.org/mpc.php
+
+This textfile explains how to use mpcinfo.dll with mIRC.
+
+
+Functions Explained:
+-------------------
+
+ file $dll(mpcinfo.dll,file,) returns:
+
+ File name, with path.
+ Use $nopath($dll(mpcinfo.dll,file,)) if you don't want the path
+
+
+ size $dll(mpcinfo.dll,size,) returns:
+
+ Size of the file being played (in bytes)
+
+
+ pos $dll(mpcinfo.dll,pos,) returns:
+
+ Current position of the playback in position/duration form
+
+ Example: 01:34/02:46
+
+
+ info $dll(mpcinfo.dll,info,)
+
+ All-in-one, "file, size, pos"
+
+
+ running $dll(mpcinfo.dll,running,) returns:
+
+ 0: File opened, state wrong
+ 1: File opened, state matching
+ 2: Nothing is opened, or mpc is not running
+
+
+ stopped $dll(mpcinfo.dll,stopped,) returns:
+
+ 0: File opened, state wrong
+ 1: File opened, state matching
+ 2: Nothing is opened, or mpc is not running
+
+
+ paused $dll(mpcinfo.dll,paused,) returns:
+
+ 0: File opened, state wrong
+ 1: File opened, state matching
+ 2: Nothing is opened, or mpc is not running
+
+
+Combined Example:
+----------------
+
+Add the following in remotes (Alt+R)
+
+alias mplayerc {
+ if ($dll(mpcinfo.dll,running,) != 2) {
+ if ($dll(mpcinfo.dll,file,) != $null) { me watches: $nopath($dll(mpcinfo.dll,file,)) ( $+ $dll(mpcinfo.dll,pos,) $+ ) Size: $round($calc($dll(mpcinfo.dll,size,) / 1024 / 1024 ),1) mb }
+ else { echo -a *** Couldn't retrive MplayerC information }
+ halt
+ }
+ else { echo -a *** Media Player Classic is not running }
+}
+
+Then type /mplayerc in mIRC (Also make sure your playing something in MPC :p)
+
diff --git a/src/apps/mpcinfo/mpcinfo.cpp b/src/apps/mpcinfo/mpcinfo.cpp new file mode 100644 index 000000000..64293f639 --- /dev/null +++ b/src/apps/mpcinfo/mpcinfo.cpp @@ -0,0 +1,288 @@ +/*
+ * Copyright (C) 2003-2005 Gabest
+ * http://www.gabest.org
+ *
+ * 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, 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 GNU Make; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+// mpcinfo.cpp : Defines the initialization routines for the DLL.
+//
+
+#include "stdafx.h"
+#include "mpcinfo.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
+
+//
+// Note!
+//
+// If this DLL is dynamically linked against the MFC
+// DLLs, any functions exported from this DLL which
+// call into MFC must have the AFX_MANAGE_STATE macro
+// added at the very beginning of the function.
+//
+// For example:
+//
+// extern "C" BOOL PASCAL EXPORT ExportedFunction()
+// {
+// AFX_MANAGE_STATE(AfxGetStaticModuleState());
+// // normal function body here
+// }
+//
+// It is very important that this macro appear in each
+// function, prior to any calls into MFC. This means that
+// it must appear as the first statement within the
+// function, even before any object variable declarations
+// as their constructors may generate calls into the MFC
+// DLL.
+//
+// Please see MFC Technical Notes 33 and 58 for additional
+// details.
+//
+
+// CmpcinfoApp
+
+BEGIN_MESSAGE_MAP(CmpcinfoApp, CWinApp)
+END_MESSAGE_MAP()
+
+
+// CmpcinfoApp construction
+
+CmpcinfoApp::CmpcinfoApp()
+{
+ // TODO: add construction code here,
+ // Place all significant initialization in InitInstance
+}
+
+
+// The one and only CmpcinfoApp object
+
+CmpcinfoApp theApp;
+
+
+// CmpcinfoApp initialization
+
+BOOL CmpcinfoApp::InitInstance()
+{
+ CWinApp::InitInstance();
+
+ return TRUE;
+}
+
+#include <dshow.h>
+#include <streams.h>
+#include <atlbase.h>
+
+static bool GetFilterGraph(IFilterGraph** ppFG)
+{
+ if(!ppFG) return(false);
+
+ CComPtr<IRunningObjectTable> pROT;
+ if(FAILED(GetRunningObjectTable(0, &pROT)))
+ return 1;
+
+ CComPtr<IEnumMoniker> pEM;
+ if(FAILED(pROT->EnumRunning(&pEM)))
+ return 1;
+
+ CComPtr<IBindCtx> pBindCtx;
+ CreateBindCtx(0, &pBindCtx);
+
+ for(CComPtr<IMoniker> pMoniker; S_OK == pEM->Next(1, &pMoniker, NULL); pMoniker = NULL)
+ {
+ LPOLESTR pDispName = NULL;
+ if(FAILED(pMoniker->GetDisplayName(pBindCtx, NULL, &pDispName)))
+ continue;
+
+ CStringW strw(pDispName);
+
+ CComPtr<IMalloc> pMalloc;
+ if(FAILED(CoGetMalloc(1, &pMalloc)))
+ continue;
+ pMalloc->Free(pDispName);
+
+ if(strw.Find(L"(MPC)") < 0)
+ continue;
+
+ CComPtr<IUnknown> pUnk;
+ if(S_OK != pROT->GetObject(pMoniker, &pUnk))
+ continue;
+
+ CComQIPtr<IFilterGraph> pFG = pUnk;
+ if(!pFG)
+ continue;
+
+ *ppFG = pFG.Detach();
+
+ break;
+ }
+
+ return(!!*ppFG);
+}
+
+extern "C" int WINAPI file(HWND,HWND,char *data,char*,BOOL,BOOL)
+{
+ CComPtr<IFilterGraph> pFG;
+ if(!GetFilterGraph(&pFG))
+ return 1;
+
+ CString fn;
+
+ CComPtr<IEnumFilters> pEF;
+ if(FAILED(pFG->EnumFilters(&pEF)))
+ return 1;
+
+ ULONG cFetched = 0;
+ for(CComPtr<IBaseFilter> pBF; S_OK == pEF->Next(1, &pBF, &cFetched); pBF = NULL)
+ {
+ if(CComQIPtr<IFileSourceFilter> pFSF = pBF)
+ {
+ LPOLESTR pFileName = NULL;
+ AM_MEDIA_TYPE mt;
+ if(FAILED(pFSF->GetCurFile(&pFileName, &mt)))
+ continue;
+
+ fn = CStringW(pFileName);
+
+ CoTaskMemFree(pFileName);
+ FreeMediaType(mt);
+
+ break;
+ }
+ }
+
+ if(fn.IsEmpty())
+ return 1;
+
+ sprintf(data, _T("%s"), fn);
+
+ return 3;
+}
+
+extern "C" int WINAPI size(HWND,HWND,char *data,char*,BOOL,BOOL)
+{
+ if(file(0,0,data,0,0,0) != 3)
+ return 1;
+
+ CString fn = CStringA(data);
+ data[0] = 0;
+
+ HANDLE hFile = CreateFile(fn, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, (HANDLE)NULL);
+ if(hFile == INVALID_HANDLE_VALUE)
+ return 1;
+
+ LARGE_INTEGER size;
+ size.QuadPart = 0;
+ size.LowPart = GetFileSize(hFile, (DWORD*)&size.HighPart);
+
+ sprintf(data, _T("%I64d"), size.QuadPart);
+
+ CloseHandle(hFile);
+
+ return 3;
+}
+
+extern "C" int WINAPI pos(HWND,HWND,char *data,char*,BOOL,BOOL)
+{
+ CComPtr<IFilterGraph> pFG;
+ if(!GetFilterGraph(&pFG))
+ return 1;
+
+ CComQIPtr<IMediaSeeking> pMS = pFG;
+ REFERENCE_TIME pos, dur;
+ if(FAILED(pMS->GetCurrentPosition(&pos)) || FAILED(pMS->GetDuration(&dur)))
+ return 1;
+
+ if(dur > 10000000i64*60*60)
+ {
+ sprintf(data, _T("%02d:%02d:%02d/%02d:%02d:%02d"),
+ (int)(pos/10000000/60/60), (int)(pos/10000000/60)%60, (int)(pos/10000000)%60,
+ (int)(dur/10000000/60/60), (int)(dur/10000000/60)%60, (int)(dur/10000000)%60);
+ }
+ else
+ {
+ sprintf(data, _T("%02d:%02d/%02d:%02d"),
+ (int)(pos/10000000/60)%60, (int)(pos/10000000)%60,
+ (int)(dur/10000000/60)%60, (int)(dur/10000000)%60);
+ }
+
+ return 3;
+}
+
+extern "C" int WINAPI info(HWND,HWND,char *data,char*,BOOL,BOOL)
+{
+ CStringA ret;
+ if(file(0,0,data,0,0,0)!=3) return 1;
+ ret += data;
+ ret += ", ";
+ if(size(0,0,data,0,0,0)!=3) return 1;
+ ret += data;
+ ret += ", ";
+ if(pos(0,0,data,0,0,0)!=3) return 1;
+ ret += data;
+
+ strcpy(data, ret);
+
+ return 3;
+}
+
+extern "C" int WINAPI stopped(HWND,HWND,char *data,char*,BOOL,BOOL)
+{
+ sprintf(data, _T("2"));
+
+ CComPtr<IFilterGraph> pFG;
+ CComQIPtr<IMediaControl> pMC;
+ OAFilterState fs;
+ if(!GetFilterGraph(&pFG) || !(pMC = pFG) || FAILED(pMC->GetState(0, &fs)))
+ return 3;
+
+ sprintf(data, _T("%d"), fs == State_Stopped ? 1 : 0);
+
+ return 3;
+}
+
+extern "C" int WINAPI paused(HWND,HWND,char *data,char*,BOOL,BOOL)
+{
+ sprintf(data, _T("2"));
+
+ CComPtr<IFilterGraph> pFG;
+ CComQIPtr<IMediaControl> pMC;
+ OAFilterState fs;
+ if(!GetFilterGraph(&pFG) || !(pMC = pFG) || FAILED(pMC->GetState(0, &fs)))
+ return 3;
+
+ sprintf(data, _T("%d"), fs == State_Paused ? 1 : 0);
+
+ return 3;
+}
+
+extern "C" int WINAPI running(HWND,HWND,char *data,char*,BOOL,BOOL)
+{
+ sprintf(data, _T("2"));
+
+ CComPtr<IFilterGraph> pFG;
+ CComQIPtr<IMediaControl> pMC;
+ OAFilterState fs;
+ if(!GetFilterGraph(&pFG) || !(pMC = pFG) || FAILED(pMC->GetState(0, &fs)))
+ return 3;
+
+ sprintf(data, _T("%d"), fs == State_Running ? 1 : 0);
+
+ return 3;
+}
diff --git a/src/apps/mpcinfo/mpcinfo.def b/src/apps/mpcinfo/mpcinfo.def new file mode 100644 index 000000000..ac51b673f --- /dev/null +++ b/src/apps/mpcinfo/mpcinfo.def @@ -0,0 +1,13 @@ +; mpcinfo.def : Declares the module parameters for the DLL.
+
+LIBRARY "mpcinfo"
+
+EXPORTS
+ ; Explicit exports can go here
+ file
+ size
+ pos
+ info
+ stopped
+ paused
+ running
\ No newline at end of file diff --git a/src/apps/mpcinfo/mpcinfo.h b/src/apps/mpcinfo/mpcinfo.h new file mode 100644 index 000000000..1693cdce1 --- /dev/null +++ b/src/apps/mpcinfo/mpcinfo.h @@ -0,0 +1,48 @@ +/*
+ * Copyright (C) 2003-2005 Gabest
+ * http://www.gabest.org
+ *
+ * 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, 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 GNU Make; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+// mpcinfo.h : main header file for the mpcinfo DLL
+//
+
+#pragma once
+
+#ifndef __AFXWIN_H__
+ #error include 'stdafx.h' before including this file for PCH
+#endif
+
+#include "resource.h" // main symbols
+
+
+// CmpcinfoApp
+// See mpcinfo.cpp for the implementation of this class
+//
+
+class CmpcinfoApp : public CWinApp
+{
+public:
+ CmpcinfoApp();
+
+// Overrides
+public:
+ virtual BOOL InitInstance();
+
+ DECLARE_MESSAGE_MAP()
+};
diff --git a/src/apps/mpcinfo/mpcinfo.ncb b/src/apps/mpcinfo/mpcinfo.ncb Binary files differnew file mode 100644 index 000000000..a35ff906a --- /dev/null +++ b/src/apps/mpcinfo/mpcinfo.ncb diff --git a/src/apps/mpcinfo/mpcinfo.rc b/src/apps/mpcinfo/mpcinfo.rc new file mode 100644 index 000000000..7dd7e5740 --- /dev/null +++ b/src/apps/mpcinfo/mpcinfo.rc @@ -0,0 +1,135 @@ +// Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// Hungarian resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_HUN)
+#ifdef _WIN32
+LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
+#pragma code_page(1250)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
+ "#define _AFX_NO_OLE_RESOURCES\r\n"
+ "#define _AFX_NO_TRACKER_RESOURCES\r\n"
+ "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
+ "\r\n"
+ "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
+ "LANGUAGE 9, 1\r\n"
+ "#pragma code_page(1252)\r\n"
+ "#include ""res\\mpcinfo.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
+ "#include ""afxres.rc"" // Standard components\r\n"
+ "#endif\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+#endif // Hungarian resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+/////////////////////////////////////////////////////////////////////////////
+// English (U.S.) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+#endif //_WIN32
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,0,0
+ PRODUCTVERSION 1,0,0,0
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "Comments", "http://gabest.org/"
+ VALUE "CompanyName", "Gabest"
+ VALUE "FileDescription", "plugin dll for mirc"
+ VALUE "FileVersion", "1.0.0.0"
+ VALUE "InternalName", "mpcinfo.dll"
+ VALUE "LegalCopyright", "Copyright (C) 2003-2005 Gabest. All rights reserved."
+ VALUE "OriginalFilename", "mpcinfo.dll"
+ VALUE "ProductName", "mpcinfo"
+ VALUE "ProductVersion", "1.0.0.0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END
+
+#endif // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+#define _AFX_NO_SPLITTER_RESOURCES
+#define _AFX_NO_OLE_RESOURCES
+#define _AFX_NO_TRACKER_RESOURCES
+#define _AFX_NO_PROPERTY_RESOURCES
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+LANGUAGE 9, 1
+#pragma code_page(1252)
+#include "res\mpcinfo.rc2" // non-Microsoft Visual C++ edited resources
+#include "afxres.rc" // Standard components
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/src/apps/mpcinfo/mpcinfo.sln b/src/apps/mpcinfo/mpcinfo.sln new file mode 100644 index 000000000..7d4123f10 --- /dev/null +++ b/src/apps/mpcinfo/mpcinfo.sln @@ -0,0 +1,21 @@ +Microsoft Visual Studio Solution File, Format Version 8.00
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpcinfo", "mpcinfo.vcproj", "{AF754B6B-75F8-4A8A-9A98-2E34DB02D4A8}"
+ ProjectSection(ProjectDependencies) = postProject
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SolutionConfiguration) = preSolution
+ Debug = Debug
+ Release = Release
+ EndGlobalSection
+ GlobalSection(ProjectConfiguration) = postSolution
+ {AF754B6B-75F8-4A8A-9A98-2E34DB02D4A8}.Debug.ActiveCfg = Debug|Win32
+ {AF754B6B-75F8-4A8A-9A98-2E34DB02D4A8}.Debug.Build.0 = Debug|Win32
+ {AF754B6B-75F8-4A8A-9A98-2E34DB02D4A8}.Release.ActiveCfg = Release|Win32
+ {AF754B6B-75F8-4A8A-9A98-2E34DB02D4A8}.Release.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ EndGlobalSection
+ GlobalSection(ExtensibilityAddIns) = postSolution
+ EndGlobalSection
+EndGlobal
diff --git a/src/apps/mpcinfo/mpcinfo.suo b/src/apps/mpcinfo/mpcinfo.suo Binary files differnew file mode 100644 index 000000000..9559d4194 --- /dev/null +++ b/src/apps/mpcinfo/mpcinfo.suo diff --git a/src/apps/mpcinfo/mpcinfo.vcproj b/src/apps/mpcinfo/mpcinfo.vcproj new file mode 100644 index 000000000..3d00b0643 --- /dev/null +++ b/src/apps/mpcinfo/mpcinfo.vcproj @@ -0,0 +1,190 @@ +<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="7.10"
+ Name="mpcinfo"
+ ProjectGUID="{AF754B6B-75F8-4A8A-9A98-2E34DB02D4A8}"
+ Keyword="MFCDLLProj">
+ <Platforms>
+ <Platform
+ Name="Win32"/>
+ </Platforms>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="Debug"
+ IntermediateDirectory="Debug"
+ ConfigurationType="2"
+ UseOfMFC="2"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ PreprocessorDefinitions="WIN32;_WINDOWS;_DEBUG;_USRDLL"
+ MinimalRebuild="TRUE"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ TreatWChar_tAsBuiltInType="TRUE"
+ UsePrecompiledHeader="3"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="TRUE"
+ DebugInformationFormat="4"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="strmbaseD.lib"
+ OutputFile="$(OutDir)/mpcinfo.dll"
+ LinkIncremental="2"
+ ModuleDefinitionFile=".\mpcinfo.def"
+ GenerateDebugInformation="TRUE"
+ SubSystem="2"
+ ImportLibrary="$(OutDir)/mpcinfo.lib"
+ TargetMachine="1"/>
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="_DEBUG"
+ MkTypLibCompatible="FALSE"/>
+ <Tool
+ Name="VCPostBuildEventTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="_DEBUG"
+ Culture="1033"
+ AdditionalIncludeDirectories="$(IntDir)"/>
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"/>
+ <Tool
+ Name="VCXMLDataGeneratorTool"/>
+ <Tool
+ Name="VCWebDeploymentTool"/>
+ <Tool
+ Name="VCManagedWrapperGeneratorTool"/>
+ <Tool
+ Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="Release"
+ IntermediateDirectory="Release"
+ ConfigurationType="2"
+ UseOfMFC="1"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ InlineFunctionExpansion="1"
+ OmitFramePointers="TRUE"
+ PreprocessorDefinitions="WIN32;_WINDOWS;NDEBUG;_USRDLL"
+ StringPooling="TRUE"
+ RuntimeLibrary="0"
+ EnableFunctionLevelLinking="TRUE"
+ TreatWChar_tAsBuiltInType="TRUE"
+ UsePrecompiledHeader="3"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="TRUE"
+ DebugInformationFormat="3"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="delayimp.lib strmbaseR.lib"
+ OutputFile="$(OutDir)/mpcinfo.dll"
+ LinkIncremental="1"
+ ModuleDefinitionFile=".\mpcinfo.def"
+ DelayLoadDLLs="oleacc.dll"
+ GenerateDebugInformation="TRUE"
+ SubSystem="2"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ ImportLibrary="$(OutDir)/mpcinfo.lib"
+ TargetMachine="1"/>
+ <Tool
+ Name="VCMIDLTool"
+ PreprocessorDefinitions="NDEBUG"
+ MkTypLibCompatible="FALSE"/>
+ <Tool
+ Name="VCPostBuildEventTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceCompilerTool"
+ PreprocessorDefinitions="NDEBUG"
+ Culture="1033"
+ AdditionalIncludeDirectories="$(IntDir)"/>
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"/>
+ <Tool
+ Name="VCXMLDataGeneratorTool"/>
+ <Tool
+ Name="VCWebDeploymentTool"/>
+ <Tool
+ Name="VCManagedWrapperGeneratorTool"/>
+ <Tool
+ Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="Source Files"
+ Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm">
+ <File
+ RelativePath="mpcinfo.cpp">
+ </File>
+ <File
+ RelativePath="mpcinfo.def">
+ </File>
+ <File
+ RelativePath="stdafx.cpp">
+ <FileConfiguration
+ Name="Debug|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="1"/>
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release|Win32">
+ <Tool
+ Name="VCCLCompilerTool"
+ UsePrecompiledHeader="1"/>
+ </FileConfiguration>
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc">
+ <File
+ RelativePath="mpcinfo.h">
+ </File>
+ <File
+ RelativePath="Resource.h">
+ </File>
+ <File
+ RelativePath="stdafx.h">
+ </File>
+ </Filter>
+ <Filter
+ Name="Resource Files"
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
+ <File
+ RelativePath="mpcinfo.rc">
+ </File>
+ <File
+ RelativePath="res\mpcinfo.rc2">
+ </File>
+ </Filter>
+ <File
+ RelativePath="ReadMe.txt">
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/src/apps/mpcinfo/res/mpcinfo.rc2 b/src/apps/mpcinfo/res/mpcinfo.rc2 new file mode 100644 index 000000000..7dc6c48dc --- /dev/null +++ b/src/apps/mpcinfo/res/mpcinfo.rc2 @@ -0,0 +1,13 @@ +//
+// mpcinfo.RC2 - resources Microsoft Visual C++ does not edit directly
+//
+
+#ifdef APSTUDIO_INVOKED
+#error this file is not editable by Microsoft Visual C++
+#endif //APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+// Add manually edited resources here...
+
+/////////////////////////////////////////////////////////////////////////////
diff --git a/src/apps/mpcinfo/stdafx.cpp b/src/apps/mpcinfo/stdafx.cpp new file mode 100644 index 000000000..92b493be5 --- /dev/null +++ b/src/apps/mpcinfo/stdafx.cpp @@ -0,0 +1,28 @@ +/*
+ * Copyright (C) 2003-2005 Gabest
+ * http://www.gabest.org
+ *
+ * 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, 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 GNU Make; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+// stdafx.cpp : source file that includes just the standard includes
+// mpcinfo.pch will be the pre-compiled header
+// stdafx.obj will contain the pre-compiled type information
+
+#include "stdafx.h"
+
+
diff --git a/src/apps/mpcinfo/stdafx.h b/src/apps/mpcinfo/stdafx.h new file mode 100644 index 000000000..cf7d4edb4 --- /dev/null +++ b/src/apps/mpcinfo/stdafx.h @@ -0,0 +1,73 @@ +/*
+ * Copyright (C) 2003-2005 Gabest
+ * http://www.gabest.org
+ *
+ * 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, 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 GNU Make; see the file COPYING. If not, write to
+ * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ */
+
+// stdafx.h : include file for standard system include files,
+// or project specific include files that are used frequently, but
+// are changed infrequently
+
+#pragma once
+
+#ifndef VC_EXTRALEAN
+#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
+#endif
+
+// Modify the following defines if you have to target a platform prior to the ones specified below.
+// Refer to MSDN for the latest info on corresponding values for different platforms.
+#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
+#define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
+#endif
+
+#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
+#define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 2000 or later.
+#endif
+
+#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
+#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
+#endif
+
+#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
+#define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
+#endif
+
+#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
+
+#include <afxwin.h> // MFC core and standard components
+#include <afxext.h> // MFC extensions
+
+#ifndef _AFX_NO_OLE_SUPPORT
+#include <afxole.h> // MFC OLE classes
+#include <afxodlgs.h> // MFC OLE dialog classes
+#include <afxdisp.h> // MFC Automation classes
+#endif // _AFX_NO_OLE_SUPPORT
+
+#ifndef _AFX_NO_DB_SUPPORT
+#include <afxdb.h> // MFC ODBC database classes
+#endif // _AFX_NO_DB_SUPPORT
+
+#ifndef _AFX_NO_DAO_SUPPORT
+#include <afxdao.h> // MFC DAO database classes
+#endif // _AFX_NO_DAO_SUPPORT
+
+#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
+#ifndef _AFX_NO_AFXCMN_SUPPORT
+#include <afxcmn.h> // MFC support for Windows Common Controls
+#endif // _AFX_NO_AFXCMN_SUPPORT
+
|