Starting and stopping RAS service in VB6 using APIs
- From: Giulio D'Ottavio <Giulio D'Ottavio@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 10 Dec 2008 09:20:02 -0800
Hello everybody!!
I have to write a small program which, among the other things, must allow to
start and stop the RAS service (only the start and the stop, without any
other configuration or behavior setting function). I was looking around but I
only found that there are 2 functions (MprAdminInitializeDll and
MprAdminTerminateDll) which should do what I need, but VB6 can't find the DLL
entry point in mprapi.dll
This is my code:
Private Declare Function MprAdminInitializeDll Lib "mprapi.dll" () As Long
Private Sub Command1_Click()
Dim res As Long
res = MprAdminInitializeDll
End Sub
Where's my mistake?
Are these the correct APIs?
Do I need anything else?
Is there another way to perform my needs?
I necessarily have to use Visual Studio 6 (I would prefer VB6, because I
have to integrate this function into an already existing VERY complex
software).
Thanks to everyone!!
Giulio D'Ottavio
.
- Follow-Ups:
- RE: Starting and stopping RAS service in VB6 using APIs
- From: Giulio D''Ottavio
- RE: Starting and stopping RAS service in VB6 using APIs
- Prev by Date: Re: WlanSetProfileEapXmlUserData Security Context Question
- Next by Date: Re: WlanSetProfileEapXmlUserData Security Context Question
- Previous by thread: remote credetionals
- Next by thread: RE: Starting and stopping RAS service in VB6 using APIs
- Index(es):