/// <summary> /// Create a TS_POINTER_CAPABILITYSET type Capability, 2.2.7.1.5 /// </summary> /// <param name="colorPointer">false:Monochrome mouse cursors are supported. true:Color mouse cursors are supported.</param> /// <param name="colorPointerCacheSize">A 16-bit, unsigned integer. The number of available slots in the /// 24 bpp color pointer cache used to store data received in the Color Pointer Update (section 2.2.9.1.1.4.4).</param> /// <param name="pointerCacheSize">A 16-bit, unsigned integer. The number of available slots in the /// pointer cache used to store pointer data of arbitrary bit depth received in the New Pointer Update /// (section 2.2.9.1.1.4.5). If the value contained in this field is zero or the Pointer Capability /// Set sent from the client does not include this field, the server will not use the New Pointer Update.</param> /// <returns>TS_POINTER_CAPABILITYSET type Capability</returns> public static TS_POINTER_CAPABILITYSET CreatePointerCapSet(colorPointerFlag_Values colorPointerFlag, ushort colorPointerCacheSize, ushort pointerCacheSize) { TS_POINTER_CAPABILITYSET pointerCapabilitySet = new TS_POINTER_CAPABILITYSET(); pointerCapabilitySet.capabilitySetType = capabilitySetType_Values.CAPSTYPE_POINTER; pointerCapabilitySet.colorPointerFlag = colorPointerFlag; pointerCapabilitySet.colorPointerCacheSize = colorPointerCacheSize; pointerCapabilitySet.pointerCacheSize = pointerCacheSize; pointerCapabilitySet.lengthCapability = (ushort)Marshal.SizeOf(pointerCapabilitySet); return pointerCapabilitySet; }
/// <summary> /// 2.2.7.1.5 /// </summary> /// <param name="pointer"></param> public void VerifyStructure(TS_POINTER_CAPABILITYSET pointer) { site.CaptureRequirementIfAreEqual<capabilitySetType_Values>(capabilitySetType_Values.CAPSTYPE_POINTER, pointer.capabilitySetType, 1284, @"In TS_POINTER_CAPABILITY_SET structure, capabilitySetType gives the type of the capability" + @" set. This field MUST be set to CAPSTYPE_POINTER (8)."); }