IAPI::BinaryToBSTR

property BinaryToBSTR.

Converts a binary data structure to BSTR which is intensively used into COM or scripting languages.

 

HRESULT BinaryToBSTR(
  long binaryData,
  long binaryDataSize,
  BSTR *pVal
);

Parameters

binaryData

[in] .   Pointer to binary data structure in memory (e.g FileTimeStamp)

binaryDataSize

[in] .   Size the binary data structure (e.g 24 bytes for FileTimeStamp)

pVal

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

 

Note that an example is provided into ScriptEZ_FileTimeStamp.vbs

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 - BSTRToBinary

IAPI