Sometimes ANSI versions must be used, even in 64-bit code, to work properly (in particular when interacting with ANSI windows - possibly created by other applications):
Code: Select all
if IsWindowUnicode(Wnd) then
SendMessageW(Wnd, ...)
else
SendMessageA(Wnd, ...);
Code: Select all
Handle:=GetModuleHandleA('kernel32.dll');
Handle:=GetModuleHandleW('kernel32.dll');
Noclose64.exe:
Code: Select all
CreateProcessA
FreeEnvironmentStringsA
GetCommandLineA
GetEnvironmentStrings (this name exists simultaneously with GetEnvironmentStringsA)
GetLocaleInfoA
GetModuleFileNameA
GetModuleHandleA
GetStartupInfoA
GetStringTypeA
GetVersionExA
LCMapStringA
LoadLibraryA
Code: Select all
CreateEventA
CreateSemaphoreA
FreeEnvironmentStringsA
GetCommandLineA
GetEnvironmentStrings (this name exists simultaneously with GetEnvironmentStringsA)
GetLocaleInfoA
GetModuleFileNameA
GetModuleHandleA
GetStartupInfoA
GetStringTypeA
GetVersionExA
LCMapStringA
LoadLibraryA
Code: Select all
CreateFileA
CreateNamedPipeA
FreeEnvironmentStringsA
GetCommandLineA
GetEnvironmentStrings (this name exists simultaneously with GetEnvironmentStringsA)
GetLocaleInfoA
GetModuleFileNameA
GetModuleHandleA
GetStartupInfoA
GetStringTypeA
GetSystemDirectoryA
GetUserNameA
GetVersionExA
GetWindowsDirectoryA
LCMapStringA
LoadLibraryA
LoadLibraryExA
LookupAccountNameA
LookupPrivilegeValueA
MessageBoxA
WaitNamedPipeA
Code: Select all
CreateFileA
CreateFontIndirectA
CreateNamedPipeA
CreateWindowExA
DefWindowProcA
DispatchMessageA
FreeEnvironmentStringsA
GetCommandLineA
GetEnvironmentStrings (this name exists simultaneously with GetEnvironmentStringsA)
GetLocaleInfoA
GetMenuItemInfoA
GetModuleFileNameA
GetModuleHandleA
GetObjectA
GetStartupInfoA
GetStringTypeA
GetVersionExA
LCMapStringA
LoadLibraryA
MessageBoxA
PeekMessageA
RegEnumKeyA
RegisterClassExA
RegOpenKeyA
RegQueryValueA
SystemParametersInfoA
WaitNamedPipeA
WriteConsoleA
Code: Select all
CharPrevA
CharUpperA
CreateDirectoryA
CreateEventA
CreateFileA
CreateFontA
DeleteFileA
DialogBoxParamA
DispatchMessageA
EnumResourceLanguagesA
EnumResourceNamesA
EnumResourceTypesA
FindFirstFileA
FindNextFileA
FindResourceA
FindResourceExA
FindWindowA
GetCommandLineA
GetEnvironmentVariableA
GetFileAttributesA
GetModuleFileNameA
GetModuleHandleA
GetPrivateProfileIntA
GetPrivateProfileStringA
GetStartupInfoA
GetTempFileNameA
GetTempPathA
GetVersionExA
GetWindowsDirectoryA
LoadLibraryA
MessageBoxA
MoveFileA
PeekMessageA
PostMessageA
RegDeleteKeyA
RegOpenKeyExA
RegQueryValueExA
RemoveDirectoryA
SendDlgItemMessageA
SetCurrentDirectoryA
SetDlgItemTextA
Code: Select all
CreateFileA
FindFirstFileA
FreeEnvironmentStringsA
GetCommandLineA
GetEnvironmentStrings (this name exists simultaneously with GetEnvironmentStringsA)
GetLocaleInfoA
GetModuleFileNameA
GetModuleHandleA
GetStartupInfoA
GetStringTypeA
GetVersionExA
LCMapStringA
LoadLibraryA
WriteConsoleA
Code: Select all
AppendMenuA
CallWindowProcA
CharLowerA
CharLowerBuffA
CharNextA
CharNextExA
CharPrevA
CharPrevExA
CharToOemA
CharToOemBuffA
CharUpperA
CharUpperBuffA
ChooseColorA
ChooseFontA
CompareStringA
CopyFileA
CreateDCA
CreateDialogParamA
CreateDirectoryA
CreateEventA
CreateFileA
CreateFileMappingA
CreateFontA
CreateFontIndirectA
CreateMutexA
CreateProcessA
CreateSemaphoreA
CreateServiceA
CreateWindowExA
DefWindowProcA
DeleteFileA
DeviceCapabilitiesA
DispatchMessageA
DocumentPropertiesA
DragQueryFileA
DrawStateA
DrawTextA
EnumCalendarInfoA
EnumFontFamiliesA
EnumFontFamiliesExA
EnumFontsA
EnumPrintersA
EnumPropsA
EnumResourceLanguagesA
EnumResourceNamesA
EnumResourceTypesA
ExpandEnvironmentStringsA
ExtractIconA
ExtTextOutA
FindExecutableA
FindFirstFileA
FindNextFileA
FindResourceA
FindResourceExA
FindWindowA
FormatMessageA
FreeEnvironmentStringsA
GetCharABCWidthsA
GetClassInfoA
GetClassLongA
GetClassNameA
GetClipboardFormatNameA
GetCommandLineA
GetComputerNameA
GetCurrentDirectoryA
GetDateFormatA
GetDiskFreeSpaceA
GetDlgItemTextA
GetDriveTypeA
GetEnvironmentStringsA
GetEnvironmentVariableA
GetFileAttributesA
GetFileVersionInfoA
GetFileVersionInfoSizeA
GetLocaleInfoA
GetMenuItemInfoA
GetMenuStringA
GetMessageA
GetModuleFileNameA
GetModuleHandleA
GetObjectA
GetOpenFileNameA
GetPrinterA
GetPrivateProfileIntA
GetPrivateProfileSectionA
GetPrivateProfileStringA
GetProfileIntA
GetProfileStringA
GetPropA
GetSaveFileNameA
GetShortPathNameA
GetStartupInfoA
GetSystemDirectoryA
GetTabbedTextExtentA
GetTempFileNameA
GetTempPathA
GetTextExtentExPointA
GetTextExtentPoint32A
GetTextExtentPointA
GetTextMetricsA
GetUserNameA
GetVersionExA
GetVolumeInformationA
GetWindowLongA
GetWindowLongPtrA
GetWindowsDirectoryA
GetWindowTextA
GetWindowTextLengthA
GlobalAddAtomA
InsertMenuA
InsertMenuItemA
IsBadStringPtrA
IsCharAlphaA
IsCharAlphaNumericA
IsDialogMessageA
LCMapStringA
LoadBitmapA
LoadCursorA
LoadIconA
LoadImageA
LoadKeyboardLayoutA
LoadLibraryA
LoadLibraryExA
LoadStringA
LookupAccountSidA
LookupPrivilegeValueA
MapVirtualKeyA
MessageBoxA
ModifyMenuA
MoveFileA
OemToCharA
OemToCharBuffA
OpenDesktopA
OpenMutexA
OpenPrinterA
OpenSCManagerA
OpenServiceA
OutputDebugStringA
PageSetupDlgA
PeekMessageA
PlaySoundA
PostMessageA
PrintDlgA
QueryServiceConfigA
RegCreateKeyA
RegCreateKeyExA
RegDeleteKeyA
RegDeleteValueA
RegEnumKeyA
RegEnumValueA
RegisterClassA
RegisterClipboardFormatA
RegisterWindowMessageA
RegOpenKeyA
RegOpenKeyExA
RegQueryValueA
RegQueryValueExA
RegSetValueA
RegSetValueExA
RemoveDirectoryA
RemovePropA
SendDlgItemMessageA
SendMessageA
SendMessageTimeoutA
SetClassLongA
SetClassLongPtrA
SetCurrentDirectoryA
SetDlgItemTextA
SetEnvironmentVariableA
SetFileAttributesA
SetMenuItemInfoA
SetPropA
SetVolumeLabelA
SetWindowLongA
SetWindowLongPtrA
SetWindowsHookExA
SetWindowTextA
Shell_NotifyIconA
ShellExecuteA
ShellExecuteExA
SHFileOperationA
SHGetFileInfoA
StartDocA
StartDocPrinterA
StartServiceA
SystemParametersInfoA
TabbedTextOutA
TextOutA
UnregisterClassA
VerQueryValueA
WinHelpA
WNetAddConnection3A
WNetCancelConnectionA
WNetEnumResourceA
WNetGetConnectionA
WNetGetUserA
WNetOpenEnumA
WritePrivateProfileSectionA
WritePrivateProfileStringA
wvsprintfA
Code: Select all
CreateFileA
CreateMutexA
DispatchMessageA
FreeEnvironmentStringsA
GetCommandLineA
GetEnvironmentStrings (this name exists simultaneously with GetEnvironmentStringsA)
GetLocaleInfoA
GetModuleFileNameA
GetModuleHandleA
GetStartupInfoA
GetStringTypeA
GetVersionExA
IsDialogMessageA
LCMapStringA
LoadLibraryA
PeekMessageA
SendMessageA
WriteConsoleA