WM_QUERYENDSESSION

How can I force a running application to reply the windows message
wm_queryendsession <> 0 ?