Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.9 KiB

  1. ; apsample.INF
  2. ;
  3. ; Autoplay Sample for Windows XP
  4. ;
  5. ; Copyright (c) 2001 Microsoft Corporation
  6. ;
  7. [Version]
  8. Signature = "$Windows NT$"
  9. [DefaultInstall]
  10. AddReg = APSample.addreg
  11. [APSample.addreg]
  12. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  13. ; Autoplay Sample Handler
  14. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\MSAutoplaySample","DefaultIcon",,"%SystemRoot%\system32\shell32.dll,-274"
  15. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\MSAutoplaySample","FriendlyName",,"Handle event using Autoplay Sample"
  16. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\MSAutoplaySample","ProgID",,"Shell.AutoplaySample"
  17. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\MSAutoplaySample","InitCmdLine",,"Sample unused command line"
  18. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  19. ; Add the Autoplay Sample Handler to an EventHandler
  20. ; Here we picked "ShowPicturesOnArrival", could be any EventHandler under the EventHandlers key
  21. ; This is the EventHandler to put in the dialog (ShowPicturesOnArrival)
  22. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\ShowPicturesOnArrival","MSAutoplaySample"
  23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  24. ; Autoplay Sample ProgID/CLSID mapping
  25. HKCR,"Shell.AutoplaySample",,,"Autoplay Sample Application"
  26. HKCR,"Shell.AutoplaySample\CLSID",,,"{4456E541-7CAB-45ee-AB09-3FF379FA9AA4}"
  27. HKCR,"Shell.AutoplaySample\CurVer",,,"Shell.AutoplaySample.1"
  28. HKCR,"Shell.AutoplaySample.1",,,"Autoplay Sample Application"
  29. HKCR,"Shell.AutoplaySample.1\CLSID",,,"{4456E541-7CAB-45ee-AB09-3FF379FA9AA4}"
  30. ; This is the CLSID to put in the CLSID edit control of the dialog
  31. HKCR,"CLSID\{4456E541-7CAB-45ee-AB09-3FF379FA9AA4}",,,"Autoplay Sample Application"
  32. ; Add a path to this, if the apsample.exe is not on your path env var
  33. HKCR,"CLSID\{4456E541-7CAB-45ee-AB09-3FF379FA9AA4}\LocalServer32",,,"apsample.exe"
  34. HKCR,"CLSID\{4456E541-7CAB-45ee-AB09-3FF379FA9AA4}\ProgID",,,"Shell.AutoplaySample.1"
  35. HKCR,"CLSID\{4456E541-7CAB-45ee-AB09-3FF379FA9AA4}\VersionIndependentProgID",,,"Shell.AutoplaySample"
  36. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  37. ; Autoplay Sample AppID
  38. HKCR,"CLSID\{4456E541-7CAB-45ee-AB09-3FF379FA9AA4}","AppID",,"{CC26330D-339C-49df-AF15-4B74FF7B3E34}"
  39. ; Required to be invoked from a service process.
  40. HKCR,"AppID\{CC26330D-339C-49df-AF15-4B74FF7B3E34}","RunAs",,"Interactive User"
  41. ; Required to be able to register in the Running Object Table with the ROTFLAGS_ALLOWANYCLIENT flag
  42. HKCR,"AppID\apsample.exe","AppID",,"{CC26330D-339C-49df-AF15-4B74FF7B3E34}"