CMyString& operator << (CMyString& str, IppiDitherType val) { str += ENUM_STRING(DitherType,val); return str; }
CMyString& operator << (CMyString& str, IppCmpOp val) { str += ENUM_STRING(CmpOp,val); return str; }
CMyString& operator << (CMyString& str, IppRoundMode val) { str += ENUM_STRING(Rnd,val); return str; }
CMyString& operator << (CMyString& str, IppHintAlgorithm val) { str += ENUM_STRING(Hint,val); return str; }
#include "pnpevent.h" #include "xguid.h" #include "xdbgflags.h" #define XDEBUG_MODULE_FLAG XDF_PNPEVENT #include "xdebug.h" #define BEGIN_ENUM_STRING(x) switch(x) { #define ENUM_STRING(x) case x: {return TEXT(#x);} #define ENUM_STRING_DEFAULT(x) default: {return TEXT(x);} #define END_ENUM_STRING() } static LPCTSTR DBT_String(WPARAM wParam) { BEGIN_ENUM_STRING(wParam) ENUM_STRING(DBT_CONFIGCHANGECANCELED) ENUM_STRING(DBT_CUSTOMEVENT) ENUM_STRING(DBT_DEVICEARRIVAL) ENUM_STRING(DBT_DEVICEQUERYREMOVE) ENUM_STRING(DBT_DEVICEQUERYREMOVEFAILED) ENUM_STRING(DBT_DEVICEREMOVECOMPLETE) ENUM_STRING(DBT_DEVICEREMOVEPENDING) ENUM_STRING(DBT_DEVICETYPESPECIFIC) ENUM_STRING(DBT_DEVNODES_CHANGED) ENUM_STRING(DBT_QUERYCHANGECONFIG) ENUM_STRING(DBT_USERDEFINED) ENUM_STRING_DEFAULT("DBT_???") END_ENUM_STRING() } static LPCTSTR PBT_String(WPARAM wParam)