This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more
Microsoft Logo
Gray Pipe
Developer Network Developer Network Developer
Sign in

Subscriber portal

Get tools
  • Downloads
    • Visual Studio
    • SDKs
    • Trial software
      • Free downloads
      • Office resources
      • SharePoint Server 2013 resources
      • SQL Server 2014 Express resources
      • Windows Server 2012 resources
  • Programs
    • Subscriptions
      • Overview
      • Administrators
    • Students
      • Microsoft Imagine
      • Microsoft Student Partners
    • ISV
    • Startups
    • Events
  • Community
    • Magazine
    • Forums
    • Blogs
    • Channel 9
  • Documentation
    • APIs and reference
    • Dev centers
    • Samples
    • Retired content
search clear
We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second.
Visual Studio Visual Studio SDK Reference
Reference COM Constants and Macros in Managed Code
COM Constants and Macros in Managed Code
COM Constants and Macros in Managed Code
Microsoft.VisualStudio.TextManager.Interop Namespace
Microsoft.VisualStudio Namespace
Microsoft.VisualStudio.Designer.Interfaces Namespace
Microsoft.VisualStudio.ManagedInterfaces.ProjectDesigner Namespace
Microsoft.VisualStudio.ManagedInterfaces.Publish Namespace
Microsoft.VisualStudio.OLE.Interop Namespace
Microsoft.VisualStudio.Package Namespace
Microsoft.VisualStudio.ProjectAggregator Namespace
Microsoft.VisualStudio.Shell Namespace
Microsoft.VisualStudio.Shell.Design Namespace
Microsoft.VisualStudio.Shell.Design.Serialization Namespace
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace
Microsoft.VisualStudio.Shell.Flavor Namespace
Microsoft.VisualStudio.Shell.Interop Namespace
Microsoft.VisualStudio.VSHelp Namespace
VSLangProj Namespace
Microsoft.VisualStudio.ManagedInterfaces9 Namespace
Microsoft.VisualStudio.WCFReference.Interop Namespace
Microsoft.VisualStudio.TestTools.Common Namespace
Microsoft.VisualStudio.TestTools.Common.Xml Namespace
Microsoft.VisualStudio.TestTools.Exceptions Namespace
Microsoft.VisualStudio.TestTools.Vsip Namespace
Microsoft.VisualStudio.TextTemplating Namespace
Microsoft.VisualStudio.TextTemplating.VSHost Namespace
Microsoft.VisualStudio.Modeling Namespace
Microsoft.VisualStudio.Modeling.Design Namespace
Microsoft.VisualStudio.Modeling.Diagnostics Namespace
Microsoft.VisualStudio.Modeling.Diagrams Namespace
Microsoft.VisualStudio.Modeling.DslDefinition Namespace
Microsoft.VisualStudio.Modeling.DslDefinition.Design Namespace
Microsoft.VisualStudio.Modeling.DslDesigner Namespace
Microsoft.VisualStudio.Modeling.Shell Namespace
Microsoft.VisualStudio.Modeling.Validation Namespace
IntellisenseHostFlags
Command Table Format Reference
VSCT XML Schema Reference
GUIDs and Constants
COM Constants and Macros in Managed Code
Source Control Plug-ins
Command-Line Switches
Error Handling and Return Values
Objects
Glossary
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.
This documentation is archived and is not being maintained.
Recommended Version
This documentation is archived and is not being maintained.

COM Constants and Macros in Managed Code

Visual Studio 2008
Other Versions
  • Visual Studio 2015
  • Visual Studio 2013
  • Visual Studio 2012
  • Visual Studio 2010
  • Visual Studio 2005

The Managed Package Framework (MPF) makes some standard COM constants available to managed code. These constants are listed below for your reference.

Boolean HRESULT Values

S_FALSE

S_OK

HRESULT Values

E_ABORT

E_ACCESSDENIED

E_FAIL

E_HANDLE

E_INVALIDARG

E_NOINTERFACE

E_NOTIMPL

E_OUTOFMEMORY

E_PENDING

E_POINTER

E_UNEXPECTED

UNDO_E_CLIENTABORT

OLE Errors

OLE_E_ADVF

OLE_E_ADVISENOTSUPPORTED

OLE_E_BLANK

OLE_E_CANT_BINDTOSOURCE

OLE_E_CANT_GETMONIKER

OLE_E_CANTCONVERT

OLE_E_CLASSDIFF

OLE_E_ENUM_NOMORE

OLE_E_INVALIDHWND

OLE_E_INVALIDRECT

OLE_E_NOCACHE

OLE_E_NOCONNECTION

OLE_E_NOSTORAGE

OLE_E_NOT_INPLACEACTIVE

OLE_E_NOTRUNNING

OLE_E_OLEVERB

OLE_E_PROMPTSAVECANCELLED

OLE_E_STATIC

OLE_E_WRONGCOMPOBJ

OLE Dispatch Errors

DISP_E_ARRAYISLOCKED

DISP_E_BADCALLEE

DISP_E_BADINDEX

DISP_E_BADPARAMCOUNT

DISP_E_BADVARTYPE

DISP_E_BUFFERTOOSMALL

DISP_E_DIVBYZERO

DISP_E_EXCEPTION

DISP_E_MEMBERNOTFOUND

DISP_E_NONAMEDARGS

DISP_E_NOTACOLLECTION

DISP_E_OVERFLOW

DISP_E_PARAMNOTFOUND

DISP_E_PARAMNOTOPTIONAL

DISP_E_TYPEMISMATCH

DISP_E_UNKNOWNINTERFACE

DISP_E_UNKNOWNLCID

DISP_E_UNKNOWNNAME

See Also

Concepts

HRESULT Information in Managed Code
Error Handling and Return Values
Show:
Print Export (0)
Print Share
IN THIS ARTICLE

    Dev centers

    • Windows
    • Office
    • Visual Studio
    • Microsoft Azure
    • More...

    Learning resources

    • Microsoft Virtual Academy
    • Channel 9
    • MSDN Magazine

    Community

    • Forums
    • Blogs
    • Codeplex

    Support

    • Self support

    Programs

    • BizSpark (for startups)
    • Microsoft Imagine (for students)
    United States (English)
    • Newsletter
    • Privacy & cookies
    • Terms of use
    • Trademarks
    logo © 2017 Microsoft
    © 2017 Microsoft