IWSDDeviceHost::RegisterPortType (Windows Embedded CE 6.0)
1/6/2010
This method registers a port type for incoming messages. All port types listed in the service host metadata must be registered.
Syntax
HRESULT RegisterPortType(
const WSD_PORT_TYPE* pPortType
);
Parameters
- pPortType
[in] Reference to a WSD_PORT_TYPE structure that describes the port type.
Return Value
The following table shows the possible error code return values.
Error code | Description |
---|---|
S_OK |
This method completed successfully. |
E_OUTOFMEMORY |
Insufficient memory to complete the operation. |
S_FALSE |
The port type specified by pPortType has already been registered. |
Requirements
Header | wsdapi.h |
Library | wsdapi.lib |
Windows Embedded CE | Windows Embedded CE 6.0 R2 |