Class: Chef::Provider::Route

Inherits:
Chef::Provider show all
Includes:
Mixin::Command
Defined in:
lib/chef/provider/route.rb

Constant Summary

MASK =
{'0.0.0.0'          => '0',
'128.0.0.0'        => '1',
'192.0.0.0'        => '2',
'224.0.0.0'        => '3',
'240.0.0.0'        => '4',
'248.0.0.0'        => '5',
'252.0.0.0'        => '6',
'254.0.0.0'        => '7',
'255.0.0.0'        => '8',
'255.128.0.0'      => '9',
'255.192.0.0'      => '10',
'255.224.0.0'      => '11',
'255.240.0.0'      => '12',
'255.248.0.0'      => '13',
'255.252.0.0'      => '14',
'255.254.0.0'      => '15',
'255.255.0.0'      => '16',
'255.255.128.0'    => '17',
'255.255.192.0'    => '18',
'255.255.224.0'    => '19',
'255.255.240.0'    => '20',
'255.255.248.0'    => '21',
'255.255.252.0'    => '22',
'255.255.254.0'    => '23',
'255.255.255.0'    => '24',
'255.255.255.128'  => '25',
'255.255.255.192'  => '26',
'255.255.255.224'  => '27',
'255.255.255.240'  => '28',
'255.255.255.248'  => '29',
'255.255.255.252'  => '30',
'255.255.255.254'  => '31',
'255.255.255.255'  => '32' }

Constants included from ReservedNames::Win32::API::Error

