473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Launching Directory Properties and UserProfile Properties from C#

Hello,

is there a way to launch the property dialogue for a directory from my c#
app ?
I would also like to launch the User Account Properties from Active
Directory Users and Computers, and the properties window for an Object in
Active Directory.

Thanks for any hints.
Nov 15 '05 #1
6 5154

Hi JerryP,

Thank you for posting in this group.
Can you tell me what task you want to finish?
I think you can get most property of a certain folder by WindowAPI function
or WMI.
Also, you can refer to System.DirectoryServices namespace to invoke the
ADSI to get the
property of the AD object.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "JerryP" <je***********@hotmail.com>
| Subject: Launching Directory Properties and UserProfile Properties from C#
| Date: Mon, 15 Sep 2003 14:43:29 +0200
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <er**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:184178
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hello,
|
| is there a way to launch the property dialogue for a directory from my c#
| app ?
| I would also like to launch the User Account Properties from Active
| Directory Users and Computers, and the properties window for an Object in
| Active Directory.
|
| Thanks for any hints.
|
|
|

Nov 15 '05 #2
Jeffrey,

from my code I do the following:
create a directory
create a user (local or AD - depends on environmnet)
share the created directory
set permissions (just created account on just created share)

and then I want to display the directory Properties window to the user - if
he likes to add some permissions, I also
want to show the User Object to also enable the user to change everything he
wants.

I just set what my app needs from code - any other thing the user must do
himself - why should I code everything again - MS did this already :-)

Hope you understand what I am trying to do,.....

thanks

Jerry
"Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
news:nw**************@cpmsftngxa07.phx.gbl...

Hi JerryP,

Thank you for posting in this group.
Can you tell me what task you want to finish?
I think you can get most property of a certain folder by WindowAPI function or WMI.
Also, you can refer to System.DirectoryServices namespace to invoke the
ADSI to get the
property of the AD object.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "JerryP" <je***********@hotmail.com>
| Subject: Launching Directory Properties and UserProfile Properties from C# | Date: Mon, 15 Sep 2003 14:43:29 +0200
| Lines: 11
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <er**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08 phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:184178 | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Hello,
|
| is there a way to launch the property dialogue for a directory from my c# | app ?
| I would also like to launch the User Account Properties from Active
| Directory Users and Computers, and the properties window for an Object in | Active Directory.
|
| Thanks for any hints.
|
|
|

Nov 15 '05 #3

Hi Jerry,

You can invoke the property window of certain directory or file by
ShellExecute function.
This API function invoke the certain "verb" of the directory's shortcut
menu(right click menu).
You can use its "properties" verb to display the property window.

For more information you can visit:
http://www.codeguru.com/shell/ShellLogging.html

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "JerryP" <je***********@hotmail.com>
| References: <er**************@TK2MSFTNGP10.phx.gbl>
<nw**************@cpmsftngxa07.phx.gbl>
| Subject: Re: Launching Directory Properties and UserProfile Properties
from C#
| Date: Tue, 16 Sep 2003 09:11:35 +0200
| Lines: 81
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <e1**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!cpmsftng xa06.phx.gbl!TK2MSFTNGP08.
phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:184451
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Jeffrey,
|
| from my code I do the following:
| create a directory
| create a user (local or AD - depends on environmnet)
| share the created directory
| set permissions (just created account on just created share)
|
| and then I want to display the directory Properties window to the user -
if
| he likes to add some permissions, I also
| want to show the User Object to also enable the user to change everything
he
| wants.
|
| I just set what my app needs from code - any other thing the user must do
| himself - why should I code everything again - MS did this already :-)
|
| Hope you understand what I am trying to do,.....
|
| thanks
|
| Jerry
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| news:nw**************@cpmsftngxa07.phx.gbl...
| >
| > Hi JerryP,
| >
| > Thank you for posting in this group.
| > Can you tell me what task you want to finish?
| > I think you can get most property of a certain folder by WindowAPI
| function
| > or WMI.
| > Also, you can refer to System.DirectoryServices namespace to invoke the
| > ADSI to get the
| > property of the AD object.
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | From: "JerryP" <je***********@hotmail.com>
| > | Subject: Launching Directory Properties and UserProfile Properties
from
| C#
| > | Date: Mon, 15 Sep 2003 14:43:29 +0200
| > | Lines: 11
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <er**************@TK2MSFTNGP10.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.csharp
| > | NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| > | Path:
| >
|
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
| > phx.gbl!TK2MSFTNGP10.phx.gbl
| > | Xref: cpmsftngxa07.phx.gbl
| microsoft.public.dotnet.languages.csharp:184178
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| > |
| > | Hello,
| > |
| > | is there a way to launch the property dialogue for a directory from my
| c#
| > | app ?
| > | I would also like to launch the User Account Properties from Active
| > | Directory Users and Computers, and the properties window for an Object
| in
| > | Active Directory.
| > |
| > | Thanks for any hints.
| > |
| > |
| > |
| >
|
|
|

