IPSFactoryBuffer::CreateStub method (objidlbase.h)
Creates a stub for the remote use of the specified interface.
Syntax
HRESULT CreateStub(
[in] REFIID riid,
[in] IUnknown *pUnkServer,
[out] IRpcStubBuffer **ppStub
);
Parameters
[in] riid
The identifier of the interface for which a stub is to be created.
[in] pUnkServer
A controlling IUnknown interface; used for aggregation.
[out] ppStub
A pointer to an IRpcStubBuffer interface pointer to control marshaling.
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, E_FAIL, and S_OK.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | objidlbase.h (include ObjIdl.h) |