Windows SideShow is a new technology in Windows Vista that supports a secondary screen on your mobile PC. With this additional display you can view important information whether your laptop is on, off, or in sleep mode. Windows SideShow is available in Windows Vista Home Premium, Windows Vista Business, Windows Vista Enterprise, and Windows Vista Ultimate. For more detail, please refer http://www.microsoft.com/windows/products/windowsvista/features/details/sideshow.mspx
For Engineer to development a simple SideShow program:
Make sure you using Vista RTM
Download SideShow emulator: http://www.microsoft.com/downloads/details.aspx?FamilyID=bba99eb2-aa6d-4133-b433-933a2c4d41dc&displaylang=en
Install VS2005.
Install Windows Vista SDK and .NET (http://www.microsoft.com/downloads/details.aspx?FamilyId=C2B1E300-F358-4523-B479-F53D234CDCCF&displaylang=en)
Open solution: C:Program FilesMicrosoft SDKsWindowsv6.0SampleswinuisideshowHelloWorldHelloWorld.sln
Build it
Run registery “HelloWorld.reg”
Run bin file in C:Program FilesMicrosoft SDKsWindowsv6.0SampleswinuisideshowHelloWorldDebugWindowsSideShowHelloWorld.exe
Start Emulator, you should show “Hello World” here.~~~
(Diagram: 淺談CIM與WMI-名詞介紹) WMI (Windows Management Instrumentation) provide a kind of easy way to let you query data from your system (Ex: OS version, share folder name … etc). It is easy to understand, using WMI to query information is the same with query data from database. You can just using “SELECT * from Win32_Process” to find out all exist process in your computer. There are some examples which describe how to create it using C# or C++ code. Example: Creating a WMI Application(C++) WMI Sample (using C#) There are serveral extension reading.. Brightness Control in WDDM ACPI / Power Management - Architecture and Driver Support Here is sample code of C# using System.Management; //This is equivalent to "SELECT * FROM Win32_Service" SelectQuery sysSQL = new SelectQuery("Win32_bios"); > > MnagementObjectSearcher sysRet = new ManagementObjectSearcher(sysSQL); > > // Display each entry for Win32_bios foreach (ManagementObject sysInfo in sysRet.Get()) { this.textBox1.Text...
I know many people feel confuse if your COM DLL failed during registeration (using RegSvr32 to register it). I spent a little time, and find out how to debug it. It can help you to find out what is the root cause. OK! let get start.
How can we do if register COM dll failed?
>
>
Firstable, you can use “dumpbin /dependents YOURDLL.DLL” to find out if you lost some dependency DLL.
Ok! ~~ let go to debug DLL registeration.
Right click you DLL project –> Open “Properties”.
Go to “Configuration Properties” –> “Debugging” .
In “Command”, fill it “C:WINDOWSsystem32regsvr32.exe”
In “Command Arguments”, fill it “$(TargetPath)”
Just press F5 to run it.
Please note, you should setting break point as follows:
DllMain
DllRegisterServer
DllUnregisterServer (if unregister failed).
That’s it~~~