From 36a09091e843b67ff388e556e9aaff3bd4625129 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Thu, 25 Jan 2024 18:37:03 +0800 Subject: [PATCH] vault backup: 2024-01-25 18:37:03 --- 00. Inbox/CPI Performance Control.canvas | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 00. Inbox/CPI Performance Control.canvas diff --git a/00. Inbox/CPI Performance Control.canvas b/00. Inbox/CPI Performance Control.canvas new file mode 100644 index 0000000..4d1777c --- /dev/null +++ b/00. Inbox/CPI Performance Control.canvas @@ -0,0 +1,8 @@ +{ + "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 \n#include \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```"} + ], + "edges":[] +} \ No newline at end of file