Click to See Complete Forum and Search --> : C functin to VB API


CecileR
August 24th, 2001, 02:55 AM
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

berta
August 24th, 2001, 03:01 AM
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

berta
August 24th, 2001, 03:10 AM
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

CecileR
August 24th, 2001, 05:07 AM
ok thanks!!!it works.


cecile

The more u read, the more u do not know