Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry class for w2k/wxp?
Message
From
19/12/2002 19:08:27
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Registry class for w2k/wxp?
Miscellaneous
Thread ID:
00734735
Message ID:
00734735
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform