[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Creating phone book entry in RAS

Posted on 1998-07-03
3
Medium Priority
?
281 Views
Last Modified: 2013-12-03
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
0
Comment
Question by:mike_marquet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
BlackMan earned 60 total points
ID: 1409350
You need the RAS API Extensions found at http://www.microsoft.com/win32dev/apiext/rasapi.htm

Then you can use the following procedure:
The RasSetEntryProperties functions changes the properties of a specified phonebook entry. This function can also be used to create a new phonebook entry.

0
 

Author Comment

by:mike_marquet
ID: 1409351
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");
 }

0
 
LVL 7

Expert Comment

by:BlackMan
ID: 1409352
I'm soyyr, I can't help you, I've never used it myself..
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question