Written By Glen Huebotter Date: 07/27/2009 Modified to get the name of the Windows directory and assign that value to the windowsdir variable. This fixed the problem where the dll wasn't found if the Windows directory was using C:\winnt.