Fix IO memory access .. SB128 driver makes noises in VMWare - CMI is untested (Curren...
[AROS.git] / arch / all-mingw32 / bootstrap / support.c
blob06de6dbb5ab561f52ab1a787cc47e4f23c5f1750
1 #include <stdio.h>
2 #include <windows.h>
4 #include "support.h"
6 char *DefaultConfig = "boot\\AROSBootstrap.conf";
7 OSVERSIONINFO winver;
9 char *getosversion(const char *bsver)
11 static char SystemVersion[512];
13 winver.dwOSVersionInfoSize = sizeof(winver);
14 GetVersionEx(&winver);
15 sprintf(SystemVersion, "%s / Windows %lu.%lu build %lu %s", bsver, winver.dwMajorVersion, winver.dwMinorVersion, winver.dwBuildNumber, winver.szCSDVersion);
17 return SystemVersion;
20 char *namepart(char *name)
22 while (*name)
23 name++;
25 while((name[-1] != ':') && (name[-1] != '\\') && (name[-1] != '/'))
26 name--;
28 return name;