private ComThreadingInfo() { this.IID_IUnknown = new Guid("00000000-0000-0000-C000-000000000046"); ComThreadingInfo.IComThreadingInfo comThreadingInfo = (ComThreadingInfo.IComThreadingInfo)ComThreadingInfo.CoGetObjectContext(ref this.IID_IUnknown); this.apartmentType = comThreadingInfo.GetCurrentApartmentType(); this.threadType = comThreadingInfo.GetCurrentThreadType(); this.logicalThreadId = comThreadingInfo.GetCurrentLogicalThreadId(); }
private ComThreadingInfo() { this.IID_IUnknown = new Guid("00000000-0000-0000-C000-000000000046"); ComThreadingInfo.IComThreadingInfo comThreadingInfo = (ComThreadingInfo.IComThreadingInfo)ComThreadingInfo.CoGetObjectContext(ref this.IID_IUnknown); this.apartmentType = comThreadingInfo.GetCurrentApartmentType(); this.threadType = comThreadingInfo.GetCurrentThreadType(); this.logicalThreadId = comThreadingInfo.GetCurrentLogicalThreadId(); }