Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. RasApi error

RasApi error

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kannan Ramanathan
    wrote on last edited by
    #1

    Hi all, I have a custom installer application for my driver. During the installation, it also creates a dialup entry. This works fine in WinXP and Win2K. But in Win98SE, the call RasSetEntryProperties() always returns fails, with an error code of 0x6f8. I tried finding what this error code means, but to no avail. The function RasGetErrorString(), when passed this error code, fails with an error code of 87. I am stuck here. Any ideas or suggestions on this problem is really appreciated.

    K M 2 Replies Last reply
    0
    • K Kannan Ramanathan

      Hi all, I have a custom installer application for my driver. During the installation, it also creates a dialup entry. This works fine in WinXP and Win2K. But in Win98SE, the call RasSetEntryProperties() always returns fails, with an error code of 0x6f8. I tried finding what this error code means, but to no avail. The function RasGetErrorString(), when passed this error code, fails with an error code of 87. I am stuck here. Any ideas or suggestions on this problem is really appreciated.

      K Offline
      K Offline
      Kannan Ramanathan
      wrote on last edited by
      #2

      Please remove [nospam] from my email ID for replying. I dont know why, but the forums is not allowing me to modify my msg anymore; says "You are not authorised to modify/delete". I guess, because of the email IDs mismatch, this error is coming. --------- Kannan Ramanathan kannan.ramanathan@st.com

      1 Reply Last reply
      0
      • K Kannan Ramanathan

        Hi all, I have a custom installer application for my driver. During the installation, it also creates a dialup entry. This works fine in WinXP and Win2K. But in Win98SE, the call RasSetEntryProperties() always returns fails, with an error code of 0x6f8. I tried finding what this error code means, but to no avail. The function RasGetErrorString(), when passed this error code, fails with an error code of 87. I am stuck here. Any ideas or suggestions on this problem is really appreciated.

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        I know number 87 - it's ERROR_INVALID_PARAMETER. I think error 0x6f8 (decimal 1784) should be interpreted as a Windows error code. Looking it up in WinError.h gives

        //
        // MessageId: ERROR_INVALID_USER_BUFFER
        //
        // MessageText:
        //
        // The supplied user buffer is not valid for the requested operation.
        //
        #define ERROR_INVALID_USER_BUFFER 1784L

        As for why this should happen: I don't know. Are you trying to pass a phonebook name? Windows 98 does not support multiple phonebooks - you must pass NULL for the first parameter.

        K 1 Reply Last reply
        0
        • M Mike Dimmick

          I know number 87 - it's ERROR_INVALID_PARAMETER. I think error 0x6f8 (decimal 1784) should be interpreted as a Windows error code. Looking it up in WinError.h gives

          //
          // MessageId: ERROR_INVALID_USER_BUFFER
          //
          // MessageText:
          //
          // The supplied user buffer is not valid for the requested operation.
          //
          #define ERROR_INVALID_USER_BUFFER 1784L

          As for why this should happen: I don't know. Are you trying to pass a phonebook name? Windows 98 does not support multiple phonebooks - you must pass NULL for the first parameter.

          K Offline
          K Offline
          Kannan Ramanathan
          wrote on last edited by
          #4

          Thanks Mike. I am passing NULL for the first parameter. The problem is, this call succeeds to create the dialup entry randomly. And, the remaining times, it returns this 0x6f8. Here is my code segment.. RASENTRY RasEntry; memset(&RasEntry,0,sizeof(RASENTRY)); RasEntry.dwSize = sizeof(RASENTRY); DWORD dwfOptions = RASEO_RemoteDefaultGateway | RASEO_DisableLcpExtensions | RASEO_ModemLights; RasEntry.dwfNetProtocols = RASNP_Ip; RasEntry.dwFramingProtocol = RASFP_Ppp; strcpy (RasEntry.szLocalPhoneNumber,CalledParty); strcpy (RasEntry.szDeviceType,RASDT_Isdn); strcpy (RasEntry.szDeviceName,DeviceName); RasEntry.dwfOptions = dwfOptions; dwError = RasSetEntryProperties( NULL, PvcName, &RasEntry,sizeof(RASENTRY), NULL,0 );

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups