#Region " Copyright Notice " '********************************************************************** '* '* This source code is provided under a license agreement as '* specified in LicenseAgreement.PDF. '* '********************************************************************** #End Region Imports Microsoft.VisualBasic Imports System.Globalization Imports System.Reflection Imports System.Resources Imports System.Threading Namespace BaseClasses ''' ''' This is the BaseClasses equivelent of the ''' ''' class. ''' It is not intended to be used directly from your code. ''' ''' NotInheritable Class SR Friend Const DebugLaunchFailed As String = "DebugLaunchFailed" Friend Const DebugLaunchFailedTitle As String = "DebugLaunchFailedTitle" Friend Const DebugAssertTitle As String = "DebugAssertTitle" Friend Const DebugAssertBanner As String = "DebugAssertBanner" Friend Const DebugAssertShortMessage As String = "DebugAssertShortMessage" Friend Const DebugAssertLongMessage As String = "DebugAssertLongMessage" Friend Const ObjectDisposed As String = "ObjectDisposed" Friend Const NotSupported As String = "NotSupported" Friend Const ToStringNull As String = "ToStringNull" Friend Const EnumConverterInvalidValue As String = "EnumConverterInvalidValue" Friend Const ConvertFromException As String = "ConvertFromException" Friend Const ConvertToException As String = "ConvertToException" Friend Const ConvertInvalidPrimitive As String = "ConvertInvalidPrimitive" Friend Const ErrorMissingPropertyAccessors As String = "ErrorMissingPropertyAccessors" Friend Const ErrorInvalidPropertyType As String = "ErrorInvalidPropertyType" Friend Const ErrorMissingEventAccessors As String = "ErrorMissingEventAccessors" Friend Const ErrorInvalidEventHandler As String = "ErrorInvalidEventHandler" Friend Const ErrorInvalidEventType As String = "ErrorInvalidEventType" Friend Const InvalidMemberName As String = "InvalidMemberName" Friend Const ErrorBadExtenderType As String = "ErrorBadExtenderType" Friend Const ErrorCreateSystemEvents As String = "ErrorCreateSystemEvents" Friend Const ErrorCreateTimer As String = "ErrorCreateTimer" Friend Const ErrorKillTimer As String = "ErrorKillTimer" Friend Const ErrorSystemEventsNotSupported As String = "ErrorSystemEventsNotSupported" Friend Const ErrorGetTempPath As String = "ErrorGetTempPath" Friend Const CHECKOUTCanceled As String = "CHECKOUTCanceled" Friend Const ErrorInvalidServiceInstance As String = "ErrorInvalidServiceInstance" Friend Const ErrorServiceExists As String = "ErrorServiceExists" Friend Const ArgumentNull_Key As String = "ArgumentNull_Key" Friend Const Argument_AddingDuplicate As String = "Argument_AddingDuplicate" Friend Const ArgumentOutOfRange_NeedNonNegNum As String = "ArgumentOutOfRange_NeedNonNegNum" Friend Const InvalidOperation_EnumFailedVersion As String = "InvalidOperation_EnumFailedVersion" Friend Const InvalidOperation_EnumOpCantHappen As String = "InvalidOperation_EnumOpCantHappen" Friend Const InvalidPrimitiveType As String = "InvalidPrimitiveType" Friend Const CodeGenOutputWriter As String = "CodeGenOutputWriter" Friend Const MetaExtenderName As String = "MetaExtenderName" Friend Const InvalidEnumArgument As String = "InvalidEnumArgument" Friend Const InvalidNullArgument As String = "InvalidNullArgument" Friend Const InvalidNullEmptyArgument As String = "InvalidNullEmptyArgument" Friend Const LicExceptionTypeOnly As String = "LicExceptionTypeOnly" Friend Const LicExceptionTypeAndInstance As String = "LicExceptionTypeAndInstance" Friend Const LicMgrContextCannotBeChanged As String = "LicMgrContextCannotBeChanged" Friend Const LicMgrAlreadyLocked As String = "LicMgrAlreadyLocked" Friend Const LicMgrDifferentUser As String = "LicMgrDifferentUser" Friend Const InvalidElementType As String = "InvalidElementType" Friend Const InvalidIdentifier As String = "InvalidIdentifier" Friend Const ExecFailedToCreate As String = "ExecFailedToCreate" Friend Const ExecTimeout As String = "ExecTimeout" Friend Const ExecBadreturn As String = "ExecBadreturn" Friend Const ExecCantGetRetCode As String = "ExecCantGetRetCode" Friend Const ExecCantExec As String = "ExecCantExec" Friend Const CompilerNotFound As String = "CompilerNotFound" Friend Const DuplicateFileName As String = "DuplicateFileName" Friend Const CollectionReadOnly As String = "CollectionReadOnly" Friend Const BitVectorFull As String = "BitVectorFull" Friend Const ArrayConverterText As String = "ArrayConverterText" Friend Const CollectionConverterText As String = "CollectionConverterText" Friend Const CultureInfoConverterDefaultCultureString As String = "CultureInfoConverterDefaultCultureString" Friend Const CultureInfoConverterInvalidCulture As String = "CultureInfoConverterInvalidCulture" Friend Const InvalidPrimitive As String = "InvalidPrimitive" Friend Const TimerInvalidInterval As String = "TimerInvalidInterval" Friend Const TraceSwitchLevelTooHigh As String = "TraceSwitchLevelTooHigh" Friend Const TraceSwitchLevelTooLow As String = "TraceSwitchLevelTooLow" Friend Const TraceSwitchInvalidLevel As String = "TraceSwitchInvalidLevel" Friend Const TraceListenerIndentSize As String = "TraceListenerIndentSize" Friend Const TraceListenerFail As String = "TraceListenerFail" Friend Const DuplicateComponentName As String = "DuplicateComponentName" Friend Const NotImplemented As String = "NotImplemented" Friend Const OutOfMemory As String = "OutOfMemory" Friend Const EOF As String = "EOF" Friend Const IOError As String = "IOError" Friend Const BadChar As String = "BadChar" Friend Const toStringNone As String = "toStringNone" Friend Const toStringUnknown As String = "toStringUnknown" Friend Const InvalidEnum As String = "InvalidEnum" Friend Const IndexOutOfRange As String = "IndexOutOfRange" Friend Const ErrorPropertyAccessorException As String = "ErrorPropertyAccessorException" Friend Const InvalidOperation As String = "InvalidOperation" Friend Const EmptyStack As String = "EmptyStack" Friend Const PCCategoryName As String = "PCCategoryName" Friend Const PCCounterName As String = "PCCounterName" Friend Const PCInstanceName As String = "PCInstanceName" Friend Const PCMachineName As String = "PCMachineName" Friend Const PropertyCategoryAction As String = "PropertyCategoryAction" Friend Const PropertyCategoryAppearance As String = "PropertyCategoryAppearance" Friend Const PropertyCategoryBehavior As String = "PropertyCategoryBehavior" Friend Const PropertyCategoryData As String = "PropertyCategoryData" Friend Const PropertyCategoryDDE As String = "PropertyCategoryDDE" Friend Const PropertyCategoryDesign As String = "PropertyCategoryDesign" Friend Const PropertyCategoryDragDrop As String = "PropertyCategoryDragDrop" Friend Const PropertyCategoryFocus As String = "PropertyCategoryFocus" Friend Const PropertyCategoryFont As String = "PropertyCategoryFont" Friend Const PropertyCategoryFormat As String = "PropertyCategoryFormat" Friend Const PropertyCategoryKey As String = "PropertyCategoryKey" Friend Const PropertyCategoryList As String = "PropertyCategoryList" Friend Const PropertyCategoryLayout As String = "PropertyCategoryLayout" Friend Const PropertyCategoryDefault As String = "PropertyCategoryDefault" Friend Const PropertyCategoryMouse As String = "PropertyCategoryMouse" Friend Const PropertyCategoryPosition As String = "PropertyCategoryPosition" Friend Const PropertyCategoryText As String = "PropertyCategoryText" Friend Const PropertyCategoryScale As String = "PropertyCategoryScale" Friend Const PropertyCategoryWindowStyle As String = "PropertyCategoryWindowStyle" Friend Const PropertyCategoryConfig As String = "PropertyCategoryConfig" Friend Const OnlyAllowedOnce As String = "OnlyAllowedOnce" Friend Const BeginIndexNotNegative As String = "BeginIndexNotNegative" Friend Const LengthNotNegative As String = "LengthNotNegative" Friend Const UnimplementedState As String = "UnimplementedState" Friend Const UnexpectedOpcode As String = "UnexpectedOpcode" Friend Const NoResultOnFailed As String = "NoResultOnFailed" Friend Const UnterminatedBracket As String = "UnterminatedBracket" Friend Const TooManyParens As String = "TooManyParens" Friend Const NestedQuantify As String = "NestedQuantify" Friend Const QuantifyAfterNothing As String = "QuantifyAfterNothing" Friend Const InternalError As String = "InternalError" Friend Const IllegalRange As String = "IllegalRange" Friend Const NotEnoughParens As String = "NotEnoughParens" Friend Const BadClassInCharRange As String = "BadClassInCharRange" Friend Const ReversedCharRange As String = "ReversedCharRange" Friend Const UndefinedReference As String = "UndefinedReference" Friend Const MalformedReference As String = "MalformedReference" Friend Const UnrecognizedGrouping As String = "UnrecognizedGrouping" Friend Const UnterminatedComment As String = "UnterminatedComment" Friend Const IllegalEndEscape As String = "IllegalEndEscape" Friend Const MalformedNameRef As String = "MalformedNameRef" Friend Const UndefinedBackref As String = "UndefinedBackref" Friend Const UndefinedNameRef As String = "UndefinedNameRef" Friend Const TooFewHex As String = "TooFewHex" Friend Const MissingControl As String = "MissingControl" Friend Const UnrecognizedControl As String = "UnrecognizedControl" Friend Const UnrecognizedEscape As String = "UnrecognizedEscape" Friend Const IllegalCondition As String = "IllegalCondition" Friend Const TooManyAlternates As String = "TooManyAlternates" Friend Const MakeException As String = "MakeException" Friend Const IncompleteSlashP As String = "IncompleteSlashP" Friend Const MalformedSlashP As String = "MalformedSlashP" Friend Const InvalidGroupName As String = "InvalidGroupName" Friend Const CapnumNotZero As String = "CapnumNotZero" Friend Const AlternationCantCapture As String = "AlternationCantCapture" Friend Const AlternationCantHaveComment As String = "AlternationCantHaveComment" Friend Const UnknownProperty As String = "UnknownProperty" Friend Const ReplacementError As String = "ReplacementError" Friend Const CountTooSmall As String = "CountTooSmall" Friend Const EnumNotStarted As String = "EnumNotStarted" Friend Const net_baddate As String = "net_baddate" Friend Const net_writestarted As String = "net_writestarted" Friend Const net_clsmall As String = "net_clsmall" Friend Const net_reqsubmitted As String = "net_reqsubmitted" Friend Const net_resubmitcanceled As String = "net_resubmitcanceled" Friend Const net_redirect_perm As String = "net_redirect_perm" Friend Const net_resubmitprotofailed As String = "net_resubmitprotofailed" Friend Const net_needchunked As String = "net_needchunked" Friend Const net_nochunked As String = "net_nochunked" Friend Const net_nochunkuploadonhttp10 As String = "net_nochunkuploadonhttp10" Friend Const net_connarg As String = "net_connarg" Friend Const net_no100 As String = "net_no100" Friend Const net_fromto As String = "net_fromto" Friend Const net_rangetoosmall As String = "net_rangetoosmall" Friend Const net_entitytoobig As String = "net_entitytoobig" Friend Const net_invalidversion As String = "net_invalidversion" Friend Const net_invalidstatus As String = "net_invalidstatus" Friend Const net_toosmall As String = "net_toosmall" Friend Const net_toolong As String = "net_toolong" Friend Const net_connclosed As String = "net_connclosed" Friend Const net_headerrestrict As String = "net_headerrestrict" Friend Const net_noseek As String = "net_noseek" Friend Const net_servererror As String = "net_servererror" Friend Const net_nouploadonget As String = "net_nouploadonget" Friend Const net_invasync As String = "net_invasync" Friend Const net_repcall As String = "net_repcall" Friend Const net_wrongversion As String = "net_wrongversion" Friend Const net_badmethod As String = "net_badmethod" Friend Const net_io_notenoughbyteswritten As String = "net_io_notenoughbyteswritten" Friend Const net_requestaborted As String = "net_requestaborted" Friend Const net_mustwrite As String = "net_mustwrite" Friend Const net_tooManyRedirections As String = "net_tooManyRedirections" Friend Const net_authmodulenotregistered As String = "net_authmodulenotregistered" Friend Const net_authschemenotregistered As String = "net_authschemenotregistered" Friend Const net_proxyschemenotsupported As String = "net_proxyschemenotsupported" Friend Const net_maxsrvpoints As String = "net_maxsrvpoints" Friend Const net_unknown_prefix As String = "net_unknown_prefix" Friend Const net_notconnected As String = "net_notconnected" Friend Const net_notstream As String = "net_notstream" Friend Const net_timeout As String = "net_timeout" Friend Const net_nocontentlengthonget As String = "net_nocontentlengthonget" Friend Const net_contentlengthmissing As String = "net_contentlengthmissing" Friend Const net_nullproxynotallowed As String = "net_nullproxynotallowed" Friend Const net_nottoken As String = "net_nottoken" Friend Const net_rangetype As String = "net_rangetype" Friend Const net_need_writebuffering As String = "net_need_writebuffering" Friend Const net_securitypackagesupport As String = "net_securitypackagesupport" Friend Const net_nodefaultcreds As String = "net_nodefaultcreds" Friend Const net_stopped As String = "net_stopped" Friend Const net_udpconnected As String = "net_udpconnected" Friend Const net_readonlystream As String = "net_readonlystream" Friend Const net_writeonlystream As String = "net_writeonlystream" Friend Const net_needmorethreads As String = "net_needmorethreads" Friend Const net_MethodNotImplementedException As String = "net_MethodNotImplementedException" Friend Const net_PropertyNotImplementedException As String = "net_PropertyNotImplementedException" Friend Const net_MethodNotSupportedException As String = "net_MethodNotSupportedException" Friend Const net_PropertyNotSupportedException As String = "net_PropertyNotSupportedException" Friend Const net_ProtocolNotSupportedException As String = "net_ProtocolNotSupportedException" Friend Const net_HashAlgorithmNotSupportedException As String = "net_HashAlgorithmNotSupportedException" Friend Const net_QOPNotSupportedException As String = "net_QOPNotSupportedException" Friend Const net_SelectModeNotSupportedException As String = "net_SelectModeNotSupportedException" Friend Const net_InvalidSocketHandle As String = "net_InvalidSocketHandle" Friend Const net_InvalidAddressFamily As String = "net_InvalidAddressFamily" Friend Const net_InvalidSocketAddressSize As String = "net_InvalidSocketAddressSize" Friend Const net_sockets_blocking As String = "net_sockets_blocking" Friend Const net_sockets_useblocking As String = "net_sockets_useblocking" Friend Const net_sockets_select As String = "net_sockets_select" Friend Const net_sockets_empty_select As String = "net_sockets_empty_select" Friend Const net_sockets_mustbind As String = "net_sockets_mustbind" Friend Const net_webstatus_Success As String = "net_webstatus_Success" Friend Const net_webstatus_NameResolutionFailure As String = "net_webstatus_NameResolutionFailure" Friend Const net_webstatus_ConnectFailure As String = "net_webstatus_ConnectFailure" Friend Const net_webstatus_ReceiveFailure As String = "net_webstatus_ReceiveFailure" Friend Const net_webstatus_SendFailure As String = "net_webstatus_SendFailure" Friend Const net_webstatus_PipelineFailure As String = "net_webstatus_PipelineFailure" Friend Const net_webstatus_RequestCanceled As String = "net_webstatus_RequestCanceled" Friend Const net_webstatus_ConnectionClosed As String = "net_webstatus_ConnectionClosed" Friend Const net_webstatus_TrustFailure As String = "net_webstatus_TrustFailure" Friend Const net_webstatus_SecureChannelFailure As String = "net_webstatus_SecureChannelFailure" Friend Const net_webstatus_ServerProtocolViolation As String = "net_webstatus_ServerProtocolViolation" Friend Const net_webstatus_KeepAliveFailure As String = "net_webstatus_KeepAliveFailure" Friend Const net_webstatus_ProxyNameResolutionFailure As String = "net_webstatus_ProxyNameResolutionFailure" Friend Const net_httpstatuscode_NoContent As String = "net_httpstatuscode_NoContent" Friend Const net_httpstatuscode_NonAuthoritativeInformation As String = "net_httpstatuscode_NonAuthoritativeInformation" Friend Const net_httpstatuscode_ResetContent As String = "net_httpstatuscode_ResetContent" Friend Const net_httpstatuscode_PartialContent As String = "net_httpstatuscode_PartialContent" Friend Const net_httpstatuscode_MultipleChoices As String = "net_httpstatuscode_MultipleChoices" Friend Const net_httpstatuscode_Ambiguous As String = "net_httpstatuscode_Ambiguous" Friend Const net_httpstatuscode_MovedPermanently As String = "net_httpstatuscode_MovedPermanently" Friend Const net_httpstatuscode_Moved As String = "net_httpstatuscode_Moved" Friend Const net_httpstatuscode_Found As String = "net_httpstatuscode_Found" Friend Const net_httpstatuscode_Redirect As String = "net_httpstatuscode_Redirect" Friend Const net_httpstatuscode_SeeOther As String = "net_httpstatuscode_SeeOther" Friend Const net_httpstatuscode_RedirectMethod As String = "net_httpstatuscode_RedirectMethod" Friend Const net_httpstatuscode_NotModified As String = "net_httpstatuscode_NotModified" Friend Const net_httpstatuscode_UseProxy As String = "net_httpstatuscode_UseProxy" Friend Const net_httpstatuscode_TemporaryRedirect As String = "net_httpstatuscode_TemporaryRedirect" Friend Const net_httpstatuscode_RedirectKeepVerb As String = "net_httpstatuscode_RedirectKeepVerb" Friend Const net_httpstatuscode_BadRequest As String = "net_httpstatuscode_BadRequest" Friend Const net_httpstatuscode_Unauthorized As String = "net_httpstatuscode_Unauthorized" Friend Const net_httpstatuscode_PaymentRequired As String = "net_httpstatuscode_PaymentRequired" Friend Const net_httpstatuscode_Forbidden As String = "net_httpstatuscode_Forbidden" Friend Const net_httpstatuscode_NotFound As String = "net_httpstatuscode_NotFound" Friend Const net_httpstatuscode_MethodNotAllowed As String = "net_httpstatuscode_MethodNotAllowed" Friend Const net_httpstatuscode_NotAcceptable As String = "net_httpstatuscode_NotAcceptable" Friend Const net_httpstatuscode_ProxyAuthenticationRequired As String = "net_httpstatuscode_ProxyAuthenticationRequired" Friend Const net_httpstatuscode_RequestTimeout As String = "net_httpstatuscode_RequestTimeout" Friend Const net_httpstatuscode_Conflict As String = "net_httpstatuscode_Conflict" Friend Const net_httpstatuscode_Gone As String = "net_httpstatuscode_Gone" Friend Const net_httpstatuscode_LengthRequired As String = "net_httpstatuscode_LengthRequired" Friend Const net_httpstatuscode_InternalServerError As String = "net_httpstatuscode_InternalServerError" Friend Const net_httpstatuscode_NotImplemented As String = "net_httpstatuscode_NotImplemented" Friend Const net_httpstatuscode_BadGateway As String = "net_httpstatuscode_BadGateway" Friend Const net_httpstatuscode_ServiceUnavailable As String = "net_httpstatuscode_ServiceUnavailable" Friend Const net_httpstatuscode_GatewayTimeout As String = "net_httpstatuscode_GatewayTimeout" Friend Const net_httpstatuscode_HttpVersionNotSupported As String = "net_httpstatuscode_HttpVersionNotSupported" Friend Const net_uri_BadScheme As String = "net_uri_BadScheme" Friend Const net_uri_BadFormat As String = "net_uri_BadFormat" Friend Const net_uri_BadUserPassword As String = "net_uri_BadUserPassword" Friend Const net_uri_BadHostName As String = "net_uri_BadHostName" Friend Const net_uri_BadFileName As String = "net_uri_BadFileName" Friend Const net_uri_EmptyUri As String = "net_uri_EmptyUri" Friend Const net_uri_BadString As String = "net_uri_BadString" Friend Const net_io_writefailure As String = "net_io_writefailure" Friend Const net_io_readfailure As String = "net_io_readfailure" Friend Const net_io_transportfailure As String = "net_io_transportfailure" Friend Const net_io_internal_bind As String = "net_io_internal_bind" Friend Const net_io_invalidasyncresult As String = "net_io_invalidasyncresult" Friend Const net_io_invalidendcall As String = "net_io_invalidendcall" Friend Const net_tls_version As String = "net_tls_version" Friend Const net_perm_target As String = "net_perm_target" Friend Const net_perm_both_regex As String = "net_perm_both_regex" Friend Const net_perm_none As String = "net_perm_none" Friend Const net_perm_attrib_count As String = "net_perm_attrib_count" Friend Const net_perm_invalid_val As String = "net_perm_invalid_val" Friend Const net_perm_attrib_multi As String = "net_perm_attrib_multi" Friend Const net_perm_epname As String = "net_perm_epname" Friend Const net_perm_invalid_val_in_element As String = "net_perm_invalid_val_in_element" Friend Const dns_bad_ip_address As String = "dns_bad_ip_address" Friend Const net_webclient As String = "net_webclient" Friend Const net_webclient_ContentType As String = "net_webclient_ContentType" Friend Const net_webclient_Multipart As String = "net_webclient_Multipart" Friend Const net_container_add_cookie As String = "net_container_add_cookie" Friend Const net_cookie_invalid As String = "net_cookie_invalid" Friend Const net_cookie_size As String = "net_cookie_size" Friend Const net_cookie_parse_header As String = "net_cookie_parse_header" Friend Const net_cookie_attribute As String = "net_cookie_attribute" Friend Const net_cookie_format As String = "net_cookie_format" Friend Const net_set_token As String = "net_set_token" Friend Const net_revert_token As String = "net_revert_token" Friend Const _sep02_ As String = "_sep02_" Friend Const Config_name_value_file_section_file_invalid_root As String = "Config_name_value_file_section_file_invalid_root" Friend Const Config_system_already_set As String = "Config_system_already_set" Friend Const Config_base_required_attribute_missing As String = "Config_base_required_attribute_missing" Friend Const Config_base_required_attribute_empty As String = "Config_base_required_attribute_empty" Friend Const Config_base_unrecognized_attribute As String = "Config_base_unrecognized_attribute" Friend Const Config_base_unrecognized_element As String = "Config_base_unrecognized_element" Friend Const Config_base_elements_only As String = "Config_base_elements_only" Friend Const Config_base_no_child_nodes As String = "Config_base_no_child_nodes" Friend Const Config_file_doesnt_have_root_configuration As String = "Config_file_doesnt_have_root_configuration" Friend Const Client_config_init_error As String = "Client_config_init_error" Friend Const Client_config_too_many_configsections_elements As String = "Client_config_too_many_configsections_elements" Friend Const Exception_in_config_section_handler As String = "Exception_in_config_section_handler" Friend Const Tag_name_cannot_be_location As String = "Tag_name_cannot_be_location" Friend Const Tag_name_cannot_begin_with_config As String = "Tag_name_cannot_begin_with_config" Friend Const Tag_name_already_defined As String = "Tag_name_already_defined" Friend Const Could_not_create_type_instance As String = "Could_not_create_type_instance" Friend Const Type_doesnt_implement_IConfigSectionHandler As String = "Type_doesnt_implement_IConfigSectionHandler" Friend Const Could_not_remove_section_handler As String = "Could_not_remove_section_handler" Friend Const Error_loading_XML_file As String = "Error_loading_XML_file" Friend Const Unrecognized_configuration_section As String = "Unrecognized_configuration_section" Friend Const Missing_required_attribute As String = "Missing_required_attribute" Friend Const Invalid_boolean_attribute As String = "Invalid_boolean_attribute" Friend Const Invalid_integer_attribute As String = "Invalid_integer_attribute" Friend Const Invalid_positive_integer_attribute As String = "Invalid_positive_integer_attribute" Friend Const Invalid_type_attribute As String = "Invalid_type_attribute" Friend Const Could_not_create_listener As String = "Could_not_create_listener" Friend Const Cannot_remove_with_null As String = "Cannot_remove_with_null" Friend Const Could_not_find_type As String = "Could_not_find_type" Friend Const Could_not_get_constructor As String = "Could_not_get_constructor" Friend Const InvalidDirName As String = "InvalidDirName" Friend Const FSW_IOError As String = "FSW_IOError" Friend Const PatternInvalidChar As String = "PatternInvalidChar" Friend Const BufferSizeTooLarge As String = "BufferSizeTooLarge" Friend Const FSW_ChangedFilter As String = "FSW_ChangedFilter" Friend Const FSW_Enabled As String = "FSW_Enabled" Friend Const FSW_Filter As String = "FSW_Filter" Friend Const FSW_IncludeSubdirectories As String = "FSW_IncludeSubdirectories" Friend Const FSW_Path As String = "FSW_Path" Friend Const FSW_SynchronizingObject As String = "FSW_SynchronizingObject" Friend Const FSW_Changed As String = "FSW_Changed" Friend Const FSW_Created As String = "FSW_Created" Friend Const FSW_Deleted As String = "FSW_Deleted" Friend Const FSW_Renamed As String = "FSW_Renamed" Friend Const FSW_BufferOverflow As String = "FSW_BufferOverflow" Friend Const NotSet As String = "NotSet" Friend Const TimerAutoReset As String = "TimerAutoReset" Friend Const TimerEnabled As String = "TimerEnabled" Friend Const TimerInterval As String = "TimerInterval" Friend Const TimerIntervalElapsed As String = "TimerIntervalElapsed" Friend Const TimerSynchronizingObject As String = "TimerSynchronizingObject" Friend Const MismatchedCounterTypes As String = "MismatchedCounterTypes" Friend Const BadLogName As String = "BadLogName" Friend Const InvalidProperty As String = "InvalidProperty" Friend Const NotifyCreateFailed As String = "NotifyCreateFailed" Friend Const CantMonitorEventLog As String = "CantMonitorEventLog" Friend Const InitTwice As String = "InitTwice" Friend Const InvalidParameter As String = "InvalidParameter" Friend Const MissingParameter As String = "MissingParameter" Friend Const ParameterTooLong As String = "ParameterTooLong" Friend Const LocalSourceAlreadyExists As String = "LocalSourceAlreadyExists" Friend Const SourceAlreadyExists As String = "SourceAlreadyExists" Friend Const LocalLogAlreadyExistsAsSource As String = "LocalLogAlreadyExistsAsSource" Friend Const LogAlreadyExistsAsSource As String = "LogAlreadyExistsAsSource" Friend Const DuplicateLogName As String = "DuplicateLogName" Friend Const RegKeyMissing As String = "RegKeyMissing" Friend Const LocalRegKeyMissing As String = "LocalRegKeyMissing" Friend Const RegKeyMissingShort As String = "RegKeyMissingShort" Friend Const InvalidParameterFormat As String = "InvalidParameterFormat" Friend Const NoLogName As String = "NoLogName" Friend Const RegKeyNoAccess As String = "RegKeyNoAccess" Friend Const MissingLog As String = "MissingLog" Friend Const SourceNotRegistered As String = "SourceNotRegistered" Friend Const LocalSourceNotRegistered As String = "LocalSourceNotRegistered" Friend Const CantRetrieveEntries As String = "CantRetrieveEntries" Friend Const IndexOutOfBounds As String = "IndexOutOfBounds" Friend Const CantReadLogEntryAt As String = "CantReadLogEntryAt" Friend Const MissingLogProperty As String = "MissingLogProperty" Friend Const CantOpenLog As String = "CantOpenLog" Friend Const NeedSourceToOpen As String = "NeedSourceToOpen" Friend Const NeedSourceToWrite As String = "NeedSourceToWrite" Friend Const CantOpenLogAccess As String = "CantOpenLogAccess" Friend Const LogEntryTooLong As String = "LogEntryTooLong" Friend Const LogSourceMismatch As String = "LogSourceMismatch" Friend Const NoAccountInfo As String = "NoAccountInfo" Friend Const NoCurrentEntry As String = "NoCurrentEntry" Friend Const MessageNotFormatted As String = "MessageNotFormatted" Friend Const EventID As String = "EventID" Friend Const LogDoesNotExists As String = "LogDoesNotExists" Friend Const InvalidCustomerLogName As String = "InvalidCustomerLogName" Friend Const CannotDeleteEqualSource As String = "CannotDeleteEqualSource" Friend Const ReadOnlyCounter As String = "ReadOnlyCounter" Friend Const ReadOnlyRemoveInstance As String = "ReadOnlyRemoveInstance" Friend Const NotCustomCounter As String = "NotCustomCounter" Friend Const CategoryNameMissing As String = "CategoryNameMissing" Friend Const CounterNameMissing As String = "CounterNameMissing" Friend Const InstanceNameProhibited As String = "InstanceNameProhibited" Friend Const InstanceNameRequired As String = "InstanceNameRequired" Friend Const MissingInstance As String = "MissingInstance" Friend Const PerformanceCategoryExists As String = "PerformanceCategoryExists" Friend Const InvalidCounterName As String = "InvalidCounterName" Friend Const DuplicateCounterName As String = "DuplicateCounterName" Friend Const CantDeleteCategory As String = "CantDeleteCategory" Friend Const MissingCategory As String = "MissingCategory" Friend Const MissingCategoryDetail As String = "MissingCategoryDetail" Friend Const CantReadCategory As String = "CantReadCategory" Friend Const MissingCounter As String = "MissingCounter" Friend Const CategoryNameNotSet As String = "CategoryNameNotSet" Friend Const CounterExists As String = "CounterExists" Friend Const CantReadCategoryIndex As String = "CantReadCategoryIndex" Friend Const CantReadCounter As String = "CantReadCounter" Friend Const CantReadInstance As String = "CantReadInstance" Friend Const RemoteWriting As String = "RemoteWriting" Friend Const CounterLayout As String = "CounterLayout" Friend Const PossibleDeadlock As String = "PossibleDeadlock" Friend Const SharedMemoryGhosted As String = "SharedMemoryGhosted" Friend Const HelpNotAvailable As String = "HelpNotAvailable" Friend Const PerfInvalidHelp As String = "PerfInvalidHelp" Friend Const PerfInvalidCounterName As String = "PerfInvalidCounterName" Friend Const PerfInvalidCategoryName As String = "PerfInvalidCategoryName" Friend Const PerfMaxCreationDataCount As String = "PerfMaxCreationDataCount" Friend Const RemoteCounterAdmin As String = "RemoteCounterAdmin" Friend Const NoInstanceInformation As String = "NoInstanceInformation" Friend Const PriorityClassNotSupported As String = "PriorityClassNotSupported" Friend Const WinNTRequired As String = "WinNTRequired" Friend Const Win2kRequired As String = "Win2kRequired" Friend Const NoAssociatedProcess As String = "NoAssociatedProcess" Friend Const ProcessIdRequired As String = "ProcessIdRequired" Friend Const NotSupportedRemote As String = "NotSupportedRemote" Friend Const NoProcessInfo As String = "NoProcessInfo" Friend Const WaitTillExit As String = "WaitTillExit" Friend Const NoProcessHandle As String = "NoProcessHandle" Friend Const MissingProccess As String = "MissingProccess" Friend Const BadMinWorkset As String = "BadMinWorkset" Friend Const BadMaxWorkset As String = "BadMaxWorkset" Friend Const WinNTRequiredForRemote As String = "WinNTRequiredForRemote" Friend Const ProcessHasExited As String = "ProcessHasExited" Friend Const ProcessHasExitedNoId As String = "ProcessHasExitedNoId" Friend Const ThreadExited As String = "ThreadExited" Friend Const Win2000Required As String = "Win2000Required" Friend Const ProcessNotFound As String = "ProcessNotFound" Friend Const CantGetProcessId As String = "CantGetProcessId" Friend Const ProcessDisabled As String = "ProcessDisabled" Friend Const WaitReasonUnavailable As String = "WaitReasonUnavailable" Friend Const NotSupportedRemoteThread As String = "NotSupportedRemoteThread" Friend Const UseShellExecuteRequiresSTA As String = "UseShellExecuteRequiresSTA" Friend Const CantRedirectStreams As String = "CantRedirectStreams" Friend Const CantUseEnvVars As String = "CantUseEnvVars" Friend Const CouldntConnectToRemoteMachine As String = "CouldntConnectToRemoteMachine" Friend Const CouldntGetRemoteProcesses As String = "CouldntGetRemoteProcesses" Friend Const InputIdleUnkownError As String = "InputIdleUnkownError" Friend Const FileNameMissing As String = "FileNameMissing" Friend Const EnvironmentBlock As String = "EnvironmentBlock" Friend Const CountersOOM As String = "CountersOOM" Friend Const MappingCorrupted As String = "MappingCorrupted" Friend Const SetSecurityDescriptorFailed As String = "SetSecurityDescriptorFailed" Friend Const CantCreateFileMapping As String = "CantCreateFileMapping" Friend Const CantMapFileView As String = "CantMapFileView" Friend Const CantGetStandardOut As String = "CantGetStandardOut" Friend Const CantGetStandardIn As String = "CantGetStandardIn" Friend Const CantGetStandardError As String = "CantGetStandardError" Friend Const NoFileMappingSize As String = "NoFileMappingSize" Friend Const CounterType As String = "CounterType" Friend Const CounterName As String = "CounterName" Friend Const CounterHelp As String = "CounterHelp" Friend Const LogEntries As String = "LogEntries" Friend Const LogLog As String = "LogLog" Friend Const LogMachineName As String = "LogMachineName" Friend Const LogMonitoring As String = "LogMonitoring" Friend Const LogSynchronizingObject As String = "LogSynchronizingObject" Friend Const LogSource As String = "LogSource" Friend Const LogEntryWritten As String = "LogEntryWritten" Friend Const LogEntryMachineName As String = "LogEntryMachineName" Friend Const LogEntryData As String = "LogEntryData" Friend Const LogEntryIndex As String = "LogEntryIndex" Friend Const LogEntryCategory As String = "LogEntryCategory" Friend Const LogEntryCategoryNumber As String = "LogEntryCategoryNumber" Friend Const LogEntryEventID As String = "LogEntryEventID" Friend Const LogEntryEntryType As String = "LogEntryEntryType" Friend Const LogEntryMessage As String = "LogEntryMessage" Friend Const LogEntrySource As String = "LogEntrySource" Friend Const LogEntryReplacementStrings As String = "LogEntryReplacementStrings" Friend Const LogEntryTimeGenerated As String = "LogEntryTimeGenerated" Friend Const LogEntryTimeWritten As String = "LogEntryTimeWritten" Friend Const LogEntryUserName As String = "LogEntryUserName" Friend Const PC_CounterHelp As String = "PC_CounterHelp" Friend Const PC_CounterType As String = "PC_CounterType" Friend Const PC_ReadOnly As String = "PC_ReadOnly" Friend Const PC_RawValue As String = "PC_RawValue" Friend Const ProcessAssociated As String = "ProcessAssociated" Friend Const ProcessExitCode As String = "ProcessExitCode" Friend Const ProcessTerminated As String = "ProcessTerminated" Friend Const ProcessExitTime As String = "ProcessExitTime" Friend Const ProcessHandle As String = "ProcessHandle" Friend Const ProcessHandleCount As String = "ProcessHandleCount" Friend Const ProcessId As String = "ProcessId" Friend Const ProcessMachineName As String = "ProcessMachineName" Friend Const ProcessMainModule As String = "ProcessMainModule" Friend Const ProcessModules As String = "ProcessModules" Friend Const ProcessSynchronizingObject As String = "ProcessSynchronizingObject" Friend Const ProcessThreads As String = "ProcessThreads" Friend Const ProcessEnableRaisingEvents As String = "ProcessEnableRaisingEvents" Friend Const ProcessExited As String = "ProcessExited" Friend Const ProcessFileName As String = "ProcessFileName" Friend Const ProcessWorkingDirectory As String = "ProcessWorkingDirectory" Friend Const ProcessBasePriority As String = "ProcessBasePriority" Friend Const ProcessMainWindowHandle As String = "ProcessMainWindowHandle" Friend Const ProcessMainWindowTitle As String = "ProcessMainWindowTitle" Friend Const ProcessMaxWorkingSet As String = "ProcessMaxWorkingSet" Friend Const ProcessMinWorkingSet As String = "ProcessMinWorkingSet" Friend Const ProcessNonpagedSystemMemorySize As String = "ProcessNonpagedSystemMemorySize" Friend Const ProcessPagedMemorySize As String = "ProcessPagedMemorySize" Friend Const ProcessPagedSystemMemorySize As String = "ProcessPagedSystemMemorySize" Friend Const ProcessPeakPagedMemorySize As String = "ProcessPeakPagedMemorySize" Friend Const ProcessPeakWorkingSet As String = "ProcessPeakWorkingSet" Friend Const ProcessPeakVirtualMemorySize As String = "ProcessPeakVirtualMemorySize" Friend Const ProcessPriorityBoostEnabled As String = "ProcessPriorityBoostEnabled" Friend Const ProcessPriorityClass As String = "ProcessPriorityClass" Friend Const ProcessPrivateMemorySize As String = "ProcessPrivateMemorySize" Friend Const ProcessPrivilegedProcessorTime As String = "ProcessPrivilegedProcessorTime" Friend Const ProcessProcessName As String = "ProcessProcessName" Friend Const ProcessProcessorAffinity As String = "ProcessProcessorAffinity" Friend Const ProcessResponding As String = "ProcessResponding" Friend Const ProcessStandardError As String = "ProcessStandardError" Friend Const ProcessStandardInput As String = "ProcessStandardInput" Friend Const ProcessStandardOutput As String = "ProcessStandardOutput" Friend Const ProcessStartInfo As String = "ProcessStartInfo" Friend Const ProcessStartTime As String = "ProcessStartTime" Friend Const ProcessTotalProcessorTime As String = "ProcessTotalProcessorTime" Friend Const ProcessUserProcessorTime As String = "ProcessUserProcessorTime" Friend Const ProcessVirtualMemorySize As String = "ProcessVirtualMemorySize" Friend Const ProcessWorkingSet As String = "ProcessWorkingSet" Friend Const ProcModModuleName As String = "ProcModModuleName" Friend Const ProcModFileName As String = "ProcModFileName" Friend Const ProcModBaseAddress As String = "ProcModBaseAddress" Friend Const ProcModModuleMemorySize As String = "ProcModModuleMemorySize" Friend Const ProcModEntryPointAddress As String = "ProcModEntryPointAddress" Friend Const ProcessVerb As String = "ProcessVerb" Friend Const ProcessArguments As String = "ProcessArguments" Friend Const ProcessErrorDialog As String = "ProcessErrorDialog" Friend Const ProcessWindowStyle As String = "ProcessWindowStyle" Friend Const ProcessCreateNoWindow As String = "ProcessCreateNoWindow" Friend Const ProcessEnvironmentVariables As String = "ProcessEnvironmentVariables" Friend Const ProcessRedirectStandardInput As String = "ProcessRedirectStandardInput" Friend Const ProcessRedirectStandardOutput As String = "ProcessRedirectStandardOutput" Friend Const ProcessRedirectStandardError As String = "ProcessRedirectStandardError" Friend Const ProcessUseShellExecute As String = "ProcessUseShellExecute" Friend Const ThreadBasePriority As String = "ThreadBasePriority" Friend Const ThreadCurrentPriority As String = "ThreadCurrentPriority" Friend Const ThreadId As String = "ThreadId" Friend Const ThreadPriorityBoostEnabled As String = "ThreadPriorityBoostEnabled" Friend Const ThreadPriorityLevel As String = "ThreadPriorityLevel" Friend Const ThreadPrivilegedProcessorTime As String = "ThreadPrivilegedProcessorTime" Friend Const ThreadStartAddress As String = "ThreadStartAddress" Friend Const ThreadStartTime As String = "ThreadStartTime" Friend Const ThreadThreadState As String = "ThreadThreadState" Friend Const ThreadTotalProcessorTime As String = "ThreadTotalProcessorTime" Friend Const ThreadUserProcessorTime As String = "ThreadUserProcessorTime" Friend Const ThreadWaitReason As String = "ThreadWaitReason" Friend Const VerbEditorDefault As String = "VerbEditorDefault" Friend Const AppSettingsReaderNoKey As String = "AppSettingsReaderNoKey" Friend Const AppSettingsReaderNoParser As String = "AppSettingsReaderNoParser" Friend Const AppSettingsReaderCantParse As String = "AppSettingsReaderCantParse" Friend Const AppSettingsReaderEmptyString As String = "AppSettingsReaderEmptyString" Friend Const PermissionNumberOfElements As String = "PermissionNumberOfElements" Friend Const PermissionItemExists As String = "PermissionItemExists" Friend Const PermissionItemDoesntExist As String = "PermissionItemDoesntExist" Private Shared loader As SR = Nothing Private resources As ResourceManager Private Sub New() 'resources = New ResourceManager("System", MyBase.[GetType]().Module.Assembly) 'resources = New ResourceManager("System", GetType(System.Array).Module.Assembly) resources = New ResourceManager("System", Type.GetType("System.SR, System").Module.Assembly) End Sub Private Shared Function GetLoader() As SR If loader Is Nothing Then Dim type As type = GetType(SR) Monitor.Enter(type) Try If loader Is Nothing Then loader = New SR End If Finally Monitor.[Exit](type) End Try End If Return loader End Function Public Shared Function GetString(ByVal name As String, ByVal ParamArray args As Object()) As String Return GetString(DirectCast(Nothing, CultureInfo), name, args) End Function Public Shared Function GetString(ByVal culture As CultureInfo, ByVal name As String, ByVal ParamArray args As Object()) As String Dim sR As sR = GetLoader() If sR Is Nothing Then Return Nothing End If Dim str As String = sR.resources.GetString(name, culture) If Not args Is Nothing AndAlso CInt(args.Length) > 0 Then Return String.Format(str, args) Else Return str End If End Function Public Shared Function GetString(ByVal name As String) As String Return GetString(DirectCast(Nothing, CultureInfo), name) End Function Public Shared Function GetString(ByVal culture As CultureInfo, ByVal name As String) As String Dim sR As sR = GetLoader() If sR Is Nothing Then Return Nothing Else Return sR.resources.GetString(name, culture) End If End Function Public Shared Function GetBoolean(ByVal name As String) As Boolean Return GetBoolean(name) End Function Public Shared Function GetBoolean(ByVal culture As CultureInfo, ByVal name As String) As Boolean Dim flag As Boolean = False Dim sR As sR = GetLoader() If Not sR Is Nothing Then Dim local As Object = sR.resources.GetObject(name, culture) If TypeOf local Is Boolean Then flag = CBool(local) End If End If Return flag End Function Public Shared Function GetChar(ByVal name As String) As Char Return GetChar(Nothing, name) End Function Public Shared Function GetChar(ByVal culture As CultureInfo, ByVal name As String) As Char Dim ch As Char = Chr(0) Dim sR As sR = GetLoader() If Not sR Is Nothing Then Dim local As Object = sR.resources.GetObject(name, culture) If TypeOf local Is Char Then ch = CChar(local) End If End If Return ch End Function Public Shared Function GetByte(ByVal name As String) As Byte Return GetByte(Nothing, name) End Function Public Shared Function GetByte(ByVal culture As CultureInfo, ByVal name As String) As Byte Dim b As Byte = 0 Dim sR As sR = GetLoader() If Not sR Is Nothing Then Dim local As Object = sR.resources.GetObject(name, culture) If TypeOf local Is Byte Then b = CByte(local) End If End If Return b End Function Public Shared Function GetShort(ByVal name As String) As Short Return GetShort(Nothing, name) End Function Public Shared Function GetShort(ByVal culture As CultureInfo, ByVal name As String) As Short Dim s As Short = 0 Dim sR As sR = GetLoader() If Not sR Is Nothing Then Dim local As Object = sR.resources.GetObject(name, culture) If TypeOf local Is Int16 Then s = CShort(local) End If End If Return s End Function Public Shared Function GetInt(ByVal name As String) As Integer Return GetInt(Nothing, name) End Function Public Shared Function GetInt(ByVal culture As CultureInfo, ByVal name As String) As Integer Dim i As Integer = 0 Dim sR As sR = GetLoader() If Not sR Is Nothing Then Dim local As Object = sR.resources.GetObject(name, culture) If TypeOf local Is Int32 Then i = CInt(local) End If End If Return i End Function Public Shared Function GetLong(ByVal name As String) As Long Return GetLong(Nothing, name) End Function Public Shared Function GetLong(ByVal culture As CultureInfo, ByVal name As String) As Long Dim l As Long = 0 Dim sR As sR = GetLoader() If Not sR Is Nothing Then Dim local As Object = sR.resources.GetObject(name, culture) If TypeOf local Is Int64 Then l = CLng(local) End If End If Return l End Function Public Shared Function GetFloat(ByVal name As String) As Single Return GetFloat(Nothing, name) End Function Public Shared Function GetFloat(ByVal culture As CultureInfo, ByVal name As String) As Single Dim f As Single = 0.0F Dim sR As sR = GetLoader() If sR Is Nothing Then Dim local As Object = sR.resources.GetObject(name, culture) If TypeOf local Is Single Then f = CSng(local) End If End If Return f End Function Public Shared Function GetDouble(ByVal name As String) As Double Return GetDouble(Nothing, name) End Function Public Shared Function GetDouble(ByVal culture As CultureInfo, ByVal name As String) As Double Dim d As Double = 0.0 Dim sR As sR = GetLoader() If sR Is Nothing Then Dim local As Object = sR.resources.GetObject(name, culture) If TypeOf local Is Double Then d = CDbl(local) End If End If Return d End Function Public Shared Function GetObject(ByVal name As String) As Object Return GetObject(Nothing, name) End Function Public Shared Function GetObject(ByVal culture As CultureInfo, ByVal name As String) As Object Dim sR As sR = GetLoader() If sR Is Nothing Then Return Nothing Else Return sR.resources.GetObject(name, culture) End If End Function End Class End Namespace