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.
Extensibility in Visual Studio Visual Studio SDK Visual Studio SDK Reference
Visual Studio SDK Reference COM Constants in Managed Code
COM Constants in Managed Code
COM Constants in Managed Code
Setup Configuration
Open Folder Extensibility
Text Manager Interop
Editor
Visual Studio APIs
VSHelp
Windows Communication Framework Interfaces
Windows Communication Framework Interop
Extension Manager
DTE
DTE 8.0
DTE 9.0
DTE 10.0
Visual C++ Project System Interfaces
Language Project
Language Project 8.0
Language Project 9.0
Language Project 10.0
Language Project 11.0
Language
Threading
Connected Services
IntelliSenseHostFlags
VSCT XML Schema Reference
GUIDs and Constants
COM Constants in Managed Code
Source Control Plug-ins
Command-Line Switches
Error Handling and Return Values
Objects
Glossary
MSBuild
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.

COM Constants in Managed Code

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

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at COM Constants in Managed Code.

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

Error Handling and Return Values

Show:
Print Export (0)
Print Share
IN THIS ARTICLE
    Is this page helpful?
    Additional feedback?
    1500 characters remaining
    Thank you! We appreciate your feedback.

    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