Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
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) |