ILMNetProtocolManager::RegisterProtocol
#include "netcon2.h"
C Syntax |
HRESULT ILMNetProtocolManager_UnregisterProtocol(pProtMngr, Name, rclsid) |
C++ Syntax |
HRESULT UnregisterProtocol(Name, rclsid) |
ILMNetProtocolManager * pProtMngr; |
/* pointer to an interface */ |
LPCWSTR Name; |
/* protocol name */ |
REFCLSID rclsid; |
/* class id */ |
Registers a new communication protocol to be used with the toolkit.
Parameter |
Description |
pProtMngr |
Pointer to an ILMNetProtocolManager interface. |
Name |
A character string that contains the new protocol name to register. |
rclsid |
The new protocol class ID to be registered. |
Returns
S_OK |
The function was successful. |
<> S_OK |
An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation. |
Comments
The new protocol will be identified by the toolkit where the URLs of this protocol can be used to establish connections using the toolkit’s functions.
Required DLLs and Libraries
LMNetCon For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64
See Also
Example
For a C example, refer to How to Create a User-Defined Protocol.
For a C++ example, refer to How to Create a User-Defined Protocol.