CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2001
    Posts
    87

    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

  2. #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


  3. #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


  4. #4
    Join Date
    Apr 2001
    Posts
    87

    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
  •  





Click Here to Expand Forum to Full Width

Featured