Archive: Problem with RASAPI32


Problem with RASAPI32
Hi, I have to remove some entries in tha Remote Access Service and try to use RASAPI32. Here is the code snippet that doesn't work

StrCpy $R1 ""
StrCpy $R2 "randomRASentry"
SetPluginUnload alwaysoff
SetOutPath $PLUGINSDIR ; create temp directory
System::Call 'RASAPI32::RasDeleteEntry(t , t) i(r11, r12) .r10'
MessageBox MB_OK "$R0"
SetPluginUnload manual
System::Free 0
$R0 contain 621 after the call and randomRASentry is still making faces at me in the RAS.:hang:

Can somebody tell me what I'm doing wrong ?

Thanks in advance,

KenA

Are you using it on Windows 9x/ME? According to MSDN, the first parameter must always be NULL on Windows 9x/ME.


Originally posted by kichik
Are you using it on Windows 9x/ME? According to MSDN, the first parameter must always be NULL on Windows 9x/ME.
Hi kichik. I will be using it on Windows 9x -> XP. Changing the line to System::Call 'rasapi32::RasDeleteEntry(n , t r12) i .r10' did the trick. Thank you for your help.

KenA