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.

34 lines
713 B

  1. <HTML>
  2. <HEAD>
  3. <TITLE>ATL 3.0 test page for object WIACamUI</TITLE>
  4. </HEAD>
  5. <SCRIPT language="JavaScript">
  6. function OnInit()
  7. {
  8. var text = "";
  9. var n;
  10. var i;
  11. var c;
  12. obj = WIACamUI.GetUICategories ("Foo", "Bar");
  13. n = obj.Count;
  14. text+="<p>Total categories:" + n
  15. for (i=0;i < n;i++)
  16. {
  17. text+="<p>"+obj.Item(i).Name;
  18. text+="<p># elements:" + obj.Item(i).ElementCount
  19. for (c=0;c < obj.Item(i).ElementCount;c++)
  20. {
  21. text+="<p><b>" + obj.Item(i).Element(c).Name + "</b>"
  22. }
  23. }
  24. Stuff.innerHTML = text;
  25. }
  26. </script>
  27. <BODY onload="OnInit()">
  28. <OBJECT ID="WIACamUI" CLASSID="CLSID:42B36D70-8877-11D2-8067-00805F6596D2"></OBJECT>
  29. <DIV ID="Stuff">
  30. </div>
  31. </BODY>
  32. </HTML>