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

◆ UnregisterClassForTypeInternal()

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

Definition at line 296 of file ComActivator.cs.

297 {
299 {
301 }
302 ref ComActivationContextInternal reference = ref *pCxtInt;
303 if (IsLoggingEnabled())
304 {
305 }
306 if (reference.InterfaceId != Guid.Empty || reference.ClassFactoryDest != IntPtr.Zero)
307 {
308 throw new ArgumentException(null, "pCxtInt");
309 }
310 try
311 {
312 ComActivationContext cxt = ComActivationContext.Create(ref reference);
314 }
315 catch (Exception ex)
316 {
317 return ex.HResult;
318 }
319 return 0;
320 }
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.