Owner manual

Table Of Contents
Section 5. Application Programmable Interface
63
McpSet
This function is used to set the value of a property in the MCP driver, MCP device or MCP
device application. Properties can be accessed through their property ID or property name.
DWORD McpSet( HANDLE hDevice, PMCPBUS pMCPBUS );
Parameters
hDevice
Handle to the specified device (communications resource) for the property being set. This handle
was returned from the McpOpen function.
pMCPBUS
Pointer to the MCPBUS structure used by the MCP API function to perform this operation.
The following structure members are used as input parameters.
Member Meaning
dwOperAttribute MCP_ATTR_NONE - set an MCP device property
MCP_ATTR_PROP_DRIVER - set an MCP driver property
dwApplicationID Application ID (not used if MCP_ATTR_PROP_DRIVER is set)
lpszPropertyName Pointer to null terminated property name. NULL if using a Property ID
dwPropertyID Property ID. Used only if lpszPropertyName is NULL and
MCP_ATTR_NONE is set in dwOperAttribute..
dwPropertyType Property type. Used for type verification. Never use MCP_TYPE_NONE.
lpInBuffer Pointer to storage buffer containing the property value to be set
dwInBufferLen Length (in bytes) of property value contained in the buffer pointed to by
lpInBuffer
There are no structure members used as output parameters.