WinAPI32
VB.NET 사용자를 위한 API 파이블 - 정진호 저 (참고)
■ 윈도우 관련
1. CreateWindowEx--윈도우 생성
2. CallWindowProc--윈도우 프로시저에 메시지 전송
3. DefWindowProc--기본 윈도우 프로시저 호출
4. DestroyWindow--윈도우 제거
5. EnumWindows--최상위 레벨 윈도우 호출
6. FindWindow--윈도우 핸들 반환
7. GetClientRect--클라이언트 영역 좌표 반환
8. GetDesktopWindow--바탕화면 핸들 반환
9. GetWindow--윈도우와 지정관계에 있는 윈도우 핸들 반환
10. GetWindowRect--윈도우/컨트롤 위치 반환
11. GetParent--부모윈도우 핸들 반환
12. GetWindowText--윈도우 텍스트 반환
13. GetWindowTextLength--윈도우 타이틀바 텍스트 길이 반환
14. Get WindowThreadProcessId--윈도우에 의해 생성된 프로세스 번호 반환
15. IsIconic--최소화 되어있는지 점검
16. IsWindowVisible--윈도우 표시상태 반환
17. MoveWindow--윈도우 이동
18. SetForegroundWindow--특정윈도우를 작업윈도우로 설정
19. SetParent--부모윈도우 변경
20. SetWindowPos--윈도우 Z-index 레벨 지정
21. SetWindowText--윈도우 타이틀 변경 또는 컨트롤 텍스트 변경
22. ShowWindow--윈도우 보이거나 보이지 않게
23. WindowFromPoint--마우스포인터 있는 윈도우 반환
FindWindow : 타으틀로 윈도우 핸들 추출
SetWindowLong : 윈도우 스타일 변경
SetWindowText : 윈도우 타이틀 변경
GetActiveWindow : 활성창 핸들
Public Declare PtrSafe Function GetWindowLong Lib "User32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Public Declare PtrSafe Function SetWindowLong Lib "User32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPtr
Private Declare PtrSafe Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hWnd As LongPtr, ByVal lpString As String) As LongPtr