Index   Commented   Search   About

CoUnmarshalHresult

Unmarshals an HRESULT type from the specified stream.

STDAPI CoUnmarshalHresult(

LPSTREAM pStm,
//Stream used for unmarshalling
HRESULT * phresult
//Receives the HRESULT
);

Parameters

pStm

Points to the stream from which the HRESULT is to be unmarshalled.

phresult

Receives the unmarshalled HRESULT.

Return Values

S_OK

Indicates the HRESULT was unmarshalled successfully.

STG_E_INVALIDPOINTER

Indicates pStm is an invalid pointer.

E_OUTOFMEMORY

Out of memory.

E_INVALIDARG

Indicates one or more arguments are invalid.

E_UNEXPECTED

Indicates an unexpected error occurred.

Comments

You typically do not need to call this function. The only situation in which you would need to call this function is if you are performing custom marshalling (that is, writing your own implementation of IMarshal). You must use CoUnmarshalHresult to unmarshal HRESULTs previously marshalled by a call to the CoMarshalHresult function.

See Also

CoMarshalHresult

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun