• Vui lòng đọc nội qui diễn đàn để tránh bị xóa bài viết
  • Tìm kiếm trước khi đặt câu hỏi

Danh sách các hàm API hổ trợ Unicode

Các bài viết hướng dẫn, giúp các bạn hiểu và tiếp cận với Visual Basic nhanh hơn
Hình đại diện của người dùng
NoBi
Quản trị
Quản trị
Bài viết: 952
Ngày tham gia: T.Ba 18/03/2008 1:22 pm
Đến từ: Sài Gòn
Has thanked: 50 time
Been thanked: 66 time
Liên hệ:

Danh sách các hàm API hổ trợ Unicode

Gửi bàigửi bởi NoBi » T.Sáu 28/03/2008 12:04 pm

Tên bài viết: Danh sách các hàm API hổ trợ Unicode
Tác giả: Sưu tầm
Cấp độ bài viết: Nâng cao
Tóm tắt: Danh sách các hàm API hổ trợ Unicode


I have finished the first draft of my Unicode API inc file. The
file is currently called Win32Uni.inc
This is an add-on to the normal API inc files as it does NOT
contain type information so it needs to appear after the include
files that contain the type data. The reason for this is that you
can simply add it in without worrying about clashes with PB's include files.
So, you would include it like this,
#Include "win32api.inc"
#Include "Comdlg32.inc"
#Include "Commctrl.inc"
#Include "Win32Uni.inc"
It contains all the Declares for "A" (ascii) type functions and subs
changed to "W" (Wide) and the function/sub name has "W" appended to
the end of it to avoid clashing with the other inc's functions.
##### WARNING #####
This is work in progress and not 100% tested, use at your own risk !!!
I have tested it for clashes in a compile and all is fine provided ALL
the other inc files are present as per above. Other than this I have
only tested a few of the functions for functionality. As it was extracted
for the original with a script from the latest API files I can't be 100%
certain for the data quality at this stage.
This is of course intellectual property of PowerBasic as it was extracted
from material created by them, if it suddenly dissappears from here then
you'll know they don't want it published like this
I hope this file saves you as much work as created for me. (ps, it'll add
atleast 14k to your exe size, small price to pay)
Regards
Paul Dwyer
' Contains Wide function and sub types from the following files,
'Comdlg32.inc
'Commctrl.inc
'win32api.inc
' Please make sure these files appear above the include statement for this file.
' Happy International Coding

' from Comdlg32.inc

Declare Function ChooseColorW Lib "COMDLG32.DLL" Alias "ChooseColorW" (lpcc As CHOOSECOLORAPI) As Long
Declare Function FindTextW Lib "COMDLG32.DLL" Alias "FindTextW" _
(lpfr As FINDREPLACE) As Long
Declare Function ReplaceTextW Lib "COMDLG32.DLL" Alias "ReplaceTextW" _
(lpfr As FINDREPLACE) As Long
Declare Function ChooseFontW Lib "COMDLG32.DLL" Alias "ChooseFontW" _
(lpcf As CHOOSEFONTAPI) As Long
Declare Function PrintDlgW Lib "COMDLG32.DLL" Alias "PrintDlgW" _
(lpPd As PRINTDLGAPI) As Long
Declare Function GetOpenFileNameW Lib "COMDLG32.DLL" Alias "GetOpenFileNameW" _
(lpofn As OPENFILENAME) As Long
Declare Function GetSaveFileNameW Lib "COMDLG32.DLL" Alias "GetSaveFileNameW" _
(lpofn As OPENFILENAME) As Long
Declare Function GetFileTitleW Lib "COMDLG32.DLL" Alias "GetFileTitleW" _
(Asciiz, Asciiz, ByVal Integer) As Integer


' from Commctrl.inc

Declare Function ImageList_LoadImageW Lib "COMCTL32.DLL" _
Alias "ImageList_LoadImageW" (ByVal hi As Dword, lpBmp As Asciiz, _
ByVal cx As Long, ByVal cGrow As Long, ByVal crMask As Dword, _
ByVal uTypw As Dword, ByVal uFlags As Dword) As Dword
Declare Sub DrawStatusTextW Lib "COMCTL32.DLL" Alias "DrawStatusTextW" _
(ByVal hDc As Dword, lprec As RECT, sztext As Asciiz, _
ByVal uFlags As Dword)
Declare Function CreateStatusWindowW Lib "COMCTL32.DLL" _
Alias "CreateStatusWindowW" (ByVal Style As Long, lpszText As Asciiz, _
ByVal hWndParent As Dword, ByVal wId As Dword) As Dword


' From Win32api.inc

Declare Function AddAtomW Lib "KERNEL32.DLL" Alias "AddAtomW" (lpString As Asciiz) As Long
Declare Function BeginUpdateResourceW Lib "KERNEL32.DLL" Alias "BeginUpdateResourceW" (pFileName As Asciiz, ByVal bDeleteExistingResources As Long) As Long
Declare Function BuildCommDCBW Lib "KERNEL32.DLL" Alias "BuildCommDCBW" (lpDef As Asciiz, lpDCB As DCB) As Long
Declare Function BuildCommDCBAndTimeoutsW Lib "KERNEL32.DLL" Alias "BuildCommDCBAndTimeoutsW" (lpDef As Asciiz, lpDCB As DCB, lpCommTimeouts As COMMTIMEOUTS) As Long
Declare Function CallNamedPipeW Lib "KERNEL32.DLL" Alias "CallNamedPipeW" (lpNamedPipeName As Asciiz, lpInBuffer As Any, ByVal nInBufferSize As Long, lpOutBuffer As Any, ByVal nOutBufferSize As Long, lpBytesRead As Long, _
ByVal nTimeOut As Long) As Long
Declare Function CommConfigDialogW Lib "KERNEL32.DLL" Alias "CommConfigDialogW" (lpszName As Asciiz, ByVal hWnd As Long, lpCC As COMMCONFIG) As Long
Declare Function CompareStringW Lib "KERNEL32.DLL" Alias "CompareStringW" (ByVal Locale As Long, ByVal dwCmpFlags As Long, lpString1 As Asciiz, ByVal cchCount1 As Long, lpString2 As Asciiz, ByVal cchCount2 As Long) As Long
Declare Function CopyFileW Lib "KERNEL32.DLL" Alias "CopyFileW" (lpExistingFileName As Asciiz, lpNewFileName As Asciiz, ByVal bFailIfExists As Long) As Long
Declare Function CreateDirectoryW Lib "KERNEL32.DLL" Alias "CreateDirectoryW" (lpPathName As Asciiz, lpSecurityAttributes As SECURITY_ATTRIBUTES) As Long
Declare Function CreateDirectoryExW Lib "KERNEL32.DLL" Alias "CreateDirectoryExW" (lpTemplateDirectory As Asciiz, lpNewDirectory As Asciiz, lpSecurityAttributes As SECURITY_ATTRIBUTES) As Long
Declare Function CreateEventW Lib "KERNEL32.DLL" Alias "CreateEventW" (lpEventAttributes As SECURITY_ATTRIBUTES, ByVal bManualReset As Long, ByVal bInitialState As Long, lpName As Asciiz) As Long
Declare Function CreateFileW Lib "KERNEL32.DLL" Alias "CreateFileW" (lpFileName As Asciiz, ByVal dwDesiredAccess As Dword, ByVal dwShareMode As Dword, lpSecurityAttributes As SECURITY_ATTRIBUTES, ByVal dwCreationDisposition As Dword, _
ByVal dwFlagsAndAttributes As Dword, ByVal hTemplateFile As Long) As Long
Declare Function CreateFileMappingW Lib "KERNEL32.DLL" Alias "CreateFileMappingW" (ByVal hFile As Long, lpFileMappigAttributes As SECURITY_ATTRIBUTES, ByVal flProtect As Long, ByVal dwMaximumSizeHigh As Long, ByVal dwMaximumSizeLow As Long, _
lpName As Asciiz) As Long
Declare Function CreateMailslotW Lib "KERNEL32.DLL" Alias "CreateMailslotW" (lpName As Asciiz, ByVal nMaxMessageSize As Long, ByVal lReadTimeout As Long, lpSecurityAttributes As SECURITY_ATTRIBUTES) As Long
Declare Function CreateMutexW Lib "KERNEL32.DLL" Alias "CreateMutexW" (lpMutexAttributes As SECURITY_ATTRIBUTES, ByVal bInitialOwner As Long, lpName As Asciiz) As Long
Declare Function CreateNamedPipeW Lib "KERNEL32.DLL" Alias "CreateNamedPipeW" (lpName As Asciiz, ByVal dwOpenMode As Long, ByVal dwPipeMode As Long, ByVal nMaxInstances As Long, ByVal nOutBufferSize As Long, ByVal nInBufferSize As Long, _
ByVal nDefaultTimeOut As Long, lpSecurityAttributes As SECURITY_ATTRIBUTES) As Long
Declare Function CreateProcessW Lib "KERNEL32.DLL" Alias "CreateProcessW" (lpApplicationName As Asciiz, lpCommandLine As Asciiz, lpProcessAttributes As SECURITY_ATTRIBUTES, lpThreadAttributes As SECURITY_ATTRIBUTES, _
ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, lpCurrentDriectory As Asciiz, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long
Declare Function CreateProcessAsUserW Lib "KERNEL32.DLL" Alias "CreateProcessAsUserW" (ByVal hToken As Long, lpApplicationName As Asciiz, lpCommandLine As Asciiz, lpProcessAttributes As SECURITY_ATTRIBUTES, _
lpThreadAttributes As SECURITY_ATTRIBUTES, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Asciiz, lpCurrentDirectory As Asciiz, lpStartupInfo As STARTUPINFO, _
lpProcessInformation As PROCESS_INFORMATION) As Long
Declare Function CreateSemaphoreW Lib "KERNEL32.DLL" Alias "CreateSemaphoreW" (lpSemaphoreAttributes As SECURITY_ATTRIBUTES, ByVal lInitialCount As Long, ByVal lMaximumCount As Long, lpName As Asciiz) As Long
Declare Function CreateWindowExW Lib "USER32.DLL" Alias "CreateWindowExW" _
(ByVal dwExStyle As Long, lpClassName As Asciiz, lpWindowName As Asciiz, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, _
ByVal nWidth As Long, ByVal nHeight As Long, ByVal hWndParent As Long, ByVal hMenu As Long, ByVal hInstance As Long, lpParam As Any) As Long
Declare Function DefineDosDeviceW Lib "KERNEL32.DLL" Alias "DefineDosDeviceW" (ByVal dwFlags As Long, lpDeviceName As Asciiz, lpTargetPath As Asciiz) As Long
Declare Function DeleteFileW Lib "KERNEL32.DLL" Alias "DeleteFileW" (lpFileName As Asciiz) As Long
Declare Function EndUpdateResourceW Lib "KERNEL32.DLL" Alias "EndUpdateResourceW" (ByVal hUpdate As Long, ByVal fDiscard As Long) As Long
Declare Function EnumCalendarInfoW Lib "KERNEL32.DLL" Alias "EnumCalendarInfoW" (ByVal lpCalInfoEnumProc As Long, ByVal Locale As Long, ByVal Calendar As Long, ByVal CalType As Long) As Long
Declare Function EnumResourceLanguagesW Lib "KERNEL32.DLL" Alias "EnumResourceLanguagesW" (ByVal hModule As Long, lpType As Asciiz, lpName As Asciiz, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
Declare Function EnumResourceNamesW Lib "KERNEL32.DLL" Alias "EnumResourceNamesW" (ByVal hModule As Long, lpType As Asciiz, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
Declare Function EnumResourceTypesW Lib "KERNEL32.DLL" Alias "EnumResourceTypesW" (ByVal hModule As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
Declare Function ExpandEnvironmentStringsW Lib "KERNEL32.DLL" Alias "ExpandEnvironmentStringsW" (lpSrc As Asciiz, lpDst As Asciiz, ByVal nSize As Long) As Long
Declare Function FillConsoleOutputCharacterW Lib "KERNEL32.DLL" Alias "FillConsoleOutputCharacterW" (ByVal hConsoleOutput As Long, szCharacter As Asciiz, ByVal nLength As Long, ByVal dwWriteCoord As Dword, lpNumberOfCharsWritten As Long) As Long
Declare Function FindAtomW Lib "KERNEL32.DLL" Alias "FindAtomW" (lpString As Asciiz) As Long
Declare Function FindFirstChangeNotificationW Lib "KERNEL32.DLL" Alias "FindFirstChangeNotificationW" (lpPathName As Asciiz, ByVal bWatchSubtree As Long, ByVal dwNotifyFilter As Long) As Long
Declare Function FindFirstFileW Lib "KERNEL32.DLL" Alias "FindFirstFileW" (lpFileName As Asciiz, lpFindFileData As WIN32_FIND_DATA) As Long
Declare Function FindNextFileW Lib "KERNEL32.DLL" Alias "FindNextFileW" (ByVal hFindFile As Long, lpFindFileData As WIN32_FIND_DATA) As Long
Declare Function FindResourceW Lib "KERNEL32.DLL" Alias "FindResourceW" (ByVal hInstance As Long, lpName As Asciiz, lpType As Asciiz) As Long
Declare Function FindResourceExW Lib "KERNEL32.DLL" Alias "FindResourceExW" (ByVal hModule As Long, lpType As Asciiz, lpName As Asciiz, ByVal wLanguage As Long) As Long
Declare Function FoldStringW Lib "KERNEL32.DLL" Alias "FoldStringW" (ByVal dwMapFlags As Long, lpSrcStr As Asciiz, ByVal cchSrc As Long, lpDestStr As Asciiz, ByVal cchDest As Long) As Long
Declare Function FormatMessageW Lib "KERNEL32.DLL" Alias "FormatMessageW" (ByVal dwFlags As Long, lpSource As Any, ByVal dwMessageId As Long, ByVal dwLanguageId As Long, lpBuffer As Asciiz, ByVal nSize As Long, Arguments As Long) As Long
Declare Function FreeEnvironmentStringsW Lib "KERNEL32.DLL" Alias "FreeEnvironmentStringsW" (lpsz As Asciiz) As Long
Declare Function GetAtomNameW Lib "KERNEL32.DLL" Alias "GetAtomNameW" (ByVal nAtom As Long, lpBuffer As Asciiz, ByVal nSize As Long) As Long
Declare Function GetBinaryTypeW Lib "KERNEL32.DLL" Alias "GetBinaryTypeW" (lpApplicationName As Asciiz, lpBinaryType As Long) As Long
Declare Function GetCommandLineW Lib "KERNEL32.DLL" Alias "GetCommandLineW" () As Dword
Declare Function GetCompressedFileSizeW Lib "KERNEL32.DLL" Alias "GetCompressedFileSizeW" (lpFileName As Asciiz, lpFileSizeHigh As Long) As Long
Declare Function GetComputerNameW Lib "KERNEL32.DLL" Alias "GetComputerNameW" (lpBuffer As Asciiz, nSize As Long) As Long
Declare Function GetConsoleTitleW Lib "KERNEL32.DLL" Alias "GetConsoleTitleW" (lpConsoleTitle As Asciiz, ByVal nSize As Long) As Long
Declare Function GetCurrencyFormatW Lib "KERNEL32.DLL" Alias "GetCurrencyFormatW" (ByVal Locale As Long, ByVal dwFlags As Long, lpValue As Asciiz, lpFormat As CURRENCYFMT, lpCurrencyStr As Asciiz, ByVal cchCurrency As Long) As Long
Declare Function GetCurrentDirectoryW Lib "KERNEL32.DLL" Alias "GetCurrentDirectoryW" (ByVal nBufferLength As Long, lpBuffer As Asciiz) As Long
Declare Function GetDateFormatW Lib "KERNEL32.DLL" Alias "GetDateFormatW" (ByVal Locale As Long, ByVal dwFlags As Long, lpDate As SYSTEMTIME, lpFormat As Asciiz, lpDateStr As Asciiz, ByVal cchDate As Long) As Long
Declare Function GetDefaultCommConfigW Lib "KERNEL32.DLL" Alias "GetDefaultCommConfigW" (lpszName As Asciiz, lpCC As COMMCONFIG, lpdwSize As Long) As Long
Declare Function GetDiskFreeSpaceW Lib "KERNEL32.DLL" Alias "GetDiskFreeSpaceW" (lpRootPathName As Asciiz, lpSectorsPerCluster As Dword, lpBytesPerSector As Dword, lpNumberOfFreeClusters As Dword, lpTotalNumberOfClusters As Dword) As Long
Declare Function GetDiskFreeSpaceExW Lib "KERNEL32.DLL" Alias "GetDiskFreeSpaceExW" (lpPathName As Asciiz, lpFreeBytesAvailableToCaller As Quad, lpTotalNumberOfBytes As Quad, lpTotalNumberOfFreeBytes As Quad) As Long
Declare Function GetDriveTypeW Lib "KERNEL32.DLL" Alias "GetDriveTypeW" (nDrive As Asciiz) As Long
Declare Function GetEnvironmentStringsW Lib "KERNEL32.DLL" Alias "GetEnvironmentStringsW" () As Dword
Declare Function GetEnvironmentVariableW Lib "KERNEL32.DLL" Alias "GetEnvironmentVariableW" (lpName As Asciiz, lpBuffer As Asciiz, ByVal nSize As Long) As Long
Declare Function GetFileAttributesW Lib "KERNEL32.DLL" Alias "GetFileAttributesW" (lpFileName As Asciiz) As Long
Declare Function GetFullPathNameW Lib "KERNEL32.DLL" Alias "GetFullPathNameW" (lpFileName As Asciiz, ByVal nBufferLength As Long, lpBuffer As Asciiz, ByVal lpFilePart As Long) As Long
Declare Function GetLocaleInfoW Lib "KERNEL32.DLL" Alias "GetLocaleInfoW" (ByVal Locale As Long, ByVal LCType As Long, lpLCData As Asciiz, ByVal cchData As Long) As Long
Declare Function GetLogicalDriveStringsW Lib "KERNEL32.DLL" Alias "GetLogicalDriveStringsW" (ByVal nBufferLength As Long, lpBuffer As Asciiz) As Long
Declare Function GetModuleFileNameW Lib "KERNEL32.DLL" Alias "GetModuleFileNameW" (ByVal hModule As Long, lpFileName As Asciiz, ByVal nSize As Long) As Long
Declare Function GetModuleHandleW Lib "KERNEL32.DLL" Alias "GetModuleHandleW" (lpModuleName As Asciiz) As Long
Declare Function GetNamedPipeHandleStateW Lib "KERNEL32.DLL" Alias "GetNamedPipeHandleStateW" (ByVal hNamedPipe As Long, lpState As Long, lpCurInstances As Long, lpMaxCollectionCount As Long, lpCollectDataTimeout As Long, _
lpUserName As Asciiz, ByVal nMaxUserNameSize As Long) As Long
Declare Function GetNumberFormatW Lib "KERNEL32.DLL" Alias "GetNumberFormatW" (ByVal Locale As Long, ByVal dwFlags As Long, lpValue As Asciiz, lpFormat As NUMBERFMT, lpNumberStr As Asciiz, ByVal cchNumber As Long) As Long
Declare Function GetPrivateProfileIntW Lib "KERNEL32.DLL" Alias "GetPrivateProfileIntW" (lpApplicationName As Asciiz, lpKeyName As Asciiz, ByVal nDefault As Long, lpFileName As Asciiz) As Long
Declare Function GetPrivateProfileSectionW Lib "KERNEL32.DLL" Alias "GetPrivateProfileSectionW" (lpAppName As Asciiz, lpReturnedString As Asciiz, ByVal nSize As Long, lpFileName As Asciiz) As Long
Declare Function GetPrivateProfileStringW Lib "KERNEL32.DLL" Alias "GetPrivateProfileStringW" (lpApplicationName As Asciiz, lpKeyName As Asciiz, lpDefault As Asciiz, lpReturnedString As Asciiz, ByVal nSize As Long, lpFileName As Asciiz) As Long
Declare Function GetProfileIntW Lib "KERNEL32.DLL" Alias "GetProfileIntW" (lpAppName As Asciiz, lpKeyName As Asciiz, ByVal nDefault As Long) As Long
Declare Function GetProfileSectionW Lib "KERNEL32.DLL" Alias "GetProfileSectionW" (lpAppName As Asciiz, lpReturnedString As Asciiz, ByVal nSize As Long) As Long
Declare Function GetProfileStringW Lib "KERNEL32.DLL" Alias "GetProfileStringW" (lpAppName As Asciiz, lpKeyName As Asciiz, lpDefault As Asciiz, lpReturnedString As Asciiz, ByVal nSize As Long) As Long
Declare Function GetShortPathNameW Lib "KERNEL32.DLL" Alias "GetShortPathNameW" (lpszLongPath As Asciiz, lpszShortPath As Asciiz, ByVal cchBuffer As Long) As Long
'Declare Function GetStringTypeAW Lib "KERNEL32.DLL" Alias "GetStringTypeW" (ByVal lcid As Long, ByVal dwInfoType As Long, lpSrcStr As Asciiz, ByVal cchSrc As Long, lpCharType As Long) As Long
Declare Function GetStringTypeExW Lib "KERNEL32.DLL" Alias "GetStringTypeExW" (ByVal Locale As Long, ByVal dwInfoType As Long, lpSrcStr As Asciiz, ByVal cchSrc As Long, lpCharType As Long) As Long
Declare Function GetSystemDirectoryW Lib "KERNEL32.DLL" Alias "GetSystemDirectoryW" (lpBuffer As Asciiz, ByVal nSize As Long) As Long
Declare Function GetTempFileNameW Lib "KERNEL32.DLL" Alias "GetTempFileNameW" (lpszPath As Asciiz, lpPrefixString As Asciiz, ByVal wUnique As Long, lpTempFileName As Asciiz) As Long
Declare Function GetTempPathW Lib "KERNEL32.DLL" Alias "GetTempPathW" (ByVal nBufferLength As Long, lpBuffer As Asciiz) As Long
Declare Function GetTimeFormatW Lib "KERNEL32.DLL" Alias "GetTimeFormatW" (ByVal Locale As Long, ByVal dwFlags As Long, lpTime As SYSTEMTIME, lpFormat As Asciiz, lpTimeStr As Asciiz, ByVal cchTime As Long) As Long
Declare Function GetVersionExW Lib "KERNEL32.DLL" Alias "GetVersionExW" (lpVersionInformation As OSVERSIONINFO) As Long
Declare Function GetVolumeInformationW Lib "KERNEL32.DLL" Alias "GetVolumeInformationW" (lpRootPathName As Asciiz, lpVolumeNameBuffer As Asciiz, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, _
lpFileSystemFlags As Long, lpFileSystemNameBuffer As Asciiz, ByVal nFileSystemNameSize As Long) As Long
Declare Function GetWindowsDirectoryW Lib "KERNEL32.DLL" Alias "GetWindowsDirectoryW" (lpBuffer As Asciiz, ByVal nSize As Long) As Long
Declare Function GlobalAddAtomW Lib "KERNEL32.DLL" Alias "GlobalAddAtomW" (lpString As Asciiz) As Long
Declare Function GlobalFindAtomW Lib "KERNEL32.DLL" Alias "GlobalFindAtomW" (lpString As Asciiz) As Long
Declare Function GlobalGetAtomNameW Lib "KERNEL32.DLL" Alias "GlobalGetAtomNameW" (ByVal nAtom As Long, lpBuffer As Asciiz, ByVal nSize As Long) As Long
Declare Function IsBadStringPtrW Lib "KERNEL32.DLL" Alias "IsBadStringPtrW" (lpsz As Asciiz, ByVal ucchMax As Long) As Long
Declare Function LCMapStringW Lib "KERNEL32.DLL" Alias "LCMapStringW" (ByVal Locale As Long, ByVal dwMapFlags As Long, lpSrcStr As Asciiz, ByVal cchSrc As Long, lpDestStr As Asciiz, ByVal cchDest As Long) As Long
Declare Function LoadLibraryW Lib "KERNEL32.DLL" Alias "LoadLibraryW" (lpLibFileName As Asciiz) As Long
Declare Function LoadLibraryExW Lib "KERNEL32.DLL" Alias "LoadLibraryExW" (lpLibFileName As Asciiz, ByVal hFile As Long, ByVal dwFlags As Long) As Long
Declare Function LogonUserW Lib "KERNEL32.DLL" Alias "LogonUserW" (lpszUsername As Asciiz, lpszDomain As Asciiz, lpszPassword As Asciiz, ByVal dwLogonType As Long, ByVal dwLogonProvider As Long, phToken As Long) As Long
Declare Function MoveFileW Lib "KERNEL32.DLL" Alias "MoveFileW" (lpExistingFileName As Asciiz, lpNewFileName As Asciiz) As Long
Declare Function MoveFileExW Lib "KERNEL32.DLL" Alias "MoveFileExW" (lpExistingFileName As Asciiz, lpNewFileName As Asciiz, ByVal dwFlags As Long) As Long
Declare Function ObjectOpenAuditAlarmW Lib "KERNEL32.DLL" Alias "ObjectOpenAuditAlarmW" (SubsystemName As Asciiz, HandleId As Any, ObjectTypeName As Asciiz, ObjectName As Asciiz, pSecurityDescriptor As SECURITY_DESCRIPTOR, _
ByVal ClientToken As Long, ByVal DesiredAccess As Long, ByVal GrantedAccess As Long, Privileges As PRIVILEGE_SET, ByVal ObjectCreation As Long, ByVal AccessGranted As Long, ByVal GenerateOnClose As Long) As Long
Declare Function OpenEventW Lib "KERNEL32.DLL" Alias "OpenEventW" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, lpName As Asciiz) As Long
Declare Function OpenFileMappingW Lib "KERNEL32.DLL" Alias "OpenFileMappingW" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, lpName As Asciiz) As Long
Declare Function OpenMutexW Lib "KERNEL32.DLL" Alias "OpenMutexW" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, lpName As Asciiz) As Long
Declare Function OpenSemaphoreW Lib "KERNEL32.DLL" Alias "OpenSemaphoreW" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, lpName As Asciiz) As Long
Declare Function QueryDosDeviceW Lib "KERNEL32.DLL" Alias "QueryDosDeviceW" (lpDeviceName As Asciiz, lpTargetPath As Asciiz, ByVal ucchMax As Long) As Long
Declare Function ReadConsoleW Lib "KERNEL32.DLL" Alias "ReadConsoleW" (ByVal hConsoleInput As Long, lpBuffer As Any, ByVal nNumberOfCharsToRead As Long, lpNumberOfCharsRead As Long, lpReserved As Any) As Long
Declare Function ReadConsoleInputW Lib "KERNEL32.DLL" Alias "ReadConsoleInputW" (ByVal hConsoleInput As Long, lpBuffer As Any, ByVal nNumberOfCharsToRead As Long, lpNumberOfCharsRead As Long) As Long
Declare Function ReadConsoleOutputW Lib "KERNEL32.DLL" Alias "ReadConsoleOutputW" (ByVal hConsoleOutput As Long, lpBuffer As CHAR_INFO, ByVal dwBufferSize As Dword, ByVal dwBufferCoord As Dword, lpReadRegion As SMALL_RECT) As Long
Declare Function ReadConsoleOutputCharacterW Lib "KERNEL32.DLL" Alias "ReadConsoleOutputCharacterW" (ByVal hConsoleOutput As Long, szCharacter As Asciiz, ByVal nLength As Long, ByVal dwReadCoord As Long, lpNumberOfCharsRead As Long) As Long
Declare Function RemoveDirectoryW Lib "KERNEL32.DLL" Alias "RemoveDirectoryW" (lpPathName As Asciiz) As Long
Declare Function ScrollConsoleScreenBufferW Lib "KERNEL32.DLL" Alias "ScrollConsoleScreenBufferW" (ByVal hConsoleOutput As Long, lpScrollRectangle As SMALL_RECT, lpClipRectangle As SMALL_RECT, ByVal dwDestinationOrigin As Dword, _
lpFill As CHAR_INFO) As Long
Declare Function SearchPathW Lib "KERNEL32.DLL" Alias "SearchPathW" (lpPath As Asciiz, lpFileName As Asciiz, lpExtension As Asciiz, ByVal nBufferLength As Long, lpBuffer As Asciiz, lpFilePart As Asciiz) As Long
Declare Function SetComputerNameW Lib "KERNEL32.DLL" Alias "SetComputerNameW" (lpComputerName As Asciiz) As Long
Declare Function SetConsoleTitleW Lib "KERNEL32.DLL" Alias "SetConsoleTitleW" (lpConsoleTitle As Asciiz) As Long
Declare Function SetCurrentDirectoryW Lib "KERNEL32.DLL" Alias "SetCurrentDirectoryW" (lpPathName As Asciiz) As Long
Declare Function SetDefaultCommConfigW Lib "KERNEL32.DLL" Alias "SetDefaultCommConfigW" (lpszName As Asciiz, lpCC As COMMCONFIG, ByVal dwSize As Long) As Long
Declare Function SetEnvironmentVariableW Lib "KERNEL32.DLL" Alias "SetEnvironmentVariableW" (lpName As Asciiz, lpValue As Asciiz) As Long
Declare Function SetFileAttributesW Lib "KERNEL32.DLL" Alias "SetFileAttributesW" (lpFileName As Asciiz, ByVal dwFileAttributes As Dword) As Long
Declare Function SetLocaleInfoW Lib "KERNEL32.DLL" Alias "SetLocaleInfoW" (ByVal Locale As Long, ByVal LCType As Long, lpLCData As Asciiz) As Long
Declare Function SetVolumeLabelW Lib "KERNEL32.DLL" Alias "SetVolumeLabelW" (lpRootPathName As Asciiz, lpVolumeName As Asciiz) As Long
Declare Function UpdateResourceW Lib "KERNEL32.DLL" Alias "UpdateResourceW" (ByVal hUpdate As Long, lpType As Asciiz, lpName As Asciiz, ByVal wLanguage As Long, lpData As Any, ByVal cbData As Long) As Long
Declare Function VerLanguageNameW Lib "KERNEL32.DLL" Alias "VerLanguageNameW" (ByVal wLang As Long, szLang As Asciiz, ByVal nSize As Long) As Long
Declare Function WaitNamedPipeW Lib "KERNEL32.DLL" Alias "WaitNamedPipeW" (lpNamedPipeName As Asciiz, ByVal nTimeOut As Long) As Long
Declare Function WriteConsoleW Lib "KERNEL32.DLL" Alias "WriteConsoleW" (ByVal hConsoleOutput As Long, lpBuffer As Asciiz, ByVal nNumberOfCharsToWrite As Long, lpNumberOfCharsWritten As Long, ByVal lpReserved As Long) As Long
Declare Function WriteConsoleInputW Lib "KERNEL32.DLL" Alias "WriteConsoleInputW" (ByVal hConsoleInput As Long, lpBuffer As INPUT_RECORD, ByVal nLength As Long, lpNumberOfEventsWritten As Long) As Long
Declare Function WriteConsoleOutputW Lib "KERNEL32.DLL" Alias "WriteConsoleOutputW" (ByVal hConsoleOutput As Long, lpBuffer As CHAR_INFO, ByVal dwBufferSize As Dword, ByVal dwBufferCoord As Dword, lpWriteRegion As SMALL_RECT) As Long
Declare Function WriteConsoleOutputCharacterW Lib "KERNEL32.DLL" Alias "WriteConsoleOutputCharacterW" (ByVal hConsoleOutput As Long, szCharacter As Asciiz, ByVal nLength As Long, ByVal dwWriteCoord As Dword, lpNumberOfCharsWritten As Long) As Long
Declare Function WritePrivateProfileSectionW Lib "KERNEL32.DLL" Alias "WritePrivateProfileSectionW" (lpAppName As Asciiz, lpString As Asciiz, lpFileName As Asciiz) As Long
Declare Function WritePrivateProfileStringW Lib "KERNEL32.DLL" Alias "WritePrivateProfileStringW" (lpApplicationName As Asciiz, lpKeyName As Asciiz, lpString As Asciiz, lpFileName As Asciiz) As Long
Declare Function WriteProfileSectionW Lib "KERNEL32.DLL" Alias "WriteProfileSectionW" (lpAppName As Asciiz, lpString As Asciiz) As Long
Declare Function WriteProfileStringW Lib "KERNEL32.DLL" Alias "WriteProfileStringW" (lpszSection As Asciiz, lpszKeyName As Asciiz, lpszString As Asciiz) As Long
Declare Function lstrcatW Lib "KERNEL32.DLL" Alias "lstrcatW" (lpString1 As Asciiz, lpString2 As Asciiz) As Long
Declare Function lstrcmpW Lib "KERNEL32.DLL" Alias "lstrcmpW" (lpString1 As Asciiz, lpString2 As Asciiz) As Long
Declare Function lstrcmpiW Lib "KERNEL32.DLL" Alias "lstrcmpiW" (lpString1 As Asciiz, lpString2 As Asciiz) As Long
Declare Function lstrcpyW Lib "KERNEL32.DLL" Alias "lstrcpyW" (lpString1 As Asciiz, lpString2 As Asciiz) As Long
Declare Function lstrcpynW Lib "KERNEL32.DLL" Alias "lstrcpynW" (lpString1 As Asciiz, lpString2 As Asciiz, ByVal iMaxLength As Long) As Long
'Declare Function lstrlenW Lib "KERNEL32.DLL" Alias "lstrlenW" (lpString As Asciiz) As Long
Declare Sub FatalAppExitW Lib "KERNEL32.DLL" Alias "FatalAppExitW" (ByVal uAction As Long, lpMessageText As Asciiz)
Declare Sub GetStartupInfoW Lib "KERNEL32.DLL" Alias "GetStartupInfoW" (lpStartupInfo As STARTUPINFO)
Declare Sub OutputDebugStringW Lib "KERNEL32.DLL" Alias "OutputDebugStringW" (lpOutputString As Asciiz)
Declare Function AbortSystemShutdownW Lib "ADVAPI32.DLL" Alias "AbortSystemShutdownW" (lpMachineName As Asciiz) As Long
Declare Function AccessCheckAndAuditAlarmW Lib "ADVAPI32.DLL" Alias "AccessCheckAndAuditAlarmW" (SubsystemName As Asciiz, HandleId As Any, ObjectTypeName As Asciiz, ObjectName As Asciiz, SecurityDescriptor As SECURITY_DESCRIPTOR, _
ByVal DesiredAccess As Long, GenericMapping As GENERIC_MAPPING, ByVal ObjectCreation As Long, GrantedAccess As Long, ByVal AccessStatus As Long, ByVal pfGenerateOnClose As Long) As Long
Declare Function BackupEventLogW Lib "ADVAPI32.DLL" Alias "BackupEventLogW" (ByVal hEventLog As Long, lpBackupFileName As Asciiz) As Long
Declare Function ChangeServiceConfigW Lib "ADVAPI32.DLL" Alias "ChangeServiceConfigW" (ByVal hService As Long, ByVal dwServiceType As Long, ByVal dwStartType As Long, ByVal dwErrorControl As Long, lpBinaryPathName As Asciiz, _
lpLoadOrderGroup As Asciiz, lpdwTagId As Long, lpDependencies As Asciiz, lpServiceStartName As Asciiz, lpPassword As Asciiz, lpDisplayName As Asciiz) As Long
Declare Function ClearEventLogW Lib "ADVAPI32.DLL" Alias "ClearEventLogW" (ByVal hEventLog As Long, lpBackupFileName As Asciiz) As Long
Declare Function CreateServiceW Lib "ADVAPI32.DLL" Alias "CreateServiceW" (ByVal hSCManager As Long, lpServiceName As Asciiz, lpDisplayName As Asciiz, ByVal dwDesiredAccess As Long, ByVal dwServiceType As Long, _
ByVal dwStartType As Long, ByVal dwErrorControl As Long, lpBinaryPathName As Asciiz, lpLoadOrderGroup As Asciiz, lpdwTagId As Long, lpDependencies As Asciiz, lp As Asciiz, lpPassword As Asciiz) As Long
Declare Function EnumDependentServicesW Lib "ADVAPI32.DLL" Alias "EnumDependentServicesW" (ByVal hService As Long, ByVal dwServiceState As Long, lpServices As ENUM_SERVICE_STATUS, ByVal cbBufSize As Long, pcbBytesNeeded As Long, _
lpServicesReturned As Long) As Long
Declare Function EnumServicesStatusW Lib "ADVAPI32.DLL" Alias "EnumServicesStatusW" (ByVal hSCManager As Long, ByVal dwServiceType As Long, ByVal dwServiceState As Long, lpServices As ENUM_SERVICE_STATUS, ByVal cbBufSize As Long, _
pcbBytesNeeded As Long, lpServicesReturned As Long, lpResumeHandle As Long) As Long
Declare Function GetFileSecurityW Lib "ADVAPI32.DLL" Alias "GetFileSecurityW" (lpFileName As Asciiz, ByVal RequestedInformation As Long, pSecurityDescriptor As SECURITY_DESCRIPTOR, ByVal nLength As Long, lpnLengthNeeded As Long) As Long
Declare Function GetServiceDisplayNameW Lib "ADVAPI32.DLL" Alias "GetServiceDisplayNameW" (ByVal hSCManager As Long, lpServiceName As Asciiz, lpDisplayName As Asciiz, lpcchBuffer As Long) As Long
Declare Function GetServiceKeyNameW Lib "ADVAPI32.DLL" Alias "GetServiceKeyNameW" (ByVal hSCManager As Long, lpDisplayName As Asciiz, lpServiceName As Asciiz, lpcchBuffer As Long) As Long
Declare Function GetUserNameW Lib "ADVAPI32.DLL" Alias "GetUserNameW" (lpBuffer As Asciiz, nSize As Long) As Long
Declare Function InitiateSystemShutdownW Lib "ADVAPI32.DLL" Alias "InitiateSystemShutdownW" (lpMachineName As Asciiz, lpMessage As Asciiz, ByVal dwTimeout As Long, ByVal bForceAppsClosed As Long, ByVal bRebootAfterShutdown As Long) As Long
Declare Function LookupAccountNameW Lib "ADVAPI32.DLL" Alias "LookupAccountNameW" (lpSystemName As Asciiz, lpAccountName As Asciiz, Sid As Long, cbSid As Long, ReferencedDomainName As Asciiz, cbReferencedDomainName As Long, peUse As Long) As Long
Declare Function LookupAccountSidW Lib "ADVAPI32.DLL" Alias "LookupAccountSidW" (lpSystemName As Asciiz, Sid As Any, xName As Asciiz, cbName As Long, ReferencedDomainName As Asciiz, cbReferencedDomainName As Long, peUse As Long) As Long
Declare Function LookupPrivilegeDisplayNameW Lib "ADVAPI32.DLL" Alias "LookupPrivilegeDisplayNameW" (lpSystemName As Asciiz, lpName As Asciiz, lpDisplayName As Asciiz, cbDisplayName As Long, lpLanguageID As Long) As Long
Declare Function LookupPrivilegeNameW Lib "ADVAPI32.DLL" Alias "LookupPrivilegeNameW" (lpSystemName As Asciiz, lpLuid As LARGE_INTEGER, lpName As Asciiz, cbName As Long) As Long
Declare Function LookupPrivilegeValueW Lib "ADVAPI32.DLL" Alias "LookupPrivilegeValueW" (lpSystemName As Asciiz, lpName As Asciiz, lpLuid As LARGE_INTEGER) As Long
Declare Function ObjectCloseAuditAlarmW Lib "ADVAPI32.DLL" Alias "ObjectCloseAuditAlarmW" (SubsystemName As Asciiz, HandleId As Any, ByVal GenerateOnClose As Long) As Long
Declare Function ObjectPrivilegeAuditAlarmW Lib "ADVAPI32.DLL" Alias "ObjectPrivilegeAuditAlarmW" (SubsystemName As Asciiz, HandleId As Any, ByVal ClientToken As Long, ByVal DesiredAccess As Long, Privileges As PRIVILEGE_SET, _
ByVal AccessGranted As Long) As Long
Declare Function OpenBackupEventLogW Lib "ADVAPI32.DLL" Alias "OpenBackupEventLogW" (lpUNCServerName As Asciiz, lpFileName As Asciiz) As Long
Declare Function OpenEventLogW Lib "ADVAPI32.DLL" Alias "OpenEventLogW" (lpUNCServerName As Asciiz, lpSourceName As Asciiz) As Long
Declare Function OpenSCManagerW Lib "ADVAPI32.DLL" Alias "OpenSCManagerW" (lpMachineName As Asciiz, lpDatabaseName As Asciiz, ByVal dwDesiredAccess As Long) As Long
Declare Function OpenServiceW Lib "ADVAPI32.DLL" Alias "OpenServiceW" (ByVal hSCManager As Long, lpServiceName As Asciiz, ByVal dwDesiredAccess As Long) As Long
Declare Function PrivilegedServiceAuditAlarmW Lib "ADVAPI32.DLL" Alias "PrivilegedServiceAuditAlarmW" (SubsystemName As Asciiz, ServiceName As Asciiz, ByVal ClientToken As Long, Privileges As PRIVILEGE_SET, ByVal AccessGranted As Long) As Long
Declare Function QueryServiceConfigW Lib "ADVAPI32.DLL" Alias "QueryServiceConfigW" (ByVal hService As Long, lpServiceConfig As QUERY_SERVICE_CONFIG, ByVal cbBufSize As Long, pcbBytesNeeded As Long) As Long
Declare Function QueryServiceLockStatusW Lib "ADVAPI32.DLL" Alias "QueryServiceLockStatusW" (ByVal hSCManager As Long, lpLockStatus As QUERY_SERVICE_LOCK_STATUS, ByVal cbBufSize As Long, pcbBytesNeeded As Long) As Long
Declare Function ReadEventLogW Lib "ADVAPI32.DLL" Alias "ReadEventLogW" (ByVal hEventLog As Long, ByVal dwReadFlags As Long, ByVal dwRecordOffset As Long, lpBuffer As EVENTLOGRECORD, ByVal nNumberOfBytesToRead As Long, pnBytesRead As Long, _
pnMinNumberOfBytesNeeded As Long) As Long
Declare Function RegConnectRegistryW Lib "ADVAPI32.DLL" Alias "RegConnectRegistryW" (lpMachineName As Asciiz, ByVal hKey As Long, phkResult As Long) As Long
Declare Function RegCreateKeyW Lib "ADVAPI32.DLL" Alias "RegCreateKeyW" (ByVal hKey As Long, lpSubKey As Asciiz, phkResult As Long) As Long
Declare Function RegCreateKeyExW Lib "ADVAPI32.DLL" Alias "RegCreateKeyExW" (ByVal hKey As Long, lpSubKey As Asciiz, ByVal Reserved As Long, lpClass As Asciiz, ByVal dwOptions As Long, ByVal samDesired As Long, _
lpSecurityAttributes As SECURITY_ATTRIBUTES, phkResult As Long, lpdwDisposition As Long) As Long
Declare Function RegDeleteKeyW Lib "ADVAPI32.DLL" Alias "RegDeleteKeyW" (ByVal hKey As Long, lpSubKey As Asciiz) As Long
Declare Function RegDeleteValueW Lib "ADVAPI32.DLL" Alias "RegDeleteValueW" (ByVal hKey As Long, lpValueName As Asciiz) As Long
Declare Function RegEnumKeyW Lib "ADVAPI32.DLL" Alias "RegEnumKeyW" (ByVal hKey As Long, ByVal dwIndex As Long, lpName As Asciiz, ByVal cbName As Long) As Long
Declare Function RegEnumKeyExW Lib "ADVAPI32.DLL" Alias "RegEnumKeyExW" (ByVal hKey As Long, ByVal dwIndex As Long, lpName As Asciiz, lpcbName As Long, ByVal lpReserved As Long, lpClass As Asciiz, lpcbClass As Long, lpftLastWriteTime As FILETIME) As Long
Declare Function RegEnumValueW Lib "ADVAPI32.DLL" Alias "RegEnumValueW" (ByVal hKey As Long, ByVal dwIndex As Long, lpValueName As Asciiz, lpcbValueName As Long, ByVal lpReserved As Long, lpType As Long, lpData As Byte, lpcbData As Long) As Long
Declare Function RegLoadKeyW Lib "ADVAPI32.DLL" Alias "RegLoadKeyW" (ByVal hKey As Long, lpSubKey As Asciiz, lpFile As Asciiz) As Long
Declare Function RegOpenKeyW Lib "ADVAPI32.DLL" Alias "RegOpenKeyW" (ByVal hKey As Long, lpSubKey As Asciiz, phkResult As Long) As Long
Declare Function RegOpenKeyExW Lib "ADVAPI32.DLL" Alias "RegOpenKeyExW" (ByVal hKey As Long, lpSubKey As Asciiz, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
Declare Function RegQueryInfoKeyW Lib "ADVAPI32.DLL" Alias "RegQueryInfoKeyW" (ByVal hKey As Long, lpClass As Asciiz, lpcbClass As Long, lpReserved As Long, lpcSubKeys As Long, lpcbMaxSubKeyLen As Long, lpcbMaxClassLen As Long, lpcValues As Long, _
lpcbMaxValueNameLen As Long, lpcbMaxValueLen As Long, lpcbSecurityDescriptor As Long, lpftLastWriteTime As FILETIME) As Long
Declare Function RegQueryValueW Lib "ADVAPI32.DLL" Alias "RegQueryValueW" (ByVal hKey As Long, lpSubKey As Asciiz, lpValue As Asciiz, lpcbValue As Long) As Long
Declare Function RegQueryValueExW Lib "ADVAPI32.DLL" Alias "RegQueryValueExW" (ByVal hKey As Long, lpValueName As Asciiz, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Declare Function RegReplaceKeyW Lib "ADVAPI32.DLL" Alias "RegReplaceKeyW" (ByVal hKey As Long, lpSubKey As Asciiz, lpNewFile As Asciiz, lpOldFile As Asciiz) As Long
Declare Function RegRestoreKeyW Lib "ADVAPI32.DLL" Alias "RegRestoreKeyW" (ByVal hKey As Long, lpFile As Asciiz, ByVal dwFlags As Long) As Long
Declare Function RegSaveKeyW Lib "ADVAPI32.DLL" Alias "RegSaveKeyW" (ByVal hKey As Long, lpFile As Asciiz, lpSecurityAttributes As SECURITY_ATTRIBUTES) As Long
Declare Function RegSetValueW Lib "ADVAPI32.DLL" Alias "RegSetValueW" (ByVal hKey As Long, lpSubKey As Asciiz, ByVal dwType As Long, lpData As Asciiz, ByVal cbData As Long) As Long
Declare Function RegSetValueExW Lib "ADVAPI32.DLL" Alias "RegSetValueExW" (ByVal hKey As Long, lpValueName As Asciiz, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
Declare Function RegUnLoadKeyW Lib "ADVAPI32.DLL" Alias "RegUnLoadKeyW" (ByVal hKey As Long, lpSubKey As Asciiz) As Long
Declare Function RegisterEventSourceW Lib "ADVAPI32.DLL" Alias "RegisterEventSourceW" (lpUNCServerName As Asciiz, lpSourceName As Asciiz) As Long
Declare Function RegisterServiceCtrlHandlerW Lib "ADVAPI32.DLL" Alias "RegisterServiceCtrlHandlerW" (lpServiceName As Asciiz, ByVal lpHandlerProc As Long) As Long
Declare Function ReportEventW Lib "ADVAPI32.DLL" Alias "ReportEventW" (ByVal hEventLog As Long, ByVal wType As Long, ByVal wCategory As Long, ByVal dwEventID As Long, lpUserSid As Any, ByVal wNumStrings As Long, ByVal dwDataSize As Long, _
lpStrings As Long, lpRawData As Any) As Long
Declare Function SetFileSecurityW Lib "ADVAPI32.DLL" Alias "SetFileSecurityW" (lpFileName As Asciiz, ByVal SecurityInformation As Long, pSecurityDescriptor As SECURITY_DESCRIPTOR) As Long
Declare Function StartServiceW Lib "ADVAPI32.DLL" Alias "StartServiceW" (ByVal hService As Long, ByVal dwNumServiceArgs As Long, ByVal lpServiceArgVectors As Long) As Long
Declare Function StartServiceCtrlDispatcherW Lib "ADVAPI32.DLL" Alias "StartServiceCtrlDispatcherW" (lpServiceStartTable As SERVICE_TABLE_ENTRY) As Long
Declare Function AddFontResourceW Lib "GDI32.DLL" Alias "AddFontResourceW" (lpFileName As Asciiz) As Long
Declare Function AnimatePaletteW Lib "GDI32.DLL" Alias "AnimatePaletteW" (ByVal hPalette As Long, ByVal wStartIndex As Long, ByVal wNumEntries As Long, lpPaletteColors As PALETTEENTRY) As Long
Declare Function CopyEnhMetaFileW Lib "GDI32.DLL" Alias "CopyEnhMetaFileW" (ByVal hemfSrc As Long, lpszFile As Asciiz) As Long
Declare Function CopyMetaFileW Lib "GDI32.DLL" Alias "CopyMetaFileW" (ByVal hMF As Long, lpFileName As Asciiz) As Long
Declare Function CreateColorSpaceW Lib "GDI32.DLL" Alias "CreateColorSpaceW" (lplogcolorspace As LOGCOLORSPACE) As Long
Declare Function CreateDCW Lib "GDI32.DLL" Alias "CreateDCW" (lpDriverName As Asciiz, lpDeviceName As Asciiz, lpOutput As Asciiz, lpInitData As DEVMODE) As Long
Declare Function CreateEnhMetaFileW Lib "GDI32.DLL" Alias "CreateEnhMetaFileW" (ByVal hdcRef As Long, lpFileName As Asciiz, lpRect As RECT, lpDescription As Asciiz) As Long
Declare Function CreateFontW Lib "GDI32.DLL" Alias "CreateFontW" (ByVal H As Long, ByVal W As Long, ByVal E As Long, ByVal O As Long, ByVal W As Long, ByVal I As Long, ByVal u As Long, ByVal S As Long, ByVal C As Long, ByVal OP As Long, _
ByVal CP As Long, ByVal Q As Long, ByVal PAF As Long, F As Asciiz) As Long
Declare Function CreateFontIndirectW Lib "GDI32.DLL" Alias "CreateFontIndirectW" (lpLogFont As LOGFONT) As Long
Declare Function CreateICW Lib "GDI32.DLL" Alias "CreateICW" (lpDriverName As Asciiz, lpDeviceName As Asciiz, lpOutput As Asciiz, lpInitData As DEVMODE) As Long
Declare Function CreateMetaFileW Lib "GDI32.DLL" Alias "CreateMetaFileW" (lpString As Asciiz) As Long
Declare Function CreateScalableFontResourceW Lib "GDI32.DLL" Alias "CreateScalableFontResourceW" (ByVal fHidden As Long, lpszResourceFile As Asciiz, lpszFontFile As Asciiz, lpszCurrentPath As Asciiz) As Long
Declare Function EnumFontFamiliesW Lib "GDI32.DLL" Alias "EnumFontFamiliesW" (ByVal hdc As Long, lpszFamily As Asciiz, ByVal lpEnumFontFamProc As Long, ByVal lParam As Long) As Long
Declare Function EnumFontFamiliesExW Lib "GDI32.DLL" Alias "EnumFontFamiliesExW" (ByVal hdc As Long, lpLogFont As LOGFONT, ByVal lpEnumFontProc As Long, ByVal lParam As Long, ByVal dw As Long) As Long
Declare Function EnumFontsW Lib "GDI32.DLL" Alias "EnumFontsW" (ByVal hDC As Long, lpsz As Asciiz, ByVal lpFontEnumProc As Long, ByVal lParam As Long) As Long
Declare Function EnumICMProfilesW Lib "GDI32.DLL" Alias "EnumICMProfilesW" (ByVal hdc As Long, ByVal icmEnumProc As Long, ByVal lParam As Long) As Long
Declare Function ExtTextOutW Lib "GDI32.DLL" Alias "ExtTextOutW" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal wOptions As Long, lpRect As RECT, lpString As Asciiz, ByVal nCount As Long, lpDx As Long) As Long
Declare Function GetCharABCWidthsW Lib "GDI32.DLL" Alias "GetCharABCWidthsW" (ByVal hdc As Long, ByVal uFirstChar As Long, ByVal uLastChar As Long, lpabc As ABC) As Long
Declare Function GetCharABCWidthsFloatW Lib "GDI32.DLL" Alias "GetCharABCWidthsFloatW" (ByVal hdc As Long, ByVal iFirstChar As Long, ByVal iLastChar As Long, lpABCF As ABCFLOAT) As Long
Declare Function GetCharWidthW Lib "GDI32.DLL" Alias "GetCharWidthW" (ByVal hDC As Long, ByVal un1 As Long, ByVal un2 As Long, lpn As Long) As Long
Declare Function GetCharWidthW Lib "GDI32.DLL" Alias "GetCharWidthW" (ByVal hdc As Long, ByVal wFirstChar As Long, ByVal wLastChar As Long, lpBuffer As Long) As Long
Declare Function GetCharWidth32W Lib "GDI32.DLL" Alias "GetCharWidth32W" (ByVal hdc As Long, ByVal iFirstChar As Long, ByVal iLastChar As Long, lpBuffer As Long) As Long
Declare Function GetCharWidthFloatW Lib "GDI32.DLL" Alias "GetCharWidthFloatW" (ByVal hdc As Long, ByVal iFirstChar As Long, ByVal iLastChar As Long, pxBuffer As Double) As Long
Declare Function GetCharacterPlacementW Lib "GDI32.DLL" Alias "GetCharacterPlacementW" (ByVal hdc As Long, lpsz As Asciiz, ByVal n1 As Long, ByVal n2 As Long, lpGcpResults As GCP_RESULTS, ByVal dw As Long) As Long
Declare Function GetEnhMetaFileW Lib "GDI32.DLL" Alias "GetEnhMetaFileW" (lpszMetaFile As Asciiz) As Long
Declare Function GetEnhMetaFileDescriptionW Lib "GDI32.DLL" Alias "GetEnhMetaFileDescriptionW" (ByVal hemf As Long, ByVal cchBuffer As Long, lpszDescription As Asciiz) As Long
Declare Function GetFontDataW Lib "GDI32.DLL" Alias "GetFontDataW" (ByVal hdc As Long, ByVal dwTable As Long, ByVal dwOffset As Long, lpvBuffer As Any, ByVal cbData As Long) As Long
Declare Function GetGlyphOutlineW Lib "GDI32.DLL" Alias "GetGlyphOutlineW" (ByVal hdc As Long, ByVal uChar As Long, ByVal fuFormat As Long, lpgm As GLYPHMETRICS, ByVal cbBuffer As Long, lpBuffer As Any, lpmat2 As MAT2) As Long
Declare Function GetICMProfileW Lib "GDI32.DLL" Alias "GetICMProfileW" (ByVal hdc As Long, ByVal dw As Long, lpStr As Asciiz) As Long
Declare Function GetKerningPairsW Lib "GDI32.DLL" Alias "GetKerningPairsW" (ByVal hdc As Long, ByVal cPairs As Long, lpkrnpair As KERNINGPAIR) As Long
Declare Function GetLogColorSpaceW Lib "GDI32.DLL" Alias "GetLogColorSpaceW" (ByVal hcolorspace As Long, lplogcolorspace As LOGCOLORSPACE, ByVal dw As Long) As Long
Declare Function GetMetaFileW Lib "GDI32.DLL" Alias "GetMetaFileW" (lpFileName As Asciiz) As Long
Declare Function GetObjectW Lib "GDI32.DLL" Alias "GetObjectW" (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
Declare Function GetOutlineTextMetricsW Lib "GDI32.DLL" Alias "GetOutlineTextMetricsW" (ByVal hdc As Long, ByVal cbData As Long, lpotm As OUTLINETEXTMETRIC) As Long
Declare Function GetRegionDataW Lib "GDI32.DLL" Alias "GetRegionDataW" (ByVal hRgn As Long, ByVal dwCount As Long, lpRgnData As RgnData) As Long
Declare Function GetTextExtentExPointW Lib "GDI32.DLL" Alias "GetTextExtentExPointW" (ByVal hdc As Long, lpszStr As Asciiz, ByVal cchString As Long, ByVal nMaxExtent As Long, lpnFit As Long, alpDx As Long, lpSize As SIZEL) As Long
Declare Function GetTextExtentPointW Lib "GDI32.DLL" Alias "GetTextExtentPointW" (ByVal hdc As Long, lpszString As Asciiz, ByVal cbString As Long, lpSize As SIZEL) As Long
Declare Function GetTextExtentPoint32W Lib "GDI32.DLL" Alias "GetTextExtentPoint32W" (ByVal hdc As Long, lpsz As Asciiz, ByVal cbString As Long, lpSize As SIZEL) As Long
Declare Function GetTextFaceW Lib "GDI32.DLL" Alias "GetTextFaceW" (ByVal hdc As Long, ByVal nCount As Long, lpFacename As Asciiz) As Long
Declare Function GetTextMetricsW Lib "GDI32.DLL" Alias "GetTextMetricsW" (ByVal hdc As Long, lpMetrics As TEXTMETRIC) As Long
Declare Function LineDDAW Lib "GDI32.DLL" Alias "LineDDW" (ByVal n1 As Long, ByVal n2 As Long, ByVal n3 As Long, ByVal n4 As Long, ByVal lpLineDDAProc As Long, ByVal lParam As Long) As Long
Declare Function PolyTextOutW Lib "GDI32.DLL" Alias "PolyTextOutW" (ByVal hdc As Long, pptxt As POLYTEXT, cStrings As Long) As Long
Declare Function RemoveFontResourceW Lib "GDI32.DLL" Alias "RemoveFontResourceW" (lpFileName As Asciiz) As Long
Declare Function ResetDCW Lib "GDI32.DLL" Alias "ResetDCW" (ByVal hdc As Long, lpInitData As DEVMODE) As Long
Declare Function SetICMProfileW Lib "GDI32.DLL" Alias "SetICMProfileW" (ByVal hdc As Long, lpStr As Asciiz) As Long
Declare Function StartDocW Lib "GDI32.DLL" Alias "StartDocW" (ByVal hdc As Long, lpdi As DOCINFO) As Long
Declare Function TextOutW Lib "GDI32.DLL" Alias "TextOutW" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, lpString As Asciiz, ByVal nCount As Long) As Long
Declare Function AppendMenuW Lib "USER32.DLL" Alias "AppendMenuW" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, lpNewItem As Asciiz) As Long
Declare Function CallMsgFilterW Lib "USER32.DLL" Alias "CallMsgFilterW" (lpMsg As tagMSG, ByVal ncode As Long) As Long
Declare Function CallWindowProcW Lib "USER32.DLL" Alias "CallWindowProcW" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function ChangeDisplaySettingsW Lib "USER32.DLL" Alias "ChangeDisplaySettingsW" (lpDevMode As DEVMODE, ByVal dwFlags As Long) As Long
Declare Function ChangeMenuW Lib "USER32.DLL" Alias "ChangeMenuW" (ByVal hMenu As Long, ByVal cmd As Long, lpszNewItem As Asciiz, ByVal cmdInsert As Long, ByVal flags As Long) As Long
Declare Function CharLowerW Lib "USER32.DLL" Alias "CharLowerW" (lpsz As Asciiz) As Dword
Declare Function CharLowerBuffW Lib "USER32.DLL" Alias "CharLowerBuffW" (lpsz As Asciiz, ByVal cchLength As Long) As Long
Declare Function CharNextW Lib "USER32.DLL" Alias "CharNextW" (lpsz As Asciiz) As Dword
Declare Function CharPrevW Lib "USER32.DLL" Alias "CharPrevW" (lpszStart As Asciiz, lpszCurrent As Asciiz) As Dword
Declare Function CharToOemW Lib "USER32.DLL" Alias "CharToOemW" (lpszSrc As Asciiz, lpszDst As Asciiz) As Long
Declare Function CharToOemBuffW Lib "USER32.DLL" Alias "CharToOemBuffW" (lpszSrc As Asciiz, lpszDst As Asciiz, ByVal cchDstLength As Long) As Long
Declare Function CharUpperW Lib "USER32.DLL" Alias "CharUpperW" (lpsz As Asciiz) As Dword
Declare Function CharUpperBuffW Lib "USER32.DLL" Alias "CharUpperBuffW" (lpsz As Asciiz, ByVal cchLength As Long) As Long
Declare Function CopyAcceleratorTableW Lib "USER32.DLL" Alias "CopyAcceleratorTableW" (ByVal hAccelSrc As Long, lpAccelDst As ACCEL, ByVal cAccelEntries As Long) As Long
Declare Function CreateAcceleratorTableW Lib "USER32.DLL" Alias "CreateAcceleratorTableW" (lpaccl As ACCEL, ByVal cEntries As Long) As Long
Declare Function CreateDesktopW Lib "USER32.DLL" Alias "CreateDesktopW" (lpszDesktop As Asciiz, lpszDevice As Asciiz, pDevmode As DEVMODE, ByVal dwFlags As Long, ByVal dwDesiredAccess As Long, lpsa As SECURITY_ATTRIBUTES) As Long
Declare Function CreateDialogIndirectParamW Lib "USER32.DLL" Alias "CreateDialogIndirectParamW" (ByVal hInstance As Long, lpTemplate As DLGTEMPLATE, ByVal hWndParent As Long, ByVal lpDialogFunc As Long, ByVal dwInitParam As Long) As Long
Declare Function CreateDialogParamW Lib "USER32.DLL" Alias "CreateDialogParamW" (ByVal hInstance As Long, lpName As Asciiz, ByVal hWndParent As Long, ByVal lpDialogFunc As Long, ByVal lParamInit As Long) As Long
Declare Function CreateMDIWindowW Lib "USER32.DLL" Alias "CreateMDIWindowW" (lpClassName As Asciiz, lpWindowName As Asciiz, ByVal dwStyle As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, _
ByVal hWndParent As Long, ByVal hInstance As Long, ByVal lParam As Long) As Long
Declare Function DdeCreateStringHandleW Lib "USER32.DLL" Alias "DdeCreateStringHandleW" (ByVal idInst As Long, psz As Asciiz, ByVal iCodePage As Long) As Long
Declare Function DdeInitializeW Lib "USER32.DLL" Alias "DdeInitializeW" (pidInst As Long, ByVal pfnCallback As Long, ByVal afCmd As Long, ByVal ulRes As Long) As Long
Declare Function DdeQueryStringW Lib "USER32.DLL" Alias "DdeQueryStringW" (ByVal idInst As Long, ByVal hsz As Long, psz As Asciiz, ByVal cchMax As Long, ByVal iCodePage As Long) As Long
Declare Function DefDlgProcW Lib "USER32.DLL" Alias "DefDlgProcW" (ByVal hDlg As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function DefFrameProcW Lib "USER32.DLL" Alias "DefFrameProcW" (ByVal hwnd As Long, ByVal hWndMDIClient As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function DefMDIChildProcW Lib "USER32.DLL" Alias "DefMDIChildProcW" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function DefWindowProcW Lib "USER32.DLL" Alias "DefWindowProcW" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function DialogBoxParamW Lib "USER32.DLL" Alias "DialogBoxParamW" (ByVal hInstance As Long, lpTemplateName As Asciiz, ByVal hWndParent As Long, ByVal lpDialogFunc As Long, ByVal dwInitParam As Long) As Long
Declare Function DialogBoxIndirectParamW Lib "USER32.DLL" Alias "DialogBoxIndirectParamW" (ByVal hInstance As Long, hDialogTemplate As DLGTEMPLATE, ByVal hWndParent As Long, ByVal lpDialogFunc As Long, ByVal dwInitParam As Long) As Long
Declare Function DispatchMessageW Lib "USER32.DLL" Alias "DispatchMessageW" (lpMsg As tagMSG) As Long
Declare Function DlgDirListW Lib "USER32.DLL" Alias "DlgDirListW" (ByVal hDlg As Long, lpPathSpec As Asciiz, ByVal nIDListBox As Long, ByVal nIDStaticPath As Long, ByVal wFileType As Long) As Long
Declare Function DlgDirListComboBoxW Lib "USER32.DLL" Alias "DlgDirListComboBoxW" (ByVal hDlg As Long, lpPathSpec As Asciiz, ByVal nIDComboBox As Long, ByVal nIDStaticPath As Long, ByVal wFileType As Long) As Long
Declare Function DlgDirSelectComboBoxExW Lib "USER32.DLL" Alias "DlgDirSelectComboBoxExW" (ByVal hWndDlg As Long, lpszPath As Asciiz, ByVal cbPath As Long, ByVal idComboBox As Long) As Long
Declare Function DlgDirSelectExW Lib "USER32.DLL" Alias "DlgDirSelectExW" (ByVal hWndDlg As Long, lpszPath As Asciiz, ByVal cbPath As Long, ByVal idListBox As Long) As Long
Declare Function DrawStateW Lib "USER32.DLL" Alias "DrawStateW" (ByVal hDC As Long, ByVal hBrush As Long, ByVal lpDrawStateProc As Long, ByVal lParam As Long, ByVal wParam As Long, ByVal n1 As Long, ByVal n2 As Long, ByVal n3 As Long, _
ByVal n4 As Long, ByVal un As Long) As Long
Declare Function DrawTextW Lib "USER32.DLL" Alias "DrawTextW" (ByVal hdc As Long, lpStr As Asciiz, ByVal nCount As Long, lpRect As RECT, ByVal wFormat As Long) As Long
Declare Function DrawTextExW Lib "USER32.DLL" Alias "DrawTextExW" (ByVal hDC As Long, lpsz As Asciiz, ByVal n As Long, lpRect As RECT, ByVal un As Long, lpDrawTextParams As DRAWTEXTPARAMS) As Long
Declare Function EnumDesktopsW Lib "USER32.DLL" Alias "EnumDesktopsW" (ByVal hwinsta As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
Declare Function EnumPropsW Lib "USER32.DLL" Alias "EnumPropsW" (ByVal hWnd As Long, ByVal lpEnumFunc As Long) As Long
Declare Function EnumPropsExW Lib "USER32.DLL" Alias "EnumPropsExW" (ByVal hWnd As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
Declare Function EnumWindowStationsW Lib "USER32.DLL" Alias "EnumWindowStationsW" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
Declare Function FindWindowW Lib "USER32.DLL" Alias "FindWindowW" (lpClassName As Asciiz, lpWindowName As Asciiz) As Long
Declare Function FindWindowExW Lib "USER32.DLL" Alias "FindWindowExW" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, lpsz1 As Asciiz, lpsz2 As Asciiz) As Long
Declare Function GetClassInfoW Lib "USER32.DLL" Alias "GetClassInfoW" (ByVal hInstance As Long, lpClassName As Asciiz, lpWndClass As WNDCLASS) As Long
Declare Function GetClassInfoExW Lib "USER32.DLL" Alias "GetClassInfoExW" (ByVal hInst As Long, lpszClass As Asciiz, lpWndClass As WNDCLASSEX) As Long
Declare Function GetClassLongW Lib "USER32.DLL" Alias "GetClassLongW" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Declare Function GetClassNameW Lib "USER32.DLL" Alias "GetClassNameW" (ByVal hwnd As Long, lpClassName As Asciiz, ByVal nMaxCount As Long) As Long
Declare Function GetClipboardFormatNameW Lib "USER32.DLL" Alias "GetClipboardFormatNameW" (ByVal wFormat As Long, lpString As Asciiz, ByVal nMaxCount As Long) As Long
Declare Function GetDlgItemTextW Lib "USER32.DLL" Alias "GetDlgItemTextW" (ByVal hDlg As Long, ByVal nIDDlgItem As Long, lpString As Asciiz, ByVal nMaxCount As Long) As Long
Declare Function GetKeyNameTextW Lib "USER32.DLL" Alias "GetKeyNameTextW" (ByVal lParam As Long, lpBuffer As Asciiz, ByVal nSize As Long) As Long
Declare Function GetKeyboardLayoutNameW Lib "USER32.DLL" Alias "GetKeyboardLayoutNameW" (pwszKLID As Asciiz) As Long
Declare Function GetMenuItemInfoW Lib "USER32.DLL" Alias "GetMenuItemInfoW" (ByVal hMenu As Long, ByVal un As Long, ByVal b As Long, lpMenuItemInfo As MENUITEMINFO) As Long
Declare Function GetMenuStringW Lib "USER32.DLL" Alias "GetMenuStringW" (ByVal hMenu As Long, ByVal wIDItem As Long, lpString As Asciiz, ByVal nMaxCount As Long, ByVal wFlag As Long) As Long
Declare Function GetMessageW Lib "USER32.DLL" Alias "GetMessageW" (lpMsg As tagMSG, ByVal hwnd As Long, ByVal wMsgFilterMin As Long, ByVal wMsgFilterMax As Long) As Long
Declare Function GetPropW Lib "USER32.DLL" Alias "GetPropW" (ByVal hwnd As Long, lpString As Asciiz) As Long
Declare Function GetTabbedTextExtentW Lib "USER32.DLL" Alias "GetTabbedTextExtentW" (ByVal hdc As Long, lpString As Asciiz, ByVal nCount As Long, ByVal nTabPositions As Long, lpnTabStopPositions As Long) As Long
Declare Function GetUserObjectInformationW Lib "USER32.DLL" Alias "GetUserObjectInformationW" (ByVal hObj As Long, ByVal nIndex As Long, pvInfo As Any, ByVal nLength As Long, lpnLengthNeeded As Long) As Long
Declare Function GetWindowLongW Lib "USER32.DLL" Alias "GetWindowLongW" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Declare Function GetWindowTextW Lib "USER32.DLL" Alias "GetWindowTextW" (ByVal hwnd As Long, lpString As Asciiz, ByVal cch As Long) As Long
Declare Function GetWindowTextLengthW Lib "USER32.DLL" Alias "GetWindowTextLengthW" (ByVal hwnd As Long) As Long
Declare Function GrayStringW Lib "USER32.DLL" Alias "GrayStringW" (ByVal hDC As Long, ByVal hBrush As Long, ByVal lpOutputFunc As Long, ByVal lpData As Long, ByVal nCount As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, _
ByVal nHeight As Long) As Long
Declare Function InsertMenuW Lib "USER32.DLL" Alias "InsertMenuW" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, lpNewItem As Asciiz) As Long
Declare Function InsertMenuItemW Lib "USER32.DLL" Alias "InsertMenuItemW" (ByVal hMenu As Long, ByVal un As Long, ByVal bool As Long, lpcMenuItemInfo As MENUITEMINFO) As Long
Declare Function IsCharAlphaW Lib "USER32.DLL" Alias "IsCharAlphaW" (ByVal cChar As Byte) As Long
Declare Function IsCharAlphaNumericW Lib "USER32.DLL" Alias "IsCharAlphaNumericW" (ByVal cChar As Byte) As Long
Declare Function IsCharLowerW Lib "USER32.DLL" Alias "IsCharLowerW" (ByVal cChar As Byte) As Long
Declare Function IsCharUpperW Lib "USER32.DLL" Alias "IsCharUpperW" (ByVal cChar As Byte) As Long
Declare Function IsDialogMessageW Lib "USER32.DLL" Alias "IsDialogMessageW" (ByVal hDlg As Long, lpMsg As tagMSG) As Long
Declare Function LoadAcceleratorsW Lib "USER32.DLL" Alias "LoadAcceleratorsW" (ByVal hInstance As Long, lpTableName As Asciiz) As Long
Declare Function LoadBitmapW Lib "USER32.DLL" Alias "LoadBitmapW" (ByVal hInstance As Long, lpBitmapName As Asciiz) As Long
Declare Function LoadCursorW Lib "USER32.DLL" Alias "LoadCursorW" (ByVal hInstance As Long, lpCursorName As Asciiz) As Long
Declare Function LoadCursorFromFileW Lib "USER32.DLL" Alias "LoadCursorFromFileW" (lpFileName As Asciiz) As Long
Declare Function LoadIconW Lib "USER32.DLL" Alias "LoadIconW" (ByVal hInstance As Long, lpIconName As Asciiz) As Long '
Declare Function LoadImageW Lib "USER32.DLL" Alias "LoadImageW" (ByVal hInst As Long, lpsz As Asciiz, ByVal un1 As Long, ByVal n1 As Long, ByVal n2 As Long, ByVal un2 As Long) As Long
Declare Function LoadKeyboardLayoutW Lib "USER32.DLL" Alias "LoadKeyboardLayoutW" (pwszKLID As Asciiz, ByVal flags As Long) As Long
Declare Function LoadMenuW Lib "USER32.DLL" Alias "LoadMenuW" (ByVal hInstance As Long, lpString As Asciiz) As Long
Declare Function LoadMenuIndirectW Lib "USER32.DLL" Alias "LoadMenuIndirectW" (ByVal lpMenuTemplate As Long) As Long
Declare Function LoadStringW Lib "USER32.DLL" Alias "LoadStringW" (ByVal hInstance As Long, ByVal wID As Long, lpBuffer As Asciiz, ByVal nBufferMax As Long) As Long
Declare Function MapVirtualKeyW Lib "USER32.DLL" Alias "MapVirtualKeyW" (ByVal wCode As Long, ByVal wMapType As Long) As Long
Declare Function MapVirtualKeyExW Lib "USER32.DLL" Alias "MapVirtualKeyExW" (ByVal uCode As Long, ByVal uMapType As Long, ByVal dwhkl As Long) As Long
Declare Function MessageBoxW Lib "USER32.DLL" Alias "MessageBoxW" (ByVal hwnd As Long, lpText As Asciiz, lpCaption As Asciiz, ByVal wType As Long) As Long
Declare Function MessageBoxExW Lib "USER32.DLL" Alias "MessageBoxExW" (ByVal hwnd As Long, lpText As Asciiz, lpCaption As Asciiz, ByVal uType As Long, ByVal wLanguageId As Long) As Long
Declare Function MessageBoxIndirectW Lib "USER32.DLL" Alias "MessageBoxIndirectW" (lpMsgBoxParams As MSGBOXPARAMS) As Long
Declare Function ModifyMenuW Lib "USER32.DLL" Alias "ModifyMenuW" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, lpString As Asciiz) As Long
Declare Function OemToCharW Lib "USER32.DLL" Alias "OemToCharW" (lpszSrc As Asciiz, lpszDst As Asciiz) As Long
Declare Function OemToCharBuffW Lib "USER32.DLL" Alias "OemToCharBuffW" (lpszSrc As Asciiz, lpszDst As Asciiz, ByVal cchDstLength As Long) As Long
Declare Function OpenDesktopW Lib "USER32.DLL" Alias "OpenDesktopW" (lpszDesktop As Asciiz, ByVal dwFlags As Long, ByVal fInherit As Long, ByVal dwDesiredAccess As Long) As Long
Declare Function OpenWindowStationW Lib "USER32.DLL" Alias "OpenWindowStationW" (lpszWinSta As Asciiz, ByVal fInherit As Long, ByVal dwDesiredAccess As Long) As Long
Declare Function PeekMessageW Lib "USER32.DLL" Alias "PeekMessageW" (lpMsg As tagMSG, ByVal hwnd As Long, ByVal wMsgFilterMin As Long, ByVal wMsgFilterMax As Long, ByVal wRemoveMsg As Long) As Long
Declare Function PostMessageW Lib "USER32.DLL" Alias "PostMessageW" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function PostThreadMessageW Lib "USER32.DLL" Alias "PostThreadMessageW" (ByVal idThread As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function RegisterClassW Lib "USER32.DLL" Alias "RegisterClassW" (pcWndClass As WNDCLASS) As Long
Declare Function RegisterClassExW Lib "USER32.DLL" Alias "RegisterClassExW" (pcWndClassEx As WNDCLASSEX) As Long
Declare Function RegisterClipboardFormatW Lib "USER32.DLL" Alias "RegisterClipboardFormatW" (lpString As Asciiz) As Long
Declare Function RegisterWindowMessageW Lib "USER32.DLL" Alias "RegisterWindowMessageW" (lpString As Asciiz) As Long
Declare Function RemovePropW Lib "USER32.DLL" Alias "RemovePropW" (ByVal hwnd As Long, lpString As Asciiz) As Long
Declare Function SendDlgItemMessageW Lib "USER32.DLL" Alias "SendDlgItemMessageW" (ByVal hDlg As Long, ByVal nIDDlgItem As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function SendMessageW Lib "USER32.DLL" Alias "SendMessageW" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function SendMessageCallbackW Lib "USER32.DLL" Alias "SendMessageCallbackW" (ByVal hwnd As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long, ByVal lpResultCallBack As Long, ByVal dwData As Long) As Long
Declare Function SendMessageTimeoutW Lib "USER32.DLL" Alias "SendMessageTimeoutW" (ByVal hwnd As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long, ByVal fuFlags As Long, ByVal uTimeout As Long, lpdwResult As Long) As Long
Declare Function SendNotifyMessageW Lib "USER32.DLL" Alias "SendNotifyMessageW" (ByVal hwnd As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function SetClassLongW Lib "USER32.DLL" Alias "SetClassLongW" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Declare Function SetDlgItemTextW Lib "USER32.DLL" Alias "SetDlgItemTextW" (ByVal hDlg As Long, ByVal nIDDlgItem As Long, lpString As Asciiz) As Long
Declare Function SetMenuItemInfoW Lib "USER32.DLL" Alias "SetMenuItemInfoW" (ByVal hMenu As Long, ByVal un As Long, ByVal bool As Long, lpcMenuItemInfo As MENUITEMINFO) As Long
Declare Function SetPropW Lib "USER32.DLL" Alias "SetPropW" (ByVal hwnd As Long, lpString As Asciiz, ByVal hData As Long) As Long
Declare Function SetUserObjectInformationW Lib "USER32.DLL" Alias "SetUserObjectInformationW" (ByVal hObj As Long, ByVal nIndex As Long, pvInfo As Any, ByVal nLength As Long) As Long
Declare Function SetWindowLongW Lib "USER32.DLL" Alias "SetWindowLongW" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Declare Function SetWindowTextW Lib "USER32.DLL" Alias "SetWindowTextW" (ByVal hwnd As Long, lpString As Asciiz) As Long
Declare Function SetWindowsHookW Lib "USER32.DLL" Alias "SetWindowsHookW" (ByVal nFilterType As Long, ByVal pfnFilterProc As Long) As Long
Declare Function SetWindowsHookExW Lib "USER32.DLL" Alias "SetWindowsHookExW" (ByVal idHook As Long, ByVal lpfn As Long, ByVal hmod As Long, ByVal dwThreadId As Long) As Long
Declare Function SystemParametersInfoW Lib "USER32.DLL" Alias "SystemParametersInfoW" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
Declare Function TabbedTextOutW Lib "USER32.DLL" Alias "TabbedTextOutW" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, lpString As Asciiz, ByVal nCount As Long, ByVal nTabPositions As Long, lpnTabStopPositions As Long, _
ByVal nTabOrigin As Long) As Long
Declare Function TranslateAcceleratorW Lib "USER32.DLL" Alias "TranslateAcceleratorW" (ByVal hwnd As Long, ByVal hAccTable As Long, lpMsg As tagMSG) As Long
Declare Function UnregisterClassW Lib "USER32.DLL" Alias "UnregisterClassW" (lpClassName As Asciiz, ByVal hInstance As Long) As Long
Declare Function VkKeyScanW Lib "USER32.DLL" Alias "VkKeyScanW" (ByVal cChar As Byte) As Long
Declare Function VkKeyScanExW Lib "USER32.DLL" Alias "VkKeyScanExW" (ByVal ch As Byte, ByVal dwhkl As Long) As Long
Declare Function WinHelpW Lib "USER32.DLL" Alias "WinHelpW" (ByVal hwnd As Long, lpHelpFile As Asciiz, ByVal wCommand As Long, ByVal dwData As Long) As Long
Declare Function wsprintfW Cdecl Lib "USER32.DLL" Alias "wsprintfW" (lpOutput As Asciiz, lpFormat As Asciiz, x As ANY[, x As ANY]) As Long
Declare Function PlaySoundW Lib "WINMM.DLL" Alias "PlaySoundW" (lpszName As Asciiz, ByVal hModule As Long, ByVal dwFlags As Long) As Long
Declare Function auxGetDevCapsW Lib "WINMM.DLL" Alias "auxGetDevCapsW" (ByVal uDeviceID As Long, lpCaps As AUXCAPS, ByVal uSize As Long) As Long
Declare Function joyGetDevCapsW Lib "WINMM.DLL" Alias "joyGetDevCapsW" (ByVal id As Long, lpCaps As JOYCAPS, ByVal uSize As Long) As Long
Declare Function mciGetDeviceIDW Lib "WINMM.DLL" Alias "mciGetDeviceIDW" (lpstrName As Asciiz) As Long
Declare Function mciGetDeviceIDFromElementIDW Lib "WINMM.DLL" Alias "mciGetDeviceIDFromElementIDW" (ByVal dwElementID As Long, lpstrType As Asciiz) As Long
Declare Function mciGetErrorStringW Lib "WINMM.DLL" Alias "mciGetErrorStringW" (ByVal dwError As Long, lpstrBuffer As Asciiz, ByVal uLength As Long) As Long
Declare Function mciSendCommandW Lib "WINMM.DLL" Alias "mciSendCommandW" (ByVal wDeviceID As Long, ByVal uMessage As Long, ByVal dwParam1 As Long, ByVal dwParam2 As Long) As Long
Declare Function mciSendStringW Lib "WINMM.DLL" Alias "mciSendStringW" (lpstrCommand As Asciiz, lpstrReturnString As Asciiz, ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
Declare Function midiInGetDevCapsW Lib "WINMM.DLL" Alias "midiInGetDevCapsW" (ByVal uDeviceID As Long, lpCaps As MIDIINCAPS, ByVal uSize As Long) As Long
Declare Function midiInGetErrorTextW Lib "WINMM.DLL" Alias "midiInGetErrorTextW" (ByVal xerr As Long, lpText As Asciiz, ByVal uSize As Long) As Long
Declare Function midiOutGetDevCapsW Lib "WINMM.DLL" Alias "midiOutGetDevCapsW" (ByVal uDeviceID As Long, lpCaps As MIDIOUTCAPS, ByVal uSize As Long) As Long
Declare Function midiOutGetErrorTextW Lib "WINMM.DLL" Alias "midiOutGetErrorTextW" (ByVal xerr As Long, lpText As Asciiz, ByVal uSize As Long) As Long
Declare Function mixerGetControlDetailsW Lib "WINMM.DLL" Alias "mixerGetControlDetailsW" (ByVal hmxobj As Long, pmxcd As MIXERCONTROLDETAILS, ByVal fdwDetails As Long) As Long
Declare Function mixerGetDevCapsW Lib "WINMM.DLL" Alias "mixerGetDevCapsW" (ByVal uMxId As Long, pmxcaps As MIXERCAPS, ByVal cbmxcaps As Long) As Long
Declare Function mixerGetLineControlsW Lib "WINMM.DLL" Alias "mixerGetLineControlsW" (ByVal hmxobj As Long, pmxlc As MIXERLINECONTROLS, ByVal fdwControls As Long) As Long
Declare Function mixerGetLineInfoW Lib "WINMM.DLL" Alias "mixerGetLineInfoW" (ByVal hmxobj As Long, pmxl As MIXERLINE, ByVal fdwInfo As Long) As Long
Declare Function mmioInstallIOProcAW Lib "WINMM.DLL" Alias "mmioInstallIOProcW" (fccIOProc As Asciiz * 4, ByVal pIOProc As Long, ByVal dwFlags As Long) As Long
Declare Function mmioOpenW Lib "WINMM.DLL" Alias "mmioOpenW" (szFileName As Asciiz, lpmmioinfo As MMIOINFO, ByVal dwOpenFlags As Long) As Long
Declare Function mmioRenameW Lib "WINMM.DLL" Alias "mmioRenameW" (szFileName As Asciiz, SzNewFileName As Asciiz, lpmmioinfo As MMIOINFO, ByVal dwRenameFlags As Long) As Long
Declare Function mmioStringToFOURCCW Lib "WINMM.DLL" Alias "mmioStringToFOURCCW" (sz As Asciiz, ByVal uFlags As Long) As Long
Declare Function sndPlaySoundW Lib "WINMM.DLL" Alias "sndPlaySoundW" (lpszSoundName As Asciiz, ByVal uFlags As Long) As Long
Declare Function waveInGetDevCapsW Lib "WINMM.DLL" Alias "waveInGetDevCapsW" (ByVal uDeviceID As Long, lpCaps As WAVEINCAPS, ByVal uSize As Long) As Long
Declare Function waveInGetErrorTextW Lib "WINMM.DLL" Alias "waveInGetErrorTextW" (ByVal xerr As Long, lpText As Asciiz, ByVal uSize As Long) As Long
Declare Function waveOutGetDevCapsW Lib "WINMM.DLL" Alias "waveOutGetDevCapsW" (ByVal uDeviceID As Long, lpCaps As WAVEOUTCAPS, ByVal uSize As Long) As Long
Declare Function waveOutGetErrorTextW Lib "WINMM.DLL" Alias "waveOutGetErrorTextW" (ByVal xerr As Long, lpText As Asciiz, ByVal uSize As Long) As Long
Declare Function AddFormW Lib "WINSPOOL.DRV" Alias "AddFormW" (ByVal hPrinter As Long, ByVal Level As Long, pForm As Byte) As Long
Declare Function AddJobW Lib "WINSPOOL.DRV" Alias "AddJobW" (ByVal hPrinter As Long, ByVal Level As Long, pData As Byte, ByVal cdBuf As Long, pcbNeeded As Long) As Long
Declare Function AddMonitorW Lib "WINSPOOL.DRV" Alias "AddMonitorW" (pName As Asciiz, ByVal Level As Long, pMonitors As Byte) As Long
Declare Function AddPortW Lib "WINSPOOL.DRV" Alias "AddPortW" (pName As Asciiz, ByVal hwnd As Long, pMonitorName As Asciiz) As Long
Declare Function AddPrintProcessorW Lib "WINSPOOL.DRV" Alias "AddPrintProcessorW" (pName As Asciiz, pEnvironment As Asciiz, pPathName As Asciiz, pPrintProcessorName As Asciiz) As Long
Declare Function AddPrintProvidorW Lib "WINSPOOL.DRV" Alias "AddPrintProvidorW" (pName As Asciiz, ByVal Level As Long, pProvidorInfo As Byte) As Long
Declare Function AddPrinterW Lib "WINSPOOL.DRV" Alias "AddPrinterW" (pName As Asciiz, ByVal Level As Long, pPrinter As Byte) As Long
Declare Function AddPrinterConnectionW Lib "WINSPOOL.DRV" Alias "AddPrinterConnectionW" (pName As Asciiz) As Long
Declare Function AddPrinterDriverW Lib "WINSPOOL.DRV" Alias "AddPrinterDriverW" (pName As Asciiz, ByVal Level As Long, pDriverInfor As Byte) As Long
Declare Function AdvancedDocumentPropertiesW Lib "WINSPOOL.DRV" Alias "AdvancedDocumentPropertiesW" (ByVal hwnd As Long, ByVal hPrinter As Long, pDeviceName As Asciiz, pDevModeOutput As DEVMODE, pDevModeInput As DEVMODE) As Long
Declare Function ConfigurePortW Lib "WINSPOOL.DRV" Alias "ConfigurePortW" (pName As Asciiz, ByVal hwnd As Long, pPortName As Asciiz) As Long
Declare Function DeleteFormW Lib "WINSPOOL.DRV" Alias "DeleteFormW" (ByVal hPrinter As Long, pFormName As Asciiz) As Long
Declare Function DeleteMonitorW Lib "WINSPOOL.DRV" Alias "DeleteMonitorW" (pName As Asciiz, pEnvironment As Asciiz, pMonitorName As Asciiz) As Long
Declare Function DeletePortW Lib "WINSPOOL.DRV" Alias "DeletePortW" (pName As Asciiz, ByVal hwnd As Long, pPortName As Asciiz) As Long
Declare Function DeletePrintProcessorW Lib "WINSPOOL.DRV" Alias "DeletePrintProcessorW" (pName As Asciiz, pEnvironment As Asciiz, pPrintProcessorName As Asciiz) As Long
Declare Function DeletePrintProvidorW Lib "WINSPOOL.DRV" Alias "DeletePrintProvidorW" (pName As Asciiz, pEnvironment As Asciiz, pPrintProvidorName As Asciiz) As Long
Declare Function DeletePrinterConnectionW Lib "WINSPOOL.DRV" Alias "DeletePrinterConnectionW" (pName As Asciiz) As Long
Declare Function DeletePrinterDriverW Lib "WINSPOOL.DRV" Alias "DeletePrinterDriverW" (pName As Asciiz, pEnvironment As Asciiz, pDriverName As Asciiz) As Long
Declare Function DeviceCapabilitiesW Lib "WINSPOOL.DRV" Alias "DeviceCapabilitiesW" (lpDeviceName As Asciiz, lpPort As Asciiz, ByVal iIndex As Long, lpOutput As Asciiz, lpDevMode As DEVMODE) As Long
Declare Function DocumentPropertiesW Lib "WINSPOOL.DRV" Alias "DocumentPropertiesW" (ByVal hwnd As Long, ByVal hPrinter As Long, pDeviceName As Asciiz, pDevModeOutput As DEVMODE, pDevModeInput As DEVMODE, ByVal fMode As Long) As Long
Declare Function EnumFormsW Lib "WINSPOOL.DRV" Alias "EnumFormsW" (ByVal hPrinter As Long, ByVal Level As Long, pForm As Byte, ByVal cbBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long
Declare Function EnumJobsW Lib "WINSPOOL.DRV" Alias "EnumJobsW" (ByVal hPrinter As Long, ByVal FirstJob As Long, ByVal NoJobs As Long, ByVal Level As Long, pJob As Byte, ByVal cdBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long
Declare Function EnumMonitorsW Lib "WINSPOOL.DRV" Alias "EnumMonitorsW" (pName As Asciiz, ByVal Level As Long, pMonitors As Byte, ByVal cbBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long
Declare Function EnumPortsW Lib "WINSPOOL.DRV" Alias "EnumPortsW" (pName As Asciiz, ByVal Level As Long, ByVal lpbPorts As Long, ByVal cbBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long
Declare Function EnumPrintProcessorDatatypesW Lib "WINSPOOL.DRV" Alias "EnumPrintProcessorDatatypesW" (pName As Asciiz, pPrintProcessorName As Asciiz, ByVal Level As Long, pDatatypes As Byte, ByVal cdBuf As Long, pcbNeeded As Long, _
pcReturned As Long) As Long
Declare Function EnumPrintProcessorsW Lib "WINSPOOL.DRV" Alias "EnumPrintProcessorsW" (pName As Asciiz, pEnvironment As Asciiz, ByVal Level As Long, pPrintProcessorInfo As Byte, ByVal cdBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long
Declare Function EnumPrinterDriversW Lib "WINSPOOL.DRV" Alias "EnumPrinterDriversW" (pName As Asciiz, pEnvironment As Asciiz, ByVal Level As Long, pDriverInfo As Byte, ByVal cdBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long
Declare Function EnumPrintersW Lib "WINSPOOL.DRV" Alias "EnumPrintersW" (ByVal flags As Long, xname As Asciiz, ByVal Level As Long, pPrinterEnum As Byte, ByVal cdBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long
Declare Function GetFormW Lib "WINSPOOL.DRV" Alias "GetFormW" (ByVal hPrinter As Long, pFormName As Asciiz, ByVal Level As Long, pForm As Byte, ByVal cbBuf As Long, pcbNeeded As Long) As Long
Declare Function GetJobW Lib "WINSPOOL.DRV" Alias "GetJobW" (ByVal hPrinter As Long, ByVal JobId As Long, ByVal Level As Long, pJob As Byte, ByVal cdBuf As Long, pcbNeeded As Long) As Long
Declare Function GetPrintProcessorDirectoryW Lib "WINSPOOL.DRV" Alias "GetPrintProcessorDirectoryW" (pName As Asciiz, pEnvironment As Asciiz, ByVal Level As Long, pPrintProcessorInfo As Asciiz, ByVal cdBuf As Long, pcbNeeded As Long) As Long
Declare Function GetPrinterW Lib "WINSPOOL.DRV" Alias "GetPrinterW" (ByVal hPrinter As Long, ByVal Level As Long, pPrinter As Byte, ByVal cbBuf As Long, pcbNeeded As Long) As Long
Declare Function GetPrinterDataW Lib "WINSPOOL.DRV" Alias "GetPrinterDataW" (ByVal hPrinter As Long, pValueName As Asciiz, pType As Long, pData As Byte, ByVal nSize As Long, pcbNeeded As Long) As Long
Declare Function GetPrinterDriverW Lib "WINSPOOL.DRV" Alias "GetPrinterDriverW" (ByVal hPrinter As Long, pEnvironment As Asciiz, ByVal Level As Long, pDriverInfo As Byte, ByVal cdBuf As Long, pcbNeeded As Long) As Long
Declare Function GetPrinterDriverDirectoryW Lib "WINSPOOL.DRV" Alias "GetPrinterDriverDirectoryW" (pName As Asciiz, pEnvironment As Asciiz, ByVal Level As Long, pDriverDirectory As Byte, ByVal cdBuf As Long, pcbNeeded As Long) As Long
Declare Function OpenPrinterW Lib "WINSPOOL.DRV" Alias "OpenPrinterW" (pPrinterName As Asciiz, phPrinter As Long, pDefault As PRINTER_DEFAULTS) As Long
Declare Function PrinterMessageBoxW Lib "WINSPOOL.DRV" Alias "PrinterMessageBoxW" (ByVal hPrinter As Long, ByVal xerror As Long, ByVal hwnd As Long, pText As Asciiz, pCaption As Asciiz, ByVal dwType As Long) As Long
Declare Function ResetPrinterW Lib "WINSPOOL.DRV" Alias "ResetPrinterW" (ByVal hPrinter As Long, pDefault As PRINTER_DEFAULTS) As Long
Declare Function SetFormW Lib "WINSPOOL.DRV" Alias "SetFormW" (ByVal hPrinter As Long, pFormName As Asciiz, ByVal Level As Long, pForm As Byte) As Long
Declare Function SetJobW Lib "WINSPOOL.DRV" Alias "SetJobW" (ByVal hPrinter As Long, ByVal JobId As Long, ByVal Level As Long, pJob As Byte, ByVal Command As Long) As Long
Declare Function SetPrinterW Lib "WINSPOOL.DRV" Alias "SetPrinterW" (ByVal hPrinter As Long, ByVal Level As Long, pPrinter As Byte, ByVal Command As Long) As Long
Declare Function SetPrinterDataW Lib "WINSPOOL.DRV" Alias "SetPrinterDataW" (ByVal hPrinter As Long, pValueName As Asciiz, ByVal dwType As Long, pData As Byte, ByVal cbData As Long) As Long
Declare Function StartDocPrinterW Lib "WINSPOOL.DRV" Alias "StartDocPrinterW" (ByVal hPrinter As Long, ByVal Level As Long, pDocInfo As Any) As Long
Declare Function WNetAddConnectionW Lib "MPR.DLL" Alias "WNetAddConnectionW" (lpszNetPath As Asciiz, lpszPassword As Asciiz, lpszLocalName As Asciiz) As Long
Declare Function WNetAddConnection2W Lib "MPR.DLL" Alias "WNetAddConnection2W" (lpNetResource As NETRESOURCE, lpPassword As Asciiz, lpUserName As Asciiz, ByVal dwFlags As Long) As Long
Declare Function WNetCancelConnectionW Lib "MPR.DLL" Alias "WNetCancelConnectionW" (lpszName As Asciiz, ByVal bForce As Long) As Long
Declare Function WNetCancelConnection2W Lib "MPR.DLL" Alias "WNetCancelConnection2W" (lpName As Asciiz, ByVal dwFlags As Long, ByVal fForce As Long) As Long
Declare Function WNetEnumResourceW Lib "MPR.DLL" Alias "WNetEnumResourceW" (ByVal hEnum As Long, lpcCount As Long, lpBuffer As Any, lpBufferSize As Long) As Long
Declare Function WNetGetConnectionW Lib "MPR.DLL" Alias "WNetGetConnectionW" (lpszLocalName As Asciiz, lpszRemoteName As Asciiz, cbRemoteName As Long) As Long
Declare Function WNetGetLastErrorW Lib "MPR.DLL" Alias "WNetGetLastErrorW" (lpError As Long, lpErrorBuf As Asciiz, ByVal nErrorBufSize As Long, lpNameBuf As Asciiz, ByVal nNameBufSize As Long) As Long
Declare Function WNetGetUniversalNameW Lib "MPR.DLL" Alias "WNetGetUniversalNameW" (lpLocalPath As Asciiz, ByVal dwInfoLevel As Long, lpBuffer As Any, lpBufferSize As Long) As Long
Declare Function WNetGetUserW Lib "MPR.DLL" Alias "WNetGetUserW" (lpName As Asciiz, lpUserName As Asciiz, lpnLength As Long) As Long
Declare Function WNetOpenEnumW Lib "MPR.DLL" Alias "WNetOpenEnumW" (ByVal dwScope As Long, ByVal dwType As Long, ByVal dwUsage As Long, lpNetResource As NETRESOURCE, lphEnum As Long) As Long
Declare Function GetExpandedNameW Lib "LZ32.DLL" Alias "GetExpandedNameW" (lpszSource As Asciiz, lpszBuffer As Asciiz) As Long
Declare Function LZOpenFileW Lib "LZ32.DLL" Alias "LZOpenFileW" (lpszFile As Asciiz, lpOf As OFSTRUCT, ByVal style As Long) As Long
Declare Function ImmEnumRegisterWordW Lib "IMM32.DLL" Alias "ImmEnumRegisterWordW" (ByVal hkl As Long, ByVal RegisterWordEnumProc As Long, lpszReading As Asciiz, ByVal dw As Long, lpszRegister As Asciiz, lpv As Any) As Long
Declare Function ImmEscapeW Lib "IMM32.DLL" Alias "ImmEscapeW" (ByVal hkl As Long, ByVal himc As Long, ByVal un As Long, lpv As Any) As Long
Declare Function ImmGetCandidateListW Lib "IMM32.DLL" Alias "ImmGetCandidateListW" (ByVal himc As Long, ByVal deIndex As Long, lpCandidateList As CANDIDATELIST, ByVal dwBufLen As Long) As Long
Declare Function ImmGetCandidateListCountW Lib "IMM32.DLL" Alias "ImmGetCandidateListCountW" (ByVal himc As Long, lpdwListCount As Long) As Long
Declare Function ImmGetCompositionFontW Lib "IMM32.DLL" Alias "ImmGetCompositionFontW" (ByVal himc As Long, lpLogFont As LOGFONT) As Long
Declare Function ImmGetCompositionStringW Lib "IMM32.DLL" Alias "ImmGetCompositionStringW" (ByVal himc As Long, ByVal dw As Long, lpv As Any, ByVal dw2 As Long) As Long
Declare Function ImmGetConversionListW Lib "IMM32.DLL" Alias "ImmGetConversionListW" (ByVal hkl As Long, ByVal himc As Long, lpsz As Asciiz, lpCandidateList As CANDIDATELIST, ByVal dwBufLen As Long, ByVal uFlag As Long) As Long
Declare Function ImmGetDescriptionW Lib "IMM32.DLL" Alias "ImmGetDescriptionW" (ByVal hkl As Long, lpsz As Asciiz, ByVal uBufLen As Long) As Long
Declare Function ImmGetGuideLineW Lib "IMM32.DLL" Alias "ImmGetGuideLineW" (ByVal himc As Long, ByVal dwIndex As Long, lpStr As Asciiz, ByVal dwBufLen As Long) As Long
Declare Function ImmGetIMEFileNameW Lib "IMM32.DLL" Alias "ImmGetIMEFileNameW" (ByVal hkl As Long, lpStr As Asciiz, ByVal uBufLen As Long) As Long
Declare Function ImmGetRegisterWordStyleW Lib "IMM32.DLL" Alias "ImmGetRegisterWordStyleW" (ByVal hkl As Long, ByVal nItem As Long, lpStyleBuf As STYLEBUF) As Long
Declare Function ImmInstallIMEW Lib "IMM32.DLL" Alias "ImmInstallIMEW" (lpszIMEFileName As Asciiz, lpszLayoutText As Asciiz) As Long
Declare Function ImmIsUIMessageW Lib "IMM32.DLL" Alias "ImmIsUIMessageW" (ByVal hwnd As Long, ByVal un As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function ImmRegisterWordW Lib "IMM32.DLL" Alias "ImmRegisterWordW" (ByVal hkl As Long, lpszReading As Asciiz, ByVal dw As Long, lpszRegister As Asciiz) As Long
Declare Function ImmSetCompositionFontW Lib "IMM32.DLL" Alias "ImmSetCompositionFontW" (ByVal himc As Long, lpLogFont As LOGFONT) As Long
Declare Function ImmSetCompositionStringW Lib "IMM32.DLL" Alias "ImmSetCompositionStringW" (ByVal himc As Long, ByVal dwIndex As Long, lpComp As Any, ByVal dw As Long, lpRead As Any, ByVal dw2 As Long) As Long
Declare Function ImmUnregisterWordW Lib "IMM32.DLL" Alias "ImmUnregisterWordW" (ByVal hkl As Long, lpszReading As Asciiz, ByVal dw As Long, lpszUnregister As Asciiz) As Long
Declare Function DoEnvironmentSubstW Lib "SHELL32.DLL" Alias "DoEnvironmentSubstW" (szString As Asciiz, ByVal cbString As Long) As Long
Declare Function DragQueryFileW Lib "SHELL32.DLL" Alias "DragQueryFileW" (ByVal HDROP As Long, ByVal UINT As Long, lpStr As Asciiz, ByVal ch As Long) As Long
Declare Function ExtractAssociatedIconW Lib "SHELL32.DLL" Alias "ExtractAssociatedIconW" (ByVal hInst As Long, lpIconPath As Asciiz, lpiIcon As Long) As Long
Declare Function ExtractIconW Lib "SHELL32.DLL" Alias "ExtractIconW" (ByVal hInst As Long, lpszExeFileName As Asciiz, ByVal nIconIndex As Long) As Long
Declare Function ExtractIconExW Lib "SHELL32.DLL" Alias "ExtractIconExW" (lpszFile As Asciiz, ByVal nIconIndex As Long, phiconLarge As Long, phiconSmall As Long, ByVal nIcons As Long) As Long
Declare Function FindEnvironmentStringW Lib "SHELL32.DLL" Alias "FindEnvironmentStringW" (szEnvVar As Asciiz) As Dword
Declare Function FindExecutableW Lib "SHELL32.DLL" Alias "FindExecutableW" (lpFile As Asciiz, lpDirectory As Asciiz, lpResult As Asciiz) As Long
Declare Function SHBrowseForFolderW Lib "SHELL32.DLL" Alias "SHBrowseForFolderW" (lpbi As BROWSEINFO) As Long
Declare Function SHFileOperationW Lib "SHELL32.DLL" Alias "SHFileOperationW" (lpFileOp As SHFILEOPSTRUCT) As Long
Declare Function SHGetFileInfoW Lib "SHELL32.DLL" Alias "SHGetFileInfoW" (pszPath As Asciiz, ByVal dwFileAttributes As Dword, psfi As SHFILEINFO, ByVal cbFileInfo As Long, ByVal uFlags As Long) As Long
Declare Function SHGetNewLinkInfoW Lib "SHELL32.DLL" Alias "SHGetNewLinkInfoW" (pszLinkto As Asciiz, pszDir As Asciiz, pszName As Asciiz, pfMustCopy As Long, ByVal uFlags As Long) As Long
Declare Function SHGetPathFromIDListW Lib "SHELL32.DLL" Alias "SHGetPathFromIDListW" (ByVal pidList As Long, lpBuffer As Asciiz) As Long
Declare Function ShellAboutW Lib "SHELL32.DLL" Alias "ShellAboutW" (ByVal hwnd As Long, szApp As Asciiz, szOtherStuff As Asciiz, ByVal hIcon As Long) As Long
Declare Function ShellExecuteW Lib "SHELL32.DLL" Alias "ShellExecuteW" (ByVal hwnd As Long, lpOperation As Asciiz, lpFile As Asciiz, lpParameters As Asciiz, lpDirectory As Asciiz, ByVal nShowCmd As Long) As Long
Declare Function ShellExecuteExW Lib "SHELL32.DLL" Alias "ShellExecuteExW" (lpShellInfo As SHELLEXECUTEINFO) As Long
Declare Function Shell_NotifyIconW Lib "SHELL32.DLL" Alias "Shell_NotifyIconW" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long
Declare Sub WinExecErrorW Lib "SHELL32.DLL" Alias "WinExecErrorW" (ByVal hwnd As Long, ByVal xerror As Long, lpstrFileName As Asciiz, lpstrTitle As Asciiz)
Declare Function VerFindFileW Lib "VERSION.DLL" Alias "VerFindFileW" (ByVal uFlags As Long, szFileName As Asciiz, szWinDir As Asciiz, szAppDir As Asciiz, szCurDir As Asciiz, lpuCurDirLen As Long, szDestDir As Asciiz, lpuDestDirLen As Long) As Long
Declare Function VerInstallFileW Lib "VERSION.DLL" Alias "VerInstallFileW" (ByVal uFlags As Long, szSrcFileName As Asciiz, szDestFileName As Asciiz, szSrcDir As Asciiz, szDestDir As Asciiz, szCurDir As Asciiz, szTmpFile As Asciiz, _
lpuTmpFileLen As Long) As Long
Declare Function GetFileVersionInfoSizeW Lib "VERSION.DLL" Alias "GetFileVersionInfoSizeW" (lptstrFilename As Asciiz, lpdwHandle As Long) As Long
Declare Function GetFileVersionInfoW Lib "VERSION.DLL" Alias "GetFileVersionInfoW" (lptstrFilename As Asciiz, ByVal dwHandle As Long, ByVal dwLen As Long, lpData As Any) As Long
Declare Function VerQueryValueW Lib "VERSION.DLL" Alias "VerQueryValueW" (ByVal pBlock As Long, lpSubBlock As Asciiz, lplpBuffer As Dword, puLen As Long) As Long

------------------
Paul Dwyer
Network Engineer
Aussie in Tokyo
(Paul282 at VB-World)

Xem chi tiết


:>

Quay về “[VB] Bài viết hướng dẫn”

Đang trực tuyến

Đang xem chuyên mục này: Không có thành viên nào trực tuyến.2 khách