win32all - determine wrkstn vs. server

C

ChrisH

Does anyone know of a way to determine whether the current computer
running a python script is a workstation or server?

I've used the following code, but it only tells me the version of
Windows.

(majVer,minVer,buildNum,platID,osInfo) = win32api.GetVersionEx()

Thanks,
Chris
 
P

Peter Hansen

ChrisH said:
Does anyone know of a way to determine whether the current computer
running a python script is a workstation or server?

What does it mean to you that something is a workstation
or a server? These terms are not precise ones.

Some people run servers as workstations, and vice versa,
for example. On some versions of Windows, the primary
difference was in the number of simultaneous incoming
connections that were allowed, but only for MS network
services, not TCP/IP ones.

-Peter
 
P

Peter Maas

ChrisH said:
Does anyone know of a way to determine whether the current computer
running a python script is a workstation or server?

I've used the following code, but it only tells me the version of
Windows.

(majVer,minVer,buildNum,platID,osInfo) = win32api.GetVersionEx()

Try asking in comp.os.ms-windows.programmer.win32, because it is
not a Python but a Win32 API issue.

Mit freundlichen Gruessen,

Peter Maas
 
W

Wolfgang Strobl

ChrisH said:
Does anyone know of a way to determine whether the current computer
running a python script is a workstation or server?

Use _winreg to look into
HKLM\SYSTEM\CurrentControlSet\Control\ProductOptions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,281
Messages
2,571,403
Members
48,098
Latest member
WalkerBore

Latest Threads

Top