zhen-zen / YogaSMC

ACPI driver for OEM hardware.
GNU General Public License v2.0
241 stars 25 forks source link

Refactor WMI code into a separate library #182

Open hacker1024 opened 2 years ago

hacker1024 commented 2 years ago

Hi,

I'd like to develop a driver to control Dell laptop performance profiles over WMI, as this Windows tool does.

Your WMI code in looks appropriate for this purpose. Would it be possible to move it into an independent library to that other projects can use it too?

zhen-zen commented 2 years ago

Hello, As written in readme, the WMI code is based on macOS-IOElectrify from the-darkvoid. Probably that one is a good start point for your project. I only added a half baked BMF parser and some adjustments based on my need. I'm not sure how library works with IOKit, since everything is based on class derivation. Maybe you are looking for something like IOWMIFamily, which is also a reference by aforementioned project.