Click here to Skip to main content
15,893,594 members
Home / Discussions / C#
   

C#

 
GeneralLinking Database to Dataset Pin
pjholliday7-Dec-04 22:54
pjholliday7-Dec-04 22:54 
GeneralRe: Linking Database to Dataset Pin
exhaulted7-Dec-04 23:11
exhaulted7-Dec-04 23:11 
Questionhow to translation matrix element Pin
montu33777-Dec-04 20:06
montu33777-Dec-04 20:06 
AnswerRe: how to translation matrix element Pin
Daniel Turini7-Dec-04 20:17
Daniel Turini7-Dec-04 20:17 
GeneralRe: how to translation matrix element Pin
montu33777-Dec-04 20:31
montu33777-Dec-04 20:31 
GeneralDynamic Button Pin
picasso27-Dec-04 19:35
picasso27-Dec-04 19:35 
GeneralRe: Dynamic Button Pin
Daniel Turini7-Dec-04 20:05
Daniel Turini7-Dec-04 20:05 
GeneralIQueryCancelAutoPlay Pin
myker7-Dec-04 18:26
myker7-Dec-04 18:26 
I wish to prevent AutoPlay from happening when my .NET application is running. According to MSDN (http://msdn.microsoft.com/msdnmag/issues/01/11/autoplay/default.aspx[^], there are two methods for accomplishing this:

1) Handle the "QueryCancelAutoplay" windows message. This only works when your application is in the foreground and activated.

2) Implement the IQueryCancelAutoPlay COM interface and register with the ROT (Running Object Table)

I found an article for the first method at http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20695207.html[^]. However, my application isn't always in the foreground. Therefore, I am left with option 2. The big question I have is, how do I implement the IQueryCancelAutoPlay COM interface and register it at runtime with the ROT using C#?

~mykey

What do you get when the devil goes bald? Hell Toupee. Laugh | :laugh:
GeneralRe: IQueryCancelAutoPlay Pin
Daniel Turini7-Dec-04 20:23
Daniel Turini7-Dec-04 20:23 
GeneralRe: IQueryCancelAutoPlay Pin
Heath Stewart8-Dec-04 7:40
protectorHeath Stewart8-Dec-04 7:40 
GeneralRe: IQueryCancelAutoPlay Pin
Daniel Turini8-Dec-04 8:00
Daniel Turini8-Dec-04 8:00 
GeneralRe: IQueryCancelAutoPlay Pin
Heath Stewart8-Dec-04 8:07
protectorHeath Stewart8-Dec-04 8:07 
Questionhow make a mirror printing in c# Pin
bigmega7-Dec-04 17:27
bigmega7-Dec-04 17:27 
AnswerRe: how make a mirror printing in c# Pin
Christian Graus7-Dec-04 18:33
protectorChristian Graus7-Dec-04 18:33 
GeneralProblem with SendMessage() using P/Invoke Pin
Liu Shuai7-Dec-04 17:15
Liu Shuai7-Dec-04 17:15 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Daniel Turini7-Dec-04 20:02
Daniel Turini7-Dec-04 20:02 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Liu Shuai8-Dec-04 3:35
Liu Shuai8-Dec-04 3:35 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Daniel Turini8-Dec-04 4:00
Daniel Turini8-Dec-04 4:00 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Liu Shuai8-Dec-04 5:22
Liu Shuai8-Dec-04 5:22 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Mike Dimmick8-Dec-04 0:10
Mike Dimmick8-Dec-04 0:10 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Liu Shuai8-Dec-04 4:09
Liu Shuai8-Dec-04 4:09 
GeneralHELP ME!!! Pin
Jacob Graves7-Dec-04 13:44
Jacob Graves7-Dec-04 13:44 
GeneralRe: HELP ME!!! Pin
Heath Stewart7-Dec-04 14:51
protectorHeath Stewart7-Dec-04 14:51 
GeneralSorry.. Pin
Jacob Graves7-Dec-04 15:10
Jacob Graves7-Dec-04 15:10 
GeneralRe: Sorry.. Pin
Jitesh Patil7-Dec-04 21:53
Jitesh Patil7-Dec-04 21:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.