Includes&Samples |
SnapInLib, COM interface constants for VB.Net / VBScriptSnapInLib - interface constants This page contains simple VBA include for the SnapInLib COM library.
library parameters
SnapInTypeConstantsenum, 3 members.'Snap-in extension types Public Enum SnapInTypeConstants 'Stand-alone snap-in. Does not extend any node types siStandAlone = 0 '&H0 'Extension snap-in. Cannot be run stand-alone siExtension = 1 '&H1 'Dual-mode snap-in. Can run stand-alone or as an extension. siDualMode = 2 '&H2 End Enum SnapInRuntimeModeConstantsenum, 4 members.'Snap-in runtime modes Public Enum SnapInRuntimeModeConstants 'Snap-in was created at runtime as a primary snap-in. siRTPrimary = 0 '&H0 'Snap-in was created at runtime as an extension snap-in. siRTExtension = 1 '&H1 'Snap-in was created at runtime to extract about-box information (description, provider, version, etc). siRTSnapInAbout = 2 '&H2 'MMC has not yet indicated why the snap-in was created. siRTUnknown = 3 '&H3 End Enum SnapInResultViewTypeConstantsenum, 9 members.'Snap-in result view types Public Enum SnapInResultViewTypeConstants 'ResultView is console's ListView. siListView = 0 '&H0 'ResultView is a web page. siURLView = 1 '&H1 'ResultView is a control (OCX). siOCXView = 2 '&H2 'ResultView is the default taskpad. siTaskpad = 3 '&H3 'ResultView is a ListView taskpad. siListpad = 4 '&H4 'ResultView is a custom taskpad. Requires a developer supplied DHTML page. siCustomTaskpad = 5 '&H5 'ResultView is a MessageView. siMessageView = 6 '&H6 'ResultView is defined at design time. ResultViewDisplayString is view type name. siPreDefined = 7 '&H7 'View type is not known. siUnknown = 8 '&H8 End Enum SnapInSortOrderConstantsenum, 2 members.'Snap-in list view sort order types Public Enum SnapInSortOrderConstants 'Sort in ascending order. siAscending = 0 '&H0 'Sort in descending order. siDescending = 1 '&H1 End Enum SnapInViewModeConstantsenum, 5 members.'Snap-in view mode for list views Public Enum SnapInViewModeConstants 'Items are displayed as title strings under their large icons. Subitems and headers are not displayed. siIcon = 0 '&H0 'Items are displayed as title strings under their small icons. Subitems and headers are not displayed. siSmallIcon = 1 '&H1 'Items are displayed as title strings to the right of their small icons. Subitems and headers are not displayed. siList = 2 '&H2 'Items are displayed as title strings to the right of their small icons tabulated under column header zero. Subitems are placed under subsequent headers. siReport = 3 '&H3 'Items are displayed in Report mode and the user is allowed to enter filter strings for each column. siFiltered = 4 '&H4 End Enum SnapInColumnAlignmentConstantsenum, 3 members.'Snap-in column alignment for list view column headers. Public Enum SnapInColumnAlignmentConstants 'Text is left aligned in the column. siColumnLeft = 0 '&H0 'Text is right aligned in the column. siColumnRight = 1 '&H1 'Text is centered in the column. siColumnCenter = 2 '&H2 End Enum SnapInColumnWidthConstantsenum, 1 members.'Snap-in column width constants for list view column headers. Public Enum SnapInColumnWidthConstants 'May be used instead of a pixel quantity to indicate that the column width should be determined from the length of its title text. siColumnAutoWidth = -1 '&HFFFFFFFF End Enum SnapInConsoleVerbConstantsenum, 10 members.'Snap-in console verbs Public Enum SnapInConsoleVerbConstants 'No verbs specified. siNone = 0 '&H0 'Opens the selected folder. siOpen = 32768 '&H8000 'Allows the selected item(s) to be copied to the clipboard. siCopy = 32769 '&H8001 'Allows the selected item(s) that have been cut or copied to be pasted onto a scope item. siPaste = 32770 '&H8002 'Allows the selected item(s) to be deleted. siDelete = 32771 '&H8003 'Allows the user to invoke properties display for the selected items. siProperties = 32772 '&H8004 'Allows the selected item to be renamed. siRename = 32773 '&H8005 'Allows the user to invoke refresh for the selected item. siRefresh = 32774 '&H8006 'Allows the user to invoke print for the selected item(s). siPrint = 32775 '&H8007 'Allows the selected item(s) to be cut to the clipboard. siCut = 32776 '&H8008 End Enum SnapInButtonStyleConstantsenum, 5 members.'Snap-in toolbar button styles Public Enum SnapInButtonStyleConstants 'The button is a regular push button. siDefault = 0 '&H0 'The button is a check button, which can be checked or unchecked. siCheck = 1 '&H1 'The button remains pressed until another button in the group is pressed. Exactly one button in the group can be pressed at any one moment. siButtonGroup = 4 '&H4 'The button functions as a separator. siSeparator = 8 '&H8 'MenuButton drop down. Use this style to create MenuButton objects. siDropDown = 16 '&H10 End Enum SnapInButtonValueConstantsenum, 2 members.'Snap-in toolbar button values. Public Enum SnapInButtonValueConstants 'The button is not currently pressed. siUnpressed = 0 '&H0 'The button is currently pressed. siPressed = 1 '&H1 End Enum SnapInActionTypeConstantsenum, 3 members.'Snap-in taskpad action types. Public Enum SnapInActionTypeConstants 'When the user clicks the task the event ResultViews_TaskClick is fired. siNotify = 0 '&H0 'When the user clicks the task the console navigates to the URL specified by Task.URL in the result pane. siURL = 1 '&H1 'When the user clicks the task the console runs the script specifed by Task.Script using the window.execScript method on the taskpad HTML page. siScript = 2 '&H2 End Enum SnapInNodeRelationshipConstantsenum, 4 members.'Snap-in scope node relationships Public Enum SnapInNodeRelationshipConstants 'ScopeNodeRelative is the parent of the node. The node will be added as the parent's last child. siParent = 0 '&H0 'ScopeNodeRelative is the previous sibling of the node. siPrevious = 1 '&H1 'ScopeNodeRelative is the next sibling of the node. siNext = 2 '&H2 'ScopeNodeRelative is the parent of the node. The node will be added as the parent's first child. siFirst = 3 '&H3 End Enum SnapInTaskpadTypeConstantsenum, 3 members.Public Enum SnapInTaskpadTypeConstants 'ResultView is the default taskpad. Default = 3 '&H3 'ResultView is a ListView taskpad. Listpad = 4 '&H4 'ResultView is a custom taskpad. Requires a developer supplied DHTML page. Custom = 5 '&H5 End Enum SnapInTaskpadImageTypeConstantsenum, 5 members.Public Enum SnapInTaskpadImageTypeConstants 'No image is specified. siNoImage = 0 '&H0 'Image is a string of symbols in a specified font. siSymbol = 1 '&H1 'Image is a transparent GIF image where index 0 is transparent. siVanillaGIF = 2 '&H2 'Image is a transparent GIF image where index 1 is transparent. siChocolateGIF = 3 '&H3 'Image is a non-transparent bitmap. siBitmap = 4 '&H4 End Enum SnapInNewWindowOptionConstantsenum, 6 members.'Display options for ScopeNode.NewWindow Public Enum SnapInNewWindowOptionConstants 'Display a new window with default settings. This is the same as using New Window From Here on the View menu. siDefaultWindow = 0 '&H0 'Hide the scope pane in the new window. siNoScopePane = 1 '&H1 'Hide the standard toolbars in the new window. Custom toolbars will appear. siNoToolbars = 2 '&H2 'Title bar text contains only the name of the root node and does not contain the full namespace path. siShortTitle = 4 '&H4 'Title bar text contains the scope node's display name. siCustomTitle = 8 '&H8 'Do not save the new window's properties when the console is saved. siNoPersist = 16 '&H10 End Enum WizardPageButtonConstantsenum, 4 members.'Button options for a wizard property page Public Enum WizardPageButtonConstants 'Display an enabled Next button instead of the Finish button. EnabledNextButton = 0 '&H0 'Display an disabled Next button instead of the Finish button. DisabledNextButton = 1 '&H1 'Display an enabled Finish button instead of the next button. EnabledFinishButton = 2 '&H2 'Display an disabled Finish button instead of the next button. DisabledFinishButton = 3 '&H3 End Enum SnapInPropertySheetButtonConstantsenum, 7 members.'Buttons on a property sheet or wizard. Public Enum SnapInPropertySheetButtonConstants 'Apply button. siApplyButton = 0 '&H0 'Back button. siBackButton = 1 '&H1 'Cancel button. siCancelButton = 2 '&H2 'Finish button. siFinishButton = 3 '&H3 'Help button. siHelpButton = 4 '&H4 'Next button. siNextButton = 5 '&H5 'OK button. siOKButton = 6 '&H6 End Enum SnapInSelectionTypeConstantsenum, 11 members.'Possible selection types in an MMCClipboard object Public Enum SnapInSelectionTypeConstants 'Selection contains only a single scope item owned by the snap-in. siSingleScopeItem = 0 '&H0 'Selection contains only a single list item owned by the snap-in. siSingleListItem = 1 '&H1 'Selection contains only a single item owned by another snap-in. siSingleForeign = 2 '&H2 'Selection contains only multiple scope items owned by the snap-in. siMultiScopeItems = 3 '&H3 'Selection contains only multiple list items owned by the snap-in. siMultiListItems = 4 '&H4 'Selection contains only list items and scope items owned by the snap-in. siMultiMixed = 5 '&H5 'Selection contains only multiple items owned by other snap-ins. siMultiForeign = 6 '&H6 'Selection contains multiple items. Some are owned by the snap-in and some by other snap-ins. siMultiMixedForeign = 7 '&H7 'The user has selected or deselected the result pane that currently contains a URL view or a taskpad view. siSpecialWeb = 8 '&H8 'The user has selected or deselected the result pane that currently contains an OCX view. siSpecialOcx = 9 '&H9 'MMCClipboard object does not contain any selected objects. siEmpty = 10 '&HA End Enum SnapInExtensionTypeConstantsenum, 2 members.'Extension types (static/dynamic) for snap-ins that extend your snap-in. Public Enum SnapInExtensionTypeConstants 'Static extension - always loaded when the features it extends are used (e.g. context menu displayed). siStatic = 0 '&H0 'Dynamic extension - only loaded for a feature if enabled by the snap-in in ScopeItem.DyanmicExtensions or MMCListItem.DynamicExtensions. siDynamic = 1 '&H1 End Enum SnapInListpadStyleConstantsenum, 2 members.'Listpad styles Public Enum SnapInListpadStyleConstants 'The listview control has a horizontal orientation giving it longer rows with a shorter height. siHorizontal = 0 '&H0 'The listview control has a vertical orientation giving it shorter rows with greater height. siVertical = 1 '&H1 End Enum SnapInFormatConstantsenum, 13 members.'Formatting specifiers for SnapIn.FormatData method. Public Enum SnapInFormatConstants 'Read 2 bytes and return them as an Integer. siInteger = 0 '&H0 'Read 4 bytes and return them as a Long. siLong = 1 '&H1 'Read 4 bytes and return them as a Single. siSingle = 2 '&H2 'Read 8 bytes and return them as a Double. siDouble = 3 '&H3 'Read bytes as a null-terminated UNICODE string. Return as a String. siString = 4 '&H4 'Read bytes as concatenated null-terminated UNICODE strings terminated by a double null. Return as an array of String. siMultiString = 5 '&H5 'Read CLSID from start of bytes and remainder of bytes as the contents of a stream. Create an instance of the object and load it from the stream. siObject = 6 '&H6 'Read 4 bytes and return them as a Boolean siBoolean = 7 '&H7 'Read 2 bytes, convert them from a C language boolean and return them as a Boolean. siCBoolean = 8 '&H8 'Read 8 bytes and return them as a Date. siDate = 9 '&H9 'Read 8 bytes and return them as a Currency. siCurrency = 10 '&HA 'Read 16 bytes as a binrary GUID and return them as a string in string format {00000000-0000-0000-0000-000000000000}. siGUID = 11 '&HB 'Read the data as a reference to an instance of an object. siObjectInstance = 12 '&HC End Enum SnapInObjectFormatConstantsenum, 2 members.'Specifies how to store an object when calling MMCDataObject::SetData Public Enum SnapInObjectFormatConstants 'Persists the object. A snap-in that imports this data format will receive its own instance of the object loaded from its persisted data. siPersistedObject = 0 '&H0 'Stores a reference to the object. A snap-in that imports this data format will receive a reference to the same instance of the object. siObjectReference = 1 '&H1 End Enum SnapInPropertySheetTypeConstantsenum, 3 members.'Property sheet types for MMCPropertySheetProvider.CreatePropertySheet Public Enum SnapInPropertySheetTypeConstants 'Standard Win32 property sheet. siPropertySheet = 0 '&H0 'Win32 Wizard property sheet. siWizard = 1 '&H1 'Win32 Wizard97 style wizard property sheet. siWizard97 = 2 '&H2 End Enum SnapInFilterChangeTypeConstantsenum, 3 members.'Filter change types for ResultViews_FilterChange event. Public Enum SnapInFilterChangeTypeConstants 'Filter view has been turned on. siEnable = 0 '&H0 'Filter view has been turned off. siDisable = 1 '&H1 'The filter value for the specified column has changed. siValueChange = 2 '&H2 End Enum SnapInMessageViewIconTypeConstantsenum, 5 members.'Icon types for MessageView.IconType property. Public Enum SnapInMessageViewIconTypeConstants 'The MessageView does not display an icon. siIconNone = 0 '&H0 'The MessageView displays the error icon. Same as vbCritical in a message box. siIconError = 32513 '&H7F01 'The MessageView displays the question icon. Same as vbQuestion in a message box. siIconQuestion = 32514 '&H7F02 'The MessageView displays the warning icon. Same as vbExclamation in a message box. siIconWarning = 32515 '&H7F03 'The MessageView displays the information icon. Same as vbInformation in a message box. siIconInformation = 32516 '&H7F04 End Enum SnapInListItemStateConstantsenum, 4 members.'Visual states of an item in a list view Public Enum SnapInListItemStateConstants 'The item is selected. siSelected = 0 '&H0 'The item is highlighted as a drag/drop target. siDropHilited = 1 '&H1 'The item has the focus, so it is surrounded by a standard focus rectangle. Although more than one item can be selected, only one item can have the focus. siFocused = 2 '&H2 'The item is marked for a cut-and-paste operation. siCutHilited = 3 '&H3 End Enum SnapInErrorConstantsenum, 56 members.'Snap-in designer runtime error constants Public Enum SnapInErrorConstants 'An internal exception has occurred siErrException = 9500 '&H251C 'Out of memory. siErrOutOfMemory = 9501 '&H251D 'Invalid argument. siErrInvalidArg = 9502 '&H251E 'The console returned the following error: %1!08.8X! siErrConsoleError = 9503 '&H251F 'The snap-in was created using a different version of the designer and cannot be processed by the current version. siErrUnknownFormat = 9504 '&H2520 'An invalid object was found in the text serialization. siErrTextSerialzation = 9505 '&H2521 'An internal error occurred. siErrInternalError = 9506 '&H2522 'The designer does not support the requested storage medium for serialization. siErrUnsupportedStgMedium = 9507 '&H2523 'A serialization write operation completed only partially. siErrIncompleteWrite = 9508 '&H2524 'A serialization read operation completed only partially. siErrIncompleteRead = 9509 '&H2525 'The specified data type is not supported. siErrUnsupportedType = 9510 '&H2526 'There is already an item in the collection that has the specified key. siErrKeyNotUnique = 9511 '&H2527 'The specified item could not be found in the collection. siErrElementNotFound = 9512 '&H2528 'An system error occurred registering snap-in clipboard formats. siErrClipformatsNotRegistered = 9513 '&H2529 'An image specified for a scope item is not a bitmap. siErrInvalidImageType = 9514 '&H252A 'The specified object is not a member of an appropriate owning collection or was not referenced from its owning object. siErrDetachedObject = 9515 '&H252B 'The operation cannot be performed because the toolbar does not have an image list. siErrToolbarHasNoImageList = 9516 '&H252C 'The operation cannot be performed because the toolbar's image list does not contain any images. siErrToolbarHasNoImages = 9517 '&H252D 'The image specified for a toolbar button could not be found in the toolbar's image list. siErrToolbarImageNotFound = 9518 '&H252E 'An operating system error occurred. siErrSystemError = 9519 '&H252F 'The menu contains more than 65535 items. siErrTooManyMenuItems = 9520 '&H2530 'The property cannot be set at runtime. siErrReadOnlyAtRuntime = 9521 '&H2531 'All top-level menu items should be distinct. siErrMenuItemDistinct = 9522 '&H2532 'You cannot have two menus in two collections share the same name. siErrDuplicateMenu = 9523 '&H2533 'You have entered and invalid name. siErrInvalidIdentifier = 9524 '&H2534 'The specified property page could not be found in the system registry. Check that it is associated with SnapInControl. siErrInvalidPropertyPageName = 9525 '&H2535 'A VARIANT contains a value that is inconsistent with its type. For example, its type is object but its value does not contain a valid object reference. This may occur in a Tag property if an invalid variant was assigned to it. siErrInvalidVariant = 9526 '&H2536 'A Tag property contains an object that does not support persistence. If the object is implemented by a VB class module then set its Persistable property to True and implement ReadProperties and WriteProperties. siErrObjectNotPersistable = 9527 '&H2537 'A Tag property contains an object that is not public and creatable. If the object is implemented by a VB class module then set its Instancing property to a publicly creatable option. For other objects, check their registration database entries. siErrObjectNotPublicCreatable = 9528 '&H2538 'Taskpad.ListView contains a name that cannot be indentified with a listview defined at design time. siErrUnknownListView = 9529 '&H2539 'Variant passed to MMCDataObject.SetRawData may only contain Byte, Byte array, Integer, Long, Single, Double, Currency, Boolean, and Object. siErrInvalidRawDataType = 9530 '&H253A 'The requested data format is not available from the data object. siErrFormatNotAvailable = 9531 '&H253B 'The node was designated as non-extensible at design time. siErrNotExtensible = 9532 '&H253C 'The runtime received corrupt data during deserialization. This could be due to a corrupted snap-in DLL or a corrupted console (MSC) file. siErrSerialzationCorrupt = 9533 '&H253D 'The static node cannot be removed as its lifetime is controlled by the console. Its ScopeItem cannot be removed and ScopeItems.Clear cannot be used. siErrCantRemoveStaticNode = 9534 '&H253E 'Properties of a ScopeNode not owned by the snap-in are read-only. siErrCantChangeUnownedScopeNode = 9535 '&H253F 'The operation is not supported on a virtual listview. siErrUnsupportedOnVirtualList = 9536 '&H2540 'List items in a virtual listview cannot be referenced by key. They must be referenced by numerical index only. siErrNoKeyOnVirtualItems = 9537 '&H2541 'The specified index is not within the range of items currently in the collection. For virtual listviews the range is determined by a prior call to MMCListView.ListItems.SetItemCount. siErrIndexOutOfRange = 9538 '&H2542 'A method was called before the designer runtime has connected to MMC in order to allow access to MMC services. siErrNotConnectedToMMC = 9539 '&H2543 'A picture property cannot be set to nothing. The designer runtime supplies a default picture containing an empty bitmap. siErrCantDeletePicture = 9541 '&H2545 'An attempt was made to alter a toolbar or menu button during an event in which access to MMC's controlbar is not available. siErrControlbarNotAvailable = 9542 '&H2546 'The collection is read only. Methods that alter the collection, such as Add, Remove, and Clear, may not be used. siErrCollectionReadOnly = 9543 '&H2547 'ScopePaneItem.ColumnSetID does not contain a non-zero length string. All column configuration operations require a valid ID. siErrInvalidColumnSetID = 9544 '&H2548 'This feature is not available on the installed version of MMC. siErrMMCFeatureNotAvailable = 9545 '&H2549 'MMC does not have persisted column data for the specified column set ID. siErrColumnsNotPersisted = 9546 '&H254A 'This picture property must be set to an icon. Bitmaps and other picture types cannot be used. siErrIconRequired = 9547 '&H254B 'The snap-in's icon cannot be set to nothing. If you do not set this property the designer runtime will use the MMC icon as a default. siErrCantDeleteIcon = 9548 '&H254C 'A toolbar's buttons must all be drop-down style or all must be something else. MMC does not allow mixing toolbar buttons and menu buttons within a toolbar. siErrToolbarInconsistent = 9549 '&H254D 'The data object does not export data using any storage mediums supported by the snap-in designer runtime. siErrUnsupportedDataMedium = 9550 '&H254E 'The data object returned data too large for an Array of BYTE. siErrDataTooLarge = 9551 '&H254F 'MMC version numbers are not available prior to the Views_Load event. siErrMMCVersionNotAvailable = 9552 '&H2550 'MMC does not have persisted sort data for the specified column set ID. siErrSortSettingsNotPersisted = 9553 '&H2551 'The scope node is not connected to MMC. This can happen with the static node before it is expanded. siErrScopeNodeNotConnectedToMMC = 9554 '&H2552 'Virtual lists do not contain scope items. siErrNoScopeItemsInVirtualList = 9555 '&H2553 'Win32 does not permit adding or removing pages from a property sheet during this event. siErrCantAlterPageCount = 9556 '&H2554 End Enum |