Beispiel #1
0
        public void Dispose()
        {
            CloseDevice();

            Draw.DestroyDevice();
            Draw = null;

            GC.SuppressFinalize(this);
        }
Beispiel #2
0
        // Constructor
        protected CProcess(IntPtr hVideo, IntPtr hEvent)
        {
            this.hVideo = hVideo;
            PReader = null;
            HwndEvent = hEvent;
            PwszSymbolicLink = null;

            var hr = MFExtern.MFStartup(0x20070, MFStartup.Lite);
            MFError.ThrowExceptionForHR(hr);

            Draw = new DrawDevice();
            hr = Draw.CreateDevice(hVideo);

            MFError.ThrowExceptionForHR(hr);
        }
Beispiel #3
0
        // Constructor
        protected CProcess(IntPtr hVideo, IntPtr hEvent)
        {
            this.hVideo      = hVideo;
            PReader          = null;
            HwndEvent        = hEvent;
            PwszSymbolicLink = null;

            var hr = MFExtern.MFStartup(0x20070, MFStartup.Lite);

            MFError.ThrowExceptionForHR(hr);

            Draw = new DrawDevice();
            hr   = Draw.CreateDevice(hVideo);

            MFError.ThrowExceptionForHR(hr);
        }
Beispiel #4
0
        public void Dispose()
        {
            CloseDevice();

            Draw.DestroyDevice();
            Draw = null;

            GC.SuppressFinalize(this);
        }