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.

74 lines
1.9 KiB

  1. // Copyright (c) 2000-2004 Microsoft Corporation
  2. // WMI Class Definitions for a test POD of SCE
  3. // Version 1.0
  4. #pragma autorecover
  5. #pragma classflags("forceupdate")
  6. #pragma namespace("\\\\.\\root")
  7. instance of __Namespace
  8. {
  9. Name = "Security";
  10. };
  11. #pragma namespace("\\\\.\\root\\Security")
  12. instance of __Namespace
  13. {
  14. Name = "SCE";
  15. };
  16. #pragma namespace("\\\\.\\root\\Security\\SCE")
  17. //**************************************************************************
  18. //* Declare an instance of the __Win32Provider so as to "register" the
  19. //* PodTest provider.
  20. //**************************************************************************
  21. instance of __Win32Provider as $P
  22. {
  23. Name = "Sample Pod Provider of SCE" ;
  24. ClsId = "{c5f6cc21-6195-4555-b9d8-3ef327763cae}" ;
  25. ImpersonationLevel = 1;
  26. PerUserInitialization = TRUE;
  27. };
  28. instance of __InstanceProviderRegistration
  29. {
  30. Provider = $P;
  31. SupportsPut = TRUE;
  32. SupportsGet = TRUE;
  33. SupportsDelete = TRUE;
  34. SupportsEnumeration = TRUE;
  35. };
  36. instance of __MethodProviderRegistration
  37. {
  38. Provider = $P;
  39. };
  40. //******************** Sample_DataClass *****************************************
  41. //* a test class of this Pod
  42. [dynamic, provider("Sample Pod Provider of SCE")]
  43. class Sample_DataClass : Sce_SecuritySetting
  44. {
  45. [key] string SceStorePath;
  46. [key] string KeyName;
  47. string Value;
  48. };
  49. //******************** Sample_BaseClass **********************************************
  50. //All SCE Pods must implement the configure method.
  51. [dynamic, Singleton, provider("Sample Pod Provider of SCE")]
  52. class Sample_BaseClass : Sce_Pod
  53. {
  54. string PodID;
  55. [static,implemented] uint32 Configure ([in] string SceStorePath, [in] string LogFilePath);
  56. };