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.

60 lines
3.3 KiB

  1. #include <windows.h>
  2. #include "resource.h"
  3. /////////////////////////////////////////////////////////////////////////////
  4. // Dialog
  5. IDD_DIALOG1 DIALOG DISCARDABLE 0, 0, 400, 237
  6. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  7. CAPTION "Autoplay Sample"
  8. FONT 8, "MS Shell Dlg"
  9. BEGIN
  10. EDITTEXT IDC_EDIT1,7,7,386,80,ES_AUTOHSCROLL | ES_READONLY | ES_MULTILINE | WS_VSCROLL | WS_HSCROLL
  11. GROUPBOX "",IDC_DUMMY,7,91,188,96
  12. CONTROL "Using QueryCancelAutoPlay Windows message ...",IDC_QCA_CHECKBOX,"Button",
  13. BS_AUTOCHECKBOX | WS_TABSTOP,11,91,170,10
  14. LTEXT "Drive:",IDC_DUMMY,11,105,20,14
  15. EDITTEXT IDC_QCA_EDIT,35,103,153,13,ES_AUTOHSCROLL | WS_DISABLED
  16. CONTROL "Prevent AutoRun of Autorun.INF",IDC_QCA_AUTORUNINF_CHECKBOX,"Button",
  17. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,11,118,180,10
  18. CONTROL "Prevent AutoRun of Audio CD",IDC_QCA_AUDIOCD_CHECKBOX,"Button",
  19. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,11,132,180,10
  20. CONTROL "Prevent AutoRun of DVD Movie",IDC_QCA_DVDMOVIE_CHECKBOX,"Button",
  21. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,11,146,180,10
  22. CONTROL "Prevent AutoRun of blank CD-R/CD-RW",IDC_QCA_BLANKCD_CHECKBOX,"Button",
  23. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,11,160,180,10
  24. CONTROL "Prevent AutoRun of blank DVD-R/DVD-RW",IDC_QCA_BLANKDVD_CHECKBOX,"Button",
  25. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,11,174,180,10
  26. GROUPBOX "",IDC_DUMMY,201,91,190,96
  27. CONTROL "Using IQueryCancelAutoPlay interface ...",IDC_IQCA_CHECKBOX,"Button",
  28. BS_AUTOCHECKBOX | WS_TABSTOP,205,91,160,10
  29. LTEXT "Drive:",IDC_DUMMY,205,105,20,14
  30. EDITTEXT IDC_IQCA_EDIT,229,103,153,13,ES_AUTOHSCROLL | WS_DISABLED
  31. CONTROL "Prevent AutoRun of Autorun.INF",IDC_IQCA_AUTORUNINF_CHECKBOX,"Button",
  32. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,205,118,180,10
  33. CONTROL "Prevent AutoRun of Audio CD",IDC_IQCA_AUDIOCD_CHECKBOX,"Button",
  34. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,205,132,180,10
  35. CONTROL "Prevent AutoRun of DVD Movie",IDC_IQCA_DVDMOVIE_CHECKBOX,"Button",
  36. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,205,146,180,10
  37. CONTROL "Prevent AutoRun of blank CD-R/CD-RW",IDC_IQCA_BLANKCD_CHECKBOX,"Button",
  38. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,205,160,180,10
  39. CONTROL "Prevent AutoRun of blank DVD-R/DVD-RW",IDC_IQCA_BLANKDVD_CHECKBOX,"Button",
  40. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,205,174,180,10
  41. GROUPBOX "",IDC_DUMMY,7,188,386,42
  42. CONTROL "Intercept AutoPlay event",IDC_AUTOPLAY_CHECKBOX,"Button",
  43. BS_AUTOCHECKBOX | WS_TABSTOP,11,188,100,10
  44. LTEXT "EventHandler:",IDC_DUMMY,11,202,45,14
  45. EDITTEXT IDC_AUTOPLAY_EVENTHANDLER_EDIT,60,200,100,13,ES_AUTOHSCROLL | WS_DISABLED
  46. LTEXT "CLSID:",IDC_DUMMY,164,202,25,14
  47. EDITTEXT IDC_AUTOPLAY_CLSID_EDIT,193,200,180,13,ES_AUTOHSCROLL | WS_DISABLED
  48. CONTROL "On/Off",IDC_AUTOPLAY_ONOFF_CHECKBOX,"Button",
  49. BS_AUTOCHECKBOX | WS_TABSTOP | WS_DISABLED,11,217,100,10
  50. END