1. Perhaps try
http://cboard.cprogramming.com/windows-programming/114294-getting-list-usb-devices-listed-system.html[
^]
2. No idea, there is probably an API somewhere, or a registry key. At least the Windows Firewall has an API documented on
MSDN[
^]
3. These live in 2 basic locations. The
Startup
folder in the start menu of the current user, and the shared user start menu, and the
Run
registry, such as
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
,
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
(also the RunOnce for things like installers). Note: On a 64 bit computer these keys can be stored in either the 64 and 32 bit registry locations, or both. This means you must also check things like
HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
4. Using the
Registry API[
^]. Check out the example on
MSDN[
^] (links to some more examples on the left hand side)