Vanara.PInvoke.PowrProf 3.4.6 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET 5.0 .NET Core 3.1 .NET Standard 2.0 .NET Framework 4.5
Install-Package Vanara.PInvoke.PowrProf -Version 3.4.6
dotnet add package Vanara.PInvoke.PowrProf --version 3.4.6
<PackageReference Include="Vanara.PInvoke.PowrProf" Version="3.4.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vanara.PInvoke.PowrProf --version 3.4.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vanara.PInvoke.PowrProf, 3.4.6"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vanara.PInvoke.PowrProf as a Cake Addin
#addin nuget:?package=Vanara.PInvoke.PowrProf&version=3.4.6

// Install Vanara.PInvoke.PowrProf as a Cake Tool
#tool nuget:?package=Vanara.PInvoke.PowrProf&version=3.4.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Vanara

Vanara.PInvoke.PowrProf NuGet Package

Version Build status

PInvoke API (methods, structures and constants) imported from Windows PowrProf.dll.

What is Vanara?

Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.

Issues?

First check if it's already fixed by trying the AppVeyor build. If you're still running into problems, file an issue.

Included in Vanara.PInvoke.PowrProf

Functions Enumerations Structures
CallNtPowerInformation CanUserWritePwrScheme DeletePwrScheme DevicePowerClose DevicePowerEnumDevices DevicePowerOpen DevicePowerSetDeviceState EnumPwrSchemes GetActivePwrScheme GetCurrentPowerPolicies GetPwrCapabilities GetPwrDiskSpindownRange IsPwrHibernateAllowed IsPwrShutdownAllowed IsPwrSuspendAllowed PowerCanRestoreIndividualDefaultPowerScheme PowerCreatePossibleSetting PowerCreateSetting PowerDeleteScheme PowerDeterminePlatformRole PowerDeterminePlatformRoleEx PowerDuplicateScheme PowerEnumerate PowerGetActiveScheme PowerImportPowerScheme PowerIsSettingRangeDefined PowerReadACDefaultIndex PowerReadACValue PowerReadACValueIndex PowerReadDCDefaultIndex PowerReadDCValue PowerReadDCValueIndex PowerReadDescription PowerReadFriendlyName PowerReadIconResourceSpecifier PowerReadPossibleDescription PowerReadPossibleFriendlyName PowerReadPossibleValue PowerReadSettingAttributes PowerReadValueIncrement PowerReadValueMax PowerReadValueMin PowerReadValueUnitsSpecifier PowerRegisterForEffectivePowerModeNotifications PowerRegisterSuspendResumeNotification PowerRemovePowerSetting PowerReplaceDefaultPowerSchemes PowerReportThermalEvent PowerRestoreDefaultPowerSchemes PowerRestoreIndividualDefaultPowerScheme PowerSetActiveScheme PowerSettingAccessCheck PowerSettingAccessCheckEx PowerSettingRegisterNotification PowerSettingUnregisterNotification PowerUnregisterFromEffectivePowerModeNotifications PowerUnregisterSuspendResumeNotification PowerWriteACDefaultIndex PowerWriteACValueIndex PowerWriteDCDefaultIndex PowerWriteDCValueIndex PowerWriteDescription PowerWriteFriendlyName PowerWriteIconResourceSpecifier PowerWritePossibleDescription PowerWritePossibleFriendlyName PowerWritePossibleValue PowerWriteSettingAttributes PowerWriteValueIncrement PowerWriteValueMax PowerWriteValueMin PowerWriteValueUnitsSpecifier ReadGlobalPwrPolicy ReadProcessorPwrScheme ReadPwrScheme SetActivePwrScheme SetSuspendState WriteGlobalPwrPolicy WriteProcessorPwrScheme WritePwrScheme POWER_INFORMATION_LEVEL PowerPlatformRoleVersion RegisterSuspendResumeNotificationFlags DEVICE_NOTIFY EFFECTIVE_POWER_MODE GlobalFlags PDQUERY PDSET POWER_ATTR POWER_DATA_ACCESSOR EventCode POWER_ACTION POWER_PLATFORM_ROLE PROCESSOR_POWER_POLICY_INFO_Options SYSTEM_POWER_CONDITION PowerActionFlags DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS GLOBAL_MACHINE_POWER_POLICY GLOBAL_POWER_POLICY GLOBAL_USER_POWER_POLICY MACHINE_POWER_POLICY MACHINE_PROCESSOR_POWER_POLICY POWER_POLICY THERMAL_EVENT USER_POWER_POLICY BATTERY_REPORTING_SCALE POWER_ACTION_POLICY PROCESSOR_POWER_POLICY PROCESSOR_POWER_POLICY_INFO SYSTEM_POWER_CAPABILITIES SYSTEM_POWER_LEVEL
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Vanara.PInvoke.PowrProf:

Package Downloads
Vanara.SystemServices The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Classes for system related items derived from the Vanara PInvoke libraries. Includes extensions for Process (privileges and elavation), FileInfo (compression info), Shared Network Drives and Devices, and ServiceController (SetStartType) that pull extended information through native API calls.

Vanara.Library The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

