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

◆ Create()

static unsafe ComActivationContext Internal.Runtime.InteropServices.ComActivationContext.Create ( ref ComActivationContextInternal cxtInt)
inlinestatic

Definition at line 21 of file ComActivationContext.cs.

22 {
24 {
26 }
27 ComActivationContext result = default(ComActivationContext);
28 result.ClassId = cxtInt.ClassId;
29 result.InterfaceId = cxtInt.InterfaceId;
30 result.AssemblyPath = Marshal.PtrToStringUni(new IntPtr(cxtInt.AssemblyPathBuffer));
31 result.AssemblyName = Marshal.PtrToStringUni(new IntPtr(cxtInt.AssemblyNameBuffer));
32 result.TypeName = Marshal.PtrToStringUni(new IntPtr(cxtInt.TypeNameBuffer));
33 return result;
34 }
static unsafe? string PtrToStringUni(IntPtr ptr)
Definition Marshal.cs:652
static string NotSupported_COM
Definition SR.cs:2190
Definition SR.cs:7

References Internal.Runtime.InteropServices.ComActivationContext.ClassId, System.Runtime.InteropServices.Marshal.IsBuiltInComSupported, System.SR.NotSupported_COM, and System.Runtime.InteropServices.Marshal.PtrToStringUni().

Referenced by Internal.Runtime.InteropServices.ComActivator.GetClassFactoryForTypeInternal(), Internal.Runtime.InteropServices.ComActivator.RegisterClassForTypeInternal(), and Internal.Runtime.InteropServices.ComActivator.UnregisterClassForTypeInternal().