Article View: borland.public.cppbuilder.nativeapi
Article #10257Re: Stopping DVD/Audio CD autoplay
From: Remy Lebeau (TeamB)
Date: Tue, 11 May 2004 00:18
Date: Tue, 11 May 2004 00:18
21 lines
1908 bytes
1908 bytes
"Simon Macneall" <macneall-at-iinet.net.au> wrote in message news:Xns94E64A765FD08macnealliinetnetau@207.105.83.66... > WCHAR wsz[256]; > wsprintfW(wsz, L"AutoPlayInterceptor %08x pid %08x", 0, > GetCurrentProcessId()); > if (SUCCEEDED(CreateItemMoniker(L"!", wsz, &moniker))) I suspect that you should be using SHCreateQueryCancelAutoPlayMoniker() instead of CreateItemMoniker(). > rot->Register(0, inGraph, moniker, &retVal); You are registering an IMoniker that has no actual connection to your custom IQueryCancelAutoPlay object at all. I don't see how the ROT can query the OS-provided IMoniker to gain information about your IQueryCancelAutoPlay object when it needs it. Gambit
Technical Details
Message-ID:
<40a01d2f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<Xns94E15253CC42Fmacnealliinetnetau@207.105.83.66> <409984a1$1@newsgroups.borland.com> <Xns94E160383D857macnealliinetnetau@207.105.83.66> <4099b0ae$1@newsgroups.borland.com> <Xns94E24E78DCBC3macnealliinetnetau@207.105.83.66> <409ad659$1@newsgroups.borland.com> <Xns94E64A765FD08macnealliinetnetau@207.105.83.66>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,dcdee2de1c7c274c X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <Xns94E15253CC42Fmacnealliinetnetau@207.105.83.66> <409984a1$1@newsgroups.borland.com> <Xns94E160383D857macnealliinetnetau@207.105.83.66> <4099b0ae$1@newsgroups.borland.com> <Xns94E24E78DCBC3macnealliinetnetau@207.105.83.66> <409ad659$1@newsgroups.borland.com> <Xns94E64A765FD08macnealliinetnetau@207.105.83.66> Subject: Re: Stopping DVD/Audio CD autoplay Date: Mon, 10 May 2004 17:18:48 -0700 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <40a01d2f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1084235055 67.22.138.253 (10 May 2004 17:24:15 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail