private void player_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e) { NativeMethods.EnableMonitorSleep(); }