Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

145 lines
4.1 KiB

  1. // Microsoft Visual Studio Object Model
  2. // Copyright (C) 1996-1997 Microsoft Corporation
  3. // All rights reserved.
  4. /////////////////////////////////////////////////////////////////////////////
  5. // appdefs.h
  6. // Declaration of constants and error IDs used by objects in the type library
  7. // VISUAL STUDIO 97 SHARED OBJECTS (SharedIDE\bin\devshl.dll)
  8. #ifndef __APPDEFS_H__
  9. #define __APPDEFS_H__
  10. ///////////////////////////////////////////////////////////////////////
  11. // Enumerations used by Automation Methods
  12. // Application.WindowState
  13. enum DsWindowState
  14. {
  15. dsWindowStateMaximized = 1,
  16. dsWindowStateMinimized = 2,
  17. dsWindowStateNormal = 3,
  18. };
  19. // Windows.Arrange()
  20. enum DsArrangeStyle
  21. {
  22. dsMinimize = 1,
  23. dsTileHorizontal = 2,
  24. dsTileVertical = 3,
  25. dsCascade = 4
  26. };
  27. // Application.AddCommandBarButton
  28. enum DsButtonType
  29. {
  30. dsGlyph = 1,
  31. dsText = 2
  32. };
  33. // Save, Close, SaveAll CloseAll
  34. enum DsSaveChanges
  35. {
  36. dsSaveChangesYes = 1,
  37. dsSaveChangesNo = 2,
  38. dsSaveChangesPrompt = 3
  39. };
  40. // Return value for Save, Close, SaveAll, CloseAll
  41. enum DsSaveStatus
  42. {
  43. dsSaveSucceeded = 1, // The Save was successful.
  44. dsSaveCanceled = 2 // The Save was canceled
  45. };
  46. ///////////////////////////////////////////////////////////////////////
  47. // Error constants returned by Automation Methods.
  48. #define DS_E_START 0x8004A000
  49. // general failure
  50. #define DS_E_UNKNOWN 0x8004A000
  51. // The user gave an incorrect parameter VALUE (type is OK, but the value
  52. // is not).
  53. #define DS_E_BAD_PARAM_VALUE 0x8004A001
  54. // The user tried to manipulate a Document object whose associated
  55. // document in the IDE has been closed.
  56. #define DS_E_DOC_RELEASED 0x8004A002
  57. // The user tried to manipulate a Window object whose associated
  58. // window in the IDE has been closed.
  59. #define DS_E_WINDOW_RELEASED 0x8004A003
  60. // The user tried to access a method or property on an object after
  61. // Visual Studio was requested to be shut down (via the UI or
  62. // the Application::Quit method), but before the object was
  63. // released. In this state, although the object still exists,
  64. // its methods and properties all throw this error.
  65. #define DS_E_SHUTDOWN_REQUESTED 0x8004A012
  66. // The user tried to add a command bar button for a non-existent command.
  67. #define DS_E_COMMAND_NOT_EXIST 0x8004A013
  68. // AddCommandBarButton failed. The command which the caller wishes to
  69. // to be assigned to a toolbar button does exist, but an unexpected
  70. // error occurred while trying to create the button itself.
  71. #define DS_E_CANT_ADD_CMDBAR_BUTTON 0x8004A014
  72. // These errors are used by the project build systems. When a makefile is
  73. // loaded which needs to be converted, one of these errors will be
  74. // generation. If the makefile was generated with VC the first error
  75. // will have. If the makefile was created with an older version of
  76. // Visual Studio, the other error will be sent.
  77. #define DS_E_PROJECT_OLD_MAKEFILE_VC 0x8004A015
  78. #define DS_E_PROJECT_OLD_MAKEFILE_DEVSTUDIO 0x8004A016
  79. // The project system generates this error when attempting to open an
  80. // external makefile.
  81. #define DS_E_PROJECT_EXTERNAL_MAKEFILE 0x8004A017
  82. // Cannot create a new window.
  83. #define DS_E_CANNOTCREATENEWWINDOW 0x8004A018
  84. // The window specified by the Item method's index cannot be found.
  85. #define DS_E_CANNOT_FIND_WINDOW 0x8004A019
  86. // The document specified by the Item method's index cannot be found.
  87. #define DS_E_CANNOT_FIND_DOCUMENT 0x8004A01A
  88. //
  89. // File IO Errors - Used by Open, Close, CloseAll, Save, SaveAll, etc...
  90. //
  91. // The following errors are mapped from CFileException
  92. #define DS_E_FILENOTFOUND 0x8004A004
  93. #define DS_E_ENDOFFILE 0x8004A005
  94. // All or part of the path is invalid.
  95. #define DS_E_BADPATH 0x8004A006
  96. //The file could not be accessed.
  97. #define DS_E_ACCESSDENIED 0x8004A007
  98. //There was an attempt to use an invalid file handle.
  99. #define DS_E_INVALIDFILE 0x8004A008
  100. //The disk is full.
  101. #define DS_E_DISKFULL 0x8004A009
  102. #define DS_E_SHARINGVIOLATION 0x8004A00A
  103. // The following are file errors are not part of CFileException.
  104. // File is ReadOnly on disk.
  105. #define DS_E_READONLY 0x8004A010
  106. // The document does not have a filename and cannot be saved.
  107. #define DS_E_NOFILENAME 0x8004A011
  108. #endif // __APPDEFS_H__