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
Post a Comment