Click here to Skip to main content
15,896,730 members
Home / Discussions / C#
   

C#

 
GeneralBeginInvoke Pin
Hugo Hallman9-May-04 12:50
Hugo Hallman9-May-04 12:50 
GeneralRe: BeginInvoke Pin
Heath Stewart10-May-04 3:57
protectorHeath Stewart10-May-04 3:57 
GeneralRe: BeginInvoke Pin
Hugo Hallman10-May-04 5:29
Hugo Hallman10-May-04 5:29 
GeneralRe: BeginInvoke Pin
Heath Stewart10-May-04 5:34
protectorHeath Stewart10-May-04 5:34 
GeneralEmail clients Pin
wfe9-May-04 12:13
wfe9-May-04 12:13 
GeneralRe: Email clients Pin
Dave Kreskowiak10-May-04 0:11
mveDave Kreskowiak10-May-04 0:11 
GeneralRe: Email clients Pin
wfe10-May-04 1:17
wfe10-May-04 1:17 
GeneralRe: Email clients Pin
Heath Stewart10-May-04 3:49
protectorHeath Stewart10-May-04 3:49 
wfe wrote:
Q1a: How do I search 'installed applications list' on a local PC from C#/.NET ?

The easiest way is using WMI. See the System.Management namespace in the clas library documentation of the .NET Framework SDK. Make a request on the remote machine (or even your local machine, which you can refer to as "." or just don't specify a machine at all) for the Win32_Product CIMv2 class.

See System.Management Lets You Take Advantage of WMI APIs within Managed Code[^] in MSDN Magazine online for more information, sample code, and a link to an add-in for VS.NET 2002 (and if you search, for 2003) that lets you browse the WMI repository on any machine and to create managed wrapper classes just by dragging and dropping classes into your project.

wfe wrote:
Q1b: How do I search the registry ?

The .NET FCL (Framework Class Library) does not let you access the registry of a remote machine. You either need to P/Invoke the registry APIs yourself or find a project that already does this for you. I'd recommend the method above, though, since it's far more robust and less error-prone (messing with the registry is dangerous, especially if you don't know what you're doing).

As far as the connector goes, both Outlook and Outlook Express are MAPI clients so you can use MAPI wrappers, like Simple MAPI.NET[^]. There are many restrictions in the MAPI implementations these days, however, because of script kiddies (responsible for all those malicious worms you hear about). The basic stuff should work fine, however, like sending a mail message. Accessing the address book using MAPI (which is scriptable, where Extended MAPI is not) will either fail or prompt the user that some program is trying to access their address book and prompt them to allow it and for how long, or to simply deny the request. There is plenty of documentation about this subject online. Just google for MAPI or something and you'll find a lot of information. Another good place is to search on MSDN[^].

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Email clients Pin
wfe10-May-04 7:59
wfe10-May-04 7:59 
GeneralRe: Email clients Pin
Heath Stewart10-May-04 8:58
protectorHeath Stewart10-May-04 8:58 
GeneralRe: Email clients Pin
wfe10-May-04 9:23
wfe10-May-04 9:23 
GeneralRe: Email clients Pin
Heath Stewart10-May-04 9:43
protectorHeath Stewart10-May-04 9:43 
GeneralRe: Email clients Pin
wfe11-May-04 3:00
wfe11-May-04 3:00 
GeneralRe: Email clients Pin
Heath Stewart11-May-04 3:12
protectorHeath Stewart11-May-04 3:12 
GeneralMemory Usage of a console application Pin
eranas9-May-04 10:25
eranas9-May-04 10:25 
GeneralRe: Memory Usage of a console application Pin
Jeff Varszegi9-May-04 12:11
professionalJeff Varszegi9-May-04 12:11 
GeneralRe: Memory Usage of a console application Pin
Heath Stewart10-May-04 3:39
protectorHeath Stewart10-May-04 3:39 
GeneralMouse Drag Event Pin
Member 6910899-May-04 7:15
Member 6910899-May-04 7:15 
GeneralRe: Mouse Drag Event Pin
Mazdak9-May-04 7:52
Mazdak9-May-04 7:52 
GeneralFree disk space Pin
kratchkov9-May-04 5:15
kratchkov9-May-04 5:15 
GeneralRe: Free disk space Pin
Mazdak9-May-04 5:21
Mazdak9-May-04 5:21 
GeneralRe: Free disk space Pin
kratchkov9-May-04 5:30
kratchkov9-May-04 5:30 
GeneralRe: Free disk space Pin
Mike Dimmick9-May-04 7:12
Mike Dimmick9-May-04 7:12 
GeneralRe: Free disk space Pin
kratchkov9-May-04 7:36
kratchkov9-May-04 7:36 
Generalrepaint a TreeView Pin
cristina_tudor9-May-04 5:05
cristina_tudor9-May-04 5:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.