<< back to sysax.com Product page

15.2. Reading Windows Registry entries

The ReadWinRegistry method can be used to read specific windows registry entries.

Exhibit 15.3. IDL Definition of method to reading windows registry entries


HRESULT ReadWinRegistry ([in] BSTR b_key, [in] BSTR b_subkey, [in] BSTR b_entry, [out, retval] BSTR *b_entryvalue);


Exhibit 15.4. Example usage of method to reading windows registry entries (VBScript)


Dim rval
rval = app.ReadWinRegistry "HKEY_LOCAL_MACHINE", "SOFTWARE\\Microsoft\\DirectX", "Version"