*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Wed, 02 Jun 1999 10:04:39 +0200
changeset 4248 c8c021bcc347
parent 4247 42504c49fe2a
child 4249 9a42bfbb012b
*** empty log message ***
Win32OS.st
Win32OperatingSystem.st
--- a/Win32OS.st	Tue Jun 01 17:07:18 1999 +0200
+++ b/Win32OS.st	Wed Jun 02 10:04:39 1999 +0200
@@ -3708,8 +3708,8 @@
      Returns nil if no mimeType for the given suffix is known."
 
     ^ RegistryEntry 
-        stringValueFor:'Content Type'
-        atKey:('HKEY_CLASSES_ROOT\.' , aFileSuffix)
+	stringValueFor:'Content Type'
+	atKey:('HKEY_CLASSES_ROOT\.' , aFileSuffix)
 
     "
      self mimeTypeForSuffix:'au'  
@@ -4446,56 +4446,56 @@
 getDomainName
     "return the domain this host is in.
      Notice:
-        not all systems support this; on some, 'unknown' is returned."
+	not all systems support this; on some, 'unknown' is returned."
 
     |name idx hostName k|
 
     DomainName notNil ifTrue:[
-        ^ DomainName
+	^ DomainName
     ].
 
     name := self getEnvironment:'DOMAIN'.
     name isNil ifTrue:[
-        name := self getEnvironment:'DOMAINNAME'.
+	name := self getEnvironment:'DOMAINNAME'.
     ].
 
     name isNil ifTrue:[
-        "/ sometimes, we can extract the domainName from the hostName ...
-        hostName := self getHostName.
-        hostName notNil ifTrue:[
-            idx := hostName indexOf:$..
-            idx ~~ 0 ifTrue:[
-                name := hostName copyFrom:idx+1.
-            ]
-        ]. 
-        name isNil ifTrue:[
-            "/ ok, search the registry ...
-
-            k := RegistryEntry key:'HKEY_LOCAL_MACHINE\System'.
-            k notNil ifTrue:[
-                k subKeysDo:[:subKey |
-                    subKey subKeysDo:[:subSubKey |
-                        |tcp params|
-
-                        (subSubKey path asLowercase endsWith:'services') ifTrue:[
-                            tcp := subSubKey subKeyNamed:'tcpip'.
-                            tcp notNil ifTrue:[
-                                params := tcp subKeyNamed:'parameters'.
-                                params notNil ifTrue:[
-                                    name := params valueNamed:'Domain'.
-                                    params close.
-                                ].
-                                tcp close.
-                            ]
-                        ]
-                    ]
-                ]
-            ].
-        ].
-        name isNil ifTrue:[
-            'Win32OperatingSystem [warning]: cannot find out domainname' errorPrintCR.
-            name := 'unknown'.
-        ]
+	"/ sometimes, we can extract the domainName from the hostName ...
+	hostName := self getHostName.
+	hostName notNil ifTrue:[
+	    idx := hostName indexOf:$..
+	    idx ~~ 0 ifTrue:[
+		name := hostName copyFrom:idx+1.
+	    ]
+	]. 
+	name isNil ifTrue:[
+	    "/ ok, search the registry ...
+
+	    k := RegistryEntry key:'HKEY_LOCAL_MACHINE\System'.
+	    k notNil ifTrue:[
+		k subKeysDo:[:subKey |
+		    subKey subKeysDo:[:subSubKey |
+			|tcp params|
+
+			(subSubKey path asLowercase endsWith:'services') ifTrue:[
+			    tcp := subSubKey subKeyNamed:'tcpip'.
+			    tcp notNil ifTrue:[
+				params := tcp subKeyNamed:'parameters'.
+				params notNil ifTrue:[
+				    name := params valueNamed:'Domain'.
+				    params close.
+				].
+				tcp close.
+			    ]
+			]
+		    ]
+		]
+	    ].
+	].
+	name isNil ifTrue:[
+	    'Win32OperatingSystem [warning]: cannot find out domainname' errorPrintCR.
+	    name := 'unknown'.
+	]
     ].
     DomainName := name.
     ^ name
