public static IComponentManager getComponentManagerInstance() { global::System.IntPtr cPtr = xpcf_apiPINVOKE.getComponentManagerInstance(); IComponentManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new IComponentManager(cPtr, true); if (xpcf_apiPINVOKE.SWIGPendingException.Pending) { throw xpcf_apiPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IComponentManager obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }