summaryrefslogtreecommitdiff
path: root/simbatt/func
AgeCommit message (Collapse)Author
2025-10-09Merge pull request #1063 from forderud/simbatt-relative-rmtristanb-ntdev
simbatt: Clear BATTERY_CAPACITY_RELATIVE field for per-battery charge display
2025-10-09Merge pull request #1208 from forderud/MAX_SUPPORTED_SIMBATT_CHILDREN-rmtristanb-ntdev
[simbatt] Remove dead code in simbattdriverif.h
2024-08-22[simbatt] Delete redundant "batclass_prepublish.h" to simplifyFredrik Orderud
The contained BATTERY_MINIPORT_INFO_V1_1 struct and BATTERY_CLASS_MINOR_VERSION_1 define are already defined in <batclass.h>, so there shouldn't be a need for duplicating the definitions here.
2024-08-22Remove unreferenced battery bus GUID and IOCTL calls.Fredrik Orderud
2024-08-22Remove unreferenced BATTBUS_UNPLUG_HARDWARE struct.Fredrik Orderud
2024-08-22Remove unreferenced BATTBUS_PLUGIN_HARDWARE struct.Fredrik Orderud
2024-08-22Remove unreferenced BATTBUS_TYPE_SIMBATT define.Fredrik Orderud
2024-08-21simbatt: Clear BATTERY_CAPACITY_RELATIVE fieldFredrik Orderud
Clear BATTERY_INFORMATION::BATTERY_CAPACITY_RELATIVE field to enable per-battery charge display in Windows Settings.
2024-08-21[simbatt] Remove unused MAX_SUPPORTED_SIMBATT_CHILDREN defineFredrik Orderud
This define isn't used anywhere in the driver. Therefore proposing to remove it to clean up.
2024-07-01Standarize INF files enconding to UTF-16 (LE with BOM); renormalize filesAdonais Romero Gonzalez
2024-06-28RI develop to main (#1189)JakobL-MSFT
* Memory leakage in message "sizeof(SCANNER_MESSAGE) * threadCount * requestCount" bytes long memory is allocated but only "sizeof(SCANNER_MESSAGE) * threadCount" bytes long of it is freed. * Handles malloc function fail case * Refactors comment line * Solves the miscalculation of the message index * simbatt: Fix broken registry read-back The GetSimBattStateFromRegistry function is currently using default settings if GetSimBattStateFromRegistry succeeds, whereas settings from registry are only applied if GetSimBattStateFromRegistry fails. This does not make sense to me. Therefore proposing to remove the `!` negation from `if (!NT_SUCCESS(Status)) {` on the line after `Status = GetSimBattStateFromRegistry(Device, RegState);` so that default settings are loaded when registry read-back fails. * Issue of freeing memory without waiting completion of threads accessing it is fixed * Fixes information leakage warning Fixes the issue of possible information leakage from uninitialized padding bytes * Avoids possible multiplication overflow warning * Avoids possible multiplication overflow warning * CI Pipelines build with WDK Nuget Packages (#1179) Integrate nuget into the workflow pipelines * FI from main to develop (#1188) Fix text and minor issues in Winget configuration files Co-authored-by: Adonais Romero Gonzalez <[email protected]> * Improve version info, vsix installation, and update building locally readme * Fix printing vsix version * Refactored vsix install and cleaned up build sampleset --------- Co-authored-by: İsa Yurdagül <[email protected]> Co-authored-by: Fredrik Orderud <[email protected]> Co-authored-by: Christian Allred <[email protected]> Co-authored-by: tristanb-ntdev <[email protected]> Co-authored-by: Matt <[email protected]> Co-authored-by: Adonais Romero Gonzalez <[email protected]>
2024-02-26Remove x86 and ARM configurations for sample projects. (#1126)Adonais Romero González
* Removed Win32 and Arm from the project configurations. * Set default platform to x64.
2024-02-19Add ARM64 as target platform on multiple samples (#1104)Adonais Romero González
* Add ARM64 as target platform on multiple samples * Remove ARM64 from WFPSampler temporarily --------- Co-authored-by: Jakob Lichtenberg (170957) <[email protected]>
2023-10-27[simbatt] Add missing PAGED_CODE() macro (#1010)mvillalpando06
2023-03-31Fix up malformed DriverVer directives (#948)Jason
Co-authored-by: Jason Knichel <[email protected]>
2023-03-24Fix driver violations for energy team owned drivers (#880)mvillalpando06
* Fix driver violations for energy team owned drivers * Address comments * remove simbatt wdf inf * Fix build failures * Fix sampleacpipep inx file * re isolate sample acpipep * add target os
2022-10-14Fix some infverif 1203 (missing section) and 1324 (no PnpLockdown=1) errors ↵Jason
(#793) * Clean up some misc infverif 1203 errors * Clean up some infverif 1324 (no PnpLockdown=1) errors
2021-03-04Change simbatt sample to sign with sha256 instead of sha1 (#585)rasunder-ms
2018-03-08Update wdf.c (#220)winbatt
No need to configure file handler.
2017-08-18Add missing simbatt.slnWei Mao
2017-08-17Point to .inx file when .inf file is not availableWei Mao
2016-08-11Updated for "Windows 10 Anniversary Update" (Version 1607)karlf
2015-07-29Samples update for public Windows 10 releaseJ M Rossy
Fix #2 Enabling WPP Recorder in Sensors Samples causes errors Fix #4 Add back fixed KMDOD sample Add new BarcodeScanner sample in pos folder Add new MagneticStripeReader sample in pos folder Add new SynpaticsTouch sample in input folder Add new Power Engine Plugin sample in pofx folder Add new DeviceMft sample in avstream folder Add new AvsCamera sample in root Add new SimBatt sample in root Add other pre-existing samples not yet released for Win10