Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4619822
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:28:35+00:00 2026-05-22T02:28:35+00:00

I am basically trying to connect to a VPN connection using the windows api.

  • 0

I am basically trying to connect to a VPN connection using the windows api.
It works like a charm on any windows 32bit systems. It always connects.
But when I try to connect it on a 64 bit system. It always fails.
Please could you suggest, if I am doing anything wrong.

This is my code:

    LPRASDIALPARAMS      rdParams; 
    DWORD               cb = sizeof(RASDIALPARAMS);
    rdParams = (LPRASDIALPARAMS)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, cb); 
    rdParams->dwSize = sizeof(RASDIALPARAMS);
    dwError |= StringCbCopyW( rdParams->szEntryName,
        sizeof(rdParams->szEntryName), yourProfile.c_str() );
    dwError |= StringCbCopyW( rdParams->szPhoneNumber,
        sizeof(rdParams->szPhoneNumber), yourUrl.c_str() );
    dwError |= StringCbCopyW( rdParams->szUserName,
        sizeof(rdParams->szUserName), yourUser.c_str());
    dwError |= StringCbCopyW( rdParams->szPassword,
        sizeof(rdParams->szPassword), yourPassword.c_str() );
    dwError |= StringCbCopyW( rdParams->szDomain,
        sizeof(rdParams->szDomain), yourGroupName.c_str());
    dwError |= StringCbCopyW( rdParams->szDomain,
        sizeof(rdParams->szDomain), L"\0");

    HRASCONN hRasConn = NULL;
    DWORD dwRet = RasDial( NULL, pbkPath.c_str(),
        rdParams, 0, 0L, &hRasConn );

Is there anything that I need to set specific to 64bit systems.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:28:36+00:00Added an answer on May 22, 2026 at 2:28 am

    Basically you would need to access the dll or lib from a 64bit application instead of 32bit. make sure your application is a 64bit app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically what I'm trying to achieve is a program which allow users to connect
I would like to connect to a SOAP web service using C#. Before I
I'm trying to compare the content of 2 arrays, basically I'm using a shopping
I'm basically trying to figure out the simplest way to perform your basic insert
I'm basically trying to teach myself how to code and I want to follow
I am basically trying to trigger a function if the footer is inside the
I'm basically trying to convert a Unix timestamp (the time() function) to a relative
I am trying to understand dynamic linq and expression trees. Very basically trying to
I'm not too familiar with networking in JAVA but what i'm basically trying to
My code below won't compile. What am i doing wrong? I'm basically trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.