Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows registry
IN THIS TASK
SUMMARY
In this step-by-step article, you will learn how to change the default setting for the power outlet on the back of the DCT5000 set-top box (STB).
back to the top
Default Settings
On the back of the DCT5000 STB, there is an additional power supply outlet where a customer can plug in another device such as a TV. When the power outlet is set to ON, power is sent to the outlet at all times. When the power outlet is set to OFF, the power going to the outlet is dependent on the power state of the DCT5000 as follows:
- When the DCT5000 is turned on, power passes to the outlet.
- When the DCT5000 is off, no power passes to the outlet.
Previously in Microsoft TV Advanced Client, the default setting for the power outlet was OFF. However, in the latest release, the default setting is ON.
back to the top
Ways to Control the Power Outlet
You can control the power outlet by using a Microsoft C++ program, or by changing the values in the registry.
back to the top
Control the Power Outlet by Using C++
See page 32 of Broadcast_Services_Guide.doc on the Microsoft TV Advanced documentation CD-ROM for information about how to create an instance of the IBCSSetup control.
Implementation- Include Bcssetupcontrol.h in the C++ file.
- Create an instance of the IBCSSetup control that includes the following sample code:
HRESULT hr;
IBCSSetup *pSetup = NULL;
hr = CoCreateInstance(CLSID_BCSSetup_proxy, NULL,CLSCTX_INPROC_SERVER,IID_IBCSSetup,(void **)&pSetup);
- Use the following sample code to set the power outlet:
HRESULT hr;
hr = pSetup->put_ExtraSocketPower(0); // Power outlet is OFF.
OR
hr = pSetup->put_ExtraSocketPower(1); // Power outlet is ON.
pSetup->Release();
- Include the library Bcstviids.lib in the sources file when you compile the code.
back to the top
Control the Power Outlet by Changing the Registry Setting
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
The key
ExtraSocketPower appears in the registry file Tvpak_bcs.reg in the directory _WINCEROOT\Public\Tvpak_bcs\Oak\Files\ as follows:
HKEY_LOCAL_MACHINE\Software\Microsoft\CEBCS\TVControl\Defaults
"ExtraSocketPower"=dword:0
The values that are permitted for
ExtraSocketPower are
-1,
1, and
0, which give the following power outlet settings:
- -1 - the power outlet is ON when the DCT5000 STB is turned on; the power outlet is OFF when the STB is turned off.
- 0 - the power outlet is always OFF.
- 1 - the power outlet is always ON.
back to the top
REFERENCES
For more information, see the following:
Page 32 of Broadcast_Services_Guide.doc on the Microsoft TV Advanced documentation CD-ROM
Microsoft TV Advanced Help.chm (search for put_ExtraSocketPower)
back to the top