How can I make win8 into Connected Standby by using WDTF? RRS feed

  • Question

  • I read the discussion “how I can put windows 8 into Connected Standby mode?
    And tried the ways:

            1. referenced the WDTF.Interop.dll and WDTFSystemAction.Interop.dll  located in the WDK path: C:\Program Files (x86)\Windows Kits\8.0\Testing\Development\lib\x64\
            2. IWDTF2 imywdtf2 = new WDTF2();
                    IWDTFSystemAction2 sys2 = (IWDTFSystemAction2)imywdtf2.SystemDepot.ThisSystem.GetInterface("System");

    But then I met the exception when I creating the new IWDTF2 instance:

        Retrieving the COM class factory for component with CLSID {0D972387-817B-46E7-913F-E9993FF401EB} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    And I also ran the script:

            C:\Program Files (x86)\Windows Kits\8.0\Testing\Samples\WDTF\Tests\vbs\ConnectedStandby\ConnectedStandbyCycles_Sample.vbs

    I also get the feedback:
            Error: ActiveX component can't creat objects:'WDTF2.WDTF'
            Code: 800A01AD

    Of course I tried to register the 2 dlls:
        regsvr32 WDTF.Interop.dll
        regsvr32 WDTFSystemAction.Interop.dll

    But got the errors:
            The Module "C:\Prog......\WDTFSystemActon.Interop.dll" was loaded but the entry-point DllRegisterServer was not found. Make sure that "C:\Prog......\WDTFSystemAction.Interop.dll" is a valid DLL or OCX file and then try again.

    Can any one help me?


    Monday, December 3, 2012 8:13 AM