ReservedNames::Win32::API::Error::EPT_S_CANT_CREATE, ReservedNames::Win32::API::Error::EPT_S_CANT_PERFORM_OP, ReservedNames::Win32::API::Error::EPT_S_INVALID_ENTRY, ReservedNames::Win32::API::Error::EPT_S_NOT_REGISTERED, ReservedNames::Win32::API::Error::ERROR_ACCESS_DENIED, ReservedNames::Win32::API::Error::ERROR_ACCESS_DISABLED_BY_POLICY, ReservedNames::Win32::API::Error::ERROR_ACCOUNT_DISABLED, ReservedNames::Win32::API::Error::ERROR_ACCOUNT_EXPIRED, ReservedNames::Win32::API::Error::ERROR_ACCOUNT_LOCKED_OUT, ReservedNames::Win32::API::Error::ERROR_ACCOUNT_RESTRICTION, ReservedNames::Win32::API::Error::ERROR_ACTIVE_CONNECTIONS, ReservedNames::Win32::API::Error::ERROR_ADAP_HDW_ERR, ReservedNames::Win32::API::Error::ERROR_ADDRESS_ALREADY_ASSOCIATED, ReservedNames::Win32::API::Error::ERROR_ADDRESS_NOT_ASSOCIATED, ReservedNames::Win32::API::Error::ERROR_ALIAS_EXISTS, ReservedNames::Win32::API::Error::ERROR_ALLOTTED_SPACE_EXCEEDED, ReservedNames::Win32::API::Error::ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED, ReservedNames::Win32::API::Error::ERROR_ALREADY_ASSIGNED, ReservedNames::Win32::API::Error::ERROR_ALREADY_EXISTS, ReservedNames::Win32::API::Error::ERROR_ALREADY_INITIALIZED, ReservedNames::Win32::API::Error::ERROR_ALREADY_REGISTERED, ReservedNames::Win32::API::Error::ERROR_ALREADY_RUNNING_LKG, ReservedNames::Win32::API::Error::ERROR_ALREADY_WAITING, ReservedNames::Win32::API::Error::ERROR_APP_WRONG_OS, ReservedNames::Win32::API::Error::ERROR_ARENA_TRASHED, ReservedNames::Win32::API::Error::ERROR_ARITHMETIC_OVERFLOW, ReservedNames::Win32::API::Error::ERROR_ATOMIC_LOCKS_NOT_SUPPORTED, ReservedNames::Win32::API::Error::ERROR_AUTHENTICATION_FIREWALL_FAILED, ReservedNames::Win32::API::Error::ERROR_AUTODATASEG_EXCEEDS_64k, ReservedNames::Win32::API::Error::ERROR_BADDB, ReservedNames::Win32::API::Error::ERROR_BADKEY, ReservedNames::Win32::API::Error::ERROR_BAD_ARGUMENTS, ReservedNames::Win32::API::Error::ERROR_BAD_COMMAND, ReservedNames::Win32::API::Error::ERROR_BAD_CONFIGURATION, ReservedNames::Win32::API::Error::ERROR_BAD_DESCRIPTOR_FORMAT, ReservedNames::Win32::API::Error::ERROR_BAD_DEVICE, ReservedNames::Win32::API::Error::ERROR_BAD_DEV_TYPE, ReservedNames::Win32::API::Error::ERROR_BAD_DRIVER, ReservedNames::Win32::API::Error::ERROR_BAD_DRIVER_LEVEL, ReservedNames::Win32::API::Error::ERROR_BAD_DYNALINK, ReservedNames::Win32::API::Error::ERROR_BAD_ENVIRONMENT, ReservedNames::Win32::API::Error::ERROR_BAD_EXE_FORMAT, ReservedNames::Win32::API::Error::ERROR_BAD_FORMAT, ReservedNames::Win32::API::Error::ERROR_BAD_IMPERSONATION_LEVEL, ReservedNames::Win32::API::Error::ERROR_BAD_INHERITANCE_ACL, ReservedNames::Win32::API::Error::ERROR_BAD_LENGTH, ReservedNames::Win32::API::Error::ERROR_BAD_LOGON_SESSION_STATE, ReservedNames::Win32::API::Error::ERROR_BAD_NETPATH, ReservedNames::Win32::API::Error::ERROR_BAD_NET_NAME, ReservedNames::Win32::API::Error::ERROR_BAD_NET_RESP, ReservedNames::Win32::API::Error::ERROR_BAD_PATHNAME, ReservedNames::Win32::API::Error::ERROR_BAD_PIPE, ReservedNames::Win32::API::Error::ERROR_BAD_PROFILE, ReservedNames::Win32::API::Error::ERROR_BAD_PROVIDER, ReservedNames::Win32::API::Error::ERROR_BAD_QUERY_SYNTAX, ReservedNames::Win32::API::Error::ERROR_BAD_REM_ADAP, ReservedNames::Win32::API::Error::ERROR_BAD_THREADID_ADDR, ReservedNames::Win32::API::Error::ERROR_BAD_TOKEN_TYPE, ReservedNames::Win32::API::Error::ERROR_BAD_UNIT, ReservedNames::Win32::API::Error::ERROR_BAD_USERNAME, ReservedNames::Win32::API::Error::ERROR_BAD_USER_PROFILE, ReservedNames::Win32::API::Error::ERROR_BAD_VALIDATION_CLASS, ReservedNames::Win32::API::Error::ERROR_BEGINNING_OF_MEDIA, ReservedNames::Win32::API::Error::ERROR_BOOT_ALREADY_ACCEPTED, ReservedNames::Win32::API::Error::ERROR_BROKEN_PIPE, ReservedNames::Win32::API::Error::ERROR_BUSY, ReservedNames::Win32::API::Error::ERROR_BUSY_DRIVE, ReservedNames::Win32::API::Error::ERROR_BUS_RESET, ReservedNames::Win32::API::Error::ERROR_CALLBACK_SUPPLIED_INVALID_DATA, ReservedNames::Win32::API::Error::ERROR_CALL_NOT_IMPLEMENTED, ReservedNames::Win32::API::Error::ERROR_CANCELLED, ReservedNames::Win32::API::Error::ERROR_CANCEL_VIOLATION, ReservedNames::Win32::API::Error::ERROR_CANNOT_COPY, ReservedNames::Win32::API::Error::ERROR_CANNOT_DETECT_DRIVER_FAILURE, ReservedNames::Win32::API::Error::ERROR_CANNOT_DETECT_PROCESS_ABORT, ReservedNames::Win32::API::Error::ERROR_CANNOT_FIND_WND_CLASS, ReservedNames::Win32::API::Error::ERROR_CANNOT_IMPERSONATE, ReservedNames::Win32::API::Error::ERROR_CANNOT_MAKE, ReservedNames::Win32::API::Error::ERROR_CANNOT_OPEN_PROFILE, ReservedNames::Win32::API::Error::ERROR_CANTOPEN, ReservedNames::Win32::API::Error::ERROR_CANTREAD, ReservedNames::Win32::API::Error::ERROR_CANTWRITE, ReservedNames::Win32::API::Error::ERROR_CANT_ACCESS_DOMAIN_INFO, ReservedNames::Win32::API::Error::ERROR_CANT_ACCESS_FILE, ReservedNames::Win32::API::Error::ERROR_CANT_DISABLE_MANDATORY, ReservedNames::Win32::API::Error::ERROR_CANT_OPEN_ANONYMOUS, ReservedNames::Win32::API::Error::ERROR_CANT_RESOLVE_FILENAME, ReservedNames::Win32::API::Error::ERROR_CAN_NOT_COMPLETE, ReservedNames::Win32::API::Error::ERROR_CHILD_ALIVE_NOWAIT, ReservedNames::Win32::API::Error::ERROR_CHILD_MUST_BE_VOLATILE, ReservedNames::Win32::API::Error::ERROR_CHILD_NOT_COMPLETE, ReservedNames::Win32::API::Error::ERROR_CHILD_WINDOW_MENU, ReservedNames::Win32::API::Error::ERROR_CIRCULAR_DEPENDENCY, ReservedNames::Win32::API::Error::ERROR_CLASS_ALREADY_EXISTS, ReservedNames::Win32::API::Error::ERROR_CLASS_DOES_NOT_EXIST, ReservedNames::Win32::API::Error::ERROR_CLASS_HAS_WINDOWS, ReservedNames::Win32::API::Error::ERROR_CLIPBOARD_NOT_OPEN, ReservedNames::Win32::API::Error::ERROR_CLIPPING_NOT_SUPPORTED, ReservedNames::Win32::API::Error::ERROR_COLORSPACE_MISMATCH, ReservedNames::Win32::API::Error::ERROR_COMMITMENT_LIMIT, ReservedNames::Win32::API::Error::ERROR_CONNECTED_OTHER_PASSWORD, ReservedNames::Win32::API::Error::ERROR_CONNECTION_ABORTED, ReservedNames::Win32::API::Error::ERROR_CONNECTION_ACTIVE, ReservedNames::Win32::API::Error::ERROR_CONNECTION_COUNT_LIMIT, ReservedNames::Win32::API::Error::ERROR_CONNECTION_INVALID, ReservedNames::Win32::API::Error::ERROR_CONNECTION_REFUSED, ReservedNames::Win32::API::Error::ERROR_CONNECTION_UNAVAIL, ReservedNames::Win32::API::Error::ERROR_CONTEXT_EXPIRED, ReservedNames::Win32::API::Error::ERROR_CONTINUE, ReservedNames::Win32::API::Error::ERROR_CONTROL_ID_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_COUNTER_TIMEOUT, ReservedNames::Win32::API::Error::ERROR_CRC, ReservedNames::Win32::API::Error::ERROR_CREATE_FAILED, ReservedNames::Win32::API::Error::ERROR_CURRENT_DIRECTORY, ReservedNames::Win32::API::Error::ERROR_CURRENT_DOMAIN_NOT_ALLOWED, ReservedNames::Win32::API::Error::ERROR_DATABASE_DOES_NOT_EXIST, ReservedNames::Win32::API::Error::ERROR_DATATYPE_MISMATCH, ReservedNames::Win32::API::Error::ERROR_DC_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_DDE_FAIL, ReservedNames::Win32::API::Error::ERROR_DELETING_ICM_XFORM, ReservedNames::Win32::API::Error::ERROR_DEPENDENT_SERVICES_RUNNING, ReservedNames::Win32::API::Error::ERROR_DESTINATION_ELEMENT_FULL, ReservedNames::Win32::API::Error::ERROR_DESTROY_OBJECT_OF_OTHER_THREAD, ReservedNames::Win32::API::Error::ERROR_DEVICE_ALREADY_REMEMBERED, ReservedNames::Win32::API::Error::ERROR_DEVICE_DOOR_OPEN, ReservedNames::Win32::API::Error::ERROR_DEVICE_IN_USE, ReservedNames::Win32::API::Error::ERROR_DEVICE_NOT_CONNECTED, ReservedNames::Win32::API::Error::ERROR_DEVICE_NOT_PARTITIONED, ReservedNames::Win32::API::Error::ERROR_DEVICE_REINITIALIZATION_NEEDED, ReservedNames::Win32::API::Error::ERROR_DEVICE_REMOVED, ReservedNames::Win32::API::Error::ERROR_DEVICE_REQUIRES_CLEANING, ReservedNames::Win32::API::Error::ERROR_DEV_NOT_EXIST, ReservedNames::Win32::API::Error::ERROR_DIFFERENT_SERVICE_ACCOUNT, ReservedNames::Win32::API::Error::ERROR_DIRECTORY, ReservedNames::Win32::API::Error::ERROR_DIRECT_ACCESS_HANDLE, ReservedNames::Win32::API::Error::ERROR_DIR_NOT_EMPTY, ReservedNames::Win32::API::Error::ERROR_DIR_NOT_ROOT, ReservedNames::Win32::API::Error::ERROR_DISCARDED, ReservedNames::Win32::API::Error::ERROR_DISK_CHANGE, ReservedNames::Win32::API::Error::ERROR_DISK_CORRUPT, ReservedNames::Win32::API::Error::ERROR_DISK_FULL, ReservedNames::Win32::API::Error::ERROR_DISK_OPERATION_FAILED, ReservedNames::Win32::API::Error::ERROR_DISK_RECALIBRATE_FAILED, ReservedNames::Win32::API::Error::ERROR_DISK_RESET_FAILED, ReservedNames::Win32::API::Error::ERROR_DISK_TOO_FRAGMENTED, ReservedNames::Win32::API::Error::ERROR_DLL_INIT_FAILED, ReservedNames::Win32::API::Error::ERROR_DLL_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_DOMAIN_CONTROLLER_EXISTS, ReservedNames::Win32::API::Error::ERROR_DOMAIN_CONTROLLER_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_DOMAIN_EXISTS, ReservedNames::Win32::API::Error::ERROR_DOMAIN_LIMIT_EXCEEDED, ReservedNames::Win32::API::Error::ERROR_DOMAIN_TRUST_INCONSISTENT, ReservedNames::Win32::API::Error::ERROR_DOWNGRADE_DETECTED, ReservedNames::Win32::API::Error::ERROR_DRIVER_BLOCKED, ReservedNames::Win32::API::Error::ERROR_DRIVE_LOCKED, ReservedNames::Win32::API::Error::ERROR_DUPLICATE_SERVICE_NAME, ReservedNames::Win32::API::Error::ERROR_DUPLICATE_TAG, ReservedNames::Win32::API::Error::ERROR_DUP_DOMAINNAME, ReservedNames::Win32::API::Error::ERROR_DUP_FCB, ReservedNames::Win32::API::Error::ERROR_DUP_NAME, ReservedNames::Win32::API::Error::ERROR_DYNLINK_FROM_INVALID_RING, ReservedNames::Win32::API::Error::ERROR_EAS_DIDNT_FIT, ReservedNames::Win32::API::Error::ERROR_EAS_NOT_SUPPORTED, ReservedNames::Win32::API::Error::ERROR_EA_ACCESS_DENIED, ReservedNames::Win32::API::Error::ERROR_EA_FILE_CORRUPT, ReservedNames::Win32::API::Error::ERROR_EA_LIST_INCONSISTENT, ReservedNames::Win32::API::Error::ERROR_EA_TABLE_FULL, ReservedNames::Win32::API::Error::ERROR_END_OF_MEDIA, ReservedNames::Win32::API::Error::ERROR_ENVVAR_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_EOM_OVERFLOW, ReservedNames::Win32::API::Error::ERROR_EVENTLOG_CANT_START, ReservedNames::Win32::API::Error::ERROR_EVENTLOG_FILE_CHANGED, ReservedNames::Win32::API::Error::ERROR_EVENTLOG_FILE_CORRUPT, ReservedNames::Win32::API::Error::ERROR_EXCEPTION_IN_SERVICE, ReservedNames::Win32::API::Error::ERROR_EXCL_SEM_ALREADY_OWNED, ReservedNames::Win32::API::Error::ERROR_EXE_MACHINE_TYPE_MISMATCH, ReservedNames::Win32::API::Error::ERROR_EXE_MARKED_INVALID, ReservedNames::Win32::API::Error::ERROR_EXTENDED_ERROR, ReservedNames::Win32::API::Error::ERROR_FAILED_SERVICE_CONTROLLER_CONNECT, ReservedNames::Win32::API::Error::ERROR_FAIL_I24, ReservedNames::Win32::API::Error::ERROR_FAIL_NOACTION_REBOOT, ReservedNames::Win32::API::Error::ERROR_FAIL_RESTART, ReservedNames::Win32::API::Error::ERROR_FAIL_SHUTDOWN, ReservedNames::Win32::API::Error::ERROR_FCB_UNAVAILABLE, ReservedNames::Win32::API::Error::ERROR_FILEMARK_DETECTED, ReservedNames::Win32::API::Error::ERROR_FILENAME_EXCED_RANGE, ReservedNames::Win32::API::Error::ERROR_FILE_CORRUPT, ReservedNames::Win32::API::Error::ERROR_FILE_EXISTS, ReservedNames::Win32::API::Error::ERROR_FILE_INVALID, ReservedNames::Win32::API::Error::ERROR_FILE_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_FLOPPY_BAD_REGISTERS, ReservedNames::Win32::API::Error::ERROR_FLOPPY_ID_MARK_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_FLOPPY_UNKNOWN_ERROR, ReservedNames::Win32::API::Error::ERROR_FLOPPY_WRONG_CYLINDER, ReservedNames::Win32::API::Error::ERROR_FULLSCREEN_MODE, ReservedNames::Win32::API::Error::ERROR_FUNCTION_FAILED, ReservedNames::Win32::API::Error::ERROR_FUNCTION_NOT_CALLED, ReservedNames::Win32::API::Error::ERROR_GENERIC_NOT_MAPPED, ReservedNames::Win32::API::Error::ERROR_GEN_FAILURE, ReservedNames::Win32::API::Error::ERROR_GLOBAL_ONLY_HOOK, ReservedNames::Win32::API::Error::ERROR_GRACEFUL_DISCONNECT, ReservedNames::Win32::API::Error::ERROR_GROUP_EXISTS, ReservedNames::Win32::API::Error::ERROR_HANDLE_DISK_FULL, ReservedNames::Win32::API::Error::ERROR_HANDLE_EOF, ReservedNames::Win32::API::Error::ERROR_HOOK_NEEDS_HMOD, ReservedNames::Win32::API::Error::ERROR_HOOK_NOT_INSTALLED, ReservedNames::Win32::API::Error::ERROR_HOOK_TYPE_NOT_ALLOWED, ReservedNames::Win32::API::Error::ERROR_HOST_DOWN, ReservedNames::Win32::API::Error::ERROR_HOST_UNREACHABLE, ReservedNames::Win32::API::Error::ERROR_HOTKEY_ALREADY_REGISTERED, ReservedNames::Win32::API::Error::ERROR_HOTKEY_NOT_REGISTERED, ReservedNames::Win32::API::Error::ERROR_HWNDS_HAVE_DIFF_PARENT, ReservedNames::Win32::API::Error::ERROR_ICM_NOT_ENABLED, ReservedNames::Win32::API::Error::ERROR_ILLEGAL_ELEMENT_ADDRESS, ReservedNames::Win32::API::Error::ERROR_ILL_FORMED_PASSWORD, ReservedNames::Win32::API::Error::ERROR_INCORRECT_ADDRESS, ReservedNames::Win32::API::Error::ERROR_INDEX_ABSENT, ReservedNames::Win32::API::Error::ERROR_INFLOOP_IN_RELOC_CHAIN, ReservedNames::Win32::API::Error::ERROR_INFO_NOT_AVAIL, ReservedNames::Win32::API::Error::ERROR_INSTALL_ALREADY_RUNNING, ReservedNames::Win32::API::Error::ERROR_INSTALL_FAILURE, ReservedNames::Win32::API::Error::ERROR_INSTALL_LANGUAGE_UNSUPPORTED, ReservedNames::Win32::API::Error::ERROR_INSTALL_LOG_FAILURE, ReservedNames::Win32::API::Error::ERROR_INSTALL_NOTUSED, ReservedNames::Win32::API::Error::ERROR_INSTALL_PACKAGE_INVALID, ReservedNames::Win32::API::Error::ERROR_INSTALL_PACKAGE_OPEN_FAILED, ReservedNames::Win32::API::Error::ERROR_INSTALL_PACKAGE_REJECTED, ReservedNames::Win32::API::Error::ERROR_INSTALL_PACKAGE_VERSION, ReservedNames::Win32::API::Error::ERROR_INSTALL_PLATFORM_UNSUPPORTED, ReservedNames::Win32::API::Error::ERROR_INSTALL_REMOTE_DISALLOWED, ReservedNames::Win32::API::Error::ERROR_INSTALL_SERVICE_FAILURE, ReservedNames::Win32::API::Error::ERROR_INSTALL_SOURCE_ABSENT, ReservedNames::Win32::API::Error::ERROR_INSTALL_SUSPEND, ReservedNames::Win32::API::Error::ERROR_INSTALL_TEMP_UNWRITABLE, ReservedNames::Win32::API::Error::ERROR_INSTALL_TRANSFORM_FAILURE, ReservedNames::Win32::API::Error::ERROR_INSTALL_UI_FAILURE, ReservedNames::Win32::API::Error::ERROR_INSTALL_USEREXIT, ReservedNames::Win32::API::Error::ERROR_INSUFFICIENT_BUFFER, ReservedNames::Win32::API::Error::ERROR_INTERNAL_DB_CORRUPTION, ReservedNames::Win32::API::Error::ERROR_INTERNAL_DB_ERROR, ReservedNames::Win32::API::Error::ERROR_INTERNAL_ERROR, ReservedNames::Win32::API::Error::ERROR_INTERRUPT, ReservedNames::Win32::API::Error::ERROR_INVALID_ACCEL_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_ACCESS, ReservedNames::Win32::API::Error::ERROR_INVALID_ACCOUNT_NAME, ReservedNames::Win32::API::Error::ERROR_INVALID_ACL, ReservedNames::Win32::API::Error::ERROR_INVALID_ADDRESS, ReservedNames::Win32::API::Error::ERROR_INVALID_AT_INTERRUPT_TIME, ReservedNames::Win32::API::Error::ERROR_INVALID_BLOCK, ReservedNames::Win32::API::Error::ERROR_INVALID_BLOCK_LENGTH, ReservedNames::Win32::API::Error::ERROR_INVALID_CALLGATE, ReservedNames::Win32::API::Error::ERROR_INVALID_CATEGORY, ReservedNames::Win32::API::Error::ERROR_INVALID_CMM, ReservedNames::Win32::API::Error::ERROR_INVALID_COLORINDEX, ReservedNames::Win32::API::Error::ERROR_INVALID_COLORSPACE, ReservedNames::Win32::API::Error::ERROR_INVALID_COMBOBOX_MESSAGE, ReservedNames::Win32::API::Error::ERROR_INVALID_COMMAND_LINE, ReservedNames::Win32::API::Error::ERROR_INVALID_COMPUTERNAME, ReservedNames::Win32::API::Error::ERROR_INVALID_CURSOR_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_DATA, ReservedNames::Win32::API::Error::ERROR_INVALID_DATATYPE, ReservedNames::Win32::API::Error::ERROR_INVALID_DLL, ReservedNames::Win32::API::Error::ERROR_INVALID_DOMAINNAME, ReservedNames::Win32::API::Error::ERROR_INVALID_DOMAIN_ROLE, ReservedNames::Win32::API::Error::ERROR_INVALID_DOMAIN_STATE, ReservedNames::Win32::API::Error::ERROR_INVALID_DRIVE, ReservedNames::Win32::API::Error::ERROR_INVALID_DWP_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_EA_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_EA_NAME, ReservedNames::Win32::API::Error::ERROR_INVALID_EDIT_HEIGHT, ReservedNames::Win32::API::Error::ERROR_INVALID_ENVIRONMENT, ReservedNames::Win32::API::Error::ERROR_INVALID_EVENTNAME, ReservedNames::Win32::API::Error::ERROR_INVALID_EVENT_COUNT, ReservedNames::Win32::API::Error::ERROR_INVALID_EXE_SIGNATURE, ReservedNames::Win32::API::Error::ERROR_INVALID_FIELD, ReservedNames::Win32::API::Error::ERROR_INVALID_FILTER_PROC, ReservedNames::Win32::API::Error::ERROR_INVALID_FLAGS, ReservedNames::Win32::API::Error::ERROR_INVALID_FLAG_NUMBER, ReservedNames::Win32::API::Error::ERROR_INVALID_FORM_NAME, ReservedNames::Win32::API::Error::ERROR_INVALID_FORM_SIZE, ReservedNames::Win32::API::Error::ERROR_INVALID_FUNCTION, ReservedNames::Win32::API::Error::ERROR_INVALID_GROUPNAME, ReservedNames::Win32::API::Error::ERROR_INVALID_GROUP_ATTRIBUTES, ReservedNames::Win32::API::Error::ERROR_INVALID_GW_COMMAND, ReservedNames::Win32::API::Error::ERROR_INVALID_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_HANDLE_STATE, ReservedNames::Win32::API::Error::ERROR_INVALID_HOOK_FILTER, ReservedNames::Win32::API::Error::ERROR_INVALID_HOOK_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_ICON_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_ID_AUTHORITY, ReservedNames::Win32::API::Error::ERROR_INVALID_IMPORT_OF_NON_DLL, ReservedNames::Win32::API::Error::ERROR_INVALID_INDEX, ReservedNames::Win32::API::Error::ERROR_INVALID_KEYBOARD_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_LB_MESSAGE, ReservedNames::Win32::API::Error::ERROR_INVALID_LEVEL, ReservedNames::Win32::API::Error::ERROR_INVALID_LIST_FORMAT, ReservedNames::Win32::API::Error::ERROR_INVALID_LOGON_HOURS, ReservedNames::Win32::API::Error::ERROR_INVALID_LOGON_TYPE, ReservedNames::Win32::API::Error::ERROR_INVALID_MEMBER, ReservedNames::Win32::API::Error::ERROR_INVALID_MENU_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_MESSAGE, ReservedNames::Win32::API::Error::ERROR_INVALID_MESSAGEDEST, ReservedNames::Win32::API::Error::ERROR_INVALID_MESSAGENAME, ReservedNames::Win32::API::Error::ERROR_INVALID_MINALLOCSIZE, ReservedNames::Win32::API::Error::ERROR_INVALID_MODULETYPE, ReservedNames::Win32::API::Error::ERROR_INVALID_MONITOR_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_MSGBOX_STYLE, ReservedNames::Win32::API::Error::ERROR_INVALID_NAME, ReservedNames::Win32::API::Error::ERROR_INVALID_NETNAME, ReservedNames::Win32::API::Error::ERROR_INVALID_OPLOCK_PROTOCOL, ReservedNames::Win32::API::Error::ERROR_INVALID_ORDINAL, ReservedNames::Win32::API::Error::ERROR_INVALID_OWNER, ReservedNames::Win32::API::Error::ERROR_INVALID_PARAMETER, ReservedNames::Win32::API::Error::ERROR_INVALID_PASSWORD, ReservedNames::Win32::API::Error::ERROR_INVALID_PASSWORDNAME, ReservedNames::Win32::API::Error::ERROR_INVALID_PIXEL_FORMAT, ReservedNames::Win32::API::Error::ERROR_INVALID_PRIMARY_GROUP, ReservedNames::Win32::API::Error::ERROR_INVALID_PRINTER_COMMAND, ReservedNames::Win32::API::Error::ERROR_INVALID_PRINTER_NAME, ReservedNames::Win32::API::Error::ERROR_INVALID_PRINTER_STATE, ReservedNames::Win32::API::Error::ERROR_INVALID_PRIORITY, ReservedNames::Win32::API::Error::ERROR_INVALID_PROFILE, ReservedNames::Win32::API::Error::ERROR_INVALID_SCROLLBAR_RANGE, ReservedNames::Win32::API::Error::ERROR_INVALID_SECURITY_DESCR, ReservedNames::Win32::API::Error::ERROR_INVALID_SEGDPL, ReservedNames::Win32::API::Error::ERROR_INVALID_SEGMENT_NUMBER, ReservedNames::Win32::API::Error::ERROR_INVALID_SEPARATOR_FILE, ReservedNames::Win32::API::Error::ERROR_INVALID_SERVER_STATE, ReservedNames::Win32::API::Error::ERROR_INVALID_SERVICENAME, ReservedNames::Win32::API::Error::ERROR_INVALID_SERVICE_ACCOUNT, ReservedNames::Win32::API::Error::ERROR_INVALID_SERVICE_CONTROL, ReservedNames::Win32::API::Error::ERROR_INVALID_SERVICE_LOCK, ReservedNames::Win32::API::Error::ERROR_INVALID_SHARENAME, ReservedNames::Win32::API::Error::ERROR_INVALID_SHOWWIN_COMMAND, ReservedNames::Win32::API::Error::ERROR_INVALID_SID, ReservedNames::Win32::API::Error::ERROR_INVALID_SIGNAL_NUMBER, ReservedNames::Win32::API::Error::ERROR_INVALID_SPI_VALUE, ReservedNames::Win32::API::Error::ERROR_INVALID_STACKSEG, ReservedNames::Win32::API::Error::ERROR_INVALID_STARTING_CODESEG, ReservedNames::Win32::API::Error::ERROR_INVALID_SUB_AUTHORITY, ReservedNames::Win32::API::Error::ERROR_INVALID_TABLE, ReservedNames::Win32::API::Error::ERROR_INVALID_TARGET_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_TASK_INDEX, ReservedNames::Win32::API::Error::ERROR_INVALID_TASK_NAME, ReservedNames::Win32::API::Error::ERROR_INVALID_THREAD_ID, ReservedNames::Win32::API::Error::ERROR_INVALID_TIME, ReservedNames::Win32::API::Error::ERROR_INVALID_TRANSFORM, ReservedNames::Win32::API::Error::ERROR_INVALID_USER_BUFFER, ReservedNames::Win32::API::Error::ERROR_INVALID_VERIFY_SWITCH, ReservedNames::Win32::API::Error::ERROR_INVALID_WINDOW_HANDLE, ReservedNames::Win32::API::Error::ERROR_INVALID_WINDOW_STYLE, ReservedNames::Win32::API::Error::ERROR_INVALID_WORKSTATION, ReservedNames::Win32::API::Error::ERROR_IOPL_NOT_ENABLED, ReservedNames::Win32::API::Error::ERROR_IO_DEVICE, ReservedNames::Win32::API::Error::ERROR_IO_INCOMPLETE, ReservedNames::Win32::API::Error::ERROR_IO_PENDING, ReservedNames::Win32::API::Error::ERROR_IRQ_BUSY, ReservedNames::Win32::API::Error::ERROR_IS_JOINED, ReservedNames::Win32::API::Error::ERROR_IS_JOIN_PATH, ReservedNames::Win32::API::Error::ERROR_IS_JOIN_TARGET, ReservedNames::Win32::API::Error::ERROR_IS_SUBSTED, ReservedNames::Win32::API::Error::ERROR_IS_SUBST_PATH, ReservedNames::Win32::API::Error::ERROR_IS_SUBST_TARGET, ReservedNames::Win32::API::Error::ERROR_ITERATED_DATA_EXCEEDS_64k, ReservedNames::Win32::API::Error::ERROR_JOIN_TO_JOIN, ReservedNames::Win32::API::Error::ERROR_JOIN_TO_SUBST, ReservedNames::Win32::API::Error::ERROR_JOURNAL_DELETE_IN_PROGRESS, ReservedNames::Win32::API::Error::ERROR_JOURNAL_ENTRY_DELETED, ReservedNames::Win32::API::Error::ERROR_JOURNAL_HOOK_SET, ReservedNames::Win32::API::Error::ERROR_JOURNAL_NOT_ACTIVE, ReservedNames::Win32::API::Error::ERROR_KEY_DELETED, ReservedNames::Win32::API::Error::ERROR_KEY_HAS_CHILDREN, ReservedNames::Win32::API::Error::ERROR_KM_DRIVER_BLOCKED, ReservedNames::Win32::API::Error::ERROR_LABEL_TOO_LONG, ReservedNames::Win32::API::Error::ERROR_LAST_ADMIN, ReservedNames::Win32::API::Error::ERROR_LB_WITHOUT_TABSTOPS, ReservedNames::Win32::API::Error::ERROR_LICENSE_QUOTA_EXCEEDED, ReservedNames::Win32::API::Error::ERROR_LISTBOX_ID_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_LM_CROSS_ENCRYPTION_REQUIRED, ReservedNames::Win32::API::Error::ERROR_LOCAL_USER_SESSION_KEY, ReservedNames::Win32::API::Error::ERROR_LOCKED, ReservedNames::Win32::API::Error::ERROR_LOCK_FAILED, ReservedNames::Win32::API::Error::ERROR_LOCK_VIOLATION, ReservedNames::Win32::API::Error::ERROR_LOGIN_TIME_RESTRICTION, ReservedNames::Win32::API::Error::ERROR_LOGIN_WKSTA_RESTRICTION, ReservedNames::Win32::API::Error::ERROR_LOGON_FAILURE, ReservedNames::Win32::API::Error::ERROR_LOGON_NOT_GRANTED, ReservedNames::Win32::API::Error::ERROR_LOGON_SESSION_COLLISION, ReservedNames::Win32::API::Error::ERROR_LOGON_SESSION_EXISTS, ReservedNames::Win32::API::Error::ERROR_LOGON_TYPE_NOT_GRANTED, ReservedNames::Win32::API::Error::ERROR_LOG_FILE_FULL, ReservedNames::Win32::API::Error::ERROR_LUIDS_EXHAUSTED, ReservedNames::Win32::API::Error::ERROR_MACHINE_LOCKED, ReservedNames::Win32::API::Error::ERROR_MAGAZINE_NOT_PRESENT, ReservedNames::Win32::API::Error::ERROR_MAPPED_ALIGNMENT, ReservedNames::Win32::API::Error::ERROR_MAX_SESSIONS_REACHED, ReservedNames::Win32::API::Error::ERROR_MAX_THRDS_REACHED, ReservedNames::Win32::API::Error::ERROR_MEDIA_CHANGED, ReservedNames::Win32::API::Error::ERROR_MEMBERS_PRIMARY_GROUP, ReservedNames::Win32::API::Error::ERROR_MEMBER_IN_ALIAS, ReservedNames::Win32::API::Error::ERROR_MEMBER_IN_GROUP, ReservedNames::Win32::API::Error::ERROR_MEMBER_NOT_IN_ALIAS, ReservedNames::Win32::API::Error::ERROR_MEMBER_NOT_IN_GROUP, ReservedNames::Win32::API::Error::ERROR_MENU_ITEM_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_MESSAGE_SYNC_ONLY, ReservedNames::Win32::API::Error::ERROR_METAFILE_NOT_SUPPORTED, ReservedNames::Win32::API::Error::ERROR_META_EXPANSION_TOO_LONG, ReservedNames::Win32::API::Error::ERROR_MOD_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_MONITORS_NOT_SUPPORTED, ReservedNames::Win32::API::Error::ERROR_MORE_DATA, ReservedNames::Win32::API::Error::ERROR_MORE_WRITES, ReservedNames::Win32::API::Error::ERROR_MR_MID_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_MUTUAL_AUTH_FAILED, ReservedNames::Win32::API::Error::ERROR_NEGATIVE_SEEK, ReservedNames::Win32::API::Error::ERROR_NESTING_NOT_ALLOWED, ReservedNames::Win32::API::Error::ERROR_NETLOGON_NOT_STARTED, ReservedNames::Win32::API::Error::ERROR_NETNAME_DELETED, ReservedNames::Win32::API::Error::ERROR_NETWORK_ACCESS_DENIED, ReservedNames::Win32::API::Error::ERROR_NETWORK_BUSY, ReservedNames::Win32::API::Error::ERROR_NETWORK_UNREACHABLE, ReservedNames::Win32::API::Error::ERROR_NET_WRITE_FAULT, ReservedNames::Win32::API::Error::ERROR_NOACCESS, ReservedNames::Win32::API::Error::ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT, ReservedNames::Win32::API::Error::ERROR_NOLOGON_SERVER_TRUST_ACCOUNT, ReservedNames::Win32::API::Error::ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT, ReservedNames::Win32::API::Error::ERROR_NONE_MAPPED, ReservedNames::Win32::API::Error::ERROR_NONPAGED_SYSTEM_RESOURCES, ReservedNames::Win32::API::Error::ERROR_NON_MDICHILD_WINDOW, ReservedNames::Win32::API::Error::ERROR_NOTIFY_ENUM_DIR, ReservedNames::Win32::API::Error::ERROR_NOT_ALL_ASSIGNED, ReservedNames::Win32::API::Error::ERROR_NOT_AUTHENTICATED, ReservedNames::Win32::API::Error::ERROR_NOT_CHILD_WINDOW, ReservedNames::Win32::API::Error::ERROR_NOT_CONNECTED, ReservedNames::Win32::API::Error::ERROR_NOT_CONTAINER, ReservedNames::Win32::API::Error::ERROR_NOT_CURRENT_CTRY, ReservedNames::Win32::API::Error::ERROR_NOT_DOS_DISK, ReservedNames::Win32::API::Error::ERROR_NOT_ENOUGH_MEMORY, ReservedNames::Win32::API::Error::ERROR_NOT_ENOUGH_QUOTA, ReservedNames::Win32::API::Error::ERROR_NOT_ENOUGH_SERVER_MEMORY, ReservedNames::Win32::API::Error::ERROR_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_NOT_FROZEN, ReservedNames::Win32::API::Error::ERROR_NOT_JOINED, ReservedNames::Win32::API::Error::ERROR_NOT_LOCKED, ReservedNames::Win32::API::Error::ERROR_NOT_LOGGED_ON, ReservedNames::Win32::API::Error::ERROR_NOT_LOGON_PROCESS, ReservedNames::Win32::API::Error::ERROR_NOT_OWNER, ReservedNames::Win32::API::Error::ERROR_NOT_READY, ReservedNames::Win32::API::Error::ERROR_NOT_REGISTRY_FILE, ReservedNames::Win32::API::Error::ERROR_NOT_SAME_DEVICE, ReservedNames::Win32::API::Error::ERROR_NOT_SUBSTED, ReservedNames::Win32::API::Error::ERROR_NOT_SUPPORTED, ReservedNames::Win32::API::Error::ERROR_NOT_SUPPORTED_ON_SBS, ReservedNames::Win32::API::Error::ERROR_NO_ASSOCIATION, ReservedNames::Win32::API::Error::ERROR_NO_CHILD_PROCESS, ReservedNames::Win32::API::Error::ERROR_NO_DATA, ReservedNames::Win32::API::Error::ERROR_NO_DATA_DETECTED, ReservedNames::Win32::API::Error::ERROR_NO_IMPERSONATION_TOKEN, ReservedNames::Win32::API::Error::ERROR_NO_INHERITANCE, ReservedNames::Win32::API::Error::ERROR_NO_ITEMS, ReservedNames::Win32::API::Error::ERROR_NO_LOGON_SERVERS, ReservedNames::Win32::API::Error::ERROR_NO_LOG_SPACE, ReservedNames::Win32::API::Error::ERROR_NO_MATCH, ReservedNames::Win32::API::Error::ERROR_NO_MEDIA_IN_DRIVE, ReservedNames::Win32::API::Error::ERROR_NO_MORE_DEVICES, ReservedNames::Win32::API::Error::ERROR_NO_MORE_FILES, ReservedNames::Win32::API::Error::ERROR_NO_MORE_ITEMS, ReservedNames::Win32::API::Error::ERROR_NO_MORE_SEARCH_HANDLES, ReservedNames::Win32::API::Error::ERROR_NO_MORE_USER_HANDLES, ReservedNames::Win32::API::Error::ERROR_NO_NETWORK, ReservedNames::Win32::API::Error::ERROR_NO_NET_OR_BAD_PATH, ReservedNames::Win32::API::Error::ERROR_NO_PROC_SLOTS, ReservedNames::Win32::API::Error::ERROR_NO_QUOTAS_FOR_ACCOUNT, ReservedNames::Win32::API::Error::ERROR_NO_RECOVERY_PROGRAM, ReservedNames::Win32::API::Error::ERROR_NO_SCROLLBARS, ReservedNames::Win32::API::Error::ERROR_NO_SECURITY_ON_OBJECT, ReservedNames::Win32::API::Error::ERROR_NO_SHUTDOWN_IN_PROGRESS, ReservedNames::Win32::API::Error::ERROR_NO_SIGNAL_SENT, ReservedNames::Win32::API::Error::ERROR_NO_SITENAME, ReservedNames::Win32::API::Error::ERROR_NO_SPOOL_SPACE, ReservedNames::Win32::API::Error::ERROR_NO_SUCH_ALIAS, ReservedNames::Win32::API::Error::ERROR_NO_SUCH_DOMAIN, ReservedNames::Win32::API::Error::ERROR_NO_SUCH_GROUP, ReservedNames::Win32::API::Error::ERROR_NO_SUCH_LOGON_SESSION, ReservedNames::Win32::API::Error::ERROR_NO_SUCH_MEMBER, ReservedNames::Win32::API::Error::ERROR_NO_SUCH_PACKAGE, ReservedNames::Win32::API::Error::ERROR_NO_SUCH_PRIVILEGE, ReservedNames::Win32::API::Error::ERROR_NO_SUCH_SITE, ReservedNames::Win32::API::Error::ERROR_NO_SUCH_USER, ReservedNames::Win32::API::Error::ERROR_NO_SYSTEM_MENU, ReservedNames::Win32::API::Error::ERROR_NO_SYSTEM_RESOURCES, ReservedNames::Win32::API::Error::ERROR_NO_TOKEN, ReservedNames::Win32::API::Error::ERROR_NO_TRACKING_SERVICE, ReservedNames::Win32::API::Error::ERROR_NO_TRUST_LSA_SECRET, ReservedNames::Win32::API::Error::ERROR_NO_TRUST_SAM_ACCOUNT, ReservedNames::Win32::API::Error::ERROR_NO_UNICODE_TRANSLATION, ReservedNames::Win32::API::Error::ERROR_NO_USER_SESSION_KEY, ReservedNames::Win32::API::Error::ERROR_NO_VOLUME_ID, ReservedNames::Win32::API::Error::ERROR_NO_VOLUME_LABEL, ReservedNames::Win32::API::Error::ERROR_NO_WILDCARD_CHARACTERS, ReservedNames::Win32::API::Error::ERROR_NT_CROSS_ENCRYPTION_REQUIRED, ReservedNames::Win32::API::Error::ERROR_NULL_LM_PASSWORD, ReservedNames::Win32::API::Error::ERROR_OLD_WIN_VERSION, ReservedNames::Win32::API::Error::ERROR_ONLY_IF_CONNECTED, ReservedNames::Win32::API::Error::ERROR_OPEN_FAILED, ReservedNames::Win32::API::Error::ERROR_OPEN_FILES, ReservedNames::Win32::API::Error::ERROR_OPERATION_ABORTED, ReservedNames::Win32::API::Error::ERROR_OPLOCK_NOT_GRANTED, ReservedNames::Win32::API::Error::ERROR_OUT_OF_PAPER, ReservedNames::Win32::API::Error::ERROR_OUT_OF_STRUCTURES, ReservedNames::Win32::API::Error::ERROR_OVERRIDE_NOCHANGES, ReservedNames::Win32::API::Error::ERROR_PAGED_SYSTEM_RESOURCES, ReservedNames::Win32::API::Error::ERROR_PAGEFILE_QUOTA, ReservedNames::Win32::API::Error::ERROR_PARTIAL_COPY, ReservedNames::Win32::API::Error::ERROR_PARTITION_FAILURE, ReservedNames::Win32::API::Error::ERROR_PASSWORD_EXPIRED, ReservedNames::Win32::API::Error::ERROR_PASSWORD_MUST_CHANGE, ReservedNames::Win32::API::Error::ERROR_PASSWORD_RESTRICTION, ReservedNames::Win32::API::Error::ERROR_PATCH_PACKAGE_INVALID, ReservedNames::Win32::API::Error::ERROR_PATCH_PACKAGE_OPEN_FAILED, ReservedNames::Win32::API::Error::ERROR_PATCH_PACKAGE_UNSUPPORTED, ReservedNames::Win32::API::Error::ERROR_PATH_BUSY, ReservedNames::Win32::API::Error::ERROR_PATH_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_PER_USER_TRUST_QUOTA_EXCEEDED, ReservedNames::Win32::API::Error::ERROR_PIPE_BUSY, ReservedNames::Win32::API::Error::ERROR_PIPE_CONNECTED, ReservedNames::Win32::API::Error::ERROR_PIPE_LISTENING, ReservedNames::Win32::API::Error::ERROR_PIPE_NOT_CONNECTED, ReservedNames::Win32::API::Error::ERROR_PKINIT_FAILURE, ReservedNames::Win32::API::Error::ERROR_POINT_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_POPUP_ALREADY_ACTIVE, ReservedNames::Win32::API::Error::ERROR_PORT_UNREACHABLE, ReservedNames::Win32::API::Error::ERROR_POSSIBLE_DEADLOCK, ReservedNames::Win32::API::Error::ERROR_POTENTIAL_FILE_FOUND, ReservedNames::Win32::API::Error::ERROR_PRINTER_ALREADY_EXISTS, ReservedNames::Win32::API::Error::ERROR_PRINTER_DELETED, ReservedNames::Win32::API::Error::ERROR_PRINTER_DRIVER_ALREADY_INSTALLED, ReservedNames::Win32::API::Error::ERROR_PRINTQ_FULL, ReservedNames::Win32::API::Error::ERROR_PRINT_CANCELLED, ReservedNames::Win32::API::Error::ERROR_PRIVATE_DIALOG_INDEX, ReservedNames::Win32::API::Error::ERROR_PRIVILEGE_NOT_HELD, ReservedNames::Win32::API::Error::ERROR_PROCESS_ABORTED, ReservedNames::Win32::API::Error::ERROR_PROC_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_PRODUCT_UNINSTALLED, ReservedNames::Win32::API::Error::ERROR_PRODUCT_VERSION, ReservedNames::Win32::API::Error::ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE, ReservedNames::Win32::API::Error::ERROR_PROFILE_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_PROTECTION_VIOLATION, ReservedNames::Win32::API::Error::ERROR_PROTOCOL_UNREACHABLE, ReservedNames::Win32::API::Error::ERROR_READ_FAULT, ReservedNames::Win32::API::Error::ERROR_REDIRECTOR_HAS_OPEN_HANDLES, ReservedNames::Win32::API::Error::ERROR_REDIR_PAUSED, ReservedNames::Win32::API::Error::ERROR_REGISTRY_CORRUPT, ReservedNames::Win32::API::Error::ERROR_REGISTRY_IO_FAILED, ReservedNames::Win32::API::Error::ERROR_REGISTRY_RECOVERED, ReservedNames::Win32::API::Error::ERROR_REG_NAT_CONSUMPTION, ReservedNames::Win32::API::Error::ERROR_RELOC_CHAIN_XEEDS_SEGLIM, ReservedNames::Win32::API::Error::ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED, ReservedNames::Win32::API::Error::ERROR_REMOTE_SESSION_LIMIT_EXCEEDED, ReservedNames::Win32::API::Error::ERROR_REM_NOT_LIST, ReservedNames::Win32::API::Error::ERROR_REQUEST_ABORTED, ReservedNames::Win32::API::Error::ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION, ReservedNames::Win32::API::Error::ERROR_REQ_NOT_ACCEP, ReservedNames::Win32::API::Error::ERROR_RESOURCE_DATA_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_RESOURCE_LANG_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_RESOURCE_NAME_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_RESOURCE_TYPE_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_RETRY, ReservedNames::Win32::API::Error::ERROR_REVISION_MISMATCH, ReservedNames::Win32::API::Error::ERROR_RING2SEG_MUST_BE_MOVABLE, ReservedNames::Win32::API::Error::ERROR_RING2_STACK_IN_USE, ReservedNames::Win32::API::Error::ERROR_RMODE_APP, ReservedNames::Win32::API::Error::ERROR_RXACT_COMMIT_FAILURE, ReservedNames::Win32::API::Error::ERROR_RXACT_INVALID_STATE, ReservedNames::Win32::API::Error::ERROR_SAME_DRIVE, ReservedNames::Win32::API::Error::ERROR_SCOPE_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_SCREEN_ALREADY_LOCKED, ReservedNames::Win32::API::Error::ERROR_SECRET_TOO_LONG, ReservedNames::Win32::API::Error::ERROR_SECTOR_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_SEEK, ReservedNames::Win32::API::Error::ERROR_SEEK_ON_DEVICE, ReservedNames::Win32::API::Error::ERROR_SEM_IS_SET, ReservedNames::Win32::API::Error::ERROR_SEM_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_SEM_OWNER_DIED, ReservedNames::Win32::API::Error::ERROR_SEM_TIMEOUT, ReservedNames::Win32::API::Error::ERROR_SEM_USER_LIMIT, ReservedNames::Win32::API::Error::ERROR_SERIAL_NO_DEVICE, ReservedNames::Win32::API::Error::ERROR_SERVER_DISABLED, ReservedNames::Win32::API::Error::ERROR_SERVER_HAS_OPEN_HANDLES, ReservedNames::Win32::API::Error::ERROR_SERVER_NOT_DISABLED, ReservedNames::Win32::API::Error::ERROR_SERVER_SHUTDOWN_IN_PROGRESS, ReservedNames::Win32::API::Error::ERROR_SERVICE_ALREADY_RUNNING, ReservedNames::Win32::API::Error::ERROR_SERVICE_CANNOT_ACCEPT_CTRL, ReservedNames::Win32::API::Error::ERROR_SERVICE_DATABASE_LOCKED, ReservedNames::Win32::API::Error::ERROR_SERVICE_DEPENDENCY_DELETED, ReservedNames::Win32::API::Error::ERROR_SERVICE_DEPENDENCY_FAIL, ReservedNames::Win32::API::Error::ERROR_SERVICE_DISABLED, ReservedNames::Win32::API::Error::ERROR_SERVICE_DOES_NOT_EXIST, ReservedNames::Win32::API::Error::ERROR_SERVICE_EXISTS, ReservedNames::Win32::API::Error::ERROR_SERVICE_LOGON_FAILED, ReservedNames::Win32::API::Error::ERROR_SERVICE_MARKED_FOR_DELETE, ReservedNames::Win32::API::Error::ERROR_SERVICE_NEVER_STARTED, ReservedNames::Win32::API::Error::ERROR_SERVICE_NOT_ACTIVE, ReservedNames::Win32::API::Error::ERROR_SERVICE_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_SERVICE_NOT_IN_EXE, ReservedNames::Win32::API::Error::ERROR_SERVICE_NO_THREAD, ReservedNames::Win32::API::Error::ERROR_SERVICE_REQUEST_TIMEOUT, ReservedNames::Win32::API::Error::ERROR_SERVICE_SPECIFIC_ERROR, ReservedNames::Win32::API::Error::ERROR_SERVICE_START_HANG, ReservedNames::Win32::API::Error::ERROR_SESSION_CREDENTIAL_CONFLICT, ReservedNames::Win32::API::Error::ERROR_SETCOUNT_ON_BAD_LB, ReservedNames::Win32::API::Error::ERROR_SETMARK_DETECTED, ReservedNames::Win32::API::Error::ERROR_SET_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_SET_POWER_STATE_FAILED, ReservedNames::Win32::API::Error::ERROR_SET_POWER_STATE_VETOED, ReservedNames::Win32::API::Error::ERROR_SHARING_BUFFER_EXCEEDED, ReservedNames::Win32::API::Error::ERROR_SHARING_PAUSED, ReservedNames::Win32::API::Error::ERROR_SHARING_VIOLATION, ReservedNames::Win32::API::Error::ERROR_SHUTDOWN_IN_PROGRESS, ReservedNames::Win32::API::Error::ERROR_SIGNAL_PENDING, ReservedNames::Win32::API::Error::ERROR_SIGNAL_REFUSED, ReservedNames::Win32::API::Error::ERROR_SINGLE_INSTANCE_APP, ReservedNames::Win32::API::Error::ERROR_SMARTCARD_SUBSYSTEM_FAILURE, ReservedNames::Win32::API::Error::ERROR_SOME_NOT_MAPPED, ReservedNames::Win32::API::Error::ERROR_SOURCE_ELEMENT_EMPTY, ReservedNames::Win32::API::Error::ERROR_SPECIAL_ACCOUNT, ReservedNames::Win32::API::Error::ERROR_SPECIAL_GROUP, ReservedNames::Win32::API::Error::ERROR_SPECIAL_USER, ReservedNames::Win32::API::Error::ERROR_STACK_OVERFLOW, ReservedNames::Win32::API::Error::ERROR_SUBST_TO_JOIN, ReservedNames::Win32::API::Error::ERROR_SUBST_TO_SUBST, ReservedNames::Win32::API::Error::ERROR_SUCCESS, ReservedNames::Win32::API::Error::ERROR_SUCCESS_REBOOT_INITIATED, ReservedNames::Win32::API::Error::ERROR_SWAPERROR, ReservedNames::Win32::API::Error::ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED, ReservedNames::Win32::API::Error::ERROR_SYSTEM_TRACE, ReservedNames::Win32::API::Error::ERROR_TAG_NOT_FOUND, ReservedNames::Win32::API::Error::ERROR_TAG_NOT_PRESENT, ReservedNames::Win32::API::Error::ERROR_THREAD_1_INACTIVE, ReservedNames::Win32::API::Error::ERROR_THREAD_ALREADY_IN_TASK, ReservedNames::Win32::API::Error::ERROR_TIMEOUT, ReservedNames::Win32::API::Error::ERROR_TIME_SKEW, ReservedNames::Win32::API::Error::ERROR_TLW_WITH_WSCHILD, ReservedNames::Win32::API::Error::ERROR_TOKEN_ALREADY_IN_USE, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_CMDS, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_CONTEXT_IDS, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_LINKS, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_LUIDS_REQUESTED, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_MODULES, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_MUXWAITERS, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_NAMES, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_OPEN_FILES, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_POSTS, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_SECRETS, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_SEMAPHORES, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_SEM_REQUESTS, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_SESS, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_SIDS, ReservedNames::Win32::API::Error::ERROR_TOO_MANY_TCBS, ReservedNames::Win32::API::Error::ERROR_TRANSFORM_NOT_SUPPORTED, ReservedNames::Win32::API::Error::ERROR_TRUSTED_DOMAIN_FAILURE, ReservedNames::Win32::API::Error::ERROR_TRUSTED_RELATIONSHIP_FAILURE, ReservedNames::Win32::API::Error::ERROR_TRUST_FAILURE, ReservedNames::Win32::API::Error::ERROR_UNABLE_TO_LOCK_MEDIA, ReservedNames::Win32::API::Error::ERROR_UNABLE_TO_MOVE_REPLACEMENT, ReservedNames::Win32::API::Error::ERROR_UNABLE_TO_MOVE_REPLACEMENT_2, ReservedNames::Win32::API::Error::ERROR_UNABLE_TO_REMOVE_REPLACED, ReservedNames::Win32::API::Error::ERROR_UNABLE_TO_UNLOAD_MEDIA, ReservedNames::Win32::API::Error::ERROR_UNCERTAIN_MEDIA, ReservedNames::Win32::API::Error::ERROR_UNEXP_NET_ERR, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_COMPONENT, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_FEATURE, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_PATCH, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_PORT, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_PRINTER_DRIVER, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_PRINTPROCESSOR, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_PRINT_MONITOR, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_PRODUCT, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_PROPERTY, ReservedNames::Win32::API::Error::ERROR_UNKNOWN_REVISION, ReservedNames::Win32::API::Error::ERROR_UNRECOGNIZED_MEDIA, ReservedNames::Win32::API::Error::ERROR_UNRECOGNIZED_VOLUME, ReservedNames::Win32::API::Error::ERROR_UNSUPPORTED_TYPE, ReservedNames::Win32::API::Error::ERROR_USER_DEFINED_BASE, ReservedNames::Win32::API::Error::ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED, ReservedNames::Win32::API::Error::ERROR_USER_EXISTS, ReservedNames::Win32::API::Error::ERROR_USER_MAPPED_FILE, ReservedNames::Win32::API::Error::ERROR_USER_PROFILE_LOAD, ReservedNames::Win32::API::Error::ERROR_VC_DISCONNECTED, ReservedNames::Win32::API::Error::ERROR_VIOKBD_REQUEST, ReservedNames::Win32::API::Error::ERROR_WAIT_NO_CHILDREN, ReservedNames::Win32::API::Error::ERROR_WINDOW_NOT_COMBOBOX, ReservedNames::Win32::API::Error::ERROR_WINDOW_NOT_DIALOG, ReservedNames::Win32::API::Error::ERROR_WINDOW_OF_OTHER_THREAD, ReservedNames::Win32::API::Error::ERROR_WORKING_SET_QUOTA, ReservedNames::Win32::API::Error::ERROR_WRITE_FAULT, ReservedNames::Win32::API::Error::ERROR_WRITE_PROTECT, ReservedNames::Win32::API::Error::ERROR_WRONG_DISK, ReservedNames::Win32::API::Error::ERROR_WRONG_PASSWORD, ReservedNames::Win32::API::Error::ERROR_WRONG_TARGET_NAME, ReservedNames::Win32::API::Error::ERR_TSTDUP, ReservedNames::Win32::API::Error::ERR_TSTOVFL, ReservedNames::Win32::API::Error::FORMAT_MESSAGE_ALLOCATE_BUFFER, ReservedNames::Win32::API::Error::FORMAT_MESSAGE_ARGUMENT_ARRAY, ReservedNames::Win32::API::Error::FORMAT_MESSAGE_FROM_HMODULE, ReservedNames::Win32::API::Error::FORMAT_MESSAGE_FROM_STRING, ReservedNames::Win32::API::Error::FORMAT_MESSAGE_FROM_SYSTEM, ReservedNames::Win32::API::Error::FORMAT_MESSAGE_IGNORE_INSERTS, ReservedNames::Win32::API::Error::FORMAT_MESSAGE_MAX_WIDTH_MASK, ReservedNames::Win32::API::Error::NO_ERROR, ReservedNames::Win32::API::Error::OR_INVALID_OID, ReservedNames::Win32::API::Error::OR_INVALID_OXID, ReservedNames::Win32::API::Error::OR_INVALID_SET, ReservedNames::Win32::API::Error::RPC_S_ADDRESS_ERROR, ReservedNames::Win32::API::Error::RPC_S_ALREADY_LISTENING, ReservedNames::Win32::API::Error::RPC_S_ALREADY_REGISTERED, ReservedNames::Win32::API::Error::RPC_S_BINDING_HAS_NO_AUTH, ReservedNames::Win32::API::Error::RPC_S_BINDING_INCOMPLETE, ReservedNames::Win32::API::Error::RPC_S_CALL_CANCELLED, ReservedNames::Win32::API::Error::RPC_S_CALL_FAILED, ReservedNames::Win32::API::Error::RPC_S_CALL_FAILED_DNE, ReservedNames::Win32::API::Error::RPC_S_CALL_IN_PROGRESS, ReservedNames::Win32::API::Error::RPC_S_CANNOT_SUPPORT, ReservedNames::Win32::API::Error::RPC_S_CANT_CREATE_ENDPOINT, ReservedNames::Win32::API::Error::RPC_S_COMM_FAILURE, ReservedNames::Win32::API::Error::RPC_S_DUPLICATE_ENDPOINT, ReservedNames::Win32::API::Error::RPC_S_ENTRY_ALREADY_EXISTS, ReservedNames::Win32::API::Error::RPC_S_ENTRY_NOT_FOUND, ReservedNames::Win32::API::Error::RPC_S_ENTRY_TYPE_MISMATCH, ReservedNames::Win32::API::Error::RPC_S_FP_DIV_ZERO, ReservedNames::Win32::API::Error::RPC_S_FP_OVERFLOW, ReservedNames::Win32::API::Error::RPC_S_FP_UNDERFLOW, ReservedNames::Win32::API::Error::RPC_S_GROUP_MEMBER_NOT_FOUND, ReservedNames::Win32::API::Error::RPC_S_GRP_ELT_NOT_ADDED, ReservedNames::Win32::API::Error::RPC_S_GRP_ELT_NOT_REMOVED, ReservedNames::Win32::API::Error::RPC_S_INCOMPLETE_NAME, ReservedNames::Win32::API::Error::RPC_S_INTERFACE_NOT_EXPORTED, ReservedNames::Win32::API::Error::RPC_S_INTERFACE_NOT_FOUND, ReservedNames::Win32::API::Error::RPC_S_INTERNAL_ERROR, ReservedNames::Win32::API::Error::RPC_S_INVALID_ASYNC_CALL, ReservedNames::Win32::API::Error::RPC_S_INVALID_ASYNC_HANDLE, ReservedNames::Win32::API::Error::RPC_S_INVALID_AUTH_IDENTITY, ReservedNames::Win32::API::Error::RPC_S_INVALID_BINDING, ReservedNames::Win32::API::Error::RPC_S_INVALID_BOUND, ReservedNames::Win32::API::Error::RPC_S_INVALID_ENDPOINT_FORMAT, ReservedNames::Win32::API::Error::RPC_S_INVALID_NAF_ID, ReservedNames::Win32::API::Error::RPC_S_INVALID_NAME_SYNTAX, ReservedNames::Win32::API::Error::RPC_S_INVALID_NETWORK_OPTIONS, ReservedNames::Win32::API::Error::RPC_S_INVALID_NET_ADDR, ReservedNames::Win32::API::Error::RPC_S_INVALID_OBJECT, ReservedNames::Win32::API::Error::RPC_S_INVALID_RPC_PROTSEQ, ReservedNames::Win32::API::Error::RPC_S_INVALID_STRING_BINDING, ReservedNames::Win32::API::Error::RPC_S_INVALID_STRING_UUID, ReservedNames::Win32::API::Error::RPC_S_INVALID_TAG, ReservedNames::Win32::API::Error::RPC_S_INVALID_TIMEOUT, ReservedNames::Win32::API::Error::RPC_S_INVALID_VERS_OPTION, ReservedNames::Win32::API::Error::RPC_S_MAX_CALLS_TOO_SMALL, ReservedNames::Win32::API::Error::RPC_S_NAME_SERVICE_UNAVAILABLE, ReservedNames::Win32::API::Error::RPC_S_NOTHING_TO_EXPORT, ReservedNames::Win32::API::Error::RPC_S_NOT_ALL_OBJS_EXPORTED, ReservedNames::Win32::API::Error::RPC_S_NOT_ALL_OBJS_UNEXPORTED, ReservedNames::Win32::API::Error::RPC_S_NOT_CANCELLED, ReservedNames::Win32::API::Error::RPC_S_NOT_LISTENING, ReservedNames::Win32::API::Error::RPC_S_NOT_RPC_ERROR, ReservedNames::Win32::API::Error::RPC_S_NO_BINDINGS, ReservedNames::Win32::API::Error::RPC_S_NO_CALL_ACTIVE, ReservedNames::Win32::API::Error::RPC_S_NO_CONTEXT_AVAILABLE, ReservedNames::Win32::API::Error::RPC_S_NO_ENDPOINT_FOUND, ReservedNames::Win32::API::Error::RPC_S_NO_ENTRY_NAME, ReservedNames::Win32::API::Error::RPC_S_NO_INTERFACES, ReservedNames::Win32::API::Error::RPC_S_NO_MORE_BINDINGS, ReservedNames::Win32::API::Error::RPC_S_NO_MORE_MEMBERS, ReservedNames::Win32::API::Error::RPC_S_NO_PRINC_NAME, ReservedNames::Win32::API::Error::RPC_S_NO_PROTSEQS, ReservedNames::Win32::API::Error::RPC_S_NO_PROTSEQS_REGISTERED, ReservedNames::Win32::API::Error::RPC_S_OBJECT_NOT_FOUND, ReservedNames::Win32::API::Error::RPC_S_OUT_OF_RESOURCES, ReservedNames::Win32::API::Error::RPC_S_PRF_ELT_NOT_ADDED, ReservedNames::Win32::API::Error::RPC_S_PRF_ELT_NOT_REMOVED, ReservedNames::Win32::API::Error::RPC_S_PROCNUM_OUT_OF_RANGE, ReservedNames::Win32::API::Error::RPC_S_PROFILE_NOT_ADDED, ReservedNames::Win32::API::Error::RPC_S_PROTOCOL_ERROR, ReservedNames::Win32::API::Error::RPC_S_PROTSEQ_NOT_FOUND, ReservedNames::Win32::API::Error::RPC_S_PROTSEQ_NOT_SUPPORTED, ReservedNames::Win32::API::Error::RPC_S_SEC_PKG_ERROR, ReservedNames::Win32::API::Error::RPC_S_SEND_INCOMPLETE, ReservedNames::Win32::API::Error::RPC_S_SERVER_TOO_BUSY, ReservedNames::Win32::API::Error::RPC_S_SERVER_UNAVAILABLE, ReservedNames::Win32::API::Error::RPC_S_STRING_TOO_LONG, ReservedNames::Win32::API::Error::RPC_S_TYPE_ALREADY_REGISTERED, ReservedNames::Win32::API::Error::RPC_S_UNKNOWN_AUTHN_LEVEL, ReservedNames::Win32::API::Error::RPC_S_UNKNOWN_AUTHN_SERVICE, ReservedNames::Win32::API::Error::RPC_S_UNKNOWN_AUTHN_TYPE, ReservedNames::Win32::API::Error::RPC_S_UNKNOWN_AUTHZ_SERVICE, ReservedNames::Win32::API::Error::RPC_S_UNKNOWN_IF, ReservedNames::Win32::API::Error::RPC_S_UNKNOWN_MGR_TYPE, ReservedNames::Win32::API::Error::RPC_S_UNSUPPORTED_AUTHN_LEVEL, ReservedNames::Win32::API::Error::RPC_S_UNSUPPORTED_NAME_SYNTAX, ReservedNames::Win32::API::Error::RPC_S_UNSUPPORTED_TRANS_SYN, ReservedNames::Win32::API::Error::RPC_S_UNSUPPORTED_TYPE, ReservedNames::Win32::API::Error::RPC_S_UUID_LOCAL_ONLY, ReservedNames::Win32::API::Error::RPC_S_UUID_NO_ADDRESS, ReservedNames::Win32::API::Error::RPC_S_WRONG_KIND_OF_BINDING, ReservedNames::Win32::API::Error::RPC_S_ZERO_DIVIDE, ReservedNames::Win32::API::Error::RPC_X_BAD_STUB_DATA, ReservedNames::Win32::API::Error::RPC_X_BYTE_COUNT_TOO_SMALL, ReservedNames::Win32::API::Error::RPC_X_ENUM_VALUE_OUT_OF_RANGE, ReservedNames::Win32::API::Error::RPC_X_INVALID_ES_ACTION, ReservedNames::Win32::API::Error::RPC_X_INVALID_PIPE_OBJECT, ReservedNames::Win32::API::Error::RPC_X_NO_MORE_ENTRIES, ReservedNames::Win32::API::Error::RPC_X_NULL_REF_POINTER, ReservedNames::Win32::API::Error::RPC_X_PIPE_CLOSED, ReservedNames::Win32::API::Error::RPC_X_PIPE_DISCIPLINE_ERROR, ReservedNames::Win32::API::Error::RPC_X_PIPE_EMPTY, ReservedNames::Win32::API::Error::RPC_X_SS_CANNOT_GET_CALL_HANDLE, ReservedNames::Win32::API::Error::RPC_X_SS_CHAR_TRANS_OPEN_FAIL, ReservedNames::Win32::API::Error::RPC_X_SS_CHAR_TRANS_SHORT_FILE, ReservedNames::Win32::API::Error::RPC_X_SS_CONTEXT_DAMAGED, ReservedNames::Win32::API::Error::RPC_X_SS_HANDLES_MISMATCH, ReservedNames::Win32::API::Error::RPC_X_SS_IN_NULL_CONTEXT, ReservedNames::Win32::API::Error::RPC_X_WRONG_ES_VERSION, ReservedNames::Win32::API::Error::RPC_X_WRONG_PIPE_ORDER, ReservedNames::Win32::API::Error::RPC_X_WRONG_PIPE_VERSION, ReservedNames::Win32::API::Error::RPC_X_WRONG_STUB_VERSION, ReservedNames::Win32::API::Error::SEM_FAILCRITICALERRORS, ReservedNames::Win32::API::Error::SEM_NOALIGNMENTFAULTEXCEPT, ReservedNames::Win32::API::Error::SEM_NOGPFAULTERRORBOX, ReservedNames::Win32::API::Error::SEM_NOOPENFILEERRORBOX, ReservedNames::Win32::API::Error::S_OK

