/// <summary> /// 释放授权库 /// </summary> public static void Free() { if (null != SecretImpl) { Marshal.ReleaseComObject(SecretImpl); SecretImpl = null; GC.Collect(); } }
private static extern void GetSecretImpl([MarshalAs(UnmanagedType.AnsiBStr)] string productId, [MarshalAs(UnmanagedType.Interface)] out IXSLCSecret instance);