Introduction - If you have any usage issues, please Google them yourself
VB to get the icon from the window handle, you can call it extract icons, windows icons made, please refer to the following code: Public Function acquisition program path (handle As Long) As String Dim path As String, memory handle As Long path = Space ( 255) Call GetWindowThreadProcessId (handle, handle memory) memory handle = OpenProcess (PROCESS_ALL_ACCESS, 0, memory handle) Call GetModuleFileNameEx (memory handle, 0, path, 255) to get the program path = Trim (Path) Call CloseHandle (memory handle) End Function