IPSFactoryBuffer::CreateStub method

Creates a stub for the remote use of the specified interface.

Syntax


HRESULT CreateStub(
  [in]   REFIID riid,
  [in]   IUnknown *pUnkServer,
  [out]  IRpcStubBuffer **ppStub
);

Parameters

riid [in]

The identifier of the interface for which a stub is to be created.

pUnkServer [in]

A controlling IUnknown interface; used for aggregation.

ppStub [out]

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

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_IPSFactoryBuffer is defined as D5F569D0-593B-101A-B569-08002B2DBF7A

See also

IPSFactoryBuffer
IRpcStubBuffer
Stub

 

 

Community Additions

ADD
Show:
© 2014 Microsoft