Ever wanted to identify the Process that started another process (for example you might want to find out which process launched your application) ? Well I’ve finally got some code working that gets the ID of the process that created the process you specify.
Archives For vb.net
Here is the full source code for a DLL that I have written that can be used to get all installed programs (just like Add or Remove Programs in Windows) on either the local computer or a remote computer on the network (and an example application that uses the DLL).
I recently had a need in one of my programs to loop through all network drives on a computer and get the drive letter and the UNC path that the network drive mapped to. I thought this would be easy with the System.IO.DriveInfo.GetDrives method but unfortunately it was not as the DriveInfo class offers no way to retrieve the UNC path that the network drive maps to. After a bit of research I could find no better way than using a Windows API (I’m not a fan of WMI!). Here is some example VB.NET code that I have written that will do this: