>Os(1) returns Windows NT xx however it does not tell if it is NT Server or NT Workstation. Our Web Server Application is allocating too much memory on NT server. I know that VFP allocates more memory on NT Server ( 3 times as much) and I also know how to apply the fix below but my understanding is that NT Workstation does not allocate too much memory so I don't want this code to run under NT Workstation
>
>
>If ATC("Windows NT",OS(1)) # 0
> Sys(3050, 1, Val(Sys(3050, 1, 0)) / 3) && Set ForeGround memory to 1/3rd the size
> Sys(3050, 2, Val(Sys(3050, 1, 0)) / 3) && Set BackGround memory to 1/3rd the size
>EndIf
>
You need to examine the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions; the Registry value ProductType will be the REG_SZ value "LanmanNT" for an NT Server box..