Constants included from Mixin::ShellOut

Mixin::ShellOut::DEPRECATED_OPTIONS

Instance Attribute Summary collapse

Attributes inherited from Chef::Provider

#action, #cookbook_name, #current_resource, #new_resource, #recipe_name, #run_context

Instance Method Summary collapse

Methods included from Mixin::Command

#chdir_or_tmpdir, #handle_command_failures, #output_of_command, #run_command, #run_command_and_return_stdout_stderr, #run_command_with_systems_locale

Methods included from Mixin::Command::Unix

#popen4

Methods included from Mixin::Command::Windows

#popen4

Methods inherited from Chef::Provider

#action_nothing, #check_resource_semantics!, #cleanup_after_converge, #converge_by, #define_resource_requirements, #events, include_resource_dsl, include_resource_dsl_module, #initialize, #node, #process_resource_requirements, provides, provides?, #requirements, #resource_collection, #resource_updated?, #run_action, #set_updated_status, supports?, use_inline_resources, #whyrun_mode?

Methods included from DeprecatedLWRPClass

#const_missing, #register_deprecated_lwrp_class

Methods included from Mixin::Provides

#provided_as, #provides, #provides?

Methods included from Mixin::DescendantsTracker

descendants, #descendants, direct_descendants, #direct_descendants, find_descendants_by_name, #find_descendants_by_name, #inherited, store_inherited

