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

◆ SaveKeyInCurrentContext()

void Internal.Runtime.InteropServices.LicenseInteropProxy.SaveKeyInCurrentContext ( IntPtr bstrKey)
inline

Definition at line 139 of file LicenseInteropProxy.cs.

140 {
141 if (!(bstrKey == IntPtr.Zero))
142 {
143 string text = Marshal.PtrToStringBSTR(bstrKey);
144 object[] parameters = new object[2] { _targetRcwType, text };
145 _setSavedLicenseKey.Invoke(_licContext, BindingFlags.DoNotWrapExceptions, null, parameters, null);
146 }
147 }
object? Invoke(object? obj, object?[]? parameters)
static string PtrToStringBSTR(IntPtr ptr)
Definition Marshal.cs:1542
static readonly IntPtr Zero
Definition IntPtr.cs:18

References Internal.Runtime.InteropServices.LicenseInteropProxy._licContext, Internal.Runtime.InteropServices.LicenseInteropProxy._setSavedLicenseKey, Internal.Runtime.InteropServices.LicenseInteropProxy._targetRcwType, System.Reflection.MethodBase.Invoke(), System.Runtime.InteropServices.Marshal.PtrToStringBSTR(), System.text, and System.IntPtr.Zero.