Windows apps
Collapse the table of content
Expand the table of content

BSTR_UserSize Function

Calculates the wire size of the BSTR object, and gets the BSTR handle and data.

ULONG __RPC_USER BSTR_UserSize(
  ULONG  *pFlags, 
  ULONG Offset, 
  BSTR  *pBstr
);

Parameter

Description

pFlags

[in] Points to data used by RPC.

Offset

[in] Represents the current buffer offset where the object will be marshaled. The method has to account for any padding needed for the BSTR object to be properly aligned when it will be marshaled to the buffer.

pBstr

[in] Points to the BSTR object.

The return value obtained from the returned HRESULT is one of the following.

Return value

Meaning

S_OK

Success.

Show:
© 2016 Microsoft