|
-
Jan 6th, 2004, 11:17 AM
#1
Thread Starter
Addicted Member
RAS Dialer Question...
I'm going to be creating a dialup connection for an application I'm working on and I got some rasdialer api from some site, dont remember where...but it was vb6..during the conversion there was only one problem, some of the data types were declared as Any...since .NET doesnt support Any, I have to findout what types of data these are....could some1 please help...
Private Declare Function RasSetEntryProperties Lib "rasapi32.dll" Alias "RasSetEntryPropertiesA"(ByVal lpszPhonebook As String, ByVal lpszEntry As String, ByRef lpRasEntry As Any, ByVal dwEntryInfoSize As Integer, ByRef lpbDeviceInfo As Any, ByVal dwDeviceInfoSize As Integer) As Integer
Private Declare Function FormatMessage Lib "kernel32" Alias "FormatMessageA"(ByVal dwFlags As Integer, ByRef lpSource As Any, ByVal dwMessageId As Integer, ByVal dwLanguageId As Integer, ByVal lpBuffer As String, ByVal nSize As Integer, ByRef Arguments As Integer) As Integer
Private Declare Function RasGetEntryProperties Lib "rasapi32.dll" Alias "RasGetEntryPropertiesA"(ByVal lpszPhonebook As String, ByVal lpszEntry As String, ByRef lpRasEntry As Any, ByRef lpdwEntryInfoSize As Integer, ByRef lpbDeviceInfo As Any, ByRef lpdwDeviceInfoSize As Integer) As Integer
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory"(ByRef Destination As Any, ByRef Source As Any, ByVal Length As Integer)
Thanks in Advance!
AcE
-
Jan 6th, 2004, 11:30 AM
#2
Thread Starter
Addicted Member
nevermind, after looking over the code closer, i can see there are more problems..i think i will just compile the rasdialer code as a vb6 dll and import it into dotNET...any1 got any comments?
AcE
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|