Nov 15 '05 #4

Hi Jerry,

Sorry for letting you waitting for so long time.
To invoke the "properties" verb on a file, you must set the
SEE_MASK_INVOKEIDLIST
to SHELLEXECUTEINFO's fMask field of ShellExecuteEx function.

I write a sample code for you to launch the property dialog.

public const int SEE_MASK_INVOKEIDLIST = 0xC;

[StructLayout(LayoutKind.Explicit)]
public struct DUMMYUNIONNAME
{
[FieldOffset(0)]
public IntPtr hIcon;
[FieldOffset(0)]
public IntPtr hMonitor;
}

[StructLayout(LayoutKind.Sequential )]
public struct SHELLEXECUTEINFO
{
public int cbSize;
public int fMask;
public IntPtr hwnd;
public string lpVerb;
public string lpFile;
public string lpParameters;
public string lpDirectory;
public int nShow;
public IntPtr hInstApp;
public int lpIDList;
public string lpClass;
public int hkeyClass;
public int dwHotKey;
public DUMMYUNIONNAME dun;
public IntPtr hProcess;
}

[DllImport("shell32.dll")]
public static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO si);

SHELLEXECUTEINFO si=new SHELLEXECUTEINFO();
si.cbSize=Marshal.SizeOf(typeof(SHELLEXECUTEINFO)) ;
si.lpFile="D:\\Jeffrey";
si.lpVerb="properties";
si.fMask =SEE_MASK_INVOKEIDLIST;
ShellExecuteEx(ref si);

It works well on my machine.
Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "JerryP" <je***********@hotmail.com>
| References: <er**************@TK2MSFTNGP10.phx.gbl>
<nw**************@cpmsftngxa07.phx.gbl>
| Subject: Re: Launching Directory Properties and UserProfile Properties
from C#
| Date: Tue, 16 Sep 2003 09:11:35 +0200
| Lines: 81
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <e1**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!cpmsftng xa06.phx.gbl!TK2MSFTNGP08.
phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:184451
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Jeffrey,
|
| from my code I do the following:
| create a directory
| create a user (local or AD - depends on environmnet)
| share the created directory
| set permissions (just created account on just created share)
|
| and then I want to display the directory Properties window to the user -
if
| he likes to add some permissions, I also
| want to show the User Object to also enable the user to change everything
he
| wants.
|
| I just set what my app needs from code - any other thing the user must do
| himself - why should I code everything again - MS did this already :-)
|
| Hope you understand what I am trying to do,.....
|
| thanks
|
| Jerry
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| news:nw**************@cpmsftngxa07.phx.gbl...
| >
| > Hi JerryP,
| >
| > Thank you for posting in this group.
| > Can you tell me what task you want to finish?
| > I think you can get most property of a certain folder by WindowAPI
| function
| > or WMI.
| > Also, you can refer to System.DirectoryServices namespace to invoke the
| > ADSI to get the
| > property of the AD object.
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | From: "JerryP" <je***********@hotmail.com>
| > | Subject: Launching Directory Properties and UserProfile Properties
from
| C#
| > | Date: Mon, 15 Sep 2003 14:43:29 +0200
| > | Lines: 11
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <er**************@TK2MSFTNGP10.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.csharp
| > | NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| > | Path:
| >
|
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
| > phx.gbl!TK2MSFTNGP10.phx.gbl
| > | Xref: cpmsftngxa07.phx.gbl
| microsoft.public.dotnet.languages.csharp:184178
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| > |
| > | Hello,
| > |
| > | is there a way to launch the property dialogue for a directory from my
| c#
| > | app ?
| > | I would also like to launch the User Account Properties from Active
| > | Directory Users and Computers, and the properties window for an Object
| in
| > | Active Directory.
| > |
| > | Thanks for any hints.
| > |
| > |
| > |
| >
|
|
|

