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.

43 lines
656 B

  1. #pragma namespace("\\\\.\\root")
  2. instance of __Namespace
  3. {
  4. Name = "MofHigh";
  5. };
  6. #pragma namespace("MofHigh")
  7. class HighClass
  8. {
  9. [key] datetime date;
  10. };
  11. #pragma namespace("\\\\.\\root\\default")
  12. class ParentClass
  13. {
  14. [key] char ParentProp;
  15. object ref RefProp;
  16. };
  17. [ddynamic, pprovider("Hi there")] class MyClass : ParentClass
  18. {
  19. [read] string strProp[] = NULL;
  20. [key] long lProp = 239;
  21. };
  22. [tryit(1,2,3)] instance of MyClass as $Inst1
  23. {
  24. strProp = {"a", "b", "xyz"};
  25. lProp;
  26. ParentProp = '!';
  27. RefProp = $Inst2;
  28. };
  29. instance of ParentClass as $Inst2
  30. {
  31. ParentProp = '?';
  32. [count("neg")] RefProp = $Inst1;
  33. };