Link to home
Start Free TrialLog in
Avatar of mike_marquet
mike_marquet

asked on

Creating phone book entry in RAS

Hi,

How can I create a new phone book entry without displaying the dialob box that
make this possible.

The function 'RasCreatePhonebookEntry' displays a dialog box in which the user types information
for the phone book entry. But I want to create one without this dialog box.

I samply want to create a default one.

It must works under win95 at WinNT4.

Thanks,
Mike
ASKER CERTIFIED SOLUTION
Avatar of BlackMan
BlackMan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mike_marquet
mike_marquet

ASKER

When I call this function I became systematically
ERROR_INVALID_PARAMETER. Why ?

Source code :
------------------

void MyApp::OnMenu_SetDefaultEntry
 {
  if (RasValidateEntryName(NULL, "My Entry")) return;

  RASENTRY stRasEntry = {0};
  DWORD    dwSize, dwError;

  dwSize = stRasEntry.dwSize = sizeof(RASENTRY);

  dwError = RasSetEntryProperties(NULL, "My Entry", &stRasEntry, dwSize, NULL, 0);
  if (dwError)
   AfxMessageBox("ERROR");
 }

I'm soyyr, I can't help you, I've never used it myself..