Re: Where (in VB.NET) to find the proper HRESULTs for WMS callbacks?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Are these the values you need ? (WM Format SDK)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/WMFORM11/htm/errorcodes.asp

Plus see the intro paragraph for definitions / header files.

HTH
Cheers - Neil

On Thu, 18 Jan 2007 09:01:02 -0800, Evan K
<EvanK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I'm creating a custom PlaylistParser for Windows Media Services 9
(http://msdn2.microsoft.com/en-us/library/ms741989.aspx), and at the end of
any interface function such as ReadPlaylist, I'm supposed to do a callback
and send an HRESULT to indicate success, failure, or a specific error:

'indicate success
pCallback.OnReadPlaylist(S_OK, qwContext)
'indicate failure
pCallback.OnReadPlaylist(E_FAILED, qwContext)
'indicate this interface function was not implemented
pCallback.OnReadPlaylist(E_NOTIMPL, qwContext)

This may seem like a newbie question, but...where the HECK are these
HRESULTs defined? I've added a reference to microsoft.windowsmediaservices
and interop_msxml, and I figured they would be in one of those, but when I
build the plugin, I get errors that 'S_OK' and the others are not declared.
I'd even declare them myself if I could find the correct values. If anyone
could shed some light, I'd really appreciate it!
------------------------------------------------
Digital Media MVP : 2004-2007
http://mvp.support.microsoft.com/mvpfaqs
.



Relevant Pages