Пример #1
0
        /// <summary>
        /// Creates a default implementation of IDirectManipulationCompositor that wraps a DirectComposition render tree.
        /// </summary>
        /// <returns></returns>
        public static CompositorNative CreateDefaultDirectCompositor()
        {
            CompositorNative newCompositor = new CompositorNative(IntPtr.Zero);

            Utilities.CreateComInstance(DirectCompositionCompositorClassId, Utilities.CLSCTX.ClsctxInprocServer, Utilities.GetGuidFromType(typeof(Compositor)), newCompositor);
            return(newCompositor);
        }
Пример #2
0
		/// <summary>
		/// Creates a default implementation of IDirectManipulationCompositor that wraps a DirectComposition render tree.
		/// </summary>
		/// <returns></returns>
		public static CompositorNative CreateDefaultDirectCompositor()
		{
			CompositorNative newCompositor = new CompositorNative(IntPtr.Zero);
			Utilities.CreateComInstance(DirectCompositionCompositorClassId, Utilities.CLSCTX.ClsctxInprocServer, Utilities.GetGuidFromType(typeof(Compositor)), newCompositor);
			return newCompositor;
		}