From a29dab2ee8e422d8000d1d40c6dbb2cc3b1e9fb6 Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Sat, 24 Oct 1998 09:19:10 +0000 Subject: [PATCH] Added VERSION_IsOsUnicode(). --- include/winversion.h | 1 + misc/version.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/include/winversion.h b/include/winversion.h index df6047be1c8..9b2c6e83b80 100644 --- a/include/winversion.h +++ b/include/winversion.h @@ -12,5 +12,6 @@ typedef enum extern WINDOWS_VERSION VERSION_GetVersion(); extern char *VERSION_GetVersionName(); +extern BOOL32 VERSION_OsIsUnicode(void); #endif /* __WINE_WINVERSION_H */ diff --git a/misc/version.c b/misc/version.c index 20c6710f653..972935d1a4e 100644 --- a/misc/version.c +++ b/misc/version.c @@ -359,3 +359,21 @@ UINT32 WINAPI OaBuildVersion() return 0x0; } } +/*********************************************************************** + * VERSION_OsIsUnicode [internal] + * + * NOTES + * some functions getting sometimes LPSTR sometimes LPWSTR... + * + */ +BOOL32 VERSION_OsIsUnicode(void) +{ + switch(VERSION_GetVersion()) + { + case NT351: + case NT40: + return TRUE; + default: + return FALSE; + } +}