Skip to content

Commit b84aef8

Browse files
authored
Remove refs to Windows 9x (dotnet#5453)
1 parent ced4c70 commit b84aef8

File tree

52 files changed

+203
-616
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+203
-616
lines changed

xml/Microsoft.VisualBasic.ApplicationServices/AssemblyInfo.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -800,10 +800,7 @@
800800
<format type="text/markdown"><![CDATA[
801801
802802
## Remarks
803-
The `My.Application.Info.WorkingSet` property has the same behavior as the <xref:System.Environment.WorkingSet%2A> property.
804-
805-
> [!NOTE]
806-
> This property always returns zero for Windows 98 and Windows Millennium Edition.
803+
The `My.Application.Info.WorkingSet` property has the same behavior as the <xref:System.Environment.WorkingSet%2A> property.
807804
808805
## Availability by Project Type
809806
@@ -815,9 +812,7 @@
815812
|Windows Forms Control Library|**Yes**|
816813
|Web Control Library|No|
817814
|Windows Service|**Yes**|
818-
|Web Site|No|
819-
820-
815+
|Web Site|No|
821816
822817
## Examples
823818
This example uses the `My.Application.Info.WorkingSet` property to display the number of bytes of physical memory mapped to the application.

xml/Microsoft.VisualBasic.ApplicationServices/User.xml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@
3535
For Windows applications, this property provides the same functionality as the <xref:System.Threading.Thread.CurrentPrincipal%2A> property. For Web applications, this property provides the same functionality as the <xref:System.Web.HttpContext.User%2A> property of the object returned by the <xref:System.Web.HttpContext.Current%2A> property.
3636
3737
> [!NOTE]
38-
> For Windows applications, only projects built on the **Windows Application** template initialize the `My.User` object by default. In all other Windows project types, you must initialize the `My.User` object by calling the <xref:Microsoft.VisualBasic.ApplicationServices.User.InitializeWithWindowsUser%2A> method explicitly or by assigning a value to <xref:System.Threading.Thread.CurrentPrincipal%2A>.
39-
40-
> [!NOTE]
41-
> The `My.User` object cannot report information about the current Windows user when run under Windows 95 and Windows 98 because those operating systems do not support the concept of a logged-on user. You must implement custom authentication to use the `My.User` object on those operating systems.
42-
43-
38+
> For Windows applications, only projects built on the **Windows Application** template initialize the `My.User` object by default. In all other Windows project types, you must initialize the `My.User` object by calling the <xref:Microsoft.VisualBasic.ApplicationServices.User.InitializeWithWindowsUser%2A> method explicitly or by assigning a value to <xref:System.Threading.Thread.CurrentPrincipal%2A>.
4439
4540
## Examples
4641
This example checks if the application is using Windows or custom authentication, and uses that information to parse the `My.User.Name` property.
@@ -514,10 +509,7 @@
514509
## Remarks
515510
You can use the `My.User` object to get information about the current user.
516511
517-
The principal that authenticates the user also controls the format of the user name. By default, an application uses Windows authentication, and the user name has the format DOMAIN\USERNAME. A custom implementation of the principal does not necessarily use the same format.
518-
519-
> [!NOTE]
520-
> The `My.User.Name` property returns an empty string when run under Windows 95 and Windows 98 because those operating systems do not recognize user names.
512+
The principal that authenticates the user also controls the format of the user name. By default, an application uses Windows authentication, and the user name has the format DOMAIN\USERNAME. A custom implementation of the principal does not necessarily use the same format.
521513
522514
> [!NOTE]
523515
> The exact behavior of the `My.User` object depends on the type of the application and on the operating system on which the application runs. For more information, see the <xref:Microsoft.VisualBasic.ApplicationServices.User> class overview.

xml/Microsoft.VisualBasic.ApplicationServices/WebUser.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@
2727
For Windows applications, this property provides the same functionality as the <xref:System.Threading.Thread.CurrentPrincipal%2A> property. For Web applications, this property provides the same functionality as the <xref:System.Web.HttpContext.User%2A> property of the object returned by the <xref:System.Web.HttpContext.Current%2A> property.
2828
2929
> [!NOTE]
30-
> For Windows applications, only projects built on the **Windows Application** template initialize the `My.User` object by default. In all other Windows project types, you must initialize the `My.User` object by calling the <xref:Microsoft.VisualBasic.ApplicationServices.User.InitializeWithWindowsUser%2A> method explicitly or by assigning a value to <xref:System.Threading.Thread.CurrentPrincipal%2A>.
31-
32-
> [!NOTE]
33-
> The `My.User` object cannot report information about the current Windows user when run under Windows 95 and Windows 98 because those operating systems do not support the concept of a logged-on user. You must implement custom authentication to use the `My.User` object on those operating systems.
34-
35-
30+
> For Windows applications, only projects built on the **Windows Application** template initialize the `My.User` object by default. In all other Windows project types, you must initialize the `My.User` object by calling the <xref:Microsoft.VisualBasic.ApplicationServices.User.InitializeWithWindowsUser%2A> method explicitly or by assigning a value to <xref:System.Threading.Thread.CurrentPrincipal%2A>.
3631
3732
## Examples
3833
This example checks if the application is using Windows or custom authentication, and uses that information to parse the `My.User.Name` property.

xml/Microsoft.VisualBasic.Devices/Ports.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,7 @@
574574
<format type="text/markdown"><![CDATA[
575575
576576
## Remarks
577-
The `My.Computer.Ports.SerialPortNames` property gets a collection of the names of the serial ports on the computer.
578-
579-
> [!NOTE]
580-
> The port names returned by `My.Computer.Ports.SerialPortNames` may be incorrect when run on Windows 98. To prevent application errors, use exception handling, such as the `Try...Catch...Finally` statement or the `Using` statement, when using the port names to open ports.
577+
The `My.Computer.Ports.SerialPortNames` property gets a collection of the names of the serial ports on the computer.
581578
582579
The following table lists an example of a task involving the `My.Computer.Ports.SerialPortNames` property.
583580

xml/Microsoft.VisualBasic.MyServices/RegistryProxy.xml

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -312,41 +312,7 @@
312312
<value>
313313
<see cref="T:Microsoft.Win32.RegistryKey" />
314314
</value>
315-
<remarks>
316-
<format type="text/markdown"><![CDATA[
317-
318-
## Remarks
319-
`HKEY_DYNDATA` is used to store dynamic registry data, such as that used by Virtual Device Drivers and is supported only on Windows 95/98 systems. On non-Windows 95/98 systems, calling any methods of the key returned by `Registry.DynData`, such as `CreateSubKey`, `DeleteSubKey`, `GetSubKeyCount`, `GetValueCount`, etc., will throw a <xref:System.IO.IOException>.
320-
321-
The <xref:System.Security.Permissions.RegistryPermission> class, which is in the <xref:System.Security.Permissions> namespace, controls access to registry variables. Registry variables should not be stored in memory locations where code without <xref:System.Security.Permissions.RegistryPermission> can access them. Similarly, when granting permissions, grant the fewest privileges necessary to get the job done.
322-
323-
Registry permission access values are defined by the <xref:System.Security.Permissions.RegistryPermissionAccess> enumeration. The following table details its members.
324-
325-
|Value|Description|
326-
|-----------|-----------------|
327-
|AllAccess|Create, read, and write access to registry variables.|
328-
|Create|Create access to registry variables.|
329-
|NoAccess|No access to registry variables.|
330-
|Read|Read access to registry variables.|
331-
|Write|Write access to registry variables.|
332-
333-
The following table lists examples of tasks involving the `My.Computer.Registry` object.
334-
335-
|To|See|
336-
|--------|---------|
337-
|Create a registry key and set its value|[How to: Create a Registry Key and Set Its Value](/dotnet/visual-basic/developing-apps/programming/computer-resources/how-to-create-a-registry-key-and-set-its-value)|
338-
|Delete a registry key|[How to: Delete a Registry Key](/dotnet/visual-basic/developing-apps/programming/computer-resources/how-to-delete-a-registry-key)|
339-
|Read a value from a registry key|[How to: Read a Value from a Registry Key](/dotnet/visual-basic/developing-apps/programming/computer-resources/how-to-read-a-value-from-a-registry-key)|
340-
341-
342-
343-
## Examples
344-
This example deletes the subkey tree `Software\MyCompany\Preferences`.
345-
346-
[!code-vb[VbVbalrMyRegistry#1](~/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyRegistry/VB/Class1.vb#1)]
347-
348-
]]></format>
349-
</remarks>
315+
<remarks>To be added.</remarks>
350316
<altmember cref="T:Microsoft.Win32.RegistryKey" />
351317
<altmember cref="F:Microsoft.Win32.Registry.DynData" />
352318
<related type="Article" href="/dotnet/visual-basic/language-reference/objects/">Objects (Visual Basic)</related>
@@ -528,9 +494,7 @@
528494
<format type="text/markdown"><![CDATA[
529495
530496
## Remarks
531-
`HKEY_PERFORMANCE_DATA` is used to access performance information for software components. Each software component creates keys for its objects and counters when it is installed and writes counter data while it is executing. This data is not stored in the registry, although the registry is used to access it. Instead, calling registry functions via `HKEY_PERFORMANCE_DATA` causes the system to collect the data from the appropriate system object managers.
532-
533-
This key does not exist on Windows 98 systems; an attempt to use it other than calling the `Name` method will throw an <xref:System.IO.IOException>.
497+
`HKEY_PERFORMANCE_DATA` is used to access performance information for software components. Each software component creates keys for its objects and counters when it is installed and writes counter data while it is executing. This data is not stored in the registry, although the registry is used to access it. Instead, calling registry functions via `HKEY_PERFORMANCE_DATA` causes the system to collect the data from the appropriate system object managers.
534498
535499
This key cannot normally be written to; attempting to create a subkey on it will throw an <xref:System.IO.IOException>.
536500

xml/Microsoft.VisualBasic/DateAndTime.xml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ Dim LastMidnight As Date = CurrDatTim.Date ' At midnight.
804804
<Parameter Name="Day" Type="System.Int32" />
805805
</Parameters>
806806
<Docs>
807-
<param name="Year">Required. Integer expression from 1 through 9999. However, values below this range are also accepted. If <paramref name="Year" /> is 0 through 99, it is interpreted as being between 1930 and 2029, as explained in the "Remarks" section below. If <paramref name="Year" /> is less than 1, it is subtracted from the current year.</param>
807+
<param name="Year">Required. Integer expression from 1 through 9999. However, values below this range are also accepted. If <paramref name="Year" /> is 0 through 99, it is interpreted as being between 1930 and 2029, as explained in the "Remarks" section. If <paramref name="Year" /> is less than 1, it is subtracted from the current year.</param>
808808
<param name="Month">Required. Integer expression from 1 through 12. However, values outside this range are also accepted. The value of <paramref name="Month" /> is offset by 1 and applied to January of the calculated year. In other words, (<paramref name="Month" /> - 1) is added to January. The year is recalculated if necessary. The following results illustrate this effect:
809809

810810
If <paramref name="Month" /> is 1, the result is January of the calculated year.
@@ -823,15 +823,13 @@ Dim LastMidnight As Date = CurrDatTim.Date ' At midnight.
823823
If <paramref name="Day" /> is -1, the result is the penultimate day of the previous month.
824824

825825
If <paramref name="Day" /> is past the end of the current month, the result is the appropriate day of the following month. For example, if <paramref name="Month" /> is 4 and <paramref name="Day" /> is 31, the result is May 1.</param>
826-
<summary>Returns a <see langword="Date" /> value representing a specified year, month, and day, with the time information set to midnight (00:00:00).</summary>
827-
<returns>A <see langword="Date" /> value representing a specified year, month, and day, with the time information set to midnight (00:00:00).</returns>
826+
<summary>Returns a <see langword="Date" /> value representing the specified year, month, and day, with the time information set to midnight (00:00:00).</summary>
827+
<returns>A value that represents the specified year, month, and day, with the time information set to midnight (00:00:00).</returns>
828828
<remarks>
829829
<format type="text/markdown"><![CDATA[
830830
831831
## Remarks
832-
Under Windows 98 or Windows 2000, two-digit years for the `Year` argument are interpreted based on user-defined computer settings. The default settings are that values from 0 through 29 are interpreted as the years 2000-2029, and values from 30 through 99 are interpreted as the years 1930-1999. For all other `Year` arguments, use a four-digit year; for example, 1924.
833-
834-
Earlier versions of Windows interpret two-digit years based on the defaults described previously. To be sure the function returns the proper value, use a four-digit `Year`.
832+
Two-digit values for the `Year` argument are interpreted based on user-defined computer settings. The default settings are that values from 0 through 29 are interpreted as the years 2000-2029, and values from 30 through 99 are interpreted as the years 1930-1999. To signify all other years, use a four-digit year, for example, 1924.
835833
836834
The following example demonstrates negative, zero, and positive argument values. Here, the `DateSerial` function returns a `Date` representing the day before the first day of March in the year 10 years before the current year; in other words, the last day of February ten years ago.
837835
@@ -847,9 +845,7 @@ Dim EndFeb As Date = DateSerial(-10, 3, 0)
847845
848846
```vb
849847
Dim NewDateTime As Date = New Date(1978, 5, 6, 8, 29, 59, 900)
850-
```
851-
852-
848+
```
853849
854850
## Examples
855851
This example uses the `DateSerial` function to return the date for the specified year, month, and day.

xml/Microsoft.Win32/Registry.xml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -288,29 +288,7 @@ The <xref:Microsoft.Win32.Registry> class also contains `static` <xref:Microsoft
288288
</ReturnValue>
289289
<Docs>
290290
<summary>Contains dynamic registry data. This field reads the Windows registry base key HKEY_DYN_DATA.</summary>
291-
<remarks>
292-
<format type="text/markdown"><![CDATA[
293-
294-
## Remarks
295-
The Windows 98/Windows Me registry supports both static data (which is stored on disk in the registry) and dynamic data (which changes frequently, such as performance statistics). This dynamic data area is the mechanism that allows Virtual Device Drivers (VxDs) to provide real-time data to Win32 applications that can run remotely as well as locally. It also allows the system monitor to provide performance statistics on remote Windows 98/Windows Me systems.
296-
297-
VxDs are not limited to performance data. They can provide any data they want to pass from Ring 0 to Ring 3 efficiently without monopolizing the CPU. The registry supports dynamic data by storing a pointer to a function that returns a value (or many values). When a Registry call queries values associated with a dynamic key, that function is called to return the desired value or values.
298-
299-
> [!NOTE]
300-
> Dynamic keys were introduced in Microsoft Windows 95 to handle dynamic Registry data. They are supported only in Windows 98/Windows Me.
301-
302-
303-
304-
## Examples
305-
The following example demonstrates how to retrieve the subkeys of this key, and prints their names to the screen. Use the <xref:Microsoft.Win32.RegistryKey.OpenSubKey%2A> method to create an instance of the particular subkey of interest. You can then use other operations in <xref:Microsoft.Win32.RegistryKey> to manipulate that key. Note that this example can return no results, since there might not be dynamic data available, or you might not be running Windows 98/ME. Using this key may cause an error on other systems.
306-
307-
[!code-cpp[Classic Registry.DynData Example#1](~/samples/snippets/cpp/VS_Snippets_CLR_Classic/classic Registry.DynData Example/CPP/source.cpp#1)]
308-
[!code-csharp[Classic Registry.DynData Example#1](~/samples/snippets/csharp/VS_Snippets_CLR_Classic/classic Registry.DynData Example/CS/source.cs#1)]
309-
[!code-vb[Classic Registry.DynData Example#1](~/samples/snippets/visualbasic/VS_Snippets_CLR_Classic/classic Registry.DynData Example/VB/source.vb#1)]
310-
311-
]]></format>
312-
</remarks>
313-
<exception cref="T:System.ObjectDisposedException">The operating system does not support dynamic data; that is, it is not Windows 98, Windows 98 Second Edition, or Windows Millennium Edition (Windows Me).</exception>
291+
<remarks>To be added.</remarks>
314292
</Docs>
315293
</Member>
316294
<Member MemberName="GetValue">
@@ -611,11 +589,6 @@ The <xref:Microsoft.Win32.Registry> class also contains `static` <xref:Microsoft
611589
612590
This overload is equivalent to calling the <xref:Microsoft.Win32.Registry.SetValue%28System.String%2CSystem.String%2CSystem.Object%2CMicrosoft.Win32.RegistryValueKind%29> method overload with <xref:Microsoft.Win32.RegistryValueKind.Unknown?displayProperty=nameWithType>.
613591
614-
> [!NOTE]
615-
> On Windows 98 and Windows Millennium Edition (Windows Me), the registry is not Unicode, and not all Unicode characters are valid for all code pages. A Unicode character that is invalid for the current code page is replaced by the best available match. No exception is thrown.
616-
617-
618-
619592
## Examples
620593
The following code example stores values of several data types in an example key, creating the key as it does so, and then retrieves and displays the values. The example demonstrates storing and retrieving the default (nameless) name/value pair, and the use of `defaultValue` when a name/value pair does not exist.
621594
@@ -708,11 +681,6 @@ The <xref:Microsoft.Win32.Registry> class also contains `static` <xref:Microsoft
708681
> [!NOTE]
709682
> If boxed values are passed for <xref:Microsoft.Win32.RegistryValueKind.DWord?displayProperty=nameWithType> or <xref:Microsoft.Win32.RegistryValueKind.QWord?displayProperty=nameWithType>, the conversion is done using the invariant culture.
710683
711-
> [!NOTE]
712-
> On Windows 98 and Windows Millennium Edition (Windows Me), the registry is not Unicode, and not all Unicode characters are valid for all code pages. A Unicode character that is invalid for the current code page is replaced by the best available match. No exception is thrown.
713-
714-
715-
716684
## Examples
717685
The following code example stores values of several data types in an example key, creating the key as it does so, and then retrieves and displays the values. The example demonstrates storing and retrieving the default (nameless) name/value pair, and the use of `defaultValue` when a name/value pair does not exist.
718686
@@ -772,9 +740,7 @@ The <xref:Microsoft.Win32.Registry> class also contains `static` <xref:Microsoft
772740
<format type="text/markdown"><![CDATA[
773741
774742
## Remarks
775-
This key contains a branch for each user of the computer. The default configuration is supplied for new users on the local computer and for the default current user if the user has not changed preferences. Because Windows 98/ME also supports Registry.Users, applications can access the user-specific information the same way they do under Windows 2000. Each user's information is stored in a separate file, which can be stored locally or on a network server. Windows 98/ME can copy this file to the user's current system so that settings can move from one computer to another with the user.
776-
777-
743+
This key contains a branch for each user of the computer. The default configuration is supplied for new users on the local computer and for the default current user if the user has not changed preferences.
778744
779745
## Examples
780746
The following example demonstrates how to retrieve the subkeys of this key, and prints their names to the screen. Use the <xref:Microsoft.Win32.RegistryKey.OpenSubKey%2A> method to create an instance of the particular subkey of interest. You can then use other operations in <xref:Microsoft.Win32.RegistryKey> to manipulate that key.

0 commit comments

Comments
 (0)