Power Controller Automation DLL (Compact 7)
3/12/2014
The Windows Embedded Compact Test Kit (CTK) Automation Tool Solution requires a power controller automation DLL that can automatically reset and power-cycle a device using reset hardware. The power controller automation DLL consists of a dynamically linked library with functionality that can be used to reset a particular device. A power controller automation DLL is not reliant on any of the CATS code functionality and can be developed independently of the CATS environment.
Power Controller Automation DLL Outline
An assembly that will be used as a power controller automation DLL must have one public method defined with the name Reset
. The following example shows the method signature.
public bool Reset(string);
The string passed into the method can hold the path of a configuration file. This configuration file can contain the parameters for the power reset device that is required inside the Reset function. If the reset operation performed by your code is successful, the method returns true. Otherwise, the method returns false.
To create a power controller automation DLL by using Visual Studio
Start Visual Studio.
Select File, click New, and then click Project.
In the New Project window, select Other Languages, and then select Visual C# from the left pane of the window.
In Visual Studio installed templates, select Class library.
Give your project a name and save location, and then click OK.
Implement the public method with the logic for resetting your device.
Select Build, click Build Solution (F7), and then save your power controller automation DLL.