other-licenses/7zstub/src/Windows/Error.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/7zstub/src/Windows/Error.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +// Windows/Error.h
     1.5 +
     1.6 +#ifndef __WINDOWS_ERROR_H
     1.7 +#define __WINDOWS_ERROR_H
     1.8 +
     1.9 +#include "Common/String.h"
    1.10 +
    1.11 +namespace NWindows {
    1.12 +namespace NError {
    1.13 +
    1.14 +bool MyFormatMessage(DWORD messageID, CSysString &message);
    1.15 +inline CSysString MyFormatMessage(DWORD messageID)
    1.16 +{
    1.17 +  CSysString message;
    1.18 +  MyFormatMessage(messageID, message);
    1.19 +  return message;
    1.20 +}
    1.21 +#ifdef _UNICODE
    1.22 +inline UString MyFormatMessageW(DWORD messageID)
    1.23 +  { return MyFormatMessage(messageID); }
    1.24 +#else
    1.25 +bool MyFormatMessage(DWORD messageID, UString &message);
    1.26 +inline UString MyFormatMessageW(DWORD messageID)
    1.27 +{
    1.28 +  UString message;
    1.29 +  MyFormatMessage(messageID, message);
    1.30 +  return message;
    1.31 +}
    1.32 +#endif
    1.33 +
    1.34 +}}
    1.35 +
    1.36 +#endif

mercurial