⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 actbroker.mof

📁 asp网上商城网站的源程序,花两月才做好,绝对原创
💻 MOF
字号:
#pragma autorecover
#pragma namespace("\\root\\cimv2")

instance of __Namespace
{
    Name = "Applications";
};

#pragma namespace("\\root\\cimv2\\applications")

instance of __Namespace
{
    Name = "MicrosoftACT";
};

#pragma namespace("\\root\\cimv2\\applications\\MicrosoftACT")

// Physical Event Consumer Provider.
//now using derived class for whistler compatability
class ACT_NONCacheable : __Win32Provider
{
//    [Description("Hosting Model, provides compatibility with Whistler. Do not override."), Override("HostingModel")] string HostingModel = "SelfHost";
    [SUBTYPE("interval"): ToInstance, Override("UnloadTimeout")] datetime UnloadTimeout="00000000000000.000000:000";
};

//instance of __Win32Provider as $P
instance of ACT_NONCacheable as $P
{
        Name = "ACTBroker";
        Clsid = "{4B75FA16-56AF-4DC4-941D-F84B279DDB15}";
};

instance of __EventConsumerProviderRegistration
{
   Provider = $P;
   ConsumerClassNames = {"ACTBroker"};
};

// Logical consumer class.
class ACTBroker : __EventConsumer
{
        [key] string Name;
};

// Logical consumer instance.
//instance of ACTBroker
//{
//        Name = "ACTBroker";
//};

// Test event
//instance of __EventFilter
//{
//    Name = "{22e96914-ed9d-4751-9106-d565778d0ab4}";
//    Query = "select * from ACT_BrokerBase";
//    QueryLanguage = "WQL";
//};

//instance of __FilterToConsumerBinding
//{
//        Consumer = "ACTBroker.Name=\"ACTBroker\"";
//        Filter = "__EventFilter.Name=\"{22e96914-ed9d-4751-9106-d565778d0ab4}\"";
//        DeliverSynchronously = FALSE;
//};

//****************************************
//ACT BROKER Methods Provider
//****************************************
//instance of __Win32Provider as $WP
instance of ACT_NONCacheable as $WP
{
  Name    = "BrokerMethodProv" ;
  ClsId   = "{446EE3A7-C0B2-4271-8A91-DE60C72A3908}" ;
};    

instance of __MethodProviderRegistration
{
    Provider = $WP;
};
 
[Dynamic, provider("BrokerMethodProv")]
class ACTBrokerMethodClass
{
  //******************************************
  //called after it is determined that the client is valid (see below)
  
  [implemented, static] 
  uint32 RegisterWithController([IN]string ControllerName, 
				[IN]uint32 ScriptID,
				[IN]string TestGuid,
				[IN]string dbName,
				[IN]string dbServerName,
				[IN]uint32 UserRangeLow, 
				[IN]uint32 UserRangeHigh, 				
				[IN]uint32 ClientID,
				[IN]uint32 TotalNumberOfClients,
                                [IN]string InvocationString,
				[out] string sOutArg);

  //called to force shutdown
  [implemented, static]
  uint32 Shutdown([IN] string Reserved);  
  
  //called to determine if the client is valid
  [implemented, static] 
  uint32 VerifyClient([OUT]string sOutArg);

  // called at various times, most likely at the end of a test to make sure that
  // a client is still operational
  [implemented, static] 
  uint32 GetCurrentStatus([IN]string TestGuid, [OUT]string sOutArg);
  				
};
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -