Home All Groups Group Topic Archive Search About

Domain search like setting file permissions

Author
16 Mar 2006 5:12 PM
Scott M
I would like to create the shell dialog box that opens the search box that
allows a user to search for groups, users and or computers on a local
machine of on a domain (Like choosing domain users when setting file
permissions).  Does anyone have a nice .Net wrapper that I can use to
accomplish this or know where I can find it online?

Thanks Much!!

Scott

Author
17 Mar 2006 5:46 AM
Peter Huang" [MSFT]
Hi Scott,

Based on my research, here is a sample on codeproject for your referecne.
Using the Windows 2000/XP Object Selection Dialog
http://www.thecodeproject.com/w2k/BfObjectSelection2.asp

We have unmanaged C++ Document about using the dialog, but we did not
provide an official dotnet Wrap.
Directory Object Picker
http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library...


Best regards,


Peter Huang
Microsoft Online Partner Support


Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

This response contains a reference to a third party World Wide Web site.
Microsoft is providing this information as a convenience to you. Microsoft
does not control these sites and has not tested any software or information
found on these sites; therefore, Microsoft cannot make any representations
regarding the quality, safety, or suitability of any software or
information found there. There are inherent dangers in the use of any
software found on the Internet, and Microsoft cautions you to make sure
that you completely understand the risk before retrieving any software from
the Internet.
Author
4 Apr 2006 7:17 PM
Scott M
That looks like exactly like what I need!!!

Is there a way I could get rid of that COM wrapper class?

Show quoteHide quote
""Peter Huang" [MSFT]" <v-phu***@online.microsoft.com> wrote in message
news:JyAKeYYSGHA.2596@TK2MSFTNGXA03.phx.gbl...
> Hi Scott,
>
> Based on my research, here is a sample on codeproject for your referecne.
> Using the Windows 2000/XP Object Selection Dialog
> http://www.thecodeproject.com/w2k/BfObjectSelection2.asp
>
> We have unmanaged C++ Document about using the dialog, but we did not
> provide an official dotnet Wrap.
> Directory Object Picker
> http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library...
>
>
> Best regards,
>
>
> Peter Huang
> Microsoft Online Partner Support
>
>
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> This response contains a reference to a third party World Wide Web site.
> Microsoft is providing this information as a convenience to you. Microsoft
> does not control these sites and has not tested any software or
> information
> found on these sites; therefore, Microsoft cannot make any representations
> regarding the quality, safety, or suitability of any software or
> information found there. There are inherent dangers in the use of any
> software found on the Internet, and Microsoft cautions you to make sure
> that you completely understand the risk before retrieving any software
> from
> the Internet.
>
>
>
Author
5 Apr 2006 6:11 AM
Peter Huang" [MSFT]
Hi Scott,

To use unmanaged code, we do need a .NET managed Wrapper.
It seems that the link in codeproject has do some job.

If you do not want to use the Wrap, I think you may try to use unmanaged
code only.
Because to communicate between managed code and unmanaged code, we need a
wrapper to do the marshalling between managed code and unmanaged code.


Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Author
21 Apr 2006 4:04 PM
Scott M
My only issue is that I would prefer to not to have to register a COM
component to run the application.

Show quoteHide quote
""Peter Huang" [MSFT]" <v-phu***@online.microsoft.com> wrote in message
news:3M6BHfHWGHA.2428@TK2MSFTNGXA01.phx.gbl...
> Hi Scott,
>
> To use unmanaged code, we do need a .NET managed Wrapper.
> It seems that the link in codeproject has do some job.
>
> If you do not want to use the Wrap, I think you may try to use unmanaged
> code only.
> Because to communicate between managed code and unmanaged code, we need a
> wrapper to do the marshalling between managed code and unmanaged code.
>
>
> Best regards,
>
> Peter Huang
>
> Microsoft Online Community Support
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
Author
24 Apr 2006 2:19 AM
Peter Huang" [MSFT]
Hi Scott,

Thanks for your response.
I do understanding your concern, that you do not want to register the COM
so that the deployment will be easier.
But now the dialog you want is implmeneted in the unmanaged COM, our .NET
wrap is used to call the COM Object.

If you are using XP or higher version, you may try to use the RegFree COM
option, but  that have some limitation.
Here is a link for you reference.
Simplify App Deployment with ClickOnce and Registration-Free COM
http://msdn.microsoft.com/msdnmag/issues/05/04/RegFreeCOM/

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Author
5 Apr 2006 1:04 AM
Scott M
Would I need to use PInvoke to port the Unmanaged C++ example into a .net
language?

Show quoteHide quote
""Peter Huang" [MSFT]" <v-phu***@online.microsoft.com> wrote in message
news:JyAKeYYSGHA.2596@TK2MSFTNGXA03.phx.gbl...
> Hi Scott,
>
> Based on my research, here is a sample on codeproject for your referecne.
> Using the Windows 2000/XP Object Selection Dialog
> http://www.thecodeproject.com/w2k/BfObjectSelection2.asp
>
> We have unmanaged C++ Document about using the dialog, but we did not
> provide an official dotnet Wrap.
> Directory Object Picker
> http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library...
>
>
> Best regards,
>
>
> Peter Huang
> Microsoft Online Partner Support
>
>
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> This response contains a reference to a third party World Wide Web site.
> Microsoft is providing this information as a convenience to you. Microsoft
> does not control these sites and has not tested any software or
> information
> found on these sites; therefore, Microsoft cannot make any representations
> regarding the quality, safety, or suitability of any software or
> information found there. There are inherent dangers in the use of any
> software found on the Internet, and Microsoft cautions you to make sure
> that you completely understand the risk before retrieving any software
> from
> the Internet.
>
>
>