Compartilhar via


DEFINE_CSPROPERTY_ITEM (Compact 2013)

3/26/2014

This macro helps define a camera property by laying out the members of a CSPROPERTY_ITEM structure.

Syntax

#define DEFINE_CSPROPERTY_ITEM(PropertyId, GetHandler,\
                                                              MinProperty, MinData,\
                                                              SetHandler, Values,\
                               RelationsCount, Relations,\
                                                              SupportHandler, SerializedSize)\
{\
    PropertyId, (BOOL)GetHandler,\
    MinProperty, MinData,\
  (BOOL)SetHandler, (PCSPROPERTY_VALUES)Values,\
    RelationsCount, (PCSPROPERTY)Relations,\
  NULL, 0\
}

Parameters

  • PropertyId
    A value that corresponds to CSPROPERTY_ITEM.PropertyId.
  • GetHandler
    A value that corresponds to CSPROPERTY_ITEM.GetSupported.
  • MinProperty
    A value that corresponds to CSPROPERTY_ITEM.MinProperty.
  • MinData
    A value that corresponds to CSPROPERTY_ITEM.MinData.
  • SetHandler
    A value that corresponds to CSPROPERTY_ITEM.SetSupported.
  • Values
    A value that corresponds to CSPROPERTY_ITEM.Values.
  • RelationsCount
    A value that corresponds to CSPROPERTY_ITEM.RelationsCount.
  • Relations
    A value that corresponds to CSPROPERTY_ITEM.Relations.
  • SupportHandler
    Not used. The value for CSPROPERTY_ITEM.Reserved1 is set to NULL.
  • SerializedSize
    Not used. The value for CSPROPERTY_ITEM.Reserved2 is set to 0.

Requirements

Header

cs.h

See Also

Reference

Camera Driver Macros