mil_commands.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / published / mil_commands.cs / 1 / mil_commands.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// This file was generated, please do not edit it directly. 
// 
// Please see [....]/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information.
// 
//---------------------------------------------------------------------------

// This code is generated from mcg\generators\CommandStructure.cs
 
using System;
using System.Windows.Media.Composition; 
using System.Runtime.InteropServices; 
using System.Security;
 
using BOOL = System.UInt32;

namespace System.Windows.Media.Composition
{ 
    internal partial class DUCE
    { 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_PARTITION_REGISTERFORNOTIFICATIONS
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal BOOL Enable;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_CHANNEL_REQUESTTIER
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal BOOL ReturnCommonMinimum;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_PARTITION_SETVBLANKSYNCMODE
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal BOOL Enable;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_PARTITION_NOTIFYPRESENT
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal UInt64 FrameTime;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_DOUBLERESOURCE
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double Value; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_COLORRESOURCE
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MIL_COLORF Value; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_POINTRESOURCE
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal Point Value;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_RECTRESOURCE
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal Rect Value;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_SIZERESOURCE 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal Size Value;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_MATRIXRESOURCE 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MIL_MATRIX3X2D Value;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_POINT3DRESOURCE
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal MIL_3DPOINTF Value; 
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VECTOR3DRESOURCE 
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal MIL_3DPOINTF Value; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_QUATERNIONRESOURCE 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal MIL_3DQUATERNIONF Value;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_RENDERDATA
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal UInt32 cbData; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_DRAWINGGROUP_SETCONTENT
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle hContent; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_ETWEVENTRESOURCE
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal UInt32 id;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL_SETOFFSET
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double offsetX;
        [FieldOffset(16)] internal double offsetY; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL_SETTRANSFORM 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hTransform;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL_SETCLIP
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hClip; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VISUAL_SETALPHA
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double alpha; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL_SETRENDEROPTIONS
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MILRenderOptions renderOptions;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL_SETCONTENT
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hContent;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VISUAL_SETALPHAMASK 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle hAlphaMask;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VISUAL_REMOVEALLCHILDREN 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL_REMOVECHILD
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle hChild;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL_INSERTCHILDAT
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hChild;
        [FieldOffset(12)] internal UInt32 index; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL_SETGUIDELINECOLLECTION 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal UInt16 countX;
        [FieldOffset(10)] internal UInt16 countY;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VIEWPORT3DVISUAL_SETCAMERA 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle hCamera;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VIEWPORT3DVISUAL_SETVIEWPORT 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal Rect Viewport;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VIEWPORT3DVISUAL_SET3DCHILD
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hChild; 
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VISUAL3D_SETCONTENT 
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hContent; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL3D_SETTRANSFORM 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hTransform;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUAL3D_REMOVEALLCHILDREN
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VISUAL3D_REMOVECHILD
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hChild; 
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_VISUAL3D_INSERTCHILDAT 
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hChild; 
        [FieldOffset(12)] internal UInt32 index;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_HWNDTARGET_CREATE
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal UInt64 hwnd;
        [FieldOffset(16)] internal UInt64 hSection; 
        [FieldOffset(24)] internal UInt64 masterDevice;
        [FieldOffset(32)] internal UInt32 width; 
        [FieldOffset(36)] internal UInt32 height; 
        [FieldOffset(40)] internal MIL_COLORF clearColor;
        [FieldOffset(56)] internal UInt32 flags; 
        [FieldOffset(60)] internal UInt32 preFilteringDisabled;
        [FieldOffset(64)] internal Guid deviceId;
        [FieldOffset(80)] internal DUCE.ResourceHandle hBitmap;
        [FieldOffset(84)] internal UInt32 stride; 
        [FieldOffset(88)] internal UInt32 ePixelFormat;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_HWNDTARGET_SUPPRESSLAYERED
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal BOOL Suppress;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_TARGET_UPDATEWINDOWSETTINGS 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MS.Win32.NativeMethods.RECT windowRect;
        [FieldOffset(24)] internal MILWindowLayerType windowLayerType;
        [FieldOffset(28)] internal MILTransparencyFlags transparencyMode;
        [FieldOffset(32)] internal float constantAlpha; 
        [FieldOffset(36)] internal BOOL isChild;
        [FieldOffset(40)] internal BOOL isRTL; 
        [FieldOffset(44)] internal BOOL renderingEnabled; 
        [FieldOffset(48)] internal MIL_COLORF colorKey;
        [FieldOffset(64)] internal UInt32 disableCookie; 
        [FieldOffset(68)] internal BOOL gdiBlt;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_GENERICTARGET_CREATE 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal UInt64 hwnd;
        [FieldOffset(16)] internal UInt64 pRenderTarget; 
        [FieldOffset(24)] internal UInt32 width;
        [FieldOffset(28)] internal UInt32 height;
        [FieldOffset(32)] internal UInt32 dummy;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_TARGET_SETROOT 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle hRoot;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_TARGET_SETCLEARCOLOR 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MIL_COLORF clearColor;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_TARGET_INVALIDATE
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal MS.Win32.NativeMethods.RECT rc; 
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_TARGET_SETFLAGS 
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal UInt32 flags; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_GLYPHCACHE_ADDBITMAPS 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal UInt32 FontFaceHandle;
        [FieldOffset(12)] internal UInt16 GlyphCount;
        [FieldOffset(14)] internal UInt16 FaceFlags; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_GLYPHBITMAP 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal short horOriginX;
        [FieldOffset(6)] internal short horOriginY;
        [FieldOffset(8)] internal short horAdvance;
        [FieldOffset(10)] internal short verOriginX; 
        [FieldOffset(12)] internal short verOriginY;
        [FieldOffset(14)] internal UInt16 width; 
        [FieldOffset(16)] internal UInt16 height; 
        [FieldOffset(18)] internal UInt16 stride;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_GLYPHCACHE_REMOVEBITMAPS
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal UInt32 FontFaceHandle; 
        [FieldOffset(12)] internal UInt32 GlyphCount; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_GLYPHRUN_CREATE
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle hGlyphCache;
        [FieldOffset(12)] internal UInt16 GlyphCount; 
        [FieldOffset(14)] internal UInt16 Flags; 
        [FieldOffset(16)] internal MIL_2DPOINTF Origin;
        [FieldOffset(24)] internal float MuSize; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_GLYPHRUN_ADDREALIZATION
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal UInt32 RealizationHandle; 
        [FieldOffset(12)] internal UInt32 FontFaceHandle;
        [FieldOffset(16)] internal float ScaleX; 
        [FieldOffset(20)] internal float ScaleY;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_GLYPHRUN_REMOVEREALIZATION 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal UInt32 RealizationHandle;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_GLYPHRUN_GEOMETRY
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hGeometry; 
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_AXISANGLEROTATION3D 
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double angle; 
        [FieldOffset(16)] internal MIL_3DPOINTF axis;
        [FieldOffset(28)] internal DUCE.ResourceHandle hAxisAnimations; 
        [FieldOffset(32)] internal DUCE.ResourceHandle hAngleAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_QUATERNIONROTATION3D
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MIL_3DQUATERNIONF quaternion;
        [FieldOffset(24)] internal DUCE.ResourceHandle hQuaternionAnimations; 
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_SCENE3D 
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal Rect viewport; 
        [FieldOffset(40)] internal DUCE.ResourceHandle hmodels;
        [FieldOffset(44)] internal DUCE.ResourceHandle hcamera; 
        [FieldOffset(48)] internal DUCE.ResourceHandle hViewportAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_PERSPECTIVECAMERA
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double nearPlaneDistance;
        [FieldOffset(16)] internal double farPlaneDistance; 
        [FieldOffset(24)] internal double fieldOfView; 
        [FieldOffset(32)] internal MIL_3DPOINTF position;
        [FieldOffset(44)] internal DUCE.ResourceHandle htransform; 
        [FieldOffset(48)] internal MIL_3DPOINTF lookDirection;
        [FieldOffset(60)] internal DUCE.ResourceHandle hNearPlaneDistanceAnimations;
        [FieldOffset(64)] internal MIL_3DPOINTF upDirection;
        [FieldOffset(76)] internal DUCE.ResourceHandle hFarPlaneDistanceAnimations; 
        [FieldOffset(80)] internal DUCE.ResourceHandle hPositionAnimations;
        [FieldOffset(84)] internal DUCE.ResourceHandle hLookDirectionAnimations; 
        [FieldOffset(88)] internal DUCE.ResourceHandle hUpDirectionAnimations; 
        [FieldOffset(92)] internal DUCE.ResourceHandle hFieldOfViewAnimations;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_ORTHOGRAPHICCAMERA
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double nearPlaneDistance; 
        [FieldOffset(16)] internal double farPlaneDistance; 
        [FieldOffset(24)] internal double width;
        [FieldOffset(32)] internal MIL_3DPOINTF position; 
        [FieldOffset(44)] internal DUCE.ResourceHandle htransform;
        [FieldOffset(48)] internal MIL_3DPOINTF lookDirection;
        [FieldOffset(60)] internal DUCE.ResourceHandle hNearPlaneDistanceAnimations;
        [FieldOffset(64)] internal MIL_3DPOINTF upDirection; 
        [FieldOffset(76)] internal DUCE.ResourceHandle hFarPlaneDistanceAnimations;
        [FieldOffset(80)] internal DUCE.ResourceHandle hPositionAnimations; 
        [FieldOffset(84)] internal DUCE.ResourceHandle hLookDirectionAnimations; 
        [FieldOffset(88)] internal DUCE.ResourceHandle hUpDirectionAnimations;
        [FieldOffset(92)] internal DUCE.ResourceHandle hWidthAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_MATRIXCAMERA
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal D3DMATRIX viewMatrix; 
        [FieldOffset(72)] internal D3DMATRIX projectionMatrix;
        [FieldOffset(136)] internal DUCE.ResourceHandle htransform; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_MODEL3DGROUP
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle htransform; 
        [FieldOffset(12)] internal UInt32 ChildrenSize;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_AMBIENTLIGHT
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal MIL_COLORF color; 
        [FieldOffset(24)] internal DUCE.ResourceHandle htransform; 
        [FieldOffset(28)] internal DUCE.ResourceHandle hColorAnimations;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_DIRECTIONALLIGHT
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal MIL_COLORF color; 
        [FieldOffset(24)] internal MIL_3DPOINTF direction; 
        [FieldOffset(36)] internal DUCE.ResourceHandle htransform;
        [FieldOffset(40)] internal DUCE.ResourceHandle hColorAnimations; 
        [FieldOffset(44)] internal DUCE.ResourceHandle hDirectionAnimations;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_POINTLIGHT 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MIL_COLORF color;
        [FieldOffset(24)] internal double range; 
        [FieldOffset(32)] internal double constantAttenuation;
        [FieldOffset(40)] internal double linearAttenuation;
        [FieldOffset(48)] internal double quadraticAttenuation;
        [FieldOffset(56)] internal MIL_3DPOINTF position; 
        [FieldOffset(68)] internal DUCE.ResourceHandle htransform;
        [FieldOffset(72)] internal DUCE.ResourceHandle hColorAnimations; 
        [FieldOffset(76)] internal DUCE.ResourceHandle hPositionAnimations; 
        [FieldOffset(80)] internal DUCE.ResourceHandle hRangeAnimations;
        [FieldOffset(84)] internal DUCE.ResourceHandle hConstantAttenuationAnimations; 
        [FieldOffset(88)] internal DUCE.ResourceHandle hLinearAttenuationAnimations;
        [FieldOffset(92)] internal DUCE.ResourceHandle hQuadraticAttenuationAnimations;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_SPOTLIGHT
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal MIL_COLORF color; 
        [FieldOffset(24)] internal double range;
        [FieldOffset(32)] internal double constantAttenuation;
        [FieldOffset(40)] internal double linearAttenuation;
        [FieldOffset(48)] internal double quadraticAttenuation; 
        [FieldOffset(56)] internal double outerConeAngle;
        [FieldOffset(64)] internal double innerConeAngle; 
        [FieldOffset(72)] internal MIL_3DPOINTF position; 
        [FieldOffset(84)] internal DUCE.ResourceHandle htransform;
        [FieldOffset(88)] internal MIL_3DPOINTF direction; 
        [FieldOffset(100)] internal DUCE.ResourceHandle hColorAnimations;
        [FieldOffset(104)] internal DUCE.ResourceHandle hPositionAnimations;
        [FieldOffset(108)] internal DUCE.ResourceHandle hRangeAnimations;
        [FieldOffset(112)] internal DUCE.ResourceHandle hConstantAttenuationAnimations; 
        [FieldOffset(116)] internal DUCE.ResourceHandle hLinearAttenuationAnimations;
        [FieldOffset(120)] internal DUCE.ResourceHandle hQuadraticAttenuationAnimations; 
        [FieldOffset(124)] internal DUCE.ResourceHandle hDirectionAnimations; 
        [FieldOffset(128)] internal DUCE.ResourceHandle hOuterConeAngleAnimations;
        [FieldOffset(132)] internal DUCE.ResourceHandle hInnerConeAngleAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_GEOMETRYMODEL3D
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle htransform; 
        [FieldOffset(12)] internal DUCE.ResourceHandle hgeometry;
        [FieldOffset(16)] internal DUCE.ResourceHandle hmaterial; 
        [FieldOffset(20)] internal DUCE.ResourceHandle hbackMaterial;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_MESHGEOMETRY3D 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal UInt32 PositionsSize;
        [FieldOffset(12)] internal UInt32 NormalsSize; 
        [FieldOffset(16)] internal UInt32 TextureCoordinatesSize;
        [FieldOffset(20)] internal UInt32 TriangleIndicesSize;
        [FieldOffset(24)] internal UInt32 BlendColorsSize;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_MATERIALGROUP 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal UInt32 ChildrenSize;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_DIFFUSEMATERIAL 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MIL_COLORF color;
        [FieldOffset(24)] internal MIL_COLORF ambientColor; 
        [FieldOffset(40)] internal DUCE.ResourceHandle hbrush;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_SPECULARMATERIAL 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MIL_COLORF color;
        [FieldOffset(24)] internal double specularPower; 
        [FieldOffset(32)] internal DUCE.ResourceHandle hbrush;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_EMISSIVEMATERIAL 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MIL_COLORF color;
        [FieldOffset(24)] internal DUCE.ResourceHandle hbrush; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_TRANSFORM3DGROUP
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal UInt32 ChildrenSize; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_TRANSLATETRANSFORM3D
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double offsetX;
        [FieldOffset(16)] internal double offsetY; 
        [FieldOffset(24)] internal double offsetZ; 
        [FieldOffset(32)] internal DUCE.ResourceHandle hOffsetXAnimations;
        [FieldOffset(36)] internal DUCE.ResourceHandle hOffsetYAnimations; 
        [FieldOffset(40)] internal DUCE.ResourceHandle hOffsetZAnimations;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_SCALETRANSFORM3D 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double scaleX;
        [FieldOffset(16)] internal double scaleY; 
        [FieldOffset(24)] internal double scaleZ;
        [FieldOffset(32)] internal double centerX;
        [FieldOffset(40)] internal double centerY;
        [FieldOffset(48)] internal double centerZ; 
        [FieldOffset(56)] internal DUCE.ResourceHandle hScaleXAnimations;
        [FieldOffset(60)] internal DUCE.ResourceHandle hScaleYAnimations; 
        [FieldOffset(64)] internal DUCE.ResourceHandle hScaleZAnimations; 
        [FieldOffset(68)] internal DUCE.ResourceHandle hCenterXAnimations;
        [FieldOffset(72)] internal DUCE.ResourceHandle hCenterYAnimations; 
        [FieldOffset(76)] internal DUCE.ResourceHandle hCenterZAnimations;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_ROTATETRANSFORM3D 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double centerX;
        [FieldOffset(16)] internal double centerY; 
        [FieldOffset(24)] internal double centerZ;
        [FieldOffset(32)] internal DUCE.ResourceHandle hCenterXAnimations;
        [FieldOffset(36)] internal DUCE.ResourceHandle hCenterYAnimations;
        [FieldOffset(40)] internal DUCE.ResourceHandle hCenterZAnimations; 
        [FieldOffset(44)] internal DUCE.ResourceHandle hrotation;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_MATRIXTRANSFORM3D
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal D3DMATRIX matrix;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_BITMAPEFFECTDRAWING 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal UInt32 WorldTransformsSize;
        [FieldOffset(12)] internal UInt32 DrawingsSize;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_DRAWINGIMAGE
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hDrawing; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_TRANSFORMGROUP
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal UInt32 ChildrenSize; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_TRANSLATETRANSFORM
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double X;
        [FieldOffset(16)] internal double Y; 
        [FieldOffset(24)] internal DUCE.ResourceHandle hXAnimations; 
        [FieldOffset(28)] internal DUCE.ResourceHandle hYAnimations;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_SCALETRANSFORM
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double ScaleX; 
        [FieldOffset(16)] internal double ScaleY; 
        [FieldOffset(24)] internal double CenterX;
        [FieldOffset(32)] internal double CenterY; 
        [FieldOffset(40)] internal DUCE.ResourceHandle hScaleXAnimations;
        [FieldOffset(44)] internal DUCE.ResourceHandle hScaleYAnimations;
        [FieldOffset(48)] internal DUCE.ResourceHandle hCenterXAnimations;
        [FieldOffset(52)] internal DUCE.ResourceHandle hCenterYAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_SKEWTRANSFORM 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double AngleX;
        [FieldOffset(16)] internal double AngleY;
        [FieldOffset(24)] internal double CenterX; 
        [FieldOffset(32)] internal double CenterY;
        [FieldOffset(40)] internal DUCE.ResourceHandle hAngleXAnimations; 
        [FieldOffset(44)] internal DUCE.ResourceHandle hAngleYAnimations; 
        [FieldOffset(48)] internal DUCE.ResourceHandle hCenterXAnimations;
        [FieldOffset(52)] internal DUCE.ResourceHandle hCenterYAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_ROTATETRANSFORM
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double Angle; 
        [FieldOffset(16)] internal double CenterX;
        [FieldOffset(24)] internal double CenterY; 
        [FieldOffset(32)] internal DUCE.ResourceHandle hAngleAnimations;
        [FieldOffset(36)] internal DUCE.ResourceHandle hCenterXAnimations;
        [FieldOffset(40)] internal DUCE.ResourceHandle hCenterYAnimations;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_MATRIXTRANSFORM 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal MIL_MATRIX3X2D Matrix;
        [FieldOffset(56)] internal DUCE.ResourceHandle hMatrixAnimations;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_LINEGEOMETRY
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal Point StartPoint; 
        [FieldOffset(24)] internal Point EndPoint;
        [FieldOffset(40)] internal DUCE.ResourceHandle hTransform;
        [FieldOffset(44)] internal DUCE.ResourceHandle hStartPointAnimations;
        [FieldOffset(48)] internal DUCE.ResourceHandle hEndPointAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_RECTANGLEGEOMETRY 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double RadiusX;
        [FieldOffset(16)] internal double RadiusY;
        [FieldOffset(24)] internal Rect Rect; 
        [FieldOffset(56)] internal DUCE.ResourceHandle hTransform;
        [FieldOffset(60)] internal DUCE.ResourceHandle hRadiusXAnimations; 
        [FieldOffset(64)] internal DUCE.ResourceHandle hRadiusYAnimations; 
        [FieldOffset(68)] internal DUCE.ResourceHandle hRectAnimations;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_ELLIPSEGEOMETRY
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double RadiusX; 
        [FieldOffset(16)] internal double RadiusY; 
        [FieldOffset(24)] internal Point Center;
        [FieldOffset(40)] internal DUCE.ResourceHandle hTransform; 
        [FieldOffset(44)] internal DUCE.ResourceHandle hRadiusXAnimations;
        [FieldOffset(48)] internal DUCE.ResourceHandle hRadiusYAnimations;
        [FieldOffset(52)] internal DUCE.ResourceHandle hCenterAnimations;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_GEOMETRYGROUP 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle hTransform;
        [FieldOffset(12)] internal FillRule FillRule;
        [FieldOffset(16)] internal UInt32 ChildrenSize;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_COMBINEDGEOMETRY 
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal DUCE.ResourceHandle hTransform;
        [FieldOffset(12)] internal GeometryCombineMode GeometryCombineMode;
        [FieldOffset(16)] internal DUCE.ResourceHandle hGeometry1;
        [FieldOffset(20)] internal DUCE.ResourceHandle hGeometry2; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_PATHGEOMETRY 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hTransform;
        [FieldOffset(12)] internal FillRule FillRule;
        [FieldOffset(16)] internal UInt32 FiguresSize; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_SOLIDCOLORBRUSH 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double Opacity;
        [FieldOffset(16)] internal MIL_COLORF Color;
        [FieldOffset(32)] internal DUCE.ResourceHandle hOpacityAnimations; 
        [FieldOffset(36)] internal DUCE.ResourceHandle hTransform;
        [FieldOffset(40)] internal DUCE.ResourceHandle hRelativeTransform; 
        [FieldOffset(44)] internal DUCE.ResourceHandle hColorAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_LINEARGRADIENTBRUSH
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double Opacity;
        [FieldOffset(16)] internal Point StartPoint; 
        [FieldOffset(32)] internal Point EndPoint; 
        [FieldOffset(48)] internal DUCE.ResourceHandle hOpacityAnimations;
        [FieldOffset(52)] internal DUCE.ResourceHandle hTransform; 
        [FieldOffset(56)] internal DUCE.ResourceHandle hRelativeTransform;
        [FieldOffset(60)] internal ColorInterpolationMode ColorInterpolationMode;
        [FieldOffset(64)] internal BrushMappingMode MappingMode;
        [FieldOffset(68)] internal GradientSpreadMethod SpreadMethod; 
        [FieldOffset(72)] internal UInt32 GradientStopsSize;
        [FieldOffset(76)] internal DUCE.ResourceHandle hStartPointAnimations; 
        [FieldOffset(80)] internal DUCE.ResourceHandle hEndPointAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_RADIALGRADIENTBRUSH
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double Opacity;
        [FieldOffset(16)] internal Point Center; 
        [FieldOffset(32)] internal double RadiusX; 
        [FieldOffset(40)] internal double RadiusY;
        [FieldOffset(48)] internal Point GradientOrigin; 
        [FieldOffset(64)] internal DUCE.ResourceHandle hOpacityAnimations;
        [FieldOffset(68)] internal DUCE.ResourceHandle hTransform;
        [FieldOffset(72)] internal DUCE.ResourceHandle hRelativeTransform;
        [FieldOffset(76)] internal ColorInterpolationMode ColorInterpolationMode; 
        [FieldOffset(80)] internal BrushMappingMode MappingMode;
        [FieldOffset(84)] internal GradientSpreadMethod SpreadMethod; 
        [FieldOffset(88)] internal UInt32 GradientStopsSize; 
        [FieldOffset(92)] internal DUCE.ResourceHandle hCenterAnimations;
        [FieldOffset(96)] internal DUCE.ResourceHandle hRadiusXAnimations; 
        [FieldOffset(100)] internal DUCE.ResourceHandle hRadiusYAnimations;
        [FieldOffset(104)] internal DUCE.ResourceHandle hGradientOriginAnimations;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_IMAGEBRUSH
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double Opacity; 
        [FieldOffset(16)] internal Rect Viewport;
        [FieldOffset(48)] internal Rect Viewbox;
        [FieldOffset(80)] internal double CacheInvalidationThresholdMinimum;
        [FieldOffset(88)] internal double CacheInvalidationThresholdMaximum; 
        [FieldOffset(96)] internal DUCE.ResourceHandle hOpacityAnimations;
        [FieldOffset(100)] internal DUCE.ResourceHandle hTransform; 
        [FieldOffset(104)] internal DUCE.ResourceHandle hRelativeTransform; 
        [FieldOffset(108)] internal BrushMappingMode ViewportUnits;
        [FieldOffset(112)] internal BrushMappingMode ViewboxUnits; 
        [FieldOffset(116)] internal DUCE.ResourceHandle hViewportAnimations;
        [FieldOffset(120)] internal DUCE.ResourceHandle hViewboxAnimations;
        [FieldOffset(124)] internal Stretch Stretch;
        [FieldOffset(128)] internal TileMode TileMode; 
        [FieldOffset(132)] internal AlignmentX AlignmentX;
        [FieldOffset(136)] internal AlignmentY AlignmentY; 
        [FieldOffset(140)] internal CachingHint CachingHint; 
        [FieldOffset(144)] internal DUCE.ResourceHandle hImageSource;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_DRAWINGBRUSH
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double Opacity; 
        [FieldOffset(16)] internal Rect Viewport; 
        [FieldOffset(48)] internal Rect Viewbox;
        [FieldOffset(80)] internal double CacheInvalidationThresholdMinimum; 
        [FieldOffset(88)] internal double CacheInvalidationThresholdMaximum;
        [FieldOffset(96)] internal DUCE.ResourceHandle hOpacityAnimations;
        [FieldOffset(100)] internal DUCE.ResourceHandle hTransform;
        [FieldOffset(104)] internal DUCE.ResourceHandle hRelativeTransform; 
        [FieldOffset(108)] internal BrushMappingMode ViewportUnits;
        [FieldOffset(112)] internal BrushMappingMode ViewboxUnits; 
        [FieldOffset(116)] internal DUCE.ResourceHandle hViewportAnimations; 
        [FieldOffset(120)] internal DUCE.ResourceHandle hViewboxAnimations;
        [FieldOffset(124)] internal Stretch Stretch; 
        [FieldOffset(128)] internal TileMode TileMode;
        [FieldOffset(132)] internal AlignmentX AlignmentX;
        [FieldOffset(136)] internal AlignmentY AlignmentY;
        [FieldOffset(140)] internal CachingHint CachingHint; 
        [FieldOffset(144)] internal DUCE.ResourceHandle hDrawing;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VISUALBRUSH
        { 
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double Opacity;
        [FieldOffset(16)] internal Rect Viewport; 
        [FieldOffset(48)] internal Rect Viewbox;
        [FieldOffset(80)] internal double CacheInvalidationThresholdMinimum; 
        [FieldOffset(88)] internal double CacheInvalidationThresholdMaximum; 
        [FieldOffset(96)] internal DUCE.ResourceHandle hOpacityAnimations;
        [FieldOffset(100)] internal DUCE.ResourceHandle hTransform; 
        [FieldOffset(104)] internal DUCE.ResourceHandle hRelativeTransform;
        [FieldOffset(108)] internal BrushMappingMode ViewportUnits;
        [FieldOffset(112)] internal BrushMappingMode ViewboxUnits;
        [FieldOffset(116)] internal DUCE.ResourceHandle hViewportAnimations; 
        [FieldOffset(120)] internal DUCE.ResourceHandle hViewboxAnimations;
        [FieldOffset(124)] internal Stretch Stretch; 
        [FieldOffset(128)] internal TileMode TileMode; 
        [FieldOffset(132)] internal AlignmentX AlignmentX;
        [FieldOffset(136)] internal AlignmentY AlignmentY; 
        [FieldOffset(140)] internal CachingHint CachingHint;
        [FieldOffset(144)] internal DUCE.ResourceHandle hVisual;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_DASHSTYLE
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double Offset; 
        [FieldOffset(16)] internal DUCE.ResourceHandle hOffsetAnimations;
        [FieldOffset(20)] internal UInt32 DashesSize;
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_PEN
        { 
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal double Thickness; 
        [FieldOffset(16)] internal double MiterLimit;
        [FieldOffset(24)] internal DUCE.ResourceHandle hBrush;
        [FieldOffset(28)] internal DUCE.ResourceHandle hThicknessAnimations;
        [FieldOffset(32)] internal PenLineCap StartLineCap; 
        [FieldOffset(36)] internal PenLineCap EndLineCap;
        [FieldOffset(40)] internal PenLineCap DashCap; 
        [FieldOffset(44)] internal PenLineJoin LineJoin; 
        [FieldOffset(48)] internal DUCE.ResourceHandle hDashStyle;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_GEOMETRYDRAWING
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hBrush; 
        [FieldOffset(12)] internal DUCE.ResourceHandle hPen; 
        [FieldOffset(16)] internal DUCE.ResourceHandle hGeometry;
        }; 
        [StructLayout(LayoutKind.Explicit, Pack=1)]
        internal struct MILCMD_GLYPHRUNDRAWING
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal DUCE.ResourceHandle hGlyphRun; 
        [FieldOffset(12)] internal DUCE.ResourceHandle hForegroundBrush; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_IMAGEDRAWING
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal Rect Rect;
        [FieldOffset(40)] internal DUCE.ResourceHandle hImageSource; 
        [FieldOffset(44)] internal DUCE.ResourceHandle hRectAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_VIDEODRAWING
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal Rect Rect;
        [FieldOffset(40)] internal DUCE.ResourceHandle hPlayer; 
        [FieldOffset(44)] internal DUCE.ResourceHandle hRectAnimations; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_DRAWINGGROUP
        {
        [FieldOffset(0)] internal MILCMD Type;
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle; 
        [FieldOffset(8)] internal double Opacity;
        [FieldOffset(16)] internal UInt32 ChildrenSize; 
        [FieldOffset(20)] internal DUCE.ResourceHandle hClipGeometry; 
        [FieldOffset(24)] internal DUCE.ResourceHandle hOpacityAnimations;
        [FieldOffset(28)] internal DUCE.ResourceHandle hOpacityMask; 
        [FieldOffset(32)] internal DUCE.ResourceHandle hTransform;
        [FieldOffset(36)] internal DUCE.ResourceHandle hGuidelineSet;
        [FieldOffset(40)] internal EdgeMode EdgeMode;
        [FieldOffset(44)] internal BitmapScalingMode bitmapScalingMode; 
        };
        [StructLayout(LayoutKind.Explicit, Pack=1)] 
        internal struct MILCMD_GUIDELINESET 
        {
        [FieldOffset(0)] internal MILCMD Type; 
        [FieldOffset(4)] internal DUCE.ResourceHandle Handle;
        [FieldOffset(8)] internal UInt32 GuidelinesXSize;
        [FieldOffset(12)] internal UInt32 GuidelinesYSize;
        [FieldOffset(16)] internal BOOL IsDynamic; 
        };
 
        // This code is generated from mcg\generators\CommandStructure.cs 
        internal sealed partial class Channel
        { 
            /// 
            /// It returns whether the command contains security critical resources and
            /// so the Security Critical function should be called to send the command
            /// 
            /// Assumption:- pCommandData's first field is a MILCMD type and proper
            ///              validation checks have been done on the buffer 
            ///  
            /// 
            /// Critical - This code can dereference an arbitrary pointer. 
            /// 
            [SecurityCritical]
            unsafe private bool IsSecurityCriticalCommand(
                byte *pCommandData) 
            {
                MILCMD *type = (MILCMD *)pCommandData; 
                switch (*type) 
                {
                    case MILCMD.MilCmdHwndTargetCreate: 
                    case MILCMD.MilCmdHwndTargetSuppressLayered:
                    case MILCMD.MilCmdGenericTargetCreate:
                    case MILCMD.MilCmdTargetInvalidate:
                    	return true; 
                    default:
                        return false; 
                } 
            }
        } 
    };
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK