summaryrefslogtreecommitdiffstats
path: root/other-licenses/7zstub/src/Windows/Error.h
blob: de6ed207931e7e832261670a9d4e659eea875bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Windows/Error.h

#ifndef __WINDOWS_ERROR_H
#define __WINDOWS_ERROR_H

#include "Common/String.h"

namespace NWindows {
namespace NError {

bool MyFormatMessage(DWORD messageID, CSysString &message);
inline CSysString MyFormatMessage(DWORD messageID)
{
  CSysString message;
  MyFormatMessage(messageID, message);
  return message;
}
#ifdef _UNICODE
inline UString MyFormatMessageW(DWORD messageID)
  { return MyFormatMessage(messageID); }
#else
bool MyFormatMessage(DWORD messageID, UString &message);
inline UString MyFormatMessageW(DWORD messageID)
{
  UString message;
  MyFormatMessage(messageID, message);
  return message;
}
#endif

}}

#endif