The goal is to translate this:

http://support.microsoft.com/kb/221992

I need to write my own wrapper for the VBScript.dll, which is what that code is doing just in C++.

I am worried that msscript.ocx isn't going to be future proof with vista and windows 7, but I know vbscript.dll is (Internet Explorer requires it, and I know Microsoft isn't about to remove IE)