Description
Adds a Microsoft OS extended property to a vendor class instance.
Files
usbd_vendor.h / usbd_vendor.c
Prototype
Arguments
class_nbr
Class instance number.
property_type
Property type.
USBD_MS_OS_PROPERTY_TYPE_REG_SZ
USBD_MS_OS_PROPERTY_TYPE_REG_EXPAND_SZ
USBD_MS_OS_PROPERTY_TYPE_REG_BINARY
USBD_MS_OS_PROPERTY_TYPE_REG_DWORD_LITTLE_ENDIAN
USBD_MS_OS_PROPERTY_TYPE_REG_DWORD_BIG_ENDIAN
USBD_MS_OS_PROPERTY_TYPE_REG_LINK
USBD_MS_OS_PROPERTY_TYPE_REG_MULTI_SZ
p_property_name
Pointer to buffer that contains property name.
property_name_len
Length of property name in octets.
p_property
Pointer to buffer that contains property.
property_len
Length of property in octets.
p_err
Pointer to variable that will receive the return error code from this function.
USBD_ERR_NONE
USBD_ERR_INVALID_ARG
USBD_ERR_NULL_PTR
Returned Value
None.
Callers
Application.
Notes / Warnings
- For more information on Microsoft OS descriptors, see http://msdn.microsoft.com/en-us/library/windows/hardware/gg463179.aspx.
- For more information on property types, refer to "Table 3. Property Data Types" of "Extended Properties OS Feature Descriptor Specification" document provided by Microsoft available at http://msdn.microsoft.com/en-us/library/windows/hardware/gg463179.aspx.
- Microsoft OS descriptors must be enabled by setting
USBD_CFG_MS_OS_DESC_EN
toDEF_ENABLED
before using this function.