Not sure about API, but it can be done using DDE conversion. Put a label on a form and add the following to a command button click event.With Label1
.Caption = ""
.AutoSize = True
.LinkTopic = "Firefox|WWW_GetWindowInfo"
.LinkItem = "0xffffffff"
.LinkMode = 2
.LinkRequest
End With