Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Programmatically invoking the select domain\user dialog on Windows 7

50 views
Skip to first unread message

Jon Scott

unread,
Nov 10, 2009, 11:00:48 AM11/10/09
to
Hello,

There are undocumented functions in netui2.dll to invoke the select
domain\user dialog which we use throughout our application:
OpenUserBrowser(), EnumUserBrowserSelection(), and CloseUserBrowser(). On
Vista the netui2.dll, netui1.dll, and netui0.dll files don't exist so we
ended up copying them to the System32 folder which solved our problem.
However, on Windows 7, the netui*.dll as well as the required netrap.dll
don't exist, and simply copying all of them to the System32 folder is not
enough since required netapi32.dll functions have changed in Windows 7
making loading the netui2.dll to fail.

We could simply just copy all 5 dlls to our application folder (netui2.dll,
netui1.dll, netui0.dll, netrap.dll, netapi32.dll) and load netui2.dll from
our app folder, which seems to work fine in our tests. Instead of going
this route, is there an existing API in Windows 7 to invoke the select
domain\user dialog that we can implement in our product? BTW, we use these
functions in Delphi as well as C#.

Thanks,
Jon.


0 new messages