@@ -6788,13 +6788,13 @@
 
 rootKeyNames
     ^ #(
-        'HKEY_CLASSES_ROOT'
-        'HKEY_CURRENT_USER' 
-        'HKEY_LOCAL_MACHINE' 
-        'HKEY_USERS' 
-        'HKEY_PERFORMANCE_DATA' 
-        'HKEY_CURRENT_CONFIG' 
-        'HKEY_DYN_DATA' 
+	'HKEY_CLASSES_ROOT'
+	'HKEY_CURRENT_USER' 
+	'HKEY_LOCAL_MACHINE' 
+	'HKEY_USERS' 
+	'HKEY_PERFORMANCE_DATA' 
+	'HKEY_CURRENT_CONFIG' 
+	'HKEY_DYN_DATA' 
       )
 !
 
@@ -6818,128 +6818,131 @@
 examples
 "
     create a key (if not already present):
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'
+									[exEnd]
 
 
     ask a keys value:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
-        Transcript showCR:(k valueNamed:'CurrentVersion').
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion'.
+	Transcript show:'Windows serial NR:'; showCR:(k valueNamed:'ProductKey').
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
+	Transcript showCR:(k valueNamed:'CurrentVersion').
+									[exEnd]
 
 
     create a sub-key (if not already present):
-                                                                        [exBegin]
-        |k subKey|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
-        subKey := k createSubKeyNamed:'RegistryDemo'
-                                                                        [exEnd]
+									[exBegin]
+	|k subKey|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
+	subKey := k createSubKeyNamed:'RegistryDemo'
+									[exEnd]
 
 
     change a keys value:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X\RegistryDemo'.
-        k valueNamed:'FooBarBaz' put:'a foo bar baz string'.
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X\RegistryDemo'.
+	k valueNamed:'FooBarBaz' put:'a foo bar baz string'.
+									[exEnd]
 
     delete a value:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X\RegistryDemo'.
-        k deleteValueNamed:'FooBarBaz'. 
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X\RegistryDemo'.
+	k deleteValueNamed:'FooBarBaz'. 
+									[exEnd]
 
     delete a key:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
-        k deleteSubKeyNamed:'RegistryDemo'. 
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
+	k deleteSubKeyNamed:'RegistryDemo'. 
+									[exEnd]
 
     enumerate keys:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'.
