469,890 Members | 1,432 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,890 developers. It's quick & easy.

PLS HELP: Active Directory search dialog

Hi,

I'm trying to find a way to call a standard ActiveDirectory search
dialog from my C# app, so i can pick a domain or computer user an
dreturn it to the app. It's a search like one showing when you call:

rundll32 dsquery,OpenQueryWindow

I'm sure there is a Win32 API method to do that but i can't find one.

Any ideas would be highly appreciated!

Thank you,
Andrey
Mar 15 '07 #1
3 5568
Hi Andrey,

As far as I know, there are many methods we can use for querying Active
Directory in .net application. But I'm afraid it is not possible to call
the standard Active Directory Search Dialog and return the result to .net
application. If you need this feature, I think we should have to create a
dialog to query Active Directory and return the selected user or computer
manual.
Such as the following sample from codeproject website.
http://www.codeproject.com/dotnet/activedirquery.asp
[Querying Active Directory using .NET classes and LDAP queries]

Also I will try to performance more research these days to check whether
there is any other simple way to achieve this and reply you if I get any
information.

Thanks for your understanding,
Sincerely,
Wen Yuan

Mar 16 '07 #2
Hi Andrey,
Thanks for your waiting.

I have received clarification from our product development team.

Active Directory Search Dialog is part of the Object Picker dialogs. It's
not directly accessible from C#. It's all native code, with no plans to
port to managed code or the S.DS namespace...This type of dialog is not
generally accessible to applications. You would have to use the .NET
namespaces for AD to recreate the dialog box and its functionality, as in
my first reply.

If you have anything unclear or any more question on this issue, please
feel free to update here. I'm glad to help you.

Have a great day,
Sincerely,
Wen Yuan

Mar 19 '07 #3
WenYuan Wang wrote:
Hi Andrey,
Thanks for your waiting.

I have received clarification from our product development team.

Active Directory Search Dialog is part of the Object Picker dialogs. It's
not directly accessible from C#. It's all native code, with no plans to
port to managed code or the S.DS namespace...This type of dialog is not
generally accessible to applications. You would have to use the .NET
namespaces for AD to recreate the dialog box and its functionality, as in
my first reply.

If you have anything unclear or any more question on this issue, please
feel free to update here. I'm glad to help you.

Have a great day,
Sincerely,
Wen Yuan
Hi Wen,

I just created my own search dialog based on the link you provided.

Thank you,
Andrey
Mar 19 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Amadelle | last post: by
1 post views Thread by tangus via DotNetMonster.com | last post: by
3 posts views Thread by Adrian Parker | last post: by
1 post views Thread by Rahul | last post: by
reply views Thread by Chung Leong | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.