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.

86 lines
2.8 KiB

  1. // **************************************************************************
  2. // Copyright (c) 1999-2000 Microsoft Corporation.
  3. //
  4. // File: WmiTimeP.mof
  5. //
  6. // Description:
  7. //
  8. // History:
  9. //
  10. // **************************************************************************
  11. Qualifier Description : ToSubClass Amended;
  12. // register the provider as both an event and instance provider
  13. #pragma namespace("\\root\\cimv2")
  14. [Abstract, Singleton:ToSubClass ToInstance]
  15. class Win32_CurrentTime
  16. {
  17. [read, Description("The current matching year (4 digits)")]
  18. uint32 Year;
  19. [read, Description("The current matching month (1-12)")]
  20. uint32 Month;
  21. [read, Description("The current matching day (1-31)")]
  22. uint32 Day;
  23. [read, Description("The current matching day of the current week (0-6, Sunday being 0)")]
  24. uint32 DayOfWeek;
  25. [read, Description("The current week in the current month (1-6)")]
  26. uint32 WeekInMonth;
  27. [read, Description("The current quarter of the current year (1-4)")]
  28. uint32 Quarter;
  29. [read, Description("The current hour of the current day (0-23)")]
  30. uint32 Hour;
  31. [read, Description("The current minute (0-59)")]
  32. uint32 Minute;
  33. [read, Description("The current second of the current minute (0-59)")]
  34. uint32 Second;
  35. [read, Description("(currently not used)")]
  36. uint32 Milliseconds; // temp member for debugging intervals
  37. };
  38. [dynamic, provider("Win32ClockProvider"), Description("Describes an instance in time as returned by Win32ClockProvider. When a query is submitted to the Win32LocalClockProvider, the results are returned as Win32_LocalTime objects with times matching the query. These are returned as part of __InstanceModificationEvents")]
  39. class Win32_LocalTime : Win32_CurrentTime
  40. {
  41. };
  42. [dynamic, provider("Win32ClockProvider"), Description("Describes an instance in time as returned by Win32ClockProvider. When a query is submitted to the Win32UTCClockProvider, the results are returned as Win32_UTCTime objects with times matching the query. These are returned as part of __InstanceModificationEvents")]
  43. class Win32_UTCTime : Win32_CurrentTime
  44. {
  45. };
  46. instance of __Win32Provider
  47. {
  48. Name = "Win32ClockProvider";
  49. CLSID = "{C4819C8D-9AB8-4b2f-B8AE-C77DABF553D5}";
  50. HostingModel="NetworkServiceHost";
  51. };
  52. instance of __EventProviderRegistration
  53. {
  54. provider = "__Win32Provider=\"Win32ClockProvider\"";
  55. EventQueryList = { "select * from __InstanceModificationEvent where TargetInstance isa \"Win32_LocalTime\"",
  56. "select * from __InstanceModificationEvent where TargetInstance isa \"Win32_UTCTime\"" };
  57. };
  58. instance of __InstanceProviderRegistration
  59. {
  60. Provider = "__Win32Provider=\"Win32ClockProvider\"";
  61. SupportsPut = FALSE;
  62. SupportsGet = TRUE;
  63. SupportsDelete = FALSE;
  64. SupportsEnumeration = TRUE;
  65. };