예제 #1
0
        private void RelocateSinkRCWToMTA_ThreadFuncion(object param)
        {
            EventSource currentApartment = (EventSource)param;

            currentApartment.pSinkMTA = (IWbemObjectSink)EventSource.RelocateRCWToCurrentApartment(currentApartment.pSinkNA);
            currentApartment.pSinkNA  = null;
        }
예제 #2
0
        private void RelocateNamespaceRCWToMTA_ThreadFuncion(object param)
        {
            EventSource currentApartment = (EventSource)param;

            currentApartment.pNamespaceMTA = (IWbemServices)EventSource.RelocateRCWToCurrentApartment(currentApartment.pNamespaceNA);
            currentApartment.pNamespaceNA  = null;
        }