Leaked source code of windows server 2003
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.

47 lines
1008 B

  1. <?xml version="1.0"?>
  2. <component>
  3. <registration
  4. description="First"
  5. progid="First.WSC"
  6. version="1.00"
  7. classid="{d0ccb637-bd0c-4c90-a4bd-7473f499d35a}">
  8. <comment>
  9. This makes the messagebox pop up on registration and unregistation.
  10. </comment>
  11. </registration>
  12. <comment> The methods and properties to expose to the data consumer.</comment>
  13. <public>
  14. <property name="YourName">
  15. <get internalName="hiddenGetProperty"/>
  16. <put internalName="hiddenSetProperty"/>
  17. </property>
  18. <method name="SayHello">
  19. </method>
  20. </public>
  21. <comment> The code that implements the functionality of the component.</comment>
  22. <script language="PerlScript">
  23. <![CDATA[
  24. use vars qw($YourName_Property);
  25. sub hiddenGetProperty {
  26. return $YourName_Property;
  27. }
  28. sub hiddenSetProperty {
  29. my($param) = shift;
  30. $YourName_Property = $param;
  31. }
  32. sub SayHello {
  33. return "Hello $YourName_Property!";
  34. }
  35. ]]>
  36. </script>
  37. </component>