Life of a techno-guru
Monday, June 26, 2006
  Finding the Most Recently Used Direct3D Application
The Windows registry stores a lot of interesting information, and is home to a lot of settings in Windows. Many people seem to overlook this when looking for information, most likely because it can be very intimidating. Things aren't always as hard to find as you might imagine; Most settings are spelled out in plain english. One interesting piece of information I just found out you can obtain is the most recently used application that utilized the Direct3D API. I'm not exactly sure how this could be useful information, but in the right environment, it might be something you need to know. Anyway, the name of the last executable to initialize the Direct3D API is located in the following registry key: HKEY_CURRENT_USER\Software\Microsoft\Direct3D\MostRecentApplication, and the value's name is Name. For example, my computer is currently set to googleearth.exe because that is the last Direct3D-enabled app I used. Anyway, hopefully someone finds this interesting and useful :) Here's a VB script to grab the value, and if you want to use it, copy/paste the text into a .VBS file and double-click it to run it:

dim appname
set regprov = GetObject("winmgmts:root\default:stdregprov")
regprov.GetStringValue 2147483649, "Software\Microsoft\Direct3D\MostRecentApplication", "Name", appname
wscript.echo appname
Comments: Post a Comment

<< Home
My life of learning various things about technology including network administration, development, and 3D design

Location: Chicago, Illinois, United States
January 2006 / February 2006 / March 2006 / May 2006 / June 2006 / July 2006 / August 2006 / September 2006 / October 2006 / November 2006 / December 2006 / January 2007 / February 2007 / March 2007 / April 2007 / May 2007 / June 2007 / August 2007 / December 2007 / January 2008 / March 2008 / April 2008 / June 2008 / July 2008 / September 2008 / December 2008 / January 2009 / February 2009 / March 2009 / May 2009 /

Powered by Blogger