crt: Add cut-down powrprof to onecore

Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Mark Harmstone 2024-01-04 23:35:29 +00:00 committed by Martin Storsjö
parent 1f9c6a3520
commit ab6a11173c
4 changed files with 146 additions and 0 deletions

View File

@ -2505,6 +2505,7 @@ endif
%/libntdll_onecore.a \
%/libole32_onecore.a \
%/liboleaut32.a \
%/libpowrprof_onecore.a \
%/libprofapi.a \
%/libpsapi.a \
%/librpcrt4.a \

View File

@ -87,6 +87,7 @@ ADDLIB libnormaliz_onecore.a
ADDLIB libntdll_onecore.a
ADDLIB libole32_onecore.a
ADDLIB liboleaut32.a
ADDLIB libpowrprof_onecore.a
ADDLIB libprofapi.a
ADDLIB libpsapi.a
ADDLIB librpcrt4.a

View File

@ -0,0 +1,72 @@
LIBRARY "POWRPROF.dll"
EXPORTS
CallNtPowerInformation
CanUserWritePwrScheme
DeletePwrScheme
DevicePowerClose
DevicePowerEnumDevices
DevicePowerOpen
DevicePowerSetDeviceState
EnumPwrSchemes
GetActivePwrScheme
GetCurrentPowerPolicies
GetPwrDiskSpindownRange
IsAdminOverrideActive
IsPwrHibernateAllowed
IsPwrShutdownAllowed
IsPwrSuspendAllowed
PowerCanRestoreIndividualDefaultPowerScheme
PowerCreatePossibleSetting
PowerCreateSetting
PowerDeleteScheme
PowerDeterminePlatformRole
PowerDuplicateScheme
PowerEnumerate
PowerImportPowerScheme
PowerIsSettingRangeDefined
PowerOpenSystemPowerKey
PowerOpenUserPowerKey
PowerReadACDefaultIndex
PowerReadACValueIndex
PowerReadDCDefaultIndex
PowerReadDCValueIndex
PowerReadDescription
PowerReadFriendlyName
PowerReadIconResourceSpecifier
PowerReadPossibleDescription
PowerReadPossibleFriendlyName
PowerReadPossibleValue
PowerReadSettingAttributes
PowerReadValueIncrement
PowerReadValueMax
PowerReadValueMin
PowerReadValueUnitsSpecifier
PowerRemovePowerSetting
PowerReplaceDefaultPowerSchemes
PowerReportThermalEvent
PowerRestoreDefaultPowerSchemes
PowerRestoreIndividualDefaultPowerScheme
PowerSettingAccessCheck
PowerSettingAccessCheckEx
PowerWriteACDefaultIndex
PowerWriteDCDefaultIndex
PowerWriteDescription
PowerWriteFriendlyName
PowerWriteIconResourceSpecifier
PowerWritePossibleDescription
PowerWritePossibleFriendlyName
PowerWritePossibleValue
PowerWriteSettingAttributes
PowerWriteValueIncrement
PowerWriteValueMax
PowerWriteValueMin
PowerWriteValueUnitsSpecifier
ReadGlobalPwrPolicy
ReadProcessorPwrScheme
ReadPwrScheme
SetActivePwrScheme
SetSuspendState
ValidatePowerPolicies
WriteGlobalPwrPolicy
WriteProcessorPwrScheme
WritePwrScheme

View File

@ -0,0 +1,72 @@
LIBRARY "POWRPROF.dll"
EXPORTS
CallNtPowerInformation@20
CanUserWritePwrScheme@0
DeletePwrScheme@4
DevicePowerClose@0
DevicePowerEnumDevices@20
DevicePowerOpen@4
DevicePowerSetDeviceState@12
EnumPwrSchemes@8
GetActivePwrScheme@4
GetCurrentPowerPolicies@8
GetPwrDiskSpindownRange@8
IsAdminOverrideActive@4
IsPwrHibernateAllowed@0
IsPwrShutdownAllowed@0
IsPwrSuspendAllowed@0
PowerCanRestoreIndividualDefaultPowerScheme@4
PowerCreatePossibleSetting@16
PowerCreateSetting@12
PowerDeleteScheme@8
PowerDeterminePlatformRole@0
PowerDuplicateScheme@12
PowerEnumerate@28
PowerImportPowerScheme@12
PowerIsSettingRangeDefined@8
PowerOpenSystemPowerKey@12
PowerOpenUserPowerKey@12
PowerReadACDefaultIndex@20
PowerReadACValueIndex@20
PowerReadDCDefaultIndex@20
PowerReadDCValueIndex@20
PowerReadDescription@24
PowerReadFriendlyName@24
PowerReadIconResourceSpecifier@24
PowerReadPossibleDescription@24
PowerReadPossibleFriendlyName@24
PowerReadPossibleValue@28
PowerReadSettingAttributes@8
PowerReadValueIncrement@16
PowerReadValueMax@16
PowerReadValueMin@16
PowerReadValueUnitsSpecifier@20
PowerRemovePowerSetting@8
PowerReplaceDefaultPowerSchemes@0
PowerReportThermalEvent@4
PowerRestoreDefaultPowerSchemes@0
PowerRestoreIndividualDefaultPowerScheme@4
PowerSettingAccessCheck@8
PowerSettingAccessCheckEx@12
PowerWriteACDefaultIndex@20
PowerWriteDCDefaultIndex@20
PowerWriteDescription@24
PowerWriteFriendlyName@24
PowerWriteIconResourceSpecifier@24
PowerWritePossibleDescription@24
PowerWritePossibleFriendlyName@24
PowerWritePossibleValue@28
PowerWriteSettingAttributes@12
PowerWriteValueIncrement@16
PowerWriteValueMax@16
PowerWriteValueMin@16
PowerWriteValueUnitsSpecifier@20
ReadGlobalPwrPolicy@4
ReadProcessorPwrScheme@8
ReadPwrScheme@8
SetActivePwrScheme@12
SetSuspendState@12
ValidatePowerPolicies@8
WriteGlobalPwrPolicy@4
WriteProcessorPwrScheme@8
WritePwrScheme@16