Windows SDK 8.0中的PowerRegisterSuspendResumeNotification定义与MSDN文档不匹配 [英] PowerRegisterSuspendResumeNotification definition in Windows SDK 8.0 does not match MSDN documentation
问题描述
PowerRegisterSuspendResumeNotification API记录在
这里,格式如下:
The PowerRegisterSuspendResumeNotification API is documented here with following form:
DWORD PowerRegisterSuspendResumeNotification(
_In_ DWORD Flags,
_In_ PDEVICE_NOTIFY_SUBSCRIBE_PARAMETERS Recipient,
_Out_ PHPOWERNOTIFY RegistrationHandle
);
但是在Windows SDK 8.0中,它在powerbase.h中定义为以下形式:
But in Windows SDK 8.0, it is defined in powerbase.h with following form:
PowerRegisterSuspendResumeNotification(
_In_ DWORD Flags,
_In_ HANDLE Recipient,
_Out_ PHPOWERNOTIFY RegistrationHandle
);
第2参数不匹配。那么,哪一个是正确的?
The 2nd parameter does not match. So, which one is correct?
Sam
推荐答案
您是否解决了此问题?我认为正确的是
did you get this issue resolved? I think correct one is
DWORD WINAPI PowerRegisterSuspendResumeNotification(
_In_ DWORD Flags,
_In_ HANDLE收件人,
_Out_ PHPOWERNOTIFY RegistrationHandle
);
DWORD WINAPI PowerRegisterSuspendResumeNotification(
_In_ DWORD Flags,
_In_ HANDLE Recipient,
_Out_ PHPOWERNOTIFY RegistrationHandle
);
这篇关于Windows SDK 8.0中的PowerRegisterSuspendResumeNotification定义与MSDN文档不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!