9 lines
1.2 KiB
Plaintext
9 lines
1.2 KiB
Plaintext
{
|
|
"nodes":[
|
|
{"id":"a6fd325c1a234a01","type":"text","text":"PowerGetActiveScheme ","x":-332,"y":-85,"width":250,"height":60},
|
|
{"id":"4fa5457ba811c3cc","type":"text","text":"PowerWriteACValuesIndex\nPowerWriteDCValuesIndex","x":-240,"y":-280,"width":354,"height":142},
|
|
{"id":"115ae73c803b7ac9","type":"text","text":"```cpp\n#include <windows.h>\n#include <powrprof.h>\n\nint main() {\n // 切換到高性能計畫\n GUID activeScheme;\n if (PowerGetActiveScheme(NULL, &activeScheme) == ERROR_SUCCESS) {\n if (PowerSetActiveScheme(NULL, &activeScheme) == ERROR_SUCCESS) {\n printf(\"Switched to high performance power plan.\\n\");\n } else {\n printf(\"Failed to switch power plan.\\n\");\n }\n } else {\n printf(\"Failed to get active power scheme.\\n\");\n }\n\n return 0;\n}\n```","x":-348,"y":5,"width":628,"height":375},
|
|
{"id":"cf4ff9956a758755","x":112,"y":-230,"width":348,"height":175,"type":"text","text":"[WriteProcessorPwrScheme 函式 (powrprof.h) - Win32 apps | Microsoft Learn](https://learn.microsoft.com/zh-tw/windows/win32/api/powrprof/nf-powrprof-writeprocessorpwrscheme?redirectedfrom=MSDN)"}
|
|
],
|
|
"edges":[]
|
|
} |