asiasoft
asked on
Displaying PopUp Terminal window (dialup networking)
I'm in process developing RAS connection program for NT using VB5.
In this case I have used several RAS API functions, in order to access to dial up networking. What I'd like to do is : each time my program dials out, I want to see the 'Pop UpTerminal Window' (as we usually see when we dial out thru normal NT dialup networking menu).
Does anyone know how to activate this terminal window from RAS API function ? (or maybe there is another way instead of using API fucntion ?)
thanks
In this case I have used several RAS API functions, in order to access to dial up networking. What I'd like to do is : each time my program dials out, I want to see the 'Pop UpTerminal Window' (as we usually see when we dial out thru normal NT dialup networking menu).
Does anyone know how to activate this terminal window from RAS API function ? (or maybe there is another way instead of using API fucntion ?)
thanks
Sorry, it should be:
The RASENTRY structure contains the member dwfOptions to which you can apply the flags,
RASEO_TerminalBeforeDial
If this flag is set, RAS displays a terminal window for user input before dialing the connection.
RASEO_TerminalAfterDial
If this flag is set, RAS displays a terminal window for user input after dialing the connection.
The RASENTRY structure contains the member dwfOptions to which you can apply the flags,
RASEO_TerminalBeforeDial
If this flag is set, RAS displays a terminal window for user input before dialing the connection.
RASEO_TerminalAfterDial
If this flag is set, RAS displays a terminal window for user input after dialing the connection.
ASKER
Could you give me a more detailed info about how to use RasSetEntryProperties() function ? It's new for me and I have no reference about that function. Please specify how to pass the related parameter to set the flags you just mentioned, like as follows :
RasSetEntryProperties(para m1,parm2,e tc)
i would be happy if you can give the detailed steps about how to get this thing works.
thanks
RasSetEntryProperties(para
i would be happy if you can give the detailed steps about how to get this thing works.
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry for giving you late response.
But seems that I still have problem. Since I'm more familiar with Vb 5.0, could you tell me what is the value of the constant variable of RASEO_TerminalAfterDial ?
IF you're also familiar with VB would you also tell me how to declare the api functions for RasGetentryProperties as well as RasSetentryProperties in VB ? (I have difficulty in translating the "C" variable type into VB's variable type).
Thanks
But seems that I still have problem. Since I'm more familiar with Vb 5.0, could you tell me what is the value of the constant variable of RASEO_TerminalAfterDial ?
IF you're also familiar with VB would you also tell me how to declare the api functions for RasGetentryProperties as well as RasSetentryProperties in VB ? (I have difficulty in translating the "C" variable type into VB's variable type).
Thanks
The value of RASEO_TerminalAfterDial is 0x00000080 in hex (128 in decimal). Sorry, I am not familiar with VB. You may check with some other similar functions. Or, I can explain the C types to you.
ASKER
Must confirm with you one thing :
the functions are inside 'RasApi32.dll", is that right ?
But when I call this function from my program, I got :
"Cannot find the .dll entry point for RasGetEntryProperties"
Have you typed the function name correctly ?
Oh, yes, I still tested this function on my win95 machine. are the functions also applicable on this platform ?
Please comment, (i'm still working on it).
the functions are inside 'RasApi32.dll", is that right ?
But when I call this function from my program, I got :
"Cannot find the .dll entry point for RasGetEntryProperties"
Have you typed the function name correctly ?
Oh, yes, I still tested this function on my win95 machine. are the functions also applicable on this platform ?
Please comment, (i'm still working on it).
Yes, they reside in RasApi32.dll. Keep in mind that the function names are actually macros. Use either RasGetEntryPropertiesA for ANSI version or RasGetEntryPropertiesW for Unicode version.
According to the documentation, Windows 95 does not support these two functions.
According to the documentation, Windows 95 does not support these two functions.
ASKER
Yes, I must test it directly on my NT.
The error disappears already, but when I check the return code (after calling RasGetEntryProperties), the result is 632 (decimal). Could you provide me with the error code description for the specified error ?
thanks
The error disappears already, but when I check the return code (after calling RasGetEntryProperties), the result is 632 (decimal). Could you provide me with the error code description for the specified error ?
thanks
The error is ERROR_INVALID_SIZE ("The structure size is incorrect."). It is likely that you didn't set the dwSize member of RASENTRY structure correctly before calling RasGetEntryProperties(). It must be sizeof(RASENTRY), which is 1768 (decimal) without the final (WINVER >= 0x401) part.
ASKER
Well, now I got another return code = 621.
Could you tell me what it means ?
thanx
Could you tell me what it means ?
thanx
That's ERROR_CANNOT_OPEN_PHONEBOO K ("Cannot open the phone book file.").
ASKER
Chensu, my program still fails to call this function. It doesn't return any return code, and my program makes my NT run very slowly. I'm sure it's caused by my program that calls this function improperly.
Do you still have any suggestion ?
Do you still have any suggestion ?
I would suggest that you make a small program first, which does nothing other than changing this setting. After running this program, look at the phone book properties to see if the setting has changed.
ASKER
Chensu, I have followed your suggestion, but still the same problem occurs. And still I have no idea which part of my little program that caused this such problem.
I allege that I may have defined the RASENTRY structure wrongly in VB. So, I think I need to consult with the vb expert in this case. Anyway thanks so much for your efforts so far. At least you have given me a clearer direction.
regards.
I allege that I may have defined the RASENTRY structure wrongly in VB. So, I think I need to consult with the vb expert in this case. Anyway thanks so much for your efforts so far. At least you have given me a clearer direction.
regards.
RASEO_TerminalBeforeDial
If this flag is set, RAS displays a terminal window for user input before dialing the connection.
RASEO_TerminalAfterDial
If this flag is set, RAS displays a terminal window for user input after dialing the connection.