RAS Function Reference

sRASErrMsg

RAS Function Reference

This function retrieves a string value of the specified error number.

<DllImport("SapphireRAS.dll")> _
Public Sub sRASErrMsg(ByVal sErrorText As String, ByVal lError As Integer)
End Sub

Parameters

  sErrorText
    A string variable used to store the text description of the error. If the error number was not recognised the value will be 'Undefined Error'.
  lStatus
    An integer value specifiying the error number to lookup.

Return Values

  Returns a number indicating success or failure where 0 is successful. Use sRASErrMsg to get a string version of the error message.

 

Error Message Values

Error Number

Message Returned by sRASErrMsg

123

Phone Book Entry Invalid Name

183

Phone Book Entry Already Exists

601

Invalid Port Handle

602

Port Already Open

603

Buffer Too Small

604

Wrong Info Specified

605

Cannot Set Port Info

606

Port Not Connected

607

Event Invalid

608

Device Does Not Exist

609

Device Type Does Not Exist

610

Buffer Invalid

611

Route Not Available

612

Route Not Allocated

613

Invalid Compression Specified

614

Out Of Buffers

615

Port Not Found

616

Async Request Pending

617

Already Disconnecting

618

Port Not Open

619

Port Disconnected

620

No End Points

621

Can Not Open Phone Book

622

Can Not Load Phone Book

623

Can Not Find Phone Book Entry

624

Can Not Write Phone Book

625

Corrupt Phone Book

626

Cannot Load String

627

Key Not Found

628

Disconnection

629

Remote Disconnection

630

Hardware Failure

631

User Disconnection

632

Invalid Size

633

Port Not Available

634

Can Not Project Client

635

Unknown

636

Wrong Device Attached

637

Bad String

638

Request Timeout

639

Can Not Get Lana

640

Net Bios Error

641

Server Out Of Resources

642

Name Exists On Net

643

Server General Net Failure

644

Alias Not Added

645

Auth Internal

646

Restricted Logon Hours

647

Acct Disabled

648

Password Expired

649

No Dialing Permission

650

Server Not Responding

651

From Device

652

Unrecognised Response

653

Macro Not Found

654

Macro Not Defined

655

Message Macro Not Found

656

Default Off Macro Not Found

657

File Could Not Be Opened

658

Device Name Too Long

659

Device Name Not Found

660

No Responses

661

No Command Found

662

Wrong Key Specified

663

Unknown Device Type

664

Allocating Memory

665

Port Not Configured

666

Device Not Ready

667

Reading Ini File

668

No Connection

669

Bad Usage In Ini File

670

Reading Section Name

671

Reading Device Type

672

Reading Device Name

673

Reading Usage

674

Reading Max Connection BPS

675

Reading Max Carrier BPS

676

Line Busy

677

Voice Answer

678

No Answer

679

No Carrier

680

No Dial Tone

681

In Command

682

Writing Section Name

683

Writing Device Type

684

Writing Device Name

685

Writing Max Connection BPS

686

Writing Max Carrier BPS

687

Writing Usage

688

Writing Default Off

689

Reading Default Off

690

Empty Ini File

691

Authentication Failure

692

Port Or Device

693

Not Binary Macro

694

DCB Not Found

695

State Machines Not Started

696

State Machines Already Started

697

Partial Response Looping

698

Unknown Response Key

699

Receive Buffer Full

700

Command Too Long

701

Unsupported BPS

702

Unexpected Response

703

Interactive Mode

704

Bad Callback Number

705

Invalid Auth State

706

Writing Init BPS

707

X25 Diagnostic

708

Account Expired

709

Changing Password

710

Overrun

711

RAS Manager Can Not Initialise

712

Biplex Port Not Available

713

No Active ISDN Lines

714

No ISDN Channels Available

715

Too Many Line Errors

716

IP Configuration

717

No IP Addresses

718

PPP Timeout

719

PPP Remote Terminated

720

PPP No Protocols Configured

721

PPP No Response

722

PPP Invalid Packet

723

Phone Number Too Long

724

IPXCP No Dial Out Configured

725

IPXCP No Dialing Configured

726

IPXCP Dial Out Already Active

727

Accessing TCPCFGDLL

728

No IP RAS Adapter

729

SLIP Requires IP

730

Projection Not Complete

731

Protocol Not Configured

732

PPP Not Configured

733

PPP CP Rejected

734

PPP LCP Terminated

735

PPP Required Address Rejected

736

PPP NCP Terminated

737

PPP Loopback Detected

738

PPP No Address Assigned

739

Can Not Use Logon Credentials

740

TAPI Configuration

741

No Local Encryption

742

No Remote Encryption

743

Remote Requires Encryption

744

IPXCP Net Number Conflict

745

Invalid SMM

746

SMM Uninitialized

747

No MAC For Port

748

SMM Timeout

749

Bad Phone Number

750

Wrong Module

751

PPP MAC

752

PPP LCP

753

PPP Auth

754

PPP NCP

755

Power Off

756

Power Off CD

Other

Undefined Error