Methods included from Mixin::PowershellOut

#powershell_out, #powershell_out!

Methods included from Mixin::WindowsArchitectureHelper

#assert_valid_windows_architecture!, #disable_wow64_file_redirection, #is_i386_process_on_x86_64_windows?, #node_supports_windows_architecture?, #node_windows_architecture, #restore_wow64_file_redirection, #valid_windows_architecture?, #with_os_architecture, #wow64_architecture_override_required?

Methods included from Mixin::ShellOut

#run_command_compatible_options, #shell_out, #shell_out!, #shell_out_with_systems_locale, #shell_out_with_systems_locale!

Constructor Details

This class inherits a constructor from Chef::Provider

Instance Attribute Details

#is_runningObject

Returns the value of attribute is_running



29
30
31
# File 'lib/chef/provider/route.rb', line 29

def is_running
  @is_running
end

Instance Method Details

#action_addObject



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/chef/provider/route.rb', line 131

def action_add
  # check to see if load_current_resource found the route
  if is_running
    Chef::Log.debug("#{@new_resource} route already active - nothing to do")
  else
    command = generate_command(:add)
    converge_by ("run #{ command } to add route") do
      run_command( :command => command )
      Chef::Log.info("#{@new_resource} added")
    end
  end

  #for now we always write the file (ugly but its what it is)
  generate_config
