Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Function GetWindowsTitle() As String
- Dim TitleName As String = String.Empty
- For Each p As Process In Process.GetProcesses(System.Environment.MachineName)
- If (p.MainWindowHandle <> IntPtr.Zero) Then
- If Not (String.IsNullOrWhiteSpace(p.MainWindowTitle)) Then
- TitleName &= p.MainWindowTitle & ","
- End If
- End If
- Next
- Return TitleName.TrimEnd(",").Replace(",", vbNewLine)
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement