Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IRpcStubBuffer::IsIIDSupported method

Determines whether a stub is designed to handle the unmarshaling of a particular interface.

Syntax


IRpcStubBuffer* IsIIDSupported(
  [in] REFIID riid
);

Parameters

riid [in]

The IID of the interface. This parameter cannot be IID_IUnknown.

Return value

If the stub can handle the indicated interface, then this method returns an IRpcStubBuffer pointer for that interface; otherwise, it returns NULL.

Remarks

When presented with the need to remote a new IID on a given object, the RPC run time typically calls this method on all the presently-connected interface stubs in an attempt to locate one that can handle the marshaling for the request before it goes to the trouble of creating a new stub.

As in IPSFactoryBuffer::CreateStub, if a stub is presently connected to a server object, then not only must this method verify that the stub can handle the indicated interface, but it must also verify (using QueryInterface) that the connected server object in fact supports the indicated interface. Depending on the IID and previous interface servicing requests, it may have already done so.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

ObjIdl.h

IDL

ObjIdl.idl

IID

IID_IRpcStubBuffer is defined as D5F56AFC-593B-101A-B569-08002B2DBF7A

See also

IRpcStubBuffer

 

 

Show:
© 2017 Microsoft