Take a look at
http://fox.wikis.com/wc.dll?Wiki~VFPFunctionOS~VFP.
>Hi everyone,
>
>In the FFC folder on my machine is the registry.vcx. I noticed in the init() (Registry.Registry.init) that there is the call to define what your OS is. Here is the code there now:
>
>DO CASE
> CASE _DOS OR _UNIX OR _MAC
> RETURN .F.
> CASE ATC("Windows 3",OS(1)) # 0
> THIS.nCurrentOS = OS_W32S
> CASE ATC("Windows NT",OS(1)) # 0
> THIS.nCurrentOS = OS_NT
> THIS.cRegDLLFile = DLL_ADVAPI_NT
> THIS.cINIDLLFile = DLL_KERNEL_NT
> THIS.cODBCDLLFile = DLL_ODBC_NT
> OTHERWISE
> * Windows 95
> THIS.nCurrentOS = OS_WIN95
> THIS.cRegDLLFile = DLL_ADVAPI_WIN95
> THIS.cINIDLLFile = DLL_KERNEL_WIN95
> THIS.cODBCDLLFile = DLL_ODBC_WIN95
>ENDCASE
>
>
>What about W2K or WXP?
>
> WXP returns "Windows NT ...." (can I assume the CASE... "Windows NT" is valid?)
>
> W2KServer and W2K return "Windows 5.00"
> Which of those CASE statments above should I use? or is there a major revamp/update?
> Or is there a major revamp/update I should have?
>
>TIA
>
>Ric
--sb--