Ejemplo n.º 1
0
 private static IntPtr CreateMmDeviceEnumerator()
 {
     var mmde = new MMDeviceEnumeratorObject() as IMMDeviceEnumerator;
     return Marshal.GetComInterfaceForObject(mmde, typeof(IMMDeviceEnumerator));
 }
Ejemplo n.º 2
0
        public MMDeviceEnumerator()
        {
            var mmde = new MMDeviceEnumeratorObject() as IMMDeviceEnumerator;

            BasePtr = Marshal.GetComInterfaceForObject(mmde, typeof(IMMDeviceEnumerator));
        }
Ejemplo n.º 3
0
 public MMDeviceEnumerator()
 {
     var mmde = new MMDeviceEnumeratorObject() as IMMDeviceEnumerator;
     BasePtr = Marshal.GetComInterfaceForObject(mmde, typeof(IMMDeviceEnumerator));
 }
Ejemplo n.º 4
0
        private static IntPtr CreateMmDeviceEnumerator()
        {
            var mmde = new MMDeviceEnumeratorObject() as IMMDeviceEnumerator;

            return(Marshal.GetComInterfaceForObject(mmde, typeof(IMMDeviceEnumerator)));
        }