Added GetWinVer instruction

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7309 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2021-08-29 18:39:07 +00:00
parent cdffbfe870
commit 52d6782447
14 changed files with 257 additions and 31 deletions

View file

@ -568,6 +568,18 @@ typedef struct {
#endif
#define GETOSINFO_KNOWNFOLDER 0
#define GETOSINFO_READMEMORY 1
typedef struct {
UINT32 WVBuild;
BYTE WVProd; // W9x: 0, WNT:AnyServer: & 2, WNT:DC: & 7 == 3
BYTE WVSP;
BYTE WVMin;
BYTE WVMaj;
} osinfo;
#define ABI_OSINFOOFFSET ( sizeof(exec_flags_t) )
#define ABI_OSINFOADDRESS ( 0 )
// special escape characters used in strings: (we use control codes in order to minimize conflicts with normal characters)
#define NS_LANG_CODE _T('\x01') // for a langstring
#define NS_SHELL_CODE _T('\x02') // for a shell folder path