[Mmclibrary-cvs] mmclibrary/MMCLib2/Core Component.cs,1.18,1.19
Brought to you by:
imjimmurphy,
kachalkov
From: Lesley v. Z. <ex...@us...> - 2005-01-22 02:06:46
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32507 Modified Files: Component.cs Log Message: Added checks to check current running version of mmc Index: Component.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Core/Component.cs,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Component.cs 19 Jan 2005 22:18:45 -0000 1.18 --- Component.cs 22 Jan 2005 02:06:37 -0000 1.19 *************** *** 126,130 **** public void Initialize(Object pConsole) { ! _console = pConsole as IConsole2; } --- 126,142 ---- public void Initialize(Object pConsole) { ! IMMCVersionInfo versionInfo = pConsole as IMMCVersionInfo; // doesn't work without platform sdk ? ! IConsole3 testConsole = pConsole as IConsole3; // introduced in mmc2 ! IColumnData columnData = pConsole as IColumnData; // introduced in mmc1.2 ! _console = pConsole as IConsole2; // introduced in mmc1.1 ! ! if(versionInfo != null || testConsole != null) ! _snapin.MMCVersion = MMC_VERSION.MMCv20; ! else if(columnData != null && _console != null) ! _snapin.MMCVersion = MMC_VERSION.MMCv12; ! else if(_console != null) ! _snapin.MMCVersion = MMC_VERSION.MMCv11; ! else ! _snapin.MMCVersion = MMC_VERSION.MMCv10; } *************** *** 926,930 **** /// </summary> /// <param name="i"></param> - /// <remarks>FIXME according to the msdn this needs to be a HRESULT Destroy();</remarks> public void Destroy(int i) { --- 938,941 ---- |