The full set of packages associated with the Vanara PInvoke Libraries.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.4.6 19 8/7/2022
3.4.5 123 7/17/2022
3.4.4 103 7/5/2022
3.4.3 141 6/14/2022
3.4.2 481 5/13/2022
3.4.1 161 5/5/2022
3.4.0 777 3/14/2022
3.3.15 1,025 12/27/2021
3.3.14 428 10/26/2021
3.3.13 400 9/30/2021
3.3.12 572 8/30/2021
3.3.11 2,338 7/22/2021
3.3.10 465 6/4/2021
3.3.9 668 5/7/2021
3.3.8 397 4/7/2021
3.3.7 409 3/24/2021
3.3.6 351 3/19/2021
3.3.5 341 3/1/2021
3.3.4 355 2/11/2021
3.3.3 366 2/3/2021
3.3.2 393 1/21/2021
3.3.1 421 1/20/2021
3.3.0 682 11/20/2020
3.2.21 409 11/13/2020
3.2.20 3,334 11/8/2020
3.2.19 4,294 10/23/2020
3.2.18 470 10/21/2020
3.2.17 2,002 9/20/2020
3.2.16 478 9/7/2020
3.2.15 495 8/30/2020
3.2.14 450 8/20/2020
3.2.13 518 7/27/2020
3.2.12 466 7/13/2020
3.2.11 526 6/28/2020
3.2.10 530 6/14/2020
3.2.9 533 6/3/2020
3.2.7 529 5/4/2020
3.2.6 482 4/21/2020
3.2.5 509 4/15/2020
3.2.4 525 4/12/2020
3.2.3 527 4/1/2020
3.2.2 509 3/24/2020
3.2.1 499 3/17/2020
3.2.0 726 2/27/2020
3.1.9 575 1/17/2020
3.1.8 526 1/13/2020
3.1.7 542 1/6/2020
3.1.6 542 12/12/2019
3.1.5 640 11/26/2019
3.1.4 522 11/25/2019
3.1.3 792 11/8/2019
3.1.2 513 11/4/2019
3.1.1 532 10/17/2019
3.1.0 510 10/3/2019
3.0.1 628 9/20/2019
3.0.0 570 8/27/2019
2.3.11 586 6/9/2019
2.3.10 559 6/5/2019
2.3.9 563 5/26/2019
2.3.8 539 5/13/2019
2.3.7 565 4/24/2019
2.3.6 528 4/17/2019
2.3.5 540 4/10/2019
2.3.4 541 3/9/2019
2.3.3 526 3/8/2019

Currently implements:

Functions
CallNtPowerInformation CanUserWritePwrScheme DeletePwrScheme DevicePowerClose DevicePowerEnumDevices DevicePowerOpen DevicePowerSetDeviceState EnumPwrSchemes GetActivePwrScheme GetCurrentPowerPolicies GetPwrCapabilities GetPwrDiskSpindownRange IsPwrHibernateAllowed IsPwrShutdownAllowed IsPwrSuspendAllowed PowerCanRestoreIndividualDefaultPowerScheme PowerCreatePossibleSetting PowerCreateSetting PowerDeleteScheme PowerDeterminePlatformRole PowerDeterminePlatformRoleEx PowerDuplicateScheme PowerEnumerate PowerGetActiveScheme PowerImportPowerScheme PowerIsSettingRangeDefined PowerReadACDefaultIndex PowerReadACValue PowerReadACValueIndex PowerReadDCDefaultIndex PowerReadDCValue PowerReadDCValueIndex PowerReadDescription PowerReadFriendlyName PowerReadIconResourceSpecifier PowerReadPossibleDescription PowerReadPossibleFriendlyName PowerReadPossibleValue PowerReadSettingAttributes PowerReadValueIncrement PowerReadValueMax PowerReadValueMin PowerReadValueUnitsSpecifier PowerRegisterForEffectivePowerModeNotifications PowerRegisterSuspendResumeNotification PowerRemovePowerSetting PowerReplaceDefaultPowerSchemes PowerReportThermalEvent PowerRestoreDefaultPowerSchemes PowerRestoreIndividualDefaultPowerScheme PowerSetActiveScheme PowerSettingAccessCheck PowerSettingAccessCheckEx PowerSettingRegisterNotification PowerSettingUnregisterNotification PowerUnregisterFromEffectivePowerModeNotifications PowerUnregisterSuspendResumeNotification PowerWriteACDefaultIndex PowerWriteACValueIndex PowerWriteDCDefaultIndex PowerWriteDCValueIndex PowerWriteDescription PowerWriteFriendlyName PowerWriteIconResourceSpecifier PowerWritePossibleDescription PowerWritePossibleFriendlyName PowerWritePossibleValue PowerWriteSettingAttributes PowerWriteValueIncrement PowerWriteValueMax PowerWriteValueMin PowerWriteValueUnitsSpecifier ReadGlobalPwrPolicy ReadProcessorPwrScheme ReadPwrScheme SetActivePwrScheme SetSuspendState WriteGlobalPwrPolicy WriteProcessorPwrScheme WritePwrScheme

Structures
BATTERY_REPORTING_SCALE DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS GLOBAL_MACHINE_POWER_POLICY GLOBAL_POWER_POLICY GLOBAL_USER_POWER_POLICY MACHINE_POWER_POLICY MACHINE_PROCESSOR_POWER_POLICY POWER_ACTION_POLICY POWER_POLICY PROCESSOR_POWER_POLICY PROCESSOR_POWER_POLICY_INFO SYSTEM_POWER_CAPABILITIES SYSTEM_POWER_LEVEL THERMAL_EVENT USER_POWER_POLICY