public static RecursiveMutex FromBaseObject(BaseObject baseObj) { if (baseObj == null || baseObj.NativeObject == IntPtr.Zero) { return(null); } RecursiveMutex obj = baseObj as RecursiveMutex; if (object.Equals(obj, null)) { obj = new RecursiveMutex(CreatedWhenConstruct.CWC_NotToCreate); obj.BindNativeObject(baseObj.NativeObject, "CRecursiveMutex"); obj.IncreaseCast(); } return(obj); }
public BaseObject Create() { RecursiveMutex emptyInstance = new RecursiveMutex(CreatedWhenConstruct.CWC_NotToCreate); return(emptyInstance); }