Get the value of Application.DisplayAlerts
HRESULT OleGetWarnings( BOOL& bWarnings );
If the function is successful, the value of Application.DisplayAlerts will be placed here.
Header: xlpcom.h
CXllCom Class | CXllCom Methods | CXllCom::OleSetWarnings()