end

#action_deleteObject



147
148
149
150
151
152
153
154
155
156
157
158
159
160
# File 'lib/chef/provider/route.rb', line 147

def action_delete
  if is_running
    command = generate_command(:delete)
    converge_by ("run #{ command } to delete route ") do
      run_command( :command => command )
      Chef::Log.info("#{@new_resource} removed")
    end
  else
    Chef::Log.debug("#{@new_resource} route does not exist - nothing to do")
  end

  #for now we always write the file (ugly but its what it is)
  generate_config
end

#config_file_contents(action, options = {}) ⇒ Object



217
218
219
220
221
222
223
224
225
226
227
228
# File 'lib/chef/provider/route.rb', line 217

def config_file_contents(action, options={})
  content = ''
  case action
  when :add
    content << "#{options[:target]}"
    content << "/#{options[:netmask]}" if options[:netmask]
    content << " via #{options[:gateway]}" if options[:gateway]
    content << "\n"
  end

  return content
end

#generate_command(action) ⇒ Object



199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# File 'lib/chef/provider/route.rb', line 199

def generate_command(action)
  common_route_items = ''
  common_route_items << "/#{MASK[@new_resource.netmask.to_s]}" if @new_resource.netmask
  common_route_items << " via #{@new_resource.gateway} " if @new_resource.gateway

  case action
  when :add
    command = "ip route replace #{@new_resource.target}"
    command << common_route_items
    command << " dev #{@new_resource.device} " if @new_resource.device
  when :delete
    command = "ip route delete #{@new_resource.target}"
    command << common_route_items
  end

  return command
