vault backup: 2024-01-25 18:45:09

This commit is contained in:
2024-01-25 18:45:09 +08:00
parent 36a09091e8
commit 38d2a47764

View File

@@ -1,8 +1,9 @@
{
"nodes":[
{"id":"a6fd325c1a234a01","x":-332,"y":-85,"width":250,"height":60,"type":"text","text":"PowerGetActiveScheme "},
{"id":"4fa5457ba811c3cc","x":-240,"y":-280,"width":354,"height":142,"type":"text","text":"PowerWriteACValuesIndex\nPowerWriteDCValuesIndex"},
{"id":"115ae73c803b7ac9","x":-348,"y":5,"width":628,"height":375,"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```"}
{"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":[]
}