[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

MprAdminUserGetInfo

Posted on 2006-04-10
6
Medium Priority
?
239 Views
Last Modified: 2013-12-03
I am trying to call this function to discover if a user has dial in rights on a Win2K domain.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/mpradminusergetinfo.asp

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.
0
Comment
Question by:tone28
  • 3
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 16423132
And, to mention that here, too:

RAS_USER_1 ru1;

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

Author Comment

by:tone28
ID: 16423463
The LPBYTE is what I was missing.

Thanks,

Can I award points here too or should this one be deleted?

Thanks again.
0
 
LVL 86

Accepted Solution

by:
jkr earned 1000 total points
ID: 16428620
Hard to tell, it depends what you would prefer - actualy, you might accept both Qs now without violating the rules ;o)
0
 
LVL 6

Author Comment

by:tone28
ID: 16428927
Ok!
0
 
LVL 86

Expert Comment

by:jkr
ID: 16428985
Thanks! Should we close the other one or delete it and move the points here?
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

872 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