Nov 15 '05 #5
Jeffrey,

thank you very much - I will try that.

Just one Question left, Is there also a way to do similar for Active
Directory Objects ?

again - thank you !

Jerry
"Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
news:wQ**************@cpmsftngxa06.phx.gbl...

Hi Jerry,

Sorry for letting you waitting for so long time.
To invoke the "properties" verb on a file, you must set the
SEE_MASK_INVOKEIDLIST
to SHELLEXECUTEINFO's fMask field of ShellExecuteEx function.

I write a sample code for you to launch the property dialog.

public const int SEE_MASK_INVOKEIDLIST = 0xC;

[StructLayout(LayoutKind.Explicit)]
public struct DUMMYUNIONNAME
{
[FieldOffset(0)]
public IntPtr hIcon;
[FieldOffset(0)]
public IntPtr hMonitor;
}

[StructLayout(LayoutKind.Sequential )]
public struct SHELLEXECUTEINFO
{
public int cbSize;
public int fMask;
public IntPtr hwnd;
public string lpVerb;
public string lpFile;
public string lpParameters;
public string lpDirectory;
public int nShow;
public IntPtr hInstApp;
public int lpIDList;
public string lpClass;
public int hkeyClass;
public int dwHotKey;
public DUMMYUNIONNAME dun;
public IntPtr hProcess;
}

[DllImport("shell32.dll")]
public static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO si);

SHELLEXECUTEINFO si=new SHELLEXECUTEINFO();
si.cbSize=Marshal.SizeOf(typeof(SHELLEXECUTEINFO)) ;
si.lpFile="D:\\Jeffrey";
si.lpVerb="properties";
si.fMask =SEE_MASK_INVOKEIDLIST;
ShellExecuteEx(ref si);

It works well on my machine.
Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "JerryP" <je***********@hotmail.com>
| References: <er**************@TK2MSFTNGP10.phx.gbl>
<nw**************@cpmsftngxa07.phx.gbl>
| Subject: Re: Launching Directory Properties and UserProfile Properties
from C#
| Date: Tue, 16 Sep 2003 09:11:35 +0200
| Lines: 81
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <e1**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!cpmsftng xa06.phx.gbl!TK2MSFTNGP08. phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.csharp:184451 | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Jeffrey,
|
| from my code I do the following:
| create a directory
| create a user (local or AD - depends on environmnet)
| share the created directory
| set permissions (just created account on just created share)
|
| and then I want to display the directory Properties window to the user -
if
| he likes to add some permissions, I also
| want to show the User Object to also enable the user to change everything he
| wants.
|
| I just set what my app needs from code - any other thing the user must do | himself - why should I code everything again - MS did this already :-)
|
| Hope you understand what I am trying to do,.....
|
| thanks
|
| Jerry
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| news:nw**************@cpmsftngxa07.phx.gbl...
| >
| > Hi JerryP,
| >
| > Thank you for posting in this group.
| > Can you tell me what task you want to finish?
| > I think you can get most property of a certain folder by WindowAPI
| function
| > or WMI.
| > Also, you can refer to System.DirectoryServices namespace to invoke the | > ADSI to get the
| > property of the AD object.
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | From: "JerryP" <je***********@hotmail.com>
| > | Subject: Launching Directory Properties and UserProfile Properties
from
| C#
| > | Date: Mon, 15 Sep 2003 14:43:29 +0200
| > | Lines: 11
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <er**************@TK2MSFTNGP10.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.csharp
| > | NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| > | Path:
| >
|
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08 | > phx.gbl!TK2MSFTNGP10.phx.gbl
| > | Xref: cpmsftngxa07.phx.gbl
| microsoft.public.dotnet.languages.csharp:184178
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| > |
| > | Hello,
| > |
| > | is there a way to launch the property dialogue for a directory from my | c#
| > | app ?
| > | I would also like to launch the User Account Properties from Active
| > | Directory Users and Computers, and the properties window for an Object | in
| > | Active Directory.
| > |
| > | Thanks for any hints.
| > |
| > |
| > |
| >
|
|
|

