This repo contains driver samples prepared for use with Microsoft Visual Studio and the Windows Driver Kit (WDK). It contains both Universal Windows Driver and desktop-only driver samples.
Microsoft Public License
6.75k
stars
4.89k
forks
source link
simbatt: Provide instructions for how to test the driver #1187
Add instructions for how to install the driver, simulate two batteries, modify battery parameters and clean up afterwards. This will make it easier to get started with the driver.
Open questions
Please let me know if the proposal doesn't adhere to the project "style" and I'll do my best to update it accordingly.
The instructions for getting the battery handle in the IOCTL_SIMBATT_SET_STATUS example are a bit vague, since I didn't want to be overly verbose. Please let me know if you either prefer to drop those instructions altogether, or make them more complete. Alternatively, maybe it could be worthwhile to introduce a command-line tool to ease testing of the IOCTL calls?
Prerequisites
The instructions assume that testsigning is already enabled with bcdedit /set testsigning on and that the driver signing certificate is trusted with certutil.exe -addstore root simbatt.cer and certutil.exe -f -addstore trustedpublisher simbatt.cer.
Add instructions for how to install the driver, simulate two batteries, modify battery parameters and clean up afterwards. This will make it easier to get started with the driver.
Open questions
battery
handle in theIOCTL_SIMBATT_SET_STATUS
example are a bit vague, since I didn't want to be overly verbose. Please let me know if you either prefer to drop those instructions altogether, or make them more complete. Alternatively, maybe it could be worthwhile to introduce a command-line tool to ease testing of the IOCTL calls?Prerequisites
The instructions assume that testsigning is already enabled with
bcdedit /set testsigning on
and that the driver signing certificate is trusted withcertutil.exe -addstore root simbatt.cer
andcertutil.exe -f -addstore trustedpublisher simbatt.cer
.