February 7th, 2008

You are currently browsing the articles from MS Windows Articles, Reviews and Videos written on February 7th, 2008.

Use C# to Find What Services are Running in a Process

Note: this content originally from http://mygreenpaste.blogspot.com. If you are reading it from some other site, please take the time to visit My Green Paste, Inc. Thank you.

Recently, an individual going by the moniker 'hi' posted a comment to Setting the Priority of a Service Process via Script:

How would I, if I want to, find which services are part of a particular svchost.exe? Can in be done in C#?

Thanks!

I replied via comment, but one has even less control over formatting in comments than one does in the actual blog posting, so I figured I would post the response here as well.

=================

Tasklist.exe with the /svc param can tell you, as can Process Explorer. You can also inspect the registry to determine what services would load with what SVCHOST group (see "Troubleshooting Performance Issues with Automatic Updates" for more details).

As far as C# code, the following requires a reference to System.Management. Invoke the program, passing it the process id of the process you're curious about, and it will output the services running in that process.

using System;
using System.Management;

namespace MyGreenPaste
{
class Program
{
static void Main( string[] args )
{
if( args.GetLength( 0 ) <= 0 )
{
Console.WriteLine( "Usage: {0} pid",
System.IO.Path.GetFileName(
System.Diagnostics.Process.GetCurrentProcess().
MainModule.FileName ) );
Console.WriteLine( " where pid is the process id " +
"of a process hosting at least one service" );
return;
}

try
{
ManagementObjectSearcher mos =
new ManagementObjectSearcher( "root\\CIMV2",
string.Format( "SELECT * FROM Win32_Service " +
"where ProcessId={0}", args[0] ) );
foreach( ManagementObject result in mos.Get() )
{
Console.WriteLine( "{0} -> {1}", result["Name"],
result["DisplayName"] );
}
}
catch( ManagementException mex )
{
Console.WriteLine( "** Error querying WMI:{0}{1}",
System.Environment.NewLine, mex.Message );
}
}
}
}

Written by «/\/\Ø|ö±ò\/»®© on February 7th, 2008 with comments disabled.
Read more articles on Process Explorer and SVCHOST and Services and WMI and c# and processes and tasklist.

Five Security Updates for Vista in February 2008

Security AdvisoryOn Tuesday Windows Vista will receive five updates as part of the monthly Security Bulletin. Vista itself is to receive 3 critical and two important, while the other two are for features installed by default with Vista. In addition to these updates, Office users will get a number more for a total of twelve security bulletins. Here’s how they break down:

Post from: ITsVISTA

Five Security Updates for Vista in February 2008


Related posts

Written by Joe on February 7th, 2008 with comments disabled.
Read more articles on IE7 and IIS and Security and Updates.

Installing 64-bit Vista SP1 from a 32-bit Vista SP1 Image

Installing 64-bit Windows Vista Service Pack 1 from a 32-bit image of Vista SP1 is a move that has become possible with the latest stage in evolution of the latest Windows client. Along with a range of enhancements, Vista SP1 comes to the table with setup and deployment improvements. While end users will be only superficially impacted by the changes, IT professional and original equipment manufacturers will be able to enjoy the added benefits of the service pack.

SP1 is great for IT Professionals because it will make your life easier around deployment and management of the technology. You will be able to maintain a single WinPE image because you can install 64-bit versions of Vista from a 32-bit OS,” explained Deeps De Silva, Audience Marketing Manager, Microsoft Australia. (more…)

Written by Jason on February 7th, 2008 with comments disabled.
Read more articles on 32-bit and 64-bit and Windows PE 2.0 and Windows Vista and sp1 and windows.

Explore Your Fonts

Windows seems to have an insatiable appetite for fonts. A new installation starts out with the standard ‘core’ fonts, and there are around 20 of them, but within a very short time you could find your fonts folder has somehow acquired scores and sometimes hundreds of new ones. The Windows Font viewer in Control Panel doesn’t really tell you much, unless you open each file, so here’s a better way to see what you’ve got. It’s called Windows Fonts Explorer and there’s really no need to elaborate. (more…)

Written by Jason on February 7th, 2008 with comments disabled.
Read more articles on computer and control panel and fonts and windows and windows explore.

What did MakeProcInstance do?

MakeProcInstance doesn't do anything. #define MakeProcInstance(lpProc,hInstance) (lpProc) What's the point of a macro that doesn't do anything? It did something back in 16-bit Windows. Recall that in 16-bit Windows, the HINSTANCE was the mechanism for Read More......(read more)

