How To Call NetUserGetInfo from Visual Basic (151774)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q151774 SUMMARY
The NetUserGetInfo function is a Unicode-only Windows NT API. The last
parameter of this function is a pointer to a pointer to a structure whose
members contain DWORD data and pointers to Unicode strings. In order to
call this function correctly from a Visual Basic application, you need to
de-reference the pointer returned by the function and then you need to
convert the Visual Basic string to a Unicode string and vice versa. This
article illustrates these techniques in an example that calls
NetUserGetInfo to retrieve a USER_INFO_3 structure from a Visual Basic
application.
REFERENCESFor additional information on retrieving data for domain users, click the article number below
to view the article in the Microsoft Knowledge Base:
187535 How To Change Passwords Programmatically in Windows NT
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbAPI kbhowto kbnetwork KB151774 |
---|
|