private static void DeInitializeIntegration() { if (_initialized) { if (_opened) { IntegrationHelpers.DnaLibraryAutoClose(); XlRegistration.UnregisterMethods(); } IntegrationHelpers.DeInitializeIntegration(); _initialized = false; _opened = false; } }
private static void DeInitializeIntegration() { if (_initialized) { if (_opened) { ExcelIntegration.DnaLibraryAutoClose(); XlRegistration.UnregisterMethods(); } TraceLogger.IntegrationTraceSource = null; ExcelIntegration.DeInitialize(); _initialized = false; _opened = false; } }
internal static IntPtr RegistrationInfo(IntPtr pParam) { if (!_initialized) { return(IntPtr.Zero); } object param = XlMarshalContext.ObjectParam(pParam); object regInfo = XlRegistration.GetRegistrationInfo(param); if (regInfo == null) { return(IntPtr.Zero); // Converted to #NUM } var ctx = XlDirectMarshal.GetMarshalContext(); return(ctx.ObjectReturn(regInfo)); }
internal static IntPtr RegistrationInfo(IntPtr pParam) { if (!_initialized) { return(IntPtr.Zero); } // CONSIDER: This might not be the right place for this. ICustomMarshaler m = XlObject12Marshaler.GetInstance(""); object param = m.MarshalNativeToManaged(pParam); object regInfo = XlRegistration.GetRegistrationInfo(param); if (regInfo == null) { return(IntPtr.Zero); // Converted to #NUM } return(m.MarshalManagedToNative(regInfo)); }
public void RegisterRtdWrapper(string progId, object rtdWrapperOptions, object functionAttribute, List <object> argumentAttributes) => XlRegistration.RegisterRtdWrapper(progId, rtdWrapperOptions, functionAttribute, argumentAttributes);
public void RegisterLambdaExpressionsWithAttributes(List <LambdaExpression> lambdaExpressions, List <object> functionAttributes, List <List <object> > argumentAttributes) => XlRegistration.RegisterLambdaExpressionsWithAttributes(lambdaExpressions, functionAttributes, argumentAttributes);
public void RegisterDelegatesWithAttributes(List <Delegate> delegates, List <object> functionAttributes, List <List <object> > argumentAttributes) => XlRegistration.RegisterDelegatesWithAttributes(delegates, functionAttributes, argumentAttributes);
public void RegisterMethodsWithAttributes(List <MethodInfo> methods, List <object> functionAttributes, List <List <object> > argumentAttributes) => XlRegistration.RegisterMethodsWithAttributes(methods, functionAttributes, argumentAttributes);
public void RegisterMethods(List <MethodInfo> methods) => XlRegistration.RegisterMethods(methods);