NOTE: In the following sample, "WinNT" relates to Windows NT 4.0, Windows 2000 and Windows XP; "Win98" relates to Windows 98, Windows 98 Second Edition and Windows Me; And "Win95" relates to Windows 95.
To copy WinDriver's kernel file:
number nvResult, nMajor, nMinor;
STRING svResult;
BOOL bWinNT;
BOOL bWin98;
BOOL bWin95;
bWinNT = FALSE;
bWin98 = FALSE;
bWin95 = FALSE;
GetSystemInfo(OS, nvResult, svResult);
if (nvResult = IS_WINDOWSNT) then
bWinNT = TRUE;
else
if (nvResult = IS_WINDOWS95) then
GetSystemInfo(OSMAJOR, nMajor, svResult);
GetSystemInfo(OSMINOR, nMinor, svResult);
if (((nMajor > 4) || ((nMajor = 4) && (nMinor > 0)))) then
BWin98 = TRUE;
else
bWin95 = TRUE;
endif;
endif;
endif;
if ((bWinNT = TRUE) || (bWin98 = TRUE)) then
if (bWinNT = TRUE) then
TARGETDIR = WINSYSDIR^"drivers";
else
TARGETDIR = WINSYSDIR^"..\\system32\\drivers";
endif;
CompressGet(COMPRESSED_FILE, "windrvr.sys",COMP_NORMAL);
endif;
if (bWin95) then
TARGETDIR = WINSYSDIR^"vmm32";
CompressGet(COMPRESSED_FILE, "windrvr.vxd",COMP_NORMAL);
endif;
To load WinDriver's kernel and add it to the Registry:
wdreg_gui.exe and wdreg.exe are found in the WinDriver\util
directory. |

