2016-10-12 70 views

回答

0

我自己找到了解決方案,我分享給需要的每個人!

GUID *guidScheme; 
bool bResult = false; 
byte enableFunction= 0x1; //Set 0x0 to disable 
bResult = PowerGetActiveScheme(NULL, &guidScheme); 
if (bResult != ERROR_SUCCESS){ 
    //error message 
} 

GUID guidSubVideo = { 0x7516b95f, 0xf776, 0x4464, 0x8c, 0x53, 0x06, 0x16, 0x7f, 0x40, 0xcc, 0x99 }; 
GUID guidAdaptBright = { 0xfbd9aa66, 0x9553, 0x4097, 0xba, 0x44, 0xed, 0x6e, 0x9d, 0x65, 0xea, 0xb8 }; 

bResult = PowerWriteDCValueIndex(NULL, guidScheme, &guidSubVideo, &guidAdaptBright, enableFunction); 
if (bResult != ERROR_SUCCESS){ 
    //error message 
}