windows - Detect whether app was run via autorun.inf or doubleclick in explorer? -


i have win32 api application residing on usb virtual cd. possible determine whether run windows executing autorun.inf or user double-clicking cd icon in explorer?

thanks...

there no direct way detect application run autorun.inf. autorun stuff launching application if launched user.

however, can specify command line argument in autorun.inf, trigger specific behaviour in application. command line argument retrieved through argv or getcommandline().


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -