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

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

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

c# - Getting "Internal .Net Framework Data Provider error 30" error when column has NULL value -