[Mmclibrary-cvs] mmclibrary/MMCLib2 Common.cs,1.9,1.10
Brought to you by:
imjimmurphy,
kachalkov
From: Lesley v. Z. <ex...@us...> - 2005-01-22 01:20:03
|
Update of /cvsroot/mmclibrary/mmclibrary/MMCLib2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22373 Modified Files: Common.cs Log Message: Added mmc 2 structs and enums but not used them in the actual code Added MMC_VERSION enum to help find out what version is currently running Index: Common.cs =================================================================== RCS file: /cvsroot/mmclibrary/mmclibrary/MMCLib2/Common.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Common.cs 7 Nov 2004 14:44:36 -0000 1.9 --- Common.cs 22 Jan 2005 01:19:50 -0000 1.10 *************** *** 634,639 **** } ! ////////////////////////////////////////////////////////////////////// --- 634,701 ---- } ! public enum MMC_VERSION ! { ! MMCv10 = 10, ! MMCv11 = 11, ! MMCv12 = 12, ! MMCv20 = 20 ! } ! ! #region MMC2 enums + public enum ColumnSortOrder + { + SortOrder_Ascending = 0, + SortOrder_Descending = 1 + } + + public enum DocumentMode + { + DocumentMode_Author = 0, + DocumentMode_User = 1, + DocumentMode_User_MDI = 2, + DocumentMode_User_SDI = 3 + } + + public enum ExportListOptions + { + ExportListOptions_Default = 0x0000, + ExportListOptions_Unicode = 0x0001, + ExportListOptions_TabDelimited = 0x0002, + ExportListOptions_SelectedItemsOnly = 0x0004 + } + + public enum ListViewMode + { + ListMode_Small_Icons = 0, + ListMode_Large_Icons = 1, + ListMode_List = 2, + ListMode_Detail = 3, + ListMode_Filtered = 4 + } + + public enum MMC_PROPERTY_ACTION + { + MMC_PROPACT_DELETING = 1, + MMC_PROPACT_CHANGING, + MMC_PROPACT_INITIALIZED + } + + public enum MMC_VIEW_TYPE + { + MMC_VIEW_TYPE_LIST = 0, + MMC_VIEW_TYPE_HTML = MMC_VIEW_TYPE_LIST + 1, + MMC_VIEW_TYPE_OCX = MMC_VIEW_TYPE_HTML + 1 + } + + public enum ViewOptions + { + ViewOption_Default = 0x0000, + ViewOption_ScopeTreeHidden = 0x0001, + ViewOption_NoToolBars = 0x0002, + ViewOption_NotPersistable = 0x0004 + } + + #endregion ////////////////////////////////////////////////////////////////////// *************** *** 728,731 **** --- 790,907 ---- } + + + [ + StructLayout(LayoutKind.Sequential, + CharSet=CharSet.Auto) + ] + public struct MMC_COLUMN_DATA + { + int nColIndex; // Column index + uint dwFlags; // Column flags + int nWidth; // Column width + IntPtr ulReserved; // For future use + + /* + int nColIndex; + DWORD dwFlags; + int nWidth; + ULONG_PTR ulReserved; + */ + } + + + [ + StructLayout(LayoutKind.Sequential, + CharSet=CharSet.Auto) + ] + public struct MMC_COLUMN_SET_DATA + { + public int cbSize; // Size of this struct. + public int nNumCols; // Number of columns + public IntPtr pColData; // Array of column data + + /* + int cbSize; + int nNumCols; + MMC_COLUMN_DATA* pColData; + */ + } + + [ + StructLayout(LayoutKind.Sequential, + CharSet=CharSet.Auto) + ] + public struct MMC_SORT_DATA + { + int nColIndex; // Column index + uint dwSortOptions; // Column sort options + IntPtr ulReserved; // For future use + + /* + int nColIndex; + DWORD dwSortOptions; + ULONG_PTR ulReserved; + */ + } + + [ + StructLayout(LayoutKind.Sequential, + CharSet=CharSet.Auto) + ] + public struct MMC_SORT_SET_DATA + { + public int cbSize; // Size of this struct. + public int nNumItems; // Number of items in the array below. + public IntPtr pSortData; // Array of column data + + /* + int cbSize; + int nNumItems; + MMC_SORT_DATA* pSortData; + */ + + } + + public struct RESULT_VIEW_TYPE_INFO + { + public string pstrPersistableViewDescription; + public MMC_VIEW_TYPE eViewType; + public uint dwMiscOptions; + public uint options; + public object info_object; + + /* + LPOLESTR pstrPersistableViewDescription; + MMC_VIEW_TYPE eViewType; + DWORD dwMiscOptions; + + [switch_type(MMC_VIEW_TYPE), switch_is((MMC_VIEW_TYPE)eViewType)] + union + { + + [case(MMC_VIEW_TYPE_LIST)] + DWORD dwListOptions; + + [case(MMC_VIEW_TYPE_HTML)] + struct + { + DWORD dwHTMLOptions; // must be zero for future expansion. + LPOLESTR pstrURL; + }; + + [case(MMC_VIEW_TYPE_OCX)] + struct + { + DWORD dwOCXOptions; + LPUNKNOWN pUnkControl; + }; + + [default]; + */ + } + + + [ StructLayout(LayoutKind.Sequential, *************** *** 779,783 **** } - [ StructLayout(LayoutKind.Sequential) --- 955,958 ---- *************** *** 798,801 **** --- 973,1023 ---- StructLayout(LayoutKind.Sequential) ] + public struct CONTEXTMENUITEM2 + { + [MarshalAs(UnmanagedType.LPWStr)] + public string strName; + [MarshalAs(UnmanagedType.LPWStr)] + public string strStatusBarText; + public int lCommandID; + public uint lInsertionPointID; + public int fFlags; + public int fSpecialFlags; + [MarshalAs(UnmanagedType.LPWStr)] + public string strLanguageIndependentName; + + /* + LPWSTR strName; + LPWSTR strStatusBarText; + LONG lCommandID; + LONG lInsertionPointID; + LONG fFlags; + LONG fSpecialFlags; + LPWSTR strLanguageIndependentName; + */ + } + + public struct MMC_EXT_VIEW_DATA + { + public string viewID; // GUID used to describe the view. Used to restore a view. + public string pszURL; // URL describing extension page + public string pszViewTitle; // title of the view extension + + public string pszTooltipText; // tooltip for the tab + [MarshalAs(UnmanagedType.Bool)] + public bool bReplacesDefaultView; // TRUE == no "Normal" tab + + /* + GUID viewID; + LPCOLESTR pszURL; + LPCOLESTR pszViewTitle; + LPCOLESTR pszTooltipText; + BOOL bReplacesDefaultView; + */ + } + + + [ + StructLayout(LayoutKind.Sequential) + ] public struct SCOPEDATAITEM { *************** *** 1006,1008 **** --- 1228,1234 ---- + + + + } \ No newline at end of file |