Win32 raw API

Direct access to the Win32 API

DESCRIPTION

The Windows API may be directly accessed by Tcl commands that map to Windows functions. This interface is not documented in the TWAPI documentation. Refer to the Microsoft Windows SDK for a description of the functions and parameters.

It is recommended that the higher level documented TWAPI Tcl functions be used instead. These provide an easier and more flexible interface in addition to hiding platform-specific differences.

Commands

The Windows functions which may be directly accessed are shown below. This list may be obtained by executing the command twapi::list_raw_api.

  • AbortSystemShutdown
  • AcceptSecurityContext
  • AcquireCredentialsHandle
  • AddFontResourceEx
  • AllocateAndGetTcpExTableFromStack
  • AllocateAndGetUdpExTableFromStack
  • AllocateLocallyUniqueId
  • AllocConsole
  • ArrangeIconicWindows
  • AttachThreadInput
  • BackupEventLog
  • Beep
  • BlockInput
  • CastToHANDLE
  • ChangeServiceConfig
  • ClearEventLog
  • CloseClipboard
  • CloseDesktop
  • CloseEventLog
  • CloseHandle
  • CloseServiceHandle
  • CloseThemeData
  • CloseWindow
  • CloseWindowStation
  • CLSIDFromProgID
  • CLSIDFromString
  • ComEventSink
  • CommandLineToArgv
  • ControlService
  • ConvertToIUnknown
  • CreateBindCtx
  • CreateConsoleScreenBuffer
  • CreateDesktop
  • CreateFile
  • CreateFileMoniker
  • CreateMutex
  • CreateProcess
  • CreateProcessAsUser
  • CreateScalableFontResource
  • CreateSemaphore
  • CreateService
  • CreateWindowEx
  • CreateWindowStation
  • DecryptMessage
  • DefineDosDevice
  • DeleteSecurityContext
  • DeleteService
  • DeleteVolumeMountPoint
  • DeregisterEventSource
  • DestroyWindow
  • DeviceIoControl
  • DsGetDcName
  • DuplicateHandle
  • DuplicateTokenEx
  • EmptyClipboard
  • EnableWindow
  • EncryptMessage
  • EnumChildWindows
  • EnumDependentServices
  • EnumDesktops
  • EnumDesktopWindows
  • EnumDeviceDrivers
  • EnumDisplayDevices
  • EnumDisplayMonitors
  • EnumerateSecurityPackages
  • EnumProcesses
  • EnumProcessModules
  • EnumServicesStatus
  • EnumServicesStatusEx
  • EnumWindows
  • EnumWindowStations
  • ExitWindowsEx
  • ExpandEnvironmentStrings
  • FileTimeToSystemTime
  • FillConsoleOutputAttribute
  • FillConsoleOutputCharacter
  • FindFirstVolume
  • FindFirstVolumeMountPoint
  • FindNextVolume
  • FindNextVolumeMountPoint
  • FindVolumeClose
  • FindVolumeMountPointClose
  • FindWindow
  • FindWindowEx
  • FlashWindow
  • FlushConsoleInputBuffer
  • FlushIpNetTable
  • FormatMessageFromModule
  • FormatMessageFromString
  • FreeConsole
  • FreeCredentialsHandle
  • FreeLibrary
  • GenerateConsoleCtrlEvent
  • GetACP
  • GetActiveObject
  • GetActiveWindow
  • GetAdapterIndex
  • GetAdaptersInfo
  • GetAncestor
  • GetAsyncKeyState
  • GetBestInterface
  • GetBestRoute
  • GetCaretBlinkTime
  • GetCaretPos
  • GetClassName
  • GetClientRect
  • GetClipboardData
  • GetClipboardFormatName
  • GetClipboardOwner
  • GetCommandLineW
  • GetComputerName
  • GetComputerNameEx
  • GetConsoleCP
  • GetConsoleMode
  • GetConsoleOutputCP
  • GetConsoleScreenBufferInfo
  • GetConsoleTitle
  • GetConsoleWindow
  • GetCurrencyFormat
  • GetCurrentProcess
  • GetCurrentThemeName
  • GetCurrentThread
  • GetCurrentThreadId
  • GetCursorPos
  • GetDC
  • GetDesktopWindow
  • GetDeviceCaps
  • GetDeviceDriverBaseName
  • GetDeviceDriverFileName
  • GetDevicePowerState
  • GetDiskFreeSpaceEx
  • GetDoubleClickTime
  • GetDriveType
  • GetExitCodeProcess
  • GetExtendedTcpTable
  • GetExtendedUdpTable
  • GetFileTime
  • GetFileType
  • GetForegroundWindow
  • GetGUIThreadInfo
  • GetHandleInformation
  • GetIfEntry
  • GetIfTable
  • GetInterfaceInfo
  • GetIpAddrTable
  • GetIpForwardTable
  • GetIpNetTable
  • GetKeyState
  • GetLargestConsoleWindowSize
  • GetLastInputInfo
  • GetLocaleInfo
  • GetLogicalDrives
  • GetModuleBaseName
  • GetModuleFileNameEx
  • GetModuleInformation
  • GetMonitorInfo
  • GetNetworkParams
  • GetNumberFormat
  • GetNumberOfConsoleInputEvents
  • GetNumberOfConsoleMouseButtons
  • GetNumberOfEventLogRecords
  • GetNumberOfInterfaces
  • GetObject
  • GetOEMCP
  • GetOldestEventLogRecord
  • GetOpenClipboardWindow
  • GetParent
  • GetPerAdapterInfo
  • GetPrivateProfileInt
  • GetPrivateProfileSection
  • GetPrivateProfileSectionNames
  • GetPrivateProfileString
  • GetProcessWindowStation
  • GetProfileInt
  • GetProfileString
  • GetProfileType
  • GetRecordInfoFromGuids
  • GetRecordInfoFromTypeInfo
  • GetServiceDisplayName
  • GetServiceKeyName
  • GetShellWindow
  • GetStdHandle
  • GetSystemDefaultLangID
  • GetSystemDefaultLCID
  • GetSystemDefaultUILanguage
  • GetSystemInfo
  • GetSystemPowerStatus
  • GetSystemTimeAsFileTime
  • GetThemeColor
  • GetThemeFont
  • GetThreadDesktop
  • GetThreadLocale
  • GetTickCount
  • GetTokenInformation
  • GetUserDefaultLangID
  • GetUserDefaultLCID
  • GetUserDefaultUILanguage
  • GetUserName
  • GetVersionEx
  • GetVolumeInformation
  • GetVolumeNameForVolumeMountPoint
  • GetVolumePathName
  • GetWindow
  • GetWindowDC
  • GetWindowInfo
  • GetWindowLong
  • GetWindowPlacement
  • GetWindowRect
  • GetWindowText
  • GetWindowThreadProcessId
  • GlobalAlloc
  • GlobalFree
  • GlobalLock
  • GlobalMemoryStatus
  • GlobalReAlloc
  • GlobalSize
  • GlobalUnlock
  • GUITHREADINFO
  • HideCaret
  • IIDFromString
  • ImpersonateLoggedOnUser
  • ImpersonateSecurityContext
  • ImpersonateSelf
  • InitializeSecurityContext
  • InitiateSystemShutdown
  • InvalidateRect
  • IsAppThemed
  • IsChild
  • IsClipboardFormatAvailable
  • IsIconic
  • IsThemeActive
  • IsValidAcl
  • IsValidSecurityDescriptor
  • IsValidSid
  • IsWindow
  • IsWindowEnabled
  • IsWindowUnicode
  • IsWindowVisible
  • IsZoomed
  • LoadLibraryEx
  • LoadRegTypeLib
  • LoadTypeLibEx
  • LockServiceDatabase
  • LockWorkStation
  • LogonUser
  • LookupAccountName
  • LookupAccountSid
  • LookupPrivilegeDisplayName
  • LookupPrivilegeName
  • LookupPrivilegeValue
  • LsaClose
  • LsaEnumerateLogonSessions
  • LsaGetLogonSessionData
  • MakeSignature
  • MapVirtualKey
  • MessageBeep
  • MonitorClipboardStart
  • MonitorClipboardStop
  • MonitorFromPoint
  • MonitorFromRect
  • MonitorFromWindow
  • MoveFileEx
  • MoveWindow
  • NetConnectionEnum
  • NetFileClose
  • NetFileEnum
  • NetFileGetInfo
  • NetGetDCName
  • NetGroupAdd
  • NetGroupAddUser
  • NetGroupDel
  • NetGroupDelUser
  • NetGroupEnum
  • NetGroupGetInfo
  • NetGroupGetUsers
  • NetLocalGroupAdd
  • NetLocalGroupDel
  • NetLocalGroupEnum
  • NetLocalGroupGetInfo
  • NetLocalGroupGetMembers
  • NetScheduleJobAdd
  • NetScheduleJobDel
  • NetScheduleJobEnum
  • NetScheduleJobGetInfo
  • NetSessionDel
  • NetSessionEnum
  • NetSessionGetInfo
  • NetShareAdd
  • NetShareDel
  • NetShareGetInfo
  • NetShareSetInfo
  • NetUseEnum
  • NetUserAdd
  • NetUserDel
  • NetUserGetGroups
  • NetUserGetInfo
  • NetUserGetLocalGroups
  • OleRun
  • OpenBackupEventLog
  • OpenClipboard
  • OpenDesktop
  • OpenEventLog
  • OpenIcon
  • OpenInputDesktop
  • OpenMutex
  • OpenProcess
  • OpenProcessToken
  • OpenSCManager
  • OpenSemaphore
  • OpenService
  • OpenThemeData
  • OpenThread
  • OpenThreadToken
  • OpenWindowStation
  • OSVERSIONINFOEXW
  • PdhAddCounter
  • PdhBrowseCounters
  • PdhCloseQuery
  • PdhCollectQueryData
  • PdhConnectMachine
  • PdhEnumObjectItems
  • PdhEnumObjects
  • PdhGetDllVersion
  • PdhGetFormattedCounterValue
  • PdhLookupPerfNameByIndex
  • PdhMakeCounterPath
  • PdhOpenQuery
  • PdhParseCounterPath
  • PdhRemoveCounter
  • PdhSetDefaultRealTimeDataSource
  • PdhValidatePath
  • PlaySound
  • POINT
  • PostMessage
  • ProcessIdToSessionId
  • ProgIDFromCLSID
  • QueryContextAttributes
  • QueryDosDevice
  • QueryPathOfRegTypeLib
  • QuerySecurityContextToken
  • QueryServiceConfig
  • QueryServiceLockStatus
  • QueryServiceStatus
  • QueryServiceStatusEx
  • ReadConsole
  • ReadEventLog
  • ReadProcessMemory
  • RealGetWindowClass
  • RECT
  • RegisterClipboardFormat
  • RegisterConsoleEventNotifier
  • RegisterDirChangeNotifier
  • RegisterEventSource
  • RegisterHotKey
  • RegisterTypeLib
  • ReleaseDC
  • ReleaseMutex
  • ReleaseSemaphore
  • RemoveFontResourceEx
  • ReportEvent
  • ResumeThread
  • RevertToSelf
  • SendInput
  • SendMessageTimeout
  • SendNotifyMessage
  • SetActiveWindow
  • SetCaretBlinkTime
  • SetCaretPos
  • SetClipboardData
  • SetConsoleActiveScreenBuffer
  • SetConsoleCP
  • SetConsoleCursorPosition
  • SetConsoleMode
  • SetConsoleOutputCP
  • SetConsoleScreenBufferSize
  • SetConsoleTextAttribute
  • SetConsoleTitle
  • SetConsoleWindowInfo
  • SetCursorPos
  • SetFileTime
  • SetFocus
  • SetForegroundWindow
  • SetHandleInformation
  • SetLayeredWindowAttributes
  • SetNamedSecurityInfo
  • SetProcessWindowStation
  • SetSecurityInfo
  • SetStdHandle
  • SetSuspendState
  • SetTcpEntry
  • SetThreadDesktop
  • SetThreadExecutionState
  • SetThreadToken
  • SetupDiClassGuidsFromNameEx
  • SetupDiClassNameFromGuidEx
  • SetupDiCreateDeviceInfoListEx
  • SetupDiDestroyDeviceInfoList
  • SetupDiEnumDeviceInfo
  • SetupDiEnumDeviceInterfaces
  • SetupDiGetClassDevsEx
  • SetupDiGetDeviceInstanceId
  • SetupDiGetDeviceInterfaceDetail
  • SetupDiGetDeviceRegistryProperty
  • SetVolumeLabel
  • SetVolumeMountPoint
  • SetWindowLong
  • SetWindowPlacement
  • SetWindowPos
  • SetWindowText
  • SHGetFolderPath
  • SHGetPathFromIDList
  • SHGetSpecialFolderLocation
  • SHGetSpecialFolderPath
  • SHInvokePrinterCommand
  • SHObjectProperties
  • ShowCaret
  • ShowOwnedPopups
  • ShowWindow
  • ShowWindowAsync
  • StartService
  • SuspendThread
  • SwitchDesktop
  • SystemParametersInfo
  • SystemTimeToFileTime
  • SystemTimeToVariantTime
  • TerminateProcess
  • TwapiGetSidStringRep
  • TwapiThemeDefineValue
  • UnloadUserProfile
  • UnlockServiceDatabase
  • UnregisterConsoleEventNotifier
  • UnregisterDirChangeNotifier
  • UnregisterHotKey
  • UnRegisterTypeLib
  • UpdateWindow
  • UuidCreate
  • UuidCreateNil
  • VariantTimeToSystemTime
  • VerifySignature
  • VerLanguageName
  • WaitForInputIdle
  • WaitForMultipleObjects
  • WindowFromPoint
  • WINDOWINFO
  • WINDOWPLACEMENT
  • WNetCancelConnection2
  • WNetGetUniversalName
  • WNetGetUser
  • WriteConsole
  • WriteConsoleOutputCharacter
  • WritePrivateProfileString
  • WriteProfileString
  • WTSCloseServer
  • WTSDisconnectSession
  • WTSEnumerateProcesses
  • WTSEnumerateSessions
  • WTSLogoffSession
  • WTSOpenServer
  • WTSQuerySessionInformation
  • WTSSendMessage

COPYRIGHT

Copyright © 2003-2008 Ashok P. Nadkarni

Tcl Windows API 2.1.6 Privacy policy