-        k subKeysDo:[:subKey |
-            Transcript showCR:subKey path
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'.
+	k subKeysDo:[:subKey |
+	    Transcript showCR:subKey path
+	]
+									[exEnd]
 
     enumerate all keys (recursive):
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'.
-        k allSubKeysDo:[:subKey |
-            Transcript showCR:subKey path
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'.
+	k allSubKeysDo:[:subKey |
+	    Transcript showCR:subKey path
+	]
+									[exEnd]
 
     fetch value by index:
-                                                                        [exBegin]
-        |k|
-
-        k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
-        Transcript showCR:(k valueNameAtIndex:0)
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
+	Transcript showCR:(k valueNameAtIndex:0)
+									[exEnd]
 
 
     enumerate value names:
-                                                                        [exBegin]
-        |k|
-
-        k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
-        k valueNamesDo:[:nm  |
-           Transcript showCR:nm.
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
+	k valueNamesDo:[:nm  |
+	   Transcript showCR:nm.
+	]
+									[exEnd]
 
     enumerate values:
-                                                                        [exBegin]
-        |k|
-
-        k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
-        k valueNamesAndValuesDo:[:nm :val |
-            Transcript showCR:(nm , ' -> ' , val storeString).
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
+	k valueNamesAndValuesDo:[:nm :val |
+	    Transcript showCR:(nm , ' -> ' , val storeString).
+	]
+									[exEnd]
 
     search for a value (where does NT store the domain ?):
-                                                                        [exBegin]
-        |k|
-
-        k := self key:'HKEY_LOCAL_MACHINE\System'.
-        k subKeysDo:[:subKey |
-            subKey subKeysDo:[:subSubKey |
-                |tcp params|
-
-                (subSubKey path asLowercase endsWith:'services') ifTrue:[
-                    tcp := subSubKey subKeyNamed:'tcpip'.
-                    tcp notNil ifTrue:[
-                        params := tcp subKeyNamed:'parameters'.
-                        params notNil ifTrue:[
-                            Transcript showCR:'Domain is found in ' , params path ,
-                                        ' value: ' , (params valueNamed:'Domain').
-                            params close.
-                        ].
-                        tcp close.
-                    ]
-                ]
-            ]
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := self key:'HKEY_LOCAL_MACHINE\System'.
+	k subKeysDo:[:subKey |
+	    subKey subKeysDo:[:subSubKey |
+		|tcp params|
+
+		(subSubKey path asLowercase endsWith:'services') ifTrue:[
+		    tcp := subSubKey subKeyNamed:'tcpip'.
+		    tcp notNil ifTrue:[
+			params := tcp subKeyNamed:'parameters'.
+			params notNil ifTrue:[
+			    Transcript showCR:'Domain is found in ' , params path ,
+					' value: ' , (params valueNamed:'Domain').
+			    params close.
+			].
+			tcp close.
+		    ]
+		]
+	    ]
+	]
+									[exEnd]
 
         
 "
@@ -7063,8 +7066,8 @@
 
     "
      self 
-        stringValueFor:'Content Type'
-        atKey:'HKEY_CLASSES_ROOT\.au'  
+	stringValueFor:'Content Type'
+	atKey:'HKEY_CLASSES_ROOT\.au'  
     "
 ! !
 
@@ -7746,6 +7749,6 @@
 !Win32OperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Attic/Win32OS.st,v 1.69 1999-05-28 12:01:13 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Attic/Win32OS.st,v 1.70 1999-06-02 08:04:39 cg Exp $'
 ! !
 Win32OperatingSystem initialize!
--- a/Win32OperatingSystem.st	Tue Jun 01 17:07:18 1999 +0200
+++ b/Win32OperatingSystem.st	Wed Jun 02 10:04:39 1999 +0200
@@ -3708,8 +3708,8 @@
      Returns nil if no mimeType for the given suffix is known."
 
     ^ RegistryEntry 
-        stringValueFor:'Content Type'
-        atKey:('HKEY_CLASSES_ROOT\.' , aFileSuffix)
+	stringValueFor:'Content Type'
+	atKey:('HKEY_CLASSES_ROOT\.' , aFileSuffix)
 
     "
      self mimeTypeForSuffix:'au'  
@@ -4446,56 +4446,56 @@
 getDomainName
     "return the domain this host is in.
      Notice:
-        not all systems support this; on some, 'unknown' is returned."
+	not all systems support this; on some, 'unknown' is returned."
 
     |name idx hostName k|
 
     DomainName notNil ifTrue:[
-        ^ DomainName
+	^ DomainName
     ].
 
     name := self getEnvironment:'DOMAIN'.
     name isNil ifTrue:[
-        name := self getEnvironment:'DOMAINNAME'.
+	name := self getEnvironment:'DOMAINNAME'.
     ].
 
     name isNil ifTrue:[
-        "/ sometimes, we can extract the domainName from the hostName ...
-        hostName := self getHostName.
-        hostName notNil ifTrue:[
-            idx := hostName indexOf:$..
-            idx ~~ 0 ifTrue:[
-                name := hostName copyFrom:idx+1.
-            ]
-        ]. 
-        name isNil ifTrue:[
-            "/ ok, search the registry ...
-
-            k := RegistryEntry key:'HKEY_LOCAL_MACHINE\System'.
-            k notNil ifTrue:[
-                k subKeysDo:[:subKey |
-                    subKey subKeysDo:[:subSubKey |
-                        |tcp params|
-
-                        (subSubKey path asLowercase endsWith:'services') ifTrue:[
-                            tcp := subSubKey subKeyNamed:'tcpip'.
-                            tcp notNil ifTrue:[
-                                params := tcp subKeyNamed:'parameters'.
-                                params notNil ifTrue:[
-                                    name := params valueNamed:'Domain'.
-                                    params close.
-                                ].
-                                tcp close.
-                            ]
-                        ]
-                    ]
-                ]
-            ].
-        ].
-        name isNil ifTrue:[
-            'Win32OperatingSystem [warning]: cannot find out domainname' errorPrintCR.
-            name := 'unknown'.
-        ]
+	"/ sometimes, we can extract the domainName from the hostName ...
+	hostName := self getHostName.
+	hostName notNil ifTrue:[
+	    idx := hostName indexOf:$..
+	    idx ~~ 0 ifTrue:[
+		name := hostName copyFrom:idx+1.
+	    ]
+	]. 
+	name isNil ifTrue:[
+	    "/ ok, search the registry ...
+
+	    k := RegistryEntry key:'HKEY_LOCAL_MACHINE\System'.
+	    k notNil ifTrue:[
+		k subKeysDo:[:subKey |
+		    subKey subKeysDo:[:subSubKey |
+			|tcp params|
+
+			(subSubKey path asLowercase endsWith:'services') ifTrue:[
+			    tcp := subSubKey subKeyNamed:'tcpip'.
+			    tcp notNil ifTrue:[
+				params := tcp subKeyNamed:'parameters'.
+				params notNil ifTrue:[
+				    name := params valueNamed:'Domain'.
+				    params close.
+				].
+				tcp close.
+			    ]
+			]
+		    ]
+		]
+	    ].
+	].
+	name isNil ifTrue:[
+	    'Win32OperatingSystem [warning]: cannot find out domainname' errorPrintCR.
+	    name := 'unknown'.
+	]
     ].
     DomainName := name.
     ^ name
@@ -6788,13 +6788,13 @@
 
 rootKeyNames
     ^ #(
-        'HKEY_CLASSES_ROOT'
-        'HKEY_CURRENT_USER' 
-        'HKEY_LOCAL_MACHINE' 
-        'HKEY_USERS' 
-        'HKEY_PERFORMANCE_DATA' 
-        'HKEY_CURRENT_CONFIG' 
-        'HKEY_DYN_DATA' 
+	'HKEY_CLASSES_ROOT'
+	'HKEY_CURRENT_USER' 
+	'HKEY_LOCAL_MACHINE' 
+	'HKEY_USERS' 
+	'HKEY_PERFORMANCE_DATA' 
+	'HKEY_CURRENT_CONFIG' 
+	'HKEY_DYN_DATA' 
       )
 !
 
@@ -6818,128 +6818,131 @@
 examples
 "
     create a key (if not already present):
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'
+									[exEnd]
 
 
     ask a keys value:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
-        Transcript showCR:(k valueNamed:'CurrentVersion').
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion'.
+	Transcript show:'Windows serial NR:'; showCR:(k valueNamed:'ProductKey').
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
+	Transcript showCR:(k valueNamed:'CurrentVersion').
+									[exEnd]
 
 
     create a sub-key (if not already present):
-                                                                        [exBegin]
-        |k subKey|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
-        subKey := k createSubKeyNamed:'RegistryDemo'
-                                                                        [exEnd]
+									[exBegin]
+	|k subKey|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
+	subKey := k createSubKeyNamed:'RegistryDemo'
+									[exEnd]
 
 
     change a keys value:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X\RegistryDemo'.
-        k valueNamed:'FooBarBaz' put:'a foo bar baz string'.
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X\RegistryDemo'.
+	k valueNamed:'FooBarBaz' put:'a foo bar baz string'.
+									[exEnd]
 
     delete a value:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X\RegistryDemo'.
-        k deleteValueNamed:'FooBarBaz'. 
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X\RegistryDemo'.
+	k deleteValueNamed:'FooBarBaz'. 
+									[exEnd]
 
     delete a key:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
-        k deleteSubKeyNamed:'RegistryDemo'. 
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software\eXept\Smalltalk/X'.
+	k deleteSubKeyNamed:'RegistryDemo'. 
+									[exEnd]
 
     enumerate keys:
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'.
-        k subKeysDo:[:subKey |
-            Transcript showCR:subKey path
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'.
+	k subKeysDo:[:subKey |
+	    Transcript showCR:subKey path
+	]
+									[exEnd]
 
     enumerate all keys (recursive):
-                                                                        [exBegin]
-        |k|
-
-        k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'.
-        k allSubKeysDo:[:subKey |
-            Transcript showCR:subKey path
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'.
+	k allSubKeysDo:[:subKey |
+	    Transcript showCR:subKey path
+	]
+									[exEnd]
 
     fetch value by index:
-                                                                        [exBegin]
-        |k|
-
-        k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
-        Transcript showCR:(k valueNameAtIndex:0)
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
+	Transcript showCR:(k valueNameAtIndex:0)
+									[exEnd]
 
 
     enumerate value names:
-                                                                        [exBegin]
-        |k|
-
-        k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
-        k valueNamesDo:[:nm  |
-           Transcript showCR:nm.
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
+	k valueNamesDo:[:nm  |
+	   Transcript showCR:nm.
+	]
+									[exEnd]
 
     enumerate values:
-                                                                        [exBegin]
-        |k|
-
-        k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
-        k valueNamesAndValuesDo:[:nm :val |
-            Transcript showCR:(nm , ' -> ' , val storeString).
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := self key:'HKEY_LOCAL_MACHINE\SOFTWARE\eXept\Smalltalk/X'.
+	k valueNamesAndValuesDo:[:nm :val |
+	    Transcript showCR:(nm , ' -> ' , val storeString).
+	]
+									[exEnd]
 
     search for a value (where does NT store the domain ?):
-                                                                        [exBegin]
-        |k|
-
-        k := self key:'HKEY_LOCAL_MACHINE\System'.
-        k subKeysDo:[:subKey |
-            subKey subKeysDo:[:subSubKey |
-                |tcp params|
-
-                (subSubKey path asLowercase endsWith:'services') ifTrue:[
-                    tcp := subSubKey subKeyNamed:'tcpip'.
-                    tcp notNil ifTrue:[
-                        params := tcp subKeyNamed:'parameters'.
-                        params notNil ifTrue:[
-                            Transcript showCR:'Domain is found in ' , params path ,
-                                        ' value: ' , (params valueNamed:'Domain').
-                            params close.
-                        ].
-                        tcp close.
-                    ]
-                ]
-            ]
-        ]
-                                                                        [exEnd]
+									[exBegin]
+	|k|
+
+	k := self key:'HKEY_LOCAL_MACHINE\System'.
+	k subKeysDo:[:subKey |
+	    subKey subKeysDo:[:subSubKey |
+		|tcp params|
+
+		(subSubKey path asLowercase endsWith:'services') ifTrue:[
+		    tcp := subSubKey subKeyNamed:'tcpip'.
+		    tcp notNil ifTrue:[
+			params := tcp subKeyNamed:'parameters'.
+			params notNil ifTrue:[
+			    Transcript showCR:'Domain is found in ' , params path ,
+					' value: ' , (params valueNamed:'Domain').
+			    params close.
+			].
+			tcp close.
+		    ]
+		]
+	    ]
+	]
+									[exEnd]
 
         
 "
@@ -7063,8 +7066,8 @@
 
     "
      self 
-        stringValueFor:'Content Type'
-        atKey:'HKEY_CLASSES_ROOT\.au'  
+	stringValueFor:'Content Type'
+	atKey:'HKEY_CLASSES_ROOT\.au'  
     "
 ! !
 
@@ -7746,6 +7749,6 @@
 !Win32OperatingSystem class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.69 1999-05-28 12:01:13 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.70 1999-06-02 08:04:39 cg Exp $'
 ! !
 Win32OperatingSystem initialize!