I have a win32 api application located on a usb virtual cd. Is it possible to determine if it was launched by windows executing autorun.inf or by the user by double-clicking the cd icon in Explorer?
Thank...
There is no direct way to detect that the application was launched from autorun.inf. the autorun file launches the application as if it were launched by the user.
autorun.inf
autorun.inf, . argv GetCommandLine().
argv
GetCommandLine()
, -, , autorun.inf?
[autorun] open=yourapp.exe /viainf
Afaik, - Windows, .
, , , .
Source: https://habr.com/ru/post/1774938/More articles:сохранение и разбор булевых выражений в базе данных - c#Сортировка строк JTable вручную и с TableRowSorter одновременно - javaWhich design template is suitable for this workflow requirement? - designAre "inserted" and "deleted" tables guaranteed to return their records in the same order to the AFTER UPDATE trigger? - tsqlHow can I safely exit a DBMS when records are locked? - c #What tools exist to parse Javascript and read the results in Javascript or Ruby? - javascriptDelphi - find the primary email address for an Active Directory user - delphigtk window title setting - gtkjquery toggle text - jqueryWork with circular inclusion in the relation of the parent / child class - c ++All Articles