Эксперт
Покинул форум
Сообщений всего: 1838
Дата рег-ции: Март 2017
Репутация: -2
|
Кстати, у кого много всяких external, я придумал как не запутаться или сделать проще:
Принцип (Отобразить) Цитата: //A
external(INT, "AppendMenu", "AppendMenuA", "User32.dll" );
//B
external(INT, "BitBlt", "BitBlt", "Gdi32.dll" );
//C
external(INT, "CreateWindow", "CreateWindowExA", "User32.dll" );
external(INT, "CreateMenu", "CreateMenu", "User32.dll" );
external(INT, "CreatePopupMenu", "CreatePopupMenu", "User32.dll" );
external(INT, "CreateFont", "CreateFontA", "Gdi32.dll" );
external(INT, "CreateMutex", "CreateMutexA", "Kernel32.dll");
external(INT, "CloseHandle", "CloseHandle", "Kernel32.dll");
external(INT, "CreateSolidBrush", "CreateSolidBrush", "Gdi32.dll");
external(INT, "CreatePen", "CreatePen", "Gdi32.dll");
external(INT, "CreateUpDownControl", "CreateUpDownControl", "Comctl32.dll");
external(INT, "CheckMenuItem", "CheckMenuItem", "User32.dll");
external(INT, "ClipCursor", "ClipCursor", "User32.dll");
external(INT, "CreateHatchBrush", "CreateHatchBrush", "Gdi32.dll");
external(INT, "CreateCompatibleDC", "CreateCompatibleDC", "Gdi32.dll" );
external(INT, "CreateCompatibleBitmap", "CreateCompatibleBitmap", "Gdi32.dll" );
//D
external(INT, "DrawMenuBar", "DrawMenuBar", "User32.dll");
//E
external(INT, "EnableWindow", "EnableWindow", "User32.dll");
external(INT, "EnableMenuItem", "EnableMenuItem", "User32.dll");
external(INT, "EndTask", "EndTask", "User32.dll");
//F
external(INT, "FlashWindow", "FlashWindowEx", "User32.dll");
external(INT, "FindWindow", "FindWindowExA", "user32.dll");
external(INT, "FillRect", "FillRect", "User32.dll");
external(INT, "FtpSetCurrentDirectory", "FtpSetCurrentDirectoryA", "Wininet.dll" );
external(INT, "FtpGetFile", "FtpGetFileA", "Wininet.dll" );
external(INT, "FtpOpenFile", "FtpOpenFileA", "Wininet.dll");
//G
external(INT, "GetPrivateProfileString", "GetPrivateProfileStringA", "kernel32.dll");
external(INT, "GetTextExtentPoint32", "GetTextExtentPoint32A", "Gdi32.dll" );
external(INT, "GetWindowLong", "GetWindowLongA", "User32.dll" );
external(INT, "GetWindow", "GetWindow", "User32.dll" );
external(INT, "GetDC", "GetDC", "User32.dll" );
external(INT, "GetWindowText", "GetWindowTextA", "User32.dll");
external(INT, "GetFocus", "GetFocus", "User32.dll" );
external(INT, "GetWindowRect", "GetWindowRect", "User32.dll" );
external(INT, "GlobalMemoryStatusEx", "GlobalMemoryStatusEx", "Kernel32.dll");
external(INT, "GetSystemTimes", "GetSystemTimes", "Kernel32.dll");
external(INT, "GetModuleFileName", "GetModuleFileNameA", "Kernel32.dll");
external(INT, "GetModuleFileNameEx", "GetModuleFileNameExA","Psapi.dll");
external(INT, "GetSysColor", "GetSysColor", "User32.dll" );
//H
external(INT, "HiliteMenuItem", "HiliteMenuItem", "User32.dll");//
//I
external(INT, "InvalidateRect", "InvalidateRect", "user32.dll");
external(INT, "IsWindowVisible", "IsWindowVisible", "User32.dll");
external(INT, "IsWindowEnabled", "IsWindowEnabled", "User32.dll");
external(INT, "IsIconic", "IsIconic", "User32.dll");
external(INT, "IsZoomed", "IsZoomed", "User32.dll");
external(INT, "IsWow64Process", "IsWow64Process", "Kernel32.dll");
external(INT, "InternetReadFile", "InternetReadFile", "Wininet.dll" );
external(INT, "InternetOpen", "InternetOpenA", "Wininet.dll" );
external(INT, "InternetCloseHandle", "InternetCloseHandle", "Wininet.dll" );
external(INT, "InternetConnect", "InternetConnectA", "Wininet.dll" );
//J
//K
//L
external(INT, "LoadImage", "LoadImageA", "User32.dll");
(Добавление)
Не вместилось(по габаритам) (Отобразить) Цитата:
//M
external(INT, "MessageBeep", "MessageBeep", "user32.dll");
external(INT, "my_message", "MessageBoxA", "user32.dll");
external(INT, "ModifyMenuA", "ModifyMenuA", "user32.dll");
//N
//O
external(INT, "OpenMutex", "OpenMutexA", "Kernel32.dll");
//P
//Q
//R
external(INT, "ReleaseMutex", "ReleaseMutex", "Kernel32.dll");
external(INT, "RegisterHotKey", "RegisterHotKey", "User32.dll");
external(INT, "Rectangle", "Rectangle", "Gdi32.dll");
external(INT, "Run", "ShellExecuteA", "shell32.dll");
//S
external(INT, "SetWindowLong", "SetWindowLongA", "User32.dll" );
external(INT, "SetWindowPos", "SetWindowPos", "User32.dll");
external(INT, "SetMenuInfo", "SetMenuInfo", "User32.dll" );
external(INT, "SetBkMode", "SetBkMode", "Gdi32.dll" );
external(INT, "SetScrollRange", "SetScrollRange", "User32.dll" );
external(INT, "SetWindowText", "SetWindowTextA", "User32.dll" );
external(INT, "SetScrollRange", "SetScrollRange", "User32.dll" );
external(INT, "SetScrollPos", "SetScrollPos", "User32.dll" );
external(INT, "SetTextColor", "SetTextColor", "Gdi32.dll" );
external(INT, "SetWindowTextA", "SetWindowTextA", "User32.dll" );
external(INT, "SetMenu", "SetMenu", "User32.dll" );
external(INT, "SendMessage", "SendMessageA", "User32.dll" );
external(INT, "ShowWindow", "ShowWindow", "User32.dll" );
external(INT, "SetFocus", "SetFocus", "User32.dll" );
external(INT, "SelectObject", "SelectObject", "Gdi32.dll" );
external(INT, "SetTextColor", "SetTextColor", "Gdi32.dll" );
external(INT, "SelectObject", "SelectObject", "Gdi32.dll" );
external(INT, "SelectObject", "SelectObject", "Gdi32.dll");
external(INT, "SetCursor", "SetCursor", "User32.dll" );
external(INT, "Strftime", "Strftime", pathfolder()+"Time.dll" );
external(INT, "SetSysColors", "SetSysColors", "User32.dll" );
//T
external(INT, "TrackPopupMenu", "TrackPopupMenu", "User32.dll" );
external(INT, "TextOut", "TextOutA", "Gdi32.dll" );
//U
//V
//W
external(INT, "WritePrivateProfileString", "WritePrivateProfileStringA", "kernel32.dll");
external(INT, "WindowFromPoint", "WindowFromPoint", "User32.dll");
//X
//Y
//Z
(Добавление)
И было бы прекрасно если бы программа "прозванивала" каждую написанную в коде, что бы понять: "Используется или нет" и выделять их красными точками)
(Добавление)
Сделайте пожалуйста мою репутацию и карму как можно ниже, пожалуйста. |