Can anyone explain how to use this?

I am using the Winsock control and I want my app to pop to the top of the screen if in the background. Is this the right API to use? If so how do I use it?
Thanks in advance.

Here is some sample code that I was thinking of using.

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)

If Not Me.hwnd = GetActiveWindow Then
BringWindowToTop hwnd
'FlashWindow Me.hwnd, CLng(True)
End If

........