end

#generate_configObject



162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/chef/provider/route.rb', line 162

def generate_config
  conf = Hash.new
  case node[:platform]
  when "centos", "redhat", "fedora"
    # walk the collection
    run_context.resource_collection.each do |resource|
      if resource.is_a? Chef::Resource::Route
        # default to eth0
        if resource.device
          dev = resource.device
        else
          dev = "eth0"
        end

        conf[dev] = String.new if conf[dev].nil?
        case @action
        when :add
          conf[dev] << config_file_contents(:add, :target => resource.target, :netmask => resource.netmask, :gateway => resource.gateway)
        when :delete
          # need to do this for the case when the last route on an int
          # is removed
          conf[dev] << config_file_contents(:delete)
        end
      end
    end
    conf.each do |k, v|
      network_file_name = "/etc/sysconfig/network-scripts/route-#{k}"
      converge_by ("write route route.#{k}\n#{conf[k]} to #{ network_file_name }") do
        network_file = ::File.new(network_file_name, "w")
        network_file.puts(conf[k])
        Chef::Log.debug("#{@new_resource} writing route.#{k}\n#{conf[k]}")
        network_file.close
      end
    end
  end
end

#hex2ip(hex_data) ⇒ Object



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/chef/provider/route.rb', line 65

def hex2ip(hex_data)
  # Cleanup hex data
  hex_ip = hex_data.to_s.downcase.gsub(/[^0-9a-f]/, '')

  # Check hex data format (IP is a 32bit integer, so should be 8 chars long)
  return nil if hex_ip.length != hex_data.length || hex_ip.length != 8

  # Extract octets from hex data
  octets = hex_ip.scan(/../).reverse.collect { |octet| [octet].pack('H2').unpack("C").first }

  # Validate IP
  ip = octets.join('.')
  begin
    IPAddr.new(ip, Socket::AF_INET).to_s
  rescue ArgumentError
    Chef::Log.debug("Invalid IP address data: hex=#{hex_ip}, ip=#{ip}")
    return nil
  end
end

#load_current_resourceObject



89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/chef/provider/route.rb', line 89

def load_current_resource
  self.is_running = false

  # cidr or quad dot mask
  if @new_resource.netmask
    new_ip = IPAddr.new("#{@new_resource.target}/#{@new_resource.netmask}")
  else
    new_ip = IPAddr.new(@new_resource.target)
  end

  # For linux, we use /proc/net/route file to read proc table info
  if node[:os] == "linux"
    route_file = ::File.open("/proc/net/route", "r")

    # Read all routes
    while (line = route_file.gets)
      # Get all the fields for a route
      iface,destination,gateway,flags,refcnt,use,metric,mask,mtu,window,irtt = line.split

      # Convert hex-encoded values to quad-dotted notation (e.g. 0064A8C0 => 192.168.100.0)
      destination = hex2ip(destination)
      gateway = hex2ip(gateway)
      mask = hex2ip(mask)

      # Skip formatting lines (header, etc)
      next unless destination && gateway && mask
      Chef::Log.debug("#{@new_resource} system has route: dest=#{destination} mask=#{mask} gw=#{gateway}")

      # check if what were trying to configure is already there
      # use an ipaddr object with ip/mask this way we can have
      # a new resource be in cidr format (i don't feel like
      # expanding bitmask by hand.
      #
      running_ip = IPAddr.new("#{destination}/#{mask}")
      Chef::Log.debug("#{@new_resource} new ip: #{new_ip.inspect} running ip: #{running_ip.inspect}")
      self.is_running = true if running_ip == new_ip && gateway == @new_resource.gateway
    end

    route_file.close
  end
end

#whyrun_supported?Boolean

Returns:

  • (Boolean)


85
86
87
# File 'lib/chef/provider/route.rb', line 85

def whyrun_supported?
  true
end