MprAdminUserGetInfo - ?? Zoinks ??

Posted on 2006-04-10
Last Modified: 2010-08-05
I am trying to call this function to discover if a user has dial in rights on a Win2K domain.

I am getting an error when trying to pass the RAS_USER_0 struct to the lpbyte (4th arg)

Any ideas?

I need a quick answer so any help would be.....uh helpful.
Question by:tone28
    LVL 86

    Expert Comment

    What error exactly?
    LVL 86

    Accepted Solution

    BTW, that is to be used like e.g.

    RAS_USER_1 ru1;

    MprAdminUserGetInfo(L"\\\\TheServer",L"JoeUser",1,(LPBYTE) &ru1);

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
    This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
    The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now