Written by The Old New Thing : History on February 7th, 2008 with comments disabled.
Read more articles on History.

Korean Vista Commercial - 5

A 1 min 39sec Korean Windows Vista commercial staring Ji Hyun Woo. This one shows him using voice commands with Media Center, along with some red wine, to ‘woo’ his date. He then transfers music via blue-tooth to a smartphone, which he then uses to transfer the music to a system in his car.

Post from: ITsVISTA

Korean Vista Commercial - 5


Related posts

Written by Joe on February 7th, 2008 with comments disabled.
Read more articles on Commercial and Videos and video.

Microsoft Windows Vista SP1 Update 32Bit RTM Build 6001.18000 Leaked

Vista fans, yup here is it! Long awaited Service Pack 1 in RTM version released .What RTM - “Release To Manufacturing” does stands for? Well, in short it’s exact same version which will appear in March aka final version.The leak is some kind of a standalone executable and has the build 6001.18000.080126-2040. Another leak has it as 080118_1840, but its a pretty early timestamp (18-01-2008) which suggests that its a fake. These builds are probably escrow and candidate for the final RTM.
Check wiki for more details about RTM. Keep in mind that this is only Service Pack 1 itself, it’s not Vista SP1 ISO! So, you can download it and install on any (32bit) Vista edition. Also make sure to READ NFO for more details & explanation. For those ones who have pirated copy of Vista (well, who doesn’t?), I’m not sure will this work with that popular OEM BIOS emulation crack by PARADOX (Microsoft’s states something like - No way dude).

You might want to take a look here too RTM Build 6001.18000

Written by ShaDow on February 7th, 2008 with comments disabled.
Read more articles on Vista News and Windows Vista Updates (KB) and vista sp1.

Here Comes Windows Vista SP1 “Changelog”

Leading up to next week’s public beta-test release of Windows Vista Service Pack 1 Release Candidate, Microsoft today has published a 17-page document outlining in fine detail exactly what difference SP1 makes to Vista.

Some of the contents has been shared in bits in the past, but this is so far the most comprehensive “changelog” we’ve ever seen and probably will see as the final version is not expected to differ much from the RC, with the exception of WGA modifications as described below. I’ve highlighted some of the most interesting changes which you may or may not already know.

This document describes many of the notable changes in Windows Vista SP1, with the exception of some updates to the Windows Genuine Advantage experience which we are still developing for our customers and will be released in a later build.

Read More Here

Written by ShaDow on February 7th, 2008 with comments disabled.
Read more articles on Vista News and vista sp1.

Outlook 2007 Goes It Alone

Microsoft offers a standalone version of Outlook 2007 with built-in contact manager.

Written by WinPlanet Windows Software News on February 7th, 2008 with comments disabled.
Read more articles on Uncategorized.

Microsoft Gives Tips to Improving Vista Performance

Recently I visited Microsoft's site looking for updates, and bumped into a help article for Windows Vista users (well it can be apply to basically any Windows version aswell) to help improve system performance and speed things up.

The bottom line is "Was this helpful?"

Well, to tell you the truth , its nothing new, and now with the release of Service Pack 1 for Vista, you may want to see if it does anything to improve performance first.

The tips Microsoft is recommending are:
Most of these are common sense and apply to many operating systems not just Windows. The issue I'm having here is when they say "Run fewer programs at the same time" . Thats insane. With todays hardware and with enough system memory you should be able to multitask with the basics.




If Windows sluggish and is not allowing you to surf, edit a doc and listen to music at the same time then you definitely have a problem. These are basics you should be able to do. I can see why Microsoft is reiterating once more the basics to users. I think we all know by now that sure you can have the latest and greatest hardware, but if you arent doing the OS housekeeping once in a while you can count on Windows eating up drive space and memory unnecessarily.

From my experience with Windows in general, some of these tips hold true, but the most important ones I know work are:

- Defragmenting your Hard Drive(s)
- Deleting Temporary / Cached files
- Remove from startup unnecessary utilities and programs (such as updaters, itunes, quicktime, adobe, and so on...) which you can run yourself anytime you want.
- Increase your system page file and system memory (usually at least double what you get by default).
Other Tips Users have watched

Written by PCWizKid on February 7th, 2008 with comments disabled.
Read more articles on Desktops and Hardware and Microsoft Corp. and Microsoft Windows and Microsoft Windows Vista and Microsoft Windows Vista (Longhorn) and Operating Systems and Software.