Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Problem with RASAPI32 (http://forums.winamp.com/showthread.php?t=205452)

KenA 20th January 2005 16:42

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
Quote:

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

kichik 20th January 2005 17:52

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

KenA 21st January 2005 08:27

Quote:

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


All times are GMT. The time now is 05:03.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.