07-24-2023, 10:24 AM
I want to use the COM object with the progID `Windows.Contact.1` via ActiveScripting (JScript, VBScript, Python, etc).
This COM resides in `C:\Program Files (x86)\Common Files\System\wab32.dll`. It seems, there is no TypeLib available for it. The COM delivers, amongst others, `IContact` for the *"Windows Address Book"* (storing contacts as XML in folders, as in Windows 7). [IContact is documented here](
In JScript I did:
```javascript
var co = new ActiveXObject("Windows.Contact.1");
typeof co; // results in: unknown
```
Since it results in `unknown`, I have the suspicion, that this COM could not be usable for scripting. Somewhere I read, that everything, that inherits from `IUnknown` can not be used for scripting, instead it must inherit from `IDispatch`. But I am unsure, as to how much of this is valid, and whether there are workarounds.
I would like to ask for acknowledgement of my suspicions (since I am new to all of this and have no C++ or C# background) or to ask for a way, as to how to use `Windows.Contact.1` from scripting, including a way, to find out, which methods/objects I can use, without resorting to a TypeLib.
I have access to pages like [Programming Windows Contacts](
This COM resides in `C:\Program Files (x86)\Common Files\System\wab32.dll`. It seems, there is no TypeLib available for it. The COM delivers, amongst others, `IContact` for the *"Windows Address Book"* (storing contacts as XML in folders, as in Windows 7). [IContact is documented here](
[To see links please register here]
).In JScript I did:
```javascript
var co = new ActiveXObject("Windows.Contact.1");
typeof co; // results in: unknown
```
Since it results in `unknown`, I have the suspicion, that this COM could not be usable for scripting. Somewhere I read, that everything, that inherits from `IUnknown` can not be used for scripting, instead it must inherit from `IDispatch`. But I am unsure, as to how much of this is valid, and whether there are workarounds.
I would like to ask for acknowledgement of my suspicions (since I am new to all of this and have no C++ or C# background) or to ask for a way, as to how to use `Windows.Contact.1` from scripting, including a way, to find out, which methods/objects I can use, without resorting to a TypeLib.
I have access to pages like [Programming Windows Contacts](
[To see links please register here]
) and related ones, but first I need to get an instance in ActiveScript (JScript, VBScript, Python, Lua will do). I also have access to applications like *"MS OLE View"* and *["OLEView DotNet"]([To see links please register here]
)*. Thank you.