Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Registers a port type for incoming messages. All port types listed in the service host metadata must be registered.
Syntax
HRESULT RegisterPortType(
[in] const WSD_PORT_TYPE *pPortType
);
Parameters
[in] pPortType
Reference to a WSD_PORT_TYPE structure that describes the port type.
Return value
Possible return values include, but are not limited to, the following:
| Return code | Description |
|---|---|
|
Method completed successfully. |
|
Insufficient memory to complete the operation. |
|
The port type specified by pPortType has already been registered. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Target Platform | Windows |
| Header | wsdhost.h (include Wsdapi.h) |
| DLL | Wsdapi.dll |