|
-
August 24th, 2001, 02:55 AM
#1
C functin to VB API
this is a C function and it can be converted to an API ..RasAdminUserInfo using rasapi.dll.
I dont know how to declare a variables like that one and use it in a code.
can someone help me how will i make that kind of variables in the function and fit it in the function.
DWORD RasAdminUserSetInfo(
const WCHAR *lpszUserAccountServer,
const WCHAR *lpszUser,
const PRAS_USER_0 pRasUser0 );
thank you.
ces
The more u read, the more u do not know
-
August 24th, 2001, 03:01 AM
#2
Re: C functin to VB API
try so.... but... U must specify what's PRAS_USER_0.
Public Declare Function RasAdminUserInfo Lib "rasapi.dll" Alias "RasAdminUserInfo"
(byval lpszUserAccountServer as string, byval lpszUser as string, PRAS_USER_0 pRasUser0 ) As Long
what's PRAS_USER_0?? if it's a struct U must declare a relative Type...
hi,brt
-
August 24th, 2001, 03:10 AM
#3
Re: C functin to VB API
well I found PRAS_USER_0...
const RASSAPI_MAX_PHONENUMBER_SIZE = 255 'U must specify the correct value
Type PRAS_USER_0
bfPrivilege As Byte
szPhoneNumber As String * RASSAPI_MAX_PHONENUMBER_SIZE
End Type
-
August 24th, 2001, 05:07 AM
#4
Re: C functin to VB API
ok thanks!!!it works.
cecile
The more u read, the more u do not know
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
|