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.
 
 
 
 
 
 

477 lines
49 KiB

#pragma namespace("\\\\.\\root\\CIMV2")
#pragma autorecover
#pragma classflags("forceupdate")
Qualifier Description : ToSubClass Amended;
Qualifier Values : ToSubClass Amended;
Qualifier DisplayName : Amended;
Qualifier BitValues:ToSubClass Amended ;
Qualifier Aggregate : ToSubClass ;
Qualifier ValueMap : ToSubClass ;
Qualifier Aggregation : ToSubClass ;
Qualifier ArrayType : ToSubClass ;
Qualifier Association : ToInstance ToSubClass DisableOverride ;
Qualifier BitMap : ToSubClass ;
Qualifier CIM_Key : ToSubClass ;
Qualifier CIMTYPE : ToSubClass ;
Qualifier Deprecated : ToSubClass ;
Qualifier Enumeration : ToSubClass ;
Qualifier EnumPrivileges : ToSubClass ;
Qualifier Fixed : ToSubclass;
Qualifier ImplementationSource : ToSubClass ;
Qualifier Key : ToInstance ToSubClass DisableOverride ;
Qualifier Locale : ToInstance ;
Qualifier MappingStrings : ToSubClass ;
Qualifier Max : ToSubClass ;
Qualifier MaxLen : ToSubClass ;
Qualifier Min : ToSubClass ;
Qualifier ModelCorrespondence : ToSubClass ;
Qualifier Not_Null : ToSubClass ;
Qualifier Override : Restricted ;
Qualifier Privileges : ToSubClass ;
Qualifier Propagated : ToSubClass ;
Qualifier provider : ToInstance ;
Qualifier Range : ToSubClass ;
Qualifier Read : ToSubClass ;
Qualifier Schema : ToInstance ;
Qualifier Singleton : ToSubClass ToInstance ;
Qualifier SUBTYPE : ToSubClass ;
Qualifier Units : ToSubClass ;
Qualifier UUID : ToInstance ;
Qualifier Volatile : ToSubClass ;
Qualifier Weak : ToSubClass ;
Qualifier Write : ToSubClass ;
Qualifier WritePrivileges : ToSubClass ;
Instance of __Win32Provider as $VSSProvider
{
Name = "MSVSS__PROVIDER";
ClsId = "{72970BEB-81F8-46d4-B220-D743F4E49C95}";
Pure = "TRUE";
ImpersonationLevel = 1;
PerUserInitialization = "FALSE";
HostingModel = "NetworkServiceHost";
};
Instance of __MethodProviderRegistration
{
Provider = $VSSProvider;
};
Instance of __InstanceProviderRegistration
{
Provider = $VSSProvider;
SupportsPut = TRUE;
SupportsGet = TRUE;
SupportsDelete = TRUE;
SupportsEnumeration = TRUE;
};
// ===================================================================
//
// ===================================================================
[
Description(
"The Win32_ShadowProvider class represents a component, typically a combination "
"of user-mode and kernel/firmware implementation, that will perform the work involved "
"in creating and representing volume shadow copies") : Amended ToSubclass,
Dynamic : ToInstance,
Provider("MSVSS__PROVIDER"),
Locale(1033)
]
class Win32_ShadowProvider : CIM_LogicalElement
{
[DisplayName("ID") : Amended, Key,
Description("The ID property uniquely identifies the shadow provider on the system.") : Amended ToSubclass, Read]
string ID;
[DisplayName("Name") : Amended,
Description("The name property is the descriptive name of the provider.") : Amended ToSubclass, Read]
string Name;
[DisplayName("Class ID") : Amended,
Description("The CLSID property is the COM class id registered for the shadow provider.") : Amended ToSubclass, Read]
string CLSID;
[DisplayName("Type") : Amended,
Description("The Type property indicates to which class the shadow provider belongs.") : Amended ToSubclass,
Values{"Unknown", "System", "Software", "Hardware"} : Amended ToSubclass,
Valuemap{ "0", "1", "2", "3"}, Read]
uint32 Type;
[DisplayName("Version") : Amended,
Description("The Version property provides a textual representation of the shadow provider version.") : Amended ToSubclass, Read]
string Version;
[DisplayName("Version ID") : Amended, Description("The VersionID provides a numeric representation of the shadow provider version.") : Amended ToSubclass, Read]
string VersionID;
};
[
Description("The Win32_ShadowCopy class is a storage extent that represents a duplicate copy of the original volume at some previous time.") : Amended ToSubclass,
Dynamic : ToInstance,
Provider("MSVSS__PROVIDER"),
Locale(1033)
]
class Win32_ShadowCopy : CIM_LogicalElement
{
[DisplayName("ID") : Amended, Key,
Description("The ID property uniquely identifies the shadow copy on the system.") : Amended ToSubclass, Read]
string ID;
[DisplayName("Shadow Set ID") : Amended,
Description("The SetID uniquely identifies the shadow copy set to which the shadow belongs.") : Amended ToSubclass, Read]
string SetID;
[DisplayName("Provider ID") : Amended,
Description("The ProviderID uniquely identifies the shadow provider that created the shadow.") : Amended ToSubclass, Read]
string ProviderID;
[DisplayName("Count") : Amended,
Description("The Count property is the number of shadow copies in the shadow copy set to which this shadow copy belongs.") : Amended ToSubclass, Read]
uint32 Count;
[DisplayName("Device Object") : Amended,
Description("The DeviceObject property is the Windows object manager name of the underlying storage device that supports the original volume.") : Amended ToSubclass, Read]
string DeviceObject;
[DisplayName("VolumeName") : Amended,
Description("The VolumeName property identifies the original volume for which the shadow copy was taken.") : Amended ToSubclass, Read]
string VolumeName;
[DisplayName("Originating Machine") : Amended,
Description("The OriginatingMachine property identifies the machine hosting the original volume.") : Amended ToSubclass, Read]
string OriginatingMachine;
[DisplayName("Service Machine") : Amended,
Description("The ServiceMachine property identifies the machine currently servicing the shadow copy.") : Amended ToSubclass, Read]
string ServiceMachine;
[DisplayName("Exposed Name") : Amended,
Description("The ExposedName property is the file system name of the shadow copy when it is exposed. This property might contain a drive letter or mount point. This property is NULL when the shadow copy is hidden or otherwise not exposed.") : Amended ToSubclass, Read]
string ExposedName;
[DisplayName("Exposed Path") : Amended,
Description("The ExposedPath property is the file system path of the shadow copy when it is exposed. This property is NULL when the shadow copy is hidden or otherwise unexposed.") : Amended ToSubclass, Read]
string ExposedPath;
[DisplayName("State") : Amended,
Description("The State property describes the current state of the shadow copy") : Amended ToSubclass,
Values{ "Unknown", "Preparing", "ProcessingPrepare", "Prepared",
"ProcessingPrecommit", "Precommitted", "ProcessingCommit",
"Committed", "ProcessingPostcommit", "Created", "Aborted",
"Deleted", "Count" } : Amended ToSubclass,
Valuemap{ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"}, Read]
uint32 State;
[DisplayName("Persistent") : Amended,
Description("The Persistent property indicates whether the shadow copy is persistent across reboots.") : Amended ToSubclass, Read]
boolean Persistent;
[DisplayName("Client Accessible") : Amended,
Description("The ClientAccessible property is indicates whether the shadow copy was created by the Windows Previous Versions component.") : Amended ToSubclass, Read]
boolean ClientAccessible;
[DisplayName("No Auto Release") : Amended,
Description("The NoAutoRelease property indicates whether the shadow copy is automatically deleted when the shadow copy requestor process ends. If this property is TRUE, the shadow copy is retained after the requestor process ends.") : Amended ToSubclass, Read]
boolean NoAutoRelease;
[DisplayName("No Writers") : Amended,
Description("The NoWriters property indicates whether the shadow copy was created with the involvement of shadow copy writer components.") : Amended ToSubclass, Read]
boolean NoWriters;
[DisplayName("Transportable") : Amended,
Description("The Transportable property indicates whether the shadow copy can be surfaced on another machine. If this property is FALSE and the volumes are surfaced locally, it may not be possible to surface them later on a different machine.") : Amended ToSubclass, Read]
boolean Transportable;
[DisplayName("Not Surfaced") : Amended, Description("The shadow copy is not currently in the device namespace of the local machine.") : Amended ToSubclass, Read]
boolean NotSurfaced;
[DisplayName("Hardware Assisted") : Amended,
Description("The HardwareAssisted property indicates whether the shadow copy was created by a hardware shadow copy provider.") : Amended ToSubclass, Read]
boolean HardwareAssisted;
[DisplayName("Differential") : Amended,
Description("The Differential property indicates whether the shadow copy was created by a differential shadow copy provider. The provider can be implemented in hardware or software.") : Amended ToSubclass, Read]
boolean Differential;
[DisplayName("Plex") : Amended,
Description("The Plex property indicates whether the shadow copy was created by a split mirror shadow copy provider. The provider can be implemented in hardware or software.") : Amended ToSubclass, Read]
boolean Plex;
[DisplayName("Imported") : Amended,
Description("The Imported property indicates whether the shadow copy was imported onto this machine using the Import method rather than created using the ShadowCopy create method.") : Amended ToSubclass, Read]
boolean Imported;
[DisplayName("Exposed Remotely") : Amended,
Description("The ExposedRemotely property indicates whether the shadow copy is exposed on a remote machine with a network share. If this flag and the ExposedLocally flag is not set, the shadow copy is hidden.") : Amended ToSubclass, Read]
boolean ExposedRemotely;
[DisplayName("Exposed Locally") : Amended,
Description("The ExposedLocally property indicates whether the shadow copy is exposed on the local machine with a drive letter or mount point. If this flag and the ExposedRemotely flag is not set, the shadow copy is hidden.") : Amended ToSubclass, Read]
boolean ExposedLocally;
[static, implemented, constructor,
Description("Creates a shadow copy using the specified context.") : Amended ToSubclass,
Values {"Success",
"Access denied",
"Invalid argument",
"Specified volume not found",
"Specified volume not supported",
"Unsupported shadow copy context",
"Insufficient storage",
"Volume is in use",
"Maximum number of shadow copies reached",
"Another shadow copy operation is already in progress",
"Shadow copy provider vetoed the operation",
"Shadow copy provider not registered",
"Shadow copy provider failure",
"Unknown error"} : Amended ToSubclass
]
uint32 Create(
[in, Description("This parameter is the volume that is used for the shadow copy. This volume is sometimes referred to as the 'original' volume. This parameter can be specified as a volume drive letter, mount point or volume GUID name.") : Amended ToSubclass]
string Volume,
[in, Description("This parameter is the context that the provider will use when creating the shadow.") : Amended ToSubclass]
string Context = "ClientAccessible",
[out] string ShadowID);
};
[
Association,
Description("The association between the volume for which a shadow copy is made "
"and the volume to which the differential data is written."),
dynamic : ToInstance,
provider("MSVSS__PROVIDER"),
Locale(1033)
]
class Win32_ShadowStorage
{
[DisplayName("Volume") : Amended, Key, Description("The original volume") : Amended ToSubclass, min(1), max(1), read]
Win32_Volume REF Volume;
[DisplayName("Differential Volume") : Amended, Key, Description("The differential volume") : Amended ToSubclass, min(1), max(1), read]
Win32_Volume REF DiffVolume;
[DisplayName("Maximum Space") : Amended, Description("Maximum space on differential area volume") : Amended ToSubclass, read, write]
uint64 MaxSpace;
[DisplayName("Allocated Space") : Amended, Description("Allocated space on differential area volume") : Amended ToSubclass, Read]
uint64 AllocatedSpace;
[DisplayName("Used Space") : Amended, Description("Used space on differential area volume") : Amended ToSubclass, Read]
uint64 UsedSpace;
[static, implemented, constructor, Description("Creates differential area storage for the specified Volume on the specified DiffVolume with the specified MaxSpace.") : Amended ToSubclass,
Values {"Success",
"Access denied",
"Invalid argument",
"Specified volume not found",
"Specified volume not supported",
"Shadow copy storage area already exists",
"Maximum number of shadow storage areas reached",
"Shadow copy provider vetoed the operation",
"Shadow copy provider not registered",
"Shadow copy provider failure",
"Unknown error"} : Amended ToSubclass
]
uint32 Create(
[in, Description("This parameter is the volume that is to be shadowed. This parameter can be specified as a volume drive letter, mount point or volume GUID name.") : Amended ToSubclass
]
string Volume,
[in, Description("This parameter is the volume to be used to store the shadow differential area. If this paramter is not supplied the specified Volume will be used to store the differential area. This parameter can be specified as a volume drive letter, mount point or volume GUID name.") : Amended ToSubclass]
string DiffVolume,
[in, Description("This parameter is the initial maximum size of the differential area.") : Amended ToSubclass]
UINT64 MaxSpace = NULL);
};
[
Description("The association between a shadow copy and the provider that created the shadow copy") : Amended ToSubclass,
dynamic : ToInstance,
provider("MSVSS__PROVIDER"),
Locale(1033)
]
class Win32_ShadowBy : CIM_Dependency
{
[DisplayName("Provider") : Amended, Key, Description("The shadow copy provider") : Amended ToSubclass, min(1), max(1), read, override("Antecedent") : ToSubclass]
Win32_ShadowProvider REF Antecedent;
[DisplayName("Shadow Copy") : Amended, Key, Description("The shadow copy") : Amended ToSubclass, min(1), max(1), Read, override("Dependent") : ToSubclass]
Win32_ShadowCopy REF Dependent;
};
[
Description("The association between a shadow copy and the volume for which the shadow copy was created.") : Amended ToSubclass,
dynamic : ToInstance,
provider("MSVSS__PROVIDER"),
Locale(1033)
]
class Win32_ShadowFor : CIM_Dependency
{
[DisplayName("Volume") : Amended, Key, Description("The original volume") : Amended ToSubclass, min(1), max(1), Read, override("Antecedent") : ToSubclass]
Win32_Volume REF Antecedent;
[DisplayName("Shadow Copy") : Amended, Key, Description("The shadow copy") : Amended ToSubclass, min(1), max(1), Read, override("Dependent") : ToSubclass]
Win32_ShadowCopy REF Dependent;
};
[
Description("The association between a shadow copy and the volume on which differential data is written.") : Amended ToSubclass,
dynamic : ToInstance,
provider("MSVSS__PROVIDER"),
Locale(1033)
]
class Win32_ShadowOn : CIM_Dependency
{
[DisplayName("Volume") : Amended, Key, Description("The original volume") : Amended ToSubclass, min(1), max(1), read, override("Antecedent") : ToSubclass]
Win32_Volume REF Antecedent;
[DisplayName("Shadow Copy") : Amended, Key, Description("The shadow copy") : Amended ToSubclass, min(1), max(1), read, override("Dependent") : ToSubclass]
Win32_ShadowCopy REF Dependent;
};
[
Description("The association between a shadow copy provider and a supported volume.") : Amended ToSubclass,
dynamic : ToInstance,
provider("MSVSS__PROVIDER"),
Locale(1033)
]
class Win32_ShadowVolumeSupport : CIM_Dependency
{
[DisplayName("Provider") : Amended, Key, Description("The shadow copy provider") : Amended ToSubclass, min(1), max(1), read, override("Antecedent") : ToSubclass]
Win32_ShadowProvider REF Antecedent;
[DisplayName("Volume") : Amended, Key, Description("Volume supported by provider") : Amended ToSubclass, min(1), max(1), read, override("Dependent") : ToSubclass]
Win32_Volume REF Dependent;
};
[
Description("The association between a shadow copy provider and a volume supported for differential storage area.") : Amended ToSubclass,
dynamic : ToInstance,
provider("MSVSS__PROVIDER"),
Locale(1033)
]
class Win32_ShadowDiffVolumeSupport : CIM_Dependency
{
[DisplayName("Provider") : Amended, Key, Description("The shadow copy provider") : Amended ToSubclass, min(1), max(1), read, override("Antecedent") : ToSubclass]
Win32_ShadowProvider REF Antecedent;
[DisplayName("Volume") : Amended, Key, Description("Volume supported by provider") : Amended ToSubclass, min(1), max(1), read, override("Dependent") : ToSubclass]
Win32_Volume REF Dependent;
};
[
Description("The Win32_ShadowContext class is used to specify how a shadow copy is to be created, queried, or deleted and the degree of writer involvment.") : Amended ToSubclass,
Locale(1033)
]
class Win32_ShadowContext : CIM_Setting
{
[DisplayName("Name") : Amended, Key, Description("The name of the context") : Amended ToSubclass, Read]
string Name;
[DisplayName("Persistent") : Amended, Description("The Persistent property indicates whether the shadow copy is persistent across reboots.") : Amended ToSubclass, Read]
boolean Persistent;
[DisplayName("Client Accessible") : Amended, Description("The ClientAccessible property is indicates whether the shadow copy was created by the Windows Previous Versions component.") : Amended ToSubclass, Read]
boolean ClientAccessible;
[DisplayName("No Auto Release") : Amended, Description("The NoAutoRelease property indicates whether the shadow copy is automatically deleted when the shadow copy requestor process ends. If this property is TRUE, the shadow copy is retained after the requestor process ends.") : Amended ToSubclass, Read]
boolean NoAutoRelease;
[DisplayName("No Writers") : Amended, Description("The NoWriters property indicates whether the shadow copy was created with the involvement of shadow copy writer components.") : Amended ToSubclass, Read]
boolean NoWriters;
[DisplayName("Transportable") : Amended, Description("The Transportable property indicates whether the shadow copy can be surfaced on another machine. If this property is FALSE and the volumes are surfaced locally, it may not be possible to surface them later on a different machine.") : Amended ToSubclass, Read]
boolean Transportable;
[DisplayName("Not Surfaced") : Amended, Description("The shadow copy is not currently in the device namespace of the local machine.") : Amended ToSubclass, Read]
boolean NotSurfaced;
[DisplayName("Hardware Assisted") : Amended, Description("The HardwareAssisted property indicates whether the shadow copy was created by a hardware shadow copy provider.") : Amended ToSubclass, Read]
boolean HardwareAssisted;
[DisplayName("Differential") : Amended, Description("The Differential property indicates whether the shadow copy was created by a differential shadow copy provider. The provider can be implemented in hardware or software.") : Amended ToSubclass, Read]
boolean Differential;
[DisplayName("Plex") : Amended, Description("The Plex property indicates whether the shadow copy was created by a split mirror shadow copy provider. The provider can be implemented in hardware or software.") : Amended ToSubclass, Read]
boolean Plex;
[DisplayName("Imported") : Amended, Description("The Imported property indicates whether the shadow copy was imported onto this machine using the Import method rather than created using the ShadowCopy create method.") : Amended ToSubclass, Read]
boolean Imported;
[DisplayName("Exposed Remotely") : Amended, Description("The ExposedRemotely property indicates whether the shadow copy is exposed on a remote machine with a network share. If this flag and the ExposedLocally flag is not set, the shadow copy is hidden.") : Amended ToSubclass, Read]
boolean ExposedRemotely;
[DisplayName("Exposed Locally") : Amended, Description("The ExposedLocally property indicates whether the shadow copy is exposed on the local machine with a drive letter or mount point. If this flag and the ExposedRemotely flag is not set, the shadow copy is hidden.") : Amended ToSubclass, Read]
boolean ExposedLocally;
};
Instance of Win32_ShadowContext
{
Name = "Backup";
Description = "The Backup Win32_ShadowContext is the standard backup context. Specifies an auto-release, non-persistent shadow copy in which writers are involved in the creation.";
Persistent = FALSE;
ClientAccessible = FALSE;
NoAutoRelease = FALSE;
NoWriters = FALSE;
Transportable = FALSE;
NotSurfaced = FALSE;
HardwareAssisted = FALSE;
Differential = FALSE;
Plex = FALSE;
Imported = FALSE;
ExposedRemotely = FALSE;
ExposedLocally = FALSE;
};
Instance of Win32_ShadowContext
{
Name = "FileShareBackup";
Description = "The FileShareBackup Win32_ShadowContext specifies a non-persistent and auto-release shadow copy created without writer involvement.";
Persistent = FALSE;
ClientAccessible = FALSE;
NoAutoRelease = FALSE;
NoWriters = TRUE;
Transportable = FALSE;
NotSurfaced = FALSE;
HardwareAssisted = FALSE;
Differential = FALSE;
Plex = FALSE;
Imported = FALSE;
ExposedRemotely = FALSE;
ExposedLocally = FALSE;
};
Instance of Win32_ShadowContext
{
Name = "NASRollback";
Description = "The NASRollback Win32_ShadowContext specifies a persistent, and non auto-release shadow copy without writer involvement.";
Persistent = TRUE;
ClientAccessible = FALSE;
NoAutoRelease = TRUE;
NoWriters = TRUE;
Transportable = FALSE;
NotSurfaced = FALSE;
HardwareAssisted = FALSE;
Differential = FALSE;
Plex = FALSE;
Imported = FALSE;
ExposedRemotely = FALSE;
ExposedLocally = FALSE;
};
Instance of Win32_ShadowContext
{
Name = "AppRollback";
Description = "The AppRollback Win32_ShadowContext specifies a persistent and non auto-release shadow copy with writer involvement.";
Persistent = TRUE;
ClientAccessible = FALSE;
NoAutoRelease = TRUE;
NoWriters = FALSE;
Transportable = FALSE;
NotSurfaced = FALSE;
HardwareAssisted = FALSE;
Differential = FALSE;
Plex = FALSE;
Imported = FALSE;
ExposedRemotely = FALSE;
ExposedLocally = FALSE;
};
Instance of Win32_ShadowContext
{
Name = "ClientAccessible";
Description = "The ClientAccessible Win32_ShadowContext specifies a read-only, client-accessible shadow copy supporting the Previous Versions Server feature. Only the system provider (the default provider available on the system) can create this type of shadow copy.";
Persistent = TRUE;
ClientAccessible = TRUE;
NoAutoRelease = TRUE;
NoWriters = TRUE;
Transportable = FALSE;
NotSurfaced = FALSE;
HardwareAssisted = FALSE;
Differential = FALSE;
Plex = FALSE;
Imported = FALSE;
ExposedRemotely = FALSE;
ExposedLocally = FALSE;
};
Instance of Win32_ShadowContext
{
Name = "All";
Description = "The All Win32_ShadowContext specifies all types of shadow copies. This context is used for shadow queries";
Persistent = TRUE;
ClientAccessible = TRUE;
NoAutoRelease = TRUE;
NoWriters = TRUE;
Transportable = TRUE;
NotSurfaced = TRUE;
HardwareAssisted = TRUE;
Differential = TRUE;
Plex = TRUE;
Imported = TRUE;
ExposedRemotely = TRUE;
ExposedLocally = TRUE;
};