-- Creates two LuaCOM objects for the same COM object
-- (a running instance of Microsoft Word(R) )
word1 = luacom_GetObject("Word.Application")
word2 = luacom_GetObject("Word.Application")
-- These two userdata should be the same
unk1 = luacom_GetIUnknown(word1)
unk2 = luacom_GetIUnknown(word2)
assert(unk1 == unk2)