CLSCTX.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. // -----------------------------------------
  2. // SoundScribe (TM) and related software.
  3. //
  4. // Copyright (C) 2007-2011 Vannatech
  5. // http://www.vannatech.com
  6. // All rights reserved.
  7. //
  8. // This source code is subject to the MIT License.
  9. // http://www.opensource.org/licenses/mit-license.php
  10. //
  11. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  17. // THE SOFTWARE.
  18. // -----------------------------------------
  19. using System;
  20. namespace Vannatech.CoreAudio.Externals
  21. {
  22. /// <summary>
  23. /// Values that are used in activation calls to indicate the execution contexts in which an object is to be run.
  24. /// </summary>
  25. /// <remarks>
  26. /// MSDN Reference: http://msdn.microsoft.com/en-us/library/ms693716.aspx
  27. /// Note: This item is external to CoreAudio API, and is defined in the Windows COM API.
  28. /// </remarks>
  29. public enum CLSCTX : uint
  30. {
  31. /// <summary>
  32. /// The code that creates and manages objects of this class is a DLL that runs in the same process as the caller of the function specifying the class context.
  33. /// </summary>
  34. CLSCTX_INPROC_SERVER = 0x1,
  35. /// <summary>
  36. /// The code that manages objects of this class is an in-process handler.
  37. /// </summary>
  38. CLSCTX_INPROC_HANDLER = 0x2,
  39. /// <summary>
  40. /// The EXE code that creates and manages objects of this class runs on same machine but is loaded in a separate process space.
  41. /// </summary>
  42. CLSCTX_LOCAL_SERVER = 0x4,
  43. /// <summary>
  44. /// Obsolete.
  45. /// </summary>
  46. CLSCTX_INPROC_SERVER16 = 0x8,
  47. /// <summary>
  48. /// A remote context.
  49. /// </summary>
  50. CLSCTX_REMOTE_SERVER = 0x10,
  51. /// <summary>
  52. /// Obsolete.
  53. /// </summary>
  54. CLSCTX_INPROC_HANDLER16 = 0x20,
  55. /// <summary>
  56. /// Reserved.
  57. /// </summary>
  58. CLSCTX_RESERVED1 = 0x40,
  59. /// <summary>
  60. /// Reserved.
  61. /// </summary>
  62. CLSCTX_RESERVED2 = 0x80,
  63. /// <summary>
  64. /// Reserved.
  65. /// </summary>
  66. CLSCTX_RESERVED3 = 0x100,
  67. /// <summary>
  68. /// Reserved.
  69. /// </summary>
  70. CLSCTX_RESERVED4 = 0x200,
  71. /// <summary>
  72. /// Disaables the downloading of code from the directory service or the Internet.
  73. /// </summary>
  74. CLSCTX_NO_CODE_DOWNLOAD = 0x400,
  75. /// <summary>
  76. /// Reserved.
  77. /// </summary>
  78. CLSCTX_RESERVED5 = 0x800,
  79. /// <summary>
  80. /// Specify if you want the activation to fail if it uses custom marshalling.
  81. /// </summary>
  82. CLSCTX_NO_CUSTOM_MARSHAL = 0x1000,
  83. /// <summary>
  84. /// Enables the downloading of code from the directory service or the Internet.
  85. /// </summary>
  86. CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000,
  87. /// <summary>
  88. /// Can be used to override the logging of failures
  89. /// </summary>
  90. CLSCTX_NO_FAILURE_LOG = 0x4000,
  91. /// <summary>
  92. /// Disables activate-as-activator (AAA) activations for this activation only.
  93. /// </summary>
  94. CLSCTX_DISABLE_AAA = 0x8000,
  95. /// <summary>
  96. /// Enables activate-as-activator (AAA) activations for this activation only.
  97. /// </summary>
  98. CLSCTX_ENABLE_AAA = 0x10000,
  99. /// <summary>
  100. /// Begin this activation from the default context of the current apartment.
  101. /// </summary>
  102. CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000,
  103. /// <summary>
  104. /// Activate or connect to a 32-bit version of the server; fail if one is not registered.
  105. /// </summary>
  106. CLSCTX_ACTIVATE_32_BIT_SERVER = 0x40000,
  107. /// <summary>
  108. /// Activate or connect to a 64 bit version of the server; fail if one is not registered.
  109. /// </summary>
  110. CLSCTX_ACTIVATE_64_BIT_SERVER = 0x80000,
  111. /// <summary>
  112. /// Obsolete.
  113. /// </summary>
  114. CLSCTX_ENABLE_CLOAKING = 0x100000,
  115. /// <summary>
  116. /// Reserved.
  117. /// </summary>
  118. CLSCTX_PS_DLL = 0x80000000
  119. }
  120. }