The Protocol object represents the information about a protocol for a user's application. The information is published by a user who is registered on the ILS server.
IIlsProtocol Interface |
IConnectionPoint—IIlsProtocolNotify Interface |
The IIlsProtocol interface is obtained from the IIlsUser::GetProtocol method. This section describes the IIlsProtocol interface methods.
GetAllExtendedAttributes |
GetExtendedAttribute |
GetPortNumber |
GetStandardAttribute |
IsWritable |
RemoveExtendedAttribute |
SetExtendedAttribute |
SetStandardAttribute |
Update |
HRESULT IIlsProtocol::GetAllExtendedAttributes(
IIlsAttributes **ppAttributes);
Returns all extended attributes, in the form of an Attributes object, from the Protocol object. This is an alternative to getting each extended attribute individually through IIlsProtocol::GetExtendedAttribute.
This method is not yet implemented.
Back to IIlsProtocol Interface
HRESULT IIlsProtocol::GetExtendedAttribute(
BSTR bstrName,
BSTR *pbstrValue);
Returns a named extended attribute belonging to the Protocol object.
This method is not yet implemented.
Back to IIlsProtocol Interface
HRESULT GetPortNumber
[out] ULONG *pulPortNumber);
Returns the port number used by this protocol.
Back to IIlsProtocol Interface
HRESULT IIlsProtocol::GetStandardAttribute(
ILS_STD_ATTR_NAME StdAttr,
BSTR *pbstrValue);
Returns a standard attribute belonging to the Protocol object.
S_OK | Success. |
ILS_E_POINTER | Address of the return buffer is NULL. |
ILS_E_PARAMETER | Incorrect attribute for this object. |
ILS_E_MEMORY | Unable to allocate enough memory for this request. |
ILS_STDATTR_PROTOCOL_NAME = 13 |
ILS_STDATTR_MIME_TYPE = 14 |
ILS_STDATTR_PORT =15 |
Back to IIlsProtocol Interface
HRESULT IIlsProtocol::IsWritable(
BOOL *pValue);
Returns whether the Protocol object can be written to.
Protocol objects returned from enumeration or IIlsUser::GetProtocol cannot be written to, but those created through IIlsUser::CreateProtocol can.
Back to IIlsProtocol Interface
HRESULT IIlsProtocol::RemoveExtendedAttribute(
BSTR bstrName);
Removes an extended attribute. The modification will not be reflected on the ILS server until the IIlsProtocol::Update method is called.
This method is not yet implemented.
Back to IIlsProtocol Interface
HRESULT IIlsProtocol::SetExtendedAttribute(
BSTR bstrName,
BSTR bstrValue);
Allows the application to modify an extended attribute of the protocol. The modification will not be reflected on the ILS server until the IIlsProtocol::Update method is called.
This method is not yet implemented.
Back to IIlsProtocol Interface
HRESULT IIlsProtocol::SetStandardAttribute(
ILS_STD_ATTR_NAME StdAttr,
BSTR bstrValue);
Allows the application to modify a standard attribute of the protocol. The modification will not be reflected on the ILS server until the IIlsProtocol::Update method is called.
This method is not yet implemented.
ILS_STDATTR_PROTOCOL_NAME = 13 |
ILS_STDATTR_MIME_TYPE = 14 |
ILS_STDATTR_PORT = 15 |
Back to IIlsProtocol Interface
HRESULT IIlsProtocol::Update(
ULONG *puReqID);
Reflects updated protocol information to the ILS server.
This method is not yet implemented.
This method is an asynchronous operation. The application receives the IIlsProtocolNotify::UpdateResult notification for the registration result.
Back to IIlsProtocol Interface
The IConnectionPointContainer_IIlsProtocol interface is instantiated from IID_IConnectionPointContainer to identify Protocol as a connectable object. The interface contains the standard set of methods for IConnectionPointContainer_IIlsProtocol.
The IConnectionPoint_IIlsProtocol interface is instantiated from IConnectionPointContainer_IIlsProtocol. The Protocol object provides only one connection point—IID_IIlsProtocolNotify—for a client's sink object to receive the callback notification. The client must provide the IIlsProtocolNotify interface methods described in this section in the sink object.
This interface is implemented by a client application that will receive notifications from a Protocol object.
UpdateResult |
HRESULT IIlsProtocolNotify::UpdateResult(
ULONG uReqID,
HRESULT hResult);
Notifies the Protocol object when an update request is made. If the request is successful, the updated information is propagated to the ILS server.
Back to IIlsProtocolNotify Interface
Last Updated: November 1, 1997
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.