Nov 15 '05 #6

Hi Jerry,

I think you can get the property of Active Directory object through
ADSI(active directory service interface).
In .Net, it is replaced by System.DirectoryServices namespace.
You can get more information from the two sample below:
http://www.codeproject.com/dotnet/ac...tive+directory
%7Cobject%7Cproperty
http://www.codeproject.com/aspnet/ad...ctory%7Cobject
%7Cproperty

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "JerryP" <je***********@hotmail.com>
| References: <er**************@TK2MSFTNGP10.phx.gbl>
<nw**************@cpmsftngxa07.phx.gbl>
<e1**************@tk2msftngp13.phx.gbl>
<wQ**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Launching Directory Properties and UserProfile Properties
from C#
| Date: Thu, 18 Sep 2003 08:15:37 +0200
| Lines: 193
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#s**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:185709
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Jeffrey,
|
| thank you very much - I will try that.
|
| Just one Question left, Is there also a way to do similar for Active
| Directory Objects ?
|
| again - thank you !
|
| Jerry
|
|
| "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| news:wQ**************@cpmsftngxa06.phx.gbl...
| >
| > Hi Jerry,
| >
| > Sorry for letting you waitting for so long time.
| > To invoke the "properties" verb on a file, you must set the
| > SEE_MASK_INVOKEIDLIST
| > to SHELLEXECUTEINFO's fMask field of ShellExecuteEx function.
| >
| > I write a sample code for you to launch the property dialog.
| >
| > public const int SEE_MASK_INVOKEIDLIST = 0xC;
| >
| > [StructLayout(LayoutKind.Explicit)]
| > public struct DUMMYUNIONNAME
| > {
| > [FieldOffset(0)]
| > public IntPtr hIcon;
| > [FieldOffset(0)]
| > public IntPtr hMonitor;
| > }
| >
| > [StructLayout(LayoutKind.Sequential )]
| > public struct SHELLEXECUTEINFO
| > {
| > public int cbSize;
| > public int fMask;
| > public IntPtr hwnd;
| > public string lpVerb;
| > public string lpFile;
| > public string lpParameters;
| > public string lpDirectory;
| > public int nShow;
| > public IntPtr hInstApp;
| > public int lpIDList;
| > public string lpClass;
| > public int hkeyClass;
| > public int dwHotKey;
| > public DUMMYUNIONNAME dun;
| > public IntPtr hProcess;
| > }
| >
| > [DllImport("shell32.dll")]
| > public static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO si);
| >
| > SHELLEXECUTEINFO si=new SHELLEXECUTEINFO();
| > si.cbSize=Marshal.SizeOf(typeof(SHELLEXECUTEINFO)) ;
| > si.lpFile="D:\\Jeffrey";
| > si.lpVerb="properties";
| > si.fMask =SEE_MASK_INVOKEIDLIST;
| > ShellExecuteEx(ref si);
| >
| > It works well on my machine.
| > Hope this helps,
| >
| > Best regards,
| > Jeffrey Tan
| > Microsoft Online Partner Support
| > Get Secure! - www.microsoft.com/security
| > This posting is provided "as is" with no warranties and confers no
rights.
| >
| > --------------------
| > | From: "JerryP" <je***********@hotmail.com>
| > | References: <er**************@TK2MSFTNGP10.phx.gbl>
| > <nw**************@cpmsftngxa07.phx.gbl>
| > | Subject: Re: Launching Directory Properties and UserProfile Properties
| > from C#
| > | Date: Tue, 16 Sep 2003 09:11:35 +0200
| > | Lines: 81
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <e1**************@tk2msftngp13.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.csharp
| > | NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| > | Path:
| >
|
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!cpmsftng xa06.phx.gbl!TK2MSFTNGP08.
| > phx.gbl!tk2msftngp13.phx.gbl
| > | Xref: cpmsftngxa07.phx.gbl
| microsoft.public.dotnet.languages.csharp:184451
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| > |
| > | Jeffrey,
| > |
| > | from my code I do the following:
| > | create a directory
| > | create a user (local or AD - depends on environmnet)
| > | share the created directory
| > | set permissions (just created account on just created share)
| > |
| > | and then I want to display the directory Properties window to the
user -
| > if
| > | he likes to add some permissions, I also
| > | want to show the User Object to also enable the user to change
| everything
| > he
| > | wants.
| > |
| > | I just set what my app needs from code - any other thing the user must
| do
| > | himself - why should I code everything again - MS did this already :-)
| > |
| > | Hope you understand what I am trying to do,.....
| > |
| > | thanks
| > |
| > | Jerry
| > |
| > |
| > | "Jeffrey Tan[MSFT]" <v-*****@online.microsoft.com> wrote in message
| > | news:nw**************@cpmsftngxa07.phx.gbl...
| > | >
| > | > Hi JerryP,
| > | >
| > | > Thank you for posting in this group.
| > | > Can you tell me what task you want to finish?
| > | > I think you can get most property of a certain folder by WindowAPI
| > | function
| > | > or WMI.
| > | > Also, you can refer to System.DirectoryServices namespace to invoke
| the
| > | > ADSI to get the
| > | > property of the AD object.
| > | >
| > | > Best regards,
| > | > Jeffrey Tan
| > | > Microsoft Online Partner Support
| > | > Get Secure! - www.microsoft.com/security
| > | > This posting is provided "as is" with no warranties and confers no
| > rights.
| > | >
| > | > --------------------
| > | > | From: "JerryP" <je***********@hotmail.com>
| > | > | Subject: Launching Directory Properties and UserProfile Properties
| > from
| > | C#
| > | > | Date: Mon, 15 Sep 2003 14:43:29 +0200
| > | > | Lines: 11
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | Message-ID: <er**************@TK2MSFTNGP10.phx.gbl>
| > | > | Newsgroups: microsoft.public.dotnet.languages.csharp
| > | > | NNTP-Posting-Host: blueice1x.de.ibm.com 194.196.100.75
| > | > | Path:
| > | >
| > |
| >
|
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
| > | > phx.gbl!TK2MSFTNGP10.phx.gbl
| > | > | Xref: cpmsftngxa07.phx.gbl
| > | microsoft.public.dotnet.languages.csharp:184178
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| > | > |
| > | > | Hello,
| > | > |
| > | > | is there a way to launch the property dialogue for a directory
from
| my
| > | c#
| > | > | app ?
| > | > | I would also like to launch the User Account Properties from
Active
| > | > | Directory Users and Computers, and the properties window for an
| Object
| > | in
| > | > | Active Directory.
| > | > |
| > | > | Thanks for any hints.
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
5
by: Patrick | last post by:
Hello - I am working on a program that creates a small temp file. The ideal would be it creates the file in the user %temp% directory - whatever that is - the default is %USERPROFILE%\Local...
0
by: Scott Zabolotzky | last post by:
I'm using the following code to launch SIGNCODE.EXE to sign a CAB provisioning file from an ASP.NET app. When I run the code the exit code comes back as -1. I have not been able to determine what...
3
by: ghobley | last post by:
Hello, We have an vb.net windows application and in the setup and deployment project we need to copy a config file to a specifc folder for each user. However the file needs to be copied the the...
5
by: segue | last post by:
Hi; I need to detect the window's user's my documents directory and the available space on that drive. I'm trying to do this in vb.net. Segue.
11
by: bsagert | last post by:
In xp when I try os.path.getmtime("%userprofile/dir/file%") Python bites back with "cannot find the path specified" Since my script has to run on machines where the username is unspecified I need a...
1
by: bsagert | last post by:
The python community is very helpful to newbies like me. I did however manage to solve my problem in the meantime. I needed the modification time of certain files on various computers, but I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.