From 0bba0328bc67052b2e098560c2e6f2643aa0b7e2 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 1 Sep 2016 16:08:57 +0000 Subject: [PATCH] spelling: public identifiers in src/Microsoft.PowerShell.Commands.Management --- .../commands/management/Computer.cs | 12 ++++----- .../management/GetComputerInfoCommand.cs | 6 ++--- .../commands/management/Process.cs | 26 +++++++++---------- .../commands/management/TimeZoneCommands.cs | 4 +-- .../resources/CmdletizationResources.resx | 2 +- .../resources/ComputerResources.resx | 8 +++--- .../resources/ProcessResources.resx | 6 ++--- 7 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs index 86034f62f..614f0375a 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs @@ -275,7 +275,7 @@ namespace Microsoft.PowerShell.Commands if ((_transportProtocol == TransportProtocol.DCOM) && haveWsmanAuthenticationParam) { - string errMsg = StringUtil.Format(ComputerResources.StopCommandWSManAuthProtcolConflict, ComputerResources.StopCommandParamMessage); + string errMsg = StringUtil.Format(ComputerResources.StopCommandWSManAuthProtocolConflict, ComputerResources.StopCommandParamMessage); ThrowTerminatingError( new ErrorRecord( new PSArgumentException(errMsg), @@ -286,7 +286,7 @@ namespace Microsoft.PowerShell.Commands if ((_transportProtocol == TransportProtocol.WSMan) && (haveDcomAuthenticationParam || haveDcomImpersonation)) { - string errMsg = StringUtil.Format(ComputerResources.StopCommandAuthProtcolConflict, ComputerResources.StopCommandParamMessage); + string errMsg = StringUtil.Format(ComputerResources.StopCommandAuthProtocolConflict, ComputerResources.StopCommandParamMessage); ThrowTerminatingError( new ErrorRecord( new PSArgumentException(errMsg), @@ -1481,7 +1481,7 @@ namespace Microsoft.PowerShell.Commands if (restoreStatus.Equals(0)) WriteObject(ComputerResources.RestoreFailed); else if (restoreStatus.Equals(1)) - WriteObject(ComputerResources.RestoreSuceess); + WriteObject(ComputerResources.RestoreSuccess); else if (restoreStatus.Equals(2)) WriteObject(ComputerResources.RestoreInterrupted); } @@ -1533,7 +1533,7 @@ namespace Microsoft.PowerShell.Commands { foreach (int id in sequenceList.Keys) { - string message = StringUtil.Format(ComputerResources.NoResorePoint, id); + string message = StringUtil.Format(ComputerResources.NoRestorePoint, id); ArgumentException e = new ArgumentException(message); ErrorRecord errorrecord = new ErrorRecord(e, "NoResorePoint", ErrorCategory.InvalidArgument, null); WriteError(errorrecord); @@ -3368,7 +3368,7 @@ $result if ((_transportProtocol == TransportProtocol.DCOM) && haveWsmanAuthenticationParam) { - string errMsg = StringUtil.Format(ComputerResources.StopCommandWSManAuthProtcolConflict, ComputerResources.StopCommandParamMessage); + string errMsg = StringUtil.Format(ComputerResources.StopCommandWSManAuthProtocolConflict, ComputerResources.StopCommandParamMessage); ThrowTerminatingError( new ErrorRecord( new PSArgumentException(errMsg), @@ -3379,7 +3379,7 @@ $result if ((_transportProtocol == TransportProtocol.WSMan) && (haveDcomAuthenticationParam || haveDcomImpersonation)) { - string errMsg = StringUtil.Format(ComputerResources.StopCommandAuthProtcolConflict, ComputerResources.StopCommandParamMessage); + string errMsg = StringUtil.Format(ComputerResources.StopCommandAuthProtocolConflict, ComputerResources.StopCommandParamMessage); ThrowTerminatingError( new ErrorRecord( new PSArgumentException(errMsg), diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs index 44a93eb2d..f5b2bf38e 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs @@ -820,7 +820,7 @@ namespace Microsoft.PowerShell.Commands if (otherInfo != null) { - output.CsPhyicallyInstalledMemory = otherInfo.physicallyInstalledMemory; + output.CsPhysicallyInstalledMemory = otherInfo.physicallyInstalledMemory; } } @@ -2749,7 +2749,7 @@ namespace Microsoft.PowerShell.Commands /// Size of physically installed memory, as reported by the Windows API /// function GetPhysicallyInstalledSystemMemory /// - public UInt64? CsPhyicallyInstalledMemory { get; internal set; } + public UInt64? CsPhysicallyInstalledMemory { get; internal set; } /// /// Name of a user that is logged on currently. @@ -3427,7 +3427,7 @@ namespace Microsoft.PowerShell.Commands /// /// Availability status is Not Installed /// - NotIntalled = 11, + NotInstalled = 11, /// /// Availability status is Install Error diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs index 96ce85ae0..17616d4d4 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs @@ -653,11 +653,11 @@ namespace Microsoft.PowerShell.Commands } catch (InvalidOperationException exception) { - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); } catch (ArgumentException exception) { - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); } catch (Win32Exception exception) { @@ -669,18 +669,18 @@ namespace Microsoft.PowerShell.Commands } else { - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); } } catch (Win32Exception ex) { - WriteNonTerminatingError(process, ex, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, ex, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); } } catch (Exception exception) { CommandsCommon.CheckForSevereException(this, exception); - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModuleFileVer, "CouldnotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModuleFileVer, "CouldNotEnumerateModuleFileVer", ErrorCategory.PermissionDenied); } } else if (Module.IsPresent) @@ -700,18 +700,18 @@ namespace Microsoft.PowerShell.Commands } else { - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModules, "CouldnotEnumerateModules", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModules, "CouldNotEnumerateModules", ErrorCategory.PermissionDenied); } } catch (Win32Exception ex) { - WriteNonTerminatingError(process, ex, ProcessResources.CouldnotEnumerateModules, "CouldnotEnumerateModules", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, ex, ProcessResources.CouldNotEnumerateModules, "CouldNotEnumerateModules", ErrorCategory.PermissionDenied); } } catch (Exception exception) { CommandsCommon.CheckForSevereException(this, exception); - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateModules, "CouldnotEnumerateModules", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateModules, "CouldNotEnumerateModules", ErrorCategory.PermissionDenied); } } else if (FileVersionInfo.IsPresent) @@ -723,11 +723,11 @@ namespace Microsoft.PowerShell.Commands } catch (InvalidOperationException exception) { - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied); } catch (ArgumentException exception) { - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied); } catch (Win32Exception exception) { @@ -739,18 +739,18 @@ namespace Microsoft.PowerShell.Commands } else { - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied); } } catch (Win32Exception ex) { - WriteNonTerminatingError(process, ex, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, ex, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied); } } catch (Exception exception) { CommandsCommon.CheckForSevereException(this, exception); - WriteNonTerminatingError(process, exception, ProcessResources.CouldnotEnumerateFileVer, "CouldnotEnumerateFileVer", ErrorCategory.PermissionDenied); + WriteNonTerminatingError(process, exception, ProcessResources.CouldNotEnumerateFileVer, "CouldNotEnumerateFileVer", ErrorCategory.PermissionDenied); } } else diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/TimeZoneCommands.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/TimeZoneCommands.cs index cfe9a5022..a80dc57fd 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/TimeZoneCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/TimeZoneCommands.cs @@ -722,7 +722,7 @@ namespace Microsoft.PowerShell.Commands /// PInvoke AdjustTokenPrivilege API /// /// - /// + /// /// /// /// @@ -730,7 +730,7 @@ namespace Microsoft.PowerShell.Commands /// [DllImport(AdjustTokenPrivilegesApiDllName, SetLastError = true, CharSet = CharSet.Unicode, BestFitMapping = false)] [return: MarshalAs(UnmanagedType.Bool)] - public static extern bool AdjustTokenPrivileges(IntPtr TokenHandle, bool DisableAllPrivilegs, + public static extern bool AdjustTokenPrivileges(IntPtr TokenHandle, bool DisableAllPrivileges, ref TOKEN_PRIVILEGES NewState, int BufferLength, IntPtr PreviousState, IntPtr ReturnLength); /// diff --git a/src/Microsoft.PowerShell.Commands.Management/resources/CmdletizationResources.resx b/src/Microsoft.PowerShell.Commands.Management/resources/CmdletizationResources.resx index 6094fd2c2..c3ef862cd 100644 --- a/src/Microsoft.PowerShell.Commands.Management/resources/CmdletizationResources.resx +++ b/src/Microsoft.PowerShell.Commands.Management/resources/CmdletizationResources.resx @@ -120,7 +120,7 @@ Cannot find the {0} class on the {1} CIM server. Verify the value of the ClassName xml attribute in Cmdlet Definition XML and retry. Valid class name example: ROOT\cimv2\Win32_Process. {StrContains="ClassName"} {StrContains="ROOT\cimv2\Win32_Process"} -{0} is a placeholder for a name of a (potentially misspelled) CIM class. Example: "Win32_Proccess". +{0} is a placeholder for a name of a (potentially misspelled) CIM class. Example: "Win32_Process". {1} is a placeholder for a server name. Example: "localhost". diff --git a/src/Microsoft.PowerShell.Commands.Management/resources/ComputerResources.resx b/src/Microsoft.PowerShell.Commands.Management/resources/ComputerResources.resx index 2da955848..1b8d45751 100644 --- a/src/Microsoft.PowerShell.Commands.Management/resources/ComputerResources.resx +++ b/src/Microsoft.PowerShell.Commands.Management/resources/ComputerResources.resx @@ -144,13 +144,13 @@ The last attempt to restore the computer failed. - + The computer has been restored to the specified restore point. The last attempt to restore the computer was interrupted. - + The command cannot locate the "{0}" restore point. Verify the "{0}" sequence number, and then try the command again. @@ -399,7 +399,7 @@ Parameter WsmanAuthentication cannot be specified with the DCOM protocol. Parameter WSManAuthentication is valid only when the WSMan protocol is used. - + Parameters DcomAuthentication and Impersonation cannot be specified with the WSMan protocol. {0} @@ -408,7 +408,7 @@ Parameter WsmanAuthentication cannot be specified with DcomAuthentication or Impersonation parameters. {0} - + Parameter WsmanAuthentication cannot be specified with the DCOM protocol. {0} diff --git a/src/Microsoft.PowerShell.Commands.Management/resources/ProcessResources.resx b/src/Microsoft.PowerShell.Commands.Management/resources/ProcessResources.resx index 06284436e..c130c312b 100644 --- a/src/Microsoft.PowerShell.Commands.Management/resources/ProcessResources.resx +++ b/src/Microsoft.PowerShell.Commands.Management/resources/ProcessResources.resx @@ -132,13 +132,13 @@ {0} ({1}) - + Cannot enumerate the modules of the "{0}" process. - + Cannot enumerate the file version information of the "{0}" process. - + Cannot enumerate the modules and the file version information of the "{0}" process.