windows-nt/Source/XPSP1/NT/admin/wmi/wbem/winmgmt/mofcompiler/sample.mof

44 lines
656 B
Plaintext
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#pragma namespace("\\\\.\\root")
instance of __Namespace
{
Name = "MofHigh";
};
#pragma namespace("MofHigh")
class HighClass
{
[key] datetime date;
};
#pragma namespace("\\\\.\\root\\default")
class ParentClass
{
[key] char ParentProp;
object ref RefProp;
};
[ddynamic, pprovider("Hi there")] class MyClass : ParentClass
{
[read] string strProp[] = NULL;
[key] long lProp = 239;
};
[tryit(1,2,3)] instance of MyClass as $Inst1
{
strProp = {"a", "b", "xyz"};
lProp;
ParentProp = '!';
RefProp = $Inst2;
};
instance of ParentClass as $Inst2
{
ParentProp = '?';
[count("neg")] RefProp = $Inst1;
};