xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

OS_NetVRedirOk()

Checks for the correct VREDIR.VXD file.

Syntax

OS_NetVRedirOk( [@<nErrorCode>] ) --> lIsOK

Arguments

<nErrorCode>
If passed by reference, this parameter gets assigned a numeric value indicating if a correct VREDIR.VXD file is installed.

Return

The function returns .T. (true) if the file VREDIR.VXD for Windows 9x is OK or when the operating system is not Windows 9x. Otherwise .F. (false) is returned and the VREDIR patch should be applied for reliable networking. The reference parameter can have the following values:

Error codes
ValueDescription
0Everything is OK
950Microsoft patch file is VREDRUPD.EXE
1111Microsoft patch file is VRDRUPD.EXE

Description

The function checks if the Windows version is Windows 9x and compares the time stamp and file size of VREDIR.VXD against known faulty versions.

Info

See also:Os_NetRegOk(), QueryRegistry()
Category: Network functions , xHarbour extensions
Source:rtl\winos.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe