
Собственно hWnd - это указатель на конкретный объект. Но никак не на класс. Уточни что тебе нужно: найти определенный объект, зная его класс? Тогда лезь в MSDN по темам поиска окон.
Мене нужно дапустим в таймере отслыживать один класс (Название знаю)
и если он найден (Открылась то окно или прога чей класс следим) то сообщит или запишит в текстбокс на форме !!! Если можна кодом !!! icon_question.gif
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Пифия, тьфу, MSDN писал(а):HWND FindWindow(
LPCTSTR lpClassName, // class name
LPCTSTR lpWindowName // window name
);
Parameters
lpClassName
in Pointer to a null-terminated string that specifies the class name or a class atom created by a previous call to the RegisterClass or RegisterClassEx function. The atom must be in the low-order word of lpClassName; the high-order word must be zero.
If lpClassName is a string, it specifies the window class name. The class name can be any name registered with RegisterClass or RegisterClassEx, or any of the predefined control-class names.
lpWindowName
in Pointer to a null-terminated string that specifies the window name (the window's title). If this parameter is NULL, all window names match.
Dim astrClassName as string
astrClassName=CStr(10001001)
'astrClassName будет "10001001"
Сейчас этот форум просматривают: AhrefsBot, Yandex-бот и гости: 29