PLS HELP: Active Directory search dialog

  • Thread starter Thread starter MuZZy
  • Start date Start date
M

MuZZy

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
 
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
 
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
 
WenYuan said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top