IAPI::ConvertStringToBSTR

property ConvertStringToBSTR.

Converts C-String to BSTR which is intensively used into COM or scripting languages.

 

HRESULT ConvertStringToBSTR(
  long lpString,
  BSTR *pVal
);

Parameters

lpString

[in] .   Pointer to C-String in memory

pVal

[out, retval] The returned value is BSTR if succeeded or empty BSTR

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI