ghcjs-stack/special/Win32/include/errors.h
Marcin Tolysz bc87678a71 init
2016-01-30 23:49:30 +00:00

16 lines
492 B
C

#ifndef _MY_ERRORS_H
#define _MY_ERRORS_H
#include <windows.h>
/* There's two ways we can generate error messages - with different tradeoffs:
* If we do a function call, we have to use a static buffer.
* If we use a macro and ANSI C's string splicing, we have to use constant
* strings - and accept a certain amount of overhead from inserting the
* boilerplate text.
*/
/* result should be freed using LocalFree */
extern LPTSTR getErrorMessage(DWORD err);
#endif /* _MY_ERRORS_H */