Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NT Server or NT WorkStation
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00129914
Message ID:
00129986
Views:
26
>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..
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform