NetWakeSourceGetMediaChangeParameters function (netwakesource.h)
The NetWakeSourceGetMediaChangeParameters function gets parameters for a media change wake source.
Syntax
void NetWakeSourceGetMediaChangeParameters(
[_In_] NETWAKESOURCE WakeSource,
[_Inout_] NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS *Parameters
);
Parameters
[_In_] WakeSource
A NETWAKESOURCE object that represents this media change wake source.
[_Inout_] Parameters
A pointer to a driver-allocated and initialized NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS structure that receives the media change parameters.
Return value
None
Remarks
Call NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS_INIT to initialize the NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS structure before calling this function.
The client driver must only call NetWakeSourceGetMediaChangeParameters during a power transition, typically from its EVT_WDF_DEVICE_ARM_WAKE_FROM_SX, EVT_WDF_DEVICE_ARM_WAKE_FROM_S0, or EVT_NET_DEVICE_PREVIEW_WAKE_SOURCE callback function. Otherwise, the call results in a system bugcheck.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 2004 |
Target Platform | Universal |
Header | netwakesource.h (include netadaptercx.h) |
Library | netadaptercxstub.lib |
IRQL | PASSIVE_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for