Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RegisterClassForTypeInternal()

static unsafe int Internal.Runtime.InteropServices.ComActivator.RegisterClassForTypeInternal ( ComActivationContextInternal * pCxtInt)
inlinestatic

Definition at line 267 of file ComActivator.cs.

268 {
270 {
272 }
273 ref ComActivationContextInternal reference = ref *pCxtInt;
274 if (IsLoggingEnabled())
275 {
276 }
277 if (reference.InterfaceId != Guid.Empty || reference.ClassFactoryDest != IntPtr.Zero)
278 {
279 throw new ArgumentException(null, "pCxtInt");
280 }
281 try
282 {
283 ComActivationContext cxt = ComActivationContext.Create(ref reference);
285 }
286 catch (Exception ex)
287 {
288 return ex.HResult;
289 }
290 return 0;
291 }
static void ClassRegistrationScenarioForType(ComActivationContext cxt, bool register)
static string NotSupported_COM
Definition SR.cs:2190
Definition SR.cs:7
static readonly Guid Empty
Definition Guid.cs:86
static readonly IntPtr Zero
Definition IntPtr.cs:18

References Internal.Runtime.InteropServices.ComActivator.ClassRegistrationScenarioForType(), Internal.Runtime.InteropServices.ComActivationContext.Create(), System.Guid.Empty, System.Runtime.InteropServices.Marshal.IsBuiltInComSupported, Internal.Runtime.InteropServices.ComActivator.IsLoggingEnabled(), System.SR.NotSupported_COM, and System.IntPtr.Zero.