diff --git a/build/7z.dll b/build/7z.dll deleted file mode 100644 index 11ce2f1d9..000000000 Binary files a/build/7z.dll and /dev/null differ diff --git a/build/7z.exe b/build/7z.exe deleted file mode 100644 index bc774bbf8..000000000 Binary files a/build/7z.exe and /dev/null differ diff --git a/build/Au3Check.dat b/build/Au3Check.dat deleted file mode 100644 index 04e811796..000000000 --- a/build/Au3Check.dat +++ /dev/null @@ -1,569 +0,0 @@ -$CmdLine -$CmdLineRaw - -@AppDataCommonDir @AppDataDir @AutoItExe @AutoItPID @AutoItVersion @AutoItX64 @COM_EventObj @CommonFilesDir @Compiled @ComputerName -@ComSpec @CPUArch @CR @CRLF @DesktopCommonDir @DesktopDepth @DesktopDir @DesktopHeight @DesktopRefresh @DesktopWidth -@DocumentsCommonDir @error @exitCode @exitMethod @extended @FavoritesCommonDir @FavoritesDir @GUI_CtrlHandle @GUI_CtrlId @GUI_DragFile -@GUI_DragId @GUI_DropId @GUI_WinHandle @HomeDrive @HomePath @HomeShare @HotKeyPressed @HOUR @IPAddress1 @IPAddress2 -@IPAddress3 @IPAddress4 @KBLayout @LF @LocalAppDataDir @LogonDNSDomain @LogonDomain @LogonServer @MDAY @MIN -@MON @MSEC @MUILang @MyDocumentsDir @NumParams @OSArch @OSBuild @OSLang @OSServicePack @OSType -@OSVersion @ProgramFilesDir @ProgramsCommonDir @ProgramsDir @ScriptDir @ScriptFullPath @ScriptLineNumber @ScriptName @SEC @StartMenuCommonDir -@StartMenuDir @StartupCommonDir @StartupDir @SW_DISABLE @SW_ENABLE @SW_HIDE @SW_LOCK @SW_MAXIMIZE @SW_MINIMIZE @SW_RESTORE -@SW_SHOW @SW_SHOWDEFAULT @SW_SHOWMAXIMIZED @SW_SHOWMINIMIZED @SW_SHOWMINNOACTIVE @SW_SHOWNA @SW_SHOWNOACTIVATE @SW_SHOWNORMAL @SW_UNLOCK @SystemDir -@TAB @TempDir @TRAY_ID @TrayIconFlashing @TrayIconVisible @UserName @UserProfileDir @WDAY @WindowsDir @WorkingDir -@YDAY @YEAR - -!Abs 1 1 -!ACos 1 1 -!AdlibRegister 1 2 -!AdlibUnRegister 0 1 -!Asc 1 1 -!AscW 1 1 -!ASin 1 1 -!Assign 2 3 -!ATan 1 1 -!AutoItSetOption 1 2 -!AutoItWinGetTitle 0 0 -!AutoItWinSetTitle 1 1 -!Beep 0 2 -!Binary 1 1 -!BinaryLen 1 1 -!BinaryMid 2 3 -!BinaryToString 1 2 -!BitAND 2 255 -!BitNOT 1 1 -!BitOR 2 255 -!BitRotate 1 3 -!BitShift 2 2 -!BitXOR 2 255 -!BlockInput 1 1 -!Break 1 1 -!Call 1 255 -!CDTray 2 2 -!Ceiling 1 1 -!Chr 1 1 -!ChrW 1 1 -!ClipGet 0 0 -!ClipPut 1 1 -!ConsoleRead 0 2 -!ConsoleWrite 1 1 -!ConsoleWriteError 1 1 -!ControlClick 3 7 -!ControlCommand 4 5 -!ControlDisable 3 3 -!ControlEnable 3 3 -!ControlFocus 3 3 -!ControlGetFocus 1 2 -!ControlGetHandle 3 3 -!ControlGetPos 3 3 -!ControlGetText 3 3 -!ControlHide 3 3 -!ControlListView 4 6 -!ControlMove 5 7 -!ControlSend 4 5 -!ControlSetText 4 5 -!ControlShow 3 3 -!ControlTreeView 4 5 -!Cos 1 1 -!Dec 1 2 -!DirCopy 2 3 -!DirCreate 1 1 -!DirGetSize 1 2 -!DirMove 2 3 -!DirRemove 1 2 -!DllCall 3 67 -!DllCallAddress 2 66 -!DllCallbackFree 1 1 -!DllCallbackGetPtr 1 1 -!DllCallbackRegister 3 3 -!DllClose 1 1 -!DllOpen 1 1 -!DllStructCreate 1 2 -!DllStructGetData 2 3 -!DllStructGetPtr 1 2 -!DllStructGetSize 1 1 -!DllStructSetData 3 4 -!DriveGetDrive 1 1 -!DriveGetFileSystem 1 1 -!DriveGetLabel 1 1 -!DriveGetSerial 1 1 -!DriveGetType 1 2 -!DriveMapAdd 2 5 -!DriveMapDel 1 1 -!DriveMapGet 1 1 -!DriveSetLabel 2 2 -!DriveSpaceFree 1 1 -!DriveSpaceTotal 1 1 -!DriveStatus 1 1 -!EnvGet 1 1 -!EnvSet 1 2 -!EnvUpdate 0 0 -!Eval 1 1 -!Execute 1 1 -!Exp 1 1 -!FileChangeDir 1 1 -!FileClose 1 1 -!FileCopy 2 3 -!FileCreateNTFSLink 2 3 -!FileCreateShortcut 2 9 -!FileDelete 1 1 -!FileExists 1 1 -!FileFindFirstFile 1 1 -!FileFindNextFile 1 2 -!FileFlush 1 1 -!FileGetAttrib 1 1 -!FileGetEncoding 1 2 -!FileGetLongName 1 2 -!FileGetPos 1 1 -!FileGetShortcut 1 1 -!FileGetShortName 1 2 -!FileGetSize 1 1 -!FileGetTime 1 3 -!FileGetVersion 1 2 -!FileInstall 2 3 -!FileMove 2 3 -!FileOpen 1 2 -!FileOpenDialog 3 6 -!FileRead 1 2 -!FileReadLine 1 2 -!FileReadToArray 1 1 -!FileRecycle 1 1 -!FileRecycleEmpty 0 1 -!FileSaveDialog 3 6 -!FileSelectFolder 2 5 -!FileSetAttrib 2 3 -!FileSetEnd 1 1 -!FileSetPos 3 3 -!FileSetTime 2 4 -!FileWrite 2 2 -!FileWriteLine 2 2 -!Floor 1 1 -!FtpSetProxy 1 4 -!FuncName 1 1 -!GUICreate 1 8 -!GUICtrlCreateAvi 4 8 -!GUICtrlCreateButton 3 7 -!GUICtrlCreateCheckbox 3 7 -!GUICtrlCreateCombo 3 7 -!GUICtrlCreateContextMenu 0 1 -!GUICtrlCreateDate 3 7 -!GUICtrlCreateDummy 0 0 -!GUICtrlCreateEdit 3 7 -!GUICtrlCreateGraphic 2 5 -!GUICtrlCreateGroup 3 7 -!GUICtrlCreateIcon 4 8 -!GUICtrlCreateInput 3 7 -!GUICtrlCreateLabel 3 7 -!GUICtrlCreateList 3 7 -!GUICtrlCreateListView 3 7 -!GUICtrlCreateListViewItem 2 2 -!GUICtrlCreateMenu 1 3 -!GUICtrlCreateMenuItem 2 4 -!GUICtrlCreateMonthCal 3 7 -!GUICtrlCreateObj 3 5 -!GUICtrlCreatePic 3 7 -!GUICtrlCreateProgress 2 6 -!GUICtrlCreateRadio 3 7 -!GUICtrlCreateSlider 2 6 -!GUICtrlCreateTab 2 6 -!GUICtrlCreateTabItem 1 1 -!GUICtrlCreateTreeView 2 6 -!GUICtrlCreateTreeViewItem 2 2 -!GUICtrlCreateUpdown 1 2 -!GUICtrlDelete 1 1 -!GUICtrlGetHandle 1 1 -!GUICtrlGetState 1 1 -!GUICtrlRead 1 2 -!GUICtrlRecvMsg 2 4 -!GUICtrlRegisterListViewSort 2 2 -!GUICtrlSendMsg 4 4 -!GUICtrlSendToDummy 1 2 -!GUICtrlSetBkColor 2 2 -!GUICtrlSetColor 2 2 -!GUICtrlSetCursor 2 2 -!GUICtrlSetData 2 3 -!GUICtrlSetDefBkColor 1 2 -!GUICtrlSetDefColor 1 2 -!GUICtrlSetFont 2 6 -!GUICtrlSetGraphic 2 8 -!GUICtrlSetImage 2 4 -!GUICtrlSetLimit 2 3 -!GUICtrlSetOnEvent 2 2 -!GUICtrlSetPos 2 5 -!GUICtrlSetResizing 2 2 -!GUICtrlSetState 2 2 -!GUICtrlSetStyle 2 3 -!GUICtrlSetTip 2 5 -!GUIDelete 0 1 -!GUIGetCursorInfo 0 1 -!GUIGetMsg 0 1 -!GUIGetStyle 0 1 -!GUIRegisterMsg 2 2 -!GUISetAccelerators 1 2 -!GUISetBkColor 1 2 -!GUISetCoord 2 5 -!GUISetCursor 0 3 -!GUISetFont 1 6 -!GUISetHelp 1 2 -!GUISetIcon 1 3 -!GUISetOnEvent 2 3 -!GUISetState 0 2 -!GUISetStyle 1 3 -!GUIStartGroup 0 1 -!GUISwitch 1 2 -!Hex 1 2 -!HotKeySet 1 2 -!HttpSetProxy 1 4 -!HttpSetUserAgent 1 1 -!HWnd 1 1 -!InetClose 1 1 -!InetGet 2 4 -!InetGetInfo 0 2 -!InetGetSize 1 2 -!InetRead 1 2 -!IniDelete 2 3 -!IniRead 4 4 -!IniReadSection 2 2 -!IniReadSectionNames 1 1 -!IniRenameSection 3 4 -!IniWrite 4 4 -!IniWriteSection 3 4 -!InputBox 2 10 -!Int 1 2 -!IsAdmin 0 0 -!IsArray 1 1 -!IsBinary 1 1 -!IsBool 1 1 -!IsDeclared 1 1 -!IsDllStruct 1 1 -!IsFloat 1 1 -!IsFunc 1 1 -!IsHWnd 1 1 -!IsInt 1 1 -!IsKeyword 1 1 -!IsNumber 1 1 -!IsObj 1 1 -!IsPtr 1 1 -!IsString 1 1 -!Log 1 1 -!MemGetStats 0 0 -!Mod 2 2 -!MouseClick 1 5 -!MouseClickDrag 5 6 -!MouseDown 1 1 -!MouseGetCursor 0 0 -!MouseGetPos 0 1 -!MouseMove 2 3 -!MouseUp 1 1 -!MouseWheel 1 2 -!MsgBox 3 5 -!Number 1 2 -!ObjCreate 1 4 -!ObjCreateInterface 2 4 -!ObjEvent 1 3 -!ObjGet 1 3 -!ObjName 1 2 -!OnAutoItExitRegister 1 1 -!OnAutoItExitUnRegister 1 1 -!Opt 1 2 -!Ping 1 2 -!PixelChecksum 4 7 -!PixelGetColor 2 3 -!PixelSearch 5 8 -!ProcessClose 1 1 -!ProcessExists 1 1 -!ProcessGetStats 0 2 -!ProcessList 0 1 -!ProcessSetPriority 2 2 -!ProcessWait 1 2 -!ProcessWaitClose 1 2 -!ProgressOff 0 0 -!ProgressOn 2 6 -!ProgressSet 1 3 -!Ptr 1 1 -!Random 0 3 -!RegDelete 1 2 -!RegEnumKey 2 2 -!RegEnumVal 2 2 -!RegRead 2 2 -!RegWrite 1 4 -!Round 1 2 -!Run 1 4 -!RunAs 5 8 -!RunAsWait 5 8 -!RunWait 1 4 -!Send 1 2 -!SendKeepActive 1 2 -!SetError 1 3 -!SetExtended 1 2 -!ShellExecute 1 5 -!ShellExecuteWait 1 5 -!Shutdown 1 1 -!Sin 1 1 -!Sleep 1 1 -!SoundPlay 1 2 -!SoundSetWaveVolume 1 1 -!SplashImageOn 2 7 -!SplashOff 0 0 -!SplashTextOn 2 10 -!Sqrt 1 1 -!SRandom 1 1 -!StatusbarGetText 1 3 -!StderrRead 1 3 -!StdinWrite 1 2 -!StdioClose 1 1 -!StdoutRead 1 3 -!String 1 1 -!StringAddCR 1 1 -!StringCompare 2 3 -!StringFormat 1 33 -!StringFromASCIIArray 1 4 -!StringInStr 2 6 -!StringIsAlNum 1 1 -!StringIsAlpha 1 1 -!StringIsASCII 1 1 -!StringIsDigit 1 1 -!StringIsFloat 1 1 -!StringIsInt 1 1 -!StringIsLower 1 1 -!StringIsSpace 1 1 -!StringIsUpper 1 1 -!StringIsXDigit 1 1 -!StringLeft 2 2 -!StringLen 1 1 -!StringLower 1 1 -!StringMid 2 3 -!StringRegExp 2 4 -!StringRegExpReplace 3 4 -!StringReplace 3 5 -!StringReverse 1 2 -!StringRight 2 2 -!StringSplit 2 3 -!StringStripCR 1 1 -!StringStripWS 2 2 -!StringToASCIIArray 1 4 -!StringToBinary 1 2 -!StringTrimLeft 2 2 -!StringTrimRight 2 2 -!StringUpper 1 1 -!Tan 1 1 -!TCPAccept 1 1 -!TCPCloseSocket 1 1 -!TCPConnect 2 2 -!TCPListen 2 3 -!TCPNameToIP 1 1 -!TCPRecv 2 3 -!TCPSend 2 2 -!TCPShutdown 0 0 -!TCPStartup 0 0 -!TimerDiff 1 1 -!TimerInit 0 0 -!ToolTip 1 6 -!TrayCreateItem 1 4 -!TrayCreateMenu 1 3 -!TrayGetMsg 0 0 -!TrayItemDelete 1 1 -!TrayItemGetHandle 1 1 -!TrayItemGetState 0 1 -!TrayItemGetText 1 1 -!TrayItemSetOnEvent 2 2 -!TrayItemSetState 2 2 -!TrayItemSetText 2 2 -!TraySetClick 1 1 -!TraySetIcon 0 2 -!TraySetOnEvent 2 2 -!TraySetPauseIcon 0 2 -!TraySetState 0 1 -!TraySetToolTip 0 1 -!TrayTip 3 4 -!UBound 1 2 -!UDPBind 2 2 -!UDPCloseSocket 1 1 -!UDPOpen 2 3 -!UDPRecv 2 3 -!UDPSend 2 2 -!UDPShutdown 0 0 -!UDPStartup 0 0 -!VarGetType 1 1 -!WinActivate 1 2 -!WinActive 1 2 -!WinClose 1 2 -!WinExists 1 2 -!WinFlash 1 4 -!WinGetCaretPos 0 0 -!WinGetClassList 1 2 -!WinGetClientSize 1 2 -!WinGetHandle 1 2 -!WinGetPos 1 2 -!WinGetProcess 1 2 -!WinGetState 1 2 -!WinGetText 1 2 -!WinGetTitle 1 2 -!WinKill 1 2 -!WinList 0 2 -!WinMenuSelectItem 3 9 -!WinMinimizeAll 0 0 -!WinMinimizeAllUndo 0 0 -!WinMove 4 7 -!WinSetOnTop 3 3 -!WinSetState 3 3 -!WinSetTitle 3 3 -!WinSetTrans 3 3 -!WinWait 1 3 -!WinWaitActive 1 3 -!WinWaitClose 1 3 -!WinWaitNotActive 1 3 - -%AdlibRegister 1 -%AdlibUnRegister 1 -%AutoItSetOption 1 CaretCoordMode -%AutoItSetOption 1 ExpandEnvStrings -%AutoItSetOption 1 ExpandVarStrings -%AutoItSetOption 1 GUICloseOnESC -%AutoItSetOption 1 GUICoordMode -%AutoItSetOption 1 GUIDataSeparatorChar -%AutoItSetOption 1 GUIEventOptions -%AutoItSetOption 1 GUIOnEventMode -%AutoItSetOption 1 GUIResizeMode -%AutoItSetOption 1 MouseClickDelay -%AutoItSetOption 1 MouseClickDownDelay -%AutoItSetOption 1 MouseClickDragDelay -%AutoItSetOption 1 MouseCoordMode -%AutoItSetOption 1 MustDeclareVars -%AutoItSetOption 1 PixelCoordMode -%AutoItSetOption 1 SendAttachMode -%AutoItSetOption 1 SendCapslockMode -%AutoItSetOption 1 SendKeyDelay -%AutoItSetOption 1 SendKeyDownDelay -%AutoItSetOption 1 TCPTimeout -%AutoItSetOption 1 TrayAutoPause -%AutoItSetOption 1 TrayIconDebug -%AutoItSetOption 1 TrayIconHide -%AutoItSetOption 1 TrayMenuMode -%AutoItSetOption 1 TrayOnEventMode -%AutoItSetOption 1 WinDetectHiddenText -%AutoItSetOption 1 WinSearchChildren -%AutoItSetOption 1 WinTextMatchMode -%AutoItSetOption 1 WinTitleMatchMode -%AutoItSetOption 1 WinWaitDelay -%Call 1 -%ControlClick 4 '' -%ControlClick 4 left -%ControlClick 4 main -%ControlClick 4 menu -%ControlClick 4 middle -%ControlClick 4 primary -%ControlClick 4 right -%ControlClick 4 secondary -%ControlCommand 4 AddString -%ControlCommand 4 Check -%ControlCommand 4 CurrentTab -%ControlCommand 4 DelString -%ControlCommand 4 EditPaste -%ControlCommand 4 FindString -%ControlCommand 4 GetCurrentCol -%ControlCommand 4 GetCurrentLine -%ControlCommand 4 GetCurrentSelection -%ControlCommand 4 GetLine -%ControlCommand 4 GetLineCount -%ControlCommand 4 GetSelected -%ControlCommand 4 HideDropDown -%ControlCommand 4 IsChecked -%ControlCommand 4 IsEnabled -%ControlCommand 4 IsVisible -%ControlCommand 4 SelectString -%ControlCommand 4 SendCommandID -%ControlCommand 4 SetCurrentSelection -%ControlCommand 4 ShowDropDown -%ControlCommand 4 TabLeft -%ControlCommand 4 TabRight -%ControlCommand 4 UnCheck -%ControlListView 4 DeSelect -%ControlListView 4 FindItem -%ControlListView 4 GetItemCount -%ControlListView 4 GetSelected -%ControlListView 4 GetSelectedCount -%ControlListView 4 GetSubItemCount -%ControlListView 4 GetText -%ControlListView 4 IsSelected -%ControlListView 4 Select -%ControlListView 4 SelectAll -%ControlListView 4 SelectClear -%ControlListView 4 SelectInvert -%ControlListView 4 ViewChange -%GUICtrlSetOnEvent 2 -%GUIRegisterMsg 2 -%GUISetOnEvent 2 -%HotKeySet 2 -%MouseClick 1 '' -%MouseClick 1 left -%MouseClick 1 main -%MouseClick 1 menu -%MouseClick 1 middle -%MouseClick 1 primary -%MouseClick 1 right -%MouseClick 1 secondary -%MouseClickDrag 1 '' -%MouseClickDrag 1 left -%MouseClickDrag 1 main -%MouseClickDrag 1 menu -%MouseClickDrag 1 middle -%MouseClickDrag 1 primary -%MouseClickDrag 1 right -%MouseClickDrag 1 secondary -%MouseDown 1 '' -%MouseDown 1 left -%MouseDown 1 main -%MouseDown 1 menu -%MouseDown 1 middle -%MouseDown 1 primary -%MouseDown 1 right -%MouseDown 1 secondary -%MouseUp 1 '' -%MouseUp 1 left -%MouseUp 1 main -%MouseUp 1 menu -%MouseUp 1 middle -%MouseUp 1 primary -%MouseUp 1 right -%MouseUp 1 secondary -%OnAutoItExitRegister 1 -%OnAutoItExitUnRegister 1 -%Opt 1 CaretCoordMode -%Opt 1 ExpandEnvStrings -%Opt 1 ExpandVarStrings -%Opt 1 GUICloseOnESC -%Opt 1 GUICoordMode -%Opt 1 GUIDataSeparatorChar -%Opt 1 GUIEventOptions -%Opt 1 GUIOnEventMode -%Opt 1 GUIResizeMode -%Opt 1 MouseClickDelay -%Opt 1 MouseClickDownDelay -%Opt 1 MouseClickDragDelay -%Opt 1 MouseCoordMode -%Opt 1 MustDeclareVars -%Opt 1 PixelCoordMode -%Opt 1 SendAttachMode -%Opt 1 SendCapslockMode -%Opt 1 SendKeyDelay -%Opt 1 SendKeyDownDelay -%Opt 1 TCPTimeout -%Opt 1 TrayAutoPause -%Opt 1 TrayIconDebug -%Opt 1 TrayIconHide -%Opt 1 TrayMenuMode -%Opt 1 TrayOnEventMode -%Opt 1 WinDetectHiddenText -%Opt 1 WinSearchChildren -%Opt 1 WinTextMatchMode -%Opt 1 WinTitleMatchMode -%Opt 1 WinWaitDelay -%RegWrite 3 REG_BINARY -%RegWrite 3 REG_DWORD -%RegWrite 3 REG_EXPAND_SZ -%RegWrite 3 REG_MULTI_SZ -%RegWrite 3 REG_QWORD -%RegWrite 3 REG_SZ -%TrayItemSetOnEvent 2 -%TraySetOnEvent 2 diff --git a/build/Au3Check.exe b/build/Au3Check.exe deleted file mode 100644 index 5a1e22038..000000000 Binary files a/build/Au3Check.exe and /dev/null differ diff --git a/build/Aut2Exe/Aut2exe.exe b/build/Aut2Exe/Aut2exe.exe deleted file mode 100644 index 167969922..000000000 Binary files a/build/Aut2Exe/Aut2exe.exe and /dev/null differ diff --git a/build/Aut2Exe/Aut2exe_x64.exe b/build/Aut2Exe/Aut2exe_x64.exe deleted file mode 100644 index b9a30f617..000000000 Binary files a/build/Aut2Exe/Aut2exe_x64.exe and /dev/null differ diff --git a/build/Aut2Exe/Icons/AutoIt_Main_v10_256x256_RGB-A.ico b/build/Aut2Exe/Icons/AutoIt_Main_v10_256x256_RGB-A.ico deleted file mode 100644 index 4b98a503c..000000000 Binary files a/build/Aut2Exe/Icons/AutoIt_Main_v10_256x256_RGB-A.ico and /dev/null differ diff --git a/build/Aut2Exe/Icons/AutoIt_Main_v10_48x48_256.ico b/build/Aut2Exe/Icons/AutoIt_Main_v10_48x48_256.ico deleted file mode 100644 index 716d3acdc..000000000 Binary files a/build/Aut2Exe/Icons/AutoIt_Main_v10_48x48_256.ico and /dev/null differ diff --git a/build/Aut2Exe/Icons/AutoIt_Main_v10_48x48_RGB-A.ico b/build/Aut2Exe/Icons/AutoIt_Main_v10_48x48_RGB-A.ico deleted file mode 100644 index 5d1efd200..000000000 Binary files a/build/Aut2Exe/Icons/AutoIt_Main_v10_48x48_RGB-A.ico and /dev/null differ diff --git a/build/Aut2Exe/Icons/AutoIt_Main_v9_48x48_256.ico b/build/Aut2Exe/Icons/AutoIt_Main_v9_48x48_256.ico deleted file mode 100644 index b037eae3b..000000000 Binary files a/build/Aut2Exe/Icons/AutoIt_Main_v9_48x48_256.ico and /dev/null differ diff --git a/build/Aut2Exe/Icons/AutoIt_Main_v9_48x48_RGB-A.ico b/build/Aut2Exe/Icons/AutoIt_Main_v9_48x48_RGB-A.ico deleted file mode 100644 index 658faf752..000000000 Binary files a/build/Aut2Exe/Icons/AutoIt_Main_v9_48x48_RGB-A.ico and /dev/null differ diff --git a/build/Aut2Exe/Icons/AutoIt_Old1.ico b/build/Aut2Exe/Icons/AutoIt_Old1.ico deleted file mode 100644 index c9181fedc..000000000 Binary files a/build/Aut2Exe/Icons/AutoIt_Old1.ico and /dev/null differ diff --git a/build/Aut2Exe/Icons/AutoIt_Old2.ico b/build/Aut2Exe/Icons/AutoIt_Old2.ico deleted file mode 100644 index 5c0fb5fee..000000000 Binary files a/build/Aut2Exe/Icons/AutoIt_Old2.ico and /dev/null differ diff --git a/build/Aut2Exe/Icons/AutoIt_Old3.ico b/build/Aut2Exe/Icons/AutoIt_Old3.ico deleted file mode 100644 index 01cda4f96..000000000 Binary files a/build/Aut2Exe/Icons/AutoIt_Old3.ico and /dev/null differ diff --git a/build/Aut2Exe/Icons/AutoIt_Old4.ico b/build/Aut2Exe/Icons/AutoIt_Old4.ico deleted file mode 100644 index 781735c89..000000000 Binary files a/build/Aut2Exe/Icons/AutoIt_Old4.ico and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP01.ICO b/build/Aut2Exe/Icons/SETUP01.ICO deleted file mode 100644 index e58d58933..000000000 Binary files a/build/Aut2Exe/Icons/SETUP01.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP02.ICO b/build/Aut2Exe/Icons/SETUP02.ICO deleted file mode 100644 index d3cd24c95..000000000 Binary files a/build/Aut2Exe/Icons/SETUP02.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP03.ICO b/build/Aut2Exe/Icons/SETUP03.ICO deleted file mode 100644 index 7bb09c617..000000000 Binary files a/build/Aut2Exe/Icons/SETUP03.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP04.ICO b/build/Aut2Exe/Icons/SETUP04.ICO deleted file mode 100644 index 675a139a2..000000000 Binary files a/build/Aut2Exe/Icons/SETUP04.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP05.ICO b/build/Aut2Exe/Icons/SETUP05.ICO deleted file mode 100644 index 8079d8b5f..000000000 Binary files a/build/Aut2Exe/Icons/SETUP05.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP06.ICO b/build/Aut2Exe/Icons/SETUP06.ICO deleted file mode 100644 index 2585a8f37..000000000 Binary files a/build/Aut2Exe/Icons/SETUP06.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP07.ICO b/build/Aut2Exe/Icons/SETUP07.ICO deleted file mode 100644 index 01755976c..000000000 Binary files a/build/Aut2Exe/Icons/SETUP07.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP08.ICO b/build/Aut2Exe/Icons/SETUP08.ICO deleted file mode 100644 index 479bac7bf..000000000 Binary files a/build/Aut2Exe/Icons/SETUP08.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP09.ICO b/build/Aut2Exe/Icons/SETUP09.ICO deleted file mode 100644 index e05d95cf3..000000000 Binary files a/build/Aut2Exe/Icons/SETUP09.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP10.ICO b/build/Aut2Exe/Icons/SETUP10.ICO deleted file mode 100644 index 45fae5237..000000000 Binary files a/build/Aut2Exe/Icons/SETUP10.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP11.ICO b/build/Aut2Exe/Icons/SETUP11.ICO deleted file mode 100644 index 485e68aaa..000000000 Binary files a/build/Aut2Exe/Icons/SETUP11.ICO and /dev/null differ diff --git a/build/Aut2Exe/Icons/SETUP12.ICO b/build/Aut2Exe/Icons/SETUP12.ICO deleted file mode 100644 index 77369c202..000000000 Binary files a/build/Aut2Exe/Icons/SETUP12.ICO and /dev/null differ diff --git a/build/Aut2Exe/upx.exe b/build/Aut2Exe/upx.exe deleted file mode 100644 index 1c331c703..000000000 Binary files a/build/Aut2Exe/upx.exe and /dev/null differ diff --git a/build/AutoIt3.exe b/build/AutoIt3.exe deleted file mode 100644 index d099763c1..000000000 Binary files a/build/AutoIt3.exe and /dev/null differ diff --git a/build/Build Batch Filess/build.bat b/build/Build Batch Filess/build.bat deleted file mode 100644 index df1ff815c..000000000 --- a/build/Build Batch Filess/build.bat +++ /dev/null @@ -1,71 +0,0 @@ -@echo off - -echo ############################################ -echo # # -echo # Starting Build Process # -echo # Please wait for completion... # -echo # # -echo ############################################ - -Setlocal EnableDelayedExpansion - -set "compile_files=MyBot.run,MyBot.run.MiniGui,MyBot.run.Watchdog,MyBot.run.Wmi" -set "compile_ext=_stripped.au3,.exe" -set "src=%cd%\" - -set compile_only=false -if "%1" EQU "compile_only" set compile_only=true -if "%1" EQU "zip_only" goto :zip_only -if "%1" EQU "retry" goto :retry - -if !compile_only! NEQ true ( - for %%i in (%compile_files%) do ( - for %%j in (%compile_ext%) do ( - set "file=%%i%%j" - If Exist "!file!" ( - echo Deleting !file! - del "!file!" - If Exist "!file!" ( - echo Error deleting !file!... STOP BUILD!!! - pause - exit /b 2 - ) - ) - ) - ) - if "%1" EQU "delete_compile" goto :EOF -) - -rem retry compiling -:retry -for %%i in (%compile_files%) do ( - set "file=%%i" - rem if !compile_only! NEQ true "build\au3check.exe" "%src%!file!.au3" - if not exist "%src%!file!_stripped.au3" ( - echo Stripping !file!.au3 - "build\au3Stripper\Au3Stripper.exe" "%src%!file!.au3" - "build\au3check.exe" "%src%!file!_stripped.au3" - ) - if not exist "%src%!file!.exe" ( - echo Compiling !file!.exe - "build\aut2exe\aut2exe.exe" /in "%src%!file!_stripped.au3" /nopack /comp 2 - ) - If Not Exist "!file!.exe" ( - echo Compile error... retry? - pause - goto :retry - ) -) - -:zip_only -set "zip=MyBot.run.zip" -Setlocal DisableDelayedExpansion -if %compile_only% NEQ true ( - If Exist "%zip%" ( - echo Deleting %zip% - del "%zip%" - ) - echo Creating %zip% - "build\7z.exe" a -scsUTF-8 "%zip%" COCBot\* CSV\* Help\* images\* imgxml\* Languages\* lib\* Strategies\* License.txt "MyBot.run Community Support Key.asc" README.md MyBot.run.au3 MyBot.run.exe MyBot.run.MiniGui.au3 MyBot.run.MiniGui.exe MyBot.run.txt MyBot.run.version.au3 MyBot.run.Watchdog.au3 MyBot.run.Watchdog.exe MyBot.run.Wmi.au3 MyBot.run.Wmi.exe -) -pause \ No newline at end of file diff --git a/build/Build Batch Filess/build_compile_only.bat b/build/Build Batch Filess/build_compile_only.bat deleted file mode 100644 index d90516405..000000000 --- a/build/Build Batch Filess/build_compile_only.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -::if "%1" EQU "compile_only" set compile_only=true -::if "%1" EQU "zip_only" goto :zip_only -::if "%1" EQU "retry" goto :retry -build.bat compile_only \ No newline at end of file diff --git a/build/Build Batch Filess/build_delete_compile.bat b/build/Build Batch Filess/build_delete_compile.bat deleted file mode 100644 index 55e8f4ad7..000000000 --- a/build/Build Batch Filess/build_delete_compile.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -::if "%1" EQU "compile_only" set compile_only=true -::if "%1" EQU "zip_only" goto :zip_only -::if "%1" EQU "retry" goto :retry -build.bat delete_compile \ No newline at end of file diff --git a/build/Build Batch Filess/build_retry.bat b/build/Build Batch Filess/build_retry.bat deleted file mode 100644 index 5eb92b5f2..000000000 --- a/build/Build Batch Filess/build_retry.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -::if "%1" EQU "compile_only" set compile_only=true -::if "%1" EQU "zip_only" goto :zip_only -::if "%1" EQU "retry" goto :retry -build.bat retry diff --git a/build/Build Batch Filess/build_zip_only.bat b/build/Build Batch Filess/build_zip_only.bat deleted file mode 100644 index 2b92a7c8a..000000000 --- a/build/Build Batch Filess/build_zip_only.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -::if "%1" EQU "compile_only" set compile_only=true -::if "%1" EQU "zip_only" goto :zip_only -::if "%1" EQU "retry" goto :retry -build.bat zip_only \ No newline at end of file diff --git a/build/Include/APIComConstants.au3 b/build/Include/APIComConstants.au3 deleted file mode 100644 index 6086ccb0b..000000000 --- a/build/Include/APIComConstants.au3 +++ /dev/null @@ -1,18 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPICom Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_CoInitialize() -Global Const $COINIT_APARTMENTTHREADED = 0x02 -Global Const $COINIT_DISABLE_OLE1DDE = 0x04 -Global Const $COINIT_MULTITHREADED = 0x00 -Global Const $COINIT_SPEED_OVER_MEMORY = 0x08 -; =============================================================================================================================== diff --git a/build/Include/APIConstants.au3 b/build/Include/APIConstants.au3 deleted file mode 100644 index 2414f12e0..000000000 --- a/build/Include/APIConstants.au3 +++ /dev/null @@ -1,43 +0,0 @@ -#include-once - -#include "APIComConstants.au3" -#include "APIDiagConstants.au3" -#include "APIDlgConstants.au3" -#include "APIFilesConstants.au3" -#include "APIGdiConstants.au3" -#include "APILocaleConstants.au3" -#include "APIMiscConstants.au3" -#include "APIProcConstants.au3" -#include "APIRegConstants.au3" -#include "APIResConstants.au3" -#include "APIShellExConstants.au3" -#include "APIShPathConstants.au3" -#include "APISysConstants.au3" -#include "APIThemeConstants.au3" -#include "BorderConstants.au3" -#include "ColorConstants.au3" -#include "Constants.au3" -#include "DirConstants.au3" -#include "FileConstants.au3" -#include "FontConstants.au3" -#include "FrameConstants.au3" -#include "GUIConstants.au3" -#include "MemoryConstants.au3" -#include "MenuConstants.au3" -#include "ProcessConstants.au3" -#include "SecurityConstants.au3" -#include "WinAPIConstants.au3" -#include "WinAPIsysinfoConstants.au3" -#include "WinAPIvkeysConstants.au3" -#include "WindowsConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: API Constants UDF WinAPI Libraries for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF WinAPI libraries -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; =============================================================================================================================== diff --git a/build/Include/APIDiagConstants.au3 b/build/Include/APIDiagConstants.au3 deleted file mode 100644 index 92ed05358..000000000 --- a/build/Include/APIDiagConstants.au3 +++ /dev/null @@ -1,64 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPIDiag Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_EnumDllProc() -Global Const $SYMOPT_ALLOW_ABSOLUTE_SYMBOLS = 0x00000800 -Global Const $SYMOPT_ALLOW_ZERO_ADDRESS = 0x01000000 -Global Const $SYMOPT_AUTO_PUBLICS = 0x00010000 -Global Const $SYMOPT_CASE_INSENSITIVE = 0x00000001 -Global Const $SYMOPT_DEBUG = 0x80000000 -Global Const $SYMOPT_DEFERRED_LOADS = 0x00000004 -Global Const $SYMOPT_DISABLE_SYMSRV_AUTODETECT = 0x02000000 -Global Const $SYMOPT_EXACT_SYMBOLS = 0x00000400 -Global Const $SYMOPT_FAIL_CRITICAL_ERRORS = 0x00000200 -Global Const $SYMOPT_FAVOR_COMPRESSED = 0x00800000 -Global Const $SYMOPT_FLAT_DIRECTORY = 0x00400000 -Global Const $SYMOPT_IGNORE_CVREC = 0x00000080 -Global Const $SYMOPT_IGNORE_IMAGEDIR = 0x00200000 -Global Const $SYMOPT_IGNORE_NT_SYMPATH = 0x00001000 -Global Const $SYMOPT_INCLUDE_32BIT_MODULES = 0x00002000 -Global Const $SYMOPT_LOAD_ANYTHING = 0x00000040 -Global Const $SYMOPT_LOAD_LINES = 0x00000010 -Global Const $SYMOPT_NO_CPP = 0x00000008 -Global Const $SYMOPT_NO_IMAGE_SEARCH = 0x00020000 -Global Const $SYMOPT_NO_PROMPTS = 0x00080000 -Global Const $SYMOPT_NO_PUBLICS = 0x00008000 -Global Const $SYMOPT_NO_UNQUALIFIED_LOADS = 0x00000100 -Global Const $SYMOPT_OVERWRITE = 0x00100000 -Global Const $SYMOPT_PUBLICS_ONLY = 0x00004000 -Global Const $SYMOPT_SECURE = 0x00040000 -Global Const $SYMOPT_UNDNAME = 0x00000002 - -; _WinAPI_GetErrorMode(), _WinAPI_SetErrorMode() -Global Const $SEM_FAILCRITICALERRORS = 0x0001 -Global Const $SEM_NOALIGNMENTFAULTEXCEPT = 0x0004 -Global Const $SEM_NOGPFAULTERRORBOX = 0x0002 -Global Const $SEM_NOOPENFILEERRORBOX = 0x8000 - -; _WinAPI_IsNetworkAlive() -Global Const $NETWORK_ALIVE_LAN = 0x01 -Global Const $NETWORK_ALIVE_WAN = 0x02 -Global Const $NETWORK_ALIVE_AOL = 0x04 - -; _WinAPI_RegisterApplicationRestart() -Global Const $RESTART_NO_CRASH = 0x01 -Global Const $RESTART_NO_HANG = 0x02 -Global Const $RESTART_NO_PATCH = 0x04 -Global Const $RESTART_NO_REBOOT = 0x08 - -; _WinAPI_UniqueHardwareID() -Global Const $UHID_MB = 0x00 -Global Const $UHID_BIOS = 0x01 -Global Const $UHID_CPU = 0x02 -Global Const $UHID_HDD = 0x04 -Global Const $UHID_All = BitOR($UHID_MB, $UHID_BIOS, $UHID_CPU, $UHID_HDD) -; =============================================================================================================================== diff --git a/build/Include/APIDlgConstants.au3 b/build/Include/APIDlgConstants.au3 deleted file mode 100644 index ec22be5b8..000000000 --- a/build/Include/APIDlgConstants.au3 +++ /dev/null @@ -1,251 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPIDlg Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__DLG_WM_USER = 0x400 - -; _WinAPI_BrowseForFolderDlg() -Global Const $BIF_BROWSEFILEJUNCTIONS = 0x00010000 -Global Const $BIF_BROWSEFORCOMPUTER = 0x00001000 -Global Const $BIF_BROWSEFORPRINTER = 0x00002000 -Global Const $BIF_BROWSEINCLUDEFILES = 0x00004000 -Global Const $BIF_BROWSEINCLUDEURLS = 0x00000080 -Global Const $BIF_DONTGOBELOWDOMAIN = 0x00000002 -Global Const $BIF_EDITBOX = 0x00000010 -Global Const $BIF_NEWDIALOGSTYLE = 0x00000040 -Global Const $BIF_NONEWFOLDERBUTTON = 0x00000200 -Global Const $BIF_NOTRANSLATETARGETS = 0x00000400 -Global Const $BIF_RETURNFSANCESTORS = 0x00000008 -Global Const $BIF_RETURNONLYFSDIRS = 0x00000001 -Global Const $BIF_SHAREABLE = 0x00008000 -Global Const $BIF_STATUSTEXT = 0x00000004 -Global Const $BIF_USENEWUI = BitOR($BIF_EDITBOX, $BIF_NEWDIALOGSTYLE) -Global Const $BIF_UAHINT = 0x00000100 -Global Const $BIF_VALIDATE = 0x00000020 - -Global Const $BFFM_INITIALIZED = 1 -Global Const $BFFM_IUNKNOWN = 5 -Global Const $BFFM_SELCHANGED = 2 -Global Const $BFFM_VALIDATEFAILED = 4 - -Global Const $BFFM_SETSTATUSTEXTA = $__DLG_WM_USER + 100 -Global Const $BFFM_ENABLEOK = $__DLG_WM_USER + 101 -Global Const $BFFM_SETSELECTIONA = $__DLG_WM_USER + 102 -Global Const $BFFM_SETSELECTIONW = $__DLG_WM_USER + 103 -Global Const $BFFM_SETSTATUSTEXTW = $__DLG_WM_USER + 104 -Global Const $BFFM_SETOKTEXT = $__DLG_WM_USER + 105 -Global Const $BFFM_SETEXPANDED = $__DLG_WM_USER + 106 - -; _WinAPI_CommDlgExtendedErrorEx() -Global Const $CDERR_DIALOGFAILURE = 0xFFFF -Global Const $CDERR_FINDRESFAILURE = 0x0006 -Global Const $CDERR_INITIALIZATION = 0x0002 -Global Const $CDERR_LOADRESFAILURE = 0x0007 -Global Const $CDERR_LOADSTRFAILURE = 0x0005 -Global Const $CDERR_LOCKRESFAILURE = 0x0008 -Global Const $CDERR_MEMALLOCFAILURE = 0x0009 -Global Const $CDERR_MEMLOCKFAILURE = 0x000A -Global Const $CDERR_NOHINSTANCE = 0x0004 -Global Const $CDERR_NOHOOK = 0x000B -Global Const $CDERR_NOTEMPLATE = 0x0003 -Global Const $CDERR_REGISTERMSGFAIL = 0x000C -Global Const $CDERR_STRUCTSIZE = 0x0001 - -Global Const $PDERR_CREATEICFAILURE = 0x100A -Global Const $PDERR_DEFAULTDIFFERENT = 0x100C -Global Const $PDERR_DNDMMISMATCH = 0x1009 -Global Const $PDERR_GETDEVMODEFAIL = 0x1005 -Global Const $PDERR_INITFAILURE = 0x1006 -Global Const $PDERR_LOADDRVFAILURE = 0x1004 -Global Const $PDERR_NODEFAULTPRN = 0x1008 -Global Const $PDERR_NODEVICES = 0x1007 -Global Const $PDERR_PARSEFAILURE = 0x1002 -Global Const $PDERR_PRINTERNOTFOUND = 0x100B -Global Const $PDERR_RETDEFFAILURE = 0x1003 -Global Const $PDERR_SETUPFAILURE = 0x1001 - -Global Const $CFERR_MAXLESSTHANMIN = 0x2002 -Global Const $CFERR_NOFONTS = 0x2001 - -Global Const $FNERR_BUFFERTOOSMALL = 0x3003 -Global Const $FNERR_INVALIDFILENAME = 0x3002 -Global Const $FNERR_SUBCLASSFAILURE = 0x3001 - -Global Const $FRERR_BUFFERLENGTHZERO = 0x4001 - -; _WinAPI_FindText(), _WinAPI_ReplaceText() -Global Const $FR_DIALOGTERM = 0x00000040 -Global Const $FR_DOWN = 0x00000001 -Global Const $FR_ENABLEHOOK = 0x00000100 -Global Const $FR_ENABLETEMPLATE = 0x00000200 -Global Const $FR_ENABLETEMPLATEHANDLE = 0x00002000 -Global Const $FR_FINDNEXT = 0x00000008 -Global Const $FR_HIDEUPDOWN = 0x00004000 -Global Const $FR_HIDEMATCHCASE = 0x00008000 -Global Const $FR_HIDEWHOLEWORD = 0x00010000 -Global Const $FR_MATCHCASE = 0x00000004 -Global Const $FR_NOMATCHCASE = 0x00000800 -Global Const $FR_NOUPDOWN = 0x00000400 -Global Const $FR_NOWHOLEWORD = 0x00001000 -Global Const $FR_REPLACE = 0x00000010 -Global Const $FR_REPLACEALL = 0x00000020 -Global Const $FR_SHOWHELP = 0x00000080 -Global Const $FR_WHOLEWORD = 0x00000002 - -; _WinAPI_FormatDriveDlg() -Global Const $SHFMT_ID_DEFAULT = 0xFFFF - -Global Const $SHFMT_OPT_FULL = 0x00 -Global Const $SHFMT_OPT_QUICKFORMAT = 0x01 -Global Const $SHFMT_OPT_SYSONLY = 0x02 - -Global Const $SHFMT_ERROR = -1 -Global Const $SHFMT_CANCEL = -2 -Global Const $SHFMT_NOFORMAT = -3 - -; _WinAPI_OpenFileDlg(), _WinAPI_SaveFileDlg() -Global Const $CDM_FIRST = $__DLG_WM_USER + 100 -Global Const $CDM_GETSPEC = $CDM_FIRST -Global Const $CDM_GETFILEPATH = $CDM_FIRST + 1 -Global Const $CDM_GETFOLDERPATH = $CDM_FIRST + 2 -Global Const $CDM_GETFOLDERIDLIST = $CDM_FIRST + 3 -Global Const $CDM_SETCONTROLTEXT = $CDM_FIRST + 4 -Global Const $CDM_HIDECONTROL = $CDM_FIRST + 5 -Global Const $CDM_SETDEFEXT = $CDM_FIRST + 6 -Global Const $CDM_LAST = $__DLG_WM_USER + 200 - -Global Const $CDN_FIRST = -601 -Global Const $CDN_INITDONE = $CDN_FIRST -Global Const $CDN_SELCHANGE = $CDN_FIRST - 1 -Global Const $CDN_FOLDERCHANGE = $CDN_FIRST - 2 -Global Const $CDN_SHAREVIOLATION = $CDN_FIRST - 3 -Global Const $CDN_HELP = $CDN_FIRST - 4 -Global Const $CDN_FILEOK = $CDN_FIRST - 5 -Global Const $CDN_TYPECHANGE = $CDN_FIRST - 6 -Global Const $CDN_INCLUDEITEM = $CDN_FIRST - 7 -Global Const $CDN_LAST = -699 - -; _WinAPI_PageSetupDlg() -Global Const $PSD_DEFAULTMINMARGINS = 0x00000000 -Global Const $PSD_DISABLEMARGINS = 0x00000010 -Global Const $PSD_DISABLEORIENTATION = 0x00000100 -Global Const $PSD_DISABLEPAGEPAINTING = 0x00080000 -Global Const $PSD_DISABLEPAPER = 0x00000200 -Global Const $PSD_DISABLEPRINTER = 0x00000020 -Global Const $PSD_ENABLEPAGEPAINTHOOK = 0x00040000 -Global Const $PSD_ENABLEPAGESETUPHOOK = 0x00002000 -Global Const $PSD_ENABLEPAGESETUPTEMPLATE = 0x00008000 -Global Const $PSD_ENABLEPAGESETUPTEMPLATEHANDLE = 0x00020000 -Global Const $PSD_INHUNDREDTHSOFMILLIMETERS = 0x00000008 -Global Const $PSD_INTHOUSANDTHSOFINCHES = 0x00000004 -Global Const $PSD_MARGINS = 0x00000002 -Global Const $PSD_MINMARGINS = 0x00000001 -Global Const $PSD_NONETWORKBUTTON = 0x00200000 -Global Const $PSD_NOWARNING = 0x00000080 -Global Const $PSD_RETURNDEFAULT = 0x00000400 -Global Const $PSD_SHOWHELP = 0x00000800 - -Global Const $WM_PSD_PAGESETUPDLG = $__DLG_WM_USER -Global Const $WM_PSD_FULLPAGERECT = $__DLG_WM_USER + 1 -Global Const $WM_PSD_MINMARGINRECT = $__DLG_WM_USER + 2 -Global Const $WM_PSD_MARGINRECT = $__DLG_WM_USER + 3 -Global Const $WM_PSD_GREEKTEXTRECT = $__DLG_WM_USER + 4 -Global Const $WM_PSD_ENVSTAMPRECT = $__DLG_WM_USER + 5 -Global Const $WM_PSD_YAFULLPAGERECT = $__DLG_WM_USER + 6 - -; _WinAPI_PrintDlg(), _WinAPI_PrintDlgEx() -Global Const $PD_ALLPAGES = 0x00000000 -Global Const $PD_COLLATE = 0x00000010 -Global Const $PD_CURRENTPAGE = 0x00400000 -Global Const $PD_DISABLEPRINTTOFILE = 0x00080000 -Global Const $PD_ENABLEPRINTHOOK = 0x00001000 -Global Const $PD_ENABLEPRINTTEMPLATE = 0x00004000 -Global Const $PD_ENABLEPRINTTEMPLATEHANDLE = 0x00010000 -Global Const $PD_ENABLESETUPHOOK = 0x00002000 -Global Const $PD_ENABLESETUPTEMPLATE = 0x00008000 -Global Const $PD_ENABLESETUPTEMPLATEHANDLE = 0x00020000 -Global Const $PD_EXCLUSIONFLAGS = 0x01000000 -Global Const $PD_HIDEPRINTTOFILE = 0x00100000 -Global Const $PD_NOCURRENTPAGE = 0x00800000 -Global Const $PD_NONETWORKBUTTON = 0x00200000 -Global Const $PD_NOPAGENUMS = 0x00000008 -Global Const $PD_NOSELECTION = 0x00000004 -Global Const $PD_NOWARNING = 0x00000080 -Global Const $PD_PAGENUMS = 0x00000002 -Global Const $PD_PRINTSETUP = 0x00000040 -Global Const $PD_PRINTTOFILE = 0x00000020 -Global Const $PD_RETURNDC = 0x00000100 -Global Const $PD_RETURNDEFAULT = 0x00000400 -Global Const $PD_RETURNIC = 0x00000200 -Global Const $PD_SELECTION = 0x00000001 -Global Const $PD_SHOWHELP = 0x00000800 -Global Const $PD_USEDEVMODECOPIES = 0x00040000 -Global Const $PD_USEDEVMODECOPIESANDCOLLATE = $PD_USEDEVMODECOPIES -Global Const $PD_USELARGETEMPLATE = 0x10000000 - -Global Const $PD_RESULT_APPLY = 2 -Global Const $PD_RESULT_CANCEL = 0 -Global Const $PD_RESULT_PRINT = 1 - -; _WinAPI_RestartDlg() -Global Const $EWX_LOGOFF = 0 -Global Const $EWX_POWEROFF = 8 -Global Const $EWX_REBOOT = 2 -Global Const $EWX_SHUTDOWN = 1 -Global Const $EWX_FORCE = 4 -Global Const $EWX_FORCEIFHUNG = 16 - -; _WinAPI_ShellOpenWithDlg() -Global Const $OAIF_ALLOW_REGISTRATION = 0x00000001 -Global Const $OAIF_REGISTER_EXT = 0x00000002 -Global Const $OAIF_EXEC = 0x00000004 -Global Const $OAIF_FORCE_REGISTRATION = 0x00000008 -Global Const $OAIF_HIDE_REGISTRATION = 0x00000020 -Global Const $OAIF_URL_PROTOCOL = 0x00000040 - -; _WinAPI_ShellStartNetConnectionDlg() in WinNet.au3 -; Global Const $RESOURCETYPE_ANY = 0x00 -; Global Const $RESOURCETYPE_DISK = 0x01 -; Global Const $RESOURCETYPE_PRINT = 0x02 - -; _WinAPI_ShellUserAuthenticationDlg() -Global Const $CREDUI_FLAGS_ALWAYS_SHOW_UI = 0x00000080 -Global Const $CREDUI_FLAGS_COMPLETE_USERNAME = 0x00000800 -Global Const $CREDUI_FLAGS_DO_NOT_PERSIST = 0x00000002 -Global Const $CREDUI_FLAGS_EXCLUDE_CERTIFICATES = 0x00000008 -Global Const $CREDUI_FLAGS_EXPECT_CONFIRMATION = 0x00020000 -Global Const $CREDUI_FLAGS_GENERIC_CREDENTIALS = 0x00040000 -Global Const $CREDUI_FLAGS_INCORRECT_PASSWORD = 0x00000001 -Global Const $CREDUI_FLAGS_KEEP_USERNAME = 0x00100000 -Global Const $CREDUI_FLAGS_PASSWORD_ONLY_OK = 0x00000200 -Global Const $CREDUI_FLAGS_PERSIST = 0x00001000 -Global Const $CREDUI_FLAGS_REQUEST_ADMINISTRATOR = 0x00000004 -Global Const $CREDUI_FLAGS_REQUIRE_CERTIFICATE = 0x00000010 -Global Const $CREDUI_FLAGS_REQUIRE_SMARTCARD = 0x00000100 -Global Const $CREDUI_FLAGS_SERVER_CREDENTIAL = 0x00004000 -Global Const $CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX = 0x00000040 -Global Const $CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS = 0x00080000 -Global Const $CREDUI_FLAGS_VALIDATE_USERNAME = 0x00000400 - -; _WinAPI_ShellUserAuthenticationDlgEx() -Global Const $CREDUIWIN_AUTHPACKAGE_ONLY = 0x00000010 -Global Const $CREDUIWIN_CHECKBOX = 0x00000002 -Global Const $CREDUIWIN_ENUMERATE_ADMINS = 0x00000100 -Global Const $CREDUIWIN_ENUMERATE_CURRENT_USER = 0x00000200 -Global Const $CREDUIWIN_GENERIC = 0x00000001 -Global Const $CREDUIWIN_IN_CRED_ONLY = 0x00000020 -Global Const $CREDUIWIN_SECURE_PROMPT = 0x00001000 -Global Const $CREDUIWIN_PACK_32_WOW = 0x10000000 -Global Const $CREDUIWIN_PREPROMPTING = 0x00002000 - -; Global Const $CRED_PACK_GENERIC_CREDENTIALS = 0x04 -; Global Const $CRED_PACK_PROTECTED_CREDENTIALS = 0x01 -; Global Const $CRED_PACK_WOW_BUFFER = 0x02 -; =============================================================================================================================== diff --git a/build/Include/APIErrorsConstants.au3 b/build/Include/APIErrorsConstants.au3 deleted file mode 100644 index 13021464e..000000000 --- a/build/Include/APIErrorsConstants.au3 +++ /dev/null @@ -1,2521 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: API Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: System error codes to be used with WinAPIEx UDF library -; Author(s) .....: Yashied -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $ERROR_SUCCESS = 0 ; The operation completed successfully. -Global Const $ERROR_INVALID_FUNCTION = 1 ; Incorrect function. -Global Const $ERROR_FILE_NOT_FOUND = 2 ; The system cannot find the file specified. -Global Const $ERROR_PATH_NOT_FOUND = 3 ; The system cannot find the path specified. -Global Const $ERROR_TOO_MANY_OPEN_FILES = 4 ; The system cannot open the file. -Global Const $ERROR_ACCESS_DENIED = 5 ; Access is denied. -Global Const $ERROR_INVALID_HANDLE = 6 ; The handle is invalid. -Global Const $ERROR_ARENA_TRASHED = 7 ; The storage control blocks were destroyed. -Global Const $ERROR_NOT_ENOUGH_MEMORY = 8 ; Not enough storage is available to process this command. -Global Const $ERROR_INVALID_BLOCK = 9 ; The storage control block address is invalid. -Global Const $ERROR_BAD_ENVIRONMENT = 10 ; The environment is incorrect. -Global Const $ERROR_BAD_FORMAT = 11 ; An attempt was made to load a program with an incorrect format. -Global Const $ERROR_INVALID_ACCESS = 12 ; The access code is invalid. -Global Const $ERROR_INVALID_DATA = 13 ; The data is invalid. -Global Const $ERROR_OUTOFMEMORY = 14 ; Not enough storage is available to complete this operation. -Global Const $ERROR_INVALID_DRIVE = 15 ; The system cannot find the drive specified. -Global Const $ERROR_CURRENT_DIRECTORY = 16 ; The directory cannot be removed. -Global Const $ERROR_NOT_SAME_DEVICE = 17 ; The system cannot move the file to a different disk drive. -Global Const $ERROR_NO_MORE_FILES = 18 ; There are no more files. -Global Const $ERROR_WRITE_PROTECT = 19 ; The media is write protected. -Global Const $ERROR_BAD_UNIT = 20 ; The system cannot find the device specified. -Global Const $ERROR_NOT_READY = 21 ; The device is not ready. -Global Const $ERROR_BAD_COMMAND = 22 ; The device does not recognize the command. -Global Const $ERROR_CRC = 23 ; Data error (cyclic redundancy check). -Global Const $ERROR_BAD_LENGTH = 24 ; The program issued a command but the command length is incorrect. -Global Const $ERROR_SEEK = 25 ; The drive cannot locate a specific area or track on the disk. -Global Const $ERROR_NOT_DOS_DISK = 26 ; The specified disk or diskette cannot be accessed. -Global Const $ERROR_SECTOR_NOT_FOUND = 27 ; The drive cannot find the sector requested. -Global Const $ERROR_OUT_OF_PAPER = 28 ; The printer is out of paper. -Global Const $ERROR_WRITE_FAULT = 29 ; The system cannot write to the specified device. -Global Const $ERROR_READ_FAULT = 30 ; The system cannot read from the specified device. -Global Const $ERROR_GEN_FAILURE = 31 ; A device attached to the system is not functioning. -Global Const $ERROR_SHARING_VIOLATION = 32 ; The process cannot access the file because it is being used by another process. -Global Const $ERROR_LOCK_VIOLATION = 33 ; The process cannot access the file because another process has locked a portion of the file. -Global Const $ERROR_WRONG_DISK = 34 ; The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1. -Global Const $ERROR_SHARING_BUFFER_EXCEEDED = 36 ; Too many files opened for sharing. -Global Const $ERROR_HANDLE_EOF = 38 ; Reached the end of the file. -Global Const $ERROR_HANDLE_DISK_FULL = 39 ; The disk is full. -Global Const $ERROR_NOT_SUPPORTED = 50 ; The request is not supported. -Global Const $ERROR_REM_NOT_LIST = 51 ; Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator. -Global Const $ERROR_DUP_NAME = 52 ; You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name. -Global Const $ERROR_BAD_NETPATH = 53 ; The network path was not found. -Global Const $ERROR_NETWORK_BUSY = 54 ; The network is busy. -Global Const $ERROR_DEV_NOT_EXIST = 55 ; The specified network resource or device is no longer available. -Global Const $ERROR_TOO_MANY_CMDS = 56 ; The network BIOS command limit has been reached. -Global Const $ERROR_ADAP_HDW_ERR = 57 ; A network adapter hardware error occurred. -Global Const $ERROR_BAD_NET_RESP = 58 ; The specified server cannot perform the requested operation. -Global Const $ERROR_UNEXP_NET_ERR = 59 ; An unexpected network error occurred. -Global Const $ERROR_BAD_REM_ADAP = 60 ; The remote adapter is not compatible. -Global Const $ERROR_PRINTQ_FULL = 61 ; The printer queue is full. -Global Const $ERROR_NO_SPOOL_SPACE = 62 ; Space to store the file waiting to be printed is not available on the server. -Global Const $ERROR_PRINT_CANCELLED = 63 ; Your file waiting to be printed was deleted. -Global Const $ERROR_NETNAME_DELETED = 64 ; The specified network name is no longer available. -Global Const $ERROR_NETWORK_ACCESS_DENIED = 65 ; Network access is denied. -Global Const $ERROR_BAD_DEV_TYPE = 66 ; The network resource type is not correct. -Global Const $ERROR_BAD_NET_NAME = 67 ; The network name cannot be found. -Global Const $ERROR_TOO_MANY_NAMES = 68 ; The name limit for the local computer network adapter card was exceeded. -Global Const $ERROR_TOO_MANY_SESS = 69 ; The network BIOS session limit was exceeded. -Global Const $ERROR_SHARING_PAUSED = 70 ; The remote server has been paused or is in the process of being started. -Global Const $ERROR_REQ_NOT_ACCEP = 71 ; No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept. -Global Const $ERROR_REDIR_PAUSED = 72 ; The specified printer or disk device has been paused. -Global Const $ERROR_FILE_EXISTS = 80 ; The file exists. -Global Const $ERROR_CANNOT_MAKE = 82 ; The directory or file cannot be created. -Global Const $ERROR_FAIL_I24 = 83 ; Fail on INT 24. -Global Const $ERROR_OUT_OF_STRUCTURES = 84 ; Storage to process this request is not available. -Global Const $ERROR_ALREADY_ASSIGNED = 85 ; The local device name is already in use. -Global Const $ERROR_INVALID_PASSWORD = 86 ; The specified network password is not correct. -Global Const $ERROR_INVALID_PARAMETER = 87 ; The parameter is incorrect. -Global Const $ERROR_NET_WRITE_FAULT = 88 ; A write fault occurred on the network. -Global Const $ERROR_NO_PROC_SLOTS = 89 ; The system cannot start another process at this time. -Global Const $ERROR_TOO_MANY_SEMAPHORES = 100 ; Cannot create another system semaphore. -Global Const $ERROR_EXCL_SEM_ALREADY_OWNED = 101 ; The exclusive semaphore is owned by another process. -Global Const $ERROR_SEM_IS_SET = 102 ; The semaphore is set and cannot be closed. -Global Const $ERROR_TOO_MANY_SEM_REQUESTS = 103 ; The semaphore cannot be set again. -Global Const $ERROR_INVALID_AT_INTERRUPT_TIME = 104 ; Cannot request exclusive semaphores at interrupt time. -Global Const $ERROR_SEM_OWNER_DIED = 105 ; The previous ownership of this semaphore has ended. -Global Const $ERROR_SEM_USER_LIMIT = 106 ; Insert the diskette for drive %1. -Global Const $ERROR_DISK_CHANGE = 107 ; The program stopped because an alternate diskette was not inserted. -Global Const $ERROR_DRIVE_LOCKED = 108 ; The disk is in use or locked by another process. -Global Const $ERROR_BROKEN_PIPE = 109 ; The pipe has been ended. -Global Const $ERROR_OPEN_FAILED = 110 ; The system cannot open the device or file specified. -Global Const $ERROR_BUFFER_OVERFLOW = 111 ; The file name is too long. -Global Const $ERROR_DISK_FULL = 112 ; There is not enough space on the disk. -Global Const $ERROR_NO_MORE_SEARCH_HANDLES = 113 ; No more internal file identifiers available. -Global Const $ERROR_INVALID_TARGET_HANDLE = 114 ; The target internal file identifier is incorrect. -Global Const $ERROR_INVALID_CATEGORY = 117 ; The IOCTL call made by the application program is not correct. -Global Const $ERROR_INVALID_VERIFY_SWITCH = 118 ; The verify-on-write switch parameter value is not correct. -Global Const $ERROR_BAD_DRIVER_LEVEL = 119 ; The system does not support the command requested. -Global Const $ERROR_CALL_NOT_IMPLEMENTED = 120 ; This function is not supported on this system. -Global Const $ERROR_SEM_TIMEOUT = 121 ; The semaphore timeout period has expired. -Global Const $ERROR_INSUFFICIENT_BUFFER = 122 ; The data area passed to a system call is too small. -Global Const $ERROR_INVALID_NAME = 123 ; The filename, directory name, or volume label syntax is incorrect. -Global Const $ERROR_INVALID_LEVEL = 124 ; The system call level is not correct. -Global Const $ERROR_NO_VOLUME_LABEL = 125 ; The disk has no volume label. -Global Const $ERROR_MOD_NOT_FOUND = 126 ; The specified module could not be found. -Global Const $ERROR_PROC_NOT_FOUND = 127 ; The specified procedure could not be found. -Global Const $ERROR_WAIT_NO_CHILDREN = 128 ; There are no child processes to wait for. -Global Const $ERROR_CHILD_NOT_COMPLETE = 129 ; The %1 application cannot be run in Win32 mode. -Global Const $ERROR_DIRECT_ACCESS_HANDLE = 130 ; Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O. -Global Const $ERROR_NEGATIVE_SEEK = 131 ; An attempt was made to move the file pointer before the beginning of the file. -Global Const $ERROR_SEEK_ON_DEVICE = 132 ; The file pointer cannot be set on the specified device or file. -Global Const $ERROR_IS_JOIN_TARGET = 133 ; A JOIN or SUBST command cannot be used for a drive that contains previously joined drives. -Global Const $ERROR_IS_JOINED = 134 ; An attempt was made to use a JOIN or SUBST command on a drive that has already been joined. -Global Const $ERROR_IS_SUBSTED = 135 ; An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted. -Global Const $ERROR_NOT_JOINED = 136 ; The system tried to delete the JOIN of a drive that is not joined. -Global Const $ERROR_NOT_SUBSTED = 137 ; The system tried to delete the substitution of a drive that is not substituted. -Global Const $ERROR_JOIN_TO_JOIN = 138 ; The system tried to join a drive to a directory on a joined drive. -Global Const $ERROR_SUBST_TO_SUBST = 139 ; The system tried to substitute a drive to a directory on a substituted drive. -Global Const $ERROR_JOIN_TO_SUBST = 140 ; The system tried to join a drive to a directory on a substituted drive. -Global Const $ERROR_SUBST_TO_JOIN = 141 ; The system tried to SUBST a drive to a directory on a joined drive. -Global Const $ERROR_BUSY_DRIVE = 142 ; The system cannot perform a JOIN or SUBST at this time. -Global Const $ERROR_SAME_DRIVE = 143 ; The system cannot join or substitute a drive to or for a directory on the same drive. -Global Const $ERROR_DIR_NOT_ROOT = 144 ; The directory is not a subdirectory of the root directory. -Global Const $ERROR_DIR_NOT_EMPTY = 145 ; The directory is not empty. -Global Const $ERROR_IS_SUBST_PATH = 146 ; The path specified is being used in a substitute. -Global Const $ERROR_IS_JOIN_PATH = 147 ; Not enough resources are available to process this command. -Global Const $ERROR_PATH_BUSY = 148 ; The path specified cannot be used at this time. -Global Const $ERROR_IS_SUBST_TARGET = 149 ; An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute. -Global Const $ERROR_SYSTEM_TRACE = 150 ; System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed. -Global Const $ERROR_INVALID_EVENT_COUNT = 151 ; The number of specified semaphore events for DosMuxSemWait is not correct. -Global Const $ERROR_TOO_MANY_MUXWAITERS = 152 ; DosMuxSemWait did not execute; too many semaphores are already set. -Global Const $ERROR_INVALID_LIST_FORMAT = 153 ; The DosMuxSemWait list is not correct. -Global Const $ERROR_LABEL_TOO_LONG = 154 ; The volume label you entered exceeds the label character limit of the target file system. -Global Const $ERROR_TOO_MANY_TCBS = 155 ; Cannot create another thread. -Global Const $ERROR_SIGNAL_REFUSED = 156 ; The recipient process has refused the signal. -Global Const $ERROR_DISCARDED = 157 ; The segment is already discarded and cannot be locked. -Global Const $ERROR_NOT_LOCKED = 158 ; The segment is already unlocked. -Global Const $ERROR_BAD_THREADID_ADDR = 159 ; The address for the thread ID is not correct. -Global Const $ERROR_BAD_ARGUMENTS = 160 ; One or more arguments are not correct. -Global Const $ERROR_BAD_PATHNAME = 161 ; The specified path is invalid. -Global Const $ERROR_SIGNAL_PENDING = 162 ; A signal is already pending. -Global Const $ERROR_MAX_THRDS_REACHED = 164 ; No more threads can be created in the system. -Global Const $ERROR_LOCK_FAILED = 167 ; Unable to lock a region of a file. -Global Const $ERROR_BUSY = 170 ; The requested resource is in use. -Global Const $ERROR_CANCEL_VIOLATION = 173 ; A lock request was not outstanding for the supplied cancel region. -Global Const $ERROR_ATOMIC_LOCKS_NOT_SUPPORTED = 174 ; The file system does not support atomic changes to the lock type. -Global Const $ERROR_INVALID_SEGMENT_NUMBER = 180 ; The system detected a segment number that was not correct. -Global Const $ERROR_INVALID_ORDINAL = 182 ; The operating system cannot run %1. -Global Const $ERROR_ALREADY_EXISTS = 183 ; Cannot create a file when that file already exists. -Global Const $ERROR_INVALID_FLAG_NUMBER = 186 ; The flag passed is not correct. -Global Const $ERROR_SEM_NOT_FOUND = 187 ; The specified system semaphore name was not found. -Global Const $ERROR_INVALID_STARTING_CODESEG = 188 ; The operating system cannot run %1. -Global Const $ERROR_INVALID_STACKSEG = 189 ; The operating system cannot run %1. -Global Const $ERROR_INVALID_MODULETYPE = 190 ; The operating system cannot run %1. -Global Const $ERROR_INVALID_EXE_SIGNATURE = 191 ; Cannot run %1 in Win32 mode. -Global Const $ERROR_EXE_MARKED_INVALID = 192 ; The operating system cannot run %1. -Global Const $ERROR_BAD_EXE_FORMAT = 193 ; %1 is not a valid Win32 application. -Global Const $ERROR_ITERATED_DATA_EXCEEDS_64k = 194 ; The operating system cannot run %1. -Global Const $ERROR_INVALID_MINALLOCSIZE = 195 ; The operating system cannot run %1. -Global Const $ERROR_DYNLINK_FROM_INVALID_RING = 196 ; The operating system cannot run this application program. -Global Const $ERROR_IOPL_NOT_ENABLED = 197 ; The operating system is not presently configured to run this application. -Global Const $ERROR_INVALID_SEGDPL = 198 ; The operating system cannot run %1. -Global Const $ERROR_AUTODATASEG_EXCEEDS_64k = 199 ; The operating system cannot run this application program. -Global Const $ERROR_RING2SEG_MUST_BE_MOVABLE = 200 ; The code segment cannot be greater than or equal to 64K. -Global Const $ERROR_RELOC_CHAIN_XEEDS_SEGLIM = 201 ; The operating system cannot run %1. -Global Const $ERROR_INFLOOP_IN_RELOC_CHAIN = 202 ; The operating system cannot run %1. -Global Const $ERROR_ENVVAR_NOT_FOUND = 203 ; The system could not find the environment option that was entered. -Global Const $ERROR_NO_SIGNAL_SENT = 205 ; No process in the command subtree has a signal handler. -Global Const $ERROR_FILENAME_EXCED_RANGE = 206 ; The filename or extension is too long. -Global Const $ERROR_RING2_STACK_IN_USE = 207 ; The ring 2 stack is in use. -Global Const $ERROR_META_EXPANSION_TOO_LONG = 208 ; The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified. -Global Const $ERROR_INVALID_SIGNAL_NUMBER = 209 ; The signal being posted is not correct. -Global Const $ERROR_THREAD_1_INACTIVE = 210 ; The signal handler cannot be set. -Global Const $ERROR_LOCKED = 212 ; The segment is locked and cannot be reallocated. -Global Const $ERROR_TOO_MANY_MODULES = 214 ; Too many dynamic-link modules are attached to this program or dynamic-link module. -Global Const $ERROR_NESTING_NOT_ALLOWED = 215 ; Cannot nest calls to LoadModule. -Global Const $ERROR_EXE_MACHINE_TYPE_MISMATCH = 216 ; The version of %1 is not compatible with the version you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher. -Global Const $ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY = 217 ; The image file %1 is signed, unable to modify. -Global Const $ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY = 218 ; The image file %1 is strong signed, unable to modify. -Global Const $ERROR_FILE_CHECKED_OUT = 220 ; This file is checked out or locked for editing by another user. -Global Const $ERROR_CHECKOUT_REQUIRED = 221 ; The file must be checked out before saving changes. -Global Const $ERROR_BAD_FILE_TYPE = 222 ; The file type being saved or retrieved has been blocked. -Global Const $ERROR_FILE_TOO_LARGE = 223 ; The file size exceeds the limit allowed and cannot be saved. -Global Const $ERROR_FORMS_AUTH_REQUIRED = 224 ; Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically. -Global Const $ERROR_VIRUS_INFECTED = 225 ; Operation did not complete successfully because the file contains a virus. -Global Const $ERROR_VIRUS_DELETED = 226 ; This file contains a virus and cannot be opened. Due to the nature of this virus, the file has been removed from this location. -Global Const $ERROR_PIPE_LOCAL = 229 ; The pipe is local. -Global Const $ERROR_BAD_PIPE = 230 ; The pipe state is invalid. -Global Const $ERROR_PIPE_BUSY = 231 ; All pipe instances are busy. -Global Const $ERROR_NO_DATA = 232 ; The pipe is being closed. -Global Const $ERROR_PIPE_NOT_CONNECTED = 233 ; No process is on the other end of the pipe. -Global Const $ERROR_MORE_DATA = 234 ; More data is available. -Global Const $ERROR_VC_DISCONNECTED = 240 ; The session was canceled. -Global Const $ERROR_INVALID_EA_NAME = 254 ; The specified extended attribute name was invalid. -Global Const $ERROR_EA_LIST_INCONSISTENT = 255 ; The extended attributes are inconsistent. -Global Const $WAIT_TIMEOUT = 258 ; The wait operation timed out. -Global Const $ERROR_NO_MORE_ITEMS = 259 ; No more data is available. -Global Const $ERROR_CANNOT_COPY = 266 ; The copy functions cannot be used. -Global Const $ERROR_DIRECTORY = 267 ; The directory name is invalid. -Global Const $ERROR_EAS_DIDNT_FIT = 275 ; The extended attributes did not fit in the buffer. -Global Const $ERROR_EA_FILE_CORRUPT = 276 ; The extended attribute file on the mounted file system is corrupt. -Global Const $ERROR_EA_TABLE_FULL = 277 ; The extended attribute table file is full. -Global Const $ERROR_INVALID_EA_HANDLE = 278 ; The specified extended attribute handle is invalid. -Global Const $ERROR_EAS_NOT_SUPPORTED = 282 ; The mounted file system does not support extended attributes. -Global Const $ERROR_NOT_OWNER = 288 ; Attempt to release mutex not owned by caller. -Global Const $ERROR_TOO_MANY_POSTS = 298 ; Too many posts were made to a semaphore. -Global Const $ERROR_PARTIAL_COPY = 299 ; Only part of a ReadProcessMemory or WriteProcessMemory request was completed. -Global Const $ERROR_OPLOCK_NOT_GRANTED = 300 ; The oplock request is denied. -Global Const $ERROR_INVALID_OPLOCK_PROTOCOL = 301 ; An invalid oplock acknowledgment was received by the system. -Global Const $ERROR_DISK_TOO_FRAGMENTED = 302 ; The volume is too fragmented to complete this operation. -Global Const $ERROR_DELETE_PENDING = 303 ; The file cannot be opened because it is in the process of being deleted. -Global Const $ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING = 304 ; Short name settings may not be changed on this volume due to the global registry setting. -Global Const $ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME = 305 ; Short names are not enabled on this volume. -Global Const $ERROR_SECURITY_STREAM_IS_INCONSISTENT = 306 ; The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume. -Global Const $ERROR_INVALID_LOCK_RANGE = 307 ; A requested file lock operation cannot be processed due to an invalid byte range. -Global Const $ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT = 308 ; The subsystem needed to support the image type is not present. -Global Const $ERROR_NOTIFICATION_GUID_ALREADY_DEFINED = 309 ; The specified file already has a notification GUID associated with it. -Global Const $ERROR_MR_MID_NOT_FOUND = 317 ; The system cannot find message text for message number 0x%1 in the message file for %2. -Global Const $ERROR_SCOPE_NOT_FOUND = 318 ; The scope specified was not found. -Global Const $ERROR_FAIL_NOACTION_REBOOT = 350 ; No action was taken as a system reboot is required. -Global Const $ERROR_FAIL_SHUTDOWN = 351 ; The shutdown operation failed. -Global Const $ERROR_FAIL_RESTART = 352 ; The restart operation failed. -Global Const $ERROR_MAX_SESSIONS_REACHED = 353 ; The maximum number of sessions has been reached. -Global Const $ERROR_THREAD_MODE_ALREADY_BACKGROUND = 400 ; The thread is already in background processing mode. -Global Const $ERROR_THREAD_MODE_NOT_BACKGROUND = 401 ; The thread is not in background processing mode. -Global Const $ERROR_PROCESS_MODE_ALREADY_BACKGROUND = 402 ; The process is already in background processing mode. -Global Const $ERROR_PROCESS_MODE_NOT_BACKGROUND = 403 ; The process is not in background processing mode. -Global Const $ERROR_INVALID_ADDRESS = 487 ; Attempt to access invalid address. -Global Const $ERROR_USER_PROFILE_LOAD = 500 ; User profile cannot be loaded. -Global Const $ERROR_ARITHMETIC_OVERFLOW = 534 ; Arithmetic result exceeded 32 bits. -Global Const $ERROR_PIPE_CONNECTED = 535 ; There is a process on other end of the pipe. -Global Const $ERROR_PIPE_LISTENING = 536 ; Waiting for a process to open the other end of the pipe. -Global Const $ERROR_VERIFIER_STOP = 537 ; Application verifier has found an error in the current process. -Global Const $ERROR_ABIOS_ERROR = 538 ; An error occurred in the ABIOS subsystem. -Global Const $ERROR_WX86_WARNING = 539 ; A warning occurred in the WX86 subsystem. -Global Const $ERROR_WX86_ERROR = 540 ; An error occurred in the WX86 subsystem. -Global Const $ERROR_TIMER_NOT_CANCELED = 541 ; An attempt was made to cancel or set a timer that has an associated APC and the subject thread is not the thread that originally set the timer with an associated APC routine. -Global Const $ERROR_UNWIND = 542 ; Unwind exception code. -Global Const $ERROR_BAD_STACK = 543 ; An invalid or unaligned stack was encountered during an unwind operation. -Global Const $ERROR_INVALID_UNWIND_TARGET = 544 ; An invalid unwind target was encountered during an unwind operation. -Global Const $ERROR_INVALID_PORT_ATTRIBUTES = 545 ; Invalid Object Attributes specified to NtCreatePort or invalid Port Attributes specified to NtConnectPort. -Global Const $ERROR_PORT_MESSAGE_TOO_LONG = 546 ; Length of message passed to NtRequestPort or NtRequestWaitReplyPort was longer than the maximum message allowed by the port. -Global Const $ERROR_INVALID_QUOTA_LOWER = 547 ; An attempt was made to lower a quota limit below the current usage. -Global Const $ERROR_DEVICE_ALREADY_ATTACHED = 548 ; An attempt was made to attach to a device that was already attached to another device. -Global Const $ERROR_INSTRUCTION_MISALIGNMENT = 549 ; An attempt was made to execute an instruction at an unaligned address and the host system does not support unaligned instruction references. -Global Const $ERROR_PROFILING_NOT_STARTED = 550 ; Profiling not started. -Global Const $ERROR_PROFILING_NOT_STOPPED = 551 ; Profiling not stopped. -Global Const $ERROR_COULD_NOT_INTERPRET = 552 ; The passed ACL did not contain the minimum required information. -Global Const $ERROR_PROFILING_AT_LIMIT = 553 ; The number of active profiling objects is at the maximum and no more may be started. -Global Const $ERROR_CANT_WAIT = 554 ; Used to indicate that an operation cannot continue without blocking for I/O. -Global Const $ERROR_CANT_TERMINATE_SELF = 555 ; Indicates that a thread attempted to terminate itself by default (called NtTerminateThread with NULL) and it was the last thread in the current process. -Global Const $ERROR_UNEXPECTED_MM_CREATE_ERR = 556 ; If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter. In this case information is lost, however, the filter correctly handles the exception. -Global Const $ERROR_UNEXPECTED_MM_MAP_ERROR = 557 ; If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter. In this case information is lost, however, the filter correctly handles the exception. -Global Const $ERROR_UNEXPECTED_MM_EXTEND_ERR = 558 ; If an MM error is returned which is not defined in the standard FsRtl filter, it is converted to one of the following errors which is guaranteed to be in the filter. In this case information is lost, however, the filter correctly handles the exception. -Global Const $ERROR_BAD_FUNCTION_TABLE = 559 ; A malformed function table was encountered during an unwind operation. -Global Const $ERROR_NO_GUID_TRANSLATION = 560 ; Indicates that an attempt was made to assign protection to a file system file or directory and one of the SIDs in the security descriptor could not be translated into a GUID that could be stored by the file system. This causes the protection attempt to fail, which may cause a file creation attempt to fail. -Global Const $ERROR_INVALID_LDT_SIZE = 561 ; Indicates that an attempt was made to grow an LDT by setting its size, or that the size was not an even number of selectors. -Global Const $ERROR_INVALID_LDT_OFFSET = 563 ; Indicates that the starting value for the LDT information was not an integral multiple of the selector size. -Global Const $ERROR_INVALID_LDT_DESCRIPTOR = 564 ; Indicates that the user supplied an invalid descriptor when trying to set up Ldt descriptors. -Global Const $ERROR_TOO_MANY_THREADS = 565 ; Indicates a process has too many threads to perform the requested action. For example, assignment of a primary token may only be performed when a process has zero or one threads. -Global Const $ERROR_THREAD_NOT_IN_PROCESS = 566 ; An attempt was made to operate on a thread within a specific process, but the thread specified is not in the process specified. -Global Const $ERROR_PAGEFILE_QUOTA_EXCEEDED = 567 ; Page file quota was exceeded. -Global Const $ERROR_LOGON_SERVER_CONFLICT = 568 ; The Netlogon service cannot start because another Netlogon service running in the domain conflicts with the specified role. -Global Const $ERROR_SYNCHRONIZATION_REQUIRED = 569 ; The SAM database on a Windows Server is significantly out of synchronization with the copy on the Domain Controller. A complete synchronization is required. -Global Const $ERROR_NET_OPEN_FAILED = 570 ; The NtCreateFile API failed. This error should never be returned to an application, it is a place holder for the Windows Lan Manager Redirector to use in its internal error mapping routines. -Global Const $ERROR_IO_PRIVILEGE_FAILED = 571 ; {Privilege Failed} The I/O permissions for the process could not be changed. -Global Const $ERROR_CONTROL_C_EXIT = 572 ; {Application Exit by CTRL+C} The application terminated as a result of a CTRL+C. -Global Const $ERROR_MISSING_SYSTEMFILE = 573 ; {Missing System File} The required system file %hs is bad or missing. -Global Const $ERROR_UNHANDLED_EXCEPTION = 574 ; {Application Error} The exception %s (0x%08lx) occurred in the application at location 0x%08lx. -Global Const $ERROR_APP_INIT_FAILURE = 575 ; {Application Error} The application failed to initialize properly (0x%lx). Click OK to terminate the application. -Global Const $ERROR_PAGEFILE_CREATE_FAILED = 576 ; {Unable to Create Paging File} The creation of the paging file %hs failed (%lx). The requested size was %ld. -Global Const $ERROR_INVALID_IMAGE_HASH = 577 ; Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. -Global Const $ERROR_NO_PAGEFILE = 578 ; {No Paging File Specified} No paging file was specified in the system configuration. -Global Const $ERROR_ILLEGAL_FLOAT_CONTEXT = 579 ; {EXCEPTION} A real-mode application issued a floating-point instruction and floating-point hardware is not present. -Global Const $ERROR_NO_EVENT_PAIR = 580 ; An event pair synchronization operation was performed using the thread specific client/server event pair object, but no event pair object was associated with the thread. -Global Const $ERROR_DOMAIN_CTRLR_CONFIG_ERROR = 581 ; A Windows Server has an incorrect configuration. -Global Const $ERROR_ILLEGAL_CHARACTER = 582 ; An illegal character was encountered. For a multi-byte character set this includes a lead byte without a succeeding trail byte. For the Unicode character set this includes the characters 0xFFFF and 0xFFFE. -Global Const $ERROR_UNDEFINED_CHARACTER = 583 ; The Unicode character is not defined in the Unicode character set installed on the system. -Global Const $ERROR_FLOPPY_VOLUME = 584 ; The paging file cannot be created on a floppy diskette. -Global Const $ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT = 585 ; The system BIOS failed to connect a system interrupt to the device or bus for which the device is connected. -Global Const $ERROR_BACKUP_CONTROLLER = 586 ; This operation is only allowed for the Primary Domain Controller of the domain. -Global Const $ERROR_MUTANT_LIMIT_EXCEEDED = 587 ; An attempt was made to acquire a mutant such that its maximum count would have been exceeded. -Global Const $ERROR_FS_DRIVER_REQUIRED = 588 ; A volume has been accessed for which a file system driver is required that has not yet been loaded. -Global Const $ERROR_CANNOT_LOAD_REGISTRY_FILE = 589 ; {Registry File Failure} The registry cannot load the hive (file): %hs or its log or alternate. It is corrupt, absent, or not writable. -Global Const $ERROR_DEBUG_ATTACH_FAILED = 590 ; {Unexpected Failure in DebugActiveProcess} An unexpected failure occurred while processing a DebugActiveProcess API request. You may choose OK to terminate the process, or Cancel to ignore the error. -Global Const $ERROR_SYSTEM_PROCESS_TERMINATED = 591 ; {Fatal System Error} The %hs system process terminated unexpectedly with a status of 0x%08x (0x%08x 0x%08x). The system has been shut down. -Global Const $ERROR_DATA_NOT_ACCEPTED = 592 ; {Data Not Accepted} The TDI client could not handle the data received during an indication. -Global Const $ERROR_VDM_HARD_ERROR = 593 ; NTVDM encountered a hard error. -Global Const $ERROR_DRIVER_CANCEL_TIMEOUT = 594 ; {Cancel Timeout} The driver %hs failed to complete a canceled I/O request in the allotted time. -Global Const $ERROR_REPLY_MESSAGE_MISMATCH = 595 ; {Reply Message Mismatch} An attempt was made to reply to an LPC message, but the thread specified by the client ID in the message was not waiting on that message. -Global Const $ERROR_LOST_WRITEBEHIND_DATA = 596 ; {Delayed Write Failed} Windows was unable to save all the data for the file %hs. The data has been lost. This error may be caused by a failure of your computer hardware or network connection. Please try to save this file elsewhere. -Global Const $ERROR_CLIENT_SERVER_PARAMETERS_INVALID = 597 ; The parameter(s) passed to the server in the client/server shared memory window were invalid. Too much data may have been put in the shared memory window. -Global Const $ERROR_NOT_TINY_STREAM = 598 ; The stream is not a tiny stream. -Global Const $ERROR_STACK_OVERFLOW_READ = 599 ; The request must be handled by the stack overflow code. -Global Const $ERROR_CONVERT_TO_LARGE = 600 ; Internal OFS status codes indicating how an allocation operation is handled. Either it is retried after the containing node is moved or the extent stream is converted to a large stream. -Global Const $ERROR_FOUND_OUT_OF_SCOPE = 601 ; The attempt to find the object found an object matching by ID on the volume but it is out of the scope of the handle used for the operation. -Global Const $ERROR_ALLOCATE_BUCKET = 602 ; The bucket array must be grown. Retry transaction after doing so. -Global Const $ERROR_MARSHALL_OVERFLOW = 603 ; The user/kernel marshalling buffer has overflowed. -Global Const $ERROR_INVALID_VARIANT = 604 ; The supplied variant structure contains invalid data. -Global Const $ERROR_BAD_COMPRESSION_BUFFER = 605 ; The specified buffer contains ill-formed data. -Global Const $ERROR_AUDIT_FAILED = 606 ; {Audit Failed} An attempt to generate a security audit failed. -Global Const $ERROR_TIMER_RESOLUTION_NOT_SET = 607 ; The timer resolution was not previously set by the current process. -Global Const $ERROR_INSUFFICIENT_LOGON_INFO = 608 ; There is insufficient account information to log you on. -Global Const $ERROR_BAD_DLL_ENTRYPOINT = 609 ; {Invalid DLL Entry point} The dynamic link library %hs is not written correctly. The stack pointer has been left in an inconsistent state. The entry point should be declared as WINAPI or STDCALL. Select YES to fail the DLL load. Select NO to continue execution. Selecting NO may cause the application to operate incorrectly. -Global Const $ERROR_BAD_SERVICE_ENTRYPOINT = 610 ; {Invalid Service Callback Entry point} The %hs service is not written correctly. The stack pointer has been left in an inconsistent state. The callback entry point should be declared as WINAPI or STDCALL. Selecting OK will cause the service to continue operation. However, the service process may operate incorrectly. -Global Const $ERROR_IP_ADDRESS_CONFLICT1 = 611 ; There is an IP address conflict with another system on the network. -Global Const $ERROR_IP_ADDRESS_CONFLICT2 = 612 ; There is an IP address conflict with another system on the network. -Global Const $ERROR_REGISTRY_QUOTA_LIMIT = 613 ; {Low On Registry Space} The system has reached the maximum size allowed for the system part of the registry. Additional storage requests will be ignored. -Global Const $ERROR_NO_CALLBACK_ACTIVE = 614 ; A callback return system service cannot be executed when no callback is active. -Global Const $ERROR_PWD_TOO_SHORT = 615 ; The password provided is too short to meet the policy of your user account. Please choose a longer password. -Global Const $ERROR_PWD_TOO_RECENT = 616 ; The policy of your user account does not allow you to change passwords too frequently. This is done to prevent users from changing back to a familiar, but potentially discovered, password. If you feel your password has been compromised then please contact your administrator immediately to have a new one assigned. -Global Const $ERROR_PWD_HISTORY_CONFLICT = 617 ; You have attempted to change your password to one that you have used in the past. The policy of your user account does not allow this. Please select a password that you have not previously used. -Global Const $ERROR_UNSUPPORTED_COMPRESSION = 618 ; The specified compression format is unsupported. -Global Const $ERROR_INVALID_HW_PROFILE = 619 ; The specified hardware profile configuration is invalid. -Global Const $ERROR_INVALID_PLUGPLAY_DEVICE_PATH = 620 ; The specified Plug and Play registry device path is invalid. -Global Const $ERROR_QUOTA_LIST_INCONSISTENT = 621 ; The specified quota list is internally inconsistent with its descriptor. -Global Const $ERROR_EVALUATION_EXPIRATION = 622 ; {Windows Evaluation Notification} The evaluation period for this installation of Windows has expired. This system will shutdown in 1 hour. To restore access to this installation of Windows, please upgrade this installation using a licensed distribution of this product. -Global Const $ERROR_ILLEGAL_DLL_RELOCATION = 623 ; {Illegal System DLL Relocation} The system DLL %hs was relocated in memory. The application will not run properly. The relocation occurred because the DLL %hs occupied an address range reserved for Windows system DLLs. The vendor supplying the DLL should be contacted for a new DLL. -Global Const $ERROR_DLL_INIT_FAILED_LOGOFF = 624 ; {DLL Initialization Failed} The application failed to initialize because the window station is shutting down. -Global Const $ERROR_VALIDATE_CONTINUE = 625 ; The validation process needs to continue on to the next step. -Global Const $ERROR_NO_MORE_MATCHES = 626 ; There are no more matches for the current index enumeration. -Global Const $ERROR_RANGE_LIST_CONFLICT = 627 ; The range could not be added to the range list because of a conflict. -Global Const $ERROR_SERVER_SID_MISMATCH = 628 ; The server process is running under a SID different than that required by client. -Global Const $ERROR_CANT_ENABLE_DENY_ONLY = 629 ; A group marked use for deny only cannot be enabled. -Global Const $ERROR_FLOAT_MULTIPLE_FAULTS = 630 ; {EXCEPTION} Multiple floating point faults. -Global Const $ERROR_FLOAT_MULTIPLE_TRAPS = 631 ; {EXCEPTION} Multiple floating point traps. -Global Const $ERROR_NOINTERFACE = 632 ; The requested interface is not supported. -Global Const $ERROR_DRIVER_FAILED_SLEEP = 633 ; {System Standby Failed} The driver %hs does not support standby mode. Updating this driver may allow the system to go to standby mode. -Global Const $ERROR_CORRUPT_SYSTEM_FILE = 634 ; The system file %1 has become corrupt and has been replaced. -Global Const $ERROR_COMMITMENT_MINIMUM = 635 ; {Virtual Memory Minimum Too Low} Your system is low on virtual memory. Windows is increasing the size of your virtual memory paging file. During this process, memory requests for some applications may be denied. For more information, see Help. -Global Const $ERROR_PNP_RESTART_ENUMERATION = 636 ; A device was removed so enumeration must be restarted. -Global Const $ERROR_SYSTEM_IMAGE_BAD_SIGNATURE = 637 ; {Fatal System Error} The system image %s is not properly signed. The file has been replaced with the signed file. The system has been shut down. -Global Const $ERROR_PNP_REBOOT_REQUIRED = 638 ; Device will not start without a reboot. -Global Const $ERROR_INSUFFICIENT_POWER = 639 ; There is not enough power to complete the requested operation. -Global Const $ERROR_MULTIPLE_FAULT_VIOLATION = 640 ; ERROR_MULTIPLE_FAULT_VIOLATION -Global Const $ERROR_SYSTEM_SHUTDOWN = 641 ; The system is in the process of shutting down. -Global Const $ERROR_PORT_NOT_SET = 642 ; An attempt to remove a processes DebugPort was made, but a port was not already associated with the process. -Global Const $ERROR_DS_VERSION_CHECK_FAILURE = 643 ; This version of Windows is not compatible with the behavior version of directory forest, domain or domain controller. -Global Const $ERROR_RANGE_NOT_FOUND = 644 ; The specified range could not be found in the range list. -Global Const $ERROR_NOT_SAFE_MODE_DRIVER = 646 ; The driver was not loaded because the system is booting into safe mode. -Global Const $ERROR_FAILED_DRIVER_ENTRY = 647 ; The driver was not loaded because it failed it's initialization call. -Global Const $ERROR_DEVICE_ENUMERATION_ERROR = 648 ; The "%hs" encountered an error while applying power or reading the device configuration. This may be caused by a failure of your hardware or by a poor connection. -Global Const $ERROR_MOUNT_POINT_NOT_RESOLVED = 649 ; The create operation failed because the name contained at least one mount point which resolves to a volume to which the specified device object is not attached. -Global Const $ERROR_INVALID_DEVICE_OBJECT_PARAMETER = 650 ; The device object parameter is either not a valid device object or is not attached to the volume specified by the file name. -Global Const $ERROR_MCA_OCCURED = 651 ; A Machine Check Error has occurred. Please check the system event log for additional information. -Global Const $ERROR_DRIVER_DATABASE_ERROR = 652 ; There was error [%2] processing the driver database. -Global Const $ERROR_SYSTEM_HIVE_TOO_LARGE = 653 ; System hive size has exceeded its limit. -Global Const $ERROR_DRIVER_FAILED_PRIOR_UNLOAD = 654 ; The driver could not be loaded because a previous version of the driver is still in memory. -Global Const $ERROR_VOLSNAP_PREPARE_HIBERNATE = 655 ; {Volume Shadow Copy Service} Please wait while the Volume Shadow Copy Service prepares volume %hs for hibernation. -Global Const $ERROR_HIBERNATION_FAILURE = 656 ; The system has failed to hibernate (The error code is %hs). Hibernation will be disabled until the system is restarted. -Global Const $ERROR_FILE_SYSTEM_LIMITATION = 665 ; The requested operation could not be completed due to a file system limitation. -Global Const $ERROR_ASSERTION_FAILURE = 668 ; An assertion failure has occurred. -Global Const $ERROR_ACPI_ERROR = 669 ; An error occurred in the ACPI subsystem. -Global Const $ERROR_WOW_ASSERTION = 670 ; WOW Assertion Error. -Global Const $ERROR_PNP_BAD_MPS_TABLE = 671 ; A device is missing in the system BIOS MPS table. This device will not be used. Please contact your system vendor for system BIOS update. -Global Const $ERROR_PNP_TRANSLATION_FAILED = 672 ; A translator failed to translate resources. -Global Const $ERROR_PNP_IRQ_TRANSLATION_FAILED = 673 ; A IRQ translator failed to translate resources. -Global Const $ERROR_PNP_INVALID_ID = 674 ; Driver %2 returned invalid ID for a child device (%3). -Global Const $ERROR_WAKE_SYSTEM_DEBUGGER = 675 ; {Kernel Debugger Awakened} the system debugger was awakened by an interrupt. -Global Const $ERROR_HANDLES_CLOSED = 676 ; {Handles Closed} Handles to objects have been automatically closed as a result of the requested operation. -Global Const $ERROR_EXTRANEOUS_INFORMATION = 677 ; {Too Much Information} The specified access control list (ACL) contained more information than was expected. -Global Const $ERROR_RXACT_COMMIT_NECESSARY = 678 ; This warning level status indicates that the transaction state already exists for the registry sub-tree, but that a transaction commit was previously aborted. The commit has NOT been completed, but has not been rolled back either (so it may still be committed if desired). -Global Const $ERROR_MEDIA_CHECK = 679 ; {Media Changed} The media may have changed. -Global Const $ERROR_GUID_SUBSTITUTION_MADE = 680 ; {GUID Substitution} During the translation of a global identifier (GUID) to a Windows security ID (SID), no administratively-defined GUID prefix was found. A substitute prefix was used, which will not compromise system security. However, this may provide a more restrictive access than intended. -Global Const $ERROR_STOPPED_ON_SYMLINK = 681 ; The create operation stopped after reaching a symbolic link. -Global Const $ERROR_LONGJUMP = 682 ; A long jump has been executed. -Global Const $ERROR_PLUGPLAY_QUERY_VETOED = 683 ; The Plug and Play query operation was not successful. -Global Const $ERROR_UNWIND_CONSOLIDATE = 684 ; A frame consolidation has been executed. -Global Const $ERROR_REGISTRY_HIVE_RECOVERED = 685 ; {Registry Hive Recovered} Registry hive (file): %hs was corrupted and it has been recovered. Some data might have been lost. -Global Const $ERROR_DLL_MIGHT_BE_INSECURE = 686 ; The application is attempting to run executable code from the module %hs. This may be insecure. An alternative, %hs, is available. Should the application use the secure module %hs? -Global Const $ERROR_DLL_MIGHT_BE_INCOMPATIBLE = 687 ; The application is loading executable code from the module %hs. This is secure, but may be incompatible with previous releases of the operating system. An alternative, %hs, is available. Should the application use the secure module %hs? -Global Const $ERROR_DBG_EXCEPTION_NOT_HANDLED = 688 ; Debugger did not handle the exception. -Global Const $ERROR_DBG_REPLY_LATER = 689 ; Debugger will reply later. -Global Const $ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE = 690 ; Debugger cannot provide handle. -Global Const $ERROR_DBG_TERMINATE_THREAD = 691 ; Debugger terminated thread. -Global Const $ERROR_DBG_TERMINATE_PROCESS = 692 ; Debugger terminated process. -Global Const $ERROR_DBG_CONTROL_C = 693 ; Debugger got control C. -Global Const $ERROR_DBG_PRINTEXCEPTION_C = 694 ; Debugger printed exception on control C. -Global Const $ERROR_DBG_RIPEXCEPTION = 695 ; Debugger received RIP exception. -Global Const $ERROR_DBG_CONTROL_BREAK = 696 ; Debugger received control break. -Global Const $ERROR_DBG_COMMAND_EXCEPTION = 697 ; Debugger command communication exception. -Global Const $ERROR_OBJECT_NAME_EXISTS = 698 ; {Object Exists} An attempt was made to create an object and the object name already existed. -Global Const $ERROR_THREAD_WAS_SUSPENDED = 699 ; {Thread Suspended} A thread termination occurred while the thread was suspended. The thread was resumed, and termination proceeded. -Global Const $ERROR_IMAGE_NOT_AT_BASE = 700 ; {Image Relocated} An image file could not be mapped at the address specified in the image file. Local fixups must be performed on this image. -Global Const $ERROR_RXACT_STATE_CREATED = 701 ; This informational level status indicates that a specified registry sub-tree transaction state did not yet exist and had to be created. -Global Const $ERROR_SEGMENT_NOTIFICATION = 702 ; {Segment Load} A virtual DOS machine (VDM) is loading, unloading, or moving an MS-DOS or Win16 program segment image. An exception is raised so a debugger can load, unload or track symbols and breakpoints within these 16-bit segments. -Global Const $ERROR_BAD_CURRENT_DIRECTORY = 703 ; {Invalid Current Directory} The process cannot switch to the startup current directory %hs. Select OK to set current directory to %hs, or select CANCEL to exit. -Global Const $ERROR_FT_READ_RECOVERY_FROM_BACKUP = 704 ; {Redundant Read} To satisfy a read request, the NT fault-tolerant file system successfully read the requested data from a redundant copy. This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was unable to reassign the failing area of the device. -Global Const $ERROR_FT_WRITE_RECOVERY = 705 ; {Redundant Write} To satisfy a write request, the NT fault-tolerant file system successfully wrote a redundant copy of the information. This was done because the file system encountered a failure on a member of the fault-tolerant volume, but was not able to reassign the failing area of the device. -Global Const $ERROR_IMAGE_MACHINE_TYPE_MISMATCH = 706 ; {Machine Type Mismatch} The image file %hs is valid, but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. -Global Const $ERROR_RECEIVE_PARTIAL = 707 ; {Partial Data Received} The network transport returned partial data to its client. The remaining data will be sent later. -Global Const $ERROR_RECEIVE_EXPEDITED = 708 ; {Expedited Data Received} The network transport returned data to its client that was marked as expedited by the remote system. -Global Const $ERROR_RECEIVE_PARTIAL_EXPEDITED = 709 ; {Partial Expedited Data Received} The network transport returned partial data to its client and this data was marked as expedited by the remote system. The remaining data will be sent later. -Global Const $ERROR_EVENT_DONE = 710 ; {TDI Event Done} The TDI indication has completed successfully. -Global Const $ERROR_EVENT_PENDING = 711 ; {TDI Event Pending} The TDI indication has entered the pending state. -Global Const $ERROR_CHECKING_FILE_SYSTEM = 712 ; Checking file system on %wZ -Global Const $ERROR_FATAL_APP_EXIT = 713 ; {Fatal Application Exit} %hs -Global Const $ERROR_PREDEFINED_HANDLE = 714 ; The specified registry key is referenced by a predefined handle. -Global Const $ERROR_WAS_UNLOCKED = 715 ; {Page Unlocked} The page protection of a locked page was changed to 'No Access' and the page was unlocked from memory and from the process. -Global Const $ERROR_SERVICE_NOTIFICATION = 716 ; %hs -Global Const $ERROR_WAS_LOCKED = 717 ; {Page Locked} One of the pages to lock was already locked. -Global Const $ERROR_LOG_HARD_ERROR = 718 ; Application popup: %1 : %2 -Global Const $ERROR_ALREADY_WIN32 = 719 ; ERROR_ALREADY_WIN32 -Global Const $ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE = 720 ; {Machine Type Mismatch} The image file %hs is valid, but is for a machine type other than the current machine. -Global Const $ERROR_NO_YIELD_PERFORMED = 721 ; A yield execution was performed and no thread was available to run. -Global Const $ERROR_TIMER_RESUME_IGNORED = 722 ; The resumable flag to a timer API was ignored. -Global Const $ERROR_ARBITRATION_UNHANDLED = 723 ; The arbiter has deferred arbitration of these resources to its parent. -Global Const $ERROR_CARDBUS_NOT_SUPPORTED = 724 ; The inserted CardBus device cannot be started because of a configuration error on "%hs". -Global Const $ERROR_MP_PROCESSOR_MISMATCH = 725 ; The CPUs in this multiprocessor system are not all the same revision level. To use all processors the operating system restricts itself to the features of the least capable processor in the system. Should problems occur with this system, contact the CPU manufacturer to see if this mix of processors is supported. -Global Const $ERROR_HIBERNATED = 726 ; The system was put into hibernation. -Global Const $ERROR_RESUME_HIBERNATION = 727 ; The system was resumed from hibernation. -Global Const $ERROR_FIRMWARE_UPDATED = 728 ; Windows has detected that the system firmware (BIOS) was updated [previous firmware date = %2, current firmware date %3]. -Global Const $ERROR_DRIVERS_LEAKING_LOCKED_PAGES = 729 ; A device driver is leaking locked I/O pages causing system degradation. The system has automatically enabled tracking code in order to try and catch the culprit. -Global Const $ERROR_WAKE_SYSTEM = 730 ; The system has awoken. -Global Const $ERROR_WAIT_1 = 731 ; ERROR_WAIT_1 -Global Const $ERROR_WAIT_2 = 732 ; ERROR_WAIT_2 -Global Const $ERROR_WAIT_3 = 733 ; ERROR_WAIT_3 -Global Const $ERROR_WAIT_63 = 734 ; ERROR_WAIT_63 -Global Const $ERROR_ABANDONED_WAIT_0 = 735 ; ERROR_ABANDONED_WAIT_0 -Global Const $ERROR_ABANDONED_WAIT_63 = 736 ; ERROR_ABANDONED_WAIT_63 -Global Const $ERROR_USER_APC = 737 ; ERROR_USER_APC -Global Const $ERROR_KERNEL_APC = 738 ; ERROR_KERNEL_APC -Global Const $ERROR_ALERTED = 739 ; ERROR_ALERTED -Global Const $ERROR_ELEVATION_REQUIRED = 740 ; The requested operation requires elevation. -Global Const $ERROR_REPARSE = 741 ; A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link. -Global Const $ERROR_OPLOCK_BREAK_IN_PROGRESS = 742 ; An open/create operation completed while an oplock break is underway. -Global Const $ERROR_VOLUME_MOUNTED = 743 ; A new volume has been mounted by a file system. -Global Const $ERROR_RXACT_COMMITTED = 744 ; This success level status indicates that the transaction state already exists for the registry sub-tree, but that a transaction commit was previously aborted. The commit has now been completed. -Global Const $ERROR_NOTIFY_CLEANUP = 745 ; This indicates that a notify change request has been completed due to closing the handle which made the notify change request. -Global Const $ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED = 746 ; {Connect Failure on Primary Transport} An attempt was made to connect to the remote server %hs on the primary transport, but the connection failed. The computer WAS able to connect on a secondary transport. -Global Const $ERROR_PAGE_FAULT_TRANSITION = 747 ; Page fault was a transition fault. -Global Const $ERROR_PAGE_FAULT_DEMAND_ZERO = 748 ; Page fault was a demand zero fault. -Global Const $ERROR_PAGE_FAULT_COPY_ON_WRITE = 749 ; Page fault was a demand zero fault. -Global Const $ERROR_PAGE_FAULT_GUARD_PAGE = 750 ; Page fault was a demand zero fault. -Global Const $ERROR_PAGE_FAULT_PAGING_FILE = 751 ; Page fault was satisfied by reading from a secondary storage device. -Global Const $ERROR_CACHE_PAGE_LOCKED = 752 ; Cached page was locked during operation. -Global Const $ERROR_CRASH_DUMP = 753 ; Crash dump exists in paging file. -Global Const $ERROR_BUFFER_ALL_ZEROS = 754 ; Specified buffer contains all zeros. -Global Const $ERROR_REPARSE_OBJECT = 755 ; A reparse should be performed by the Object Manager since the name of the file resulted in a symbolic link. -Global Const $ERROR_RESOURCE_REQUIREMENTS_CHANGED = 756 ; The device has succeeded a query-stop and its resource requirements have changed. -Global Const $ERROR_TRANSLATION_COMPLETE = 757 ; The translator has translated these resources into the global space and no further translations should be performed. -Global Const $ERROR_NOTHING_TO_TERMINATE = 758 ; A process being terminated has no threads to terminate. -Global Const $ERROR_PROCESS_NOT_IN_JOB = 759 ; The specified process is not part of a job. -Global Const $ERROR_PROCESS_IN_JOB = 760 ; The specified process is part of a job. -Global Const $ERROR_VOLSNAP_HIBERNATE_READY = 761 ; {Volume Shadow Copy Service} The system is now ready for hibernation. -Global Const $ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY = 762 ; A file system or file system filter driver has successfully completed an FsFilter operation. -Global Const $ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED = 763 ; The specified interrupt vector was already connected. -Global Const $ERROR_INTERRUPT_STILL_CONNECTED = 764 ; The specified interrupt vector is still connected. -Global Const $ERROR_WAIT_FOR_OPLOCK = 765 ; An operation is blocked waiting for an oplock. -Global Const $ERROR_DBG_EXCEPTION_HANDLED = 766 ; Debugger handled exception. -Global Const $ERROR_DBG_CONTINUE = 767 ; Debugger continued. -Global Const $ERROR_CALLBACK_POP_STACK = 768 ; An exception occurred in a user mode callback and the kernel callback frame should be removed. -Global Const $ERROR_COMPRESSION_DISABLED = 769 ; Compression is disabled for this volume. -Global Const $ERROR_CANTFETCHBACKWARDS = 770 ; The data provider cannot fetch backwards through a result set. -Global Const $ERROR_CANTSCROLLBACKWARDS = 771 ; The data provider cannot scroll backwards through a result set. -Global Const $ERROR_ROWSNOTRELEASED = 772 ; The data provider requires that previously fetched data is released before asking for more data. -Global Const $ERROR_BAD_ACCESSOR_FLAGS = 773 ; The data provider was not able to interpret the flags set for a column binding in an accessor. -Global Const $ERROR_ERRORS_ENCOUNTERED = 774 ; One or more errors occurred while processing the request. -Global Const $ERROR_NOT_CAPABLE = 775 ; The implementation is not capable of performing the request. -Global Const $ERROR_REQUEST_OUT_OF_SEQUENCE = 776 ; The client of a component requested an operation which is not valid given the state of the component instance. -Global Const $ERROR_VERSION_PARSE_ERROR = 777 ; A version number could not be parsed. -Global Const $ERROR_BADSTARTPOSITION = 778 ; The iterator's start position is invalid. -Global Const $ERROR_MEMORY_HARDWARE = 779 ; The hardware has reported an uncorrectable memory error. -Global Const $ERROR_DISK_REPAIR_DISABLED = 780 ; The attempted operation required self healing to be enabled. -Global Const $ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE = 781 ; The Desktop heap encountered an error while allocating session memory. There is more information in the system event log. -Global Const $ERROR_SYSTEM_POWERSTATE_TRANSITION = 782 ; The system power state is transitioning from %2 to %3. -Global Const $ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION = 783 ; The system power state is transitioning from %2 to %3 but could enter %4. -Global Const $ERROR_MCA_EXCEPTION = 784 ; A thread is getting dispatched with MCA EXCEPTION because of MCA. -Global Const $ERROR_ACCESS_AUDIT_BY_POLICY = 785 ; Access to %1 is monitored by policy rule %2. -Global Const $ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY = 786 ; Access to %1 has been restricted by your Administrator by policy rule %2. -Global Const $ERROR_ABANDON_HIBERFILE = 787 ; A valid hibernation file has been invalidated and should be abandoned. -Global Const $ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED = 788 ; {Delayed Write Failed} Windows was unable to save all the data for the file %hs; the data has been lost. This error may be caused by network connectivity issues. Please try to save this file elsewhere. -Global Const $ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR = 789 ; {Delayed Write Failed} Windows was unable to save all the data for the file %hs; the data has been lost. This error was returned by the server on which the file exists. Please try to save this file elsewhere. -Global Const $ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR = 790 ; {Delayed Write Failed} Windows was unable to save all the data for the file %hs; the data has been lost. This error may be caused if the device has been removed or the media is write-protected. -Global Const $ERROR_BAD_MCFG_TABLE = 791 ; The resources required for this device conflict with the MCFG table. -Global Const $ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE = 800 ; The oplock that was associated with this handle is now associated with a different handle. -Global Const $ERROR_CANNOT_GRANT_REQUESTED_OPLOCK = 801 ; An oplock of the requested level cannot be granted. An oplock of a lower level may be available. -Global Const $ERROR_CANNOT_BREAK_OPLOCK = 802 ; The operation did not complete successfully because it would cause an oplock to be broken. The caller has requested that existing oplocks not be broken. -Global Const $ERROR_OPLOCK_HANDLE_CLOSED = 803 ; The handle with which this oplock was associated has been closed. The oplock is now broken. -Global Const $ERROR_NO_ACE_CONDITION = 804 ; The specified access control entry (ACE) does not contain a condition. -Global Const $ERROR_INVALID_ACE_CONDITION = 805 ; The specified access control entry (ACE) contains an invalid condition. -Global Const $ERROR_EA_ACCESS_DENIED = 994 ; Access to the extended attribute was denied. -Global Const $ERROR_OPERATION_ABORTED = 995 ; The I/O operation has been aborted because of either a thread exit or an application request. -Global Const $ERROR_IO_INCOMPLETE = 996 ; Overlapped I/O event is not in a signaled state. -Global Const $ERROR_IO_PENDING = 997 ; Overlapped I/O operation is in progress. -Global Const $ERROR_NOACCESS = 998 ; Invalid access to memory location. -Global Const $ERROR_SWAPERROR = 999 ; Error performing inpage operation. -Global Const $ERROR_STACK_OVERFLOW = 1001 ; Recursion too deep; the stack overflowed. -Global Const $ERROR_INVALID_MESSAGE = 1002 ; The window cannot act on the sent message. -Global Const $ERROR_CAN_NOT_COMPLETE = 1003 ; Cannot complete this function. -Global Const $ERROR_INVALID_FLAGS = 1004 ; Invalid flags. -Global Const $ERROR_UNRECOGNIZED_VOLUME = 1005 ; The volume does not contain a recognized file system. Please make sure that all required file system drivers are loaded and that the volume is not corrupted. -Global Const $ERROR_FILE_INVALID = 1006 ; The volume for a file has been externally altered so that the opened file is no longer valid. -Global Const $ERROR_FULLSCREEN_MODE = 1007 ; The requested operation cannot be performed in full-screen mode. -Global Const $ERROR_NO_TOKEN = 1008 ; An attempt was made to reference a token that does not exist. -Global Const $ERROR_BADDB = 1009 ; The configuration registry database is corrupt. -Global Const $ERROR_BADKEY = 1010 ; The configuration registry key is invalid. -Global Const $ERROR_CANTOPEN = 1011 ; The configuration registry key could not be opened. -Global Const $ERROR_CANTREAD = 1012 ; The configuration registry key could not be read. -Global Const $ERROR_CANTWRITE = 1013 ; The configuration registry key could not be written. -Global Const $ERROR_REGISTRY_RECOVERED = 1014 ; One of the files in the registry database had to be recovered by use of a log or alternate copy. The recovery was successful. -Global Const $ERROR_REGISTRY_CORRUPT = 1015 ; The registry is corrupted. The structure of one of the files containing registry data is corrupted, or the system's memory image of the file is corrupted, or the file could not be recovered because the alternate copy or log was absent or corrupted. -Global Const $ERROR_REGISTRY_IO_FAILED = 1016 ; An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system's image of the registry. -Global Const $ERROR_NOT_REGISTRY_FILE = 1017 ; The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format. -Global Const $ERROR_KEY_DELETED = 1018 ; Illegal operation attempted on a registry key that has been marked for deletion. -Global Const $ERROR_NO_LOG_SPACE = 1019 ; System could not allocate the required space in a registry log. -Global Const $ERROR_KEY_HAS_CHILDREN = 1020 ; Cannot create a symbolic link in a registry key that already has subkeys or values. -Global Const $ERROR_CHILD_MUST_BE_VOLATILE = 1021 ; Cannot create a stable subkey under a volatile parent key. -Global Const $ERROR_NOTIFY_ENUM_DIR = 1022 ; A notify change request is being completed and the information is not being returned in the caller's buffer. The caller now needs to enumerate the files to find the changes. -Global Const $ERROR_DEPENDENT_SERVICES_RUNNING = 1051 ; A stop control has been sent to a service that other running services are dependent on. -Global Const $ERROR_INVALID_SERVICE_CONTROL = 1052 ; The requested control is not valid for this service. -Global Const $ERROR_SERVICE_REQUEST_TIMEOUT = 1053 ; The service did not respond to the start or control request in a timely fashion. -Global Const $ERROR_SERVICE_NO_THREAD = 1054 ; A thread could not be created for the service. -Global Const $ERROR_SERVICE_DATABASE_LOCKED = 1055 ; The service database is locked. -Global Const $ERROR_SERVICE_ALREADY_RUNNING = 1056 ; An instance of the service is already running. -Global Const $ERROR_INVALID_SERVICE_ACCOUNT = 1057 ; The account name is invalid or does not exist, or the password is invalid for the account name specified. -Global Const $ERROR_SERVICE_DISABLED = 1058 ; The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. -Global Const $ERROR_CIRCULAR_DEPENDENCY = 1059 ; Circular service dependency was specified. -Global Const $ERROR_SERVICE_DOES_NOT_EXIST = 1060 ; The specified service does not exist as an installed service. -Global Const $ERROR_SERVICE_CANNOT_ACCEPT_CTRL = 1061 ; The service cannot accept control messages at this time. -Global Const $ERROR_SERVICE_NOT_ACTIVE = 1062 ; The service has not been started. -Global Const $ERROR_FAILED_SERVICE_CONTROLLER_CONNECT = 1063 ; The service process could not connect to the service controller. -Global Const $ERROR_EXCEPTION_IN_SERVICE = 1064 ; An exception occurred in the service when handling the control request. -Global Const $ERROR_DATABASE_DOES_NOT_EXIST = 1065 ; The database specified does not exist. -Global Const $ERROR_SERVICE_SPECIFIC_ERROR = 1066 ; The service has returned a service-specific error code. -Global Const $ERROR_PROCESS_ABORTED = 1067 ; The process terminated unexpectedly. -Global Const $ERROR_SERVICE_DEPENDENCY_FAIL = 1068 ; The dependency service or group failed to start. -Global Const $ERROR_SERVICE_LOGON_FAILED = 1069 ; The service did not start due to a logon failure. -Global Const $ERROR_SERVICE_START_HANG = 1070 ; After starting, the service hung in a start-pending state. -Global Const $ERROR_INVALID_SERVICE_LOCK = 1071 ; The specified service database lock is invalid. -Global Const $ERROR_SERVICE_MARKED_FOR_DELETE = 1072 ; The specified service has been marked for deletion. -Global Const $ERROR_SERVICE_EXISTS = 1073 ; The specified service already exists. -Global Const $ERROR_ALREADY_RUNNING_LKG = 1074 ; The system is currently running with the last-known-good configuration. -Global Const $ERROR_SERVICE_DEPENDENCY_DELETED = 1075 ; The dependency service does not exist or has been marked for deletion. -Global Const $ERROR_BOOT_ALREADY_ACCEPTED = 1076 ; The current boot has already been accepted for use as the last-known-good control set. -Global Const $ERROR_SERVICE_NEVER_STARTED = 1077 ; No attempts to start the service have been made since the last boot. -Global Const $ERROR_DUPLICATE_SERVICE_NAME = 1078 ; The name is already in use as either a service name or a service display name. -Global Const $ERROR_DIFFERENT_SERVICE_ACCOUNT = 1079 ; The account specified for this service is different from the account specified for other services running in the same process. -Global Const $ERROR_CANNOT_DETECT_DRIVER_FAILURE = 1080 ; Failure actions can only be set for Win32 services, not for drivers. -Global Const $ERROR_CANNOT_DETECT_PROCESS_ABORT = 1081 ; This service runs in the same process as the service control manager. Therefore, the service control manager cannot take action if this service's process terminates unexpectedly. -Global Const $ERROR_NO_RECOVERY_PROGRAM = 1082 ; No recovery program has been configured for this service. -Global Const $ERROR_SERVICE_NOT_IN_EXE = 1083 ; The executable program that this service is configured to run in does not implement the service. -Global Const $ERROR_NOT_SAFEBOOT_SERVICE = 1084 ; This service cannot be started in Safe Mode. -Global Const $ERROR_END_OF_MEDIA = 1100 ; The physical end of the tape has been reached. -Global Const $ERROR_FILEMARK_DETECTED = 1101 ; A tape access reached a filemark. -Global Const $ERROR_BEGINNING_OF_MEDIA = 1102 ; The beginning of the tape or a partition was encountered. -Global Const $ERROR_SETMARK_DETECTED = 1103 ; A tape access reached the end of a set of files. -Global Const $ERROR_NO_DATA_DETECTED = 1104 ; No more data is on the tape. -Global Const $ERROR_PARTITION_FAILURE = 1105 ; Tape could not be partitioned. -Global Const $ERROR_INVALID_BLOCK_LENGTH = 1106 ; When accessing a new tape of a multivolume partition, the current block size is incorrect. -Global Const $ERROR_DEVICE_NOT_PARTITIONED = 1107 ; Tape partition information could not be found when loading a tape. -Global Const $ERROR_UNABLE_TO_LOCK_MEDIA = 1108 ; Unable to lock the media eject mechanism. -Global Const $ERROR_UNABLE_TO_UNLOAD_MEDIA = 1109 ; Unable to unload the media. -Global Const $ERROR_MEDIA_CHANGED = 1110 ; The media in the drive may have changed. -Global Const $ERROR_BUS_RESET = 1111 ; The I/O bus was reset. -Global Const $ERROR_NO_MEDIA_IN_DRIVE = 1112 ; No media in drive. -Global Const $ERROR_NO_UNICODE_TRANSLATION = 1113 ; No mapping for the Unicode character exists in the target multi-byte code page. -Global Const $ERROR_DLL_INIT_FAILED = 1114 ; A dynamic link library (DLL) initialization routine failed. -Global Const $ERROR_SHUTDOWN_IN_PROGRESS = 1115 ; A system shutdown is in progress. -Global Const $ERROR_NO_SHUTDOWN_IN_PROGRESS = 1116 ; Unable to abort the system shutdown because no shutdown was in progress. -Global Const $ERROR_IO_DEVICE = 1117 ; The request could not be performed because of an I/O device error. -Global Const $ERROR_SERIAL_NO_DEVICE = 1118 ; No serial device was successfully initialized. The serial driver will unload. -Global Const $ERROR_IRQ_BUSY = 1119 ; Unable to open a device that was sharing an interrupt request (IRQ) with other devices. At least one other device that uses that IRQ was already opened. -Global Const $ERROR_MORE_WRITES = 1120 ; A serial I/O operation was completed by another write to the serial port. (The IOCTL_SERIAL_XOFF_COUNTER reached zero) -Global Const $ERROR_COUNTER_TIMEOUT = 1121 ; A serial I/O operation completed because the timeout period expired. (The IOCTL_SERIAL_XOFF_COUNTER did not reach zero) -Global Const $ERROR_FLOPPY_ID_MARK_NOT_FOUND = 1122 ; No ID address mark was found on the floppy disk. -Global Const $ERROR_FLOPPY_WRONG_CYLINDER = 1123 ; Mismatch between the floppy disk sector ID field and the floppy disk controller track address. -Global Const $ERROR_FLOPPY_UNKNOWN_ERROR = 1124 ; The floppy disk controller reported an error that is not recognized by the floppy disk driver. -Global Const $ERROR_FLOPPY_BAD_REGISTERS = 1125 ; The floppy disk controller returned inconsistent results in its registers. -Global Const $ERROR_DISK_RECALIBRATE_FAILED = 1126 ; While accessing the hard disk, a recalibrate operation failed, even after retries. -Global Const $ERROR_DISK_OPERATION_FAILED = 1127 ; While accessing the hard disk, a disk operation failed even after retries. -Global Const $ERROR_DISK_RESET_FAILED = 1128 ; While accessing the hard disk, a disk controller reset was needed, but even that failed. -Global Const $ERROR_EOM_OVERFLOW = 1129 ; Physical end of tape encountered. -Global Const $ERROR_NOT_ENOUGH_SERVER_MEMORY = 1130 ; Not enough server storage is available to process this command. -Global Const $ERROR_POSSIBLE_DEADLOCK = 1131 ; A potential deadlock condition has been detected. -Global Const $ERROR_MAPPED_ALIGNMENT = 1132 ; The base address or the file offset specified does not have the proper alignment. -Global Const $ERROR_SET_POWER_STATE_VETOED = 1140 ; An attempt to change the system power state was vetoed by another application or driver. -Global Const $ERROR_SET_POWER_STATE_FAILED = 1141 ; The system BIOS failed an attempt to change the system power state. -Global Const $ERROR_TOO_MANY_LINKS = 1142 ; An attempt was made to create more links on a file than the file system supports. -Global Const $ERROR_OLD_WIN_VERSION = 1150 ; The specified program requires a newer version of Windows. -Global Const $ERROR_APP_WRONG_OS = 1151 ; The specified program is not a Windows or MS-DOS program. -Global Const $ERROR_SINGLE_INSTANCE_APP = 1152 ; Cannot start more than one instance of the specified program. -Global Const $ERROR_RMODE_APP = 1153 ; The specified program was written for an earlier version of Windows. -Global Const $ERROR_INVALID_DLL = 1154 ; One of the library files needed to run this application is damaged. -Global Const $ERROR_NO_ASSOCIATION = 1155 ; No application is associated with the specified file for this operation. -Global Const $ERROR_DDE_FAIL = 1156 ; An error occurred in sending the command to the application. -Global Const $ERROR_DLL_NOT_FOUND = 1157 ; One of the library files needed to run this application cannot be found. -Global Const $ERROR_NO_MORE_USER_HANDLES = 1158 ; The current process has used all of its system allowance of handles for Window Manager objects. -Global Const $ERROR_MESSAGE_SYNC_ONLY = 1159 ; The message can be used only with synchronous operations. -Global Const $ERROR_SOURCE_ELEMENT_EMPTY = 1160 ; The indicated source element has no media. -Global Const $ERROR_DESTINATION_ELEMENT_FULL = 1161 ; The indicated destination element already contains media. -Global Const $ERROR_ILLEGAL_ELEMENT_ADDRESS = 1162 ; The indicated element does not exist. -Global Const $ERROR_MAGAZINE_NOT_PRESENT = 1163 ; The indicated element is part of a magazine that is not present. -Global Const $ERROR_DEVICE_REINITIALIZATION_NEEDED = 1164 ; The indicated device requires reinitialization due to hardware errors. -Global Const $ERROR_DEVICE_REQUIRES_CLEANING = 1165 ; The device has indicated that cleaning is required before further operations are attempted. -Global Const $ERROR_DEVICE_DOOR_OPEN = 1166 ; The device has indicated that its door is open. -Global Const $ERROR_DEVICE_NOT_CONNECTED = 1167 ; The device is not connected. -Global Const $ERROR_NOT_FOUND = 1168 ; Element not found. -Global Const $ERROR_NO_MATCH = 1169 ; There was no match for the specified key in the index. -Global Const $ERROR_SET_NOT_FOUND = 1170 ; The property set specified does not exist on the object. -Global Const $ERROR_POINT_NOT_FOUND = 1171 ; The point passed to GetMouseMovePoints is not in the buffer. -Global Const $ERROR_NO_TRACKING_SERVICE = 1172 ; The tracking (workstation) service is not running. -Global Const $ERROR_NO_VOLUME_ID = 1173 ; The Volume ID could not be found. -Global Const $ERROR_UNABLE_TO_REMOVE_REPLACED = 1175 ; Unable to remove the file to be replaced. -Global Const $ERROR_UNABLE_TO_MOVE_REPLACEMENT = 1176 ; Unable to move the replacement file to the file to be replaced. The file to be replaced has retained its original name. -Global Const $ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 = 1177 ; Unable to move the replacement file to the file to be replaced. The file to be replaced has been renamed using the backup name. -Global Const $ERROR_JOURNAL_DELETE_IN_PROGRESS = 1178 ; The volume change journal is being deleted. -Global Const $ERROR_JOURNAL_NOT_ACTIVE = 1179 ; The volume change journal is not active. -Global Const $ERROR_POTENTIAL_FILE_FOUND = 1180 ; A file was found, but it may not be the correct file. -Global Const $ERROR_JOURNAL_ENTRY_DELETED = 1181 ; The journal entry has been deleted from the journal. -Global Const $ERROR_SHUTDOWN_IS_SCHEDULED = 1190 ; A system shutdown has already been scheduled. -Global Const $ERROR_SHUTDOWN_USERS_LOGGED_ON = 1191 ; The system shutdown cannot be initiated because there are other users logged on to the computer. -Global Const $ERROR_BAD_DEVICE = 1200 ; The specified device name is invalid. -Global Const $ERROR_CONNECTION_UNAVAIL = 1201 ; The device is not currently connected but it is a remembered connection. -Global Const $ERROR_DEVICE_ALREADY_REMEMBERED = 1202 ; The local device name has a remembered connection to another network resource. -Global Const $ERROR_NO_NET_OR_BAD_PATH = 1203 ; The network path was either typed incorrectly, does not exist, or the network provider is not currently available. Please try retyping the path or contact your network administrator. -Global Const $ERROR_BAD_PROVIDER = 1204 ; The specified network provider name is invalid. -Global Const $ERROR_CANNOT_OPEN_PROFILE = 1205 ; Unable to open the network connection profile. -Global Const $ERROR_BAD_PROFILE = 1206 ; The network connection profile is corrupted. -Global Const $ERROR_NOT_CONTAINER = 1207 ; Cannot enumerate a noncontainer. -Global Const $ERROR_EXTENDED_ERROR = 1208 ; An extended error has occurred. -Global Const $ERROR_INVALID_GROUPNAME = 1209 ; The format of the specified group name is invalid. -Global Const $ERROR_INVALID_COMPUTERNAME = 1210 ; The format of the specified computer name is invalid. -Global Const $ERROR_INVALID_EVENTNAME = 1211 ; The format of the specified event name is invalid. -Global Const $ERROR_INVALID_DOMAINNAME = 1212 ; The format of the specified domain name is invalid. -Global Const $ERROR_INVALID_SERVICENAME = 1213 ; The format of the specified service name is invalid. -Global Const $ERROR_INVALID_NETNAME = 1214 ; The format of the specified network name is invalid. -Global Const $ERROR_INVALID_SHARENAME = 1215 ; The format of the specified share name is invalid. -Global Const $ERROR_INVALID_PASSWORDNAME = 1216 ; The format of the specified password is invalid. -Global Const $ERROR_INVALID_MESSAGENAME = 1217 ; The format of the specified message name is invalid. -Global Const $ERROR_INVALID_MESSAGEDEST = 1218 ; The format of the specified message destination is invalid. -Global Const $ERROR_SESSION_CREDENTIAL_CONFLICT = 1219 ; Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again. -Global Const $ERROR_REMOTE_SESSION_LIMIT_EXCEEDED = 1220 ; An attempt was made to establish a session to a network server, but there are already too many sessions established to that server. -Global Const $ERROR_DUP_DOMAINNAME = 1221 ; The workgroup or domain name is already in use by another computer on the network. -Global Const $ERROR_NO_NETWORK = 1222 ; The network is not present or not started. -Global Const $ERROR_CANCELLED = 1223 ; The operation was canceled by the user. -Global Const $ERROR_USER_MAPPED_FILE = 1224 ; The requested operation cannot be performed on a file with a user-mapped section open. -Global Const $ERROR_CONNECTION_REFUSED = 1225 ; The remote computer refused the network connection. -Global Const $ERROR_GRACEFUL_DISCONNECT = 1226 ; The network connection was gracefully closed. -Global Const $ERROR_ADDRESS_ALREADY_ASSOCIATED = 1227 ; The network transport endpoint already has an address associated with it. -Global Const $ERROR_ADDRESS_NOT_ASSOCIATED = 1228 ; An address has not yet been associated with the network endpoint. -Global Const $ERROR_CONNECTION_INVALID = 1229 ; An operation was attempted on a nonexistent network connection. -Global Const $ERROR_CONNECTION_ACTIVE = 1230 ; An invalid operation was attempted on an active network connection. -Global Const $ERROR_NETWORK_UNREACHABLE = 1231 ; The network location cannot be reached. For information about network troubleshooting, see Windows Help. -Global Const $ERROR_HOST_UNREACHABLE = 1232 ; The network location cannot be reached. For information about network troubleshooting, see Windows Help. -Global Const $ERROR_PROTOCOL_UNREACHABLE = 1233 ; The network location cannot be reached. For information about network troubleshooting, see Windows Help. -Global Const $ERROR_PORT_UNREACHABLE = 1234 ; No service is operating at the destination network endpoint on the remote system. -Global Const $ERROR_REQUEST_ABORTED = 1235 ; The request was aborted. -Global Const $ERROR_CONNECTION_ABORTED = 1236 ; The network connection was aborted by the local system. -Global Const $ERROR_RETRY = 1237 ; The operation could not be completed. A retry should be performed. -Global Const $ERROR_CONNECTION_COUNT_LIMIT = 1238 ; A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached. -Global Const $ERROR_LOGIN_TIME_RESTRICTION = 1239 ; Attempting to log in during an unauthorized time of day for this account. -Global Const $ERROR_LOGIN_WKSTA_RESTRICTION = 1240 ; The account is not authorized to log in from this station. -Global Const $ERROR_INCORRECT_ADDRESS = 1241 ; The network address could not be used for the operation requested. -Global Const $ERROR_ALREADY_REGISTERED = 1242 ; The service is already registered. -Global Const $ERROR_SERVICE_NOT_FOUND = 1243 ; The specified service does not exist. -Global Const $ERROR_NOT_AUTHENTICATED = 1244 ; The operation being requested was not performed because the user has not been authenticated. -Global Const $ERROR_NOT_LOGGED_ON = 1245 ; The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist. -Global Const $ERROR_CONTINUE = 1246 ; Continue with work in progress. -Global Const $ERROR_ALREADY_INITIALIZED = 1247 ; An attempt was made to perform an initialization operation when initialization has already been completed. -Global Const $ERROR_NO_MORE_DEVICES = 1248 ; No more local devices. -Global Const $ERROR_NO_SUCH_SITE = 1249 ; The specified site does not exist. -Global Const $ERROR_DOMAIN_CONTROLLER_EXISTS = 1250 ; A domain controller with the specified name already exists. -Global Const $ERROR_ONLY_IF_CONNECTED = 1251 ; This operation is supported only when you are connected to the server. -Global Const $ERROR_OVERRIDE_NOCHANGES = 1252 ; The group policy framework should call the extension even if there are no changes. -Global Const $ERROR_BAD_USER_PROFILE = 1253 ; The specified user does not have a valid profile. -Global Const $ERROR_NOT_SUPPORTED_ON_SBS = 1254 ; This operation is not supported on a computer running Windows Server 2003 for Small Business Server. -Global Const $ERROR_SERVER_SHUTDOWN_IN_PROGRESS = 1255 ; The server machine is shutting down. -Global Const $ERROR_HOST_DOWN = 1256 ; The remote system is not available. For information about network troubleshooting, see Windows Help. -Global Const $ERROR_NON_ACCOUNT_SID = 1257 ; The security identifier provided is not from an account domain. -Global Const $ERROR_NON_DOMAIN_SID = 1258 ; The security identifier provided does not have a domain component. -Global Const $ERROR_APPHELP_BLOCK = 1259 ; AppHelp dialog canceled thus preventing the application from starting. -Global Const $ERROR_ACCESS_DISABLED_BY_POLICY = 1260 ; This program is blocked by group policy. For more information, contact your system administrator. -Global Const $ERROR_REG_NAT_CONSUMPTION = 1261 ; A program attempt to use an invalid register value. Normally caused by an uninitialized register. This error is Itanium specific. -Global Const $ERROR_CSCSHARE_OFFLINE = 1262 ; The share is currently offline or does not exist. -Global Const $ERROR_PKINIT_FAILURE = 1263 ; The Kerberos protocol encountered an error while validating the KDC certificate during smartcard logon. There is more information in the system event log. -Global Const $ERROR_SMARTCARD_SUBSYSTEM_FAILURE = 1264 ; The Kerberos protocol encountered an error while attempting to utilize the smartcard subsystem. -Global Const $ERROR_DOWNGRADE_DETECTED = 1265 ; The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you. -Global Const $ERROR_MACHINE_LOCKED = 1271 ; The machine is locked and cannot be shut down without the force option. -Global Const $ERROR_CALLBACK_SUPPLIED_INVALID_DATA = 1273 ; An application-defined callback gave invalid data when called. -Global Const $ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED = 1274 ; The group policy framework should call the extension in the synchronous foreground policy refresh. -Global Const $ERROR_DRIVER_BLOCKED = 1275 ; This driver has been blocked from loading. -Global Const $ERROR_INVALID_IMPORT_OF_NON_DLL = 1276 ; A dynamic link library (DLL) referenced a module that was neither a DLL nor the process's executable image. -Global Const $ERROR_ACCESS_DISABLED_WEBBLADE = 1277 ; Windows cannot open this program since it has been disabled. -Global Const $ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER = 1278 ; Windows cannot open this program because the license enforcement system has been tampered with or become corrupted. -Global Const $ERROR_RECOVERY_FAILURE = 1279 ; A transaction recover failed. -Global Const $ERROR_ALREADY_FIBER = 1280 ; The current thread has already been converted to a fiber. -Global Const $ERROR_ALREADY_THREAD = 1281 ; The current thread has already been converted from a fiber. -Global Const $ERROR_STACK_BUFFER_OVERRUN = 1282 ; The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application. -Global Const $ERROR_PARAMETER_QUOTA_EXCEEDED = 1283 ; Data present in one of the parameters is more than the function can operate on. -Global Const $ERROR_DEBUGGER_INACTIVE = 1284 ; An attempt to do an operation on a debug object failed because the object is in the process of being deleted. -Global Const $ERROR_DELAY_LOAD_FAILED = 1285 ; An attempt to delay-load a .dll or get a function address in a delay-loaded .dll failed. -Global Const $ERROR_VDM_DISALLOWED = 1286 ; %1 is a 16-bit application. You do not have permissions to execute 16-bit applications. Check your permissions with your system administrator. -Global Const $ERROR_UNIDENTIFIED_ERROR = 1287 ; Insufficient information exists to identify the cause of failure. -Global Const $ERROR_INVALID_CRUNTIME_PARAMETER = 1288 ; The parameter passed to a C runtime function is incorrect. -Global Const $ERROR_BEYOND_VDL = 1289 ; The operation occurred beyond the valid data length of the file. -Global Const $ERROR_INCOMPATIBLE_SERVICE_SID_TYPE = 1290 ; The service start failed since one or more services in the same process have an incompatible service SID type setting. A service with restricted service SID type can only coexist in the same process with other services with a restricted SID type. If the service SID type for this service was just configured, the hosting process must be restarted in order to start this service. On Windows Server 2003 and Windows XP, an unrestricted service cannot coexist in the same process with other services. The service with the unrestricted service SID type must be moved to an owned process in order to start this service. -Global Const $ERROR_DRIVER_PROCESS_TERMINATED = 1291 ; The process hosting the driver for this device has been terminated. -Global Const $ERROR_IMPLEMENTATION_LIMIT = 1292 ; An operation attempted to exceed an implementation-defined limit. -Global Const $ERROR_PROCESS_IS_PROTECTED = 1293 ; Either the target process, or the target thread's containing process, is a protected process. -Global Const $ERROR_SERVICE_NOTIFY_CLIENT_LAGGING = 1294 ; The service notification client is lagging too far behind the current state of services in the machine. -Global Const $ERROR_DISK_QUOTA_EXCEEDED = 1295 ; The requested file operation failed because the storage quota was exceeded. To free up disk space, move files to a different location or delete unnecessary files. For more information, contact your system administrator. -Global Const $ERROR_CONTENT_BLOCKED = 1296 ; The requested files operation failed because the storage policy blocks that type of file. For more information, contact your system administrator. -Global Const $ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE = 1297 ; A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration. -Global Const $ERROR_APP_HANG = 1298 ; A thread involved in this operation appears to be unresponsive. -Global Const $ERROR_INVALID_LABEL = 1299 ; Indicates a particular Security ID may not be assigned as the label of an object. -Global Const $ERROR_NOT_ALL_ASSIGNED = 1300 ; Not all privileges or groups referenced are assigned to the caller. -Global Const $ERROR_SOME_NOT_MAPPED = 1301 ; Some mapping between account names and security IDs was not done. -Global Const $ERROR_NO_QUOTAS_FOR_ACCOUNT = 1302 ; No system quota limits are specifically set for this account. -Global Const $ERROR_LOCAL_USER_SESSION_KEY = 1303 ; No encryption key is available. A well-known encryption key was returned. -Global Const $ERROR_NULL_LM_PASSWORD = 1304 ; The password is too complex to be converted to a LAN Manager password. The LAN Manager password returned is a NULL string. -Global Const $ERROR_UNKNOWN_REVISION = 1305 ; The revision level is unknown. -Global Const $ERROR_REVISION_MISMATCH = 1306 ; Indicates two revision levels are incompatible. -Global Const $ERROR_INVALID_OWNER = 1307 ; This security ID may not be assigned as the owner of this object. -Global Const $ERROR_INVALID_PRIMARY_GROUP = 1308 ; This security ID may not be assigned as the primary group of an object. -Global Const $ERROR_NO_IMPERSONATION_TOKEN = 1309 ; An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client. -Global Const $ERROR_CANT_DISABLE_MANDATORY = 1310 ; The group may not be disabled. -Global Const $ERROR_NO_LOGON_SERVERS = 1311 ; There are currently no logon servers available to service the logon request. -Global Const $ERROR_NO_SUCH_LOGON_SESSION = 1312 ; A specified logon session does not exist. It may already have been terminated. -Global Const $ERROR_NO_SUCH_PRIVILEGE = 1313 ; A specified privilege does not exist. -Global Const $ERROR_PRIVILEGE_NOT_HELD = 1314 ; A required privilege is not held by the client. -Global Const $ERROR_INVALID_ACCOUNT_NAME = 1315 ; The name provided is not a properly formed account name. -Global Const $ERROR_USER_EXISTS = 1316 ; The specified account already exists. -Global Const $ERROR_NO_SUCH_USER = 1317 ; The specified account does not exist. -Global Const $ERROR_GROUP_EXISTS = 1318 ; The specified group already exists. -Global Const $ERROR_NO_SUCH_GROUP = 1319 ; The specified group does not exist. -Global Const $ERROR_MEMBER_IN_GROUP = 1320 ; Either the specified user account is already a member of the specified group, or the specified group cannot be deleted because it contains a member. -Global Const $ERROR_MEMBER_NOT_IN_GROUP = 1321 ; The specified user account is not a member of the specified group account. -Global Const $ERROR_LAST_ADMIN = 1322 ; The last remaining administration account cannot be disabled or deleted. -Global Const $ERROR_WRONG_PASSWORD = 1323 ; Unable to update the password. The value provided as the current password is incorrect. -Global Const $ERROR_ILL_FORMED_PASSWORD = 1324 ; Unable to update the password. The value provided for the new password contains values that are not allowed in passwords. -Global Const $ERROR_PASSWORD_RESTRICTION = 1325 ; Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain. -Global Const $ERROR_LOGON_FAILURE = 1326 ; Logon failure: unknown user name or bad password. -Global Const $ERROR_ACCOUNT_RESTRICTION = 1327 ; Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced. -Global Const $ERROR_INVALID_LOGON_HOURS = 1328 ; Logon failure: account logon time restriction violation. -Global Const $ERROR_INVALID_WORKSTATION = 1329 ; Logon failure: user not allowed to log on to this computer. -Global Const $ERROR_PASSWORD_EXPIRED = 1330 ; Logon failure: the specified account password has expired. -Global Const $ERROR_ACCOUNT_DISABLED = 1331 ; Logon failure: account currently disabled. -Global Const $ERROR_NONE_MAPPED = 1332 ; No mapping between account names and security IDs was done. -Global Const $ERROR_TOO_MANY_LUIDS_REQUESTED = 1333 ; Too many local user identifiers (LUIDs) were requested at one time. -Global Const $ERROR_LUIDS_EXHAUSTED = 1334 ; No more local user identifiers (LUIDs) are available. -Global Const $ERROR_INVALID_SUB_AUTHORITY = 1335 ; The subauthority part of a security ID is invalid for this particular use. -Global Const $ERROR_INVALID_ACL = 1336 ; The access control list (ACL) structure is invalid. -Global Const $ERROR_INVALID_SID = 1337 ; The security ID structure is invalid. -Global Const $ERROR_INVALID_SECURITY_DESCR = 1338 ; The security descriptor structure is invalid. -Global Const $ERROR_BAD_INHERITANCE_ACL = 1340 ; The inherited access control list (ACL) or access control entry (ACE) could not be built. -Global Const $ERROR_SERVER_DISABLED = 1341 ; The server is currently disabled. -Global Const $ERROR_SERVER_NOT_DISABLED = 1342 ; The server is currently enabled. -Global Const $ERROR_INVALID_ID_AUTHORITY = 1343 ; The value provided was an invalid value for an identifier authority. -Global Const $ERROR_ALLOTTED_SPACE_EXCEEDED = 1344 ; No more memory is available for security information updates. -Global Const $ERROR_INVALID_GROUP_ATTRIBUTES = 1345 ; The specified attributes are invalid, or incompatible with the attributes for the group as a whole. -Global Const $ERROR_BAD_IMPERSONATION_LEVEL = 1346 ; Either a required impersonation level was not provided, or the provided impersonation level is invalid. -Global Const $ERROR_CANT_OPEN_ANONYMOUS = 1347 ; Cannot open an anonymous level security token. -Global Const $ERROR_BAD_VALIDATION_CLASS = 1348 ; The validation information class requested was invalid. -Global Const $ERROR_BAD_TOKEN_TYPE = 1349 ; The type of the token is inappropriate for its attempted use. -Global Const $ERROR_NO_SECURITY_ON_OBJECT = 1350 ; Unable to perform a security operation on an object that has no associated security. -Global Const $ERROR_CANT_ACCESS_DOMAIN_INFO = 1351 ; Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied. -Global Const $ERROR_INVALID_SERVER_STATE = 1352 ; The security account manager (SAM) or local security authority (LSA) server was in the wrong state to perform the security operation. -Global Const $ERROR_INVALID_DOMAIN_STATE = 1353 ; The domain was in the wrong state to perform the security operation. -Global Const $ERROR_INVALID_DOMAIN_ROLE = 1354 ; This operation is only allowed for the Primary Domain Controller of the domain. -Global Const $ERROR_NO_SUCH_DOMAIN = 1355 ; The specified domain either does not exist or could not be contacted. -Global Const $ERROR_DOMAIN_EXISTS = 1356 ; The specified domain already exists. -Global Const $ERROR_DOMAIN_LIMIT_EXCEEDED = 1357 ; An attempt was made to exceed the limit on the number of domains per server. -Global Const $ERROR_INTERNAL_DB_CORRUPTION = 1358 ; Unable to complete the requested operation because of either a catastrophic media failure or a data structure corruption on the disk. -Global Const $ERROR_INTERNAL_ERROR = 1359 ; An internal error occurred. -Global Const $ERROR_GENERIC_NOT_MAPPED = 1360 ; Generic access types were contained in an access mask which should already be mapped to nongeneric types. -Global Const $ERROR_BAD_DESCRIPTOR_FORMAT = 1361 ; A security descriptor is not in the right format (absolute or self-relative). -Global Const $ERROR_NOT_LOGON_PROCESS = 1362 ; The requested action is restricted for use by logon processes only. The calling process has not registered as a logon process. -Global Const $ERROR_LOGON_SESSION_EXISTS = 1363 ; Cannot start a new logon session with an ID that is already in use. -Global Const $ERROR_NO_SUCH_PACKAGE = 1364 ; A specified authentication package is unknown. -Global Const $ERROR_BAD_LOGON_SESSION_STATE = 1365 ; The logon session is not in a state that is consistent with the requested operation. -Global Const $ERROR_LOGON_SESSION_COLLISION = 1366 ; The logon session ID is already in use. -Global Const $ERROR_INVALID_LOGON_TYPE = 1367 ; A logon request contained an invalid logon type value. -Global Const $ERROR_CANNOT_IMPERSONATE = 1368 ; Unable to impersonate using a named pipe until data has been read from that pipe. -Global Const $ERROR_RXACT_INVALID_STATE = 1369 ; The transaction state of a registry subtree is incompatible with the requested operation. -Global Const $ERROR_RXACT_COMMIT_FAILURE = 1370 ; An internal security database corruption has been encountered. -Global Const $ERROR_SPECIAL_ACCOUNT = 1371 ; Cannot perform this operation on built-in accounts. -Global Const $ERROR_SPECIAL_GROUP = 1372 ; Cannot perform this operation on this built-in special group. -Global Const $ERROR_SPECIAL_USER = 1373 ; Cannot perform this operation on this built-in special user. -Global Const $ERROR_MEMBERS_PRIMARY_GROUP = 1374 ; The user cannot be removed from a group because the group is currently the user's primary group. -Global Const $ERROR_TOKEN_ALREADY_IN_USE = 1375 ; The token is already in use as a primary token. -Global Const $ERROR_NO_SUCH_ALIAS = 1376 ; The specified local group does not exist. -Global Const $ERROR_MEMBER_NOT_IN_ALIAS = 1377 ; The specified account name is not a member of the group. -Global Const $ERROR_MEMBER_IN_ALIAS = 1378 ; The specified account name is already a member of the group. -Global Const $ERROR_ALIAS_EXISTS = 1379 ; The specified local group already exists. -Global Const $ERROR_LOGON_NOT_GRANTED = 1380 ; Logon failure: the user has not been granted the requested logon type at this computer. -Global Const $ERROR_TOO_MANY_SECRETS = 1381 ; The maximum number of secrets that may be stored in a single system has been exceeded. -Global Const $ERROR_SECRET_TOO_LONG = 1382 ; The length of a secret exceeds the maximum length allowed. -Global Const $ERROR_INTERNAL_DB_ERROR = 1383 ; The local security authority database contains an internal inconsistency. -Global Const $ERROR_TOO_MANY_CONTEXT_IDS = 1384 ; During a logon attempt, the user's security context accumulated too many security IDs. -Global Const $ERROR_LOGON_TYPE_NOT_GRANTED = 1385 ; Logon failure: the user has not been granted the requested logon type at this computer. -Global Const $ERROR_NT_CROSS_ENCRYPTION_REQUIRED = 1386 ; A cross-encrypted password is necessary to change a user password. -Global Const $ERROR_NO_SUCH_MEMBER = 1387 ; A member could not be added to or removed from the local group because the member does not exist. -Global Const $ERROR_INVALID_MEMBER = 1388 ; A new member could not be added to a local group because the member has the wrong account type. -Global Const $ERROR_TOO_MANY_SIDS = 1389 ; Too many security IDs have been specified. -Global Const $ERROR_LM_CROSS_ENCRYPTION_REQUIRED = 1390 ; A cross-encrypted password is necessary to change this user password. -Global Const $ERROR_NO_INHERITANCE = 1391 ; Indicates an ACL contains no inheritable components. -Global Const $ERROR_FILE_CORRUPT = 1392 ; The file or directory is corrupted and unreadable. -Global Const $ERROR_DISK_CORRUPT = 1393 ; The disk structure is corrupted and unreadable. -Global Const $ERROR_NO_USER_SESSION_KEY = 1394 ; There is no user session key for the specified logon session. -Global Const $ERROR_LICENSE_QUOTA_EXCEEDED = 1395 ; The service being accessed is licensed for a particular number of connections. No more connections can be made to the service at this time because there are already as many connections as the service can accept. -Global Const $ERROR_WRONG_TARGET_NAME = 1396 ; Logon Failure: The target account name is incorrect. -Global Const $ERROR_MUTUAL_AUTH_FAILED = 1397 ; Mutual Authentication failed. The server's password is out of date at the domain controller. -Global Const $ERROR_TIME_SKEW = 1398 ; There is a time and/or date difference between the client and server. -Global Const $ERROR_CURRENT_DOMAIN_NOT_ALLOWED = 1399 ; This operation cannot be performed on the current domain. -Global Const $ERROR_INVALID_WINDOW_HANDLE = 1400 ; Invalid window handle. -Global Const $ERROR_INVALID_MENU_HANDLE = 1401 ; Invalid menu handle. -Global Const $ERROR_INVALID_CURSOR_HANDLE = 1402 ; Invalid cursor handle. -Global Const $ERROR_INVALID_ACCEL_HANDLE = 1403 ; Invalid accelerator table handle. -Global Const $ERROR_INVALID_HOOK_HANDLE = 1404 ; Invalid hook handle. -Global Const $ERROR_INVALID_DWP_HANDLE = 1405 ; Invalid handle to a multiple-window position structure. -Global Const $ERROR_TLW_WITH_WSCHILD = 1406 ; Cannot create a top-level child window. -Global Const $ERROR_CANNOT_FIND_WND_CLASS = 1407 ; Cannot find window class. -Global Const $ERROR_WINDOW_OF_OTHER_THREAD = 1408 ; Invalid window; it belongs to other thread. -Global Const $ERROR_HOTKEY_ALREADY_REGISTERED = 1409 ; Hot key is already registered. -Global Const $ERROR_CLASS_ALREADY_EXISTS = 1410 ; Class already exists. -Global Const $ERROR_CLASS_DOES_NOT_EXIST = 1411 ; Class does not exist. -Global Const $ERROR_CLASS_HAS_WINDOWS = 1412 ; Class still has open windows. -Global Const $ERROR_INVALID_INDEX = 1413 ; Invalid index. -Global Const $ERROR_INVALID_ICON_HANDLE = 1414 ; Invalid icon handle. -Global Const $ERROR_PRIVATE_DIALOG_INDEX = 1415 ; Using private DIALOG window words. -Global Const $ERROR_LISTBOX_ID_NOT_FOUND = 1416 ; The list box identifier was not found. -Global Const $ERROR_NO_WILDCARD_CHARACTERS = 1417 ; No wildcards were found. -Global Const $ERROR_CLIPBOARD_NOT_OPEN = 1418 ; Thread does not have a clipboard open. -Global Const $ERROR_HOTKEY_NOT_REGISTERED = 1419 ; Hot key is not registered. -Global Const $ERROR_WINDOW_NOT_DIALOG = 1420 ; The window is not a valid dialog window. -Global Const $ERROR_CONTROL_ID_NOT_FOUND = 1421 ; Control ID not found. -Global Const $ERROR_INVALID_COMBOBOX_MESSAGE = 1422 ; Invalid message for a combo box because it does not have an edit control. -Global Const $ERROR_WINDOW_NOT_COMBOBOX = 1423 ; The window is not a combo box. -Global Const $ERROR_INVALID_EDIT_HEIGHT = 1424 ; Height must be less than 256. -Global Const $ERROR_DC_NOT_FOUND = 1425 ; Invalid device context (DC) handle. -Global Const $ERROR_INVALID_HOOK_FILTER = 1426 ; Invalid hook procedure type. -Global Const $ERROR_INVALID_FILTER_PROC = 1427 ; Invalid hook procedure. -Global Const $ERROR_HOOK_NEEDS_HMOD = 1428 ; Cannot set nonlocal hook without a module handle. -Global Const $ERROR_GLOBAL_ONLY_HOOK = 1429 ; This hook procedure can only be set globally. -Global Const $ERROR_JOURNAL_HOOK_SET = 1430 ; The journal hook procedure is already installed. -Global Const $ERROR_HOOK_NOT_INSTALLED = 1431 ; The hook procedure is not installed. -Global Const $ERROR_INVALID_LB_MESSAGE = 1432 ; Invalid message for single-selection list box. -Global Const $ERROR_SETCOUNT_ON_BAD_LB = 1433 ; LB_SETCOUNT sent to non-lazy list box. -Global Const $ERROR_LB_WITHOUT_TABSTOPS = 1434 ; This list box does not support tab stops. -Global Const $ERROR_DESTROY_OBJECT_OF_OTHER_THREAD = 1435 ; Cannot destroy object created by another thread. -Global Const $ERROR_CHILD_WINDOW_MENU = 1436 ; Child windows cannot have menus. -Global Const $ERROR_NO_SYSTEM_MENU = 1437 ; The window does not have a system menu. -Global Const $ERROR_INVALID_MSGBOX_STYLE = 1438 ; Invalid message box style. -Global Const $ERROR_INVALID_SPI_VALUE = 1439 ; Invalid system-wide (SPI_*) parameter. -Global Const $ERROR_SCREEN_ALREADY_LOCKED = 1440 ; Screen already locked. -Global Const $ERROR_HWNDS_HAVE_DIFF_PARENT = 1441 ; All handles to windows in a multiple-window position structure must have the same parent. -Global Const $ERROR_NOT_CHILD_WINDOW = 1442 ; The window is not a child window. -Global Const $ERROR_INVALID_GW_COMMAND = 1443 ; Invalid GW_* command. -Global Const $ERROR_INVALID_THREAD_ID = 1444 ; Invalid thread identifier. -Global Const $ERROR_NON_MDICHILD_WINDOW = 1445 ; Cannot process a message from a window that is not a multiple document interface (MDI) window. -Global Const $ERROR_POPUP_ALREADY_ACTIVE = 1446 ; Popup menu already active. -Global Const $ERROR_NO_SCROLLBARS = 1447 ; The window does not have scroll bars. -Global Const $ERROR_INVALID_SCROLLBAR_RANGE = 1448 ; Scroll bar range cannot be greater than MAXLONG. -Global Const $ERROR_INVALID_SHOWWIN_COMMAND = 1449 ; Cannot show or remove the window in the way specified. -Global Const $ERROR_NO_SYSTEM_RESOURCES = 1450 ; Insufficient system resources exist to complete the requested service. -Global Const $ERROR_NONPAGED_SYSTEM_RESOURCES = 1451 ; Insufficient system resources exist to complete the requested service. -Global Const $ERROR_PAGED_SYSTEM_RESOURCES = 1452 ; Insufficient system resources exist to complete the requested service. -Global Const $ERROR_WORKING_SET_QUOTA = 1453 ; Insufficient quota to complete the requested service. -Global Const $ERROR_PAGEFILE_QUOTA = 1454 ; Insufficient quota to complete the requested service. -Global Const $ERROR_COMMITMENT_LIMIT = 1455 ; The paging file is too small for this operation to complete. -Global Const $ERROR_MENU_ITEM_NOT_FOUND = 1456 ; A menu item was not found. -Global Const $ERROR_INVALID_KEYBOARD_HANDLE = 1457 ; Invalid keyboard layout handle. -Global Const $ERROR_HOOK_TYPE_NOT_ALLOWED = 1458 ; Hook type not allowed. -Global Const $ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION = 1459 ; This operation requires an interactive window station. -Global Const $ERROR_TIMEOUT = 1460 ; This operation returned because the timeout period expired. -Global Const $ERROR_INVALID_MONITOR_HANDLE = 1461 ; Invalid monitor handle. -Global Const $ERROR_INCORRECT_SIZE = 1462 ; Incorrect size argument. -Global Const $ERROR_SYMLINK_CLASS_DISABLED = 1463 ; The symbolic link cannot be followed because its type is disabled. -Global Const $ERROR_SYMLINK_NOT_SUPPORTED = 1464 ; This application does not support the current operation on symbolic links. -Global Const $ERROR_XML_PARSE_ERROR = 1465 ; Windows was unable to parse the requested XML data. -Global Const $ERROR_XMLDSIG_ERROR = 1466 ; An error was encountered while processing an XML digital signature. -Global Const $ERROR_RESTART_APPLICATION = 1467 ; This application must be restarted. -Global Const $ERROR_WRONG_COMPARTMENT = 1468 ; The caller made the connection request in the wrong routing compartment. -Global Const $ERROR_AUTHIP_FAILURE = 1469 ; There was an AuthIP failure when attempting to connect to the remote host. -Global Const $ERROR_NO_NVRAM_RESOURCES = 1470 ; Insufficient NVRAM resources exist to complete the requested service. A reboot might be required. -Global Const $ERROR_EVENTLOG_FILE_CORRUPT = 1500 ; The event log file is corrupted. -Global Const $ERROR_EVENTLOG_CANT_START = 1501 ; No event log file could be opened, so the event logging service did not start. -Global Const $ERROR_LOG_FILE_FULL = 1502 ; The event log file is full. -Global Const $ERROR_EVENTLOG_FILE_CHANGED = 1503 ; The event log file has changed between read operations. -Global Const $ERROR_INVALID_TASK_NAME = 1550 ; The specified task name is invalid. -Global Const $ERROR_INVALID_TASK_INDEX = 1551 ; The specified task index is invalid. -Global Const $ERROR_THREAD_ALREADY_IN_TASK = 1552 ; The specified thread is already joining a task. -Global Const $ERROR_INSTALL_SERVICE_FAILURE = 1601 ; The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance. -Global Const $ERROR_INSTALL_USEREXIT = 1602 ; User canceled installation. -Global Const $ERROR_INSTALL_FAILURE = 1603 ; Fatal error during installation. -Global Const $ERROR_INSTALL_SUSPEND = 1604 ; Installation suspended, incomplete. -Global Const $ERROR_UNKNOWN_PRODUCT = 1605 ; This action is only valid for products that are currently installed. -Global Const $ERROR_UNKNOWN_FEATURE = 1606 ; Feature ID not registered. -Global Const $ERROR_UNKNOWN_COMPONENT = 1607 ; Component ID not registered. -Global Const $ERROR_UNKNOWN_PROPERTY = 1608 ; Unknown property. -Global Const $ERROR_INVALID_HANDLE_STATE = 1609 ; A handle is in an invalid state. -Global Const $ERROR_BAD_CONFIGURATION = 1610 ; The configuration data for this product is corrupt. Contact your support personnel. -Global Const $ERROR_INDEX_ABSENT = 1611 ; Component qualifier not present. -Global Const $ERROR_INSTALL_SOURCE_ABSENT = 1612 ; The installation source for this product is not available. Verify that the source exists and that you can access it. -Global Const $ERROR_INSTALL_PACKAGE_VERSION = 1613 ; This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service. -Global Const $ERROR_PRODUCT_UNINSTALLED = 1614 ; Product is uninstalled. -Global Const $ERROR_BAD_QUERY_SYNTAX = 1615 ; SQL query syntax invalid or unsupported. -Global Const $ERROR_INVALID_FIELD = 1616 ; Record field does not exist. -Global Const $ERROR_DEVICE_REMOVED = 1617 ; The device has been removed. -Global Const $ERROR_INSTALL_ALREADY_RUNNING = 1618 ; Another installation is already in progress. Complete that installation before proceeding with this install. -Global Const $ERROR_INSTALL_PACKAGE_OPEN_FAILED = 1619 ; This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package. -Global Const $ERROR_INSTALL_PACKAGE_INVALID = 1620 ; This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package. -Global Const $ERROR_INSTALL_UI_FAILURE = 1621 ; There was an error starting the Windows Installer service user interface. Contact your support personnel. -Global Const $ERROR_INSTALL_LOG_FAILURE = 1622 ; Error opening installation log file. Verify that the specified log file location exists and that you can write to it. -Global Const $ERROR_INSTALL_LANGUAGE_UNSUPPORTED = 1623 ; The language of this installation package is not supported by your system. -Global Const $ERROR_INSTALL_TRANSFORM_FAILURE = 1624 ; Error applying transforms. Verify that the specified transform paths are valid. -Global Const $ERROR_INSTALL_PACKAGE_REJECTED = 1625 ; This installation is forbidden by system policy. Contact your system administrator. -Global Const $ERROR_FUNCTION_NOT_CALLED = 1626 ; Function could not be executed. -Global Const $ERROR_FUNCTION_FAILED = 1627 ; Function failed during execution. -Global Const $ERROR_INVALID_TABLE = 1628 ; Invalid or unknown table specified. -Global Const $ERROR_DATATYPE_MISMATCH = 1629 ; Data supplied is of wrong type. -Global Const $ERROR_UNSUPPORTED_TYPE = 1630 ; Data of this type is not supported. -Global Const $ERROR_CREATE_FAILED = 1631 ; The Windows Installer service failed to start. Contact your support personnel. -Global Const $ERROR_INSTALL_TEMP_UNWRITABLE = 1632 ; The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write permission on the Temp folder. -Global Const $ERROR_INSTALL_PLATFORM_UNSUPPORTED = 1633 ; This installation package is not supported by this processor type. Contact your product vendor. -Global Const $ERROR_INSTALL_NOTUSED = 1634 ; Component not used on this computer. -Global Const $ERROR_PATCH_PACKAGE_OPEN_FAILED = 1635 ; This update package could not be opened. Verify that the update package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer update package. -Global Const $ERROR_PATCH_PACKAGE_INVALID = 1636 ; This update package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer update package. -Global Const $ERROR_PATCH_PACKAGE_UNSUPPORTED = 1637 ; This update package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service. -Global Const $ERROR_PRODUCT_VERSION = 1638 ; Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel. -Global Const $ERROR_INVALID_COMMAND_LINE = 1639 ; Invalid command line argument. Consult the Windows Installer SDK for detailed command line help. -Global Const $ERROR_INSTALL_REMOTE_DISALLOWED = 1640 ; Only administrators have permission to add, remove, or configure server software during a Terminal services remote session. If you want to install or configure software on the server, contact your network administrator. -Global Const $ERROR_SUCCESS_REBOOT_INITIATED = 1641 ; The requested operation completed successfully. The system will be restarted so the changes can take effect. -Global Const $ERROR_PATCH_TARGET_NOT_FOUND = 1642 ; The upgrade cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade. -Global Const $ERROR_PATCH_PACKAGE_REJECTED = 1643 ; The update package is not permitted by software restriction policy. -Global Const $ERROR_INSTALL_TRANSFORM_REJECTED = 1644 ; One or more customizations are not permitted by software restriction policy. -Global Const $ERROR_INSTALL_REMOTE_PROHIBITED = 1645 ; The Windows Installer does not permit installation from a Remote Desktop Connection. -Global Const $ERROR_PATCH_REMOVAL_UNSUPPORTED = 1646 ; Uninstallation of the update package is not supported. -Global Const $ERROR_UNKNOWN_PATCH = 1647 ; The update is not applied to this product. -Global Const $ERROR_PATCH_NO_SEQUENCE = 1648 ; No valid sequence could be found for the set of updates. -Global Const $ERROR_PATCH_REMOVAL_DISALLOWED = 1649 ; Update removal was disallowed by policy. -Global Const $ERROR_INVALID_PATCH_XML = 1650 ; The XML update data is invalid. -Global Const $ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT = 1651 ; Windows Installer does not permit updating of managed advertised products. At least one feature of the product must be installed before applying the update. -Global Const $ERROR_INSTALL_SERVICE_SAFEBOOT = 1652 ; The Windows Installer service is not accessible in Safe Mode. Please try again when your computer is not in Safe Mode or you can use System Restore to return your machine to a previous good state. -Global Const $ERROR_FAIL_FAST_EXCEPTION = 1653 ; A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately. -Global Const $RPC_S_INVALID_STRING_BINDING = 1700 ; The string binding is invalid. -Global Const $RPC_S_WRONG_KIND_OF_BINDING = 1701 ; The binding handle is not the correct type. -Global Const $RPC_S_INVALID_BINDING = 1702 ; The binding handle is invalid. -Global Const $RPC_S_PROTSEQ_NOT_SUPPORTED = 1703 ; The RPC protocol sequence is not supported. -Global Const $RPC_S_INVALID_RPC_PROTSEQ = 1704 ; The RPC protocol sequence is invalid. -Global Const $RPC_S_INVALID_STRING_UUID = 1705 ; The string universal unique identifier (UUID) is invalid. -Global Const $RPC_S_INVALID_ENDPOINT_FORMAT = 1706 ; The endpoint format is invalid. -Global Const $RPC_S_INVALID_NET_ADDR = 1707 ; The network address is invalid. -Global Const $RPC_S_NO_ENDPOINT_FOUND = 1708 ; No endpoint was found. -Global Const $RPC_S_INVALID_TIMEOUT = 1709 ; The timeout value is invalid. -Global Const $RPC_S_OBJECT_NOT_FOUND = 1710 ; The object universal unique identifier (UUID) was not found. -Global Const $RPC_S_ALREADY_REGISTERED = 1711 ; The object universal unique identifier (UUID) has already been registered. -Global Const $RPC_S_TYPE_ALREADY_REGISTERED = 1712 ; The type universal unique identifier (UUID) has already been registered. -Global Const $RPC_S_ALREADY_LISTENING = 1713 ; The RPC server is already listening. -Global Const $RPC_S_NO_PROTSEQS_REGISTERED = 1714 ; No protocol sequences have been registered. -Global Const $RPC_S_NOT_LISTENING = 1715 ; The RPC server is not listening. -Global Const $RPC_S_UNKNOWN_MGR_TYPE = 1716 ; The manager type is unknown. -Global Const $RPC_S_UNKNOWN_IF = 1717 ; The interface is unknown. -Global Const $RPC_S_NO_BINDINGS = 1718 ; There are no bindings. -Global Const $RPC_S_NO_PROTSEQS = 1719 ; There are no protocol sequences. -Global Const $RPC_S_CANT_CREATE_ENDPOINT = 1720 ; The endpoint cannot be created. -Global Const $RPC_S_OUT_OF_RESOURCES = 1721 ; Not enough resources are available to complete this operation. -Global Const $RPC_S_SERVER_UNAVAILABLE = 1722 ; The RPC server is unavailable. -Global Const $RPC_S_SERVER_TOO_BUSY = 1723 ; The RPC server is too busy to complete this operation. -Global Const $RPC_S_INVALID_NETWORK_OPTIONS = 1724 ; The network options are invalid. -Global Const $RPC_S_NO_CALL_ACTIVE = 1725 ; There are no remote procedure calls active on this thread. -Global Const $RPC_S_CALL_FAILED = 1726 ; The remote procedure call failed. -Global Const $RPC_S_CALL_FAILED_DNE = 1727 ; The remote procedure call failed and did not execute. -Global Const $RPC_S_PROTOCOL_ERROR = 1728 ; A remote procedure call (RPC) protocol error occurred. -Global Const $RPC_S_PROXY_ACCESS_DENIED = 1729 ; Access to the HTTP proxy is denied. -Global Const $RPC_S_UNSUPPORTED_TRANS_SYN = 1730 ; The transfer syntax is not supported by the RPC server. -Global Const $RPC_S_UNSUPPORTED_TYPE = 1732 ; The universal unique identifier (UUID) type is not supported. -Global Const $RPC_S_INVALID_TAG = 1733 ; The tag is invalid. -Global Const $RPC_S_INVALID_BOUND = 1734 ; The array bounds are invalid. -Global Const $RPC_S_NO_ENTRY_NAME = 1735 ; The binding does not contain an entry name. -Global Const $RPC_S_INVALID_NAME_SYNTAX = 1736 ; The name syntax is invalid. -Global Const $RPC_S_UNSUPPORTED_NAME_SYNTAX = 1737 ; The name syntax is not supported. -Global Const $RPC_S_UUID_NO_ADDRESS = 1739 ; No network address is available to use to construct a universal unique identifier (UUID). -Global Const $RPC_S_DUPLICATE_ENDPOINT = 1740 ; The endpoint is a duplicate. -Global Const $RPC_S_UNKNOWN_AUTHN_TYPE = 1741 ; The authentication type is unknown. -Global Const $RPC_S_MAX_CALLS_TOO_SMALL = 1742 ; The maximum number of calls is too small. -Global Const $RPC_S_STRING_TOO_LONG = 1743 ; The string is too long. -Global Const $RPC_S_PROTSEQ_NOT_FOUND = 1744 ; The RPC protocol sequence was not found. -Global Const $RPC_S_PROCNUM_OUT_OF_RANGE = 1745 ; The procedure number is out of range. -Global Const $RPC_S_BINDING_HAS_NO_AUTH = 1746 ; The binding does not contain any authentication information. -Global Const $RPC_S_UNKNOWN_AUTHN_SERVICE = 1747 ; The authentication service is unknown. -Global Const $RPC_S_UNKNOWN_AUTHN_LEVEL = 1748 ; The authentication level is unknown. -Global Const $RPC_S_INVALID_AUTH_IDENTITY = 1749 ; The security context is invalid. -Global Const $RPC_S_UNKNOWN_AUTHZ_SERVICE = 1750 ; The authorization service is unknown. -Global Const $EPT_S_INVALID_ENTRY = 1751 ; The entry is invalid. -Global Const $EPT_S_CANT_PERFORM_OP = 1752 ; The server endpoint cannot perform the operation. -Global Const $EPT_S_NOT_REGISTERED = 1753 ; There are no more endpoints available from the endpoint mapper. -Global Const $RPC_S_NOTHING_TO_EXPORT = 1754 ; No interfaces have been exported. -Global Const $RPC_S_INCOMPLETE_NAME = 1755 ; The entry name is incomplete. -Global Const $RPC_S_INVALID_VERS_OPTION = 1756 ; The version option is invalid. -Global Const $RPC_S_NO_MORE_MEMBERS = 1757 ; There are no more members. -Global Const $RPC_S_NOT_ALL_OBJS_UNEXPORTED = 1758 ; There is nothing to unexport. -Global Const $RPC_S_INTERFACE_NOT_FOUND = 1759 ; The interface was not found. -Global Const $RPC_S_ENTRY_ALREADY_EXISTS = 1760 ; The entry already exists. -Global Const $RPC_S_ENTRY_NOT_FOUND = 1761 ; The entry is not found. -Global Const $RPC_S_NAME_SERVICE_UNAVAILABLE = 1762 ; The name service is unavailable. -Global Const $RPC_S_INVALID_NAF_ID = 1763 ; The network address family is invalid. -Global Const $RPC_S_CANNOT_SUPPORT = 1764 ; The requested operation is not supported. -Global Const $RPC_S_NO_CONTEXT_AVAILABLE = 1765 ; No security context is available to allow impersonation. -Global Const $RPC_S_INTERNAL_ERROR = 1766 ; An internal error occurred in a remote procedure call (RPC). -Global Const $RPC_S_ZERO_DIVIDE = 1767 ; The RPC server attempted an integer division by zero. -Global Const $RPC_S_ADDRESS_ERROR = 1768 ; An addressing error occurred in the RPC server. -Global Const $RPC_S_FP_DIV_ZERO = 1769 ; A floating-point operation at the RPC server caused a division by zero. -Global Const $RPC_S_FP_UNDERFLOW = 1770 ; A floating-point underflow occurred at the RPC server. -Global Const $RPC_S_FP_OVERFLOW = 1771 ; A floating-point overflow occurred at the RPC server. -Global Const $RPC_X_NO_MORE_ENTRIES = 1772 ; The list of RPC servers available for the binding of auto handles has been exhausted. -Global Const $RPC_X_SS_CHAR_TRANS_OPEN_FAIL = 1773 ; Unable to open the character translation table file. -Global Const $RPC_X_SS_CHAR_TRANS_SHORT_FILE = 1774 ; The file containing the character translation table has fewer than 512 bytes. -Global Const $RPC_X_SS_IN_NULL_CONTEXT = 1775 ; A null context handle was passed from the client to the host during a remote procedure call. -Global Const $RPC_X_SS_CONTEXT_DAMAGED = 1777 ; The context handle changed during a remote procedure call. -Global Const $RPC_X_SS_HANDLES_MISMATCH = 1778 ; The binding handles passed to a remote procedure call do not match. -Global Const $RPC_X_SS_CANNOT_GET_CALL_HANDLE = 1779 ; The stub is unable to get the remote procedure call handle. -Global Const $RPC_X_NULL_REF_POINTER = 1780 ; A null reference pointer was passed to the stub. -Global Const $RPC_X_ENUM_VALUE_OUT_OF_RANGE = 1781 ; The enumeration value is out of range. -Global Const $RPC_X_BYTE_COUNT_TOO_SMALL = 1782 ; The byte count is too small. -Global Const $RPC_X_BAD_STUB_DATA = 1783 ; The stub received bad data. -Global Const $ERROR_INVALID_USER_BUFFER = 1784 ; The supplied user buffer is not valid for the requested operation. -Global Const $ERROR_UNRECOGNIZED_MEDIA = 1785 ; The disk media is not recognized. It may not be formatted. -Global Const $ERROR_NO_TRUST_LSA_SECRET = 1786 ; The workstation does not have a trust secret. -Global Const $ERROR_NO_TRUST_SAM_ACCOUNT = 1787 ; The security database on the server does not have a computer account for this workstation trust relationship. -Global Const $ERROR_TRUSTED_DOMAIN_FAILURE = 1788 ; The trust relationship between the primary domain and the trusted domain failed. -Global Const $ERROR_TRUSTED_RELATIONSHIP_FAILURE = 1789 ; The trust relationship between this workstation and the primary domain failed. -Global Const $ERROR_TRUST_FAILURE = 1790 ; The network logon failed. -Global Const $RPC_S_CALL_IN_PROGRESS = 1791 ; A remote procedure call is already in progress for this thread. -Global Const $ERROR_NETLOGON_NOT_STARTED = 1792 ; An attempt was made to logon, but the network logon service was not started. -Global Const $ERROR_ACCOUNT_EXPIRED = 1793 ; The user's account has expired. -Global Const $ERROR_REDIRECTOR_HAS_OPEN_HANDLES = 1794 ; The redirector is in use and cannot be unloaded. -Global Const $ERROR_PRINTER_DRIVER_ALREADY_INSTALLED = 1795 ; The specified printer driver is already installed. -Global Const $ERROR_UNKNOWN_PORT = 1796 ; The specified port is unknown. -Global Const $ERROR_UNKNOWN_PRINTER_DRIVER = 1797 ; The printer driver is unknown. -Global Const $ERROR_UNKNOWN_PRINTPROCESSOR = 1798 ; The print processor is unknown. -Global Const $ERROR_INVALID_SEPARATOR_FILE = 1799 ; The specified separator file is invalid. -Global Const $ERROR_INVALID_PRIORITY = 1800 ; The specified priority is invalid. -Global Const $ERROR_INVALID_PRINTER_NAME = 1801 ; The printer name is invalid. -Global Const $ERROR_PRINTER_ALREADY_EXISTS = 1802 ; The printer already exists. -Global Const $ERROR_INVALID_PRINTER_COMMAND = 1803 ; The printer command is invalid. -Global Const $ERROR_INVALID_DATATYPE = 1804 ; The specified datatype is invalid. -Global Const $ERROR_INVALID_ENVIRONMENT = 1805 ; The environment specified is invalid. -Global Const $RPC_S_NO_MORE_BINDINGS = 1806 ; There are no more bindings. -Global Const $ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT = 1807 ; The account used is an interdomain trust account. Use your global user account or local user account to access this server. -Global Const $ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT = 1808 ; The account used is a computer account. Use your global user account or local user account to access this server. -Global Const $ERROR_NOLOGON_SERVER_TRUST_ACCOUNT = 1809 ; The account used is a server trust account. Use your global user account or local user account to access this server. -Global Const $ERROR_DOMAIN_TRUST_INCONSISTENT = 1810 ; The name or security ID (SID) of the domain specified is inconsistent with the trust information for that domain. -Global Const $ERROR_SERVER_HAS_OPEN_HANDLES = 1811 ; The server is in use and cannot be unloaded. -Global Const $ERROR_RESOURCE_DATA_NOT_FOUND = 1812 ; The specified image file did not contain a resource section. -Global Const $ERROR_RESOURCE_TYPE_NOT_FOUND = 1813 ; The specified resource type cannot be found in the image file. -Global Const $ERROR_RESOURCE_NAME_NOT_FOUND = 1814 ; The specified resource name cannot be found in the image file. -Global Const $ERROR_RESOURCE_LANG_NOT_FOUND = 1815 ; The specified resource language ID cannot be found in the image file. -Global Const $ERROR_NOT_ENOUGH_QUOTA = 1816 ; Not enough quota is available to process this command. -Global Const $RPC_S_NO_INTERFACES = 1817 ; No interfaces have been registered. -Global Const $RPC_S_CALL_CANCELLED = 1818 ; The remote procedure call was canceled. -Global Const $RPC_S_BINDING_INCOMPLETE = 1819 ; The binding handle does not contain all required information. -Global Const $RPC_S_COMM_FAILURE = 1820 ; A communications failure occurred during a remote procedure call. -Global Const $RPC_S_UNSUPPORTED_AUTHN_LEVEL = 1821 ; The requested authentication level is not supported. -Global Const $RPC_S_NO_PRINC_NAME = 1822 ; No principal name registered. -Global Const $RPC_S_NOT_RPC_ERROR = 1823 ; The error specified is not a valid Windows RPC error code. -Global Const $RPC_S_UUID_LOCAL_ONLY = 1824 ; A UUID that is valid only on this computer has been allocated. -Global Const $RPC_S_SEC_PKG_ERROR = 1825 ; A security package specific error occurred. -Global Const $RPC_S_NOT_CANCELLED = 1826 ; Thread is not canceled. -Global Const $RPC_X_INVALID_ES_ACTION = 1827 ; Invalid operation on the encoding/decoding handle. -Global Const $RPC_X_WRONG_ES_VERSION = 1828 ; Incompatible version of the serializing package. -Global Const $RPC_X_WRONG_STUB_VERSION = 1829 ; Incompatible version of the RPC stub. -Global Const $RPC_X_INVALID_PIPE_OBJECT = 1830 ; The RPC pipe object is invalid or corrupted. -Global Const $RPC_X_WRONG_PIPE_ORDER = 1831 ; An invalid operation was attempted on an RPC pipe object. -Global Const $RPC_X_WRONG_PIPE_VERSION = 1832 ; Unsupported RPC pipe version. -Global Const $RPC_S_COOKIE_AUTH_FAILED = 1833 ; HTTP proxy server rejected the connection because the cookie authentication failed. -Global Const $RPC_S_GROUP_MEMBER_NOT_FOUND = 1898 ; The group member was not found. -Global Const $EPT_S_CANT_CREATE = 1899 ; The endpoint mapper database entry could not be created. -Global Const $RPC_S_INVALID_OBJECT = 1900 ; The object universal unique identifier (UUID) is the nil UUID. -Global Const $ERROR_INVALID_TIME = 1901 ; The specified time is invalid. -Global Const $ERROR_INVALID_FORM_NAME = 1902 ; The specified form name is invalid. -Global Const $ERROR_INVALID_FORM_SIZE = 1903 ; The specified form size is invalid. -Global Const $ERROR_ALREADY_WAITING = 1904 ; The specified printer handle is already being waited on. -Global Const $ERROR_PRINTER_DELETED = 1905 ; The specified printer has been deleted. -Global Const $ERROR_INVALID_PRINTER_STATE = 1906 ; The state of the printer is invalid. -Global Const $ERROR_PASSWORD_MUST_CHANGE = 1907 ; The user's password must be changed before logging on the first time. -Global Const $ERROR_DOMAIN_CONTROLLER_NOT_FOUND = 1908 ; Could not find the domain controller for this domain. -Global Const $ERROR_ACCOUNT_LOCKED_OUT = 1909 ; The referenced account is currently locked out and may not be logged on to. -Global Const $OR_INVALID_OXID = 1910 ; The object exporter specified was not found. -Global Const $OR_INVALID_OID = 1911 ; The object specified was not found. -Global Const $OR_INVALID_SET = 1912 ; The object resolver set specified was not found. -Global Const $RPC_S_SEND_INCOMPLETE = 1913 ; Some data remains to be sent in the request buffer. -Global Const $RPC_S_INVALID_ASYNC_HANDLE = 1914 ; Invalid asynchronous remote procedure call handle. -Global Const $RPC_S_INVALID_ASYNC_CALL = 1915 ; Invalid asynchronous RPC call handle for this operation. -Global Const $RPC_X_PIPE_CLOSED = 1916 ; The RPC pipe object has already been closed. -Global Const $RPC_X_PIPE_DISCIPLINE_ERROR = 1917 ; The RPC call completed before all pipes were processed. -Global Const $RPC_X_PIPE_EMPTY = 1918 ; No more data is available from the RPC pipe. -Global Const $ERROR_NO_SITENAME = 1919 ; No site name is available for this machine. -Global Const $ERROR_CANT_ACCESS_FILE = 1920 ; The file cannot be accessed by the system. -Global Const $ERROR_CANT_RESOLVE_FILENAME = 1921 ; The name of the file cannot be resolved by the system. -Global Const $RPC_S_ENTRY_TYPE_MISMATCH = 1922 ; The entry is not of the expected type. -Global Const $RPC_S_NOT_ALL_OBJS_EXPORTED = 1923 ; Not all object UUIDs could be exported to the specified entry. -Global Const $RPC_S_INTERFACE_NOT_EXPORTED = 1924 ; Interface could not be exported to the specified entry. -Global Const $RPC_S_PROFILE_NOT_ADDED = 1925 ; The specified profile entry could not be added. -Global Const $RPC_S_PRF_ELT_NOT_ADDED = 1926 ; The specified profile element could not be added. -Global Const $RPC_S_PRF_ELT_NOT_REMOVED = 1927 ; The specified profile element could not be removed. -Global Const $RPC_S_GRP_ELT_NOT_ADDED = 1928 ; The group element could not be added. -Global Const $RPC_S_GRP_ELT_NOT_REMOVED = 1929 ; The group element could not be removed. -Global Const $ERROR_KM_DRIVER_BLOCKED = 1930 ; The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers. -Global Const $ERROR_CONTEXT_EXPIRED = 1931 ; The context has expired and can no longer be used. -Global Const $ERROR_PER_USER_TRUST_QUOTA_EXCEEDED = 1932 ; The current user's delegated trust creation quota has been exceeded. -Global Const $ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED = 1933 ; The total delegated trust creation quota has been exceeded. -Global Const $ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED = 1934 ; The current user's delegated trust deletion quota has been exceeded. -Global Const $ERROR_AUTHENTICATION_FIREWALL_FAILED = 1935 ; Logon Failure: The machine you are logging onto is protected by an authentication firewall. The specified account is not allowed to authenticate to the machine. -Global Const $ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED = 1936 ; Remote connections to the Print Spooler are blocked by a policy set on your machine. -Global Const $ERROR_NTLM_BLOCKED = 1937 ; Authentication failed because NTLM authentication has been disabled. -Global Const $ERROR_INVALID_PIXEL_FORMAT = 2000 ; The pixel format is invalid. -Global Const $ERROR_BAD_DRIVER = 2001 ; The specified driver is invalid. -Global Const $ERROR_INVALID_WINDOW_STYLE = 2002 ; The window style or class attribute is invalid for this operation. -Global Const $ERROR_METAFILE_NOT_SUPPORTED = 2003 ; The requested metafile operation is not supported. -Global Const $ERROR_TRANSFORM_NOT_SUPPORTED = 2004 ; The requested transformation operation is not supported. -Global Const $ERROR_CLIPPING_NOT_SUPPORTED = 2005 ; The requested clipping operation is not supported. -Global Const $ERROR_INVALID_CMM = 2010 ; The specified color management module is invalid. -Global Const $ERROR_INVALID_PROFILE = 2011 ; The specified color profile is invalid. -Global Const $ERROR_TAG_NOT_FOUND = 2012 ; The specified tag was not found. -Global Const $ERROR_TAG_NOT_PRESENT = 2013 ; A required tag is not present. -Global Const $ERROR_DUPLICATE_TAG = 2014 ; The specified tag is already present. -Global Const $ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE = 2015 ; The specified color profile is not associated with the specified device. -Global Const $ERROR_PROFILE_NOT_FOUND = 2016 ; The specified color profile was not found. -Global Const $ERROR_INVALID_COLORSPACE = 2017 ; The specified color space is invalid. -Global Const $ERROR_ICM_NOT_ENABLED = 2018 ; Image Color Management is not enabled. -Global Const $ERROR_DELETING_ICM_XFORM = 2019 ; There was an error while deleting the color transform. -Global Const $ERROR_INVALID_TRANSFORM = 2020 ; The specified color transform is invalid. -Global Const $ERROR_COLORSPACE_MISMATCH = 2021 ; The specified transform does not match the bitmap's color space. -Global Const $ERROR_INVALID_COLORINDEX = 2022 ; The specified named color index is not present in the profile. -Global Const $ERROR_PROFILE_DOES_NOT_MATCH_DEVICE = 2023 ; The specified profile is intended for a device of a different type than the specified device. -Global Const $ERROR_CONNECTED_OTHER_PASSWORD = 2108 ; The network connection was made successfully, but the user had to be prompted for a password other than the one originally specified. -Global Const $ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT = 2109 ; The network connection was made successfully using default credentials. -Global Const $ERROR_BAD_USERNAME = 2202 ; The specified user name is invalid. -Global Const $ERROR_NOT_CONNECTED = 2250 ; This network connection does not exist. -Global Const $ERROR_OPEN_FILES = 2401 ; This network connection has files open or requests pending. -Global Const $ERROR_ACTIVE_CONNECTIONS = 2402 ; Active connections still exist. -Global Const $ERROR_DEVICE_IN_USE = 2404 ; The device is in use by an active process and cannot be disconnected. -Global Const $ERROR_UNKNOWN_PRINT_MONITOR = 3000 ; The specified print monitor is unknown. -Global Const $ERROR_PRINTER_DRIVER_IN_USE = 3001 ; The specified printer driver is currently in use. -Global Const $ERROR_SPOOL_FILE_NOT_FOUND = 3002 ; The spool file was not found. -Global Const $ERROR_SPL_NO_STARTDOC = 3003 ; A StartDocPrinter call was not issued. -Global Const $ERROR_SPL_NO_ADDJOB = 3004 ; An AddJob call was not issued. -Global Const $ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED = 3005 ; The specified print processor has already been installed. -Global Const $ERROR_PRINT_MONITOR_ALREADY_INSTALLED = 3006 ; The specified print monitor has already been installed. -Global Const $ERROR_INVALID_PRINT_MONITOR = 3007 ; The specified print monitor does not have the required functions. -Global Const $ERROR_PRINT_MONITOR_IN_USE = 3008 ; The specified print monitor is currently in use. -Global Const $ERROR_PRINTER_HAS_JOBS_QUEUED = 3009 ; The requested operation is not allowed when there are jobs queued to the printer. -Global Const $ERROR_SUCCESS_REBOOT_REQUIRED = 3010 ; The requested operation is successful. Changes will not be effective until the system is rebooted. -Global Const $ERROR_SUCCESS_RESTART_REQUIRED = 3011 ; The requested operation is successful. Changes will not be effective until the service is restarted. -Global Const $ERROR_PRINTER_NOT_FOUND = 3012 ; No printers were found. -Global Const $ERROR_PRINTER_DRIVER_WARNED = 3013 ; The printer driver is known to be unreliable. -Global Const $ERROR_PRINTER_DRIVER_BLOCKED = 3014 ; The printer driver is known to harm the system. -Global Const $ERROR_PRINTER_DRIVER_PACKAGE_IN_USE = 3015 ; The specified printer driver package is currently in use. -Global Const $ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND = 3016 ; Unable to find a core driver package that is required by the printer driver package. -Global Const $ERROR_FAIL_REBOOT_REQUIRED = 3017 ; The requested operation failed. A system reboot is required to roll back changes made. -Global Const $ERROR_FAIL_REBOOT_INITIATED = 3018 ; The requested operation failed. A system reboot has been initiated to roll back changes made. -Global Const $ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED = 3019 ; The specified printer driver was not found on the system and needs to be downloaded. -Global Const $ERROR_PRINT_JOB_RESTART_REQUIRED = 3020 ; The requested print job has failed to print. A print system update requires the job to be resubmitted. -Global Const $ERROR_IO_REISSUE_AS_CACHED = 3950 ; Reissue the given operation as a cached I/O operation. -Global Const $ERROR_WINS_INTERNAL = 4000 ; WINS encountered an error while processing the command. -Global Const $ERROR_CAN_NOT_DEL_LOCAL_WINS = 4001 ; The local WINS cannot be deleted. -Global Const $ERROR_STATIC_INIT = 4002 ; The importation from the file failed. -Global Const $ERROR_INC_BACKUP = 4003 ; The backup failed. Was a full backup done before? -Global Const $ERROR_FULL_BACKUP = 4004 ; The backup failed. Check the directory to which you are backing the database. -Global Const $ERROR_REC_NON_EXISTENT = 4005 ; The name does not exist in the WINS database. -Global Const $ERROR_RPL_NOT_ALLOWED = 4006 ; Replication with a nonconfigured partner is not allowed. -Global Const $ERROR_DHCP_ADDRESS_CONFLICT = 4100 ; The DHCP client has obtained an IP address that is already in use on the network. The local interface will be disabled until the DHCP client can obtain a new address. -Global Const $ERROR_WMI_GUID_NOT_FOUND = 4200 ; The GUID passed was not recognized as valid by a WMI data provider. -Global Const $ERROR_WMI_INSTANCE_NOT_FOUND = 4201 ; The instance name passed was not recognized as valid by a WMI data provider. -Global Const $ERROR_WMI_ITEMID_NOT_FOUND = 4202 ; The data item ID passed was not recognized as valid by a WMI data provider. -Global Const $ERROR_WMI_TRY_AGAIN = 4203 ; The WMI request could not be completed and should be retried. -Global Const $ERROR_WMI_DP_NOT_FOUND = 4204 ; The WMI data provider could not be located. -Global Const $ERROR_WMI_UNRESOLVED_INSTANCE_REF = 4205 ; The WMI data provider references an instance set that has not been registered. -Global Const $ERROR_WMI_ALREADY_ENABLED = 4206 ; The WMI data block or event notification has already been enabled. -Global Const $ERROR_WMI_GUID_DISCONNECTED = 4207 ; The WMI data block is no longer available. -Global Const $ERROR_WMI_SERVER_UNAVAILABLE = 4208 ; The WMI data service is not available. -Global Const $ERROR_WMI_DP_FAILED = 4209 ; The WMI data provider failed to carry out the request. -Global Const $ERROR_WMI_INVALID_MOF = 4210 ; The WMI MOF information is not valid. -Global Const $ERROR_WMI_INVALID_REGINFO = 4211 ; The WMI registration information is not valid. -Global Const $ERROR_WMI_ALREADY_DISABLED = 4212 ; The WMI data block or event notification has already been disabled. -Global Const $ERROR_WMI_READ_ONLY = 4213 ; The WMI data item or data block is read only. -Global Const $ERROR_WMI_SET_FAILURE = 4214 ; The WMI data item or data block could not be changed. -Global Const $ERROR_INVALID_MEDIA = 4300 ; The media identifier does not represent a valid medium. -Global Const $ERROR_INVALID_LIBRARY = 4301 ; The library identifier does not represent a valid library. -Global Const $ERROR_INVALID_MEDIA_POOL = 4302 ; The media pool identifier does not represent a valid media pool. -Global Const $ERROR_DRIVE_MEDIA_MISMATCH = 4303 ; The drive and medium are not compatible or exist in different libraries. -Global Const $ERROR_MEDIA_OFFLINE = 4304 ; The medium currently exists in an offline library and must be online to perform this operation. -Global Const $ERROR_LIBRARY_OFFLINE = 4305 ; The operation cannot be performed on an offline library. -Global Const $ERROR_EMPTY = 4306 ; The library, drive, or media pool is empty. -Global Const $ERROR_NOT_EMPTY = 4307 ; The library, drive, or media pool must be empty to perform this operation. -Global Const $ERROR_MEDIA_UNAVAILABLE = 4308 ; No media is currently available in this media pool or library. -Global Const $ERROR_RESOURCE_DISABLED = 4309 ; A resource required for this operation is disabled. -Global Const $ERROR_INVALID_CLEANER = 4310 ; The media identifier does not represent a valid cleaner. -Global Const $ERROR_UNABLE_TO_CLEAN = 4311 ; The drive cannot be cleaned or does not support cleaning. -Global Const $ERROR_OBJECT_NOT_FOUND = 4312 ; The object identifier does not represent a valid object. -Global Const $ERROR_DATABASE_FAILURE = 4313 ; Unable to read from or write to the database. -Global Const $ERROR_DATABASE_FULL = 4314 ; The database is full. -Global Const $ERROR_MEDIA_INCOMPATIBLE = 4315 ; The medium is not compatible with the device or media pool. -Global Const $ERROR_RESOURCE_NOT_PRESENT = 4316 ; The resource required for this operation does not exist. -Global Const $ERROR_INVALID_OPERATION = 4317 ; The operation identifier is not valid. -Global Const $ERROR_MEDIA_NOT_AVAILABLE = 4318 ; The media is not mounted or ready for use. -Global Const $ERROR_DEVICE_NOT_AVAILABLE = 4319 ; The device is not ready for use. -Global Const $ERROR_REQUEST_REFUSED = 4320 ; The operator or administrator has refused the request. -Global Const $ERROR_INVALID_DRIVE_OBJECT = 4321 ; The drive identifier does not represent a valid drive. -Global Const $ERROR_LIBRARY_FULL = 4322 ; Library is full. No slot is available for use. -Global Const $ERROR_MEDIUM_NOT_ACCESSIBLE = 4323 ; The transport cannot access the medium. -Global Const $ERROR_UNABLE_TO_LOAD_MEDIUM = 4324 ; Unable to load the medium into the drive. -Global Const $ERROR_UNABLE_TO_INVENTORY_DRIVE = 4325 ; Unable to retrieve the drive status. -Global Const $ERROR_UNABLE_TO_INVENTORY_SLOT = 4326 ; Unable to retrieve the slot status. -Global Const $ERROR_UNABLE_TO_INVENTORY_TRANSPORT = 4327 ; Unable to retrieve status about the transport. -Global Const $ERROR_TRANSPORT_FULL = 4328 ; Cannot use the transport because it is already in use. -Global Const $ERROR_CONTROLLING_IEPORT = 4329 ; Unable to open or close the inject/eject port. -Global Const $ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA = 4330 ; Unable to eject the medium because it is in a drive. -Global Const $ERROR_CLEANER_SLOT_SET = 4331 ; A cleaner slot is already reserved. -Global Const $ERROR_CLEANER_SLOT_NOT_SET = 4332 ; A cleaner slot is not reserved. -Global Const $ERROR_CLEANER_CARTRIDGE_SPENT = 4333 ; The cleaner cartridge has performed the maximum number of drive cleanings. -Global Const $ERROR_UNEXPECTED_OMID = 4334 ; Unexpected on-medium identifier. -Global Const $ERROR_CANT_DELETE_LAST_ITEM = 4335 ; The last remaining item in this group or resource cannot be deleted. -Global Const $ERROR_MESSAGE_EXCEEDS_MAX_SIZE = 4336 ; The message provided exceeds the maximum size allowed for this parameter. -Global Const $ERROR_VOLUME_CONTAINS_SYS_FILES = 4337 ; The volume contains system or paging files. -Global Const $ERROR_INDIGENOUS_TYPE = 4338 ; The media type cannot be removed from this library since at least one drive in the library reports it can support this media type. -Global Const $ERROR_NO_SUPPORTING_DRIVES = 4339 ; This offline media cannot be mounted on this system since no enabled drives are present which can be used. -Global Const $ERROR_CLEANER_CARTRIDGE_INSTALLED = 4340 ; A cleaner cartridge is present in the tape library. -Global Const $ERROR_IEPORT_FULL = 4341 ; Cannot use the inject/eject port because it is not empty. -Global Const $ERROR_FILE_OFFLINE = 4350 ; The file is currently not available for use on this computer. -Global Const $ERROR_REMOTE_STORAGE_NOT_ACTIVE = 4351 ; The remote storage service is not operational at this time. -Global Const $ERROR_REMOTE_STORAGE_MEDIA_ERROR = 4352 ; The remote storage service encountered a media error. -Global Const $ERROR_NOT_A_REPARSE_POINT = 4390 ; The file or directory is not a reparse point. -Global Const $ERROR_REPARSE_ATTRIBUTE_CONFLICT = 4391 ; The reparse point attribute cannot be set because it conflicts with an existing attribute. -Global Const $ERROR_INVALID_REPARSE_DATA = 4392 ; The data present in the reparse point buffer is invalid. -Global Const $ERROR_REPARSE_TAG_INVALID = 4393 ; The tag present in the reparse point buffer is invalid. -Global Const $ERROR_REPARSE_TAG_MISMATCH = 4394 ; There is a mismatch between the tag specified in the request and the tag present in the reparse point. -Global Const $ERROR_VOLUME_NOT_SIS_ENABLED = 4500 ; Single Instance Storage is not available on this volume. -Global Const $ERROR_DEPENDENT_RESOURCE_EXISTS = 5001 ; The operation cannot be completed because other resources are dependent on this resource. -Global Const $ERROR_DEPENDENCY_NOT_FOUND = 5002 ; The cluster resource dependency cannot be found. -Global Const $ERROR_DEPENDENCY_ALREADY_EXISTS = 5003 ; The cluster resource cannot be made dependent on the specified resource because it is already dependent. -Global Const $ERROR_RESOURCE_NOT_ONLINE = 5004 ; The cluster resource is not online. -Global Const $ERROR_HOST_NODE_NOT_AVAILABLE = 5005 ; A cluster node is not available for this operation. -Global Const $ERROR_RESOURCE_NOT_AVAILABLE = 5006 ; The cluster resource is not available. -Global Const $ERROR_RESOURCE_NOT_FOUND = 5007 ; The cluster resource could not be found. -Global Const $ERROR_SHUTDOWN_CLUSTER = 5008 ; The cluster is being shut down. -Global Const $ERROR_CANT_EVICT_ACTIVE_NODE = 5009 ; A cluster node cannot be evicted from the cluster unless the node is down or it is the last node. -Global Const $ERROR_OBJECT_ALREADY_EXISTS = 5010 ; The object already exists. -Global Const $ERROR_OBJECT_IN_LIST = 5011 ; The object is already in the list. -Global Const $ERROR_GROUP_NOT_AVAILABLE = 5012 ; The cluster group is not available for any new requests. -Global Const $ERROR_GROUP_NOT_FOUND = 5013 ; The cluster group could not be found. -Global Const $ERROR_GROUP_NOT_ONLINE = 5014 ; The operation could not be completed because the cluster group is not online. -Global Const $ERROR_HOST_NODE_NOT_RESOURCE_OWNER = 5015 ; The operation failed because either the specified cluster node is not the owner of the resource, or the node is not a possible owner of the resource. -Global Const $ERROR_HOST_NODE_NOT_GROUP_OWNER = 5016 ; The operation failed because either the specified cluster node is not the owner of the group, or the node is not a possible owner of the group. -Global Const $ERROR_RESMON_CREATE_FAILED = 5017 ; The cluster resource could not be created in the specified resource monitor. -Global Const $ERROR_RESMON_ONLINE_FAILED = 5018 ; The cluster resource could not be brought online by the resource monitor. -Global Const $ERROR_RESOURCE_ONLINE = 5019 ; The operation could not be completed because the cluster resource is online. -Global Const $ERROR_QUORUM_RESOURCE = 5020 ; The cluster resource could not be deleted or brought offline because it is the quorum resource. -Global Const $ERROR_NOT_QUORUM_CAPABLE = 5021 ; The cluster could not make the specified resource a quorum resource because it is not capable of being a quorum resource. -Global Const $ERROR_CLUSTER_SHUTTING_DOWN = 5022 ; The cluster software is shutting down. -Global Const $ERROR_INVALID_STATE = 5023 ; The group or resource is not in the correct state to perform the requested operation. -Global Const $ERROR_RESOURCE_PROPERTIES_STORED = 5024 ; The properties were stored but not all changes will take effect until the next time the resource is brought online. -Global Const $ERROR_NOT_QUORUM_CLASS = 5025 ; The cluster could not make the specified resource a quorum resource because it does not belong to a shared storage class. -Global Const $ERROR_CORE_RESOURCE = 5026 ; The cluster resource could not be deleted since it is a core resource. -Global Const $ERROR_QUORUM_RESOURCE_ONLINE_FAILED = 5027 ; The quorum resource failed to come online. -Global Const $ERROR_QUORUMLOG_OPEN_FAILED = 5028 ; The quorum log could not be created or mounted successfully. -Global Const $ERROR_CLUSTERLOG_CORRUPT = 5029 ; The cluster log is corrupt. -Global Const $ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE = 5030 ; The record could not be written to the cluster log since it exceeds the maximum size. -Global Const $ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE = 5031 ; The cluster log exceeds its maximum size. -Global Const $ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND = 5032 ; No checkpoint record was found in the cluster log. -Global Const $ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE = 5033 ; The minimum required disk space needed for logging is not available. -Global Const $ERROR_QUORUM_OWNER_ALIVE = 5034 ; The cluster node failed to take control of the quorum resource because the resource is owned by another active node. -Global Const $ERROR_NETWORK_NOT_AVAILABLE = 5035 ; A cluster network is not available for this operation. -Global Const $ERROR_NODE_NOT_AVAILABLE = 5036 ; A cluster node is not available for this operation. -Global Const $ERROR_ALL_NODES_NOT_AVAILABLE = 5037 ; All cluster nodes must be running to perform this operation. -Global Const $ERROR_RESOURCE_FAILED = 5038 ; A cluster resource failed. -Global Const $ERROR_CLUSTER_INVALID_NODE = 5039 ; The cluster node is not valid. -Global Const $ERROR_CLUSTER_NODE_EXISTS = 5040 ; The cluster node already exists. -Global Const $ERROR_CLUSTER_JOIN_IN_PROGRESS = 5041 ; A node is in the process of joining the cluster. -Global Const $ERROR_CLUSTER_NODE_NOT_FOUND = 5042 ; The cluster node was not found. -Global Const $ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND = 5043 ; The cluster local node information was not found. -Global Const $ERROR_CLUSTER_NETWORK_EXISTS = 5044 ; The cluster network already exists. -Global Const $ERROR_CLUSTER_NETWORK_NOT_FOUND = 5045 ; The cluster network was not found. -Global Const $ERROR_CLUSTER_NETINTERFACE_EXISTS = 5046 ; The cluster network interface already exists. -Global Const $ERROR_CLUSTER_NETINTERFACE_NOT_FOUND = 5047 ; The cluster network interface was not found. -Global Const $ERROR_CLUSTER_INVALID_REQUEST = 5048 ; The cluster request is not valid for this object. -Global Const $ERROR_CLUSTER_INVALID_NETWORK_PROVIDER = 5049 ; The cluster network provider is not valid. -Global Const $ERROR_CLUSTER_NODE_DOWN = 5050 ; The cluster node is down. -Global Const $ERROR_CLUSTER_NODE_UNREACHABLE = 5051 ; The cluster node is not reachable. -Global Const $ERROR_CLUSTER_NODE_NOT_MEMBER = 5052 ; The cluster node is not a member of the cluster. -Global Const $ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS = 5053 ; A cluster join operation is not in progress. -Global Const $ERROR_CLUSTER_INVALID_NETWORK = 5054 ; The cluster network is not valid. -Global Const $ERROR_CLUSTER_NODE_UP = 5056 ; The cluster node is up. -Global Const $ERROR_CLUSTER_IPADDR_IN_USE = 5057 ; The cluster IP address is already in use. -Global Const $ERROR_CLUSTER_NODE_NOT_PAUSED = 5058 ; The cluster node is not paused. -Global Const $ERROR_CLUSTER_NO_SECURITY_CONTEXT = 5059 ; No cluster security context is available. -Global Const $ERROR_CLUSTER_NETWORK_NOT_INTERNAL = 5060 ; The cluster network is not configured for internal cluster communication. -Global Const $ERROR_CLUSTER_NODE_ALREADY_UP = 5061 ; The cluster node is already up. -Global Const $ERROR_CLUSTER_NODE_ALREADY_DOWN = 5062 ; The cluster node is already down. -Global Const $ERROR_CLUSTER_NETWORK_ALREADY_ONLINE = 5063 ; The cluster network is already online. -Global Const $ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE = 5064 ; The cluster network is already offline. -Global Const $ERROR_CLUSTER_NODE_ALREADY_MEMBER = 5065 ; The cluster node is already a member of the cluster. -Global Const $ERROR_CLUSTER_LAST_INTERNAL_NETWORK = 5066 ; The cluster network is the only one configured for internal cluster communication between two or more active cluster nodes. The internal communication capability cannot be removed from the network. -Global Const $ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS = 5067 ; One or more cluster resources depend on the network to provide service to clients. The client access capability cannot be removed from the network. -Global Const $ERROR_INVALID_OPERATION_ON_QUORUM = 5068 ; This operation cannot be performed on the cluster resource as it the quorum resource. You may not bring the quorum resource offline or modify its possible owners list. -Global Const $ERROR_DEPENDENCY_NOT_ALLOWED = 5069 ; The cluster quorum resource is not allowed to have any dependencies. -Global Const $ERROR_CLUSTER_NODE_PAUSED = 5070 ; The cluster node is paused. -Global Const $ERROR_NODE_CANT_HOST_RESOURCE = 5071 ; The cluster resource cannot be brought online. The owner node cannot run this resource. -Global Const $ERROR_CLUSTER_NODE_NOT_READY = 5072 ; The cluster node is not ready to perform the requested operation. -Global Const $ERROR_CLUSTER_NODE_SHUTTING_DOWN = 5073 ; The cluster node is shutting down. -Global Const $ERROR_CLUSTER_JOIN_ABORTED = 5074 ; The cluster join operation was aborted. -Global Const $ERROR_CLUSTER_INCOMPATIBLE_VERSIONS = 5075 ; The cluster join operation failed due to incompatible software versions between the joining node and its sponsor. -Global Const $ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED = 5076 ; This resource cannot be created because the cluster has reached the limit on the number of resources it can monitor. -Global Const $ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED = 5077 ; The system configuration changed during the cluster join or form operation. The join or form operation was aborted. -Global Const $ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND = 5078 ; The specified resource type was not found. -Global Const $ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED = 5079 ; The specified node does not support a resource of this type. This may be due to version inconsistencies or due to the absence of the resource DLL on this node. -Global Const $ERROR_CLUSTER_RESNAME_NOT_FOUND = 5080 ; The specified resource name is not supported by this resource DLL. This may be due to a bad (or changed) name supplied to the resource DLL. -Global Const $ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED = 5081 ; No authentication package could be registered with the RPC server. -Global Const $ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST = 5082 ; You cannot bring the group online because the owner of the group is not in the preferred list for the group. To change the owner node for the group, move the group. -Global Const $ERROR_CLUSTER_DATABASE_SEQMISMATCH = 5083 ; The join operation failed because the cluster database sequence number has changed or is incompatible with the locker node. This may happen during a join operation if the cluster database was changing during the join. -Global Const $ERROR_RESMON_INVALID_STATE = 5084 ; The resource monitor will not allow the fail operation to be performed while the resource is in its current state. This may happen if the resource is in a pending state. -Global Const $ERROR_CLUSTER_GUM_NOT_LOCKER = 5085 ; A non locker code got a request to reserve the lock for making global updates. -Global Const $ERROR_QUORUM_DISK_NOT_FOUND = 5086 ; The quorum disk could not be located by the cluster service. -Global Const $ERROR_DATABASE_BACKUP_CORRUPT = 5087 ; The backed up cluster database is possibly corrupt. -Global Const $ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT = 5088 ; A DFS root already exists in this cluster node. -Global Const $ERROR_RESOURCE_PROPERTY_UNCHANGEABLE = 5089 ; An attempt to modify a resource property failed because it conflicts with another existing property. -Global Const $ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE = 5890 ; An operation was attempted that is incompatible with the current membership state of the node. -Global Const $ERROR_CLUSTER_QUORUMLOG_NOT_FOUND = 5891 ; The quorum resource does not contain the quorum log. -Global Const $ERROR_CLUSTER_MEMBERSHIP_HALT = 5892 ; The membership engine requested shutdown of the cluster service on this node. -Global Const $ERROR_CLUSTER_INSTANCE_ID_MISMATCH = 5893 ; The join operation failed because the cluster instance ID of the joining node does not match the cluster instance ID of the sponsor node. -Global Const $ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP = 5894 ; A matching cluster network for the specified IP address could not be found. -Global Const $ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH = 5895 ; The actual data type of the property did not match the expected data type of the property. -Global Const $ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP = 5896 ; The cluster node was evicted from the cluster successfully, but the node was not cleaned up. To determine what cleanup steps failed and how to recover, see the Failover Clustering application event log using Event Viewer. -Global Const $ERROR_CLUSTER_PARAMETER_MISMATCH = 5897 ; Two or more parameter values specified for a resource's properties are in conflict. -Global Const $ERROR_NODE_CANNOT_BE_CLUSTERED = 5898 ; This computer cannot be made a member of a cluster. -Global Const $ERROR_CLUSTER_WRONG_OS_VERSION = 5899 ; This computer cannot be made a member of a cluster because it does not have the correct version of Windows installed. -Global Const $ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME = 5900 ; A cluster cannot be created with the specified cluster name because that cluster name is already in use. Specify a different name for the cluster. -Global Const $ERROR_CLUSCFG_ALREADY_COMMITTED = 5901 ; The cluster configuration action has already been committed. -Global Const $ERROR_CLUSCFG_ROLLBACK_FAILED = 5902 ; The cluster configuration action could not be rolled back. -Global Const $ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT = 5903 ; The drive letter assigned to a system disk on one node conflicted with the drive letter assigned to a disk on another node. -Global Const $ERROR_CLUSTER_OLD_VERSION = 5904 ; One or more nodes in the cluster are running a version of Windows that does not support this operation. -Global Const $ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME = 5905 ; The name of the corresponding computer account doesn't match the Network Name for this resource. -Global Const $ERROR_CLUSTER_NO_NET_ADAPTERS = 5906 ; No network adapters are available. -Global Const $ERROR_CLUSTER_POISONED = 5907 ; The cluster node has been poisoned. -Global Const $ERROR_CLUSTER_GROUP_MOVING = 5908 ; The group is unable to accept the request since it is moving to another node. -Global Const $ERROR_CLUSTER_RESOURCE_TYPE_BUSY = 5909 ; The resource type cannot accept the request since is too busy performing another operation. -Global Const $ERROR_RESOURCE_CALL_TIMED_OUT = 5910 ; The call to the cluster resource DLL timed out. -Global Const $ERROR_INVALID_CLUSTER_IPV6_ADDRESS = 5911 ; The address is not valid for an IPv6 Address resource. A global IPv6 address is required, and it must match a cluster network. Compatibility addresses are not permitted. -Global Const $ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION = 5912 ; An internal cluster error occurred. A call to an invalid function was attempted. -Global Const $ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS = 5913 ; A parameter value is out of acceptable range. -Global Const $ERROR_CLUSTER_PARTIAL_SEND = 5914 ; A network error occurred while sending data to another node in the cluster. The number of bytes transmitted was less than required. -Global Const $ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION = 5915 ; An invalid cluster registry operation was attempted. -Global Const $ERROR_CLUSTER_INVALID_STRING_TERMINATION = 5916 ; An input string of characters is not properly terminated. -Global Const $ERROR_CLUSTER_INVALID_STRING_FORMAT = 5917 ; An input string of characters is not in a valid format for the data it represents. -Global Const $ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS = 5918 ; An internal cluster error occurred. A cluster database transaction was attempted while a transaction was already in progress. -Global Const $ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS = 5919 ; An internal cluster error occurred. There was an attempt to commit a cluster database transaction while no transaction was in progress. -Global Const $ERROR_CLUSTER_NULL_DATA = 5920 ; An internal cluster error occurred. Data was not properly initialized. -Global Const $ERROR_CLUSTER_PARTIAL_READ = 5921 ; An error occurred while reading from a stream of data. An unexpected number of bytes was returned. -Global Const $ERROR_CLUSTER_PARTIAL_WRITE = 5922 ; An error occurred while writing to a stream of data. The required number of bytes could not be written. -Global Const $ERROR_CLUSTER_CANT_DESERIALIZE_DATA = 5923 ; An error occurred while deserializing a stream of cluster data. -Global Const $ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT = 5924 ; One or more property values for this resource are in conflict with one or more property values associated with its dependent resource(s). -Global Const $ERROR_CLUSTER_NO_QUORUM = 5925 ; An quorum of cluster nodes was not present to form a cluster. -Global Const $ERROR_CLUSTER_INVALID_IPV6_NETWORK = 5926 ; The cluster network is not valid for an IPv6 Address resource, or it does not match the configured address. -Global Const $ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK = 5927 ; The cluster network is not valid for an IPv6 Tunnel resource. Check the configuration of the IP Address resource on which the IPv6 Tunnel resource depends. -Global Const $ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP = 5928 ; Quorum resource cannot reside in the Available Storage group. -Global Const $ERROR_DEPENDENCY_TREE_TOO_COMPLEX = 5929 ; The dependencies for this resource are nested too deeply. -Global Const $ERROR_EXCEPTION_IN_RESOURCE_CALL = 5930 ; The call into the resource DLL raised an unhandled exception. -Global Const $ERROR_CLUSTER_RHS_FAILED_INITIALIZATION = 5931 ; The RHS process failed to initialize. -Global Const $ERROR_CLUSTER_NOT_INSTALLED = 5932 ; The Failover Clustering feature is not installed on this node. -Global Const $ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE = 5933 ; The resources must be online on the same node for this operation. -Global Const $ERROR_CLUSTER_MAX_NODES_IN_CLUSTER = 5934 ; A new node cannot be added since this cluster is already at its maximum number of nodes. -Global Const $ERROR_CLUSTER_TOO_MANY_NODES = 5935 ; This cluster cannot be created since the specified number of nodes exceeds the maximum allowed limit. -Global Const $ERROR_CLUSTER_OBJECT_ALREADY_USED = 5936 ; An attempt to use the specified cluster name failed because an enabled computer object with the given name already exists in the domain. -Global Const $ERROR_NONCORE_GROUPS_FOUND = 5937 ; This cluster cannot be destroyed. It has non-core application groups which must be deleted before the cluster can be destroyed. -Global Const $ERROR_FILE_SHARE_RESOURCE_CONFLICT = 5938 ; File share associated with file share witness resource cannot be hosted by this cluster or any of its nodes. -Global Const $ERROR_CLUSTER_EVICT_INVALID_REQUEST = 5939 ; Eviction of this node is invalid at this time. Due to quorum requirements node eviction will result in cluster shutdown. If it is the last node in the cluster, destroy cluster command should be used. -Global Const $ERROR_CLUSTER_SINGLETON_RESOURCE = 5940 ; Only one instance of this resource type is allowed in the cluster. -Global Const $ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE = 5941 ; Only one instance of this resource type is allowed per resource group. -Global Const $ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED = 5942 ; The resource failed to come online due to the failure of one or more provider resources. -Global Const $ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR = 5943 ; The resource has indicated that it cannot come online on any node. -Global Const $ERROR_CLUSTER_GROUP_BUSY = 5944 ; The current operation cannot be performed on this group at this time. -Global Const $ERROR_CLUSTER_NOT_SHARED_VOLUME = 5945 ; The directory or file is not located on a cluster shared volume. -Global Const $ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR = 5946 ; The Security Descriptor must explicitly grant full control to the Builtin Administrators group. -Global Const $ERROR_CLUSTER_SHARED_VOLUMES_IN_USE = 5947 ; There is one or more shared volumes resources configured in the cluster. Those resources needs to be moved to available storage in order for operation to succeed. -Global Const $ERROR_CLUSTER_USE_SHARED_VOLUMES_API = 5948 ; This group or resource cannot be directly manipulated. Use shared volume APIs to perform desired operation. -Global Const $ERROR_CLUSTER_BACKUP_IN_PROGRESS = 5949 ; Back up is in progress. Please wait for backup completion before trying this operation again. -Global Const $ERROR_ENCRYPTION_FAILED = 6000 ; The specified file could not be encrypted. -Global Const $ERROR_DECRYPTION_FAILED = 6001 ; The specified file could not be decrypted. -Global Const $ERROR_FILE_ENCRYPTED = 6002 ; The specified file is encrypted and the user does not have the ability to decrypt it. -Global Const $ERROR_NO_RECOVERY_POLICY = 6003 ; There is no valid encryption recovery policy configured for this system. -Global Const $ERROR_NO_EFS = 6004 ; The required encryption driver is not loaded for this system. -Global Const $ERROR_WRONG_EFS = 6005 ; The file was encrypted with a different encryption driver than is currently loaded. -Global Const $ERROR_NO_USER_KEYS = 6006 ; There are no EFS keys defined for the user. -Global Const $ERROR_FILE_NOT_ENCRYPTED = 6007 ; The specified file is not encrypted. -Global Const $ERROR_NOT_EXPORT_FORMAT = 6008 ; The specified file is not in the defined EFS export format. -Global Const $ERROR_FILE_READ_ONLY = 6009 ; The specified file is read only. -Global Const $ERROR_DIR_EFS_DISALLOWED = 6010 ; The directory has been disabled for encryption. -Global Const $ERROR_EFS_SERVER_NOT_TRUSTED = 6011 ; The server is not trusted for remote encryption operation. -Global Const $ERROR_BAD_RECOVERY_POLICY = 6012 ; Recovery policy configured for this system contains invalid recovery certificate. -Global Const $ERROR_EFS_ALG_BLOB_TOO_BIG = 6013 ; The encryption algorithm used on the source file needs a bigger key buffer than the one on the destination file. -Global Const $ERROR_VOLUME_NOT_SUPPORT_EFS = 6014 ; The disk partition does not support file encryption. -Global Const $ERROR_EFS_DISABLED = 6015 ; This machine is disabled for file encryption. -Global Const $ERROR_EFS_VERSION_NOT_SUPPORT = 6016 ; A newer system is required to decrypt this encrypted file. -Global Const $ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE = 6017 ; The remote server sent an invalid response for a file being opened with Client Side Encryption. -Global Const $ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER = 6018 ; Client Side Encryption is not supported by the remote server even though it claims to support it. -Global Const $ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE = 6019 ; File is encrypted and should be opened in Client Side Encryption mode. -Global Const $ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE = 6020 ; A new encrypted file is being created and a $EFS needs to be provided. -Global Const $ERROR_CS_ENCRYPTION_FILE_NOT_CSE = 6021 ; The SMB client requested a CSE FSCTL on a non-CSE file. -Global Const $ERROR_ENCRYPTION_POLICY_DENIES_OPERATION = 6022 ; The requested operation was blocked by policy. For more information, contact your system administrator. -Global Const $ERROR_NO_BROWSER_SERVERS_FOUND = 6118 ; The list of servers for this workgroup is not currently available. -Global Const $SCHED_E_SERVICE_NOT_LOCALSYSTEM = 6200 ; The Task Scheduler service must be configured to run in the System account to function properly. Individual tasks may be configured to run in other accounts. -Global Const $ERROR_LOG_SECTOR_INVALID = 6600 ; Log service encountered an invalid log sector. -Global Const $ERROR_LOG_SECTOR_PARITY_INVALID = 6601 ; Log service encountered a log sector with invalid block parity. -Global Const $ERROR_LOG_SECTOR_REMAPPED = 6602 ; Log service encountered a remapped log sector. -Global Const $ERROR_LOG_BLOCK_INCOMPLETE = 6603 ; Log service encountered a partial or incomplete log block. -Global Const $ERROR_LOG_INVALID_RANGE = 6604 ; Log service encountered an attempt access data outside the active log range. -Global Const $ERROR_LOG_BLOCKS_EXHAUSTED = 6605 ; Log service user marshalling buffers are exhausted. -Global Const $ERROR_LOG_READ_CONTEXT_INVALID = 6606 ; Log service encountered an attempt read from a marshalling area with an invalid read context. -Global Const $ERROR_LOG_RESTART_INVALID = 6607 ; Log service encountered an invalid log restart area. -Global Const $ERROR_LOG_BLOCK_VERSION = 6608 ; Log service encountered an invalid log block version. -Global Const $ERROR_LOG_BLOCK_INVALID = 6609 ; Log service encountered an invalid log block. -Global Const $ERROR_LOG_READ_MODE_INVALID = 6610 ; Log service encountered an attempt to read the log with an invalid read mode. -Global Const $ERROR_LOG_NO_RESTART = 6611 ; Log service encountered a log stream with no restart area. -Global Const $ERROR_LOG_METADATA_CORRUPT = 6612 ; Log service encountered a corrupted metadata file. -Global Const $ERROR_LOG_METADATA_INVALID = 6613 ; Log service encountered a metadata file that could not be created by the log file system. -Global Const $ERROR_LOG_METADATA_INCONSISTENT = 6614 ; Log service encountered a metadata file with inconsistent data. -Global Const $ERROR_LOG_RESERVATION_INVALID = 6615 ; Log service encountered an attempt to erroneous allocate or dispose reservation space. -Global Const $ERROR_LOG_CANT_DELETE = 6616 ; Log service cannot delete log file or file system container. -Global Const $ERROR_LOG_CONTAINER_LIMIT_EXCEEDED = 6617 ; Log service has reached the maximum allowable containers allocated to a log file. -Global Const $ERROR_LOG_START_OF_LOG = 6618 ; Log service has attempted to read or write backward past the start of the log. -Global Const $ERROR_LOG_POLICY_ALREADY_INSTALLED = 6619 ; Log policy could not be installed because a policy of the same type is already present. -Global Const $ERROR_LOG_POLICY_NOT_INSTALLED = 6620 ; Log policy in question was not installed at the time of the request. -Global Const $ERROR_LOG_POLICY_INVALID = 6621 ; The installed set of policies on the log is invalid. -Global Const $ERROR_LOG_POLICY_CONFLICT = 6622 ; A policy on the log in question prevented the operation from completing. -Global Const $ERROR_LOG_PINNED_ARCHIVE_TAIL = 6623 ; Log space cannot be reclaimed because the log is pinned by the archive tail. -Global Const $ERROR_LOG_RECORD_NONEXISTENT = 6624 ; Log record is not a record in the log file. -Global Const $ERROR_LOG_RECORDS_RESERVED_INVALID = 6625 ; The number of reserved log records or the adjustment of the number of reserved log records is invalid. -Global Const $ERROR_LOG_SPACE_RESERVED_INVALID = 6626 ; Reserved log space or the adjustment of the log space is invalid. -Global Const $ERROR_LOG_TAIL_INVALID = 6627 ; An new or existing archive tail or base of the active log is invalid. -Global Const $ERROR_LOG_FULL = 6628 ; Log space is exhausted. -Global Const $ERROR_COULD_NOT_RESIZE_LOG = 6629 ; The log could not be set to the requested size. -Global Const $ERROR_LOG_MULTIPLEXED = 6630 ; Log is multiplexed, no direct writes to the physical log is allowed. -Global Const $ERROR_LOG_DEDICATED = 6631 ; The operation failed because the log is a dedicated log. -Global Const $ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS = 6632 ; The operation requires an archive context. -Global Const $ERROR_LOG_ARCHIVE_IN_PROGRESS = 6633 ; Log archival is in progress. -Global Const $ERROR_LOG_EPHEMERAL = 6634 ; The operation requires a non-ephemeral log, but the log is ephemeral. -Global Const $ERROR_LOG_NOT_ENOUGH_CONTAINERS = 6635 ; The log must have at least two containers before it can be read from or written to. -Global Const $ERROR_LOG_CLIENT_ALREADY_REGISTERED = 6636 ; A log client has already registered on the stream. -Global Const $ERROR_LOG_CLIENT_NOT_REGISTERED = 6637 ; A log client has not been registered on the stream. -Global Const $ERROR_LOG_FULL_HANDLER_IN_PROGRESS = 6638 ; A request has already been made to handle the log full condition. -Global Const $ERROR_LOG_CONTAINER_READ_FAILED = 6639 ; Log service encountered an error when attempting to read from a log container. -Global Const $ERROR_LOG_CONTAINER_WRITE_FAILED = 6640 ; Log service encountered an error when attempting to write to a log container. -Global Const $ERROR_LOG_CONTAINER_OPEN_FAILED = 6641 ; Log service encountered an error when attempting open a log container. -Global Const $ERROR_LOG_CONTAINER_STATE_INVALID = 6642 ; Log service encountered an invalid container state when attempting a requested action. -Global Const $ERROR_LOG_STATE_INVALID = 6643 ; Log service is not in the correct state to perform a requested action. -Global Const $ERROR_LOG_PINNED = 6644 ; Log space cannot be reclaimed because the log is pinned. -Global Const $ERROR_LOG_METADATA_FLUSH_FAILED = 6645 ; Log metadata flush failed. -Global Const $ERROR_LOG_INCONSISTENT_SECURITY = 6646 ; Security on the log and its containers is inconsistent. -Global Const $ERROR_LOG_APPENDED_FLUSH_FAILED = 6647 ; Records were appended to the log or reservation changes were made, but the log could not be flushed. -Global Const $ERROR_LOG_PINNED_RESERVATION = 6648 ; The log is pinned due to reservation consuming most of the log space. Free some reserved records to make space available. -Global Const $ERROR_INVALID_TRANSACTION = 6700 ; The transaction handle associated with this operation is not valid. -Global Const $ERROR_TRANSACTION_NOT_ACTIVE = 6701 ; The requested operation was made in the context of a transaction that is no longer active. -Global Const $ERROR_TRANSACTION_REQUEST_NOT_VALID = 6702 ; The requested operation is not valid on the Transaction object in its current state. -Global Const $ERROR_TRANSACTION_NOT_REQUESTED = 6703 ; The caller has called a response API, but the response is not expected because the TM did not issue the corresponding request to the caller. -Global Const $ERROR_TRANSACTION_ALREADY_ABORTED = 6704 ; It is too late to perform the requested operation, since the Transaction has already been aborted. -Global Const $ERROR_TRANSACTION_ALREADY_COMMITTED = 6705 ; It is too late to perform the requested operation, since the Transaction has already been committed. -Global Const $ERROR_TM_INITIALIZATION_FAILED = 6706 ; The Transaction Manager was unable to be successfully initialized. Transacted operations are not supported. -Global Const $ERROR_RESOURCEMANAGER_READ_ONLY = 6707 ; The specified ResourceManager made no changes or updates to the resource under this transaction. -Global Const $ERROR_TRANSACTION_NOT_JOINED = 6708 ; The resource manager has attempted to prepare a transaction that it has not successfully joined. -Global Const $ERROR_TRANSACTION_SUPERIOR_EXISTS = 6709 ; The Transaction object already has a superior enlistment, and the caller attempted an operation that would have created a new superior. Only a single superior enlistment is allow. -Global Const $ERROR_CRM_PROTOCOL_ALREADY_EXISTS = 6710 ; The RM tried to register a protocol that already exists. -Global Const $ERROR_TRANSACTION_PROPAGATION_FAILED = 6711 ; The attempt to propagate the Transaction failed. -Global Const $ERROR_CRM_PROTOCOL_NOT_FOUND = 6712 ; The requested propagation protocol was not registered as a CRM. -Global Const $ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER = 6713 ; The buffer passed in to PushTransaction or PullTransaction is not in a valid format. -Global Const $ERROR_CURRENT_TRANSACTION_NOT_VALID = 6714 ; The current transaction context associated with the thread is not a valid handle to a transaction object. -Global Const $ERROR_TRANSACTION_NOT_FOUND = 6715 ; The specified Transaction object could not be opened, because it was not found. -Global Const $ERROR_RESOURCEMANAGER_NOT_FOUND = 6716 ; The specified ResourceManager object could not be opened, because it was not found. -Global Const $ERROR_ENLISTMENT_NOT_FOUND = 6717 ; The specified Enlistment object could not be opened, because it was not found. -Global Const $ERROR_TRANSACTIONMANAGER_NOT_FOUND = 6718 ; The specified TransactionManager object could not be opened, because it was not found. The TransactionManager must be brought fully Online by calling RecoverTransactionManager to recover to the end of its LogFile before objects in its Transaction or ResourceManager namespaces can be opened. In addition, errors in writing records to its LogFile can cause a TransactionManager to go offline. -Global Const $ERROR_TRANSACTIONMANAGER_NOT_ONLINE = 6719 ; The object specified could not be created or opened, because its associated TransactionManager is not online. -Global Const $ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION = 6720 ; The specified TransactionManager was unable to create the objects contained in its logfile in the Ob namespace. Therefore, the TransactionManager was unable to recover. -Global Const $ERROR_TRANSACTION_NOT_ROOT = 6721 ; The call to create a superior Enlistment on this Transaction object could not be completed, because the Transaction object specified for the enlistment is a subordinate branch of the Transaction. Only the root of the Transaction can be enlisted on as a superior. -Global Const $ERROR_TRANSACTION_OBJECT_EXPIRED = 6722 ; Because the associated transaction manager or resource manager has been closed, the handle is no longer valid. -Global Const $ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED = 6723 ; The specified operation could not be performed on this Superior enlistment, because the enlistment was not created with the corresponding completion response in the NotificationMask. -Global Const $ERROR_TRANSACTION_RECORD_TOO_LONG = 6724 ; The specified operation could not be performed, because the record that would be logged was too long. This can occur because of two conditions: either there are too many Enlistments on this Transaction, or the combined RecoveryInformation being logged on behalf of those Enlistments is too long. -Global Const $ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED = 6725 ; Implicit transactions are not supported. -Global Const $ERROR_TRANSACTION_INTEGRITY_VIOLATED = 6726 ; The kernel transaction manager had to abort or forget the transaction because it blocked forward progress. -Global Const $ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH = 6727 ; The TransactionManager identity that was supplied did not match the one recorded in the TransactionManager's log file. -Global Const $ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT = 6728 ; This snapshot operation cannot continue because a transactional resource manager cannot be frozen in its current state. Please try again. -Global Const $ERROR_TRANSACTION_MUST_WRITETHROUGH = 6729 ; The transaction cannot be enlisted on with the specified EnlistmentMask, because the transaction has already completed the PrePrepare phase. In order to ensure correctness, the ResourceManager must switch to a write-through mode and cease caching data within this transaction. Enlisting for only subsequent transaction phases may still succeed. -Global Const $ERROR_TRANSACTION_NO_SUPERIOR = 6730 ; The transaction does not have a superior enlistment. -Global Const $ERROR_TRANSACTIONAL_CONFLICT = 6800 ; The function attempted to use a name that is reserved for use by another transaction. -Global Const $ERROR_RM_NOT_ACTIVE = 6801 ; Transaction support within the specified resource manager is not started or was shut down due to an error. -Global Const $ERROR_RM_METADATA_CORRUPT = 6802 ; The metadata of the RM has been corrupted. The RM will not function. -Global Const $ERROR_DIRECTORY_NOT_RM = 6803 ; The specified directory does not contain a resource manager. -Global Const $ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE = 6805 ; The remote server or share does not support transacted file operations. -Global Const $ERROR_LOG_RESIZE_INVALID_SIZE = 6806 ; The requested log size is invalid. -Global Const $ERROR_OBJECT_NO_LONGER_EXISTS = 6807 ; The object (file, stream, link) corresponding to the handle has been deleted by a Transaction Savepoint Rollback. -Global Const $ERROR_STREAM_MINIVERSION_NOT_FOUND = 6808 ; The specified file miniversion was not found for this transacted file open. -Global Const $ERROR_STREAM_MINIVERSION_NOT_VALID = 6809 ; The specified file miniversion was found but has been invalidated. Most likely cause is a transaction savepoint rollback. -Global Const $ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION = 6810 ; A miniversion may only be opened in the context of the transaction that created it. -Global Const $ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT = 6811 ; It is not possible to open a miniversion with modify access. -Global Const $ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS = 6812 ; It is not possible to create any more miniversions for this stream. -Global Const $ERROR_REMOTE_FILE_VERSION_MISMATCH = 6814 ; The remote server sent mismatching version number or Fid for a file opened with transactions. -Global Const $ERROR_HANDLE_NO_LONGER_VALID = 6815 ; The handle has been invalidated by a transaction. The most likely cause is the presence of memory mapping on a file or an open handle when the transaction ended or rolled back to savepoint. -Global Const $ERROR_NO_TXF_METADATA = 6816 ; There is no transaction metadata on the file. -Global Const $ERROR_LOG_CORRUPTION_DETECTED = 6817 ; The log data is corrupt. -Global Const $ERROR_CANT_RECOVER_WITH_HANDLE_OPEN = 6818 ; The file can't be recovered because there is a handle still open on it. -Global Const $ERROR_RM_DISCONNECTED = 6819 ; The transaction outcome is unavailable because the resource manager responsible for it has disconnected. -Global Const $ERROR_ENLISTMENT_NOT_SUPERIOR = 6820 ; The request was rejected because the enlistment in question is not a superior enlistment. -Global Const $ERROR_RECOVERY_NOT_NEEDED = 6821 ; The transactional resource manager is already consistent. Recovery is not needed. -Global Const $ERROR_RM_ALREADY_STARTED = 6822 ; The transactional resource manager has already been started. -Global Const $ERROR_FILE_IDENTITY_NOT_PERSISTENT = 6823 ; The file cannot be opened transactionally, because its identity depends on the outcome of an unresolved transaction. -Global Const $ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY = 6824 ; The operation cannot be performed because another transaction is depending on the fact that this property will not change. -Global Const $ERROR_CANT_CROSS_RM_BOUNDARY = 6825 ; The operation would involve a single file with two transactional resource managers and is therefore not allowed. -Global Const $ERROR_TXF_DIR_NOT_EMPTY = 6826 ; The $Txf directory must be empty for this operation to succeed. -Global Const $ERROR_INDOUBT_TRANSACTIONS_EXIST = 6827 ; The operation would leave a transactional resource manager in an inconsistent state and is therefore not allowed. -Global Const $ERROR_TM_VOLATILE = 6828 ; The operation could not be completed because the transaction manager does not have a log. -Global Const $ERROR_ROLLBACK_TIMER_EXPIRED = 6829 ; A rollback could not be scheduled because a previously scheduled rollback has already executed or been queued for execution. -Global Const $ERROR_TXF_ATTRIBUTE_CORRUPT = 6830 ; The transactional metadata attribute on the file or directory is corrupt and unreadable. -Global Const $ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION = 6831 ; The encryption operation could not be completed because a transaction is active. -Global Const $ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED = 6832 ; This object is not allowed to be opened in a transaction. -Global Const $ERROR_LOG_GROWTH_FAILED = 6833 ; An attempt to create space in the transactional resource manager's log failed. The failure status has been recorded in the event log. -Global Const $ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE = 6834 ; Memory mapping (creating a mapped section) a remote file under a transaction is not supported. -Global Const $ERROR_TXF_METADATA_ALREADY_PRESENT = 6835 ; Transaction metadata is already present on this file and cannot be superseded. -Global Const $ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET = 6836 ; A transaction scope could not be entered because the scope handler has not been initialized. -Global Const $ERROR_TRANSACTION_REQUIRED_PROMOTION = 6837 ; Promotion was required in order to allow the resource manager to enlist, but the transaction was set to disallow it. -Global Const $ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION = 6838 ; This file is open for modification in an unresolved transaction and may be opened for execute only by a transacted reader. -Global Const $ERROR_TRANSACTIONS_NOT_FROZEN = 6839 ; The request to thaw frozen transactions was ignored because transactions had not previously been frozen. -Global Const $ERROR_TRANSACTION_FREEZE_IN_PROGRESS = 6840 ; Transactions cannot be frozen because a freeze is already in progress. -Global Const $ERROR_NOT_SNAPSHOT_VOLUME = 6841 ; The target volume is not a snapshot volume. This operation is only valid on a volume mounted as a snapshot. -Global Const $ERROR_NO_SAVEPOINT_WITH_OPEN_FILES = 6842 ; The savepoint operation failed because files are open on the transaction. This is not permitted. -Global Const $ERROR_DATA_LOST_REPAIR = 6843 ; Windows has discovered corruption in a file, and that file has since been repaired. Data loss may have occurred. -Global Const $ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION = 6844 ; The sparse operation could not be completed because a transaction is active on the file. -Global Const $ERROR_TM_IDENTITY_MISMATCH = 6845 ; The call to create a TransactionManager object failed because the Tm Identity stored in the logfile does not match the Tm Identity that was passed in as an argument. -Global Const $ERROR_FLOATED_SECTION = 6846 ; I/O was attempted on a section object that has been floated as a result of a transaction ending. There is no valid data. -Global Const $ERROR_CANNOT_ACCEPT_TRANSACTED_WORK = 6847 ; The transactional resource manager cannot currently accept transacted work due to a transient condition such as low resources. -Global Const $ERROR_CANNOT_ABORT_TRANSACTIONS = 6848 ; The transactional resource manager had too many transactions outstanding that could not be aborted. The transactional resource manager has been shut down. -Global Const $ERROR_BAD_CLUSTERS = 6849 ; The operation could not be completed due to bad clusters on disk. -Global Const $ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION = 6850 ; The compression operation could not be completed because a transaction is active on the file. -Global Const $ERROR_VOLUME_DIRTY = 6851 ; The operation could not be completed because the volume is dirty. Please run chkdsk and try again. -Global Const $ERROR_NO_LINK_TRACKING_IN_TRANSACTION = 6852 ; The link tracking operation could not be completed because a transaction is active. -Global Const $ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION = 6853 ; This operation cannot be performed in a transaction. -Global Const $ERROR_EXPIRED_HANDLE = 6854 ; The handle is no longer properly associated with its transaction. It may have been opened in a transactional resource manager that was subsequently forced to restart. Please close the handle and open a new one. -Global Const $ERROR_TRANSACTION_NOT_ENLISTED = 6855 ; The specified operation could not be performed because the resource manager is not enlisted in the transaction. -Global Const $ERROR_CTX_WINSTATION_NAME_INVALID = 7001 ; The specified session name is invalid. -Global Const $ERROR_CTX_INVALID_PD = 7002 ; The specified protocol driver is invalid. -Global Const $ERROR_CTX_PD_NOT_FOUND = 7003 ; The specified protocol driver was not found in the system path. -Global Const $ERROR_CTX_WD_NOT_FOUND = 7004 ; The specified terminal connection driver was not found in the system path. -Global Const $ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY = 7005 ; A registry key for event logging could not be created for this session. -Global Const $ERROR_CTX_SERVICE_NAME_COLLISION = 7006 ; A service with the same name already exists on the system. -Global Const $ERROR_CTX_CLOSE_PENDING = 7007 ; A close operation is pending on the session. -Global Const $ERROR_CTX_NO_OUTBUF = 7008 ; There are no free output buffers available. -Global Const $ERROR_CTX_MODEM_INF_NOT_FOUND = 7009 ; The MODEM.INF file was not found. -Global Const $ERROR_CTX_INVALID_MODEMNAME = 7010 ; The modem name was not found in MODEM.INF. -Global Const $ERROR_CTX_MODEM_RESPONSE_ERROR = 7011 ; The modem did not accept the command sent to it. Verify that the configured modem name matches the attached modem. -Global Const $ERROR_CTX_MODEM_RESPONSE_TIMEOUT = 7012 ; The modem did not respond to the command sent to it. Verify that the modem is properly cabled and powered on. -Global Const $ERROR_CTX_MODEM_RESPONSE_NO_CARRIER = 7013 ; Carrier detect has failed or carrier has been dropped due to disconnect. -Global Const $ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE = 7014 ; Dial tone not detected within the required time. Verify that the phone cable is properly attached and functional. -Global Const $ERROR_CTX_MODEM_RESPONSE_BUSY = 7015 ; Busy signal detected at remote site on callback. -Global Const $ERROR_CTX_MODEM_RESPONSE_VOICE = 7016 ; Voice detected at remote site on callback. -Global Const $ERROR_CTX_TD_ERROR = 7017 ; Transport driver error. -Global Const $ERROR_CTX_WINSTATION_NOT_FOUND = 7022 ; The specified session cannot be found. -Global Const $ERROR_CTX_WINSTATION_ALREADY_EXISTS = 7023 ; The specified session name is already in use. -Global Const $ERROR_CTX_WINSTATION_BUSY = 7024 ; The requested operation cannot be completed because the terminal connection is currently busy processing a connect, disconnect, reset, or delete operation. -Global Const $ERROR_CTX_BAD_VIDEO_MODE = 7025 ; An attempt has been made to connect to a session whose video mode is not supported by the current client. -Global Const $ERROR_CTX_GRAPHICS_INVALID = 7035 ; The application attempted to enable DOS graphics mode. DOS graphics mode is not supported. -Global Const $ERROR_CTX_LOGON_DISABLED = 7037 ; Your interactive logon privilege has been disabled. Please contact your administrator. -Global Const $ERROR_CTX_NOT_CONSOLE = 7038 ; The requested operation can be performed only on the system console. This is most often the result of a driver or system DLL requiring direct console access. -Global Const $ERROR_CTX_CLIENT_QUERY_TIMEOUT = 7040 ; The client failed to respond to the server connect message. -Global Const $ERROR_CTX_CONSOLE_DISCONNECT = 7041 ; Disconnecting the console session is not supported. -Global Const $ERROR_CTX_CONSOLE_CONNECT = 7042 ; Reconnecting a disconnected session to the console is not supported. -Global Const $ERROR_CTX_SHADOW_DENIED = 7044 ; The request to control another session remotely was denied. -Global Const $ERROR_CTX_WINSTATION_ACCESS_DENIED = 7045 ; The requested session access is denied. -Global Const $ERROR_CTX_INVALID_WD = 7049 ; The specified terminal connection driver is invalid. -Global Const $ERROR_CTX_SHADOW_INVALID = 7050 ; The requested session cannot be controlled remotely. This may be because the session is disconnected or does not currently have a user logged on. -Global Const $ERROR_CTX_SHADOW_DISABLED = 7051 ; The requested session is not configured to allow remote control. -Global Const $ERROR_CTX_CLIENT_LICENSE_IN_USE = 7052 ; Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number is currently being used by another user. Please call your system administrator to obtain a unique license number. -Global Const $ERROR_CTX_CLIENT_LICENSE_NOT_SET = 7053 ; Your request to connect to this Terminal Server has been rejected. Your Terminal Server client license number has not been entered for this copy of the Terminal Server client. Please contact your system administrator. -Global Const $ERROR_CTX_LICENSE_NOT_AVAILABLE = 7054 ; The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator. -Global Const $ERROR_CTX_LICENSE_CLIENT_INVALID = 7055 ; The client you are using is not licensed to use this system. Your logon request is denied. -Global Const $ERROR_CTX_LICENSE_EXPIRED = 7056 ; The system license has expired. Your logon request is denied. -Global Const $ERROR_CTX_SHADOW_NOT_RUNNING = 7057 ; Remote control could not be terminated because the specified session is not currently being remotely controlled. -Global Const $ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE = 7058 ; The remote control of the console was terminated because the display mode was changed. Changing the display mode in a remote control session is not supported. -Global Const $ERROR_ACTIVATION_COUNT_EXCEEDED = 7059 ; Activation has already been reset the maximum number of times for this installation. Your activation timer will not be cleared. -Global Const $ERROR_CTX_WINSTATIONS_DISABLED = 7060 ; Remote logins are currently disabled. -Global Const $ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED = 7061 ; You do not have the proper encryption level to access this Session. -Global Const $ERROR_CTX_SESSION_IN_USE = 7062 ; The user %s\\%s is currently logged on to this computer. Only the current user or an administrator can log on to this computer. -Global Const $ERROR_CTX_NO_FORCE_LOGOFF = 7063 ; The user %s\\%s is already logged on to the console of this computer. You do not have permission to log in at this time. To resolve this issue, contact %s\\%s and have them log off. -Global Const $ERROR_CTX_ACCOUNT_RESTRICTION = 7064 ; Unable to log you on because of an account restriction. -Global Const $ERROR_RDP_PROTOCOL_ERROR = 7065 ; The RDP protocol component %2 detected an error in the protocol stream and has disconnected the client. -Global Const $ERROR_CTX_CDM_CONNECT = 7066 ; The Client Drive Mapping Service Has Connected on Terminal Connection. -Global Const $ERROR_CTX_CDM_DISCONNECT = 7067 ; The Client Drive Mapping Service Has Disconnected on Terminal Connection. -Global Const $ERROR_CTX_SECURITY_LAYER_ERROR = 7068 ; The Terminal Server security layer detected an error in the protocol stream and has disconnected the client. -Global Const $ERROR_TS_INCOMPATIBLE_SESSIONS = 7069 ; The target session is incompatible with the current session. -Global Const $FRS_ERR_INVALID_API_SEQUENCE = 8001 ; The file replication service API was called incorrectly. -Global Const $FRS_ERR_STARTING_SERVICE = 8002 ; The file replication service cannot be started. -Global Const $FRS_ERR_STOPPING_SERVICE = 8003 ; The file replication service cannot be stopped. -Global Const $FRS_ERR_INTERNAL_API = 8004 ; The file replication service API terminated the request. The event log may have more information. -Global Const $FRS_ERR_INTERNAL = 8005 ; The file replication service terminated the request. The event log may have more information. -Global Const $FRS_ERR_SERVICE_COMM = 8006 ; The file replication service cannot be contacted. The event log may have more information. -Global Const $FRS_ERR_INSUFFICIENT_PRIV = 8007 ; The file replication service cannot satisfy the request because the user has insufficient privileges. The event log may have more information. -Global Const $FRS_ERR_AUTHENTICATION = 8008 ; The file replication service cannot satisfy the request because authenticated RPC is not available. The event log may have more information. -Global Const $FRS_ERR_PARENT_INSUFFICIENT_PRIV = 8009 ; The file replication service cannot satisfy the request because the user has insufficient privileges on the domain controller. The event log may have more information. -Global Const $FRS_ERR_PARENT_AUTHENTICATION = 8010 ; The file replication service cannot satisfy the request because authenticated RPC is not available on the domain controller. The event log may have more information. -Global Const $FRS_ERR_CHILD_TO_PARENT_COMM = 8011 ; The file replication service cannot communicate with the file replication service on the domain controller. The event log may have more information. -Global Const $FRS_ERR_PARENT_TO_CHILD_COMM = 8012 ; The file replication service on the domain controller cannot communicate with the file replication service on this computer. The event log may have more information. -Global Const $FRS_ERR_SYSVOL_POPULATE = 8013 ; The file replication service cannot populate the system volume because of an internal error. The event log may have more information. -Global Const $FRS_ERR_SYSVOL_POPULATE_TIMEOUT = 8014 ; The file replication service cannot populate the system volume because of an internal timeout. The event log may have more information. -Global Const $FRS_ERR_SYSVOL_IS_BUSY = 8015 ; The file replication service cannot process the request. The system volume is busy with a previous request. -Global Const $FRS_ERR_SYSVOL_DEMOTE = 8016 ; The file replication service cannot stop replicating the system volume because of an internal error. The event log may have more information. -Global Const $FRS_ERR_INVALID_SERVICE_PARAMETER = 8017 ; The file replication service detected an invalid parameter. -Global Const $ERROR_DS_NOT_INSTALLED = 8200 ; An error occurred while installing the directory service. For more information, see the event log. -Global Const $ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY = 8201 ; The directory service evaluated group memberships locally. -Global Const $ERROR_DS_NO_ATTRIBUTE_OR_VALUE = 8202 ; The specified directory service attribute or value does not exist. -Global Const $ERROR_DS_INVALID_ATTRIBUTE_SYNTAX = 8203 ; The attribute syntax specified to the directory service is invalid. -Global Const $ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED = 8204 ; The attribute type specified to the directory service is not defined. -Global Const $ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS = 8205 ; The specified directory service attribute or value already exists. -Global Const $ERROR_DS_BUSY = 8206 ; The directory service is busy. -Global Const $ERROR_DS_UNAVAILABLE = 8207 ; The directory service is unavailable. -Global Const $ERROR_DS_NO_RIDS_ALLOCATED = 8208 ; The directory service was unable to allocate a relative identifier. -Global Const $ERROR_DS_NO_MORE_RIDS = 8209 ; The directory service has exhausted the pool of relative identifiers. -Global Const $ERROR_DS_INCORRECT_ROLE_OWNER = 8210 ; The requested operation could not be performed because the directory service is not the master for that type of operation. -Global Const $ERROR_DS_RIDMGR_INIT_ERROR = 8211 ; The directory service was unable to initialize the subsystem that allocates relative identifiers. -Global Const $ERROR_DS_OBJ_CLASS_VIOLATION = 8212 ; The requested operation did not satisfy one or more constraints associated with the class of the object. -Global Const $ERROR_DS_CANT_ON_NON_LEAF = 8213 ; The directory service can perform the requested operation only on a leaf object. -Global Const $ERROR_DS_CANT_ON_RDN = 8214 ; The directory service cannot perform the requested operation on the RDN attribute of an object. -Global Const $ERROR_DS_CANT_MOD_OBJ_CLASS = 8215 ; The directory service detected an attempt to modify the object class of an object. -Global Const $ERROR_DS_CROSS_DOM_MOVE_ERROR = 8216 ; The requested cross-domain move operation could not be performed. -Global Const $ERROR_DS_GC_NOT_AVAILABLE = 8217 ; Unable to contact the global catalog server. -Global Const $ERROR_SHARED_POLICY = 8218 ; The policy object is shared and can only be modified at the root. -Global Const $ERROR_POLICY_OBJECT_NOT_FOUND = 8219 ; The policy object does not exist. -Global Const $ERROR_POLICY_ONLY_IN_DS = 8220 ; The requested policy information is only in the directory service. -Global Const $ERROR_PROMOTION_ACTIVE = 8221 ; A domain controller promotion is currently active. -Global Const $ERROR_NO_PROMOTION_ACTIVE = 8222 ; A domain controller promotion is not currently active. -Global Const $ERROR_DS_OPERATIONS_ERROR = 8224 ; An operations error occurred. -Global Const $ERROR_DS_PROTOCOL_ERROR = 8225 ; A protocol error occurred. -Global Const $ERROR_DS_TIMELIMIT_EXCEEDED = 8226 ; The time limit for this request was exceeded. -Global Const $ERROR_DS_SIZELIMIT_EXCEEDED = 8227 ; The size limit for this request was exceeded. -Global Const $ERROR_DS_ADMIN_LIMIT_EXCEEDED = 8228 ; The administrative limit for this request was exceeded. -Global Const $ERROR_DS_COMPARE_FALSE = 8229 ; The compare response was false. -Global Const $ERROR_DS_COMPARE_TRUE = 8230 ; The compare response was true. -Global Const $ERROR_DS_AUTH_METHOD_NOT_SUPPORTED = 8231 ; The requested authentication method is not supported by the server. -Global Const $ERROR_DS_STRONG_AUTH_REQUIRED = 8232 ; A more secure authentication method is required for this server. -Global Const $ERROR_DS_INAPPROPRIATE_AUTH = 8233 ; Inappropriate authentication. -Global Const $ERROR_DS_AUTH_UNKNOWN = 8234 ; The authentication mechanism is unknown. -Global Const $ERROR_DS_REFERRAL = 8235 ; A referral was returned from the server. -Global Const $ERROR_DS_UNAVAILABLE_CRIT_EXTENSION = 8236 ; The server does not support the requested critical extension. -Global Const $ERROR_DS_CONFIDENTIALITY_REQUIRED = 8237 ; This request requires a secure connection. -Global Const $ERROR_DS_INAPPROPRIATE_MATCHING = 8238 ; Inappropriate matching. -Global Const $ERROR_DS_CONSTRAINT_VIOLATION = 8239 ; A constraint violation occurred. -Global Const $ERROR_DS_NO_SUCH_OBJECT = 8240 ; There is no such object on the server. -Global Const $ERROR_DS_ALIAS_PROBLEM = 8241 ; There is an alias problem. -Global Const $ERROR_DS_INVALID_DN_SYNTAX = 8242 ; An invalid dn syntax has been specified. -Global Const $ERROR_DS_IS_LEAF = 8243 ; The object is a leaf object. -Global Const $ERROR_DS_ALIAS_DEREF_PROBLEM = 8244 ; There is an alias dereferencing problem. -Global Const $ERROR_DS_UNWILLING_TO_PERFORM = 8245 ; The server is unwilling to process the request. -Global Const $ERROR_DS_LOOP_DETECT = 8246 ; A loop has been detected. -Global Const $ERROR_DS_NAMING_VIOLATION = 8247 ; There is a naming violation. -Global Const $ERROR_DS_OBJECT_RESULTS_TOO_LARGE = 8248 ; The result set is too large. -Global Const $ERROR_DS_AFFECTS_MULTIPLE_DSAS = 8249 ; The operation affects multiple DSAs. -Global Const $ERROR_DS_SERVER_DOWN = 8250 ; The server is not operational. -Global Const $ERROR_DS_LOCAL_ERROR = 8251 ; A local error has occurred. -Global Const $ERROR_DS_ENCODING_ERROR = 8252 ; An encoding error has occurred. -Global Const $ERROR_DS_DECODING_ERROR = 8253 ; A decoding error has occurred. -Global Const $ERROR_DS_FILTER_UNKNOWN = 8254 ; The search filter cannot be recognized. -Global Const $ERROR_DS_PARAM_ERROR = 8255 ; One or more parameters are illegal. -Global Const $ERROR_DS_NOT_SUPPORTED = 8256 ; The specified method is not supported. -Global Const $ERROR_DS_NO_RESULTS_RETURNED = 8257 ; No results were returned. -Global Const $ERROR_DS_CONTROL_NOT_FOUND = 8258 ; The specified control is not supported by the server. -Global Const $ERROR_DS_CLIENT_LOOP = 8259 ; A referral loop was detected by the client. -Global Const $ERROR_DS_REFERRAL_LIMIT_EXCEEDED = 8260 ; The preset referral limit was exceeded. -Global Const $ERROR_DS_SORT_CONTROL_MISSING = 8261 ; The search requires a SORT control. -Global Const $ERROR_DS_OFFSET_RANGE_ERROR = 8262 ; The search results exceed the offset range specified. -Global Const $ERROR_DS_ROOT_MUST_BE_NC = 8301 ; The root object must be the head of a naming context. The root object cannot have an instantiated parent. -Global Const $ERROR_DS_ADD_REPLICA_INHIBITED = 8302 ; The add replica operation cannot be performed. The naming context must be writeable in order to create the replica. -Global Const $ERROR_DS_ATT_NOT_DEF_IN_SCHEMA = 8303 ; A reference to an attribute that is not defined in the schema occurred. -Global Const $ERROR_DS_MAX_OBJ_SIZE_EXCEEDED = 8304 ; The maximum size of an object has been exceeded. -Global Const $ERROR_DS_OBJ_STRING_NAME_EXISTS = 8305 ; An attempt was made to add an object to the directory with a name that is already in use. -Global Const $ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA = 8306 ; An attempt was made to add an object of a class that does not have an RDN defined in the schema. -Global Const $ERROR_DS_RDN_DOESNT_MATCH_SCHEMA = 8307 ; An attempt was made to add an object using an RDN that is not the RDN defined in the schema. -Global Const $ERROR_DS_NO_REQUESTED_ATTS_FOUND = 8308 ; None of the requested attributes were found on the objects. -Global Const $ERROR_DS_USER_BUFFER_TO_SMALL = 8309 ; The user buffer is too small. -Global Const $ERROR_DS_ATT_IS_NOT_ON_OBJ = 8310 ; The attribute specified in the operation is not present on the object. -Global Const $ERROR_DS_ILLEGAL_MOD_OPERATION = 8311 ; Illegal modify operation. Some aspect of the modification is not permitted. -Global Const $ERROR_DS_OBJ_TOO_LARGE = 8312 ; The specified object is too large. -Global Const $ERROR_DS_BAD_INSTANCE_TYPE = 8313 ; The specified instance type is not valid. -Global Const $ERROR_DS_MASTERDSA_REQUIRED = 8314 ; The operation must be performed at a master DSA. -Global Const $ERROR_DS_OBJECT_CLASS_REQUIRED = 8315 ; The object class attribute must be specified. -Global Const $ERROR_DS_MISSING_REQUIRED_ATT = 8316 ; A required attribute is missing. -Global Const $ERROR_DS_ATT_NOT_DEF_FOR_CLASS = 8317 ; An attempt was made to modify an object to include an attribute that is not legal for its class. -Global Const $ERROR_DS_ATT_ALREADY_EXISTS = 8318 ; The specified attribute is already present on the object. -Global Const $ERROR_DS_CANT_ADD_ATT_VALUES = 8320 ; The specified attribute is not present, or has no values. -Global Const $ERROR_DS_SINGLE_VALUE_CONSTRAINT = 8321 ; Multiple values were specified for an attribute that can have only one value. -Global Const $ERROR_DS_RANGE_CONSTRAINT = 8322 ; A value for the attribute was not in the acceptable range of values. -Global Const $ERROR_DS_ATT_VAL_ALREADY_EXISTS = 8323 ; The specified value already exists. -Global Const $ERROR_DS_CANT_REM_MISSING_ATT = 8324 ; The attribute cannot be removed because it is not present on the object. -Global Const $ERROR_DS_CANT_REM_MISSING_ATT_VAL = 8325 ; The attribute value cannot be removed because it is not present on the object. -Global Const $ERROR_DS_ROOT_CANT_BE_SUBREF = 8326 ; The specified root object cannot be a subreference. -Global Const $ERROR_DS_NO_CHAINING = 8327 ; Chaining is not permitted. -Global Const $ERROR_DS_NO_CHAINED_EVAL = 8328 ; Chained evaluation is not permitted. -Global Const $ERROR_DS_NO_PARENT_OBJECT = 8329 ; The operation could not be performed because the object's parent is either uninstantiated or deleted. -Global Const $ERROR_DS_PARENT_IS_AN_ALIAS = 8330 ; Having a parent that is an alias is not permitted. Aliases are leaf objects. -Global Const $ERROR_DS_CANT_MIX_MASTER_AND_REPS = 8331 ; The object and parent must be of the same type, either both masters or both replicas. -Global Const $ERROR_DS_CHILDREN_EXIST = 8332 ; The operation cannot be performed because child objects exist. This operation can only be performed on a leaf object. -Global Const $ERROR_DS_OBJ_NOT_FOUND = 8333 ; Directory object not found. -Global Const $ERROR_DS_ALIASED_OBJ_MISSING = 8334 ; The aliased object is missing. -Global Const $ERROR_DS_BAD_NAME_SYNTAX = 8335 ; The object name has bad syntax. -Global Const $ERROR_DS_ALIAS_POINTS_TO_ALIAS = 8336 ; It is not permitted for an alias to refer to another alias. -Global Const $ERROR_DS_CANT_DEREF_ALIAS = 8337 ; The alias cannot be dereferenced. -Global Const $ERROR_DS_OUT_OF_SCOPE = 8338 ; The operation is out of scope. -Global Const $ERROR_DS_OBJECT_BEING_REMOVED = 8339 ; The operation cannot continue because the object is in the process of being removed. -Global Const $ERROR_DS_CANT_DELETE_DSA_OBJ = 8340 ; The DSA object cannot be deleted. -Global Const $ERROR_DS_GENERIC_ERROR = 8341 ; A directory service error has occurred. -Global Const $ERROR_DS_DSA_MUST_BE_INT_MASTER = 8342 ; The operation can only be performed on an internal master DSA object. -Global Const $ERROR_DS_CLASS_NOT_DSA = 8343 ; The object must be of class DSA. -Global Const $ERROR_DS_INSUFF_ACCESS_RIGHTS = 8344 ; Insufficient access rights to perform the operation. -Global Const $ERROR_DS_ILLEGAL_SUPERIOR = 8345 ; The object cannot be added because the parent is not on the list of possible superiors. -Global Const $ERROR_DS_ATTRIBUTE_OWNED_BY_SAM = 8346 ; Access to the attribute is not permitted because the attribute is owned by the Security Accounts Manager (SAM). -Global Const $ERROR_DS_NAME_TOO_MANY_PARTS = 8347 ; The name has too many parts. -Global Const $ERROR_DS_NAME_TOO_LONG = 8348 ; The name is too long. -Global Const $ERROR_DS_NAME_VALUE_TOO_LONG = 8349 ; The name value is too long. -Global Const $ERROR_DS_NAME_UNPARSEABLE = 8350 ; The directory service encountered an error parsing a name. -Global Const $ERROR_DS_NAME_TYPE_UNKNOWN = 8351 ; The directory service cannot get the attribute type for a name. -Global Const $ERROR_DS_NOT_AN_OBJECT = 8352 ; The name does not identify an object; the name identifies a phantom. -Global Const $ERROR_DS_SEC_DESC_TOO_SHORT = 8353 ; The security descriptor is too short. -Global Const $ERROR_DS_SEC_DESC_INVALID = 8354 ; The security descriptor is invalid. -Global Const $ERROR_DS_NO_DELETED_NAME = 8355 ; Failed to create name for deleted object. -Global Const $ERROR_DS_SUBREF_MUST_HAVE_PARENT = 8356 ; The parent of a new subref must exist. -Global Const $ERROR_DS_NCNAME_MUST_BE_NC = 8357 ; The object must be a naming context. -Global Const $ERROR_DS_CANT_ADD_SYSTEM_ONLY = 8358 ; It is not permitted to add an attribute which is owned by the system. -Global Const $ERROR_DS_CLASS_MUST_BE_CONCRETE = 8359 ; The class of the object must be structural; you cannot instantiate an abstract class. -Global Const $ERROR_DS_INVALID_DMD = 8360 ; The schema object could not be found. -Global Const $ERROR_DS_OBJ_GUID_EXISTS = 8361 ; A local object with this GUID (dead or alive) already exists. -Global Const $ERROR_DS_NOT_ON_BACKLINK = 8362 ; The operation cannot be performed on a back link. -Global Const $ERROR_DS_NO_CROSSREF_FOR_NC = 8363 ; The cross reference for the specified naming context could not be found. -Global Const $ERROR_DS_SHUTTING_DOWN = 8364 ; The operation could not be performed because the directory service is shutting down. -Global Const $ERROR_DS_UNKNOWN_OPERATION = 8365 ; The directory service request is invalid. -Global Const $ERROR_DS_INVALID_ROLE_OWNER = 8366 ; The role owner attribute could not be read. -Global Const $ERROR_DS_COULDNT_CONTACT_FSMO = 8367 ; The requested FSMO operation failed. The current FSMO holder could not be contacted. -Global Const $ERROR_DS_CROSS_NC_DN_RENAME = 8368 ; Modification of a DN across a naming context is not permitted. -Global Const $ERROR_DS_CANT_MOD_SYSTEM_ONLY = 8369 ; The attribute cannot be modified because it is owned by the system. -Global Const $ERROR_DS_REPLICATOR_ONLY = 8370 ; Only the replicator can perform this function. -Global Const $ERROR_DS_OBJ_CLASS_NOT_DEFINED = 8371 ; The specified class is not defined. -Global Const $ERROR_DS_OBJ_CLASS_NOT_SUBCLASS = 8372 ; The specified class is not a subclass. -Global Const $ERROR_DS_NAME_REFERENCE_INVALID = 8373 ; The name reference is invalid. -Global Const $ERROR_DS_CROSS_REF_EXISTS = 8374 ; A cross reference already exists. -Global Const $ERROR_DS_CANT_DEL_MASTER_CROSSREF = 8375 ; It is not permitted to delete a master cross reference. -Global Const $ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD = 8376 ; Subtree notifications are only supported on NC heads. -Global Const $ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX = 8377 ; Notification filter is too complex. -Global Const $ERROR_DS_DUP_RDN = 8378 ; Schema update failed: duplicate RDN. -Global Const $ERROR_DS_DUP_OID = 8379 ; Schema update failed: duplicate OID. -Global Const $ERROR_DS_DUP_MAPI_ID = 8380 ; Schema update failed: duplicate MAPI identifier. -Global Const $ERROR_DS_DUP_SCHEMA_ID_GUID = 8381 ; Schema update failed: duplicate schema-id GUID. -Global Const $ERROR_DS_DUP_LDAP_DISPLAY_NAME = 8382 ; Schema update failed: duplicate LDAP display name. -Global Const $ERROR_DS_SEMANTIC_ATT_TEST = 8383 ; Schema update failed: range-lower less than range upper. -Global Const $ERROR_DS_SYNTAX_MISMATCH = 8384 ; Schema update failed: syntax mismatch. -Global Const $ERROR_DS_EXISTS_IN_MUST_HAVE = 8385 ; Schema deletion failed: attribute is used in must-contain. -Global Const $ERROR_DS_EXISTS_IN_MAY_HAVE = 8386 ; Schema deletion failed: attribute is used in may-contain. -Global Const $ERROR_DS_NONEXISTENT_MAY_HAVE = 8387 ; Schema update failed: attribute in may-contain does not exist. -Global Const $ERROR_DS_NONEXISTENT_MUST_HAVE = 8388 ; Schema update failed: attribute in must-contain does not exist. -Global Const $ERROR_DS_AUX_CLS_TEST_FAIL = 8389 ; Schema update failed: class in aux-class list does not exist or is not an auxiliary class. -Global Const $ERROR_DS_NONEXISTENT_POSS_SUP = 8390 ; Schema update failed: class in poss-superiors does not exist. -Global Const $ERROR_DS_SUB_CLS_TEST_FAIL = 8391 ; Schema update failed: class in subclassof list does not exist or does not satisfy hierarchy rules. -Global Const $ERROR_DS_BAD_RDN_ATT_ID_SYNTAX = 8392 ; Schema update failed: Rdn-Att-Id has wrong syntax. -Global Const $ERROR_DS_EXISTS_IN_AUX_CLS = 8393 ; Schema deletion failed: class is used as auxiliary class. -Global Const $ERROR_DS_EXISTS_IN_SUB_CLS = 8394 ; Schema deletion failed: class is used as sub class. -Global Const $ERROR_DS_EXISTS_IN_POSS_SUP = 8395 ; Schema deletion failed: class is used as poss superior. -Global Const $ERROR_DS_RECALCSCHEMA_FAILED = 8396 ; Schema update failed in recalculating validation cache. -Global Const $ERROR_DS_TREE_DELETE_NOT_FINISHED = 8397 ; The tree deletion is not finished. The request must be made again to continue deleting the tree. -Global Const $ERROR_DS_CANT_DELETE = 8398 ; The requested delete operation could not be performed. -Global Const $ERROR_DS_ATT_SCHEMA_REQ_ID = 8399 ; Cannot read the governs class identifier for the schema record. -Global Const $ERROR_DS_BAD_ATT_SCHEMA_SYNTAX = 8400 ; The attribute schema has bad syntax. -Global Const $ERROR_DS_CANT_CACHE_ATT = 8401 ; The attribute could not be cached. -Global Const $ERROR_DS_CANT_CACHE_CLASS = 8402 ; The class could not be cached. -Global Const $ERROR_DS_CANT_REMOVE_ATT_CACHE = 8403 ; The attribute could not be removed from the cache. -Global Const $ERROR_DS_CANT_REMOVE_CLASS_CACHE = 8404 ; The class could not be removed from the cache. -Global Const $ERROR_DS_CANT_RETRIEVE_DN = 8405 ; The distinguished name attribute could not be read. -Global Const $ERROR_DS_MISSING_SUPREF = 8406 ; No superior reference has been configured for the directory service. The directory service is therefore unable to issue referrals to objects outside this forest. -Global Const $ERROR_DS_CANT_RETRIEVE_INSTANCE = 8407 ; The instance type attribute could not be retrieved. -Global Const $ERROR_DS_CODE_INCONSISTENCY = 8408 ; An internal error has occurred. -Global Const $ERROR_DS_DATABASE_ERROR = 8409 ; A database error has occurred. -Global Const $ERROR_DS_GOVERNSID_MISSING = 8410 ; The attribute GOVERNSID is missing. -Global Const $ERROR_DS_MISSING_EXPECTED_ATT = 8411 ; An expected attribute is missing. -Global Const $ERROR_DS_NCNAME_MISSING_CR_REF = 8412 ; The specified naming context is missing a cross reference. -Global Const $ERROR_DS_SECURITY_CHECKING_ERROR = 8413 ; A security checking error has occurred. -Global Const $ERROR_DS_SCHEMA_NOT_LOADED = 8414 ; The schema is not loaded. -Global Const $ERROR_DS_SCHEMA_ALLOC_FAILED = 8415 ; Schema allocation failed. Please check if the machine is running low on memory. -Global Const $ERROR_DS_ATT_SCHEMA_REQ_SYNTAX = 8416 ; Failed to obtain the required syntax for the attribute schema. -Global Const $ERROR_DS_GCVERIFY_ERROR = 8417 ; The global catalog verification failed. The global catalog is not available or does not support the operation. Some part of the directory is currently not available. -Global Const $ERROR_DS_DRA_SCHEMA_MISMATCH = 8418 ; The replication operation failed because of a schema mismatch between the servers involved. -Global Const $ERROR_DS_CANT_FIND_DSA_OBJ = 8419 ; The DSA object could not be found. -Global Const $ERROR_DS_CANT_FIND_EXPECTED_NC = 8420 ; The naming context could not be found. -Global Const $ERROR_DS_CANT_FIND_NC_IN_CACHE = 8421 ; The naming context could not be found in the cache. -Global Const $ERROR_DS_CANT_RETRIEVE_CHILD = 8422 ; The child object could not be retrieved. -Global Const $ERROR_DS_SECURITY_ILLEGAL_MODIFY = 8423 ; The modification was not permitted for security reasons. -Global Const $ERROR_DS_CANT_REPLACE_HIDDEN_REC = 8424 ; The operation cannot replace the hidden record. -Global Const $ERROR_DS_BAD_HIERARCHY_FILE = 8425 ; The hierarchy file is invalid. -Global Const $ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED = 8426 ; The attempt to build the hierarchy table failed. -Global Const $ERROR_DS_CONFIG_PARAM_MISSING = 8427 ; The directory configuration parameter is missing from the registry. -Global Const $ERROR_DS_COUNTING_AB_INDICES_FAILED = 8428 ; The attempt to count the address book indices failed. -Global Const $ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED = 8429 ; The allocation of the hierarchy table failed. -Global Const $ERROR_DS_INTERNAL_FAILURE = 8430 ; The directory service encountered an internal failure. -Global Const $ERROR_DS_UNKNOWN_ERROR = 8431 ; The directory service encountered an unknown failure. -Global Const $ERROR_DS_ROOT_REQUIRES_CLASS_TOP = 8432 ; A root object requires a class of 'top'. -Global Const $ERROR_DS_REFUSING_FSMO_ROLES = 8433 ; This directory server is shutting down, and cannot take ownership of new floating single-master operation roles. -Global Const $ERROR_DS_MISSING_FSMO_SETTINGS = 8434 ; The directory service is missing mandatory configuration information, and is unable to determine the ownership of floating single-master operation roles. -Global Const $ERROR_DS_UNABLE_TO_SURRENDER_ROLES = 8435 ; The directory service was unable to transfer ownership of one or more floating single-master operation roles to other servers. -Global Const $ERROR_DS_DRA_GENERIC = 8436 ; The replication operation failed. -Global Const $ERROR_DS_DRA_INVALID_PARAMETER = 8437 ; An invalid parameter was specified for this replication operation. -Global Const $ERROR_DS_DRA_BUSY = 8438 ; The directory service is too busy to complete the replication operation at this time. -Global Const $ERROR_DS_DRA_BAD_DN = 8439 ; The distinguished name specified for this replication operation is invalid. -Global Const $ERROR_DS_DRA_BAD_NC = 8440 ; The naming context specified for this replication operation is invalid. -Global Const $ERROR_DS_DRA_DN_EXISTS = 8441 ; The distinguished name specified for this replication operation already exists. -Global Const $ERROR_DS_DRA_INTERNAL_ERROR = 8442 ; The replication system encountered an internal error. -Global Const $ERROR_DS_DRA_INCONSISTENT_DIT = 8443 ; The replication operation encountered a database inconsistency. -Global Const $ERROR_DS_DRA_CONNECTION_FAILED = 8444 ; The server specified for this replication operation could not be contacted. -Global Const $ERROR_DS_DRA_BAD_INSTANCE_TYPE = 8445 ; The replication operation encountered an object with an invalid instance type. -Global Const $ERROR_DS_DRA_OUT_OF_MEM = 8446 ; The replication operation failed to allocate memory. -Global Const $ERROR_DS_DRA_MAIL_PROBLEM = 8447 ; The replication operation encountered an error with the mail system. -Global Const $ERROR_DS_DRA_REF_ALREADY_EXISTS = 8448 ; The replication reference information for the target server already exists. -Global Const $ERROR_DS_DRA_REF_NOT_FOUND = 8449 ; The replication reference information for the target server does not exist. -Global Const $ERROR_DS_DRA_OBJ_IS_REP_SOURCE = 8450 ; The naming context cannot be removed because it is replicated to another server. -Global Const $ERROR_DS_DRA_DB_ERROR = 8451 ; The replication operation encountered a database error. -Global Const $ERROR_DS_DRA_NO_REPLICA = 8452 ; The naming context is in the process of being removed or is not replicated from the specified server. -Global Const $ERROR_DS_DRA_ACCESS_DENIED = 8453 ; Replication access was denied. -Global Const $ERROR_DS_DRA_NOT_SUPPORTED = 8454 ; The requested operation is not supported by this version of the directory service. -Global Const $ERROR_DS_DRA_RPC_CANCELLED = 8455 ; The replication remote procedure call was canceled. -Global Const $ERROR_DS_DRA_SOURCE_DISABLED = 8456 ; The source server is currently rejecting replication requests. -Global Const $ERROR_DS_DRA_SINK_DISABLED = 8457 ; The destination server is currently rejecting replication requests. -Global Const $ERROR_DS_DRA_NAME_COLLISION = 8458 ; The replication operation failed due to a collision of object names. -Global Const $ERROR_DS_DRA_SOURCE_REINSTALLED = 8459 ; The replication source has been reinstalled. -Global Const $ERROR_DS_DRA_MISSING_PARENT = 8460 ; The replication operation failed because a required parent object is missing. -Global Const $ERROR_DS_DRA_PREEMPTED = 8461 ; The replication operation was preempted. -Global Const $ERROR_DS_DRA_ABANDON_SYNC = 8462 ; The replication synchronization attempt was abandoned because of a lack of updates. -Global Const $ERROR_DS_DRA_SHUTDOWN = 8463 ; The replication operation was terminated because the system is shutting down. -Global Const $ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET = 8464 ; Synchronization attempt failed because the destination DC is currently waiting to synchronize new partial attributes from source. This condition is normal if a recent schema change modified the partial attribute set. The destination partial attribute set is not a subset of source partial attribute set. -Global Const $ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA = 8465 ; The replication synchronization attempt failed because a master replica attempted to sync from a partial replica. -Global Const $ERROR_DS_DRA_EXTN_CONNECTION_FAILED = 8466 ; The server specified for this replication operation was contacted, but that server was unable to contact an additional server needed to complete the operation. -Global Const $ERROR_DS_INSTALL_SCHEMA_MISMATCH = 8467 ; The version of the directory service schema of the source forest is not compatible with the version of the directory service on this computer. -Global Const $ERROR_DS_DUP_LINK_ID = 8468 ; Schema update failed: An attribute with the same link identifier already exists. -Global Const $ERROR_DS_NAME_ERROR_RESOLVING = 8469 ; Name translation: Generic processing error. -Global Const $ERROR_DS_NAME_ERROR_NOT_FOUND = 8470 ; Name translation: Could not find the name or insufficient right to see name. -Global Const $ERROR_DS_NAME_ERROR_NOT_UNIQUE = 8471 ; Name translation: Input name mapped to more than one output name. -Global Const $ERROR_DS_NAME_ERROR_NO_MAPPING = 8472 ; Name translation: Input name found, but not the associated output format. -Global Const $ERROR_DS_NAME_ERROR_DOMAIN_ONLY = 8473 ; Name translation: Unable to resolve completely, only the domain was found. -Global Const $ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING = 8474 ; Name translation: Unable to perform purely syntactical mapping at the client without going out to the wire. -Global Const $ERROR_DS_CONSTRUCTED_ATT_MOD = 8475 ; Modification of a constructed attribute is not allowed. -Global Const $ERROR_DS_WRONG_OM_OBJ_CLASS = 8476 ; The OM-Object-Class specified is incorrect for an attribute with the specified syntax. -Global Const $ERROR_DS_DRA_REPL_PENDING = 8477 ; The replication request has been posted; waiting for reply. -Global Const $ERROR_DS_DS_REQUIRED = 8478 ; The requested operation requires a directory service, and none was available. -Global Const $ERROR_DS_INVALID_LDAP_DISPLAY_NAME = 8479 ; The LDAP display name of the class or attribute contains non-ASCII characters. -Global Const $ERROR_DS_NON_BASE_SEARCH = 8480 ; The requested search operation is only supported for base searches. -Global Const $ERROR_DS_CANT_RETRIEVE_ATTS = 8481 ; The search failed to retrieve attributes from the database. -Global Const $ERROR_DS_BACKLINK_WITHOUT_LINK = 8482 ; The schema update operation tried to add a backward link attribute that has no corresponding forward link. -Global Const $ERROR_DS_EPOCH_MISMATCH = 8483 ; Source and destination of a cross-domain move do not agree on the object's epoch number. Either source or destination does not have the latest version of the object. -Global Const $ERROR_DS_SRC_NAME_MISMATCH = 8484 ; Source and destination of a cross-domain move do not agree on the object's current name. Either source or destination does not have the latest version of the object. -Global Const $ERROR_DS_SRC_AND_DST_NC_IDENTICAL = 8485 ; Source and destination for the cross-domain move operation are identical. Caller should use local move operation instead of cross-domain move operation. -Global Const $ERROR_DS_DST_NC_MISMATCH = 8486 ; Source and destination for a cross-domain move are not in agreement on the naming contexts in the forest. Either source or destination does not have the latest version of the Partitions container. -Global Const $ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC = 8487 ; Destination of a cross-domain move is not authoritative for the destination naming context. -Global Const $ERROR_DS_SRC_GUID_MISMATCH = 8488 ; Source and destination of a cross-domain move do not agree on the identity of the source object. Either source or destination does not have the latest version of the source object. -Global Const $ERROR_DS_CANT_MOVE_DELETED_OBJECT = 8489 ; Object being moved across-domains is already known to be deleted by the destination server. The source server does not have the latest version of the source object. -Global Const $ERROR_DS_PDC_OPERATION_IN_PROGRESS = 8490 ; Another operation which requires exclusive access to the PDC FSMO is already in progress. -Global Const $ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD = 8491 ; A cross-domain move operation failed such that two versions of the moved object exist - one each in the source and destination domains. The destination object needs to be removed to restore the system to a consistent state. -Global Const $ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION = 8492 ; This object may not be moved across domain boundaries either because cross-domain moves for this class are disallowed, or the object has some special characteristics, e.g.: trust account or restricted RID, which prevent its move. -Global Const $ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS = 8493 ; Can't move objects with memberships across domain boundaries as once moved, this would violate the membership conditions of the account group. Remove the object from any account group memberships and retry. -Global Const $ERROR_DS_NC_MUST_HAVE_NC_PARENT = 8494 ; A naming context head must be the immediate child of another naming context head, not of an interior node. -Global Const $ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE = 8495 ; The directory cannot validate the propsed naming context name because it does not hold a replica of the naming context above the proposed naming context. Please ensure that the domain naming master role is held by a server that is configured as a global catalog server, and that the server is up to date with its replication partners. (Applies only to Windows Domain Naming masters) -Global Const $ERROR_DS_DST_DOMAIN_NOT_NATIVE = 8496 ; Destination domain must be in native mode. -Global Const $ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER = 8497 ; The operation cannot be performed because the server does not have an infrastructure container in the domain of interest. -Global Const $ERROR_DS_CANT_MOVE_ACCOUNT_GROUP = 8498 ; Cross-domain move of non-empty account groups is not allowed. -Global Const $ERROR_DS_CANT_MOVE_RESOURCE_GROUP = 8499 ; Cross-domain move of non-empty resource groups is not allowed. -Global Const $ERROR_DS_INVALID_SEARCH_FLAG = 8500 ; The search flags for the attribute are invalid. The ANR bit is valid only on attributes of Unicode or Teletex strings. -Global Const $ERROR_DS_NO_TREE_DELETE_ABOVE_NC = 8501 ; Tree deletions starting at an object which has an NC head as a descendant are not allowed. -Global Const $ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE = 8502 ; The directory service failed to lock a tree in preparation for a tree deletion because the tree was in use. -Global Const $ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE = 8503 ; The directory service failed to identify the list of objects to delete while attempting a tree deletion. -Global Const $ERROR_DS_SAM_INIT_FAILURE = 8504 ; Security Accounts Manager initialization failed because of the following error: %1. Error Status: 0x%2. Please shut down this system and reboot into Directory Services Restore Mode. Check the event log for more detailed information. -Global Const $ERROR_DS_SENSITIVE_GROUP_VIOLATION = 8505 ; Only an administrator can modify the membership list of an administrative group. -Global Const $ERROR_DS_CANT_MOD_PRIMARYGROUPID = 8506 ; Cannot change the primary group ID of a domain controller account. -Global Const $ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD = 8507 ; An attempt is made to modify the base schema. -Global Const $ERROR_DS_NONSAFE_SCHEMA_CHANGE = 8508 ; Adding a new mandatory attribute to an existing class, deleting a mandatory attribute from an existing class, or adding an optional attribute to the special class Top that is not a backlink attribute (directly or through inheritance, for example, by adding or deleting an auxiliary class) is not allowed. -Global Const $ERROR_DS_SCHEMA_UPDATE_DISALLOWED = 8509 ; Schema update is not allowed on this DC because the DC is not the schema FSMO Role Owner. -Global Const $ERROR_DS_CANT_CREATE_UNDER_SCHEMA = 8510 ; An object of this class cannot be created under the schema container. You can only create attribute-schema and class-schema objects under the schema container. -Global Const $ERROR_DS_INSTALL_NO_SRC_SCH_VERSION = 8511 ; The replica/child install failed to get the objectVersion attribute on the schema container on the source DC. Either the attribute is missing on the schema container or the credentials supplied do not have permission to read it. -Global Const $ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE = 8512 ; The replica/child install failed to read the objectVersion attribute in the SCHEMA section of the file schema.ini in the system32 directory. -Global Const $ERROR_DS_INVALID_GROUP_TYPE = 8513 ; The specified group type is invalid. -Global Const $ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN = 8514 ; You cannot nest global groups in a mixed domain if the group is security-enabled. -Global Const $ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN = 8515 ; You cannot nest local groups in a mixed domain if the group is security-enabled. -Global Const $ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER = 8516 ; A global group cannot have a local group as a member. -Global Const $ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER = 8517 ; A global group cannot have a universal group as a member. -Global Const $ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER = 8518 ; A universal group cannot have a local group as a member. -Global Const $ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER = 8519 ; A global group cannot have a cross-domain member. -Global Const $ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER = 8520 ; A local group cannot have another cross domain local group as a member. -Global Const $ERROR_DS_HAVE_PRIMARY_MEMBERS = 8521 ; A group with primary members cannot change to a security-disabled group. -Global Const $ERROR_DS_STRING_SD_CONVERSION_FAILED = 8522 ; The schema cache load failed to convert the string default SD on a class-schema object. -Global Const $ERROR_DS_NAMING_MASTER_GC = 8523 ; Only DSAs configured to be Global Catalog servers should be allowed to hold the Domain Naming Master FSMO role. (Applies only to Windows servers) -Global Const $ERROR_DS_DNS_LOOKUP_FAILURE = 8524 ; The DSA operation is unable to proceed because of a DNS lookup failure. -Global Const $ERROR_DS_COULDNT_UPDATE_SPNS = 8525 ; While processing a change to the DNS Host Name for an object, the Service Principal Name values could not be kept in sync. -Global Const $ERROR_DS_CANT_RETRIEVE_SD = 8526 ; The Security Descriptor attribute could not be read. -Global Const $ERROR_DS_KEY_NOT_UNIQUE = 8527 ; The object requested was not found, but an object with that key was found. -Global Const $ERROR_DS_WRONG_LINKED_ATT_SYNTAX = 8528 ; The syntax of the linked attribute being added is incorrect. Forward links can only have syntax 2.5.5.1, 2.5.5.7, and 2.5.5.14, and backlinks can only have syntax 2.5.5.1 -Global Const $ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD = 8529 ; Security Account Manager needs to get the boot password. -Global Const $ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY = 8530 ; Security Account Manager needs to get the boot key from floppy disk. -Global Const $ERROR_DS_CANT_START = 8531 ; Directory Service cannot start. -Global Const $ERROR_DS_INIT_FAILURE = 8532 ; Directory Services could not start. -Global Const $ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION = 8533 ; The connection between client and server requires packet privacy or better. -Global Const $ERROR_DS_SOURCE_DOMAIN_IN_FOREST = 8534 ; The source domain may not be in the same forest as destination. -Global Const $ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST = 8535 ; The destination domain must be in the forest. -Global Const $ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED = 8536 ; The operation requires that destination domain auditing be enabled. -Global Const $ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN = 8537 ; The operation couldn't locate a DC for the source domain. -Global Const $ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER = 8538 ; The source object must be a group or user. -Global Const $ERROR_DS_SRC_SID_EXISTS_IN_FOREST = 8539 ; The source object's SID already exists in destination forest. -Global Const $ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH = 8540 ; The source and destination object must be of the same type. -Global Const $ERROR_SAM_INIT_FAILURE = 8541 ; Security Accounts Manager initialization failed because of the following error: %1. Error Status: 0x%2. Click OK to shut down the system and reboot into Safe Mode. Check the event log for detailed information. -Global Const $ERROR_DS_DRA_SCHEMA_INFO_SHIP = 8542 ; Schema information could not be included in the replication request. -Global Const $ERROR_DS_DRA_SCHEMA_CONFLICT = 8543 ; The replication operation could not be completed due to a schema incompatibility. -Global Const $ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT = 8544 ; The replication operation could not be completed due to a previous schema incompatibility. -Global Const $ERROR_DS_DRA_OBJ_NC_MISMATCH = 8545 ; The replication update could not be applied because either the source or the destination has not yet received information regarding a recent cross-domain move operation. -Global Const $ERROR_DS_NC_STILL_HAS_DSAS = 8546 ; The requested domain could not be deleted because there exist domain controllers that still host this domain. -Global Const $ERROR_DS_GC_REQUIRED = 8547 ; The requested operation can be performed only on a global catalog server. -Global Const $ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY = 8548 ; A local group can only be a member of other local groups in the same domain. -Global Const $ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS = 8549 ; Foreign security principals cannot be members of universal groups. -Global Const $ERROR_DS_CANT_ADD_TO_GC = 8550 ; The attribute is not allowed to be replicated to the GC because of security reasons. -Global Const $ERROR_DS_NO_CHECKPOINT_WITH_PDC = 8551 ; The checkpoint with the PDC could not be taken because there too many modifications being processed currently. -Global Const $ERROR_DS_SOURCE_AUDITING_NOT_ENABLED = 8552 ; The operation requires that source domain auditing be enabled. -Global Const $ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC = 8553 ; Security principal objects can only be created inside domain naming contexts. -Global Const $ERROR_DS_INVALID_NAME_FOR_SPN = 8554 ; A Service Principal Name (SPN) could not be constructed because the provided hostname is not in the necessary format. -Global Const $ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS = 8555 ; A Filter was passed that uses constructed attributes. -Global Const $ERROR_DS_UNICODEPWD_NOT_IN_QUOTES = 8556 ; The unicodePwd attribute value must be enclosed in double quotes. -Global Const $ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED = 8557 ; Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased. -Global Const $ERROR_DS_MUST_BE_RUN_ON_DST_DC = 8558 ; For security reasons, the operation must be run on the destination DC. -Global Const $ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER = 8559 ; For security reasons, the source DC must be NT4SP4 or greater. -Global Const $ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ = 8560 ; Critical Directory Service System objects cannot be deleted during tree delete operations. The tree delete may have been partially performed. -Global Const $ERROR_DS_INIT_FAILURE_CONSOLE = 8561 ; Directory Services could not start because of the following error: %1. Error Status: 0x%2. Please click OK to shutdown the system. You can use the recovery console to diagnose the system further. -Global Const $ERROR_DS_SAM_INIT_FAILURE_CONSOLE = 8562 ; Security Accounts Manager initialization failed because of the following error: %1. Error Status: 0x%2. Please click OK to shutdown the system. You can use the recovery console to diagnose the system further. -Global Const $ERROR_DS_FOREST_VERSION_TOO_HIGH = 8563 ; The version of the operating system is incompatible with the current AD DS forest functional level or AD LDS Configuration Set functional level. You must upgrade to a new version of the operating system before this server can become an AD DS Domain Controller or add an AD LDS Instance in this AD DS forest or AD LDS Configuration Set. -Global Const $ERROR_DS_DOMAIN_VERSION_TOO_HIGH = 8564 ; The version of the operating system installed is incompatible with the current domain functional level. You must upgrade to a new version of the operating system before this server can become a domain controller in this domain. -Global Const $ERROR_DS_FOREST_VERSION_TOO_LOW = 8565 ; The version of the operating system installed on this server no longer supports the current AD DS Forest functional level or AD LDS Configuration Set functional level. You must raise the AD DS Forest functional level or AD LDS Configuration Set functional level before this server can become an AD DS Domain Controller or an AD LDS Instance in this Forest or Configuration Set. -Global Const $ERROR_DS_DOMAIN_VERSION_TOO_LOW = 8566 ; The version of the operating system installed on this server no longer supports the current domain functional level. You must raise the domain functional level before this server can become a domain controller in this domain. -Global Const $ERROR_DS_INCOMPATIBLE_VERSION = 8567 ; The version of the operating system installed on this server is incompatible with the functional level of the domain or forest. -Global Const $ERROR_DS_LOW_DSA_VERSION = 8568 ; The functional level of the domain (or forest) cannot be raised to the requested value, because there exist one or more domain controllers in the domain (or forest) that are at a lower incompatible functional level. -Global Const $ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN = 8569 ; The forest functional level cannot be raised to the requested value since one or more domains are still in mixed domain mode. All domains in the forest must be in native mode, for you to raise the forest functional level. -Global Const $ERROR_DS_NOT_SUPPORTED_SORT_ORDER = 8570 ; The sort order requested is not supported. -Global Const $ERROR_DS_NAME_NOT_UNIQUE = 8571 ; The requested name already exists as a unique identifier. -Global Const $ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4 = 8572 ; The machine account was created pre-NT4. The account needs to be recreated. -Global Const $ERROR_DS_OUT_OF_VERSION_STORE = 8573 ; The database is out of version store. -Global Const $ERROR_DS_INCOMPATIBLE_CONTROLS_USED = 8574 ; Unable to continue operation because multiple conflicting controls were used. -Global Const $ERROR_DS_NO_REF_DOMAIN = 8575 ; Unable to find a valid security descriptor reference domain for this partition. -Global Const $ERROR_DS_RESERVED_LINK_ID = 8576 ; Schema update failed: The link identifier is reserved. -Global Const $ERROR_DS_LINK_ID_NOT_AVAILABLE = 8577 ; Schema update failed: There are no link identifiers available. -Global Const $ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER = 8578 ; An account group cannot have a universal group as a member. -Global Const $ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE = 8579 ; Rename or move operations on naming context heads or read-only objects are not allowed. -Global Const $ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC = 8580 ; Move operations on objects in the schema naming context are not allowed. -Global Const $ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG = 8581 ; A system flag has been set on the object and does not allow the object to be moved or renamed. -Global Const $ERROR_DS_MODIFYDN_WRONG_GRANDPARENT = 8582 ; This object is not allowed to change its grandparent container. Moves are not forbidden on this object, but are restricted to sibling containers. -Global Const $ERROR_DS_NAME_ERROR_TRUST_REFERRAL = 8583 ; Unable to resolve completely, a referral to another forest is generated. -Global Const $ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER = 8584 ; The requested action is not supported on standard server. -Global Const $ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD = 8585 ; Could not access a partition of the directory service located on a remote server. Make sure at least one server is running for the partition in question. -Global Const $ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2 = 8586 ; The directory cannot validate the proposed naming context (or partition) name because it does not hold a replica nor can it contact a replica of the naming context above the proposed naming context. Please ensure that the parent naming context is properly registered in DNS, and at least one replica of this naming context is reachable by the Domain Naming master. -Global Const $ERROR_DS_THREAD_LIMIT_EXCEEDED = 8587 ; The thread limit for this request was exceeded. -Global Const $ERROR_DS_NOT_CLOSEST = 8588 ; The Global catalog server is not in the closest site. -Global Const $ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF = 8589 ; The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server because the corresponding server object in the local DS database has no serverReference attribute. -Global Const $ERROR_DS_SINGLE_USER_MODE_FAILED = 8590 ; The Directory Service failed to enter single user mode. -Global Const $ERROR_DS_NTDSCRIPT_SYNTAX_ERROR = 8591 ; The Directory Service cannot parse the script because of a syntax error. -Global Const $ERROR_DS_NTDSCRIPT_PROCESS_ERROR = 8592 ; The Directory Service cannot process the script because of an error. -Global Const $ERROR_DS_DIFFERENT_REPL_EPOCHS = 8593 ; The directory service cannot perform the requested operation because the servers involved are of different replication epochs (which is usually related to a domain rename that is in progress). -Global Const $ERROR_DS_DRS_EXTENSIONS_CHANGED = 8594 ; The directory service binding must be renegotiated due to a change in the server extensions information. -Global Const $ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR = 8595 ; Operation not allowed on a disabled cross reference. -Global Const $ERROR_DS_NO_MSDS_INTID = 8596 ; Schema update failed: No values for msDS-IntId are available. -Global Const $ERROR_DS_DUP_MSDS_INTID = 8597 ; Schema update failed: Duplicate msDS-INtId. Retry the operation. -Global Const $ERROR_DS_EXISTS_IN_RDNATTID = 8598 ; Schema deletion failed: attribute is used in rDNAttID. -Global Const $ERROR_DS_AUTHORIZATION_FAILED = 8599 ; The directory service failed to authorize the request. -Global Const $ERROR_DS_INVALID_SCRIPT = 8600 ; The Directory Service cannot process the script because it is invalid. -Global Const $ERROR_DS_REMOTE_CROSSREF_OP_FAILED = 8601 ; The remote create cross reference operation failed on the Domain Naming Master FSMO. The operation's error is in the extended data. -Global Const $ERROR_DS_CROSS_REF_BUSY = 8602 ; A cross reference is in use locally with the same name. -Global Const $ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN = 8603 ; The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server because the server's domain has been deleted from the forest. -Global Const $ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC = 8604 ; Writeable NCs prevent this DC from demoting. -Global Const $ERROR_DS_DUPLICATE_ID_FOUND = 8605 ; The requested object has a non-unique identifier and cannot be retrieved. -Global Const $ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT = 8606 ; Insufficient attributes were given to create an object. This object may not exist because it may have been deleted and already garbage collected. -Global Const $ERROR_DS_GROUP_CONVERSION_ERROR = 8607 ; The group cannot be converted due to attribute restrictions on the requested group type. -Global Const $ERROR_DS_CANT_MOVE_APP_BASIC_GROUP = 8608 ; Cross-domain move of non-empty basic application groups is not allowed. -Global Const $ERROR_DS_CANT_MOVE_APP_QUERY_GROUP = 8609 ; Cross-domain move of non-empty query based application groups is not allowed. -Global Const $ERROR_DS_ROLE_NOT_VERIFIED = 8610 ; The FSMO role ownership could not be verified because its directory partition has not replicated successfully with at least one replication partner. -Global Const $ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL = 8611 ; The target container for a redirection of a well known object container cannot already be a special container. -Global Const $ERROR_DS_DOMAIN_RENAME_IN_PROGRESS = 8612 ; The Directory Service cannot perform the requested operation because a domain rename operation is in progress. -Global Const $ERROR_DS_EXISTING_AD_CHILD_NC = 8613 ; The directory service detected a child partition below the requested new partition name. The partition hierarchy must be created in a top down method. -Global Const $ERROR_DS_REPL_LIFETIME_EXCEEDED = 8614 ; The directory service cannot replicate with this server because the time since the last replication with this server has exceeded the tombstone lifetime. -Global Const $ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER = 8615 ; The requested operation is not allowed on an object under the system container. -Global Const $ERROR_DS_LDAP_SEND_QUEUE_FULL = 8616 ; The LDAP servers network send queue has filled up because the client is not processing the results of it's requests fast enough. No more requests will be processed until the client catches up. If the client does not catch up then it will be disconnected. -Global Const $ERROR_DS_DRA_OUT_SCHEDULE_WINDOW = 8617 ; The scheduled replication did not take place because the system was too busy to execute the request within the schedule window. The replication queue is overloaded. Consider reducing the number of partners or decreasing the scheduled replication frequency. -Global Const $ERROR_DS_POLICY_NOT_KNOWN = 8618 ; At this time, it cannot be determined if the branch replication policy is available on the hub domain controller. Please retry at a later time to account for replication latencies. -Global Const $ERROR_NO_SITE_SETTINGS_OBJECT = 8619 ; The site settings object for the specified site does not exist. -Global Const $ERROR_NO_SECRETS = 8620 ; The local account store does not contain secret material for the specified account. -Global Const $ERROR_NO_WRITABLE_DC_FOUND = 8621 ; Could not find a writable domain controller in the domain. -Global Const $ERROR_DS_NO_SERVER_OBJECT = 8622 ; The server object for the domain controller does not exist. -Global Const $ERROR_DS_NO_NTDSA_OBJECT = 8623 ; The NTDS Settings object for the domain controller does not exist. -Global Const $ERROR_DS_NON_ASQ_SEARCH = 8624 ; The requested search operation is not supported for ASQ searches. -Global Const $ERROR_DS_AUDIT_FAILURE = 8625 ; A required audit event could not be generated for the operation. -Global Const $ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE = 8626 ; The search flags for the attribute are invalid. The subtree index bit is valid only on single valued attributes. -Global Const $ERROR_DS_INVALID_SEARCH_FLAG_TUPLE = 8627 ; The search flags for the attribute are invalid. The tuple index bit is valid only on attributes of Unicode strings. -Global Const $ERROR_DS_HIERARCHY_TABLE_TOO_DEEP = 8628 ; The address books are nested too deeply. Failed to build the hierarchy table. -Global Const $ERROR_DS_DRA_CORRUPT_UTD_VECTOR = 8629 ; The specified up-to-date-ness vector is corrupt. -Global Const $ERROR_DS_DRA_SECRETS_DENIED = 8630 ; The request to replicate secrets is denied. -Global Const $ERROR_DS_RESERVED_MAPI_ID = 8631 ; Schema update failed: The MAPI identifier is reserved. -Global Const $ERROR_DS_MAPI_ID_NOT_AVAILABLE = 8632 ; Schema update failed: There are no MAPI identifiers available. -Global Const $ERROR_DS_DRA_MISSING_KRBTGT_SECRET = 8633 ; The replication operation failed because the required attributes of the local krbtgt object are missing. -Global Const $ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST = 8634 ; The domain name of the trusted domain already exists in the forest. -Global Const $ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST = 8635 ; The flat name of the trusted domain already exists in the forest. -Global Const $ERROR_INVALID_USER_PRINCIPAL_NAME = 8636 ; The User Principal Name (UPN) is invalid. -Global Const $ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS = 8637 ; OID mapped groups cannot have members. -Global Const $ERROR_DS_OID_NOT_FOUND = 8638 ; The specified OID cannot be found. -Global Const $DNS_ERROR_RCODE_FORMAT_ERROR = 9001 ; DNS server unable to interpret format. -Global Const $DNS_ERROR_RCODE_SERVER_FAILURE = 9002 ; DNS server failure. -Global Const $DNS_ERROR_RCODE_NAME_ERROR = 9003 ; DNS name does not exist. -Global Const $DNS_ERROR_RCODE_NOT_IMPLEMENTED = 9004 ; DNS request not supported by name server. -Global Const $DNS_ERROR_RCODE_REFUSED = 9005 ; DNS operation refused. -Global Const $DNS_ERROR_RCODE_YXDOMAIN = 9006 ; DNS name that ought not exist, does exist. -Global Const $DNS_ERROR_RCODE_YXRRSET = 9007 ; DNS RR set that ought not exist, does exist. -Global Const $DNS_ERROR_RCODE_NXRRSET = 9008 ; DNS RR set that ought to exist, does not exist. -Global Const $DNS_ERROR_RCODE_NOTAUTH = 9009 ; DNS server not authoritative for zone. -Global Const $DNS_ERROR_RCODE_NOTZONE = 9010 ; DNS name in update or prereq is not in zone. -Global Const $DNS_ERROR_RCODE_BADSIG = 9016 ; DNS signature failed to verify. -Global Const $DNS_ERROR_RCODE_BADKEY = 9017 ; DNS bad key. -Global Const $DNS_ERROR_RCODE_BADTIME = 9018 ; DNS signature validity expired. -Global Const $DNS_INFO_NO_RECORDS = 9501 ; No records found for given DNS query. -Global Const $DNS_ERROR_BAD_PACKET = 9502 ; Bad DNS packet. -Global Const $DNS_ERROR_NO_PACKET = 9503 ; No DNS packet. -Global Const $DNS_ERROR_RCODE = 9504 ; DNS error, check rcode. -Global Const $DNS_ERROR_UNSECURE_PACKET = 9505 ; Unsecured DNS packet. -Global Const $DNS_ERROR_INVALID_TYPE = 9551 ; Invalid DNS type. -Global Const $DNS_ERROR_INVALID_IP_ADDRESS = 9552 ; Invalid IP address. -Global Const $DNS_ERROR_INVALID_PROPERTY = 9553 ; Invalid property. -Global Const $DNS_ERROR_TRY_AGAIN_LATER = 9554 ; Try DNS operation again later. -Global Const $DNS_ERROR_NOT_UNIQUE = 9555 ; Record for given name and type is not unique. -Global Const $DNS_ERROR_NON_RFC_NAME = 9556 ; DNS name does not comply with RFC specifications. -Global Const $DNS_STATUS_FQDN = 9557 ; DNS name is a fully-qualified DNS name. -Global Const $DNS_STATUS_DOTTED_NAME = 9558 ; DNS name is dotted (multi-label). -Global Const $DNS_STATUS_SINGLE_PART_NAME = 9559 ; DNS name is a single-part name. -Global Const $DNS_ERROR_INVALID_NAME_CHAR = 9560 ; DNS name contains an invalid character. -Global Const $DNS_ERROR_NUMERIC_NAME = 9561 ; DNS name is entirely numeric. -Global Const $DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER = 9562 ; The operation requested is not permitted on a DNS root server. -Global Const $DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION = 9563 ; The record could not be created because this part of the DNS namespace has been delegated to another server. -Global Const $DNS_ERROR_CANNOT_FIND_ROOT_HINTS = 9564 ; The DNS server could not find a set of root hints. -Global Const $DNS_ERROR_INCONSISTENT_ROOT_HINTS = 9565 ; The DNS server found root hints but they were not consistent across all adapters. -Global Const $DNS_ERROR_DWORD_VALUE_TOO_SMALL = 9566 ; The specified value is too small for this parameter. -Global Const $DNS_ERROR_DWORD_VALUE_TOO_LARGE = 9567 ; The specified value is too large for this parameter. -Global Const $DNS_ERROR_BACKGROUND_LOADING = 9568 ; This operation is not allowed while the DNS server is loading zones in the background. Please try again later. -Global Const $DNS_ERROR_NOT_ALLOWED_ON_RODC = 9569 ; The operation requested is not permitted on against a DNS server running on a read-only DC. -Global Const $DNS_ERROR_NOT_ALLOWED_UNDER_DNAME = 9570 ; No data is allowed to exist underneath a DNAME record. -Global Const $DNS_ERROR_DELEGATION_REQUIRED = 9571 ; This operation requires credentials delegation. -Global Const $DNS_ERROR_ZONE_DOES_NOT_EXIST = 9601 ; DNS zone does not exist. -Global Const $DNS_ERROR_NO_ZONE_INFO = 9602 ; DNS zone information not available. -Global Const $DNS_ERROR_INVALID_ZONE_OPERATION = 9603 ; Invalid operation for DNS zone. -Global Const $DNS_ERROR_ZONE_CONFIGURATION_ERROR = 9604 ; Invalid DNS zone configuration. -Global Const $DNS_ERROR_ZONE_HAS_NO_SOA_RECORD = 9605 ; DNS zone has no start of authority (SOA) record. -Global Const $DNS_ERROR_ZONE_HAS_NO_NS_RECORDS = 9606 ; DNS zone has no Name Server (NS) record. -Global Const $DNS_ERROR_ZONE_LOCKED = 9607 ; DNS zone is locked. -Global Const $DNS_ERROR_ZONE_CREATION_FAILED = 9608 ; DNS zone creation failed. -Global Const $DNS_ERROR_ZONE_ALREADY_EXISTS = 9609 ; DNS zone already exists. -Global Const $DNS_ERROR_AUTOZONE_ALREADY_EXISTS = 9610 ; DNS automatic zone already exists. -Global Const $DNS_ERROR_INVALID_ZONE_TYPE = 9611 ; Invalid DNS zone type. -Global Const $DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP = 9612 ; Secondary DNS zone requires master IP address. -Global Const $DNS_ERROR_ZONE_NOT_SECONDARY = 9613 ; DNS zone not secondary. -Global Const $DNS_ERROR_NEED_SECONDARY_ADDRESSES = 9614 ; Need secondary IP address. -Global Const $DNS_ERROR_WINS_INIT_FAILED = 9615 ; WINS initialization failed. -Global Const $DNS_ERROR_NEED_WINS_SERVERS = 9616 ; Need WINS servers. -Global Const $DNS_ERROR_NBSTAT_INIT_FAILED = 9617 ; NBTSTAT initialization call failed. -Global Const $DNS_ERROR_SOA_DELETE_INVALID = 9618 ; Invalid delete of start of authority (SOA). -Global Const $DNS_ERROR_FORWARDER_ALREADY_EXISTS = 9619 ; A conditional forwarding zone already exists for that name. -Global Const $DNS_ERROR_ZONE_REQUIRES_MASTER_IP = 9620 ; This zone must be configured with one or more master DNS server IP addresses. -Global Const $DNS_ERROR_ZONE_IS_SHUTDOWN = 9621 ; The operation cannot be performed because this zone is shutdown. -Global Const $DNS_ERROR_PRIMARY_REQUIRES_DATAFILE = 9651 ; Primary DNS zone requires datafile. -Global Const $DNS_ERROR_INVALID_DATAFILE_NAME = 9652 ; Invalid datafile name for DNS zone. -Global Const $DNS_ERROR_DATAFILE_OPEN_FAILURE = 9653 ; Failed to open datafile for DNS zone. -Global Const $DNS_ERROR_FILE_WRITEBACK_FAILED = 9654 ; Failed to write datafile for DNS zone. -Global Const $DNS_ERROR_DATAFILE_PARSING = 9655 ; Failure while reading datafile for DNS zone. -Global Const $DNS_ERROR_RECORD_DOES_NOT_EXIST = 9701 ; DNS record does not exist. -Global Const $DNS_ERROR_RECORD_FORMAT = 9702 ; DNS record format error. -Global Const $DNS_ERROR_NODE_CREATION_FAILED = 9703 ; Node creation failure in DNS. -Global Const $DNS_ERROR_UNKNOWN_RECORD_TYPE = 9704 ; Unknown DNS record type. -Global Const $DNS_ERROR_RECORD_TIMED_OUT = 9705 ; DNS record timed out. -Global Const $DNS_ERROR_NAME_NOT_IN_ZONE = 9706 ; Name not in DNS zone. -Global Const $DNS_ERROR_CNAME_LOOP = 9707 ; CNAME loop detected. -Global Const $DNS_ERROR_NODE_IS_CNAME = 9708 ; Node is a CNAME DNS record. -Global Const $DNS_ERROR_CNAME_COLLISION = 9709 ; A CNAME record already exists for given name. -Global Const $DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT = 9710 ; Record only at DNS zone root. -Global Const $DNS_ERROR_RECORD_ALREADY_EXISTS = 9711 ; DNS record already exists. -Global Const $DNS_ERROR_SECONDARY_DATA = 9712 ; Secondary DNS zone data error. -Global Const $DNS_ERROR_NO_CREATE_CACHE_DATA = 9713 ; Could not create DNS cache data. -Global Const $DNS_ERROR_NAME_DOES_NOT_EXIST = 9714 ; DNS name does not exist. -Global Const $DNS_WARNING_PTR_CREATE_FAILED = 9715 ; Could not create pointer (PTR) record. -Global Const $DNS_WARNING_DOMAIN_UNDELETED = 9716 ; DNS domain was undeleted. -Global Const $DNS_ERROR_DS_UNAVAILABLE = 9717 ; The directory service is unavailable. -Global Const $DNS_ERROR_DS_ZONE_ALREADY_EXISTS = 9718 ; DNS zone already exists in the directory service. -Global Const $DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE = 9719 ; DNS server not creating or reading the boot file for the directory service integrated DNS zone. -Global Const $DNS_ERROR_NODE_IS_DNAME = 9720 ; Node is a DNAME DNS record. -Global Const $DNS_ERROR_DNAME_COLLISION = 9721 ; A DNAME record already exists for given name. -Global Const $DNS_ERROR_ALIAS_LOOP = 9722 ; An alias loop has been detected with either CNAME or DNAME records. -Global Const $DNS_INFO_AXFR_COMPLETE = 9751 ; DNS AXFR (zone transfer) complete. -Global Const $DNS_ERROR_AXFR = 9752 ; DNS zone transfer failed. -Global Const $DNS_INFO_ADDED_LOCAL_WINS = 9753 ; Added local WINS server. -Global Const $DNS_STATUS_CONTINUE_NEEDED = 9801 ; Secure update call needs to continue update request. -Global Const $DNS_ERROR_NO_TCPIP = 9851 ; TCP/IP network protocol not installed. -Global Const $DNS_ERROR_NO_DNS_SERVERS = 9852 ; No DNS servers configured for local system. -Global Const $DNS_ERROR_DP_DOES_NOT_EXIST = 9901 ; The specified directory partition does not exist. -Global Const $DNS_ERROR_DP_ALREADY_EXISTS = 9902 ; The specified directory partition already exists. -Global Const $DNS_ERROR_DP_NOT_ENLISTED = 9903 ; This DNS server is not enlisted in the specified directory partition. -Global Const $DNS_ERROR_DP_ALREADY_ENLISTED = 9904 ; This DNS server is already enlisted in the specified directory partition. -Global Const $DNS_ERROR_DP_NOT_AVAILABLE = 9905 ; The directory partition is not available at this time. Please wait a few minutes and try again. -Global Const $DNS_ERROR_DP_FSMO_ERROR = 9906 ; The application directory partition operation failed. The domain controller holding the domain naming master role is down or unable to service the request or is not running Windows Server 2003. -Global Const $WSAEINTR = 10004 ; A blocking operation was interrupted by a call to WSACancelBlockingCall. -Global Const $WSAEBADF = 10009 ; The file handle supplied is not valid. -Global Const $WSAEACCES = 10013 ; An attempt was made to access a socket in a way forbidden by its access permissions. -Global Const $WSAEFAULT = 10014 ; The system detected an invalid pointer address in attempting to use a pointer argument in a call. -Global Const $WSAEINVAL = 10022 ; An invalid argument was supplied. -Global Const $WSAEMFILE = 10024 ; Too many open sockets. -Global Const $WSAEWOULDBLOCK = 10035 ; A non-blocking socket operation could not be completed immediately. -Global Const $WSAEINPROGRESS = 10036 ; A blocking operation is currently executing. -Global Const $WSAEALREADY = 10037 ; An operation was attempted on a non-blocking socket that already had an operation in progress. -Global Const $WSAENOTSOCK = 10038 ; An operation was attempted on something that is not a socket. -Global Const $WSAEDESTADDRREQ = 10039 ; A required address was omitted from an operation on a socket. -Global Const $WSAEMSGSIZE = 10040 ; A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself. -Global Const $WSAEPROTOTYPE = 10041 ; A protocol was specified in the socket function call that does not support the semantics of the socket type requested. -Global Const $WSAENOPROTOOPT = 10042 ; An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call. -Global Const $WSAEPROTONOSUPPORT = 10043 ; The requested protocol has not been configured into the system, or no implementation for it exists. -Global Const $WSAESOCKTNOSUPPORT = 10044 ; The support for the specified socket type does not exist in this address family. -Global Const $WSAEOPNOTSUPP = 10045 ; The attempted operation is not supported for the type of object referenced. -Global Const $WSAEPFNOSUPPORT = 10046 ; The protocol family has not been configured into the system or no implementation for it exists. -Global Const $WSAEAFNOSUPPORT = 10047 ; An address incompatible with the requested protocol was used. -Global Const $WSAEADDRINUSE = 10048 ; Only one usage of each socket address (protocol/network address/port) is normally permitted. -Global Const $WSAEADDRNOTAVAIL = 10049 ; The requested address is not valid in its context. -Global Const $WSAENETDOWN = 10050 ; A socket operation encountered a dead network. -Global Const $WSAENETUNREACH = 10051 ; A socket operation was attempted to an unreachable network. -Global Const $WSAENETRESET = 10052 ; The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress. -Global Const $WSAECONNABORTED = 10053 ; An established connection was aborted by the software in your host machine. -Global Const $WSAECONNRESET = 10054 ; An existing connection was forcibly closed by the remote host. -Global Const $WSAENOBUFS = 10055 ; An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. -Global Const $WSAEISCONN = 10056 ; A connect request was made on an already connected socket. -Global Const $WSAENOTCONN = 10057 ; A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied. -Global Const $WSAESHUTDOWN = 10058 ; A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call. -Global Const $WSAETOOMANYREFS = 10059 ; Too many references to some kernel object. -Global Const $WSAETIMEDOUT = 10060 ; A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. -Global Const $WSAECONNREFUSED = 10061 ; No connection could be made because the target machine actively refused it. -Global Const $WSAELOOP = 10062 ; Cannot translate name. -Global Const $WSAENAMETOOLONG = 10063 ; Name component or name was too long. -Global Const $WSAEHOSTDOWN = 10064 ; A socket operation failed because the destination host was down. -Global Const $WSAEHOSTUNREACH = 10065 ; A socket operation was attempted to an unreachable host. -Global Const $WSAENOTEMPTY = 10066 ; Cannot remove a directory that is not empty. -Global Const $WSAEPROCLIM = 10067 ; A Windows Sockets implementation may have a limit on the number of applications that may use it simultaneously. -Global Const $WSAEUSERS = 10068 ; Ran out of quota. -Global Const $WSAEDQUOT = 10069 ; Ran out of disk quota. -Global Const $WSAESTALE = 10070 ; File handle reference is no longer available. -Global Const $WSAEREMOTE = 10071 ; Item is not available locally. -Global Const $WSASYSNOTREADY = 10091 ; WSAStartup cannot function at this time because the underlying system it uses to provide network services is currently unavailable. -Global Const $WSAVERNOTSUPPORTED = 10092 ; The Windows Sockets version requested is not supported. -Global Const $WSANOTINITIALISED = 10093 ; Either the application has not called WSAStartup, or WSAStartup failed. -Global Const $WSAEDISCON = 10101 ; Returned by WSARecv or WSARecvFrom to indicate the remote party has initiated a graceful shutdown sequence. -Global Const $WSAENOMORE = 10102 ; No more results can be returned by WSALookupServiceNext. -Global Const $WSAECANCELLED = 10103 ; A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled. -Global Const $WSAEINVALIDPROCTABLE = 10104 ; The procedure call table is invalid. -Global Const $WSAEINVALIDPROVIDER = 10105 ; The requested service provider is invalid. -Global Const $WSAEPROVIDERFAILEDINIT = 10106 ; The requested service provider could not be loaded or initialized. -Global Const $WSASYSCALLFAILURE = 10107 ; A system call has failed. -Global Const $WSASERVICE_NOT_FOUND = 10108 ; No such service is known. The service cannot be found in the specified name space. -Global Const $WSATYPE_NOT_FOUND = 10109 ; The specified class was not found. -Global Const $WSA_E_NO_MORE = 10110 ; No more results can be returned by WSALookupServiceNext. -Global Const $WSA_E_CANCELLED = 10111 ; A call to WSALookupServiceEnd was made while this call was still processing. The call has been canceled. -Global Const $WSAEREFUSED = 10112 ; A database query failed because it was actively refused. -Global Const $WSAHOST_NOT_FOUND = 11001 ; No such host is known. -Global Const $WSATRY_AGAIN = 11002 ; This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server. -Global Const $WSANO_RECOVERY = 11003 ; A non-recoverable error occurred during a database lookup. -Global Const $WSANO_DATA = 11004 ; The requested name is valid, but no data of the requested type was found. -Global Const $WSA_QOS_RECEIVERS = 11005 ; At least one reserve has arrived. -Global Const $WSA_QOS_SENDERS = 11006 ; At least one path has arrived. -Global Const $WSA_QOS_NO_SENDERS = 11007 ; There are no senders. -Global Const $WSA_QOS_NO_RECEIVERS = 11008 ; There are no receivers. -Global Const $WSA_QOS_REQUEST_CONFIRMED = 11009 ; Reserve has been confirmed. -Global Const $WSA_QOS_ADMISSION_FAILURE = 11010 ; Error due to lack of resources. -Global Const $WSA_QOS_POLICY_FAILURE = 11011 ; Rejected for administrative reasons - bad credentials. -Global Const $WSA_QOS_BAD_STYLE = 11012 ; Unknown or conflicting style. -Global Const $WSA_QOS_BAD_OBJECT = 11013 ; Problem with some part of the filterspec or providerspecific buffer in general. -Global Const $WSA_QOS_TRAFFIC_CTRL_ERROR = 11014 ; Problem with some part of the flowspec. -Global Const $WSA_QOS_GENERIC_ERROR = 11015 ; General QOS error. -Global Const $WSA_QOS_ESERVICETYPE = 11016 ; An invalid or unrecognized service type was found in the flowspec. -Global Const $WSA_QOS_EFLOWSPEC = 11017 ; An invalid or inconsistent flowspec was found in the QOS structure. -Global Const $WSA_QOS_EPROVSPECBUF = 11018 ; Invalid QOS provider-specific buffer. -Global Const $WSA_QOS_EFILTERSTYLE = 11019 ; An invalid QOS filter style was used. -Global Const $WSA_QOS_EFILTERTYPE = 11020 ; An invalid QOS filter type was used. -Global Const $WSA_QOS_EFILTERCOUNT = 11021 ; An incorrect number of QOS FILTERSPECs were specified in the FLOWDESCRIPTOR. -Global Const $WSA_QOS_EOBJLENGTH = 11022 ; An object with an invalid ObjectLength field was specified in the QOS provider-specific buffer. -Global Const $WSA_QOS_EFLOWCOUNT = 11023 ; An incorrect number of flow descriptors was specified in the QOS structure. -Global Const $WSA_QOS_EUNKOWNPSOBJ = 11024 ; An unrecognized object was found in the QOS provider-specific buffer. -Global Const $WSA_QOS_EPOLICYOBJ = 11025 ; An invalid policy object was found in the QOS provider-specific buffer. -Global Const $WSA_QOS_EFLOWDESC = 11026 ; An invalid QOS flow descriptor was found in the flow descriptor list. -Global Const $WSA_QOS_EPSFLOWSPEC = 11027 ; An invalid or inconsistent flowspec was found in the QOS provider specific buffer. -Global Const $WSA_QOS_EPSFILTERSPEC = 11028 ; An invalid FILTERSPEC was found in the QOS provider-specific buffer. -Global Const $WSA_QOS_ESDMODEOBJ = 11029 ; An invalid shape discard mode object was found in the QOS provider specific buffer. -Global Const $WSA_QOS_ESHAPERATEOBJ = 11030 ; An invalid shaping rate object was found in the QOS provider-specific buffer. -Global Const $WSA_QOS_RESERVED_PETYPE = 11031 ; A reserved policy element was found in the QOS provider-specific buffer. -Global Const $WSA_SECURE_HOST_NOT_FOUND = 11032 ; No such host is known securely. -Global Const $WSA_IPSEC_NAME_POLICY_ERROR = 11033 ; Name based IPSEC policy could not be added. -; Global Const $ERROR_INTERNET_* = 12000 - 12174 ; Internet Error Codes -Global Const $ERROR_IPSEC_QM_POLICY_EXISTS = 13000 ; The specified quick mode policy already exists. -Global Const $ERROR_IPSEC_QM_POLICY_NOT_FOUND = 13001 ; The specified quick mode policy was not found. -Global Const $ERROR_IPSEC_QM_POLICY_IN_USE = 13002 ; The specified quick mode policy is being used. -Global Const $ERROR_IPSEC_MM_POLICY_EXISTS = 13003 ; The specified main mode policy already exists. -Global Const $ERROR_IPSEC_MM_POLICY_NOT_FOUND = 13004 ; The specified main mode policy was not found. -Global Const $ERROR_IPSEC_MM_POLICY_IN_USE = 13005 ; The specified main mode policy is being used. -Global Const $ERROR_IPSEC_MM_FILTER_EXISTS = 13006 ; The specified main mode filter already exists. -Global Const $ERROR_IPSEC_MM_FILTER_NOT_FOUND = 13007 ; The specified main mode filter was not found. -Global Const $ERROR_IPSEC_TRANSPORT_FILTER_EXISTS = 13008 ; The specified transport mode filter already exists. -Global Const $ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND = 13009 ; The specified transport mode filter does not exist. -Global Const $ERROR_IPSEC_MM_AUTH_EXISTS = 13010 ; The specified main mode authentication list exists. -Global Const $ERROR_IPSEC_MM_AUTH_NOT_FOUND = 13011 ; The specified main mode authentication list was not found. -Global Const $ERROR_IPSEC_MM_AUTH_IN_USE = 13012 ; The specified main mode authentication list is being used. -Global Const $ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND = 13013 ; The specified default main mode policy was not found. -Global Const $ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND = 13014 ; The specified default main mode authentication list was not found. -Global Const $ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND = 13015 ; The specified default quick mode policy was not found. -Global Const $ERROR_IPSEC_TUNNEL_FILTER_EXISTS = 13016 ; The specified tunnel mode filter exists. -Global Const $ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND = 13017 ; The specified tunnel mode filter was not found. -Global Const $ERROR_IPSEC_MM_FILTER_PENDING_DELETION = 13018 ; The Main Mode filter is pending deletion. -Global Const $ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION = 13019 ; The transport filter is pending deletion. -Global Const $ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION = 13020 ; The tunnel filter is pending deletion. -Global Const $ERROR_IPSEC_MM_POLICY_PENDING_DELETION = 13021 ; The Main Mode policy is pending deletion. -Global Const $ERROR_IPSEC_MM_AUTH_PENDING_DELETION = 13022 ; The Main Mode authentication bundle is pending deletion. -Global Const $ERROR_IPSEC_QM_POLICY_PENDING_DELETION = 13023 ; The Quick Mode policy is pending deletion. -Global Const $WARNING_IPSEC_MM_POLICY_PRUNED = 13024 ; The Main Mode policy was successfully added, but some of the requested offers are not supported. -Global Const $WARNING_IPSEC_QM_POLICY_PRUNED = 13025 ; The Quick Mode policy was successfully added, but some of the requested offers are not supported. -Global Const $ERROR_IPSEC_IKE_NEG_STATUS_BEGIN = 13800 ; ERROR_IPSEC_IKE_NEG_STATUS_BEGIN -Global Const $ERROR_IPSEC_IKE_AUTH_FAIL = 13801 ; IKE authentication credentials are unacceptable. -Global Const $ERROR_IPSEC_IKE_ATTRIB_FAIL = 13802 ; IKE security attributes are unacceptable. -Global Const $ERROR_IPSEC_IKE_NEGOTIATION_PENDING = 13803 ; IKE Negotiation in progress. -Global Const $ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR = 13804 ; General processing error. -Global Const $ERROR_IPSEC_IKE_TIMED_OUT = 13805 ; Negotiation timed out. -Global Const $ERROR_IPSEC_IKE_NO_CERT = 13806 ; IKE failed to find valid machine certificate. Contact your Network Security Administrator about installing a valid certificate in the appropriate Certificate Store. -Global Const $ERROR_IPSEC_IKE_SA_DELETED = 13807 ; IKE SA deleted by peer before establishment completed. -Global Const $ERROR_IPSEC_IKE_SA_REAPED = 13808 ; IKE SA deleted before establishment completed. -Global Const $ERROR_IPSEC_IKE_MM_ACQUIRE_DROP = 13809 ; Negotiation request sat in Queue too long. -Global Const $ERROR_IPSEC_IKE_QM_ACQUIRE_DROP = 13810 ; Negotiation request sat in Queue too long. -Global Const $ERROR_IPSEC_IKE_QUEUE_DROP_MM = 13811 ; Negotiation request sat in Queue too long. -Global Const $ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM = 13812 ; Negotiation request sat in Queue too long. -Global Const $ERROR_IPSEC_IKE_DROP_NO_RESPONSE = 13813 ; No response from peer. -Global Const $ERROR_IPSEC_IKE_MM_DELAY_DROP = 13814 ; Negotiation took too long. -Global Const $ERROR_IPSEC_IKE_QM_DELAY_DROP = 13815 ; Negotiation took too long. -Global Const $ERROR_IPSEC_IKE_ERROR = 13816 ; Unknown error occurred. -Global Const $ERROR_IPSEC_IKE_CRL_FAILED = 13817 ; Certificate Revocation Check failed. -Global Const $ERROR_IPSEC_IKE_INVALID_KEY_USAGE = 13818 ; Invalid certificate key usage. -Global Const $ERROR_IPSEC_IKE_INVALID_CERT_TYPE = 13819 ; Invalid certificate type. -Global Const $ERROR_IPSEC_IKE_NO_PRIVATE_KEY = 13820 ; IKE negotiation failed because the machine certificate used does not have a private key. IPsec certificates require a private key. Contact your Network Security administrator about replacing with a certificate that has a private key. -Global Const $ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY = 13821 ; Simultaneous rekeys were detected. -Global Const $ERROR_IPSEC_IKE_DH_FAIL = 13822 ; Failure in Diffie-Hellman computation. -Global Const $ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED = 13823 ; Don't know how to process critical payload. -Global Const $ERROR_IPSEC_IKE_INVALID_HEADER = 13824 ; Invalid header. -Global Const $ERROR_IPSEC_IKE_NO_POLICY = 13825 ; No policy configured. -Global Const $ERROR_IPSEC_IKE_INVALID_SIGNATURE = 13826 ; Failed to verify signature. -Global Const $ERROR_IPSEC_IKE_KERBEROS_ERROR = 13827 ; Failed to authenticate using Kerberos. -Global Const $ERROR_IPSEC_IKE_NO_PUBLIC_KEY = 13828 ; Peer's certificate did not have a public key. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR = 13829 ; Error processing error payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_SA = 13830 ; Error processing SA payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_PROP = 13831 ; Error processing Proposal payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_TRANS = 13832 ; Error processing Transform payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_KE = 13833 ; Error processing KE payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_ID = 13834 ; Error processing ID payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_CERT = 13835 ; Error processing Cert payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ = 13836 ; Error processing Certificate Request payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_HASH = 13837 ; Error processing Hash payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_SIG = 13838 ; Error processing Signature payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_NONCE = 13839 ; Error processing Nonce payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY = 13840 ; Error processing Notify payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_DELETE = 13841 ; Error processing Delete Payload. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR = 13842 ; Error processing VendorId payload. -Global Const $ERROR_IPSEC_IKE_INVALID_PAYLOAD = 13843 ; Invalid payload received. -Global Const $ERROR_IPSEC_IKE_LOAD_SOFT_SA = 13844 ; Soft SA loaded. -Global Const $ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN = 13845 ; Soft SA torn down. -Global Const $ERROR_IPSEC_IKE_INVALID_COOKIE = 13846 ; Invalid cookie received. -Global Const $ERROR_IPSEC_IKE_NO_PEER_CERT = 13847 ; Peer failed to send valid machine certificate. -Global Const $ERROR_IPSEC_IKE_PEER_CRL_FAILED = 13848 ; Certification Revocation check of peer's certificate failed. -Global Const $ERROR_IPSEC_IKE_POLICY_CHANGE = 13849 ; New policy invalidated SAs formed with old policy. -Global Const $ERROR_IPSEC_IKE_NO_MM_POLICY = 13850 ; There is no available Main Mode IKE policy. -Global Const $ERROR_IPSEC_IKE_NOTCBPRIV = 13851 ; Failed to enabled TCB privilege. -Global Const $ERROR_IPSEC_IKE_SECLOADFAIL = 13852 ; Failed to load SECURITY.DLL. -Global Const $ERROR_IPSEC_IKE_FAILSSPINIT = 13853 ; Failed to obtain security function table dispatch address from SSPI. -Global Const $ERROR_IPSEC_IKE_FAILQUERYSSP = 13854 ; Failed to query Kerberos package to obtain max token size. -Global Const $ERROR_IPSEC_IKE_SRVACQFAIL = 13855 ; Failed to obtain Kerberos server credentials for ISAKMP/ERROR_IPSEC_IKE service. Kerberos authentication will not function. The most likely reason for this is lack of domain membership. This is normal if your computer is a member of a workgroup. -Global Const $ERROR_IPSEC_IKE_SRVQUERYCRED = 13856 ; Failed to determine SSPI principal name for ISAKMP/ERROR_IPSEC_IKE service (QueryCredentialsAttributes). -Global Const $ERROR_IPSEC_IKE_GETSPIFAIL = 13857 ; Failed to obtain new SPI for the inbound SA from Ipsec driver. The most common cause for this is that the driver does not have the correct filter. Check your policy to verify the filters. -Global Const $ERROR_IPSEC_IKE_INVALID_FILTER = 13858 ; Given filter is invalid. -Global Const $ERROR_IPSEC_IKE_OUT_OF_MEMORY = 13859 ; Memory allocation failed. -Global Const $ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED = 13860 ; Failed to add Security Association to IPSec Driver. The most common cause for this is if the IKE negotiation took too long to complete. If the problem persists, reduce the load on the faulting machine. -Global Const $ERROR_IPSEC_IKE_INVALID_POLICY = 13861 ; Invalid policy. -Global Const $ERROR_IPSEC_IKE_UNKNOWN_DOI = 13862 ; Invalid DOI. -Global Const $ERROR_IPSEC_IKE_INVALID_SITUATION = 13863 ; Invalid situation. -Global Const $ERROR_IPSEC_IKE_DH_FAILURE = 13864 ; Diffie-Hellman failure. -Global Const $ERROR_IPSEC_IKE_INVALID_GROUP = 13865 ; Invalid Diffie-Hellman group. -Global Const $ERROR_IPSEC_IKE_ENCRYPT = 13866 ; Error encrypting payload. -Global Const $ERROR_IPSEC_IKE_DECRYPT = 13867 ; Error decrypting payload. -Global Const $ERROR_IPSEC_IKE_POLICY_MATCH = 13868 ; Policy match error. -Global Const $ERROR_IPSEC_IKE_UNSUPPORTED_ID = 13869 ; Unsupported ID. -Global Const $ERROR_IPSEC_IKE_INVALID_HASH = 13870 ; Hash verification failed. -Global Const $ERROR_IPSEC_IKE_INVALID_HASH_ALG = 13871 ; Invalid hash algorithm. -Global Const $ERROR_IPSEC_IKE_INVALID_HASH_SIZE = 13872 ; Invalid hash size. -Global Const $ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG = 13873 ; Invalid encryption algorithm. -Global Const $ERROR_IPSEC_IKE_INVALID_AUTH_ALG = 13874 ; Invalid authentication algorithm. -Global Const $ERROR_IPSEC_IKE_INVALID_SIG = 13875 ; Invalid certificate signature. -Global Const $ERROR_IPSEC_IKE_LOAD_FAILED = 13876 ; Load failed. -Global Const $ERROR_IPSEC_IKE_RPC_DELETE = 13877 ; Deleted via RPC call. -Global Const $ERROR_IPSEC_IKE_BENIGN_REINIT = 13878 ; Temporary state created to perform reinit. This is not a real failure. -Global Const $ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY = 13879 ; The lifetime value received in the Responder Lifetime Notify is below the Windows configured minimum value. Please fix the policy on the peer machine. -Global Const $ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION = 13880 ; The recipient cannot handle version of IKE specified in the header. -Global Const $ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN = 13881 ; Key length in certificate is too small for configured security requirements. -Global Const $ERROR_IPSEC_IKE_MM_LIMIT = 13882 ; Max number of established MM SAs to peer exceeded. -Global Const $ERROR_IPSEC_IKE_NEGOTIATION_DISABLED = 13883 ; IKE received a policy that disables negotiation. -Global Const $ERROR_IPSEC_IKE_QM_LIMIT = 13884 ; Reached maximum quick mode limit for the main mode. New main mode will be started. -Global Const $ERROR_IPSEC_IKE_MM_EXPIRED = 13885 ; Main mode SA lifetime expired or peer sent a main mode delete. -Global Const $ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID = 13886 ; Main mode SA assumed to be invalid because peer stopped responding. -Global Const $ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH = 13887 ; Certificate doesn't chain to a trusted root in IPsec policy. -Global Const $ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID = 13888 ; Received unexpected message ID. -Global Const $ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD = 13889 ; Received invalid authentication offers. -Global Const $ERROR_IPSEC_IKE_DOS_COOKIE_SENT = 13890 ; Sent DOS cookie notify to initiator. -Global Const $ERROR_IPSEC_IKE_SHUTTING_DOWN = 13891 ; IKE service is shutting down. -Global Const $ERROR_IPSEC_IKE_CGA_AUTH_FAILED = 13892 ; Could not verify binding between CGA address and certificate. -Global Const $ERROR_IPSEC_IKE_PROCESS_ERR_NATOA = 13893 ; Error processing NatOA payload. -Global Const $ERROR_IPSEC_IKE_INVALID_MM_FOR_QM = 13894 ; Parameters of the main mode are invalid for this quick mode. -Global Const $ERROR_IPSEC_IKE_QM_EXPIRED = 13895 ; Quick mode SA was expired by IPsec driver. -Global Const $ERROR_IPSEC_IKE_TOO_MANY_FILTERS = 13896 ; Too many dynamically added IKEEXT filters were detected. -Global Const $ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL = 13898 ; NAP reauth succeeded and must delete the dummy NAP IkeV2 tunnel. -Global Const $ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE = 13899 ; Error in assigning inner IP address to initiator in tunnel mode. -Global Const $ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING = 13900 ; Require configuration payload missing. -Global Const $ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING = 13901 ; A negotiation running as the security principle who issued the connection is in progress. -Global Const $ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS = 13902 ; SA was deleted due to IKEv1/AuthIP co-existence suppress check. -Global Const $ERROR_IPSEC_IKE_RATELIMIT_DROP = 13903 ; Incoming SA request was dropped due to peer IP address rate limiting. -Global Const $ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE = 13904 ; Peer does not support MOBIKE. -Global Const $ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE = 13905 ; SA establishment is not authorized. -Global Const $ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END = 13909 ; ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END -Global Const $ERROR_IPSEC_BAD_SPI = 13910 ; The SPI in the packet does not match a valid IPsec SA. -Global Const $ERROR_IPSEC_SA_LIFETIME_EXPIRED = 13911 ; Packet was received on an IPsec SA whose lifetime has expired. -Global Const $ERROR_IPSEC_WRONG_SA = 13912 ; Packet was received on an IPsec SA that doesn't match the packet characteristics. -Global Const $ERROR_IPSEC_REPLAY_CHECK_FAILED = 13913 ; Packet sequence number replay check failed. -Global Const $ERROR_IPSEC_INVALID_PACKET = 13914 ; IPsec header and/or trailer in the packet is invalid. -Global Const $ERROR_IPSEC_INTEGRITY_CHECK_FAILED = 13915 ; IPsec integrity check failed. -Global Const $ERROR_IPSEC_CLEAR_TEXT_DROP = 13916 ; IPsec dropped a clear text packet. -Global Const $ERROR_IPSEC_AUTH_FIREWALL_DROP = 13917 ; IPsec dropped an incoming ESP packet in authenticated firewall mode. This drop is benign. -Global Const $ERROR_IPSEC_THROTTLE_DROP = 13918 ; IPsec dropped a packet due to DOS throttle. -Global Const $ERROR_IPSEC_DOSP_BLOCK = 13925 ; IPsec Dos Protection matched an explicit block rule. -Global Const $ERROR_IPSEC_DOSP_RECEIVED_MULTICAST = 13926 ; IPsec Dos Protection received an IPsec specific multicast packet which is not allowed. -Global Const $ERROR_IPSEC_DOSP_INVALID_PACKET = 13927 ; IPsec Dos Protection received an incorrectly formatted packet. -Global Const $ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED = 13928 ; IPsec Dos Protection failed to lookup state. -Global Const $ERROR_IPSEC_DOSP_MAX_ENTRIES = 13929 ; IPsec Dos Protection failed to create state because there are already maximum number of entries allowed by policy. -Global Const $ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED = 13930 ; IPsec Dos Protection received an IPsec negotiation packet for a keying module which is not allowed by policy. -Global Const $ERROR_IPSEC_DOSP_NOT_INSTALLED = 13931 ; IPsec Dos Protection has not been enabled. -Global Const $ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES = 13932 ; IPsec Dos Protection failed to create per internal IP ratelimit queue because there is already maximum number of queues allowed by policy. -Global Const $ERROR_SXS_SECTION_NOT_FOUND = 14000 ; The requested section was not present in the activation context. -Global Const $ERROR_SXS_CANT_GEN_ACTCTX = 14001 ; The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tools for more detail. -Global Const $ERROR_SXS_INVALID_ACTCTXDATA_FORMAT = 14002 ; The application binding data format is invalid. -Global Const $ERROR_SXS_ASSEMBLY_NOT_FOUND = 14003 ; The referenced assembly is not installed on your system. -Global Const $ERROR_SXS_MANIFEST_FORMAT_ERROR = 14004 ; The manifest file does not begin with the required tag and format information. -Global Const $ERROR_SXS_MANIFEST_PARSE_ERROR = 14005 ; The manifest file contains one or more syntax errors. -Global Const $ERROR_SXS_ACTIVATION_CONTEXT_DISABLED = 14006 ; The application attempted to activate a disabled activation context. -Global Const $ERROR_SXS_KEY_NOT_FOUND = 14007 ; The requested lookup key was not found in any active activation context. -Global Const $ERROR_SXS_VERSION_CONFLICT = 14008 ; A component version required by the application conflicts with another component version already active. -Global Const $ERROR_SXS_WRONG_SECTION_TYPE = 14009 ; The type requested activation context section does not match the query API used. -Global Const $ERROR_SXS_THREAD_QUERIES_DISABLED = 14010 ; Lack of system resources has required isolated activation to be disabled for the current thread of execution. -Global Const $ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET = 14011 ; An attempt to set the process default activation context failed because the process default activation context was already set. -Global Const $ERROR_SXS_UNKNOWN_ENCODING_GROUP = 14012 ; The encoding group identifier specified is not recognized. -Global Const $ERROR_SXS_UNKNOWN_ENCODING = 14013 ; The encoding requested is not recognized. -Global Const $ERROR_SXS_INVALID_XML_NAMESPACE_URI = 14014 ; The manifest contains a reference to an invalid URI. -Global Const $ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED = 14015 ; The application manifest contains a reference to a dependent assembly which is not installed. -Global Const $ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED = 14016 ; The manifest for an assembly used by the application has a reference to a dependent assembly which is not installed. -Global Const $ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE = 14017 ; The manifest contains an attribute for the assembly identity which is not valid. -Global Const $ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE = 14018 ; The manifest is missing the required default namespace specification on the assembly element. -Global Const $ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE = 14019 ; The manifest has a default namespace specified on the assembly element but its value is not "urn:schemas-microsoft-com:asm.v1". -Global Const $ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT = 14020 ; The private manifest probed has crossed a path with an unsupported reparse point. -Global Const $ERROR_SXS_DUPLICATE_DLL_NAME = 14021 ; Two or more components referenced directly or indirectly by the application manifest have files by the same name. -Global Const $ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME = 14022 ; Two or more components referenced directly or indirectly by the application manifest have window classes with the same name. -Global Const $ERROR_SXS_DUPLICATE_CLSID = 14023 ; Two or more components referenced directly or indirectly by the application manifest have the same COM server CLSIDs. -Global Const $ERROR_SXS_DUPLICATE_IID = 14024 ; Two or more components referenced directly or indirectly by the application manifest have proxies for the same COM interface IIDs. -Global Const $ERROR_SXS_DUPLICATE_TLBID = 14025 ; Two or more components referenced directly or indirectly by the application manifest have the same COM type library TLBIDs. -Global Const $ERROR_SXS_DUPLICATE_PROGID = 14026 ; Two or more components referenced directly or indirectly by the application manifest have the same COM ProgIDs. -Global Const $ERROR_SXS_DUPLICATE_ASSEMBLY_NAME = 14027 ; Two or more components referenced directly or indirectly by the application manifest are different versions of the same component which is not permitted. -Global Const $ERROR_SXS_FILE_HASH_MISMATCH = 14028 ; A component's file does not match the verification information present in the component manifest. -Global Const $ERROR_SXS_POLICY_PARSE_ERROR = 14029 ; The policy manifest contains one or more syntax errors. -Global Const $ERROR_SXS_XML_E_MISSINGQUOTE = 14030 ; Manifest Parse Error : A string literal was expected, but no opening quote character was found. -Global Const $ERROR_SXS_XML_E_COMMENTSYNTAX = 14031 ; Manifest Parse Error : Incorrect syntax was used in a comment. -Global Const $ERROR_SXS_XML_E_BADSTARTNAMECHAR = 14032 ; Manifest Parse Error : A name was started with an invalid character. -Global Const $ERROR_SXS_XML_E_BADNAMECHAR = 14033 ; Manifest Parse Error : A name contained an invalid character. -Global Const $ERROR_SXS_XML_E_BADCHARINSTRING = 14034 ; Manifest Parse Error : A string literal contained an invalid character. -Global Const $ERROR_SXS_XML_E_XMLDECLSYNTAX = 14035 ; Manifest Parse Error : Invalid syntax for an xml declaration. -Global Const $ERROR_SXS_XML_E_BADCHARDATA = 14036 ; Manifest Parse Error : An Invalid character was found in text content. -Global Const $ERROR_SXS_XML_E_MISSINGWHITESPACE = 14037 ; Manifest Parse Error : Required white space was missing. -Global Const $ERROR_SXS_XML_E_EXPECTINGTAGEND = 14038 ; Manifest Parse Error : The character '>' was expected. -Global Const $ERROR_SXS_XML_E_MISSINGSEMICOLON = 14039 ; Manifest Parse Error : A semi colon character was expected. -Global Const $ERROR_SXS_XML_E_UNBALANCEDPAREN = 14040 ; Manifest Parse Error : Unbalanced parentheses. -Global Const $ERROR_SXS_XML_E_INTERNALERROR = 14041 ; Manifest Parse Error : Internal error. -Global Const $ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE = 14042 ; Manifest Parse Error : Whitespace is not allowed at this location. -Global Const $ERROR_SXS_XML_E_INCOMPLETE_ENCODING = 14043 ; Manifest Parse Error : End of file reached in invalid state for current encoding. -Global Const $ERROR_SXS_XML_E_MISSING_PAREN = 14044 ; Manifest Parse Error : Missing parenthesis. -Global Const $ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE = 14045 ; Manifest Parse Error : A single or double closing quote character (\' or \") is missing. -Global Const $ERROR_SXS_XML_E_MULTIPLE_COLONS = 14046 ; Manifest Parse Error : Multiple colons are not allowed in a name. -Global Const $ERROR_SXS_XML_E_INVALID_DECIMAL = 14047 ; Manifest Parse Error : Invalid character for decimal digit. -Global Const $ERROR_SXS_XML_E_INVALID_HEXIDECIMAL = 14048 ; Manifest Parse Error : Invalid character for hexadecimal digit. -Global Const $ERROR_SXS_XML_E_INVALID_UNICODE = 14049 ; Manifest Parse Error : Invalid unicode character value for this platform. -Global Const $ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK = 14050 ; Manifest Parse Error : Expecting whitespace or '?'. -Global Const $ERROR_SXS_XML_E_UNEXPECTEDENDTAG = 14051 ; Manifest Parse Error : End tag was not expected at this location. -Global Const $ERROR_SXS_XML_E_UNCLOSEDTAG = 14052 ; Manifest Parse Error : The following tags were not closed: %1. -Global Const $ERROR_SXS_XML_E_DUPLICATEATTRIBUTE = 14053 ; Manifest Parse Error : Duplicate attribute. -Global Const $ERROR_SXS_XML_E_MULTIPLEROOTS = 14054 ; Manifest Parse Error : Only one top level element is allowed in an XML document. -Global Const $ERROR_SXS_XML_E_INVALIDATROOTLEVEL = 14055 ; Manifest Parse Error : Invalid at the top level of the document. -Global Const $ERROR_SXS_XML_E_BADXMLDECL = 14056 ; Manifest Parse Error : Invalid xml declaration. -Global Const $ERROR_SXS_XML_E_MISSINGROOT = 14057 ; Manifest Parse Error : XML document must have a top level element. -Global Const $ERROR_SXS_XML_E_UNEXPECTEDEOF = 14058 ; Manifest Parse Error : Unexpected end of file. -Global Const $ERROR_SXS_XML_E_BADPEREFINSUBSET = 14059 ; Manifest Parse Error : Parameter entities cannot be used inside markup declarations in an internal subset. -Global Const $ERROR_SXS_XML_E_UNCLOSEDSTARTTAG = 14060 ; Manifest Parse Error : Element was not closed. -Global Const $ERROR_SXS_XML_E_UNCLOSEDENDTAG = 14061 ; Manifest Parse Error : End element was missing the character '>'. -Global Const $ERROR_SXS_XML_E_UNCLOSEDSTRING = 14062 ; Manifest Parse Error : A string literal was not closed. -Global Const $ERROR_SXS_XML_E_UNCLOSEDCOMMENT = 14063 ; Manifest Parse Error : A comment was not closed. -Global Const $ERROR_SXS_XML_E_UNCLOSEDDECL = 14064 ; Manifest Parse Error : A declaration was not closed. -Global Const $ERROR_SXS_XML_E_UNCLOSEDCDATA = 14065 ; Manifest Parse Error : A CDATA section was not closed. -Global Const $ERROR_SXS_XML_E_RESERVEDNAMESPACE = 14066 ; Manifest Parse Error : The namespace prefix is not allowed to start with the reserved string "xml". -Global Const $ERROR_SXS_XML_E_INVALIDENCODING = 14067 ; Manifest Parse Error : System does not support the specified encoding. -Global Const $ERROR_SXS_XML_E_INVALIDSWITCH = 14068 ; Manifest Parse Error : Switch from current encoding to specified encoding not supported. -Global Const $ERROR_SXS_XML_E_BADXMLCASE = 14069 ; Manifest Parse Error : The name 'xml' is reserved and must be lower case. -Global Const $ERROR_SXS_XML_E_INVALID_STANDALONE = 14070 ; Manifest Parse Error : The standalone attribute must have the value 'yes' or 'no'. -Global Const $ERROR_SXS_XML_E_UNEXPECTED_STANDALONE = 14071 ; Manifest Parse Error : The standalone attribute cannot be used in external entities. -Global Const $ERROR_SXS_XML_E_INVALID_VERSION = 14072 ; Manifest Parse Error : Invalid version number. -Global Const $ERROR_SXS_XML_E_MISSINGEQUALS = 14073 ; Manifest Parse Error : Missing equals sign between attribute and attribute value. -Global Const $ERROR_SXS_PROTECTION_RECOVERY_FAILED = 14074 ; Assembly Protection Error : Unable to recover the specified assembly. -Global Const $ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT = 14075 ; Assembly Protection Error : The public key for an assembly was too short to be allowed. -Global Const $ERROR_SXS_PROTECTION_CATALOG_NOT_VALID = 14076 ; Assembly Protection Error : The catalog for an assembly is not valid, or does not match the assembly's manifest. -Global Const $ERROR_SXS_UNTRANSLATABLE_HRESULT = 14077 ; An HRESULT could not be translated to a corresponding Win32 error code. -Global Const $ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING = 14078 ; Assembly Protection Error : The catalog for an assembly is missing. -Global Const $ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE = 14079 ; The supplied assembly identity is missing one or more attributes which must be present in this context. -Global Const $ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME = 14080 ; The supplied assembly identity has one or more attribute names that contain characters not permitted in XML names. -Global Const $ERROR_SXS_ASSEMBLY_MISSING = 14081 ; The referenced assembly could not be found. -Global Const $ERROR_SXS_CORRUPT_ACTIVATION_STACK = 14082 ; The activation context activation stack for the running thread of execution is corrupt. -Global Const $ERROR_SXS_CORRUPTION = 14083 ; The application isolation metadata for this process or thread has become corrupt. -Global Const $ERROR_SXS_EARLY_DEACTIVATION = 14084 ; The activation context being deactivated is not the most recently activated one. -Global Const $ERROR_SXS_INVALID_DEACTIVATION = 14085 ; The activation context being deactivated is not active for the current thread of execution. -Global Const $ERROR_SXS_MULTIPLE_DEACTIVATION = 14086 ; The activation context being deactivated has already been deactivated. -Global Const $ERROR_SXS_PROCESS_TERMINATION_REQUESTED = 14087 ; A component used by the isolation facility has requested to terminate the process. -Global Const $ERROR_SXS_RELEASE_ACTIVATION_CONTEXT = 14088 ; A kernel mode component is releasing a reference on an activation context. -Global Const $ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY = 14089 ; The activation context of system default assembly could not be generated. -Global Const $ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE = 14090 ; The value of an attribute in an identity is not within the legal range. -Global Const $ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME = 14091 ; The name of an attribute in an identity is not within the legal range. -Global Const $ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE = 14092 ; An identity contains two definitions for the same attribute. -Global Const $ERROR_SXS_IDENTITY_PARSE_ERROR = 14093 ; The identity string is malformed. This may be due to a trailing comma, more than two unnamed attributes, missing attribute name or missing attribute value. -Global Const $ERROR_MALFORMED_SUBSTITUTION_STRING = 14094 ; A string containing localized substitutable content was malformed. Either a dollar sign ($) was followed by something other than a left parenthesis or another dollar sign or an substitution's right parenthesis was not found. -Global Const $ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN = 14095 ; The public key token does not correspond to the public key specified. -Global Const $ERROR_UNMAPPED_SUBSTITUTION_STRING = 14096 ; A substitution string had no mapping. -Global Const $ERROR_SXS_ASSEMBLY_NOT_LOCKED = 14097 ; The component must be locked before making the request. -Global Const $ERROR_SXS_COMPONENT_STORE_CORRUPT = 14098 ; The component store has been corrupted. -Global Const $ERROR_ADVANCED_INSTALLER_FAILED = 14099 ; An advanced installer failed during setup or servicing. -Global Const $ERROR_XML_ENCODING_MISMATCH = 14100 ; The character encoding in the XML declaration did not match the encoding used in the document. -Global Const $ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT = 14101 ; The identities of the manifests are identical but their contents are different. -Global Const $ERROR_SXS_IDENTITIES_DIFFERENT = 14102 ; The component identities are different. -Global Const $ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT = 14103 ; The assembly is not a deployment. -Global Const $ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY = 14104 ; The file is not a part of the assembly. -Global Const $ERROR_SXS_MANIFEST_TOO_BIG = 14105 ; The size of the manifest exceeds the maximum allowed. -Global Const $ERROR_SXS_SETTING_NOT_REGISTERED = 14106 ; The setting is not registered. -Global Const $ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE = 14107 ; One or more required members of the transaction are not present. -Global Const $ERROR_SMI_PRIMITIVE_INSTALLER_FAILED = 14108 ; The SMI primitive installer failed during setup or servicing. -Global Const $ERROR_GENERIC_COMMAND_FAILED = 14109 ; A generic command executable returned a result that indicates failure. -Global Const $ERROR_SXS_FILE_HASH_MISSING = 14110 ; A component is missing file verification information in its manifest. -Global Const $ERROR_EVT_INVALID_CHANNEL_PATH = 15000 ; The specified channel path is invalid. -Global Const $ERROR_EVT_INVALID_QUERY = 15001 ; The specified query is invalid. -Global Const $ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND = 15002 ; The publisher metadata cannot be found in the resource. -Global Const $ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND = 15003 ; The template for an event definition cannot be found in the resource (error = %1). -Global Const $ERROR_EVT_INVALID_PUBLISHER_NAME = 15004 ; The specified publisher name is invalid. -Global Const $ERROR_EVT_INVALID_EVENT_DATA = 15005 ; The event data raised by the publisher is not compatible with the event template definition in the publisher's manifest. -Global Const $ERROR_EVT_CHANNEL_NOT_FOUND = 15007 ; The specified channel could not be found. Check channel configuration. -Global Const $ERROR_EVT_MALFORMED_XML_TEXT = 15008 ; The specified xml text was not well-formed. See Extended Error for more details. -Global Const $ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL = 15009 ; The caller is trying to subscribe to a direct channel which is not allowed. The events for a direct channel go directly to a logfile and cannot be subscribed to. -Global Const $ERROR_EVT_CONFIGURATION_ERROR = 15010 ; Configuration error. -Global Const $ERROR_EVT_QUERY_RESULT_STALE = 15011 ; The query result is stale / invalid. This may be due to the log being cleared or rolling over after the query result was created. Users should handle this code by releasing the query result object and reissuing the query. -Global Const $ERROR_EVT_QUERY_RESULT_INVALID_POSITION = 15012 ; Query result is currently at an invalid position. -Global Const $ERROR_EVT_NON_VALIDATING_MSXML = 15013 ; Registered MSXML doesn't support validation. -Global Const $ERROR_EVT_FILTER_ALREADYSCOPED = 15014 ; An expression can only be followed by a change of scope operation if it itself evaluates to a node set and is not already part of some other change of scope operation. -Global Const $ERROR_EVT_FILTER_NOTELTSET = 15015 ; Can't perform a step operation from a term that does not represent an element set. -Global Const $ERROR_EVT_FILTER_INVARG = 15016 ; Left hand side arguments to binary operators must be either attributes, nodes or variables and right hand side arguments must be constants. -Global Const $ERROR_EVT_FILTER_INVTEST = 15017 ; A step operation must involve either a node test or, in the case of a predicate, an algebraic expression against which to test each node in the node set identified by the preceding node set can be evaluated. -Global Const $ERROR_EVT_FILTER_INVTYPE = 15018 ; This data type is currently unsupported. -Global Const $ERROR_EVT_FILTER_PARSEERR = 15019 ; A syntax error occurred at position %1!d! -Global Const $ERROR_EVT_FILTER_UNSUPPORTEDOP = 15020 ; This operator is unsupported by this implementation of the filter. -Global Const $ERROR_EVT_FILTER_UNEXPECTEDTOKEN = 15021 ; The token encountered was unexpected. -Global Const $ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL = 15022 ; The requested operation cannot be performed over an enabled direct channel. The channel must first be disabled before performing the requested operation. -Global Const $ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE = 15023 ; Channel property %1!s! contains invalid value. The value has invalid type, is outside of valid range, can't be updated or is not supported by this type of channel. -Global Const $ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE = 15024 ; Publisher property %1!s! contains invalid value. The value has invalid type, is outside of valid range, can't be updated or is not supported by this type of publisher. -Global Const $ERROR_EVT_CHANNEL_CANNOT_ACTIVATE = 15025 ; The channel fails to activate. -Global Const $ERROR_EVT_FILTER_TOO_COMPLEX = 15026 ; The xpath expression exceeded supported complexity. Please simplify it or split it into two or more simple expressions. -Global Const $ERROR_EVT_MESSAGE_NOT_FOUND = 15027 ; The message resource is present but the message is not found in the string/message table. -Global Const $ERROR_EVT_MESSAGE_ID_NOT_FOUND = 15028 ; The message identifier for the desired message could not be found. -Global Const $ERROR_EVT_UNRESOLVED_VALUE_INSERT = 15029 ; The substitution string for insert index (%1) could not be found. -Global Const $ERROR_EVT_UNRESOLVED_PARAMETER_INSERT = 15030 ; The description string for parameter reference (%1) could not be found. -Global Const $ERROR_EVT_MAX_INSERTS_REACHED = 15031 ; The maximum number of replacements has been reached. -Global Const $ERROR_EVT_EVENT_DEFINITION_NOT_FOUND = 15032 ; The event definition could not be found for the event identifier (%1). -Global Const $ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND = 15033 ; The locale specific resource for the desired message is not present. -Global Const $ERROR_EVT_VERSION_TOO_OLD = 15034 ; The resource is too old to be compatible. -Global Const $ERROR_EVT_VERSION_TOO_NEW = 15035 ; The resource is too new to be compatible. -Global Const $ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY = 15036 ; The channel at index %1!d! of the query cannot be opened. -Global Const $ERROR_EVT_PUBLISHER_DISABLED = 15037 ; The publisher has been disabled and its resource is not available. This usually occurs when the publisher is in the process of being uninstalled or upgraded. -Global Const $ERROR_EVT_FILTER_OUT_OF_RANGE = 15038 ; Attempted to create a numeric type that is outside of its valid range. -Global Const $ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE = 15080 ; The subscription fails to activate. -Global Const $ERROR_EC_LOG_DISABLED = 15081 ; The log of the subscription is in disabled state, and cannot be used to forward events. The log must first be enabled before the subscription can be activated. -Global Const $ERROR_EC_CIRCULAR_FORWARDING = 15082 ; When forwarding events from local machine to itself, the query of the subscription can't contain target log of the subscription. -Global Const $ERROR_EC_CREDSTORE_FULL = 15083 ; The credential store that is used to save credentials is full. -Global Const $ERROR_EC_CRED_NOT_FOUND = 15084 ; The credential used by this subscription can't be found in credential store. -Global Const $ERROR_EC_NO_ACTIVE_CHANNEL = 15085 ; No active channel is found for the query. -Global Const $ERROR_MUI_FILE_NOT_FOUND = 15100 ; The resource loader failed to find MUI file. -Global Const $ERROR_MUI_INVALID_FILE = 15101 ; The resource loader failed to load MUI file because the file fail to pass validation. -Global Const $ERROR_MUI_INVALID_RC_CONFIG = 15102 ; The RC Manifest is corrupted with garbage data or unsupported version or missing required item. -Global Const $ERROR_MUI_INVALID_LOCALE_NAME = 15103 ; The RC Manifest has invalid culture name. -Global Const $ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME = 15104 ; The RC Manifest has invalid ultimatefallback name. -Global Const $ERROR_MUI_FILE_NOT_LOADED = 15105 ; The resource loader cache doesn't have loaded MUI entry. -Global Const $ERROR_RESOURCE_ENUM_USER_STOP = 15106 ; User stop resource enumeration. -Global Const $ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED = 15107 ; UI language installation failed. -Global Const $ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME = 15108 ; Locale installation failed. -Global Const $ERROR_MCA_INVALID_CAPABILITIES_STRING = 15200 ; The monitor returned a DDC/CI capabilities string that did not comply with the ACCESS.bus 3.0, DDC/CI 1.1, or MCCS 2 Revision 1 specification. -Global Const $ERROR_MCA_INVALID_VCP_VERSION = 15201 ; The monitor's VCP Version (0xDF) VCP code returned an invalid version value. -Global Const $ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION = 15202 ; The monitor does not comply with the MCCS specification it claims to supports. -Global Const $ERROR_MCA_MCCS_VERSION_MISMATCH = 15203 ; The MCCS version in a monitor's mccs_ver capability does not match the MCCS version the monitor reports when the VCP Version (0xDF) VCP code is used. -Global Const $ERROR_MCA_UNSUPPORTED_MCCS_VERSION = 15204 ; The Monitor Configuration API only works with monitors that support the MCCS 1.0 specification, MCCS 2.0 specification, or the MCCS 2.0 Revision 1 specification. -Global Const $ERROR_MCA_INTERNAL_ERROR = 15205 ; An internal Monitor Configuration API error occurred. -Global Const $ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED = 15206 ; The monitor returned an invalid monitor technology type. CRT, Plasma, and LCD (TFT) are examples of monitor technology types. This error implies that the monitor violated the MCCS 2.0 or the MCCS 2.0 Revision 1 specification. -Global Const $ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE = 15207 ; The caller of SetMonitorColorTemperature specified a color temperature that the current monitor did not support. This error implies that the monitor violated the MCCS 2.0 or the MCCS 2.0 Revision 1 specification. -Global Const $ERROR_AMBIGUOUS_SYSTEM_DEVICE = 15250 ; The requested system device cannot be identified due to multiple indistinguishable devices potentially matching the identification criteria. -Global Const $ERROR_SYSTEM_DEVICE_NOT_FOUND = 15299 ; The requested system device cannot be found. -Global Const $ERROR_HASH_NOT_SUPPORTED = 15300 ; Hash generation for the specified version and hash type is not enabled on server. -Global Const $ERROR_HASH_NOT_PRESENT = 15301 ; The hash requests is not present or not up to date with the current file contents. -; =============================================================================================================================== diff --git a/build/Include/APIFilesConstants.au3 b/build/Include/APIFilesConstants.au3 deleted file mode 100644 index 5a3fdcbae..000000000 --- a/build/Include/APIFilesConstants.au3 +++ /dev/null @@ -1,588 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPIFiles Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_BackupRead(), _WinAPI_BackupWrite() -Global Const $BACKUP_ALTERNATE_DATA = 0x00000004 -Global Const $BACKUP_DATA = 0x00000001 -Global Const $BACKUP_EA_DATA = 0x00000002 -Global Const $BACKUP_LINK = 0x00000005 -Global Const $BACKUP_OBJECT_ID = 0x00000007 -Global Const $BACKUP_PROPERTY_DATA = 0x00000006 -Global Const $BACKUP_REPARSE_DATA = 0x00000008 -Global Const $BACKUP_SECURITY_DATA = 0x00000003 -Global Const $BACKUP_SPARSE_BLOCK = 0x00000009 -Global Const $BACKUP_TXFS_DATA = 0x0000000A - -; _WinAPI_CopyFileEx(), _WinAPI_MoveFileEx() -Global Const $COPY_FILE_ALLOW_DECRYPTED_DESTINATION = 0x0008 -Global Const $COPY_FILE_COPY_SYMLINK = 0x0800 -Global Const $COPY_FILE_FAIL_IF_EXISTS = 0x0001 -Global Const $COPY_FILE_NO_BUFFERING = 0x1000 -Global Const $COPY_FILE_OPEN_SOURCE_FOR_WRITE = 0x0004 -Global Const $COPY_FILE_RESTARTABLE = 0x0002 - -Global Const $MOVE_FILE_COPY_ALLOWED = 0x0002 -Global Const $MOVE_FILE_CREATE_HARDLINK = 0x0010 -Global Const $MOVE_FILE_DELAY_UNTIL_REBOOT = 0x0004 -Global Const $MOVE_FILE_FAIL_IF_NOT_TRACKABLE = 0x0020 -Global Const $MOVE_FILE_REPLACE_EXISTING = 0x0001 -Global Const $MOVE_FILE_WRITE_THROUGH = 0x0008 - -Global Const $PROGRESS_CONTINUE = 0 -Global Const $PROGRESS_CANCEL = 1 -Global Const $PROGRESS_STOP = 2 -Global Const $PROGRESS_QUIET = 3 - -; _WinAPI_CreateFileEx(), _WinAPI_SetFileAttributes(), _WinAPI_SetFileAttributes() -; Global Const $CREATE_NEW = 1 -; Global Const $CREATE_ALWAYS = 2 -; Global Const $OPEN_EXISTING = 3 -; Global Const $OPEN_ALWAYS = 4 -; Global Const $TRUNCATE_EXISTING = 5 - -; Global Const $GENERIC_ALL = 0x10000000 -; Global Const $GENERIC_EXECUTE = 0x20000000 -; Global Const $GENERIC_WRITE = 0x40000000 -; Global Const $GENERIC_READ = 0x80000000 - -Global Const $FILE_APPEND_DATA = 0x0004 -Global Const $FILE_DELETE_CHILD = 0x0040 -Global Const $FILE_EXECUTE = 0x0020 -Global Const $FILE_READ_ATTRIBUTES = 0x0080 -Global Const $FILE_READ_DATA = 0x0001 -Global Const $FILE_READ_EA = 0x0008 -Global Const $FILE_WRITE_ATTRIBUTES = 0x0100 -Global Const $FILE_WRITE_DATA = 0x0002 -Global Const $FILE_WRITE_EA = 0x0010 -Global Const $FILE_ADD_FILE = $FILE_WRITE_DATA -Global Const $FILE_ADD_SUBDIRECTORY = $FILE_APPEND_DATA -Global Const $FILE_CREATE_PIPE_INSTANCE = $FILE_APPEND_DATA -Global Const $FILE_LIST_DIRECTORY = $FILE_READ_DATA -Global Const $FILE_TRAVERSE = $FILE_EXECUTE -Global Const $FILE_ALL_ACCESS = 0x001F01FF ; BitOR($STANDARD_RIGHTS_ALL, $FILE_APPEND_DATA, $FILE_DELETE_CHILD, $FILE_EXECUTE, $FILE_READ_ATTRIBUTES, $FILE_READ_DATA, $FILE_READ_EA, $FILE_WRITE_ATTRIBUTES, $FILE_WRITE_DATA, $FILE_WRITE_EA) - -; Global Const $FILE_SHARE_READ = 0x01 -; Global Const $FILE_SHARE_WRITE = 0x02 -; Global Const $FILE_SHARE_DELETE = 0x04 - -; Global Const $FILE_ATTRIBUTE_READONLY = 0x00000001 -; Global Const $FILE_ATTRIBUTE_HIDDEN = 0x00000002 -; Global Const $FILE_ATTRIBUTE_SYSTEM = 0x00000004 -; Global Const $FILE_ATTRIBUTE_DIRECTORY = 0x00000010 -; Global Const $FILE_ATTRIBUTE_ARCHIVE = 0x00000020 -; Global Const $FILE_ATTRIBUTE_DEVICE = 0x00000040 -; Global Const $FILE_ATTRIBUTE_NORMAL = 0x00000080 -; Global Const $FILE_ATTRIBUTE_TEMPORARY = 0x00000100 -; Global Const $FILE_ATTRIBUTE_SPARSE_FILE = 0x00000200 -; Global Const $FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400 -; Global Const $FILE_ATTRIBUTE_COMPRESSED = 0x00000800 -; Global Const $FILE_ATTRIBUTE_OFFLINE = 0x00001000 -; Global Const $FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 0x00002000 -; Global Const $FILE_ATTRIBUTE_ENCRYPTED = 0x00004000 - -Global Const $FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 -Global Const $FILE_FLAG_DELETE_ON_CLOSE = 0x04000000 -Global Const $FILE_FLAG_NO_BUFFERING = 0x20000000 -Global Const $FILE_FLAG_OPEN_NO_RECALL = 0x00100000 -Global Const $FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000 -Global Const $FILE_FLAG_OVERLAPPED = 0x40000000 -Global Const $FILE_FLAG_POSIX_SEMANTICS = 0x0100000 -Global Const $FILE_FLAG_RANDOM_ACCESS = 0x10000000 -Global Const $FILE_FLAG_SEQUENTIAL_SCAN = 0x08000000 -Global Const $FILE_FLAG_WRITE_THROUGH = 0x80000000 - -Global Const $SECURITY_ANONYMOUS = 0x00000000 -Global Const $SECURITY_CONTEXT_TRACKING = 0x00040000 -Global Const $SECURITY_DELEGATION = 0x00030000 -Global Const $SECURITY_EFFECTIVE_ONLY = 0x00080000 -Global Const $SECURITY_IDENTIFICATION = 0x00010000 -Global Const $SECURITY_IMPERSONATION = 0x00020000 - -; _WinAPI_CreateFileMapping(), _WinAPI_OpenFileMapping() -; Moved in MemoryConstants.au3 -; Global Const $PAGE_EXECUTE = 0x0010 -; Global Const $PAGE_EXECUTE_READ = 0x0020 -; Global Const $PAGE_EXECUTE_READWRITE = 0x0040 -; Global Const $PAGE_EXECUTE_WRITECOPY = 0x0080 -; Global Const $PAGE_GUARD = 0x0100 -; Global Const $PAGE_NOACCESS = 0x0001 -; Global Const $PAGE_NOCACHE = 0x0200 -; Global Const $PAGE_READONLY = 0x0002 -; Global Const $PAGE_READWRITE = 0x0004 -; Global Const $PAGE_WRITECOMBINE = 0x0400 -; Global Const $PAGE_WRITECOPY = 0x0008 - -Global Const $SEC_COMMIT = 0x08000000 -Global Const $SEC_IMAGE = 0x01000000 -Global Const $SEC_LARGE_PAGES = 0x80000000 -Global Const $SEC_NOCACHE = 0x10000000 -Global Const $SEC_RESERVE = 0x04000000 -Global Const $SEC_WRITECOMBINE = 0x40000000 - -Global Const $SECTION_EXTEND_SIZE = 0x0010 -Global Const $SECTION_MAP_EXECUTE = 0x0008 -Global Const $SECTION_MAP_READ = 0x0004 -Global Const $SECTION_MAP_WRITE = 0x0002 -Global Const $SECTION_QUERY = 0x0001 -Global Const $SECTION_ALL_ACCESS = 0x001F001F ; BitOR($STANDARD_RIGHTS_REQUIRED, $SECTION_EXTEND_SIZE, $SECTION_MAP_EXECUTE, $SECTION_MAP_READ, $SECTION_MAP_WRITE, $SECTION_QUERY) - -Global Const $FILE_MAP_COPY = 0x0001 -Global Const $FILE_MAP_EXECUTE = 0x0020 -Global Const $FILE_MAP_READ = 0x0004 -Global Const $FILE_MAP_WRITE = 0x0002 -Global Const $FILE_MAP_ALL_ACCESS = $SECTION_ALL_ACCESS - -; _WinAPI_DefineDosDevice() -Global Const $DDD_EXACT_MATCH_ON_REMOVE = 0x04 -Global Const $DDD_NO_BROADCAST_SYSTEM = 0x08 -Global Const $DDD_RAW_TARGET_PATH = 0x01 -Global Const $DDD_REMOVE_DEFINITION = 0x02 - -; _WinAPI_DeviceIoControl() -Global Const $FSCTL_ALLOW_EXTENDED_DASD_IO = 0x00090083 -Global Const $FSCTL_CREATE_OR_GET_OBJECT_ID = 0x000900C0 -Global Const $FSCTL_CREATE_USN_JOURNAL = 0x000900E7 -Global Const $FSCTL_DELETE_OBJECT_ID = 0x000900A0 -Global Const $FSCTL_DELETE_REPARSE_POINT = 0x000900AC -Global Const $FSCTL_DELETE_USN_JOURNAL = 0x000900F8 -Global Const $FSCTL_DISMOUNT_VOLUME = 0x00090020 -Global Const $FSCTL_DUMP_PROPERTY_DATA = 0x00090097 -Global Const $FSCTL_ENABLE_UPGRADE = 0x000980D0 -Global Const $FSCTL_ENCRYPTION_FSCTL_IO = 0x000900DB -Global Const $FSCTL_ENUM_USN_DATA = 0x000900B3 -Global Const $FSCTL_EXTEND_VOLUME = 0x000900F0 -Global Const $FSCTL_FILESYSTEM_GET_STATISTICS = 0x00090060 -Global Const $FSCTL_FIND_FILES_BY_SID = 0x0009008F -Global Const $FSCTL_GET_COMPRESSION = 0x0009003C -Global Const $FSCTL_GET_NTFS_FILE_RECORD = 0x00090068 -Global Const $FSCTL_GET_NTFS_VOLUME_DATA = 0x00090064 -Global Const $FSCTL_GET_OBJECT_ID = 0x0009009C -Global Const $FSCTL_GET_REPARSE_POINT = 0x000900A8 -Global Const $FSCTL_GET_RETRIEVAL_POINTERS = 0x00090073 -Global Const $FSCTL_GET_VOLUME_BITMAP = 0x0009006F -Global Const $FSCTL_HSM_DATA = 0x0009C113 -Global Const $FSCTL_HSM_MSG = 0x0009C108 -Global Const $FSCTL_INVALIDATE_VOLUMES = 0x00090054 -Global Const $FSCTL_IS_PATHNAME_VALID = 0x0009002C -Global Const $FSCTL_IS_VOLUME_DIRTY = 0x00090078 -Global Const $FSCTL_IS_VOLUME_MOUNTED = 0x00090028 -Global Const $FSCTL_LOCK_VOLUME = 0x00090018 -Global Const $FSCTL_MARK_AS_SYSTEM_HIVE = 0x0009004F -Global Const $FSCTL_MARK_HANDLE = 0x000900FC -Global Const $FSCTL_MARK_VOLUME_DIRTY = 0x00090030 -Global Const $FSCTL_MOVE_FILE = 0x00090074 -Global Const $FSCTL_OPBATCH_ACK_CLOSE_PENDING = 0x00090010 -Global Const $FSCTL_OPLOCK_BREAK_ACK_NO_2 = 0x00090050 -Global Const $FSCTL_OPLOCK_BREAK_ACKNOWLEDGE = 0x0009000C -Global Const $FSCTL_OPLOCK_BREAK_NOTIFY = 0x00090014 -Global Const $FSCTL_QUERY_ALLOCATED_RANGES = 0x000940CF -Global Const $FSCTL_QUERY_FAT_BPB = 0x00090058 -Global Const $FSCTL_QUERY_RETRIEVAL_POINTERS = 0x0009003B -Global Const $FSCTL_QUERY_USN_JOURNAL = 0x000900F4 -Global Const $FSCTL_READ_FILE_USN_DATA = 0x000900EB -Global Const $FSCTL_READ_PROPERTY_DATA = 0x00090087 -Global Const $FSCTL_READ_RAW_ENCRYPTED = 0x000900E3 -Global Const $FSCTL_READ_USN_JOURNAL = 0x000900BB -Global Const $FSCTL_RECALL_FILE = 0x00090117 -Global Const $FSCTL_REQUEST_BATCH_OPLOCK = 0x00090008 -Global Const $FSCTL_REQUEST_FILTER_OPLOCK = 0x0009005C -Global Const $FSCTL_REQUEST_OPLOCK_LEVEL_1 = 0x00090000 -Global Const $FSCTL_REQUEST_OPLOCK_LEVEL_2 = 0x00090004 -Global Const $FSCTL_SECURITY_ID_CHECK = 0x000940B7 -Global Const $FSCTL_SET_COMPRESSION = 0x0009C040 -Global Const $FSCTL_SET_ENCRYPTION = 0x000900D7 -Global Const $FSCTL_SET_OBJECT_ID = 0x00090098 -Global Const $FSCTL_SET_OBJECT_ID_EXTENDED = 0x000900BC -Global Const $FSCTL_SET_REPARSE_POINT = 0x000900A4 -Global Const $FSCTL_SET_SPARSE = 0x000900C4 -Global Const $FSCTL_SET_ZERO_DATA = 0x000980C8 -Global Const $FSCTL_SIS_COPYFILE = 0x00090100 -Global Const $FSCTL_SIS_LINK_FILES = 0x0009C104 -Global Const $FSCTL_UNLOCK_VOLUME = 0x0009001C -Global Const $FSCTL_WRITE_PROPERTY_DATA = 0x0009008B -Global Const $FSCTL_WRITE_RAW_ENCRYPTED = 0x000900DF -Global Const $FSCTL_WRITE_USN_CLOSE_RECORD = 0x000900EF - -Global Const $IOCTL_AACS_END_SESSION = 0x003350CC -Global Const $IOCTL_AACS_GENERATE_BINDING_NONCE = 0x0033D0F0 -Global Const $IOCTL_AACS_GET_CERTIFICATE = 0x003350D4 -Global Const $IOCTL_AACS_GET_CHALLENGE_KEY = 0x003350D8 -Global Const $IOCTL_AACS_READ_BINDING_NONCE = 0x003350EC -Global Const $IOCTL_AACS_READ_MEDIA_ID = 0x003350E8 -Global Const $IOCTL_AACS_READ_MEDIA_KEY_BLOCK = 0x003350C4 -Global Const $IOCTL_AACS_READ_MEDIA_KEY_BLOCK_SIZE = 0x003350C0 -Global Const $IOCTL_AACS_READ_SERIAL_NUMBER = 0x003350E4 -Global Const $IOCTL_AACS_READ_VOLUME_ID = 0x003350E0 -Global Const $IOCTL_AACS_SEND_CERTIFICATE = 0x003350D0 -Global Const $IOCTL_AACS_SEND_CHALLENGE_KEY = 0x003350DC -Global Const $IOCTL_AACS_START_SESSION = 0x003350C8 - -Global Const $IOCTL_ATA_PASS_THROUGH = 0x0004D02C -Global Const $IOCTL_ATA_PASS_THROUGH_DIRECT = 0x0004D030 - -Global Const $IOCTL_CDROM_CHECK_VERIFY = 0x00024800 -Global Const $IOCTL_CDROM_DISK_TYPE = 0x00020040 -Global Const $IOCTL_CDROM_EJECT_MEDIA = 0x00024808 -Global Const $IOCTL_CDROM_FIND_NEW_DEVICES = 0x00024818 -Global Const $IOCTL_CDROM_GET_CONFIGURATION = 0x00024058 -Global Const $IOCTL_CDROM_GET_CONTROL = 0x00024034 -Global Const $IOCTL_CDROM_GET_DRIVE_GEOMETRY = 0x0002404C -Global Const $IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX = 0x00024050 -Global Const $IOCTL_CDROM_GET_LAST_SESSION = 0x00024038 -Global Const $IOCTL_CDROM_GET_VOLUME = 0x00024014 -Global Const $IOCTL_CDROM_LOAD_MEDIA = 0x0002480C -Global Const $IOCTL_CDROM_MEDIA_REMOVAL = 0x00024804 -Global Const $IOCTL_CDROM_PAUSE_AUDIO = 0x0002400C -Global Const $IOCTL_CDROM_PLAY_AUDIO_MSF = 0x00024018 -Global Const $IOCTL_CDROM_RAW_READ = 0x0002403E -Global Const $IOCTL_CDROM_READ_Q_CHANNEL = 0x0002402C -Global Const $IOCTL_CDROM_READ_TOC = 0x00024000 -Global Const $IOCTL_CDROM_READ_TOC_EX = 0x00024054 -Global Const $IOCTL_CDROM_RELEASE = 0x00024814 -Global Const $IOCTL_CDROM_RESERVE = 0x00024810 -Global Const $IOCTL_CDROM_RESUME_AUDIO = 0x00024010 -Global Const $IOCTL_CDROM_SEEK_AUDIO_MSF = 0x00024004 -Global Const $IOCTL_CDROM_SET_VOLUME = 0x00024028 -Global Const $IOCTL_CDROM_STOP_AUDIO = 0x00024008 -Global Const $IOCTL_CDROM_UNLOAD_DRIVER = 0x00025008 - -Global Const $IOCTL_DISK_CHECK_VERIFY = 0x00074800 -Global Const $IOCTL_DISK_CONTROLLER_NUMBER = 0x00070044 -Global Const $IOCTL_DISK_CREATE_DISK = 0x0007C058 -Global Const $IOCTL_DISK_DELETE_DRIVE_LAYOUT = 0x0007C100 -Global Const $IOCTL_DISK_EJECT_MEDIA = 0x00074808 -Global Const $IOCTL_DISK_FIND_NEW_DEVICES = 0x00074818 -Global Const $IOCTL_DISK_FORMAT_TRACKS = 0x0007C018 -Global Const $IOCTL_DISK_FORMAT_TRACKS_EX = 0x0007C02C -Global Const $IOCTL_DISK_GET_CACHE_INFORMATION = 0x000740D4 -Global Const $IOCTL_DISK_GET_DRIVE_GEOMETRY = 0x00070000 -Global Const $IOCTL_DISK_GET_DRIVE_GEOMETRY_EX = 0x000700A0 -Global Const $IOCTL_DISK_GET_DRIVE_LAYOUT = 0x0007400C -Global Const $IOCTL_DISK_GET_DRIVE_LAYOUT_EX = 0x00070050 -Global Const $IOCTL_DISK_GET_LENGTH_INFO = 0x0007405C -Global Const $IOCTL_DISK_GET_MEDIA_TYPES = 0x00070C00 -Global Const $IOCTL_DISK_GET_PARTITION_INFO = 0x00074004 -Global Const $IOCTL_DISK_GET_PARTITION_INFO_EX = 0x00070048 -Global Const $IOCTL_DISK_GET_WRITE_CACHE_STATE = 0x000740DC -Global Const $IOCTL_DISK_GROW_PARTITION = 0x0007C0D0 -Global Const $IOCTL_DISK_HISTOGRAM_DATA = 0x00070034 -Global Const $IOCTL_DISK_HISTOGRAM_RESET = 0x00070038 -Global Const $IOCTL_DISK_HISTOGRAM_STRUCTURE = 0x00070030 -Global Const $IOCTL_DISK_INTERNAL_CLEAR_VERIFY = 0x00070407 -Global Const $IOCTL_DISK_INTERNAL_SET_NOTIFY = 0x00070408 -Global Const $IOCTL_DISK_INTERNAL_SET_VERIFY = 0x00070403 -Global Const $IOCTL_DISK_IS_WRITABLE = 0x00070024 -Global Const $IOCTL_DISK_LOAD_MEDIA = 0x0007480C -Global Const $IOCTL_DISK_LOGGING = 0x00070028 -Global Const $IOCTL_DISK_MEDIA_REMOVAL = 0x00074804 -Global Const $IOCTL_DISK_PERFORMANCE = 0x00070020 -Global Const $IOCTL_DISK_PERFORMANCE_OFF = 0x00070060 -Global Const $IOCTL_DISK_REASSIGN_BLOCKS = 0x0007C01C -Global Const $IOCTL_DISK_RELEASE = 0x00074814 -Global Const $IOCTL_DISK_REQUEST_DATA = 0x00070040 -Global Const $IOCTL_DISK_REQUEST_STRUCTURE = 0x0007003C -Global Const $IOCTL_DISK_RESERVE = 0x00074810 -Global Const $IOCTL_DISK_SET_CACHE_INFORMATION = 0x0007C0D8 -Global Const $IOCTL_DISK_SET_DRIVE_LAYOUT = 0x0007C010 -Global Const $IOCTL_DISK_SET_DRIVE_LAYOUT_EX = 0x0007C054 -Global Const $IOCTL_DISK_SET_PARTITION_INFO = 0x0007C008 -Global Const $IOCTL_DISK_SET_PARTITION_INFO_EX = 0x0007C04C -Global Const $IOCTL_DISK_UPDATE_DRIVE_SIZE = 0x0007C0C8 -Global Const $IOCTL_DISK_UPDATE_PROPERTIES = 0x00070140 -Global Const $IOCTL_DISK_VERIFY = 0x00070014 - -Global Const $IOCTL_DVD_END_SESSION = 0x0033500C -Global Const $IOCTL_DVD_GET_REGION = 0x00335014 -Global Const $IOCTL_DVD_READ_KEY = 0x00335004 -Global Const $IOCTL_DVD_READ_STRUCTURE = 0x00335140 -Global Const $IOCTL_DVD_SEND_KEY = 0x00335008 -Global Const $IOCTL_DVD_SEND_KEY2 = 0x0033D018 -Global Const $IOCTL_DVD_SET_READ_AHEAD = 0x00335010 -Global Const $IOCTL_DVD_START_SESSION = 0x00335000 - -Global Const $IOCTL_MOUNTDEV_LINK_CREATED = 0x004D0010 -Global Const $IOCTL_MOUNTDEV_LINK_DELETED = 0x004D0014 -Global Const $IOCTL_MOUNTDEV_QUERY_STABLE_GUID = 0x004D0018 -Global Const $IOCTL_MOUNTDEV_QUERY_SUGGESTED_LINK_NAME = 0x004D000C -Global Const $IOCTL_MOUNTDEV_QUERY_UNIQUE_ID = 0x004D0000 -Global Const $IOCTL_MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY = 0x004D0004 - -Global Const $IOCTL_MOUNTMGR_AUTO_DL_ASSIGNMENTS = 0x006DC014 -Global Const $IOCTL_MOUNTMGR_CHANGE_NOTIFY = 0x006D4020 -Global Const $IOCTL_MOUNTMGR_CHECK_UNPROCESSED_VOLUMES = 0x006D4028 -Global Const $IOCTL_MOUNTMGR_CREATE_POINT = 0x006DC000 -Global Const $IOCTL_MOUNTMGR_DELETE_POINTS = 0x006DC004 -Global Const $IOCTL_MOUNTMGR_DELETE_POINTS_DBONLY = 0x006DC00C -Global Const $IOCTL_MOUNTMGR_KEEP_LINKS_WHEN_OFFLINE = 0x006DC024 -Global Const $IOCTL_MOUNTMGR_NEXT_DRIVE_LETTER = 0x006DC010 -Global Const $IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATH = 0x006D0030 -Global Const $IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS = 0x006D0034 -Global Const $IOCTL_MOUNTMGR_QUERY_POINTS = 0x006D0008 -Global Const $IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFICATION = 0x006D402C -Global Const $IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED = 0x006DC018 -Global Const $IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_DELETED = 0x006DC01C - -Global Const $IOCTL_SCSI_GET_INQUIRY_DATA = 0x0004100C -Global Const $IOCTL_SCSI_GET_CAPABILITIES = 0x00041010 -Global Const $IOCTL_SCSI_GET_ADDRESS = 0x00041018 -Global Const $IOCTL_SCSI_MINIPORT = 0x0004D008 -Global Const $IOCTL_SCSI_PASS_THROUGH = 0x0004D004 -Global Const $IOCTL_SCSI_PASS_THROUGH_DIRECT = 0x0004D014 -Global Const $IOCTL_SCSI_RESCAN_BUS = 0x0004101C - -Global Const $IOCTL_STORAGE_BREAK_RESERVATION = 0x002D5014 -Global Const $IOCTL_STORAGE_CHECK_VERIFY = 0x002D4800 -Global Const $IOCTL_STORAGE_CHECK_VERIFY2 = 0x002D0800 -Global Const $IOCTL_STORAGE_EJECT_MEDIA = 0x002D4808 -Global Const $IOCTL_STORAGE_EJECTION_CONTROL = 0x002D0940 -Global Const $IOCTL_STORAGE_FIND_NEW_DEVICES = 0x002D4818 -Global Const $IOCTL_STORAGE_GET_DEVICE_NUMBER = 0x002D1080 -Global Const $IOCTL_STORAGE_GET_HOTPLUG_INFO = 0x002D0C14 -Global Const $IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER = 0x002D0C10 -Global Const $IOCTL_STORAGE_GET_MEDIA_TYPES = 0x002D0C00 -Global Const $IOCTL_STORAGE_GET_MEDIA_TYPES_EX = 0x002D0C04 -Global Const $IOCTL_STORAGE_LOAD_MEDIA = 0x002D480C -Global Const $IOCTL_STORAGE_LOAD_MEDIA2 = 0x002D080C -Global Const $IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES = 0x002D9404 -Global Const $IOCTL_STORAGE_MCN_CONTROL = 0x002D0944 -Global Const $IOCTL_STORAGE_MEDIA_REMOVAL = 0x002D4804 -Global Const $IOCTL_STORAGE_PERSISTENT_RESERVE_IN = 0x002D5018 -Global Const $IOCTL_STORAGE_PERSISTENT_RESERVE_OUT = 0x002D501C -Global Const $IOCTL_STORAGE_PREDICT_FAILURE = 0x002D1100 -Global Const $IOCTL_STORAGE_QUERY_PROPERTY = 0x002D1400 -Global Const $IOCTL_STORAGE_RELEASE = 0x002D4814 -Global Const $IOCTL_STORAGE_RESERVE = 0x002D4810 -Global Const $IOCTL_STORAGE_RESET_BUS = 0x002D5000 -Global Const $IOCTL_STORAGE_RESET_DEVICE = 0x002D5004 -Global Const $IOCTL_STORAGE_SET_HOTPLUG_INFO = 0x002DCC18 -Global Const $IOCTL_STORAGE_SET_READ_AHEAD = 0x002D4400 - -Global Const $IOCTL_VOLUME_GET_GPT_ATTRIBUTES = 0x00560038 -Global Const $IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS = 0x00560000 -Global Const $IOCTL_VOLUME_IS_CLUSTERED = 0x00560030 -Global Const $IOCTL_VOLUME_IS_IO_CAPABLE = 0x00560014 -Global Const $IOCTL_VOLUME_IS_OFFLINE = 0x00560010 -Global Const $IOCTL_VOLUME_IS_PARTITION = 0x00560028 -Global Const $IOCTL_VOLUME_LOGICAL_TO_PHYSICAL = 0x00560020 -Global Const $IOCTL_VOLUME_OFFLINE = 0x0056C00C -Global Const $IOCTL_VOLUME_ONLINE = 0x0056C008 -Global Const $IOCTL_VOLUME_PHYSICAL_TO_LOGICAL = 0x00560024 -Global Const $IOCTL_VOLUME_QUERY_FAILOVER_SET = 0x00560018 -Global Const $IOCTL_VOLUME_QUERY_VOLUME_NUMBER = 0x0056001C -Global Const $IOCTL_VOLUME_READ_PLEX = 0x0056402E -Global Const $IOCTL_VOLUME_SET_GPT_ATTRIBUTES = 0x00560034 -Global Const $IOCTL_VOLUME_SUPPORTS_ONLINE_OFFLINE = 0x00560004 - -Global Const $SMART_GET_VERSION = 0x00074080 -Global Const $SMART_RCV_DRIVE_DATA = 0x0007C088 -Global Const $SMART_SEND_DRIVE_COMMAND = 0x0007C084 - -; _WinAPI_FileEncryptionStatus() -Global Const $FILE_ENCRYPTABLE = 0 -Global Const $FILE_IS_ENCRYPTED = 1 -Global Const $FILE_READ_ONLY = 8 -Global Const $FILE_ROOT_DIR = 3 -Global Const $FILE_SYSTEM_ATTR = 2 -Global Const $FILE_SYSTEM_DIR = 4 -Global Const $FILE_SYSTEM_NOT_SUPPORT = 6 -Global Const $FILE_UNKNOWN = 5 -Global Const $FILE_USER_DISALLOWED = 7 - -; _WinAPI_GetBinaryType() -Global Const $SCS_32BIT_BINARY = 0 -Global Const $SCS_64BIT_BINARY = 6 -Global Const $SCS_DOS_BINARY = 1 -Global Const $SCS_OS216_BINARY = 5 -Global Const $SCS_PIF_BINARY = 3 -Global Const $SCS_POSIX_BINARY = 4 -Global Const $SCS_WOW_BINARY = 2 - -; _WinAPI_GetDriveBusType() -Global Const $DRIVE_BUS_TYPE_UNKNOWN = 0x00 -Global Const $DRIVE_BUS_TYPE_SCSI = 0x01 -Global Const $DRIVE_BUS_TYPE_ATAPI = 0x02 -Global Const $DRIVE_BUS_TYPE_ATA = 0x03 -Global Const $DRIVE_BUS_TYPE_1394 = 0x04 -Global Const $DRIVE_BUS_TYPE_SSA = 0x05 -Global Const $DRIVE_BUS_TYPE_FIBRE = 0x06 -Global Const $DRIVE_BUS_TYPE_USB = 0x07 -Global Const $DRIVE_BUS_TYPE_RAID = 0x08 -Global Const $DRIVE_BUS_TYPE_ISCSI = 0x09 -Global Const $DRIVE_BUS_TYPE_SAS = 0x0A -Global Const $DRIVE_BUS_TYPE_SATA = 0x0B -Global Const $DRIVE_BUS_TYPE_SD = 0x0C -Global Const $DRIVE_BUS_TYPE_MMC = 0x0D - -; _WinAPI_GetDriveType() -Global Const $DRIVE_UNKNOWN = 0 -Global Const $DRIVE_NO_ROOT_DIR = 1 -Global Const $DRIVE_REMOVABLE = 2 -Global Const $DRIVE_FIXED = 3 -Global Const $DRIVE_REMOTE = 4 -Global Const $DRIVE_CDROM = 5 -Global Const $DRIVE_RAMDISK = 6 - -; _WinAPI_GetFileType() -Global Const $FILE_TYPE_CHAR = 0x0002 -Global Const $FILE_TYPE_DISK = 0x0001 -Global Const $FILE_TYPE_PIPE = 0x0003 -Global Const $FILE_TYPE_REMOTE = 0x8000 -Global Const $FILE_TYPE_UNKNOWN = 0x0000 - -; _WinAPI_GetFinalPathNameByHandle() -Global Const $FILE_NAME_NORMALIZED = 0x0 -Global Const $FILE_NAME_OPENED = 0x8 - -Global Const $VOLUME_NAME_DOS = 0x0 -Global Const $VOLUME_NAME_GUID = 0x1 -Global Const $VOLUME_NAME_NONE = 0x4 -Global Const $VOLUME_NAME_NT = 0x2 - -; _WinAPI_GetPEType() -Global Const $IMAGE_FILE_MACHINE_UNKNOWN = 0x0000 -Global Const $IMAGE_FILE_MACHINE_AM33 = 0x01D3 -Global Const $IMAGE_FILE_MACHINE_AMD64 = 0x8664 -Global Const $IMAGE_FILE_MACHINE_ARM = 0x01C0 -Global Const $IMAGE_FILE_MACHINE_EBC = 0x0EBC -Global Const $IMAGE_FILE_MACHINE_I386 = 0x014C -Global Const $IMAGE_FILE_MACHINE_IA64 = 0x0200 -Global Const $IMAGE_FILE_MACHINE_M32R = 0x9041 -Global Const $IMAGE_FILE_MACHINE_MIPS16 = 0x0266 -Global Const $IMAGE_FILE_MACHINE_MIPSFPU = 0x0366 -Global Const $IMAGE_FILE_MACHINE_MIPSFPU16 = 0x0466 -Global Const $IMAGE_FILE_MACHINE_POWERPC = 0x01F0 -Global Const $IMAGE_FILE_MACHINE_POWERPCFP = 0x01F1 -Global Const $IMAGE_FILE_MACHINE_R4000 = 0x0166 -Global Const $IMAGE_FILE_MACHINE_SH3 = 0x01A2 -Global Const $IMAGE_FILE_MACHINE_SH3DSP = 0x01A3 -Global Const $IMAGE_FILE_MACHINE_SH4 = 0x01A6 -Global Const $IMAGE_FILE_MACHINE_SH5 = 0x01A8 -Global Const $IMAGE_FILE_MACHINE_THUMB = 0x01C2 -Global Const $IMAGE_FILE_MACHINE_WCEMIPSV2 = 0x0169 - -; _WinAPI_GetVolumeInformation(), _WinAPI_GetVolumeInformationByHandle() -Global Const $FILE_CASE_PRESERVED_NAMES = 0x00000002 -Global Const $FILE_CASE_SENSITIVE_SEARCH = 0x00000001 -Global Const $FILE_FILE_COMPRESSION = 0x00000010 -Global Const $FILE_NAMED_STREAMS = 0x00040000 -Global Const $FILE_PERSISTENT_ACLS = 0x00000008 -Global Const $FILE_READ_ONLY_VOLUME = 0x00080000 -Global Const $FILE_SEQUENTIAL_WRITE_ONCE = 0x00100000 -Global Const $FILE_SUPPORTS_ENCRYPTION = 0x00020000 -Global Const $FILE_SUPPORTS_EXTENDED_ATTRIBUTES = 0x00800000 -Global Const $FILE_SUPPORTS_HARD_LINKS = 0x00400000 -Global Const $FILE_SUPPORTS_OBJECT_IDS = 0x00010000 -Global Const $FILE_SUPPORTS_OPEN_BY_FILE_ID = 0x01000000 -Global Const $FILE_SUPPORTS_REPARSE_POINTS = 0x00000080 -Global Const $FILE_SUPPORTS_SPARSE_FILES = 0x00000040 -Global Const $FILE_SUPPORTS_TRANSACTIONS = 0x00200000 -Global Const $FILE_SUPPORTS_USN_JOURNAL = 0x02000000 -Global Const $FILE_UNICODE_ON_DISK = 0x00000004 -Global Const $FILE_VOLUME_IS_COMPRESSED = 0x00008000 -Global Const $FILE_VOLUME_QUOTAS = 0x00000020 - -; _WinAPI_IOCTL() -Global Const $FILE_DEVICE_8042_PORT = 0x0027 -Global Const $FILE_DEVICE_ACPI = 0x0032 -Global Const $FILE_DEVICE_BATTERY = 0x0029 -Global Const $FILE_DEVICE_BEEP = 0x0001 -Global Const $FILE_DEVICE_BUS_EXTENDER = 0x002A -Global Const $FILE_DEVICE_CD_ROM = 0x0002 -Global Const $FILE_DEVICE_CD_ROM_FILE_SYSTEM = 0x0003 -Global Const $FILE_DEVICE_CHANGER = 0x0030 -Global Const $FILE_DEVICE_CONTROLLER = 0x0004 -Global Const $FILE_DEVICE_DATALINK = 0x0005 -Global Const $FILE_DEVICE_DFS = 0x0006 -Global Const $FILE_DEVICE_DFS_FILE_SYSTEM = 0x0035 -Global Const $FILE_DEVICE_DFS_VOLUME = 0x0036 -Global Const $FILE_DEVICE_DISK = 0x0007 -Global Const $FILE_DEVICE_DISK_FILE_SYSTEM = 0x0008 -Global Const $FILE_DEVICE_DVD = 0x0033 -Global Const $FILE_DEVICE_FILE_SYSTEM = 0x0009 -Global Const $FILE_DEVICE_FIPS = 0x003A -Global Const $FILE_DEVICE_FULLSCREEN_VIDEO = 0x0034 -Global Const $FILE_DEVICE_INPORT_PORT = 0x000A -Global Const $FILE_DEVICE_KEYBOARD = 0x000B -Global Const $FILE_DEVICE_KS = 0x002F -Global Const $FILE_DEVICE_KSEC = 0x0039 -Global Const $FILE_DEVICE_MAILSLOT = 0x000C -Global Const $FILE_DEVICE_MASS_STORAGE = 0x002D -Global Const $FILE_DEVICE_MIDI_IN = 0x000D -Global Const $FILE_DEVICE_MIDI_OUT = 0x000E -Global Const $FILE_DEVICE_MODEM = 0x002B -Global Const $FILE_DEVICE_MOUSE = 0x000F -Global Const $FILE_DEVICE_MULTI_UNC_PROVIDER = 0x0010 -Global Const $FILE_DEVICE_NAMED_PIPE = 0x0011 -Global Const $FILE_DEVICE_NETWORK = 0x0012 -Global Const $FILE_DEVICE_NETWORK_BROWSER = 0x0013 -Global Const $FILE_DEVICE_NETWORK_FILE_SYSTEM = 0x0014 -Global Const $FILE_DEVICE_NETWORK_REDIRECTOR = 0x0028 -Global Const $FILE_DEVICE_NULL = 0x0015 -Global Const $FILE_DEVICE_PARALLEL_PORT = 0x0016 -Global Const $FILE_DEVICE_PHYSICAL_NETCARD = 0x0017 -Global Const $FILE_DEVICE_PRINTER = 0x0018 -Global Const $FILE_DEVICE_SCANNER = 0x0019 -Global Const $FILE_DEVICE_SCREEN = 0x001C -Global Const $FILE_DEVICE_SERENUM = 0x0037 -Global Const $FILE_DEVICE_SERIAL_MOUSE_PORT = 0x001A -Global Const $FILE_DEVICE_SERIAL_PORT = 0x001B -Global Const $FILE_DEVICE_SMARTCARD = 0x0031 -Global Const $FILE_DEVICE_SMB = 0x002E -Global Const $FILE_DEVICE_SOUND = 0x001D -Global Const $FILE_DEVICE_STREAMS = 0x001E -Global Const $FILE_DEVICE_TAPE = 0x001F -Global Const $FILE_DEVICE_TAPE_FILE_SYSTEM = 0x0020 -Global Const $FILE_DEVICE_TERMSRV = 0x0038 -Global Const $FILE_DEVICE_TRANSPORT = 0x0021 -Global Const $FILE_DEVICE_UNKNOWN = 0x0022 -Global Const $FILE_DEVICE_VDM = 0x002C -Global Const $FILE_DEVICE_VIDEO = 0x0023 -Global Const $FILE_DEVICE_VIRTUAL_DISK = 0x0024 -Global Const $FILE_DEVICE_WAVE_IN = 0x0025 -Global Const $FILE_DEVICE_WAVE_OUT = 0x0026 - -Global Const $FILE_ANY_ACCESS = 0x00 -Global Const $FILE_SPECIAL_ACCESS = $FILE_ANY_ACCESS -Global Const $FILE_READ_ACCESS = 0x01 -Global Const $FILE_WRITE_ACCESS = 0x02 - -Global Const $METHOD_BUFFERED = 0 -Global Const $METHOD_IN_DIRECT = 1 -Global Const $METHOD_OUT_DIRECT = 2 -Global Const $METHOD_NEITHER = 3 - -; _WinAPI_ReadDirectoryChanges() -Global Const $FILE_NOTIFY_CHANGE_FILE_NAME = 0x0001 -Global Const $FILE_NOTIFY_CHANGE_DIR_NAME = 0x0002 -Global Const $FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x0004 -Global Const $FILE_NOTIFY_CHANGE_SIZE = 0x0008 -Global Const $FILE_NOTIFY_CHANGE_LAST_WRITE = 0x0010 -Global Const $FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x0020 -Global Const $FILE_NOTIFY_CHANGE_CREATION = 0x0040 -Global Const $FILE_NOTIFY_CHANGE_SECURITY = 0x0100 - -Global Const $FILE_ACTION_ADDED = 0x0001 -Global Const $FILE_ACTION_REMOVED = 0x0002 -Global Const $FILE_ACTION_MODIFIED = 0x0003 -Global Const $FILE_ACTION_RENAMED_OLD_NAME = 0x0004 -Global Const $FILE_ACTION_RENAMED_NEW_NAME = 0x0005 - -; _WinAPI_ReplaceFile() -Global Const $REPLACEFILE_WRITE_THROUGH = 0x01 -Global Const $REPLACEFILE_IGNORE_MERGE_ERRORS = 0x02 -Global Const $REPLACEFILE_IGNORE_ACL_ERRORS = 0x04 - -; _WinAPI_SetSearchPathMode() -Global Const $BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE = 0x00000001 -Global Const $BASE_SEARCH_PATH_DISABLE_SAFE_SEARCHMODE = 0x00010000 -Global Const $BASE_SEARCH_PATH_PERMANENT = 0x00008000 -; =============================================================================================================================== diff --git a/build/Include/APIGdiConstants.au3 b/build/Include/APIGdiConstants.au3 deleted file mode 100644 index 94a2d843a..000000000 --- a/build/Include/APIGdiConstants.au3 +++ /dev/null @@ -1,483 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPIGdi Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_AddFontResourceEx(), _WinAPI_RemoveFontResourceEx() -Global Const $FR_PRIVATE = 0x10 -Global Const $FR_NOT_ENUM = 0x20 - -; _WinAPI_CompressBitmapBits() -Global Const $COMPRESSION_BITMAP_PNG = 0 -Global Const $COMPRESSION_BITMAP_JPEG = 1 - -; _WinAPI_CopyImage() -; in WinAPI.au3 - -; _WinAPI_CreateBrushIndirect() -Global Const $BS_DIBPATTERN = 5 -Global Const $BS_DIBPATTERN8X8 = 8 -Global Const $BS_DIBPATTERNPT = 6 -Global Const $BS_HATCHED = 2 -Global Const $BS_HOLLOW = 1 -Global Const $BS_NULL = 1 -Global Const $BS_PATTERN = 3 -Global Const $BS_PATTERN8X8 = 7 -Global Const $BS_SOLID = 0 - -Global Const $HS_BDIAGONAL = 3 -Global Const $HS_CROSS = 4 -Global Const $HS_DIAGCROSS = 5 -Global Const $HS_FDIAGONAL = 2 -Global Const $HS_HORIZONTAL = 0 -Global Const $HS_VERTICAL = 1 - -Global Const $DIB_PAL_COLORS = 1 -Global Const $DIB_RGB_COLORS = 0 - -; _WinAPI_CreateColorAdjustment() -Global Const $CA_NEGATIVE = 0x01 -Global Const $CA_LOG_FILTER = 0x02 - -Global Const $ILLUMINANT_DEVICE_DEFAULT = 0 -Global Const $ILLUMINANT_A = 1 -Global Const $ILLUMINANT_B = 2 -Global Const $ILLUMINANT_C = 3 -Global Const $ILLUMINANT_D50 = 4 -Global Const $ILLUMINANT_D55 = 5 -Global Const $ILLUMINANT_D65 = 6 -Global Const $ILLUMINANT_D75 = 7 -Global Const $ILLUMINANT_F2 = 8 -Global Const $ILLUMINANT_TUNGSTEN = $ILLUMINANT_A -Global Const $ILLUMINANT_DAYLIGHT = $ILLUMINANT_C -Global Const $ILLUMINANT_FLUORESCENT = $ILLUMINANT_F2 -Global Const $ILLUMINANT_NTSC = $ILLUMINANT_C - -; _WinAPI_CreateDIBSection() -Global Const $BI_RGB = 0 -Global Const $BI_RLE8 = 1 -Global Const $BI_RLE4 = 2 -Global Const $BI_BITFIELDS = 3 -Global Const $BI_JPEG = 4 -Global Const $BI_PNG = 5 - -; _WinAPI_CreatePolygonRgn() -Global Const $ALTERNATE = 1 -Global Const $WINDING = 2 - -; _WinAPI_DwmGetWindowAttribute(), _WinAPI_DwmSetWindowAttribute() -Global Const $DWMWA_NCRENDERING_ENABLED = 1 -Global Const $DWMWA_NCRENDERING_POLICY = 2 -Global Const $DWMWA_TRANSITIONS_FORCEDISABLED = 3 -Global Const $DWMWA_ALLOW_NCPAINT = 4 -Global Const $DWMWA_CAPTION_BUTTON_BOUNDS = 5 -Global Const $DWMWA_NONCLIENT_RTL_LAYOUT = 6 -Global Const $DWMWA_FORCE_ICONIC_REPRESENTATION = 7 -Global Const $DWMWA_FLIP3D_POLICY = 8 -Global Const $DWMWA_EXTENDED_FRAME_BOUNDS = 9 -Global Const $DWMWA_HAS_ICONIC_BITMAP = 10 -Global Const $DWMWA_DISALLOW_PEEK = 11 -Global Const $DWMWA_EXCLUDED_FROM_PEEK = 12 - -Global Const $DWMNCRP_USEWINDOWSTYLE = 0 -Global Const $DWMNCRP_DISABLED = 1 -Global Const $DWMNCRP_ENABLED = 2 - -Global Const $DWMFLIP3D_DEFAULT = 0 -Global Const $DWMFLIP3D_EXCLUDEBELOW = 1 -Global Const $DWMFLIP3D_EXCLUDEABOVE = 2 - -; DEVMODE structure -Global Const $DM_BITSPERPEL = 0x00040000 -Global Const $DM_COLLATE = 0x0008000 -Global Const $DM_COLOR = 0x00000800 -Global Const $DM_COPIES = 0x00000100 -Global Const $DM_DEFAULTSOURCE = 0x00000200 -Global Const $DM_DISPLAYFIXEDOUTPUT = 0x20000000 -Global Const $DM_DISPLAYFLAGS = 0x00200000 -Global Const $DM_DISPLAYFREQUENCY = 0x00400000 -Global Const $DM_DISPLAYORIENTATION = 0x00000080 -Global Const $DM_DITHERTYPE = 0x04000000 -Global Const $DM_DUPLEX = 0x0001000 -Global Const $DM_FORMNAME = 0x00010000 -Global Const $DM_ICMINTENT = 0x01000000 -Global Const $DM_ICMMETHOD = 0x00800000 -Global Const $DM_LOGPIXELS = 0x00020000 -Global Const $DM_MEDIATYPE = 0x02000000 -Global Const $DM_NUP = 0x00000040 -Global Const $DM_ORIENTATION = 0x00000001 -Global Const $DM_PANNINGHEIGHT = 0x10000000 -Global Const $DM_PANNINGWIDTH = 0x08000000 -Global Const $DM_PAPERLENGTH = 0x00000004 -Global Const $DM_PAPERSIZE = 0x00000002 -Global Const $DM_PAPERWIDTH = 0x00000008 -Global Const $DM_PELSHEIGHT = 0x00100000 -Global Const $DM_PELSWIDTH = 0x00080000 -Global Const $DM_POSITION = 0x00000020 -Global Const $DM_PRINTQUALITY = 0x00000400 -Global Const $DM_SCALE = 0x00000010 -Global Const $DM_TTOPTION = 0x0004000 -Global Const $DM_YRESOLUTION = 0x0002000 - -Global Const $DMPAPER_LETTER = 1 ; US Letter 8 1/2 x 11 in -Global Const $DMPAPER_LETTERSMALL = 2 ; US Letter Small 8 1/2 x 11 in -Global Const $DMPAPER_TABLOID = 3 ; US Tabloid 11 x 17 in -Global Const $DMPAPER_LEDGER = 4 ; US Ledger 17 x 11 in -Global Const $DMPAPER_LEGAL = 5 ; US Legal 8 1/2 x 14 in -Global Const $DMPAPER_STATEMENT = 6 ; US Statement 5 1/2 x 8 1/2 in -Global Const $DMPAPER_EXECUTIVE = 7 ; US Executive 7 1/4 x 10 1/2 in -Global Const $DMPAPER_A3 = 8 ; A3 297 x 420 mm -Global Const $DMPAPER_A4 = 9 ; A4 210 x 297 mm -Global Const $DMPAPER_A4SMALL = 10 ; A4 Small 210 x 297 mm -Global Const $DMPAPER_A5 = 11 ; A5 148 x 210 mm -Global Const $DMPAPER_B4 = 12 ; B4 (JIS) 257 x 364 mm -Global Const $DMPAPER_B5 = 13 ; B5 (JIS) 182 x 257 mm -Global Const $DMPAPER_FOLIO = 14 ; Folio 8 1/2 x 13 in -Global Const $DMPAPER_QUARTO = 15 ; Quarto 215 x 275 mm -Global Const $DMPAPER_10X14 = 16 ; 10 x 14 in -Global Const $DMPAPER_11X17 = 17 ; 11 x 17 in -Global Const $DMPAPER_NOTE = 18 ; US Note 8 1/2 x 11 in -Global Const $DMPAPER_ENV_9 = 19 ; US Envelope #9 3 7/8 x 8 7/8 -Global Const $DMPAPER_ENV_10 = 20 ; US Envelope #10 4 1/8 x 9 1/2 -Global Const $DMPAPER_ENV_11 = 21 ; US Envelope #11 4 1/2 x 10 3/8 -Global Const $DMPAPER_ENV_12 = 22 ; US Envelope #12 4 3/4 x 11 in -Global Const $DMPAPER_ENV_14 = 23 ; US Envelope #14 5 x 11 1/2 -Global Const $DMPAPER_CSHEET = 24 ; C size sheet -Global Const $DMPAPER_DSHEET = 25 ; D size sheet -Global Const $DMPAPER_ESHEET = 26 ; E size sheet -Global Const $DMPAPER_ENV_DL = 27 ; Envelope DL 110 x 220mm -Global Const $DMPAPER_ENV_C5 = 28 ; Envelope C5 162 x 229 mm -Global Const $DMPAPER_ENV_C3 = 29 ; Envelope C3 324 x 458 mm -Global Const $DMPAPER_ENV_C4 = 30 ; Envelope C4 229 x 324 mm -Global Const $DMPAPER_ENV_C6 = 31 ; Envelope C6 114 x 162 mm -Global Const $DMPAPER_ENV_C65 = 32 ; Envelope C65 114 x 229 mm -Global Const $DMPAPER_ENV_B4 = 33 ; Envelope B4 250 x 353 mm -Global Const $DMPAPER_ENV_B5 = 34 ; Envelope B5 176 x 250 mm -Global Const $DMPAPER_ENV_B6 = 35 ; Envelope B6 176 x 125 mm -Global Const $DMPAPER_ENV_ITALY = 36 ; Envelope 110 x 230 mm -Global Const $DMPAPER_ENV_MONARCH = 37 ; US Envelope Monarch 3.875 x 7.5 in -Global Const $DMPAPER_ENV_PERSONAL = 38 ; 6 3/4 US Envelope 3 5/8 x 6 1/2 in -Global Const $DMPAPER_FANFOLD_US = 39 ; US Std Fanfold 14 7/8 x 11 in -Global Const $DMPAPER_FANFOLD_STD_GERMAN = 40 ; German Std Fanfold 8 1/2 x 12 in -Global Const $DMPAPER_FANFOLD_LGL_GERMAN = 41 ; German Legal Fanfold 8 1/2 x 13 in -Global Const $DMPAPER_ISO_B4 = 42 ; B4 (ISO) 250 x 353 mm -Global Const $DMPAPER_JAPANESE_POSTCARD = 43 ; Japanese Postcard 100 x 148 mm -Global Const $DMPAPER_9X11 = 44 ; 9 x 11 in -Global Const $DMPAPER_10X11 = 45 ; 10 x 11 in -Global Const $DMPAPER_15X11 = 46 ; 15 x 11 in -Global Const $DMPAPER_ENV_INVITE = 47 ; Envelope Invite 220 x 220 mm -Global Const $DMPAPER_RESERVED_48 = 48 ; Reserved -Global Const $DMPAPER_RESERVED_49 = 49 ; Reserved -Global Const $DMPAPER_LETTER_EXTRA = 50 ; US Letter Extra 9 1/2 x 12 in -Global Const $DMPAPER_LEGAL_EXTRA = 51 ; US Legal Extra 9 1/2 x 15 in -Global Const $DMPAPER_TABLOID_EXTRA = 52 ; US Tabloid Extra 11.69 x 18 in -Global Const $DMPAPER_A4_EXTRA = 53 ; A4 Extra 9.27 x 12.69 in -Global Const $DMPAPER_LETTER_TRANSVERSE = 54 ; Letter Transverse 8 1/2 x 11 in -Global Const $DMPAPER_A4_TRANSVERSE = 55 ; A4 Transverse 210 x 297 mm -Global Const $DMPAPER_LETTER_EXTRA_TRANSVERSE = 56 ; Letter Extra Transverse 9 1/2 x 12 in -Global Const $DMPAPER_A_PLUS = 57 ; SuperA/SuperA/A4 227 x 356 mm -Global Const $DMPAPER_B_PLUS = 58 ; SuperB/SuperB/A3 305 x 487 mm -Global Const $DMPAPER_LETTER_PLUS = 59 ; US Letter Plus 8.5 x 12.69 in -Global Const $DMPAPER_A4_PLUS = 60 ; A4 Plus 210 x 330 mm -Global Const $DMPAPER_A5_TRANSVERSE = 61 ; A5 Transverse 148 x 210 mm -Global Const $DMPAPER_B5_TRANSVERSE = 62 ; B5 (JIS) Transverse 182 x 257 mm -Global Const $DMPAPER_A3_EXTRA = 63 ; A3 Extra 322 x 445 mm -Global Const $DMPAPER_A5_EXTRA = 64 ; A5 Extra 174 x 235 mm -Global Const $DMPAPER_B5_EXTRA = 65 ; B5 (ISO) Extra 201 x 276 mm -Global Const $DMPAPER_A2 = 66 ; A2 420 x 594 mm -Global Const $DMPAPER_A3_TRANSVERSE = 67 ; A3 Transverse 297 x 420 mm -Global Const $DMPAPER_A3_EXTRA_TRANSVERSE = 68 ; A3 Extra Transverse 322 x 445 mm -Global Const $DMPAPER_DBL_JAPANESE_POSTCARD = 69 ; Japanese Double Postcard 200 x 148 mm -Global Const $DMPAPER_A6 = 70 ; A6 105 x 148 mm -Global Const $DMPAPER_JENV_KAKU2 = 71 ; Japanese Envelope Kaku #2 -Global Const $DMPAPER_JENV_KAKU3 = 72 ; Japanese Envelope Kaku #3 -Global Const $DMPAPER_JENV_CHOU3 = 73 ; Japanese Envelope Chou #3 -Global Const $DMPAPER_JENV_CHOU4 = 74 ; Japanese Envelope Chou #4 -Global Const $DMPAPER_LETTER_ROTATED = 75 ; Letter Rotated 11 x 8 1/2 11 in -Global Const $DMPAPER_A3_ROTATED = 76 ; A3 Rotated 420 x 297 mm -Global Const $DMPAPER_A4_ROTATED = 77 ; A4 Rotated 297 x 210 mm -Global Const $DMPAPER_A5_ROTATED = 78 ; A5 Rotated 210 x 148 mm -Global Const $DMPAPER_B4_JIS_ROTATED = 79 ; B4 (JIS) Rotated 364 x 257 mm -Global Const $DMPAPER_B5_JIS_ROTATED = 80 ; B5 (JIS) Rotated 257 x 182 mm -Global Const $DMPAPER_JAPANESE_POSTCARD_ROTATED = 81 ; Japanese Postcard Rotated 148 x 100 mm -Global Const $DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82 ; Double Japanese Postcard Rotated 148 x 200 mm -Global Const $DMPAPER_A6_ROTATED = 83 ; A6 Rotated 148 x 105 mm -Global Const $DMPAPER_JENV_KAKU2_ROTATED = 84 ; Japanese Envelope Kaku #2 Rotated -Global Const $DMPAPER_JENV_KAKU3_ROTATED = 85 ; Japanese Envelope Kaku #3 Rotated -Global Const $DMPAPER_JENV_CHOU3_ROTATED = 86 ; Japanese Envelope Chou #3 Rotated -Global Const $DMPAPER_JENV_CHOU4_ROTATED = 87 ; Japanese Envelope Chou #4 Rotated -Global Const $DMPAPER_B6_JIS = 88 ; B6 (JIS) 128 x 182 mm -Global Const $DMPAPER_B6_JIS_ROTATED = 89 ; B6 (JIS) Rotated 182 x 128 mm -Global Const $DMPAPER_12X11 = 90 ; 12 x 11 in -Global Const $DMPAPER_JENV_YOU4 = 91 ; Japanese Envelope You #4 -Global Const $DMPAPER_JENV_YOU4_ROTATED = 92 ; Japanese Envelope You #4 Rotated -Global Const $DMPAPER_P16K = 93 ; PRC 16K 146 x 215 mm -Global Const $DMPAPER_P32K = 94 ; PRC 32K 97 x 151 mm -Global Const $DMPAPER_P32KBIG = 95 ; PRC 32K(Big) 97 x 151 mm -Global Const $DMPAPER_PENV_1 = 96 ; PRC Envelope #1 102 x 165 mm -Global Const $DMPAPER_PENV_2 = 97 ; PRC Envelope #2 102 x 176 mm -Global Const $DMPAPER_PENV_3 = 98 ; PRC Envelope #3 125 x 176 mm -Global Const $DMPAPER_PENV_4 = 99 ; PRC Envelope #4 110 x 208 mm -Global Const $DMPAPER_PENV_5 = 100 ; PRC Envelope #5 110 x 220 mm -Global Const $DMPAPER_PENV_6 = 101 ; PRC Envelope #6 120 x 230 mm -Global Const $DMPAPER_PENV_7 = 102 ; PRC Envelope #7 160 x 230 mm -Global Const $DMPAPER_PENV_8 = 103 ; PRC Envelope #8 120 x 309 mm -Global Const $DMPAPER_PENV_9 = 104 ; PRC Envelope #9 229 x 324 mm -Global Const $DMPAPER_PENV_10 = 105 ; PRC Envelope #10 324 x 458 mm -Global Const $DMPAPER_P16K_ROTATED = 106 ; PRC 16K Rotated -Global Const $DMPAPER_P32K_ROTATED = 107 ; PRC 32K Rotated -Global Const $DMPAPER_P32KBIG_ROTATED = 108 ; PRC 32K(Big) Rotated -Global Const $DMPAPER_PENV_1_ROTATED = 109 ; PRC Envelope #1 Rotated 165 x 102 mm -Global Const $DMPAPER_PENV_2_ROTATED = 110 ; PRC Envelope #2 Rotated 176 x 102 mm -Global Const $DMPAPER_PENV_3_ROTATED = 111 ; PRC Envelope #3 Rotated 176 x 125 mm -Global Const $DMPAPER_PENV_4_ROTATED = 112 ; PRC Envelope #4 Rotated 208 x 110 mm -Global Const $DMPAPER_PENV_5_ROTATED = 113 ; PRC Envelope #5 Rotated 220 x 110 mm -Global Const $DMPAPER_PENV_6_ROTATED = 114 ; PRC Envelope #6 Rotated 230 x 120 mm -Global Const $DMPAPER_PENV_7_ROTATED = 115 ; PRC Envelope #7 Rotated 230 x 160 mm -Global Const $DMPAPER_PENV_8_ROTATED = 116 ; PRC Envelope #8 Rotated 309 x 120 mm -Global Const $DMPAPER_PENV_9_ROTATED = 117 ; PRC Envelope #9 Rotated 324 x 229 mm -Global Const $DMPAPER_PENV_10_ROTATED = 118 ; PRC Envelope #10 Rotated 458 x 324 mm -Global Const $DMPAPER_USER = 256 - -Global Const $DMBIN_UPPER = 1 -Global Const $DMBIN_LOWER = 2 -Global Const $DMBIN_MIDDLE = 3 -Global Const $DMBIN_MANUAL = 4 -Global Const $DMBIN_ENVELOPE = 5 -Global Const $DMBIN_ENVMANUAL = 6 -Global Const $DMBIN_AUTO = 7 -Global Const $DMBIN_TRACTOR = 8 -Global Const $DMBIN_SMALLFMT = 9 -Global Const $DMBIN_LARGEFMT = 10 -Global Const $DMBIN_LARGECAPACITY = 11 -Global Const $DMBIN_CASSETTE = 14 -Global Const $DMBIN_FORMSOURCE = 15 -Global Const $DMBIN_USER = 256 - -Global Const $DMRES_DRAFT = -1 -Global Const $DMRES_LOW = -2 -Global Const $DMRES_MEDIUM = -3 -Global Const $DMRES_HIGH = -4 - -Global Const $DMDO_DEFAULT = 0 -Global Const $DMDO_90 = 1 -Global Const $DMDO_180 = 2 -Global Const $DMDO_270 = 3 - -Global Const $DMDFO_DEFAULT = 0 -Global Const $DMDFO_STRETCH = 1 -Global Const $DMDFO_CENTER = 2 - -Global Const $DMCOLOR_MONOCHROME = 1 -Global Const $DMCOLOR_COLOR = 2 - -Global Const $DMDUP_SIMPLEX = 1 -Global Const $DMDUP_VERTICAL = 2 -Global Const $DMDUP_HORIZONTAL = 3 - -Global Const $DMTT_BITMAP = 1 -Global Const $DMTT_DOWNLOAD = 2 -Global Const $DMTT_SUBDEV = 3 -Global Const $DMTT_DOWNLOAD_OUTLINE = 4 - -Global Const $DMCOLLATE_FALSE = 0 -Global Const $DMCOLLATE_TRUE = 1 - -Global Const $DM_GRAYSCALE = 1 -Global Const $DM_INTERLACED = 2 - -Global Const $DMNUP_SYSTEM = 1 -Global Const $DMNUP_ONEUP = 2 - -Global Const $DMICMMETHOD_NONE = 1 -Global Const $DMICMMETHOD_SYSTEM = 2 -Global Const $DMICMMETHOD_DRIVER = 3 -Global Const $DMICMMETHOD_DEVICE = 4 -Global Const $DMICMMETHOD_USER = 256 - -Global Const $DMICM_SATURATE = 1 -Global Const $DMICM_CONTRAST = 2 -Global Const $DMICM_COLORIMETRIC = 3 -Global Const $DMICM_ABS_COLORIMETRIC = 4 -Global Const $DMICM_USER = 256 - -Global Const $DMMEDIA_STANDARD = 1 -Global Const $DMMEDIA_TRANSPARENCY = 2 -Global Const $DMMEDIA_GLOSSY = 3 -Global Const $DMMEDIA_USER = 256 - -Global Const $DMDITHER_NONE = 1 -Global Const $DMDITHER_COARSE = 2 -Global Const $DMDITHER_FINE = 3 -Global Const $DMDITHER_LINEART = 4 -Global Const $DMDITHER_ERRORDIFFUSION = 5 -Global Const $DMDITHER_RESERVED6 = 6 -Global Const $DMDITHER_RESERVED7 = 7 -Global Const $DMDITHER_RESERVED8 = 8 -Global Const $DMDITHER_RESERVED9 = 9 -Global Const $DMDITHER_GRAYSCALE = 10 -Global Const $DMDITHER_USER = 256 - -; _WinAPI_EnumDisplaySettings() -Global Const $ENUM_CURRENT_SETTINGS = -1 -Global Const $ENUM_REGISTRY_SETTINGS = -2 - -; _WinAPI_EnumFontFamilies() -Global Const $DEVICE_FONTTYPE = 0x2 -Global Const $RASTER_FONTTYPE = 0x1 -Global Const $TRUETYPE_FONTTYPE = 0x4 - -Global Const $NTM_BOLD = 0x00000020 -Global Const $NTM_DSIG = 0x00200000 -Global Const $NTM_ITALIC = 0x00000001 -Global Const $NTM_MULTIPLEMASTER = 0x00080000 -Global Const $NTM_NONNEGATIVE_AC = 0x00010000 -Global Const $NTM_PS_OPENTYPE = 0x00020000 -Global Const $NTM_REGULAR = 0x00000040 -Global Const $NTM_TT_OPENTYPE = 0x00040000 -Global Const $NTM_TYPE1 = 0x00100000 - -; _WinAPI_ExtFloodFill() -Global Const $FLOODFILLBORDER = 0 -Global Const $FLOODFILLSURFACE = 1 - -; _WinAPI_GetArcDirection(), _WinAPI_SetArcDirection() -Global Const $AD_COUNTERCLOCKWISE = 1 -Global Const $AD_CLOCKWISE = 2 - -; _WinAPI_GetBoundsRect(), _WinAPI_SetBoundsRect() -Global Const $DCB_ACCUMULATE = 0x02 -Global Const $DCB_DISABLE = 0x08 -Global Const $DCB_ENABLE = 0x04 -Global Const $DCB_RESET = 0x01 -Global Const $DCB_SET = BitOR($DCB_RESET, $DCB_ACCUMULATE) - -; _WinAPI_GetCurrentObject(), _WinAPI_GetObjectType() -Global Const $OBJ_BITMAP = 7 -Global Const $OBJ_BRUSH = 2 -Global Const $OBJ_COLORSPACE = 14 -Global Const $OBJ_DC = 3 -Global Const $OBJ_ENHMETADC = 12 -Global Const $OBJ_ENHMETAFILE = 13 -Global Const $OBJ_EXTPEN = 11 -Global Const $OBJ_FONT = 6 -Global Const $OBJ_MEMDC = 10 -Global Const $OBJ_METADC = 4 -Global Const $OBJ_METAFILE = 9 -Global Const $OBJ_PAL = 5 -Global Const $OBJ_PEN = 1 -Global Const $OBJ_REGION = 8 - -; _WinAPI_GetDCEx() -Global Const $DCX_WINDOW = 0x00000001 -Global Const $DCX_CACHE = 0x00000002 -Global Const $DCX_PARENTCLIP = 0x00000020 -Global Const $DCX_CLIPSIBLINGS = 0x00000010 -Global Const $DCX_CLIPCHILDREN = 0x00000008 -Global Const $DCX_NORESETATTRS = 0x00000004 -Global Const $DCX_LOCKWINDOWUPDATE = 0x00000400 -Global Const $DCX_EXCLUDERGN = 0x00000040 -Global Const $DCX_INTERSECTRGN = 0x00000080 -Global Const $DCX_INTERSECTUPDATE = 0x00000200 -Global Const $DCX_VALIDATE = 0x00200000 - -; _WinAPI_GetGlyphOutline() -Global Const $GGO_BEZIER = 3 -Global Const $GGO_BITMAP = 1 -Global Const $GGO_GLYPH_INDEX = 0x0080 -Global Const $GGO_GRAY2_BITMAP = 4 -Global Const $GGO_GRAY4_BITMAP = 5 -Global Const $GGO_GRAY8_BITMAP = 6 -Global Const $GGO_METRICS = 0 -Global Const $GGO_NATIVE = 2 -Global Const $GGO_UNHINTED = 0x0100 - -; _WinAPI_GetGraphicsMode(), _WinAPI_SetGraphicsMode() -Global Const $GM_COMPATIBLE = 1 -Global Const $GM_ADVANCED = 2 - -; _WinAPI_GetMapMode(), _WinAPI_SetMapMode() -Global Const $MM_ANISOTROPIC = 8 -Global Const $MM_HIENGLISH = 5 -Global Const $MM_HIMETRIC = 3 -Global Const $MM_ISOTROPIC = 7 -Global Const $MM_LOENGLISH = 4 -Global Const $MM_LOMETRIC = 2 -Global Const $MM_TEXT = 1 -Global Const $MM_TWIPS = 6 - -; _WinAPI_GetROP2(), _WinAPI_SetROP2() -Global Const $R2_BLACK = 1 -Global Const $R2_COPYPEN = 13 -Global Const $R2_LAST = 16 -Global Const $R2_MASKNOTPEN = 3 -Global Const $R2_MASKPEN = 9 -Global Const $R2_MASKPENNOT = 5 -Global Const $R2_MERGENOTPEN = 12 -Global Const $R2_MERGEPEN = 15 -Global Const $R2_MERGEPENNOT = 14 -Global Const $R2_NOP = 11 -Global Const $R2_NOT = 6 -Global Const $R2_NOTCOPYPEN = 4 -Global Const $R2_NOTMASKPEN = 8 -Global Const $R2_NOTMERGEPEN = 2 -Global Const $R2_NOTXORPEN = 10 -Global Const $R2_WHITE = 16 -Global Const $R2_XORPEN = 7 - -; _WinAPI_GetStretchBltMode(), _WinAPI_SetStretchBltMode() -Global Const $BLACKONWHITE = 1 -Global Const $COLORONCOLOR = 3 -Global Const $HALFTONE = 4 -Global Const $WHITEONBLACK = 2 -Global Const $STRETCH_ANDSCANS = $BLACKONWHITE -Global Const $STRETCH_DELETESCANS = $COLORONCOLOR -Global Const $STRETCH_HALFTONE = $HALFTONE -Global Const $STRETCH_ORSCANS = $WHITEONBLACK - -; _WinAPI_GetTextAlign(), _WinAPI_SetTextAlign() -Global Const $TA_BASELINE = 0x0018 -Global Const $TA_BOTTOM = 0x0008 -Global Const $TA_TOP = 0x0000 -Global Const $TA_CENTER = 0x0006 -Global Const $TA_LEFT = 0x0000 -Global Const $TA_RIGHT = 0x0002 -Global Const $TA_NOUPDATECP = 0x0000 -Global Const $TA_RTLREADING = 0x0100 -Global Const $TA_UPDATECP = 0x0001 - -Global Const $VTA_BASELINE = $TA_BASELINE -Global Const $VTA_BOTTOM = $TA_RIGHT -Global Const $VTA_TOP = $TA_LEFT -Global Const $VTA_CENTER = $TA_CENTER -Global Const $VTA_LEFT = $TA_BOTTOM -Global Const $VTA_RIGHT = $TA_TOP - -; _WinAPI_GetUDFColorMode(), _WinAPI_SetUDFColorMode() -Global Const $UDF_BGR = 1 -Global Const $UDF_RGB = 0 - -; _WinAPI_GetWorldTransform(), _WinAPI_SetWorldTransform() -Global Const $MWT_IDENTITY = 0x01 -Global Const $MWT_LEFTMULTIPLY = 0x02 -Global Const $MWT_RIGHTMULTIPLY = 0x03 -Global Const $MWT_SET = 0x04 - -; _WinAPI_MonitorFrom*() -Global Const $MONITOR_DEFAULTTONEAREST = 2 -Global Const $MONITOR_DEFAULTTONULL = 0 -Global Const $MONITOR_DEFAULTTOPRIMARY = 1 - -; _WinAPI_PolyDraw() -Global Const $PT_BEZIERTO = 4 -Global Const $PT_LINETO = 2 -Global Const $PT_MOVETO = 6 -Global Const $PT_CLOSEFIGURE = 1 -; =============================================================================================================================== diff --git a/build/Include/APILocaleConstants.au3 b/build/Include/APILocaleConstants.au3 deleted file mode 100644 index 0ab0e2d1f..000000000 --- a/build/Include/APILocaleConstants.au3 +++ /dev/null @@ -1,199 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPILocale Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_CompareString() -Global Const $LINGUISTIC_IGNORECASE = 0x00000010 -Global Const $LINGUISTIC_IGNOREDIACRITIC = 0x00000020 - -Global Const $NORM_IGNORECASE = 0x00000001 -Global Const $NORM_IGNOREKANATYPE = 0x00010000 -Global Const $NORM_IGNORENONSPACE = 0x00000002 -Global Const $NORM_IGNORESYMBOLS = 0x00000004 -Global Const $NORM_IGNOREWIDTH = 0x00020000 -Global Const $NORM_LINGUISTIC_CASING = 0x08000000 - -Global Const $SORT_DIGITSASNUMBERS = 0x00000008 -Global Const $SORT_STRINGSORT = 0x00001000 - -Global Const $CSTR_LESS_THAN = 1 -Global Const $CSTR_EQUAL = 2 -Global Const $CSTR_GREATER_THAN = 3 - -; _WinAPI_EnumUILanguages() -Global Const $MUI_LANGUAGE_ID = 0x0004 -Global Const $MUI_LANGUAGE_NAME = 0x0008 - -; _WinAPI_GetDateFormat() -Global Const $DATE_AUTOLAYOUT = 0x40 -Global Const $DATE_LONGDATE = 0x02 -Global Const $DATE_LTRREADING = 0x10 -Global Const $DATE_SHORTDATE = 0x01 -Global Const $DATE_RTLREADING = 0x20 -Global Const $DATE_USE_ALT_CALENDAR = 0x04 -Global Const $DATE_YEARMONTH = 0x08 - -; _WinAPI_GetGeoInfo() -Global Const $GEO_NATION = 1 -Global Const $GEO_LATITUDE = 2 -Global Const $GEO_LONGITUDE = 3 -Global Const $GEO_ISO2 = 4 -Global Const $GEO_ISO3 = 5 -Global Const $GEO_RFC1766 = 6 -Global Const $GEO_LCID = 7 -Global Const $GEO_FRIENDLYNAME = 8 -Global Const $GEO_OFFICIALNAME = 9 -Global Const $GEO_TIMEZONES = 10 -Global Const $GEO_OFFICIALLANGUAGES = 11 -Global Const $GEO_ISO_UN_NUMBER = 12 -Global Const $GEO_PARENT = 13 - -; _WinAPI_GetLocaleInfo(), _WinAPI_SetLocaleInfo() -Global Const $LOCALE_ILANGUAGE = 0x0001 -Global Const $LOCALE_SLANGUAGE = 0x0002 -Global Const $LOCALE_SENGLANGUAGE = 0x1001 -Global Const $LOCALE_SABBREVLANGNAME = 0x0003 -Global Const $LOCALE_SNATIVELANGNAME = 0x0004 - -Global Const $LOCALE_ICOUNTRY = 0x0005 -Global Const $LOCALE_SCOUNTRY = 0x0006 -Global Const $LOCALE_SENGCOUNTRY = 0x1002 -Global Const $LOCALE_SABBREVCTRYNAME = 0x0007 -Global Const $LOCALE_SNATIVECTRYNAME = 0x0008 - -Global Const $LOCALE_IDEFAULTLANGUAGE = 0x0009 -Global Const $LOCALE_IDEFAULTCOUNTRY = 0x000A -Global Const $LOCALE_IDEFAULTCODEPAGE = 0x000B -Global Const $LOCALE_IDEFAULTANSICODEPAGE = 0x1004 -Global Const $LOCALE_IDEFAULTMACCODEPAGE = 0x1011 - -Global Const $LOCALE_SLIST = 0x000C -Global Const $LOCALE_IMEASURE = 0x000D - -Global Const $LOCALE_SDECIMAL = 0x000E -Global Const $LOCALE_STHOUSAND = 0x000F -Global Const $LOCALE_SGROUPING = 0x0010 -Global Const $LOCALE_IDIGITS = 0x0011 -Global Const $LOCALE_ILZERO = 0x0012 -Global Const $LOCALE_INEGNUMBER = 0x1010 -Global Const $LOCALE_SNATIVEDIGITS = 0x0013 - -Global Const $LOCALE_SCURRENCY = 0x0014 -Global Const $LOCALE_SINTLSYMBOL = 0x0015 -Global Const $LOCALE_SMONDECIMALSEP = 0x0016 -Global Const $LOCALE_SMONTHOUSANDSEP = 0x0017 -Global Const $LOCALE_SMONGROUPING = 0x0018 -Global Const $LOCALE_ICURRDIGITS = 0x0019 -Global Const $LOCALE_IINTLCURRDIGITS = 0x001A -Global Const $LOCALE_ICURRENCY = 0x001B -Global Const $LOCALE_INEGCURR = 0x001C - -Global Const $LOCALE_SDATE = 0x001D -Global Const $LOCALE_STIME = 0x001E -Global Const $LOCALE_SSHORTDATE = 0x001F -Global Const $LOCALE_SLONGDATE = 0x0020 -Global Const $LOCALE_STIMEFORMAT = 0x1003 -Global Const $LOCALE_IDATE = 0x0021 -Global Const $LOCALE_ILDATE = 0x0022 -Global Const $LOCALE_ITIME = 0x0023 -Global Const $LOCALE_ITIMEMARKPOSN = 0x1005 -Global Const $LOCALE_ICENTURY = 0x0024 -Global Const $LOCALE_ITLZERO = 0x0025 -Global Const $LOCALE_IDAYLZERO = 0x0026 -Global Const $LOCALE_IMONLZERO = 0x0027 -Global Const $LOCALE_S1159 = 0x0028 -Global Const $LOCALE_S2359 = 0x0029 - -Global Const $LOCALE_ICALENDARTYPE = 0x1009 -Global Const $LOCALE_IOPTIONALCALENDAR = 0x100B -Global Const $LOCALE_IFIRSTDAYOFWEEK = 0x100C -Global Const $LOCALE_IFIRSTWEEKOFYEAR = 0x100D - -Global Const $LOCALE_SDAYNAME1 = 0x002A -Global Const $LOCALE_SDAYNAME2 = 0x002B -Global Const $LOCALE_SDAYNAME3 = 0x002C -Global Const $LOCALE_SDAYNAME4 = 0x002D -Global Const $LOCALE_SDAYNAME5 = 0x002E -Global Const $LOCALE_SDAYNAME6 = 0x002F -Global Const $LOCALE_SDAYNAME7 = 0x0030 -Global Const $LOCALE_SABBREVDAYNAME1 = 0x0031 -Global Const $LOCALE_SABBREVDAYNAME2 = 0x0032 -Global Const $LOCALE_SABBREVDAYNAME3 = 0x0033 -Global Const $LOCALE_SABBREVDAYNAME4 = 0x0034 -Global Const $LOCALE_SABBREVDAYNAME5 = 0x0035 -Global Const $LOCALE_SABBREVDAYNAME6 = 0x0036 -Global Const $LOCALE_SABBREVDAYNAME7 = 0x0037 -Global Const $LOCALE_SMONTHNAME1 = 0x0038 -Global Const $LOCALE_SMONTHNAME2 = 0x0039 -Global Const $LOCALE_SMONTHNAME3 = 0x003A -Global Const $LOCALE_SMONTHNAME4 = 0x003B -Global Const $LOCALE_SMONTHNAME5 = 0x003C -Global Const $LOCALE_SMONTHNAME6 = 0x003D -Global Const $LOCALE_SMONTHNAME7 = 0x003E -Global Const $LOCALE_SMONTHNAME8 = 0x003F -Global Const $LOCALE_SMONTHNAME9 = 0x0040 -Global Const $LOCALE_SMONTHNAME10 = 0x0041 -Global Const $LOCALE_SMONTHNAME11 = 0x0042 -Global Const $LOCALE_SMONTHNAME12 = 0x0043 -Global Const $LOCALE_SMONTHNAME13 = 0x100E -Global Const $LOCALE_SABBREVMONTHNAME1 = 0x0044 -Global Const $LOCALE_SABBREVMONTHNAME2 = 0x0045 -Global Const $LOCALE_SABBREVMONTHNAME3 = 0x0046 -Global Const $LOCALE_SABBREVMONTHNAME4 = 0x0047 -Global Const $LOCALE_SABBREVMONTHNAME5 = 0x0048 -Global Const $LOCALE_SABBREVMONTHNAME6 = 0x0049 -Global Const $LOCALE_SABBREVMONTHNAME7 = 0x004A -Global Const $LOCALE_SABBREVMONTHNAME8 = 0x004B -Global Const $LOCALE_SABBREVMONTHNAME9 = 0x004C -Global Const $LOCALE_SABBREVMONTHNAME10 = 0x004D -Global Const $LOCALE_SABBREVMONTHNAME11 = 0x004E -Global Const $LOCALE_SABBREVMONTHNAME12 = 0x004F -Global Const $LOCALE_SABBREVMONTHNAME13 = 0x100F - -Global Const $LOCALE_SPOSITIVESIGN = 0x0050 -Global Const $LOCALE_SNEGATIVESIGN = 0x0051 -Global Const $LOCALE_IPOSSIGNPOSN = 0x0052 -Global Const $LOCALE_INEGSIGNPOSN = 0x0053 -Global Const $LOCALE_IPOSSYMPRECEDES = 0x0054 -Global Const $LOCALE_IPOSSEPBYSPACE = 0x0055 -Global Const $LOCALE_INEGSYMPRECEDES = 0x0056 -Global Const $LOCALE_INEGSEPBYSPACE = 0x0057 - -Global Const $LOCALE_FONTSIGNATURE = 0x0058 -Global Const $LOCALE_SISO639LANGNAME = 0x0059 -Global Const $LOCALE_SISO3166CTRYNAME = 0x005A - -Global Const $LOCALE_IDEFAULTEBCDICCODEPAGE = 0x1012 -Global Const $LOCALE_IPAPERSIZE = 0x100A -Global Const $LOCALE_SENGCURRNAME = 0x1007 -Global Const $LOCALE_SNATIVECURRNAME = 0x1008 -Global Const $LOCALE_SYEARMONTH = 0x1006 -Global Const $LOCALE_SSORTNAME = 0x1013 -Global Const $LOCALE_IDIGITSUBSTITUTION = 0x1014 - -Global Const $LOCALE_CUSTOM_DEFAULT = 0x0C00 -Global Const $LOCALE_CUSTOM_UI_DEFAULT = 0x1400 -Global Const $LOCALE_CUSTOM_UNSPECIFIED = 0x1000 - -Global Const $LOCALE_INVARIANT = 0x007F -Global Const $LOCALE_SYSTEM_DEFAULT = 0x0800 -Global Const $LOCALE_USER_DEFAULT = 0x0400 - -; _WinAPI_GetTimeFormat() -Global Const $TIME_FORCE24HOURFORMAT = 0x08 -Global Const $TIME_NOMINUTESORSECONDS = 0x01 -Global Const $TIME_NOSECONDS = 0x02 -Global Const $TIME_NOTIMEMARKER = 0x04 - -; _WinAPI_IsValidLocale() -Global Const $LCID_INSTALLED = 1 -Global Const $LCID_SUPPORTED = 2 -; =============================================================================================================================== diff --git a/build/Include/APIMiscConstants.au3 b/build/Include/APIMiscConstants.au3 deleted file mode 100644 index bc56562d1..000000000 --- a/build/Include/APIMiscConstants.au3 +++ /dev/null @@ -1,39 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPIMisc Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_PlaySound() -Global Const $SND_APPLICATION = 0x00000080 -Global Const $SND_ALIAS = 0x00010000 -Global Const $SND_ALIAS_ID = 0x00110000 -Global Const $SND_ASYNC = 0x00000001 -Global Const $SND_FILENAME = 0x00020000 -Global Const $SND_LOOP = 0x00000008 -Global Const $SND_MEMORY = 0x00000004 -Global Const $SND_NODEFAULT = 0x00000002 -Global Const $SND_NOSTOP = 0x00000010 -Global Const $SND_NOWAIT = 0x00002000 -Global Const $SND_PURGE = 0x00000040 -Global Const $SND_RESOURCE = 0x00040004 -Global Const $SND_SENTRY = 0x00080000 -Global Const $SND_SYNC = 0x00000000 -Global Const $SND_SYSTEM = 0x00200000 -Global Const $SND_SYSTEM_NOSTOP = 0x00200010 - -Global Const $SND_ALIAS_SYSTEMASTERISK = 'SystemAsterisk' -Global Const $SND_ALIAS_SYSTEMDEFAULT = 'SystemDefault' -Global Const $SND_ALIAS_SYSTEMEXCLAMATION = 'SystemExclamation' -Global Const $SND_ALIAS_SYSTEMEXIT = 'SystemExit' -Global Const $SND_ALIAS_SYSTEMHAND = 'SystemHand' -Global Const $SND_ALIAS_SYSTEMQUESTION = 'SystemQuestion' -Global Const $SND_ALIAS_SYSTEMSTART = 'SystemStart' -Global Const $SND_ALIAS_SYSTEMWELCOME = 'SystemWelcome' -; =============================================================================================================================== diff --git a/build/Include/APIProcConstants.au3 b/build/Include/APIProcConstants.au3 deleted file mode 100644 index 922c543de..000000000 --- a/build/Include/APIProcConstants.au3 +++ /dev/null @@ -1,102 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPIProc Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_CreateProcess(), _WinAPI_CreateProcessWithToken() -Global Const $CREATE_BREAKAWAY_FROM_JOB = 0x01000000 -Global Const $CREATE_DEFAULT_ERROR_MODE = 0x04000000 -Global Const $CREATE_NEW_CONSOLE = 0x00000010 -Global Const $CREATE_NEW_PROCESS_GROUP = 0x00000200 -Global Const $CREATE_NO_WINDOW = 0x08000000 -Global Const $CREATE_PROTECTED_PROCESS = 0x00040000 -Global Const $CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000 -Global Const $CREATE_SEPARATE_WOW_VDM = 0x00000800 -Global Const $CREATE_SHARED_WOW_VDM = 0x00001000 -Global Const $CREATE_SUSPENDED = 0x00000004 -Global Const $CREATE_UNICODE_ENVIRONMENT = 0x00000400 - -; move in SecurityConstants.au3 -; Global Const $LOGON_WITH_PROFILE = 0x01 -; Global Const $LOGON_NETCREDENTIALS_ONLY = 0x02 - -; _WinAPI_EnumProcessModules() -Global Const $LIST_MODULES_32BIT = 1 -Global Const $LIST_MODULES_64BIT = 2 -Global Const $LIST_MODULES_ALL = 3 -Global Const $LIST_MODULES_DEFAULT = 0 - -; _WinAPI_GetPriorityClass(), _WinAPI_SetPriorityClass() -Global Const $ABOVE_NORMAL_PRIORITY_CLASS = 0x00008000 -Global Const $BELOW_NORMAL_PRIORITY_CLASS = 0x00004000 -Global Const $HIGH_PRIORITY_CLASS = 0x00000080 -Global Const $IDLE_PRIORITY_CLASS = 0x00000040 -Global Const $NORMAL_PRIORITY_CLASS = 0x00000020 -Global Const $REALTIME_PRIORITY_CLASS = 0x00000100 - -Global Const $PROCESS_MODE_BACKGROUND_BEGIN = 0x00100000 -Global Const $PROCESS_MODE_BACKGROUND_END = 0x00200000 - -; _WinAPI_OpenMutex() -Global Const $MUTEX_MODIFY_STATE = 0x0001 -Global Const $MUTEX_ALL_ACCESS = 0x001F0001 ; BitOR($STANDARD_RIGHTS_ALL, $MUTEX_MODIFY_STATE) - -; _WinAPI_OpenJobObject(), _WinAPI_QueryInformationJobObject(), _WinAPI_SetInformationJobObject() -Global Const $JOB_OBJECT_ASSIGN_PROCESS = 0x0001 -Global Const $JOB_OBJECT_QUERY = 0x0004 -Global Const $JOB_OBJECT_SET_ATTRIBUTES = 0x0002 -Global Const $JOB_OBJECT_SET_SECURITY_ATTRIBUTES = 0x0010 -Global Const $JOB_OBJECT_TERMINATE = 0x0008 -Global Const $JOB_OBJECT_ALL_ACCESS = 0x001F001F ; BitOR($STANDARD_RIGHTS_ALL, $JOB_OBJECT_ASSIGN_PROCESS, $JOB_OBJECT_QUERY, $JOB_OBJECT_SET_ATTRIBUTES, $JOB_OBJECT_SET_SECURITY_ATTRIBUTES, $JOB_OBJECT_TERMINATE) - -Global Const $JOB_OBJECT_LIMIT_ACTIVE_PROCESS = 0x00000008 -Global Const $JOB_OBJECT_LIMIT_AFFINITY = 0x00000010 -Global Const $JOB_OBJECT_LIMIT_BREAKAWAY_OK = 0x00000800 -Global Const $JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION = 0x00000400 -Global Const $JOB_OBJECT_LIMIT_JOB_MEMORY = 0x00000200 -Global Const $JOB_OBJECT_LIMIT_JOB_TIME = 0x00000004 -Global Const $JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = 0x00002000 -Global Const $JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME = 0x00000040 -Global Const $JOB_OBJECT_LIMIT_PRIORITY_CLASS = 0x00000020 -Global Const $JOB_OBJECT_LIMIT_PROCESS_MEMORY = 0x00000100 -Global Const $JOB_OBJECT_LIMIT_PROCESS_TIME = 0x00000002 -Global Const $JOB_OBJECT_LIMIT_SCHEDULING_CLASS = 0x00000080 -Global Const $JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK = 0x00001000 -Global Const $JOB_OBJECT_LIMIT_WORKINGSET = 0x00000001 - -Global Const $JOB_OBJECT_UILIMIT_DESKTOP = 0x00000040 -Global Const $JOB_OBJECT_UILIMIT_DISPLAYSETTINGS = 0x00000010 -Global Const $JOB_OBJECT_UILIMIT_EXITWINDOWS = 0x00000080 -Global Const $JOB_OBJECT_UILIMIT_GLOBALATOMS = 0x00000020 -Global Const $JOB_OBJECT_UILIMIT_HANDLES = 0x00000001 -Global Const $JOB_OBJECT_UILIMIT_READCLIPBOARD = 0x00000002 -Global Const $JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS = 0x00000008 -Global Const $JOB_OBJECT_UILIMIT_WRITECLIPBOARD = 0x00000004 - -Global Const $JOB_OBJECT_SECURITY_FILTER_TOKENS = 0x00000008 -Global Const $JOB_OBJECT_SECURITY_NO_ADMIN = 0x00000001 -Global Const $JOB_OBJECT_SECURITY_ONLY_TOKEN = 0x00000004 -Global Const $JOB_OBJECT_SECURITY_RESTRICTED_TOKEN = 0x00000002 - -Global Const $JOB_OBJECT_TERMINATE_AT_END_OF_JOB = 0 -Global Const $JOB_OBJECT_POST_AT_END_OF_JOB = 1 - -; _WinAPI_OpenSemaphore() -Global Const $SEMAPHORE_MODIFY_STATE = 0x0002 -Global Const $SEMAPHORE_QUERY_STATE = 0x0001 -Global Const $SEMAPHORE_ALL_ACCESS = 0x001F0003 ; BitOR($STANDARD_RIGHTS_ALL, $SEMAPHORE_MODIFY_STATE, $SEMAPHORE_QUERY_STATE) - -; _WinAPI_SetThreadExecutionState() -Global Const $ES_AWAYMODE_REQUIRED = 0x00000040 -Global Const $ES_CONTINUOUS = 0x80000000 -Global Const $ES_DISPLAY_REQUIRED = 0x00000002 -Global Const $ES_SYSTEM_REQUIRED = 0x00000001 -Global Const $ES_USER_PRESENT = 0x00000004 -; =============================================================================================================================== diff --git a/build/Include/APIRegConstants.au3 b/build/Include/APIRegConstants.au3 deleted file mode 100644 index 23d7041af..000000000 --- a/build/Include/APIRegConstants.au3 +++ /dev/null @@ -1,100 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPIReg Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_AssocGetPerceivedType() -Global Const $PERCEIVED_TYPE_CUSTOM = -3 -Global Const $PERCEIVED_TYPE_UNSPECIFIED = -2 -Global Const $PERCEIVED_TYPE_FOLDER = -1 -Global Const $PERCEIVED_TYPE_UNKNOWN = 0 -Global Const $PERCEIVED_TYPE_TEXT = 1 -Global Const $PERCEIVED_TYPE_IMAGE = 2 -Global Const $PERCEIVED_TYPE_AUDIO = 3 -Global Const $PERCEIVED_TYPE_VIDEO = 4 -Global Const $PERCEIVED_TYPE_COMPRESSED = 5 -Global Const $PERCEIVED_TYPE_DOCUMENT = 6 -Global Const $PERCEIVED_TYPE_SYSTEM = 7 -Global Const $PERCEIVED_TYPE_APPLICATION = 8 -Global Const $PERCEIVED_TYPE_GAMEMEDIA = 9 -Global Const $PERCEIVED_TYPE_CONTACTS = 10 - -Global Const $PERCEIVEDFLAG_UNDEFINED = 0x0000 -Global Const $PERCEIVEDFLAG_SOFTCODED = 0x0001 -Global Const $PERCEIVEDFLAG_HARDCODED = 0x0002 -Global Const $PERCEIVEDFLAG_NATIVESUPPORT = 0x0004 -Global Const $PERCEIVEDFLAG_GDIPLUS = 0x0010 -Global Const $PERCEIVEDFLAG_WMSDK = 0x0020 -Global Const $PERCEIVEDFLAG_ZIPFOLDER = 0x0040 - -; _WinAPI_AssocQueryString() -Global Const $ASSOCSTR_COMMAND = 1 -Global Const $ASSOCSTR_EXECUTABLE = 2 -Global Const $ASSOCSTR_FRIENDLYDOCNAME = 3 -Global Const $ASSOCSTR_FRIENDLYAPPNAME = 4 -Global Const $ASSOCSTR_NOOPEN = 5 -Global Const $ASSOCSTR_SHELLNEWVALUE = 6 -Global Const $ASSOCSTR_DDECOMMAND = 7 -Global Const $ASSOCSTR_DDEIFEXEC = 8 -Global Const $ASSOCSTR_DDEAPPLICATION = 9 -Global Const $ASSOCSTR_DDETOPIC = 10 -Global Const $ASSOCSTR_INFOTIP = 11 -Global Const $ASSOCSTR_QUICKTIP = 12 -Global Const $ASSOCSTR_TILEINFO = 13 -Global Const $ASSOCSTR_CONTENTTYPE = 14 -Global Const $ASSOCSTR_DEFAULTICON = 15 -Global Const $ASSOCSTR_SHELLEXTENSION = 16 - -Global Const $ASSOCF_INIT_NOREMAPCLSID = 0x00000001 -Global Const $ASSOCF_INIT_BYEXENAME = 0x00000002 -Global Const $ASSOCF_OPEN_BYEXENAME = 0x00000002 -Global Const $ASSOCF_INIT_DEFAULTTOSTAR = 0x00000004 -Global Const $ASSOCF_INIT_DEFAULTTOFOLDER = 0x00000008 -Global Const $ASSOCF_NOUSERSETTINGS = 0x00000010 -Global Const $ASSOCF_NOTRUNCATE = 0x00000020 -Global Const $ASSOCF_VERIFY = 0x00000040 -Global Const $ASSOCF_REMAPRUNDLL = 0x00000080 -Global Const $ASSOCF_NOFIXUPS = 0x00000100 -Global Const $ASSOCF_IGNOREBASECLASS = 0x00000200 -Global Const $ASSOCF_INIT_IGNOREUNKNOWN = 0x00000400 - -; _WinAPI_Reg... -Global Const $HKEY_CLASSES_ROOT = 0x80000000 -Global Const $HKEY_CURRENT_CONFIG = 0x80000005 -Global Const $HKEY_CURRENT_USER = 0x80000001 -Global Const $HKEY_LOCAL_MACHINE = 0x80000002 -Global Const $HKEY_PERFORMANCE_DATA = 0x80000004 -Global Const $HKEY_PERFORMANCE_NLSTEXT = 0x80000060 -Global Const $HKEY_PERFORMANCE_TEXT = 0x80000050 -Global Const $HKEY_USERS = 0x80000003 - -Global Const $KEY_CREATE_LINK = 0x0020 -Global Const $KEY_CREATE_SUB_KEY = 0x0004 -Global Const $KEY_ENUMERATE_SUB_KEYS = 0x0008 -Global Const $KEY_NOTIFY = 0x0010 -Global Const $KEY_QUERY_VALUE = 0x0001 -Global Const $KEY_SET_VALUE = 0x0002 -Global Const $KEY_WOW64_32KEY = 0x0200 -Global Const $KEY_WOW64_64KEY = 0x0100 -Global Const $KEY_READ = 0x00020019 ; BitOR($STANDARD_RIGHTS_READ, $KEY_ENUMERATE_SUB_KEYS, $KEY_NOTIFY, $KEY_QUERY_VALUE) -Global Const $KEY_WRITE = 0x0002006 ; BitOR($STANDARD_RIGHTS_WRITE, $KEY_CREATE_SUB_KEY, $KEY_SET_VALUE) -Global Const $KEY_EXECUTE = $KEY_READ -Global Const $KEY_ALL_ACCESS = 0x000f003f ; BitOR($STANDARD_RIGHTS_REQUIRED, $KEY_CREATE_LINK, $KEY_CREATE_SUB_KEY, $KEY_ENUMERATE_SUB_KEYS, $KEY_NOTIFY, $KEY_QUERY_VALUE, $KEY_SET_VALUE) - -Global Const $REG_NOTIFY_CHANGE_NAME = 0x01 -Global Const $REG_NOTIFY_CHANGE_ATTRIBUTES = 0x02 -Global Const $REG_NOTIFY_CHANGE_LAST_SET = 0x04 -Global Const $REG_NOTIFY_CHANGE_SECURITY = 0x08 - -Global Const $REG_OPTION_BACKUP_RESTORE = 0x04 -Global Const $REG_OPTION_CREATE_LINK = 0x02 -Global Const $REG_OPTION_NON_VOLATILE = 0x00 -Global Const $REG_OPTION_VOLATILE = 0x01 -; =============================================================================================================================== diff --git a/build/Include/APIResConstants.au3 b/build/Include/APIResConstants.au3 deleted file mode 100644 index 557d03bb3..000000000 --- a/build/Include/APIResConstants.au3 +++ /dev/null @@ -1,109 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPIRes Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_FindResource(), _WinAPI_FindResourceEx(), _WinAPI_UpdateResource() -Global Const $RT_ACCELERATOR = 9 -Global Const $RT_ANICURSOR = 21 -Global Const $RT_ANIICON = 22 -Global Const $RT_BITMAP = 2 -Global Const $RT_CURSOR = 1 -Global Const $RT_DIALOG = 5 -Global Const $RT_DLGINCLUDE = 17 -Global Const $RT_FONT = 8 -Global Const $RT_FONTDIR = 7 -Global Const $RT_GROUP_CURSOR = 12 -Global Const $RT_GROUP_ICON = 14 -Global Const $RT_HTML = 23 -Global Const $RT_ICON = 3 -Global Const $RT_MANIFEST = 24 -Global Const $RT_MENU = 4 -Global Const $RT_MESSAGETABLE = 11 -Global Const $RT_PLUGPLAY = 19 -Global Const $RT_RCDATA = 10 -Global Const $RT_STRING = 6 -Global Const $RT_VERSION = 16 -Global Const $RT_VXD = 20 - -; _WinAPI_GetFileVersionInfo() -Global Const $FILE_VER_GET_LOCALISED = 0x01 -Global Const $FILE_VER_GET_NEUTRAL = 0x02 -Global Const $FILE_VER_GET_PREFETCHED = 0x04 - -; _WinAPI_SetSystemCursor() -Global Const $OCR_NORMAL = 32512 -Global Const $OCR_IBEAM = 32513 -Global Const $OCR_WAIT = 32514 -Global Const $OCR_CROSS = 32515 -Global Const $OCR_UP = 32516 -Global Const $OCR_SIZE = 32640 -Global Const $OCR_ICON = 32641 -Global Const $OCR_SIZENWSE = 32642 -Global Const $OCR_SIZENESW = 32643 -Global Const $OCR_SIZEWE = 32644 -Global Const $OCR_SIZENS = 32645 -Global Const $OCR_SIZEALL = 32646 -Global Const $OCR_ICOCUR = 32647 -Global Const $OCR_NO = 32648 -Global Const $OCR_HAND = 32649 -Global Const $OCR_APPSTARTING = 32650 -Global Const $OCR_HELP = 32651 - -; _WinAPI_VerQueryRoot() -Global Const $VS_FF_DEBUG = 0x00000001 -Global Const $VS_FF_INFOINFERRED = 0x00000010 -Global Const $VS_FF_PATCHED = 0x00000004 -Global Const $VS_FF_PRERELEASE = 0x00000002 -Global Const $VS_FF_PRIVATEBUILD = 0x00000008 -Global Const $VS_FF_SPECIALBUILD = 0x00000020 - -Global Const $VOS_DOS = 0x00010000 -Global Const $VOS_NT = 0x00040000 -Global Const $VOS__WINDOWS16 = 0x00000001 -Global Const $VOS__WINDOWS32 = 0x00000004 -Global Const $VOS_OS216 = 0x00020000 -Global Const $VOS_OS232 = 0x00030000 -Global Const $VOS__PM16 = 0x00000002 -Global Const $VOS__PM32 = 0x00000003 -Global Const $VOS_UNKNOWN = 0x00000000 - -Global Const $VOS_DOS_WINDOWS16 = 0x00010001 -Global Const $VOS_DOS_WINDOWS32 = 0x00010004 -Global Const $VOS_NT_WINDOWS32 = 0x00040004 -Global Const $VOS_OS216_PM16 = 0x00020002 -Global Const $VOS_OS232_PM32 = 0x00030003 - -Global Const $VFT_APP = 0x00000001 -Global Const $VFT_DLL = 0x00000002 -Global Const $VFT_DRV = 0x00000003 -Global Const $VFT_FONT = 0x00000004 -Global Const $VFT_STATIC_LIB = 0x00000007 -Global Const $VFT_UNKNOWN = 0x00000000 -Global Const $VFT_VXD = 0x00000005 - -Global Const $VFT2_DRV_COMM = 0x0000000A -Global Const $VFT2_DRV_DISPLAY = 0x00000004 -Global Const $VFT2_DRV_INSTALLABLE = 0x00000008 -Global Const $VFT2_DRV_KEYBOARD = 0x00000002 -Global Const $VFT2_DRV_LANGUAGE = 0x00000003 -Global Const $VFT2_DRV_MOUSE = 0x00000005 -Global Const $VFT2_DRV_NETWORK = 0x00000006 -Global Const $VFT2_DRV_PRINTER = 0x00000001 -Global Const $VFT2_DRV_SOUND = 0x00000009 -Global Const $VFT2_DRV_SYSTEM = 0x00000007 -Global Const $VFT2_DRV_VERSIONED_PRINTER = 0x0000000C -Global Const $VFT2_UNKNOWN = 0x00000000 - -Global Const $VFT2_FONT_RASTER = 0x00000001 -Global Const $VFT2_FONT_TRUETYPE = 0x00000003 -Global Const $VFT2_FONT_VECTOR = 0x00000002 -; Global Const $VFT2_UNKNOWN = 0x00000000 -; =============================================================================================================================== diff --git a/build/Include/APIShPathConstants.au3 b/build/Include/APIShPathConstants.au3 deleted file mode 100644 index 1fe14d3de..000000000 --- a/build/Include/APIShPathConstants.au3 +++ /dev/null @@ -1,82 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPISPath Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_ParseURL() -Global Const $URL_SCHEME_INVALID = -1 -Global Const $URL_SCHEME_UNKNOWN = 0 -Global Const $URL_SCHEME_FTP = 1 -Global Const $URL_SCHEME_HTTP = 2 -Global Const $URL_SCHEME_GOPHER = 3 -Global Const $URL_SCHEME_MAILTO = 4 -Global Const $URL_SCHEME_NEWS = 5 -Global Const $URL_SCHEME_NNTP = 6 -Global Const $URL_SCHEME_TELNET = 7 -Global Const $URL_SCHEME_WAIS = 8 -Global Const $URL_SCHEME_FILE = 9 -Global Const $URL_SCHEME_MK = 10 -Global Const $URL_SCHEME_HTTPS = 11 -Global Const $URL_SCHEME_SHELL = 12 -Global Const $URL_SCHEME_SNEWS = 13 -Global Const $URL_SCHEME_LOCAL = 14 -Global Const $URL_SCHEME_JAVASCRIPT = 15 -Global Const $URL_SCHEME_VBSCRIPT = 16 -Global Const $URL_SCHEME_ABOUT = 17 -Global Const $URL_SCHEME_RES = 18 -Global Const $URL_SCHEME_MSSHELLROOTED = 19 -Global Const $URL_SCHEME_MSSHELLIDLIST = 20 -Global Const $URL_SCHEME_MSHELP = 21 -Global Const $URL_SCHEME_MSSHELLDEVICE = 22 -Global Const $URL_SCHEME_WILDCARD = 23 -Global Const $URL_SCHEME_SEARCH_MS = 24 -Global Const $URL_SCHEME_SEARCH = 25 -Global Const $URL_SCHEME_KNOWNFOLDER = 26 - -; _WinAPI_PathGetCharType() -Global Const $GCT_INVALID = 0x00 -Global Const $GCT_LFNCHAR = 0x01 -Global Const $GCT_SEPARATOR = 0x08 -Global Const $GCT_SHORTCHAR = 0x02 -Global Const $GCT_WILD = 0x04 - -; _WinAPI_UrlApplyScheme() -Global Const $URL_APPLY_DEFAULT = 0x01 -Global Const $URL_APPLY_GUESSSCHEME = 0x02 -Global Const $URL_APPLY_GUESSFILE = 0x04 -Global Const $URL_APPLY_FORCEAPPLY = 0x08 - -; _WinAPI_UrlCanonicalize(), _WinAPI_UrlCombine() -Global Const $URL_DONT_SIMPLIFY = 0x08000000 -Global Const $URL_ESCAPE_AS_UTF8 = 0x00040000 -Global Const $URL_ESCAPE_PERCENT = 0x00001000 -Global Const $URL_ESCAPE_SPACES_ONLY = 0x04000000 -Global Const $URL_ESCAPE_UNSAFE = 0x20000000 -Global Const $URL_NO_META = 0x08000000 -Global Const $URL_PLUGGABLE_PROTOCOL = 0x40000000 -Global Const $URL_UNESCAPE = 0x10000000 - -; _WinAPI_UrlGetPart() -Global Const $URL_PART_HOSTNAME = 2 -Global Const $URL_PART_PASSWORD = 4 -Global Const $URL_PART_PORT = 5 -Global Const $URL_PART_QUERY = 6 -Global Const $URL_PART_SCHEME = 1 -Global Const $URL_PART_USERNAME = 3 - -; _WinAPI_UrlIs() -Global Const $URLIS_APPLIABLE = 4 -Global Const $URLIS_DIRECTORY = 5 -Global Const $URLIS_FILEURL = 3 -Global Const $URLIS_HASQUERY = 6 -Global Const $URLIS_NOHISTORY = 2 -Global Const $URLIS_OPAQUE = 1 -Global Const $URLIS_URL = 0 -; =============================================================================================================================== diff --git a/build/Include/APIShellExConstants.au3 b/build/Include/APIShellExConstants.au3 deleted file mode 100644 index 4e9a6c5e6..000000000 --- a/build/Include/APIShellExConstants.au3 +++ /dev/null @@ -1,717 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPIShellEx Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_DllGetVersion() -Global Const $DLLVER_PLATFORM_WINDOWS = 0x01 -Global Const $DLLVER_PLATFORM_NT = 0x02 - -; _WinAPI_ShellChangeNotify() -Global Const $SHCNE_ALLEVENTS = 0x7FFFFFFF -Global Const $SHCNE_ASSOCCHANGED = 0x8000000 -Global Const $SHCNE_ATTRIBUTES = 0x00000800 -Global Const $SHCNE_CREATE = 0x00000002 -Global Const $SHCNE_DELETE = 0x00000004 -Global Const $SHCNE_DRIVEADD = 0x00000100 -Global Const $SHCNE_DRIVEADDGUI = 0x00010000 -Global Const $SHCNE_DRIVEREMOVED = 0x00000080 -Global Const $SHCNE_EXTENDED_EVENT = 0x04000000 -Global Const $SHCNE_FREESPACE = 0x00040000 -Global Const $SHCNE_MEDIAINSERTED = 0x00000020 -Global Const $SHCNE_MEDIAREMOVED = 0x00000040 -Global Const $SHCNE_MKDIR = 0x00000008 -Global Const $SHCNE_NETSHARE = 0x00000200 -Global Const $SHCNE_NETUNSHARE = 0x00000400 -Global Const $SHCNE_RENAMEFOLDER = 0x00020000 -Global Const $SHCNE_RENAMEITEM = 0x00000001 -Global Const $SHCNE_RMDIR = 0x00000010 -Global Const $SHCNE_SERVERDISCONNECT = 0x00004000 -Global Const $SHCNE_UPDATEDIR = 0x00001000 -Global Const $SHCNE_UPDATEIMAGE = 0x00008000 -Global Const $SHCNE_UPDATEITEM = 0x00002000 -Global Const $SHCNE_DISKEVENTS = 0x0002381F -Global Const $SHCNE_GLOBALEVENTS = 0x0C0581E0 -Global Const $SHCNE_INTERRUPT = 0x80000000 - -Global Const $SHCNF_DWORD = 0x00000003 -Global Const $SHCNF_IDLIST = 0x00000000 -Global Const $SHCNF_PATH = 0x00000001 -Global Const $SHCNF_PRINTER = 0x00000002 -Global Const $SHCNF_FLUSH = 0x00001000 -Global Const $SHCNF_FLUSHNOWAIT = 0x00002000 -Global Const $SHCNF_NOTIFYRECURSIVE = 0x00010000 - -; _WinAPI_ShellChangeNotifyRegister() -Global Const $SHCNRF_INTERRUPTLEVEL = 0x0001 -Global Const $SHCNRF_SHELLLEVEL = 0x0002 -Global Const $SHCNRF_RECURSIVEINTERRUPT = 0x1000 -Global Const $SHCNRF_NEWDELIVERY = 0x8000 - -; _WinAPI_ShellEmptyRecycleBin() -Global Const $SHERB_NOCONFIRMATION = 0x01 -Global Const $SHERB_NOPROGRESSUI = 0x02 -Global Const $SHERB_NOSOUND = 0x04 -Global Const $SHERB_NO_UI = BitOR($SHERB_NOCONFIRMATION, $SHERB_NOPROGRESSUI, $SHERB_NOSOUND) - -; _WinAPI_ShellExecute(), _WinAPI_ShellExecuteEx() -Global Const $SEE_MASK_DEFAULT = 0x00000000 -Global Const $SEE_MASK_CLASSNAME = 0x00000001 -Global Const $SEE_MASK_CLASSKEY = 0x00000003 -Global Const $SEE_MASK_IDLIST = 0x00000004 -Global Const $SEE_MASK_INVOKEIDLIST = 0x0000000C -Global Const $SEE_MASK_ICON = 0x00000010 -Global Const $SEE_MASK_HOTKEY = 0x00000020 -Global Const $SEE_MASK_NOCLOSEPROCESS = 0x00000040 -Global Const $SEE_MASK_CONNECTNETDRV = 0x00000080 -Global Const $SEE_MASK_NOASYNC = 0x00000100 -Global Const $SEE_MASK_FLAG_DDEWAIT = $SEE_MASK_NOASYNC -Global Const $SEE_MASK_DOENVSUBST = 0x00000200 -Global Const $SEE_MASK_FLAG_NO_UI = 0x00000400 -Global Const $SEE_MASK_UNICODE = 0x00004000 -Global Const $SEE_MASK_NO_CONSOLE = 0x00008000 -Global Const $SEE_MASK_ASYNCOK = 0x00100000 -Global Const $SEE_MASK_NOQUERYCLASSSTORE = 0x01000000 -Global Const $SEE_MASK_HMONITOR = 0x00200000 -Global Const $SEE_MASK_NOZONECHECKS = 0x00800000 -Global Const $SEE_MASK_WAITFORINPUTIDLE = 0x02000000 -Global Const $SEE_MASK_FLAG_LOG_USAGE = 0x04000000 - -Global Const $SE_ERR_ACCESSDENIED = 5 -Global Const $SE_ERR_ASSOCINCOMPLETE = 27 -Global Const $SE_ERR_DDEBUSY = 30 -Global Const $SE_ERR_DDEFAIL = 29 -Global Const $SE_ERR_DDETIMEOUT = 28 -Global Const $SE_ERR_DLLNOTFOUND = 32 -Global Const $SE_ERR_FNF = 2 -Global Const $SE_ERR_NOASSOC = 31 -Global Const $SE_ERR_OOM = 8 -Global Const $SE_ERR_PNF = 3 -Global Const $SE_ERR_SHARE = 26 - -; _WinAPI_ShellFileOperation() -Global Const $FO_COPY = 2 -Global Const $FO_DELETE = 3 -Global Const $FO_MOVE = 1 -Global Const $FO_RENAME = 4 - -Global Const $FOF_ALLOWUNDO = 0x0040 -Global Const $FOF_CONFIRMMOUSE = 0x0002 -Global Const $FOF_FILESONLY = 0x0080 -Global Const $FOF_MULTIDESTFILES = 0x0001 -Global Const $FOF_NOCONFIRMATION = 0x0010 -Global Const $FOF_NOCONFIRMMKDIR = 0x0200 -Global Const $FOF_NO_CONNECTED_ELEMENTS = 0x2000 -Global Const $FOF_NOCOPYSECURITYATTRIBS = 0x0800 -Global Const $FOF_NOERRORUI = 0x0400 -Global Const $FOF_NORECURSEREPARSE = 0x8000 -Global Const $FOF_NORECURSION = 0x1000 -Global Const $FOF_RENAMEONCOLLISION = 0x0008 -Global Const $FOF_SILENT = 0x0004 -Global Const $FOF_SIMPLEPROGRESS = 0x0100 -Global Const $FOF_WANTMAPPINGHANDLE = 0x0020 -Global Const $FOF_WANTNUKEWARNING = 0x4000 -Global Const $FOF_NO_UI = BitOR($FOF_NOCONFIRMATION, $FOF_NOCONFIRMMKDIR, $FOF_NOERRORUI, $FOF_SILENT) - -; _WinAPI_ShellGetFileInfo() -Global Const $SHGFI_ADDOVERLAYS = 0x00000020 -Global Const $SHGFI_ATTR_SPECIFIED = 0x00020000 -Global Const $SHGFI_ATTRIBUTES = 0x00000800 -Global Const $SHGFI_DISPLAYNAME = 0x00000200 -Global Const $SHGFI_EXETYPE = 0x00002000 -Global Const $SHGFI_ICON = 0x00000100 -Global Const $SHGFI_ICONLOCATION = 0x00001000 -Global Const $SHGFI_LARGEICON = 0x00000000 -Global Const $SHGFI_LINKOVERLAY = 0x00008000 -Global Const $SHGFI_OPENICON = 0x00000002 -Global Const $SHGFI_OVERLAYINDEX = 0x00000040 -Global Const $SHGFI_PIDL = 0x00000008 -Global Const $SHGFI_SELECTED = 0x00010000 -Global Const $SHGFI_SHELLICONSIZE = 0x00000004 -Global Const $SHGFI_SMALLICON = 0x00000001 -Global Const $SHGFI_SYSICONINDEX = 0x00004000 -Global Const $SHGFI_TYPENAME = 0x00000400 -Global Const $SHGFI_USEFILEATTRIBUTES = 0x00000010 - -Global Const $SFGAO_CANCOPY = 0x00000001 -Global Const $SFGAO_CANMOVE = 0x00000002 -Global Const $SFGAO_CANLINK = 0x00000004 -Global Const $SFGAO_STORAGE = 0x00000008 -Global Const $SFGAO_CANRENAME = 0x00000010 -Global Const $SFGAO_CANDELETE = 0x00000020 -Global Const $SFGAO_HASPROPSHEET = 0x00000040 -Global Const $SFGAO_DROPTARGET = 0x00000100 -Global Const $SFGAO_CAPABILITYMASK = BitOR($SFGAO_CANCOPY, $SFGAO_CANMOVE, $SFGAO_CANLINK, $SFGAO_CANRENAME, $SFGAO_CANDELETE, $SFGAO_HASPROPSHEET, $SFGAO_DROPTARGET) -Global Const $SFGAO_SYSTEM = 0x00001000 -Global Const $SFGAO_ENCRYPTED = 0x00002000 -Global Const $SFGAO_ISSLOW = 0x00004000 -Global Const $SFGAO_GHOSTED = 0x00008000 -Global Const $SFGAO_LINK = 0x00010000 -Global Const $SFGAO_SHARE = 0x00020000 -Global Const $SFGAO_READONLY = 0x00040000 -Global Const $SFGAO_HIDDEN = 0x00080000 -Global Const $SFGAO_DISPLAYATTRMASK = BitOR($SFGAO_ISSLOW, $SFGAO_GHOSTED, $SFGAO_LINK, $SFGAO_SHARE, $SFGAO_READONLY, $SFGAO_HIDDEN) -Global Const $SFGAO_NONENUMERATED = 0x00100000 -Global Const $SFGAO_NEWCONTENT = 0x00200000 -Global Const $SFGAO_STREAM = 0x00400000 -Global Const $SFGAO_STORAGEANCESTOR = 0x00800000 -Global Const $SFGAO_VALIDATE = 0x01000000 -Global Const $SFGAO_REMOVABLE = 0x02000000 -Global Const $SFGAO_COMPRESSED = 0x04000000 -Global Const $SFGAO_BROWSABLE = 0x08000000 -Global Const $SFGAO_FILESYSANCESTOR = 0x10000000 -Global Const $SFGAO_FOLDER = 0x20000000 -Global Const $SFGAO_FILESYSTEM = 0x40000000 -Global Const $SFGAO_STORAGECAPMASK = BitOR($SFGAO_STORAGE, $SFGAO_LINK, $SFGAO_READONLY, $SFGAO_STREAM, $SFGAO_STORAGEANCESTOR, $SFGAO_FILESYSANCESTOR, $SFGAO_FOLDER, $SFGAO_FILESYSTEM) -Global Const $SFGAO_HASSUBFOLDER = 0x80000000 -Global Const $SFGAO_CONTENTSMASK = $SFGAO_HASSUBFOLDER -Global Const $SFGAO_PKEYSFGAOMASK = BitOR($SFGAO_ISSLOW, $SFGAO_READONLY, $SFGAO_HASSUBFOLDER, $SFGAO_VALIDATE) - -; _WinAPI_ShellGetIconOverlayIndex() -Global Const $IDO_SHGIOI_DEFAULT = 0x0FFFFFFC -Global Const $IDO_SHGIOI_LINK = 0x0FFFFFFE -Global Const $IDO_SHGIOI_SHARE = 0x0FFFFFFF -Global Const $IDO_SHGIOI_SLOWFILE = 0x0FFFFFFD - -; _WinAPI_ShellGetSetFolderCustomSettings() -Global Const $FCSM_VIEWID = 0x0001 -Global Const $FCSM_WEBVIEWTEMPLATE = 0x0002 -Global Const $FCSM_INFOTIP = 0x0004 -Global Const $FCSM_CLSID = 0x0008 -Global Const $FCSM_ICONFILE = 0x0010 -Global Const $FCSM_LOGO = 0x0020 -Global Const $FCSM_FLAGS = 0x0040 - -Global Const $FCS_READ = 0x0001 -Global Const $FCS_FORCEWRITE = 0x0002 -Global Const $FCS_WRITE = BitOR($FCS_READ, $FCS_FORCEWRITE) - -; _WinAPI_ShellGetSettings(), _WinAPI_ShellSetSettings() -Global Const $SSF_AUTOCHECKSELECT = 0x00800000 -Global Const $SSF_DESKTOPHTML = 0x00000200 -Global Const $SSF_DONTPRETTYPATH = 0x00000800 -Global Const $SSF_DOUBLECLICKINWEBVIEW = 0x00000080 -Global Const $SSF_HIDEICONS = 0x00004000 -Global Const $SSF_ICONSONLY = 0x01000000 -Global Const $SSF_MAPNETDRVBUTTON = 0x00001000 -Global Const $SSF_NOCONFIRMRECYCLE = 0x00008000 -Global Const $SSF_NONETCRAWLING = 0x00100000 -Global Const $SSF_SEPPROCESS = 0x00080000 -Global Const $SSF_SHOWALLOBJECTS = 0x00000001 -Global Const $SSF_SHOWCOMPCOLOR = 0x00000008 -Global Const $SSF_SHOWEXTENSIONS = 0x00000002 -Global Const $SSF_SHOWINFOTIP = 0x00002000 -Global Const $SSF_SHOWSUPERHIDDEN = 0x00040000 -Global Const $SSF_SHOWSYSFILES = 0x00000020 -Global Const $SSF_SHOWTYPEOVERLAY = 0x02000000 -Global Const $SSF_STARTPANELON = 0x00200000 -Global Const $SSF_WIN95CLASSIC = 0x00000400 -Global Const $SSF_WEBVIEW = 0x00020000 - -; _WinAPI_ShellGetSpecialFolderPath() -Global Const $CSIDL_ADMINTOOLS = 0x0030 -Global Const $CSIDL_ALTSTARTUP = 0x001D -Global Const $CSIDL_APPDATA = 0x001A -Global Const $CSIDL_BITBUCKET = 0x000A -Global Const $CSIDL_CDBURN_AREA = 0x003B -Global Const $CSIDL_COMMON_ADMINTOOLS = 0x002F -Global Const $CSIDL_COMMON_ALTSTARTUP = 0x001E -Global Const $CSIDL_COMMON_APPDATA = 0x0023 -Global Const $CSIDL_COMMON_DESKTOPDIRECTORY = 0x0019 -Global Const $CSIDL_COMMON_DOCUMENTS = 0x002E -Global Const $CSIDL_COMMON_FAVORITES = 0x001F -Global Const $CSIDL_COMMON_MUSIC = 0x0035 -Global Const $CSIDL_COMMON_PICTURES = 0x0036 -Global Const $CSIDL_COMMON_PROGRAMS = 0x0017 -Global Const $CSIDL_COMMON_STARTMENU = 0x0016 -Global Const $CSIDL_COMMON_STARTUP = 0x0018 -Global Const $CSIDL_COMMON_TEMPLATES = 0x002D -Global Const $CSIDL_COMMON_VIDEO = 0x0037 -Global Const $CSIDL_COMPUTERSNEARME = 0x003D -Global Const $CSIDL_CONNECTIONS = 0x0031 -Global Const $CSIDL_CONTROLS = 0x0003 -Global Const $CSIDL_COOKIES = 0x0021 -Global Const $CSIDL_DESKTOP = 0x0000 -Global Const $CSIDL_DESKTOPDIRECTORY = 0x0010 -Global Const $CSIDL_DRIVES = 0x0011 -Global Const $CSIDL_FAVORITES = 0x0006 -Global Const $CSIDL_FONTS = 0x0014 -Global Const $CSIDL_INTERNET_CACHE = 0x0020 -Global Const $CSIDL_HISTORY = 0x0022 -Global Const $CSIDL_LOCAL_APPDATA = 0x001C -Global Const $CSIDL_MYMUSIC = 0x000D -Global Const $CSIDL_MYPICTURES = 0x0027 -Global Const $CSIDL_MYVIDEO = 0x000E -Global Const $CSIDL_NETHOOD = 0x0013 -Global Const $CSIDL_PERSONAL = 0x0005 -Global Const $CSIDL_PRINTERS = 0x0004 -Global Const $CSIDL_PRINTHOOD = 0x001B -Global Const $CSIDL_PROFILE = 0x0028 -Global Const $CSIDL_PROGRAM_FILES = 0x0026 -Global Const $CSIDL_PROGRAM_FILES_COMMON = 0x002B -Global Const $CSIDL_PROGRAM_FILES_COMMONX86 = 0x002C -Global Const $CSIDL_PROGRAM_FILESX86 = 0x002A -Global Const $CSIDL_PROGRAMS = 0x0002 -Global Const $CSIDL_RECENT = 0x0008 -Global Const $CSIDL_SENDTO = 0x0009 -Global Const $CSIDL_STARTMENU = 0x000B -Global Const $CSIDL_STARTUP = 0x0007 -Global Const $CSIDL_SYSTEM = 0x0025 -Global Const $CSIDL_SYSTEMX86 = 0x0029 -Global Const $CSIDL_TEMPLATES = 0x0015 -Global Const $CSIDL_WINDOWS = 0x0024 - -; _WinAPI_ShellGetStockIconInfo() -Global Const $SIID_DOCNOASSOC = 0 -Global Const $SIID_DOCASSOC = 1 -Global Const $SIID_APPLICATION = 2 -Global Const $SIID_FOLDER = 3 -Global Const $SIID_FOLDEROPEN = 4 -Global Const $SIID_DRIVE525 = 5 -Global Const $SIID_DRIVE35 = 6 -Global Const $SIID_DRIVEREMOVE = 7 -Global Const $SIID_DRIVEFIXED = 8 -Global Const $SIID_DRIVENET = 9 -Global Const $SIID_DRIVENETDISABLED = 10 -Global Const $SIID_DRIVECD = 11 -Global Const $SIID_DRIVERAM = 12 -Global Const $SIID_WORLD = 13 -Global Const $SIID_SERVER = 15 -Global Const $SIID_PRINTER = 16 -Global Const $SIID_MYNETWORK = 17 -Global Const $SIID_FIND = 22 -Global Const $SIID_HELP = 23 -Global Const $SIID_SHARE = 28 -Global Const $SIID_LINK = 29 -Global Const $SIID_SLOWFILE = 30 -Global Const $SIID_RECYCLER = 31 -Global Const $SIID_RECYCLERFULL = 32 -Global Const $SIID_MEDIACDAUDIO = 40 -Global Const $SIID_LOCK = 47 -Global Const $SIID_AUTOLIST = 49 -Global Const $SIID_PRINTERNET = 50 -Global Const $SIID_SERVERSHARE = 51 -Global Const $SIID_PRINTERFAX = 52 -Global Const $SIID_PRINTERFAXNET = 53 -Global Const $SIID_PRINTERFILE = 54 -Global Const $SIID_STACK = 55 -Global Const $SIID_MEDIASVCD = 56 -Global Const $SIID_STUFFEDFOLDER = 57 -Global Const $SIID_DRIVEUNKNOWN = 58 -Global Const $SIID_DRIVEDVD = 59 -Global Const $SIID_MEDIADVD = 60 -Global Const $SIID_MEDIADVDRAM = 61 -Global Const $SIID_MEDIADVDRW = 62 -Global Const $SIID_MEDIADVDR = 63 -Global Const $SIID_MEDIADVDROM = 64 -Global Const $SIID_MEDIACDAUDIOPLUS = 65 -Global Const $SIID_MEDIACDRW = 66 -Global Const $SIID_MEDIACDR = 67 -Global Const $SIID_MEDIACDBURN = 68 -Global Const $SIID_MEDIABLANKCD = 69 -Global Const $SIID_MEDIACDROM = 70 -Global Const $SIID_AUDIOFILES = 71 -Global Const $SIID_IMAGEFILES = 72 -Global Const $SIID_VIDEOFILES = 73 -Global Const $SIID_MIXEDFILES = 74 -Global Const $SIID_FOLDERBACK = 75 -Global Const $SIID_FOLDERFRONT = 76 -Global Const $SIID_SHIELD = 77 -Global Const $SIID_WARNING = 78 -Global Const $SIID_INFO = 79 -Global Const $SIID_ERROR = 80 -Global Const $SIID_KEY = 81 -Global Const $SIID_SOFTWARE = 82 -Global Const $SIID_RENAME = 83 -Global Const $SIID_DELETE = 84 -Global Const $SIID_MEDIAAUDIODVD = 85 -Global Const $SIID_MEDIAMOVIEDVD = 86 -Global Const $SIID_MEDIAENHANCEDCD = 87 -Global Const $SIID_MEDIAENHANCEDDVD = 88 -Global Const $SIID_MEDIAHDDVD = 89 -Global Const $SIID_MEDIABLURAY = 90 -Global Const $SIID_MEDIAVCD = 91 -Global Const $SIID_MEDIADVDPLUSR = 92 -Global Const $SIID_MEDIADVDPLUSRW = 93 -Global Const $SIID_DESKTOPPC = 94 -Global Const $SIID_MOBILEPC = 95 -Global Const $SIID_USERS = 96 -Global Const $SIID_MEDIASMARTMEDIA = 97 -Global Const $SIID_MEDIACOMPACTFLASH = 98 -Global Const $SIID_DEVICECELLPHONE = 99 -Global Const $SIID_DEVICECAMERA = 100 -Global Const $SIID_DEVICEVIDEOCAMERA = 101 -Global Const $SIID_DEVICEAUDIOPLAYER = 102 -Global Const $SIID_NETWORKCONNECT = 103 -Global Const $SIID_INTERNET = 104 -Global Const $SIID_ZIPFILE = 105 -Global Const $SIID_SETTINGS = 106 -Global Const $SIID_DRIVEHDDVD = 132 -Global Const $SIID_DRIVEBD = 133 -Global Const $SIID_MEDIAHDDVDROM = 134 -Global Const $SIID_MEDIAHDDVDR = 135 -Global Const $SIID_MEDIAHDDVDRAM = 136 -Global Const $SIID_MEDIABDROM = 137 -Global Const $SIID_MEDIABDR = 138 -Global Const $SIID_MEDIABDRE = 139 -Global Const $SIID_CLUSTEREDDRIVE = 140 -Global Const $SIID_MAX_ICONS = 174 - -Global Const $SHGSI_ICONLOCATION = 0 -Global Const $SHGSI_ICON = $SHGFI_ICON -Global Const $SHGSI_SYSICONINDEX = $SHGFI_SYSICONINDEX -Global Const $SHGSI_LINKOVERLAY = $SHGFI_LINKOVERLAY -Global Const $SHGSI_SELECTED = $SHGFI_SELECTED -Global Const $SHGSI_LARGEICON = $SHGFI_LARGEICON -Global Const $SHGSI_SMALLICON = $SHGFI_SMALLICON -Global Const $SHGSI_SHELLICONSIZE = $SHGFI_SHELLICONSIZE - -; _WinAPI_ShellNotifyIcon() -Global Const $NIM_ADD = 0x00 -Global Const $NIM_MODIFY = 0x01 -Global Const $NIM_DELETE = 0x02 -Global Const $NIM_SETFOCUS = 0x03 -Global Const $NIM_SETVERSION = 0x04 - -Global Const $NIF_MESSAGE = 0x01 -Global Const $NIF_ICON = 0x02 -Global Const $NIF_TIP = 0x04 -Global Const $NIF_STATE = 0x08 -Global Const $NIF_INFO = 0x10 -Global Const $NIF_GUID = 0x20 -Global Const $NIF_REALTIME = 0x40 -Global Const $NIF_SHOWTIP = 0x80 - -Global Const $NIS_HIDDEN = 0x01 -Global Const $NIS_SHAREDICON = 0x02 - -Global Const $NIIF_NONE = 0x00 -Global Const $NIIF_INFO = 0x01 -Global Const $NIIF_WARNING = 0x02 -Global Const $NIIF_ERROR = 0x03 -Global Const $NIIF_USER = 0x04 -Global Const $NIIF_NOSOUND = 0x10 -Global Const $NIIF_LARGE_ICON = 0x10 -Global Const $NIIF_RESPECT_QUIET_TIME = 0x80 -Global Const $NIIF_ICON_MASK = 0x0F - -; _WinAPI_ShellObjectProperties() -Global Const $SHOP_PRINTERNAME = 1 -Global Const $SHOP_FILEPATH = 2 -Global Const $SHOP_VOLUMEGUID = 4 - -; _WinAPI_ShellOpenFolderAndSelectItems() -Global Const $OFASI_EDIT = 0x01 -Global Const $OFASI_OPENDESKTOP = 0x02 - -; _WinAPI_ShellQueryUserNotificationState() -Global Const $QUNS_NOT_PRESENT = 1 -Global Const $QUNS_BUSY = 2 -Global Const $QUNS_RUNNING_D3D_FULL_SCREEN = 3 -Global Const $QUNS_PRESENTATION_MODE = 4 -Global Const $QUNS_ACCEPTS_NOTIFICATIONS = 5 -Global Const $QUNS_QUIET_TIME = 6 - -; _WinAPI_ShellRestricted() -Global Const $REST_NORUN = 1 -Global Const $REST_NOCLOSE = 2 -Global Const $REST_NOSAVESET = 3 -Global Const $REST_NOFILEMENU = 4 -Global Const $REST_NOSETFOLDERS = 5 -Global Const $REST_NOSETTASKBAR = 6 -Global Const $REST_NODESKTOP = 7 -Global Const $REST_NOFIND = 8 -Global Const $REST_NODRIVES = 9 -Global Const $REST_NODRIVEAUTORUN = 10 -Global Const $REST_NODRIVETYPEAUTORUN = 11 -Global Const $REST_NONETHOOD = 12 -Global Const $REST_STARTBANNER = 13 -Global Const $REST_RESTRICTRUN = 14 -Global Const $REST_NOPRINTERTABS = 15 -Global Const $REST_NOPRINTERDELETE = 16 -Global Const $REST_NOPRINTERADD = 17 -Global Const $REST_NOSTARTMENUSUBFOLDERS = 18 -Global Const $REST_MYDOCSONNET = 19 -Global Const $REST_NOEXITTODOS = 20 -Global Const $REST_ENFORCESHELLEXTSECURITY = 21 -Global Const $REST_LINKRESOLVEIGNORELINKINFO = 22 -Global Const $REST_NOCOMMONGROUPS = 23 -Global Const $REST_SEPARATEDESKTOPPROCESS = 24 -Global Const $REST_NOWEB = 25 -Global Const $REST_NOTRAYCONTEXTMENU = 26 -Global Const $REST_NOVIEWCONTEXTMENU = 27 -Global Const $REST_NONETCONNECTDISCONNECT = 28 -Global Const $REST_STARTMENULOGOFF = 29 -Global Const $REST_NOSETTINGSASSIST = 30 -Global Const $REST_NOINTERNETICON = 31 -Global Const $REST_NORECENTDOCSHISTORY = 32 -Global Const $REST_NORECENTDOCSMENU = 33 -Global Const $REST_NOACTIVEDESKTOP = 34 -Global Const $REST_NOACTIVEDESKTOPCHANGES = 35 -Global Const $REST_NOFAVORITESMENU = 36 -Global Const $REST_CLEARRECENTDOCSONEXIT = 37 -Global Const $REST_CLASSICSHELL = 38 -Global Const $REST_NOCUSTOMIZEWEBVIEW = 39 -Global Const $REST_NOHTMLWALLPAPER = 40 -Global Const $REST_NOCHANGINGWALLPAPER = 41 -Global Const $REST_NODESKCOMP = 42 -Global Const $REST_NOADDDESKCOMP = 43 -Global Const $REST_NODELDESKCOMP = 44 -Global Const $REST_NOCLOSEDESKCOMP = 45 -Global Const $REST_NOCLOSE_DRAGDROPBAND = 46 -Global Const $REST_NOMOVINGBAND = 47 -Global Const $REST_NOEDITDESKCOMP = 48 -Global Const $REST_NORESOLVESEARCH = 49 -Global Const $REST_NORESOLVETRACK = 50 -Global Const $REST_FORCECOPYACLWITHFILE = 51 -Global Const $REST_NOLOGO3CHANNELNOTIFY = 52 -Global Const $REST_NOFORGETSOFTWAREUPDATE = 53 -Global Const $REST_NOSETACTIVEDESKTOP = 54 -Global Const $REST_NOUPDATEWINDOWS = 55 -Global Const $REST_NOCHANGESTARMENU = 56 -Global Const $REST_NOFOLDEROPTIONS = 57 -Global Const $REST_HASFINDCOMPUTERS = 58 -Global Const $REST_INTELLIMENUS = 59 -Global Const $REST_RUNDLGMEMCHECKBOX = 60 -Global Const $REST_ARP_ShowPostSetup = 61 -Global Const $REST_NOCSC = 62 -Global Const $REST_NOCONTROLPANEL = 63 -Global Const $REST_ENUMWORKGROUP = 64 -Global Const $REST_ARP_NOARP = 65 -Global Const $REST_ARP_NOREMOVEPAGE = 66 -Global Const $REST_ARP_NOADDPAGE = 67 -Global Const $REST_ARP_NOWINSETUPPAGE = 68 -Global Const $REST_GREYMSIADS = 69 -Global Const $REST_NOCHANGEMAPPEDDRIVELABEL = 70 -Global Const $REST_NOCHANGEMAPPEDDRIVECOMMENT = 71 -Global Const $REST_MAXRECENTDOCS = 72 -Global Const $REST_NONETWORKCONNECTIONS = 73 -Global Const $REST_FORCESTARTMENULOGOFF = 74 -Global Const $REST_NOWEBVIEW = 75 -Global Const $REST_NOCUSTOMIZETHISFOLDER = 76 -Global Const $REST_NOENCRYPTION = 77 -Global Const $REST_DONTSHOWSUPERHIDDEN = 78 -Global Const $REST_NOSHELLSEARCHBUTTON = 79 -Global Const $REST_NOHARDWARETAB = 80 -Global Const $REST_NORUNASINSTALLPROMPT = 81 -Global Const $REST_PROMPTRUNASINSTALLNETPATH = 82 -Global Const $REST_NOMANAGEMYCOMPUTERVERB = 83 -Global Const $REST_NORECENTDOCSNETHOOD = 84 -Global Const $REST_DISALLOWRUN = 85 -Global Const $REST_NOWELCOMESCREEN = 86 -Global Const $REST_RESTRICTCPL = 87 -Global Const $REST_DISALLOWCPL = 88 -Global Const $REST_NOSMBALLOONTIP = 89 -Global Const $REST_NOSMHELP = 90 -Global Const $REST_NOWINKEYS = 91 -Global Const $REST_NOENCRYPTONMOVE = 92 -Global Const $REST_NOLOCALMACHINERUN = 93 -Global Const $REST_NOCURRENTUSERRUN = 94 -Global Const $REST_NOLOCALMACHINERUNONCE = 95 -Global Const $REST_NOCURRENTUSERRUNONCE = 96 -Global Const $REST_FORCEACTIVEDESKTOPON = 97 -Global Const $REST_NOCOMPUTERSNEARME = 98 -Global Const $REST_NOVIEWONDRIVE = 99 -Global Const $REST_NONETCRAWL = 100 -Global Const $REST_NOSHAREDDOCUMENTS = 101 -Global Const $REST_NOSMMYDOCS = 102 -Global Const $REST_NOSMMYPICS = 103 -Global Const $REST_ALLOWBITBUCKDRIVES = 104 -Global Const $REST_NONLEGACYSHELLMODE = 105 -Global Const $REST_NOCONTROLPANELBARRICADE = 106 -Global Const $REST_NOSTARTPAGE = 107 -Global Const $REST_NOAUTOTRAYNOTIFY = 108 -Global Const $REST_NOTASKGROUPING = 109 -Global Const $REST_NOCDBURNING = 110 -Global Const $REST_MYCOMPNOPROP = 111 -Global Const $REST_MYDOCSNOPROP = 112 -Global Const $REST_NOSTARTPANEL = 113 -Global Const $REST_NODISPLAYAPPEARANCEPAGE = 114 -Global Const $REST_NOTHEMESTAB = 115 -Global Const $REST_NOVISUALSTYLECHOICE = 116 -Global Const $REST_NOSIZECHOICE = 117 -Global Const $REST_NOCOLORCHOICE = 118 -Global Const $REST_SETVISUALSTYLE = 119 -Global Const $REST_STARTRUNNOHOMEPATH = 120 -Global Const $REST_NOUSERNAMEINSTARTPANEL = 121 -Global Const $REST_NOMYCOMPUTERICON = 122 -Global Const $REST_NOSMNETWORKPLACES = 123 -Global Const $REST_NOSMPINNEDLIST = 124 -Global Const $REST_NOSMMYMUSIC = 125 -Global Const $REST_NOSMEJECTPC = 126 -Global Const $REST_NOSMMOREPROGRAMS = 127 -Global Const $REST_NOSMMFUPROGRAMS = 128 -Global Const $REST_NOTRAYITEMSDISPLAY = 129 -Global Const $REST_NOTOOLBARSONTASKBAR = 130 -Global Const $REST_NOSMCONFIGUREPROGRAMS = 131 -Global Const $REST_HIDECLOCK = 132 -Global Const $REST_NOLOWDISKSPACECHECKS = 133 -Global Const $REST_NOENTIRENETWORK = 134 -Global Const $REST_NODESKTOPCLEANUP = 135 -Global Const $REST_BITBUCKNUKEONDELETE = 136 -Global Const $REST_BITBUCKCONFIRMDELETE = 137 -Global Const $REST_BITBUCKNOPROP = 138 -Global Const $REST_NODISPBACKGROUND = 139 -Global Const $REST_NODISPSCREENSAVEPG = 140 -Global Const $REST_NODISPSETTINGSPG = 141 -Global Const $REST_NODISPSCREENSAVEPREVIEW = 142 -Global Const $REST_NODISPLAYCPL = 143 -Global Const $REST_HIDERUNASVERB = 144 -Global Const $REST_NOTHUMBNAILCACHE = 145 -Global Const $REST_NOSTRCMPLOGICAL = 146 -Global Const $REST_NOPUBLISHWIZARD = 147 -Global Const $REST_NOONLINEPRINTSWIZARD = 148 -Global Const $REST_NOWEBSERVICES = 149 -Global Const $REST_ALLOWUNHASHEDWEBVIEW = 150 -Global Const $REST_ALLOWLEGACYWEBVIEW = 151 -Global Const $REST_REVERTWEBVIEWSECURITY = 152 -Global Const $REST_INHERITCONSOLEHANDLES = 153 -Global Const $REST_SORTMAXITEMCOUNT = 154 -Global Const $REST_NOREMOTERECURSIVEEVENTS = 155 -Global Const $REST_NOREMOTECHANGENOTIFY = 156 -Global Const $REST_NOSIMPLENETIDLIST = 157 -Global Const $REST_NOENUMENTIRENETWORK = 158 -Global Const $REST_NODETAILSTHUMBNAILONNETWORK = 159 -Global Const $REST_NOINTERNETOPENWITH = 160 -Global Const $REST_ALLOWLEGACYLMZBEHAVIOR = 161 -Global Const $REST_DONTRETRYBADNETNAME = 162 -Global Const $REST_ALLOWFILECLSIDJUNCTIONS = 163 -Global Const $REST_NOUPNPINSTALL = 164 -Global Const $REST_ARP_DONTGROUPPATCHES = 165 -Global Const $REST_ARP_NOCHOOSEPROGRAMSPAGE = 166 -Global Const $REST_NODISCONNECT = 167 -Global Const $REST_NOSECURITY = 168 -Global Const $REST_NOFILEASSOCIATE = 169 -Global Const $REST_ALLOWCOMMENTTOGGLE = 170 -Global Const $REST_USEDESKTOPINICACHE = 171 - -; _WinAPI_ShellUpdateImage() -Global Const $GIL_DONTCACHE = 0x0010 -Global Const $GIL_NOTFILENAME = 0x0008 -Global Const $GIL_PERCLASS = 0x0004 -Global Const $GIL_PERINSTANCE = 0x0002 -Global Const $GIL_SIMULATEDOC = 0x0001 -Global Const $GIL_SHIELD = 0x0200 -Global Const $GIL_FORCENOSHIELD = 0x0400 - -; _WinAPI_Shell*KnownFolder*() -Global Const $FOLDERID_AddNewPrograms = '{DE61D971-5EBC-4F02-A3A9-6C82895E5C04}' -Global Const $FOLDERID_AdminTools = '{724EF170-A42D-4FEF-9F26-B60E846FBA4F}' -Global Const $FOLDERID_AppUpdates = '{A305CE99-F527-492B-8B1A-7E76FA98D6E4}' -Global Const $FOLDERID_CDBurning = '{9E52AB10-F80D-49DF-ACB8-4330F5687855}' -Global Const $FOLDERID_ChangeRemovePrograms = '{DF7266AC-9274-4867-8D55-3BD661DE872D}' -Global Const $FOLDERID_CommonAdminTools = '{D0384E7D-BAC3-4797-8F14-CBA229B392B5}' -Global Const $FOLDERID_CommonOEMLinks = '{C1BAE2D0-10DF-4334-BEDD-7AA20B227A9D}' -Global Const $FOLDERID_CommonPrograms = '{0139D44E-6AFE-49F2-8690-3DAFCAE6FFB8}' -Global Const $FOLDERID_CommonStartMenu = '{A4115719-D62E-491D-AA7C-E74B8BE3B067}' -Global Const $FOLDERID_CommonStartup = '{82A5EA35-D9CD-47C5-9629-E15D2F714E6E}' -Global Const $FOLDERID_CommonTemplates = '{B94237E7-57AC-4347-9151-B08C6C32D1F7}' -Global Const $FOLDERID_ComputerFolder = '{0AC0837C-BBF8-452A-850D-79D08E667CA7}' -Global Const $FOLDERID_ConflictFolder = '{4BFEFB45-347D-4006-A5BE-AC0CB0567192}' -Global Const $FOLDERID_ConnectionsFolder = '{6F0CD92B-2E97-45D1-88FF-B0D186B8DEDD}' -Global Const $FOLDERID_Contacts = '{56784854-C6CB-462B-8169-88E350ACB882}' -Global Const $FOLDERID_ControlPanelFolder = '{82A74AEB-AEB4-465C-A014-D097EE346D63}' -Global Const $FOLDERID_Cookies = '{2B0F765D-C0E9-4171-908E-08A611B84FF6}' -Global Const $FOLDERID_Desktop = '{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}' -Global Const $FOLDERID_DeviceMetadataStore = '{5CE4A5E9-E4EB-479D-B89F-130C02886155}' -Global Const $FOLDERID_DocumentsLibrary = '{7B0DB17D-9CD2-4A93-9733-46CC89022E7C}' -Global Const $FOLDERID_Downloads = '{374DE290-123F-4565-9164-39C4925E467B}' -Global Const $FOLDERID_Favorites = '{1777F761-68AD-4D8A-87BD-30B759FA33DD}' -Global Const $FOLDERID_Fonts = '{FD228CB7-AE11-4AE3-864C-16F3910AB8FE}' -Global Const $FOLDERID_Games = '{CAC52C1A-B53D-4EDC-92D7-6B2E8AC19434}' -Global Const $FOLDERID_GameTasks = '{054FAE61-4DD8-4787-80B6-090220C4B700}' -Global Const $FOLDERID_History = '{D9DC8A3B-B784-432E-A781-5A1130A75963}' -Global Const $FOLDERID_HomeGroup = '{52528A6B-B9E3-4ADD-B60D-588C2DBA842D}' -Global Const $FOLDERID_ImplicitAppShortcuts = '{BCB5256F-79F6-4CEE-B725-DC34E402FD46}' -Global Const $FOLDERID_InternetCache = '{352481E8-33BE-4251-BA85-6007CAEDCF9D}' -Global Const $FOLDERID_InternetFolder = '{4D9F7874-4E0C-4904-967B-40B0D20C3E4B}' -Global Const $FOLDERID_Libraries = '{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}' -Global Const $FOLDERID_Links = '{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}' -Global Const $FOLDERID_LocalAppData = '{F1B32785-6FBA-4FCF-9D55-7B8E7F157091}' -Global Const $FOLDERID_LocalAppDataLow = '{A520A1A4-1780-4FF6-BD18-167343C5AF16}' -Global Const $FOLDERID_LocalizedResourcesDir = '{2A00375E-224C-49DE-B8D1-440DF7EF3DDC}' -Global Const $FOLDERID_Music = '{4BD8D571-6D19-48D3-BE97-422220080E43}' -Global Const $FOLDERID_MusicLibrary = '{2112AB0A-C86A-4FFE-A368-0DE96E47012E}' -Global Const $FOLDERID_NetHood = '{C5ABBF53-E17F-4121-8900-86626FC2C973}' -Global Const $FOLDERID_NetworkFolder = '{D20BEEC4-5CA8-4905-AE3B-BF251EA09B53}' -Global Const $FOLDERID_OriginalImages = '{2C36C0AA-5812-4B87-BFD0-4CD0DFB19B39}' -Global Const $FOLDERID_PhotoAlbums = '{69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C}' -Global Const $FOLDERID_PicturesLibrary = '{A990AE9F-A03B-4E80-94BC-9912D7504104}' -Global Const $FOLDERID_Pictures = '{33E28130-4E1E-4676-835A-98395C3BC3BB}' -Global Const $FOLDERID_Playlists = '{DE92C1C7-837F-4F69-A3BB-86E631204A23}' -Global Const $FOLDERID_PrintersFolder = '{76FC4E2D-D6AD-4519-A663-37BD56068185}' -Global Const $FOLDERID_PrintHood = '{9274BD8D-CFD1-41C3-B35E-B13F55A758F4}' -Global Const $FOLDERID_Profile = '{5E6C858F-0E22-4760-9AFE-EA3317B67173}' -Global Const $FOLDERID_ProgramData = '{62AB5D82-FDC1-4DC3-A9DD-070D1D495D97}' -Global Const $FOLDERID_ProgramFiles = '{905E63B6-C1BF-494E-B29C-65B732D3D21A}' -Global Const $FOLDERID_ProgramFilesX64 = '{6D809377-6AF0-444B-8957-A3773F02200E}' -Global Const $FOLDERID_ProgramFilesX86 = '{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}' -Global Const $FOLDERID_ProgramFilesCommon = '{F7F1ED05-9F6D-47A2-AAAE-29D317C6F066}' -Global Const $FOLDERID_ProgramFilesCommonX64 = '{6365D5A7-0F0D-45E5-87F6-0DA56B6A4F7D}' -Global Const $FOLDERID_ProgramFilesCommonX86 = '{DE974D24-D9C6-4D3E-BF91-F4455120B917}' -Global Const $FOLDERID_Programs = '{A77F5D77-2E2B-44C3-A6A2-ABA601054A51}' -Global Const $FOLDERID_Public = '{DFDF76A2-C82A-4D63-906A-5644AC457385}' -Global Const $FOLDERID_PublicDesktop = '{C4AA340D-F20F-4863-AFEF-F87EF2E6BA25}' -Global Const $FOLDERID_PublicDocuments = '{ED4824AF-DCE4-45A8-81E2-FC7965083634}' -Global Const $FOLDERID_PublicDownloads = '{3D644C9B-1FB8-4F30-9B45-F670235F79C0}' -Global Const $FOLDERID_PublicGameTasks = '{DEBF2536-E1A8-4C59-B6A2-414586476AEA}' -Global Const $FOLDERID_PublicLibraries = '{48DAF80B-E6CF-4F4E-B800-0E69D84EE384}' -Global Const $FOLDERID_PublicMusic = '{3214FAB5-9757-4298-BB61-92A9DEAA44FF}' -Global Const $FOLDERID_PublicPictures = '{B6EBFB86-6907-413C-9AF7-4FC2ABF07CC5}' -Global Const $FOLDERID_PublicRingtones = '{E555AB60-153B-4D17-9F04-A5FE99FC15EC}' -Global Const $FOLDERID_PublicVideos = '{2400183A-6185-49FB-A2D8-4A392A602BA3}' -Global Const $FOLDERID_QuickLaunch = '{52A4F021-7B75-48A9-9F6B-4B87A210BC8F}' -Global Const $FOLDERID_Recent = '{AE50C081-EBD2-438A-8655-8A092E34987A}' -Global Const $FOLDERID_RecordedTVLibrary = '{1A6FDBA2-F42D-4358-A798-B74D745926C5}' -Global Const $FOLDERID_RecycleBinFolder = '{B7534046-3ECB-4C18-BE4E-64CD4CB7D6AC}' -Global Const $FOLDERID_ResourceDir = '{8AD10C31-2ADB-4296-A8F7-E4701232C972}' -Global Const $FOLDERID_Ringtones = '{C870044B-F49E-4126-A9C3-B52A1FF411E8}' -Global Const $FOLDERID_RoamingAppData = '{3EB685DB-65F9-4CF6-A03A-E3EF65729F3D}' -Global Const $FOLDERID_SampleMusic = '{B250C668-F57D-4EE1-A63C-290EE7D1AA1F}' -Global Const $FOLDERID_SamplePictures = '{C4900540-2379-4C75-844B-64E6FAF8716B}' -Global Const $FOLDERID_SamplePlaylists = '{15CA69B3-30EE-49C1-ACE1-6B5EC372AFB5}' -Global Const $FOLDERID_SampleVideos = '{859EAD94-2E85-48AD-A71A-0969CB56A6CD}' -Global Const $FOLDERID_SavedGames = '{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}' -Global Const $FOLDERID_SavedSearches = '{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}' -Global Const $FOLDERID_SEARCH_CSC = '{EE32E446-31CA-4ABA-814F-A5EBD2FD6D5E}' -Global Const $FOLDERID_SEARCH_MAPI = '{98EC0E18-2098-4D44-8644-66979315A281}' -Global Const $FOLDERID_SearchHome = '{190337D1-B8CA-4121-A639-6D472D16972A}' -Global Const $FOLDERID_SendTo = '{8983036C-27C0-404B-8F08-102D10DCFD74}' -Global Const $FOLDERID_SidebarDefaultParts = '{7B396E54-9EC5-4300-BE0A-2482EBAE1A26}' -Global Const $FOLDERID_SidebarParts = '{A75D362E-50FC-4FB7-AC2C-A8BEAA314493}' -Global Const $FOLDERID_StartMenu = '{625B53C3-AB48-4EC1-BA1F-A1EF4146FC19}' -Global Const $FOLDERID_Startup = '{B97D20BB-F46A-4C97-BA10-5E3608430854}' -Global Const $FOLDERID_SyncManagerFolder = '{43668BF8-C14E-49B2-97C9-747784D784B7}' -Global Const $FOLDERID_SyncResultsFolder = '{289A9A43-BE44-4057-A41B-587A76D7E7F9}' -Global Const $FOLDERID_SyncSetupFolder = '{0F214138-B1D3-4A90-BBA9-27CBC0C5389A}' -Global Const $FOLDERID_System = '{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}' -Global Const $FOLDERID_SystemX86 = '{D65231B0-B2F1-4857-A4CE-A8E7C6EA7D27}' -Global Const $FOLDERID_Templates = '{A63293E8-664E-48DB-A079-DF759E0509F7}' -Global Const $FOLDERID_UserPinned = '{9E3995AB-1F9C-4F13-B827-48B24B6C7174}' -Global Const $FOLDERID_UserProfiles = '{0762D272-C50A-4BB0-A382-697DCD729B80}' -Global Const $FOLDERID_UserProgramFiles = '{5CD7AEE2-2219-4A67-B85D-6C9CE15660CB}' -Global Const $FOLDERID_UserProgramFilesCommon = '{BCBD3057-CA5C-4622-B42D-BC56DB0AE516}' -Global Const $FOLDERID_UsersFiles = '{F3CE0F7C-4901-4ACC-8648-D5D44B04EF8F}' -Global Const $FOLDERID_UsersLibraries = '{A302545D-DEFF-464B-ABE8-61C8648D939B}' -Global Const $FOLDERID_Videos = '{18989B1D-99B5-455B-841C-AB7C74E4DDFC}' -Global Const $FOLDERID_VideosLibrary = '{491E922F-5643-4AF4-A7EB-4E7A138D8174}' -Global Const $FOLDERID_Windows = '{F38BF404-1D43-42F2-9305-67DE0B28FC23}' - -Global Const $KF_FLAG_ALIAS_ONLY = 0x80000000 -Global Const $KF_FLAG_CREATE = 0x00008000 -Global Const $KF_FLAG_DONT_VERIFY = 0x00004000 -Global Const $KF_FLAG_DONT_UNEXPAND = 0x00002000 -Global Const $KF_FLAG_NO_ALIAS = 0x00001000 -Global Const $KF_FLAG_INIT = 0x00000800 -Global Const $KF_FLAG_DEFAULT_PATH = 0x00000400 -Global Const $KF_FLAG_NO_APPCONTAINER_REDIRECTION = 0x00010000 -Global Const $KF_FLAG_NOT_PARENT_RELATIVE = 0x00000200 -Global Const $KF_FLAG_SIMPLE_IDLIST = 0x00000100 -; =============================================================================================================================== diff --git a/build/Include/APISysConstants.au3 b/build/Include/APISysConstants.au3 deleted file mode 100644 index f97ee2ce9..000000000 --- a/build/Include/APISysConstants.au3 +++ /dev/null @@ -1,391 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPISys Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_ActivateKeyboardLayout(), _WinAPI_LoadKeyboardLayout() -Global Const $KLF_ACTIVATE = 0x00000001 -Global Const $KLF_NOTELLSHELL = 0x00000080 -Global Const $KLF_REORDER = 0x00000008 -Global Const $KLF_REPLACELANG = 0x00000010 -Global Const $KLF_RESET = 0x40000000 -Global Const $KLF_SETFORPROCESS = 0x00000100 -Global Const $KLF_SHIFTLOCK = 0x00010000 -Global Const $KLF_SUBSTITUTE_OK = 0x00000002 - -Global Const $HKL_NEXT = 1 -Global Const $HKL_PREV = 0 - -; _WinAPI_AnimateWindow() -Global Const $AW_ACTIVATE = 0x00020000 -Global Const $AW_BLEND = 0x00080000 -Global Const $AW_CENTER = 0x00000010 -Global Const $AW_HIDE = 0x00010000 -Global Const $AW_HOR_NEGATIVE = 0x00000002 -Global Const $AW_HOR_POSITIVE = 0x00000001 -Global Const $AW_SLIDE = 0x00040000 -Global Const $AW_VER_NEGATIVE = 0x00000008 -Global Const $AW_VER_POSITIVE = 0x00000004 - -; _WinAPI_BroadcastSystemMessage() -Global Const $BSF_ALLOWSFW = 0x0080 -Global Const $BSF_FLUSHDISK = 0x0004 -Global Const $BSF_FORCEIFHUNG = 0x0020 -Global Const $BSF_IGNORECURRENTTASK = 0x0002 -Global Const $BSF_NOHANG = 0x0008 -Global Const $BSF_NOTIMEOUTIFNOTHUNG = 0x0040 -Global Const $BSF_POSTMESSAGE = 0x0010 -Global Const $BSF_QUERY = 0x0001 -Global Const $BSF_SENDNOTIFYMESSAGE = 0x0100 - -Global Const $BSM_ALLCOMPONENTS = 0x00 -Global Const $BSM_ALLDESKTOPS = 0x08 -Global Const $BSM_APPLICATIONS = 0x10 -Global Const $BSM_INSTALLABLEDRIVERS = 0x04 -Global Const $BSM_NETDRIVER = 0x02 -Global Const $BSM_VXDS = 0x01 - -; _WinAPI_CascadeWindows(), _WinAPI_TileWindows() -Global Const $MDITILE_HORIZONTAL = 0x01 -Global Const $MDITILE_SKIPDISABLED = 0x02 -Global Const $MDITILE_VERTICAL = 0x00 -Global Const $MDITILE_ZORDER = 0x04 - -; _WinAPI_ChangeWindowMessageFilterEx() -Global Const $MSGFLT_ALLOW = 1 -Global Const $MSGFLT_DISALLOW = 2 -Global Const $MSGFLT_RESET = 0 - -Global Const $MSGFLTINFO_ALLOWED_HIGHER = 3 -Global Const $MSGFLTINFO_ALREADYALLOWED_FORWND = 1 -Global Const $MSGFLTINFO_ALREADYDISALLOWED_FORWND = 2 -Global Const $MSGFLTINFO_NONE = 0 - -; _WinAPI_ChildWindowFromPointEx() -Global Const $CWP_ALL = 0x00 -Global Const $CWP_SKIPINVISIBLE = 0x01 -Global Const $CWP_SKIPDISABLED = 0x02 -Global Const $CWP_SKIPTRANSPARENT = 0x04 - -; _WinAPI_CompressBuffer(), _WinAPI_DecompressBuffer(), _WinAPI_GetCompression(), _WinAPI_SetCompression() -Global Const $COMPRESSION_FORMAT_NONE = 0x0000 -Global Const $COMPRESSION_FORMAT_DEFAULT = 0x0001 -Global Const $COMPRESSION_FORMAT_LZNT1 = 0x0002 -Global Const $COMPRESSION_FORMAT_XPRESS = 0x0003 -Global Const $COMPRESSION_FORMAT_XPRESS_HUFF = 0x0004 - -Global Const $COMPRESSION_ENGINE_STANDARD = 0x0000 -Global Const $COMPRESSION_ENGINE_MAXIMUM = 0x0100 -Global Const $COMPRESSION_ENGINE_HIBER = 0x0200 - -; _WinAPI_CreateWindowStation(), _WinAPI_OpenWindowStation() -Global Const $WINSTA_ACCESSCLIPBOARD = 0x0004 -Global Const $WINSTA_ACCESSGLOBALATOMS = 0x0020 -Global Const $WINSTA_CREATEDESKTOP = 0x0008 -Global Const $WINSTA_ENUMDESKTOPS = 0x0001 -Global Const $WINSTA_ENUMERATE = 0x0100 -Global Const $WINSTA_EXITWINDOWS = 0x0040 -Global Const $WINSTA_READATTRIBUTES = 0x0002 -Global Const $WINSTA_READSCREEN = 0x0200 -Global Const $WINSTA_WRITEATTRIBUTES = 0x0010 -Global Const $WINSTA_ALL_ACCESS = BitOR($WINSTA_ACCESSCLIPBOARD, $WINSTA_ACCESSGLOBALATOMS, $WINSTA_CREATEDESKTOP, $WINSTA_ENUMDESKTOPS, $WINSTA_ENUMERATE, $WINSTA_EXITWINDOWS, $WINSTA_READATTRIBUTES, $WINSTA_READSCREEN, $WINSTA_WRITEATTRIBUTES) - -Global Const $CWF_CREATE_ONLY = 0x01 - -; _WinAPI_GetClassLongEx(), _WinAPI_SetClassLongEx() -Global Const $GCL_CBCLSEXTRA = -20 -Global Const $GCL_CBWNDEXTRA = -18 -Global Const $GCL_HBRBACKGROUND = -10 -Global Const $GCL_HCURSOR = -12 -Global Const $GCL_HICON = -14 -Global Const $GCL_HICONSM = -34 -Global Const $GCL_HMODULE = -16 -Global Const $GCL_MENUNAME = -8 -Global Const $GCL_STYLE = -26 -Global Const $GCL_WNDPROC = -24 - -; _WinAPI_GetCurrentHwProfile() -Global Const $DOCKINFO_DOCKED = 0x02 -Global Const $DOCKINFO_UNDOCKED = 0x01 -Global Const $DOCKINFO_USER_SUPPLIED = 0x04 -Global Const $DOCKINFO_USER_DOCKED = 0x05 -Global Const $DOCKINFO_USER_UNDOCKED = 0x06 - -; _WinAPI_GetGUIThreadInfo() -Global Const $GUI_CARETBLINKING = 0x0001 -Global Const $GUI_INMENUMODE = 0x0004 -Global Const $GUI_INMOVESIZE = 0x0002 -Global Const $GUI_POPUPMENUMODE = 0x0010 -Global Const $GUI_SYSTEMMENUMODE = 0x0008 - -; _WinAPI_GetHandleInformation(), _WinAPI_SetHandleInformation() -Global Const $HANDLE_FLAG_INHERIT = 0x00000001 -Global Const $HANDLE_FLAG_PROTECT_FROM_CLOSE = 0x00000002 - -; _WinAPI_GetModuleHandleEx() -Global Const $GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS = 0x0004 -Global Const $GET_MODULE_HANDLE_EX_FLAG_PIN = 0x0001 -Global Const $GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = 0x0002 -Global Const $GET_MODULE_HANDLE_EX_FLAG_DEFAULT = 0x0000 - -; _WinAPI_GetSystemInfo() -Global Const $PROCESSOR_ARCHITECTURE_AMD64 = 9 -Global Const $PROCESSOR_ARCHITECTURE_IA64 = 6 -Global Const $PROCESSOR_ARCHITECTURE_INTEL = 0 -Global Const $PROCESSOR_ARCHITECTURE_UNKNOWN = 0xFFFF - -Global Const $PROCESSOR_INTEL_386 = 386 -Global Const $PROCESSOR_INTEL_486 = 486 -Global Const $PROCESSOR_INTEL_PENTIUM = 586 -Global Const $PROCESSOR_INTEL_IA64 = 2200 -Global Const $PROCESSOR_AMD_X8664 = 8664 - -; _WinAPI_GetUserObjectInformation(), _WinAPI_SetUserObjectInformation() -Global Const $UOI_FLAGS = 1 -Global Const $UOI_HEAPSIZE = 5 -Global Const $UOI_IO = 6 -Global Const $UOI_NAME = 2 -Global Const $UOI_TYPE = 3 -Global Const $UOI_USER_SID = 4 - -Global Const $DF_ALLOWOTHERACCOUNTHOOK = 0x01 -Global Const $WSF_VISIBLE = 0x01 - -; _WinAPI_GetVersionEx() -Global Const $VER_SUITE_BACKOFFICE = 0x00000004 -Global Const $VER_SUITE_BLADE = 0x00000400 -Global Const $VER_SUITE_COMPUTE_SERVER = 0x00004000 -Global Const $VER_SUITE_DATACENTER = 0x00000080 -Global Const $VER_SUITE_ENTERPRISE = 0x00000002 -Global Const $VER_SUITE_EMBEDDEDNT = 0x00000040 -Global Const $VER_SUITE_PERSONAL = 0x00000200 -Global Const $VER_SUITE_SINGLEUSERTS = 0x00000100 -Global Const $VER_SUITE_SMALLBUSINESS = 0x00000001 -Global Const $VER_SUITE_SMALLBUSINESS_RESTRICTED = 0x00000020 -Global Const $VER_SUITE_STORAGE_SERVER = 0x00002000 -Global Const $VER_SUITE_TERMINAL = 0x00000010 -Global Const $VER_SUITE_WH_SERVER = 0x00008000 - -Global Const $VER_NT_DOMAIN_CONTROLLER = 0x0000002 -Global Const $VER_NT_SERVER = 0x0000003 -Global Const $VER_NT_WORKSTATION = 0x0000001 - -; _WinAPI_GetWindowDisplayAffinity(), _WinAPI_SetWindowDisplayAffinity() -Global Const $WDA_MONITOR = 0x01 -Global Const $WDA_NONE = 0x00 - -; _WinAPI_IsProcessorFeaturePresent() -Global Const $PF_3DNOW_INSTRUCTIONS_AVAILABLE = 7 -Global Const $PF_CHANNELS_ENABLED = 16 -Global Const $PF_COMPARE_EXCHANGE_DOUBLE = 2 -Global Const $PF_COMPARE_EXCHANGE128 = 14 -Global Const $PF_COMPARE64_EXCHANGE128 = 15 -Global Const $PF_FLOATING_POINT_EMULATED = 1 -Global Const $PF_FLOATING_POINT_PRECISION_ERRATA = 0 -Global Const $PF_MMX_INSTRUCTIONS_AVAILABLE = 3 -Global Const $PF_NX_ENABLED = 12 -Global Const $PF_PAE_ENABLED = 9 -Global Const $PF_RDTSC_INSTRUCTION_AVAILABLE = 8 -Global Const $PF_SSE3_INSTRUCTIONS_AVAILABLE = 13 -Global Const $PF_XMMI_INSTRUCTIONS_AVAILABLE = 6 -Global Const $PF_XMMI64_INSTRUCTIONS_AVAILABLE = 10 -Global Const $PF_XSAVE_ENABLED = 17 - -; _WinAPI_Keybd_Event() -Global Const $KEYEVENTF_EXTENDEDKEY = 0x01 -Global Const $KEYEVENTF_KEYUP = 0x02 - -; _WinAPI_LoadIconMetric() -Global Const $LIM_SMALL = 0 -Global Const $LIM_LARGE = 1 - -; _WinAPI_MapVirtualKey() -Global Const $MAPVK_VK_TO_CHAR = 2 -Global Const $MAPVK_VK_TO_VSC = 0 -Global Const $MAPVK_VK_TO_VSC_EX = 4 -Global Const $MAPVK_VSC_TO_VK = 1 -Global Const $MAPVK_VSC_TO_VK_EX = 3 - -; _WinAPI_RegisterHotKey() -Global Const $MOD_ALT = 0x0001 -Global Const $MOD_CONTROL = 0x0002 -Global Const $MOD_NOREPEAT = 0x4000 -Global Const $MOD_SHIFT = 0x0004 -Global Const $MOD_WIN = 0x0008 - -; _WinAPI_RegisterPowerSettingNotification() -Global Const $GUID_ACDC_POWER_SOURCE = '{5D3E9A59-E9D5-4B00-A6BD-FF34FF516548}' -Global Const $GUID_BATTERY_PERCENTAGE_REMAINING = '{A7AD8041-B45A-4CAE-87A3-EECBB468A9E1}' -Global Const $GUID_IDLE_BACKGROUND_TASK = '{515C31D8-F734-163D-A0FD-11A08C91E8F1}' -Global Const $GUID_MONITOR_POWER_ON = '{02731015-4510-4526-99E6-E5A17EBD1AEA}' -Global Const $GUID_POWERSCHEME_PERSONALITY = '{245D8541-3943-4422-B025-13A784F679B7}' -Global Const $GUID_SYSTEM_AWAYMODE = '{98A7F580-01F7-48AA-9C0F-44352C29E5C0}' - -Global Const $GUID_MIN_POWER_SAVINGS = '{8C5E7FDA-E8BF-4A96-9A85-A6E23A8C635C}' -Global Const $GUID_MAX_POWER_SAVINGS = '{A1841308-3541-4FAB-BC81-F71556F20B4A}' -Global Const $GUID_TYPICAL_POWER_SAVINGS = '{381B4222-F694-41F0-9685-FF5BB260DF2E}' - -; _WinAPI_RegisterShellHookWindow() -Global Const $HSHELL_WINDOWCREATED = 1 -Global Const $HSHELL_WINDOWDESTROYED = 2 -Global Const $HSHELL_ACTIVATESHELLWINDOW = 3 -Global Const $HSHELL_WINDOWACTIVATED = 4 -Global Const $HSHELL_GETMINRECT = 5 -Global Const $HSHELL_REDRAW = 6 -Global Const $HSHELL_TASKMAN = 7 -Global Const $HSHELL_LANGUAGE = 8 -Global Const $HSHELL_SYSMENU = 9 -Global Const $HSHELL_ENDTASK = 10 -Global Const $HSHELL_ACCESSIBILITYSTATE = 11 -Global Const $HSHELL_APPCOMMAND = 12 -Global Const $HSHELL_WINDOWREPLACED = 13 -Global Const $HSHELL_WINDOWREPLACING = 14 -Global Const $HSHELL_RUDEAPPACTIVATED = 32772 -Global Const $HSHELL_FLASH = 32774 - -; _WinAPI_SendMessageTimeout() -Global Const $HWND_BROADCAST = 0xFFFF - -Global Const $SMTO_BLOCK = 0x0001 -Global Const $SMTO_NORMAL = 0x0000 -Global Const $SMTO_ABORTIFHUNG = 0x0002 -Global Const $SMTO_NOTIMEOUTIFNOTHUNG = 0x0008 -Global Const $SMTO_ERRORONEXIT = 0x0020 - -; _WinAPI_SetKeyboardLayout() -Global Const $INPUTLANGCHANGE_BACKWARD = 0x0004 -Global Const $INPUTLANGCHANGE_FORWARD = 0x0002 -Global Const $INPUTLANGCHANGE_SYSCHARSET = 0x0001 - -; _WinAPI_SetWinEventHook() -Global Const $EVENT_MIN = 0x00000001 -Global Const $EVENT_SYSTEM_SOUND = 0x00000001 -Global Const $EVENT_SYSTEM_ALERT = 0x00000002 -Global Const $EVENT_SYSTEM_FOREGROUND = 0x00000003 -Global Const $EVENT_SYSTEM_MENUSTART = 0x00000004 -Global Const $EVENT_SYSTEM_MENUEND = 0x00000005 -Global Const $EVENT_SYSTEM_MENUPOPUPSTART = 0x00000006 -Global Const $EVENT_SYSTEM_MENUPOPUPEND = 0x00000007 -Global Const $EVENT_SYSTEM_CAPTURESTART = 0x00000008 -Global Const $EVENT_SYSTEM_CAPTUREEND = 0x00000009 -Global Const $EVENT_SYSTEM_MOVESIZESTART = 0x0000000A -Global Const $EVENT_SYSTEM_MOVESIZEEND = 0x0000000B -Global Const $EVENT_SYSTEM_CONTEXTHELPSTART = 0x0000000C -Global Const $EVENT_SYSTEM_CONTEXTHELPEND = 0x0000000D -Global Const $EVENT_SYSTEM_DRAGDROPSTART = 0x0000000E -Global Const $EVENT_SYSTEM_DRAGDROPEND = 0x0000000F -Global Const $EVENT_SYSTEM_DIALOGSTART = 0x00000010 -Global Const $EVENT_SYSTEM_DIALOGEND = 0x00000011 -Global Const $EVENT_SYSTEM_SCROLLINGSTART = 0x00000012 -Global Const $EVENT_SYSTEM_SCROLLINGEND = 0x00000013 -Global Const $EVENT_SYSTEM_SWITCHSTART = 0x00000014 -Global Const $EVENT_SYSTEM_SWITCHEND = 0x00000015 -Global Const $EVENT_SYSTEM_MINIMIZESTART = 0x00000016 -Global Const $EVENT_SYSTEM_MINIMIZEEND = 0x00000017 -Global Const $EVENT_SYSTEM_DESKTOPSWITCH = 0x00000020 -Global Const $EVENT_OBJECT_CREATE = 0x00008000 -Global Const $EVENT_OBJECT_DESTROY = 0x00008001 -Global Const $EVENT_OBJECT_SHOW = 0x00008002 -Global Const $EVENT_OBJECT_HIDE = 0x00008003 -Global Const $EVENT_OBJECT_REORDER = 0x00008004 -Global Const $EVENT_OBJECT_FOCUS = 0x00008005 -Global Const $EVENT_OBJECT_SELECTION = 0x00008006 -Global Const $EVENT_OBJECT_SELECTIONADD = 0x00008007 -Global Const $EVENT_OBJECT_SELECTIONREMOVE = 0x00008008 -Global Const $EVENT_OBJECT_SELECTIONWITHIN = 0x00008009 -Global Const $EVENT_OBJECT_STATECHANGE = 0x0000800A -Global Const $EVENT_OBJECT_LOCATIONCHANGE = 0x0000800B -Global Const $EVENT_OBJECT_NAMECHANGE = 0x0000800C -Global Const $EVENT_OBJECT_DESCRIPTIONCHANGE = 0x0000800D -Global Const $EVENT_OBJECT_VALUECHANGE = 0x0000800E -Global Const $EVENT_OBJECT_PARENTCHANGE = 0x0000800F -Global Const $EVENT_OBJECT_HELPCHANGE = 0x00008010 -Global Const $EVENT_OBJECT_DEFACTIONCHANGE = 0x00008011 -Global Const $EVENT_OBJECT_ACCELERATORCHANGE = 0x00008012 -Global Const $EVENT_OBJECT_INVOKED = 0x00008013 -Global Const $EVENT_OBJECT_TEXTSELECTIONCHANGED = 0x00008014 -Global Const $EVENT_OBJECT_CONTENTSCROLLED = 0x00008015 -Global Const $EVENT_MAX = 0x7FFFFFFF - -Global Const $WINEVENT_INCONTEXT = 0x04 -Global Const $WINEVENT_OUTOFCONTEXT = 0x00 -Global Const $WINEVENT_SKIPOWNPROCESS = 0x02 -Global Const $WINEVENT_SKIPOWNTHREAD = 0x01 - -; _WinAPI_TrackMouseEvent() -Global Const $TME_CANCEL = 0x80000000 -Global Const $TME_HOVER = 0x00000001 -Global Const $TME_LEAVE = 0x00000002 -Global Const $TME_NONCLIENT = 0x00000010 -Global Const $TME_QUERY = 0x40000000 - -; _WinAPI_*Desktop*() -Global Const $DESKTOP_CREATEMENU = 0x0004 -Global Const $DESKTOP_CREATEWINDOW = 0x0002 -Global Const $DESKTOP_ENUMERATE = 0x0040 -Global Const $DESKTOP_HOOKCONTROL = 0x0008 -Global Const $DESKTOP_JOURNALPLAYBACK = 0x0020 -Global Const $DESKTOP_JOURNALRECORD = 0x0010 -Global Const $DESKTOP_READOBJECTS = 0x0001 -Global Const $DESKTOP_SWITCHDESKTOP = 0x0100 -Global Const $DESKTOP_WRITEOBJECTS = 0x0080 -Global Const $DESKTOP_ALL_ACCESS = BitOR($DESKTOP_CREATEMENU, $DESKTOP_CREATEWINDOW, $DESKTOP_ENUMERATE, $DESKTOP_HOOKCONTROL, $DESKTOP_JOURNALPLAYBACK, $DESKTOP_JOURNALRECORD, $DESKTOP_READOBJECTS, $DESKTOP_SWITCHDESKTOP, $DESKTOP_WRITEOBJECTS) - -; _WinAPI_*RowInput*() -Global Const $RIDEV_APPKEYS = 0x00000400 -Global Const $RIDEV_CAPTUREMOUSE = 0x00000200 -Global Const $RIDEV_DEVNOTIFY = 0x00002000 -Global Const $RIDEV_EXCLUDE = 0x00000010 -Global Const $RIDEV_EXINPUTSINK = 0x00001000 -Global Const $RIDEV_INPUTSINK = 0x00000100 -Global Const $RIDEV_NOHOTKEYS = 0x00000200 -Global Const $RIDEV_NOLEGACY = 0x00000030 -Global Const $RIDEV_PAGEONLY = 0x00000020 -Global Const $RIDEV_REMOVE = 0x00000001 - -Global Const $RID_HEADER = 0x10000005 -Global Const $RID_INPUT = 0x10000003 - -Global Const $RIM_TYPEHID = 2 -Global Const $RIM_TYPEKEYBOARD = 1 -Global Const $RIM_TYPEMOUSE = 0 - -Global Const $RIDI_DEVICENAME = 0x20000007 -Global Const $RIDI_DEVICEINFO = 0x2000000B -Global Const $RIDI_PREPARSEDDATA = 0x20000005 - -Global Const $MOUSE_ATTRIBUTES_CHANGED = 0x04 -Global Const $MOUSE_MOVE_ABSOLUTE = 0x01 -Global Const $MOUSE_MOVE_RELATIVE = 0x00 -Global Const $MOUSE_VIRTUAL_DESKTOP = 0x02 - -Global Const $RI_MOUSE_LEFT_BUTTON_DOWN = 0x0001 -Global Const $RI_MOUSE_LEFT_BUTTON_UP = 0x0002 -Global Const $RI_MOUSE_MIDDLE_BUTTON_DOWN = 0x0010 -Global Const $RI_MOUSE_MIDDLE_BUTTON_UP = 0x0020 -Global Const $RI_MOUSE_RIGHT_BUTTON_DOWN = 0x0004 -Global Const $RI_MOUSE_RIGHT_BUTTON_UP = 0x0008 -Global Const $RI_MOUSE_BUTTON_1_DOWN = $RI_MOUSE_LEFT_BUTTON_DOWN -Global Const $RI_MOUSE_BUTTON_1_UP = $RI_MOUSE_LEFT_BUTTON_UP -Global Const $RI_MOUSE_BUTTON_2_DOWN = $RI_MOUSE_RIGHT_BUTTON_DOWN -Global Const $RI_MOUSE_BUTTON_2_UP = $RI_MOUSE_RIGHT_BUTTON_UP -Global Const $RI_MOUSE_BUTTON_3_DOWN = $RI_MOUSE_MIDDLE_BUTTON_DOWN -Global Const $RI_MOUSE_BUTTON_3_UP = $RI_MOUSE_MIDDLE_BUTTON_UP -Global Const $RI_MOUSE_BUTTON_4_DOWN = 0x0040 -Global Const $RI_MOUSE_BUTTON_4_UP = 0x0080 -Global Const $RI_MOUSE_BUTTON_5_DOWN = 0x0100 -Global Const $RI_MOUSE_BUTTON_5_UP = 0x0200 -Global Const $RI_MOUSE_WHEEL = 0x0400 - -Global Const $RI_KEY_BREAK = 1 -Global Const $RI_KEY_E0 = 2 -Global Const $RI_KEY_E1 = 4 -Global Const $RI_KEY_MAKE = 0 -; =============================================================================================================================== diff --git a/build/Include/APIThemeConstants.au3 b/build/Include/APIThemeConstants.au3 deleted file mode 100644 index e6d742c59..000000000 --- a/build/Include/APIThemeConstants.au3 +++ /dev/null @@ -1,330 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPITheme Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_BeginBufferedPaint() -Global Const $BPBF_COMPATIBLEBITMAP = 0 -Global Const $BPBF_DIB = 1 -Global Const $BPBF_TOPDOWNDIB = 2 -Global Const $BPBF_TOPDOWNMONODIB = 3 - -Global Const $BPPF_ERASE = 0x01 -Global Const $BPPF_NOCLIP = 0x02 -Global Const $BPPF_NONCLIENT = 0x04 - -; _WinAPI_DrawThemeTextEx() -Global Const $DTT_TEXTCOLOR = 0x00000001 -Global Const $DTT_BORDERCOLOR = 0x00000002 -Global Const $DTT_SHADOWCOLOR = 0x00000004 -Global Const $DTT_SHADOWTYPE = 0x00000008 -Global Const $DTT_SHADOWOFFSET = 0x00000010 -Global Const $DTT_BORDERSIZE = 0x00000020 -Global Const $DTT_FONTPROP = 0x00000040 -Global Const $DTT_COLORPROP = 0x00000080 -Global Const $DTT_STATEID = 0x00000100 -Global Const $DTT_CALCRECT = 0x00000200 -Global Const $DTT_APPLYOVERLAY = 0x00000400 -Global Const $DTT_GLOWSIZE = 0x00000800 -Global Const $DTT_CALLBACK = 0x00001000 -Global Const $DTT_COMPOSITED = 0x00002000 -Global Const $DTT_VALIDBITS = BitOR($DTT_TEXTCOLOR, $DTT_BORDERCOLOR, $DTT_SHADOWCOLOR, $DTT_SHADOWTYPE, $DTT_SHADOWOFFSET, $DTT_BORDERSIZE, $DTT_FONTPROP, $DTT_COLORPROP, $DTT_STATEID, $DTT_CALCRECT, $DTT_APPLYOVERLAY, $DTT_GLOWSIZE, $DTT_COMPOSITED) - -Global Const $TST_NONE = 0 -Global Const $TST_SINGLE = 1 -Global Const $TST_CONTINUOUS = 2 - -; _WinAPI_GetThemeAppProperties(), _WinAPI_SetThemeAppProperties() -Global Const $STAP_ALLOW_NONCLIENT = 0x01 -Global Const $STAP_ALLOW_CONTROLS = 0x02 -Global Const $STAP_ALLOW_WEBCONTENT = 0x04 - -; _WinAPI_GetThemeBitmap() -Global Const $GBF_DIRECT = 0x01 -Global Const $GBF_COPY = 0x02 -Global Const $GBF_VALIDBITS = BitOR($GBF_DIRECT, $GBF_COPY) - -; _WinAPI_GetThemeDocumentationProperty() -Global Const $SZ_THDOCPROP_AUTHOR = 'Author' -Global Const $SZ_THDOCPROP_CANONICALNAME = 'ThemeName' -Global Const $SZ_THDOCPROP_DISPLAYNAME = 'DisplayName' -Global Const $SZ_THDOCPROP_TOOLTIP = 'ToolTip' - -; _WinAPI_GetThemePartSize() -Global Const $TS_MIN = 0 -Global Const $TS_TRUE = 1 -Global Const $TS_DRAW = 2 - -; _WinAPI_GetThemePropertyOrigin() -Global Const $PO_CLASS = 2 -Global Const $PO_GLOBAL = 3 -Global Const $PO_NOTFOUND = 4 -Global Const $PO_PART = 1 -Global Const $PO_STATE = 0 - -; _WinAPI_*Theme*() -Global Const $TMT_BOOL = 203 -Global Const $TMT_COLOR = 204 -Global Const $TMT_DIBDATA = 2 -Global Const $TMT_DISKSTREAM = 213 -Global Const $TMT_ENUM = 200 -Global Const $TMT_FILENAME = 206 -Global Const $TMT_FONT = 210 -Global Const $TMT_GLYPHDIBDATA = 8 -Global Const $TMT_HBITMAP = 212 -Global Const $TMT_INT = 202 -Global Const $TMT_INTLIST = 211 -Global Const $TMT_MARGINS = 205 -Global Const $TMT_POSITION = 208 -Global Const $TMT_RECT = 209 -Global Const $TMT_SIZE = 207 -Global Const $TMT_STRING = 201 - -; *Bool -Global Const $TMT_ALWAYSSHOWSIZINGBAR = 2208 -Global Const $TMT_AUTOSIZE = 2202 -Global Const $TMT_BGFILL = 2205 -Global Const $TMT_BORDERONLY = 2203 -Global Const $TMT_COMPOSITED = 2204 -Global Const $TMT_COMPOSITEDOPAQUE = 2219 -Global Const $TMT_DRAWBORDERS = 2214 -Global Const $TMT_FLATMENUS = 1001 -Global Const $TMT_GLYPHONLY = 2207 -Global Const $TMT_GLYPHTRANSPARENT = 2206 -Global Const $TMT_INTEGRALSIZING = 2211 -Global Const $TMT_LOCALIZEDMIRRORIMAGE = 2220 -Global Const $TMT_MIRRORIMAGE = 2209 -Global Const $TMT_NOETCHEDEFFECT = 2215 -Global Const $TMT_SOURCEGROW = 2212 -Global Const $TMT_SOURCESHRINK = 2213 -Global Const $TMT_TEXTAPPLYOVERLAY = 2216 -Global Const $TMT_TEXTGLOW = 2217 -Global Const $TMT_TEXTITALIC = 2218 -Global Const $TMT_TRANSPARENT = 2201 -Global Const $TMT_UNIFORMSIZING = 2210 -Global Const $TMT_USERPICTURE = 5001 - -; *Color -Global Const $TMT_ACCENTCOLORHINT = 3823 -Global Const $TMT_ACTIVEBORDER = 1611 -Global Const $TMT_ACTIVECAPTION = 1603 -Global Const $TMT_APPWORKSPACE = 1613 -Global Const $TMT_BACKGROUND = 1602 -Global Const $TMT_BLENDCOLOR = 5003 -Global Const $TMT_BODYTEXTCOLOR = 3827 -Global Const $TMT_BORDERCOLOR = 3801 -Global Const $TMT_BORDERCOLORHINT = 3822 -Global Const $TMT_BTNFACE = 1616 -Global Const $TMT_BTNHIGHLIGHT = 1621 -Global Const $TMT_BTNSHADOW = 1617 -Global Const $TMT_BTNTEXT = 1619 -Global Const $TMT_BUTTONALTERNATEFACE = 1626 -Global Const $TMT_CAPTIONTEXT = 1610 -Global Const $TMT_DKSHADOW3D = 1622 -Global Const $TMT_EDGEDKSHADOWCOLOR = 3807 -Global Const $TMT_EDGEFILLCOLOR = 3808 -Global Const $TMT_EDGEHIGHLIGHTCOLOR = 3805 -Global Const $TMT_EDGELIGHTCOLOR = 3804 -Global Const $TMT_EDGESHADOWCOLOR = 3806 -Global Const $TMT_FILLCOLOR = 3802 -Global Const $TMT_FILLCOLORHINT = 3821 -Global Const $TMT_FROMCOLOR1 = 2001 -Global Const $TMT_FROMCOLOR2 = 2002 -Global Const $TMT_FROMCOLOR3 = 2003 -Global Const $TMT_FROMCOLOR4 = 2004 -Global Const $TMT_FROMCOLOR5 = 2005 -Global Const $TMT_GLOWCOLOR = 3816 -Global Const $TMT_GLYPHTEXTCOLOR = 3819 -Global Const $TMT_GLYPHTRANSPARENTCOLOR = 3820 -Global Const $TMT_GRADIENTACTIVECAPTION = 1628 -Global Const $TMT_GRADIENTCOLOR1 = 3810 -Global Const $TMT_GRADIENTCOLOR2 = 3811 -Global Const $TMT_GRADIENTCOLOR3 = 3812 -Global Const $TMT_GRADIENTCOLOR4 = 3813 -Global Const $TMT_GRADIENTCOLOR5 = 3814 -Global Const $TMT_GRADIENTINACTIVECAPTION = 1629 -Global Const $TMT_GRAYTEXT = 1618 -Global Const $TMT_HEADING1TEXTCOLOR = 3825 -Global Const $TMT_HEADING2TEXTCOLOR = 3826 -Global Const $TMT_HIGHLIGHT = 1614 -Global Const $TMT_HIGHLIGHTTEXT = 1615 -Global Const $TMT_HOTTRACKING = 1627 -Global Const $TMT_INACTIVEBORDER = 1612 -Global Const $TMT_INACTIVECAPTION = 1604 -Global Const $TMT_INACTIVECAPTIONTEXT = 1620 -Global Const $TMT_INFOBK = 1625 -Global Const $TMT_INFOTEXT = 1624 -Global Const $TMT_LIGHT3D = 1623 -Global Const $TMT_MENU = 1605 -Global Const $TMT_MENUBAR = 1631 -Global Const $TMT_MENUHILIGHT = 1630 -Global Const $TMT_MENUTEXT = 1608 -Global Const $TMT_SCROLLBAR = 1601 -Global Const $TMT_SHADOWCOLOR = 3815 -Global Const $TMT_TEXTBORDERCOLOR = 3817 -Global Const $TMT_TEXTCOLOR = 3803 -Global Const $TMT_TEXTCOLORHINT = 3824 -Global Const $TMT_TEXTSHADOWCOLOR = 3818 -Global Const $TMT_TRANSPARENTCOLOR = 3809 -Global Const $TMT_WINDOW = 1606 -Global Const $TMT_WINDOWFRAME = 1607 -Global Const $TMT_WINDOWTEXT = 1609 - -; *Stream -Global Const $TMT_ATLASIMAGE = 8000 - -; *Enum -Global Const $TMT_BGTYPE = 4001 -Global Const $TMT_BORDERTYPE = 4002 -Global Const $TMT_CONTENTALIGNMENT = 4006 -Global Const $TMT_FILLTYPE = 4003 -Global Const $TMT_GLYPHTYPE = 4012 -Global Const $TMT_GLYPHFONTSIZINGTYPE = 4014 -Global Const $TMT_HALIGN = 4005 -Global Const $TMT_ICONEFFECT = 4009 -Global Const $TMT_IMAGELAYOUT = 4011 -Global Const $TMT_IMAGESELECTTYPE = 4013 -Global Const $TMT_OFFSETTYPE = 4008 -Global Const $TMT_SIZINGTYPE = 4004 -Global Const $TMT_TEXTSHADOWTYPE = 4010 -Global Const $TMT_TRUESIZESCALINGTYPE = 4015 -Global Const $TMT_VALIGN = 4007 - -; *Filename -Global Const $TMT_GLYPHIMAGEFILE = 3008 -Global Const $TMT_IMAGEFILE = 3001 -Global Const $TMT_IMAGEFILE1 = 3002 -Global Const $TMT_IMAGEFILE2 = 3003 -Global Const $TMT_IMAGEFILE3 = 3004 -Global Const $TMT_IMAGEFILE4 = 3005 -Global Const $TMT_IMAGEFILE5 = 3006 -Global Const $TMT_SCALEDBACKGROUND = 7001 - -; *Font -Global Const $TMT_BODYFONT = 809 -Global Const $TMT_CAPTIONFONT = 801 -Global Const $TMT_GLYPHFONT = 2601 -Global Const $TMT_HEADING1FONT = 807 -Global Const $TMT_HEADING2FONT = 808 -Global Const $TMT_ICONTITLEFONT = 806 -Global Const $TMT_MENUFONT = 803 -Global Const $TMT_MSGBOXFONT = 805 -Global Const $TMT_SMALLCAPTIONFONT = 802 -Global Const $TMT_STATUSFONT = 804 - -; *Int -Global Const $TMT_ALPHALEVEL = 2402 -Global Const $TMT_ALPHATHRESHOLD = 2415 -Global Const $TMT_ANIMATIONDELAY = 2428 -Global Const $TMT_ANIMATIONDURATION = 5006 -Global Const $TMT_BORDERSIZE = 2403 -Global Const $TMT_CHARSET = 403 -Global Const $TMT_COLORIZATIONCOLOR = 2431 -Global Const $TMT_COLORIZATIONOPACITY = 2432 -Global Const $TMT_FRAMESPERSECOND = 2426 -Global Const $TMT_FROMHUE1 = 1801 -Global Const $TMT_FROMHUE2 = 1802 -Global Const $TMT_FROMHUE3 = 1803 -Global Const $TMT_FROMHUE4 = 1804 -Global Const $TMT_FROMHUE5 = 1805 -Global Const $TMT_GLOWINTENSITY = 2429 -Global Const $TMT_GLYPHINDEX = 2418 -Global Const $TMT_GRADIENTRATIO1 = 2406 -Global Const $TMT_GRADIENTRATIO2 = 2407 -Global Const $TMT_GRADIENTRATIO3 = 2408 -Global Const $TMT_GRADIENTRATIO4 = 2409 -Global Const $TMT_GRADIENTRATIO5 = 2410 -Global Const $TMT_HEIGHT = 2417 -Global Const $TMT_IMAGECOUNT = 2401 -Global Const $TMT_MINCOLORDEPTH = 1301 -Global Const $TMT_MINDPI1 = 2420 -Global Const $TMT_MINDPI2 = 2421 -Global Const $TMT_MINDPI3 = 2422 -Global Const $TMT_MINDPI4 = 2423 -Global Const $TMT_MINDPI5 = 2424 -Global Const $TMT_OPACITY = 2430 -Global Const $TMT_PIXELSPERFRAME = 2427 -Global Const $TMT_PROGRESSCHUNKSIZE = 2411 -Global Const $TMT_PROGRESSSPACESIZE = 2412 -Global Const $TMT_ROUNDCORNERHEIGHT = 2405 -Global Const $TMT_ROUNDCORNERWIDTH = 2404 -Global Const $TMT_SATURATION = 2413 -Global Const $TMT_TEXTBORDERSIZE = 2414 -Global Const $TMT_TEXTGLOWSIZE = 2425 -Global Const $TMT_TOCOLOR1 = 2006 -Global Const $TMT_TOCOLOR2 = 2007 -Global Const $TMT_TOCOLOR3 = 2008 -Global Const $TMT_TOCOLOR4 = 2009 -Global Const $TMT_TOCOLOR5 = 2010 -Global Const $TMT_TOHUE1 = 1806 -Global Const $TMT_TOHUE2 = 1807 -Global Const $TMT_TOHUE3 = 1808 -Global Const $TMT_TOHUE4 = 1809 -Global Const $TMT_TOHUE5 = 1810 -Global Const $TMT_TRUESIZESTRETCHMARK = 2419 -Global Const $TMT_WIDTH = 2416 - -; *IntList -Global Const $TMT_TRANSITIONDURATIONS = 6000 - -; *Margins -Global Const $TMT_CAPTIONMARGINS = 3603 -Global Const $TMT_CONTENTMARGINS = 3602 -Global Const $TMT_SIZINGMARGINS = 3601 - -; *Position -Global Const $TMT_MINSIZE = 3403 -Global Const $TMT_MINSIZE1 = 3404 -Global Const $TMT_MINSIZE2 = 3405 -Global Const $TMT_MINSIZE3 = 3406 -Global Const $TMT_MINSIZE4 = 3407 -Global Const $TMT_MINSIZE5 = 3408 -Global Const $TMT_NORMALSIZE = 3409 -Global Const $TMT_OFFSET = 3401 -Global Const $TMT_TEXTSHADOWOFFSET = 3402 - -; *Rect -Global Const $TMT_ANIMATIONBUTTONRECT = 5005 -Global Const $TMT_ATLASRECT = 8002 -Global Const $TMT_CUSTOMSPLITRECT = 5004 -Global Const $TMT_DEFAULTPANESIZE = 5002 - -; *Size -Global Const $TMT_CAPTIONBARHEIGHT = 1205 -Global Const $TMT_CAPTIONBARWIDTH = 1204 -Global Const $TMT_MENUBARHEIGHT = 1209 -Global Const $TMT_MENUBARWIDTH = 1208 -Global Const $TMT_PADDEDBORDERWIDTH = 1210 -Global Const $TMT_SCROLLBARHEIGHT = 1203 -Global Const $TMT_SCROLLBARWIDTH = 1202 -Global Const $TMT_SIZINGBORDERWIDTH = 1201 -Global Const $TMT_SMCAPTIONBARHEIGHT = 1207 -Global Const $TMT_SMCAPTIONBARWIDTH = 1206 - -; *String -Global Const $TMT_ALIAS = 1404 -Global Const $TMT_ATLASINPUTIMAGE = 8001 -Global Const $TMT_AUTHOR = 604 -Global Const $TMT_CLASSICVALUE = 3202 -Global Const $TMT_COLORSCHEMES = 401 -Global Const $TMT_COMPANY = 603 -Global Const $TMT_COPYRIGHT = 605 -Global Const $TMT_CSSNAME = 1401 -Global Const $TMT_DESCRIPTION = 608 -Global Const $TMT_DISPLAYNAME = 601 -Global Const $TMT_LASTUPDATED = 1403 -Global Const $TMT_SIZES = 402 -Global Const $TMT_TEXT = 3201 -Global Const $TMT_TOOLTIP = 602 -Global Const $TMT_URL = 606 -Global Const $TMT_VERSION = 607 -Global Const $TMT_XMLNAME = 1402 -Global Const $TMT_NAME = 600 -; =============================================================================================================================== diff --git a/build/Include/AVIConstants.au3 b/build/Include/AVIConstants.au3 deleted file mode 100644 index 63859dfc4..000000000 --- a/build/Include/AVIConstants.au3 +++ /dev/null @@ -1,33 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: AVI_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for GUI control AVI styles. -; Author(s) .....: Valik -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Styles -Global Const $ACS_CENTER = 1 -Global Const $ACS_TRANSPARENT = 2 -Global Const $ACS_AUTOPLAY = 4 -Global Const $ACS_TIMER = 8 -Global Const $ACS_NONTRANSPARENT = 16 - -; Control default styles -Global Const $GUI_SS_DEFAULT_AVI = $ACS_TRANSPARENT - -; Messages -Global Const $__AVICONSTANT_WM_USER = 0x400 -Global Const $ACM_OPENA = $__AVICONSTANT_WM_USER + 100 -Global Const $ACM_PLAY = $__AVICONSTANT_WM_USER + 101 -Global Const $ACM_STOP = $__AVICONSTANT_WM_USER + 102 -Global Const $ACM_ISPLAYING = $__AVICONSTANT_WM_USER + 104 -Global Const $ACM_OPENW = $__AVICONSTANT_WM_USER + 103 - -; Notifications -Global Const $ACN_START = 0x00000001 ; Notifies the control's parent that the AVI has started playing -Global Const $ACN_STOP = 0x00000002 ; Notifies the control's parent that the AVI has stopped playing -; =============================================================================================================================== diff --git a/build/Include/Array.au3 b/build/Include/Array.au3 deleted file mode 100644 index 046ef339a..000000000 --- a/build/Include/Array.au3 +++ /dev/null @@ -1,2616 +0,0 @@ -#include-Once - -#include "AutoItConstants.au3" -#include "MsgBoxConstants.au3" -#include "StringConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Array -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions for manipulating arrays. -; Author(s) .....: JdeB, Erik Pilsits, Ultima, Dale (Klaatu) Thompson, Cephas,randallc, Gary Frost, GEOSoft, -; Helias Gerassimou(hgeras), Brian Keene, Michael Michta, gcriaco, LazyCoder, Tylo, David Nuttall, -; Adam Moore (redndahead), SmOke_N, litlmike, Valik, Melba23 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _ArrayAdd -; _ArrayBinarySearch -; _ArrayColDelete -; _ArrayColInsert -; _ArrayCombinations -; _ArrayConcatenate -; _ArrayDelete -; _ArrayDisplay -; _ArrayExtract -; _ArrayFindAll -; _ArrayInsert -; _ArrayMax -; _ArrayMaxIndex -; _ArrayMin -; _ArrayMinIndex -; _ArrayPermute -; _ArrayPop -; _ArrayPush -; _ArrayReverse -; _ArraySearch -; _ArrayShuffle -; _ArraySort -; _ArraySwap -; _ArrayToClip -; _ArrayToString -; _ArrayTranspose -; _ArrayTrim -; _ArrayUnique -; _Array1DToHistogram -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __Array_Combinations -; __Array_ExeterInternal -; __Array_GetNext -; __Array_GreaterThan -; __Array_LessThan -; __Array_MinMaxIndex -; __Array_StringRepeat -; __ArrayDualPivotSort -; __ArrayQuickSort1D -; __ArrayQuickSort2D -; __ArrayUnique_AutoErrFunc -; =============================================================================================================================== - -; #GLOBAL CONSTANTS# ============================================================================================================ -Global Enum $ARRAYFILL_FORCE_DEFAULT, $ARRAYFILL_FORCE_SINGLEITEM, $ARRAYFILL_FORCE_INT, $ARRAYFILL_FORCE_NUMBER, $ARRAYFILL_FORCE_PTR, $ARRAYFILL_FORCE_HWND, $ARRAYFILL_FORCE_STRING -Global Enum $ARRAYUNIQUE_NOCOUNT, $ARRAYUNIQUE_COUNT -Global Enum $ARRAYUNIQUE_AUTO, $ARRAYUNIQUE_FORCE32, $ARRAYUNIQUE_FORCE64, $ARRAYUNIQUE_MATCH, $ARRAYUNIQUE_DISTINCT -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos -; Modified.......: Ultima - code cleanup; Melba23 - added 2D support & multiple addition -; =============================================================================================================================== -Func _ArrayAdd(ByRef $aArray, $vValue, $iStart = 0, $sDelim_Item = "|", $sDelim_Row = @CRLF, $iForce = $ARRAYFILL_FORCE_DEFAULT) - - If $iStart = Default Then $iStart = 0 - If $sDelim_Item = Default Then $sDelim_Item = "|" - If $sDelim_Row = Default Then $sDelim_Row = @CRLF - If $iForce = Default Then $iForce = $ARRAYFILL_FORCE_DEFAULT - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - Local $hDataType = 0 - Switch $iForce - Case $ARRAYFILL_FORCE_INT - $hDataType = Int - Case $ARRAYFILL_FORCE_NUMBER - $hDataType = Number - Case $ARRAYFILL_FORCE_PTR - $hDataType = Ptr - Case $ARRAYFILL_FORCE_HWND - $hDataType = Hwnd - Case $ARRAYFILL_FORCE_STRING - $hDataType = String - EndSwitch - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - If $iForce = $ARRAYFILL_FORCE_SINGLEITEM Then - ReDim $aArray[$iDim_1 + 1] - $aArray[$iDim_1] = $vValue - Return $iDim_1 - EndIf - If IsArray($vValue) Then - If UBound($vValue, $UBOUND_DIMENSIONS) <> 1 Then Return SetError(5, 0, -1) - $hDataType = 0 - Else - Local $aTmp = StringSplit($vValue, $sDelim_Item, $STR_NOCOUNT + $STR_ENTIRESPLIT) - If UBound($aTmp, $UBOUND_ROWS) = 1 Then - $aTmp[0] = $vValue - EndIf - $vValue = $aTmp - EndIf - Local $iAdd = UBound($vValue, $UBOUND_ROWS) - ReDim $aArray[$iDim_1 + $iAdd] - For $i = 0 To $iAdd - 1 - If IsFunc($hDataType) Then - $aArray[$iDim_1 + $i] = $hDataType($vValue[$i]) - Else - $aArray[$iDim_1 + $i] = $vValue[$i] - EndIf - Next - Return $iDim_1 + $iAdd - 1 - Case 2 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - If $iStart < 0 Or $iStart > $iDim_2 - 1 Then Return SetError(4, 0, -1) - Local $iValDim_1, $iValDim_2 = 0, $iColCount - If IsArray($vValue) Then - If UBound($vValue, $UBOUND_DIMENSIONS) <> 2 Then Return SetError(5, 0, -1) - $iValDim_1 = UBound($vValue, $UBOUND_ROWS) - $iValDim_2 = UBound($vValue, $UBOUND_COLUMNS) - $hDataType = 0 - Else - ; Convert string to 2D array - Local $aSplit_1 = StringSplit($vValue, $sDelim_Row, $STR_NOCOUNT + $STR_ENTIRESPLIT) - $iValDim_1 = UBound($aSplit_1, $UBOUND_ROWS) - Local $aTmp[$iValDim_1][0], $aSplit_2 - For $i = 0 To $iValDim_1 - 1 - $aSplit_2 = StringSplit($aSplit_1[$i], $sDelim_Item, $STR_NOCOUNT + $STR_ENTIRESPLIT) - $iColCount = UBound($aSplit_2) - If $iColCount > $iValDim_2 Then - ; Increase array size to fit max number of items on line - $iValDim_2 = $iColCount - ReDim $aTmp[$iValDim_1][$iValDim_2] - EndIf - For $j = 0 To $iColCount - 1 - $aTmp[$i][$j] = $aSplit_2[$j] - Next - Next - $vValue = $aTmp - EndIf - ; Check if too many columns to fit - If UBound($vValue, $UBOUND_COLUMNS) + $iStart > UBound($aArray, $UBOUND_COLUMNS) Then Return SetError(3, 0, -1) - ReDim $aArray[$iDim_1 + $iValDim_1][$iDim_2] - For $iWriteTo_Index = 0 To $iValDim_1 - 1 - For $j = 0 To $iDim_2 - 1 - If $j < $iStart Then - $aArray[$iWriteTo_Index + $iDim_1][$j] = "" - ElseIf $j - $iStart > $iValDim_2 - 1 Then - $aArray[$iWriteTo_Index + $iDim_1][$j] = "" - Else - If IsFunc($hDataType) Then - $aArray[$iWriteTo_Index + $iDim_1][$j] = $hDataType($vValue[$iWriteTo_Index][$j - $iStart]) - Else - $aArray[$iWriteTo_Index + $iDim_1][$j] = $vValue[$iWriteTo_Index][$j - $iStart] - EndIf - EndIf - Next - Next - Case Else - Return SetError(2, 0, -1) - EndSwitch - - Return UBound($aArray, $UBOUND_ROWS) - 1 - -EndFunc ;==>_ArrayAdd - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos -; Modified.......: Ultima - added $iEnd as parameter, code cleanup; Melba23 - added support for empty & 2D arrays -; =============================================================================================================================== -Func _ArrayBinarySearch(Const ByRef $aArray, $vValue, $iStart = 0, $iEnd = 0, $iColumn = 0) - - If $iStart = Default Then $iStart = 0 - If $iEnd = Default Then $iEnd = 0 - If $iColumn = Default Then $iColumn = 0 - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - - ; Bounds checking - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - If $iDim_1 = 0 Then Return SetError(6, 0, -1) - - If $iEnd < 1 Or $iEnd > $iDim_1 - 1 Then $iEnd = $iDim_1 - 1 - If $iStart < 0 Then $iStart = 0 - If $iStart > $iEnd Then Return SetError(4, 0, -1) - Local $iMid = Int(($iEnd + $iStart) / 2) - - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - If $aArray[$iStart] > $vValue Or $aArray[$iEnd] < $vValue Then Return SetError(2, 0, -1) - ; Search - While $iStart <= $iMid And $vValue <> $aArray[$iMid] - If $vValue < $aArray[$iMid] Then - $iEnd = $iMid - 1 - Else - $iStart = $iMid + 1 - EndIf - $iMid = Int(($iEnd + $iStart) / 2) - WEnd - If $iStart > $iEnd Then Return SetError(3, 0, -1) ; Entry not found - Case 2 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - 1 - If $iColumn < 0 Or $iColumn > $iDim_2 Then Return SetError(7, 0, -1) - If $aArray[$iStart][$iColumn] > $vValue Or $aArray[$iEnd][$iColumn] < $vValue Then Return SetError(2, 0, -1) - ; Search - While $iStart <= $iMid And $vValue <> $aArray[$iMid][$iColumn] - If $vValue < $aArray[$iMid][$iColumn] Then - $iEnd = $iMid - 1 - Else - $iStart = $iMid + 1 - EndIf - $iMid = Int(($iEnd + $iStart) / 2) - WEnd - If $iStart > $iEnd Then Return SetError(3, 0, -1) ; Entry not found - Case Else - Return SetError(5, 0, -1) - EndSwitch - - Return $iMid -EndFunc ;==>_ArrayBinarySearch - -; #FUNCTION# ==================================================================================================================== -; Author ........: Melba23 -; Modified.......: -; =============================================================================================================================== -Func _ArrayColDelete(ByRef $aArray, $iColumn, $bConvert = False) - - If $bConvert = Default Then $bConvert = False - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - If UBound($aArray, $UBOUND_DIMENSIONS) <> 2 Then Return SetError(2, 0, -1) - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - Switch $iDim_2 - Case 2 - If $iColumn < 0 Or $iColumn > 1 Then Return SetError(3, 0, -1) - If $bConvert Then - Local $aTempArray[$iDim_1] - For $i = 0 To $iDim_1 - 1 - $aTempArray[$i] = $aArray[$i][(Not $iColumn)] - Next - $aArray = $aTempArray - Else - ContinueCase - EndIf - Case Else - If $iColumn < 0 Or $iColumn > $iDim_2 - 1 Then Return SetError(3, 0, -1) - For $i = 0 To $iDim_1 - 1 - For $j = $iColumn To $iDim_2 - 2 - $aArray[$i][$j] = $aArray[$i][$j + 1] - Next - Next - ReDim $aArray[$iDim_1][$iDim_2 - 1] - EndSwitch - - Return UBound($aArray, $UBOUND_COLUMNS) -EndFunc ;==>_ArrayColDelete - -; #FUNCTION# ==================================================================================================================== -; Author ........: Melba23 -; Modified.......: -; =============================================================================================================================== -Func _ArrayColInsert(ByRef $aArray, $iColumn) - - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - Local $aTempArray[$iDim_1][2] - Switch $iColumn - Case 0, 1 - For $i = 0 To $iDim_1 - 1 - $aTempArray[$i][(Not $iColumn)] = $aArray[$i] - Next - Case Else - Return SetError(3, 0, -1) - EndSwitch - $aArray = $aTempArray - Case 2 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - If $iColumn < 0 Or $iColumn > $iDim_2 Then Return SetError(3, 0, -1) - ReDim $aArray[$iDim_1][$iDim_2 + 1] - For $i = 0 To $iDim_1 - 1 - For $j = $iDim_2 To $iColumn + 1 Step -1 - $aArray[$i][$j] = $aArray[$i][$j - 1] - Next - $aArray[$i][$iColumn] = "" - Next - Case Else - Return SetError(2, 0, -1) - EndSwitch - - Return UBound($aArray, $UBOUND_COLUMNS) -EndFunc ;==>_ArrayColInsert - -; #FUNCTION# ==================================================================================================================== -; Author ........: Erik Pilsits -; Modified.......: 07/08/2008 -; =============================================================================================================================== -Func _ArrayCombinations(Const ByRef $aArray, $iSet, $sDelimiter = "") - - If $sDelimiter = Default Then $sDelimiter = "" - If Not IsArray($aArray) Then Return SetError(1, 0, 0) - If UBound($aArray, $UBOUND_DIMENSIONS) <> 1 Then Return SetError(2, 0, 0) - - Local $iN = UBound($aArray) - Local $iR = $iSet - Local $aIdx[$iR] - For $i = 0 To $iR - 1 - $aIdx[$i] = $i - Next - Local $iTotal = __Array_Combinations($iN, $iR) - Local $iLeft = $iTotal - Local $aResult[$iTotal + 1] - $aResult[0] = $iTotal - - Local $iCount = 1 - While $iLeft > 0 - __Array_GetNext($iN, $iR, $iLeft, $iTotal, $aIdx) - For $i = 0 To $iSet - 1 - $aResult[$iCount] &= $aArray[$aIdx[$i]] & $sDelimiter - Next - If $sDelimiter <> "" Then $aResult[$iCount] = StringTrimRight($aResult[$iCount], 1) - $iCount += 1 - WEnd - Return $aResult -EndFunc ;==>_ArrayCombinations - -; #FUNCTION# ==================================================================================================================== -; Author ........: Ultima -; Modified.......: Partypooper - added target start index; Melba23 - add 2D support -; =============================================================================================================================== -Func _ArrayConcatenate(ByRef $aArrayTarget, Const ByRef $aArraySource, $iStart = 0) - - If $iStart = Default Then $iStart = 0 - If Not IsArray($aArrayTarget) Then Return SetError(1, 0, -1) - If Not IsArray($aArraySource) Then Return SetError(2, 0, -1) - Local $iDim_Total_Tgt = UBound($aArrayTarget, $UBOUND_DIMENSIONS) - Local $iDim_Total_Src = UBound($aArraySource, $UBOUND_DIMENSIONS) - Local $iDim_1_Tgt = UBound($aArrayTarget, $UBOUND_ROWS) - Local $iDim_1_Src = UBound($aArraySource, $UBOUND_ROWS) - If $iStart < 0 Or $iStart > $iDim_1_Src - 1 Then Return SetError(6, 0, -1) - Switch $iDim_Total_Tgt - Case 1 - If $iDim_Total_Src <> 1 Then Return SetError(4, 0, -1) - ReDim $aArrayTarget[$iDim_1_Tgt + $iDim_1_Src - $iStart] - For $i = $iStart To $iDim_1_Src - 1 - $aArrayTarget[$iDim_1_Tgt + $i - $iStart] = $aArraySource[$i] - Next - Case 2 - If $iDim_Total_Src <> 2 Then Return SetError(4, 0, -1) - Local $iDim_2_Tgt = UBound($aArrayTarget, $UBOUND_COLUMNS) - If UBound($aArraySource, $UBOUND_COLUMNS) <> $iDim_2_Tgt Then Return SetError(5, 0, -1) - ReDim $aArrayTarget[$iDim_1_Tgt + $iDim_1_Src - $iStart][$iDim_2_Tgt] - For $i = $iStart To $iDim_1_Src - 1 - For $j = 0 To $iDim_2_Tgt - 1 - $aArrayTarget[$iDim_1_Tgt + $i - $iStart][$j] = $aArraySource[$i][$j] - Next - Next - Case Else - Return SetError(3, 0, -1) - EndSwitch - Return UBound($aArrayTarget, $UBOUND_ROWS) -EndFunc ;==>_ArrayConcatenate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Cephas -; Modified.......: Jos - array passed ByRef, jaberwocky6669, Melba23 - added 2D support & multiple deletion -; =============================================================================================================================== -Func _ArrayDelete(ByRef $aArray, $vRange) - - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - 1 - If IsArray($vRange) Then - If UBound($vRange, $UBOUND_DIMENSIONS) <> 1 Or UBound($vRange, $UBOUND_ROWS) < 2 Then Return SetError(4, 0, -1) - Else - ; Expand range - Local $iNumber, $aSplit_1, $aSplit_2 - $vRange = StringStripWS($vRange, 8) - $aSplit_1 = StringSplit($vRange, ";") - $vRange = "" - For $i = 1 To $aSplit_1[0] - ; Check for correct range syntax - If Not StringRegExp($aSplit_1[$i], "^\d+(-\d+)?$") Then Return SetError(3, 0, -1) - $aSplit_2 = StringSplit($aSplit_1[$i], "-") - Switch $aSplit_2[0] - Case 1 - $vRange &= $aSplit_2[1] & ";" - Case 2 - If Number($aSplit_2[2]) >= Number($aSplit_2[1]) Then - $iNumber = $aSplit_2[1] - 1 - Do - $iNumber += 1 - $vRange &= $iNumber & ";" - Until $iNumber = $aSplit_2[2] - EndIf - EndSwitch - Next - $vRange = StringSplit(StringTrimRight($vRange, 1), ";") - EndIf - If $vRange[1] < 0 Or $vRange[$vRange[0]] > $iDim_1 Then Return SetError(5, 0, -1) - ; Remove rows - Local $iCopyTo_Index = 0 - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - ; Loop through array flagging elements to be deleted - For $i = 1 To $vRange[0] - $aArray[$vRange[$i]] = ChrW(0xFAB1) - Next - ; Now copy rows to keep to fill deleted rows - For $iReadFrom_Index = 0 To $iDim_1 - If $aArray[$iReadFrom_Index] == ChrW(0xFAB1) Then - ContinueLoop - Else - If $iReadFrom_Index <> $iCopyTo_Index Then - $aArray[$iCopyTo_Index] = $aArray[$iReadFrom_Index] - EndIf - $iCopyTo_Index += 1 - EndIf - Next - ReDim $aArray[$iDim_1 - $vRange[0] + 1] - Case 2 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - 1 - ; Loop through array flagging elements to be deleted - For $i = 1 To $vRange[0] - $aArray[$vRange[$i]][0] = ChrW(0xFAB1) - Next - ; Now copy rows to keep to fill deleted rows - For $iReadFrom_Index = 0 To $iDim_1 - If $aArray[$iReadFrom_Index][0] == ChrW(0xFAB1) Then - ContinueLoop - Else - If $iReadFrom_Index <> $iCopyTo_Index Then - For $j = 0 To $iDim_2 - $aArray[$iCopyTo_Index][$j] = $aArray[$iReadFrom_Index][$j] - Next - EndIf - $iCopyTo_Index += 1 - EndIf - Next - ReDim $aArray[$iDim_1 - $vRange[0] + 1][$iDim_2 + 1] - Case Else - Return SetError(2, 0, False) - EndSwitch - - Return UBound($aArray, $UBOUND_ROWS) - -EndFunc ;==>_ArrayDelete - -; #FUNCTION# ==================================================================================================================== -; Author ........: randallc, Ultima -; Modified.......: Gary Frost (gafrost), Ultima, Zedna, jpm, Melba23, AZJIO, UEZ -; =============================================================================================================================== -Func _ArrayDisplay(Const ByRef $aArray, $sTitle = Default, $sArrayRange = Default, $iFlags = Default, $vUser_Separator = Default, $sHeader = Default, $iMax_ColWidth = Default, $iAlt_Color = Default, $hUser_Function = Default) - - ; Default values - If $sTitle = Default Then $sTitle = "ArrayDisplay" - If $sArrayRange = Default Then $sArrayRange = "" - If $iFlags = Default Then $iFlags = 0 - If $vUser_Separator = Default Then $vUser_Separator = "" - If $sHeader = Default Then $sHeader = "" - If $iMax_ColWidth = Default Then $iMax_ColWidth = 350 - If $iAlt_Color = Default Then $iAlt_Color = 0 - If $hUser_Function = Default Then $hUser_Function = 0 - - ; Check for transpose, column align, verbosity and button and "Row" column visibility - Local $iTranspose = BitAND($iFlags, 1) - Local $iColAlign = BitAND($iFlags, 6) ; 0 = Left (default); 2 = Right; 4 = Center - Local $iVerbose = BitAND($iFlags, 8) - Local $iButtonMargin = ((BitAND($iFlags, 32)) ? (0) : ((BitAND($iFlags, 16)) ? (20) : (40))) ; Flag 32 = 0; flag 16 = 20; neither flag = 40 - Local $iNoRow = BitAND($iFlags, 64) - - ; Check valid array - Local $sMsg = "", $iRet = 1 - If IsArray($aArray) Then - ; Dimension checking - Local $iDimension = UBound($aArray, $UBOUND_DIMENSIONS), $iRowCount = UBound($aArray, $UBOUND_ROWS), $iColCount = UBound($aArray, $UBOUND_COLUMNS) - If $iDimension > 2 Then - $sMsg = "Larger than 2D array passed to function" - $iRet = 2 - EndIf - Else - $sMsg = "No array variable passed to function" - EndIf - If $sMsg Then - If $iVerbose And MsgBox($MB_SYSTEMMODAL + $MB_ICONERROR + $MB_YESNO, _ - "ArrayDisplay Error: " & $sTitle, $sMsg & @CRLF & @CRLF & "Exit the script?") = $IDYES Then - Exit - Else - Return SetError($iRet, 0, "") - EndIf - EndIf - - ; Determine copy separator - Local $iCW_ColWidth = Number($vUser_Separator) - - ; Separator handling - Local $sAD_Separator = ChrW(0xFAB1) - ; Set separator to use in this UDF and store existing one - Local $sCurr_Separator = Opt("GUIDataSeparatorChar", $sAD_Separator) - ; Set default user separator if required - If $vUser_Separator = "" Then $vUser_Separator = $sCurr_Separator - - ; Declare variables - Local $vTmp, $iRowLimit = 65525, $iColLimit = 250 ; Row = AutoIt 64k limit minus UDF controls; Column - arbitrary limit - - ; Set original dimensions for data display - Local $iDataRow = $iRowCount - Local $iDataCol = $iColCount - - ; Set display limits for dimensions - column value only set for 2D arrays - Local $iItem_Start = 0, $iItem_End = $iRowCount - 1, $iSubItem_Start = 0, $iSubItem_End = (($iDimension = 2) ? ($iColCount - 1) : (0)) - ; Flag to determine if range set - Local $bRange_Flag = False, $avRangeSplit - ; Check for range settings - If $sArrayRange Then - ; Split into separate dimension sections - Local $aArray_Range = StringRegExp($sArrayRange & "||", "(?U)(.*)\|", 3) - ; Dimension 1 - If $aArray_Range[0] Then - $avRangeSplit = StringSplit($aArray_Range[0], ":") - If @error Then - $iItem_End = Number($avRangeSplit[1]) - Else - $iItem_Start = Number($avRangeSplit[1]) - $iItem_End = Number($avRangeSplit[2]) - EndIf - EndIf - ; Check row bounds - If $iItem_Start > $iItem_End Then - $vTmp = $iItem_Start - $iItem_Start = $iItem_End - $iItem_End = $vTmp - EndIf - If $iItem_Start < 0 Then $iItem_Start = 0 - If $iItem_End > $iRowCount - 1 Then $iItem_End = $iRowCount - 1 - ; Check if range set - If $iItem_Start <> 0 Or $iItem_End <> $iRowCount - 1 Then $bRange_Flag = True - ; Dimension 2 - If $iDimension = 2 And $aArray_Range[1] Then - $avRangeSplit = StringSplit($aArray_Range[1], ":") - If @error Then - $iSubItem_End = Number($avRangeSplit[1]) - Else - $iSubItem_Start = Number($avRangeSplit[1]) - $iSubItem_End = Number($avRangeSplit[2]) - EndIf - ; Check column bounds - If $iSubItem_Start > $iSubItem_End Then - $vTmp = $iSubItem_Start - $iSubItem_Start = $iSubItem_End - $iSubItem_End = $vTmp - EndIf - If $iSubItem_Start < 0 Then $iSubItem_Start = 0 - If $iSubItem_End > $iColCount - 1 Then $iSubItem_End = $iColCount - 1 - ; Check if range set - If $iSubItem_Start <> 0 Or $iSubItem_End <> $iColCount - 1 Then $bRange_Flag = True - EndIf - EndIf - - ; Create data display - Local $sDisplayData = "[" & $iDataRow - ; Check if rows will be truncated - Local $bTruncated = False - If $iTranspose Then - If $iItem_End - $iItem_Start > $iColLimit Then - $bTruncated = True - $iItem_End = $iItem_Start + $iColLimit - 1 - EndIf - Else - If $iItem_End - $iItem_Start > $iRowLimit Then - $bTruncated = True - $iItem_End = $iItem_Start + $iRowLimit - 1 - EndIf - EndIf - If $bTruncated Then - $sDisplayData &= "*]" - Else - $sDisplayData &= "]" - EndIf - If $iDimension = 2 Then - $sDisplayData &= " [" & $iDataCol - If $iTranspose Then - If $iSubItem_End - $iSubItem_Start > $iRowLimit Then - $bTruncated = True - $iSubItem_End = $iSubItem_Start + $iRowLimit - 1 - EndIf - Else - If $iSubItem_End - $iSubItem_Start > $iColLimit Then - $bTruncated = True - $iSubItem_End = $iSubItem_Start + $iColLimit - 1 - EndIf - EndIf - If $bTruncated Then - $sDisplayData &= "*]" - Else - $sDisplayData &= "]" - EndIf - EndIf - ; Create tooltip data - Local $sTipData = "" - If $bTruncated Then $sTipData &= "Truncated" - If $bRange_Flag Then - If $sTipData Then $sTipData &= " - " - $sTipData &= "Range set" - EndIf - If $iTranspose Then - If $sTipData Then $sTipData &= " - " - $sTipData &= "Transposed" - EndIf - - ; Split custom header on separator - Local $asHeader = StringSplit($sHeader, $sCurr_Separator, $STR_NOCOUNT) ; No count element - If UBound($asHeader) = 0 Then Local $asHeader[1] = [""] - $sHeader = "Row" - Local $iIndex = $iSubItem_Start - If $iTranspose Then - ; All default headers - For $j = $iItem_Start To $iItem_End - $sHeader &= $sAD_Separator & "Col " & $j - Next - Else - ; Create custom header with available items - If $asHeader[0] Then - ; Set as many as available - For $iIndex = $iSubItem_Start To $iSubItem_End - ; Check custom header available - If $iIndex >= UBound($asHeader) Then ExitLoop - $sHeader &= $sAD_Separator & $asHeader[$iIndex] - Next - EndIf - ; Add default headers to fill to end - For $j = $iIndex To $iSubItem_End - $sHeader &= $sAD_Separator & "Col " & $j - Next - EndIf - ; Remove "Row" header if not needed - If $iNoRow Then $sHeader = StringTrimLeft($sHeader, 4) - - ; Display splash dialog if required - If $iVerbose And ($iItem_End - $iItem_Start + 1) * ($iSubItem_End - $iSubItem_Start + 1) > 10000 Then - SplashTextOn("ArrayDisplay", "Preparing display" & @CRLF & @CRLF & "Please be patient", 300, 100) - EndIf - - ; Convert array into ListViewItem compatible lines - Local $iBuffer = 4094 ; Max characters a ListView will display (Windows limitation) - If $iTranspose Then - ; Swap dimensions - $vTmp = $iItem_Start - $iItem_Start = $iSubItem_Start - $iSubItem_Start = $vTmp - $vTmp = $iItem_End - $iItem_End = $iSubItem_End - $iSubItem_End = $vTmp - EndIf - Local $avArrayText[$iItem_End - $iItem_Start + 1] - For $i = $iItem_Start To $iItem_End - ; Add row number if required - If Not $iNoRow Then $avArrayText[$i - $iItem_Start] = "[" & $i & "]" - For $j = $iSubItem_Start To $iSubItem_End - If $iDimension = 1 Then - If $iTranspose Then - Switch VarGetType($aArray[$j]) - Case "Array" - $vTmp = "{Array}" - Case Else - $vTmp = $aArray[$j] - EndSwitch - Else - Switch VarGetType($aArray[$i]) - Case "Array" - $vTmp = "{Array}" - Case Else - $vTmp = $aArray[$i] - EndSwitch - EndIf - Else - If $iTranspose Then - Switch VarGetType($aArray[$j][$i]) - Case "Array" - $vTmp = "{Array}" - Case Else - $vTmp = $aArray[$j][$i] - EndSwitch - Else - Switch VarGetType($aArray[$i][$j]) - Case "Array" - $vTmp = "{Array}" - Case Else - $vTmp = $aArray[$i][$j] - EndSwitch - EndIf - EndIf - ; Truncate if required so ListView will display - If StringLen($vTmp) > $iBuffer Then $vTmp = StringLeft($vTmp, $iBuffer) - $avArrayText[$i - $iItem_Start] &= $sAD_Separator & $vTmp - Next - ; Remove leading delimiter if no "Row" column - If $iNoRow Then $avArrayText[$i - $iItem_Start] = StringTrimLeft($avArrayText[$i - $iItem_Start], 1) - Next - - ; GUI Constants - Local Const $_ARRAYCONSTANT_GUI_DOCKBOTTOM = 64 - Local Const $_ARRAYCONSTANT_GUI_DOCKBORDERS = 102 - Local Const $_ARRAYCONSTANT_GUI_DOCKHEIGHT = 512 - Local Const $_ARRAYCONSTANT_GUI_DOCKLEFT = 2 - Local Const $_ARRAYCONSTANT_GUI_DOCKRIGHT = 4 - Local Const $_ARRAYCONSTANT_GUI_DOCKHCENTER = 8 - Local Const $_ARRAYCONSTANT_GUI_EVENT_CLOSE = -3 - Local Const $_ARRAYCONSTANT_GUI_FOCUS = 256 - Local Const $_ARRAYCONSTANT_GUI_BKCOLOR_LV_ALTERNATE = 0xFE000000 - Local Const $_ARRAYCONSTANT_SS_CENTER = 0x1 - Local Const $_ARRAYCONSTANT_SS_CENTERIMAGE = 0x0200 - Local Const $_ARRAYCONSTANT_LVM_GETITEMCOUNT = (0x1000 + 4) - Local Const $_ARRAYCONSTANT_LVM_GETITEMRECT = (0x1000 + 14) - Local Const $_ARRAYCONSTANT_LVM_GETCOLUMNWIDTH = (0x1000 + 29) - Local Const $_ARRAYCONSTANT_LVM_SETCOLUMNWIDTH = (0x1000 + 30) - Local Const $_ARRAYCONSTANT_LVM_GETITEMSTATE = (0x1000 + 44) - Local Const $_ARRAYCONSTANT_LVM_GETSELECTEDCOUNT = (0x1000 + 50) - Local Const $_ARRAYCONSTANT_LVM_SETEXTENDEDLISTVIEWSTYLE = (0x1000 + 54) - Local Const $_ARRAYCONSTANT_LVS_EX_GRIDLINES = 0x1 - Local Const $_ARRAYCONSTANT_LVIS_SELECTED = 0x2 - Local Const $_ARRAYCONSTANT_LVS_SHOWSELALWAYS = 0x8 - Local Const $_ARRAYCONSTANT_LVS_EX_FULLROWSELECT = 0x20 - Local Const $_ARRAYCONSTANT_WS_EX_CLIENTEDGE = 0x0200 - Local Const $_ARRAYCONSTANT_WS_MAXIMIZEBOX = 0x00010000 - Local Const $_ARRAYCONSTANT_WS_MINIMIZEBOX = 0x00020000 - Local Const $_ARRAYCONSTANT_WS_SIZEBOX = 0x00040000 - Local Const $_ARRAYCONSTANT_WM_SETREDRAW = 11 - Local Const $_ARRAYCONSTANT_LVSCW_AUTOSIZE = -1 - - ; Set coord mode 1 - Local $iCoordMode = Opt("GUICoordMode", 1) - - ; Create GUI - Local $iOrgWidth = 210, $iHeight = 200, $iMinSize = 250 - Local $hGUI = GUICreate($sTitle, $iOrgWidth, $iHeight, Default, Default, BitOR($_ARRAYCONSTANT_WS_SIZEBOX, $_ARRAYCONSTANT_WS_MINIMIZEBOX, $_ARRAYCONSTANT_WS_MAXIMIZEBOX)) - Local $aiGUISize = WinGetClientSize($hGUI) - Local $iButtonWidth_2 = $aiGUISize[0] / 2 - Local $iButtonWidth_3 = $aiGUISize[0] / 3 - ; Create ListView - Local $idListView = GUICtrlCreateListView($sHeader, 0, 0, $aiGUISize[0], $aiGUISize[1] - $iButtonMargin, $_ARRAYCONSTANT_LVS_SHOWSELALWAYS) - GUICtrlSetBkColor($idListView, $_ARRAYCONSTANT_GUI_BKCOLOR_LV_ALTERNATE) - GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETEXTENDEDLISTVIEWSTYLE, $_ARRAYCONSTANT_LVS_EX_GRIDLINES, $_ARRAYCONSTANT_LVS_EX_GRIDLINES) - GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETEXTENDEDLISTVIEWSTYLE, $_ARRAYCONSTANT_LVS_EX_FULLROWSELECT, $_ARRAYCONSTANT_LVS_EX_FULLROWSELECT) - GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETEXTENDEDLISTVIEWSTYLE, $_ARRAYCONSTANT_WS_EX_CLIENTEDGE, $_ARRAYCONSTANT_WS_EX_CLIENTEDGE) - Local $idCopy_ID = 9999, $idCopy_Data = 99999, $idData_Label = 99999, $idUser_Func = 99999, $idExit_Script = 99999 - ; Check if any buttons required - If $iButtonMargin Then - ; Create Copy buttons - $idCopy_ID = GUICtrlCreateButton("Copy Data && Hdr/Row", 0, $aiGUISize[1] - $iButtonMargin, $iButtonWidth_2, 20) - $idCopy_Data = GUICtrlCreateButton("Copy Data Only", $iButtonWidth_2, $aiGUISize[1] - $iButtonMargin, $iButtonWidth_2, 20) - ; Check if other buttons are required - If $iButtonMargin = 40 Then - Local $iButtonWidth_Var = $iButtonWidth_2 - Local $iOffset = $iButtonWidth_2 - If IsFunc($hUser_Function) Then - ; Create UserFunc button if function passed - $idUser_Func = GUICtrlCreateButton("Run User Func", $iButtonWidth_3, $aiGUISize[1] - 20, $iButtonWidth_3, 20) - $iButtonWidth_Var = $iButtonWidth_3 - $iOffset = $iButtonWidth_3 * 2 - EndIf - ; Create Exit button and data label - $idExit_Script = GUICtrlCreateButton("Exit Script", $iOffset, $aiGUISize[1] - 20, $iButtonWidth_Var, 20) - $idData_Label = GUICtrlCreateLabel($sDisplayData, 0, $aiGUISize[1] - 20, $iButtonWidth_Var, 18, BitOR($_ARRAYCONSTANT_SS_CENTER, $_ARRAYCONSTANT_SS_CENTERIMAGE)) - ; Change label colour and create tooltip if required - Select - Case $bTruncated Or $iTranspose Or $bRange_Flag - GUICtrlSetColor($idData_Label, 0xFF0000) - GUICtrlSetTip($idData_Label, $sTipData) - EndSelect - EndIf - EndIf - ; Set resizing - GUICtrlSetResizing($idListView, $_ARRAYCONSTANT_GUI_DOCKBORDERS) - GUICtrlSetResizing($idCopy_ID, $_ARRAYCONSTANT_GUI_DOCKLEFT + $_ARRAYCONSTANT_GUI_DOCKBOTTOM + $_ARRAYCONSTANT_GUI_DOCKHEIGHT) - GUICtrlSetResizing($idCopy_Data, $_ARRAYCONSTANT_GUI_DOCKRIGHT + $_ARRAYCONSTANT_GUI_DOCKBOTTOM + $_ARRAYCONSTANT_GUI_DOCKHEIGHT) - GUICtrlSetResizing($idData_Label, $_ARRAYCONSTANT_GUI_DOCKLEFT + $_ARRAYCONSTANT_GUI_DOCKBOTTOM + $_ARRAYCONSTANT_GUI_DOCKHEIGHT) - GUICtrlSetResizing($idUser_Func, $_ARRAYCONSTANT_GUI_DOCKHCENTER + $_ARRAYCONSTANT_GUI_DOCKBOTTOM + $_ARRAYCONSTANT_GUI_DOCKHEIGHT) - GUICtrlSetResizing($idExit_Script, $_ARRAYCONSTANT_GUI_DOCKRIGHT + $_ARRAYCONSTANT_GUI_DOCKBOTTOM + $_ARRAYCONSTANT_GUI_DOCKHEIGHT) - - ; Start ListView update - GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_WM_SETREDRAW, 0, 0) - - ; Fill listview - Local $idItem - For $i = 0 To UBound($avArrayText) - 1 - $idItem = GUICtrlCreateListViewItem($avArrayText[$i], $idListView) - If $iAlt_Color Then - GUICtrlSetBkColor($idItem, $iAlt_Color) - EndIf - Next - - ; Align columns if required - $iColAlign = 2 for Right and 4 for Center - If $iColAlign Then - Local Const $_ARRAYCONSTANT_LVCF_FMT = 0x01 - Local Const $_ARRAYCONSTANT_LVM_SETCOLUMNW = (0x1000 + 96) - Local $tColumn = DllStructCreate("uint Mask;int Fmt;int CX;ptr Text;int TextMax;int SubItem;int Image;int Order;int cxMin;int cxDefault;int cxIdeal") - DllStructSetData($tColumn, "Mask", $_ARRAYCONSTANT_LVCF_FMT) - DllStructSetData($tColumn, "Fmt", $iColAlign / 2) ; Left = 0; Right = 1; Center = 2 - Local $pColumn = DllStructGetPtr($tColumn) - ; Loop through columns - For $i = 1 To $iSubItem_End - $iSubItem_Start + 1 - GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETCOLUMNW, $i, $pColumn) - Next - EndIf - - ; End ListView update - GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_WM_SETREDRAW, 1, 0) - - ; Allow for borders with and without vertical scrollbar - Local $iBorder = 45 - If UBound($avArrayText) > 20 Then - $iBorder += 20 - EndIf - ; Adjust dialog width - Local $iWidth = $iBorder, $iColWidth = 0, $aiColWidth[$iSubItem_End - $iSubItem_Start + 2], $iMin_ColWidth = 55 - ; Get required column widths to fit items - For $i = 0 To $iSubItem_End - $iSubItem_Start + 1 - GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETCOLUMNWIDTH, $i, $_ARRAYCONSTANT_LVSCW_AUTOSIZE) - $iColWidth = GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_GETCOLUMNWIDTH, $i, 0) - ; Set minimum if required - If $iColWidth < $iMin_ColWidth Then - GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETCOLUMNWIDTH, $i, $iMin_ColWidth) - $iColWidth = $iMin_ColWidth - EndIf - ; Add to total width - $iWidth += $iColWidth - ; Store value - $aiColWidth[$i] = $iColWidth - Next - ; Reduce width if no "Row" colukm - If $iNoRow Then $iWidth -= 55 - ; Now check max size - If $iWidth > @DesktopWidth - 100 Then - ; Apply max col width limit to reduce width - $iWidth = $iBorder - For $i = 0 To $iSubItem_End - $iSubItem_Start + 1 - If $aiColWidth[$i] > $iMax_ColWidth Then - ; Reset width - GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_SETCOLUMNWIDTH, $i, $iMax_ColWidth) - $iWidth += $iMax_ColWidth - Else - ; Retain width - $iWidth += $aiColWidth[$i] - EndIf - Next - EndIf - ; Check max/min width - If $iWidth > @DesktopWidth - 100 Then - $iWidth = @DesktopWidth - 100 - ElseIf $iWidth < $iMinSize Then - $iWidth = $iMinSize - EndIf - - ; Get row height - Local $tRECT = DllStructCreate("struct; long Left;long Top;long Right;long Bottom; endstruct") ; $tagRECT - DllCall("user32.dll", "struct*", "SendMessageW", "hwnd", GUICtrlGetHandle($idListView), "uint", $_ARRAYCONSTANT_LVM_GETITEMRECT, "wparam", 0, "struct*", $tRECT) - ; Set required GUI height - Local $aiWin_Pos = WinGetPos($hGUI) - Local $aiLV_Pos = ControlGetPos($hGUI, "", $idListView) - $iHeight = ((UBound($avArrayText) + 2) * (DllStructGetData($tRECT, "Bottom") - DllStructGetData($tRECT, "Top"))) + $aiWin_Pos[3] - $aiLV_Pos[3] - ; Check min/max height - If $iHeight > @DesktopHeight - 100 Then - $iHeight = @DesktopHeight - 100 - ElseIf $iHeight < $iMinSize Then - $iHeight = $iMinSize - EndIf - - If $iVerbose Then SplashOff() - - ; Display and resize dialog - GUISetState(@SW_HIDE, $hGUI) - WinMove($hGUI, "", (@DesktopWidth - $iWidth) / 2, (@DesktopHeight - $iHeight) / 2, $iWidth, $iHeight) - GUISetState(@SW_SHOW, $hGUI) - - ; Switch to GetMessage mode - Local $iOnEventMode = Opt("GUIOnEventMode", 0), $iMsg - - While 1 - - $iMsg = GUIGetMsg() ; Variable needed to check which "Copy" button was pressed - Switch $iMsg - Case $_ARRAYCONSTANT_GUI_EVENT_CLOSE - ExitLoop - - Case $idCopy_ID, $idCopy_Data - ; Count selected rows - Local $iSel_Count = GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_GETSELECTEDCOUNT, 0, 0) - ; Display splash dialog if required - If $iVerbose And (Not $iSel_Count) And ($iItem_End - $iItem_Start) * ($iSubItem_End - $iSubItem_Start) > 10000 Then - SplashTextOn("ArrayDisplay", "Copying data" & @CRLF & @CRLF & "Please be patient", 300, 100) - EndIf - ; Generate clipboard text - Local $sClip = "", $sItem, $aSplit - ; Add items - For $i = 0 To $iItem_End - $iItem_Start - ; Skip if copying selected rows and item not selected - If $iSel_Count And Not (GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_GETITEMSTATE, $i, $_ARRAYCONSTANT_LVIS_SELECTED)) Then - ContinueLoop - EndIf - $sItem = $avArrayText[$i] - If $iMsg = $idCopy_Data Then - ; Remove row ID if required - $sItem = StringRegExpReplace($sItem, "^\[\d+\].(.*)$", "$1") - EndIf - If $iCW_ColWidth Then - ; Expand columns - $aSplit = StringSplit($sItem, $sAD_Separator) - $sItem = "" - For $j = 1 To $aSplit[0] - $sItem &= StringFormat("%-" & $iCW_ColWidth + 1 & "s", StringLeft($aSplit[$j], $iCW_ColWidth)) - Next - Else - ; Use defined separator - $sItem = StringReplace($sItem, $sAD_Separator, $vUser_Separator) - EndIf - $sClip &= $sItem & @CRLF - Next - ; Add header line if required - If $iMsg = $idCopy_ID Then - If $iCW_ColWidth Then - $aSplit = StringSplit($sHeader, $sAD_Separator) - $sItem = "" - For $j = 1 To $aSplit[0] - $sItem &= StringFormat("%-" & $iCW_ColWidth + 1 & "s", StringLeft($aSplit[$j], $iCW_ColWidth)) - Next - Else - $sItem = StringReplace($sHeader, $sAD_Separator, $vUser_Separator) - EndIf - $sClip = $sItem & @CRLF & $sClip - EndIf - ;Send to clipboard - ClipPut($sClip) - ; Remove splash if used - SplashOff() - ; Refocus ListView - GUICtrlSetState($idListView, $_ARRAYCONSTANT_GUI_FOCUS) - - Case $idUser_Func - ; Get selected indices - Local $aiSelItems[$iRowLimit] = [0] - For $i = 0 To GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_GETITEMCOUNT, 0, 0) - If GUICtrlSendMsg($idListView, $_ARRAYCONSTANT_LVM_GETITEMSTATE, $i, $_ARRAYCONSTANT_LVIS_SELECTED) Then - $aiSelItems[0] += 1 - $aiSelItems[$aiSelItems[0]] = $i + $iItem_Start - EndIf - Next - ReDim $aiSelItems[$aiSelItems[0] + 1] - ; Pass array and selection to user function - $hUser_Function($aArray, $aiSelItems) - GUICtrlSetState($idListView, $_ARRAYCONSTANT_GUI_FOCUS) - - Case $idExit_Script - ; Clear up - GUIDelete($hGUI) - Exit - EndSwitch - WEnd - - ; Clear up - GUIDelete($hGUI) - Opt("GUICoordMode", $iCoordMode) ; Reset original Coord mode - Opt("GUIOnEventMode", $iOnEventMode) ; Reset original GUI mode - Opt("GUIDataSeparatorChar", $sCurr_Separator) ; Reset original separator - - Return 1 - -EndFunc ;==>_ArrayDisplay - -; #FUNCTION# ==================================================================================================================== -; Author ........: Melba23 -; Modified.......: -; =============================================================================================================================== -Func _ArrayExtract(Const ByRef $aArray, $iStart_Row = -1, $iEnd_Row = -1, $iStart_Col = -1, $iEnd_Col = -1) - - If $iStart_Row = Default Then $iStart_Row = -1 - If $iEnd_Row = Default Then $iEnd_Row = -1 - If $iStart_Col = Default Then $iStart_Col = -1 - If $iEnd_Col = Default Then $iEnd_Col = -1 - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - 1 - If $iEnd_Row = -1 Then $iEnd_Row = $iDim_1 - If $iStart_Row = -1 Then $iStart_Row = 0 - If $iStart_Row < -1 Or $iEnd_Row < -1 Then Return SetError(3, 0, -1) - If $iStart_Row > $iDim_1 Or $iEnd_Row > $iDim_1 Then Return SetError(3, 0, -1) - If $iStart_Row > $iEnd_Row Then Return SetError(4, 0, -1) - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - Local $aRetArray[$iEnd_Row - $iStart_Row + 1] - For $i = 0 To $iEnd_Row - $iStart_Row - $aRetArray[$i] = $aArray[$i + $iStart_Row] - Next - Return $aRetArray - Case 2 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - 1 - If $iEnd_Col = -1 Then $iEnd_Col = $iDim_2 - If $iStart_Col = -1 Then $iStart_Col = 0 - If $iStart_Col < -1 Or $iEnd_Col < -1 Then Return SetError(5, 0, -1) - If $iStart_Col > $iDim_2 Or $iEnd_Col > $iDim_2 Then Return SetError(5, 0, -1) - If $iStart_Col > $iEnd_Col Then Return SetError(6, 0, -1) - If $iStart_Col = $iEnd_Col Then - Local $aRetArray[$iEnd_Row - $iStart_Row + 1] - Else - Local $aRetArray[$iEnd_Row - $iStart_Row + 1][$iEnd_Col - $iStart_Col + 1] - EndIf - For $i = 0 To $iEnd_Row - $iStart_Row - For $j = 0 To $iEnd_Col - $iStart_Col - If $iStart_Col = $iEnd_Col Then - $aRetArray[$i] = $aArray[$i + $iStart_Row][$j + $iStart_Col] - Else - $aRetArray[$i][$j] = $aArray[$i + $iStart_Row][$j + $iStart_Col] - EndIf - Next - Next - Return $aRetArray - Case Else - Return SetError(2, 0, -1) - EndSwitch - - Return 1 - -EndFunc ;==>_ArrayExtract - -; #FUNCTION# ==================================================================================================================== -; Author ........: GEOSoft, Ultima -; Modified.......: -; =============================================================================================================================== -Func _ArrayFindAll(Const ByRef $aArray, $vValue, $iStart = 0, $iEnd = 0, $iCase = 0, $iCompare = 0, $iSubItem = 0, $bRow = False) - - If $iStart = Default Then $iStart = 0 - If $iEnd = Default Then $iEnd = 0 - If $iCase = Default Then $iCase = 0 - If $iCompare = Default Then $iCompare = 0 - If $iSubItem = Default Then $iSubItem = 0 - If $bRow = Default Then $bRow = False - - $iStart = _ArraySearch($aArray, $vValue, $iStart, $iEnd, $iCase, $iCompare, 1, $iSubItem, $bRow) - If @error Then Return SetError(@error, 0, -1) - - Local $iIndex = 0, $avResult[UBound($aArray, ($bRow ? $UBOUND_COLUMNS : $UBOUND_ROWS))] ; Set dimension for Column/Row - Do - $avResult[$iIndex] = $iStart - $iIndex += 1 - $iStart = _ArraySearch($aArray, $vValue, $iStart + 1, $iEnd, $iCase, $iCompare, 1, $iSubItem, $bRow) - Until @error - - ReDim $avResult[$iIndex] - Return $avResult -EndFunc ;==>_ArrayFindAll - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos -; Modified.......: Ultima - code cleanup; Melba23 - element position check, 2D support & multiple insertions -; =============================================================================================================================== -Func _ArrayInsert(ByRef $aArray, $vRange, $vValue = "", $iStart = 0, $sDelim_Item = "|", $sDelim_Row = @CRLF, $iForce = $ARRAYFILL_FORCE_DEFAULT) - - If $vValue = Default Then $vValue = "" - If $iStart = Default Then $iStart = 0 - If $sDelim_Item = Default Then $sDelim_Item = "|" - If $sDelim_Row = Default Then $sDelim_Row = @CRLF - If $iForce = Default Then $iForce = $ARRAYFILL_FORCE_DEFAULT - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - 1 - Local $hDataType = 0 - Switch $iForce - Case $ARRAYFILL_FORCE_INT - $hDataType = Int - Case $ARRAYFILL_FORCE_NUMBER - $hDataType = Number - Case $ARRAYFILL_FORCE_PTR - $hDataType = Ptr - Case $ARRAYFILL_FORCE_HWND - $hDataType = Hwnd - Case $ARRAYFILL_FORCE_STRING - $hDataType = String - EndSwitch - Local $aSplit_1, $aSplit_2 - If IsArray($vRange) Then - If UBound($vRange, $UBOUND_DIMENSIONS) <> 1 Or UBound($vRange, $UBOUND_ROWS) < 2 Then Return SetError(4, 0, -1) - Else - ; Expand range - Local $iNumber - $vRange = StringStripWS($vRange, 8) - $aSplit_1 = StringSplit($vRange, ";") - $vRange = "" - For $i = 1 To $aSplit_1[0] - ; Check for correct range syntax - If Not StringRegExp($aSplit_1[$i], "^\d+(-\d+)?$") Then Return SetError(3, 0, -1) - $aSplit_2 = StringSplit($aSplit_1[$i], "-") - Switch $aSplit_2[0] - Case 1 - $vRange &= $aSplit_2[1] & ";" - Case 2 - If Number($aSplit_2[2]) >= Number($aSplit_2[1]) Then - $iNumber = $aSplit_2[1] - 1 - Do - $iNumber += 1 - $vRange &= $iNumber & ";" - Until $iNumber = $aSplit_2[2] - EndIf - EndSwitch - Next - $vRange = StringSplit(StringTrimRight($vRange, 1), ";") - EndIf - If $vRange[1] < 0 Or $vRange[$vRange[0]] > $iDim_1 Then Return SetError(5, 0, -1) - For $i = 2 To $vRange[0] - If $vRange[$i] < $vRange[$i - 1] Then Return SetError(3, 0, -1) - Next - Local $iCopyTo_Index = $iDim_1 + $vRange[0] - Local $iInsertPoint_Index = $vRange[0] - ; Get lowest insert point - Local $iInsert_Index = $vRange[$iInsertPoint_Index] - ; Insert lines - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - If $iForce = $ARRAYFILL_FORCE_SINGLEITEM Then - ReDim $aArray[$iDim_1 + $vRange[0] + 1] - For $iReadFromIndex = $iDim_1 To 0 Step -1 - ; Copy existing elements - $aArray[$iCopyTo_Index] = $aArray[$iReadFromIndex] - ; Move up array - $iCopyTo_Index -= 1 - ; Get next insert point - $iInsert_Index = $vRange[$iInsertPoint_Index] - While $iReadFromIndex = $iInsert_Index - ; Insert new item - $aArray[$iCopyTo_Index] = $vValue - ; Move up array - $iCopyTo_Index -= 1 - ; Reset insert index - $iInsertPoint_Index -= 1 - If $iInsertPoint_Index < 1 Then ExitLoop 2 - ; Get next insert point - $iInsert_Index = $vRange[$iInsertPoint_Index] - WEnd - Next - Return $iDim_1 + $vRange[0] + 1 - EndIf - ReDim $aArray[$iDim_1 + $vRange[0] + 1] - If IsArray($vValue) Then - If UBound($vValue, $UBOUND_DIMENSIONS) <> 1 Then Return SetError(5, 0, -1) - $hDataType = 0 - Else - Local $aTmp = StringSplit($vValue, $sDelim_Item, $STR_NOCOUNT + $STR_ENTIRESPLIT) - If UBound($aTmp, $UBOUND_ROWS) = 1 Then - $aTmp[0] = $vValue - $hDataType = 0 - EndIf - $vValue = $aTmp - EndIf - For $iReadFromIndex = $iDim_1 To 0 Step -1 - ; Copy existing elements - $aArray[$iCopyTo_Index] = $aArray[$iReadFromIndex] - ; Move up array - $iCopyTo_Index -= 1 - ; Get next insert point - $iInsert_Index = $vRange[$iInsertPoint_Index] - While $iReadFromIndex = $iInsert_Index - ; Insert new item - If $iInsertPoint_Index <= UBound($vValue, $UBOUND_ROWS) Then - If IsFunc($hDataType) Then - $aArray[$iCopyTo_Index] = $hDataType($vValue[$iInsertPoint_Index - 1]) - Else - $aArray[$iCopyTo_Index] = $vValue[$iInsertPoint_Index - 1] - EndIf - Else - $aArray[$iCopyTo_Index] = "" - EndIf - ; Move up array - $iCopyTo_Index -= 1 - ; Reset insert index - $iInsertPoint_Index -= 1 - If $iInsertPoint_Index = 0 Then ExitLoop 2 - ; Get next insert point - $iInsert_Index = $vRange[$iInsertPoint_Index] - WEnd - Next - Case 2 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - If $iStart < 0 Or $iStart > $iDim_2 - 1 Then Return SetError(6, 0, -1) - Local $iValDim_1, $iValDim_2 - If IsArray($vValue) Then - If UBound($vValue, $UBOUND_DIMENSIONS) <> 2 Then Return SetError(7, 0, -1) - $iValDim_1 = UBound($vValue, $UBOUND_ROWS) - $iValDim_2 = UBound($vValue, $UBOUND_COLUMNS) - $hDataType = 0 - Else - ; Convert string to 2D array - $aSplit_1 = StringSplit($vValue, $sDelim_Row, $STR_NOCOUNT + $STR_ENTIRESPLIT) - $iValDim_1 = UBound($aSplit_1, $UBOUND_ROWS) - StringReplace($aSplit_1[0], $sDelim_Item, "") - $iValDim_2 = @extended + 1 - Local $aTmp[$iValDim_1][$iValDim_2] - For $i = 0 To $iValDim_1 - 1 - $aSplit_2 = StringSplit($aSplit_1[$i], $sDelim_Item, $STR_NOCOUNT + $STR_ENTIRESPLIT) - For $j = 0 To $iValDim_2 - 1 - $aTmp[$i][$j] = $aSplit_2[$j] - Next - Next - $vValue = $aTmp - EndIf - ; Check if too many columns to fit - If UBound($vValue, $UBOUND_COLUMNS) + $iStart > UBound($aArray, $UBOUND_COLUMNS) Then Return SetError(8, 0, -1) - ReDim $aArray[$iDim_1 + $vRange[0] + 1][$iDim_2] - For $iReadFromIndex = $iDim_1 To 0 Step -1 - ; Copy existing elements - For $j = 0 To $iDim_2 - 1 - $aArray[$iCopyTo_Index][$j] = $aArray[$iReadFromIndex][$j] - Next - ; Move up array - $iCopyTo_Index -= 1 - ; Get next insert point - $iInsert_Index = $vRange[$iInsertPoint_Index] - While $iReadFromIndex = $iInsert_Index - ; Insert new item - For $j = 0 To $iDim_2 - 1 - If $j < $iStart Then - $aArray[$iCopyTo_Index][$j] = "" - ElseIf $j - $iStart > $iValDim_2 - 1 Then - $aArray[$iCopyTo_Index][$j] = "" - Else - If $iInsertPoint_Index - 1 < $iValDim_1 Then - If IsFunc($hDataType) Then - $aArray[$iCopyTo_Index][$j] = $hDataType($vValue[$iInsertPoint_Index - 1][$j - $iStart]) - Else - $aArray[$iCopyTo_Index][$j] = $vValue[$iInsertPoint_Index - 1][$j - $iStart] - EndIf - Else - $aArray[$iCopyTo_Index][$j] = "" - EndIf - EndIf - Next - ; Move up array - $iCopyTo_Index -= 1 - ; Reset insert index - $iInsertPoint_Index -= 1 - If $iInsertPoint_Index = 0 Then ExitLoop 2 - ; Get next insert point - $iInsert_Index = $vRange[$iInsertPoint_Index] - WEnd - Next - Case Else - Return SetError(2, 0, -1) - EndSwitch - - Return UBound($aArray, $UBOUND_ROWS) -EndFunc ;==>_ArrayInsert - -; #FUNCTION# ==================================================================================================================== -; Author ........: Cephas -; Modified.......: Jos - Added $iCompNumeric and $iStart parameters and logic, Ultima - added $iEnd parameter, code cleanup; Melba23 - Added 2D support -; =============================================================================================================================== -Func _ArrayMax(Const ByRef $aArray, $iCompNumeric = 0, $iStart = -1, $iEnd = -1, $iSubItem = 0) - - Local $iResult = _ArrayMaxIndex($aArray, $iCompNumeric, $iStart, $iEnd, $iSubItem) - If @error Then Return SetError(@error, 0, "") - If UBound($aArray, $UBOUND_DIMENSIONS) = 1 Then - Return $aArray[$iResult] - Else - Return $aArray[$iResult][$iSubItem] - EndIf -EndFunc ;==>_ArrayMax - -; #FUNCTION# ==================================================================================================================== -; Author ........: Cephas -; Modified.......: Jos - Added $iCompNumeric and $iStart parameters and logic; Melba23 - Added 2D support; guinness - Reduced duplicate code. -; =============================================================================================================================== -Func _ArrayMaxIndex(Const ByRef $aArray, $iCompNumeric = 0, $iStart = -1, $iEnd = -1, $iSubItem = 0) - - If $iCompNumeric = Default Then $iCompNumeric = 0 - If $iStart = Default Then $iStart = -1 - If $iEnd = Default Then $iEnd = -1 - If $iSubItem = Default Then $iSubItem = 0 - Local $iRet = __Array_MinMaxIndex($aArray, $iCompNumeric, $iStart, $iEnd, $iSubItem, __Array_GreaterThan) ; Pass a delegate function to check if value1 > value2. - Return SetError(@error, 0, $iRet) -EndFunc ;==>_ArrayMaxIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Cephas -; Modified.......: Jos - Added $iCompNumeric and $iStart parameters and logic, Ultima - added $iEnd parameter, code cleanup; Melba23 - Added 2D support -; =============================================================================================================================== -Func _ArrayMin(Const ByRef $aArray, $iCompNumeric = 0, $iStart = -1, $iEnd = -1, $iSubItem = 0) - - Local $iResult = _ArrayMinIndex($aArray, $iCompNumeric, $iStart, $iEnd, $iSubItem) - If @error Then Return SetError(@error, 0, "") - If UBound($aArray, $UBOUND_DIMENSIONS) = 1 Then - Return $aArray[$iResult] - Else - Return $aArray[$iResult][$iSubItem] - EndIf -EndFunc ;==>_ArrayMin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Cephas -; Modified.......: Jos - Added $iCompNumeric and $iStart parameters and logic; Melba23 - Added 2D support; guinness - Reduced duplicate code. -; =============================================================================================================================== -Func _ArrayMinIndex(Const ByRef $aArray, $iCompNumeric = 0, $iStart = -1, $iEnd = -1, $iSubItem = 0) - If $iCompNumeric = Default Then $iCompNumeric = 0 - If $iStart = Default Then $iStart = -1 - If $iEnd = Default Then $iEnd = -1 - If $iSubItem = Default Then $iSubItem = 0 - Local $iRet = __Array_MinMaxIndex($aArray, $iCompNumeric, $iStart, $iEnd, $iSubItem, __Array_LessThan) ; Pass a delegate function to check if value1 < value2. - Return SetError(@error, 0, $iRet) -EndFunc ;==>_ArrayMinIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Erik Pilsits -; Modified.......: Melba23 - added support for empty arrays -; =============================================================================================================================== -Func _ArrayPermute(ByRef $aArray, $sDelimiter = "") - - If $sDelimiter = Default Then $sDelimiter = "" - If Not IsArray($aArray) Then Return SetError(1, 0, 0) - If UBound($aArray, $UBOUND_DIMENSIONS) <> 1 Then Return SetError(2, 0, 0) - Local $iSize = UBound($aArray), $iFactorial = 1, $aIdx[$iSize], $aResult[1], $iCount = 1 - - If UBound($aArray) Then - For $i = 0 To $iSize - 1 - $aIdx[$i] = $i - Next - For $i = $iSize To 1 Step -1 - $iFactorial *= $i - Next - ReDim $aResult[$iFactorial + 1] - $aResult[0] = $iFactorial - __Array_ExeterInternal($aArray, 0, $iSize, $sDelimiter, $aIdx, $aResult, $iCount) - Else - $aResult[0] = 0 - EndIf - Return $aResult -EndFunc ;==>_ArrayPermute - -; #FUNCTION# ==================================================================================================================== -; Author ........: Cephas -; Modified.......: Ultima - code cleanup; Melba23 - added support for empty arrays -; =============================================================================================================================== -Func _ArrayPop(ByRef $aArray) - If (Not IsArray($aArray)) Then Return SetError(1, 0, "") - If UBound($aArray, $UBOUND_DIMENSIONS) <> 1 Then Return SetError(2, 0, "") - - Local $iUBound = UBound($aArray) - 1 - If $iUBound = -1 Then Return SetError(3, 0, "") - Local $sLastVal = $aArray[$iUBound] - - ; Remove last item - If $iUBound > -1 Then - ReDim $aArray[$iUBound] - EndIf - - ; Return last item - Return $sLastVal -EndFunc ;==>_ArrayPop - -; #FUNCTION# ==================================================================================================================== -; Author ........: Helias Gerassimou(hgeras), Ultima - code cleanup/rewrite (major optimization), fixed support for $vValue as an array -; Modified.......: -; =============================================================================================================================== -Func _ArrayPush(ByRef $aArray, $vValue, $iDirection = 0) - - If $iDirection = Default Then $iDirection = 0 - If (Not IsArray($aArray)) Then Return SetError(1, 0, 0) - If UBound($aArray, $UBOUND_DIMENSIONS) <> 1 Then Return SetError(3, 0, 0) - Local $iUBound = UBound($aArray) - 1 - - If IsArray($vValue) Then ; $vValue is an array - Local $iUBoundS = UBound($vValue) - If ($iUBoundS - 1) > $iUBound Then Return SetError(2, 0, 0) - - ; $vValue is an array smaller than $aArray - If $iDirection Then ; slide right, add to front - For $i = $iUBound To $iUBoundS Step -1 - $aArray[$i] = $aArray[$i - $iUBoundS] - Next - For $i = 0 To $iUBoundS - 1 - $aArray[$i] = $vValue[$i] - Next - Else ; slide left, add to end - For $i = 0 To $iUBound - $iUBoundS - $aArray[$i] = $aArray[$i + $iUBoundS] - Next - For $i = 0 To $iUBoundS - 1 - $aArray[$i + $iUBound - $iUBoundS + 1] = $vValue[$i] - Next - EndIf - Else - ; Check for empty array - If $iUBound > -1 Then - If $iDirection Then ; slide right, add to front - For $i = $iUBound To 1 Step -1 - $aArray[$i] = $aArray[$i - 1] - Next - $aArray[0] = $vValue - Else ; slide left, add to end - For $i = 0 To $iUBound - 1 - $aArray[$i] = $aArray[$i + 1] - Next - $aArray[$iUBound] = $vValue - EndIf - EndIf - EndIf - - Return 1 -EndFunc ;==>_ArrayPush - -; #FUNCTION# ==================================================================================================================== -; Author ........: Brian Keene -; Modified.......: Jos - added $iStart parameter and logic; Tylo - added $iEnd parameter and rewrote it for speed -; =============================================================================================================================== -Func _ArrayReverse(ByRef $aArray, $iStart = 0, $iEnd = 0) - - If $iStart = Default Then $iStart = 0 - If $iEnd = Default Then $iEnd = 0 - If Not IsArray($aArray) Then Return SetError(1, 0, 0) - If UBound($aArray, $UBOUND_DIMENSIONS) <> 1 Then Return SetError(3, 0, 0) - If Not UBound($aArray) Then Return SetError(4, 0, 0) - - Local $vTmp, $iUBound = UBound($aArray) - 1 - - ; Bounds checking - If $iEnd < 1 Or $iEnd > $iUBound Then $iEnd = $iUBound - If $iStart < 0 Then $iStart = 0 - If $iStart > $iEnd Then Return SetError(2, 0, 0) - - ; Reverse - For $i = $iStart To Int(($iStart + $iEnd - 1) / 2) - $vTmp = $aArray[$i] - $aArray[$i] = $aArray[$iEnd] - $aArray[$iEnd] = $vTmp - $iEnd -= 1 - Next - - Return 1 -EndFunc ;==>_ArrayReverse - -; #FUNCTION# ==================================================================================================================== -; Author ........: Michael Michta -; Modified.......: gcriaco ; Ultima - 2D arrays supported, directional search, code cleanup, optimization; Melba23 - added support for empty arrays and row search; BrunoJ - Added compare option 3 to use a regex pattern -; =============================================================================================================================== -Func _ArraySearch(Const ByRef $aArray, $vValue, $iStart = 0, $iEnd = 0, $iCase = 0, $iCompare = 0, $iForward = 1, $iSubItem = -1, $bRow = False) - - If $iStart = Default Then $iStart = 0 - If $iEnd = Default Then $iEnd = 0 - If $iCase = Default Then $iCase = 0 - If $iCompare = Default Then $iCompare = 0 - If $iForward = Default Then $iForward = 1 - If $iSubItem = Default Then $iSubItem = -1 - If $bRow = Default Then $bRow = False - - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray) - 1 - If $iDim_1 = -1 Then Return SetError(3, 0, -1) - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - 1 - - ; Same var Type of comparison - Local $bCompType = False - If $iCompare = 2 Then - $iCompare = 0 - $bCompType = True - EndIf - ; Bounds checking - If $bRow Then - If UBound($aArray, $UBOUND_DIMENSIONS) = 1 Then Return SetError(5, 0, -1) - If $iEnd < 1 Or $iEnd > $iDim_2 Then $iEnd = $iDim_2 - If $iStart < 0 Then $iStart = 0 - If $iStart > $iEnd Then Return SetError(4, 0, -1) - Else - If $iEnd < 1 Or $iEnd > $iDim_1 Then $iEnd = $iDim_1 - If $iStart < 0 Then $iStart = 0 - If $iStart > $iEnd Then Return SetError(4, 0, -1) - EndIf - ; Direction (flip if $iForward = 0) - Local $iStep = 1 - If Not $iForward Then - Local $iTmp = $iStart - $iStart = $iEnd - $iEnd = $iTmp - $iStep = -1 - EndIf - - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 ; 1D array search - If Not $iCompare Then - If Not $iCase Then - For $i = $iStart To $iEnd Step $iStep - If $bCompType And VarGetType($aArray[$i]) <> VarGetType($vValue) Then ContinueLoop - If $aArray[$i] = $vValue Then Return $i - Next - Else - For $i = $iStart To $iEnd Step $iStep - If $bCompType And VarGetType($aArray[$i]) <> VarGetType($vValue) Then ContinueLoop - If $aArray[$i] == $vValue Then Return $i - Next - EndIf - Else - For $i = $iStart To $iEnd Step $iStep - If $iCompare = 3 Then - If StringRegExp($aArray[$i], $vValue) Then Return $i - Else - If StringInStr($aArray[$i], $vValue, $iCase) > 0 Then Return $i - EndIf - Next - EndIf - Case 2 ; 2D array search - Local $iDim_Sub - If $bRow Then - ; Search rows - $iDim_Sub = $iDim_1 - If $iSubItem > $iDim_Sub Then $iSubItem = $iDim_Sub - If $iSubItem < 0 Then - ; will search for all Col - $iSubItem = 0 - Else - $iDim_Sub = $iSubItem - EndIf - Else - ; Search columns - $iDim_Sub = $iDim_2 - If $iSubItem > $iDim_Sub Then $iSubItem = $iDim_Sub - If $iSubItem < 0 Then - ; will search for all Col - $iSubItem = 0 - Else - $iDim_Sub = $iSubItem - EndIf - EndIf - ; Now do the search - For $j = $iSubItem To $iDim_Sub - If Not $iCompare Then - If Not $iCase Then - For $i = $iStart To $iEnd Step $iStep - If $bRow Then - If $bCompType And VarGetType($aArray[$j][$j]) <> VarGetType($vValue) Then ContinueLoop - If $aArray[$j][$i] = $vValue Then Return $i - Else - If $bCompType And VarGetType($aArray[$i][$j]) <> VarGetType($vValue) Then ContinueLoop - If $aArray[$i][$j] = $vValue Then Return $i - EndIf - Next - Else - For $i = $iStart To $iEnd Step $iStep - If $bRow Then - If $bCompType And VarGetType($aArray[$j][$i]) <> VarGetType($vValue) Then ContinueLoop - If $aArray[$j][$i] == $vValue Then Return $i - Else - If $bCompType And VarGetType($aArray[$i][$j]) <> VarGetType($vValue) Then ContinueLoop - If $aArray[$i][$j] == $vValue Then Return $i - EndIf - Next - EndIf - Else - For $i = $iStart To $iEnd Step $iStep - If $iCompare = 3 Then - If $bRow Then - If StringRegExp($aArray[$j][$i], $vValue) Then Return $i - Else - If StringRegExp($aArray[$i][$j], $vValue) Then Return $i - EndIf - Else - If $bRow Then - If StringInStr($aArray[$j][$i], $vValue, $iCase) > 0 Then Return $i - Else - If StringInStr($aArray[$i][$j], $vValue, $iCase) > 0 Then Return $i - EndIf - EndIf - Next - EndIf - Next - Case Else - Return SetError(2, 0, -1) - EndSwitch - Return SetError(6, 0, -1) -EndFunc ;==>_ArraySearch - -; #FUNCTION# ==================================================================================================================== -; Author ........: Melba23 -; Modified.......: -; =============================================================================================================================== -Func _ArrayShuffle(ByRef $aArray, $iStart_Row = 0, $iEnd_Row = 0, $iCol = -1) - - ; Fisher–Yates algorithm - - If $iStart_Row = Default Then $iStart_Row = 0 - If $iEnd_Row = Default Then $iEnd_Row = 0 - If $iCol = Default Then $iCol = -1 - - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - If $iEnd_Row = 0 Then $iEnd_Row = $iDim_1 - 1 - If $iStart_Row < 0 Or $iStart_Row > $iDim_1 - 1 Then Return SetError(3, 0, -1) - If $iEnd_Row < 1 Or $iEnd_Row > $iDim_1 - 1 Then Return SetError(3, 0, -1) - If $iStart_Row > $iEnd_Row Then Return SetError(4, 0, -1) - - Local $vTmp, $iRand - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - For $i = $iEnd_Row To $iStart_Row + 1 Step -1 - $iRand = Random($iStart_Row, $i, 1) - $vTmp = $aArray[$i] - $aArray[$i] = $aArray[$iRand] - $aArray[$iRand] = $vTmp - Next - Return 1 - Case 2 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - If $iCol < -1 Or $iCol > $iDim_2 - 1 Then Return SetError(5, 0, -1) - Local $iCol_Start, $iCol_End - If $iCol = -1 Then - $iCol_Start = 0 - $iCol_End = $iDim_2 - 1 - Else - $iCol_Start = $iCol - $iCol_End = $iCol - EndIf - For $i = $iEnd_Row To $iStart_Row + 1 Step -1 - $iRand = Random($iStart_Row, $i, 1) - For $j = $iCol_Start To $iCol_End - $vTmp = $aArray[$i][$j] - $aArray[$i][$j] = $aArray[$iRand][$j] - $aArray[$iRand][$j] = $vTmp - Next - Next - Return 1 - Case Else - Return SetError(2, 0, -1) - EndSwitch - -EndFunc ;==>_ArrayShuffle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos -; Modified.......: LazyCoder - added $iSubItem option; Tylo - implemented stable QuickSort algo; Jos - changed logic to correctly Sort arrays with mixed Values and Strings; Melba23 - implemented stable pivot algo -; =============================================================================================================================== -Func _ArraySort(ByRef $aArray, $iDescending = 0, $iStart = 0, $iEnd = 0, $iSubItem = 0, $iPivot = 0) - - If $iDescending = Default Then $iDescending = 0 - If $iStart = Default Then $iStart = 0 - If $iEnd = Default Then $iEnd = 0 - If $iSubItem = Default Then $iSubItem = 0 - If $iPivot = Default Then $iPivot = 0 - If Not IsArray($aArray) Then Return SetError(1, 0, 0) - - Local $iUBound = UBound($aArray) - 1 - If $iUBound = -1 Then Return SetError(5, 0, 0) - - ; Bounds checking - If $iEnd = Default Then $iEnd = 0 - If $iEnd < 1 Or $iEnd > $iUBound Or $iEnd = Default Then $iEnd = $iUBound - If $iStart < 0 Or $iStart = Default Then $iStart = 0 - If $iStart > $iEnd Then Return SetError(2, 0, 0) - - If $iDescending = Default Then $iDescending = 0 - If $iPivot = Default Then $iPivot = 0 - If $iSubItem = Default Then $iSubItem = 0 - - ; Sort - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - If $iPivot Then ; Switch algorithms as required - __ArrayDualPivotSort($aArray, $iStart, $iEnd) - Else - __ArrayQuickSort1D($aArray, $iStart, $iEnd) - EndIf - If $iDescending Then _ArrayReverse($aArray, $iStart, $iEnd) - Case 2 - If $iPivot Then Return SetError(6, 0, 0) ; Error if 2D array and $iPivot - Local $iSubMax = UBound($aArray, $UBOUND_COLUMNS) - 1 - If $iSubItem > $iSubMax Then Return SetError(3, 0, 0) - - If $iDescending Then - $iDescending = -1 - Else - $iDescending = 1 - EndIf - - __ArrayQuickSort2D($aArray, $iDescending, $iStart, $iEnd, $iSubItem, $iSubMax) - Case Else - Return SetError(4, 0, 0) - EndSwitch - - Return 1 -EndFunc ;==>_ArraySort - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __ArrayQuickSort1D -; Description ...: Helper function for sorting 1D arrays -; Syntax.........: __ArrayQuickSort1D ( ByRef $aArray, ByRef $iStart, ByRef $iEnd ) -; Parameters ....: $aArray - Array to sort -; $iStart - Index of array to start sorting at -; $iEnd - Index of array to stop sorting at -; Return values .: None -; Author ........: Jos van der Zande, LazyCoder, Tylo, Ultima -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __ArrayQuickSort1D(ByRef $aArray, Const ByRef $iStart, Const ByRef $iEnd) - If $iEnd <= $iStart Then Return - - Local $vTmp - - ; InsertionSort (faster for smaller segments) - If ($iEnd - $iStart) < 15 Then - Local $vCur - For $i = $iStart + 1 To $iEnd - $vTmp = $aArray[$i] - - If IsNumber($vTmp) Then - For $j = $i - 1 To $iStart Step -1 - $vCur = $aArray[$j] - ; If $vTmp >= $vCur Then ExitLoop - If ($vTmp >= $vCur And IsNumber($vCur)) Or (Not IsNumber($vCur) And StringCompare($vTmp, $vCur) >= 0) Then ExitLoop - $aArray[$j + 1] = $vCur - Next - Else - For $j = $i - 1 To $iStart Step -1 - If (StringCompare($vTmp, $aArray[$j]) >= 0) Then ExitLoop - $aArray[$j + 1] = $aArray[$j] - Next - EndIf - - $aArray[$j + 1] = $vTmp - Next - Return - EndIf - - ; QuickSort - Local $L = $iStart, $R = $iEnd, $vPivot = $aArray[Int(($iStart + $iEnd) / 2)], $bNum = IsNumber($vPivot) - Do - If $bNum Then - ; While $aArray[$L] < $vPivot - While ($aArray[$L] < $vPivot And IsNumber($aArray[$L])) Or (Not IsNumber($aArray[$L]) And StringCompare($aArray[$L], $vPivot) < 0) - $L += 1 - WEnd - ; While $aArray[$R] > $vPivot - While ($aArray[$R] > $vPivot And IsNumber($aArray[$R])) Or (Not IsNumber($aArray[$R]) And StringCompare($aArray[$R], $vPivot) > 0) - $R -= 1 - WEnd - Else - While (StringCompare($aArray[$L], $vPivot) < 0) - $L += 1 - WEnd - While (StringCompare($aArray[$R], $vPivot) > 0) - $R -= 1 - WEnd - EndIf - - ; Swap - If $L <= $R Then - $vTmp = $aArray[$L] - $aArray[$L] = $aArray[$R] - $aArray[$R] = $vTmp - $L += 1 - $R -= 1 - EndIf - Until $L > $R - - __ArrayQuickSort1D($aArray, $iStart, $R) - __ArrayQuickSort1D($aArray, $L, $iEnd) -EndFunc ;==>__ArrayQuickSort1D - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __ArrayQuickSort2D -; Description ...: Helper function for sorting 2D arrays -; Syntax.........: __ArrayQuickSort2D ( ByRef $aArray, ByRef $iStep, ByRef $iStart, ByRef $iEnd, ByRef $iSubItem, ByRef $iSubMax ) -; Parameters ....: $aArray - Array to sort -; $iStep - Step size (should be 1 to sort ascending, -1 to sort descending!) -; $iStart - Index of array to start sorting at -; $iEnd - Index of array to stop sorting at -; $iSubItem - Sub-index to sort on in 2D arrays -; $iSubMax - Maximum sub-index that array has -; Return values .: None -; Author ........: Jos van der Zande, LazyCoder, Tylo, Ultima -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __ArrayQuickSort2D(ByRef $aArray, Const ByRef $iStep, Const ByRef $iStart, Const ByRef $iEnd, Const ByRef $iSubItem, Const ByRef $iSubMax) - If $iEnd <= $iStart Then Return - - ; QuickSort - Local $vTmp, $L = $iStart, $R = $iEnd, $vPivot = $aArray[Int(($iStart + $iEnd) / 2)][$iSubItem], $bNum = IsNumber($vPivot) - Do - If $bNum Then - ; While $aArray[$L][$iSubItem] < $vPivot - While ($iStep * ($aArray[$L][$iSubItem] - $vPivot) < 0 And IsNumber($aArray[$L][$iSubItem])) Or (Not IsNumber($aArray[$L][$iSubItem]) And $iStep * StringCompare($aArray[$L][$iSubItem], $vPivot) < 0) - $L += 1 - WEnd - ; While $aArray[$R][$iSubItem] > $vPivot - While ($iStep * ($aArray[$R][$iSubItem] - $vPivot) > 0 And IsNumber($aArray[$R][$iSubItem])) Or (Not IsNumber($aArray[$R][$iSubItem]) And $iStep * StringCompare($aArray[$R][$iSubItem], $vPivot) > 0) - $R -= 1 - WEnd - Else - While ($iStep * StringCompare($aArray[$L][$iSubItem], $vPivot) < 0) - $L += 1 - WEnd - While ($iStep * StringCompare($aArray[$R][$iSubItem], $vPivot) > 0) - $R -= 1 - WEnd - EndIf - - ; Swap - If $L <= $R Then - For $i = 0 To $iSubMax - $vTmp = $aArray[$L][$i] - $aArray[$L][$i] = $aArray[$R][$i] - $aArray[$R][$i] = $vTmp - Next - $L += 1 - $R -= 1 - EndIf - Until $L > $R - - __ArrayQuickSort2D($aArray, $iStep, $iStart, $R, $iSubItem, $iSubMax) - __ArrayQuickSort2D($aArray, $iStep, $L, $iEnd, $iSubItem, $iSubMax) -EndFunc ;==>__ArrayQuickSort2D - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __ArrayDualPivotSort -; Description ...: Helper function for sorting 1D arrays -; Syntax.........: __ArrayDualPivotSort ( ByRef $aArray, $iPivot_Left, $iPivot_Right [, $bLeftMost = True ] ) -; Parameters ....: $aArray - Array to sort -; $iPivot_Left - Index of the array to start sorting at -; $iPivot_Right - Index of the array to stop sorting at -; $bLeftMost - Indicates if this part is the leftmost in the range -; Return values .: None -; Author ........: Erik Pilsits -; Modified.......: Melba23 -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __ArrayDualPivotSort(ByRef $aArray, $iPivot_Left, $iPivot_Right, $bLeftMost = True) - If $iPivot_Left > $iPivot_Right Then Return - Local $iLength = $iPivot_Right - $iPivot_Left + 1 - Local $i, $j, $k, $iAi, $iAk, $iA1, $iA2, $iLast - If $iLength < 45 Then ; Use insertion sort for small arrays - value chosen empirically - If $bLeftMost Then - $i = $iPivot_Left - While $i < $iPivot_Right - $j = $i - $iAi = $aArray[$i + 1] - While $iAi < $aArray[$j] - $aArray[$j + 1] = $aArray[$j] - $j -= 1 - If $j + 1 = $iPivot_Left Then ExitLoop - WEnd - $aArray[$j + 1] = $iAi - $i += 1 - WEnd - Else - While 1 - If $iPivot_Left >= $iPivot_Right Then Return 1 - $iPivot_Left += 1 - If $aArray[$iPivot_Left] < $aArray[$iPivot_Left - 1] Then ExitLoop - WEnd - While 1 - $k = $iPivot_Left - $iPivot_Left += 1 - If $iPivot_Left > $iPivot_Right Then ExitLoop - $iA1 = $aArray[$k] - $iA2 = $aArray[$iPivot_Left] - If $iA1 < $iA2 Then - $iA2 = $iA1 - $iA1 = $aArray[$iPivot_Left] - EndIf - $k -= 1 - While $iA1 < $aArray[$k] - $aArray[$k + 2] = $aArray[$k] - $k -= 1 - WEnd - $aArray[$k + 2] = $iA1 - While $iA2 < $aArray[$k] - $aArray[$k + 1] = $aArray[$k] - $k -= 1 - WEnd - $aArray[$k + 1] = $iA2 - $iPivot_Left += 1 - WEnd - $iLast = $aArray[$iPivot_Right] - $iPivot_Right -= 1 - While $iLast < $aArray[$iPivot_Right] - $aArray[$iPivot_Right + 1] = $aArray[$iPivot_Right] - $iPivot_Right -= 1 - WEnd - $aArray[$iPivot_Right + 1] = $iLast - EndIf - Return 1 - EndIf - Local $iSeventh = BitShift($iLength, 3) + BitShift($iLength, 6) + 1 - Local $iE1, $iE2, $iE3, $iE4, $iE5, $t - $iE3 = Ceiling(($iPivot_Left + $iPivot_Right) / 2) - $iE2 = $iE3 - $iSeventh - $iE1 = $iE2 - $iSeventh - $iE4 = $iE3 + $iSeventh - $iE5 = $iE4 + $iSeventh - If $aArray[$iE2] < $aArray[$iE1] Then - $t = $aArray[$iE2] - $aArray[$iE2] = $aArray[$iE1] - $aArray[$iE1] = $t - EndIf - If $aArray[$iE3] < $aArray[$iE2] Then - $t = $aArray[$iE3] - $aArray[$iE3] = $aArray[$iE2] - $aArray[$iE2] = $t - If $t < $aArray[$iE1] Then - $aArray[$iE2] = $aArray[$iE1] - $aArray[$iE1] = $t - EndIf - EndIf - If $aArray[$iE4] < $aArray[$iE3] Then - $t = $aArray[$iE4] - $aArray[$iE4] = $aArray[$iE3] - $aArray[$iE3] = $t - If $t < $aArray[$iE2] Then - $aArray[$iE3] = $aArray[$iE2] - $aArray[$iE2] = $t - If $t < $aArray[$iE1] Then - $aArray[$iE2] = $aArray[$iE1] - $aArray[$iE1] = $t - EndIf - EndIf - EndIf - If $aArray[$iE5] < $aArray[$iE4] Then - $t = $aArray[$iE5] - $aArray[$iE5] = $aArray[$iE4] - $aArray[$iE4] = $t - If $t < $aArray[$iE3] Then - $aArray[$iE4] = $aArray[$iE3] - $aArray[$iE3] = $t - If $t < $aArray[$iE2] Then - $aArray[$iE3] = $aArray[$iE2] - $aArray[$iE2] = $t - If $t < $aArray[$iE1] Then - $aArray[$iE2] = $aArray[$iE1] - $aArray[$iE1] = $t - EndIf - EndIf - EndIf - EndIf - Local $iLess = $iPivot_Left - Local $iGreater = $iPivot_Right - If (($aArray[$iE1] <> $aArray[$iE2]) And ($aArray[$iE2] <> $aArray[$iE3]) And ($aArray[$iE3] <> $aArray[$iE4]) And ($aArray[$iE4] <> $aArray[$iE5])) Then - Local $iPivot_1 = $aArray[$iE2] - Local $iPivot_2 = $aArray[$iE4] - $aArray[$iE2] = $aArray[$iPivot_Left] - $aArray[$iE4] = $aArray[$iPivot_Right] - Do - $iLess += 1 - Until $aArray[$iLess] >= $iPivot_1 - Do - $iGreater -= 1 - Until $aArray[$iGreater] <= $iPivot_2 - $k = $iLess - While $k <= $iGreater - $iAk = $aArray[$k] - If $iAk < $iPivot_1 Then - $aArray[$k] = $aArray[$iLess] - $aArray[$iLess] = $iAk - $iLess += 1 - ElseIf $iAk > $iPivot_2 Then - While $aArray[$iGreater] > $iPivot_2 - $iGreater -= 1 - If $iGreater + 1 = $k Then ExitLoop 2 - WEnd - If $aArray[$iGreater] < $iPivot_1 Then - $aArray[$k] = $aArray[$iLess] - $aArray[$iLess] = $aArray[$iGreater] - $iLess += 1 - Else - $aArray[$k] = $aArray[$iGreater] - EndIf - $aArray[$iGreater] = $iAk - $iGreater -= 1 - EndIf - $k += 1 - WEnd - $aArray[$iPivot_Left] = $aArray[$iLess - 1] - $aArray[$iLess - 1] = $iPivot_1 - $aArray[$iPivot_Right] = $aArray[$iGreater + 1] - $aArray[$iGreater + 1] = $iPivot_2 - __ArrayDualPivotSort($aArray, $iPivot_Left, $iLess - 2, True) - __ArrayDualPivotSort($aArray, $iGreater + 2, $iPivot_Right, False) - If ($iLess < $iE1) And ($iE5 < $iGreater) Then - While $aArray[$iLess] = $iPivot_1 - $iLess += 1 - WEnd - While $aArray[$iGreater] = $iPivot_2 - $iGreater -= 1 - WEnd - $k = $iLess - While $k <= $iGreater - $iAk = $aArray[$k] - If $iAk = $iPivot_1 Then - $aArray[$k] = $aArray[$iLess] - $aArray[$iLess] = $iAk - $iLess += 1 - ElseIf $iAk = $iPivot_2 Then - While $aArray[$iGreater] = $iPivot_2 - $iGreater -= 1 - If $iGreater + 1 = $k Then ExitLoop 2 - WEnd - If $aArray[$iGreater] = $iPivot_1 Then - $aArray[$k] = $aArray[$iLess] - $aArray[$iLess] = $iPivot_1 - $iLess += 1 - Else - $aArray[$k] = $aArray[$iGreater] - EndIf - $aArray[$iGreater] = $iAk - $iGreater -= 1 - EndIf - $k += 1 - WEnd - EndIf - __ArrayDualPivotSort($aArray, $iLess, $iGreater, False) - Else - Local $iPivot = $aArray[$iE3] - $k = $iLess - While $k <= $iGreater - If $aArray[$k] = $iPivot Then - $k += 1 - ContinueLoop - EndIf - $iAk = $aArray[$k] - If $iAk < $iPivot Then - $aArray[$k] = $aArray[$iLess] - $aArray[$iLess] = $iAk - $iLess += 1 - Else - While $aArray[$iGreater] > $iPivot - $iGreater -= 1 - WEnd - If $aArray[$iGreater] < $iPivot Then - $aArray[$k] = $aArray[$iLess] - $aArray[$iLess] = $aArray[$iGreater] - $iLess += 1 - Else - $aArray[$k] = $iPivot - EndIf - $aArray[$iGreater] = $iAk - $iGreater -= 1 - EndIf - $k += 1 - WEnd - __ArrayDualPivotSort($aArray, $iPivot_Left, $iLess - 1, True) - __ArrayDualPivotSort($aArray, $iGreater + 1, $iPivot_Right, False) - EndIf -EndFunc ;==>__ArrayDualPivotSort - -; #FUNCTION# ==================================================================================================================== -; Author ........: Melba23 -; Modified.......: -; =============================================================================================================================== -Func _ArraySwap(ByRef $aArray, $iIndex_1, $iIndex_2, $bCol = False, $iStart = -1, $iEnd = -1) - - If $bCol = Default Then $bCol = False - If $iStart = Default Then $iStart = -1 - If $iEnd = Default Then $iEnd = -1 - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - 1 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - 1 - If $iDim_2 = -1 Then ; 1D array so force defaults - $bCol = False - $iStart = -1 - $iEnd = -1 - EndIf - ; Bounds check - If $iStart > $iEnd Then Return SetError(5, 0, -1) - If $bCol Then - If $iIndex_1 < 0 Or $iIndex_2 > $iDim_2 Then Return SetError(3, 0, -1) - If $iStart = -1 Then $iStart = 0 - If $iEnd = -1 Then $iEnd = $iDim_1 - Else - If $iIndex_1 < 0 Or $iIndex_2 > $iDim_1 Then Return SetError(3, 0, -1) - If $iStart = -1 Then $iStart = 0 - If $iEnd = -1 Then $iEnd = $iDim_2 - EndIf - Local $vTmp - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - $vTmp = $aArray[$iIndex_1] - $aArray[$iIndex_1] = $aArray[$iIndex_2] - $aArray[$iIndex_2] = $vTmp - Case 2 - If $iStart < -1 Or $iEnd < -1 Then Return SetError(4, 0, -1) - If $bCol Then - If $iStart > $iDim_1 Or $iEnd > $iDim_1 Then Return SetError(4, 0, -1) - For $j = $iStart To $iEnd - $vTmp = $aArray[$j][$iIndex_1] - $aArray[$j][$iIndex_1] = $aArray[$j][$iIndex_2] - $aArray[$j][$iIndex_2] = $vTmp - Next - Else - If $iStart > $iDim_2 Or $iEnd > $iDim_2 Then Return SetError(4, 0, -1) - For $j = $iStart To $iEnd - $vTmp = $aArray[$iIndex_1][$j] - $aArray[$iIndex_1][$j] = $aArray[$iIndex_2][$j] - $aArray[$iIndex_2][$j] = $vTmp - Next - EndIf - Case Else - Return SetError(2, 0, -1) - EndSwitch - - Return 1 - -EndFunc ;==>_ArraySwap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Cephas -; Modified.......: Jos - added $iStart parameter and logic, Ultima - added $iEnd parameter, make use of _ArrayToString() instead of duplicating efforts; Melba23 - added 2D support -; =============================================================================================================================== -Func _ArrayToClip(Const ByRef $aArray, $sDelim_Col = "|", $iStart_Row = -1, $iEnd_Row = -1, $sDelim_Row = @CRLF, $iStart_Col = -1, $iEnd_Col = -1) - Local $sResult = _ArrayToString($aArray, $sDelim_Col, $iStart_Row, $iEnd_Row, $sDelim_Row, $iStart_Col, $iEnd_Col) - If @error Then Return SetError(@error, 0, 0) - If ClipPut($sResult) Then Return 1 - Return SetError(-1, 0, 0) -EndFunc ;==>_ArrayToClip - -; #FUNCTION# ==================================================================================================================== -; Author ........: Brian Keene , Valik - rewritten -; Modified.......: Ultima - code cleanup; Melba23 - added support for empty and 2D arrays -; =============================================================================================================================== -Func _ArrayToString(Const ByRef $aArray, $sDelim_Col = "|", $iStart_Row = -1, $iEnd_Row = -1, $sDelim_Row = @CRLF, $iStart_Col = -1, $iEnd_Col = -1) - - If $sDelim_Col = Default Then $sDelim_Col = "|" - If $sDelim_Row = Default Then $sDelim_Row = @CRLF - If $iStart_Row = Default Then $iStart_Row = -1 - If $iEnd_Row = Default Then $iEnd_Row = -1 - If $iStart_Col = Default Then $iStart_Col = -1 - If $iEnd_Col = Default Then $iEnd_Col = -1 - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - 1 - If $iStart_Row = -1 Then $iStart_Row = 0 - If $iEnd_Row = -1 Then $iEnd_Row = $iDim_1 - If $iStart_Row < -1 Or $iEnd_Row < -1 Then Return SetError(3, 0, -1) - If $iStart_Row > $iDim_1 Or $iEnd_Row > $iDim_1 Then Return SetError(3, 0, "") - If $iStart_Row > $iEnd_Row Then Return SetError(4, 0, -1) - Local $sRet = "" - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - For $i = $iStart_Row To $iEnd_Row - $sRet &= $aArray[$i] & $sDelim_Col - Next - Return StringTrimRight($sRet, StringLen($sDelim_Col)) - Case 2 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - 1 - If $iStart_Col = -1 Then $iStart_Col = 0 - If $iEnd_Col = -1 Then $iEnd_Col = $iDim_2 - If $iStart_Col < -1 Or $iEnd_Col < -1 Then Return SetError(5, 0, -1) - If $iStart_Col > $iDim_2 Or $iEnd_Col > $iDim_2 Then Return SetError(5, 0, -1) - If $iStart_Col > $iEnd_Col Then Return SetError(6, 0, -1) - For $i = $iStart_Row To $iEnd_Row - For $j = $iStart_Col To $iEnd_Col - $sRet &= $aArray[$i][$j] & $sDelim_Col - Next - $sRet = StringTrimRight($sRet, StringLen($sDelim_Col)) & $sDelim_Row - Next - Return StringTrimRight($sRet, StringLen($sDelim_Row)) - Case Else - Return SetError(2, 0, -1) - EndSwitch - Return 1 - -EndFunc ;==>_ArrayToString - -; #FUNCTION# ==================================================================================================================== -; Author ........: jchd -; Modified.......: jpm, czardas -; =============================================================================================================================== -Func _ArrayTranspose(ByRef $aArray) - Switch UBound($aArray, 0) - Case 0 - Return SetError(2, 0, 0) - Case 1 - Local $aTemp[1][UBound($aArray)] - For $i = 0 To UBound($aArray) - 1 - $aTemp[0][$i] = $aArray[$i] - Next - $aArray = $aTemp - Case 2 - Local $iDim_1 = UBound($aArray, 1), $iDim_2 = UBound($aArray, 2) - If $iDim_1 <> $iDim_2 Then - Local $aTemp[$iDim_2][$iDim_1] - For $i = 0 To $iDim_1 - 1 - For $j = 0 To $iDim_2 - 1 - $aTemp[$j][$i] = $aArray[$i][$j] - Next - Next - $aArray = $aTemp - Else ; optimimal method for a square grid - Local $vElement - For $i = 0 To $iDim_1 - 1 - For $j = $i + 1 To $iDim_2 - 1 - $vElement = $aArray[$i][$j] - $aArray[$i][$j] = $aArray[$j][$i] - $aArray[$j][$i] = $vElement - Next - Next - EndIf - Case Else - Return SetError(1, 0, 0) - EndSwitch - Return 1 -EndFunc ;==>_ArrayTranspose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Adam Moore (redndahead) -; Modified.......: Ultima - code cleanup, optimization; Melba23 - added 2D support -; =============================================================================================================================== -Func _ArrayTrim(ByRef $aArray, $iTrimNum, $iDirection = 0, $iStart = 0, $iEnd = 0, $iSubItem = 0) - - If $iDirection = Default Then $iDirection = 0 - If $iStart = Default Then $iStart = 0 - If $iEnd = Default Then $iEnd = 0 - If $iSubItem = Default Then $iSubItem = 0 - If Not IsArray($aArray) Then Return SetError(1, 0, 0) - - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - 1 - If $iEnd = 0 Then $iEnd = $iDim_1 - If $iStart > $iEnd Then Return SetError(3, 0, -1) - If $iStart < 0 Or $iEnd < 0 Then Return SetError(3, 0, -1) - If $iStart > $iDim_1 Or $iEnd > $iDim_1 Then Return SetError(3, 0, -1) - If $iStart > $iEnd Then Return SetError(4, 0, -1) - - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - If $iDirection Then - For $i = $iStart To $iEnd - $aArray[$i] = StringTrimRight($aArray[$i], $iTrimNum) - Next - Else - For $i = $iStart To $iEnd - $aArray[$i] = StringTrimLeft($aArray[$i], $iTrimNum) - Next - EndIf - Case 2 - Local $iDim_2 = UBound($aArray, $UBOUND_COLUMNS) - 1 - If $iSubItem < 0 Or $iSubItem > $iDim_2 Then Return SetError(5, 0, -1) - If $iDirection Then - For $i = $iStart To $iEnd - $aArray[$i][$iSubItem] = StringTrimRight($aArray[$i][$iSubItem], $iTrimNum) - Next - Else - For $i = $iStart To $iEnd - $aArray[$i][$iSubItem] = StringTrimLeft($aArray[$i][$iSubItem], $iTrimNum) - Next - EndIf - Case Else - Return SetError(2, 0, 0) - EndSwitch - - Return 1 -EndFunc ;==>_ArrayTrim - -; #FUNCTION# ==================================================================================================================== -; Author ........: SmOke_N -; Modified.......: litlmike, Erik Pilsits, BrewManNH, Melba23 -; =============================================================================================================================== -Func _ArrayUnique(Const ByRef $aArray, $iColumn = 0, $iBase = 0, $iCase = 0, $iCount = $ARRAYUNIQUE_COUNT, $iIntType = $ARRAYUNIQUE_AUTO) - - If $iColumn = Default Then $iColumn = 0 - If $iBase = Default Then $iBase = 0 - If $iCase = Default Then $iCase = 0 - If $iCount = Default Then $iCount = $ARRAYUNIQUE_COUNT - ; Check array - If UBound($aArray, $UBOUND_ROWS) = 0 Then Return SetError(1, 0, 0) - Local $iDims = UBound($aArray, $UBOUND_DIMENSIONS), $iNumColumns = UBound($aArray, $UBOUND_COLUMNS) - If $iDims > 2 Then Return SetError(2, 0, 0) - ; Check parameters - If $iBase < 0 Or $iBase > 1 Or (Not IsInt($iBase)) Then Return SetError(3, 0, 0) - If $iCase < 0 Or $iCase > 1 Or (Not IsInt($iCase)) Then Return SetError(3, 0, 0) - If $iCount < 0 Or $iCount > 1 Or (Not IsInt($iCount)) Then Return SetError(4, 0, 0) - If $iIntType < 0 Or $iIntType > 4 Or (Not IsInt($iIntType)) Then Return SetError(5, 0, 0) - If $iColumn < 0 Or ($iNumColumns = 0 And $iColumn > 0) Or ($iNumColumns > 0 And $iColumn >= $iNumColumns) Then Return SetError(6, 0, 0) - ; Autocheck of first element - If $iIntType = $ARRAYUNIQUE_AUTO Then - Local $vFirstElem = ( ($iDims = 1) ? ($aArray[$iBase]) : ($aArray[$iColumn][$iBase]) ) - If IsInt($vFirstElem) Then - Switch VarGetType($vFirstElem) - Case "Int32" - $iIntType = $ARRAYUNIQUE_FORCE32 - Case "Int64" - $iIntType = $ARRAYUNIQUE_FORCE64 - EndSwitch - Else - $iIntType = $ARRAYUNIQUE_FORCE32 - EndIf - EndIf - ; Create error handler - ObjEvent("AutoIt.Error", "__ArrayUnique_AutoErrFunc") - ; Create dictionary - Local $oDictionary = ObjCreate("Scripting.Dictionary") - ; Set case sensitivity - $oDictionary.CompareMode = Number(Not $iCase) - ; Add elements to dictionary - Local $vElem, $sType, $vKey, $bCOMError = False - For $i = $iBase To UBound($aArray) - 1 - If $iDims = 1 Then - ; 1D array - $vElem = $aArray[$i] - Else - ; 2D array - $vElem = $aArray[$i][$iColumn] - EndIf - ; Determine method to use - Switch $iIntType - Case $ARRAYUNIQUE_FORCE32 - ; Use element as key - $oDictionary.Item($vElem) ; Check if key exists - automatically created if not - If @error Then - $bCOMError = True ; Failed with an Int64, Ptr or Binary datatype - ExitLoop - EndIf - Case $ARRAYUNIQUE_FORCE64 - $sType = VarGetType($vElem) - If $sType = "Int32" Then - $bCOMError = True ; Failed with an Int32 datatype - ExitLoop - EndIf ; Create key - $vKey = "#" & $sType & "#" & String($vElem) - If Not $oDictionary.Item($vKey) Then ; Check if key exists - $oDictionary($vKey) = $vElem ; Store actual value in dictionary - EndIf - Case $ARRAYUNIQUE_MATCH - $sType = VarGetType($vElem) - If StringLeft($sType, 3) = "Int" Then - $vKey = "#Int#" & String($vElem) - Else - $vKey = "#" & $sType & "#" & String($vElem) - EndIf - If Not $oDictionary.Item($vKey) Then ; Check if key exists - $oDictionary($vKey) = $vElem ; Store actual value in dictionary - EndIf - Case $ARRAYUNIQUE_DISTINCT - $vKey = "#" & VarGetType($vElem) & "#" & String($vElem) - If Not $oDictionary.Item($vKey) Then ; Check if key exists - $oDictionary($vKey) = $vElem ; Store actual value in dictionary - EndIf - EndSwitch - Next - ; Create return array - Local $aValues, $j = 0 - If $bCOMError Then ; Mismatch Int32/64 - Return SetError(7, 0, 0) - ElseIf $iIntType <> $ARRAYUNIQUE_FORCE32 Then - ; Extract values associated with the unique keys - Local $aValues[$oDictionary.Count] - For $vKey In $oDictionary.Keys() - $aValues[$j] = $oDictionary($vKey) - ; Check for Ptr datatype - If StringLeft($vKey, 5) = "#Ptr#" Then - $aValues[$j] = Ptr($aValues[$j]) - EndIf - $j += 1 - Next - Else - ; Only need to list the unique keys - $aValues = $oDictionary.Keys() - EndIf - ; Add cout if required - If $iCount Then - _ArrayInsert($aValues, 0, $oDictionary.Count) - EndIf - ; Return array - Return $aValues - -EndFunc ;==>_ArrayUnique - -; #FUNCTION# ==================================================================================================================== -; Author ........: jchd, jpm -; Modified.......: -; =============================================================================================================================== -Func _Array1DToHistogram($aArray, $iSizing = 100) - If UBound($aArray, 0) > 1 Then Return SetError(1, 0, "") - $iSizing = $iSizing * 8 - Local $t, $n, $iMin = 0, $iMax = 0, $iOffset = 0 - For $i = 0 To UBound($aArray) - 1 - $t = $aArray[$i] - $t = IsNumber($t) ? Round($t) : 0 - If $t < $iMin Then $iMin = $t - If $t > $iMax Then $iMax = $t - Next - Local $iRange = Int(Round(($iMax - $iMin) / 8)) * 8 - Local $iSpaceRatio = 4 - For $i = 0 To UBound($aArray) - 1 - $t = $aArray[$i] - If $t Then - $n = Abs(Round(($iSizing * $t) / $iRange) / 8) - - $aArray[$i] = "" - If $t > 0 Then - If $iMin Then - $iOffset = Int(Abs(Round(($iSizing * $iMin) / $iRange) / 8) / 8 * $iSpaceRatio) - $aArray[$i] = __Array_StringRepeat(ChrW(0x20), $iOffset) - EndIf - Else - If $iMin <> $t Then - $iOffset = Int(Abs(Round(($iSizing * ($t - $iMin)) / $iRange) / 8) / 8 * $iSpaceRatio) - $aArray[$i] = __Array_StringRepeat(ChrW(0x20), $iOffset) - EndIf - EndIf - $aArray[$i] &= __Array_StringRepeat(ChrW(0x2588), Int($n / 8)) - - $n = Mod($n, 8) - If $n > 0 Then $aArray[$i] &= ChrW(0x2588 + 8 - $n) - $aArray[$i] &= ' ' & $t - Else - $aArray[$i] = "" - EndIf - Next - - Return $aArray -EndFunc ;==>_Array1DToHistogram - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Array_StringRepeat -; Description ...: Repeats a string a specified number of times -; Syntax.........: __Array_StringRepeat ( $sString, $iRepeatCount ) -; Parameters ....: $sString - String to repeat -; $iRepeatCount - Number of times to repeat the string -; Return values .: a string with specified number of repeats. -; Author ........: Jeremy Landes -; Modified.......: jpm -; Remarks .......: This function is used internally. similar to _StringRepeat() but if $iRepeatCount = 0 returns "" -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Array_StringRepeat($sString, $iRepeatCount) - ; Casting Int() takes care of String/Int, Numbers. - $iRepeatCount = Int($iRepeatCount) - ; Zero is a valid repeat integer. - If StringLen($sString) < 1 Or $iRepeatCount <= 0 Then Return SetError(1, 0, "") - Local $sResult = "" - While $iRepeatCount > 1 - If BitAND($iRepeatCount, 1) Then $sResult &= $sString - $sString &= $sString - $iRepeatCount = BitShift($iRepeatCount, 1) - WEnd - Return $sString & $sResult -EndFunc ;==>__Array_StringRepeat - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Array_ExeterInternal -; Description ...: Permute Function based on an algorithm from Exeter University. -; Syntax.........: __Array_ExeterInternal ( ByRef $aArray, $iStart, $iSize, $sDelimiter, ByRef $aIdx, ByRef $aResult ) -; Parameters ....: $aArray - The Array to get Permutations -; $iStart - Starting Point for Loop -; $iSize - End Point for Loop -; $sDelimiter - String result separator -; $aIdx - Array Used in Rotations -; $aResult - Resulting Array -; Return values .: Success - Computer name -; Author ........: Erik Pilsits -; Modified.......: 07/08/2008 -; Remarks .......: This function is used internally. Permute Function based on an algorithm from Exeter University. -; + -; http://www.bearcave.com/random_hacks/permute.html -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Array_ExeterInternal(ByRef $aArray, $iStart, $iSize, $sDelimiter, ByRef $aIdx, ByRef $aResult, ByRef $iCount) - If $iStart == $iSize - 1 Then - For $i = 0 To $iSize - 1 - $aResult[$iCount] &= $aArray[$aIdx[$i]] & $sDelimiter - Next - If $sDelimiter <> "" Then $aResult[$iCount] = StringTrimRight($aResult[$iCount], StringLen($sDelimiter)) - $iCount += 1 - Else - Local $iTemp - For $i = $iStart To $iSize - 1 - $iTemp = $aIdx[$i] - - $aIdx[$i] = $aIdx[$iStart] - $aIdx[$iStart] = $iTemp - __Array_ExeterInternal($aArray, $iStart + 1, $iSize, $sDelimiter, $aIdx, $aResult, $iCount) - $aIdx[$iStart] = $aIdx[$i] - $aIdx[$i] = $iTemp - Next - EndIf -EndFunc ;==>__Array_ExeterInternal - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Array_Combinations -; Description ...: Creates Combination -; Syntax.........: __Array_Combinations ( $iN, $iR ) -; Parameters ....: $iN - Value passed on from UBound($aArray) -; $iR - Size of the combinations set -; Return values .: Integer value of the number of combinations -; Author ........: Erik Pilsits -; Modified.......: 07/08/2008 -; Remarks .......: This function is used internally. PBased on an algorithm by Kenneth H. Rosen. -; + -; http://www.bearcave.com/random_hacks/permute.html -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Array_Combinations($iN, $iR) - Local $i_Total = 1 - - For $i = $iR To 1 Step -1 - $i_Total *= ($iN / $i) - $iN -= 1 - Next - Return Round($i_Total) -EndFunc ;==>__Array_Combinations - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Array_GetNext -; Description ...: Creates Combination -; Syntax.........: __Array_GetNext ( $iN, $iR, ByRef $iLeft, $iTotal, ByRef $aIdx ) -; Parameters ....: $iN - Value passed on from UBound($aArray) -; $iR - Size of the combinations set -; $iLeft - Remaining number of combinations -; $iTotal - Total number of combinations -; $aIdx - Array containing combinations -; Return values .: Function only changes values ByRef -; Author ........: Erik Pilsits -; Modified.......: 07/08/2008 -; Remarks .......: This function is used internally. PBased on an algorithm by Kenneth H. Rosen. -; + -; http://www.bearcave.com/random_hacks/permute.html -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Array_GetNext($iN, $iR, ByRef $iLeft, $iTotal, ByRef $aIdx) - If $iLeft == $iTotal Then - $iLeft -= 1 - Return - EndIf - - Local $i = $iR - 1 - While $aIdx[$i] == $iN - $iR + $i - $i -= 1 - WEnd - - $aIdx[$i] += 1 - For $j = $i + 1 To $iR - 1 - $aIdx[$j] = $aIdx[$i] + $j - $i - Next - - $iLeft -= 1 -EndFunc ;==>__Array_GetNext - -Func __Array_MinMaxIndex(Const ByRef $aArray, $iCompNumeric, $iStart, $iEnd, $iSubItem, $fuComparison) ; Always swapped the comparison params around e.g. it was for min 100 > 1000 whereas 1000 < 100 makes more sense in a min function. - If $iCompNumeric = Default Then $iCompNumeric = 0 - If $iCompNumeric <> 1 Then $iCompNumeric = 0 - If $iStart = Default Then $iStart = 0 - If $iEnd = Default Then $iEnd = 0 - If $iSubItem = Default Then $iSubItem = 0 - If Not IsArray($aArray) Then Return SetError(1, 0, -1) - Local $iDim_1 = UBound($aArray, $UBOUND_ROWS) - 1 - If $iDim_1 < 0 Then Return SetError(1, 0, -1) - If $iEnd = -1 Then $iEnd = $iDim_1 - If $iStart = -1 Then $iStart = 0 - If $iStart < -1 Or $iEnd < -1 Then Return SetError(3, 0, -1) - If $iStart > $iDim_1 Or $iEnd > $iDim_1 Then Return SetError(3, 0, -1) - If $iStart > $iEnd Then Return SetError(4, 0, -1) - If $iDim_1 < 0 Then Return SetError(5, 0, -1) - Local $iMaxMinIndex = $iStart - Switch UBound($aArray, $UBOUND_DIMENSIONS) - Case 1 - If $iCompNumeric Then - For $i = $iStart To $iEnd - If $fuComparison(Number($aArray[$i]), Number($aArray[$iMaxMinIndex])) Then $iMaxMinIndex = $i - Next - Else - For $i = $iStart To $iEnd - If $fuComparison($aArray[$i], $aArray[$iMaxMinIndex]) Then $iMaxMinIndex = $i - Next - EndIf - Case 2 - If $iSubItem < 0 Or $iSubItem > UBound($aArray, $UBOUND_COLUMNS) - 1 Then Return SetError(6, 0, -1) - If $iCompNumeric Then - For $i = $iStart To $iEnd - If $fuComparison(Number($aArray[$i][$iSubItem]), Number($aArray[$iMaxMinIndex][$iSubItem])) Then $iMaxMinIndex = $i - Next - Else - For $i = $iStart To $iEnd - If $fuComparison($aArray[$i][$iSubItem], $aArray[$iMaxMinIndex][$iSubItem]) Then $iMaxMinIndex = $i - Next - EndIf - Case Else - Return SetError(2, 0, -1) - EndSwitch - - Return $iMaxMinIndex -EndFunc ;==>__Array_MinMaxIndex - -Func __Array_GreaterThan($vValue1, $vValue2) - Return $vValue1 > $vValue2 -EndFunc ;==>__Array_GreaterThan - -Func __Array_LessThan($vValue1, $vValue2) - Return $vValue1 < $vValue2 -EndFunc ;==>__Array_LessThan - -Func __ArrayUnique_AutoErrFunc() - ; Do nothing special, just check @error after suspect functions. -EndFunc ;==>__ArrayUnique_AutoErrFunc diff --git a/build/Include/AutoItConstants.au3 b/build/Include/AutoItConstants.au3 deleted file mode 100644 index bc68f2747..000000000 --- a/build/Include/AutoItConstants.au3 +++ /dev/null @@ -1,338 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script. -; Author(s) .....: JLandes, Nutster, CyberSlug, Holger, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Sets the way coords are used in the mouse and pixel functions -Global Const $OPT_COORDSRELATIVE = 0 ; Relative coords to the active window -Global Const $OPT_COORDSABSOLUTE = 1 ; Absolute screen coordinates (default) -Global Const $OPT_COORDSCLIENT = 2 ; Relative coords to client area - -; Sets how errors are handled if a Run/RunWait function fails -Global Const $OPT_ERRORSILENT = 0 ; Silent error (@error set to 1) -Global Const $OPT_ERRORFATAL = 1 ; Fatal error (default) - -; Alters the use of Caps Lock -Global Const $OPT_CAPSNOSTORE = 0 ; Don't store/restore Caps Lock state -Global Const $OPT_CAPSSTORE = 1 ; Store/restore Caps Lock state (default) - -; Alters the method that is used to match window titles -Global Const $OPT_MATCHSTART = 1 ; Match the title from the start (default) -Global Const $OPT_MATCHANY = 2 ; Match any substring in the title -Global Const $OPT_MATCHEXACT = 3 ; Match the title exactly -Global Const $OPT_MATCHADVANCED = 4 ; Use advanced window matching (deprecated) - -; Common Control Styles -Global Const $CCS_TOP = 0x01 -Global Const $CCS_NOMOVEY = 0x02 -Global Const $CCS_BOTTOM = 0x03 -Global Const $CCS_NORESIZE = 0x04 -Global Const $CCS_NOPARENTALIGN = 0x08 -Global Const $CCS_NOHILITE = 0x10 -Global Const $CCS_ADJUSTABLE = 0x20 -Global Const $CCS_NODIVIDER = 0x40 -Global Const $CCS_VERT = 0x0080 -Global Const $CCS_LEFT = 0x0081 -Global Const $CCS_NOMOVEX = 0x0082 -Global Const $CCS_RIGHT = 0x0083 - -; DriveGetType() Constants -Global Const $DT_DRIVETYPE = 1 ; Drive type e.g. CD-ROM, Fixed. -Global Const $DT_SSDSTATUS = 2 ; Status of whether the drive is SSD. -Global Const $DT_BUSTYPE = 3 ; Bus type e.g. SATA, SD. - -; FtpSetProxy and HttpSetProxy Constants -Global Const $PROXY_IE = 0 -Global Const $PROXY_NONE = 1 -Global Const $PROXY_SPECIFIED = 2 - -; Reserved IDs for System Objects -; in MenuConstants.au3 -; in ScrollBarsConstants.au3 -Global Const $OBJID_WINDOW = 0x00000000 -Global Const $OBJID_TITLEBAR = 0xFFFFFFFE -Global Const $OBJID_SIZEGRIP = 0xFFFFFFF9 -Global Const $OBJID_CARET = 0xFFFFFFF8 -Global Const $OBJID_CURSOR = 0xFFFFFFF7 -Global Const $OBJID_ALERT = 0xFFFFFFF6 -Global Const $OBJID_SOUND = 0xFFFFFFF5 - -; Progress and Splash Constants -; Indicates properties of the displayed progress or splash dialog -Global Const $DLG_CENTERONTOP = 0 ; Center justified/always on top/with title -Global Const $DLG_NOTITLE = 1 ; Titleless window -Global Const $DLG_NOTONTOP = 2 ; Without "always on top" attribute -Global Const $DLG_TEXTLEFT = 4 ; Left justified text -Global Const $DLG_TEXTRIGHT = 8 ; Right justified text -Global Const $DLG_MOVEABLE = 16 ; Window can be moved -Global Const $DLG_TEXTVCENTER = 32 ; Splash text centered vertically - -; Mouse Constants -; Indicates current mouse cursor -Global Const $IDC_UNKNOWN = 0 ; Unknown cursor -Global Const $IDC_APPSTARTING = 1 ; Standard arrow and small hourglass -Global Const $IDC_ARROW = 2 ; Standard arrow -Global Const $IDC_CROSS = 3 ; Crosshair -Global Const $IDC_HAND = 32649 ; Hand cursor -Global Const $IDC_HELP = 4 ; Arrow and question mark -Global Const $IDC_IBEAM = 5 ; I-beam -Global Const $IDC_ICON = 6 ; Obsolete -Global Const $IDC_NO = 7 ; Slashed circle -Global Const $IDC_SIZE = 8 ; Obsolete -Global Const $IDC_SIZEALL = 9 ; Four-pointed arrow pointing N, S, E, and W -Global Const $IDC_SIZENESW = 10 ; Double-pointed arrow pointing NE and SW -Global Const $IDC_SIZENS = 11 ; Double-pointed arrow pointing N and S -Global Const $IDC_SIZENWSE = 12 ; Double-pointed arrow pointing NW and SE -Global Const $IDC_SIZEWE = 13 ; Double-pointed arrow pointing W and E -Global Const $IDC_UPARROW = 14 ; Vertical arrow -Global Const $IDC_WAIT = 15 ; Hourglass - -Global Const $IDI_APPLICATION = 32512 ; Application icon -Global Const $IDI_ASTERISK = 32516 ; Asterisk icon -Global Const $IDI_EXCLAMATION = 32515 ; Exclamation point icon -Global Const $IDI_HAND = 32513 ; Stop sign icon -Global Const $IDI_QUESTION = 32514 ; Question-mark icon -Global Const $IDI_WINLOGO = 32517 ; Windows logo icon. Windows XP: Application icon -Global Const $IDI_SHIELD = 32518 -Global Const $IDI_ERROR = $IDI_HAND -Global Const $IDI_INFORMATION = $IDI_ASTERISK -Global Const $IDI_WARNING = $IDI_EXCLAMATION - -; Process Constants -; Indicates the type of shutdown -Global Const $SD_LOGOFF = 0 ; Logoff -Global Const $SD_SHUTDOWN = 1 ; Shutdown -Global Const $SD_REBOOT = 2 ; Reboot -Global Const $SD_FORCE = 4 ; Force -Global Const $SD_POWERDOWN = 8 ; Power down -Global Const $SD_FORCEHUNG = 16 ; Force shutdown if hung -Global Const $SD_STANDBY = 32 ; Standby -Global Const $SD_HIBERNATE = 64 ; Hibernate - -; Run Constants -Global Const $STDIN_CHILD = 1 -Global Const $STDOUT_CHILD = 2 -Global Const $STDERR_CHILD = 4 -Global Const $STDERR_MERGED = 8 -Global Const $STDIO_INHERIT_PARENT = 0x10 -Global Const $RUN_CREATE_NEW_CONSOLE = 0x00010000 - -; UBound Constants -Global Const $UBOUND_DIMENSIONS = 0 -Global Const $UBOUND_ROWS = 1 -Global Const $UBOUND_COLUMNS = 2 - -; Mouse Event Constants -Global Const $MOUSEEVENTF_ABSOLUTE = 0x8000 ; Specifies that the dx and dy parameters contain normalized absolute coordinates -Global Const $MOUSEEVENTF_MOVE = 0x0001 ; Specifies that movement occurred -Global Const $MOUSEEVENTF_LEFTDOWN = 0x0002 ; Specifies that the left button changed to down -Global Const $MOUSEEVENTF_LEFTUP = 0x0004 ; Specifies that the left button changed to up -Global Const $MOUSEEVENTF_RIGHTDOWN = 0x0008 ; Specifies that the right button changed to down -Global Const $MOUSEEVENTF_RIGHTUP = 0x0010 ; Specifies that the right button changed to up -Global Const $MOUSEEVENTF_MIDDLEDOWN = 0x0020 ; Specifies that the middle button changed to down -Global Const $MOUSEEVENTF_MIDDLEUP = 0x0040 ; Specifies that the middle button changed to up -Global Const $MOUSEEVENTF_WHEEL = 0x0800 ; Specifies that the wheel has been moved, if the mouse has a wheel -Global Const $MOUSEEVENTF_XDOWN = 0x0080 ; Specifies that an X button was pressed -Global Const $MOUSEEVENTF_XUP = 0x0100 ; Specifies that an X button was released - -; Reg Value type Constants -Global Const $REG_NONE = 0 -Global Const $REG_SZ = 1 -Global Const $REG_EXPAND_SZ = 2 -Global Const $REG_BINARY = 3 -Global Const $REG_DWORD = 4 -Global Const $REG_DWORD_LITTLE_ENDIAN = 4 -Global Const $REG_DWORD_BIG_ENDIAN = 5 -Global Const $REG_LINK = 6 -Global Const $REG_MULTI_SZ = 7 -Global Const $REG_RESOURCE_LIST = 8 -Global Const $REG_FULL_RESOURCE_DESCRIPTOR = 9 -Global Const $REG_RESOURCE_REQUIREMENTS_LIST = 10 -Global Const $REG_QWORD = 11 -Global Const $REG_QWORD_LITTLE_ENDIAN = 11 - -; Z order -Global Const $HWND_BOTTOM = 1 ; Places the window at the bottom of the Z order -Global Const $HWND_NOTOPMOST = -2 ; Places the window above all non-topmost windows -Global Const $HWND_TOP = 0 ; Places the window at the top of the Z order -Global Const $HWND_TOPMOST = -1 ; Places the window above all non-topmost windows - -; SetWindowPos Constants -Global Const $SWP_NOSIZE = 0x0001 -Global Const $SWP_NOMOVE = 0x0002 -Global Const $SWP_NOZORDER = 0x0004 -Global Const $SWP_NOREDRAW = 0x0008 -Global Const $SWP_NOACTIVATE = 0x0010 -Global Const $SWP_FRAMECHANGED = 0x0020 -Global Const $SWP_DRAWFRAME = 0x0020 -Global Const $SWP_SHOWWINDOW = 0x0040 -Global Const $SWP_HIDEWINDOW = 0x0080 -Global Const $SWP_NOCOPYBITS = 0x0100 -Global Const $SWP_NOOWNERZORDER = 0x0200 -Global Const $SWP_NOREPOSITION = 0x0200 -Global Const $SWP_NOSENDCHANGING = 0x0400 -Global Const $SWP_DEFERERASE = 0x2000 -Global Const $SWP_ASYNCWINDOWPOS = 0x4000 - -; Keywords (returned from the IsKeyword() function) -Global Const $KEYWORD_DEFAULT = 1 -Global Const $KEYWORD_NULL = 2 - -; IsDeclared Constants -Global Const $DECLARED_LOCAL = -1 -Global Const $DECLARED_UNKNOWN = 0 -Global Const $DECLARED_GLOBAL = 1 - -; Assign Constants -Global Const $ASSIGN_CREATE = 0 -Global Const $ASSIGN_FORCELOCAL = 1 -Global Const $ASSIGN_FORCEGLOBAL = 2 -Global Const $ASSIGN_EXISTFAIL = 4 - -; BlockInput Constants -Global Const $BI_ENABLE = 0 -Global Const $BI_DISABLE = 1 - -; Break Constants -Global Const $BREAK_ENABLE = 1 -Global Const $BREAK_DISABLE = 0 - -; CDTray Constants -Global Const $CDTRAY_OPEN = "open" -Global Const $CDTRAY_CLOSED = "closed" - -; ControlSend and Send Constants -Global Const $SEND_DEFAULT = 0 -Global Const $SEND_RAW = 1 - -; DirGetSize Constants -Global Const $DIR_DEFAULT = 0 -Global Const $DIR_EXTENDED= 1 -Global Const $DIR_NORECURSE = 2 - -; DirRemove Constants -;~ Global Const $DIR_DEFAULT = 0 -Global Const $DIR_REMOVE= 1 - -; DriveGetDrive Constants -Global Const $DT_ALL = "ALL" -Global Const $DT_CDROM = "CDROM" -Global Const $DT_REMOVABLE = "REMOVABLE" -Global Const $DT_FIXED = "FIXED" -Global Const $DT_NETWORK = "NETWORK" -Global Const $DT_RAMDISK = "RAMDISK" -Global Const $DT_UNKNOWN = "UNKNOWN" - -; DriveGetFileSystem Constants -Global Const $DT_UNDEFINED = 1 -Global Const $DT_FAT = "FAT" -Global Const $DT_FAT32 = "FAT32" -Global Const $DT_EXFAT = "exFAT" -Global Const $DT_NTFS = "NTFS" -Global Const $DT_NWFS = "NWFS" -Global Const $DT_CDFS = "CDFS" -Global Const $DT_UDF = "UDF" - -; DriveMapAdd Constants -Global Const $DMA_DEFAULT = 0 -Global Const $DMA_PERSISTENT = 1 -Global Const $DMA_AUTHENTICATION = 8 - -; DriveStatus Constants -Global Const $DS_UNKNOWN = "UNKNOWN" -Global Const $DS_READY = "READY" -Global Const $DS_NOTREADY = "NOTREADY" -Global Const $DS_INVALID = "INVALID" - -; Mouse related Constants -Global Const $MOUSE_CLICK_LEFT = "left" -Global Const $MOUSE_CLICK_RIGHT = "right" -Global Const $MOUSE_CLICK_MIDDLE = "middle" -Global Const $MOUSE_CLICK_MAIN = "main" -Global Const $MOUSE_CLICK_MENU = "menu" -Global Const $MOUSE_CLICK_PRIMARY = "primary" -Global Const $MOUSE_CLICK_SECONDARY = "secondary" -Global Const $MOUSE_WHEEL_UP = "up" -Global Const $MOUSE_WHEEL_DOWN = "down" - -; Dec, Int, Number Constants -Global Const $NUMBER_AUTO = 0 -Global Const $NUMBER_32BIT = 1 -Global Const $NUMBER_64BIT = 2 -Global Const $NUMBER_DOUBLE = 3 - -; ObjName Constants -Global Const $OBJ_NAME = 1 -Global Const $OBJ_STRING = 2 -Global Const $OBJ_PROGID = 3 -Global Const $OBJ_FILE = 4 -Global Const $OBJ_MODULE = 5 -Global Const $OBJ_CLSID = 6 -Global Const $OBJ_IID = 7 - -; OnAutoItExitRegister Constants -Global Const $EXITCLOSE_NORMAL = 0 ; Natural closing. -Global Const $EXITCLOSE_BYEXIT = 1 ; close by Exit function. -Global Const $EXITCLOSE_BYCLICK = 2 ; close by clicking on exit of the systray. -Global Const $EXITCLOSE_BYLOGOFF = 3 ; close by user logoff. -Global Const $EXITCLOSE_BYSUTDOWN = 4 ; close by Windows shutdown. - -; ProcessGetStats Constants -Global Const $PROCESS_STATS_MEMORY = 0 -Global Const $PROCESS_STATS_IO = 1 - -; ProcessSetPriority Constants -Global Const $PROCESS_LOW = 0 -Global Const $PROCESS_BELOWNORMAL = 1 -Global Const $PROCESS_NORMAL = 2 -Global Const $PROCESS_ABOVENORMAL = 3 -Global Const $PROCESS_HIGH = 4 -Global Const $PROCESS_REALTIME = 5 - -; RunAs and RunAsWait Constants -Global Const $RUN_LOGON_NOPROFILE = 0 -Global Const $RUN_LOGON_PROFILE = 1 -Global Const $RUN_LOGON_NETWORK = 2 -Global Const $RUN_LOGON_INHERIT = 4 - -; SoundPlay Constants -Global Const $SOUND_NOWAIT = 0 ; continue script while sound is playing (default) -Global Const $SOUND_WAIT = 1 ; wait until sound has finished - -; ShellExecute and ShellExecuteWait Constants -Global Const $SHEX_OPEN = "open" -Global Const $SHEX_EDIT = "edit" -Global Const $SHEX_PRINT = "print" -Global Const $SHEX_PROPERTIES = "properties" - -; TCPRecv Constants -Global Const $TCP_DATA_DEFAULT = 0 -Global Const $TCP_DATA_BINARY = 1 - -; UDPOpen, UDPRecv Constants -Global Const $UDP_OPEN_DEFAULT = 0 -Global Const $UDP_OPEN_BROADCAST = 1 -Global Const $UDP_DATA_DEFAULT = 0 -Global Const $UDP_DATA_BINARY = 1 -Global Const $UDP_DATA_ARRAY = 2 - -; ToolTip, GUICtrlSetTip Constants -Global Const $TIP_NOICON = 0 ; No icon -Global Const $TIP_INFOICON = 1 ; Info icon -Global Const $TIP_WARNINGICON = 2 ; Warning icon -Global Const $TIP_ERRORICON = 3 ; Error Icon - -Global Const $TIP_BALLOON = 1 -Global Const $TIP_CENTER = 2 -Global Const $TIP_FORCEVISIBLE = 4 - -; WindowsSetOnTop Constants -Global Const $WINDOWS_NOONTOP = 0 -Global Const $WINDOWS_ONTOP = 1 -; =============================================================================================================================== diff --git a/build/Include/BorderConstants.au3 b/build/Include/BorderConstants.au3 deleted file mode 100644 index 45ccef45c..000000000 --- a/build/Include/BorderConstants.au3 +++ /dev/null @@ -1,41 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Border_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for _WinAPI_DrawEdge(). -; Author(s) .....: Gary Frost -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $BDR_RAISEDINNER = 0x4 -Global Const $BDR_RAISEDOUTER = 0x1 -Global Const $BDR_SUNKENINNER = 0x8 -Global Const $BDR_SUNKENOUTER = 0x2 -Global Const $EDGE_BUMP = BitOR($BDR_RAISEDOUTER, $BDR_SUNKENINNER) -Global Const $EDGE_ETCHED = BitOR($BDR_SUNKENOUTER, $BDR_RAISEDINNER) -Global Const $EDGE_RAISED = BitOR($BDR_RAISEDOUTER, $BDR_RAISEDINNER) -Global Const $EDGE_SUNKEN = BitOR($BDR_SUNKENOUTER, $BDR_SUNKENINNER) - -; Type of Border -Global Const $BF_ADJUST = 0x2000 -Global Const $BF_BOTTOM = 0x8 -Global Const $BF_DIAGONAL = 0x10 -Global Const $BF_FLAT = 0x4000 -Global Const $BF_LEFT = 0x1 -Global Const $BF_MIDDLE = 0x800 -Global Const $BF_MONO = 0x8000 -Global Const $BF_RIGHT = 0x4 -Global Const $BF_SOFT = 0x1000 -Global Const $BF_TOP = 0x2 -Global Const $BF_BOTTOMLEFT = BitOR($BF_BOTTOM, $BF_LEFT) -Global Const $BF_BOTTOMRIGHT = BitOR($BF_BOTTOM, $BF_RIGHT) -Global Const $BF_TOPLEFT = BitOR($BF_TOP, $BF_LEFT) -Global Const $BF_TOPRIGHT = BitOR($BF_TOP, $BF_RIGHT) -Global Const $BF_RECT = BitOR($BF_LEFT, $BF_TOP, $BF_RIGHT, $BF_BOTTOM) -Global Const $BF_DIAGONAL_ENDBOTTOMLEFT = BitOR($BF_DIAGONAL, $BF_BOTTOM, $BF_LEFT) -Global Const $BF_DIAGONAL_ENDBOTTOMRIGHT = BitOR($BF_DIAGONAL, $BF_BOTTOM, $BF_RIGHT) -Global Const $BF_DIAGONAL_ENDTOPLEFT = BitOR($BF_DIAGONAL, $BF_TOP, $BF_LEFT) -Global Const $BF_DIAGONAL_ENDTOPRIGHT = BitOR($BF_DIAGONAL, $BF_TOP, $BF_RIGHT) -; =============================================================================================================================== diff --git a/build/Include/ButtonConstants.au3 b/build/Include/ButtonConstants.au3 deleted file mode 100644 index c60363e40..000000000 --- a/build/Include/ButtonConstants.au3 +++ /dev/null @@ -1,120 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Button_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for GUI control Button styles and Group, Radio, Checkbox. -; Author(s) .....: Valik -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Group -Global Const $BS_GROUPBOX = 0x0007 - -; Button -Global Const $BS_BOTTOM = 0x0800 -Global Const $BS_CENTER = 0x0300 -Global Const $BS_DEFPUSHBUTTON = 0x0001 -Global Const $BS_LEFT = 0x0100 -Global Const $BS_MULTILINE = 0x2000 -Global Const $BS_PUSHBOX = 0x000A -Global Const $BS_PUSHLIKE = 0x1000 -Global Const $BS_RIGHT = 0x0200 -Global Const $BS_RIGHTBUTTON = 0x0020 -Global Const $BS_TOP = 0x0400 -Global Const $BS_VCENTER = 0x0C00 -Global Const $BS_FLAT = 0x8000 -Global Const $BS_ICON = 0x0040 -Global Const $BS_BITMAP = 0x0080 -Global Const $BS_NOTIFY = 0x4000 -; Vista -Global Const $BS_SPLITBUTTON = 0x0000000C -Global Const $BS_DEFSPLITBUTTON = 0x0000000D -Global Const $BS_COMMANDLINK = 0x0000000E -Global Const $BS_DEFCOMMANDLINK = 0x0000000F - -; Vista SPLIT BUTTON INFO mask flags -Global Const $BCSIF_GLYPH = 0x0001 -Global Const $BCSIF_IMAGE = 0x0002 -Global Const $BCSIF_STYLE = 0x0004 -Global Const $BCSIF_SIZE = 0x0008 - -; Vista SPLIT BUTTON STYLE flags -Global Const $BCSS_NOSPLIT = 0x0001 -Global Const $BCSS_STRETCH = 0x0002 -Global Const $BCSS_ALIGNLEFT = 0x0004 -Global Const $BCSS_IMAGE = 0x0008 - -Global Const $BUTTON_IMAGELIST_ALIGN_LEFT = 0 -Global Const $BUTTON_IMAGELIST_ALIGN_RIGHT = 1 -Global Const $BUTTON_IMAGELIST_ALIGN_TOP = 2 -Global Const $BUTTON_IMAGELIST_ALIGN_BOTTOM = 3 -Global Const $BUTTON_IMAGELIST_ALIGN_CENTER = 4 ; Doesn't draw text - -; Checkbox -Global Const $BS_3STATE = 0x0005 -Global Const $BS_AUTO3STATE = 0x0006 -Global Const $BS_AUTOCHECKBOX = 0x0003 -Global Const $BS_CHECKBOX = 0x0002 - -; Radio -Global Const $BS_RADIOBUTTON = 0x4 -Global Const $BS_AUTORADIOBUTTON = 0x0009 - -Global Const $BS_OWNERDRAW = 0xB - -; Control default styles -Global Const $GUI_SS_DEFAULT_BUTTON = 0 -Global Const $GUI_SS_DEFAULT_CHECKBOX = 0 -Global Const $GUI_SS_DEFAULT_GROUP = 0 -Global Const $GUI_SS_DEFAULT_RADIO = 0 - -; Messages -Global Const $BCM_FIRST = 0x1600 -Global Const $BCM_GETIDEALSIZE = ($BCM_FIRST + 0x0001) -Global Const $BCM_GETIMAGELIST = ($BCM_FIRST + 0x0003) -Global Const $BCM_GETNOTE = ($BCM_FIRST + 0x000A) -Global Const $BCM_GETNOTELENGTH = ($BCM_FIRST + 0x000B) -Global Const $BCM_GETSPLITINFO = ($BCM_FIRST + 0x0008) -Global Const $BCM_GETTEXTMARGIN = ($BCM_FIRST + 0x0005) -Global Const $BCM_SETDROPDOWNSTATE = ($BCM_FIRST + 0x0006) -Global Const $BCM_SETIMAGELIST = ($BCM_FIRST + 0x0002) -Global Const $BCM_SETNOTE = ($BCM_FIRST + 0x0009) -Global Const $BCM_SETSHIELD = ($BCM_FIRST + 0x000C) -Global Const $BCM_SETSPLITINFO = ($BCM_FIRST + 0x0007) -Global Const $BCM_SETTEXTMARGIN = ($BCM_FIRST + 0x0004) -Global Const $BM_CLICK = 0xF5 -Global Const $BM_GETCHECK = 0xF0 -Global Const $BM_GETIMAGE = 0xF6 -Global Const $BM_GETSTATE = 0xF2 -Global Const $BM_SETCHECK = 0xF1 -Global Const $BM_SETDONTCLICK = 0xF8 -Global Const $BM_SETIMAGE = 0xF7 -Global Const $BM_SETSTATE = 0xF3 -Global Const $BM_SETSTYLE = 0xF4 - -; Notifications -Global Const $BCN_FIRST = -1250 -Global Const $BCN_DROPDOWN = ($BCN_FIRST + 0x0002) -Global Const $BCN_HOTITEMCHANGE = ($BCN_FIRST + 0x0001) -Global Const $BN_CLICKED = 0 -Global Const $BN_PAINT = 1 -Global Const $BN_HILITE = 2 -Global Const $BN_UNHILITE = 3 -Global Const $BN_DISABLE = 4 -Global Const $BN_DOUBLECLICKED = 5 -Global Const $BN_SETFOCUS = 6 -Global Const $BN_KILLFOCUS = 7 -Global Const $BN_PUSHED = $BN_HILITE -Global Const $BN_UNPUSHED = $BN_UNHILITE -Global Const $BN_DBLCLK = $BN_DOUBLECLICKED - -; check states -Global Const $BST_CHECKED = 0x1 -Global Const $BST_INDETERMINATE = 0x2 -Global Const $BST_UNCHECKED = 0x0 -Global Const $BST_FOCUS = 0x8 -Global Const $BST_PUSHED = 0x4 -Global Const $BST_DONTCLICK = 0x000080 -; =============================================================================================================================== diff --git a/build/Include/Clipboard.au3 b/build/Include/Clipboard.au3 deleted file mode 100644 index 3996ffaf4..000000000 --- a/build/Include/Clipboard.au3 +++ /dev/null @@ -1,387 +0,0 @@ -#include-once - -#include "Memory.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Clipboard -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Clipboard management. -; The clipboard is a set of functions and messages that enable applications to transfer data. -; Because all applications have access to the clipboard, data can be easily transferred -; between applications or within an application. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $CF_TEXT = 1 ; Text format -Global Const $CF_BITMAP = 2 ; Handle to a bitmap (HBITMAP) -Global Const $CF_METAFILEPICT = 3 ; Handle to a metafile picture (METAFILEPICT) -Global Const $CF_SYLK = 4 ; Microsoft Symbolic Link (SYLK) format -Global Const $CF_DIF = 5 ; Software Arts' Data Interchange Format -Global Const $CF_TIFF = 6 ; Tagged image file format -Global Const $CF_OEMTEXT = 7 ; Text format containing characters in the OEM character set -Global Const $CF_DIB = 8 ; BITMAPINFO structure followed by the bitmap bits -Global Const $CF_PALETTE = 9 ; Handle to a color palette -Global Const $CF_PENDATA = 10 ; Data for the pen extensions to Pen Computing -Global Const $CF_RIFF = 11 ; Represents audio data in RIFF format -Global Const $CF_WAVE = 12 ; Represents audio data in WAVE format -Global Const $CF_UNICODETEXT = 13 ; Unicode text format -Global Const $CF_ENHMETAFILE = 14 ; Handle to an enhanced metafile (HENHMETAFILE) -Global Const $CF_HDROP = 15 ; Handle to type HDROP that identifies a list of files -Global Const $CF_LOCALE = 16 ; Handle to the locale identifier associated with text in the clipboard -Global Const $CF_DIBV5 = 17 ; BITMAPV5HEADER structure followed by bitmap color and the bitmap bits -Global Const $CF_OWNERDISPLAY = 0x0080 ; Owner display format -Global Const $CF_DSPTEXT = 0x0081 ; Text display format associated with a private format -Global Const $CF_DSPBITMAP = 0x0082 ; Bitmap display format associated with a private format -Global Const $CF_DSPMETAFILEPICT = 0x0083 ; Metafile picture display format associated with a private format -Global Const $CF_DSPENHMETAFILE = 0x008E ; Enhanced metafile display format associated with a private format -Global Const $CF_PRIVATEFIRST = 0x0200 ; Range of integer values for private clipboard formats -Global Const $CF_PRIVATELAST = 0x02FF ; Range of integer values for private clipboard formats -Global Const $CF_GDIOBJFIRST = 0x0300 ; Range for (GDI) object clipboard formats -Global Const $CF_GDIOBJLAST = 0x03FF ; Range for (GDI) object clipboard formats -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _ClipBoard_ChangeChain -; _ClipBoard_Close -; _ClipBoard_CountFormats -; _ClipBoard_Empty -; _ClipBoard_EnumFormats -; _ClipBoard_FormatStr -; _ClipBoard_GetData -; _ClipBoard_GetDataEx -; _ClipBoard_GetFormatName -; _ClipBoard_GetOpenWindow -; _ClipBoard_GetOwner -; _ClipBoard_GetPriorityFormat -; _ClipBoard_GetSequenceNumber -; _ClipBoard_GetViewer -; _ClipBoard_IsFormatAvailable -; _ClipBoard_Open -; _ClipBoard_RegisterFormat -; _ClipBoard_SetData -; _ClipBoard_SetDataEx -; _ClipBoard_SetViewer -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_ChangeChain($hRemove, $hNewNext) - DllCall("user32.dll", "bool", "ChangeClipboardChain", "hwnd", $hRemove, "hwnd", $hNewNext) - If @error Then Return SetError(@error, @extended) -EndFunc ;==>_ClipBoard_ChangeChain - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_Close() - Local $aResult = DllCall("user32.dll", "bool", "CloseClipboard") - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_ClipBoard_Close - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_CountFormats() - Local $aResult = DllCall("user32.dll", "int", "CountClipboardFormats") - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_CountFormats - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_Empty() - Local $aResult = DllCall("user32.dll", "bool", "EmptyClipboard") - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_ClipBoard_Empty - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_EnumFormats($iFormat) - Local $aResult = DllCall("user32.dll", "uint", "EnumClipboardFormats", "uint", $iFormat) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_EnumFormats - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _ClipBoard_FormatStr($iFormat) - Local $aFormat[18] = [17, "Text", "Bitmap", "Metafile Picture", "SYLK", "DIF", "TIFF", "OEM Text", "DIB", "Palette", _ - "Pen Data", "RIFF", "WAVE", "Unicode Text", "Enhanced Metafile", "HDROP", "Locale", "DIB V5"] - - If $iFormat >= 1 And $iFormat <= 17 Then Return $aFormat[$iFormat] - - Switch $iFormat - Case $CF_OWNERDISPLAY - Return "Owner Display" - Case $CF_DSPTEXT - Return "Private Text" - Case $CF_DSPBITMAP - Return "Private Bitmap" - Case $CF_DSPMETAFILEPICT - Return "Private Metafile Picture" - Case $CF_DSPENHMETAFILE - Return "Private Enhanced Metafile" - Case Else - Return _ClipBoard_GetFormatName($iFormat) - EndSwitch -EndFunc ;==>_ClipBoard_FormatStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, -; =============================================================================================================================== -Func _ClipBoard_GetData($iFormat = 1) - If Not _ClipBoard_IsFormatAvailable($iFormat) Then Return SetError(-1, 0, 0) - If Not _ClipBoard_Open(0) Then Return SetError(-2, 0, 0) - Local $hMemory = _ClipBoard_GetDataEx($iFormat) - - ;_ClipBoard_Close() ; moved to end: traditionally done *after* copying over the memory - - If $hMemory = 0 Then - _ClipBoard_Close() - Return SetError(-3, 0, 0) - EndIf - - Local $pMemoryBlock = _MemGlobalLock($hMemory) - - If $pMemoryBlock = 0 Then - _ClipBoard_Close() - Return SetError(-4, 0, 0) - EndIf - - ; Get the actual memory size of the ClipBoard memory object (in bytes) - Local $iDataSize = _MemGlobalSize($hMemory) - - If $iDataSize = 0 Then - _MemGlobalUnlock($hMemory) - _ClipBoard_Close() - Return SetError(-5, 0, "") - EndIf - - Local $tData - Switch $iFormat - Case $CF_TEXT, $CF_OEMTEXT - $tData = DllStructCreate("char[" & $iDataSize & "]", $pMemoryBlock) - Case $CF_UNICODETEXT - ; Round() shouldn't be necessary, as CF_UNICODETEXT should be 2-bytes wide & thus evenly-divisible - $iDataSize = Round($iDataSize / 2) - $tData = DllStructCreate("wchar[" & $iDataSize & "]", $pMemoryBlock) - Case Else - ; Binary data return for all other formats - $tData = DllStructCreate("byte[" & $iDataSize & "]", $pMemoryBlock) - EndSwitch - ; Grab the data from the Structure so the Memory can be unlocked - Local $vReturn = DllStructGetData($tData, 1) - - ; Unlock the memory & Close the clipboard now that we have grabbed what we needed - _MemGlobalUnlock($hMemory) - _ClipBoard_Close() - - ; Return the size of the string or binary object in @extended - Return SetExtended($iDataSize, $vReturn) -EndFunc ;==>_ClipBoard_GetData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_GetDataEx($iFormat = 1) - Local $aResult = DllCall("user32.dll", "handle", "GetClipboardData", "uint", $iFormat) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_GetDataEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Ascend4nt -; =============================================================================================================================== -Func _ClipBoard_GetFormatName($iFormat) - Local $aResult = DllCall("user32.dll", "int", "GetClipboardFormatNameW", "uint", $iFormat, "wstr", "", "int", 4096) - If @error Then Return SetError(@error, @extended, "") - Return $aResult[2] -EndFunc ;==>_ClipBoard_GetFormatName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_GetOpenWindow() - Local $aResult = DllCall("user32.dll", "hwnd", "GetOpenClipboardWindow") - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_GetOpenWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_GetOwner() - Local $aResult = DllCall("user32.dll", "hwnd", "GetClipboardOwner") - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_GetOwner - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_GetPriorityFormat($aFormats) - If Not IsArray($aFormats) Then Return SetError(-1, 0, 0) - If $aFormats[0] <= 0 Then Return SetError(-2, 0, 0) - - Local $tData = DllStructCreate("uint[" & $aFormats[0] & "]") - For $iI = 1 To $aFormats[0] - DllStructSetData($tData, 1, $aFormats[$iI], $iI) - Next - - Local $aResult = DllCall("user32.dll", "int", "GetPriorityClipboardFormat", "struct*", $tData, "int", $aFormats[0]) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_GetPriorityFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_GetSequenceNumber() - Local $aResult = DllCall("user32.dll", "dword", "GetClipboardSequenceNumber") - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_GetSequenceNumber - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_GetViewer() - Local $aResult = DllCall("user32.dll", "hwnd", "GetClipboardViewer") - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_GetViewer - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_IsFormatAvailable($iFormat) - Local $aResult = DllCall("user32.dll", "bool", "IsClipboardFormatAvailable", "uint", $iFormat) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_ClipBoard_IsFormatAvailable - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_Open($hOwner) - Local $aResult = DllCall("user32.dll", "bool", "OpenClipboard", "hwnd", $hOwner) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_ClipBoard_Open - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_RegisterFormat($sFormat) - Local $aResult = DllCall("user32.dll", "uint", "RegisterClipboardFormatW", "wstr", $sFormat) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_RegisterFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Ascend4nt -; =============================================================================================================================== -Func _ClipBoard_SetData($vData, $iFormat = 1) - Local $tData, $hLock, $hMemory, $iSize - - ; Special NULL case? (the option to provide clipboard formats upon request) - If IsNumber($vData) And $vData = 0 Then - ; No need to allocate/set memory - $hMemory = $vData - Else - ; Test if the format is Binary or String format (only supported formats) - If IsBinary($vData) Then - $iSize = BinaryLen($vData) - ElseIf IsString($vData) Then - $iSize = StringLen($vData) - Else - ; Unsupported data type - Return SetError(2, 0, 0) - EndIf - $iSize += 1 - - ; Memory allocation is in bytes, yet Unicode text is 2-bytes wide - If $iFormat = $CF_UNICODETEXT Then - ; Multiply $iSize (Character length for Unicode text) by 2 for Unicode - $hMemory = _MemGlobalAlloc($iSize * 2, $GHND) - Else - $hMemory = _MemGlobalAlloc($iSize, $GHND) - EndIf - - If $hMemory = 0 Then Return SetError(-1, 0, 0) - $hLock = _MemGlobalLock($hMemory) - If $hLock = 0 Then Return SetError(-2, 0, 0) - - Switch $iFormat - Case $CF_TEXT, $CF_OEMTEXT - $tData = DllStructCreate("char[" & $iSize & "]", $hLock) - Case $CF_UNICODETEXT - $tData = DllStructCreate("wchar[" & $iSize & "]", $hLock) - Case Else - ; Every other type is treated as Binary, or ASCII Strings - $tData = DllStructCreate("byte[" & $iSize & "]", $hLock) - EndSwitch - - DllStructSetData($tData, 1, $vData) - _MemGlobalUnlock($hMemory) - EndIf - - If Not _ClipBoard_Open(0) Then Return SetError(-5, 0, 0) - If Not _ClipBoard_Empty() Then - _ClipBoard_Close() - Return SetError(-6, 0, 0) - EndIf - If Not _ClipBoard_SetDataEx($hMemory, $iFormat) Then - _ClipBoard_Close() - Return SetError(-7, 0, 0) - EndIf - - _ClipBoard_Close() - Return $hMemory -EndFunc ;==>_ClipBoard_SetData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_SetDataEx(ByRef $hMemory, $iFormat = 1) - Local $aResult = DllCall("user32.dll", "handle", "SetClipboardData", "uint", $iFormat, "handle", $hMemory) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_SetDataEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ClipBoard_SetViewer($hViewer) - Local $aResult = DllCall("user32.dll", "hwnd", "SetClipboardViewer", "hwnd", $hViewer) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_ClipBoard_SetViewer diff --git a/build/Include/Color.au3 b/build/Include/Color.au3 deleted file mode 100644 index 56ddbd358..000000000 --- a/build/Include/Color.au3 +++ /dev/null @@ -1,237 +0,0 @@ -#include-Once - -#include "AutoItConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Color -; AutoIt Version : 3.3.14.2 -; Language ..... : English -; Description ...: Functions that assist with color management. -; Author(s) .....: Ultima, Jon, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__COLORCONSTANTS_HSLMAX = 240 -Global Const $__COLORCONSTANTS_RGBMAX = 255 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _ColorConvertHSLtoRGB -; _ColorConvertRGBtoHSL -; _ColorGetBlue -; _ColorGetGreen -; _ColorGetRed -; _ColorGetCOLORREF -; _ColorGetRGB -; _ColorSetCOLORREF -; _ColorSetRGB -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY#============================================================================== -; __ColorConvertHueToRGB -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Ultima -; Modified.......: -; =============================================================================================================================== -Func _ColorConvertHSLtoRGB($aArray) - If UBound($aArray) <> 3 Or UBound($aArray, $UBOUND_DIMENSIONS) <> 1 Then Return SetError(1, 0, 0) - - Local $nR, $nG, $nB - Local $nH = Number($aArray[0]) / $__COLORCONSTANTS_HSLMAX - Local $nS = Number($aArray[1]) / $__COLORCONSTANTS_HSLMAX - Local $nL = Number($aArray[2]) / $__COLORCONSTANTS_HSLMAX - - If $nS = 0 Then - ; Grayscale - $nR = $nL - $nG = $nL - $nB = $nL - Else - ; Chromatic - Local $nValA, $nValB - - If $nL <= 0.5 Then - $nValB = $nL * ($nS + 1) - Else - $nValB = ($nL + $nS) - ($nL * $nS) - EndIf - - $nValA = 2 * $nL - $nValB - $nR = __ColorConvertHueToRGB($nValA, $nValB, $nH + 1 / 3) - $nG = __ColorConvertHueToRGB($nValA, $nValB, $nH) - $nB = __ColorConvertHueToRGB($nValA, $nValB, $nH - 1 / 3) - EndIf - - $aArray[0] = $nR * $__COLORCONSTANTS_RGBMAX - $aArray[1] = $nG * $__COLORCONSTANTS_RGBMAX - $aArray[2] = $nB * $__COLORCONSTANTS_RGBMAX - - Return $aArray -EndFunc ;==>_ColorConvertHSLtoRGB - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __ColorConvertHueToRGB -; Description ...: Helper function for converting HSL to RGB -; Syntax.........: __ColorConvertHueToRGB ( $nA, $nB, $nH ) -; Parameters ....: $nA - Value A -; $nB - Value B -; $nH - Hue -; Return values .: A value based on value A and value B, dependent on the inputted hue -; Author ........: Ultima -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: See: EasyRGB - Color mathematics and conversion formulas. -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __ColorConvertHueToRGB($nA, $nB, $nH) - If $nH < 0 Then $nH += 1 - If $nH > 1 Then $nH -= 1 - - If (6 * $nH) < 1 Then Return $nA + ($nB - $nA) * 6 * $nH - If (2 * $nH) < 1 Then Return $nB - If (3 * $nH) < 2 Then Return $nA + ($nB - $nA) * 6 * (2 / 3 - $nH) - Return $nA -EndFunc ;==>__ColorConvertHueToRGB - -; #FUNCTION# ==================================================================================================================== -; Author ........: Ultima -; Modified.......: -; =============================================================================================================================== -Func _ColorConvertRGBtoHSL($aArray) - If UBound($aArray) <> 3 Or UBound($aArray, $UBOUND_DIMENSIONS) <> 1 Then Return SetError(1, 0, 0) - - Local $nH, $nS, $nL - Local $nR = Number($aArray[0]) / $__COLORCONSTANTS_RGBMAX - Local $nG = Number($aArray[1]) / $__COLORCONSTANTS_RGBMAX - Local $nB = Number($aArray[2]) / $__COLORCONSTANTS_RGBMAX - - Local $nMax = $nR - If $nMax < $nG Then $nMax = $nG - If $nMax < $nB Then $nMax = $nB - - Local $nMin = $nR - If $nMin > $nG Then $nMin = $nG - If $nMin > $nB Then $nMin = $nB - - Local $nMinMaxSum = ($nMax + $nMin) - Local $nMinMaxDiff = ($nMax - $nMin) - - ; Lightness - $nL = $nMinMaxSum / 2 - - If $nMinMaxDiff = 0 Then - ; Grayscale - $nH = 0 - $nS = 0 - Else - ; Saturation - If $nL < 0.5 Then - $nS = $nMinMaxDiff / $nMinMaxSum - Else - $nS = $nMinMaxDiff / (2 - $nMinMaxSum) - EndIf - - ; Hue - Switch $nMax - Case $nR - $nH = ($nG - $nB) / (6 * $nMinMaxDiff) - Case $nG - $nH = ($nB - $nR) / (6 * $nMinMaxDiff) + 1 / 3 - Case $nB - $nH = ($nR - $nG) / (6 * $nMinMaxDiff) + 2 / 3 - EndSwitch - If $nH < 0 Then $nH += 1 - If $nH > 1 Then $nH -= 1 - EndIf - - $aArray[0] = $nH * $__COLORCONSTANTS_HSLMAX - $aArray[1] = $nS * $__COLORCONSTANTS_HSLMAX - $aArray[2] = $nL * $__COLORCONSTANTS_HSLMAX - - Return $aArray -EndFunc ;==>_ColorConvertRGBtoHSL - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jonathan Bennett -; Modified.......: -; =============================================================================================================================== -Func _ColorGetBlue($iColor) - Return BitAND($iColor, 0xFF) -EndFunc ;==>_ColorGetBlue - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jonathan Bennett -; Modified.......: -; =============================================================================================================================== -Func _ColorGetGreen($iColor) - Return BitAND(BitShift($iColor, 8), 0xFF) -EndFunc ;==>_ColorGetGreen - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jonathan Bennett -; Modified.......: -; =============================================================================================================================== -Func _ColorGetRed($iColor) - Return BitAND(BitShift($iColor, 16), 0xFF) -EndFunc ;==>_ColorGetRed - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _ColorGetCOLORREF($iColor, Const $_iCurrentExtended = @extended) - If BitAND($iColor, 0xFF000000) Then Return SetError(1, 0, 0) ; invalid color value - Local $aColor[3] - $aColor[2] = BitAND(BitShift($iColor, 16), 0xFF) - $aColor[1] = BitAND(BitShift($iColor, 8), 0xFF) - $aColor[0] = BitAND($iColor, 0xFF) - Return SetExtended($_iCurrentExtended, $aColor) -EndFunc ;==>_ColorGetCOLORREF - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _ColorGetRGB($iColor, Const $_iCurrentExtended = @extended) - If BitAND($iColor, 0xFF000000) Then Return SetError(1, 0, 0) ; invalid color value - Local $aColor[3] - $aColor[0] = BitAND(BitShift($iColor, 16), 0xFF) - $aColor[1] = BitAND(BitShift($iColor, 8), 0xFF) - $aColor[2] = BitAND($iColor, 0xFF) - Return SetExtended($_iCurrentExtended, $aColor) -EndFunc ;==>_ColorGetRGB - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _ColorSetCOLORREF($aColor, Const $_iCurrentExtended = @extended) - If UBound($aColor) <> 3 Then Return SetError(1, 0, -1) ; invalid array - Local $iColor = 0, $iColorI - For $i = 2 To 0 Step -1 - $iColor = BitShift($iColor, -8) - $iColorI = $aColor[$i] - If $iColorI < 0 Or $iColorI > 255 Then Return SetError(2, $i, -1) ; invalid color value - $iColor += $iColorI - Next - Return SetExtended($_iCurrentExtended, $iColor) -EndFunc ;==>_ColorSetCOLORREF - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _ColorSetRGB($aColor, Const $_iCurrentExtended = @extended) - If UBound($aColor) <> 3 Then Return SetError(1, 0, -1) ; invalid array - Local $iColor = 0, $iColorI - For $i = 0 To 2 - $iColor = BitShift($iColor, -8) - $iColorI = $aColor[$i] - If $iColorI < 0 Or $iColorI > 255 Then Return SetError(2, 0, -1) ; invalid color value - $iColor += $iColorI - Next - Return SetExtended($_iCurrentExtended, $iColor) -EndFunc ;==>_ColorSetRGB diff --git a/build/Include/ColorConstants.au3 b/build/Include/ColorConstants.au3 deleted file mode 100644 index 6358b733f..000000000 --- a/build/Include/ColorConstants.au3 +++ /dev/null @@ -1,66 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script. -; Author(s) .....: JLandes, Nutster, CyberSlug, Holger, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; Colour Constants RGB Hex -Global Const $COLOR_AQUA = 0x00FFFF -Global Const $COLOR_BLACK = 0x000000 -Global Const $COLOR_BLUE = 0x0000FF -Global Const $COLOR_CREAM = 0xFFFBF0 -Global Const $COLOR_FUCHSIA = 0xFF00FF -Global Const $COLOR_GRAY = 0x808080 -Global Const $COLOR_GREEN = 0x008000 -Global Const $COLOR_LIME = 0x00FF00 -Global Const $COLOR_MAROON = 0x8B1C62 -Global Const $COLOR_MEDBLUE = 0x0002C4 -Global Const $COLOR_MEDGRAY = 0xA0A0A4 -Global Const $COLOR_MONEYGREEN = 0xC0DCC0 -Global Const $COLOR_NAVY = 0x000080 -Global Const $COLOR_OLIVE = 0x808000 -Global Const $COLOR_PURPLE = 0x800080 -Global Const $COLOR_RED = 0xFF0000 -Global Const $COLOR_SILVER = 0xC0C0C0 -Global Const $COLOR_SKYBLUE = 0xA6CAF0 -Global Const $COLOR_TEAL = 0x008080 -Global Const $COLOR_WHITE = 0xFFFFFF -Global Const $COLOR_YELLOW = 0xFFFF00 - -Global Const $CLR_NONE = 0xFFFFFFFF -Global Const $CLR_DEFAULT = 0xFF000000 - -; Color Constants BGR Hex -Global Const $CLR_AQUA = 0xFFFF00 -Global Const $CLR_BLACK = 0x000000 -Global Const $CLR_BLUE = 0xFF0000 -Global Const $CLR_CREAM = 0xF0FBFF -Global Const $CLR_FUCHSIA = 0xFF00FF -Global Const $CLR_GRAY = 0x808080 -Global Const $CLR_GREEN = 0x008000 -Global Const $CLR_LIME = 0x00FF00 -Global Const $CLR_MAROON = 0x621C8B -Global Const $CLR_MEDBLUE = 0xC40200 -Global Const $CLR_MEDGRAY = 0xA4A0A0 -Global Const $CLR_MONEYGREEN = 0xC0DCC0 -Global Const $CLR_NAVY = 0x800000 -Global Const $CLR_OLIVE = 0x008080 -Global Const $CLR_PURPLE = 0x800080 -Global Const $CLR_RED = 0x0000FF -Global Const $CLR_SILVER = 0xC0C0C0 -Global Const $CLR_SKYBLUE = 0xF0CAA6 -Global Const $CLR_TEAL = 0x808000 -Global Const $CLR_WHITE = 0xFFFFFF -Global Const $CLR_YELLOW = 0x00FFFF - -; Color Dialog constants -Global Const $CC_ANYCOLOR = 0x0100 -Global Const $CC_FULLOPEN = 0x0002 -Global Const $CC_RGBINIT = 0x0001 -; =============================================================================================================================== diff --git a/build/Include/ComboConstants.au3 b/build/Include/ComboConstants.au3 deleted file mode 100644 index 64d825ef2..000000000 --- a/build/Include/ComboConstants.au3 +++ /dev/null @@ -1,147 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: ComboBox_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for GUI control Combo styles and more. -; Author(s) .....: Valik, Gary Frost -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Error checking -Global Const $CB_ERR = -1 -Global Const $CB_ERRATTRIBUTE = -3 -Global Const $CB_ERRREQUIRED = -4 -Global Const $CB_ERRSPACE = -2 -Global Const $CB_OKAY = 0 - -; States -Global Const $STATE_SYSTEM_INVISIBLE = 0x8000 -Global Const $STATE_SYSTEM_PRESSED = 0x8 - -; ComboBox Styles -Global Const $CBS_AUTOHSCROLL = 0x40 ; Automatically scrolls the text in an edit control to the right when the user types a character at the end of the line. -Global Const $CBS_DISABLENOSCROLL = 0x800 ; Shows a disabled vertical scroll bar -Global Const $CBS_DROPDOWN = 0x2 ; Similar to $CBS_SIMPLE, except that the list box is not displayed unless the user selects an icon next to the edit control -Global Const $CBS_DROPDOWNLIST = 0x3 ; Similar to $CBS_DROPDOWN, except that the edit control is replaced by a static text item that displays the current selection in the list box -Global Const $CBS_HASSTRINGS = 0x200 ; Specifies that an owner-drawn combo box contains items consisting of strings -Global Const $CBS_LOWERCASE = 0x4000 ; Converts to lowercase all text in both the selection field and the list -Global Const $CBS_NOINTEGRALHEIGHT = 0x400 ; Specifies that the size of the combo box is exactly the size specified by the application when it created the combo box -Global Const $CBS_OEMCONVERT = 0x80 ; Converts text entered in the combo box edit control from the Windows character set to the OEM character set and then back to the Windows character set -Global Const $CBS_OWNERDRAWFIXED = 0x10 ; Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are all the same height -Global Const $CBS_OWNERDRAWVARIABLE = 0x20 ; Specifies that the owner of the list box is responsible for drawing its contents and that the items in the list box are variable in height -Global Const $CBS_SIMPLE = 0x1 ; Displays the list box at all times -Global Const $CBS_SORT = 0x100 ; Automatically sorts strings added to the list box -Global Const $CBS_UPPERCASE = 0x2000 ; Converts to uppercase all text in both the selection field and the list - -; ComboBox Messages -Global Const $CBM_FIRST = 0x1700 -Global Const $CB_ADDSTRING = 0x143 -Global Const $CB_DELETESTRING = 0x144 -Global Const $CB_DIR = 0x145 -Global Const $CB_FINDSTRING = 0x14C -Global Const $CB_FINDSTRINGEXACT = 0x158 -Global Const $CB_GETCOMBOBOXINFO = 0x164 -Global Const $CB_GETCOUNT = 0x146 -Global Const $CB_GETCUEBANNER = ($CBM_FIRST + 4) -Global Const $CB_GETCURSEL = 0x147 -Global Const $CB_GETDROPPEDCONTROLRECT = 0x152 -Global Const $CB_GETDROPPEDSTATE = 0x157 -Global Const $CB_GETDROPPEDWIDTH = 0X15f -Global Const $CB_GETEDITSEL = 0x140 -Global Const $CB_GETEXTENDEDUI = 0x156 -Global Const $CB_GETHORIZONTALEXTENT = 0x15d -Global Const $CB_GETITEMDATA = 0x150 -Global Const $CB_GETITEMHEIGHT = 0x154 -Global Const $CB_GETLBTEXT = 0x148 -Global Const $CB_GETLBTEXTLEN = 0x149 -Global Const $CB_GETLOCALE = 0x15A -Global Const $CB_GETMINVISIBLE = 0x1702 -Global Const $CB_GETTOPINDEX = 0x15b -Global Const $CB_INITSTORAGE = 0x161 -Global Const $CB_LIMITTEXT = 0x141 -Global Const $CB_RESETCONTENT = 0x14B -Global Const $CB_INSERTSTRING = 0x14A -Global Const $CB_SELECTSTRING = 0x14D -Global Const $CB_SETCUEBANNER = ($CBM_FIRST + 3) -Global Const $CB_SETCURSEL = 0x14E -Global Const $CB_SETDROPPEDWIDTH = 0x160 -Global Const $CB_SETEDITSEL = 0x142 -Global Const $CB_SETEXTENDEDUI = 0x155 -Global Const $CB_SETHORIZONTALEXTENT = 0x15e -Global Const $CB_SETITEMDATA = 0x151 -Global Const $CB_SETITEMHEIGHT = 0x153 -Global Const $CB_SETLOCALE = 0x159 -Global Const $CB_SETMINVISIBLE = 0x1701 -Global Const $CB_SETTOPINDEX = 0x15c -Global Const $CB_SHOWDROPDOWN = 0x14F - -; ComboBox Notifications -Global Const $CBN_CLOSEUP = 8 -Global Const $CBN_DBLCLK = 2 -Global Const $CBN_DROPDOWN = 7 -Global Const $CBN_EDITCHANGE = 5 -Global Const $CBN_EDITUPDATE = 6 -Global Const $CBN_ERRSPACE = (-1) -Global Const $CBN_KILLFOCUS = 4 -Global Const $CBN_SELCHANGE = 1 -Global Const $CBN_SELENDCANCEL = 10 -Global Const $CBN_SELENDOK = 9 -Global Const $CBN_SETFOCUS = 3 - -; ComboBoxEx Styles -; ComboBox styles supported: $CBS_DROPDOWN, $CBS_DROPDOWNLIST, $CBS_SIMPLE -Global Const $CBES_EX_CASESENSITIVE = 0x10 ; Searches in the list will be case sensitive -Global Const $CBES_EX_NOEDITIMAGE = 0x1 ; The edit box and the dropdown list will not display item images -Global Const $CBES_EX_NOEDITIMAGEINDENT = 0x2 ; The edit box and the dropdown list will not display item images -Global Const $CBES_EX_NOSIZELIMIT = 0x8 ; Allows the ComboBoxEx control to be vertically sized smaller than its contained combo box control - -; ComboBoxEx Messages -Global Const $__COMBOBOXCONSTANT_WM_USER = 0X400 -Global Const $CBEM_DELETEITEM = $CB_DELETESTRING -Global Const $CBEM_GETCOMBOCONTROL = ($__COMBOBOXCONSTANT_WM_USER + 6) -Global Const $CBEM_GETEDITCONTROL = ($__COMBOBOXCONSTANT_WM_USER + 7) -Global Const $CBEM_GETEXSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 9) -Global Const $CBEM_GETEXTENDEDSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 9) -Global Const $CBEM_GETIMAGELIST = ($__COMBOBOXCONSTANT_WM_USER + 3) -Global Const $CBEM_GETITEMA = ($__COMBOBOXCONSTANT_WM_USER + 4) -Global Const $CBEM_GETITEMW = ($__COMBOBOXCONSTANT_WM_USER + 13) -Global Const $CBEM_GETUNICODEFORMAT = 0x2000 + 6 -Global Const $CBEM_HASEDITCHANGED = ($__COMBOBOXCONSTANT_WM_USER + 10) -Global Const $CBEM_INSERTITEMA = ($__COMBOBOXCONSTANT_WM_USER + 1) -Global Const $CBEM_INSERTITEMW = ($__COMBOBOXCONSTANT_WM_USER + 11) -Global Const $CBEM_SETEXSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 8) -Global Const $CBEM_SETEXTENDEDSTYLE = ($__COMBOBOXCONSTANT_WM_USER + 14) -Global Const $CBEM_SETIMAGELIST = ($__COMBOBOXCONSTANT_WM_USER + 2) -Global Const $CBEM_SETITEMA = ($__COMBOBOXCONSTANT_WM_USER + 5) -Global Const $CBEM_SETITEMW = ($__COMBOBOXCONSTANT_WM_USER + 12) -Global Const $CBEM_SETUNICODEFORMAT = 0x2000 + 5 -Global Const $CBEM_SETWINDOWTHEME = 0x2000 + 11 - -; ComboBoxEx Notifications -Global Const $CBEN_FIRST = (-800) -Global Const $CBEN_LAST = (-830) -Global Const $CBEN_BEGINEDIT = ($CBEN_FIRST - 4) -Global Const $CBEN_DELETEITEM = ($CBEN_FIRST - 2) -Global Const $CBEN_DRAGBEGINA = ($CBEN_FIRST - 8) -Global Const $CBEN_DRAGBEGINW = ($CBEN_FIRST - 9) -Global Const $CBEN_ENDEDITA = ($CBEN_FIRST - 5) -Global Const $CBEN_ENDEDITW = ($CBEN_FIRST - 6) -Global Const $CBEN_GETDISPINFO = ($CBEN_FIRST - 0) -Global Const $CBEN_GETDISPINFOA = ($CBEN_FIRST - 0) -Global Const $CBEN_GETDISPINFOW = ($CBEN_FIRST - 7) -Global Const $CBEN_INSERTITEM = ($CBEN_FIRST - 1) - -; attributes for Extended ComboBox -Global Const $CBEIF_DI_SETITEM = 0x10000000 -Global Const $CBEIF_IMAGE = 0x2 -Global Const $CBEIF_INDENT = 0x10 -Global Const $CBEIF_LPARAM = 0x20 -Global Const $CBEIF_OVERLAY = 0x8 -Global Const $CBEIF_SELECTEDIMAGE = 0x4 -Global Const $CBEIF_TEXT = 0x1 - -; Control default styles -Global Const $GUI_SS_DEFAULT_COMBO = 0x00200042 ; BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL, $WS_VSCROLL) -; =============================================================================================================================== diff --git a/build/Include/Constants.au3 b/build/Include/Constants.au3 deleted file mode 100644 index 50619993c..000000000 --- a/build/Include/Constants.au3 +++ /dev/null @@ -1,176 +0,0 @@ -#include-once - -#include "AutoItConstants.au3" -#include "ColorConstants.au3" -#include "DirConstants.au3" -#include "FileConstants.au3" -#include "MsgBoxConstants.au3" -#include "ProcessConstants.au3" -#include "StringConstants.au3" -#include "TrayConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script. -; Author(s) .....: JLandes, Nutster, CyberSlug, Holger, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Sets the way coords are used in the mouse and pixel functions -; in AutoItConstants.au3 - -; Sets how errors are handled if a Run/RunWait function fails -; in AutoItConstants.au3 - -; Alters the use of Caps Lock -; in AutoItConstants.au3 - -; Alters the method that is used to match window titles -; in AutoItConstants.au3 - -; Common Control Styles -; in AutoItConstants.au3 - -; DrawIconEx Constants -; in WinAPIConstants.au3 - -; EnumDisplayDevice Constants -; in WinAPIConstants.au3 - -; Dir Constants -; in DirConstants.au3 - -; DriveGetType() Constants -; in AutoItConstants.au3 - -; File Constants -; in FileConstants.au3 - -; FlashWindowEx Constants -; in WinAPIConstants.au3 - -; FormatMessage Constants -; in WinAPIConstants.au3 - -; GetWindows Constants -; in WinAPIConstants.au3 - -; GetWindowLong Constants -; in WinAPIConstants.au3 - -; Standard Icon Index Constants -; in WinAPIConstants.au3 - -; Image Load Constants -; in WinAPIConstants.au3 - -; Image Type Constants -; in WinAPIConstants.au3 - -; Keyboard Constants -; Changes how keys are processed -; in WinAPIConstants.au3 - -; Sets the state of the Caps Lock key -; in WinAPIConstants.au3 - -; LoadLibraryEx Constants -; in WinAPIConstants.au3 - -; Reserved IDs for System Objects -; in MenuConstants.au3 -; in ScrollBarsConstants.au3 -; in AutoItConstants.au3 - -; Virtual Keys Constants -; in WinAPIvkeysConstants.au3 - -; Message Box Constants -; Indicates the buttons displayed in the message box -; in MsgBoxConstants.au3 - -; Displays an icon in the message box -; in MsgBoxConstants.au3 - -; Indicates the default button -; in MsgBoxConstants.au3 - -; Indicates the modality of the dialog box -; in MsgBoxConstants.au3 - -; Indicates miscellaneous message box attributes -; in MsgBoxConstants.au3 - -; Indicates the button selected in the message box -; in MsgBoxConstants.au3 - -; Progress and Splash Constants -; Indicates properties of the displayed progress or splash dialog -; in AutoItConstants.au3 - -; Tray Tip Constants -; in TrayConstants.au3 - -; Mouse Constants -; Indicates current mouse cursor -; in AutoItConstants.au3 - -; Process Constants -; Indicates the type of shutdown -; in AutoItConstants.au3 - -; OpenProcess Constants -; in ProcessConstants.au3 - -; String Constants -; in StringConstants.au3 -; Indicates if string operations should be case sensitive - -; StringStripWS Constants -; Indicates the type of stripping that should be performed -; in StringConstants.au3 - -; StringSplit Constants -; in StringConstants.au3 - -; Token Constants -; in SecurityConstants.au3 - -; Tray Constants -; in TrayConstants.au3 - -; Run Constants -; in AutoItConstants.au3 - -; Colour Constants -; in ColorConstants.au3 - -; UBound Constants -; in AutoItConstants.au3 - -; Mouse Event Constants -; in AutoItConstants.au3 - -; Reg Value type Constants -; in AutoItConstants.au3 - -; Z order -; in AutoItConstants.au3 - -; SetWindowPos Constants -; in AutoItConstants.au3 - -; Keywords (returned from the IsKeyword() function -; in AutoItConstants.au3 - -; language identifiers -; in WinAPIlangConstants.au3 - -; sublanguage identifiers -; in WinAPIlangConstants.au3 - -; Sorting IDs. (from WINNT.H) -; in WinAPIlangConstants.au3 -; =============================================================================================================================== diff --git a/build/Include/Crypt.au3 b/build/Include/Crypt.au3 deleted file mode 100644 index d0f8678db..000000000 --- a/build/Include/Crypt.au3 +++ /dev/null @@ -1,695 +0,0 @@ -#include-once - -#include "FileConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Crypt -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions for encrypting and hashing data. -; Author(s) .....: Andreas Karlsson (monoceres), jchd -; Dll(s) ........: Advapi32.dll -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _Crypt_Startup -; _Crypt_Shutdown -; _Crypt_DeriveKey -; _Crypt_DestroyKey -; _Crypt_EncryptData -; _Crypt_DecryptData -; _Crypt_HashData -; _Crypt_HashFile -; _Crypt_EncryptFile -; _Crypt_DecryptFile -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __Crypt_RefCount -; __Crypt_RefCountInc -; __Crypt_RefCountDec -; __Crypt_DllHandle -; __Crypt_DllHandleSet -; __Crypt_Context -; __Crypt_ContextSet -; __Crypt_GetCalgFromCryptKey -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $PROV_RSA_FULL = 0x1 -Global Const $PROV_RSA_AES = 24 -Global Const $CRYPT_VERIFYCONTEXT = 0xF0000000 -Global Const $HP_HASHSIZE = 0x0004 -Global Const $HP_HASHVAL = 0x0002 -Global Const $CRYPT_EXPORTABLE = 0x00000001 -Global Const $CRYPT_USERDATA = 1 - -Global Const $CALG_MD2 = 0x00008001 -Global Const $CALG_MD4 = 0x00008002 -Global Const $CALG_MD5 = 0x00008003 -Global Const $CALG_SHA1 = 0x00008004 -; Global Const $CALG_SHA_256 = 0x0000800c -; Global Const $CALG_SHA_384 = 0x0000800d -; Global Const $CALG_SHA_512 = 0x0000800e -Global Const $CALG_3DES = 0x00006603 -Global Const $CALG_AES_128 = 0x0000660e -Global Const $CALG_AES_192 = 0x0000660f -Global Const $CALG_AES_256 = 0x00006610 -Global Const $CALG_DES = 0x00006601 -Global Const $CALG_RC2 = 0x00006602 -Global Const $CALG_RC4 = 0x00006801 -Global Const $CALG_USERKEY = 0 -Global Const $KP_ALGID = 0x00000007 - -; #VARIABLES# =================================================================================================================== -Global $__g_aCryptInternalData[3] - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: -; =============================================================================================================================== -Func _Crypt_Startup() - If __Crypt_RefCount() = 0 Then - Local $hAdvapi32 = DllOpen("Advapi32.dll") - If $hAdvapi32 = -1 Then Return SetError(1, 0, False) - __Crypt_DllHandleSet($hAdvapi32) - Local $iProviderID = $PROV_RSA_AES - Local $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptAcquireContext", "handle*", 0, "ptr", 0, "ptr", 0, "dword", $iProviderID, "dword", $CRYPT_VERIFYCONTEXT) - If @error Or Not $aRet[0] Then - Local $iError = @error + 10, $iExtended = @extended - DllClose(__Crypt_DllHandle()) - Return SetError($iError, $iExtended, False) - Else - __Crypt_ContextSet($aRet[1]) - ; Fall through to success. - EndIf - EndIf - __Crypt_RefCountInc() - Return True -EndFunc ;==>_Crypt_Startup - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: -; =============================================================================================================================== -Func _Crypt_Shutdown() - __Crypt_RefCountDec() - If __Crypt_RefCount() = 0 Then - DllCall(__Crypt_DllHandle(), "bool", "CryptReleaseContext", "handle", __Crypt_Context(), "dword", 0) - DllClose(__Crypt_DllHandle()) - EndIf -EndFunc ;==>_Crypt_Shutdown - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: -; =============================================================================================================================== -Func _Crypt_DeriveKey($vPassword, $iAlgID, $iHashAlgID = $CALG_MD5) - Local $aRet = 0, _ - $hBuff = 0, $hCryptHash = 0, _ - $iError = 0, $iExtended = 0, _ - $vReturn = 0 - - _Crypt_Startup() - Do - ; Create Hash object - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptCreateHash", "handle", __Crypt_Context(), "uint", $iHashAlgID, "ptr", 0, "dword", 0, "handle*", 0) - If @error Or Not $aRet[0] Then - $iError = @error + 10 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - - $hCryptHash = $aRet[5] - $hBuff = DllStructCreate("byte[" & BinaryLen($vPassword) & "]") - DllStructSetData($hBuff, 1, $vPassword) - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptHashData", "handle", $hCryptHash, "struct*", $hBuff, "dword", DllStructGetSize($hBuff), "dword", $CRYPT_USERDATA) - If @error Or Not $aRet[0] Then - $iError = @error + 20 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - - ; Create key - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptDeriveKey", "handle", __Crypt_Context(), "uint", $iAlgID, "handle", $hCryptHash, "dword", $CRYPT_EXPORTABLE, "handle*", 0) - If @error Or Not $aRet[0] Then - $iError = @error + 30 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - $vReturn = $aRet[5] - Until True - If $hCryptHash <> 0 Then DllCall(__Crypt_DllHandle(), "bool", "CryptDestroyHash", "handle", $hCryptHash) - - Return SetError($iError, $iExtended, $vReturn) -EndFunc ;==>_Crypt_DeriveKey - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: -; =============================================================================================================================== -Func _Crypt_DestroyKey($hCryptKey) - ; _Crypt_Startup() - Local $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptDestroyKey", "handle", $hCryptKey) - Local $iError = @error, $iExtended = @extended - _Crypt_Shutdown() - If $iError Or Not $aRet[0] Then - Return SetError($iError + 10, $iExtended, False) - Else - Return True - EndIf -EndFunc ;==>_Crypt_DestroyKey - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: jchd -; =============================================================================================================================== -Func _Crypt_EncryptData($vData, $vCryptKey, $iAlgID, $bFinal = True) - - Switch $iAlgID - Case $CALG_USERKEY - Local $iCalgUsed = __Crypt_GetCalgFromCryptKey($vCryptKey) - If @error Then Return SetError(@error, -1, @extended) - If $iCalgUsed = $CALG_RC4 Then ContinueCase - Case $CALG_RC4 - If BinaryLen($vData) = 0 Then Return SetError(0, 0, Binary('')) - EndSwitch - - Local $iReqBuffSize = 0, _ - $aRet = 0, _ - $hBuff = 0, _ - $iError = 0, $iExtended = 0, _ - $vReturn = 0 - - _Crypt_Startup() - - Do - If $iAlgID <> $CALG_USERKEY Then - $vCryptKey = _Crypt_DeriveKey($vCryptKey, $iAlgID) - If @error Then - $iError = @error + 100 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - EndIf - - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptEncrypt", "handle", $vCryptKey, "handle", 0, "bool", $bFinal, "dword", 0, "ptr", 0, _ - "dword*", BinaryLen($vData), "dword", 0) - If @error Or Not $aRet[0] Then - $iError = @error + 20 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - - $iReqBuffSize = $aRet[6] - $hBuff = DllStructCreate("byte[" & $iReqBuffSize + 1 & "]") - DllStructSetData($hBuff, 1, $vData) - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptEncrypt", "handle", $vCryptKey, "handle", 0, "bool", $bFinal, "dword", 0, "struct*", $hBuff, _ - "dword*", BinaryLen($vData), "dword", DllStructGetSize($hBuff) - 1) - If @error Or Not $aRet[0] Then - $iError = @error + 30 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - $vReturn = BinaryMid(DllStructGetData($hBuff, 1), 1, $iReqBuffSize) - Until True - - If $iAlgID <> $CALG_USERKEY Then _Crypt_DestroyKey($vCryptKey) - _Crypt_Shutdown() - - Return SetError($iError, $iExtended, $vReturn) -EndFunc ;==>_Crypt_EncryptData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: jchd -; =============================================================================================================================== -Func _Crypt_DecryptData($vData, $vCryptKey, $iAlgID, $bFinal = True) - - Switch $iAlgID - Case $CALG_USERKEY - Local $iCalgUsed = __Crypt_GetCalgFromCryptKey($vCryptKey) - If @error Then Return SetError(@error, -1, @extended) - If $iCalgUsed = $CALG_RC4 Then ContinueCase - Case $CALG_RC4 - If BinaryLen($vData) = 0 Then Return SetError(0, 0, Binary('')) - EndSwitch - - Local $aRet = 0, _ - $hBuff = 0, $hTempStruct = 0, _ - $iError = 0, $iExtended = 0, $iPlainTextSize = 0, _ - $vReturn = 0 - - _Crypt_Startup() - - Do - If $iAlgID <> $CALG_USERKEY Then - $vCryptKey = _Crypt_DeriveKey($vCryptKey, $iAlgID) - If @error Then - $iError = @error + 100 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - EndIf - - $hBuff = DllStructCreate("byte[" & BinaryLen($vData) + 1000 & "]") - If BinaryLen($vData) > 0 Then DllStructSetData($hBuff, 1, $vData) - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptDecrypt", "handle", $vCryptKey, "handle", 0, "bool", $bFinal, "dword", 0, "struct*", $hBuff, "dword*", BinaryLen($vData)) - If @error Or Not $aRet[0] Then - $iError = @error + 20 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - - $iPlainTextSize = $aRet[6] - $hTempStruct = DllStructCreate("byte[" & $iPlainTextSize + 1 & "]", DllStructGetPtr($hBuff)) - $vReturn = BinaryMid(DllStructGetData($hTempStruct, 1), 1, $iPlainTextSize) - Until True - - If $iAlgID <> $CALG_USERKEY Then _Crypt_DestroyKey($vCryptKey) - _Crypt_Shutdown() - - Return SetError($iError, $iExtended, $vReturn) -EndFunc ;==>_Crypt_DecryptData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: -; =============================================================================================================================== -Func _Crypt_HashData($vData, $iAlgID, $bFinal = True, $hCryptHash = 0) - Local $aRet = 0, _ - $hBuff = 0, _ - $iError = 0, $iExtended = 0, $iHashSize = 0, _ - $vReturn = 0 - - _Crypt_Startup() - Do - If $hCryptHash = 0 Then - ; Create Hash object - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptCreateHash", "handle", __Crypt_Context(), "uint", $iAlgID, "ptr", 0, "dword", 0, "handle*", 0) - If @error Or Not $aRet[0] Then - $iError = @error + 10 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - $hCryptHash = $aRet[5] - EndIf - - $hBuff = DllStructCreate("byte[" & BinaryLen($vData) & "]") - DllStructSetData($hBuff, 1, $vData) - - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptHashData", "handle", $hCryptHash, "struct*", $hBuff, "dword", DllStructGetSize($hBuff), "dword", $CRYPT_USERDATA) - If @error Or Not $aRet[0] Then - $iError = @error + 20 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - - If $bFinal Then - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptGetHashParam", "handle", $hCryptHash, "dword", $HP_HASHSIZE, "dword*", 0, "dword*", 4, "dword", 0) - If @error Or Not $aRet[0] Then - $iError = @error + 30 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - $iHashSize = $aRet[3] - - ; Get Hash - $hBuff = DllStructCreate("byte[" & $iHashSize & "]") - $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptGetHashParam", "handle", $hCryptHash, "dword", $HP_HASHVAL, "struct*", $hBuff, "dword*", DllStructGetSize($hBuff), "dword", 0) - If @error Or Not $aRet[0] Then - $iError = @error + 40 - $iExtended = @extended - $vReturn = -1 - ExitLoop - EndIf - $vReturn = DllStructGetData($hBuff, 1) - Else - $vReturn = $hCryptHash - EndIf - Until True - - ; Cleanup and return hash - If $hCryptHash <> 0 And $bFinal Then DllCall(__Crypt_DllHandle(), "bool", "CryptDestroyHash", "handle", $hCryptHash) - - _Crypt_Shutdown() - - Return SetError($iError, $iExtended, $vReturn) -EndFunc ;==>_Crypt_HashData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: -; =============================================================================================================================== -Func _Crypt_HashFile($sFilePath, $iAlgID) - Local $bTempData = 0, _ - $hFile = 0, $hHashObject = 0, _ - $iError = 0, $iExtended = 0, _ - $vReturn = 0 - - _Crypt_Startup() - - Do - $hFile = FileOpen($sFilePath, $FO_BINARY) - If $hFile = -1 Then - $iError = 1 - $vReturn = -1 - ExitLoop - EndIf - - Do - $bTempData = FileRead($hFile, 512 * 1024) - If @error Then - $vReturn = _Crypt_HashData($bTempData, $iAlgID, True, $hHashObject) - If @error Then - $iError = @error - $iExtended = @extended - $vReturn = -1 - ExitLoop 2 - EndIf - ExitLoop 2 - Else - $hHashObject = _Crypt_HashData($bTempData, $iAlgID, False, $hHashObject) - If @error Then - $iError = @error + 100 - $iExtended = @extended - $vReturn = -1 - ExitLoop 2 - EndIf - EndIf - Until False - Until True - - _Crypt_Shutdown() - If $hFile <> -1 Then FileClose($hFile) - - Return SetError($iError, $iExtended, $vReturn) -EndFunc ;==>_Crypt_HashFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: -; =============================================================================================================================== -Func _Crypt_EncryptFile($sSourceFile, $sDestinationFile, $vCryptKey, $iAlgID) - Local $bTempData = 0, _ - $hInFile = 0, $hOutFile = 0, _ - $iError = 0, $iExtended = 0, $iFileSize = FileGetSize($sSourceFile), $iRead = 0, _ - $bReturn = True - - _Crypt_Startup() - - Do - If $iAlgID <> $CALG_USERKEY Then - $vCryptKey = _Crypt_DeriveKey($vCryptKey, $iAlgID) - If @error Then - $iError = @error - $iExtended = @extended - $bReturn = False - ExitLoop - EndIf - EndIf - - $hInFile = FileOpen($sSourceFile, $FO_BINARY) - If @error Then - $iError = 2 - $bReturn = False - ExitLoop - EndIf - $hOutFile = FileOpen($sDestinationFile, $FO_OVERWRITE + $FO_CREATEPATH + $FO_BINARY) - If @error Then - $iError = 3 - $bReturn = False - ExitLoop - EndIf - - Do - $bTempData = FileRead($hInFile, 1024 * 1024) - $iRead += BinaryLen($bTempData) - If $iRead = $iFileSize Then - $bTempData = _Crypt_EncryptData($bTempData, $vCryptKey, $CALG_USERKEY, True) - If @error Then - $iError = @error + 400 - $iExtended = @extended - $bReturn = False - EndIf - FileWrite($hOutFile, $bTempData) - ExitLoop 2 - Else - $bTempData = _Crypt_EncryptData($bTempData, $vCryptKey, $CALG_USERKEY, False) - If @error Then - $iError = @error + 500 - $iExtended = @extended - $bReturn = False - ExitLoop 2 - EndIf - FileWrite($hOutFile, $bTempData) - EndIf - Until False - Until True - - If $iAlgID <> $CALG_USERKEY Then _Crypt_DestroyKey($vCryptKey) - _Crypt_Shutdown() - If $hInFile <> -1 Then FileClose($hInFile) - If $hOutFile <> -1 Then FileClose($hOutFile) - - Return SetError($iError, $iExtended, $bReturn) -EndFunc ;==>_Crypt_EncryptFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified ......: -; =============================================================================================================================== -Func _Crypt_DecryptFile($sSourceFile, $sDestinationFile, $vCryptKey, $iAlgID) - Local $bTempData = 0, _ - $hInFile = 0, $hOutFile = 0, _ - $iError = 0, $iExtended = 0, $iFileSize = FileGetSize($sSourceFile), $iRead = 0, _ - $bReturn = True - - _Crypt_Startup() - - Do - If $iAlgID <> $CALG_USERKEY Then - $vCryptKey = _Crypt_DeriveKey($vCryptKey, $iAlgID) - If @error Then - $iError = @error - $iExtended = @extended - $bReturn = False - ExitLoop - EndIf - EndIf - - $hInFile = FileOpen($sSourceFile, $FO_BINARY) - If @error Then - $iError = 2 - $bReturn = False - ExitLoop - EndIf - $hOutFile = FileOpen($sDestinationFile, $FO_OVERWRITE + $FO_CREATEPATH + $FO_BINARY) - If @error Then - $iError = 3 - $bReturn = False - ExitLoop - EndIf - - Do - $bTempData = FileRead($hInFile, 1024 * 1024) - $iRead += BinaryLen($bTempData) - If $iRead = $iFileSize Then - $bTempData = _Crypt_DecryptData($bTempData, $vCryptKey, $CALG_USERKEY, True) - If @error Then - $iError = @error + 400 - $iExtended = @extended - $bReturn = False - EndIf - FileWrite($hOutFile, $bTempData) - ExitLoop 2 - Else - $bTempData = _Crypt_DecryptData($bTempData, $vCryptKey, $CALG_USERKEY, False) - If @error Then - $iError = @error + 500 - $iExtended = @extended - $bReturn = False - ExitLoop 2 - EndIf - FileWrite($hOutFile, $bTempData) - EndIf - Until False - Until True - - If $iAlgID <> $CALG_USERKEY Then _Crypt_DestroyKey($vCryptKey) - _Crypt_Shutdown() - If $hInFile <> -1 Then FileClose($hInFile) - If $hOutFile <> -1 Then FileClose($hOutFile) - - Return SetError($iError, $iExtended, $bReturn) -EndFunc ;==>_Crypt_DecryptFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Erik Pilsits (wraithdu) -; Modified ......: -; =============================================================================================================================== -Func _Crypt_GenRandom($pBuffer, $iSize) - _Crypt_Startup() - Local $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptGenRandom", "handle", __Crypt_Context(), "dword", $iSize, "struct*", $pBuffer) - Local $iError = @error, $iExtended = @extended - _Crypt_Shutdown() - If $iError Or (Not $aRet[0]) Then - Return SetError($iError + 10, $iExtended, False) - Else - Return True - EndIf -EndFunc ;==>_Crypt_GenRandom - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Crypt_RefCount -; Description ...: Retrieves the internal reference count. -; Syntax.........: __Crypt_RefCount ( ) -; Parameters ....: -; Return values .: The current internal reference count. -; Author ........: Valik -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Crypt_RefCount() - Return $__g_aCryptInternalData[0] -EndFunc ;==>__Crypt_RefCount - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Crypt_RefCountInc -; Description ...: Increments the internal reference count. -; Syntax.........: __Crypt_RefCountInc ( ) -; Parameters ....: -; Return values .: -; Author ........: Valik -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Crypt_RefCountInc() - $__g_aCryptInternalData[0] += 1 -EndFunc ;==>__Crypt_RefCountInc - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Crypt_RefCountDec -; Description ...: Decrements the internal reference count. -; Syntax.........: __Crypt_RefCountDec ( ) -; Parameters ....: -; Return values .: -; Author ........: Valik -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Crypt_RefCountDec() - If $__g_aCryptInternalData[0] > 0 Then $__g_aCryptInternalData[0] -= 1 -EndFunc ;==>__Crypt_RefCountDec - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Crypt_DllHandle -; Description ...: Retrieves the internal DLL handle. -; Syntax.........: __Crypt_DllHandle ( ) -; Parameters ....: -; Return values .: The current internal DLL handle. -; Author ........: Valik -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Crypt_DllHandle() - Return $__g_aCryptInternalData[1] -EndFunc ;==>__Crypt_DllHandle - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Crypt_DllHandleSet -; Description ...: Stores the internal DLL handle. -; Syntax.........: __Crypt_DllHandleSet ( $hAdvapi32 ) -; Parameters ....: $hAdvapi32 - The new handle to store. -; Return values .: -; Author ........: Valik -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Crypt_DllHandleSet($hAdvapi32) - $__g_aCryptInternalData[1] = $hAdvapi32 -EndFunc ;==>__Crypt_DllHandleSet - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Crypt_Context -; Description ...: Retrieves the internal crypt context. -; Syntax.........: __Crypt_Context ( ) -; Parameters ....: -; Return values .: The current internal crypt context. -; Author ........: Valik -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Crypt_Context() - Return $__g_aCryptInternalData[2] -EndFunc ;==>__Crypt_Context - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Crypt_ContextSet -; Description ...: Stores the internal crypt context. -; Syntax.........: __Crypt_ContextSet ( $hCryptContext ) -; Parameters ....: $hCryptContext - The new crypt context to store. -; Return values .: -; Author ........: Valik -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Crypt_ContextSet($hCryptContext) - $__g_aCryptInternalData[2] = $hCryptContext -EndFunc ;==>__Crypt_ContextSet - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Crypt_GetCalgFromCryptKey -; Description ...: Retrieves the crypto-algorithm use by a USERKEY. -; Syntax.........: __Crypt_GetCalgFromCryptKey($vCryptKey) -; Parameters ....: $vCryptKey - The USERKEY handle. -; Return values .: -; Author ........: jchd -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Crypt_GetCalgFromCryptKey($vCryptKey) - Local $tAlgId = DllStructCreate("uint;dword") - DllStructSetData($tAlgId, 2, 4) - Local $aRet = DllCall(__Crypt_DllHandle(), "bool", "CryptGetKeyParam", "handle", $vCryptKey, "dword", $KP_ALGID, "ptr", DllStructGetPtr($tAlgId, 1), "dword*", DllStructGetPtr($tAlgId, 2), "dword", 0) - If @error Or Not $aRet[0] Then - Return SetError(@error, @extended, $CRYPT_USERDATA) - Else - Return DllStructGetData($tAlgId, 1) - EndIf -EndFunc ;==>__Crypt_GetCalgFromCryptKey diff --git a/build/Include/Date.au3 b/build/Include/Date.au3 deleted file mode 100644 index d6dc7b3d6..000000000 --- a/build/Include/Date.au3 +++ /dev/null @@ -1,1753 +0,0 @@ -#include-once - -#include "DateTimeConstants.au3" -#include "Memory.au3" -#include "Security.au3" -#include "StructureConstants.au3" -#include "WinAPI.au3" -#include "WinAPILocale.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Date -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Date/Time management. -; There are five time formats: System, File, Local, MS-DOS and Windows. Time related functions return time in -; one of these formats. You can also use the time functions to convert between time formats for ease of -; comparison and display -; Author(s) .....: JdeB, jlandes, exodius, PaulIA, Tuape, SlimShady, GaryFrost, /dev/null, Marc -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not working/documented/implemented at this time -; -; _DateLastWeekdayNum -; _DateLastMonthNum -; _DateLastMonthYear -; _DateNextWeekdayNum -; _DateNextMonthNum -; _DateNextMonthYear -; _Date_JulianDayNo -; _JulianToDate -; _WeekNumber -; _DaysInMonth -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _DateAdd -; _DateDayOfWeek -; _DateDaysInMonth -; _DateDiff -; _DateIsLeapYear -; _DateIsValid -; _DateTimeFormat -; _DateTimeSplit -; _DateToDayOfWeek -; _DateToDayOfWeekISO -; _DateToDayValue -; _DateToMonth -; _DayValueToDate -; _Now -; _NowCalc -; _NowCalcDate -; _NowDate -; _NowTime -; _SetDate -; _SetTime -; _TicksToTime -; _TimeToTicks -; _WeekNumberISO -; _Date_Time_CompareFileTime -; _Date_Time_DOSDateTimeToFileTime -; _Date_Time_DOSDateToArray -; _Date_Time_DOSDateTimeToArray -; _Date_Time_DOSDateTimeToStr -; _Date_Time_DOSDateToStr -; _Date_Time_DOSTimeToArray -; _Date_Time_DOSTimeToStr -; _Date_Time_EncodeFileTime -; _Date_Time_EncodeSystemTime -; _Date_Time_FileTimeToArray -; _Date_Time_FileTimeToStr -; _Date_Time_FileTimeToDOSDateTime -; _Date_Time_FileTimeToLocalFileTime -; _Date_Time_FileTimeToSystemTime -; _Date_Time_GetFileTime -; _Date_Time_GetLocalTime -; _Date_Time_GetSystemTime -; _Date_Time_GetSystemTimeAdjustment -; _Date_Time_GetSystemTimeAsFileTime -; _Date_Time_GetSystemTimes -; _Date_Time_GetTickCount -; _Date_Time_GetTimeZoneInformation -; _Date_Time_LocalFileTimeToFileTime -; _Date_Time_SetFileTime -; _Date_Time_SetLocalTime -; _Date_Time_SetSystemTime -; _Date_Time_SetSystemTimeAdjustment -; _Date_Time_SetTimeZoneInformation -; _Date_Time_SystemTimeToArray -; _Date_Time_SystemTimeToDateStr -; _Date_Time_SystemTimeToDateTimeStr -; _Date_Time_SystemTimeToFileTime -; _Date_Time_SystemTimeToTimeStr -; _Date_Time_SystemTimeToTzSpecificLocalTime -; _Date_Time_TzSpecificLocalTimeToSystemTime -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __DateIsMonth -; __DateIsYear -; __Date_Time_CloneSystemTime -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _DateAdd($sType, $iNumber, $sDate) - Local $asTimePart[4] - Local $asDatePart[4] - Local $iJulianDate - ; Verify that $sType is Valid - $sType = StringLeft($sType, 1) - If StringInStr("D,M,Y,w,h,n,s", $sType) = 0 Or $sType = "" Then - Return SetError(1, 0, 0) - EndIf - ; Verify that Value to Add is Valid - If Not StringIsInt($iNumber) Then - Return SetError(2, 0, 0) - EndIf - ; Verify If InputDate is valid - If Not _DateIsValid($sDate) Then - Return SetError(3, 0, 0) - EndIf - ; split the date and time into arrays - _DateTimeSplit($sDate, $asDatePart, $asTimePart) - - ; ==================================================== - ; adding days then get the julian date - ; add the number of day - ; and convert back to Gregorian - If $sType = "d" Or $sType = "w" Then - If $sType = "w" Then $iNumber = $iNumber * 7 - $iJulianDate = _DateToDayValue($asDatePart[1], $asDatePart[2], $asDatePart[3]) + $iNumber - _DayValueToDate($iJulianDate, $asDatePart[1], $asDatePart[2], $asDatePart[3]) - EndIf - ; ==================================================== - ; adding Months - If $sType = "m" Then - $asDatePart[2] = $asDatePart[2] + $iNumber - ; pos number of months - While $asDatePart[2] > 12 - $asDatePart[2] = $asDatePart[2] - 12 - $asDatePart[1] = $asDatePart[1] + 1 - WEnd - ; Neg number of months - While $asDatePart[2] < 1 - $asDatePart[2] = $asDatePart[2] + 12 - $asDatePart[1] = $asDatePart[1] - 1 - WEnd - EndIf - ; ==================================================== - ; adding Years - If $sType = "y" Then - $asDatePart[1] = $asDatePart[1] + $iNumber - EndIf - ; ==================================================== - ; adding Time value - If $sType = "h" Or $sType = "n" Or $sType = "s" Then - Local $iTimeVal = _TimeToTicks($asTimePart[1], $asTimePart[2], $asTimePart[3]) / 1000 - If $sType = "h" Then $iTimeVal = $iTimeVal + $iNumber * 3600 - If $sType = "n" Then $iTimeVal = $iTimeVal + $iNumber * 60 - If $sType = "s" Then $iTimeVal = $iTimeVal + $iNumber - ; calculated days to add - Local $iDay2Add = Int($iTimeVal / (24 * 60 * 60)) - $iTimeVal = $iTimeVal - $iDay2Add * 24 * 60 * 60 - If $iTimeVal < 0 Then - $iDay2Add = $iDay2Add - 1 - $iTimeVal = $iTimeVal + 24 * 60 * 60 - EndIf - $iJulianDate = _DateToDayValue($asDatePart[1], $asDatePart[2], $asDatePart[3]) + $iDay2Add - ; calculate the julian back to date - _DayValueToDate($iJulianDate, $asDatePart[1], $asDatePart[2], $asDatePart[3]) - ; caluculate the new time - _TicksToTime($iTimeVal * 1000, $asTimePart[1], $asTimePart[2], $asTimePart[3]) - EndIf - ; ==================================================== - ; check if the Input day is Greater then the new month last day. - ; if so then change it to the last possible day in the month - Local $iNumDays = _DaysInMonth($asDatePart[1]) - ; - If $iNumDays[$asDatePart[2]] < $asDatePart[3] Then $asDatePart[3] = $iNumDays[$asDatePart[2]] - ; ======================== - ; Format the return date - $sDate = $asDatePart[1] & '/' & StringRight("0" & $asDatePart[2], 2) & '/' & StringRight("0" & $asDatePart[3], 2) - ; add the time when specified in the input - If $asTimePart[0] > 0 Then - If $asTimePart[0] > 2 Then - $sDate = $sDate & " " & StringRight("0" & $asTimePart[1], 2) & ':' & StringRight("0" & $asTimePart[2], 2) & ':' & StringRight("0" & $asTimePart[3], 2) - Else - $sDate = $sDate & " " & StringRight("0" & $asTimePart[1], 2) & ':' & StringRight("0" & $asTimePart[2], 2) - EndIf - EndIf - ; - Return $sDate -EndFunc ;==>_DateAdd - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jeremy Landes -; Modified.......: trancexx -; =============================================================================================================================== -Func _DateDayOfWeek($iDayNum, $iFormat = Default) - Local Const $MONDAY_IS_NO1 = 128 ; Undocumented - If someone passes $iFormat with 128, Monday will be regarded as the first day of the week and not Sunday. - If $iFormat = Default Then $iFormat = 0 - $iDayNum = Int($iDayNum) - If $iDayNum < 1 Or $iDayNum > 7 Then Return SetError(1, 0, "") - Local $tSYSTEMTIME = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tSYSTEMTIME, "Year", BitAND($iFormat, $MONDAY_IS_NO1) ? 2007 : 2006) ; 2006 = Sunday 1st Jan or 2007 = Monday 1st Jan. - DllStructSetData($tSYSTEMTIME, "Month", 1) - DllStructSetData($tSYSTEMTIME, "Day", $iDayNum) - Return _WinAPI_GetDateFormat(BitAND($iFormat, $DMW_LOCALE_LONGNAME) ? $LOCALE_USER_DEFAULT : $LOCALE_INVARIANT, $tSYSTEMTIME, 0, BitAND($iFormat, $DMW_SHORTNAME) ? "ddd" : "dddd") -EndFunc ;==>_DateDayOfWeek - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jeremy Landes -; Modified.......: -; =============================================================================================================================== -Func _DateDaysInMonth($iYear, $iMonthNum) - $iMonthNum = Int($iMonthNum) - $iYear = Int($iYear) - Return __DateIsMonth($iMonthNum) And __DateIsYear($iYear) ? _DaysInMonth($iYear)[$iMonthNum] : SetError(1, 0, 0) -EndFunc ;==>_DateDaysInMonth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _DateDiff($sType, $sStartDate, $sEndDate) - ; Verify that $sType is Valid - $sType = StringLeft($sType, 1) - If StringInStr("d,m,y,w,h,n,s", $sType) = 0 Or $sType = "" Then - Return SetError(1, 0, 0) - EndIf - ; Verify If StartDate is valid - If Not _DateIsValid($sStartDate) Then - Return SetError(2, 0, 0) - EndIf - ; Verify If EndDate is valid - If Not _DateIsValid($sEndDate) Then - Return SetError(3, 0, 0) - EndIf - Local $asStartDatePart[4], $asStartTimePart[4], $asEndDatePart[4], $asEndTimePart[4] - ; split the StartDate and Time into arrays - _DateTimeSplit($sStartDate, $asStartDatePart, $asStartTimePart) - ; split the End Date and time into arrays - _DateTimeSplit($sEndDate, $asEndDatePart, $asEndTimePart) - ; ==================================================== - ; Get the differens in days between the 2 dates - Local $aDaysDiff = _DateToDayValue($asEndDatePart[1], $asEndDatePart[2], $asEndDatePart[3]) - _DateToDayValue($asStartDatePart[1], $asStartDatePart[2], $asStartDatePart[3]) - ; ==================================================== - Local $iTimeDiff, $iYearDiff, $iStartTimeInSecs, $iEndTimeInSecs - ; Get the differens in Seconds between the 2 times when specified - If $asStartTimePart[0] > 1 And $asEndTimePart[0] > 1 Then - $iStartTimeInSecs = $asStartTimePart[1] * 3600 + $asStartTimePart[2] * 60 + $asStartTimePart[3] - $iEndTimeInSecs = $asEndTimePart[1] * 3600 + $asEndTimePart[2] * 60 + $asEndTimePart[3] - $iTimeDiff = $iEndTimeInSecs - $iStartTimeInSecs - If $iTimeDiff < 0 Then - $aDaysDiff = $aDaysDiff - 1 - $iTimeDiff = $iTimeDiff + 24 * 60 * 60 - EndIf - Else - $iTimeDiff = 0 - EndIf - Select - Case $sType = "d" - Return $aDaysDiff - Case $sType = "m" - $iYearDiff = $asEndDatePart[1] - $asStartDatePart[1] - Local $iMonthDiff = $asEndDatePart[2] - $asStartDatePart[2] + $iYearDiff * 12 - If $asEndDatePart[3] < $asStartDatePart[3] Then $iMonthDiff = $iMonthDiff - 1 - $iStartTimeInSecs = $asStartTimePart[1] * 3600 + $asStartTimePart[2] * 60 + $asStartTimePart[3] - $iEndTimeInSecs = $asEndTimePart[1] * 3600 + $asEndTimePart[2] * 60 + $asEndTimePart[3] - $iTimeDiff = $iEndTimeInSecs - $iStartTimeInSecs - If $asEndDatePart[3] = $asStartDatePart[3] And $iTimeDiff < 0 Then $iMonthDiff = $iMonthDiff - 1 - Return $iMonthDiff - Case $sType = "y" - $iYearDiff = $asEndDatePart[1] - $asStartDatePart[1] - If $asEndDatePart[2] < $asStartDatePart[2] Then $iYearDiff = $iYearDiff - 1 - If $asEndDatePart[2] = $asStartDatePart[2] And $asEndDatePart[3] < $asStartDatePart[3] Then $iYearDiff = $iYearDiff - 1 - $iStartTimeInSecs = $asStartTimePart[1] * 3600 + $asStartTimePart[2] * 60 + $asStartTimePart[3] - $iEndTimeInSecs = $asEndTimePart[1] * 3600 + $asEndTimePart[2] * 60 + $asEndTimePart[3] - $iTimeDiff = $iEndTimeInSecs - $iStartTimeInSecs - If $asEndDatePart[2] = $asStartDatePart[2] And $asEndDatePart[3] = $asStartDatePart[3] And $iTimeDiff < 0 Then $iYearDiff = $iYearDiff - 1 - Return $iYearDiff - Case $sType = "w" - Return Int($aDaysDiff / 7) - Case $sType = "h" - Return $aDaysDiff * 24 + Int($iTimeDiff / 3600) - Case $sType = "n" - Return $aDaysDiff * 24 * 60 + Int($iTimeDiff / 60) - Case $sType = "s" - Return $aDaysDiff * 24 * 60 * 60 + $iTimeDiff - EndSelect -EndFunc ;==>_DateDiff - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jeremy Landes -; Modified.......: -; =============================================================================================================================== -Func _DateIsLeapYear($iYear) - If StringIsInt($iYear) Then - Select - Case Mod($iYear, 4) = 0 And Mod($iYear, 100) <> 0 - Return 1 - Case Mod($iYear, 400) = 0 - Return 1 - Case Else - Return 0 - EndSelect - EndIf - Return SetError(1, 0, 0) -EndFunc ;==>_DateIsLeapYear - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __DateIsMonth -; Description ...: Checks a given number to see if it is a valid month. -; Syntax.........: __DateIsMonth ( $iNumber ) -; Parameters ....: $iNumber - Month number to check. -; Return values .: Success - Returns 1 if month is valid. -; Failure - Returns 0 -; Author ........: Jeremy Landes -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __DateIsMonth($iNumber) - $iNumber = Int($iNumber) - Return $iNumber >= 1 And $iNumber <= 12 -EndFunc ;==>__DateIsMonth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jeremy Landes -; Modified.......: -; =============================================================================================================================== -Func _DateIsValid($sDate) - Local $asDatePart[4], $asTimePart[4] - - #cs - A regular expression to verify the date and time string. - $bIsDate = Not StringRegExp($sDate, '[^\d.\-/:]') - $bIsDate = StringRegExp($sDate, '(?x)^\d{4}(?:[.\-/]\d{2}){2} (?: (?:T|\h)\d{2}:\d{2} (?::\d{2})? )?$') > 0 - #ce - - _DateTimeSplit($sDate, $asDatePart, $asTimePart) - - ; verify valid input date values - If Not StringIsInt($asDatePart[1]) Then Return 0 - If Not StringIsInt($asDatePart[2]) Then Return 0 - If Not StringIsInt($asDatePart[3]) Then Return 0 - - ; Make sure the Date parts contains numeric - $asDatePart[1] = Int($asDatePart[1]) - $asDatePart[2] = Int($asDatePart[2]) - $asDatePart[3] = Int($asDatePart[3]) - - ; check if all contain valid values - Local $iNumDays = _DaysInMonth($asDatePart[1]) - If $asDatePart[1] < 1000 Or $asDatePart[1] > 2999 Then Return 0 - If $asDatePart[2] < 1 Or $asDatePart[2] > 12 Then Return 0 - If $asDatePart[3] < 1 Or $asDatePart[3] > $iNumDays[$asDatePart[2]] Then Return 0 - - ; check Time portion - If $asTimePart[0] < 1 Then Return 1 ; No time specified so date must be correct - If $asTimePart[0] < 2 Then Return 0 ; need at least HH:MM when something is specified - If $asTimePart[0] = 2 Then $asTimePart[3] = "00" ; init SS when only HH:MM is specified - - ; Make sure the Time parts contains numeric - If Not StringIsInt($asTimePart[1]) Then Return 0 - If Not StringIsInt($asTimePart[2]) Then Return 0 - If Not StringIsInt($asTimePart[3]) Then Return 0 - - ; check if all contain valid values - $asTimePart[1] = Int($asTimePart[1]) - $asTimePart[2] = Int($asTimePart[2]) - $asTimePart[3] = Int($asTimePart[3]) - - If $asTimePart[1] < 0 Or $asTimePart[1] > 23 Then Return 0 - If $asTimePart[2] < 0 Or $asTimePart[2] > 59 Then Return 0 - If $asTimePart[3] < 0 Or $asTimePart[3] > 59 Then Return 0 - - ; we got here so date/time must be good - Return 1 -EndFunc ;==>_DateIsValid - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __DateIsYear -; Description ...: Checks a given number to see if it is a valid year. -; Syntax.........: __DateIsYear ( $iNumber ) -; Parameters ....: $iNumber - Year number to check. -; Return values .: Success - Returns 1 if year is valid. -; Failure - Returns 0 -; Author ........: Jeremy Landes -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __DateIsYear($iNumber) - Return StringLen($iNumber) = 4 -EndFunc ;==>__DateIsYear - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _DateLastWeekdayNum -; Description ...: Returns previous weekday number, based on the specified day of the week. -; Syntax.........: _DateLastWeekdayNum ( $iWeekdayNum ) -; Parameters ....: $iWeekdayNum - Weekday number -; Return values .: Success - Previous weekday number -; Failure - Returns 0 and sets @error = 1 -; Author ........: Jeremy Landes -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _DateLastWeekdayNum($iWeekdayNum) - Select - Case Not StringIsInt($iWeekdayNum) - Return SetError(1, 0, 0) - Case $iWeekdayNum < 1 Or $iWeekdayNum > 7 - Return SetError(2, 0, 0) - Case Else - Local $iLastWeekdayNum - If $iWeekdayNum = 1 Then - $iLastWeekdayNum = 7 - Else - $iLastWeekdayNum = $iWeekdayNum - 1 - EndIf - - Return $iLastWeekdayNum - EndSelect -EndFunc ;==>_DateLastWeekdayNum - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _DateLastMonthNum -; Description ...: Returns previous month number, based on the specified month. -; Syntax.........: _DateLastMonthNum ( $iMonthNum ) -; Parameters ....: $iMonthNum - Month number -; Return values .: Success - Previous month number -; Failure - Returns 0 and sets @error = 1 -; Author ........: Jeremy Landes -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _DateLastMonthNum($iMonthNum) - Select - Case Not StringIsInt($iMonthNum) - Return SetError(1, 0, 0) - Case Not __DateIsMonth($iMonthNum) - Return SetError(2, 0, 0) - Case Else - Local $iLastMonthNum - If $iMonthNum = 1 Then - $iLastMonthNum = 12 - Else - $iLastMonthNum = $iMonthNum - 1 - EndIf - - $iLastMonthNum = StringFormat("%02d", $iLastMonthNum) - Return $iLastMonthNum - EndSelect -EndFunc ;==>_DateLastMonthNum - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _DateLastMonthYear -; Description ...: Returns previous month's year, based on the specified month and year. -; Syntax.........: _DateLastMonthYear ( $iMonthNum, $iYear ) -; Parameters ....: $iMonthNum - Month number -; $iYear - Year -; Return values .: Success - Previous month's year -; Failure - Returns 0 and sets @error = 1 -; Author ........: Jeremy Landes -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _DateLastMonthYear($iMonthNum, $iYear) - Select - Case Not StringIsInt($iMonthNum) Or Not StringIsInt($iYear) - Return SetError(1, 0, 0) - Case Not __DateIsMonth($iMonthNum) - Return SetError(2, 0, 0) - Case Else - Local $iLastYear - If $iMonthNum = 1 Then - $iLastYear = $iYear - 1 - Else - $iLastYear = $iYear - EndIf - - $iLastYear = StringFormat("%04d", $iLastYear) - Return $iLastYear - EndSelect -EndFunc ;==>_DateLastMonthYear - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _DateNextWeekdayNum -; Description ...: Returns next weekday number, based on the specified day of the week. -; Syntax.........: _DateNextWeekdayNum ( $iWeekdayNum ) -; Parameters ....: $iWeekdayNum - Weekday number -; Return values .: Success - Next weekday number -; Failure - 0 and sets @error = 1 -; Author ........: Jeremy Landes -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _DateNextWeekdayNum($iWeekdayNum) - Select - Case Not StringIsInt($iWeekdayNum) - Return SetError(1, 0, 0) - Case $iWeekdayNum < 1 Or $iWeekdayNum > 7 - Return SetError(2, 0, 0) - Case Else - Local $iNextWeekdayNum - If $iWeekdayNum = 7 Then - $iNextWeekdayNum = 1 - Else - $iNextWeekdayNum = $iWeekdayNum + 1 - EndIf - - Return $iNextWeekdayNum - EndSelect -EndFunc ;==>_DateNextWeekdayNum - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _DateNextMonthNum -; Description ...: Returns next month number, based on the specified month. -; Syntax.........: _DateNextMonthNum ( $iMonthNum ) -; Parameters ....: $iMonthNum - Month number -; Return values .: Success - Next month number -; Failure - 0 and sets @error = 1 -; Author ........: Jeremy Landes -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _DateNextMonthNum($iMonthNum) - Select - Case Not StringIsInt($iMonthNum) - Return SetError(1, 0, 0) - Case Not __DateIsMonth($iMonthNum) - Return SetError(2, 0, 0) - Case Else - Local $iNextMonthNum - If $iMonthNum = 12 Then - $iNextMonthNum = 1 - Else - $iNextMonthNum = $iMonthNum + 1 - EndIf - - $iNextMonthNum = StringFormat("%02d", $iNextMonthNum) - Return $iNextMonthNum - EndSelect -EndFunc ;==>_DateNextMonthNum - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _DateNextMonthYear -; Description ...: Returns next month's year, based on the specified month and year. -; Syntax.........: _DateNextMonthYear ( $iMonthNum, $iYear ) -; Parameters ....: $iMonthNum - Month number -; $iYear - Year -; Return values .: Success - Next month's year -; Failure - 0 and sets @error = 1 -; Author ........: Jeremy Landes -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _DateNextMonthYear($iMonthNum, $iYear) - Select - Case Not StringIsInt($iMonthNum) Or Not StringIsInt($iYear) - Return SetError(1, 0, 0) - Case Not __DateIsMonth($iMonthNum) - Return SetError(2, 0, 0) - Case Else - Local $iNextYear - If $iMonthNum = 12 Then - $iNextYear = $iYear + 1 - Else - $iNextYear = $iYear - EndIf - - $iNextYear = StringFormat("%04d", $iNextYear) - Return $iNextYear - EndSelect -EndFunc ;==>_DateNextMonthYear - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _DateTimeFormat($sDate, $sType) - Local $asDatePart[4], $asTimePart[4] - Local $sTempDate = "", $sTempTime = "" - Local $sAM, $sPM, $sTempString = "" - ; Verify If InputDate is valid - If Not _DateIsValid($sDate) Then - Return SetError(1, 0, "") - EndIf - ; input validation - If $sType < 0 Or $sType > 5 Or Not IsInt($sType) Then - Return SetError(2, 0, "") - EndIf - ; split the date and time into arrays - _DateTimeSplit($sDate, $asDatePart, $asTimePart) - - Switch $sType - Case 0 - $sTempString = _WinAPI_GetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_SSHORTDATE) ; Get short date format. - If Not @error And Not ($sTempString = '') Then - $sTempDate = $sTempString - Else - $sTempDate = "M/d/yyyy" - EndIf - If $asTimePart[0] > 1 Then - $sTempString = _WinAPI_GetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_STIMEFORMAT) ; Get short time format. - If Not @error And Not ($sTempString = '') Then - $sTempTime = $sTempString - Else - $sTempTime = "h:mm:ss tt" - EndIf - EndIf - Case 1 - $sTempString = _WinAPI_GetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_SLONGDATE) ; Get long date format. - If Not @error And Not ($sTempString = '') Then - $sTempDate = $sTempString - Else - $sTempDate = "dddd, MMMM dd, yyyy" - EndIf - Case 2 - $sTempString = _WinAPI_GetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_SSHORTDATE) ; Get short date format. - If Not @error And Not ($sTempString = '') Then - $sTempDate = $sTempString - Else - $sTempDate = "M/d/yyyy" - EndIf - Case 3 - If $asTimePart[0] > 1 Then - $sTempString = _WinAPI_GetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_STIMEFORMAT) ; Get short time format. - If Not @error And Not ($sTempString = '') Then - $sTempTime = $sTempString - Else - $sTempTime = "h:mm:ss tt" - EndIf - EndIf - Case 4 - If $asTimePart[0] > 1 Then - $sTempTime = "hh:mm" - EndIf - Case 5 - If $asTimePart[0] > 1 Then - $sTempTime = "hh:mm:ss" - EndIf - EndSwitch - ; Format DATE - If $sTempDate <> "" Then - $sTempString = _WinAPI_GetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_SDATE) ; Get short date format. - If Not @error And Not ($sTempString = '') Then - $sTempDate = StringReplace($sTempDate, "/", $sTempString) - EndIf - Local $iWday = _DateToDayOfWeek($asDatePart[1], $asDatePart[2], $asDatePart[3]) - $asDatePart[3] = StringRight("0" & $asDatePart[3], 2) ; make sure the length is 2 - $asDatePart[2] = StringRight("0" & $asDatePart[2], 2) ; make sure the length is 2 - $sTempDate = StringReplace($sTempDate, "d", "@") - $sTempDate = StringReplace($sTempDate, "m", "#") - $sTempDate = StringReplace($sTempDate, "y", "&") - $sTempDate = StringReplace($sTempDate, "@@@@", _DateDayOfWeek($iWday, 0)) - $sTempDate = StringReplace($sTempDate, "@@@", _DateDayOfWeek($iWday, 1)) - $sTempDate = StringReplace($sTempDate, "@@", $asDatePart[3]) - $sTempDate = StringReplace($sTempDate, "@", StringReplace(StringLeft($asDatePart[3], 1), "0", "") & StringRight($asDatePart[3], 1)) - $sTempDate = StringReplace($sTempDate, "####", _DateToMonth($asDatePart[2], 0)) - $sTempDate = StringReplace($sTempDate, "###", _DateToMonth($asDatePart[2], 1)) - $sTempDate = StringReplace($sTempDate, "##", $asDatePart[2]) - $sTempDate = StringReplace($sTempDate, "#", StringReplace(StringLeft($asDatePart[2], 1), "0", "") & StringRight($asDatePart[2], 1)) - $sTempDate = StringReplace($sTempDate, "&&&&", $asDatePart[1]) - $sTempDate = StringReplace($sTempDate, "&&", StringRight($asDatePart[1], 2)) - EndIf - ; Format TIME - If $sTempTime <> "" Then - $sTempString = _WinAPI_GetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_S1159) ; AM designator. - If Not @error And Not ($sTempString = '') Then - $sAM = $sTempString - Else - $sAM = "AM" - EndIf - $sTempString = _WinAPI_GetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_S2359) ; PM designator. - If Not @error And Not ($sTempString = '') Then - $sPM = $sTempString - Else - $sPM = "PM" - EndIf - $sTempString = _WinAPI_GetLocaleInfo($LOCALE_USER_DEFAULT, $LOCALE_STIME) ; Time seperator. - If Not @error And Not ($sTempString = '') Then - $sTempTime = StringReplace($sTempTime, ":", $sTempString) - EndIf - If StringInStr($sTempTime, "tt") Then - If $asTimePart[1] < 12 Then - $sTempTime = StringReplace($sTempTime, "tt", $sAM) - If $asTimePart[1] = 0 Then $asTimePart[1] = 12 - Else - $sTempTime = StringReplace($sTempTime, "tt", $sPM) - If $asTimePart[1] > 12 Then $asTimePart[1] = $asTimePart[1] - 12 - EndIf - EndIf - $asTimePart[1] = StringRight("0" & $asTimePart[1], 2) ; make sure the length is 2 - $asTimePart[2] = StringRight("0" & $asTimePart[2], 2) ; make sure the length is 2 - $asTimePart[3] = StringRight("0" & $asTimePart[3], 2) ; make sure the length is 2 - $sTempTime = StringReplace($sTempTime, "hh", StringFormat("%02d", $asTimePart[1])) - $sTempTime = StringReplace($sTempTime, "h", StringReplace(StringLeft($asTimePart[1], 1), "0", "") & StringRight($asTimePart[1], 1)) - $sTempTime = StringReplace($sTempTime, "mm", StringFormat("%02d", $asTimePart[2])) - $sTempTime = StringReplace($sTempTime, "ss", StringFormat("%02d", $asTimePart[3])) - $sTempDate = StringStripWS($sTempDate & " " & $sTempTime, $STR_STRIPLEADING + $STR_STRIPTRAILING) - EndIf - Return $sTempDate -EndFunc ;==>_DateTimeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _DateTimeSplit($sDate, ByRef $aDatePart, ByRef $iTimePart) - ; split the Date and Time portion - Local $sDateTime = StringSplit($sDate, " T") - ; split the date portion - If $sDateTime[0] > 0 Then $aDatePart = StringSplit($sDateTime[1], "/-.") - ; split the Time portion - If $sDateTime[0] > 1 Then - $iTimePart = StringSplit($sDateTime[2], ":") - If UBound($iTimePart) < 4 Then ReDim $iTimePart[4] - Else - Dim $iTimePart[4] - EndIf - ; Ensure the arrays contain 4 values - If UBound($aDatePart) < 4 Then ReDim $aDatePart[4] - ; update the array to contain numbers not strings - For $x = 1 To 3 - If StringIsInt($aDatePart[$x]) Then - $aDatePart[$x] = Int($aDatePart[$x]) - Else - $aDatePart[$x] = -1 - EndIf - If StringIsInt($iTimePart[$x]) Then - $iTimePart[$x] = Int($iTimePart[$x]) - Else - $iTimePart[$x] = 0 - EndIf - Next - Return 1 -EndFunc ;==>_DateTimeSplit - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _DateToDayOfWeek($iYear, $iMonth, $iDay) - ; Verify If InputDate is valid - If Not _DateIsValid($iYear & "/" & $iMonth & "/" & $iDay) Then - Return SetError(1, 0, "") - EndIf - Local $i_FactorA = Int((14 - $iMonth) / 12) - Local $i_FactorY = $iYear - $i_FactorA - Local $i_FactorM = $iMonth + (12 * $i_FactorA) - 2 - Local $i_FactorD = Mod($iDay + $i_FactorY + Int($i_FactorY / 4) - Int($i_FactorY / 100) + Int($i_FactorY / 400) + Int((31 * $i_FactorM) / 12), 7) - Return $i_FactorD + 1 -EndFunc ;==>_DateToDayOfWeek - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _DateToDayOfWeekISO($iYear, $iMonth, $iDay) - Local $iDow = _DateToDayOfWeek($iYear, $iMonth, $iDay) - If @error Then - Return SetError(1, 0, "") - EndIf - If $iDow >= 2 Then Return $iDow - 1 - Return 7 -EndFunc ;==>_DateToDayOfWeekISO - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande / Jeremy Landes -; Modified.......: -; =============================================================================================================================== -Func _DateToDayValue($iYear, $iMonth, $iDay) - ; Verify If InputDate is valid - If Not _DateIsValid(StringFormat("%04d/%02d/%02d", $iYear, $iMonth, $iDay)) Then - Return SetError(1, 0, "") - EndIf - If $iMonth < 3 Then - $iMonth = $iMonth + 12 - $iYear = $iYear - 1 - EndIf - Local $i_FactorA = Int($iYear / 100) - Local $i_FactorB = Int($i_FactorA / 4) - Local $i_FactorC = 2 - $i_FactorA + $i_FactorB - Local $i_FactorE = Int(1461 * ($iYear + 4716) / 4) - Local $i_FactorF = Int(153 * ($iMonth + 1) / 5) - Local $iJulianDate = $i_FactorC + $iDay + $i_FactorE + $i_FactorF - 1524.5 - Return $iJulianDate -EndFunc ;==>_DateToDayValue - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jason Brand -; Modified.......: guinness -; =============================================================================================================================== -Func _DateToMonth($iMonNum, $iFormat = Default) - If $iFormat = Default Then $iFormat = 0 - $iMonNum = Int($iMonNum) - If Not __DateIsMonth($iMonNum) Then Return SetError(1, 0, "") - Local $tSYSTEMTIME = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tSYSTEMTIME, "Year", @YEAR) - DllStructSetData($tSYSTEMTIME, "Month", $iMonNum) - DllStructSetData($tSYSTEMTIME, "Day", 1) - Return _WinAPI_GetDateFormat(BitAND($iFormat, $DMW_LOCALE_LONGNAME) ? $LOCALE_USER_DEFAULT : $LOCALE_INVARIANT, $tSYSTEMTIME, 0, BitAND($iFormat, $DMW_SHORTNAME) ? "MMM" : "MMMM") -EndFunc ;==>_DateToMonth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _DayValueToDate($iJulianDate, ByRef $iYear, ByRef $iMonth, ByRef $iDay) - ; check for valid input date - If $iJulianDate < 0 Or Not IsNumber($iJulianDate) Then - Return SetError(1, 0, 0) - EndIf - ; calculte the date - Local $i_FactorZ = Int($iJulianDate + 0.5) - Local $i_FactorW = Int(($i_FactorZ - 1867216.25) / 36524.25) - Local $i_FactorX = Int($i_FactorW / 4) - Local $i_FactorA = $i_FactorZ + 1 + $i_FactorW - $i_FactorX - Local $i_FactorB = $i_FactorA + 1524 - Local $i_FactorC = Int(($i_FactorB - 122.1) / 365.25) - Local $i_FactorD = Int(365.25 * $i_FactorC) - Local $i_FactorE = Int(($i_FactorB - $i_FactorD) / 30.6001) - Local $i_FactorF = Int(30.6001 * $i_FactorE) - $iDay = $i_FactorB - $i_FactorD - $i_FactorF - ; (must get number less than or equal to 12) - If $i_FactorE - 1 < 13 Then - $iMonth = $i_FactorE - 1 - Else - $iMonth = $i_FactorE - 13 - EndIf - If $iMonth < 3 Then - $iYear = $i_FactorC - 4715 ; (if Month is January or February) - Else - $iYear = $i_FactorC - 4716 ;(otherwise) - EndIf - $iYear = StringFormat("%04d", $iYear) - $iMonth = StringFormat("%02d", $iMonth) - $iDay = StringFormat("%02d", $iDay) - Return $iYear & "/" & $iMonth & "/" & $iDay -EndFunc ;==>_DayValueToDate - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _Date_JulianDayNo -; Description ...: Returns the the julian date in format YYDDD -; Syntax.........: _Date_JulianDayNo ( $iYear, $iMonth, $iDay ) -; Parameters ....: $iJulianDate - Julian date number -; $iYear - Year in format YYYY -; $iMonth - Month in format MM -; $iDay - Day of the month format DD -; Return values .: Success - Returns the date calculated -; Failure - 0 and Set @error to: -; |0 - No error. -; |1 - Invalid Input number of days -; Author ........: Jeremy Landes / Jos van der Zande -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _Date_JulianDayNo($iYear, $iMonth, $iDay) - ; Verify If InputDate is valid - Local $sFullDate = StringFormat("%04d/%02d/%02d", $iYear, $iMonth, $iDay) - If Not _DateIsValid($sFullDate) Then - Return SetError(1, 0, "") - EndIf - ; Build JDay value - Local $iJDay = 0 - Local $aiDaysInMonth = _DaysInMonth($iYear) - For $iCntr = 1 To $iMonth - 1 - $iJDay = $iJDay + $aiDaysInMonth[$iCntr] - Next - $iJDay = ($iYear * 1000) + ($iJDay + $iDay) - Return $iJDay -EndFunc ;==>_Date_JulianDayNo - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _JulianToDate -; Description ...: Returns the the julian date in format YYDDD -; Syntax.........: _JulianToDate ($iJDay [, $sSep = "/"] ) -; Parameters ....: $iJDate - Julian date number -; $sSep - Seperator character -; Return values .: Success - Returns the Date in format YYYY/MM/DD -; Failure - 0 and Set @error to: -; |0 - No error. -; |1 - Invalid Julian -; Author ........: Jeremy Landes / Jos van der Zande -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _JulianToDate($iJDay, $sSep = "/") - ; Verify If InputDate is valid - Local $iYear = Int($iJDay / 1000) - Local $iDays = Mod($iJDay, 1000) - Local $iMaxDays = 365 - If _DateIsLeapYear($iYear) Then $iMaxDays = 366 - If $iDays > $iMaxDays Then - Return SetError(1, 0, "") - EndIf - ; Convert to regular date - Local $aiDaysInMonth = _DaysInMonth($iYear) - Local $iMonth = 1 - While $iDays > $aiDaysInMonth[$iMonth] - $iDays = $iDays - $aiDaysInMonth[$iMonth] - $iMonth = $iMonth + 1 - WEnd - Return StringFormat("%04d%s%02d%s%02d", $iYear, $sSep, $iMonth, $sSep, $iDays) -EndFunc ;==>_JulianToDate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _Now() - Return _DateTimeFormat(@YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC, 0) -EndFunc ;==>_Now - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _NowCalc() - Return @YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC -EndFunc ;==>_NowCalc - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _NowCalcDate() - Return @YEAR & "/" & @MON & "/" & @MDAY -EndFunc ;==>_NowCalcDate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _NowDate() - Return _DateTimeFormat(@YEAR & "/" & @MON & "/" & @MDAY, 0) -EndFunc ;==>_NowDate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _NowTime($sType = 3) - If $sType < 3 Or $sType > 5 Then $sType = 3 - Return _DateTimeFormat(@YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC, $sType) -EndFunc ;==>_NowTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: /dev/null -; Modified.......: -; =============================================================================================================================== -Func _SetDate($iDay, $iMonth = 0, $iYear = 0) - ;============================================================================ - ;== Some error checking - ;============================================================================ - If $iYear = 0 Then $iYear = @YEAR - If $iMonth = 0 Then $iMonth = @MON - If Not _DateIsValid($iYear & "/" & $iMonth & "/" & $iDay) Then Return 1 - - Local $tSYSTEMTIME = DllStructCreate($tagSYSTEMTIME) - - ;============================================================================ - ;== Get the local system time to fill up the SYSTEMTIME structure - ;============================================================================ - DllCall("kernel32.dll", "none", "GetLocalTime", "struct*", $tSYSTEMTIME) - If @error Then Return SetError(@error, @extended, 0) - - ;============================================================================ - ;== Change the necessary values - ;============================================================================ - DllStructSetData($tSYSTEMTIME, "Day", $iDay) - If $iMonth > 0 Then DllStructSetData($tSYSTEMTIME, "Month", $iMonth) - If $iYear > 0 Then DllStructSetData($tSYSTEMTIME, "Year", $iYear) - - ;============================================================================ - ;== Set the new date - ;============================================================================ - Local $iReturn = _Date_Time_SetLocalTime($tSYSTEMTIME) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return Int($iReturn) -EndFunc ;==>_SetDate - -; #FUNCTION# ==================================================================================================================== -; Author ........: /dev/null -; Modified.......: -; =============================================================================================================================== -Func _SetTime($iHour, $iMinute, $iSecond = 0, $iMSeconds = 0) - ;============================================================================ - ;== Some error checking - ;============================================================================ - If $iHour < 0 Or $iHour > 23 Then Return 1 - If $iMinute < 0 Or $iMinute > 59 Then Return 1 - If $iSecond < 0 Or $iSecond > 59 Then Return 1 - If $iMSeconds < 0 Or $iMSeconds > 999 Then Return 1 - - Local $tSYSTEMTIME = DllStructCreate($tagSYSTEMTIME) - - ;============================================================================ - ;== Get the local system time to fill up the SYSTEMTIME structure - ;============================================================================ - DllCall("kernel32.dll", "none", "GetLocalTime", "struct*", $tSYSTEMTIME) - If @error Then Return SetError(@error, @extended, 0) - - ;============================================================================ - ;== Change the necessary values - ;============================================================================ - DllStructSetData($tSYSTEMTIME, "Hour", $iHour) - DllStructSetData($tSYSTEMTIME, "Minute", $iMinute) - If $iSecond > 0 Then DllStructSetData($tSYSTEMTIME, "Seconds", $iSecond) - If $iMSeconds > 0 Then DllStructSetData($tSYSTEMTIME, "MSeconds", $iMSeconds) - - ;============================================================================ - ;== Set the new time - ;============================================================================ - Local $iReturn = _Date_Time_SetLocalTime($tSYSTEMTIME) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return Int($iReturn) -EndFunc ;==>_SetTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Marc -; Modified.......: -; =============================================================================================================================== -Func _TicksToTime($iTicks, ByRef $iHours, ByRef $iMins, ByRef $iSecs) - If Number($iTicks) > 0 Then - $iTicks = Int($iTicks / 1000) - $iHours = Int($iTicks / 3600) - $iTicks = Mod($iTicks, 3600) - $iMins = Int($iTicks / 60) - $iSecs = Mod($iTicks, 60) - ; If $iHours = 0 then $iHours = 24 - Return 1 - ElseIf Number($iTicks) = 0 Then - $iHours = 0 - $iTicks = 0 - $iMins = 0 - $iSecs = 0 - Return 1 - Else - Return SetError(1, 0, 0) - EndIf -EndFunc ;==>_TicksToTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Marc -; Modified.......: SlimShady: added the default time and made parameters optional -; =============================================================================================================================== -Func _TimeToTicks($iHours = @HOUR, $iMins = @MIN, $iSecs = @SEC) - If StringIsInt($iHours) And StringIsInt($iMins) And StringIsInt($iSecs) Then - Local $iTicks = 1000 * ((3600 * $iHours) + (60 * $iMins) + $iSecs) - Return $iTicks - Else - Return SetError(1, 0, 0) - EndIf -EndFunc ;==>_TimeToTicks - -; #FUNCTION# ==================================================================================================================== -; Author ........: Tuape -; Modified.......: JdeB: modified to UDF standards & Doc., Change calculation logic. -; =============================================================================================================================== -Func _WeekNumberISO($iYear = @YEAR, $iMonth = @MON, $iDay = @MDAY) - ; Check for erroneous input in $Day, $Month & $Year - If $iDay > 31 Or $iDay < 1 Then - Return SetError(1, 0, -1) - ElseIf Not __DateIsMonth($iMonth) Then - Return SetError(2, 0, -1) - ElseIf $iYear < 1 Or $iYear > 2999 Then - Return SetError(3, 0, -1) - EndIf - - Local $iDow = _DateToDayOfWeekISO($iYear, $iMonth, $iDay) - 1; - Local $iDow0101 = _DateToDayOfWeekISO($iYear, 1, 1) - 1; - - If ($iMonth = 1 And 3 < $iDow0101 And $iDow0101 < 7 - ($iDay - 1)) Then - ;days before week 1 of the current year have the same week number as - ;the last day of the last week of the previous year - $iDow = $iDow0101 - 1; - $iDow0101 = _DateToDayOfWeekISO($iYear - 1, 1, 1) - 1; - $iMonth = 12 - $iDay = 31 - $iYear = $iYear - 1 - ElseIf ($iMonth = 12 And 30 - ($iDay - 1) < _DateToDayOfWeekISO($iYear + 1, 1, 1) - 1 And _DateToDayOfWeekISO($iYear + 1, 1, 1) - 1 < 4) Then - ; days after the last week of the current year have the same week number as - ; the first day of the next year, (i.e. 1) - Return 1; - EndIf - - Return Int((_DateToDayOfWeekISO($iYear, 1, 1) - 1 < 4) + 4 * ($iMonth - 1) + (2 * ($iMonth - 1) + ($iDay - 1) + $iDow0101 - $iDow + 6) * 36 / 256) -EndFunc ;==>_WeekNumberISO - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _WeekNumber -; Description ...: Find out the week number of current date OR date given in parameters -; Syntax.........: _WeekNumber ( [$iYear = @YEAR [, $iMonth = @MON [, $iDay = @MDAY [, $iWeekStart = 1]]]] ) -; Parameters ....: $iYear - Year value (default = current year) -; $iMonth - Month value (default = current month) -; $iDay - Day value (default = current day) -; $iWeekStart - Week starts from Sunday (1, default) or Monday (2) -; Return values .: Success - Returns week number of given date -; Failure - -1 and sets @error to: -; | 1 - On faulty parameters -; |99 - On non-acceptable weekstart and uses default (Sunday) as starting day -; Author ........: JdeB -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _WeekNumber($iYear = @YEAR, $iMonth = @MON, $iDay = @MDAY, $iWeekStart = 1) - ; Check for erroneous input in $Day, $Month & $Year - If $iDay > 31 Or $iDay < 1 Then - Return SetError(1, 0, -1) - ElseIf Not __DateIsMonth($iMonth) Then - Return SetError(3, 0, -1) - ElseIf $iYear < 1 Or $iYear > 2999 Then - Return SetError(4, 0, -1) - ElseIf $iWeekStart < 1 Or $iWeekStart > 2 Then - Return SetError(2, 0, -1) - EndIf - ; - Local $iStartWeek1, $iEndWeek1 - ;$iDow = _DateToDayOfWeekISO($iYear, $iMonth, $iDay); - Local $iDow0101 = _DateToDayOfWeekISO($iYear, 1, 1); - Local $iDate = $iYear & '/' & $iMonth & '/' & $iDay - ;Calculate the Start and End date of Week 1 this year - If $iWeekStart = 1 Then - If $iDow0101 = 6 Then - $iStartWeek1 = 0 - Else - $iStartWeek1 = -1 * $iDow0101 - 1 - EndIf - $iEndWeek1 = $iStartWeek1 + 6 - Else - $iStartWeek1 = $iDow0101 * -1 - $iEndWeek1 = $iStartWeek1 + 6 - EndIf - - Local $iStartWeek1ny - ;$iStartWeek1Date = _DateAdd('d',$iStartWeek1,$iYear & '/01/01') - Local $iEndWeek1Date = _DateAdd('d', $iEndWeek1, $iYear & '/01/01') - ;Calculate the Start and End date of Week 1 this Next year - Local $iDow0101ny = _DateToDayOfWeekISO($iYear + 1, 1, 1); - ; 1 = start on Sunday / 2 = start on Monday - If $iWeekStart = 1 Then - If $iDow0101ny = 6 Then - $iStartWeek1ny = 0 - Else - $iStartWeek1ny = -1 * $iDow0101ny - 1 - EndIf - ;$IEndWeek1ny = $iStartWeek1ny + 6 - Else - $iStartWeek1ny = $iDow0101ny * -1 - ;$IEndWeek1ny = $iStartWeek1ny + 6 - EndIf - Local $iStartWeek1Dateny = _DateAdd('d', $iStartWeek1ny, $iYear + 1 & '/01/01') - ;$iEndWeek1Dateny = _DateAdd('d',$IEndWeek1ny,$iYear+1 & '/01/01') - ;number of days after end week 1 - Local $iCurrDateDiff = _DateDiff('d', $iEndWeek1Date, $iDate) - 1 - ;number of days before next week 1 start - Local $iCurrDateDiffny = _DateDiff('d', $iStartWeek1Dateny, $iDate) - ; - ; Check for end of year - If $iCurrDateDiff >= 0 And $iCurrDateDiffny < 0 Then Return 2 + Int($iCurrDateDiff / 7) - ; > week 1 - If $iCurrDateDiff < 0 Or $iCurrDateDiffny >= 0 Then Return 1 -EndFunc ;==>_WeekNumber - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _DaysInMonth -; Description ...: returns an Array that contains the numbers of days per month -; Syntax.........: _DaysInMonth ( $iYear ) -; Parameters ....: $iYear - Year value -; Return values .: Success - Array that contains the numbers of days per month -; Failure - none -; Author ........: Jos van der Zande / Jeremy Landes -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _DaysInMonth($iYear) - Local $aDays = [12, 31, (_DateIsLeapYear($iYear) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] - Return $aDays -EndFunc ;==>_DaysInMonth - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Date_Time_CloneSystemTime -; Description ...: Clones a tagSYSTEMTIME structure -; Syntax.........: __Date_Time_CloneSystemTime ( $pSystemTime ) -; Parameters ....: $pSystemTime - Pointer to a tagSYSTEMTIME structure -; Return values .: Success - tagSYSTEMTIME structure containing the cloned system time -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally by Auto3Lib -; Related .......: $tagSYSTEMTIME -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Date_Time_CloneSystemTime($pSystemTime) - Local $tSystemTime1 = DllStructCreate($tagSYSTEMTIME, $pSystemTime) - Local $tSystemTime2 = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tSystemTime2, "Month", DllStructGetData($tSystemTime1, "Month")) - DllStructSetData($tSystemTime2, "Day", DllStructGetData($tSystemTime1, "Day")) - DllStructSetData($tSystemTime2, "Year", DllStructGetData($tSystemTime1, "Year")) - DllStructSetData($tSystemTime2, "Hour", DllStructGetData($tSystemTime1, "Hour")) - DllStructSetData($tSystemTime2, "Minute", DllStructGetData($tSystemTime1, "Minute")) - DllStructSetData($tSystemTime2, "Second", DllStructGetData($tSystemTime1, "Second")) - DllStructSetData($tSystemTime2, "MSeconds", DllStructGetData($tSystemTime1, "MSeconds")) - DllStructSetData($tSystemTime2, "DOW", DllStructGetData($tSystemTime1, "DOW")) - Return $tSystemTime2 -EndFunc ;==>__Date_Time_CloneSystemTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _Date_Time_CompareFileTime($tFileTime1, $tFileTime2) - Local $aResult = DllCall("kernel32.dll", "long", "CompareFileTime", "struct*", $tFileTime1, "struct*", $tFileTime2) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_Date_Time_CompareFileTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_DOSDateTimeToFileTime($iFatDate, $iFatTime) - Local $tTime = DllStructCreate($tagFILETIME) - Local $aResult = DllCall("kernel32.dll", "bool", "DosDateTimeToFileTime", "word", $iFatDate, "word", $iFatTime, "struct*", $tTime) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tTime) -EndFunc ;==>_Date_Time_DOSDateTimeToFileTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_DOSDateToArray($iDosDate) - Local $aDate[3] - - $aDate[0] = BitAND($iDosDate, 0x1F) - $aDate[1] = BitAND(BitShift($iDosDate, 5), 0x0F) - $aDate[2] = BitAND(BitShift($iDosDate, 9), 0x3F) + 1980 - Return $aDate -EndFunc ;==>_Date_Time_DOSDateToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_DOSDateTimeToArray($iDosDate, $iDosTime) - Local $aDate[6] - - $aDate[0] = BitAND($iDosDate, 0x1F) - $aDate[1] = BitAND(BitShift($iDosDate, 5), 0x0F) - $aDate[2] = BitAND(BitShift($iDosDate, 9), 0x3F) + 1980 - $aDate[5] = BitAND($iDosTime, 0x1F) * 2 - $aDate[4] = BitAND(BitShift($iDosTime, 5), 0x3F) - $aDate[3] = BitAND(BitShift($iDosTime, 11), 0x1F) - Return $aDate -EndFunc ;==>_Date_Time_DOSDateTimeToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_DOSDateTimeToStr($iDosDate, $iDosTime) - Local $aDate = _Date_Time_DOSDateTimeToArray($iDosDate, $iDosTime) - Return StringFormat("%02d/%02d/%04d %02d:%02d:%02d", $aDate[0], $aDate[1], $aDate[2], $aDate[3], $aDate[4], $aDate[5]) -EndFunc ;==>_Date_Time_DOSDateTimeToStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_DOSDateToStr($iDosDate) - Local $aDate = _Date_Time_DOSDateToArray($iDosDate) - Return StringFormat("%02d/%02d/%04d", $aDate[0], $aDate[1], $aDate[2]) -EndFunc ;==>_Date_Time_DOSDateToStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_DOSTimeToArray($iDosTime) - Local $aTime[3] - - $aTime[2] = BitAND($iDosTime, 0x1F) * 2 - $aTime[1] = BitAND(BitShift($iDosTime, 5), 0x3F) - $aTime[0] = BitAND(BitShift($iDosTime, 11), 0x1F) - Return $aTime -EndFunc ;==>_Date_Time_DOSTimeToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_DOSTimeToStr($iDosTime) - Local $aTime = _Date_Time_DOSTimeToArray($iDosTime) - Return StringFormat("%02d:%02d:%02d", $aTime[0], $aTime[1], $aTime[2]) -EndFunc ;==>_Date_Time_DOSTimeToStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_EncodeFileTime($iMonth, $iDay, $iYear, $iHour = 0, $iMinute = 0, $iSecond = 0, $iMSeconds = 0) - Local $tSYSTEMTIME = _Date_Time_EncodeSystemTime($iMonth, $iDay, $iYear, $iHour, $iMinute, $iSecond, $iMSeconds) - Return _Date_Time_SystemTimeToFileTime($tSYSTEMTIME) -EndFunc ;==>_Date_Time_EncodeFileTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_EncodeSystemTime($iMonth, $iDay, $iYear, $iHour = 0, $iMinute = 0, $iSecond = 0, $iMSeconds = 0) - Local $tSYSTEMTIME = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tSYSTEMTIME, "Month", $iMonth) - DllStructSetData($tSYSTEMTIME, "Day", $iDay) - DllStructSetData($tSYSTEMTIME, "Year", $iYear) - DllStructSetData($tSYSTEMTIME, "Hour", $iHour) - DllStructSetData($tSYSTEMTIME, "Minute", $iMinute) - DllStructSetData($tSYSTEMTIME, "Second", $iSecond) - DllStructSetData($tSYSTEMTIME, "MSeconds", $iMSeconds) - Return $tSYSTEMTIME -EndFunc ;==>_Date_Time_EncodeSystemTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_FileTimeToArray(ByRef $tFileTime) - If ((DllStructGetData($tFileTime, 1) + DllStructGetData($tFileTime, 2)) = 0) Then Return SetError(10, 0, 0) - Local $tSYSTEMTIME = _Date_Time_FileTimeToSystemTime($tFileTime) - If @error Then Return SetError(@error, @extended, 0) - - Return _Date_Time_SystemTimeToArray($tSYSTEMTIME) -EndFunc ;==>_Date_Time_FileTimeToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_FileTimeToStr(ByRef $tFileTime, $iFmt = 0) - Local $aDate = _Date_Time_FileTimeToArray($tFileTime) - If @error Then Return SetError(@error, @extended, "") - - If $iFmt Then - Return StringFormat("%04d/%02d/%02d %02d:%02d:%02d", $aDate[2], $aDate[0], $aDate[1], $aDate[3], $aDate[4], $aDate[5]) - Else - Return StringFormat("%02d/%02d/%04d %02d:%02d:%02d", $aDate[0], $aDate[1], $aDate[2], $aDate[3], $aDate[4], $aDate[5]) - EndIf -EndFunc ;==>_Date_Time_FileTimeToStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _Date_Time_FileTimeToDOSDateTime($tFileTime) - Local $aDate[2] - - Local $aResult = DllCall("kernel32.dll", "bool", "FileTimeToDosDateTime", "struct*", $tFileTime, "word*", 0, "word*", 0) - If @error Then Return SetError(@error, @extended, $aDate) - $aDate[0] = $aResult[2] - $aDate[1] = $aResult[3] - Return SetExtended($aResult[0], $aDate) -EndFunc ;==>_Date_Time_FileTimeToDOSDateTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_FileTimeToLocalFileTime($tFileTime) - Local $tLocal = DllStructCreate($tagFILETIME) - Local $aResult = DllCall("kernel32.dll", "bool", "FileTimeToLocalFileTime", "struct*", $tFileTime, "struct*", $tLocal) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tLocal) -EndFunc ;==>_Date_Time_FileTimeToLocalFileTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_FileTimeToSystemTime($tFileTime) - Local $tSystTime = DllStructCreate($tagSYSTEMTIME) - Local $aResult = DllCall("kernel32.dll", "bool", "FileTimeToSystemTime", "struct*", $tFileTime, "struct*", $tSystTime) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tSystTime) -EndFunc ;==>_Date_Time_FileTimeToSystemTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_GetFileTime($hFile) - Local $aDate[3] - - $aDate[0] = DllStructCreate($tagFILETIME) - $aDate[1] = DllStructCreate($tagFILETIME) - $aDate[2] = DllStructCreate($tagFILETIME) - Local $aResult = DllCall("kernel32.dll", "bool", "GetFileTime", "handle", $hFile, "struct*", $aDate[0], "struct*", $aDate[1], "struct*", $aDate[2]) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $aDate) -EndFunc ;==>_Date_Time_GetFileTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_GetLocalTime() - Local $tSystTime = DllStructCreate($tagSYSTEMTIME) - DllCall("kernel32.dll", "none", "GetLocalTime", "struct*", $tSystTime) - If @error Then Return SetError(@error, @extended, 0) - Return $tSystTime -EndFunc ;==>_Date_Time_GetLocalTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_GetSystemTime() - Local $tSystTime = DllStructCreate($tagSYSTEMTIME) - DllCall("kernel32.dll", "none", "GetSystemTime", "struct*", $tSystTime) - If @error Then Return SetError(@error, @extended, 0) - Return $tSystTime -EndFunc ;==>_Date_Time_GetSystemTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_GetSystemTimeAdjustment() - Local $aInfo[3] - - Local $aResult = DllCall("kernel32.dll", "bool", "GetSystemTimeAdjustment", "dword*", 0, "dword*", 0, "bool*", 0) - If @error Then Return SetError(@error, @extended, 0) - - $aInfo[0] = $aResult[1] - $aInfo[1] = $aResult[2] - $aInfo[2] = $aResult[3] <> 0 - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_Date_Time_GetSystemTimeAdjustment - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_GetSystemTimeAsFileTime() - Local $tFileTime = DllStructCreate($tagFILETIME) - DllCall("kernel32.dll", "none", "GetSystemTimeAsFileTime", "struct*", $tFileTime) - If @error Then Return SetError(@error, @extended, 0) - Return $tFileTime -EndFunc ;==>_Date_Time_GetSystemTimeAsFileTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_GetSystemTimes() - Local $aInfo[3] - $aInfo[0] = DllStructCreate($tagFILETIME) - $aInfo[1] = DllStructCreate($tagFILETIME) - $aInfo[2] = DllStructCreate($tagFILETIME) - Local $aResult = DllCall("kernel32.dll", "bool", "GetSystemTimes", "struct*", $aInfo[0], "struct*", $aInfo[1], "struct*", $aInfo[2]) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_Date_Time_GetSystemTimes - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_GetTickCount() - Local $aResult = DllCall("kernel32.dll", "dword", "GetTickCount") - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_Date_Time_GetTickCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _Date_Time_GetTimeZoneInformation() - Local $tTimeZone = DllStructCreate($tagTIME_ZONE_INFORMATION) - Local $aResult = DllCall("kernel32.dll", "dword", "GetTimeZoneInformation", "struct*", $tTimeZone) - If @error Or $aResult[0] = -1 Then Return SetError(@error, @extended, 0) - - Local $aInfo[8] - $aInfo[0] = $aResult[0] - $aInfo[1] = DllStructGetData($tTimeZone, "Bias") - $aInfo[2] = _WinAPI_WideCharToMultiByte(DllStructGetPtr($tTimeZone, "StdName")) - $aInfo[3] = __Date_Time_CloneSystemTime(DllStructGetPtr($tTimeZone, "StdDate")) - $aInfo[4] = DllStructGetData($tTimeZone, "StdBias") - $aInfo[5] = _WinAPI_WideCharToMultiByte(DllStructGetPtr($tTimeZone, "DayName")) - $aInfo[6] = __Date_Time_CloneSystemTime(DllStructGetPtr($tTimeZone, "DayDate")) - $aInfo[7] = DllStructGetData($tTimeZone, "DayBias") - Return $aInfo -EndFunc ;==>_Date_Time_GetTimeZoneInformation - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _Date_Time_LocalFileTimeToFileTime($tLocalTime) - Local $tFileTime = DllStructCreate($tagFILETIME) - Local $aResult = DllCall("kernel32.dll", "bool", "LocalFileTimeToFileTime", "struct*", $tLocalTime, "struct*", $tFileTime) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tFileTime) -EndFunc ;==>_Date_Time_LocalFileTimeToFileTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _Date_Time_SetFileTime($hFile, $tCreateTime, $tLastAccess, $tLastWrite) - Local $aResult = DllCall("kernel32.dll", "bool", "SetFileTime", "handle", $hFile, "struct*", $tCreateTime, "struct*", $tLastAccess, "struct*", $tLastWrite) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_Date_Time_SetFileTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_SetLocalTime($tSYSTEMTIME) - Local $aResult = DllCall("kernel32.dll", "bool", "SetLocalTime", "struct*", $tSYSTEMTIME) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, False) - - ; The system uses UTC internally. When you call SetLocalTime, the system uses the current time zone information to perform the - ; conversion, incuding the daylight saving time setting. The system uses the daylight saving time setting of the current time, - ; not the new time you are setting. This is a "feature" according to Microsoft. In order to get around this, we have to call - ; the function twice. The first call sets the internal time zone and the second call sets the actual time. - $aResult = DllCall("kernel32.dll", "bool", "SetLocalTime", "struct*", $tSYSTEMTIME) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_Date_Time_SetLocalTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _Date_Time_SetSystemTime($tSYSTEMTIME) - Local $aResult = DllCall("kernel32.dll", "bool", "SetSystemTime", "struct*", $tSYSTEMTIME) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_Date_Time_SetSystemTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _Date_Time_SetSystemTimeAdjustment($iAdjustment, $bDisabled) - ; Enable system time privileged mode - Local $hToken = _Security__OpenThreadTokenEx(BitOR($TOKEN_ADJUST_PRIVILEGES, $TOKEN_QUERY)) - If @error Then Return SetError(@error + 10, @extended, False) - _Security__SetPrivilege($hToken, "SeSystemtimePrivilege", True) - Local $iError = @error - Local $iLastError = @extended - Local $bRet = False - If Not @error Then - ; Set system time - Local $aResult = DllCall("kernel32.dll", "bool", "SetSystemTimeAdjustment", "dword", $iAdjustment, "bool", $bDisabled) - If @error Then - $iError = @error - $iLastError = @extended - ElseIf $aResult[0] Then - $bRet = True - Else - $iError = 20 - $iLastError = _WinAPI_GetLastError() - EndIf - - ; Disable system time privileged mode - _Security__SetPrivilege($hToken, "SeSystemtimePrivilege", False) - If Not $iError And @error Then $iError = 22 - - EndIf - _WinAPI_CloseHandle($hToken) - - Return SetError($iError, $iLastError, $bRet) -EndFunc ;==>_Date_Time_SetSystemTimeAdjustment - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _Date_Time_SetTimeZoneInformation($iBias, $sStdName, $tStdDate, $iStdBias, $sDayName, $tDayDate, $iDayBias) - Local $tStdName = _WinAPI_MultiByteToWideChar($sStdName) - Local $tDayName = _WinAPI_MultiByteToWideChar($sDayName) - Local $tZoneInfo = DllStructCreate($tagTIME_ZONE_INFORMATION) - DllStructSetData($tZoneInfo, "Bias", $iBias) - DllStructSetData($tZoneInfo, "StdName", DllStructGetData($tStdName, 1)) - _MemMoveMemory($tStdDate, DllStructGetPtr($tZoneInfo, "StdDate"), DllStructGetSize($tStdDate)) - DllStructSetData($tZoneInfo, "StdBias", $iStdBias) - DllStructSetData($tZoneInfo, "DayName", DllStructGetData($tDayName, 1)) - _MemMoveMemory($tDayDate, DllStructGetPtr($tZoneInfo, "DayDate"), DllStructGetSize($tDayDate)) - DllStructSetData($tZoneInfo, "DayBias", $iDayBias) - - ; Enable system time privileged mode - Local $hToken = _Security__OpenThreadTokenEx(BitOR($TOKEN_ADJUST_PRIVILEGES, $TOKEN_QUERY)) - If @error Then Return SetError(@error + 10, @extended, False) - _Security__SetPrivilege($hToken, "SeSystemtimePrivilege", True) - Local $iError = @error - Local $iLastError = @extended - Local $bRet = False - If Not @error Then - ; Set time zone information - Local $aResult = DllCall("kernel32.dll", "bool", "SetTimeZoneInformation", "struct*", $tZoneInfo) - If @error Then - $iError = @error - $iLastError = @extended - ElseIf $aResult[0] Then - $iLastError = 0 - $bRet = True - Else - $iError = 20 - $iLastError = _WinAPI_GetLastError() - EndIf - - ; Disable system time privileged mode - _Security__SetPrivilege($hToken, "SeSystemtimePrivilege", False) - If Not $iError And @error Then $iError = 22 - EndIf - _WinAPI_CloseHandle($hToken) - - Return SetError($iError, $iLastError, $bRet) -EndFunc ;==>_Date_Time_SetTimeZoneInformation - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_SystemTimeToArray(ByRef $tSYSTEMTIME) - Local $aInfo[8] - $aInfo[0] = DllStructGetData($tSYSTEMTIME, "Month") - $aInfo[1] = DllStructGetData($tSYSTEMTIME, "Day") - $aInfo[2] = DllStructGetData($tSYSTEMTIME, "Year") - $aInfo[3] = DllStructGetData($tSYSTEMTIME, "Hour") - $aInfo[4] = DllStructGetData($tSYSTEMTIME, "Minute") - $aInfo[5] = DllStructGetData($tSYSTEMTIME, "Second") - $aInfo[6] = DllStructGetData($tSYSTEMTIME, "MSeconds") - $aInfo[7] = DllStructGetData($tSYSTEMTIME, "DOW") - Return $aInfo -EndFunc ;==>_Date_Time_SystemTimeToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_SystemTimeToDateStr(ByRef $tSYSTEMTIME, $iFmt = 0) - Local $aInfo = _Date_Time_SystemTimeToArray($tSYSTEMTIME) - If @error Then Return SetError(@error, @extended, "") - - If $iFmt Then - Return StringFormat("%04d/%02d/%02d", $aInfo[2], $aInfo[0], $aInfo[1]) - Else - Return StringFormat("%02d/%02d/%04d", $aInfo[0], $aInfo[1], $aInfo[2]) - EndIf -EndFunc ;==>_Date_Time_SystemTimeToDateStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_SystemTimeToDateTimeStr(ByRef $tSYSTEMTIME, $iFmt = 0) - Local $aInfo = _Date_Time_SystemTimeToArray($tSYSTEMTIME) - If @error Then Return SetError(@error, @extended, "") - - If $iFmt Then - Return StringFormat("%04d/%02d/%02d %02d:%02d:%02d", $aInfo[2], $aInfo[0], $aInfo[1], $aInfo[3], $aInfo[4], $aInfo[5]) - Else - Return StringFormat("%02d/%02d/%04d %02d:%02d:%02d", $aInfo[0], $aInfo[1], $aInfo[2], $aInfo[3], $aInfo[4], $aInfo[5]) - EndIf -EndFunc ;==>_Date_Time_SystemTimeToDateTimeStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_SystemTimeToFileTime($tSYSTEMTIME) - Local $tFileTime = DllStructCreate($tagFILETIME) - Local $aResult = DllCall("kernel32.dll", "bool", "SystemTimeToFileTime", "struct*", $tSYSTEMTIME, "struct*", $tFileTime) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tFileTime) -EndFunc ;==>_Date_Time_SystemTimeToFileTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Date_Time_SystemTimeToTimeStr(ByRef $tSYSTEMTIME) - Local $aInfo = _Date_Time_SystemTimeToArray($tSYSTEMTIME) - Return StringFormat("%02d:%02d:%02d", $aInfo[3], $aInfo[4], $aInfo[5]) -EndFunc ;==>_Date_Time_SystemTimeToTimeStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _Date_Time_SystemTimeToTzSpecificLocalTime($tUTC, $tTimeZone = 0) - Local $tLocalTime = DllStructCreate($tagSYSTEMTIME) - Local $aResult = DllCall("kernel32.dll", "bool", "SystemTimeToTzSpecificLocalTime", "struct*", $tTimeZone, "struct*", $tUTC, "struct*", $tLocalTime) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tLocalTime) -EndFunc ;==>_Date_Time_SystemTimeToTzSpecificLocalTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _Date_Time_TzSpecificLocalTimeToSystemTime($tLocalTime, $tTimeZone = 0) - Local $tUTC = DllStructCreate($tagSYSTEMTIME) - Local $aResult = DllCall("kernel32.dll", "bool", "TzSpecificLocalTimeToSystemTime", "struct*", $tTimeZone, "struct*", $tLocalTime, "struct*", $tUTC) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tUTC) -EndFunc ;==>_Date_Time_TzSpecificLocalTimeToSystemTime diff --git a/build/Include/DateTimeConstants.au3 b/build/Include/DateTimeConstants.au3 deleted file mode 100644 index fdc44dcd8..000000000 --- a/build/Include/DateTimeConstants.au3 +++ /dev/null @@ -1,147 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: DateTime_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for GUI control Date styles and much more. -; Author(s) .....: Valik, Gary Frost -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Date -Global Const $DTS_SHORTDATEFORMAT = 0 -Global Const $DTS_UPDOWN = 1 -Global Const $DTS_SHOWNONE = 2 -Global Const $DTS_LONGDATEFORMAT = 4 -Global Const $DTS_TIMEFORMAT = 9 -Global Const $DTS_RIGHTALIGN = 32 -Global Const $DTS_SHORTDATECENTURYFORMAT = 0x0000000C ; The year is a four-digit field -Global Const $DTS_APPCANPARSE = 0x00000010 ; Allows the owner to parse user input and take necessary action - -; _DateDayOfWeek -Global Const $DMW_LONGNAME = 0 -Global Const $DMW_SHORTNAME = 1 -Global Const $DMW_LOCALE_LONGNAME = 2 -Global Const $DMW_LOCALE_SHORTNAME = 3 - -; Success/Failure -Global Const $GDT_ERROR = -1 -Global Const $GDT_VALID = 0 -Global Const $GDT_NONE = 1 -Global Const $GDTR_MIN = 0x0001 -Global Const $GDTR_MAX = 0x0002 - -; MonthCal -Global Const $MCHT_NOWHERE = 0x00000000 -Global Const $MCHT_TITLE = 0x00010000 -Global Const $MCHT_CALENDAR = 0x00020000 -Global Const $MCHT_TODAYLINK = 0x00030000 -Global Const $MCHT_NEXT = 0x01000000 -Global Const $MCHT_PREV = 0x02000000 - -Global Const $MCHT_TITLEBK = 0x00010000 -Global Const $MCHT_TITLEMONTH = 0x00010001 -Global Const $MCHT_TITLEYEAR = 0x00010002 -Global Const $MCHT_TITLEBTNNEXT = 0x01010003 -Global Const $MCHT_TITLEBTNPREV = 0x02010003 - -Global Const $MCHT_CALENDARBK = 0x00020000 -Global Const $MCHT_CALENDARDATE = 0x00020001 -Global Const $MCHT_CALENDARDAY = 0x00020002 -Global Const $MCHT_CALENDARWEEKNUM = 0x00020003 -Global Const $MCHT_CALENDARDATENEXT = 0x01020000 -Global Const $MCHT_CALENDARDATEPREV = 0x02020000 - -; Month Calendar Styles -Global Const $MCS_DAYSTATE = 0x0001 ; The control sends $MCN_GETDAYSTATE notifications to request information -Global Const $MCS_MULTISELECT = 0x0002 -Global Const $MCS_WEEKNUMBERS = 0x0004 -Global Const $MCS_NOTODAYCIRCLE = 0x0008 -Global Const $MCS_NOTODAY = 0x0010 -Global Const $MCS_NOTRAILINGDATES = 0x0040 -Global Const $MCS_SHORTDAYSOFWEEK = 0x0080 -Global Const $MCS_NOSELCHANGEONNAV = 0x0100 - -; Month Calendar Messages -Global Const $MCM_FIRST = 0x1000 -Global Const $MCM_GETCALENDARBORDER = ($MCM_FIRST + 31) -Global Const $MCM_GETCALENDARCOUNT = ($MCM_FIRST + 23) -Global Const $MCM_GETCALENDARGRIDINFO = ($MCM_FIRST + 24) -Global Const $MCM_GETCALID = ($MCM_FIRST + 27) -Global Const $MCM_GETCOLOR = ($MCM_FIRST + 11) -Global Const $MCM_GETCURRENTVIEW = ($MCM_FIRST + 22) -Global Const $MCM_GETCURSEL = ($MCM_FIRST + 1) -Global Const $MCM_GETFIRSTDAYOFWEEK = ($MCM_FIRST + 16) -Global Const $MCM_GETMAXSELCOUNT = ($MCM_FIRST + 3) -Global Const $MCM_GETMAXTODAYWIDTH = ($MCM_FIRST + 21) -Global Const $MCM_GETMINREQRECT = ($MCM_FIRST + 9) -Global Const $MCM_GETMONTHDELTA = ($MCM_FIRST + 19) -Global Const $MCM_GETMONTHRANGE = ($MCM_FIRST + 7) -Global Const $MCM_GETRANGE = ($MCM_FIRST + 17) -Global Const $MCM_GETSELRANGE = ($MCM_FIRST + 5) -Global Const $MCM_GETTODAY = ($MCM_FIRST + 13) -Global Const $MCM_GETUNICODEFORMAT = 0x2000 + 6 -Global Const $MCM_HITTEST = ($MCM_FIRST + 14) -Global Const $MCM_SETCALENDARBORDER = ($MCM_FIRST + 30) -Global Const $MCM_SETCALID = ($MCM_FIRST + 28) -Global Const $MCM_SETCOLOR = ($MCM_FIRST + 10) -Global Const $MCM_SETCURRENTVIEW = ($MCM_FIRST + 32) -Global Const $MCM_SETCURSEL = ($MCM_FIRST + 2) -Global Const $MCM_SETDAYSTATE = ($MCM_FIRST + 8) -Global Const $MCM_SETFIRSTDAYOFWEEK = ($MCM_FIRST + 15) -Global Const $MCM_SETMAXSELCOUNT = ($MCM_FIRST + 4) -Global Const $MCM_SETMONTHDELTA = ($MCM_FIRST + 20) -Global Const $MCM_SETRANGE = ($MCM_FIRST + 18) -Global Const $MCM_SETSELRANGE = ($MCM_FIRST + 6) -Global Const $MCM_SETTODAY = ($MCM_FIRST + 12) -Global Const $MCM_SETUNICODEFORMAT = 0x2000 + 5 -Global Const $MCM_SIZERECTTOMIN = ($MCM_FIRST + 29) - -; Month Calendar Notifications -Global Const $MCN_FIRST = -746 -Global Const $MCN_SELCHANGE = ($MCN_FIRST - 3) ; The currently selected date or range of dates changed -Global Const $MCN_GETDAYSTATE = ($MCN_FIRST - 1) ; Request information about how individual days should be displayed -Global Const $MCN_SELECT = ($MCN_FIRST) ; The user makes an explicit date selection -Global Const $MCN_VIEWCHANGE = ($MCN_FIRST - 4) - -Global Const $MCSC_BACKGROUND = 0 -Global Const $MCSC_MONTHBK = 4 -Global Const $MCSC_TEXT = 1 -Global Const $MCSC_TITLEBK = 2 -Global Const $MCSC_TITLETEXT = 3 -Global Const $MCSC_TRAILINGTEXT = 5 - -; Date Time Picker Messages -Global Const $DTM_FIRST = 0x1000 -Global Const $DTM_GETSYSTEMTIME = $DTM_FIRST + 1 -Global Const $DTM_SETSYSTEMTIME = $DTM_FIRST + 2 -Global Const $DTM_GETRANGE = $DTM_FIRST + 3 -Global Const $DTM_SETRANGE = $DTM_FIRST + 4 -Global Const $DTM_SETFORMAT = $DTM_FIRST + 5 -Global Const $DTM_SETMCCOLOR = $DTM_FIRST + 6 -Global Const $DTM_GETMCCOLOR = $DTM_FIRST + 7 -Global Const $DTM_GETMONTHCAL = $DTM_FIRST + 8 -Global Const $DTM_SETMCFONT = $DTM_FIRST + 9 -Global Const $DTM_GETMCFONT = $DTM_FIRST + 10 -Global Const $DTM_SETFORMATW = $DTM_FIRST + 50 ; [Unicode] - -; Date Time Picker Notifications -Global Const $DTN_FIRST = -740 -Global Const $DTN_FIRST2 = -753 -Global Const $DTN_DATETIMECHANGE = $DTN_FIRST2 - 6 ; Sent whenever a change occurs -Global Const $DTN_USERSTRING = $DTN_FIRST2 - 5 ; Sent when a user finishes editing a string in the control -Global Const $DTN_WMKEYDOWN = $DTN_FIRST2 - 4 ; Sent when the user types in a callback field -Global Const $DTN_FORMAT = $DTN_FIRST2 - 3 ; Sent to request text to be displayed in a callback field -Global Const $DTN_FORMATQUERY = $DTN_FIRST2 - 2 ; Sent to retrieve the size of the callback field string -Global Const $DTN_DROPDOWN = $DTN_FIRST2 - 1 ; Sent when the user activates the drop-down month calendar -Global Const $DTN_CLOSEUP = $DTN_FIRST2 - 0 ; Sent when the user closes the drop-down month calendar -Global Const $DTN_USERSTRINGW = $DTN_FIRST - 5 ; [Unicode] Sent when a user finishes editing a string in the control -Global Const $DTN_WMKEYDOWNW = $DTN_FIRST - 4 ; [Unicode] Sent when the user types in a callback field -Global Const $DTN_FORMATW = $DTN_FIRST - 3 ; [Unicode] Sent to request text to be displayed in a callback field -Global Const $DTN_FORMATQUERYW = $DTN_FIRST - 2 ; [Unicode] Sent to retrieve the size of the callback field string - -; Control default styles -Global Const $GUI_SS_DEFAULT_DATE = $DTS_LONGDATEFORMAT -Global Const $GUI_SS_DEFAULT_MONTHCAL = 0 -; =============================================================================================================================== diff --git a/build/Include/Debug.au3 b/build/Include/Debug.au3 deleted file mode 100644 index ce0a2077b..000000000 --- a/build/Include/Debug.au3 +++ /dev/null @@ -1,590 +0,0 @@ -#include-once - -#include "AutoItConstants.au3" -#include "MsgBoxConstants.au3" -#include "SendMessage.au3" -#include "StringConstants.au3" -#include "WinAPIError.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Debug -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions to help script debugging. -; Author(s) .....: Nutster, Jpm, Valik, guinness, water -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__g_sReportWindowText_Debug = "Debug Window hidden text" -; =============================================================================================================================== - -; #VARIABLE# ==================================================================================================================== -Global $__g_sReportTitle_Debug = "AutoIt Debug Report" -Global $__g_iReportType_Debug = 0 -Global $__g_bReportWindowWaitClose_Debug = True, $__g_bReportWindowClosed_Debug = True -Global $__g_hReportEdit_Debug = 0 -Global $__g_hReportNotepadEdit_Debug = 0 -Global $__g_sReportCallBack_Debug -Global $__g_bReportTimeStamp_Debug = False -Global $__g_bComErrorExit_Debug = False, $__g_sComError_Debug = "" -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _Assert -; _DebugBugReportEnv -; _DebugCOMError -; _DebugOut -; _DebugReport -; _DebugReportEx -; _DebugReportVar -; _DebugSetup -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __Debug_COMErrorHandler -; __Debug_DataFormat -; __Debug_DataType -; __Debug_ReportClose -; __Debug_ReportWrite -; __Debug_ReportWindowCreate -; __Debug_ReportWindowWrite -; __Debug_ReportWindowWaitClose -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Valik -; Modified.......: jpm -; =============================================================================================================================== -Func _Assert($sCondition, $bExit = True, $iCode = 0x7FFFFFFF, $sLine = @ScriptLineNumber, Const $_iCurrentError = @error, Const $_iCurrentExtended = @extended) - Local $bCondition = Execute($sCondition) - If Not $bCondition Then - MsgBox($MB_SYSTEMMODAL, "AutoIt Assert", "Assertion Failed (Line " & $sLine & "): " & @CRLF & @CRLF & $sCondition) - If $bExit Then Exit $iCode - EndIf - Return SetError($_iCurrentError, $_iCurrentExtended, $bCondition) -EndFunc ;==>_Assert - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _DebugBugReportEnv(Const $_iCurrentError = @error, Const $_iCurrentExtended = @extended) - Local $sAutoItX64, $sAdminMode, $sCompiled, $sOsServicePack, $sMUIlang, $sKBLayout, $sCPUArch - If @AutoItX64 Then $sAutoItX64 = "/X64" - If IsAdmin() Then $sAdminMode = ", AdminMode" - If @Compiled Then $sCompiled = ", Compiled" - If @OSServicePack Then $sOsServicePack = "/" & StringReplace(@OSServicePack, "Service Pack ", "SP") - If @OSLang <> @MUILang Then $sMUIlang = ", MUILang: " & @MUILang - If @OSLang <> StringRight(@KBLayout, 4) Then $sKBLayout = ", Keyboard: " & @KBLayout - If @OSArch <> @CPUArch Then $sCPUArch = ", CPUArch: " & @CPUArch - Return SetError($_iCurrentError, $_iCurrentExtended, "AutoIt: " & @AutoItVersion & $sAutoItX64 & $sAdminMode & $sCompiled & _ - ", OS: " & @OSVersion & $sOsServicePack & "/" & @OSArch & _ - ", OSLang: " & @OSLang & $sMUIlang & $sKBLayout & $sCPUArch & _ - ", Script: " & @ScriptFullPath) -EndFunc ;==>_DebugBugReportEnv - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: jpm -; =============================================================================================================================== -Func _DebugCOMError($iComDebug = Default, $bExit = False) - If $__g_iReportType_Debug <= 0 Or $__g_iReportType_Debug > 6 Then Return SetError(3, 0, 0) - If $iComDebug = Default Then $iComDebug = 1 - If Not IsInt($iComDebug) Or $iComDebug < -1 Or $iComDebug > 1 Then Return SetError(1, 0, 0) - Switch $iComDebug - Case -1 - Return SetError(IsObj($__g_sComError_Debug), $__g_bComErrorExit_Debug, 1) - Case 0 - If $__g_sComError_Debug = "" Then SetError(0, 3, 1) ; COM error handler already disabled - $__g_sComError_Debug = "" - $__g_bComErrorExit_Debug = False - Return 1 - Case Else - ; A COM error handler will be initialized only if one does not exist - $__g_bComErrorExit_Debug = $bExit - If ObjEvent("AutoIt.Error") = "" Then - $__g_sComError_Debug = ObjEvent("AutoIt.Error", "__Debug_COMErrorHandler") ; Creates a custom error handler - If @error Then Return SetError(4, @error, 0) - Return SetError(0, 1, 1) - ElseIf ObjEvent("AutoIt.Error") = "__Debug_COMErrorHandler" Then - Return SetError(0, 2, 1) ; COM error handler already set by a previous call to this function - Else - Return SetError(2, 0, 0) ; COM error handler already set to another function - EndIf - EndSwitch -EndFunc ;==>_DebugCOMError - -; #FUNCTION# ==================================================================================================================== -; Author ........: Nutster -; Modified.......: jpm -; =============================================================================================================================== -Func _DebugOut(Const $sOutput, Const $_iCurrentError = @error, Const $_iCurrentExtended = @extended) - If IsNumber($sOutput) = 0 And IsString($sOutput) = 0 And IsBool($sOutput) = 0 Then Return SetError(1, 0, 0) ; $sOutput can not be printed - - If _DebugReport($sOutput) = 0 Then Return SetError(3, 0, 0) ; _DebugSetup() as not been called. - - Return SetError($_iCurrentError, $_iCurrentExtended, 1) ; Return @error and @extended as before calling _DebugOut() -EndFunc ;==>_DebugOut - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: guinness -; =============================================================================================================================== -Func _DebugSetup(Const $sTitle = Default, $bBugReportInfos = Default, $vReportType = Default, $sLogFile = Default, $bTimeStamp = False) - If $__g_iReportType_Debug Then Return SetError(1, 0, $__g_iReportType_Debug) ; already registered - If $bBugReportInfos = Default Then $bBugReportInfos = False - If $vReportType = Default Then $vReportType = 1 - If $sLogFile = Default Then $sLogFile = "" - Switch $vReportType - Case 1 - ; Report Log window - $__g_sReportCallBack_Debug = "__Debug_ReportWindowWrite(" - Case 2 - ; ConsoleWrite - $__g_sReportCallBack_Debug = "ConsoleWrite(" - Case 3 - ; Message box - $__g_sReportCallBack_Debug = "MsgBox(4096, '" & $__g_sReportTitle_Debug & "'," - Case 4 - ; Log file - $__g_sReportCallBack_Debug = "FileWrite('" & $sLogFile & "'," - Case 5 - ; Report notepad window - $__g_sReportCallBack_Debug = "__Debug_ReportNotepadWrite(" - Case Else - If Not IsString($vReportType) Then Return SetError(2, 0, 0) ; invalid Report type - ; private callback - If $vReportType = "" Then Return SetError(3, 0, 0) ; invalid callback function - $__g_sReportCallBack_Debug = $vReportType & "(" - $vReportType = 6 - EndSwitch - - If Not ($sTitle = Default) Then $__g_sReportTitle_Debug = $sTitle - $__g_iReportType_Debug = $vReportType - $__g_bReportTimeStamp_Debug = $bTimeStamp - - OnAutoItExitRegister("__Debug_ReportClose") - - If $bBugReportInfos Then _DebugReport(_DebugBugReportEnv() & @CRLF) - - Return $__g_iReportType_Debug -EndFunc ;==>_DebugSetup - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _DebugReport($sData, $bLastError = False, $bExit = False, Const $_iCurrentError = @error, $_iCurrentExtended = @extended) - If $__g_iReportType_Debug <= 0 Or $__g_iReportType_Debug > 6 Then Return SetError($_iCurrentError, $_iCurrentExtended, 0) - - $_iCurrentExtended = __Debug_ReportWrite($sData, $bLastError) - - If $bExit Then Exit - - Return SetError($_iCurrentError, $_iCurrentExtended, 1) -EndFunc ;==>_DebugReport - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _DebugReportEx($sData, $bLastError = False, $bExit = False, Const $_iCurrentError = @error, $_iCurrentExtended = @extended) - If $__g_iReportType_Debug <= 0 Or $__g_iReportType_Debug > 6 Then Return SetError($_iCurrentError, $_iCurrentExtended, 0) - - If IsInt($_iCurrentError) Then - Local $sTemp = StringSplit($sData, "|", $STR_ENTIRESPLIT + $STR_NOCOUNT) - If UBound($sTemp) > 1 Then - If $bExit Then - $sData = "<<< " - Else - $sData = ">>> " - EndIf - - Switch $_iCurrentError - Case 0 - $sData &= "Bad return from " & $sTemp[1] & " in " & $sTemp[0] & ".dll" - Case 1 - $sData &= "Unable to open " & $sTemp[0] & ".dll" - Case 3 - $sData &= "Unable to find " & $sTemp[1] & " in " & $sTemp[0] & ".dll" - EndSwitch - EndIf - EndIf - - $_iCurrentExtended = __Debug_ReportWrite($sData, $bLastError) - - If $bExit Then Exit - - Return SetError($_iCurrentError, $_iCurrentExtended, 1) -EndFunc ;==>_DebugReportEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _DebugReportVar($sVarName, $vVar, $bErrExt = False, Const $iDebugLineNumber = @ScriptLineNumber, Const $_iCurrentError = @error, Const $_iCurrentExtended = @extended) - If $__g_iReportType_Debug <= 0 Or $__g_iReportType_Debug > 6 Then Return SetError($_iCurrentError, $_iCurrentExtended, 0) - - If IsBool($vVar) And IsInt($bErrExt) Then - ; to kept some compatibility with 3.3.1.3 if really needed for non breaking - If StringLeft($sVarName, 1) = "$" Then $sVarName = StringTrimLeft($sVarName, 1) - $vVar = Eval($sVarName) - $sVarName = "???" - EndIf - - Local $sData = "@@ Debug(" & $iDebugLineNumber & ") : " & __Debug_DataType($vVar) & " -> " & $sVarName - - If IsArray($vVar) Then - Local $nDims = UBound($vVar, $UBOUND_DIMENSIONS) - Local $nRows = UBound($vVar, $UBOUND_ROWS) - Local $nCols = UBound($vVar, $UBOUND_COLUMNS) - For $d = 1 To $nDims - $sData &= "[" & UBound($vVar, $d) & "]" - Next - - If $nDims <= 2 Then - For $r = 0 To $nRows - 1 - $sData &= @CRLF & "[" & $r & "] " - If $nDims = 1 Then - $sData &= __Debug_DataFormat($vVar[$r]) & @TAB - Else - For $c = 0 To $nCols - 1 - $sData &= __Debug_DataFormat($vVar[$r][$c]) & @TAB - Next - EndIf - Next - EndIf - ElseIf IsDllStruct($vVar) Or IsObj($vVar) Then - Else - $sData &= ' = ' & __Debug_DataFormat($vVar) - EndIf - - If $bErrExt Then $sData &= @CRLF & @TAB & "@error=" & $_iCurrentError & " @extended=0x" & Hex($_iCurrentExtended) - - __Debug_ReportWrite($sData) - - Return SetError($_iCurrentError, $_iCurrentExtended) -EndFunc ;==>_DebugReportVar - -; #INTERNAL_USE_ONLY#============================================================================================================ -; Name ..........: __Debug_COMErrorHandler -; Description ...: Called when a COM error occurs and writes the error message with _DebugOut(). -; Syntax.........: __Debug_COMErrorHandler ( $oCOMError ) -; Parameters ....: $oCOMError - Error object -; Return values .: None -; Author ........: water -; Modified ......: jpm -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Debug_COMErrorHandler($oCOMError) - _DebugReport(__COMErrorFormating("@@DEBUG " & $oCOMError), False, $__g_bComErrorExit_Debug) -EndFunc ;==>__Debug_COMErrorHandler - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Debug_DataFormat -; Description ...: Returns a formatted data -; Syntax.........: __Debug_DataFormat ( $vData ) -; Parameters ....: $vData - a data to be formatted -; Return values .: the data truncated if needed or the Datatype for not editable as Dllstruct, Obj or Array -; Author ........: jpm -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Debug_DataFormat($vData) - Local $nLenMax = 25 ; to truncate String, Binary - Local $sTruncated = "" - If IsString($vData) Then - If StringLen($vData) > $nLenMax Then - $vData = StringLeft($vData, $nLenMax) - $sTruncated = " ..." - EndIf - Return '"' & $vData & '"' & $sTruncated - ElseIf IsBinary($vData) Then - If BinaryLen($vData) > $nLenMax Then - $vData = BinaryMid($vData, 1, $nLenMax) - $sTruncated = " ..." - EndIf - Return $vData & $sTruncated - ElseIf IsDllStruct($vData) Or IsArray($vData) Or IsObj($vData) Then - Return __Debug_DataType($vData) - Else - Return $vData - EndIf -EndFunc ;==>__Debug_DataFormat - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Debug_DataType -; Description ...: Truncate a data -; Syntax.........: __Debug_DataType ( $vData ) -; Parameters ....: $vData - a data -; Return values .: the data truncated if needed -; Author ........: jpm -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Debug_DataType($vData) - Local $sType = VarGetType($vData) - Switch $sType - Case "DllStruct" - $sType &= ":" & DllStructGetSize($vData) - Case "Array" - $sType &= " " & UBound($vData, $UBOUND_DIMENSIONS) & "D" - Case "String" - $sType &= ":" & StringLen($vData) - Case "Binary" - $sType &= ":" & BinaryLen($vData) - Case "Ptr" - If IsHWnd($vData) Then $sType = "Hwnd" - EndSwitch - Return "{" & $sType & "}" -EndFunc ;==>__Debug_DataType - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Debug_ReportClose -; Description ...: Close the debug session -; Syntax.........: __Debug_ReportClose ( ) -; Parameters ....: -; Return values .: -; Author ........: jpm -; Modified.......: guinness -; Remarks .......: If a specific reporting function has been registered then it is called without parameter. -; Related .......: _DebugSetup -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Debug_ReportClose() - If $__g_iReportType_Debug = 1 Then - WinSetOnTop($__g_sReportTitle_Debug, "", 1) - _DebugReport('>>>>>> Please close the "Report Log Window" to exit <<<<<<<' & @CRLF) - __Debug_ReportWindowWaitClose() - ElseIf $__g_iReportType_Debug = 6 Then - Execute($__g_sReportCallBack_Debug & ")") - EndIf - - $__g_iReportType_Debug = 0 -EndFunc ;==>__Debug_ReportClose - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Debug_ReportWindowCreate -; Description ...: Create an report log window -; Syntax.........: __Debug_ReportWindowCreate ( ) -; Parameters ....: -; Return values .: 0 if already created -; Author ........: jpm -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Debug_ReportWindowCreate() - Local $nOld = Opt("WinDetectHiddenText", $OPT_MATCHSTART) - Local $bExists = WinExists($__g_sReportTitle_Debug, $__g_sReportWindowText_Debug) - - If $bExists Then - If $__g_hReportEdit_Debug = 0 Then - ; first time we try to access an open window in the running script, - ; get the control handle needed for writing in - $__g_hReportEdit_Debug = ControlGetHandle($__g_sReportTitle_Debug, $__g_sReportWindowText_Debug, "Edit1") - ; force no closing no waiting on report closing - $__g_bReportWindowWaitClose_Debug = False - EndIf - EndIf - - Opt("WinDetectHiddenText", $nOld) - - ; change the state of the report Window as it is already opened or will be - $__g_bReportWindowClosed_Debug = False - If Not $__g_bReportWindowWaitClose_Debug Then Return 0 ; use of the already opened window - - Local Const $WS_OVERLAPPEDWINDOW = 0x00CF0000 - Local Const $WS_HSCROLL = 0x00100000 - Local Const $WS_VSCROLL = 0x00200000 - Local Const $ES_READONLY = 2048 - Local Const $EM_LIMITTEXT = 0xC5 - Local Const $GUI_HIDE = 32 - - ; Variables used to control different aspects of the GUI. - Local $w = 580, $h = 280 - - GUICreate($__g_sReportTitle_Debug, $w, $h, -1, -1, $WS_OVERLAPPEDWINDOW) - ; We use a hidden label with unique test so we can reliably identify the window. - Local $idLabelHidden = GUICtrlCreateLabel($__g_sReportWindowText_Debug, 0, 0, 1, 1) - GUICtrlSetState($idLabelHidden, $GUI_HIDE) - Local $idEdit = GUICtrlCreateEdit("", 4, 4, $w - 8, $h - 8, BitOR($WS_HSCROLL, $WS_VSCROLL, $ES_READONLY)) - $__g_hReportEdit_Debug = GUICtrlGetHandle($idEdit) - GUICtrlSetBkColor($idEdit, 0xFFFFFF) - GUICtrlSendMsg($idEdit, $EM_LIMITTEXT, 0, 0) ; Max the size of the edit control. - - GUISetState() - - ; by default report closing will wait closing by user - $__g_bReportWindowWaitClose_Debug = True - Return 1 -EndFunc ;==>__Debug_ReportWindowCreate - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Debug_ReportWindowWrite -; Description ...: Append text to the report log window -; Syntax.........: __Debug_ReportWindowWrite ( $sData ) -; Parameters ....: $sData text to be append to the window -; Return values .: -; Author ........: jpm -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -#Au3Stripper_Off -Func __Debug_ReportWindowWrite($sData) - #Au3Stripper_On - If $__g_bReportWindowClosed_Debug Then __Debug_ReportWindowCreate() - - Local Const $WM_GETTEXTLENGTH = 0x000E - Local Const $EM_SETSEL = 0xB1 - Local Const $EM_REPLACESEL = 0xC2 - - Local $nLen = _SendMessage($__g_hReportEdit_Debug, $WM_GETTEXTLENGTH, 0, 0, 0, "int", "int") - _SendMessage($__g_hReportEdit_Debug, $EM_SETSEL, $nLen, $nLen, 0, "int", "int") - _SendMessage($__g_hReportEdit_Debug, $EM_REPLACESEL, True, $sData, 0, "int", "wstr") -EndFunc ;==>__Debug_ReportWindowWrite - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Debug_ReportWindowWaitClose -; Description ...: Wait the closing of the report log window -; Syntax.........: __Debug_ReportWindowWaitClose ( ) -; Parameters ....: -; Return values .: -; Author ........: jpm -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Debug_ReportWindowWaitClose() - If Not $__g_bReportWindowWaitClose_Debug Then Return 0 ; use of the already opened window so no need to wait - Local $nOld = Opt("WinDetectHiddenText", $OPT_MATCHSTART) - Local $hWndReportWindow = WinGetHandle($__g_sReportTitle_Debug, $__g_sReportWindowText_Debug) - Opt("WinDetectHiddenText", $nOld) - - $nOld = Opt('GUIOnEventMode', 0) ; save event mode in case user script was using event mode - Local Const $GUI_EVENT_CLOSE = -3 - Local $aMsg - While WinExists(HWnd($hWndReportWindow)) - $aMsg = GUIGetMsg(1) - If $aMsg[1] = $hWndReportWindow And $aMsg[0] = $GUI_EVENT_CLOSE Then GUIDelete($hWndReportWindow) - WEnd - Opt('GUIOnEventMode', $nOld) ; restore event mode - - $__g_hReportEdit_Debug = 0 - $__g_bReportWindowWaitClose_Debug = True - $__g_bReportWindowClosed_Debug = True -EndFunc ;==>__Debug_ReportWindowWaitClose - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Debug_ReportNotepadCreate -; Description ...: Create an report log window -; Syntax.........: __Debug_ReportNotepadCreate ( ) -; Parameters ....: -; Return values .: 0 if already created -; Author ........: jpm -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Debug_ReportNotepadCreate() - Local $bExists = WinExists($__g_sReportTitle_Debug) - - If $bExists Then - If $__g_hReportEdit_Debug = 0 Then - ; first time we try to access an open window in the running script, - ; get the control handle needed for writing in - $__g_hReportEdit_Debug = WinGetHandle($__g_sReportTitle_Debug) - Return 0 ; use of the already opened window - EndIf - EndIf - - Local $pNotepad = Run("Notepad.exe") ; process ID of the Notepad started by this function - $__g_hReportEdit_Debug = WinWait("[CLASS:Notepad]") - If $pNotepad <> WinGetProcess($__g_hReportEdit_Debug) Then - Return SetError(3, 0, 0) - EndIf - - WinActivate($__g_hReportEdit_Debug) - WinSetTitle($__g_hReportEdit_Debug, "", String($__g_sReportTitle_Debug)) - - Return 1 -EndFunc ;==>__Debug_ReportNotepadCreate - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Debug_ReportNotepadWrite -; Description ...: Append text to the report notepad window -; Syntax.........: __Debug_ReportNotepadWrite ( $sData ) -; Parameters ....: $sData text to be append to the window -; Return values .: -; Author ........: jpm -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -#Au3Stripper_Off -Func __Debug_ReportNotepadWrite($sData) - #Au3Stripper_On - If $__g_hReportEdit_Debug = 0 Then __Debug_ReportNotepadCreate() - - ControlCommand($__g_hReportEdit_Debug, "", "Edit1", "EditPaste", String($sData)) -EndFunc ;==>__Debug_ReportNotepadWrite - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Debug_ReportWrite -; Description ...: Write on Report -; Syntax.........: __Debug_ReportWrite ( $sData [, $bLastError [, $iCurEXT = @extended]} ) -; Parameters ....: -; Return values .: -; Author ........: jpm -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Debug_ReportWrite($sData, $bLastError = False, $iCurEXT = @extended) - Local $sError = @CRLF - If $__g_bReportTimeStamp_Debug And ($sData <> "") Then $sData = @YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC & " " & $sData - If $bLastError Then - $iCurEXT = _WinAPI_GetLastError() - - Local Const $FORMAT_MESSAGE_FROM_SYSTEM = 0x1000 - Local $aResult = DllCall("kernel32.dll", "dword", "FormatMessageW", "dword", $FORMAT_MESSAGE_FROM_SYSTEM, "ptr", 0, _ - "dword", $iCurEXT, "dword", 0, "wstr", "", "dword", 4096, "ptr", 0) - ; Don't test @error since this is a debugging function. - $sError = " : " & $aResult[5] - EndIf - - $sData &= $sError - - Local $bBlock = BlockInput(1) - BlockInput(0) ; force enable state so user can move mouse if needed - - $sData = StringReplace($sData, "'", "''") ; in case the data contains ' - Execute($__g_sReportCallBack_Debug & "'" & $sData & "')") - - If Not $bBlock Then BlockInput(1) ; restore disable state - - Return $iCurEXT -EndFunc ;==>__Debug_ReportWrite diff --git a/build/Include/DirConstants.au3 b/build/Include/DirConstants.au3 deleted file mode 100644 index 1f196b0a4..000000000 --- a/build/Include/DirConstants.au3 +++ /dev/null @@ -1,20 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Dir_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script when using Dir functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $DDL_ARCHIVE = 0x00000020 -Global Const $DDL_DIRECTORY = 0x00000010 -Global Const $DDL_DRIVES = 0x00004000 -Global Const $DDL_EXCLUSIVE = 0x00008000 -Global Const $DDL_HIDDEN = 0x00000002 -Global Const $DDL_READONLY = 0x00000001 -Global Const $DDL_READWRITE = 0x00000000 -Global Const $DDL_SYSTEM = 0x00000004 -; =============================================================================================================================== diff --git a/build/Include/EditConstants.au3 b/build/Include/EditConstants.au3 deleted file mode 100644 index 061b9fc46..000000000 --- a/build/Include/EditConstants.au3 +++ /dev/null @@ -1,120 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Edit_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control Edit/Input styles and much more constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Styles -Global Const $ES_LEFT = 0 -Global Const $ES_CENTER = 1 -Global Const $ES_RIGHT = 2 -Global Const $ES_MULTILINE = 4 -Global Const $ES_UPPERCASE = 8 -Global Const $ES_LOWERCASE = 16 -Global Const $ES_PASSWORD = 32 -Global Const $ES_AUTOVSCROLL = 64 -Global Const $ES_AUTOHSCROLL = 128 -Global Const $ES_NOHIDESEL = 256 -Global Const $ES_OEMCONVERT = 1024 -Global Const $ES_READONLY = 2048 -Global Const $ES_WANTRETURN = 4096 -Global Const $ES_NUMBER = 8192 -; Global Const $ES_DISABLENOSCROLL = 8192 -; Global Const $ES_SUNKEN = 16384 -; Global Const $ES_VERTICAL = 4194304 -; Global Const $ES_SELECTIONBAR = 16777216 - -; Error checking -Global Const $EC_ERR = -1 - -; Messages to send to edit control -Global Const $ECM_FIRST = 0X1500 -Global Const $EM_CANUNDO = 0xC6 -Global Const $EM_CHARFROMPOS = 0xD7 -Global Const $EM_EMPTYUNDOBUFFER = 0xCD -Global Const $EM_FMTLINES = 0xC8 -Global Const $EM_GETCUEBANNER = ($ECM_FIRST + 2) -Global Const $EM_GETFIRSTVISIBLELINE = 0xCE -Global Const $EM_GETHANDLE = 0xBD -Global Const $EM_GETIMESTATUS = 0xD9 -Global Const $EM_GETLIMITTEXT = 0xD5 -Global Const $EM_GETLINE = 0xC4 -Global Const $EM_GETLINECOUNT = 0xBA -Global Const $EM_GETMARGINS = 0xD4 -Global Const $EM_GETMODIFY = 0xB8 -Global Const $EM_GETPASSWORDCHAR = 0xD2 -Global Const $EM_GETRECT = 0xB2 -Global Const $EM_GETSEL = 0xB0 -Global Const $EM_GETTHUMB = 0xBE -Global Const $EM_GETWORDBREAKPROC = 0xD1 -Global Const $EM_HIDEBALLOONTIP = ($ECM_FIRST + 4) -Global Const $EM_LIMITTEXT = 0xC5 -Global Const $EM_LINEFROMCHAR = 0xC9 -Global Const $EM_LINEINDEX = 0xBB -Global Const $EM_LINELENGTH = 0xC1 -Global Const $EM_LINESCROLL = 0xB6 -Global Const $EM_POSFROMCHAR = 0xD6 -Global Const $EM_REPLACESEL = 0xC2 -Global Const $EM_SCROLL = 0xB5 -Global Const $EM_SCROLLCARET = 0x00B7 -Global Const $EM_SETCUEBANNER = ($ECM_FIRST + 1) -Global Const $EM_SETHANDLE = 0xBC -Global Const $EM_SETIMESTATUS = 0xD8 -Global Const $EM_SETLIMITTEXT = $EM_LIMITTEXT -Global Const $EM_SETMARGINS = 0xD3 -Global Const $EM_SETMODIFY = 0xB9 -Global Const $EM_SETPASSWORDCHAR = 0xCC -Global Const $EM_SETREADONLY = 0xCF -Global Const $EM_SETRECT = 0xB3 -Global Const $EM_SETRECTNP = 0xB4 -Global Const $EM_SETSEL = 0xB1 -Global Const $EM_SETTABSTOPS = 0xCB -Global Const $EM_SETWORDBREAKPROC = 0xD0 -Global Const $EM_SHOWBALLOONTIP = ($ECM_FIRST + 3) -Global Const $EM_UNDO = 0xC7 - -; Params -Global Const $EC_LEFTMARGIN = 0x1 -Global Const $EC_RIGHTMARGIN = 0x2 -Global Const $EC_USEFONTINFO = 0xFFFF - -Global Const $EMSIS_COMPOSITIONSTRING = 0x1 - -; Status -Global Const $EIMES_GETCOMPSTRATONCE = 0x1 ; If this flag is set, the edit control hooks the WM_IME_COMPOSITION message with fFlags set to GCS_RESULTSTR and returns the result string immediately -Global Const $EIMES_CANCELCOMPSTRINFOCUS = 0x2 ; If this flag is set, the edit control cancels the composition string when it receives the WM_SETFOCUS message. -Global Const $EIMES_COMPLETECOMPSTRKILLFOCUS = 0x4 ; If this flag is set, the edit control completes the composition string upon receiving the WM_KILLFOCUS message. - -; Notifications -Global Const $EN_ALIGN_LTR_EC = 0x700 -Global Const $EN_ALIGN_RTL_EC = 0x701 -Global Const $EN_CHANGE = 0x300 -Global Const $EN_ERRSPACE = 0x500 -Global Const $EN_HSCROLL = 0X601 -Global Const $EN_KILLFOCUS = 0x200 -Global Const $EN_MAXTEXT = 0x501 -Global Const $EN_SETFOCUS = 0x100 -Global Const $EN_UPDATE = 0x400 -Global Const $EN_VSCROLL = 0x602 - -; Edit Balloon Tool Tip Icons -; move in ToolTipConstants.au3 - -; Global Const $TTI_NONE = 0 -; Global Const $TTI_INFO = 1 -; Global Const $TTI_WARNING = 2 -; Global Const $TTI_ERROR = 3 -; Vista Edit Balloon Tool Tip Icons -; Global Const $TTI_INFO_LARGE = 4 -; Global Const $TTI_WARNING_LARGE = 5 -; Global Const $TTI_ERROR_LARGE = 6 - -; Control default styles -Global Const $GUI_SS_DEFAULT_EDIT = 0x003010c0 ; BitOR($ES_WANTRETURN, $WS_VSCROLL, $WS_HSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL) -Global Const $GUI_SS_DEFAULT_INPUT = 0x00000080 ; BitOR($ES_LEFT, $ES_AUTOHSCROLL) -; =============================================================================================================================== diff --git a/build/Include/EventLog.au3 b/build/Include/EventLog.au3 deleted file mode 100644 index 32a44efef..000000000 --- a/build/Include/EventLog.au3 +++ /dev/null @@ -1,587 +0,0 @@ -#include-once - -#include "Date.au3" -#include "Security.au3" -#include "StructureConstants.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Event_Log -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist Windows System logs. -; Description ...: When an error occurs, the system administrator or support technicians must determine what caused the error, -; attempt to recover any lost data, and prevent the error from recurring. It is helpful if applications, the -; operating system, and other system services record important events such as low-memory conditions or excessive -; attempts to access a disk. Then the system administrator can use the event log to help determine what -; conditions caused the error and the context in which it occurred. By periodically viewing the event log, the -; system administrator may be able to identify problems (such as a failing hard drive) before they cause damage. -; Author(s) .....: Paul Campbell (PaulIA), Gary Frost -; Dll ...........: advapi32.dll -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_sSourceName_Event -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $EVENTLOG_SUCCESS = 0x00000000 -Global Const $EVENTLOG_ERROR_TYPE = 0x00000001 -Global Const $EVENTLOG_WARNING_TYPE = 0x00000002 -Global Const $EVENTLOG_INFORMATION_TYPE = 0x00000004 -Global Const $EVENTLOG_AUDIT_SUCCESS = 0x00000008 -Global Const $EVENTLOG_AUDIT_FAILURE = 0x00000010 -Global Const $EVENTLOG_SEQUENTIAL_READ = 0x00000001 -Global Const $EVENTLOG_SEEK_READ = 0x00000002 -Global Const $EVENTLOG_FORWARDS_READ = 0x00000004 -Global Const $EVENTLOG_BACKWARDS_READ = 0x00000008 - -Global Const $__EVENTLOG_LOAD_LIBRARY_AS_DATAFILE = 0x00000002 -Global Const $__EVENTLOG_FORMAT_MESSAGE_FROM_HMODULE = 0x00000800 -Global Const $__EVENTLOG_FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _EventLog__Backup -; _EventLog__Clear -; _EventLog__Close -; _EventLog__Count -; _EventLog__DeregisterSource -; _EventLog__Full -; _EventLog__Notify -; _EventLog__Oldest -; _EventLog__Open -; _EventLog__OpenBackup -; _EventLog__Read -; _EventLog__RegisterSource -; _EventLog__Report -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __EventLog_DecodeCategory -; __EventLog_DecodeComputer -; __EventLog_DecodeData -; __EventLog_DecodeDate -; __EventLog_DecodeDesc -; __EventLog_DecodeEventID -; __EventLog_DecodeSource -; __EventLog_DecodeStrings -; __EventLog_DecodeTime -; __EventLog_DecodeTypeStr -; __EventLog_DecodeUserName -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__Backup($hEventLog, $sFileName) - Local $aResult = DllCall("advapi32.dll", "bool", "BackupEventLogW", "handle", $hEventLog, "wstr", $sFileName) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_EventLog__Backup - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__Clear($hEventLog, $sFileName) - Local $bTemp = False - If StringLen($sFileName) = 0 Then - $sFileName = @TempDir & "\_EventLog_tempbackup.bak" - $bTemp = True - EndIf - Local $aResult = DllCall("advapi32.dll", "bool", "ClearEventLogW", "handle", $hEventLog, "wstr", $sFileName) - If @error Then Return SetError(@error, @extended, False) - If $bTemp Then FileDelete($sFileName) - Return $aResult[0] <> 0 -EndFunc ;==>_EventLog__Clear - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__Close($hEventLog) - Local $aResult = DllCall("advapi32.dll", "bool", "CloseEventLog", "handle", $hEventLog) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_EventLog__Close - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _EventLog__Count($hEventLog) - Local $aResult = DllCall("advapi32.dll", "bool", "GetNumberOfEventLogRecords", "handle", $hEventLog, "dword*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] = 0 Then Return -1 - Return $aResult[2] -EndFunc ;==>_EventLog__Count - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeCategory -; Description ...: Decodes an event category for an event record -; Syntax.........: __EventLog_DecodeCategory ( $tEventLog ) -; Parameters ....: $tEventLog - tagEVENTLOGRECORD structure -; Return values .: Success - Event category -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeCategory($tEventLog) - Return DllStructGetData($tEventLog, "EventCategory") -EndFunc ;==>__EventLog_DecodeCategory - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeComputer -; Description ...: Decodes the computer name from an event log record -; Syntax.........: __EventLog_DecodeComputer ( $tEventLog ) -; Parameters ....: $tEventLog - tagEVENTLOGRECORD structure -; Return values .: Success - Computer name -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeComputer($tEventLog) - Local $pEventLog = DllStructGetPtr($tEventLog) - ; The buffer length doesn't need to extend past UserSidOffset since - ; the string appears before that. - Local $iLength = DllStructGetData($tEventLog, "UserSidOffset") - 1 - ; This points to the start of the variable length data. - Local $iOffset = DllStructGetSize($tEventLog) - ; Offset the buffer with the Source string length which appears right - ; before the Computer name. - $iOffset += 2 * (StringLen(__EventLog_DecodeSource($tEventLog)) + 1) - ; Adjust the length to be a difference instead of absolute address. - $iLength -= $iOffset - ; Adjust the buffer to point to the start of the Computer string. - Local $tBuffer = DllStructCreate("wchar Text[" & $iLength & "]", $pEventLog + $iOffset) - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>__EventLog_DecodeComputer - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeData -; Description ...: Decodes the event specific binary data from an event log record -; Syntax.........: __EventLog_DecodeData ( $tEventLog ) -; Parameters ....: $tEventLog - tagEVENTLOGRECORD structure -; Return values .: Success - Array with the following format: -; |[0] - Number of bytes in array -; |[1] - Byte 1 -; |[2] - Byte 2 -; |[n] - Byte n -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeData($tEventLog) - Local $pEventLog = DllStructGetPtr($tEventLog) - Local $iOffset = DllStructGetData($tEventLog, "DataOffset") - Local $iLength = DllStructGetData($tEventLog, "DataLength") - Local $tBuffer = DllStructCreate("byte[" & $iLength & "]", $pEventLog + $iOffset) - Local $aData[$iLength + 1] - $aData[0] = $iLength - For $iI = 1 To $iLength - $aData[$iI] = DllStructGetData($tBuffer, 1, $iI) - Next - Return $aData -EndFunc ;==>__EventLog_DecodeData - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeDate -; Description ...: Converts an event log time to a date string -; Syntax.........: __EventLog_DecodeDate ( $iEventTime ) -; Parameters ....: $iEventTime - Event log time to be converted -; Return values .: Success - Date string in the format of mm/dd/yyyy -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeDate($iEventTime) - Local $tInt64 = DllStructCreate("int64") - Local $pInt64 = DllStructGetPtr($tInt64) - Local $tFileTime = DllStructCreate($tagFILETIME, $pInt64) - DllStructSetData($tInt64, 1, ($iEventTime * 10000000) + 116444736000000000) - Local $tLocalTime = _Date_Time_FileTimeToLocalFileTime($tFileTime) - Local $tSystTime = _Date_Time_FileTimeToSystemTime($tLocalTime) - Local $iMonth = DllStructGetData($tSystTime, "Month") - Local $iDay = DllStructGetData($tSystTime, "Day") - Local $iYear = DllStructGetData($tSystTime, "Year") - Return StringFormat("%02d/%02d/%04d", $iMonth, $iDay, $iYear) -EndFunc ;==>__EventLog_DecodeDate - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeDesc -; Description ...: Decodes the description strings for an event record -; Syntax.........: __EventLog_DecodeDesc ( $tEventLog ) -; Parameters ....: $tEventLog - tagEVENTLOGRECORD structure -; Return values .: Success - Description -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeDesc($tEventLog) - Local $aStrings = __EventLog_DecodeStrings($tEventLog) - Local $sSource = __EventLog_DecodeSource($tEventLog) - Local $iEventID = DllStructGetData($tEventLog, "EventID") - Local $sKey = "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\" & $__g_sSourceName_Event & "\" & $sSource - Local $aMsgDLL = StringSplit(_WinAPI_ExpandEnvironmentStrings(RegRead($sKey, "EventMessageFile")), ";") - - Local $iFlags = BitOR($__EVENTLOG_FORMAT_MESSAGE_FROM_HMODULE, $__EVENTLOG_FORMAT_MESSAGE_IGNORE_INSERTS) - Local $sDesc = "" - For $iI = 1 To $aMsgDLL[0] - Local $hDLL = _WinAPI_LoadLibraryEx($aMsgDLL[$iI], $__EVENTLOG_LOAD_LIBRARY_AS_DATAFILE) - If $hDLL = 0 Then ContinueLoop - Local $tBuffer = DllStructCreate("wchar Text[4096]") - _WinAPI_FormatMessage($iFlags, $hDLL, $iEventID, 0, $tBuffer, 4096, 0) - _WinAPI_FreeLibrary($hDLL) - $sDesc &= DllStructGetData($tBuffer, "Text") - Next - - If $sDesc = "" Then - For $iI = 1 To $aStrings[0] - $sDesc &= $aStrings[$iI] - Next - Else - For $iI = 1 To $aStrings[0] - $sDesc = StringReplace($sDesc, "%" & $iI, $aStrings[$iI]) - Next - EndIf - Return StringStripWS($sDesc, $STR_STRIPLEADING + $STR_STRIPTRAILING) -EndFunc ;==>__EventLog_DecodeDesc - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeEventID -; Description ...: Decodes an event ID for an event record -; Syntax.........: __EventLog_DecodeEventID ( $tEventLog ) -; Parameters ....: $tEventLog - tagEVENTLOGRECORD structure -; Return values .: Success - Event ID -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeEventID($tEventLog) - Return BitAND(DllStructGetData($tEventLog, "EventID"), 0x7FFF) -EndFunc ;==>__EventLog_DecodeEventID - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeSource -; Description ...: Decodes the event source from an event log record -; Syntax.........: __EventLog_DecodeSource ( $tEventLog ) -; Parameters ....: $tEventLog - tagEVENTLOGRECORD structure -; Return values .: Success - Source name -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeSource($tEventLog) - Local $pEventLog = DllStructGetPtr($tEventLog) - ; The buffer length doesn't need to extend past UserSidOffset since - ; the string appears before that. - Local $iLength = DllStructGetData($tEventLog, "UserSidOffset") - 1 - ; This points to the start of the variable length data. - Local $iOffset = DllStructGetSize($tEventLog) - ; Adjust the length to be a difference instead of absolute address. - $iLength -= $iOffset - ; Initialize the buffer to the start of the variable length data - Local $tBuffer = DllStructCreate("wchar Text[" & $iLength & "]", $pEventLog + $iOffset) - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>__EventLog_DecodeSource - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeStrings -; Description ...: Decodes the insertion strings from an event log record -; Syntax.........: __EventLog_DecodeStrings ( $tEventLog ) -; Parameters ....: $tEventLog - tagEVENTLOGRECORD structure -; Return values .: Success - Array with the following format: -; |[0] - Number of strings in array -; |[1] - String 1 -; |[2] - String 2 -; |[n] - String n -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeStrings($tEventLog) - Local $pEventLog = DllStructGetPtr($tEventLog) - Local $iNumStrs = DllStructGetData($tEventLog, "NumStrings") - Local $iOffset = DllStructGetData($tEventLog, "StringOffset") - ; The data offset is used to calculate buffer sizes. - Local $iDataOffset = DllStructGetData($tEventLog, "DataOffset") - Local $tBuffer = DllStructCreate("wchar Text[" & $iDataOffset - $iOffset & "]", $pEventLog + $iOffset) - - Local $aStrings[$iNumStrs + 1] - $aStrings[0] = $iNumStrs - For $iI = 1 To $iNumStrs - $aStrings[$iI] = DllStructGetData($tBuffer, "Text") - $iOffset += 2 * (StringLen($aStrings[$iI]) + 1) - $tBuffer = DllStructCreate("wchar Text[" & $iDataOffset - $iOffset & "]", $pEventLog + $iOffset) - Next - Return $aStrings -EndFunc ;==>__EventLog_DecodeStrings - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeTime -; Description ...: Converts an event log time to a date time -; Syntax.........: __EventLog_DecodeTime ( $iEventTime ) -; Parameters ....: $iEventTime - Event log time to be converted -; Return values .: Success - Time string in the format of hh:mm:ss am/pm -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeTime($iEventTime) - Local $tInt64 = DllStructCreate("int64") - Local $pInt64 = DllStructGetPtr($tInt64) - Local $tFileTime = DllStructCreate($tagFILETIME, $pInt64) - DllStructSetData($tInt64, 1, ($iEventTime * 10000000) + 116444736000000000) - Local $tLocalTime = _Date_Time_FileTimeToLocalFileTime($tFileTime) - Local $tSystTime = _Date_Time_FileTimeToSystemTime($tLocalTime) - Local $iHours = DllStructGetData($tSystTime, "Hour") - Local $iMinutes = DllStructGetData($tSystTime, "Minute") - Local $iSeconds = DllStructGetData($tSystTime, "Second") - Local $sAMPM = "AM" - If $iHours < 12 Then - If $iHours = 0 Then - $iHours = 12 - EndIf - Else - $sAMPM = "PM" - If $iHours > 12 Then - $iHours -= 12 - EndIf - EndIf - Return StringFormat("%02d:%02d:%02d %s", $iHours, $iMinutes, $iSeconds, $sAMPM) -EndFunc ;==>__EventLog_DecodeTime - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeTypeStr -; Description ...: Decodes an event type to an event string -; Syntax.........: __EventLog_DecodeTypeStr ( $iEventType ) -; Parameters ....: $iEventType - Event type -; Return values .: Success - String indicating the event type -; Failure - Unknown event type ID -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeTypeStr($iEventType) - Select - Case $iEventType = $EVENTLOG_SUCCESS - Return "Success" - Case $iEventType = $EVENTLOG_ERROR_TYPE - Return "Error" - Case $iEventType = $EVENTLOG_WARNING_TYPE - Return "Warning" - Case $iEventType = $EVENTLOG_INFORMATION_TYPE - Return "Information" - Case $iEventType = $EVENTLOG_AUDIT_SUCCESS - Return "Success audit" - Case $iEventType = $EVENTLOG_AUDIT_FAILURE - Return "Failure audit" - Case Else - Return $iEventType - EndSelect -EndFunc ;==>__EventLog_DecodeTypeStr - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __EventLog_DecodeUserName -; Description ...: Decodes the user name from an event log record -; Syntax.........: __EventLog_DecodeUserName ( $tEventLog ) -; Parameters ....: $tEventLog - tagEVENTLOGRECORD structure -; Return values .: Success - User name -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __EventLog_DecodeUserName($tEventLog) - Local $pEventLog = DllStructGetPtr($tEventLog) - If DllStructGetData($tEventLog, "UserSidLength") = 0 Then Return "" - Local $pAcctSID = $pEventLog + DllStructGetData($tEventLog, "UserSidOffset") - Local $aAcctInfo = _Security__LookupAccountSid($pAcctSID) - If IsArray($aAcctInfo) Then Return $aAcctInfo[1] - Return '' -EndFunc ;==>__EventLog_DecodeUserName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__DeregisterSource($hEventLog) - Local $aResult = DllCall("advapi32.dll", "bool", "DeregisterEventSource", "handle", $hEventLog) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_EventLog__DeregisterSource - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__Full($hEventLog) - Local $aResult = DllCall("advapi32.dll", "bool", "GetEventLogInformation", "handle", $hEventLog, "dword", 0, "dword*", 0, "dword", 4, "dword*", 0) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[3] <> 0 -EndFunc ;==>_EventLog__Full - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__Notify($hEventLog, $hEvent) - Local $aResult = DllCall("advapi32.dll", "bool", "NotifyChangeEventLog", "handle", $hEventLog, "handle", $hEvent) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_EventLog__Notify - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__Oldest($hEventLog) - Local $aResult = DllCall("advapi32.dll", "bool", "GetOldestEventLogRecord", "handle", $hEventLog, "dword*", 0) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[2] -EndFunc ;==>_EventLog__Oldest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__Open($sServerName, $sSourceName) - $__g_sSourceName_Event = $sSourceName - Local $aResult = DllCall("advapi32.dll", "handle", "OpenEventLogW", "wstr", $sServerName, "wstr", $sSourceName) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_EventLog__Open - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__OpenBackup($sServerName, $sFileName) - Local $aResult = DllCall("advapi32.dll", "handle", "OpenBackupEventLogW", "wstr", $sServerName, "wstr", $sFileName) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_EventLog__OpenBackup - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__Read($hEventLog, $bRead = True, $bForward = True, $iOffset = 0) - Local $iReadFlags, $aEvent[15] - $aEvent[0] = False; in cas of error - - If $bRead Then - $iReadFlags = $EVENTLOG_SEQUENTIAL_READ - Else - $iReadFlags = $EVENTLOG_SEEK_READ - EndIf - If $bForward Then - $iReadFlags = BitOR($iReadFlags, $EVENTLOG_FORWARDS_READ) - Else - $iReadFlags = BitOR($iReadFlags, $EVENTLOG_BACKWARDS_READ) - EndIf - - ; First call gets the size for the buffer. A fake buffer is passed because - ; the function demands the buffer be non-NULL even when requesting the size. - Local $tBuffer = DllStructCreate("wchar[1]") - Local $aResult = DllCall("advapi32.dll", "bool", "ReadEventLogW", "handle", $hEventLog, "dword", $iReadFlags, "dword", $iOffset, _ - "struct*", $tBuffer, "dword", 0, "dword*", 0, "dword*", 0) - If @error Then Return SetError(@error, @extended, $aEvent) - - ; Allocate the buffer and repeat the call obtaining the information. - Local $iBytesMin = $aResult[7] - $tBuffer = DllStructCreate("wchar[" & $iBytesMin + 1 & "]") - $aResult = DllCall("advapi32.dll", "bool", "ReadEventLogW", "handle", $hEventLog, "dword", $iReadFlags, "dword", $iOffset, _ - "struct*", $tBuffer, "dword", $iBytesMin, "dword*", 0, "dword*", 0) - If @error Or Not $aResult[0] Then Return SetError(@error, @extended, $aEvent) - - Local $tEventLog = DllStructCreate($tagEVENTLOGRECORD, DllStructGetPtr($tBuffer)) - $aEvent[0] = True - $aEvent[1] = DllStructGetData($tEventLog, "RecordNumber") - $aEvent[2] = __EventLog_DecodeDate(DllStructGetData($tEventLog, "TimeGenerated")) - $aEvent[3] = __EventLog_DecodeTime(DllStructGetData($tEventLog, "TimeGenerated")) - $aEvent[4] = __EventLog_DecodeDate(DllStructGetData($tEventLog, "TimeWritten")) - $aEvent[5] = __EventLog_DecodeTime(DllStructGetData($tEventLog, "TimeWritten")) - $aEvent[6] = __EventLog_DecodeEventID($tEventLog) - $aEvent[7] = DllStructGetData($tEventLog, "EventType") - $aEvent[8] = __EventLog_DecodeTypeStr(DllStructGetData($tEventLog, "EventType")) - $aEvent[9] = __EventLog_DecodeCategory($tEventLog) - $aEvent[10] = __EventLog_DecodeSource($tEventLog) - $aEvent[11] = __EventLog_DecodeComputer($tEventLog) - $aEvent[12] = __EventLog_DecodeUserName($tEventLog) - $aEvent[13] = __EventLog_DecodeDesc($tEventLog) - $aEvent[14] = __EventLog_DecodeData($tEventLog) - Return $aEvent -EndFunc ;==>_EventLog__Read - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__RegisterSource($sServerName, $sSourceName) - $__g_sSourceName_Event = $sSourceName - Local $aResult = DllCall("advapi32.dll", "handle", "RegisterEventSourceW", "wstr", $sServerName, "wstr", $sSourceName) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_EventLog__RegisterSource - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _EventLog__Report($hEventLog, $iType, $iCategory, $iEventID, $sUserName, $sDesc, $aData) - Local $tSID = 0 - - If $sUserName <> "" Then - $tSID = _Security__GetAccountSid($sUserName) - EndIf - - Local $iData = $aData[0] - Local $tData = DllStructCreate("byte[" & $iData & "]") - Local $iDesc = StringLen($sDesc) + 1 - Local $tDesc = DllStructCreate("wchar[" & $iDesc & "]") - Local $tPtr = DllStructCreate("ptr") - DllStructSetData($tPtr, 1, DllStructGetPtr($tDesc)) - DllStructSetData($tDesc, 1, $sDesc) - For $iI = 1 To $iData - DllStructSetData($tData, 1, $aData[$iI], $iI) - Next - Local $aResult = DllCall("advapi32.dll", "bool", "ReportEventW", "handle", $hEventLog, "word", $iType, "word", $iCategory, _ - "dword", $iEventID, "struct*", $tSID, "word", 1, "dword", $iData, "struct*", $tPtr, "struct*", $tData) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_EventLog__Report diff --git a/build/Include/Excel.au3 b/build/Include/Excel.au3 deleted file mode 100644 index ed84348ac..000000000 --- a/build/Include/Excel.au3 +++ /dev/null @@ -1,1204 +0,0 @@ -#include-once -#include -#include - -; #INDEX# ======================================================================================================================= -; Title .........: Microsoft Excel Function Library -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: A collection of functions for accessing and manipulating Microsoft Excel files -; Author(s) .....: SEO (Locodarwin), DaLiMan, Stanley Lim, MikeOsdx, MRDev, big_daddy, PsaltyDS, litlmike, water, spiff59, golfinhu, bowmore, GMX, Andreu, danwilli -; Resources .....: -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _Excel_Open -; _Excel_Close -; _Excel_BookAttach -; _Excel_BookClose -; _Excel_BookList -; _Excel_BookNew -; _Excel_BookOpen -; _Excel_BookOpenText -; _Excel_BookSave -; _Excel_BookSaveAs -; _Excel_ColumnToLetter -; _Excel_ColumnToNumber -; _Excel_ConvertFormula -; _Excel_Export -; _Excel_FilterGet -; _Excel_FilterSet -; _Excel_PictureAdd -; _Excel_Print -; _Excel_RangeCopyPaste -; _Excel_RangeDelete -; _Excel_RangeFind -; _Excel_RangeInsert -; _Excel_RangeLinkAddRemove -; _Excel_RangeRead -; _Excel_RangeReplace -; _Excel_RangeSort -; _Excel_RangeValidate -; _Excel_RangeWrite -; _Excel_SheetAdd -; _Excel_SheetCopyMove -; _Excel_SheetDelete -; _Excel_SheetList -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY#============================================================================================================ -; __Excel_CloseOnQuit -; __Excel_COMErrFunc -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================================== -Func _Excel_Open($bVisible = Default, $bDisplayAlerts = Default, $bScreenUpdating = Default, $bInteractive = Default, $bForceNew = Default) - Local $oExcel, $bApplCloseOnQuit = False - If $bVisible = Default Then $bVisible = True - If $bDisplayAlerts = Default Then $bDisplayAlerts = False - If $bScreenUpdating = Default Then $bScreenUpdating = True - If $bInteractive = Default Then $bInteractive = True - If $bForceNew = Default Then $bForceNew = False - If Not $bForceNew Then $oExcel = ObjGet("", "Excel.Application") - If $bForceNew Or @error Then - $oExcel = ObjCreate("Excel.Application") - If @error Or Not IsObj($oExcel) Then Return SetError(1, @error, 0) - $bApplCloseOnQuit = True - EndIf - __Excel_CloseOnQuit($oExcel, $bApplCloseOnQuit) - $oExcel.Visible = $bVisible - $oExcel.DisplayAlerts = $bDisplayAlerts - $oExcel.ScreenUpdating = $bScreenUpdating - $oExcel.Interactive = $bInteractive - Return SetError(0, $bApplCloseOnQuit, $oExcel) -EndFunc ;==>_Excel_Open - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================================== -Func _Excel_Close(ByRef $oExcel, $bSaveChanges = Default, $bForceClose = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If $bSaveChanges = Default Then $bSaveChanges = True - If $bForceClose = Default Then $bForceClose = False - If Not IsObj($oExcel) Or ObjName($oExcel, 1) <> "_Application" Then Return SetError(1, 0, 0) - If $bSaveChanges Then - For $oWorkbook In $oExcel.Workbooks - If Not $oWorkbook.Saved Then - $oWorkbook.Save() - If @error Then Return SetError(3, @error, 0) - EndIf - Next - EndIf - If __Excel_CloseOnQuit($oExcel) Or $bForceClose Then - $oExcel.Quit() - If @error Then Return SetError(2, @error, 0) - __Excel_CloseOnQuit($oExcel, False) - $oExcel = 0 - EndIf - Return 1 -EndFunc ;==>_Excel_Close - -; #FUNCTION# ==================================================================================================================== -; Author ........: Bob Anthony (big_daddy) -; Modified.......: water -; =============================================================================================================================== -Func _Excel_BookAttach($sString, $sMode = Default, $oInstance = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - Local $oWorkbook, $iCount = 0, $sCLSID_Workbook = "{00020819-0000-0000-C000-000000000046}" ; Microsoft.Office.Interop.Excel.WorkbookClass - If $sMode = Default Then $sMode = "FilePath" - While True - $oWorkbook = ObjGet("", $sCLSID_Workbook, $iCount + 1) - If @error Then Return SetError(1, @error, 0) - If $oInstance <> Default And $oInstance <> $oWorkbook.Parent Then ContinueLoop - Switch $sMode - Case "filename" - If $oWorkbook.Name = $sString Then Return $oWorkbook - Case "filepath" - If $oWorkbook.FullName = $sString Then Return $oWorkbook - Case "title" - If $oWorkbook.Application.Caption = $sString Then Return $oWorkbook - Case Else - Return SetError(2, 0, 0) - EndSwitch - $iCount += 1 - WEnd -EndFunc ;==>_Excel_BookAttach - -; #FUNCTION# ==================================================================================================================== -; Author ........: SEO -; Modified.......: big_daddy, litlmike, water -; =============================================================================================================================== -Func _Excel_BookClose(ByRef $oWorkbook, $bSave = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If $bSave = Default Then $bSave = True - If $bSave And Not $oWorkbook.Saved Then - $oWorkbook.Save() - If @error Then Return SetError(2, @error, 0) - EndIf - $oWorkbook.Close() - If @error Then Return SetError(3, @error, 0) - $oWorkbook = 0 - Return 1 -EndFunc ;==>_Excel_BookClose - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_BookList($oExcel = Default) - Local $aBooks[1][3], $iIndex = 0 - If IsObj($oExcel) Then - If ObjName($oExcel, 1) <> "_Application" Then Return SetError(1, 0, 0) - Local $iTemp = $oExcel.Workbooks.Count - ReDim $aBooks[$iTemp][3] - For $iIndex = 0 To $iTemp - 1 - $aBooks[$iIndex][0] = $oExcel.Workbooks($iIndex + 1) - $aBooks[$iIndex][1] = $oExcel.Workbooks($iIndex + 1).Name - $aBooks[$iIndex][2] = $oExcel.Workbooks($iIndex + 1).Path - Next - Else - If $oExcel <> Default Then Return SetError(1, 0, 0) - Local $oWorkbook, $sCLSID_Workbook = "{00020819-0000-0000-C000-000000000046}" - While True - $oWorkbook = ObjGet("", $sCLSID_Workbook, $iIndex + 1) - If @error Then ExitLoop - ReDim $aBooks[$iIndex + 1][3] - $aBooks[$iIndex][0] = $oWorkbook - $aBooks[$iIndex][1] = $oWorkbook.Name - $aBooks[$iIndex][2] = $oWorkbook.Path - $iIndex += 1 - WEnd - EndIf - Return $aBooks -EndFunc ;==>_Excel_BookList - -; #FUNCTION# ==================================================================================================================== -; Author ........: SEO -; Modified.......: litlmike, water -; =============================================================================================================================== -Func _Excel_BookNew($oExcel, $iSheets = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oExcel) Or ObjName($oExcel, 1) <> "_Application" Then Return SetError(1, 0, 0) - With $oExcel - If $iSheets <> Default Then - If $iSheets < 1 Or $iSheets > 255 Then Return SetError(4, 0, 0) - Local $iSheetsBackup = .SheetsInNewWorkbook - .SheetsInNewWorkbook = $iSheets - If @error Then Return SetError(2, @error, 0) - EndIf - Local $oWorkbook = .Workbooks.Add() - If @error Then - Local $iError = @error - If $iSheets <> Default Then .SheetsInNewWorkbook = $iSheetsBackup - Return SetError(3, $iError, 0) - EndIf - If $iSheets <> Default Then .SheetsInNewWorkbook = $iSheetsBackup - EndWith - Return $oWorkbook -EndFunc ;==>_Excel_BookNew - -; #FUNCTION# ==================================================================================================================== -; Author ........: SEO -; Modified.......: litlmike, water, GMK, willichan -; =============================================================================================================================== -Func _Excel_BookOpen($oExcel, $sFilePath, $bReadOnly = Default, $bVisible = Default, $sPassword = Default, $sWritePassword = Default, $bUpdateLinks = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oExcel) Or ObjName($oExcel, 1) <> "_Application" Then Return SetError(1, @error, 0) - If Not FileExists($sFilePath) Then Return SetError(2, 0, 0) - If $bReadOnly = Default Then $bReadOnly = False - If $bVisible = Default Then $bVisible = True - Local $oWorkbook = $oExcel.Workbooks.Open($sFilePath, $bUpdateLinks, $bReadOnly, Default, $sPassword, $sWritePassword) - If @error Then Return SetError(3, @error, 0) - $oExcel.Windows($oWorkbook.Name).Visible = $bVisible - ; If a read-write workbook was opened read-only then set @extended = 1 - If $bReadOnly = False And $oWorkbook.Readonly = True Then Return SetError(0, 1, $oWorkbook) - Return $oWorkbook -EndFunc ;==>_Excel_BookOpen - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_BookOpenText($oExcel, $sFilePath, $iStartRow = Default, $iDataType = Default, $sTextQualifier = Default, $bConsecutiveDelimiter = Default, $sDelimiter = Default, $aFieldInfo = Default, $sDecimalSeparator = Default, $sThousandsSeparator = Default, $bTrailingMinusNumbers = Default, $iOrigin = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - Local $bTab = False, $bSemicolon = False, $bComma = False, $bSpace = False, $aDelimiter[1], $bOther = False, $sOtherChar - If Not IsObj($oExcel) Or ObjName($oExcel, 1) <> "_Application" Then Return SetError(1, @error, 0) - If Not FileExists($sFilePath) Then Return SetError(2, 0, 0) - If $iStartRow = Default Then $iStartRow = 1 - If $sTextQualifier = Default Then $sTextQualifier = $xlTextQualifierDoubleQuote - If $bConsecutiveDelimiter = Default Then $bConsecutiveDelimiter = False - If $sDelimiter = Default Then $sDelimiter = "," - If $bTrailingMinusNumbers = Default Then $bTrailingMinusNumbers = True - If StringInStr($sDelimiter, @TAB) > 0 Then $bTab = True - If StringInStr($sDelimiter, ";") > 0 Then $bSemicolon = True - If StringInStr($sDelimiter, ",") > 0 Then $bComma = True - If StringInStr($sDelimiter, " ") > 0 Then $bSpace = True - $aDelimiter = StringRegExp($sDelimiter, "[^;, " & @TAB & "]", 1) - If Not @error Then - $sOtherChar = $aDelimiter[0] - $bOther = True - EndIf - $oExcel.Workbooks.OpenText($sFilePath, $iOrigin, $iStartRow, $iDataType, $sTextQualifier, $bConsecutiveDelimiter, _ - $bTab, $bSemicolon, $bComma, $bSpace, $bOther, $sOtherChar, $aFieldInfo, Default, $sDecimalSeparator, $sThousandsSeparator, _ - $bTrailingMinusNumbers, False) - If @error Then Return SetError(3, @error, 0) - Return $oExcel.ActiveWorkbook ; Method OpenText doesn't return the Workbook object -EndFunc ;==>_Excel_BookOpenText - -; #FUNCTION# ==================================================================================================================== -; Author ........: SEO -; Modified.......: litlmike, water -; =============================================================================================================================== -Func _Excel_BookSave($oWorkbook) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not $oWorkbook.Saved Then - $oWorkbook.Save() - If @error Then Return SetError(2, @error, 0) - Return SetError(0, 1, 1) - EndIf - Return 1 -EndFunc ;==>_Excel_BookSave - -; #FUNCTION# ==================================================================================================================== -; Author ........: SEO -; Modified.......: litlmike, water -; =============================================================================================================================== -Func _Excel_BookSaveAs($oWorkbook, $sFilePath, $iFormat = Default, $bOverWrite = Default, $sPassword = Default, $sWritePassword = Default, $bReadOnlyRecommended = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If $iFormat = Default Then - $iFormat = $xlWorkbookDefault - Else - If Not IsNumber($iFormat) Then Return SetError(2, 0, 0) - EndIf - If $bOverWrite = Default Then $bOverWrite = False - If $bReadOnlyRecommended = Default Then $bReadOnlyRecommended = False - If FileExists($sFilePath) Then - If Not $bOverWrite Then Return SetError(3, 0, 0) - Local $iResult = FileDelete($sFilePath) - If $iResult = 0 Then Return SetError(4, 0, 0) - EndIf - $oWorkbook.SaveAs($sFilePath, $iFormat, $sPassword, $sWritePassword, $bReadOnlyRecommended) - If @error Then Return SetError(5, @error, 0) - Return 1 -EndFunc ;==>_Excel_BookSaveAs - -; #FUNCTION# ==================================================================================================================== -; Name ..........: _Excel_ColumnToLetter -; Description ...: Converts the column number to letter(s). -; Syntax ........: _ExcelColumnToLetter($iColumn) -; Parameters ....: $iColumn - The column number which you want to turn into letter(s) -; Return values .: Success - Returns the column letter(s) -; Failure - Returns "" and sets @Error: -; Author(s): Spiff59 -; Modified ......: -; =============================================================================================================================== -Func _Excel_ColumnToLetter($iColumn) - If Not StringRegExp($iColumn, "^[0-9]+$") Then Return SetError(1, 0, "") - Local $sLetters, $iTemp - While $iColumn - $iTemp = Mod($iColumn, 26) - If $iTemp = 0 Then $iTemp = 26 - $sLetters = Chr($iTemp + 64) & $sLetters - $iColumn = ($iColumn - $iTemp) / 26 - WEnd - Return $sLetters -EndFunc ;==>_Excel_ColumnToLetter - -; #FUNCTION# ==================================================================================================================== -; Author ........: Golfinhu -; Modified ......: -; =============================================================================================================================== -Func _Excel_ColumnToNumber($sColumn) - $sColumn = StringUpper($sColumn) - If Not StringRegExp($sColumn, "^[A-Z]+$") Then Return SetError(1, 0, 0) - Local $sLetters = StringSplit($sColumn, "") - Local $iNumber = 0 - Local $iLen = StringLen($sColumn) - For $i = 1 To $sLetters[0] - $iNumber += 26 ^ ($iLen - $i) * (Asc($sLetters[$i]) - 64) - Next - Return $iNumber -EndFunc ;==>_Excel_ColumnToNumber - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================================== -Func _Excel_ConvertFormula($oExcel, $sFormula, $iFromStyle, $iToStyle = Default, $iToAbsolute = Default, $vRelativeTo = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oExcel) Or ObjName($oExcel, 1) <> "_Application" Then Return SetError(1, 0, "") - If $vRelativeTo <> Default Then - If Not IsObj($vRelativeTo) Then $vRelativeTo = $oExcel.Range($vRelativeTo) - If @error Or Not IsObj($vRelativeTo) Then Return SetError(2, 0, "") - EndIf - Local $sConverted = $oExcel.ConvertFormula($sFormula, $iFromStyle, $iToStyle, $iToAbsolute, $vRelativeTo) - Return $sConverted -EndFunc ;==>_Excel_ConvertFormula - -; #FUNCTION# ==================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================== -Func _Excel_Export($oExcel, $vObject, $sFileName, $iType = Default, $iQuality = Default, $bIncludeProperties = Default, $iFrom = Default, $iTo = Default, $bOpenAfterPublish = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oExcel) Or ObjName($oExcel, 1) <> "_Application" Then Return SetError(1, 0, 0) - If Not IsObj($vObject) Then $vObject = $oExcel.Range($vObject) - If @error Or Not IsObj($vObject) Then Return SetError(2, @error, 0) - If $sFileName = "" Then Return SetError(3, 0, 0) - If $iType = Default Then $iType = $xlTypePDF - If $iQuality = Default Then $iQuality = $xlQualityStandard - If $bIncludeProperties = Default Then $bIncludeProperties = True - If $bOpenAfterPublish = Default Then $bOpenAfterPublish = False - $vObject.ExportAsFixedFormat($iType, $sFileName, $iQuality, $bIncludeProperties, Default, $iFrom, $iTo, $bOpenAfterPublish) - If @error Then Return SetError(4, @error, 0) - Return $vObject -EndFunc ;==>_Excel_Export - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_FilterGet($oWorkbook, $vWorksheet = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not IsObj($vWorksheet) Then - If $vWorksheet = Default Then - $vWorksheet = $oWorkbook.ActiveSheet - Else - $vWorksheet = $oWorkbook.WorkSheets.Item($vWorksheet) - EndIf - If @error Or Not IsObj($vWorksheet) Then Return SetError(2, @error, 0) - ElseIf ObjName($vWorksheet, 1) <> "_Worksheet" Then - Return SetError(2, @error, 0) - EndIf - Local $iIndex = 0, $iRecords, $iItems = $vWorksheet.AutoFilter.Filters.Count - If $iItems > 0 Then - Local $aFilters[$iItems][7] - For $oFilter In $vWorksheet.AutoFilter.Filters - $aFilters[$iIndex][0] = $oFilter.On - $aFilters[$iIndex][1] = $oFilter.Count - $aFilters[$iIndex][2] = $oFilter.Criteria1 - If IsArray($oFilter.Criteria1) Then $aFilters[$iIndex][2] = _ArrayToString($aFilters[$iIndex][2]) - $aFilters[$iIndex][3] = $oFilter.Criteria2 - If IsArray($oFilter.Criteria2) Then $aFilters[$iIndex][3] = _ArrayToString($aFilters[$iIndex][3]) - $aFilters[$iIndex][4] = $oFilter.Operator - $aFilters[$iIndex][5] = $oFilter.Parent.Range - $iRecords = 0 - For $oArea In $oFilter.Parent.Range.SpecialCells($xlCellTypeVisible).Areas - $iRecords = $iRecords + $oArea.Rows.Count - Next - $aFilters[$iIndex][6] = $iRecords - $iIndex = $iIndex + 1 - Next - Return $aFilters - Else - Return SetError(3, 0, "") - EndIf -EndFunc ;==>_Excel_FilterGet - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_FilterSet($oWorkbook, $vWorksheet, $vRange, $iField, $sCriteria1 = Default, $iOperator = Default, $sCriteria2 = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not IsObj($vWorksheet) Then - If $vWorksheet = Default Then - $vWorksheet = $oWorkbook.ActiveSheet - Else - $vWorksheet = $oWorkbook.WorkSheets.Item($vWorksheet) - EndIf - If @error Or Not IsObj($vWorksheet) Then Return SetError(2, @error, 0) - ElseIf ObjName($vWorksheet, 1) <> "_Worksheet" Then - Return SetError(2, @error, 0) - EndIf - If $vRange = Default Then - $vRange = $vWorksheet.Usedrange - ElseIf Not IsObj($vRange) Then - $vRange = $vWorksheet.Range($vRange) - If @error Or Not IsObj($vRange) Then Return SetError(3, @error, 0) - EndIf - If $iField <> 0 Then ; Set a new filter - $vRange.AutoFilter($iField, $sCriteria1, $iOperator, $sCriteria2) - If @error Then Return SetError(4, @error, 0) - ; If no filters remain then AutoFiltermode is set off - If $vWorksheet.Filtermode = False Then $vWorksheet.AutoFilterMode = False - Else ; remove all filters - $vWorksheet.AutoFilterMode = False - EndIf - Return 1 -EndFunc ;==>_Excel_FilterSet - -; #FUNCTION# ==================================================================================================================== -; Author ........: DanWilli -; Modified.......: water -; =============================================================================================================================== -Func _Excel_PictureAdd($oWorkbook, $vWorksheet, $sFile, $vRangeOrLeft, $iTop = Default, $iWidth = Default, $iHeight = Default, $bKeepRatio = True) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - Local $oReturn, $iPosLeft, $iPosTop - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not FileExists($sFile) Then Return SetError(5, 0, 0) - If Not IsObj($vWorksheet) Then - If $vWorksheet = Default Then - $vWorksheet = $oWorkbook.ActiveSheet - Else - $vWorksheet = $oWorkbook.WorkSheets.Item($vWorksheet) - EndIf - If @error Or Not IsObj($vWorksheet) Then Return SetError(2, @error, 0) - ElseIf ObjName($vWorksheet, 1) <> "_Worksheet" Then - Return SetError(2, @error, 0) - EndIf - If IsNumber($vRangeOrLeft) Then - $iPosLeft = $vRangeOrLeft - $iPosTop = $iTop - Else - If Not IsObj($vRangeOrLeft) Then - $vRangeOrLeft = $vWorksheet.Range($vRangeOrLeft) - If @error Or Not IsObj($vRangeOrLeft) Then Return SetError(3, @error, 0) - EndIf - $iPosLeft = $vRangeOrLeft.Left - $iPosTop = $vRangeOrLeft.Top - EndIf - If IsNumber($vRangeOrLeft) Or ($vRangeOrLeft.Columns.Count = 1 And $vRangeOrLeft.Rows.Count = 1) Then - If $iWidth = Default And $iHeight = Default Then - $oReturn = $vWorksheet.Shapes.AddPicture($sFile, -1, -1, $iPosLeft, $iPosTop, 0, 0) - If @error Then Return SetError(4, @error, 0) - $oReturn.Scalewidth(1, -1, 0) - $oReturn.Scaleheight(1, -1, 0) - ElseIf $iWidth = Default Then - $oReturn = $vWorksheet.Shapes.AddPicture($sFile, -1, -1, $iPosLeft, $iPosTop, 0, 0) - If @error Then Return SetError(4, @error, 0) - $oReturn.Visible = 0 - $oReturn.Scalewidth(1, -1, 0) - $oReturn.Scaleheight(1, -1, 0) - $oReturn.Scalewidth($iHeight / $oReturn.Height, -1, 0) - $oReturn.Scaleheight($iHeight / $oReturn.Height, -1, 0) - $oReturn.Visible = 1 - ElseIf $iHeight = Default Then - $oReturn = $vWorksheet.Shapes.AddPicture($sFile, -1, -1, $iPosLeft, $iPosTop, 0, 0) - If @error Then Return SetError(4, @error, 0) - $oReturn.Visible = 0 - $oReturn.Scalewidth(1, -1, 0) - $oReturn.Scaleheight(1, -1, 0) - $oReturn.Scaleheight($iWidth / $oReturn.Width, -1, 0) - $oReturn.Scalewidth($iWidth / $oReturn.Width, -1, 0) - $oReturn.Visible = 1 - Else - $oReturn = $vWorksheet.Shapes.AddPicture($sFile, -1, -1, $iPosLeft, $iPosTop, $iWidth, $iHeight) - If @error Then Return SetError(4, @error, 0) - EndIf - Else - If $bKeepRatio = True Then - $oReturn = $vWorksheet.Shapes.AddPicture($sFile, -1, -1, $iPosLeft, $iPosTop, 0, 0) - If @error Then Return SetError(4, @error, 0) - $oReturn.Visible = 0 - $oReturn.Scalewidth(1, -1, 0) - $oReturn.Scaleheight(1, -1, 0) - Local $iRw = $vRangeOrLeft.Width / $oReturn.Width - Local $iRh = $vRangeOrLeft.Height / $oReturn.Height - If $iRw < $iRh Then - $oReturn.Scaleheight($iRw, -1, 0) - $oReturn.Scalewidth($iRw, -1, 0) - Else - $oReturn.Scaleheight($iRh, -1, 0) - $oReturn.Scalewidth($iRh, -1, 0) - EndIf - $oReturn.Visible = 1 - Else - $oReturn = $vWorksheet.Shapes.AddPicture($sFile, -1, -1, $iPosLeft, $iPosTop, $vRangeOrLeft.Width, $vRangeOrLeft.Height) - If @error Then Return SetError(4, @error, 0) - EndIf - EndIf - Return $oReturn -EndFunc ;==>_Excel_PictureAdd - -; #FUNCTION# ==================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================== -Func _Excel_Print($oExcel, $vObject, $iCopies = Default, $sPrinter = Default, $bPreview = Default, $iFrom = Default, $iTo = Default, $bPrintToFile = Default, $bCollate = Default, $sPrToFileName = "") - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oExcel) Or ObjName($oExcel, 1) <> "_Application" Then Return SetError(1, 0, 0) - If IsString($vObject) Then $vObject = $oExcel.Range($vObject) - If @error Or Not IsObj($vObject) Then Return SetError(2, @error, 0) - $vObject.PrintOut($iFrom, $iTo, $iCopies, $bPreview, $sPrinter, $bPrintToFile, $bCollate, $sPrToFileName) - If @error Then Return SetError(3, @error, 0) - Return $vObject -EndFunc ;==>_Excel_Print - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_RangeCopyPaste($oWorksheet, $vSourceRange, $vTargetRange = Default, $bCut = Default, $iPaste = Default, $iOperation = Default, $bSkipBlanks = Default, $bTranspose = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorksheet) Or ObjName($oWorksheet, 1) <> "_Worksheet" Then Return SetError(1, 0, 0) - If $bCut = Default Then $bCut = False - If $vSourceRange = Default And $vTargetRange = Default Then Return SetError(7, 0, 0) - If Not IsObj($vSourceRange) And $vSourceRange <> Default Then - $vSourceRange = $oWorksheet.Range($vSourceRange) - If @error Then Return SetError(2, @error, 0) - EndIf - If Not IsObj($vTargetRange) And $vTargetRange <> Default Then - $vTargetRange = $oWorksheet.Range($vTargetRange) - If @error Then Return SetError(3, @error, 0) - EndIf - If $vSourceRange = Default Then ; Paste from the clipboard - If $bSkipBlanks = Default Then $bSkipBlanks = False - If $bTranspose = Default Then $bTranspose = False - $vTargetRange.PasteSpecial($iPaste, $iOperation, $bSkipBlanks, $bTranspose) - If @error Then Return SetError(4, @error, 0) - Else - If $bCut Then - $vSourceRange.Cut($vTargetRange) - If @error Then Return SetError(5, @error, 0) - Else - $vSourceRange.Copy($vTargetRange) - If @error Then Return SetError(6, @error, 0) - EndIf - EndIf - If $vTargetRange <> Default Then - Return $vTargetRange - Else - Return 1 - EndIf -EndFunc ;==>_Excel_RangeCopyPaste - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_RangeDelete($oWorksheet, $vRange, $iShift = Default, $iEntireRowCol = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorksheet) Or ObjName($oWorksheet, 1) <> "_Worksheet" Then Return SetError(1, 0, 0) - If Not IsObj($vRange) Then - $vRange = $oWorksheet.Range($vRange) - If @error Then Return SetError(2, @error, 0) - EndIf - If $iEntireRowCol = 1 Then - $vRange.EntireRow.Delete($iShift) - ElseIf $iEntireRowCol = 2 Then - $vRange.EntireColumn.Delete($iShift) - Else - $vRange.Delete($iShift) - EndIf - If @error Then Return SetError(3, @error, 0) - Return 1 -EndFunc ;==>_Excel_RangeDelete - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_RangeFind($oWorkbook, $sSearch, $vRange = Default, $iLookIn = Default, $iLookAt = Default, $bMatchcase = Default) - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If StringStripWS($sSearch, 3) = "" Then Return SetError(2, 0, 0) - If $iLookIn = Default Then $iLookIn = $xlValues - If $iLookAt = Default Then $iLookAt = $xlPart - If $bMatchcase = Default Then $bMatchcase = False - Local $oMatch, $sFirst = "", $bSearchWorkbook = False, $oSheet - If $vRange = Default Then - $bSearchWorkbook = True - $oSheet = $oWorkbook.Sheets(1) - $vRange = $oSheet.UsedRange - ElseIf IsString($vRange) Then - $vRange = $oWorkbook.Activesheet.Range($vRange) - If @error Then Return SetError(3, @error, 0) - EndIf - Local $aResult[100][6], $iIndex = 0, $iIndexSheets = 1 - While 1 - $oMatch = $vRange.Find($sSearch, Default, $iLookIn, $iLookAt, Default, Default, $bMatchcase) - If @error Then Return SetError(4, @error, 0) - If IsObj($oMatch) Then - $sFirst = $oMatch.Address - While 1 - $aResult[$iIndex][0] = $oMatch.Worksheet.Name - $aResult[$iIndex][1] = $oMatch.Name.Name - $aResult[$iIndex][2] = $oMatch.Address - $aResult[$iIndex][3] = $oMatch.Value - $aResult[$iIndex][4] = $oMatch.Formula - $aResult[$iIndex][5] = $oMatch.Comment.Text - $iIndex = $iIndex + 1 - If Mod($iIndex, 100) = 0 Then ReDim $aResult[UBound($aResult, 1) + 100][6] - $oMatch = $vRange.Findnext($oMatch) - If Not IsObj($oMatch) Or $sFirst = $oMatch.Address Then ExitLoop - WEnd - EndIf - If Not $bSearchWorkbook Then ExitLoop - $iIndexSheets = $iIndexSheets + 1 - $sFirst = "" - $oSheet = $oWorkbook.Sheets($iIndexSheets) - If @error Then ExitLoop - $vRange = $oSheet.UsedRange - WEnd - ReDim $aResult[$iIndex][6] - Return $aResult -EndFunc ;==>_Excel_RangeFind - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_RangeInsert($oWorksheet, $vRange, $iShift = Default, $iCopyOrigin = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorksheet) Or ObjName($oWorksheet, 1) <> "_Worksheet" Then Return SetError(1, 0, 0) - If Not IsObj($vRange) Then - $vRange = $oWorksheet.Range($vRange) - If @error Then Return SetError(2, @error, 0) - EndIf - $vRange.Insert($iShift, $iCopyOrigin) - If @error Then Return SetError(3, @error, 0) - Return $vRange -EndFunc ;==>_Excel_RangeInsert - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: Added parameter $sTextToDisplay -; =============================================================================================================================== -Func _Excel_RangeLinkAddRemove($oWorkbook, $vWorksheet, $vRange, $sAddress, $sSubAddress = Default, $sScreenTip = Default, $sTextToDisplay = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - Local $oLink - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not IsObj($vWorksheet) Then - If $vWorksheet = Default Then - $vWorksheet = $oWorkbook.ActiveSheet - Else - $vWorksheet = $oWorkbook.WorkSheets.Item($vWorksheet) - EndIf - If @error Or Not IsObj($vWorksheet) Then Return SetError(2, @error, 0) - ElseIf ObjName($vWorksheet, 1) <> "_Worksheet" Then - Return SetError(2, @error, 0) - EndIf - If Not IsObj($vRange) Then - $vRange = $vWorksheet.Range($vRange) - If @error Or Not IsObj($vRange) Then Return SetError(3, @error, 0) - EndIf - If $sAddress = "" Then - $vRange.Hyperlinks.Delete() - If @error Then Return SetError(4, @error, 0) - Return 1 - Else - $oLink = $vWorksheet.Hyperlinks.Add($vRange, $sAddress, $sSubAddress, $sScreenTip, $sTextToDisplay) - If @error Then Return SetError(4, @error, 0) - Return $oLink - EndIf - -EndFunc ;==>_Excel_RangeLinkAddRemove - -; #FUNCTION# ==================================================================================================================== -; Author ........: SEO -; Modified.......: litlmike, water, GMK -; =============================================================================================================================== -Func _Excel_RangeRead($oWorkbook, $vWorksheet = Default, $vRange = Default, $iReturn = Default, $bForceFunc = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not IsObj($vWorksheet) Then - If $vWorksheet = Default Then - $vWorksheet = $oWorkbook.ActiveSheet - Else - $vWorksheet = $oWorkbook.WorkSheets.Item($vWorksheet) - EndIf - If @error Or Not IsObj($vWorksheet) Then Return SetError(2, @error, 0) - ElseIf ObjName($vWorksheet, 1) <> "_Worksheet" Then - Return SetError(2, @error, 0) - EndIf - If $vRange = Default Then - $vRange = $vWorksheet.Usedrange - ElseIf Not IsObj($vRange) Then - $vRange = $vWorksheet.Range($vRange) - If @error Or Not IsObj($vRange) Then Return SetError(3, @error, 0) - EndIf - If $iReturn = Default Then - $iReturn = 1 - ElseIf $iReturn < 1 Or $iReturn > 4 Then - Return SetError(4, 0, 0) - EndIf - If $bForceFunc = Default Then $bForceFunc = False - Local $vResult, $iCellCount = $vRange.Columns.Count * $vRange.Rows.Count - If $iReturn = 3 And $iCellCount > 1 Then Return SetError(8, @error, 0) - ; The max number of elements in an AutoIt array is limited to 2^24 = 16,777,216 - If $iCellCount > 16777216 Then Return SetError(6, 0, 0) - ; Transpose has an undocumented limit on the number of cells or rows it can transpose. This limit increases with the Excel version - ; Limits: - ; Excel 97 - 5461 cells - ; Excel 2000 - 5461 cells - ; Excel 2003 - ? - ; Excel 2007 - 65535 cells - ; Excel 2010 - ? - ; Excel 2013 - ? - If $iCellCount > 65535 Then $bForceFunc = True - If $bForceFunc Then - Switch $iReturn - Case 1 - $vResult = $vRange.Value - Case 2 - $vResult = $vRange.Formula - Case 3 - $vResult = $vRange.Text - Case Else - $vResult = $vRange.Value2 - EndSwitch - If @error Then Return SetError(7, @error, 0) - If $iCellCount > 1 Then _ArrayTranspose($vResult) - Else - Local $oExcel = $oWorkbook.Parent - Switch $iReturn - Case 1 - $vResult = $oExcel.Transpose($vRange.Value) - Case 2 - $vResult = $oExcel.Transpose($vRange.Formula) - Case 3 - $vResult = $oExcel.Transpose($vRange.Text) - Case Else - $vResult = $oExcel.Transpose($vRange.Value2) - EndSwitch - If @error Then Return SetError(5, @error, 0) - EndIf - Return $vResult -EndFunc ;==>_Excel_RangeRead - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_RangeReplace($oWorkbook, $vWorksheet, $vRange, $sSearch, $sReplace, $iLookAt = Default, $bMatchcase = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not IsObj($vWorksheet) Then - If $vWorksheet = Default Then - $vWorksheet = $oWorkbook.ActiveSheet - Else - $vWorksheet = $oWorkbook.WorkSheets.Item($vWorksheet) - EndIf - If @error Or Not IsObj($vWorksheet) Then Return SetError(2, @error, 0) - ElseIf ObjName($vWorksheet, 1) <> "_Worksheet" Then - Return SetError(2, @error, 0) - EndIf - If StringStripWS($sSearch, 3) = "" Then Return SetError(3, 0, 0) - If $vRange = Default Then - $vRange = $vWorksheet.Usedrange - ElseIf Not IsObj($vRange) Then - $vRange = $vWorksheet.Range($vRange) - If @error Or Not IsObj($vRange) Then Return SetError(4, @error, 0) - EndIf - If $iLookAt = Default Then $iLookAt = $xlPart - If $bMatchcase = Default Then $bMatchcase = False - Local $bReplace - $bReplace = $vRange.Replace($sSearch, $sReplace, $iLookAt, Default, $bMatchcase) - If @error Then Return SetError(5, @error, 0) - Return SetError(0, $bReplace, $vRange) -EndFunc ;==>_Excel_RangeReplace - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_RangeSort($oWorkbook, $vWorksheet, $vRange, $vKey1, $iOrder1 = Default, $iSortText = Default, $iHeader = Default, _ - $bMatchcase = Default, $iOrientation = Default, $vKey2 = Default, $iOrder2 = Default, $vKey3 = Default, $iOrder3 = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not IsObj($vWorksheet) Then - If $vWorksheet = Default Then - $vWorksheet = $oWorkbook.ActiveSheet - Else - $vWorksheet = $oWorkbook.WorkSheets.Item($vWorksheet) - EndIf - If @error Or Not IsObj($vWorksheet) Then Return SetError(2, @error, 0) - ElseIf ObjName($vWorksheet, 1) <> "_Worksheet" Then - Return SetError(2, @error, 0) - EndIf - If $vRange = Default Then - $vRange = $vWorksheet.Usedrange - ElseIf Not IsObj($vRange) Then - $vRange = $vWorksheet.Range($vRange) - If @error Or Not IsObj($vRange) Then Return SetError(3, @error, 0) - EndIf - $vKey1 = $vWorksheet.Range($vKey1) - If @error Or Not IsObj($vKey1) Then Return SetError(4, @error, 0) - If $vKey2 <> Default Then - $vKey2 = $vWorksheet.Range($vKey2) - If @error Or Not IsObj($vKey2) Then Return SetError(5, @error, 0) - EndIf - If $vKey3 <> Default Then - $vKey3 = $vWorksheet.Range($vKey3) - If @error Or Not IsObj($vKey3) Then Return SetError(6, @error, 0) - EndIf - If $iHeader = Default Then $iHeader = $xlNo - If $bMatchcase = Default Then $bMatchcase = False - If $iOrientation = Default Then $iOrientation = $xlSortColumns - If $iOrder1 = Default Then $iOrder1 = $xlAscending - If $iSortText = Default Then $iSortText = $xlSortNormal - If $iOrder2 = Default Then $iOrder2 = $xlAscending - If $iOrder3 = Default Then $iOrder3 = $xlAscending - If Int($oWorkbook.Parent.Version) < 112 Then ; Use Sort method for Excel 2003 and older - $vRange.Sort($vKey1, $iOrder1, $vKey2, Default, $iOrder2, $vKey3, $iOrder3, $iHeader, Default, $bMatchcase, $iOrientation, Default, $iSortText, $iSortText, $iSortText) - Else - ; http://www.autoitscript.com/forum/topic/136672-excel-multiple-column-sort/?hl=%2Bexcel+%2Bsort+%2Bcolumns#entry956163 - ; http://msdn.microsoft.com/en-us/library/ff839572(v=office.14).aspx - $vWorksheet.Sort.SortFields.Clear - $vWorksheet.Sort.SortFields.Add($vKey1, $xlSortOnValues, $iOrder1) - If $vKey2 <> Default Then $vWorksheet.Sort.SortFields.Add($vKey2, $xlSortOnValues, $iOrder2) - If $vKey3 <> Default Then $vWorksheet.Sort.SortFields.Add($vKey3, $xlSortOnValues, $iOrder3) - $vWorksheet.Sort.SetRange($vRange) - $vWorksheet.Sort.Header = $iHeader - $vWorksheet.Sort.MatchCase = $bMatchcase - $vWorksheet.Sort.Orientation = $iOrientation - $vWorksheet.Sort.Apply - EndIf - If @error Then Return SetError(7, @error, 0) - Return $vRange -EndFunc ;==>_Excel_RangeSort - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_RangeValidate($oWorkbook, $vWorksheet, $vRange, $iType, $sFormula1, $iOperator = Default, $sFormula2 = Default, $bIgnoreBlank = Default, $iAlertStyle = Default, $sErrorMessage = Default, $sInputMessage = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not IsObj($vWorksheet) Then - If $vWorksheet = Default Then - $vWorksheet = $oWorkbook.ActiveSheet - Else - $vWorksheet = $oWorkbook.WorkSheets.Item($vWorksheet) - EndIf - If @error Or Not IsObj($vWorksheet) Then Return SetError(2, @error, 0) - ElseIf ObjName($vWorksheet, 1) <> "_Worksheet" Then - Return SetError(2, @error, 0) - EndIf - If $vRange = Default Then - $vRange = $vWorksheet.Usedrange - ElseIf Not IsObj($vRange) Then - $vRange = $vWorksheet.Range($vRange) - If @error Or Not IsObj($vRange) Then Return SetError(3, @error, 0) - EndIf - If $bIgnoreBlank = Default Then $bIgnoreBlank = True - If $iAlertStyle = Default Then $iAlertStyle = $xlValidAlertStop - $vRange.Validation.Delete() ; delete existing validation before adding a new one - $vRange.Validation.Add($iType, $iAlertStyle, $iOperator, $sFormula1, $sFormula2) - If @error Then Return SetError(4, @error, 0) - $vRange.Validation.IgnoreBlank = $bIgnoreBlank - If $sInputMessage <> Default Then - $vRange.Validation.InputMessage = $sInputMessage - $vRange.Validation.ShowInput = True - EndIf - If $sErrorMessage <> Default Then - $vRange.Validation.ErrorMessage = $sErrorMessage - $vRange.Validation.ShowError = True - EndIf - Return $vRange -EndFunc ;==>_Excel_RangeValidate - -; #FUNCTION# ==================================================================================================================== -; Author ........: SEO -; Modified.......: litlmike, PsaltyDS, Golfinhu, water -; =============================================================================================================================== -Func _Excel_RangeWrite($oWorkbook, $vWorksheet, $vValue, $vRange = Default, $bValue = Default, $bForceFunc = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If Not IsObj($vWorksheet) Then - If $vWorksheet = Default Then - $vWorksheet = $oWorkbook.ActiveSheet - Else - $vWorksheet = $oWorkbook.WorkSheets.Item($vWorksheet) - EndIf - If @error Or Not IsObj($vWorksheet) Then Return SetError(2, @error, 0) - ElseIf ObjName($vWorksheet, 1) <> "_Worksheet" Then - Return SetError(2, @error, 0) - EndIf - If $vRange = Default Then $vRange = "A1" - If $bValue = Default Then $bValue = True - If $bForceFunc = Default Then $bForceFunc = False - If Not IsObj($vRange) Then - $vRange = $vWorksheet.Range($vRange) - If @error Or Not IsObj($vRange) Then Return SetError(3, @error, 0) - EndIf - If Not IsArray($vValue) Then - If $bValue Then - $vRange.Value = $vValue - Else - $vRange.Formula = $vValue - EndIf - If @error Then Return SetError(4, @error, 0) - Else - If $vRange.Columns.Count = 1 And $vRange.Rows.Count = 1 Then - If UBound($vValue, 0) = 1 Then - $vRange = $vRange.Resize(UBound($vValue, 1), 1) - Else - $vRange = $vRange.Resize(UBound($vValue, 1), UBound($vValue, 2)) - EndIf - EndIf - ; ========================== - ; Transpose has an undocument limit on the number of cells or rows it can transpose. This limit increases with the Excel version - ; Limits: - ; Excel 97 - 5461 cells - ; Excel 2000 - 5461 cells - ; Excel 2003 - ? - ; Excel 2007 - 65536 rows ? - ; Excel 2010 - ? - ; Example: If $oExcel.Version = 14 And $vRange.Columns.Count * $vRange.Rows.Count > 1000000 Then $bForceFunc = True - If $bForceFunc Then - _ArrayTranspose($vValue) - If $bValue Then - $vRange.Value = $vValue - Else - $vRange.Formula = $vValue - EndIf - If @error Then Return SetError(5, @error, 0) - Else - Local $oExcel = $oWorkbook.Parent - If $bValue Then - $vRange.Value = $oExcel.Transpose($vValue) - Else - $vRange.Formula = $oExcel.Transpose($vValue) - EndIf - If @error Then Return SetError(6, @error, 0) - EndIf - EndIf - Return $vRange -EndFunc ;==>_Excel_RangeWrite - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_SheetAdd($oWorkbook, $vSheet = Default, $bBefore = Default, $iCount = Default, $sName = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - Local $bInsertAtEnd = False, $iStartSheet, $oBefore = Default, $oAfter = Default - If $iCount = Default Then $iCount = 1 - If $iCount > 255 Then Return SetError(6, 0, 0) - If $bBefore = Default Then $bBefore = True - If $vSheet = Default Then - $vSheet = $oWorkbook.ActiveSheet - ElseIf Not IsObj($vSheet) Then - If $vSheet = -1 Then - $vSheet = $oWorkbook.WorkSheets.Item($oWorkbook.WorkSheets.Count) - Else - $vSheet = $oWorkbook.WorkSheets.Item($vSheet) - EndIf - If @error Then Return SetError(2, @error, 0) - If $vSheet.Index = $oWorkbook.WorkSheets.Count And $bBefore = False Then $bInsertAtEnd = True - EndIf - If $sName <> Default Then - Local $aName = StringSplit($sName, "|") - SetError(0) ; Reset @error if the separator was not found - If $aName[1] <> "" Then ; Name provided - For $iIndex1 = 1 To $aName[0] - For $iIndex2 = 1 To $oWorkbook.WorkSheets.Count - If $oWorkbook.WorkSheets($iIndex2).Name = $aName[$iIndex1] Then Return SetError(3, $iIndex1, 0) - Next - Next - Else - $sName = Default ; No name provided - EndIf - EndIf - If $bBefore Then - $oBefore = $vSheet - Else - $oAfter = $vSheet - EndIf - Local $oSheet = $oWorkbook.WorkSheets.Add($oBefore, $oAfter, $iCount) - If @error Then Return SetError(4, @error, 0) - If $sName <> Default Then - ; If sheets are added after the last sheet then the returned sheet is the rightmost, else it is the leftmost - If $bInsertAtEnd = True Then - $iStartSheet = $oSheet.Index - $iCount + 1 - Else - $iStartSheet = $oSheet.Index - EndIf - $iIndex2 = 1 - For $iSheet = $iStartSheet To $iStartSheet + $iCount - 1 - If $aName[$iIndex2] <> "" Then $oWorkbook.WorkSheets($iSheet).Name = $aName[$iIndex2] - If @error Then Return SetError(5, @error, 0) - $iIndex2 += 1 - If $iIndex2 > $aName[0] Then ExitLoop - Next - EndIf - Return $oSheet -EndFunc ;==>_Excel_SheetAdd - -; #FUNCTION# ==================================================================================================================== -; Author ........: SEO -; Modified.......: litlmike, water -; =============================================================================================================================== -Func _Excel_SheetCopyMove($oSourceBook, $vSourceSheet = Default, $oTargetBook = Default, $vTargetSheet = Default, $bBefore = Default, $bCopy = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - Local $vBefore = Default, $vAfter = Default - If Not IsObj($oSourceBook) Or ObjName($oSourceBook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - If $vSourceSheet = Default Then $vSourceSheet = $oSourceBook.ActiveSheet - If $oTargetBook = Default Then $oTargetBook = $oSourceBook - If Not IsObj($oTargetBook) Or ObjName($oTargetBook, 1) <> "_Workbook" Then Return SetError(2, 0, 0) - If $vTargetSheet = Default Then $vTargetSheet = 1 - If $bBefore = Default Then $bBefore = True - If $bCopy = Default Then $bCopy = True - If Not IsObj($vSourceSheet) Then - $vSourceSheet = $oSourceBook.Sheets($vSourceSheet) - If @error Or Not IsObj($vSourceSheet) Then SetError(3, @error, 0) - EndIf - If Not IsObj($vTargetSheet) Then - $vTargetSheet = $oTargetBook.Sheets($vTargetSheet) - If @error Or Not IsObj($vTargetSheet) Then SetError(4, @error, 0) - EndIf - If $bBefore Then - $vBefore = $vTargetSheet - Else - $vAfter = $vTargetSheet - EndIf - If $bCopy Then - $vSourceSheet.Copy($vBefore, $vAfter) - Else - $vSourceSheet.Move($vBefore, $vAfter) - EndIf - If @error Then Return SetError(5, 0, 0) - If $bBefore Then - Return $oTargetBook.Sheets($vTargetSheet.Index - 1) - Else - Return $oTargetBook.Sheets($vTargetSheet.Index + 1) - EndIf -EndFunc ;==>_Excel_SheetCopyMove - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified.......: -; =============================================================================================================================== -Func _Excel_SheetDelete($oWorkbook, $vSheet = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc") - #forceref $oError - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - Local $oSheet - If $vSheet = Default Then - $oSheet = $oWorkbook.ActiveSheet - ElseIf Not IsObj($vSheet) Then - $oSheet = $oWorkbook.WorkSheets.Item($vSheet) - Else - $oSheet = $vSheet - EndIf - If @error Then Return SetError(2, @error, 0) - $oSheet.Delete() - If @error Then Return SetError(3, @error, 0) - Return 1 -EndFunc ;==>_Excel_SheetDelete - -; #FUNCTION# ==================================================================================================================== -; Author ........: SEO -; Modified.......: litlmike, water -; =============================================================================================================================== -Func _Excel_SheetList($oWorkbook) - If Not IsObj($oWorkbook) Or ObjName($oWorkbook, 1) <> "_Workbook" Then Return SetError(1, 0, 0) - Local $iSheetCount = $oWorkbook.Sheets.Count - Local $aSheets[$iSheetCount][2] - For $iIndex = 0 To $iSheetCount - 1 - $aSheets[$iIndex][0] = $oWorkbook.Sheets($iIndex + 1).Name - $aSheets[$iIndex][1] = $oWorkbook.Sheets($iIndex + 1) - Next - Return $aSheets -EndFunc ;==>_Excel_SheetList - -; #INTERNAL_USE_ONLY#============================================================================================================ -; Author ........: Valik -; Modified ......: water -; =============================================================================================================================== -Func __Excel_CloseOnQuit($oExcel, $bNewState = Default) - Static $bState[101] = [0] - If $bNewState = True Then ; Add new Excel instance to the table. Will be closed on _Excel_Close - For $i = 1 To $bState[0] - If Not IsObj($bState[$i]) Or $bState[$i] = $oExcel Then ; Empty cell found or instance already stored - $bState[$i] = $oExcel - Return True - EndIf - Next - $bState[0] = $bState[0] + 1 ; No empty cell found and instance not already in table. Create a new entry at the end of the table - $bState[$bState[0]] = $oExcel - Return True - Else - For $i = 1 To $bState[0] - If $bState[$i] = $oExcel Then ; Excel instance found - If $bNewState = False Then ; Remove Excel instance from table (set value to zero) - $bState[$i] = 0 - Return False - Else - Return True ; Excel instance found. Will be closed on _Excel_Close - EndIf - EndIf - Next - EndIf - Return False ; Excel instance not found. Will not be closed by _Excel_Close -EndFunc ;==>__Excel_CloseOnQuit - -; #INTERNAL_USE_ONLY#============================================================================================================ -; Name...........: __Excel_COMErrFunc -; Description ...: Dummy function for silently handling COM errors. -; Syntax.........: -; Parameters ....: -; Return values .: -; -; Author ........: -; Modified ......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Excel_COMErrFunc() - ; Do nothing special, just check @error after suspect functions. -EndFunc ;==>__Excel_COMErrFunc diff --git a/build/Include/ExcelConstants.au3 b/build/Include/ExcelConstants.au3 deleted file mode 100644 index 179059a47..000000000 --- a/build/Include/ExcelConstants.au3 +++ /dev/null @@ -1,308 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: ExcelConstants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt script when using the Excel UDF. -; Author(s) .....: water -; Resources .....: Excel 2010 Enumerations: http://msdn.microsoft.com/en-us/library/ff838815(v=office.14).aspx -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; XlAutoFilterOperator Enumeration. Specifies the operator to use to associate two criteria applied by a filter. -; See: http://msdn.microsoft.com/en-us/library/ff839625(v=office.14).aspx -Global Const $xlAnd = 1 ; Logical AND of Criteria1 and Criteria2 -Global Const $xlBottom10Items = 4 ; Lowest-valued items displayed (number of items specified in Criteria1) -Global Const $xlBottom10Percent = 6 ; Lowest-valued items displayed (percentage specified in Criteria1) -Global Const $xlFilterCellColor = 8 ; Color of the cell -Global Const $xlFilterDynamic = 11 ; Dynamic filter -Global Const $xlFilterFontColor = 9 ; Color of the font -Global Const $xlFilterIcon = 10 ; Filter icon -Global Const $xlFilterValues = 7 ; Filter values -Global Const $xlOr = 2 ; Logical OR of Criteria1 or Criteria2 -Global Const $xlTop10Items = 3 ; Highest-valued items displayed (number of items specified in Criteria1) -Global Const $xlTop10Percent = 5 ; Highest-valued items displayed (percentage specified in Criteria1) - -; Constants Enumeration. This enumeration groups together constants used with various Excel methods. -; See: http://msdn.microsoft.com/en-us/library/ff197824(v=office.14).aspx -Global Const $xlCenter = -4108 ; Center -Global Const $xlLeft = -4131 ; Left -Global Const $xlRight = -4152 ; Right - -; XlCalculation Enumeration. Specifies the calculation mode. -; See: http://msdn.microsoft.com/en-us/library/ff835845(v=office.14).aspx -Global Const $xlCalculationAutomatic = -4105 ; Excel controls recalculation -Global Const $xlCalculationManual = -4135 ; Calculation is done when the user requests it -Global Const $xlCalculationSemiautomatic = 2 ; Excel controls recalculation but ignores changes in tables - -; XlCellType Enumeration. Specifies the type of cells. -; See: http://msdn.microsoft.com/en-us/library/ff836534(v=office.14).aspx -Global Const $xlCellTypeAllFormatConditions = -4172 ; Cells of any format -Global Const $xlCellTypeAllValidation = -4174 ; Cells having validation criteria -Global Const $xlCellTypeBlanks = 4 ; Empty cells -Global Const $xlCellTypeComments = -4144 ; Cells containing notes -Global Const $xlCellTypeConstants = 2 ; Cells containing constants -Global Const $xlCellTypeFormulas = -4123 ; Cells containing formulas -Global Const $xlCellTypeLastCell = 11 ; The last cell in the used range -Global Const $xlCellTypeSameFormatConditions = -4173 ; Cells having the same format -Global Const $xlCellTypeSameValidation = -4175 ; Cells having the same validation criteria -Global Const $xlCellTypeVisible = 12 ; All visible cells - -; XlColumnDataType Enumeration. Specifies how a column is to be parsed. -; See: http://msdn.microsoft.com/en-us/library/ff193030(v=office.14).aspx -Global Const $xlDMYFormat = 4 ; DMY date format -Global Const $xlDYMFormat = 7 ; DYM date format -Global Const $xlEMDFormat = 10 ; EMD date format -Global Const $xlGeneralFormat = 1 ; General -Global Const $xlMDYFormat = 3 ; MDY date format -Global Const $xlMYDFormat = 6 ; MYD date format -Global Const $xlSkipColumn = 9 ; Column is not parsed -Global Const $xlTextFormat = 2 ; Text -Global Const $xlYDMFormat = 8 ; YDM date format -Global Const $xlYMDFormat = 5 ; YMD date format - -; XlDeleteShiftDirection Enumeration. Specifies how to shift cells to replace deleted cells. -; See: http://msdn.microsoft.com/en-us/library/ff841140(v=office.14).aspx -Global Const $xlShiftToLeft = -4159 ; Cells are shifted to the left -Global Const $xlShiftUp = -4162 ; Cells are shifted up - -; XlDVAlertStyle Enumeration. Specifies the icon used in message boxes displayed during validation. -; See: http://msdn.microsoft.com/en-us/library/ff841223(v=office.14).aspx -Global Const $xlValidAlertInformation = 3 ; Information icon -Global Const $xlValidAlertStop = 1 ; Stop icon -Global Const $xlValidAlertWarning = 2 ; Warning icon - -; XlDVType Enumeration. Specifies the type of validation test to be performed in conjunction with values. -; See: http://msdn.microsoft.com/en-us/library/ff840715(v=office.14).aspx -Global Const $xlValidateCustom = 7 ; Data is validated using an arbitrary formula -Global Const $xlValidateDate = 4 ; Date values -Global Const $xlValidateDecimal = 2 ; Numeric values -Global Const $xlValidateInputOnly = 0 ; Validate only when user changes the value -Global Const $xlValidateList = 3 ; Value must be present in a specified list -Global Const $xlValidateTextLength = 6 ; Length of text -Global Const $xlValidateTime = 5 ; Time values -Global Const $xlValidateWholeNumber = 1 ; Whole numeric values - -; XlDynamicFilterCriteria Enumeration. Specifies the filter criterion. -; See: http://msdn.microsoft.com/en-us/library/ff840134(v=office.14).aspx -Global Const $xlFilterAboveAverage = 33 ; Filter all above-average values -Global Const $xlFilterAllDatesInPeriodApril = 24 ; Filter all dates in April -Global Const $xlFilterAllDatesInPeriodAugust = 28 ; Filter all dates in August -Global Const $xlFilterAllDatesInPeriodDecember = 32 ; Filter all dates in December -Global Const $xlFilterAllDatesInPeriodFebruray = 22 ; Filter all dates in February -Global Const $xlFilterAllDatesInPeriodJanuary = 21 ; Filter all dates in January -Global Const $xlFilterAllDatesInPeriodJuly = 27 ; Filter all dates in July -Global Const $xlFilterAllDatesInPeriodJune = 26 ; Filter all dates in June -Global Const $xlFilterAllDatesInPeriodMarch = 23 ; Filter all dates in March -Global Const $xlFilterAllDatesInPeriodMay = 25 ; Filter all dates in May -Global Const $xlFilterAllDatesInPeriodNovember = 31 ; Filter all dates in November -Global Const $xlFilterAllDatesInPeriodOctober = 30 ; Filter all dates in October -Global Const $xlFilterAllDatesInPeriodQuarter1 = 17 ; Filter all dates in Quarter1 -Global Const $xlFilterAllDatesInPeriodQuarter2 = 18 ; Filter all dates in Quarter2 -Global Const $xlFilterAllDatesInPeriodQuarter3 = 19 ; Filter all dates in Quarter3 -Global Const $xlFilterAllDatesInPeriodQuarter4 = 20 ; Filter all dates in Quarter4 -Global Const $xlFilterAllDatesInPeriodSeptember = 29 ; Filter all dates in September -Global Const $xlFilterBelowAverage = 34 ; Filter all below-average values -Global Const $xlFilterLastMonth = 8 ; Filter all values related to last month -Global Const $xlFilterLastQuarter = 11 ; Filter all values related to last quarter -Global Const $xlFilterLastWeek = 5 ; Filter all values related to last week -Global Const $xlFilterLastYear = 14 ; Filter all values related to last year -Global Const $xlFilterNextMonth = 9 ; Filter all values related to next month -Global Const $xlFilterNextQuarter = 12 ; Filter all values related to next quarter -Global Const $xlFilterNextWeek = 6 ; Filter all values related to next week -Global Const $xlFilterNextYear = 15 ; Filter all values related to next year -Global Const $xlFilterThisMonth = 7 ; Filter all values related to the current month -Global Const $xlFilterThisQuarter = 10 ; Filter all values related to the current quarter -Global Const $xlFilterThisWeek = 4 ; Filter all values related to the current week -Global Const $xlFilterThisYear = 13 ; Filter all values related to the current year -Global Const $xlFilterToday = 1 ; Filter all values related to the current date -Global Const $xlFilterTomorrow = 3 ; Filter all values related to tomorrow -Global Const $xlFilterYearToDate = 16 ; Filter all values from today until a year ago -Global Const $xlFilterYesterday = 2 ; Filter all values related to yesterday - -; XlFileFormat Enumeration. Specifies the file format when saving the worksheet. -; See: http://msdn.microsoft.com/en-us/library/ff198017(v=office.14).aspx -Global Const $xlAddIn = 18 ; Microsoft Excel 97-2003 Add-In -Global Const $xlAddIn8 = 18 ; Microsoft Excel 97-2003 Add-In -Global Const $xlCSV = 6 ; CSV -Global Const $xlCSVMac = 22 ; Macintosh CSV -Global Const $xlCSVMSDOS = 24 ; MSDOS CSV -Global Const $xlCSVWindows = 23 ; Windows CSV -Global Const $xlCurrentPlatformText = -4158 ; Current Platform Text -Global Const $xlDBF2 = 7 ; DBF2 -Global Const $xlDBF3 = 8 ; DBF3 -Global Const $xlDBF4 = 11 ; DBF4 -Global Const $xlDIF = 9 ; DIF -Global Const $xlExcel12 = 50 ; Excel12 (Excel Binary Workbook in 2007 with or without macro’s, .xlsb) -Global Const $xlExcel2 = 16 ; Excel2 -Global Const $xlExcel2FarEast = 27 ; Excel2 FarEast -Global Const $xlExcel3 = 29 ; Excel3 -Global Const $xlExcel4 = 33 ; Excel4 -Global Const $xlExcel4Workbook = 35 ; Excel4 Workbook -Global Const $xlExcel5 = 39 ; Excel5 -Global Const $xlExcel7 = 39 ; Excel7 -Global Const $xlExcel8 = 56 ; Excel8 (97-2003 format in Excel 2007, .xls) -Global Const $xlExcel9795 = 43 ; Excel9795 -Global Const $xlHtml = 44 ; HTML format -Global Const $xlIntlAddIn = 26 ; International Add-In -Global Const $xlIntlMacro = 25 ; International Macro -Global Const $xlOpenDocumentSpreadsheet = 60 ; OpenDocument Spreadsheet -Global Const $xlOpenXMLAddIn = 55 ; Open XML Add-In -Global Const $xlOpenXMLTemplate = 54 ; Open XML Template -Global Const $xlOpenXMLTemplateMacroEnabled = 53 ; Open XML Template Macro Enabled -Global Const $xlOpenXMLWorkbook = 51 ; Open XML Workbook (without macro’s in 2007, .xlsx) -Global Const $xlOpenXMLWorkbookMacroEnabled = 52 ; Open XML Workbook Macro Enabled (with or without macro’s in 2007, .xlsm) -Global Const $xlSYLK = 2 ; SYLK -Global Const $xlTemplate = 17 ; Template -Global Const $xlTemplate8 = 17 ; Template 8 -Global Const $xlTextMac = 19; Macintosh Text -Global Const $xlTextMSDOS = 21 ; MSDOS Text -Global Const $xlTextPrinter = 36 ; Printer Text -Global Const $xlTextWindows = 20 ; Windows Text -Global Const $xlUnicodeText = 42 ; Unicode Text -Global Const $xlWebArchive = 45 ; Web Archive -Global Const $xlWJ2WD1 = 14 ; WJ2WD1 -Global Const $xlWJ3 = 40 ; WJ3 -Global Const $xlWJ3FJ3 = 41 ; WJ3FJ3 -Global Const $xlWK1 = 5 ; WK1 -Global Const $xlWK1ALL = 31 ; WK1ALL -Global Const $xlWK1FMT = 30 ; WK1FMT -Global Const $xlWK3 = 15 ; WK3 -Global Const $xlWK3FM3 = 32 ; WK3FM3 -Global Const $xlWK4 = 38; WK4 -Global Const $xlWKS = 4 ; Worksheet -Global Const $xlWorkbookDefault = 51 ; Workbook default (.xls for < Excel 2007, .xlsx for > Excel 2007) -Global Const $xlWorkbookNormal = -4143 ; Workbook normal -Global Const $xlWorks2FarEast = 28 ; Works2 FarEast -Global Const $xlWQ1 = 34 ; WQ1 -Global Const $xlXMLSpreadsheet = 46 ; XML Spreadsheet - -; XlFindLookIn Enumeration. Specifies the type of data to search. -; See: http://msdn.microsoft.com/en-us/library/ff822180(v=office.14).aspx -Global Const $xlComments = -4144 ; Comments -Global Const $xlFormulas = -4123 ; Formulas -Global Const $xlValues = -4163 ; Values - -; XlFixedFormatQuality Enumeration. Specifies the quality of speadsheets saved in different fixed formats. -; See: http://msdn.microsoft.com/en-us/library/ff838396(v=office.14).aspx -Global Const $xlQualityMinimum = 1 ; Minimum quality -Global Const $xlQualityStandard = 0 ; Standard quality - -; XlFixedFormatType Enumeration. Specifies the type of file format. -; See: http://msdn.microsoft.com/en-us/library/ff195006(v=office.14).aspx -Global Const $xlTypePDF = 0 ; "PDF" — Portable Document Format file (.pdf) -Global Const $xlTypeXPS = 1 ; "XPS" — XPS Document (.xps) - -; XlFormatConditionOperator Enumeration. Specifies the operator to use to compare a formula against the value in a cell or, for xlBetween and xlNotBetween, to compare two formulas. -; See: http://msdn.microsoft.com/en-us/library/ff840923(v=office.14).aspx -Global Const $xlBetween = 1 ; Between. Can be used only if two formulas are provided -Global Const $xlEqual = 3 ; Equal -Global Const $xlGreater = 5 ; Greater than -Global Const $xlGreaterEqual = 7 ; Greater than or equal to -Global Const $xlLess = 6 ; Less than -Global Const $xlLessEqual = 8 ; Less than or equal to -Global Const $xlNotBetween = 2 ; Not between. Can be used only if two formulas are provided -Global Const $xlNotEqual = 4 ; Not equal - -; XlInsertFormatOrigin Enumeration: Specifies from where to copy the format for inserted rows. -; See: http://msdn.microsoft.com/en-us/library/ff195129(v=office.14).aspx -Global Const $xlFormatFromLeftOrAbove = 0 ; Copy the format from cells above and/or to the left -Global Const $xlFormatFromRightOrBelow = 1 ; Copy the format from cells below and/or to the right - -; XlInsertShiftDirection Enumeration. Specifies the direction in which to shift cells during an insertion. -; See: http://msdn.microsoft.com/en-us/library/ff837618(v=office.14).aspx -Global Const $xlShiftDown = -4121 ; Shift cells down -Global Const $xlShiftToRight = -4161 ; Shift cells to the right - -; XlLookAt Enumeration. Specifies whether a match is made against the whole of the search text or any part of the search text. -; See: http://msdn.microsoft.com/en-us/library/ff823160(v=office.14).aspx -Global Const $xlPart = 2 ; Match against any part of the search text -Global Const $xlWhole = 1 ; Match against the whole of the search text - -; XlPasteSpecialOperation Enumeration. Specifies how numeric data will be calculated with the destinations cells in the worksheet -; See: http://msdn.microsoft.com/en-us/library/ff838010(v=office.14).aspx -Global Const $xlPasteSpecialOperationAdd = 2 ; Copied data will be added with the value in the destination cell -Global Const $xlPasteSpecialOperationDivide = 5 ; Copied data will be divided with the value in the destination cell -Global Const $xlPasteSpecialOperationMultiply = 4 ; Copied data will be multiplied with the value in the destination cell -Global Const $xlPasteSpecialOperationNone = -4142 ; No calculation will be done in the paste operation -Global Const $xlPasteSpecialOperationSubtract = 3 ; Copied data will be subtracted with the value in the destination cell - -; XlPasteType Enumeration. Specifies the part of the range to be pasted. -; See: http://msdn.microsoft.com/en-us/library/ff837425(v=office.14).aspx -Global Const $xlPasteAll = -4104 ; Everything will be pasted -Global Const $xlPasteAllExceptBorders = 7 ; Everything except borders will be pasted -Global Const $xlPasteAllMergingConditionalFormats = 14 ; Everything will be pasted and conditional formats will be merged -Global Const $xlPasteAllUsingSourceTheme = 13 ; Everything will be pasted using the source theme -Global Const $xlPasteColumnWidths = 8 ; Copied column width is pasted -Global Const $xlPasteComments = -4144 ; Comments are pasted -Global Const $xlPasteFormats = -4122 ; Copied source format is pasted -Global Const $xlPasteFormulas = -4123 ; Formulas are pasted -Global Const $xlPasteFormulasAndNumberFormats = 11 ; Formulas and Number formats are pasted -Global Const $xlPasteValidation = 6 ; Validations are pasted -Global Const $xlPasteValues = -4163 ; Values are pasted -Global Const $xlPasteValuesAndNumberFormats = 12 ; Values and Number formats are pasted - -; XlPlatform Enumeration. Specifies the platform on which a text file originated. -; See: http://msdn.microsoft.com/en-us/library/ff197617(v=office.14).aspx -Global Const $xlMacintosh = 1 ; Macintosh -Global Const $xlMSDOS = 3 ; MS-DOS -Global Const $xlWindows = 2 ; Microsoft Windows - -; XlReferenceStyle Enumeration. Specifies the reference style. -; See: http://msdn.microsoft.com/en-us/library/ff821207(v=office.14).aspx -Global Const $xlA1 = 1 ; Default. Use xlA1 to return an A1-style reference -Global Const $xlR1C1 = -4150 ; Use xlR1C1 to return an R1C1-style reference - -; XlReferenceType Enumeration. Specifies cell reference style when a formula is being converted. -; See: http://msdn.microsoft.com/en-us/library/ff837117(v=office.14).aspx -Global Const $xlAbsolute = 1 ; Convert to absolute row and column style -Global Const $xlAbsRowRelColumn = 2 ; Convert to absolute row and relative column style -Global Const $xlRelative = 4 ; Convert to relative row and column style -Global Const $xlRelRowAbsColumn = 3 ; Convert to relative row and absolute column style - -; xlSheetVisibility Enumeration. Specifies whether the object is visible. -; See: http://msdn.microsoft.com/en-us/library/ff821673(v=office.14).aspx -Global Const $xlSheetHidden = 0 ; Hides the worksheet which the user can unhide via menu -Global Const $xlSheetVeryHidden = 2 ; Hides the object so that the only way for you to make it visible again is by setting this property to True (the user cannot make the object visible) -Global Const $xlSheetVisible = -1 ; Displays the sheet - -; XlSortDataOption Enumeration. Specifies how to sort text. -; See: http://msdn.microsoft.com/en-us/library/ff821069(v=office.14).aspx -Global Const $xlSortNormal = 0 ; Sorts numeric and text data separately -Global Const $xlSortTextAsNumbers = 1 ; Treat text as numeric data for the sort - -; XlSortOrder Enumeration. Specifies the sort order for the specified field or range. -; See: http://msdn.microsoft.com/en-us/library/ff834316(v=office.14).aspx -Global Const $xlAscending = 1 ; Sorts the specified field in ascending order -Global Const $xlDescending = 2 ; Sorts the specified field in descending order - -; XlSortOn Enumeration. Specifies the parameter on which the data should be sorted. -; See: http://msdn.microsoft.com/en-us/library/ff839572(v=office.14).aspx -Global Const $xlSortOnCellColor = 1 ; Cell color -Global Const $xlSortOnFontColor = 2 ; Font color -Global Const $xlSortOnIcon = 3 ; Icon -Global Const $xlSortOnValues = 0 ; Values - -; XlSortOrientation Enumeration. Specifies the sort orientation. -; See: http://msdn.microsoft.com/en-us/library/ff839607(v=office.14).aspx -Global Const $xlSortColumns = 1 ; Sorts by column -Global Const $xlSortRows = 2 ; Sorts by row. This is the default value - -; XlTextParsingType Enumeration. Specifies the column format for the data in the text file that you are importing into a query table. -; See: http://msdn.microsoft.com/en-us/library/ff822876(v=office.14).aspx -Global Const $xlDelimited = 1 ; Default. Indicates that the file is delimited by delimiter characters -Global Const $xlFixedWidth = 2 ; Indicates that the data in the file is arranged in columns of fixed widths - -; XlTextQualifier Enumeration. Specifies the delimiter to use to specify text. -; See: http://msdn.microsoft.com/en-us/library/ff838376(v=office.14).aspx -Global Const $xlTextQualifierDoubleQuote = 1 ; Double quotation mark (") -Global Const $xlTextQualifierNone = -4142 ; No delimiter -Global Const $xlTextQualifierSingleQuote = 2 ; Single quotation mark (') - -; XlYesNoGuess Enumeration. Specifies whether or not the first row contains headers. -; See: http://msdn.microsoft.com/en-us/library/ff838812(v=office.14).aspx -Global Const $xlGuess = 0 ; Excel determines whether there is a header, and where it is, if there is one -Global Const $xlNo = 2 ; Default. The entire range should be sorted -Global Const $xlYes = 1 ; The entire range should not be sorted -; =============================================================================================================================== diff --git a/build/Include/FTPEx.au3 b/build/Include/FTPEx.au3 deleted file mode 100644 index 1a5861d0a..000000000 --- a/build/Include/FTPEx.au3 +++ /dev/null @@ -1,912 +0,0 @@ -#include-once - -#include "Date.au3" -#include "FileConstants.au3" -#include "StructureConstants.au3" -#include "WinAPIError.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: FTP -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with FTP. -; Author(s) .....: Wouter, Prog@ndy, jpm, Beege -; Notes .........: based on FTP_Ex.au3 16/02/2009 http://www.autoit.de/index.php?page=Thread&postID=48393 -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hWinInet_FTP = -1 -Global $__g_hCallback_FTP, $__g_bCallback_FTP = False -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $INTERNET_OPEN_TYPE_DIRECT = 1 -Global Const $INTERNET_OPEN_TYPE_PRECONFIG = 0 -Global Const $INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4 -Global Const $INTERNET_OPEN_TYPE_PROXY = 3 - -Global Const $FTP_TRANSFER_TYPE_UNKNOWN = 0 ;Defaults to FTP_TRANSFER_TYPE_BINARY. -Global Const $FTP_TRANSFER_TYPE_ASCII = 1 ;Type A transfer method. Control and formatting information is converted to local equivalents. -Global Const $FTP_TRANSFER_TYPE_BINARY = 2 ;Type I transfer method. The file is transferred exactly as it exists with no changes. - -Global Const $INTERNET_FLAG_PASSIVE = 0x08000000 -Global Const $INTERNET_FLAG_TRANSFER_ASCII = $FTP_TRANSFER_TYPE_ASCII -Global Const $INTERNET_FLAG_TRANSFER_BINARY = $FTP_TRANSFER_TYPE_BINARY - -Global Const $INTERNET_DEFAULT_FTP_PORT = 21 -Global Const $INTERNET_SERVICE_FTP = 1 - -; _FTP_FindFileFirst flags -Global Const $INTERNET_FLAG_HYPERLINK = 0x00000400 -Global Const $INTERNET_FLAG_NEED_FILE = 0x00000010 -Global Const $INTERNET_FLAG_NO_CACHE_WRITE = 0x04000000 -Global Const $INTERNET_FLAG_RELOAD = 0x80000000 -Global Const $INTERNET_FLAG_RESYNCHRONIZE = 0x00000800 - -; _FTP_Open flags -Global Const $INTERNET_FLAG_ASYNC = 0x10000000 -Global Const $INTERNET_FLAG_FROM_CACHE = 0x01000000 -Global Const $INTERNET_FLAG_OFFLINE = $INTERNET_FLAG_FROM_CACHE - -; _FTP_...() Status -Global Const $INTERNET_STATUS_CLOSING_CONNECTION = 50 -Global Const $INTERNET_STATUS_CONNECTION_CLOSED = 51 -Global Const $INTERNET_STATUS_CONNECTING_TO_SERVER = 20 -Global Const $INTERNET_STATUS_CONNECTED_TO_SERVER = 21 -Global Const $INTERNET_STATUS_CTL_RESPONSE_RECEIVED = 42 -Global Const $INTERNET_STATUS_INTERMEDIATE_RESPONSE = 120 -Global Const $INTERNET_STATUS_PREFETCH = 43 -Global Const $INTERNET_STATUS_REDIRECT = 110 -Global Const $INTERNET_STATUS_REQUEST_COMPLETE = 100 -Global Const $INTERNET_STATUS_HANDLE_CREATED = 60 -Global Const $INTERNET_STATUS_HANDLE_CLOSING = 70 -Global Const $INTERNET_STATUS_SENDING_REQUEST = 30 -Global Const $INTERNET_STATUS_REQUEST_SENT = 31 -Global Const $INTERNET_STATUS_RECEIVING_RESPONSE = 40 -Global Const $INTERNET_STATUS_RESPONSE_RECEIVED = 41 -Global Const $INTERNET_STATUS_STATE_CHANGE = 200 -Global Const $INTERNET_STATUS_RESOLVING_NAME = 10 -Global Const $INTERNET_STATUS_NAME_RESOLVED = 11 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _FTP_Close -; _FTP_Command -; _FTP_Connect -; _FTP_DecodeInternetStatus -; _FTP_DirCreate -; _FTP_DirDelete -; _FTP_DirGetCurrent -; _FTP_DirPutContents -; _FTP_DirSetCurrent -; _FTP_FileClose -; _FTP_FileDelete -; _FTP_FileGet -; _FTP_FileGetSize -; _FTP_FileOpen -; _FTP_FilePut -; _FTP_FileRead -; _FTP_FileRename -; _FTP_FileTimeLoHiToStr -; _FTP_FindFileClose -; _FTP_FindFileFirst -; _FTP_FindFileNext -; _FTP_GetLastResponseInfo -; _FTP_ListToArray -; _FTP_ListToArray2D -; _FTP_ListToArrayEx -; _FTP_Open -; _FTP_ProgressDownload -; _FTP_ProgressUpload -; _FTP_SetStatusCallback -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY#============================================================================================================ -; __FTP_ListToArray -; __FTP_Init -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren -; Modified.......: Beege -; =============================================================================================================================== -Func _FTP_Close($hSession) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $aDone = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $hSession) - If @error Or $aDone[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - If $__g_bCallback_FTP = True Then DllCallbackFree($__g_hCallback_FTP) - - Return $aDone[0] -EndFunc ;==>_FTP_Close - -; #FUNCTION# ==================================================================================================================== -; Author ........: Bill Mezian -; Modified.......: -; =============================================================================================================================== -Func _FTP_Command($hFTPSession, $sFTPCommand, $iFlags = $FTP_TRANSFER_TYPE_ASCII, $iExpectResponse = 0, $iContext = 0) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPCommand = DllCall($__g_hWinInet_FTP, 'bool', 'FtpCommandW', 'handle', $hFTPSession, 'bool', $iExpectResponse, 'dword', $iFlags, 'wstr', $sFTPCommand, 'dword_ptr', $iContext, 'ptr*', 0) - If @error Or $ai_FTPCommand[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return SetError(0, $ai_FTPCommand[6], $ai_FTPCommand[0]) -EndFunc ;==>_FTP_Command - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren -; Modified.......: -; =============================================================================================================================== -Func _FTP_Connect($hInternetSession, $sServerName, $sUsername, $sPassword, $iPassive = 0, $iServerPort = 0, $iService = $INTERNET_SERVICE_FTP, $iFlags = 0, $fuContext = 0) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - If $iPassive == 1 Then $iFlags = BitOR($iFlags, $INTERNET_FLAG_PASSIVE) - Local $ai_InternetConnect = DllCall($__g_hWinInet_FTP, 'hwnd', 'InternetConnectW', 'handle', $hInternetSession, 'wstr', $sServerName, 'ushort', $iServerPort, 'wstr', $sUsername, 'wstr', $sPassword, 'dword', $iService, 'dword', $iFlags, 'dword_ptr', $fuContext) - If @error Or $ai_InternetConnect[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_InternetConnect[0] -EndFunc ;==>_FTP_Connect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Beege -; Modified.......: jpm -; =============================================================================================================================== -Func _FTP_DecodeInternetStatus($iInternetStatus) - Switch $iInternetStatus - Case $INTERNET_STATUS_CLOSING_CONNECTION - Return 'Closing connection ...' - - Case $INTERNET_STATUS_CONNECTION_CLOSED - Return 'Connection closed' - - Case $INTERNET_STATUS_CONNECTING_TO_SERVER - Return 'Connecting to server ...' - - Case $INTERNET_STATUS_CONNECTED_TO_SERVER - Return 'Connected to server' - - Case $INTERNET_STATUS_CTL_RESPONSE_RECEIVED - Return 'CTL esponse received' - - Case $INTERNET_STATUS_INTERMEDIATE_RESPONSE - Return 'Intermediate response' - - Case $INTERNET_STATUS_PREFETCH - Return 'Prefetch' - - Case $INTERNET_STATUS_REDIRECT - Return 'Redirect' - - Case $INTERNET_STATUS_REQUEST_COMPLETE - Return 'Request complete' - - Case $INTERNET_STATUS_HANDLE_CREATED - Return 'Handle created' - - Case $INTERNET_STATUS_HANDLE_CLOSING - Return 'Handle closing ...' - - Case $INTERNET_STATUS_SENDING_REQUEST - Return 'Sending request ...' - - Case $INTERNET_STATUS_REQUEST_SENT - Return 'Request sent' - - Case $INTERNET_STATUS_RECEIVING_RESPONSE - Return 'Receiving response ...' - - Case $INTERNET_STATUS_RESPONSE_RECEIVED - Return 'Response received' - - Case $INTERNET_STATUS_STATE_CHANGE - Return 'State change' - - Case $INTERNET_STATUS_RESOLVING_NAME - Return 'Resolving name ...' - - Case $INTERNET_STATUS_NAME_RESOLVED - Return 'Name resolved' - Case Else - Return 'UNKNOWN status = ' & $iInternetStatus - EndSwitch -EndFunc ;==>_FTP_DecodeInternetStatus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren -; Modified.......: -; =============================================================================================================================== -Func _FTP_DirCreate($hFTPSession, $sRemote) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPMakeDir = DllCall($__g_hWinInet_FTP, 'bool', 'FtpCreateDirectoryW', 'handle', $hFTPSession, 'wstr', $sRemote) - If @error Or $ai_FTPMakeDir[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_FTPMakeDir[0] -EndFunc ;==>_FTP_DirCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren -; Modified.......: -; =============================================================================================================================== -Func _FTP_DirDelete($hFTPSession, $sRemote) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPDelDir = DllCall($__g_hWinInet_FTP, 'bool', 'FtpRemoveDirectoryW', 'handle', $hFTPSession, 'wstr', $sRemote) - If @error Or $ai_FTPDelDir[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_FTPDelDir[0] -EndFunc ;==>_FTP_DirDelete - -; #FUNCTION# ==================================================================================================================== -; Author ........: Beast -; Modified.......: -; =============================================================================================================================== -Func _FTP_DirGetCurrent($hFTPSession) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPGetCurrentDir = DllCall($__g_hWinInet_FTP, 'bool', 'FtpGetCurrentDirectoryW', 'handle', $hFTPSession, 'wstr', "", 'dword*', 260) - If @error Or $ai_FTPGetCurrentDir[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_FTPGetCurrentDir[2] -EndFunc ;==>_FTP_DirGetCurrent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Stumpii -; Modified.......: -; =============================================================================================================================== -Func _FTP_DirPutContents($hFTPSession, $sLocalFolder, $sRemoteFolder, $bRecursivePut, $iContext = 0) - If StringRight($sLocalFolder, 1) == "\" Then $sLocalFolder = StringTrimRight($sLocalFolder, 1) - ; Shows the filenames of all files in the current directory. - Local $hSearch = FileFindFirstFile($sLocalFolder & "\*.*") - - ; Check if the search was successful - If $hSearch = -1 Then Return SetError(1, 0, 0) - - Local $sFile - While 1 - $sFile = FileFindNextFile($hSearch) - If @error Then ExitLoop - If StringInStr(FileGetAttrib($sLocalFolder & "\" & $sFile), "D") Then - _FTP_DirCreate($hFTPSession, $sRemoteFolder & "/" & $sFile) - If $bRecursivePut Then - _FTP_DirPutContents($hFTPSession, $sLocalFolder & "\" & $sFile, $sRemoteFolder & "/" & $sFile, $bRecursivePut, $iContext) - EndIf - Else - _FTP_FilePut($hFTPSession, $sLocalFolder & "\" & $sFile, $sRemoteFolder & "/" & $sFile, 0, $iContext) - EndIf - WEnd - - ; Close the search handle - FileClose($hSearch) - Return 1 -EndFunc ;==>_FTP_DirPutContents - -; #FUNCTION# ==================================================================================================================== -; Author ........: Beast -; Modified.......: -; =============================================================================================================================== -Func _FTP_DirSetCurrent($hFTPSession, $sRemote) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPSetCurrentDir = DllCall($__g_hWinInet_FTP, 'bool', 'FtpSetCurrentDirectoryW', 'handle', $hFTPSession, 'wstr', $sRemote) - If @error Or $ai_FTPSetCurrentDir[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_FTPSetCurrentDir[0] -EndFunc ;==>_FTP_DirSetCurrent - -; #FUNCTION# ==================================================================================================================== -; Author ........: joeyb1275 -; Modified.......: Prog@ndy -; =============================================================================================================================== -Func _FTP_FileClose($hFTPFile) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $aDone = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $hFTPFile) - If @error Or $aDone[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $aDone[0] -EndFunc ;==>_FTP_FileClose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren -; Modified.......: -; =============================================================================================================================== -Func _FTP_FileDelete($hFTPSession, $sRemoteFile) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPPutFile = DllCall($__g_hWinInet_FTP, 'bool', 'FtpDeleteFileW', 'handle', $hFTPSession, 'wstr', $sRemoteFile) - If @error Or $ai_FTPPutFile[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_FTPPutFile[0] -EndFunc ;==>_FTP_FileDelete - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren -; Modified.......: -; =============================================================================================================================== -Func _FTP_FileGet($hFTPSession, $sRemoteFile, $sLocalFile, $bFailIfExists = False, $iFlagsAndAttributes = 0, $iFlags = $FTP_TRANSFER_TYPE_UNKNOWN, $iContext = 0) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPGetFile = DllCall($__g_hWinInet_FTP, 'bool', 'FtpGetFileW', 'handle', $hFTPSession, 'wstr', $sRemoteFile, 'wstr', $sLocalFile, 'bool', $bFailIfExists, 'dword', $iFlagsAndAttributes, 'dword', $iFlags, 'dword_ptr', $iContext) - If @error Or $ai_FTPGetFile[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_FTPGetFile[0] -EndFunc ;==>_FTP_FileGet - -; #FUNCTION# ==================================================================================================================== -; Author ........: Joachim de Koning -; Modified.......: jpm -; =============================================================================================================================== -Func _FTP_FileGetSize($hFTPSession, $sFileName) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPGetSizeHandle = DllCall($__g_hWinInet_FTP, 'handle', 'FtpOpenFileW', 'handle', $hFTPSession, 'wstr', $sFileName, 'dword', $GENERIC_READ, 'dword', $INTERNET_FLAG_NO_CACHE_WRITE + $INTERNET_FLAG_TRANSFER_BINARY, 'dword_ptr', 0) - If @error Or $ai_FTPGetSizeHandle[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Local $ai_FTPGetFileSize = DllCall($__g_hWinInet_FTP, 'dword', 'FtpGetFileSize', 'handle', $ai_FTPGetSizeHandle[0], 'dword*', 0) - If @error Or $ai_FTPGetFileSize[0] = 0 Then - Local $iLasterror = _WinAPI_GetLastError() - DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $ai_FTPGetSizeHandle[0]) - ; No need to test @error. - - Return SetError(-1, $iLasterror, 0) - EndIf - - DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $ai_FTPGetSizeHandle[0]) - ; No need to test @error. - - Return _WinAPI_MakeQWord($ai_FTPGetFileSize[0], $ai_FTPGetFileSize[2]) -EndFunc ;==>_FTP_FileGetSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: joeyb1275 -; Modified.......: Prog@ndy -; =============================================================================================================================== -Func _FTP_FileOpen($hConnect, $sFileName, $iAccess = $GENERIC_READ, $iFlags = $INTERNET_FLAG_TRANSFER_BINARY, $iContext = 0) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FtpOpenfile = DllCall($__g_hWinInet_FTP, 'handle', 'FtpOpenFileW', 'handle', $hConnect, 'wstr', $sFileName, 'dword', $iAccess, 'dword', $iFlags, 'dword_ptr', $iContext) - If @error Or $ai_FtpOpenfile[0] == 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_FtpOpenfile[0] -EndFunc ;==>_FTP_FileOpen - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren -; Modified.......: -; =============================================================================================================================== -Func _FTP_FilePut($hFTPSession, $sLocalFile, $sRemoteFile, $iFlags = 0, $iContext = 0) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPPutFile = DllCall($__g_hWinInet_FTP, 'bool', 'FtpPutFileW', 'handle', $hFTPSession, 'wstr', $sLocalFile, 'wstr', $sRemoteFile, 'dword', $iFlags, 'dword_ptr', $iContext) - If @error Or $ai_FTPPutFile[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_FTPPutFile[0] -EndFunc ;==>_FTP_FilePut - -; #FUNCTION# ==================================================================================================================== -; Author ........: joeyb1275 -; Modified.......: Prog@ndy -; =============================================================================================================================== -Func _FTP_FileRead($hFTPFile, $iNumberOfBytesToRead) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $tBuffer = DllStructCreate("byte[" & $iNumberOfBytesToRead & "]") - - Local $ai_FTPReadFile = DllCall($__g_hWinInet_FTP, 'bool', 'InternetReadFile', 'handle', $hFTPFile, 'struct*', $tBuffer, 'dword', $iNumberOfBytesToRead, 'dword*', 0) ;LPDWORD lpdwNumberOfBytesRead - If @error Then Return SetError(1, _WinAPI_GetLastError(), 0) - - Local $iNumberOfBytesRead = $ai_FTPReadFile[4] - If $iNumberOfBytesRead == 0 And $ai_FTPReadFile[0] == 1 Then - Return SetError(-1, 0, 0) - ElseIf $ai_FTPReadFile[0] == 0 Then - Return SetError(2, _WinAPI_GetLastError(), 0) - EndIf - - Local $s_FileRead - If $iNumberOfBytesToRead > $iNumberOfBytesRead Then - $s_FileRead = BinaryMid(DllStructGetData($tBuffer, 1), 1, $iNumberOfBytesRead) ;index is omitted so the entire array is written into $s_FileRead as a BinaryString - Else - $s_FileRead = DllStructGetData($tBuffer, 1) ;index is omitted so the entire array is written into $s_FileRead as a BinaryString - EndIf - - Return SetError(0, $iNumberOfBytesRead, $s_FileRead) -EndFunc ;==>_FTP_FileRead - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren -; Modified.......: -; =============================================================================================================================== -Func _FTP_FileRename($hFTPSession, $sExisting, $sNew) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPRenameFile = DllCall($__g_hWinInet_FTP, 'bool', 'FtpRenameFileW', 'handle', $hFTPSession, 'wstr', $sExisting, 'wstr', $sNew) - If @error Or $ai_FTPRenameFile[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_FTPRenameFile[0] -EndFunc ;==>_FTP_FileRename - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: -; =============================================================================================================================== -Func _FTP_FileTimeLoHiToStr($iLoDWORD, $iHiDWORD, $bFmt = 0) - Local $tFileTime = DllStructCreate($tagFILETIME) - If Not $iLoDWORD And Not $iHiDWORD Then Return SetError(1, 0, "") - DllStructSetData($tFileTime, 1, $iLoDWORD) - DllStructSetData($tFileTime, 2, $iHiDWORD) - Local $sDate = _Date_Time_FileTimeToStr($tFileTime, $bFmt) - Return SetError(@error, @extended, $sDate) -EndFunc ;==>_FTP_FileTimeLoHiToStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dick Bronsdijk -; Modified.......: Prog@ndy, jpm -; =============================================================================================================================== -Func _FTP_FindFileClose($hFTPFind) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $ai_FTPPutFile = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $hFTPFind) - If @error Or $ai_FTPPutFile[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), "") - - Return $ai_FTPPutFile[0] -EndFunc ;==>_FTP_FindFileClose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dick Bronsdijk -; Modified.......: Prog@ndy, jpm -; =============================================================================================================================== -Func _FTP_FindFileFirst($hFTPSession, $sRemotePath, ByRef $hFTPFind, $iFlags = 0, $iContext = 0) - ;flags = 0 changed to $INTERNET_FLAG_TRANSFER_BINARY to see if stops hanging - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - Local $t_DllStruct = DllStructCreate($tagWIN32_FIND_DATA) - If @error Then Return SetError(-3, 0, "") - - Local $a_FTPFileList[1] - $a_FTPFileList[0] = 0 - - Local $ai_FTPFirstFile = DllCall($__g_hWinInet_FTP, 'handle', 'FtpFindFirstFileW', 'handle', $hFTPSession, 'wstr', $sRemotePath, 'struct*', $t_DllStruct, 'dword', $iFlags, 'dword_ptr', $iContext) - If @error Or $ai_FTPFirstFile[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), $ai_FTPFirstFile) - - $hFTPFind = $ai_FTPFirstFile[0] - - Local $a_FTPFileList[12] - $a_FTPFileList[0] = 11 - $a_FTPFileList[1] = DllStructGetData($t_DllStruct, "dwFileAttributes") - $a_FTPFileList[2] = DllStructGetData($t_DllStruct, "ftCreationTime", 1) - $a_FTPFileList[3] = DllStructGetData($t_DllStruct, "ftCreationTime", 2) - $a_FTPFileList[4] = DllStructGetData($t_DllStruct, "ftLastAccessTime", 1) - $a_FTPFileList[5] = DllStructGetData($t_DllStruct, "ftLastAccessTime", 2) - $a_FTPFileList[6] = DllStructGetData($t_DllStruct, "ftLastWriteTime", 1) - $a_FTPFileList[7] = DllStructGetData($t_DllStruct, "ftLastWriteTime", 2) - $a_FTPFileList[8] = DllStructGetData($t_DllStruct, "nFileSizeHigh") - $a_FTPFileList[9] = DllStructGetData($t_DllStruct, "nFileSizeLow") - $a_FTPFileList[10] = DllStructGetData($t_DllStruct, "cFileName") - $a_FTPFileList[11] = DllStructGetData($t_DllStruct, "cAlternateFileName") - - Return $a_FTPFileList -EndFunc ;==>_FTP_FindFileFirst - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dick Bronsdijk -; Modified.......: Prog@ndy, jpm -; =============================================================================================================================== -Func _FTP_FindFileNext($hFTPFind) - Local $t_DllStruct = DllStructCreate($tagWIN32_FIND_DATA) - - Local $a_FTPFileList[1] - $a_FTPFileList[0] = 0 - - Local $ai_FTPPutFile = DllCall($__g_hWinInet_FTP, 'bool', 'InternetFindNextFileW', 'handle', $hFTPFind, 'struct*', $t_DllStruct) - If @error Or $ai_FTPPutFile[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), $a_FTPFileList) - - Local $a_FTPFileList[12] - $a_FTPFileList[0] = 11 - $a_FTPFileList[1] = DllStructGetData($t_DllStruct, "dwFileAttributes") - $a_FTPFileList[2] = DllStructGetData($t_DllStruct, "ftCreationTime", 1) - $a_FTPFileList[3] = DllStructGetData($t_DllStruct, "ftCreationTime", 2) - $a_FTPFileList[4] = DllStructGetData($t_DllStruct, "ftLastAccessTime", 1) - $a_FTPFileList[5] = DllStructGetData($t_DllStruct, "ftLastAccessTime", 2) - $a_FTPFileList[6] = DllStructGetData($t_DllStruct, "ftLastWriteTime", 1) - $a_FTPFileList[7] = DllStructGetData($t_DllStruct, "ftLastWriteTime", 2) - $a_FTPFileList[8] = DllStructGetData($t_DllStruct, "nFileSizeHigh") - $a_FTPFileList[9] = DllStructGetData($t_DllStruct, "nFileSizeLow") - $a_FTPFileList[10] = DllStructGetData($t_DllStruct, "cFileName") - $a_FTPFileList[11] = DllStructGetData($t_DllStruct, "cAlternateFileName") - - Return $a_FTPFileList -EndFunc ;==>_FTP_FindFileNext - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _FTP_GetLastResponseInfo(ByRef $iError, ByRef $sMessage) - Local $ai_LastResponseInfo = DllCall($__g_hWinInet_FTP, 'bool', 'InternetGetLastResponseInfoW', 'dword*', 0, 'wstr', "", 'dword*', 4096) - If @error Or $ai_LastResponseInfo[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - $iError = $ai_LastResponseInfo[1] - $sMessage = $ai_LastResponseInfo[2] - Return $ai_LastResponseInfo[0] -EndFunc ;==>_FTP_GetLastResponseInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Beast, Prog@ndy -; Modified.......: -; =============================================================================================================================== -Func _FTP_ListToArray($hFTPSession, $iReturnType = 0, $iFlags = $INTERNET_FLAG_NO_CACHE_WRITE, $iContext = 0) - Local $aArray[1] - $aArray[0] = 0 - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, $aArray) - $aArray = __FTP_ListToArray($hFTPSession, $iReturnType, $iFlags, 0, 1, $iContext) - Return SetError(@error, @extended, $aArray) -EndFunc ;==>_FTP_ListToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: jpm -; =============================================================================================================================== -Func _FTP_ListToArray2D($hFTPSession, $iReturnType = 0, $iFlags = $INTERNET_FLAG_NO_CACHE_WRITE, $iContext = 0) - Local $aArray[1][1] - $aArray[0][0] = 0 - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, $aArray) - $aArray = __FTP_ListToArray($hFTPSession, $iReturnType, $iFlags, 0, 2, $iContext) - Return SetError(@error, @extended, $aArray) -EndFunc ;==>_FTP_ListToArray2D - -; #FUNCTION# ==================================================================================================================== -; Author ........: Beast, Prog@ndy -; Modified.......: jpm -; =============================================================================================================================== -Func _FTP_ListToArrayEx($hFTPSession, $iReturnType = 0, $iFlags = $INTERNET_FLAG_NO_CACHE_WRITE, $iFmt = 1, $iContext = 0) - Local $aArray[1][1] - $aArray[0][0] = 0 - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, $aArray) - $aArray = __FTP_ListToArray($hFTPSession, $iReturnType, $iFlags, $iFmt, 6, $iContext) - Return SetError(@error, @extended, $aArray) -EndFunc ;==>_FTP_ListToArrayEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren -; Modified.......: -; =============================================================================================================================== -Func _FTP_Open($sAgent, $iAccessType = $INTERNET_OPEN_TYPE_DIRECT, $sProxyName = '', $sProxyBypass = '', $iFlags = 0) - If $__g_hWinInet_FTP = -1 Then __FTP_Init() - Local $ai_InternetOpen = DllCall($__g_hWinInet_FTP, 'handle', 'InternetOpenW', 'wstr', $sAgent, 'dword', $iAccessType, _ - 'wstr', $sProxyName, 'wstr', $sProxyBypass, 'dword', $iFlags) - If @error Or $ai_InternetOpen[0] = 0 Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Return $ai_InternetOpen[0] -EndFunc ;==>_FTP_Open - -; #FUNCTION# ==================================================================================================================== -; Author ........: limette, Prog@ndy -; Modified.......: jchd -; =============================================================================================================================== -Func _FTP_ProgressDownload($hFTPSession, $sLocalFile, $sRemoteFile, $hFunctionToCall = 0) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - - Local $hFile = FileOpen($sLocalFile, $FO_OVERWRITE + $FO_BINARY) - If $hFile < 0 Then Return SetError(-1, 0, 0) - - Local $ai_FtpOpenfile = DllCall($__g_hWinInet_FTP, 'handle', 'FtpOpenFileW', 'handle', $hFTPSession, 'wstr', $sRemoteFile, 'dword', $GENERIC_READ, 'dword', $FTP_TRANSFER_TYPE_BINARY, 'dword_ptr', 0) - If @error Or $ai_FtpOpenfile[0] = 0 Then Return SetError(-3, _WinAPI_GetLastError(), 0) - - Local $ai_FTPGetFileSize = DllCall($__g_hWinInet_FTP, 'dword', 'FtpGetFileSize', 'handle', $ai_FtpOpenfile[0], 'dword*', 0) - If @error Then Return SetError(-2, _WinAPI_GetLastError(), 0) - - If Not IsFunc($hFunctionToCall) Then ProgressOn("FTP Download", "Downloading " & $sLocalFile) - - Local $iLen = _WinAPI_MakeQWord($ai_FTPGetFileSize[0], $ai_FTPGetFileSize[2]) ;FileGetSize($sRemoteFile) - Local Const $iChunkSize = 256 * 1024 - Local $iLast = Mod($iLen, $iChunkSize) - - Local $iParts = Ceiling($iLen / $iChunkSize) - Local $tBuffer = DllStructCreate("byte[" & $iChunkSize & "]") - - Local $aDone, $ai_FTPread, $iOut, $iRet, $iLasterror - Local $x = $iChunkSize - Local $iDone = 0 - For $i = 1 To $iParts - If $i = $iParts And $iLast > 0 Then - $x = $iLast - EndIf - - $ai_FTPread = DllCall($__g_hWinInet_FTP, 'bool', 'InternetReadFile', 'handle', $ai_FtpOpenfile[0], 'struct*', $tBuffer, 'dword', $x, 'dword*', $iOut) - If @error Or $ai_FTPread[0] = 0 Then - $iLasterror = _WinAPI_GetLastError() - $aDone = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $ai_FtpOpenfile[0]) - ; No need to test @error. - FileClose($hFile) - If Not IsFunc($hFunctionToCall) Then ProgressOff() - Return SetError(-4, $iLasterror, 0) - EndIf - $iRet = FileWrite($hFile, BinaryMid(DllStructGetData($tBuffer, 1), 1, $ai_FTPread[4])) - If Not $iRet Then - $iLasterror = _WinAPI_GetLastError() - $aDone = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $ai_FtpOpenfile[0]) - ; No need to test @error. - FileClose($hFile) - FileDelete($sLocalFile) - If Not IsFunc($hFunctionToCall) Then ProgressOff() - Return SetError(-7, $iLasterror, 0) - EndIf - $iDone += $ai_FTPread[4] - - If Not IsFunc($hFunctionToCall) Then - ProgressSet(($iDone / $iLen) * 100) - Else - $iRet = $hFunctionToCall(($iDone / $iLen) * 100) - If $iRet <= 0 Then - $iLasterror = @error - $aDone = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $ai_FtpOpenfile[0]) - ; No need to test @error. - FileClose($hFile) - FileDelete($sLocalFile) - If Not IsFunc($hFunctionToCall) Then ProgressOff() - Return SetError(-6, $iLasterror, $iRet) - EndIf - EndIf - Sleep(10) - Next - - FileClose($hFile) - - If Not IsFunc($hFunctionToCall) Then ProgressOff() - - $aDone = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $ai_FtpOpenfile[0]) - If @error Or $aDone[0] = 0 Then - Return SetError(-5, _WinAPI_GetLastError(), 0) - EndIf - - Return 1 -EndFunc ;==>_FTP_ProgressDownload - -; #FUNCTION# ==================================================================================================================== -; Author ........: limette, Prog@ndy -; Modified.......: jchd -; =============================================================================================================================== -Func _FTP_ProgressUpload($hFTPSession, $sLocalFile, $sRemoteFile, $hFunctionToCall = 0) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - - Local $hFile = FileOpen($sLocalFile, $FO_BINARY) - If @error Then Return SetError(-1, _WinAPI_GetLastError(), 0) - - Local $ai_FtpOpenfile = DllCall($__g_hWinInet_FTP, 'handle', 'FtpOpenFileW', 'handle', $hFTPSession, 'wstr', $sRemoteFile, 'dword', $GENERIC_WRITE, 'dword', $FTP_TRANSFER_TYPE_BINARY, 'dword_ptr', 0) - If @error Or $ai_FtpOpenfile[0] = 0 Then Return SetError(-3, _WinAPI_GetLastError(), 0) - - If Not IsFunc($hFunctionToCall) Then ProgressOn("FTP Upload", "Uploading " & $sLocalFile) - - Local $iLen = FileGetSize($sLocalFile) - Local Const $iChunkSize = 256 * 1024 - Local $iLast = Mod($iLen, $iChunkSize) - - Local $iParts = Ceiling($iLen / $iChunkSize) - Local $tBuffer = DllStructCreate("byte[" & $iChunkSize & "]") - - Local $aDone, $ai_FtpWrite, $iOut, $iRet, $iLasterror - Local $x = $iChunkSize - Local $iDone = 0 - For $i = 1 To $iParts - If $i = $iParts And $iLast > 0 Then - $x = $iLast - EndIf - DllStructSetData($tBuffer, 1, FileRead($hFile, $x)) - - $ai_FtpWrite = DllCall($__g_hWinInet_FTP, 'bool', 'InternetWriteFile', 'handle', $ai_FtpOpenfile[0], 'struct*', $tBuffer, 'dword', $x, 'dword*', $iOut) - If @error Or $ai_FtpWrite[0] = 0 Then - $iLasterror = _WinAPI_GetLastError() - $aDone = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $ai_FtpOpenfile[0]) - ; No need to test @error. - FileClose($hFile) - - If Not IsFunc($hFunctionToCall) Then ProgressOff() - Return SetError(-4, $iLasterror, 0) - EndIf - $iDone += $x - - If Not IsFunc($hFunctionToCall) Then - ProgressSet(($iDone / $iLen) * 100) - Else - $iRet = $hFunctionToCall(($iDone / $iLen) * 100) - If $iRet <= 0 Then - $iLasterror = @error - $aDone = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $ai_FtpOpenfile[0]) - ; No need to test @error. - DllCall($__g_hWinInet_FTP, 'bool', 'FtpDeleteFileW', 'handle', $hFTPSession, 'wstr', $sRemoteFile) - ; No need to test @error. - FileClose($hFile) - If Not IsFunc($hFunctionToCall) Then ProgressOff() - Return SetError(-6, $iLasterror, $iRet) - EndIf - EndIf - Sleep(10) - Next - - FileClose($hFile) - - If Not IsFunc($hFunctionToCall) Then ProgressOff() - - $aDone = DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $ai_FtpOpenfile[0]) - ; No need to test @error. - If @error Or $aDone[0] = 0 Then Return SetError(-5, _WinAPI_GetLastError(), 0) - - Return 1 -EndFunc ;==>_FTP_ProgressUpload - -; FUNCTION# ==================================================================================================================== -; Name...........: _FTP_SetStatusCallback -; Description ...: Registers callback function that WinINet functions can call as progress is made during an operation. -; Syntax.........: _InternetSetStatusCallback ($hInternetSession, $sFunctionName ) -; Parameters ....: $hInternetSession - as returned by _FTP_Open(). -; $sFunctionName - The name of the User Defined Function to call -; Return values .: Success - Pointer to callback function -; Failure - 0 and Set @error -; Author ........: Beege -; Modified.......: jpm -; Remarks .......: -; Related .......: _FTP_DecodeInternetStatus -; Link ..........: @@MsdnLink@@ InternetSetStatusCallback -; Example .......: Yes -; =============================================================================================================================== -Func _FTP_SetStatusCallback($hInternetSession, $sFunctionName) - If $__g_hWinInet_FTP = -1 Then Return SetError(-2, 0, 0) - - Local $hCallBack_Register = DllCallbackRegister($sFunctionName, "none", "ptr;ptr;dword;ptr;dword") - If Not $hCallBack_Register Then Return SetError(-1, 0, 0) - - Local $ah_CallBackFunction = DllCall('wininet.dll', "ptr", "InternetSetStatusCallback", "ptr", $hInternetSession, "ulong_ptr", DllCallbackGetPtr($hCallBack_Register)) - If @error Then Return SetError(-3, 0, 0) - If $ah_CallBackFunction[0] = Ptr(-1) Then Return SetError(-4, 0, 0) ; INTERNET_INVALID_STATUS_CALLBACK - - $__g_bCallback_FTP = True - $__g_hCallback_FTP = $hCallBack_Register - Return $ah_CallBackFunction[1] -EndFunc ;==>_FTP_SetStatusCallback - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __FTP_ListToArray -; Description ...: -; Syntax.........: __FTP_ListToArray ( $hFTPSession [, $iReturnType = 0 [, $iFlags = 0 [, $iFmt = 1 [, $iArrayCount = 6 [, $iContext = 0 ]]]]] ) -; Parameters ....: -; Return values .: an 2D array with the requested info defined by $iArrayCount -; [0] Filename -; [1] Filesize -; [2] FileAttribute -; [3] File Modification time -; [4] File Creation time -; [5] File Access time -; Author ........: Beast, Prog@ndy -; Modified.......: jpm (to be use by external UDFs) -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __FTP_ListToArray($hFTPSession, $iReturnType, $iFlags, $iFmt, $iArrayCount, $iContext) - If $iArrayCount = 1 Then - Local $asFileArray[1], $aDirectoryArray[1] - $asFileArray[0] = 0 - Else - Local $asFileArray[1][$iArrayCount], $aDirectoryArray[1][$iArrayCount] - $asFileArray[0][0] = 0 - EndIf - - If $iReturnType < 0 Or $iReturnType > 2 Then Return SetError(3, 0, $asFileArray) - - ; Global Const $tagWIN32_FIND_DATA = "DWORD dwFileAttributes; dword ftCreationTime[2]; dword ftLastAccessTime[2]; dword ftLastWriteTime[2]; DWORD nFileSizeHigh; DWORD nFileSizeLow; dword dwReserved0; dword dwReserved1; WCHAR cFileName[260]; WCHAR cAlternateFileName[14];" - Local $tWIN32_FIND_DATA = DllStructCreate($tagWIN32_FIND_DATA) - Local $iLasterror - Local $aCallFindFirst = DllCall($__g_hWinInet_FTP, 'handle', 'FtpFindFirstFileW', 'handle', $hFTPSession, 'wstr', "", 'struct*', $tWIN32_FIND_DATA, 'dword', $iFlags, 'dword_ptr', $iContext) - If @error Or Not $aCallFindFirst[0] Then - $iLasterror = _WinAPI_GetLastError() - If $iLasterror = 12003 Then ; ERROR_INTERNET_EXTENDED_ERROR - Local $iError, $sMessage - _FTP_GetLastResponseInfo($iError, $sMessage) - $iLasterror = $iError - EndIf - Return SetError(1, $iLasterror, $asFileArray) - EndIf - - Local $iDirectoryIndex = 0, $sFileIndex = 0 - Local $tFileTime, $bIsDir, $aCallFindNext - Do - $bIsDir = BitAND(DllStructGetData($tWIN32_FIND_DATA, "dwFileAttributes"), $FILE_ATTRIBUTE_DIRECTORY) = $FILE_ATTRIBUTE_DIRECTORY - If $bIsDir And ($iReturnType <> 2) Then - $iDirectoryIndex += 1 - If $iArrayCount = 1 Then - If UBound($aDirectoryArray) < $iDirectoryIndex + 1 Then ReDim $aDirectoryArray[$iDirectoryIndex * 2] - $aDirectoryArray[$iDirectoryIndex] = DllStructGetData($tWIN32_FIND_DATA, "cFileName") - Else - If UBound($aDirectoryArray) < $iDirectoryIndex + 1 Then ReDim $aDirectoryArray[$iDirectoryIndex * 2][$iArrayCount] - $aDirectoryArray[$iDirectoryIndex][0] = DllStructGetData($tWIN32_FIND_DATA, "cFileName") - - $aDirectoryArray[$iDirectoryIndex][1] = _WinAPI_MakeQWord(DllStructGetData($tWIN32_FIND_DATA, "nFileSizeLow"), DllStructGetData($tWIN32_FIND_DATA, "nFileSizeHigh")) - If $iArrayCount = 6 Then - $aDirectoryArray[$iDirectoryIndex][2] = DllStructGetData($tWIN32_FIND_DATA, "dwFileAttributes") - - $tFileTime = DllStructCreate($tagFILETIME, DllStructGetPtr($tWIN32_FIND_DATA, "ftLastWriteTime")) - $aDirectoryArray[$iDirectoryIndex][3] = _Date_Time_FileTimeToStr($tFileTime, $iFmt) - $tFileTime = DllStructCreate($tagFILETIME, DllStructGetPtr($tWIN32_FIND_DATA, "ftCreationTime")) - $aDirectoryArray[$iDirectoryIndex][4] = _Date_Time_FileTimeToStr($tFileTime, $iFmt) - $tFileTime = DllStructCreate($tagFILETIME, DllStructGetPtr($tWIN32_FIND_DATA, "ftLastAccessTime")) - $aDirectoryArray[$iDirectoryIndex][5] = _Date_Time_FileTimeToStr($tFileTime, $iFmt) - EndIf - EndIf - ElseIf Not $bIsDir And $iReturnType <> 1 Then - $sFileIndex += 1 - If $iArrayCount = 1 Then - If UBound($asFileArray) < $sFileIndex + 1 Then ReDim $asFileArray[$sFileIndex * 2] - $asFileArray[$sFileIndex] = DllStructGetData($tWIN32_FIND_DATA, "cFileName") - Else - If UBound($asFileArray) < $sFileIndex + 1 Then ReDim $asFileArray[$sFileIndex * 2][$iArrayCount] - $asFileArray[$sFileIndex][0] = DllStructGetData($tWIN32_FIND_DATA, "cFileName") - - $asFileArray[$sFileIndex][1] = _WinAPI_MakeQWord(DllStructGetData($tWIN32_FIND_DATA, "nFileSizeLow"), DllStructGetData($tWIN32_FIND_DATA, "nFileSizeHigh")) - If $iArrayCount = 6 Then - $asFileArray[$sFileIndex][2] = DllStructGetData($tWIN32_FIND_DATA, "dwFileAttributes") - - $tFileTime = DllStructCreate($tagFILETIME, DllStructGetPtr($tWIN32_FIND_DATA, "ftLastWriteTime")) - $asFileArray[$sFileIndex][3] = _Date_Time_FileTimeToStr($tFileTime, $iFmt) - $tFileTime = DllStructCreate($tagFILETIME, DllStructGetPtr($tWIN32_FIND_DATA, "ftCreationTime")) - $asFileArray[$sFileIndex][4] = _Date_Time_FileTimeToStr($tFileTime, $iFmt) - $tFileTime = DllStructCreate($tagFILETIME, DllStructGetPtr($tWIN32_FIND_DATA, "ftLastAccessTime")) - $asFileArray[$sFileIndex][5] = _Date_Time_FileTimeToStr($tFileTime, $iFmt) - EndIf - EndIf - EndIf - - $aCallFindNext = DllCall($__g_hWinInet_FTP, 'bool', 'InternetFindNextFileW', 'handle', $aCallFindFirst[0], 'struct*', $tWIN32_FIND_DATA) - If @error Then - $iLasterror = _WinAPI_GetLastError() - DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $aCallFindFirst[0]) - Return SetError(2, $iLasterror, $asFileArray) - EndIf - Until Not $aCallFindNext[0] - - DllCall($__g_hWinInet_FTP, 'bool', 'InternetCloseHandle', 'handle', $aCallFindFirst[0]) - ; No need to test @error. - - If $iArrayCount = 1 Then - $aDirectoryArray[0] = $iDirectoryIndex - $asFileArray[0] = $sFileIndex - Else - $aDirectoryArray[0][0] = $iDirectoryIndex - $asFileArray[0][0] = $sFileIndex - EndIf - - Switch $iReturnType - Case 0 - If $iArrayCount = 1 Then - ReDim $aDirectoryArray[$aDirectoryArray[0] + $asFileArray[0] + 1] - For $i = 1 To $sFileIndex - $aDirectoryArray[$aDirectoryArray[0] + $i] = $asFileArray[$i] - Next - $aDirectoryArray[0] += $asFileArray[0] - Else - ReDim $aDirectoryArray[$aDirectoryArray[0][0] + $asFileArray[0][0] + 1][$iArrayCount] - For $i = 1 To $sFileIndex - For $j = 0 To $iArrayCount - 1 - $aDirectoryArray[$aDirectoryArray[0][0] + $i][$j] = $asFileArray[$i][$j] - Next - Next - $aDirectoryArray[0][0] += $asFileArray[0][0] - EndIf - Return $aDirectoryArray - Case 1 - If $iArrayCount = 1 Then - ReDim $aDirectoryArray[$iDirectoryIndex + 1] - Else - ReDim $aDirectoryArray[$iDirectoryIndex + 1][$iArrayCount] - EndIf - Return $aDirectoryArray - Case 2 - If $iArrayCount = 1 Then - ReDim $asFileArray[$sFileIndex + 1] - Else - ReDim $asFileArray[$sFileIndex + 1][$iArrayCount] - EndIf - Return $asFileArray - EndSwitch -EndFunc ;==>__FTP_ListToArray - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __FTP_Init -; Description ...: DllOpen wininet.dll -; Syntax.........: __FTP_Init ( ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __FTP_Init() - $__g_hWinInet_FTP = DllOpen('wininet.dll') -EndFunc ;==>__FTP_Init diff --git a/build/Include/File.au3 b/build/Include/File.au3 deleted file mode 100644 index d9d5206a8..000000000 --- a/build/Include/File.au3 +++ /dev/null @@ -1,1077 +0,0 @@ -#include-once - -#include "Array.au3" -#include "FileConstants.au3" -#include "StringConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: File -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with files and directories. -; Author(s) .....: Brian Keene, Michael Michta, erifash, Jon, JdeB, Jeremy Landes, MrCreatoR, cdkid, Valik, Erik Pilsits, Kurt, Dale, guinness, DXRW4E, Melba23 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _FileCountLines -; _FileCreate -; _FileListToArray -; _FileListToArrayRec -; _FilePrint -; _FileReadToArray -; _FileWriteFromArray -; _FileWriteLog -; _FileWriteToLine -; _PathFull -; _PathGetRelative -; _PathMake -; _PathSplit -; _ReplaceStringInFile -; _TempFile -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY#============================================================================================================ -; __FLTAR_ListToMask -; __FLTAR_AddToList -; __FLTAR_AddFileLists -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Tylo -; Modified.......: Xenobiologist, Gary, guinness, DXRW4E -; =============================================================================================================================== -Func _FileCountLines($sFilePath) - Local $hFileOpen = FileOpen($sFilePath, $FO_READ) - If $hFileOpen = -1 Then Return SetError(1, 0, 0) - - Local $sFileRead = StringStripWS(FileRead($hFileOpen), $STR_STRIPTRAILING) - FileClose($hFileOpen) - Return UBound(StringRegExp($sFileRead, "\R", $STR_REGEXPARRAYGLOBALMATCH)) + 1 - Int($sFileRead = "") -EndFunc ;==>_FileCountLines - -; #FUNCTION# ==================================================================================================================== -; Author ........: Brian Keene -; Modified.......: -; =============================================================================================================================== -Func _FileCreate($sFilePath) - Local $hFileOpen = FileOpen($sFilePath, BitOR($FO_OVERWRITE, $FO_CREATEPATH)) - If $hFileOpen = -1 Then Return SetError(1, 0, 0) - - Local $iFileWrite = FileWrite($hFileOpen, "") - FileClose($hFileOpen) - If Not $iFileWrite Then Return SetError(2, 0, 0) - Return 1 -EndFunc ;==>_FileCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Michael Michta -; Modified.......: guinness - Added optional parameter to return the full path. -; =============================================================================================================================== -Func _FileListToArray($sFilePath, $sFilter = "*", $iFlag = $FLTA_FILESFOLDERS, $bReturnPath = False) - Local $sDelimiter = "|", $sFileList = "", $sFileName = "", $sFullPath = "" - - ; Check parameters for the Default keyword or they meet a certain criteria - $sFilePath = StringRegExpReplace($sFilePath, "[\\/]+$", "") & "\" ; Ensure a single trailing backslash - If $iFlag = Default Then $iFlag = $FLTA_FILESFOLDERS - If $bReturnPath Then $sFullPath = $sFilePath - If $sFilter = Default Then $sFilter = "*" - - ; Check if the directory exists - If Not FileExists($sFilePath) Then Return SetError(1, 0, 0) - If StringRegExp($sFilter, "[\\/:><\|]|(?s)^\s*$") Then Return SetError(2, 0, 0) - If Not ($iFlag = 0 Or $iFlag = 1 Or $iFlag = 2) Then Return SetError(3, 0, 0) - Local $hSearch = FileFindFirstFile($sFilePath & $sFilter) - If @error Then Return SetError(4, 0, 0) - While 1 - $sFileName = FileFindNextFile($hSearch) - If @error Then ExitLoop - If ($iFlag + @extended = 2) Then ContinueLoop - $sFileList &= $sDelimiter & $sFullPath & $sFileName - WEnd - FileClose($hSearch) - If $sFileList = "" Then Return SetError(4, 0, 0) - Return StringSplit(StringTrimLeft($sFileList, 1), $sDelimiter) -EndFunc ;==>_FileListToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Melba23 - with credits for code snippets to Ultima, Partypooper, Spiff59, guinness, wraithdu -; Modified ......: -; =============================================================================================================================== -Func _FileListToArrayRec($sFilePath, $sMask = "*", $iReturn = $FLTAR_FILESFOLDERS, $iRecur = $FLTAR_NORECUR, $iSort = $FLTAR_NOSORT, $iReturnPath = $FLTAR_RELPATH) - If Not FileExists($sFilePath) Then Return SetError(1, 1, "") - - ; Check for Default keyword - If $sMask = Default Then $sMask = "*" - If $iReturn = Default Then $iReturn = $FLTAR_FILESFOLDERS - If $iRecur = Default Then $iRecur = $FLTAR_NORECUR - If $iSort = Default Then $iSort = $FLTAR_NOSORT - If $iReturnPath = Default Then $iReturnPath = $FLTAR_RELPATH - - ; Check for valid recur value - If $iRecur > 1 Or Not IsInt($iRecur) Then Return SetError(1, 6, "") - - Local $bLongPath = False - ; Check for valid path - If StringLeft($sFilePath, 4) == "\\?\" Then - $bLongPath = True - EndIf - - Local $sFolderSlash = "" - ; Check if folders should have trailing \ and ensure that initial path does have one - If StringRight($sFilePath, 1) = "\" Then - $sFolderSlash = "\" - Else - $sFilePath = $sFilePath & "\" - EndIf - - Local $asFolderSearchList[100] = [1] - ; Add path to folder search list - $asFolderSearchList[1] = $sFilePath - - Local $iHide_HS = 0, _ - $sHide_HS = "" - ; Check for H or S omitted - If BitAND($iReturn, 4) Then - $iHide_HS += 2 - $sHide_HS &= "H" - $iReturn -= 4 - EndIf - If BitAND($iReturn, 8) Then - $iHide_HS += 4 - $sHide_HS &= "S" - $iReturn -= 8 - EndIf - - Local $iHide_Link = 0 - ; Check for link/junction omitted - If BitAND($iReturn, 16) Then - $iHide_Link = 0x400 - $iReturn -= 16 - EndIf - - Local $iMaxLevel = 0 - ; If required, determine \ count for max recursive level setting - If $iRecur < 0 Then - StringReplace($sFilePath, "\", "", 0, $STR_NOCASESENSEBASIC) - $iMaxLevel = @extended - $iRecur - EndIf - - Local $sExclude_List = "", $sExclude_List_Folder = "", $sInclude_List = "*" - ; Check mask parameter - Local $aMaskSplit = StringSplit($sMask, "|") - ; Check for multiple sections and set values - Switch $aMaskSplit[0] - Case 3 - $sExclude_List_Folder = $aMaskSplit[3] - ContinueCase - Case 2 - $sExclude_List = $aMaskSplit[2] - ContinueCase - Case 1 - $sInclude_List = $aMaskSplit[1] - EndSwitch - - Local $sInclude_File_Mask = ".+" - ; Create Include mask for files - If $sInclude_List <> "*" Then - If Not __FLTAR_ListToMask($sInclude_File_Mask, $sInclude_List) Then Return SetError(1, 2, "") - EndIf - - Local $sInclude_Folder_Mask = ".+" - ; Set Include mask for folders - Switch $iReturn - Case 0 - ; Folders affected by mask if not recursive - Switch $iRecur - Case 0 - ; Folders match mask for compatibility - $sInclude_Folder_Mask = $sInclude_File_Mask - EndSwitch - Case 2 - ; Folders affected by mask - $sInclude_Folder_Mask = $sInclude_File_Mask - EndSwitch - - Local $sExclude_File_Mask = ":" - ; Create Exclude List mask for files - If $sExclude_List <> "" Then - If Not __FLTAR_ListToMask($sExclude_File_Mask, $sExclude_List) Then Return SetError(1, 3, "") - EndIf - - Local $sExclude_Folder_Mask = ":" - ; Create Exclude mask for folders - If $iRecur Then - If $sExclude_List_Folder Then - If Not __FLTAR_ListToMask($sExclude_Folder_Mask, $sExclude_List_Folder) Then Return SetError(1, 4, "") - EndIf - ; If folders only - If $iReturn = 2 Then - ; Folders affected by normal mask - $sExclude_Folder_Mask = $sExclude_File_Mask - EndIf - Else - ; Folders affected by normal mask - $sExclude_Folder_Mask = $sExclude_File_Mask - EndIf - - ; Verify other parameters - If Not ($iReturn = 0 Or $iReturn = 1 Or $iReturn = 2) Then Return SetError(1, 5, "") - If Not ($iSort = 0 Or $iSort = 1 Or $iSort = 2) Then Return SetError(1, 7, "") - If Not ($iReturnPath = 0 Or $iReturnPath = 1 Or $iReturnPath = 2) Then Return SetError(1, 8, "") - - ; Prepare for DllCall if required - If $iHide_Link Then - Local $tFile_Data = DllStructCreate("struct;align 4;dword FileAttributes;uint64 CreationTime;uint64 LastAccessTime;uint64 LastWriteTime;" & _ - "dword FileSizeHigh;dword FileSizeLow;dword Reserved0;dword Reserved1;wchar FileName[260];wchar AlternateFileName[14];endstruct") - Local $hDLL = DllOpen('kernel32.dll'), $aDLL_Ret - EndIf - - Local $asReturnList[100] = [0] - Local $asFileMatchList = $asReturnList, $asRootFileMatchList = $asReturnList, $asFolderMatchList = $asReturnList - Local $bFolder = False, _ - $hSearch = 0, _ - $sCurrentPath = "", $sName = "", $sRetPath = "" - Local $iAttribs = 0, _ - $sAttribs = '' - Local $asFolderFileSectionList[100][2] = [[0, 0]] - ; Search within listed folders - While $asFolderSearchList[0] > 0 - - ; Set path to search - $sCurrentPath = $asFolderSearchList[$asFolderSearchList[0]] - ; Reduce folder search list count - $asFolderSearchList[0] -= 1 - ; Determine return path to add to file/folder name - Switch $iReturnPath - ; Case 0 ; Name only - ; Leave as "" - Case 1 ;Relative to initial path - $sRetPath = StringReplace($sCurrentPath, $sFilePath, "") - Case 2 ; Full path - If $bLongPath Then - $sRetPath = StringTrimLeft($sCurrentPath, 4) - Else - $sRetPath = $sCurrentPath - EndIf - EndSwitch - - ; Get search handle - use code matched to required listing - If $iHide_Link Then - ; Use DLL code - $aDLL_Ret = DllCall($hDLL, 'handle', 'FindFirstFileW', 'wstr', $sCurrentPath & "*", 'struct*', $tFile_Data) - If @error Or Not $aDLL_Ret[0] Then - ContinueLoop - EndIf - $hSearch = $aDLL_Ret[0] - Else - ; Use native code - $hSearch = FileFindFirstFile($sCurrentPath & "*") - ; If folder empty move to next in list - If $hSearch = -1 Then - ContinueLoop - EndIf - EndIf - - ; If sorting files and folders with paths then store folder name and position of associated files in list - If $iReturn = 0 And $iSort And $iReturnPath Then - __FLTAR_AddToList($asFolderFileSectionList, $sRetPath, $asFileMatchList[0] + 1) - EndIf - $sAttribs = '' - - ; Search folder - use code matched to required listing - While 1 - ; Use DLL code - If $iHide_Link Then - ; Use DLL code - $aDLL_Ret = DllCall($hDLL, 'int', 'FindNextFileW', 'handle', $hSearch, 'struct*', $tFile_Data) - ; Check for end of folder - If @error Or Not $aDLL_Ret[0] Then - ExitLoop - EndIf - ; Extract data - $sName = DllStructGetData($tFile_Data, "FileName") - ; Check for .. return - only returned by the DllCall - If $sName = ".." Then - ContinueLoop - EndIf - $iAttribs = DllStructGetData($tFile_Data, "FileAttributes") - ; Check for hidden/system attributes and skip if found - If $iHide_HS And BitAND($iAttribs, $iHide_HS) Then - ContinueLoop - EndIf - ; Check for link attribute and skip if found - If BitAND($iAttribs, $iHide_Link) Then - ContinueLoop - EndIf - ; Set subfolder flag - $bFolder = False - If BitAND($iAttribs, 16) Then - $bFolder = True - EndIf - Else - ; Reset folder flag - $bFolder = False - ; Use native code - $sName = FileFindNextFile($hSearch, 1) - ; Check for end of folder - If @error Then - ExitLoop - EndIf - $sAttribs = @extended - ; Check for folder - If StringInStr($sAttribs, "D") Then - $bFolder = True - EndIf - ; Check for Hidden/System - If StringRegExp($sAttribs, "[" & $sHide_HS & "]") Then - ContinueLoop - EndIf - EndIf - - ; If folder then check whether to add to search list - If $bFolder Then - Select - Case $iRecur < 0 ; Check recur depth - StringReplace($sCurrentPath, "\", "", 0, $STR_NOCASESENSEBASIC) - If @extended < $iMaxLevel Then - ContinueCase ; Check if matched to masks - EndIf - Case $iRecur = 1 ; Full recur - If Not StringRegExp($sName, $sExclude_Folder_Mask) Then ; Add folder unless excluded - __FLTAR_AddToList($asFolderSearchList, $sCurrentPath & $sName & "\") - EndIf - ; Case $iRecur = 0 ; Never add - ; Do nothing - EndSelect - EndIf - - If $iSort Then ; Save in relevant folders for later sorting - If $bFolder Then - If StringRegExp($sName, $sInclude_Folder_Mask) And Not StringRegExp($sName, $sExclude_Folder_Mask) Then - __FLTAR_AddToList($asFolderMatchList, $sRetPath & $sName & $sFolderSlash) - EndIf - Else - If StringRegExp($sName, $sInclude_File_Mask) And Not StringRegExp($sName, $sExclude_File_Mask) Then - ; Select required list for files - If $sCurrentPath = $sFilePath Then - __FLTAR_AddToList($asRootFileMatchList, $sRetPath & $sName) - Else - __FLTAR_AddToList($asFileMatchList, $sRetPath & $sName) - EndIf - EndIf - EndIf - Else ; Save directly in return list - If $bFolder Then - If $iReturn <> 1 And StringRegExp($sName, $sInclude_Folder_Mask) And Not StringRegExp($sName, $sExclude_Folder_Mask) Then - __FLTAR_AddToList($asReturnList, $sRetPath & $sName & $sFolderSlash) - EndIf - Else - If $iReturn <> 2 And StringRegExp($sName, $sInclude_File_Mask) And Not StringRegExp($sName, $sExclude_File_Mask) Then - __FLTAR_AddToList($asReturnList, $sRetPath & $sName) - EndIf - EndIf - EndIf - - WEnd - - ; Close current search - If $iHide_Link Then - DllCall($hDLL, 'int', 'FindClose', 'ptr', $hSearch) - Else - FileClose($hSearch) - EndIf - - WEnd - - ; Close the DLL if needed - If $iHide_Link Then - DllClose($hDLL) - EndIf - - ; Sort results if required - If $iSort Then - Switch $iReturn - Case 2 ; Folders only - ; Check if any folders found - If $asFolderMatchList[0] = 0 Then Return SetError(1, 9, "") - ; Correctly size folder match list - ReDim $asFolderMatchList[$asFolderMatchList[0] + 1] - ; Copy size folder match array - $asReturnList = $asFolderMatchList - ; Simple sort list - __ArrayDualPivotSort($asReturnList, 1, $asReturnList[0]) - Case 1 ; Files only - ; Check if any files found - If $asRootFileMatchList[0] = 0 And $asFileMatchList[0] = 0 Then Return SetError(1, 9, "") - If $iReturnPath = 0 Then ; names only so simple sort suffices - ; Combine file match lists - __FLTAR_AddFileLists($asReturnList, $asRootFileMatchList, $asFileMatchList) - ; Simple sort combined file list - __ArrayDualPivotSort($asReturnList, 1, $asReturnList[0]) - Else - ; Combine sorted file match lists - __FLTAR_AddFileLists($asReturnList, $asRootFileMatchList, $asFileMatchList, 1) - EndIf - Case 0 ; Both files and folders - ; Check if any root files or folders found - If $asRootFileMatchList[0] = 0 And $asFolderMatchList[0] = 0 Then Return SetError(1, 9, "") - If $iReturnPath = 0 Then ; names only so simple sort suffices - ; Combine file match lists - __FLTAR_AddFileLists($asReturnList, $asRootFileMatchList, $asFileMatchList) - ; Set correct count for folder add - $asReturnList[0] += $asFolderMatchList[0] - ; Resize and add file match array - ReDim $asFolderMatchList[$asFolderMatchList[0] + 1] - _ArrayConcatenate($asReturnList, $asFolderMatchList, 1) - ; Simple sort final list - __ArrayDualPivotSort($asReturnList, 1, $asReturnList[0]) - Else - ; Size return list - Local $asReturnList[$asFileMatchList[0] + $asRootFileMatchList[0] + $asFolderMatchList[0] + 1] - $asReturnList[0] = $asFileMatchList[0] + $asRootFileMatchList[0] + $asFolderMatchList[0] - ; Sort root file list - __ArrayDualPivotSort($asRootFileMatchList, 1, $asRootFileMatchList[0]) - ; Add the sorted root files at the top - For $i = 1 To $asRootFileMatchList[0] - $asReturnList[$i] = $asRootFileMatchList[$i] - Next - ; Set next insertion index - Local $iNextInsertionIndex = $asRootFileMatchList[0] + 1 - ; Sort folder list - __ArrayDualPivotSort($asFolderMatchList, 1, $asFolderMatchList[0]) - Local $sFolderToFind = "" - ; Work through folder list - For $i = 1 To $asFolderMatchList[0] - ; Add folder to return list - $asReturnList[$iNextInsertionIndex] = $asFolderMatchList[$i] - $iNextInsertionIndex += 1 - ; Format folder name for search - If $sFolderSlash Then - $sFolderToFind = $asFolderMatchList[$i] - Else - $sFolderToFind = $asFolderMatchList[$i] & "\" - EndIf - Local $iFileSectionEndIndex = 0, $iFileSectionStartIndex = 0 - ; Find folder in FolderFileSectionList - For $j = 1 To $asFolderFileSectionList[0][0] - ; If found then deal with files - If $sFolderToFind = $asFolderFileSectionList[$j][0] Then - ; Set file list indexes - $iFileSectionStartIndex = $asFolderFileSectionList[$j][1] - If $j = $asFolderFileSectionList[0][0] Then - $iFileSectionEndIndex = $asFileMatchList[0] - Else - $iFileSectionEndIndex = $asFolderFileSectionList[$j + 1][1] - 1 - EndIf - ; Sort files if required - If $iSort = 1 Then - __ArrayDualPivotSort($asFileMatchList, $iFileSectionStartIndex, $iFileSectionEndIndex) - EndIf - ; Add files to return list - For $k = $iFileSectionStartIndex To $iFileSectionEndIndex - $asReturnList[$iNextInsertionIndex] = $asFileMatchList[$k] - $iNextInsertionIndex += 1 - Next - ExitLoop - EndIf - Next - Next - EndIf - EndSwitch - Else ; No sort - ; Check if any file/folders have been added - If $asReturnList[0] = 0 Then Return SetError(1, 9, "") - ; Remove any unused return list elements from last ReDim - ReDim $asReturnList[$asReturnList[0] + 1] - - EndIf - - Return $asReturnList -EndFunc ;==>_FileListToArrayRec - -; #INTERNAL_USE_ONLY#============================================================================================================ -; Name...........: __FLTAR_AddFileLists -; Description ...: Add internal lists after resizing and optional sorting -; Syntax ........: __FLTAR_AddFileLists(ByRef $asTarget, $asSource_1, $asSource_2[, $iSort = 0]) -; Parameters ....: $asReturnList - Base list -; $asRootFileMatchList - First list to add -; $asFileMatchList - Second list to add -; $iSort - (Optional) Whether to sort lists before adding -; |$iSort = 0 (Default) No sort -; |$iSort = 1 Sort in descending alphabetical order -; Return values .: None - array modified ByRef -; Author ........: Melba23 -; Remarks .......: This function is used internally by _FileListToArrayRec -; =============================================================================================================================== -Func __FLTAR_AddFileLists(ByRef $asTarget, $asSource_1, $asSource_2, $iSort = 0) - ; Correctly size root file match array - ReDim $asSource_1[$asSource_1[0] + 1] - ; Simple sort root file match array if required - If $iSort = 1 Then __ArrayDualPivotSort($asSource_1, 1, $asSource_1[0]) - ; Copy root file match array - $asTarget = $asSource_1 - ; Add file match count - $asTarget[0] += $asSource_2[0] - ; Correctly size file match array - ReDim $asSource_2[$asSource_2[0] + 1] - ; Simple sort file match array if required - If $iSort = 1 Then __ArrayDualPivotSort($asSource_2, 1, $asSource_2[0]) - ; Add file match array - _ArrayConcatenate($asTarget, $asSource_2, 1) -EndFunc ;==>__FLTAR_AddFileLists - -; #INTERNAL_USE_ONLY#============================================================================================================ -; Name...........: __FLTAR_AddToList -; Description ...: Add element to [?] or [?][2] list which is resized if necessary -; Syntax ........: __FLTAR_AddToList(ByRef $asList, $vValue_0, [$vValue_1]) -; Parameters ....: $aList - List to be added to -; $vValue_0 - Value to add to array - if $vValue_1 exists value added to [?][0] element in [?][2] array -; $vValue_1 - Value to add to [?][1] element in [?][2] array (optional) -; Return values .: None - array modified ByRef -; Author ........: Melba23 -; Remarks .......: This function is used internally by _FileListToArrayRec -; =============================================================================================================================== -Func __FLTAR_AddToList(ByRef $aList, $vValue_0, $vValue_1 = -1) - If $vValue_1 = -1 Then ; [?] array - ; Increase list count - $aList[0] += 1 - ; Double list size if too small (fewer ReDim needed) - If UBound($aList) <= $aList[0] Then ReDim $aList[UBound($aList) * 2] - ; Add value - $aList[$aList[0]] = $vValue_0 - Else ; [?][2] array - $aList[0][0] += 1 - If UBound($aList) <= $aList[0][0] Then ReDim $aList[UBound($aList) * 2][2] - $aList[$aList[0][0]][0] = $vValue_0 - $aList[$aList[0][0]][1] = $vValue_1 - EndIf -EndFunc ;==>__FLTAR_AddToList - -; #INTERNAL_USE_ONLY#============================================================================================================ -; Name...........: __FLTAR_ListToMask -; Description ...: Convert include/exclude lists to SRE format -; Syntax ........: __FLTAR_ListToMask(ByRef $sMask, $sList) -; Parameters ....: $asMask - Include/Exclude mask to create -; $asList - Include/Exclude list to convert -; Return values .: Success: 1 -; Failure: 0 -; Author ........: SRE patterns developed from those posted by various forum members and Spiff59 in particular -; Remarks .......: This function is used internally by _FileListToArrayRec -; =============================================================================================================================== -Func __FLTAR_ListToMask(ByRef $sMask, $sList) - ; Check for invalid characters within list - If StringRegExp($sList, "\\|/|:|\<|\>|\|") Then Return 0 - ; Strip WS and insert | for ; - $sList = StringReplace(StringStripWS(StringRegExpReplace($sList, "\s*;\s*", ";"), $STR_STRIPLEADING + $STR_STRIPTRAILING), ";", "|") - ; Convert to SRE pattern - $sList = StringReplace(StringReplace(StringRegExpReplace($sList, "[][$^.{}()+\-]", "\\$0"), "?", "."), "*", ".*?") - ; Add prefix and suffix - $sMask = "(?i)^(" & $sList & ")\z" - Return 1 -EndFunc ;==>__FLTAR_ListToMask - -; #FUNCTION# ==================================================================================================================== -; Author ........: erifash -; Modified.......: guinness - Use the native ShellExecute function. -; =============================================================================================================================== -Func _FilePrint($sFilePath, $iShow = @SW_HIDE) - If $iShow = Default Then $iShow = @SW_HIDE - Return ShellExecute($sFilePath, "", @WorkingDir, "print", $iShow) -EndFunc ;==>_FilePrint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jonathan Bennett , Valik - Support Windows Unix and Mac line separator -; Modified ......: Jpm - fixed empty line at the end, Gary Fixed file contains only 1 line, guinness - Optional flag to return the array count. -; : Melba23 - Read to 1D/2D arrays, guinness & jchd - Removed looping through 1D array with $FRTA_COUNT flag. -; =============================================================================================================================== -Func _FileReadToArray($sFilePath, ByRef $vReturn, $iFlags = $FRTA_COUNT, $sDelimiter = "") - ; Clear the previous contents - $vReturn = 0 - - If $iFlags = Default Then $iFlags = $FRTA_COUNT - If $sDelimiter = Default Then $sDelimiter = "" - - ; Set "array of arrays" flag - Local $bExpand = True - If BitAND($iFlags, $FRTA_INTARRAYS) Then - $bExpand = False - $iFlags -= $FRTA_INTARRAYS - EndIf - ; Set delimiter flag - Local $iEntire = $STR_CHRSPLIT - If BitAND($iFlags, $FRTA_ENTIRESPLIT) Then - $iEntire = $STR_ENTIRESPLIT - $iFlags -= $FRTA_ENTIRESPLIT - EndIf - ; Set row count and split count flags - Local $iNoCount = 0 - If $iFlags <> $FRTA_COUNT Then - $iFlags = $FRTA_NOCOUNT - $iNoCount = $STR_NOCOUNT - EndIf - - ; Check delimiter - If $sDelimiter Then - ; Read file into an array - Local $aLines = FileReadToArray($sFilePath) - If @error Then Return SetError(@error, 0, 0) - - ; Get first dimension and add count if required - Local $iDim_1 = UBound($aLines) + $iFlags - ; Check type of return array - If $bExpand Then ; All lines have same number of fields - ; Count fields in first line - Local $iDim_2 = UBound(StringSplit($aLines[0], $sDelimiter, $iEntire + $STR_NOCOUNT)) - ; Size array - Local $aTemp_Array[$iDim_1][$iDim_2] - ; Declare the variables - Local $iFields, _ - $aSplit - ; Loop through the lines - For $i = 0 To $iDim_1 - $iFlags - 1 - ; Split each line as required - $aSplit = StringSplit($aLines[$i], $sDelimiter, $iEntire + $STR_NOCOUNT) - ; Count the items - $iFields = UBound($aSplit) - If $iFields <> $iDim_2 Then - ; Return error - Return SetError(3, 0, 0) - EndIf - ; Fill this line of the array - For $j = 0 To $iFields - 1 - $aTemp_Array[$i + $iFlags][$j] = $aSplit[$j] - Next - Next - ; Check at least 2 columns - If $iDim_2 < 2 Then Return SetError(4, 0, 0) - ; Set dimension count - If $iFlags Then - $aTemp_Array[0][0] = $iDim_1 - $iFlags - $aTemp_Array[0][1] = $iDim_2 - EndIf - Else ; Create "array of arrays" - ; Size array - Local $aTemp_Array[$iDim_1] - ; Loop through the lines - For $i = 0 To $iDim_1 - $iFlags - 1 - ; Split each line as required - $aTemp_Array[$i + $iFlags] = StringSplit($aLines[$i], $sDelimiter, $iEntire + $iNoCount) - Next - ; Set dimension count - If $iFlags Then - $aTemp_Array[0] = $iDim_1 - $iFlags - EndIf - EndIf - ; Return the array - $vReturn = $aTemp_Array - Else ; 1D - If $iFlags Then - Local $hFileOpen = FileOpen($sFilePath, $FO_READ) - If $hFileOpen = -1 Then Return SetError(1, 0, 0) - Local $sFileRead = FileRead($hFileOpen) - FileClose($hFileOpen) - - If StringLen($sFileRead) Then - $vReturn = StringRegExp(@LF & $sFileRead, "(?|(\N+)\z|(\N*)(?:\R))", 3) - $vReturn[0] = UBound($vReturn) - 1 - Else - Return SetError(2, 0, 0) - EndIf - Else - $vReturn = FileReadToArray($sFilePath) - If @error Then - $vReturn = 0 - Return SetError(@error, 0, 0) - EndIf - EndIf - - EndIf - Return 1 -EndFunc ;==>_FileReadToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: Updated for file handles by PsaltyDS, @error = 4 msg and 2-dimension capability added by Spiff59 and fixed by guinness. -; =============================================================================================================================== -Func _FileWriteFromArray($sFilePath, Const ByRef $aArray, $iBase = Default, $iUBound = Default, $sDelimiter = "|") - Local $iReturn = 0 - ; Check if we have a valid array as an input. - If Not IsArray($aArray) Then Return SetError(2, 0, $iReturn) - - ; Check the number of dimensions is no greater than a 2d array. - Local $iDims = UBound($aArray, $UBOUND_DIMENSIONS) - If $iDims > 2 Then Return SetError(4, 0, 0) - - ; Determine last entry of the array. - Local $iLast = UBound($aArray) - 1 - If $iUBound = Default Or $iUBound > $iLast Then $iUBound = $iLast - If $iBase < 0 Or $iBase = Default Then $iBase = 0 - If $iBase > $iUBound Then Return SetError(5, 0, $iReturn) - If $sDelimiter = Default Then $sDelimiter = "|" - - ; Open output file for overwrite by default, or use input file handle if passed. - Local $hFileOpen = $sFilePath - If IsString($sFilePath) Then - $hFileOpen = FileOpen($sFilePath, $FO_OVERWRITE) - If $hFileOpen = -1 Then Return SetError(1, 0, $iReturn) - EndIf - - ; Write array data to file. - Local $iError = 0 - $iReturn = 1 ; Set the return value to true. - Switch $iDims - Case 1 - For $i = $iBase To $iUBound - If Not FileWrite($hFileOpen, $aArray[$i] & @CRLF) Then - $iError = 3 - $iReturn = 0 - ExitLoop - EndIf - Next - Case 2 - Local $sTemp = "" - For $i = $iBase To $iUBound - $sTemp = $aArray[$i][0] - For $j = 1 To UBound($aArray, $UBOUND_COLUMNS) - 1 - $sTemp &= $sDelimiter & $aArray[$i][$j] - Next - If Not FileWrite($hFileOpen, $sTemp & @CRLF) Then - $iError = 3 - $iReturn = 0 - ExitLoop - EndIf - Next - EndSwitch - - ; Close file only if specified by a string path. - If IsString($sFilePath) Then FileClose($hFileOpen) - - ; Return the results. - Return SetError($iError, 0, $iReturn) -EndFunc ;==>_FileWriteFromArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jeremy Landes -; Modified.......: MrCreatoR - added $iFlag parameter -; =============================================================================================================================== -Func _FileWriteLog($sLogPath, $sLogMsg, $iFlag = -1) - Local $iOpenMode = $FO_APPEND - - Local $sDateNow = @YEAR & "-" & @MON & "-" & @MDAY - Local $sTimeNow = @HOUR & ":" & @MIN & ":" & @SEC - Local $sMsg = $sDateNow & " " & $sTimeNow & " : " & $sLogMsg - - If $iFlag = Default Then $iFlag = -1 - If $iFlag <> -1 Then - $iOpenMode = $FO_OVERWRITE - $sMsg &= @CRLF & FileRead($sLogPath) - EndIf - - ; Open output file for appending to the end/overwriting, or use input file handle if passed - Local $hFileOpen = $sLogPath - If IsString($sLogPath) Then - $hFileOpen = FileOpen($sLogPath, $iOpenMode) - EndIf - If $hFileOpen = -1 Then Return SetError(1, 0, 0) - - Local $iReturn = FileWriteLine($hFileOpen, $sMsg) - - ; Close file only if specified by a string path - If IsString($sLogPath) Then $iReturn = FileClose($hFileOpen) - If $iReturn <= 0 Then Return SetError(2, $iReturn, 0) - Return $iReturn -EndFunc ;==>_FileWriteLog - -; #FUNCTION# ==================================================================================================================== -; Author ........: cdkid -; Modified.......: partypooper, MrCreatoR -; =============================================================================================================================== -Func _FileWriteToLine($sFilePath, $iLine, $sText, $bOverWrite = False) - If $iLine <= 0 Then Return SetError(4, 0, 0) - If Not IsString($sText) Then - $sText = String($sText) - If $sText = "" Then Return SetError(6, 0, 0) - EndIf - If $bOverWrite = Default Then $bOverWrite = False - If Not (IsBool($bOverWrite) Or $bOverWrite = 0 Or $bOverWrite = 1) Then Return SetError(5, 0, 0) ; For old versions. - If Not FileExists($sFilePath) Then Return SetError(2, 0, 0) - - Local $aArray = FileReadToArray($sFilePath) - Local $iUBound = UBound($aArray) - 1 - If ($iUBound + 1) < $iLine Then Return SetError(1, 0, 0) - - Local $hFileOpen = FileOpen($sFilePath, FileGetEncoding($sFilePath) + $FO_OVERWRITE) - If $hFileOpen = -1 Then Return SetError(3, 0, 0) - - Local $sData = "" - $iLine -= 1 ; Now the array is 0-based, so reduce the line number by 1. - For $i = 0 To $iUBound - If $i = $iLine Then - If $bOverWrite Then - If $sText Then $sData &= $sText & @CRLF - Else - $sData &= $sText & @CRLF & $aArray[$i] & @CRLF - EndIf - ElseIf $i < $iUBound Then - $sData &= $aArray[$i] & @CRLF - ElseIf $i = $iUBound Then - $sData &= $aArray[$i] - EndIf - Next - - FileWrite($hFileOpen, $sData) - FileClose($hFileOpen) - Return 1 -EndFunc ;==>_FileWriteToLine - -; #FUNCTION# ==================================================================================================================== -; Author ........: Valik (Original function and modification to rewrite), tittoproject (Rewrite) -; Modified.......: -; =============================================================================================================================== -Func _PathFull($sRelativePath, $sBasePath = @WorkingDir) - If Not $sRelativePath Or $sRelativePath = "." Then Return $sBasePath - - ; Normalize slash direction. - Local $sFullPath = StringReplace($sRelativePath, "/", "\") ; Holds the full path (later, minus the root) - Local Const $sFullPathConst = $sFullPath ; Holds a constant version of the full path. - Local $sPath ; Holds the root drive/server - Local $bRootOnly = StringLeft($sFullPath, 1) = "\" And StringMid($sFullPath, 2, 1) <> "\" - - If $sBasePath = Default Then $sBasePath = @WorkingDir - - ; Check for UNC paths or local drives. We run this twice at most. The - ; first time, we check if the relative path is absolute. If it's not, then - ; we use the base path which should be absolute. - For $i = 1 To 2 - $sPath = StringLeft($sFullPath, 2) - If $sPath = "\\" Then - $sFullPath = StringTrimLeft($sFullPath, 2) - Local $nServerLen = StringInStr($sFullPath, "\") - 1 - $sPath = "\\" & StringLeft($sFullPath, $nServerLen) - $sFullPath = StringTrimLeft($sFullPath, $nServerLen) - ExitLoop - ElseIf StringRight($sPath, 1) = ":" Then - $sFullPath = StringTrimLeft($sFullPath, 2) - ExitLoop - Else - $sFullPath = $sBasePath & "\" & $sFullPath - EndIf - Next - - ; If this happens, we've found a funky path and don't know what to do - ; except for get out as fast as possible. We've also screwed up our - ; variables so we definitely need to quit. - ; If $i = 3 Then Return "" - - ; A path with a drive but no slash (e.g. C:Path\To\File) has the following - ; behavior. If the relative drive is the same as the $BasePath drive then - ; insert the base path. If the drives differ then just insert a leading - ; slash to make the path valid. - If StringLeft($sFullPath, 1) <> "\" Then - If StringLeft($sFullPathConst, 2) = StringLeft($sBasePath, 2) Then - $sFullPath = $sBasePath & "\" & $sFullPath - Else - $sFullPath = "\" & $sFullPath - EndIf - EndIf - - ; Build an array of the path parts we want to use. - Local $aTemp = StringSplit($sFullPath, "\") - Local $aPathParts[$aTemp[0]], $j = 0 - For $i = 2 To $aTemp[0] - If $aTemp[$i] = ".." Then - If $j Then $j -= 1 - ElseIf Not ($aTemp[$i] = "" And $i <> $aTemp[0]) And $aTemp[$i] <> "." Then - $aPathParts[$j] = $aTemp[$i] - $j += 1 - EndIf - Next - - ; Here we re-build the path from the parts above. We skip the - ; loop if we are only returning the root. - $sFullPath = $sPath - If Not $bRootOnly Then - For $i = 0 To $j - 1 - $sFullPath &= "\" & $aPathParts[$i] - Next - Else - $sFullPath &= $sFullPathConst - ; If we detect more relative parts, remove them by calling ourself recursively. - If StringInStr($sFullPath, "..") Then $sFullPath = _PathFull($sFullPath) - EndIf - - ; Clean up the path. - Do - $sFullPath = StringReplace($sFullPath, ".\", "\") - Until @extended = 0 - Return $sFullPath -EndFunc ;==>_PathFull - -; #FUNCTION# ==================================================================================================================== -; Author ........: Erik Pilsits -; Modified.......: -; =============================================================================================================================== -Func _PathGetRelative($sFrom, $sTo) - If StringRight($sFrom, 1) <> "\" Then $sFrom &= "\" ; add missing trailing \ to $sFrom path - If StringRight($sTo, 1) <> "\" Then $sTo &= "\" ; add trailing \ to $sTo - If $sFrom = $sTo Then Return SetError(1, 0, StringTrimRight($sTo, 1)) ; $sFrom equals $sTo - Local $asFrom = StringSplit($sFrom, "\") - Local $asTo = StringSplit($sTo, "\") - If $asFrom[1] <> $asTo[1] Then Return SetError(2, 0, StringTrimRight($sTo, 1)) ; drives are different, rel path not possible - ; create rel path - Local $i = 2 - Local $iDiff = 1 - While 1 - If $asFrom[$i] <> $asTo[$i] Then - $iDiff = $i - ExitLoop - EndIf - $i += 1 - WEnd - $i = 1 - Local $sRelPath = "" - For $j = 1 To $asTo[0] - If $i >= $iDiff Then - $sRelPath &= "\" & $asTo[$i] - EndIf - $i += 1 - Next - $sRelPath = StringTrimLeft($sRelPath, 1) - $i = 1 - For $j = 1 To $asFrom[0] - If $i > $iDiff Then - $sRelPath = "..\" & $sRelPath - EndIf - $i += 1 - Next - If StringRight($sRelPath, 1) == "\" Then $sRelPath = StringTrimRight($sRelPath, 1) ; remove trailing \ - Return $sRelPath -EndFunc ;==>_PathGetRelative - -; #FUNCTION# ==================================================================================================================== -; Author ........: Valik -; Modified.......: guinness -; =============================================================================================================================== -Func _PathMake($sDrive, $sDir, $sFileName, $sExtension) - ; Format $sDrive, if it's not a UNC server name, then just get the drive letter and add a colon - If StringLen($sDrive) Then - If Not (StringLeft($sDrive, 2) = "\\") Then $sDrive = StringLeft($sDrive, 1) & ":" - EndIf - - ; Format the directory by adding any necessary slashes - If StringLen($sDir) Then - If Not (StringRight($sDir, 1) = "\") And Not (StringRight($sDir, 1) = "/") Then $sDir = $sDir & "\" - Else - $sDir = "\" - EndIf - - If StringLen($sDir) Then - ; Append a backslash to the start of the directory if required - If Not (StringLeft($sDir, 1) = "\") And Not (StringLeft($sDir, 1) = "/") Then $sDir = "\" & $sDir - EndIf - - ; Nothing to be done for the filename - - ; Add the period to the extension if necessary - If StringLen($sExtension) Then - If Not (StringLeft($sExtension, 1) = ".") Then $sExtension = "." & $sExtension - EndIf - - Return $sDrive & $sDir & $sFileName & $sExtension -EndFunc ;==>_PathMake - -; #FUNCTION# ==================================================================================================================== -; Author ........: Valik -; Modified.......: DXRW4E - Re-wrote to use a regular expression; guinness - Update syntax and structure. -; =============================================================================================================================== -Func _PathSplit($sFilePath, ByRef $sDrive, ByRef $sDir, ByRef $sFileName, ByRef $sExtension) - Local $aArray = StringRegExp($sFilePath, "^\h*((?:\\\\\?\\)*(\\\\[^\?\/\\]+|[A-Za-z]:)?(.*[\/\\]\h*)?((?:[^\.\/\\]|(?(?=\.[^\/\\]*\.)\.))*)?([^\/\\]*))$", $STR_REGEXPARRAYMATCH) - If @error Then ; This error should never happen. - ReDim $aArray[5] - $aArray[0] = $sFilePath - EndIf - $sDrive = $aArray[1] - If StringLeft($aArray[2], 1) == "/" Then - $sDir = StringRegExpReplace($aArray[2], "\h*[\/\\]+\h*", "\/") - Else - $sDir = StringRegExpReplace($aArray[2], "\h*[\/\\]+\h*", "\\") - EndIf - $aArray[2] = $sDir - $sFileName = $aArray[3] - $sExtension = $aArray[4] - Return $aArray -EndFunc ;==>_PathSplit - -; #FUNCTION# ==================================================================================================================== -; Author ........: Kurt (aka /dev/null) and JdeB -; Modified ......: guinness - Re-wrote the function entirely for improvements in readability. -; =============================================================================================================================== -Func _ReplaceStringInFile($sFilePath, $sSearchString, $sReplaceString, $iCaseSensitive = 0, $iOccurance = 1) - If StringInStr(FileGetAttrib($sFilePath), "R") Then Return SetError(1, 0, -1) - - ; Open the file for reading. - Local $hFileOpen = FileOpen($sFilePath, $FO_READ) - If $hFileOpen = -1 Then Return SetError(2, 0, -1) - - ; Read the contents of the file and stores in a variable - Local $sFileRead = FileRead($hFileOpen) - FileClose($hFileOpen) ; Close the open file after reading - - ; Set the default parameters - If $iCaseSensitive = Default Then $iCaseSensitive = 0 - If $iOccurance = Default Then $iOccurance = 1 - - ; Replace strings - $sFileRead = StringReplace($sFileRead, $sSearchString, $sReplaceString, 1 - $iOccurance, $iCaseSensitive) - Local $iReturn = @extended - - ; If there are replacements then overwrite the file - If $iReturn Then - ; Retrieve the file encoding - Local $iFileEncoding = FileGetEncoding($sFilePath) - - ; Open the file for writing and set the overwrite flag - $hFileOpen = FileOpen($sFilePath, $iFileEncoding + $FO_OVERWRITE) - If $hFileOpen = -1 Then Return SetError(3, 0, -1) - - ; Write to the open file - FileWrite($hFileOpen, $sFileRead) - FileClose($hFileOpen) ; Close the open file after writing - EndIf - Return $iReturn -EndFunc ;==>_ReplaceStringInFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale (Klaatu) Thompson -; Modified.......: Hans Harder - Added Optional parameters, guinness - Fixed using non-supported characters in the file prefix. -; =============================================================================================================================== -Func _TempFile($sDirectoryName = @TempDir, $sFilePrefix = "~", $sFileExtension = ".tmp", $iRandomLength = 7) - ; Check parameters for the Default keyword or they meet a certain criteria - If $iRandomLength = Default Or $iRandomLength <= 0 Then $iRandomLength = 7 - If $sDirectoryName = Default Or (Not FileExists($sDirectoryName)) Then $sDirectoryName = @TempDir - If $sFileExtension = Default Then $sFileExtension = ".tmp" - If $sFilePrefix = Default Then $sFilePrefix = "~" - - ; Check if the directory exists or use the current script directory - If Not FileExists($sDirectoryName) Then $sDirectoryName = @ScriptDir - - ; Remove the appending backslash - $sDirectoryName = StringRegExpReplace($sDirectoryName, "[\\/]+$", "") - ; Remove the initial dot (.) from the file extension - $sFileExtension = StringRegExpReplace($sFileExtension, "^\.+", "") - ; Remove any non-supported characters in the file prefix - $sFilePrefix = StringRegExpReplace($sFilePrefix, '[\\/:*?"<>|]', "") - - ; Create the temporary file path without writing to the selected directory - Local $sTempName = "" - Do - ; Create a random filename - $sTempName = "" - While StringLen($sTempName) < $iRandomLength - $sTempName &= Chr(Random(97, 122, 1)) - WEnd - ; Temporary filepath - $sTempName = $sDirectoryName & "\" & $sFilePrefix & $sTempName & "." & $sFileExtension - Until Not FileExists($sTempName) ; Exit the loop if no file with the same name is present - Return $sTempName -EndFunc ;==>_TempFile diff --git a/build/Include/FileConstants.au3 b/build/Include/FileConstants.au3 deleted file mode 100644 index 3515b9d51..000000000 --- a/build/Include/FileConstants.au3 +++ /dev/null @@ -1,152 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: File_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script when using File functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Indicates file copy and install options -Global Const $FC_NOOVERWRITE = 0 ; Do not overwrite existing files (default) -Global Const $FC_OVERWRITE = 1 ; Overwrite existing files -Global Const $FC_CREATEPATH = 8 ; Create destination directory structure if it doesn't exist - -; Indicates file date and time options -Global Const $FT_MODIFIED = 0 ; Date and time file was last modified (default) -Global Const $FT_CREATED = 1 ; Date and time file was created -Global Const $FT_ACCESSED = 2 ; Date and time file was last accessed - -; FileGetTime Constants -Global Const $FT_ARRAY = 0 -Global Const $FT_STRING = 1 - -; FileSelectFolder Constants -Global Const $FSF_CREATEBUTTON = 1 -Global Const $FSF_NEWDIALOG = 2 -Global Const $FSF_EDITCONTROL = 4 - -; FileSetTime, FileSetAttrib -Global Const $FT_NONRECURSIVE = 0 -Global Const $FT_RECURSIVE = 1 - -; Indicates the mode to open a file -Global Const $FO_READ = 0 ; Read mode -Global Const $FO_APPEND = 1 ; Write mode (append) -Global Const $FO_OVERWRITE = 2 ; Write mode (erase previous contents) -Global Const $FO_CREATEPATH = 8 ; Create directory structure if it doesn't exist -Global Const $FO_BINARY = 16 ; Read/Write mode binary -Global Const $FO_UNICODE = 32 ; Write mode Unicode UTF16-LE -Global Const $FO_UTF16_LE = 32 ; Write mode Unicode UTF16-LE -Global Const $FO_UTF16_BE = 64 ; Write mode Unicode UTF16-BE -Global Const $FO_UTF8 = 128 ; Read/Write mode UTF8 with BOM -Global Const $FO_UTF8_NOBOM = 256 ; Read/Write mode UTF8 with no BOM -Global Const $FO_ANSI = 512 ; Read/Write mode ANSI -Global Const $FO_UTF16_LE_NOBOM = 1024 ; Write mode Unicode UTF16-LE with no BOM -Global Const $FO_UTF16_BE_NOBOM = 2048 ; Write mode Unicode UTF16-BE with no BOM -Global Const $FO_UTF8_FULL = 16384 ; Use full file UTF8 detection if no BOM present -Global Const $FO_FULLFILE_DETECT = 16384 ; Use full file UTF8 detection if no BOM present - -; Indicates file read options -Global Const $EOF = -1 ; End-of-file reached - -; Indicates file open and save dialog options -Global Const $FD_FILEMUSTEXIST = 1 ; File must exist -Global Const $FD_PATHMUSTEXIST = 2 ; Path must exist -Global Const $FD_MULTISELECT = 4 ; Allow multi-select -Global Const $FD_PROMPTCREATENEW = 8 ; Prompt to create new file -Global Const $FD_PROMPTOVERWRITE = 16 ; Prompt to overWrite file - -Global Const $CREATE_NEW = 1 -Global Const $CREATE_ALWAYS = 2 -Global Const $OPEN_EXISTING = 3 -Global Const $OPEN_ALWAYS = 4 -Global Const $TRUNCATE_EXISTING = 5 - -Global Const $INVALID_SET_FILE_POINTER = -1 - -; Indicates starting point for the file pointer move operations -Global Const $FILE_BEGIN = 0 -Global Const $FILE_CURRENT = 1 -Global Const $FILE_END = 2 - -Global Const $FILE_ATTRIBUTE_READONLY = 0x00000001 -Global Const $FILE_ATTRIBUTE_HIDDEN = 0x00000002 -Global Const $FILE_ATTRIBUTE_SYSTEM = 0x00000004 -Global Const $FILE_ATTRIBUTE_DIRECTORY = 0x00000010 -Global Const $FILE_ATTRIBUTE_ARCHIVE = 0x00000020 -Global Const $FILE_ATTRIBUTE_DEVICE = 0x00000040 -Global Const $FILE_ATTRIBUTE_NORMAL = 0x00000080 -Global Const $FILE_ATTRIBUTE_TEMPORARY = 0x00000100 -Global Const $FILE_ATTRIBUTE_SPARSE_FILE = 0x00000200 -Global Const $FILE_ATTRIBUTE_REPARSE_POINT = 0x00000400 -Global Const $FILE_ATTRIBUTE_COMPRESSED = 0x00000800 -Global Const $FILE_ATTRIBUTE_OFFLINE = 0x00001000 -Global Const $FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 0x00002000 -Global Const $FILE_ATTRIBUTE_ENCRYPTED = 0x00004000 - -Global Const $FILE_SHARE_READ = 0x00000001 -Global Const $FILE_SHARE_WRITE = 0x00000002 -Global Const $FILE_SHARE_DELETE = 0x00000004 -Global Const $FILE_SHARE_READWRITE = BitOR($FILE_SHARE_READ, $FILE_SHARE_WRITE) -Global Const $FILE_SHARE_ANY = BitOR($FILE_SHARE_READ, $FILE_SHARE_WRITE, $FILE_SHARE_DELETE) - -Global Const $GENERIC_ALL = 0x10000000 -Global Const $GENERIC_EXECUTE = 0x20000000 -Global Const $GENERIC_WRITE = 0x40000000 -Global Const $GENERIC_READ = 0x80000000 -Global Const $GENERIC_READWRITE = BitOR($GENERIC_READ, $GENERIC_WRITE) - -; FileGetEncoding Constants -Global Const $FILE_ENCODING_UTF16LE = 32 - -Global Const $FE_ENTIRE_UTF8 = 1 -Global Const $FE_PARTIALFIRST_UTF8 = 2 - -; FileGetLongName and FileGetShortName -Global Const $FN_FULLPATH = 0 -Global Const $FN_RELATIVEPATH = 1 - -; FileGetVersion Constants _WinAPI_VerQueryValue, _WinAPI_VerQueryValueEx -Global Const $FV_COMMENTS = "Comments" -Global Const $FV_COMPANYNAME = "CompanyName" -Global Const $FV_FILEDESCRIPTION = "FileDescription" -Global Const $FV_FILEVERSION = "FileVersion" -Global Const $FV_INTERNALNAME = "InternalName" -Global Const $FV_LEGALCOPYRIGHT = "LegalCopyright" -Global Const $FV_LEGALTRADEMARKS = "LegalTrademarks" -Global Const $FV_ORIGINALFILENAME = "OriginalFilename" -Global Const $FV_PRODUCTNAME = "ProductName" -Global Const $FV_PRODUCTVERSION = "ProductVersion" -Global Const $FV_PRIVATEBUILD = "PrivateBuild" -Global Const $FV_SPECIALBUILD = "SpecialBuild" - -; Indicates _FileReadToArray modes -Global Const $FRTA_NOCOUNT = 0 -Global Const $FRTA_COUNT = 1 -Global Const $FRTA_INTARRAYS = 2 -Global Const $FRTA_ENTIRESPLIT = 4 - -; Indicates _FileListToArray modes -Global Const $FLTA_FILESFOLDERS = 0 -Global Const $FLTA_FILES = 1 -Global Const $FLTA_FOLDERS = 2 - -; Indicates _FileListToArrayRec modes -Global Const $FLTAR_FILESFOLDERS = 0 -Global Const $FLTAR_FILES = 1 -Global Const $FLTAR_FOLDERS = 2 -Global Const $FLTAR_NOHIDDEN = 4 -Global Const $FLTAR_NOSYSTEM = 8 -Global Const $FLTAR_NOLINK = 16 -Global Const $FLTAR_NORECUR = 0 -Global Const $FLTAR_RECUR = 1 -Global Const $FLTAR_NOSORT = 0 -Global Const $FLTAR_SORT = 1 -Global Const $FLTAR_FASTSORT = 2 -Global Const $FLTAR_NOPATH = 0 -Global Const $FLTAR_RELPATH = 1 -Global Const $FLTAR_FULLPATH = 2 -; =============================================================================================================================== diff --git a/build/Include/FontConstants.au3 b/build/Include/FontConstants.au3 deleted file mode 100644 index 3ad54a79e..000000000 --- a/build/Include/FontConstants.au3 +++ /dev/null @@ -1,105 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Font_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for Font functions. -; Author(s) .....: Gary Frost -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; fonts -Global Const $FW_DONTCARE = 0 -Global Const $FW_THIN = 100 -Global Const $FW_EXTRALIGHT = 200 -Global Const $FW_ULTRALIGHT = 200 -Global Const $FW_LIGHT = 300 -Global Const $FW_NORMAL = 400 -Global Const $FW_REGULAR = 400 -Global Const $FW_MEDIUM = 500 -Global Const $FW_SEMIBOLD = 600 -Global Const $FW_DEMIBOLD = 600 -Global Const $FW_BOLD = 700 -Global Const $FW_EXTRABOLD = 800 -Global Const $FW_ULTRABOLD = 800 -Global Const $FW_HEAVY = 900 -Global Const $FW_BLACK = 900 - -; Font Dialog constants -Global Const $CF_EFFECTS = 0x100 -Global Const $CF_PRINTERFONTS = 0x2 -Global Const $CF_SCREENFONTS = 0x1 -Global Const $CF_NOSCRIPTSEL = 0x800000 -Global Const $CF_INITTOLOGFONTSTRUCT = 0x40 -Global Const $LOGPIXELSX = 88 -Global Const $LOGPIXELSY = 90 - -; Font Char sets -Global Const $ANSI_CHARSET = 0 -Global Const $ARABIC_CHARSET = 178 -Global Const $BALTIC_CHARSET = 186 -Global Const $CHINESEBIG5_CHARSET = 136 -Global Const $DEFAULT_CHARSET = 1 -Global Const $EASTEUROPE_CHARSET = 238 -Global Const $GB2312_CHARSET = 134 -Global Const $GREEK_CHARSET = 161 -Global Const $HANGEUL_CHARSET = 129 -Global Const $HEBREW_CHARSET = 177 -Global Const $JOHAB_CHARSET = 130 -Global Const $MAC_CHARSET = 77 -Global Const $OEM_CHARSET = 255 -Global Const $RUSSIAN_CHARSET = 204 -Global Const $SHIFTJIS_CHARSET = 128 -Global Const $SYMBOL_CHARSET = 2 -Global Const $THAI_CHARSET = 222 -Global Const $TURKISH_CHARSET = 162 -Global Const $VIETNAMESE_CHARSET = 163 - -; Font Output Precision -Global Const $OUT_CHARACTER_PRECIS = 2 -Global Const $OUT_DEFAULT_PRECIS = 0 -Global Const $OUT_DEVICE_PRECIS = 5 -Global Const $OUT_OUTLINE_PRECIS = 8 -Global Const $OUT_PS_ONLY_PRECIS = 10 -Global Const $OUT_RASTER_PRECIS = 6 -Global Const $OUT_STRING_PRECIS = 1 -Global Const $OUT_STROKE_PRECIS = 3 -Global Const $OUT_TT_ONLY_PRECIS = 7 -Global Const $OUT_TT_PRECIS = 4 - -; Font clipping precision -Global Const $CLIP_CHARACTER_PRECIS = 1 -Global Const $CLIP_DEFAULT_PRECIS = 0 -Global Const $CLIP_DFA_DISABLE = 0x0030 -Global Const $CLIP_EMBEDDED = 128 -Global Const $CLIP_LH_ANGLES = 16 -Global Const $CLIP_MASK = 0xF -Global Const $CLIP_DFA_OVERRIDE = 0x0040 -Global Const $CLIP_STROKE_PRECIS = 2 -Global Const $CLIP_TT_ALWAYS = 32 - -; Font Quality -Global Const $ANTIALIASED_QUALITY = 4 -Global Const $DEFAULT_QUALITY = 0 -Global Const $DRAFT_QUALITY = 1 -Global Const $NONANTIALIASED_QUALITY = 3 -Global Const $PROOF_QUALITY = 2 -Global Const $CLEARTYPE_QUALITY = 5 - -; pitch and family of the font -Global Const $DEFAULT_PITCH = 0 -Global Const $FIXED_PITCH = 1 -Global Const $VARIABLE_PITCH = 2 - -Global Const $FF_DECORATIVE = 80 -Global Const $FF_DONTCARE = 0 -Global Const $FF_MODERN = 48 -Global Const $FF_ROMAN = 16 -Global Const $FF_SCRIPT = 64 -Global Const $FF_SWISS = 32 - -Global Const $FS_REGULAR = 0x00 -Global Const $FS_BOLD = 0x01 -Global Const $FS_ITALIC = 0x02 -; =============================================================================================================================== diff --git a/build/Include/FrameConstants.au3 b/build/Include/FrameConstants.au3 deleted file mode 100644 index ef76f3f1c..000000000 --- a/build/Include/FrameConstants.au3 +++ /dev/null @@ -1,52 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Frame_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for _WinAPI_DrawFrameControl(). -; Author(s) .....: Gary Frost -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; type of frame -Global Const $DFC_BUTTON = 4 -Global Const $DFC_CAPTION = 1 -Global Const $DFC_MENU = 2 -Global Const $DFC_POPUPMENU = 5 -Global Const $DFC_SCROLL = 3 - -; initial state of the frame -Global Const $DFCS_BUTTON3STATE = 0x8 -Global Const $DFCS_BUTTONCHECK = 0x0 -Global Const $DFCS_BUTTONPUSH = 0x10 -Global Const $DFCS_BUTTONRADIO = 0x4 -Global Const $DFCS_BUTTONRADIOIMAGE = 0x1 -Global Const $DFCS_BUTTONRADIOMASK = 0x2 -Global Const $DFCS_CAPTIONCLOSE = 0x0 -Global Const $DFCS_CAPTIONHELP = 0x4 -Global Const $DFCS_CAPTIONMAX = 0x2 -Global Const $DFCS_CAPTIONMIN = 0x1 -Global Const $DFCS_CAPTIONRESTORE = 0x3 -Global Const $DFCS_MENUARROW = 0x0 -Global Const $DFCS_MENUARROWRIGHT = 0x4 -Global Const $DFCS_MENUBULLET = 0x2 -Global Const $DFCS_MENUCHECK = 0x1 -Global Const $DFCS_SCROLLCOMBOBOX = 0x5 -Global Const $DFCS_SCROLLDOWN = 0x1 -Global Const $DFCS_SCROLLLEFT = 0x2 -Global Const $DFCS_SCROLLRIGHT = 0x3 -Global Const $DFCS_SCROLLSIZEGRIP = 0x8 -Global Const $DFCS_SCROLLSIZEGRIPRIGHT = 0x10 -Global Const $DFCS_SCROLLUP = 0x0 -Global Const $DFCS_ADJUSTRECT = 0x2000 - -; Set state constants -Global Const $DFCS_CHECKED = 0x400 -Global Const $DFCS_FLAT = 0x4000 -Global Const $DFCS_HOT = 0x1000 -Global Const $DFCS_INACTIVE = 0x100 -Global Const $DFCS_PUSHED = 0x200 -Global Const $DFCS_TRANSPARENT = 0x800 - -; =============================================================================================================================== diff --git a/build/Include/GDIPlus.au3 b/build/Include/GDIPlus.au3 deleted file mode 100644 index 21a9c3487..000000000 --- a/build/Include/GDIPlus.au3 +++ /dev/null @@ -1,5205 +0,0 @@ -#include-once - -#include "GDIPlusConstants.au3" -#include "StructureConstants.au3" -#include "WinAPI.au3" -#include "WinAPIGdi.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: GDIPlus -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Microsoft Windows GDI+ management. -; It enables applications to use graphics and formatted text on both the video display and the printer. -; Applications based on the Microsoft Win32 API do not access graphics hardware directly. -; Instead, GDI+ interacts with device drivers on behalf of applications. -; GDI+ can be used in all Windows-based applications. -; GDI+ is new technology that is included in Windows XP and the Windows Server 2003. -; Author ........: Paul Campbell (PaulIA), rover, smashly, monoceres, Malkey, Authenticity -; Modified ......: Gary Frost, UEZ, Eukalyptus, jpm -; Dll ...........: GDIPlus.dll -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hGDIPBrush = 0 -Global $__g_hGDIPDll = 0 -Global $__g_hGDIPPen = 0 -Global $__g_iGDIPRef = 0 -Global $__g_iGDIPToken = 0 -Global $__g_bGDIP_V1_0 = True -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GDIPlus_ArrowCapCreate -; _GDIPlus_ArrowCapDispose -; _GDIPlus_ArrowCapGetFillState -; _GDIPlus_ArrowCapGetHeight -; _GDIPlus_ArrowCapGetMiddleInset -; _GDIPlus_ArrowCapGetWidth -; _GDIPlus_ArrowCapSetFillState -; _GDIPlus_ArrowCapSetHeight -; _GDIPlus_ArrowCapSetMiddleInset -; _GDIPlus_ArrowCapSetWidth -; _GDIPlus_BitmapCloneArea -; _GDIPlus_BitmapCreateDIBFromBitmap -; _GDIPlus_BitmapCreateFromFile -; _GDIPlus_BitmapCreateFromGraphics -; _GDIPlus_BitmapCreateFromHBITMAP -; _GDIPlus_BitmapCreateFromHICON -; _GDIPlus_BitmapCreateFromHICON32 -; _GDIPlus_BitmapCreateFromMemory -; _GDIPlus_BitmapCreateFromResource -; _GDIPlus_BitmapCreateFromScan0 -; _GDIPlus_BitmapCreateFromStream -; _GDIPlus_BitmapCreateHBITMAPFromBitmap -; _GDIPlus_BitmapDispose -; _GDIPlus_BitmapGetPixel -; _GDIPlus_BitmapLockBits -; _GDIPlus_BitmapSetPixel -; _GDIPlus_BitmapUnlockBits -; _GDIPlus_BrushClone -; _GDIPlus_BrushCreateSolid -; _GDIPlus_BrushDispose -; _GDIPlus_BrushGetSolidColor -; _GDIPlus_BrushGetType -; _GDIPlus_BrushSetSolidColor -; _GDIPlus_ColorMatrixCreate -; _GDIPlus_ColorMatrixCreateGrayScale -; _GDIPlus_ColorMatrixCreateNegative -; _GDIPlus_ColorMatrixCreateSaturation -; _GDIPlus_ColorMatrixCreateScale -; _GDIPlus_ColorMatrixCreateTranslate -; _GDIPlus_CustomLineCapClone -; _GDIPlus_CustomLineCapCreate -; _GDIPlus_CustomLineCapDispose -; _GDIPlus_CustomLineCapGetStrokeCaps -; _GDIPlus_CustomLineCapSetStrokeCaps -; _GDIPlus_Decoders -; _GDIPlus_DecodersGetCount -; _GDIPlus_DecodersGetSize -; _GDIPlus_DrawImagePoints -; _GDIPlus_Encoders -; _GDIPlus_EncodersGetCLSID -; _GDIPlus_EncodersGetCount -; _GDIPlus_EncodersGetParamList -; _GDIPlus_EncodersGetParamListSize -; _GDIPlus_EncodersGetSize -; _GDIPlus_FontCreate -; _GDIPlus_FontDispose -; _GDIPlus_FontFamilyCreate -; _GDIPlus_FontFamilyCreateFromCollection -; _GDIPlus_FontFamilyDispose -; _GDIPlus_FontFamilyGetCellAscent -; _GDIPlus_FontFamilyGetCellDescent -; _GDIPlus_FontFamilyGetEmHeight -; _GDIPlus_FontFamilyGetLineSpacing -; _GDIPlus_FontPrivateAddFont -; _GDIPlus_FontPrivateAddMemoryFont -; _GDIPlus_FontPrivateCollectionDispose -; _GDIPlus_FontPrivateCreateCollection -; _GDIPlus_FontGetHeight -; _GDIPlus_GraphicsClear -; _GDIPlus_GraphicsCreateFromHDC -; _GDIPlus_GraphicsCreateFromHWND -; _GDIPlus_GraphicsDispose -; _GDIPlus_GraphicsDrawArc -; _GDIPlus_GraphicsDrawBezier -; _GDIPlus_GraphicsDrawClosedCurve -; _GDIPlus_GraphicsDrawClosedCurve2 -; _GDIPlus_GraphicsDrawCurve -; _GDIPlus_GraphicsDrawCurve2 -; _GDIPlus_GraphicsDrawEllipse -; _GDIPlus_GraphicsDrawImage -; _GDIPlus_GraphicsDrawImagePointsRect -; _GDIPlus_GraphicsDrawImageRect -; _GDIPlus_GraphicsDrawImageRectRect -; _GDIPlus_GraphicsDrawLine -; _GDIPlus_GraphicsDrawPath -; _GDIPlus_GraphicsDrawPie -; _GDIPlus_GraphicsDrawPolygon -; _GDIPlus_GraphicsDrawRect -; _GDIPlus_GraphicsDrawString -; _GDIPlus_GraphicsDrawStringEx -; _GDIPlus_GraphicsFillClosedCurve -; _GDIPlus_GraphicsFillClosedCurve2 -; _GDIPlus_GraphicsFillEllipse -; _GDIPlus_GraphicsFillPath -; _GDIPlus_GraphicsFillPie -; _GDIPlus_GraphicsFillPolygon -; _GDIPlus_GraphicsFillRect -; _GDIPlus_GraphicsFillRegion -; _GDIPlus_GraphicsGetCompositingMode -; _GDIPlus_GraphicsGetCompositingQuality -; _GDIPlus_GraphicsGetDC -; _GDIPlus_GraphicsGetInterpolationMode -; _GDIPlus_GraphicsGetSmoothingMode -; _GDIPlus_GraphicsGetTransform -; _GDIPlus_GraphicsMeasureCharacterRanges -; _GDIPlus_GraphicsMeasureString -; _GDIPlus_GraphicsReleaseDC -; _GDIPlus_GraphicsResetClip -; _GDIPlus_GraphicsResetTransform -; _GDIPlus_GraphicsRestore -; _GDIPlus_GraphicsRotateTransform -; _GDIPlus_GraphicsSave -; _GDIPlus_GraphicsScaleTransform -; _GDIPlus_GraphicsSetClipPath -; _GDIPlus_GraphicsSetClipRect -; _GDIPlus_GraphicsSetClipRegion -; _GDIPlus_GraphicsSetCompositingMode -; _GDIPlus_GraphicsSetCompositingQuality -; _GDIPlus_GraphicsSetInterpolationMode -; _GDIPlus_GraphicsSetPixelOffsetMode -; _GDIPlus_GraphicsSetSmoothingMode -; _GDIPlus_GraphicsSetTextRenderingHint -; _GDIPlus_GraphicsSetTransform -; _GDIPlus_GraphicsTransformPoints -; _GDIPlus_GraphicsTranslateTransform -; _GDIPlus_HatchBrushCreate -; _GDIPlus_HICONCreateFromBitmap -; _GDIPlus_ImageAttributesCreate -; _GDIPlus_ImageAttributesDispose -; _GDIPlus_ImageAttributesSetColorKeys -; _GDIPlus_ImageAttributesSetColorMatrix -; _GDIPlus_ImageDispose -; _GDIPlus_ImageGetFlags -; _GDIPlus_ImageGetGraphicsContext -; _GDIPlus_ImageGetHeight -; _GDIPlus_ImageGetHorizontalResolution -; _GDIPlus_ImageGetPixelFormat -; _GDIPlus_ImageGetRawFormat -; _GDIPlus_ImageGetThumbnail -; _GDIPlus_ImageGetType -; _GDIPlus_ImageGetVerticalResolution -; _GDIPlus_ImageGetWidth -; _GDIPlus_ImageLoadFromFile -; _GDIPlus_ImageLoadFromStream -; _GDIPlus_ImageRotateFlip -; _GDIPlus_ImageSaveToFile -; _GDIPlus_ImageSaveToFileEx -; _GDIPlus_ImageSaveToStream -; _GDIPlus_ImageScale -; _GDIPlus_ImageResize -; _GDIPlus_LineBrushCreate -; _GDIPlus_LineBrushCreateFromRect -; _GDIPlus_LineBrushCreateFromRectWithAngle -; _GDIPlus_LineBrushGetColors -; _GDIPlus_LineBrushGetRect -; _GDIPlus_LineBrushMultiplyTransform -; _GDIPlus_LineBrushResetTransform -; _GDIPlus_LineBrushSetBlend -; _GDIPlus_LineBrushSetColors -; _GDIPlus_LineBrushSetGammaCorrection -; _GDIPlus_LineBrushSetLinearBlend -; _GDIPlus_LineBrushSetPresetBlend -; _GDIPlus_LineBrushSetSigmaBlend -; _GDIPlus_LineBrushSetTransform -; _GDIPlus_MatrixCreate -; _GDIPlus_MatrixClone -; _GDIPlus_MatrixDispose -; _GDIPlus_MatrixGetElements -; _GDIPlus_MatrixInvert -; _GDIPlus_MatrixMultiply -; _GDIPlus_MatrixRotate -; _GDIPlus_MatrixScale -; _GDIPlus_MatrixSetElements -; _GDIPlus_MatrixShear -; _GDIPlus_MatrixTransformPoints -; _GDIPlus_MatrixTranslate -; _GDIPlus_ParamAdd -; _GDIPlus_ParamInit -; _GDIPlus_ParamSize -; _GDIPlus_PathAddArc -; _GDIPlus_PathAddBezier -; _GDIPlus_PathAddClosedCurve -; _GDIPlus_PathAddClosedCurve2 -; _GDIPlus_PathAddCurve -; _GDIPlus_PathAddCurve2 -; _GDIPlus_PathAddCurve3 -; _GDIPlus_PathAddEllipse -; _GDIPlus_PathAddLine -; _GDIPlus_PathAddLine2 -; _GDIPlus_PathAddPath -; _GDIPlus_PathAddPie -; _GDIPlus_PathAddPolygon -; _GDIPlus_PathAddRectangle -; _GDIPlus_PathAddString -; _GDIPlus_PathBrushCreate -; _GDIPlus_PathBrushCreateFromPath -; _GDIPlus_PathBrushGetCenterPoint -; _GDIPlus_PathBrushGetFocusScales -; _GDIPlus_PathBrushGetPointCount -; _GDIPlus_PathBrushGetRect -; _GDIPlus_PathBrushGetWrapMode -; _GDIPlus_PathBrushMultiplyTransform -; _GDIPlus_PathBrushResetTransform -; _GDIPlus_PathBrushSetBlend -; _GDIPlus_PathBrushSetCenterColor -; _GDIPlus_PathBrushSetCenterPoint -; _GDIPlus_PathBrushSetFocusScales -; _GDIPlus_PathBrushSetGammaCorrection -; _GDIPlus_PathBrushSetLinearBlend -; _GDIPlus_PathBrushSetPresetBlend -; _GDIPlus_PathBrushSetSigmaBlend -; _GDIPlus_PathBrushSetSurroundColor -; _GDIPlus_PathBrushSetSurroundColorsWithCount -; _GDIPlus_PathBrushSetTransform -; _GDIPlus_PathBrushSetWrapMode -; _GDIPlus_PathClone -; _GDIPlus_PathCloseFigure -; _GDIPlus_PathCreate -; _GDIPlus_PathCreate2 -; _GDIPlus_PathDispose -; _GDIPlus_PathFlatten -; _GDIPlus_PathGetData -; _GDIPlus_PathGetFillMode -; _GDIPlus_PathGetLastPoint -; _GDIPlus_PathGetPointCount -; _GDIPlus_PathGetPoints -; _GDIPlus_PathGetWorldBounds -; _GDIPlus_PathIsOutlineVisiblePoint -; _GDIPlus_PathIsVisiblePoint -; _GDIPlus_PathIterCreate -; _GDIPlus_PathIterDispose -; _GDIPlus_PathIterGetSubpathCount -; _GDIPlus_PathIterNextMarkerPath -; _GDIPlus_PathIterNextSubpathPath -; _GDIPlus_PathIterRewind -; _GDIPlus_PathReset -; _GDIPlus_PathReverse -; _GDIPlus_PathSetFillMode -; _GDIPlus_PathSetMarker -; _GDIPlus_PathStartFigure -; _GDIPlus_PathTransform -; _GDIPlus_PathWarp -; _GDIPlus_PathWiden -; _GDIPlus_PathWindingModeOutline -; _GDIPlus_PenCreate -; _GDIPlus_PenCreate2 -; _GDIPlus_PenDispose -; _GDIPlus_PenGetAlignment -; _GDIPlus_PenGetColor -; _GDIPlus_PenGetCustomEndCap -; _GDIPlus_PenGetDashCap -; _GDIPlus_PenGetDashStyle -; _GDIPlus_PenGetEndCap -; _GDIPlus_PenGetMiterLimit -; _GDIPlus_PenGetWidth -; _GDIPlus_PenSetAlignment -; _GDIPlus_PenSetColor -; _GDIPlus_PenSetCustomEndCap -; _GDIPlus_PenSetDashCap -; _GDIPlus_PenSetDashStyle -; _GDIPlus_PenSetEndCap -; _GDIPlus_PenSetLineCap -; _GDIPlus_PenSetLineJoin -; _GDIPlus_PenSetMiterLimit -; _GDIPlus_PenSetStartCap -; _GDIPlus_PenSetWidth -; _GDIPlus_RectFCreate -; _GDIPlus_RegionClone -; _GDIPlus_RegionCombinePath -; _GDIPlus_RegionCombineRect -; _GDIPlus_RegionCombineRegion -; _GDIPlus_RegionCreate -; _GDIPlus_RegionCreateFromPath -; _GDIPlus_RegionCreateFromRect -; _GDIPlus_RegionDispose -; _GDIPlus_RegionGetBounds -; _GDIPlus_RegionGetHRgn -; _GDIPlus_RegionTransform -; _GDIPlus_RegionTranslate -; _GDIPlus_Shutdown -; _GDIPlus_Startup -; _GDIPlus_StringFormatCreate -; _GDIPlus_StringFormatDispose -; _GDIPlus_StringFormatGetMeasurableCharacterRangeCount -; _GDIPlus_StringFormatSetAlign -; _GDIPlus_StringFormatSetLineAlign -; _GDIPlus_StringFormatSetMeasurableCharacterRanges -; _GDIPlus_TextureCreate -; _GDIPlus_TextureCreate2 -; _GDIPlus_TextureCreateIA -; -; GDIPlus version 1.1. functions -; -; Bitmap APIs -; _GDIPlus_BitmapApplyEffect -; _GDIPlus_BitmapApplyEffectEx -; _GDIPlus_BitmapConvertFormat -; _GDIPlus_BitmapCreateApplyEffect -; _GDIPlus_BitmapCreateApplyEffectEx -; _GDIPlus_BitmapGetHistogram -; _GDIPlus_BitmapGetHistogramEx -; _GDIPlus_BitmapGetHistogramSize -; _GDIPlus_DrawImageFX -; _GDIPlus_DrawImageFXEx -; _GDIPlus_PaletteInitialize - -; _GDIPlus_EffectCreate -; _GDIPlus_EffectCreateBlur -; _GDIPlus_EffectCreateBrightnessContrast -; _GDIPlus_EffectCreateColorBalance -; _GDIPlus_EffectCreateColorCurve -; _GDIPlus_EffectCreateColorLUT -; _GDIPlus_EffectCreateColorMatrix -; _GDIPlus_EffectCreateHueSaturationLightness -; _GDIPlus_EffectCreateLevels -; _GDIPlus_EffectCreateRedEyeCorrection -; _GDIPlus_EffectCreateSharpen -; _GDIPlus_EffectCreateTint -; _GDIPlus_EffectDispose -; _GDIPlus_EffectGetParameters -; _GDIPlus_EffectSetParameters -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __GDIPlus_BrushDefCreate -; __GDIPlus_BrushDefDispose -; __GDIPlus_EffectGetParameterSize -; __GDIPlus_ExtractFileExt -; __GDIPlus_LastDelimiter -; __GDIPlus_PenDefCreate -; __GDIPlus_PenDefDispose -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapCreate($fHeight, $fWidth, $bFilled = True) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateAdjustableArrowCap", "float", $fHeight, "float", $fWidth, "bool", $bFilled, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[4] -EndFunc ;==>_GDIPlus_ArrowCapCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapDispose($hCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteCustomLineCap", "handle", $hCap) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ArrowCapDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapGetFillState($hArrowCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetAdjustableArrowCapFillState", "handle", $hArrowCap, "bool*", 0) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ArrowCapGetFillState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapGetHeight($hArrowCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetAdjustableArrowCapHeight", "handle", $hArrowCap, "float*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_ArrowCapGetHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapGetMiddleInset($hArrowCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetAdjustableArrowCapMiddleInset", "handle", $hArrowCap, "float*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_ArrowCapGetMiddleInset - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapGetWidth($hArrowCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetAdjustableArrowCapWidth", "handle", $hArrowCap, "float*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_ArrowCapGetWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapSetFillState($hArrowCap, $bFilled = True) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetAdjustableArrowCapFillState", "handle", $hArrowCap, "bool", $bFilled) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ArrowCapSetFillState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapSetHeight($hArrowCap, $fHeight) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetAdjustableArrowCapHeight", "handle", $hArrowCap, "float", $fHeight) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ArrowCapSetHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapSetMiddleInset($hArrowCap, $fInset) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetAdjustableArrowCapMiddleInset", "handle", $hArrowCap, "float", $fInset) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ArrowCapSetMiddleInset - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ArrowCapSetWidth($hArrowCap, $fWidth) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetAdjustableArrowCapWidth", "handle", $hArrowCap, "float", $fWidth) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ArrowCapSetWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BitmapCloneArea($hBitmap, $nLeft, $nTop, $nWidth, $nHeight, $iFormat = 0x00021808) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCloneBitmapArea", "float", $nLeft, "float", $nTop, "float", $nWidth, "float", $nHeight, _ - "int", $iFormat, "handle", $hBitmap, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[7] -EndFunc ;==>_GDIPlus_BitmapCloneArea - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateDIBFromBitmap($hBitmap) - Local $aRet = DllCall($__g_hGDIPDll, "uint", "GdipGetImageDimension", "handle", $hBitmap, "float*", 0, "float*", 0) - If @error Or $aRet[0] Then Return SetError(@error + 10, $aRet[0], 0) - Local $tData = _GDIPlus_BitmapLockBits($hBitmap, 0, 0, $aRet[2], $aRet[3], $GDIP_ILMREAD, $GDIP_PXF32ARGB) - Local $pBits = DllStructGetData($tData, "Scan0") - If Not $pBits Then Return 0 - Local $tBIHDR = DllStructCreate($tagBITMAPV5HEADER) - DllStructSetData($tBIHDR, "bV5Size", DllStructGetSize($tBIHDR)) - DllStructSetData($tBIHDR, "bV5Width", $aRet[2]) - DllStructSetData($tBIHDR, "bV5Height", $aRet[3]) - DllStructSetData($tBIHDR, "bV5Planes", 1) - DllStructSetData($tBIHDR, "bV5BitCount", 32) - DllStructSetData($tBIHDR, "bV5Compression", 0) ; $BI_BITFIELDS = 3, $BI_RGB = 0, $BI_RLE8 = 1, $BI_RLE4 = 2, $RGBA = 0x41424752 - DllStructSetData($tBIHDR, "bV5SizeImage", $aRet[3] * DllStructGetData($tData, "Stride")) - DllStructSetData($tBIHDR, "bV5AlphaMask", 0xFF000000) - DllStructSetData($tBIHDR, "bV5RedMask", 0x00FF0000) - DllStructSetData($tBIHDR, "bV5GreenMask", 0x0000FF00) - DllStructSetData($tBIHDR, "bV5BlueMask", 0x000000FF) - DllStructSetData($tBIHDR, "bV5CSType", 2) ; $LCS_WINDOWS_COLOR_SPACE = 2 - DllStructSetData($tBIHDR, "bV5Intent", 4) ; $LCS_GM_IMA = 4 - Local $hHBitmapv5 = DllCall("gdi32.dll", "ptr", "CreateDIBSection", "hwnd", 0, "struct*", $tBIHDR, "uint", 0, "ptr*", 0, "ptr", 0, "dword", 0) - If Not @error And $hHBitmapv5[0] Then - DllCall("gdi32.dll", "dword", "SetBitmapBits", "ptr", $hHBitmapv5[0], "dword", $aRet[2] * $aRet[3] * 4, "ptr", DllStructGetData($tData, "Scan0")) - $hHBitmapv5 = $hHBitmapv5[0] - Else - $hHBitmapv5 = 0 - EndIf - _GDIPlus_BitmapUnlockBits($hBitmap, $tData) - $tData = 0 - $tBIHDR = 0 - Return $hHBitmapv5 -EndFunc ;==>_GDIPlus_BitmapCreateDIBFromBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateFromFile($sFileName) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateBitmapFromFile", "wstr", $sFileName, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_BitmapCreateFromFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateFromGraphics($iWidth, $iHeight, $hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateBitmapFromGraphics", "int", $iWidth, "int", $iHeight, "handle", $hGraphics, _ - "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[4] -EndFunc ;==>_GDIPlus_BitmapCreateFromGraphics - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateFromHBITMAP($hBitmap, $hPal = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateBitmapFromHBITMAP", "handle", $hBitmap, "handle", $hPal, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_BitmapCreateFromHBITMAP - -;================================================================================================================================== -; Author ........: UEZ -; Modified.......: progandy -;=================================================================================================================================== -Func _GDIPlus_BitmapCreateFromMemory($dImage, $bHBITMAP = False) - If Not IsBinary($dImage) Then Return SetError(1, 0, 0) - Local $aResult = 0 - Local Const $dMemBitmap = Binary($dImage) ;load image saved in variable (memory) and convert it to binary - Local Const $iLen = BinaryLen($dMemBitmap) ;get binary length of the image - Local Const $GMEM_MOVEABLE = 0x0002 - $aResult = DllCall("kernel32.dll", "handle", "GlobalAlloc", "uint", $GMEM_MOVEABLE, "ulong_ptr", $iLen) ;allocates movable memory ($GMEM_MOVEABLE = 0x0002) - If @error Then Return SetError(4, 0, 0) - Local Const $hData = $aResult[0] - $aResult = DllCall("kernel32.dll", "ptr", "GlobalLock", "handle", $hData) - If @error Then Return SetError(5, 0, 0) - Local $tMem = DllStructCreate("byte[" & $iLen & "]", $aResult[0]) ;create struct - DllStructSetData($tMem, 1, $dMemBitmap) ;fill struct with image data - DllCall("kernel32.dll", "bool", "GlobalUnlock", "handle", $hData) ;decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE - If @error Then Return SetError(6, 0, 0) - Local Const $hStream = _WinAPI_CreateStreamOnHGlobal($hData) ;creates a stream object that uses an HGLOBAL memory handle to store the stream contents - If @error Then Return SetError(2, 0, 0) - Local Const $hBitmap = _GDIPlus_BitmapCreateFromStream($hStream) ;creates a Bitmap object based on an IStream COM interface - If @error Then Return SetError(3, 0, 0) - DllCall("oleaut32.dll", "long", "DispCallFunc", "ptr", $hStream, "ulong_ptr", 8 * (1 + @AutoItX64), "uint", 4, "ushort", 23, "uint", 0, "ptr", 0, "ptr", 0, "str", "") ;release memory from $hStream to avoid memory leak - If $bHBITMAP Then - Local Const $hHBmp = _GDIPlus_BitmapCreateDIBFromBitmap($hBitmap) ;supports GDI transparent color format - _GDIPlus_BitmapDispose($hBitmap) - Return $hHBmp - EndIf - Return $hBitmap -EndFunc ;==>_GDIPlus_BitmapCreateFromMemory - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateFromResource($hInst, $vResourceName) - Local $sType = "int" - If IsString($vResourceName) Then $sType = "wstr" - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateBitmapFromResource", "handle", $hInst, $sType, $vResourceName, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_BitmapCreateFromResource - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight, $iPixelFormat = $GDIP_PXF32ARGB, $iStride = 0, $pScan0 = 0) - Local $aResult = DllCall($__g_hGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iWidth, "int", $iHeight, "int", $iStride, "int", $iPixelFormat, "struct*", $pScan0, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[6] -EndFunc ;==>_GDIPlus_BitmapCreateFromScan0 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateFromStream($pStream) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateBitmapFromStream", "ptr", $pStream, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_BitmapCreateFromStream - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap, $iARGB = 0xFF000000) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateHBITMAPFromBitmap", "handle", $hBitmap, "handle*", 0, "dword", $iARGB) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_BitmapCreateHBITMAPFromBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BitmapDispose($hBitmap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDisposeImage", "handle", $hBitmap) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_BitmapDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; Example .......: No -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateFromHICON($hIcon) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateBitmapFromHICON", "handle", $hIcon, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_BitmapCreateFromHICON - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified.......: -; Example .......; No -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateFromHICON32($hIcon) - Local $tSIZE = _WinAPI_GetIconDimension($hIcon) - Local $iWidth = DllStructGetData($tSIZE, 'X') - Local $iHeight = DllStructGetData($tSIZE, 'Y') - If $iWidth <= 0 Or $iHeight <= 0 Then Return SetError(10, -1, 0) - Local $tBITMAPINFO = DllStructCreate("dword Size;long Width;long Height;word Planes;word BitCount;dword Compression;dword SizeImage;long XPelsPerMeter;long YPelsPerMeter;dword ClrUsed;dword ClrImportant;dword RGBQuad") - DllStructSetData($tBITMAPINFO, 'Size', DllStructGetSize($tBITMAPINFO) - 4) - DllStructSetData($tBITMAPINFO, 'Width', $iWidth) - DllStructSetData($tBITMAPINFO, 'Height', -$iHeight) - DllStructSetData($tBITMAPINFO, 'Planes', 1) - DllStructSetData($tBITMAPINFO, 'BitCount', 32) - DllStructSetData($tBITMAPINFO, 'Compression', 0) - DllStructSetData($tBITMAPINFO, 'SizeImage', 0) - Local $hDC = _WinAPI_CreateCompatibleDC(0) - Local $pBits - Local $hBmp = _WinAPI_CreateDIBSection(0, $tBITMAPINFO, 0, $pBits) - Local $hOrig = _WinAPI_SelectObject($hDC, $hBmp) - _WinAPI_DrawIconEx($hDC, 0, 0, $hIcon, $iWidth, $iHeight) - Local $hBitmapIcon = _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight, $GDIP_PXF32ARGB, $iWidth * 4, $pBits) - Local $hBitmap = _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight) - Local $hContext = _GDIPlus_ImageGetGraphicsContext($hBitmap) - _GDIPlus_GraphicsDrawImage($hContext, $hBitmapIcon, 0, 0) - _GDIPlus_GraphicsDispose($hContext) - _GDIPlus_BitmapDispose($hBitmapIcon) - _WinAPI_SelectObject($hDC, $hOrig) - _WinAPI_DeleteDC($hDC) - _WinAPI_DeleteObject($hBmp) - Return $hBitmap -EndFunc ;==>_GDIPlus_BitmapCreateFromHICON32 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_BitmapGetPixel($hBitmap, $iX, $iY) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipBitmapGetPixel", "handle", $hBitmap, "int", $iX, "int", $iY, "uint*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[4] -EndFunc ;==>_GDIPlus_BitmapGetPixel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BitmapLockBits($hBitmap, $iLeft, $iTop, $iWidth, $iHeight, $iFlags = $GDIP_ILMREAD, $iFormat = $GDIP_PXF32RGB) - Local $tData = DllStructCreate($tagGDIPBITMAPDATA) - Local $tRECT = DllStructCreate($tagRECT) - - ; The RECT is initialized strange for this function. It wants the Left and - ; Top members set as usual but instead of Right and Bottom also being - ; coordinates they are expected to be the Width and Height sizes - ; respectively. - DllStructSetData($tRECT, "Left", $iLeft) - DllStructSetData($tRECT, "Top", $iTop) - DllStructSetData($tRECT, "Right", $iWidth) - DllStructSetData($tRECT, "Bottom", $iHeight) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipBitmapLockBits", "handle", $hBitmap, "struct*", $tRECT, "uint", $iFlags, "int", $iFormat, "struct*", $tData) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $tData -EndFunc ;==>_GDIPlus_BitmapLockBits - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_BitmapSetPixel($hBitmap, $iX, $iY, $iARGB) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipBitmapSetPixel", "handle", $hBitmap, "int", $iX, "int", $iY, "uint", $iARGB) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_BitmapSetPixel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BitmapUnlockBits($hBitmap, $tBitmapData) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipBitmapUnlockBits", "handle", $hBitmap, "struct*", $tBitmapData) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_BitmapUnlockBits - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BrushClone($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCloneBrush", "handle", $hBrush, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_BrushClone - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BrushCreateSolid($iARGB = 0xFF000000) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateSolidFill", "int", $iARGB, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_BrushCreateSolid - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BrushDispose($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteBrush", "handle", $hBrush) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_BrushDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: -; Modified.......: smashly -; =============================================================================================================================== -Func _GDIPlus_BrushGetSolidColor($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetSolidFillColor", "handle", $hBrush, "dword*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_BrushGetSolidColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_BrushGetType($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetBrushType", "handle", $hBrush, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_BrushGetType - -; #FUNCTION# ==================================================================================================================== -; Author ........: -; Modified.......: smashly -; =============================================================================================================================== -Func _GDIPlus_BrushSetSolidColor($hBrush, $iARGB = 0xFF000000) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetSolidFillColor", "handle", $hBrush, "dword", $iARGB) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_BrushSetSolidColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ColorMatrixCreate() - Return _GDIPlus_ColorMatrixCreateScale(1, 1, 1, 1) -EndFunc ;==>_GDIPlus_ColorMatrixCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ColorMatrixCreateGrayScale() - Local $iI, $iJ, $tCM, $aLums[4] = [$GDIP_RLUM, $GDIP_GLUM, $GDIP_BLUM, 0] - $tCM = DllStructCreate($tagGDIPCOLORMATRIX) - For $iI = 0 To 3 - For $iJ = 1 To 3 - DllStructSetData($tCM, "m", $aLums[$iI], $iI * 5 + $iJ) - Next - Next - DllStructSetData($tCM, "m", 1, 19) - DllStructSetData($tCM, "m", 1, 25) - Return $tCM -EndFunc ;==>_GDIPlus_ColorMatrixCreateGrayScale - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ColorMatrixCreateNegative() - Local $iI, $tCM - $tCM = _GDIPlus_ColorMatrixCreateScale(-1, -1, -1, 1) - For $iI = 1 To 4 - DllStructSetData($tCM, "m", 1, 20 + $iI) - Next - Return $tCM -EndFunc ;==>_GDIPlus_ColorMatrixCreateNegative - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ColorMatrixCreateSaturation($fSat) - Local $fSatComp, $tCM - $tCM = DllStructCreate($tagGDIPCOLORMATRIX) - $fSatComp = (1 - $fSat) - DllStructSetData($tCM, "m", $fSatComp * $GDIP_RLUM + $fSat, 1) - DllStructSetData($tCM, "m", $fSatComp * $GDIP_RLUM, 2) - DllStructSetData($tCM, "m", $fSatComp * $GDIP_RLUM, 3) - DllStructSetData($tCM, "m", $fSatComp * $GDIP_GLUM, 6) - DllStructSetData($tCM, "m", $fSatComp * $GDIP_GLUM + $fSat, 7) - DllStructSetData($tCM, "m", $fSatComp * $GDIP_GLUM, 8) - DllStructSetData($tCM, "m", $fSatComp * $GDIP_BLUM, 11) - DllStructSetData($tCM, "m", $fSatComp * $GDIP_BLUM, 12) - DllStructSetData($tCM, "m", $fSatComp * $GDIP_BLUM + $fSat, 13) - DllStructSetData($tCM, "m", 1, 19) - DllStructSetData($tCM, "m", 1, 25) - Return $tCM -EndFunc ;==>_GDIPlus_ColorMatrixCreateSaturation - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ColorMatrixCreateScale($fRed, $fGreen, $fBlue, $fAlpha = 1) - Local $tCM - $tCM = DllStructCreate($tagGDIPCOLORMATRIX) - DllStructSetData($tCM, "m", $fRed, 1) - DllStructSetData($tCM, "m", $fGreen, 7) - DllStructSetData($tCM, "m", $fBlue, 13) - DllStructSetData($tCM, "m", $fAlpha, 19) - DllStructSetData($tCM, "m", 1, 25) - Return $tCM -EndFunc ;==>_GDIPlus_ColorMatrixCreateScale - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ColorMatrixCreateTranslate($fRed, $fGreen, $fBlue, $fAlpha = 0) - Local $iI, $tCM, $aFactors[4] = [$fRed, $fGreen, $fBlue, $fAlpha] - $tCM = _GDIPlus_ColorMatrixCreate() - For $iI = 0 To 3 - DllStructSetData($tCM, "m", $aFactors[$iI], 21 + $iI) - Next - Return $tCM -EndFunc ;==>_GDIPlus_ColorMatrixCreateTranslate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_CustomLineCapClone($hCustomLineCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCloneCustomLineCap", "handle", $hCustomLineCap, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_CustomLineCapClone - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_CustomLineCapCreate($hPathFill, $hPathStroke, $iLineCap = 0, $nBaseInset = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateCustomLineCap", "handle", $hPathFill, "handle", $hPathStroke, "int", $iLineCap, "float", $nBaseInset, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[5] -EndFunc ;==>_GDIPlus_CustomLineCapCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_CustomLineCapDispose($hCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteCustomLineCap", "handle", $hCap) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_CustomLineCapDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; Example .......; No -; =============================================================================================================================== -Func _GDIPlus_CustomLineCapGetStrokeCaps($hCustomLineCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetCustomLineCapStrokeCaps", "hwnd", $hCustomLineCap, "ptr*", 0, "ptr*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then SetError(10, $aResult[0], 0) - - Local $aCaps[2] - $aCaps[0] = $aResult[2] - $aCaps[1] = $aResult[3] - Return $aCaps -EndFunc ;==>_GDIPlus_CustomLineCapGetStrokeCaps - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; Example .......; No -; =============================================================================================================================== -Func _GDIPlus_CustomLineCapSetStrokeCaps($hCustomLineCap, $iStartCap, $iEndCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetCustomLineCapStrokeCaps", "handle", $hCustomLineCap, "int", $iStartCap, "int", $iEndCap) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_CustomLineCapSetStrokeCaps - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_Decoders() - Local $iCount = _GDIPlus_DecodersGetCount() - Local $iSize = _GDIPlus_DecodersGetSize() - Local $tBuffer = DllStructCreate("byte[" & $iSize & "]") - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageDecoders", "uint", $iCount, "uint", $iSize, "struct*", $tBuffer) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tCodec, $aInfo[$iCount + 1][14] - $aInfo[0][0] = $iCount - For $iI = 1 To $iCount - $tCodec = DllStructCreate($tagGDIPIMAGECODECINFO, $pBuffer) - $aInfo[$iI][1] = _WinAPI_StringFromGUID(DllStructGetPtr($tCodec, "CLSID")) - $aInfo[$iI][2] = _WinAPI_StringFromGUID(DllStructGetPtr($tCodec, "FormatID")) - $aInfo[$iI][3] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "CodecName")) - $aInfo[$iI][4] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "DllName")) - $aInfo[$iI][5] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "FormatDesc")) - $aInfo[$iI][6] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "FileExt")) - $aInfo[$iI][7] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "MimeType")) - $aInfo[$iI][8] = DllStructGetData($tCodec, "Flags") - $aInfo[$iI][9] = DllStructGetData($tCodec, "Version") - $aInfo[$iI][10] = DllStructGetData($tCodec, "SigCount") - $aInfo[$iI][11] = DllStructGetData($tCodec, "SigSize") - $aInfo[$iI][12] = DllStructGetData($tCodec, "SigPattern") - $aInfo[$iI][13] = DllStructGetData($tCodec, "SigMask") - $pBuffer += DllStructGetSize($tCodec) - Next - Return $aInfo -EndFunc ;==>_GDIPlus_Decoders - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_DecodersGetCount() - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageDecodersSize", "uint*", 0, "uint*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[1] -EndFunc ;==>_GDIPlus_DecodersGetCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_DecodersGetSize() - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageDecodersSize", "uint*", 0, "uint*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_DecodersGetSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Malkey -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_DrawImagePoints($hGraphic, $hImage, $nULX, $nULY, $nURX, $nURY, $nLLX, $nLLY, $iCount = 3) - Local $tPoint = DllStructCreate("float X;float Y;float X2;float Y2;float X3;float Y3") - DllStructSetData($tPoint, "X", $nULX) - DllStructSetData($tPoint, "Y", $nULY) - DllStructSetData($tPoint, "X2", $nURX) - DllStructSetData($tPoint, "Y2", $nURY) - DllStructSetData($tPoint, "X3", $nLLX) - DllStructSetData($tPoint, "Y3", $nLLY) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawImagePoints", "handle", $hGraphic, "handle", $hImage, "struct*", $tPoint, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_DrawImagePoints - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_Encoders() - Local $iCount = _GDIPlus_EncodersGetCount() - Local $iSize = _GDIPlus_EncodersGetSize() - Local $tBuffer = DllStructCreate("byte[" & $iSize & "]") - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageEncoders", "uint", $iCount, "uint", $iSize, "struct*", $tBuffer) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tCodec, $aInfo[$iCount + 1][14] - $aInfo[0][0] = $iCount - For $iI = 1 To $iCount - $tCodec = DllStructCreate($tagGDIPIMAGECODECINFO, $pBuffer) - $aInfo[$iI][1] = _WinAPI_StringFromGUID(DllStructGetPtr($tCodec, "CLSID")) - $aInfo[$iI][2] = _WinAPI_StringFromGUID(DllStructGetPtr($tCodec, "FormatID")) - $aInfo[$iI][3] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "CodecName")) - $aInfo[$iI][4] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "DllName")) - $aInfo[$iI][5] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "FormatDesc")) - $aInfo[$iI][6] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "FileExt")) - $aInfo[$iI][7] = _WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, "MimeType")) - $aInfo[$iI][8] = DllStructGetData($tCodec, "Flags") - $aInfo[$iI][9] = DllStructGetData($tCodec, "Version") - $aInfo[$iI][10] = DllStructGetData($tCodec, "SigCount") - $aInfo[$iI][11] = DllStructGetData($tCodec, "SigSize") - $aInfo[$iI][12] = DllStructGetData($tCodec, "SigPattern") - $aInfo[$iI][13] = DllStructGetData($tCodec, "SigMask") - $pBuffer += DllStructGetSize($tCodec) - Next - Return $aInfo -EndFunc ;==>_GDIPlus_Encoders - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_EncodersGetCLSID($sFileExtension) - Local $aEncoders = _GDIPlus_Encoders() - If @error Then Return SetError(@error, 0, "") - For $iI = 1 To $aEncoders[0][0] - If StringInStr($aEncoders[$iI][6], "*." & $sFileExtension) > 0 Then Return $aEncoders[$iI][1] - Next - Return SetError(-1, -1, "") -EndFunc ;==>_GDIPlus_EncodersGetCLSID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_EncodersGetCount() - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageEncodersSize", "uint*", 0, "uint*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[1] -EndFunc ;==>_GDIPlus_EncodersGetCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, jpm -; =============================================================================================================================== -Func _GDIPlus_EncodersGetParamList($hImage, $sEncoder) - Local $iSize = _GDIPlus_EncodersGetParamListSize($hImage, $sEncoder) - If @error Then Return SetError(@error + 10, @extended, 0) - Local $tGUID = _WinAPI_GUIDFromString($sEncoder) - Local $iRemainingSize = $iSize - 4 - _GDIPlus_ParamSize() - Local $tBuffer - If $iRemainingSize Then - $tBuffer = DllStructCreate("dword Count;" & $tagGDIPENCODERPARAM & ";byte [" & $iRemainingSize & "]") - Else - $tBuffer = DllStructCreate("dword Count;" & $tagGDIPENCODERPARAM) - EndIf -;~ Local $tBuffer = DllStructCreate("dword Count;byte GUID[" & $iSize - 4 & "]") - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetEncoderParameterList", "handle", $hImage, "struct*", $tGUID, "uint", $iSize, "struct*", $tBuffer) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $tBuffer -EndFunc ;==>_GDIPlus_EncodersGetParamList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_EncodersGetParamListSize($hImage, $sEncoder) - Local $tGUID = _WinAPI_GUIDFromString($sEncoder) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetEncoderParameterListSize", "handle", $hImage, "struct*", $tGUID, "uint*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_EncodersGetParamListSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_EncodersGetSize() - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageEncodersSize", "uint*", 0, "uint*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_EncodersGetSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_FontCreate($hFamily, $fSize, $iStyle = 0, $iUnit = 3) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateFont", "handle", $hFamily, "float", $fSize, "int", $iStyle, "int", $iUnit, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[5] -EndFunc ;==>_GDIPlus_FontCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_FontDispose($hFont) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteFont", "handle", $hFont) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_FontDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_FontFamilyCreate($sFamily, $pCollection = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateFontFamilyFromName", "wstr", $sFamily, "ptr", $pCollection, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_FontFamilyCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: -; =============================================================================================================================== -Func _GDIPlus_FontFamilyCreateFromCollection($sFontName, $hFontCollection) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateFontFamilyFromName", "wstr", $sFontName, "ptr", $hFontCollection, "ptr*", 0) - If @error Then Return SetError(@error, @extended, "") - If $aResult[0] Then Return SetError(10, $aResult[0], "") - - Return $aResult[3] -EndFunc ;==>_GDIPlus_FontFamilyCreateFromCollection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_FontFamilyDispose($hFamily) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteFontFamily", "handle", $hFamily) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_FontFamilyDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_FontFamilyGetCellAscent($hFontFamily, $iStyle = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetCellAscent", "handle", $hFontFamily, "int", $iStyle, "ushort*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_FontFamilyGetCellAscent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_FontFamilyGetCellDescent($hFontFamily, $iStyle = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetCellDescent", "handle", $hFontFamily, "int", $iStyle, "ushort*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_FontFamilyGetCellDescent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_FontFamilyGetEmHeight($hFontFamily, $iStyle = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetEmHeight", "handle", $hFontFamily, "int", $iStyle, "ushort*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_FontFamilyGetEmHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_FontFamilyGetLineSpacing($hFontFamily, $iStyle = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetLineSpacing", "handle", $hFontFamily, "int", $iStyle, "ushort*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_FontFamilyGetLineSpacing - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_FontGetHeight($hFont, $hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetFontHeight", "handle", $hFont, "handle", $hGraphics, "float*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_FontGetHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: -; =============================================================================================================================== -Func _GDIPlus_FontPrivateAddFont($hFontCollection, $sFontFile) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipPrivateAddFontFile", "ptr", $hFontCollection, "wstr", $sFontFile) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_FontPrivateAddFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: -; =============================================================================================================================== -Func _GDIPlus_FontPrivateAddMemoryFont($hFontCollection, $tFont) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipPrivateAddMemoryFont", "handle", $hFontCollection, "struct*", $tFont, "int", DllStructGetSize($tFont)) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_FontPrivateAddMemoryFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: -; =============================================================================================================================== -Func _GDIPlus_FontPrivateCollectionDispose($hFontCollection) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeletePrivateFontCollection", "handle*", $hFontCollection) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_FontPrivateCollectionDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: -; =============================================================================================================================== -Func _GDIPlus_FontPrivateCreateCollection() - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipNewPrivateFontCollection", "ptr*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[1] -EndFunc ;==>_GDIPlus_FontPrivateCreateCollection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_GraphicsClear($hGraphics, $iARGB = 0xFF000000) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGraphicsClear", "handle", $hGraphics, "dword", $iARGB) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsClear - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_GraphicsCreateFromHDC($hDC) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateFromHDC", "handle", $hDC, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_GraphicsCreateFromHDC - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_GraphicsCreateFromHWND($hWnd) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateFromHWND", "hwnd", $hWnd, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_GraphicsCreateFromHWND - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_GraphicsDispose($hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteGraphics", "handle", $hGraphics) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawArc($hGraphics, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle, $hPen = 0) - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawArc", "handle", $hGraphics, "handle", $hPen, "float", $nX, "float", $nY, _ - "float", $nWidth, "float", $nHeight, "float", $fStartAngle, "float", $fSweepAngle) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawArc - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawBezier($hGraphics, $nX1, $nY1, $nX2, $nY2, $nX3, $nY3, $nX4, $nY4, $hPen = 0) - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawBezier", "handle", $hGraphics, "handle", $hPen, "float", $nX1, "float", $nY1, _ - "float", $nX2, "float", $nY2, "float", $nX3, "float", $nY3, "float", $nX4, "float", $nY4) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawBezier - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawClosedCurve($hGraphics, $aPoints, $hPen = 0) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawClosedCurve", "handle", $hGraphics, "handle", $hPen, "struct*", $tPoints, "int", $iCount) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawClosedCurve - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawClosedCurve2($hGraphics, $aPoints, $nTension, $hPen = 0) - Local $iI, $iCount, $tPoints, $aResult - __GDIPlus_PenDefCreate($hPen) - $iCount = $aPoints[0][0] - $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawClosedCurve2", "handle", $hGraphics, "handle", $hPen, "struct*", $tPoints, "int", $iCount, "float", $nTension) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawClosedCurve2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawCurve($hGraphics, $aPoints, $hPen = 0) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawCurve", "handle", $hGraphics, "handle", $hPen, "struct*", $tPoints, "int", $iCount) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawCurve - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawCurve2($hGraphics, $aPoints, $nTension, $hPen = 0) - Local $iI, $iCount, $tPoints, $aResult - __GDIPlus_PenDefCreate($hPen) - $iCount = $aPoints[0][0] - $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawCurve2", "handle", $hGraphics, "handle", $hPen, "struct*", $tPoints, "int", $iCount, "float", $nTension) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawCurve2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawEllipse($hGraphics, $nX, $nY, $nWidth, $nHeight, $hPen = 0) - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawEllipse", "handle", $hGraphics, "handle", $hPen, "float", $nX, "float", $nY, _ - "float", $nWidth, "float", $nHeight) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawEllipse - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawImage($hGraphics, $hImage, $nX, $nY) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawImage", "handle", $hGraphics, "handle", $hImage, "float", $nX, "float", $nY) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawImagePointsRect($hGraphics, $hImage, $nULX, $nULY, $nURX, $nURY, $nLLX, $nLLY, $nSrcX, $nSrcY, $nSrcWidth, $nSrcHeight, $hImageAttributes = 0, $iUnit = 2) - Local $tPoints = DllStructCreate("float X; float Y; float X2; float Y2; float X3; float Y3;") - DllStructSetData($tPoints, "X", $nULX) - DllStructSetData($tPoints, "Y", $nULY) - DllStructSetData($tPoints, "X2", $nURX) - DllStructSetData($tPoints, "Y2", $nURY) - DllStructSetData($tPoints, "X3", $nLLX) - DllStructSetData($tPoints, "Y3", $nLLY) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawImagePointsRect", "handle", $hGraphics, "handle", $hImage, "struct*", $tPoints, "int", 3, "float", $nSrcX, "float", $nSrcY, "float", $nSrcWidth, "float", $nSrcHeight, "int", $iUnit, "handle", $hImageAttributes, "ptr", 0, "ptr", 0) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawImagePointsRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: smashly -; Modified.......: UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawImageRect($hGraphics, $hImage, $nX, $nY, $nW, $nH) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawImageRect", "handle", $hGraphics, "handle", $hImage, "float", $nX, "float", $nY, _ - "float", $nW, "float", $nH) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawImageRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawImageRectRect($hGraphics, $hImage, $nSrcX, $nSrcY, $nSrcWidth, $nSrcHeight, $nDstX, $nDstY, $nDstWidth, $nDstHeight, $pAttributes = 0, $iUnit = 2) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawImageRectRect", "handle", $hGraphics, "handle", $hImage, _ - "float", $nDstX, "float", $nDstY, "float", $nDstWidth, "float", $nDstHeight, _ - "float", $nSrcX, "float", $nSrcY, "float", $nSrcWidth, "float", $nSrcHeight, _ - "int", $iUnit, "handle", $pAttributes, "ptr", 0, "ptr", 0) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawImageRectRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawLine($hGraphics, $nX1, $nY1, $nX2, $nY2, $hPen = 0) - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawLine", "handle", $hGraphics, "handle", $hPen, "float", $nX1, "float", $nY1, _ - "float", $nX2, "float", $nY2) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawLine - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawPath($hGraphics, $hPath, $hPen = 0) - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawPath", "handle", $hGraphics, "handle", $hPen, "handle", $hPath) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawPie($hGraphics, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle, $hPen = 0) - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawPie", "handle", $hGraphics, "handle", $hPen, "float", $nX, "float", $nY, _ - "float", $nWidth, "float", $nHeight, "float", $fStartAngle, "float", $fSweepAngle) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawPie - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawPolygon($hGraphics, $aPoints, $hPen = 0) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawPolygon", "handle", $hGraphics, "handle", $hPen, "struct*", $tPoints, "int", $iCount) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawPolygon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawRect($hGraphics, $nX, $nY, $nWidth, $nHeight, $hPen = 0) - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawRectangle", "handle", $hGraphics, "handle", $hPen, "float", $nX, "float", $nY, _ - "float", $nWidth, "float", $nHeight) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawString($hGraphics, $sString, $nX, $nY, $sFont = "Arial", $fSize = 10, $iFormat = 0) - Local $hBrush = _GDIPlus_BrushCreateSolid() - Local $hFormat = _GDIPlus_StringFormatCreate($iFormat) - Local $hFamily = _GDIPlus_FontFamilyCreate($sFont) - Local $hFont = _GDIPlus_FontCreate($hFamily, $fSize) - Local $tLayout = _GDIPlus_RectFCreate($nX, $nY, 0.0, 0.0) - Local $aInfo = _GDIPlus_GraphicsMeasureString($hGraphics, $sString, $hFont, $tLayout, $hFormat) - If @error Then Return SetError(@error, @extended, 0) - Local $aResult = _GDIPlus_GraphicsDrawStringEx($hGraphics, $sString, $hFont, $aInfo[0], $hFormat, $hBrush) - Local $iError = @error, $iExtended = @extended - _GDIPlus_FontDispose($hFont) - _GDIPlus_FontFamilyDispose($hFamily) - _GDIPlus_StringFormatDispose($hFormat) - _GDIPlus_BrushDispose($hBrush) - Return SetError($iError, $iExtended, $aResult) -EndFunc ;==>_GDIPlus_GraphicsDrawString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_GraphicsDrawStringEx($hGraphics, $sString, $hFont, $tLayout, $hFormat, $hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawString", "handle", $hGraphics, "wstr", $sString, "int", -1, "handle", $hFont, _ - "struct*", $tLayout, "handle", $hFormat, "handle", $hBrush) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsDrawStringEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsFillClosedCurve($hGraphics, $aPoints, $hBrush = 0) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - - __GDIPlus_BrushDefCreate($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipFillClosedCurve", "handle", $hGraphics, "handle", $hBrush, "struct*", $tPoints, "int", $iCount) - __GDIPlus_BrushDefDispose() - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsFillClosedCurve - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_GraphicsFillClosedCurve2($hGraphics, $aPoints, $nTension, $hBrush = 0, $iFillMode = 0) - Local $iI, $iCount, $tPoints, $aResult - __GDIPlus_BrushDefCreate($hBrush) - $iCount = $aPoints[0][0] - $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - $aResult = DllCall($__g_hGDIPDll, "int", "GdipFillClosedCurve2", "handle", $hGraphics, "handle", $hBrush, "struct*", $tPoints, "int", $iCount, "float", $nTension, "int", $iFillMode) - __GDIPlus_BrushDefDispose() - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsFillClosedCurve2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsFillEllipse($hGraphics, $nX, $nY, $nWidth, $nHeight, $hBrush = 0) - __GDIPlus_BrushDefCreate($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipFillEllipse", "handle", $hGraphics, "handle", $hBrush, "float", $nX, "float", $nY, _ - "float", $nWidth, "float", $nHeight) - __GDIPlus_BrushDefDispose() - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsFillEllipse - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsFillPath($hGraphics, $hPath, $hBrush = 0) - __GDIPlus_BrushDefCreate($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipFillPath", "handle", $hGraphics, "handle", $hBrush, "handle", $hPath) - __GDIPlus_BrushDefDispose() - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsFillPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsFillPie($hGraphics, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle, $hBrush = 0) - __GDIPlus_BrushDefCreate($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipFillPie", "handle", $hGraphics, "handle", $hBrush, "float", $nX, "float", $nY, _ - "float", $nWidth, "float", $nHeight, "float", $fStartAngle, "float", $fSweepAngle) - __GDIPlus_BrushDefDispose() - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsFillPie - -; #FUNCTION# ==================================================================================================================== -; Author ........: -; Modified.......: smashly, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsFillPolygon($hGraphics, $aPoints, $hBrush = 0) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - - __GDIPlus_BrushDefCreate($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipFillPolygon", "handle", $hGraphics, "handle", $hBrush, _ - "struct*", $tPoints, "int", $iCount, "int", "FillModeAlternate") - __GDIPlus_BrushDefDispose() - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsFillPolygon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsFillRect($hGraphics, $nX, $nY, $nWidth, $nHeight, $hBrush = 0) - __GDIPlus_BrushDefCreate($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipFillRectangle", "handle", $hGraphics, "handle", $hBrush, "float", $nX, "float", $nY, _ - "float", $nWidth, "float", $nHeight) - __GDIPlus_BrushDefDispose() - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsFillRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsFillRegion($hGraphics, $hRegion, $hBrush = 0) - __GDIPlus_BrushDefCreate($hBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipFillRegion", "handle", $hGraphics, "handle", $hBrush, "handle", $hRegion) - __GDIPlus_BrushDefDispose() - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsFillRegion - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsGetCompositingMode($hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetCompositingMode", "handle", $hGraphics, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_GraphicsGetCompositingMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsGetCompositingQuality($hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetCompositingQuality", "handle", $hGraphics, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_GraphicsGetCompositingQuality - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_GraphicsGetDC($hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetDC", "handle", $hGraphics, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_GraphicsGetDC - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_GraphicsGetInterpolationMode($hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetInterpolationMode", "handle", $hGraphics, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_GraphicsGetInterpolationMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ -; =============================================================================================================================== -Func _GDIPlus_GraphicsGetSmoothingMode($hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetSmoothingMode", "handle", $hGraphics, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Switch $aResult[2] - Case $GDIP_SMOOTHINGMODE_NONE - Return 0 - Case $GDIP_SMOOTHINGMODE_HIGHQUALITY, $GDIP_SMOOTHINGMODE_ANTIALIAS8X4 - Return 1 - Case $GDIP_SMOOTHINGMODE_ANTIALIAS8X8 - Return 2 - Case Else - Return 0 - EndSwitch -EndFunc ;==>_GDIPlus_GraphicsGetSmoothingMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsGetTransform($hGraphics, $hMatrix) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetWorldTransform", "handle", $hGraphics, "handle", $hMatrix) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsGetTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsMeasureCharacterRanges($hGraphics, $sString, $hFont, $tLayout, $hStringFormat) - Local $iCount = _GDIPlus_StringFormatGetMeasurableCharacterRangeCount($hStringFormat) - If @error Then Return SetError(@error, @extended, 0) - - Local $tRegions = DllStructCreate("handle[" & $iCount & "]") - Local $aRegions[$iCount + 1] = [$iCount] - For $iI = 1 To $iCount - $aRegions[$iI] = _GDIPlus_RegionCreate() - DllStructSetData($tRegions, 1, $aRegions[$iI], $iI) - Next - - DllCall($__g_hGDIPDll, "int", "GdipMeasureCharacterRanges", "handle", $hGraphics, "wstr", $sString, "int", -1, "hwnd", $hFont, "struct*", $tLayout, "handle", $hStringFormat, "int", $iCount, "struct*", $tRegions) - Local $iError = @error, $iExtended = @extended - If $iError Then - For $iI = 1 To $iCount - _GDIPlus_RegionDispose($aRegions[$iI]) - Next - Return SetError($iError + 10, $iExtended, 0) - EndIf - - Return $aRegions -EndFunc ;==>_GDIPlus_GraphicsMeasureCharacterRanges - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_GraphicsMeasureString($hGraphics, $sString, $hFont, $tLayout, $hFormat) - Local $tRECTF = DllStructCreate($tagGDIPRECTF) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipMeasureString", "handle", $hGraphics, "wstr", $sString, "int", -1, "handle", $hFont, _ - "struct*", $tLayout, "handle", $hFormat, "struct*", $tRECTF, "int*", 0, "int*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Local $aInfo[3] - $aInfo[0] = $tRECTF - $aInfo[1] = $aResult[8] - $aInfo[2] = $aResult[9] - Return $aInfo -EndFunc ;==>_GDIPlus_GraphicsMeasureString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_GraphicsReleaseDC($hGraphics, $hDC) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipReleaseDC", "handle", $hGraphics, "handle", $hDC) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_GraphicsReleaseDC - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsResetClip($hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipResetClip", "handle", $hGraphics) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsResetClip - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsResetTransform($hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipResetWorldTransform", "handle", $hGraphics) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsResetTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsRestore($hGraphics, $iState) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipRestoreGraphics", "handle", $hGraphics, "uint", $iState) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsRestore - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsRotateTransform($hGraphics, $fAngle, $iOrder = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipRotateWorldTransform", "handle", $hGraphics, "float", $fAngle, "int", $iOrder) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsRotateTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsSave($hGraphics) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSaveGraphics", "handle", $hGraphics, "uint*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_GraphicsSave - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsScaleTransform($hGraphics, $fScaleX, $fScaleY, $iOrder = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipScaleWorldTransform", "handle", $hGraphics, "float", $fScaleX, "float", $fScaleY, "int", $iOrder) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsScaleTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetClipPath($hGraphics, $hPath, $iCombineMode = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetClipPath", "handle", $hGraphics, "handle", $hPath, "int", $iCombineMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetClipPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetClipRect($hGraphics, $nX, $nY, $nWidth, $nHeight, $iCombineMode = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetClipRect", "handle", $hGraphics, "float", $nX, "float", $nY, "float", $nWidth, "float", $nHeight, "int", $iCombineMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetClipRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetClipRegion($hGraphics, $hRegion, $iCombineMode = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetClipRegion", "handle", $hGraphics, "handle", $hRegion, "int", $iCombineMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetClipRegion - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetCompositingMode($hGraphics, $iCompositionMode) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetCompositingMode", "handle", $hGraphics, "int", $iCompositionMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetCompositingMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetCompositingQuality($hGraphics, $iCompositionQuality) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetCompositingQuality", "handle", $hGraphics, "int", $iCompositionQuality) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetCompositingQuality - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetInterpolationMode($hGraphics, $iInterpolationMode) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetInterpolationMode", "handle", $hGraphics, "int", $iInterpolationMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetInterpolationMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetPixelOffsetMode($hGraphics, $iPixelOffsetMode) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPixelOffsetMode", "handle", $hGraphics, "int", $iPixelOffsetMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetPixelOffsetMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, UEZ -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetSmoothingMode($hGraphics, $iSmooth) - If $iSmooth < $GDIP_SMOOTHINGMODE_DEFAULT Or $iSmooth > $GDIP_SMOOTHINGMODE_ANTIALIAS8X8 Then $iSmooth = $GDIP_SMOOTHINGMODE_DEFAULT - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetSmoothingMode", "handle", $hGraphics, "int", $iSmooth) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetSmoothingMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetTextRenderingHint($hGraphics, $iTextRenderingHint) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetTextRenderingHint", "handle", $hGraphics, "int", $iTextRenderingHint) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetTextRenderingHint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_GraphicsSetTransform($hGraphics, $hMatrix) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetWorldTransform", "handle", $hGraphics, "handle", $hMatrix) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsSetTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsTransformPoints($hGraphics, ByRef $aPoints, $iCoordSpaceTo = 0, $iCoordSpaceFrom = 1) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], ($iI - 1) * 2 + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], ($iI - 1) * 2 + 2) - Next - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipTransformPoints", "handle", $hGraphics, "int", $iCoordSpaceTo, "int", $iCoordSpaceFrom, "struct*", $tPoints, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - For $iI = 1 To $iCount - $aPoints[$iI][0] = DllStructGetData($tPoints, 1, ($iI - 1) * 2 + 1) - $aPoints[$iI][1] = DllStructGetData($tPoints, 1, ($iI - 1) * 2 + 2) - Next - - Return True -EndFunc ;==>_GDIPlus_GraphicsTransformPoints - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_GraphicsTranslateTransform($hGraphics, $nDX, $nDY, $iOrder = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipTranslateWorldTransform", "handle", $hGraphics, "float", $nDX, "float", $nDY, "int", $iOrder) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_GraphicsTranslateTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_HatchBrushCreate($iHatchStyle = 0, $iARGBForeground = 0xFFFFFFFF, $iARGBBackground = 0xFFFFFFFF) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateHatchBrush", "int", $iHatchStyle, "uint", $iARGBForeground, "uint", $iARGBBackground, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - Return $aResult[4] -EndFunc ;==>_GDIPlus_HatchBrushCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_HICONCreateFromBitmap($hBitmap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateHICONFromBitmap", "handle", $hBitmap, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_HICONCreateFromBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ImageAttributesCreate() - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateImageAttributes", "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[1] -EndFunc ;==>_GDIPlus_ImageAttributesCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ImageAttributesDispose($hImageAttributes) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDisposeImageAttributes", "handle", $hImageAttributes) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ImageAttributesDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ImageAttributesSetColorKeys($hImageAttributes, $iColorAdjustType = 0, $bEnable = False, $iARGBLow = 0, $iARGBHigh = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetImageAttributesColorKeys", "handle", $hImageAttributes, "int", $iColorAdjustType, "int", $bEnable, "uint", $iARGBLow, "uint", $iARGBHigh) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ImageAttributesSetColorKeys - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ImageAttributesSetColorMatrix($hImageAttributes, $iColorAdjustType = 0, $bEnable = False, $tClrMatrix = 0, $tGrayMatrix = 0, $iColorMatrixFlags = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetImageAttributesColorMatrix", "handle", $hImageAttributes, "int", $iColorAdjustType, "int", $bEnable, "struct*", $tClrMatrix, "struct*", $tGrayMatrix, "int", $iColorMatrixFlags) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ImageAttributesSetColorMatrix - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ImageDispose($hImage) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDisposeImage", "handle", $hImage) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ImageDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Yashied -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ImageGetDimension($hImage) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageDimension", "handle", $hImage, "float*", 0, "float*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Local $aImgDim[2] = [$aResult[2], $aResult[3]] - Return $aImgDim -EndFunc ;==>_GDIPlus_ImageGetDimension - -; #FUNCTION# ==================================================================================================================== -; Author ........: rover -; Modified.......: jpm -; =============================================================================================================================== -Func _GDIPlus_ImageGetFlags($hImage) - Local $aFlag[2] = [0, ""] - If ($hImage = -1) Or (Not $hImage) Then Return SetError(11, 0, $aFlag) - Local $aImageFlags[13][2] = _ - [["Pixel data Cacheable", $GDIP_IMAGEFLAGS_CACHING], _ - ["Pixel data read-only", $GDIP_IMAGEFLAGS_READONLY], _ - ["Pixel size in image", $GDIP_IMAGEFLAGS_HASREALPIXELSIZE], _ - ["DPI info in image", $GDIP_IMAGEFLAGS_HASREALDPI], _ - ["YCCK color space", $GDIP_IMAGEFLAGS_COLORSPACE_YCCK], _ - ["YCBCR color space", $GDIP_IMAGEFLAGS_COLORSPACE_YCBCR], _ - ["Grayscale image", $GDIP_IMAGEFLAGS_COLORSPACE_GRAY], _ - ["CMYK color space", $GDIP_IMAGEFLAGS_COLORSPACE_CMYK], _ - ["RGB color space", $GDIP_IMAGEFLAGS_COLORSPACE_RGB], _ - ["Partially scalable", $GDIP_IMAGEFLAGS_PARTIALLYSCALABLE], _ - ["Alpha values other than 0 (transparent) and 255 (opaque)", $GDIP_IMAGEFLAGS_HASTRANSLUCENT], _ - ["Alpha values", $GDIP_IMAGEFLAGS_HASALPHA], _ - ["Scalable", $GDIP_IMAGEFLAGS_SCALABLE]] - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageFlags", "handle", $hImage, "long*", 0) - If @error Then Return SetError(@error, @extended, $aFlag) - If $aResult[0] Then Return SetError(10, $aResult[0], $aFlag) - If $aResult[2] = $GDIP_IMAGEFLAGS_NONE Then - $aFlag[1] = "No pixel data" - Return SetError(12, $aResult[2], $aFlag) - EndIf - - $aFlag[0] = $aResult[2] - For $i = 0 To 12 - If BitAND($aResult[2], $aImageFlags[$i][1]) = $aImageFlags[$i][1] Then - If StringLen($aFlag[1]) Then $aFlag[1] &= "|" - $aResult[2] -= $aImageFlags[$i][1] - $aFlag[1] &= $aImageFlags[$i][0] - EndIf - Next - Return $aFlag -EndFunc ;==>_GDIPlus_ImageGetFlags - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ImageGetGraphicsContext($hImage) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageGraphicsContext", "handle", $hImage, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_ImageGetGraphicsContext - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ImageGetHeight($hImage) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageHeight", "handle", $hImage, "uint*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_ImageGetHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: rover -; Modified.......: jpm -; =============================================================================================================================== -Func _GDIPlus_ImageGetHorizontalResolution($hImage) - If ($hImage = -1) Or (Not $hImage) Then Return SetError(11, 0, 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageHorizontalResolution", "handle", $hImage, "float*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return Round($aResult[2]) -EndFunc ;==>_GDIPlus_ImageGetHorizontalResolution - -; #FUNCTION# ==================================================================================================================== -; Author ........: rover -; Modified.......: jpm -; =============================================================================================================================== -Func _GDIPlus_ImageGetPixelFormat($hImage) - Local $aFormat[2] = [0, ""] - If ($hImage = -1) Or (Not $hImage) Then Return SetError(11, 0, $aFormat) - Local $aPixelFormat[14][2] = _ - [["1 Bpp Indexed", $GDIP_PXF01INDEXED], _ - ["4 Bpp Indexed", $GDIP_PXF04INDEXED], _ - ["8 Bpp Indexed", $GDIP_PXF08INDEXED], _ - ["16 Bpp Grayscale", $GDIP_PXF16GRAYSCALE], _ - ["16 Bpp RGB 555", $GDIP_PXF16RGB555], _ - ["16 Bpp RGB 565", $GDIP_PXF16RGB565], _ - ["16 Bpp ARGB 1555", $GDIP_PXF16ARGB1555], _ - ["24 Bpp RGB", $GDIP_PXF24RGB], _ - ["32 Bpp RGB", $GDIP_PXF32RGB], _ - ["32 Bpp ARGB", $GDIP_PXF32ARGB], _ - ["32 Bpp PARGB", $GDIP_PXF32PARGB], _ - ["48 Bpp RGB", $GDIP_PXF48RGB], _ - ["64 Bpp ARGB", $GDIP_PXF64ARGB], _ - ["64 Bpp PARGB", $GDIP_PXF64PARGB]] - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImagePixelFormat", "handle", $hImage, "int*", 0) - If @error Then Return SetError(@error, @extended, $aFormat) - If $aResult[0] Then Return SetError(10, $aResult[0], $aFormat) - - For $i = 0 To 13 - If $aPixelFormat[$i][1] = $aResult[2] Then - $aFormat[0] = $aPixelFormat[$i][1] - $aFormat[1] = $aPixelFormat[$i][0] - Return $aFormat - EndIf - Next - - Return SetError(12, 0, $aFormat) -EndFunc ;==>_GDIPlus_ImageGetPixelFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: rover -; Modified.......: jpm -; =============================================================================================================================== -Func _GDIPlus_ImageGetRawFormat($hImage) - Local $aGuid[2] - If ($hImage = -1) Or (Not $hImage) Then Return SetError(11, 0, $aGuid) - Local $aImageType[11][2] = _ - [["UNDEFINED", $GDIP_IMAGEFORMAT_UNDEFINED], _ - ["MEMORYBMP", $GDIP_IMAGEFORMAT_MEMORYBMP], _ - ["BMP", $GDIP_IMAGEFORMAT_BMP], _ - ["EMF", $GDIP_IMAGEFORMAT_EMF], _ - ["WMF", $GDIP_IMAGEFORMAT_WMF], _ - ["JPEG", $GDIP_IMAGEFORMAT_JPEG], _ - ["PNG", $GDIP_IMAGEFORMAT_PNG], _ - ["GIF", $GDIP_IMAGEFORMAT_GIF], _ - ["TIFF", $GDIP_IMAGEFORMAT_TIFF], _ - ["EXIF", $GDIP_IMAGEFORMAT_EXIF], _ - ["ICON", $GDIP_IMAGEFORMAT_ICON]] - Local $tStruct = DllStructCreate("byte[16]") - Local $aResult1 = DllCall($__g_hGDIPDll, "int", "GdipGetImageRawFormat", "handle", $hImage, "struct*", $tStruct) - If @error Then Return SetError(@error, @extended, $aGuid) - If $aResult1[0] Then Return SetError(10, $aResult1[0], $aGuid) - Local $sResult2 = _WinAPI_StringFromGUID($aResult1[2]) - If @error Then Return SetError(@error + 20, @extended, $aGuid) - If $sResult2 = "" Then Return SetError(12, 0, $aGuid) - - For $i = 0 To 10 - If $aImageType[$i][1] == $sResult2 Then - $aGuid[0] = $aImageType[$i][1] - $aGuid[1] = $aImageType[$i][0] - Return $aGuid - EndIf - Next - - Return SetError(13, 0, $aGuid) -EndFunc ;==>_GDIPlus_ImageGetRawFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified.......: jpm -; =============================================================================================================================== -Func _GDIPlus_ImageGetThumbnail($hImage, $iWidth = 0, $iHeight = 0, $bKeepRatio = True, $hCallback = Null, $hCallbackData = Null) - If $bKeepRatio Then - Local $aImgDim = _GDIPlus_ImageGetDimension($hImage) - If @error Then Return SetError(@error + 20, @extended, False) - - Local $f - If $iWidth < 1 Or $iHeight < 1 Then - $iWidth = 0 - $iHeight = 0 - Else - If ($aImgDim[0] / $aImgDim[1]) > 1 Then - $f = $aImgDim[0] / $iWidth - Else - $f = $aImgDim[1] / $iHeight - EndIf - $iWidth = Int($aImgDim[0] / $f) - $iHeight = Int($aImgDim[1] / $f) - EndIf - EndIf - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageThumbnail", "handle", $hImage, "uint", $iWidth, "uint", $iHeight, "ptr*", 0, "ptr", $hCallback, "ptr", $hCallbackData) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return $aResult[4] -EndFunc ;==>_GDIPlus_ImageGetThumbnail - -; #FUNCTION# ==================================================================================================================== -; Author ........: rover -; Modified.......: jpm -; =============================================================================================================================== -Func _GDIPlus_ImageGetType($hImage) - If ($hImage = -1) Or (Not $hImage) Then Return SetError(11, 0, -1) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageType", "handle", $hImage, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_ImageGetType - -; #FUNCTION# ==================================================================================================================== -; Author ........: rover -; Modified.......: jpm -; =============================================================================================================================== -Func _GDIPlus_ImageGetVerticalResolution($hImage) - If ($hImage = -1) Or (Not $hImage) Then Return SetError(11, 0, 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageVerticalResolution", "handle", $hImage, "float*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return Round($aResult[2]) -EndFunc ;==>_GDIPlus_ImageGetVerticalResolution - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ImageGetWidth($hImage) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetImageWidth", "handle", $hImage, "uint*", -1) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_ImageGetWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost/martin -; =============================================================================================================================== -Func _GDIPlus_ImageLoadFromFile($sFileName) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipLoadImageFromFile", "wstr", $sFileName, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_ImageLoadFromFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ImageLoadFromStream($pStream) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipLoadImageFromStream", "ptr", $pStream, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_ImageLoadFromStream - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_ImageRotateFlip($hImage, $iRotateFlipType) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipImageRotateFlip", "handle", $hImage, "int", $iRotateFlipType) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ImageRotateFlip - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_ImageSaveToFile($hImage, $sFileName) - Local $sExt = __GDIPlus_ExtractFileExt($sFileName) - Local $sCLSID = _GDIPlus_EncodersGetCLSID($sExt) - If $sCLSID = "" Then Return SetError(-1, 0, False) - - Local $bRet = _GDIPlus_ImageSaveToFileEx($hImage, $sFileName, $sCLSID, 0) - Return SetError(@error, @extended, $bRet) -EndFunc ;==>_GDIPlus_ImageSaveToFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, jpm -; =============================================================================================================================== -Func _GDIPlus_ImageSaveToFileEx($hImage, $sFileName, $sEncoder, $tParams = 0) - Local $tGUID = _WinAPI_GUIDFromString($sEncoder) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSaveImageToFile", "handle", $hImage, "wstr", $sFileName, "struct*", $tGUID, "struct*", $tParams) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ImageSaveToFileEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ, jpm -; =============================================================================================================================== -Func _GDIPlus_ImageSaveToStream($hImage, $pStream, $tEncoder, $tParams = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSaveImageToStream", "handle", $hImage, "ptr", $pStream, "struct*", $tEncoder, "struct*", $tParams) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_ImageSaveToStream - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: -; =============================================================================================================================== -Func _GDIPlus_ImageScale($hImage, $iScaleW, $iScaleH, $iInterpolationMode = $GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC) - Local $iWidth = _GDIPlus_ImageGetWidth($hImage) * $iScaleW - If @error Then Return SetError(1, 0, 0) - Local $iHeight = _GDIPlus_ImageGetHeight($hImage) * $iScaleH - If @error Then Return SetError(2, 0, 0) - Local $hBitmap = _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight) - If @error Then Return SetError(3, 0, 0) - Local $hBmpCtxt = _GDIPlus_ImageGetGraphicsContext($hBitmap) - If @error Then - _GDIPlus_BitmapDispose($hBitmap) - Return SetError(4, 0, 0) - EndIf - _GDIPlus_GraphicsSetInterpolationMode($hBmpCtxt, $iInterpolationMode) - If @error Then - _GDIPlus_GraphicsDispose($hBmpCtxt) - _GDIPlus_BitmapDispose($hBitmap) - Return SetError(5, 0, 0) - EndIf - _GDIPlus_GraphicsDrawImageRect($hBmpCtxt, $hImage, 0, 0, $iWidth, $iHeight) - If @error Then - _GDIPlus_GraphicsDispose($hBmpCtxt) - _GDIPlus_BitmapDispose($hBitmap) - Return SetError(6, 0, 0) - EndIf - _GDIPlus_GraphicsDispose($hBmpCtxt) - Return $hBitmap -EndFunc ;==>_GDIPlus_ImageScale - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: -; =============================================================================================================================== -Func _GDIPlus_ImageResize($hImage, $iNewWidth, $iNewHeight, $iInterpolationMode = $GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC) - Local $hBitmap = _GDIPlus_BitmapCreateFromScan0($iNewWidth, $iNewHeight) - If @error Then Return SetError(1, 0, 0) - Local $hBmpCtxt = _GDIPlus_ImageGetGraphicsContext($hBitmap) - If @error Then - _GDIPlus_BitmapDispose($hBitmap) - Return SetError(2, @extended, 0) - EndIf - _GDIPlus_GraphicsSetInterpolationMode($hBmpCtxt, $iInterpolationMode) - If @error Then - _GDIPlus_GraphicsDispose($hBmpCtxt) - _GDIPlus_BitmapDispose($hBitmap) - Return SetError(3, @extended, 0) - EndIf - _GDIPlus_GraphicsDrawImageRect($hBmpCtxt, $hImage, 0, 0, $iNewWidth, $iNewHeight) - If @error Then - _GDIPlus_GraphicsDispose($hBmpCtxt) - _GDIPlus_BitmapDispose($hBitmap) - Return SetError(4, @extended, 0) - EndIf - _GDIPlus_GraphicsDispose($hBmpCtxt) - Return $hBitmap -EndFunc ;==>_GDIPlus_ImageResize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_LineBrushCreate($nX1, $nY1, $nX2, $nY2, $iARGBClr1, $iARGBClr2, $iWrapMode = 0) - Local $tPointF1, $tPointF2, $aResult - $tPointF1 = DllStructCreate("float;float") - $tPointF2 = DllStructCreate("float;float") - DllStructSetData($tPointF1, 1, $nX1) - DllStructSetData($tPointF1, 2, $nY1) - DllStructSetData($tPointF2, 1, $nX2) - DllStructSetData($tPointF2, 2, $nY2) - $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateLineBrush", "struct*", $tPointF1, "struct*", $tPointF2, "uint", $iARGBClr1, "uint", $iARGBClr2, "int", $iWrapMode, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[6] -EndFunc ;==>_GDIPlus_LineBrushCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_LineBrushCreateFromRect($tRECTF, $iARGBClr1, $iARGBClr2, $iGradientMode = 0, $iWrapMode = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateLineBrushFromRect", "struct*", $tRECTF, "uint", $iARGBClr1, "uint", $iARGBClr2, "int", $iGradientMode, "int", $iWrapMode, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[6] -EndFunc ;==>_GDIPlus_LineBrushCreateFromRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_LineBrushCreateFromRectWithAngle($tRECTF, $iARGBClr1, $iARGBClr2, $fAngle, $bIsAngleScalable = True, $iWrapMode = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateLineBrushFromRectWithAngle", "struct*", $tRECTF, "uint", $iARGBClr1, "uint", $iARGBClr2, "float", $fAngle, "int", $bIsAngleScalable, "int", $iWrapMode, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[7] -EndFunc ;==>_GDIPlus_LineBrushCreateFromRectWithAngle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_LineBrushGetColors($hLineGradientBrush) - Local $tARGBs, $aARGBs[2], $aResult - $tARGBs = DllStructCreate("uint;uint") - $aResult = DllCall($__g_hGDIPDll, "uint", "GdipGetLineColors", "handle", $hLineGradientBrush, "struct*", $tARGBs) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - $aARGBs[0] = DllStructGetData($tARGBs, 1) - $aARGBs[1] = DllStructGetData($tARGBs, 2) - Return $aARGBs -EndFunc ;==>_GDIPlus_LineBrushGetColors - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_LineBrushGetRect($hLineGradientBrush) - Local $tRECTF = DllStructCreate($tagGDIPRECTF) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetLineRect", "handle", $hLineGradientBrush, "struct*", $tRECTF) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aRectF[4] - For $iI = 1 To 4 - $aRectF[$iI - 1] = DllStructGetData($tRECTF, $iI) - Next - Return $aRectF -EndFunc ;==>_GDIPlus_LineBrushGetRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_LineBrushMultiplyTransform($hLineGradientBrush, $hMatrix, $iOrder = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipMultiplyLineTransform", "handle", $hLineGradientBrush, "handle", $hMatrix, "int", $iOrder) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_LineBrushMultiplyTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_LineBrushResetTransform($hLineGradientBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipResetLineTransform", "handle", $hLineGradientBrush) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_LineBrushResetTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_LineBrushSetBlend($hLineGradientBrush, $aBlends) - Local $iI, $iCount, $tFactors, $tPositions, $aResult - $iCount = $aBlends[0][0] - $tFactors = DllStructCreate("float[" & $iCount & "]") - $tPositions = DllStructCreate("float[" & $iCount & "]") - For $iI = 1 To $iCount - DllStructSetData($tFactors, 1, $aBlends[$iI][0], $iI) - DllStructSetData($tPositions, 1, $aBlends[$iI][1], $iI) - Next - $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetLineBlend", "handle", $hLineGradientBrush, "struct*", $tFactors, "struct*", $tPositions, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_LineBrushSetBlend - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_LineBrushSetColors($hLineGradientBrush, $iARGBStart, $iARGBEnd) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetLineColors", "handle", $hLineGradientBrush, "uint", $iARGBStart, "uint", $iARGBEnd) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_LineBrushSetColors - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_LineBrushSetGammaCorrection($hLineGradientBrush, $bUseGammaCorrection = True) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetLineGammaCorrection", "handle", $hLineGradientBrush, "int", $bUseGammaCorrection) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_LineBrushSetGammaCorrection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_LineBrushSetLinearBlend($hLineGradientBrush, $fFocus, $fScale = 1) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetLineLinearBlend", "handle", $hLineGradientBrush, "float", $fFocus, "float", $fScale) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_LineBrushSetLinearBlend - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_LineBrushSetPresetBlend($hLineGradientBrush, $aInterpolations) - Local $iI, $iCount, $tColors, $tPositions, $aResult - $iCount = $aInterpolations[0][0] - $tColors = DllStructCreate("uint[" & $iCount & "]") - $tPositions = DllStructCreate("float[" & $iCount & "]") - For $iI = 1 To $iCount - DllStructSetData($tColors, 1, $aInterpolations[$iI][0], $iI) - DllStructSetData($tPositions, 1, $aInterpolations[$iI][1], $iI) - Next - $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetLinePresetBlend", "handle", $hLineGradientBrush, "struct*", $tColors, "struct*", $tPositions, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_LineBrushSetPresetBlend - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_LineBrushSetSigmaBlend($hLineGradientBrush, $fFocus, $fScale = 1) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetLineSigmaBlend", "handle", $hLineGradientBrush, "float", $fFocus, "float", $fScale) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_LineBrushSetSigmaBlend - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_LineBrushSetTransform($hLineGradientBrush, $hMatrix) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetLineTransform", "handle", $hLineGradientBrush, "handle", $hMatrix) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_LineBrushSetTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_MatrixCreate() - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateMatrix", "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[1] -EndFunc ;==>_GDIPlus_MatrixCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_MatrixClone($hMatrix) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCloneMatrix", "handle", $hMatrix, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_MatrixClone - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_MatrixDispose($hMatrix) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteMatrix", "handle", $hMatrix) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_MatrixDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_MatrixGetElements($hMatrix) - Local $tElements = DllStructCreate("float[6]") - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetMatrixElements", "handle", $hMatrix, "struct*", $tElements) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aElements[6] - For $iI = 1 To 6 - $aElements[$iI - 1] = DllStructGetData($tElements, 1, $iI) - Next - Return $aElements -EndFunc ;==>_GDIPlus_MatrixGetElements - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_MatrixInvert($hMatrix) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipInvertMatrix", "handle", $hMatrix) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_MatrixInvert - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_MatrixMultiply($hMatrix1, $hMatrix2, $iOrder = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipMultiplyMatrix", "handle", $hMatrix1, "handle", $hMatrix2, "int", $iOrder) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_MatrixMultiply - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_MatrixRotate($hMatrix, $fAngle, $bAppend = False) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipRotateMatrix", "handle", $hMatrix, "float", $fAngle, "int", $bAppend) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_MatrixRotate - -; #FUNCTION# ==================================================================================================================== -; Author ........: monoceres -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_MatrixScale($hMatrix, $fScaleX, $fScaleY, $bOrder = False) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipScaleMatrix", "handle", $hMatrix, "float", $fScaleX, "float", $fScaleY, "int", $bOrder) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_MatrixScale - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_MatrixSetElements($hMatrix, $nM11 = 1, $nM12 = 0, $nM21 = 0, $nM22 = 1, $nDX = 0, $nDY = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetMatrixElements", "handle", $hMatrix, "float", $nM11, "float", $nM12, _ - "float", $nM21, "float", $nM22, "float", $nDX, "float", $nDY) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_MatrixSetElements - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_MatrixShear($hMatrix, $fShearX, $fShearY, $iOrder = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipShearMatrix", "handle", $hMatrix, "float", $fShearX, "float", $fShearY, "int", $iOrder) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_MatrixShear - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_MatrixTransformPoints($hMatrix, ByRef $aPoints) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], ($iI - 1) * 2 + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], ($iI - 1) * 2 + 2) - Next - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipTransformMatrixPoints", "handle", $hMatrix, "struct*", $tPoints, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - For $iI = 1 To $iCount - $aPoints[$iI][0] = DllStructGetData($tPoints, 1, ($iI - 1) * 2 + 1) - $aPoints[$iI][1] = DllStructGetData($tPoints, 1, ($iI - 1) * 2 + 2) - Next - - Return True -EndFunc ;==>_GDIPlus_MatrixTransformPoints - -; #FUNCTION# ==================================================================================================================== -; Author ........: monoceres -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_MatrixTranslate($hMatrix, $fOffsetX, $fOffsetY, $bAppend = False) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipTranslateMatrix", "handle", $hMatrix, "float", $fOffsetX, "float", $fOffsetY, "int", $bAppend) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_MatrixTranslate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _GDIPlus_ParamAdd(ByRef $tParams, $sGUID, $iNbOfValues, $iType, $pValues) - Local $iCount = DllStructGetData($tParams, "Count") - Local $pGUID = DllStructGetPtr($tParams, "GUID") + ($iCount * _GDIPlus_ParamSize()) - Local $tParam = DllStructCreate($tagGDIPENCODERPARAM, $pGUID) - _WinAPI_GUIDFromStringEx($sGUID, $pGUID) - DllStructSetData($tParam, "Type", $iType) - DllStructSetData($tParam, "NumberOfValues", $iNbOfValues) - DllStructSetData($tParam, "Values", $pValues) - - DllStructSetData($tParams, "Count", $iCount + 1) -EndFunc ;==>_GDIPlus_ParamAdd - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _GDIPlus_ParamInit($iCount) - Local $sStruct = $tagGDIPENCODERPARAMS - For $i = 2 To $iCount - $sStruct &= ";struct;byte[16];ulong;ulong;ptr;endstruct" - Next - Return DllStructCreate($sStruct) -EndFunc ;==>_GDIPlus_ParamInit - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_ParamSize() - Local $tParam = DllStructCreate($tagGDIPENCODERPARAM) - - Return DllStructGetSize($tParam) -EndFunc ;==>_GDIPlus_ParamSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_PathAddArc($hPath, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathArc", "handle", $hPath, "float", $nX, "float", $nY, _ - "float", $nWidth, "float", $nHeight, "float", $fStartAngle, "float", $fSweepAngle) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddArc - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_PathAddBezier($hPath, $nX1, $nY1, $nX2, $nY2, $nX3, $nY3, $nX4, $nY4) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathBezier", "handle", $hPath, "float", $nX1, "float", $nY1, "float", $nX2, "float", $nY2, "float", $nX3, "float", $nY3, "float", $nX4, "float", $nY4) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddBezier - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathAddClosedCurve($hPath, $aPoints) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathClosedCurve", "handle", $hPath, "struct*", $tPoints, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddClosedCurve - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathAddClosedCurve2($hPath, $aPoints, $nTension = 0.5) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathClosedCurve2", "handle", $hPath, "struct*", $tPoints, "int", $iCount, "float", $nTension) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddClosedCurve2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathAddCurve($hPath, $aPoints) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathCurve", "handle", $hPath, "struct*", $tPoints, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddCurve - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathAddCurve2($hPath, $aPoints, $nTension = 0.5) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathCurve2", "handle", $hPath, "struct*", $tPoints, "int", $iCount, "float", $nTension) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddCurve2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathAddCurve3($hPath, $aPoints, $iOffset, $iNumOfSegments, $nTension = 0.5) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathCurve3", "handle", $hPath, "struct*", $tPoints, "int", $iCount, "int", $iOffset, "int", $iNumOfSegments, "float", $nTension) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddCurve3 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_PathAddEllipse($hPath, $nX, $nY, $nWidth, $nHeight) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathEllipse", "handle", $hPath, "float", $nX, "float", $nY, "float", $nWidth, "float", $nHeight) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddEllipse - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_PathAddLine($hPath, $nX1, $nY1, $nX2, $nY2) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathLine", "handle", $hPath, "float", $nX1, "float", $nY1, "float", $nX2, "float", $nY2) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddLine - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_PathAddLine2($hPath, $aPoints) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathLine2", "handle", $hPath, "struct*", $tPoints, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddLine2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathAddPath($hPath1, $hPath2, $bConnect = True) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathPath", "handle", $hPath1, "handle", $hPath2, "int", $bConnect) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_PathAddPie($hPath, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathPie", "handle", $hPath, "float", $nX, "float", $nY, _ - "float", $nWidth, "float", $nHeight, "float", $fStartAngle, "float", $fSweepAngle) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddPie - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathAddPolygon($hPath, $aPoints) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathPolygon", "handle", $hPath, "struct*", $tPoints, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddPolygon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_PathAddRectangle($hPath, $nX, $nY, $nWidth, $nHeight) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathRectangle", "handle", $hPath, "float", $nX, "float", $nY, "float", $nWidth, "float", $nHeight) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddRectangle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathAddString($hPath, $sString, $tLayout, $hFamily, $iStyle = 0, $fSize = 8.5, $hFormat = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipAddPathString", "handle", $hPath, "wstr", $sString, "int", -1, _ - "handle", $hFamily, "int", $iStyle, "float", $fSize, "struct*", $tLayout, "handle", $hFormat) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathAddString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushCreate($aPoints, $iWrapMode = 0) - Local $iCount = $aPoints[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreatePathGradient", "struct*", $tPoints, "int", $iCount, "int", $iWrapMode, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[4] -EndFunc ;==>_GDIPlus_PathBrushCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushCreateFromPath($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreatePathGradientFromPath", "handle", $hPath, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PathBrushCreateFromPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushGetCenterPoint($hPathGradientBrush) - Local $tPointF = DllStructCreate("float;float") - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathGradientCenterPoint", "handle", $hPathGradientBrush, "struct*", $tPointF) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aPointF[2] - $aPointF[0] = DllStructGetData($tPointF, 1) - $aPointF[1] = DllStructGetData($tPointF, 2) - Return $aPointF -EndFunc ;==>_GDIPlus_PathBrushGetCenterPoint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushGetFocusScales($hPathGradientBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathGradientFocusScales", "handle", $hPathGradientBrush, "float*", 0, "float*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aScales[2] - $aScales[0] = $aResult[2] - $aScales[1] = $aResult[3] - Return $aScales -EndFunc ;==>_GDIPlus_PathBrushGetFocusScales - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushGetPointCount($hPathGradientBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathGradientPointCount", "handle", $hPathGradientBrush, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PathBrushGetPointCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushGetRect($hPathGradientBrush) - Local $tRECTF = DllStructCreate($tagGDIPRECTF) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathGradientRect", "handle", $hPathGradientBrush, "struct*", $tRECTF) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aRectF[4] - For $iI = 1 To 4 - $aRectF[$iI - 1] = DllStructGetData($tRECTF, $iI) - Next - Return $aRectF -EndFunc ;==>_GDIPlus_PathBrushGetRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushGetWrapMode($hPathGradientBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathGradientWrapMode", "handle", $hPathGradientBrush, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PathBrushGetWrapMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushMultiplyTransform($hPathGradientBrush, $hMatrix, $iOrder = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipMultiplyPathGradientTransform", "handle", $hPathGradientBrush, "handle", $hMatrix, "int", $iOrder) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushMultiplyTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushResetTransform($hPathGradientBrush) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipResetPathGradientTransform", "handle", $hPathGradientBrush) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushResetTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetBlend($hPathGradientBrush, $aBlends) - Local $iCount = $aBlends[0][0] - Local $tFactors = DllStructCreate("float[" & $iCount & "]") - Local $tPositions = DllStructCreate("float[" & $iCount & "]") - For $iI = 1 To $iCount - DllStructSetData($tFactors, 1, $aBlends[$iI][0], $iI) - DllStructSetData($tPositions, 1, $aBlends[$iI][1], $iI) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientBlend", "handle", $hPathGradientBrush, "struct*", $tFactors, "struct*", $tPositions, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetBlend - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetCenterColor($hPathGradientBrush, $iARGB) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientCenterColor", "handle", $hPathGradientBrush, "uint", $iARGB) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetCenterColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetCenterPoint($hPathGradientBrush, $nX, $nY) - Local $tPointF = DllStructCreate("float;float") - DllStructSetData($tPointF, 1, $nX) - DllStructSetData($tPointF, 2, $nY) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientCenterPoint", "handle", $hPathGradientBrush, "struct*", $tPointF) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetCenterPoint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetFocusScales($hPathGradientBrush, $fScaleX, $fScaleY) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientFocusScales", "handle", $hPathGradientBrush, "float", $fScaleX, "float", $fScaleY) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetFocusScales - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetGammaCorrection($hPathGradientBrush, $bUseGammaCorrection) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientGammaCorrection", "handle", $hPathGradientBrush, "int", $bUseGammaCorrection) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetGammaCorrection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetLinearBlend($hPathGradientBrush, $fFocus, $fScale = 1) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientLinearBlend", "handle", $hPathGradientBrush, "float", $fFocus, "float", $fScale) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetLinearBlend - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetPresetBlend($hPathGradientBrush, $aInterpolations) - Local $iCount = $aInterpolations[0][0] - Local $tColors = DllStructCreate("uint[" & $iCount & "]") - Local $tPositions = DllStructCreate("float[" & $iCount & "]") - For $iI = 1 To $iCount - DllStructSetData($tColors, 1, $aInterpolations[$iI][0], $iI) - DllStructSetData($tPositions, 1, $aInterpolations[$iI][1], $iI) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientPresetBlend", "handle", $hPathGradientBrush, "struct*", $tColors, "struct*", $tPositions, "int", $iCount) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetPresetBlend - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetSigmaBlend($hPathGradientBrush, $fFocus, $fScale = 1) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientSigmaBlend", "handle", $hPathGradientBrush, "float", $fFocus, "float", $fScale) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetSigmaBlend - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetSurroundColor($hPathGradientBrush, $iARGB) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientSurroundColorsWithCount", "handle", $hPathGradientBrush, "uint*", $iARGB, "int*", 1) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetSurroundColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetSurroundColorsWithCount($hPathGradientBrush, $aColors) - Local $iCount = $aColors[0] - Local $iColors = _GDIPlus_PathBrushGetPointCount($hPathGradientBrush) - If $iColors < $iCount Then $iCount = $iColors - Local $tColors = DllStructCreate("uint[" & $iCount & "]") - For $iI = 1 To $iCount - DllStructSetData($tColors, 1, $aColors[$iI], $iI) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientSurroundColorsWithCount", "handle", $hPathGradientBrush, "struct*", $tColors, "int*", $iCount) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_PathBrushSetSurroundColorsWithCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetTransform($hPathGradientBrush, $hMatrix) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientTransform", "handle", $hPathGradientBrush, "handle", $hMatrix) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathBrushSetWrapMode($hPathGradientBrush, $iWrapMode) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathGradientWrapMode", "handle", $hPathGradientBrush, "int", $iWrapMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathBrushSetWrapMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathClone($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipClonePath", "handle", $hPath, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PathClone - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathCloseFigure($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipClosePathFigure", "handle", $hPath) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathCloseFigure - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathCreate($iFillMode = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreatePath", "int", $iFillMode, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PathCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathCreate2($aPathData, $iFillMode = 0) - Local $iCount = $aPathData[0][0] - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - Local $tTypes = DllStructCreate("byte[" & $iCount & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPathData[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tPoints, 1, $aPathData[$iI][1], (($iI - 1) * 2) + 2) - DllStructSetData($tTypes, 1, $aPathData[$iI][2], $iI) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreatePath2", "struct*", $tPoints, "struct*", $tTypes, "int", $iCount, "int", $iFillMode, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[5] -EndFunc ;==>_GDIPlus_PathCreate2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathDispose($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeletePath", "handle", $hPath) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathFlatten($hPath, $fFlatness = 0.25, $hMatrix = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipFlattenPath", "handle", $hPath, "handle", $hMatrix, "float", $fFlatness) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathFlatten - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathGetData($hPath) - Local $iCount = _GDIPlus_PathGetPointCount($hPath) - Local $tPathData = DllStructCreate("int Count; ptr Points; ptr Types;") - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - Local $tTypes = DllStructCreate("byte[" & $iCount & "]") - DllStructSetData($tPathData, "Count", $iCount) - DllStructSetData($tPathData, "Points", DllStructGetPtr($tPoints)) - DllStructSetData($tPathData, "Types", DllStructGetPtr($tTypes)) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathData", "handle", $hPath, "struct*", $tPathData) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError($aResult[0], $aResult[0], -1) - - Local $aData[$iCount + 1][3] - $aData[0][0] = $iCount - For $iI = 1 To $iCount - $aData[$iI][0] = DllStructGetData($tPoints, 1, (($iI - 1) * 2) + 1) - $aData[$iI][1] = DllStructGetData($tPoints, 1, (($iI - 1) * 2) + 2) - $aData[$iI][2] = DllStructGetData($tTypes, 1, $iI) - Next - Return $aData -EndFunc ;==>_GDIPlus_PathGetData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathGetFillMode($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathFillMode", "handle", $hPath, "int*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PathGetFillMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathGetLastPoint($hPath) - Local $tPointF = DllStructCreate("float;float") - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathLastPoint", "handle", $hPath, "struct*", $tPointF) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aPointF[2] - $aPointF[0] = DllStructGetData($tPointF, 1) - $aPointF[1] = DllStructGetData($tPointF, 2) - Return $aPointF -EndFunc ;==>_GDIPlus_PathGetLastPoint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathGetPointCount($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPointCount", "handle", $hPath, "int*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PathGetPointCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathGetPoints($hPath) - Local $iI, $iCount, $tPoints, $aPoints[1][1], $aResult - $iCount = _GDIPlus_PathGetPointCount($hPath) - If @error Then Return SetError(@error + 10, @extended, -1) - - $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathPoints", "handle", $hPath, "struct*", $tPoints, "int", $iCount) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aPoints[$iCount + 1][2] - $aPoints[0][0] = $iCount - For $iI = 1 To $iCount - $aPoints[$iI][0] = DllStructGetData($tPoints, 1, (($iI - 1) * 2) + 1) - $aPoints[$iI][1] = DllStructGetData($tPoints, 1, (($iI - 1) * 2) + 2) - Next - Return $aPoints -EndFunc ;==>_GDIPlus_PathGetPoints - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathGetWorldBounds($hPath, $hMatrix = 0, $hPen = 0) - Local $tRECTF = DllStructCreate($tagGDIPRECTF) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPathWorldBounds", "handle", $hPath, "struct*", $tRECTF, "handle", $hMatrix, "handle", $hPen) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aRectF[4] - For $iI = 1 To 4 - $aRectF[$iI - 1] = DllStructGetData($tRECTF, $iI) - Next - Return $aRectF -EndFunc ;==>_GDIPlus_PathGetWorldBounds - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathIsOutlineVisiblePoint($hPath, $nX, $nY, $hPen = 0, $hGraphics = 0) - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipIsOutlineVisiblePathPoint", "handle", $hPath, "float", $nX, "float", $nY, "handle", $hPen, "handle", $hGraphics, "int*", 0) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return $aResult[6] <> 0 -EndFunc ;==>_GDIPlus_PathIsOutlineVisiblePoint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus, jpm -; =============================================================================================================================== -Func _GDIPlus_PathIsVisiblePoint($hPath, $nX, $nY, $hGraphics = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipIsVisiblePathPoint", "handle", $hPath, "float", $nX, "float", $nY, "handle", $hGraphics, "int*", 0) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return $aResult[5] <> 0 -EndFunc ;==>_GDIPlus_PathIsVisiblePoint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathIterCreate($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreatePathIter", "handle*", 0, "handle", $hPath) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[1] -EndFunc ;==>_GDIPlus_PathIterCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathIterDispose($hPathIter) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeletePathIter", "handle", $hPathIter) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathIterDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathIterGetSubpathCount($hPathIter) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipPathIterGetSubpathCount", "handle", $hPathIter, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PathIterGetSubpathCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathIterNextMarkerPath($hPathIter, $hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipPathIterNextMarkerPath", "handle", $hPathIter, "int*", 0, "handle", $hPath) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PathIterNextMarkerPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathIterNextSubpathPath($hPathIter, $hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipPathIterNextSubpathPath", "handle", $hPathIter, "int*", 0, "handle", $hPath, "bool*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aReturn[2] - $aReturn[0] = $aResult[2] - $aReturn[1] = $aResult[4] - Return $aReturn -EndFunc ;==>_GDIPlus_PathIterNextSubpathPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathIterRewind($hPathIter) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipPathIterRewind", "handle", $hPathIter) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathIterRewind - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathReset($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipResetPath", "handle", $hPath) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathReset - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathReverse($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipReversePath", "handle", $hPath) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathReverse - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathSetFillMode($hPath, $iFillMode) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathFillMode", "handle", $hPath, "int", $iFillMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathSetFillMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; Example .......: No -; =============================================================================================================================== -Func _GDIPlus_PathSetMarker($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPathMarker", "handle", $hPath) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathSetMarker - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathStartFigure($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipStartPathFigure", "handle", $hPath) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathStartFigure - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathTransform($hPath, $hMatrix) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipTransformPath", "handle", $hPath, "handle", $hMatrix) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathWarp($hPath, $hMatrix, $aPoints, $nX, $nY, $nWidth, $nHeight, $iWarpMode = 0, $fFlatness = 0.25) - Local $iCount = $aPoints[0][0] - If $iCount <> 3 And $iCount <> 4 Then Return SetError(11, 0, False) - - Local $tPoints = DllStructCreate("float[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tPoints, 1, $aPoints[$iI][0], ($iI - 1) * 2 + 1) - DllStructSetData($tPoints, 1, $aPoints[$iI][1], ($iI - 1) * 2 + 2) - Next - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipWarpPath", "handle", $hPath, "handle", $hMatrix, "struct*", $tPoints, "int", $iCount, _ - "float", $nX, "float", $nY, "float", $nWidth, "float", $nHeight, "int", $iWarpMode, "float", $fFlatness) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathWarp - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathWiden($hPath, $hPen, $hMatrix = 0, $fFlatness = 0.25) - __GDIPlus_PenDefCreate($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipWidenPath", "handle", $hPath, "handle", $hPen, "handle", $hMatrix, "float", $fFlatness) - __GDIPlus_PenDefDispose() ; does destroyed @error, @extended - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathWiden - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PathWindingModeOutline($hPath, $hMatrix = 0, $fFlatness = 0.25) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipWindingModeOutline", "handle", $hPath, "handle", $hMatrix, "float", $fFlatness) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PathWindingModeOutline - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenCreate($iARGB = 0xFF000000, $nWidth = 1, $iUnit = 2) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreatePen1", "dword", $iARGB, "float", $nWidth, "int", $iUnit, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[4] -EndFunc ;==>_GDIPlus_PenCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PenCreate2($hBrush, $nWidth = 1, $iUnit = 2) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreatePen2", "handle", $hBrush, "float", $nWidth, "int", $iUnit, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[4] -EndFunc ;==>_GDIPlus_PenCreate2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenDispose($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeletePen", "handle", $hPen) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenGetAlignment($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPenMode", "handle", $hPen, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PenGetAlignment - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenGetColor($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPenColor", "handle", $hPen, "dword*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PenGetColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenGetCustomEndCap($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPenCustomEndCap", "handle", $hPen, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PenGetCustomEndCap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenGetDashCap($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPenDashCap197819", "handle", $hPen, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PenGetDashCap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenGetDashStyle($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPenDashStyle", "handle", $hPen, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PenGetDashStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenGetEndCap($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPenEndCap", "handle", $hPen, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PenGetEndCap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PenGetMiterLimit($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPenMiterLimit", "handle", $hPen, "float*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PenGetMiterLimit - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenGetWidth($hPen) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetPenWidth", "handle", $hPen, "float*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_PenGetWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenSetAlignment($hPen, $iAlignment = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenMode", "handle", $hPen, "int", $iAlignment) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetAlignment - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenSetColor($hPen, $iARGB) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenColor", "handle", $hPen, "dword", $iARGB) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenSetCustomEndCap($hPen, $hEndCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenCustomEndCap", "handle", $hPen, "handle", $hEndCap) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetCustomEndCap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenSetDashCap($hPen, $iDash = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenDashCap197819", "handle", $hPen, "int", $iDash) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetDashCap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenSetDashStyle($hPen, $iStyle = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenDashStyle", "handle", $hPen, "int", $iStyle) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetDashStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenSetEndCap($hPen, $iEndCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenEndCap", "handle", $hPen, "int", $iEndCap) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetEndCap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; Example .......; No -; =============================================================================================================================== -Func _GDIPlus_PenSetLineCap($hPen, $iStartCap, $iEndCap, $iDashCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenLineCap197819", "handle", $hPen, "int", $iStartCap, "int", $iEndCap, "int", $iDashCap) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetLineCap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PenSetLineJoin($hPen, $iLineJoin) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenLineJoin", "handle", $hPen, "int", $iLineJoin) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetLineJoin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PenSetMiterLimit($hPen, $fMiterLimit) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenMiterLimit", "handle", $hPen, "float", $fMiterLimit) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetMiterLimit - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_PenSetStartCap($hPen, $iLineCap) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenStartCap", "handle", $hPen, "int", $iLineCap) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetStartCap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_PenSetWidth($hPen, $fWidth) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetPenWidth", "handle", $hPen, "float", $fWidth) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_PenSetWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_RectFCreate($nX = 0, $nY = 0, $nWidth = 0, $nHeight = 0) - Local $tRECTF = DllStructCreate($tagGDIPRECTF) - DllStructSetData($tRECTF, "X", $nX) - DllStructSetData($tRECTF, "Y", $nY) - DllStructSetData($tRECTF, "Width", $nWidth) - DllStructSetData($tRECTF, "Height", $nHeight) - Return $tRECTF -EndFunc ;==>_GDIPlus_RectFCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionClone($hRegion) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCloneRegion", "handle", $hRegion, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_RegionClone - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionCombinePath($hRegion, $hPath, $iCombineMode = 2) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCombineRegionPath", "handle", $hRegion, "handle", $hPath, "int", $iCombineMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_RegionCombinePath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionCombineRect($hRegion, $nX, $nY, $nWidth, $nHeight, $iCombineMode = 2) - Local $tRECTF = _GDIPlus_RectFCreate($nX, $nY, $nWidth, $nHeight) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCombineRegionRect", "handle", $hRegion, "struct*", $tRECTF, "int", $iCombineMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_RegionCombineRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionCombineRegion($hRegionDst, $hRegionSrc, $iCombineMode = 2) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCombineRegionRegion", "handle", $hRegionDst, "handle", $hRegionSrc, "int", $iCombineMode) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_RegionCombineRegion - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionCreate() - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateRegion", "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[1] -EndFunc ;==>_GDIPlus_RegionCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionCreateFromPath($hPath) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateRegionPath", "handle", $hPath, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_RegionCreateFromPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionCreateFromRect($nX, $nY, $nWidth, $nHeight) - Local $tRECTF = _GDIPlus_RectFCreate($nX, $nY, $nWidth, $nHeight) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateRegionRect", "struct*", $tRECTF, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_RegionCreateFromRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionDispose($hRegion) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteRegion", "handle", $hRegion) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_RegionDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionGetBounds($hRegion, $hGraphics) - Local $tRECTF = DllStructCreate($tagGDIPRECTF) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetRegionBounds", "handle", $hRegion, "handle", $hGraphics, "struct*", $tRECTF) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Local $aBounds[4] - For $iI = 1 To 4 - $aBounds[$iI - 1] = DllStructGetData($tRECTF, $iI) - Next - Return $aBounds -EndFunc ;==>_GDIPlus_RegionGetBounds - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionGetHRgn($hRegion, $hGraphics = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetRegionHRgn", "handle", $hRegion, "handle", $hGraphics, "handle*", 0) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_RegionGetHRgn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionTransform($hRegion, $hMatrix) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipTransformRegion", "handle", $hRegion, "handle", $hMatrix) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_RegionTransform - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_RegionTranslate($hRegion, $nDX, $nDY) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipTranslateRegion", "handle", $hRegion, "float", $nDX, "float", $nDY) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_RegionTranslate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_Shutdown() - If $__g_hGDIPDll = 0 Then Return SetError(-1, -1, False) - - $__g_iGDIPRef -= 1 - If $__g_iGDIPRef = 0 Then - DllCall($__g_hGDIPDll, "none", "GdiplusShutdown", "ulong_ptr", $__g_iGDIPToken) - DllClose($__g_hGDIPDll) - $__g_hGDIPDll = 0 - EndIf - Return True -EndFunc ;==>_GDIPlus_Shutdown - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, jpm, UEZ -; =============================================================================================================================== -Func _GDIPlus_Startup($sGDIPDLL = Default, $bRetDllHandle = False) - $__g_iGDIPRef += 1 - If $__g_iGDIPRef > 1 Then Return True - - If $sGDIPDLL = Default Then $sGDIPDLL = "gdiplus.dll" - - $__g_hGDIPDll = DllOpen($sGDIPDLL) - If $__g_hGDIPDll = -1 Then - $__g_iGDIPRef = 0 - Return SetError(1, 2, False) - EndIf - - Local $sVer = FileGetVersion($sGDIPDLL) - $sVer = StringSplit($sVer, ".") - If $sVer[1] > 5 Then $__g_bGDIP_V1_0 = False - - Local $tInput = DllStructCreate($tagGDIPSTARTUPINPUT) - Local $tToken = DllStructCreate("ulong_ptr Data") - DllStructSetData($tInput, "Version", 1) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdiplusStartup", "struct*", $tToken, "struct*", $tInput, "ptr", 0) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - $__g_iGDIPToken = DllStructGetData($tToken, "Data") - If $bRetDllHandle Then Return $__g_hGDIPDll - Return SetExtended($sVer[1], True) -EndFunc ;==>_GDIPlus_Startup - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_StringFormatCreate($iFormat = 0, $iLangID = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateStringFormat", "int", $iFormat, "word", $iLangID, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_StringFormatCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GDIPlus_StringFormatDispose($hFormat) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteStringFormat", "handle", $hFormat) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_StringFormatDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_StringFormatGetMeasurableCharacterRangeCount($hStringFormat) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetStringFormatMeasurableCharacterRangeCount", "handle", $hStringFormat, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_StringFormatGetMeasurableCharacterRangeCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Andreas Karlsson (monoceres) -; Modified.......: -; =============================================================================================================================== -Func _GDIPlus_StringFormatSetAlign($hStringFormat, $iFlag) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetStringFormatAlign", "handle", $hStringFormat, "int", $iFlag) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_StringFormatSetAlign - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_StringFormatSetLineAlign($hStringFormat, $iStringAlign) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetStringFormatLineAlign", "handle", $hStringFormat, "int", $iStringAlign) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_StringFormatSetLineAlign - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_StringFormatSetMeasurableCharacterRanges($hStringFormat, $aRanges) - Local $iCount = $aRanges[0][0] - Local $tCharacterRanges = DllStructCreate("int[" & $iCount * 2 & "]") - For $iI = 1 To $iCount - DllStructSetData($tCharacterRanges, 1, $aRanges[$iI][0], (($iI - 1) * 2) + 1) - DllStructSetData($tCharacterRanges, 1, $aRanges[$iI][1], (($iI - 1) * 2) + 2) - Next - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetStringFormatMeasurableCharacterRanges", "handle", $hStringFormat, "int", $iCount, "struct*", $tCharacterRanges) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_StringFormatSetMeasurableCharacterRanges - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_TextureCreate($hImage, $iWrapMode = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateTexture", "handle", $hImage, "int", $iWrapMode, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_TextureCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: UEZ -; =============================================================================================================================== -Func _GDIPlus_TextureCreate2($hImage, $nX, $nY, $nWidth, $nHeight, $iWrapMode = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateTexture2", "handle", $hImage, "int", $iWrapMode, "float", $nX, "float", $nY, "float", $nWidth, "float", $nHeight, "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[7] -EndFunc ;==>_GDIPlus_TextureCreate2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Authenticity -; Modified.......: Eukalyptus -; =============================================================================================================================== -Func _GDIPlus_TextureCreateIA($hImage, $nX, $nY, $nWidth, $nHeight, $pImageAttributes = 0) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateTextureIA", "handle", $hImage, "handle", $pImageAttributes, "float", $nX, "float", $nY, "float", $nWidth, "float", $nHeight, "ptr*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[7] -EndFunc ;==>_GDIPlus_TextureCreateIA - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GDIPlus_BrushDefCreate -; Description ...: Create a default Brush object if needed -; Syntax.........: __GDIPlus_BrushDefCreate ( ByRef $hBrush ) -; Parameters ....: $hBrush - Handle to a Brush object -; Return values .: Success - $hBrush or a default Brush object -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; =============================================================================================================================== -Func __GDIPlus_BrushDefCreate(ByRef $hBrush) - If $hBrush = 0 Then - $__g_hGDIPBrush = _GDIPlus_BrushCreateSolid() - $hBrush = $__g_hGDIPBrush - EndIf -EndFunc ;==>__GDIPlus_BrushDefCreate - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GDIPlus_BrushDefDispose -; Description ...: Free default Brush object -; Syntax.........: __GDIPlus_BrushDefDispose ( ) -; Parameters ....: -; Return values .: -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; =============================================================================================================================== -Func __GDIPlus_BrushDefDispose($iCurError = @error, $iCurExtended = @extended) - If $__g_hGDIPBrush <> 0 Then - _GDIPlus_BrushDispose($__g_hGDIPBrush) - $__g_hGDIPBrush = 0 - EndIf - Return SetError($iCurError, $iCurExtended) ; restore caller @error and @extended -EndFunc ;==>__GDIPlus_BrushDefDispose - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GDIPlus_ExtractFileExt -; Description ...: Extracts the extension part of the given filename -; Syntax.........: __GDIPlus_ExtractFileExt ( $sFileName [, $bNoDot = True] ) -; Parameters ....: $sFileName - Filename -; $bNoDot - Determines whether the filename/extension separator is returned -; |True - The separator is returned with the extension -; |False - The separator is not returned with the extension -; Return values .: Success - Extension part -; Failure - Empty string -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; =============================================================================================================================== -Func __GDIPlus_ExtractFileExt($sFileName, $bNoDot = True) - Local $iIndex = __GDIPlus_LastDelimiter(".\:", $sFileName) - If ($iIndex > 0) And (StringMid($sFileName, $iIndex, 1) = '.') Then - If $bNoDot Then - Return StringMid($sFileName, $iIndex + 1) - Else - Return StringMid($sFileName, $iIndex) - EndIf - Else - Return "" - EndIf -EndFunc ;==>__GDIPlus_ExtractFileExt - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GDIPlus_LastDelimiter -; Description ...: Returns the index of the right most whole character that matches any character in a delimiter string -; Syntax.........: __GDIPlus_LastDelimiter ( $sDelimiters, $sString ) -; Parameters ....: $sDelimiters - Delimiters -; $String - String to be searched -; Return values .: Success - Right most whole character that matches one of the delimiters -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; =============================================================================================================================== -Func __GDIPlus_LastDelimiter($sDelimiters, $sString) - Local $sDelimiter, $iN - - For $iI = 1 To StringLen($sDelimiters) - $sDelimiter = StringMid($sDelimiters, $iI, 1) - $iN = StringInStr($sString, $sDelimiter, 0, -1) - If $iN > 0 Then Return $iN - Next -EndFunc ;==>__GDIPlus_LastDelimiter - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GDIPlus_PenDefCreate -; Description ...: Create a default Pen object if needed -; Syntax.........: __GDIPlus_PenDefCreate ( ByRef $hPen ) -; Parameters ....: $hPen - Handle to a pen object -; Return values .: Success - $hPen or a default pen object -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; =============================================================================================================================== -Func __GDIPlus_PenDefCreate(ByRef $hPen) - If $hPen = 0 Then - $__g_hGDIPPen = _GDIPlus_PenCreate() - $hPen = $__g_hGDIPPen - EndIf -EndFunc ;==>__GDIPlus_PenDefCreate - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GDIPlus_PenDefDispose -; Description ...: Free default Pen object -; Syntax.........: __GDIPlus_PenDefDispose ( ) -; Parameters ....: -; Return values .: -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; =============================================================================================================================== -Func __GDIPlus_PenDefDispose($iCurError = @error, $iCurExtended = @extended) - If $__g_hGDIPPen <> 0 Then - _GDIPlus_PenDispose($__g_hGDIPPen) - $__g_hGDIPPen = 0 - EndIf - Return SetError($iCurError, $iCurExtended) ; restore caller @error and @extended -EndFunc ;==>__GDIPlus_PenDefDispose - - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_BitmapApplyEffect($hBitmap, $hEffect, $tRECT = Null) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, False) - If Not IsPtr($hEffect) Then Return SetError(10, 0, False) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipBitmapApplyEffect", "handle", $hBitmap, "handle", $hEffect, "struct*", $tRECT, "int", 0, "ptr*", 0, "int*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_BitmapApplyEffect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_BitmapApplyEffectEx($hBitmap, $hEffect, $iX = 0, $iY = 0, $iW = 0, $iH = 0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, False) - - Local $tRECT = 0 - If BitOR($iX, $iY, $iW, $iH) Then - $tRECT = DllStructCreate("int Left; int Top; int Right; int Bottom;") - DllStructSetData($tRECT, "Right", $iW + DllStructSetData($tRECT, "Left", $iX)) - DllStructSetData($tRECT, "Bottom", $iH + DllStructSetData($tRECT, "Top", $iY)) - EndIf - - Local $iStatus = _GDIPlus_BitmapApplyEffect($hBitmap, $hEffect, $tRECT) - If Not $iStatus Then Return SetError(@error, @extended, False) - - Return True -EndFunc ;==>_GDIPlus_BitmapApplyEffectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_BitmapConvertFormat($hBitmap, $iPixelFormat, $iDitherType, $iPaletteType, $tPalette, $fAlphaThresholdPercent = 0.0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, False) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipBitmapConvertFormat", "handle", $hBitmap, "uint", $iPixelFormat, "uint", $iDitherType, "uint", $iPaletteType, "struct*", $tPalette, "float", $fAlphaThresholdPercent) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_BitmapConvertFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateApplyEffect($hBitmap, $hEffect, $tRECT = Null, $tOutRECT = Null) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipBitmapCreateApplyEffect", "handle*", $hBitmap, "int", 1, "handle", $hEffect, "struct*", $tRECT, "struct*", $tOutRECT, "handle*", 0, "int", 0, "ptr*", 0, "int*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[6] -EndFunc ;==>_GDIPlus_BitmapCreateApplyEffect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_BitmapCreateApplyEffectEx($hBitmap, $hEffect, $iX = 0, $iY = 0, $iW = 0, $iH = 0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tRECT = 0 - If BitOR($iX, $iY, $iW, $iH) Then - $tRECT = DllStructCreate("int Left; int Top; int Right; int Bottom;") - DllStructSetData($tRECT, "Right", $iW + DllStructSetData($tRECT, "Left", $iX)) - DllStructSetData($tRECT, "Bottom", $iH + DllStructSetData($tRECT, "Top", $iY)) - EndIf - - Local $hBitmap_FX = _GDIPlus_BitmapCreateApplyEffect($hBitmap, $hEffect, $tRECT, Null) - - Return SetError(@error, @extended, $hBitmap_FX) -EndFunc ;==>_GDIPlus_BitmapCreateApplyEffectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_BitmapGetHistogram($hBitmap, $iHistogramFormat, $iHistogramSize, $tChannel_0, $tChannel_1 = 0, $tChannel_2 = 0, $tChannel_3 = 0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, False) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipBitmapGetHistogram", "handle", $hBitmap, "uint", $iHistogramFormat, "uint", $iHistogramSize, "struct*", $tChannel_0, "struct*", $tChannel_1, "struct*", $tChannel_2, "struct*", $tChannel_3) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_BitmapGetHistogram - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_BitmapGetHistogramEx($hBitmap) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $iSize = _GDIPlus_BitmapGetHistogramSize($GDIP_HistogramFormatARGB) - - Local $tHistogram = DllStructCreate("int Size; uint Red[" & $iSize & "]; uint MaxRed; uint Green[" & $iSize & "]; uint MaxGreen; uint Blue[" & $iSize & "]; uint MaxBlue; uint Alpha[" & $iSize & "]; uint MaxAlpha; uint Grey[" & $iSize & "]; uint MaxGrey;") - DllStructSetData($tHistogram, "Size", $iSize) - - Local $iStatus = _GDIPlus_BitmapGetHistogram($hBitmap, $GDIP_HistogramFormatARGB, $iSize, DllStructGetPtr($tHistogram, "Alpha"), DllStructGetPtr($tHistogram, "Red"), DllStructGetPtr($tHistogram, "Green"), DllStructGetPtr($tHistogram, "Blue")) - If Not $iStatus Then Return SetError(@error, @extended, 0) - $iStatus = _GDIPlus_BitmapGetHistogram($hBitmap, $GDIP_HistogramFormatGray, $iSize, DllStructGetPtr($tHistogram, "Grey")) - If Not $iStatus Then Return SetError(@error + 10, @extended, 0) - - Local $iMaxRed = 0, $iMaxGreen = 0, $iMaxBlue = 0, $iMaxAlpha = 0, $iMaxGrey = 0 - For $i = 1 To $iSize - If DllStructGetData($tHistogram, "Red", $i) > $iMaxRed Then $iMaxRed = DllStructGetData($tHistogram, "Red", $i) - If DllStructGetData($tHistogram, "Green", $i) > $iMaxGreen Then $iMaxGreen = DllStructGetData($tHistogram, "Green", $i) - If DllStructGetData($tHistogram, "Blue", $i) > $iMaxBlue Then $iMaxBlue = DllStructGetData($tHistogram, "Blue", $i) - If DllStructGetData($tHistogram, "Alpha", $i) > $iMaxAlpha Then $iMaxAlpha = DllStructGetData($tHistogram, "Alpha", $i) - If DllStructGetData($tHistogram, "Grey", $i) > $iMaxGrey Then $iMaxGrey = DllStructGetData($tHistogram, "Grey", $i) - Next - DllStructSetData($tHistogram, "MaxRed", $iMaxRed) - DllStructSetData($tHistogram, "MaxGreen", $iMaxGreen) - DllStructSetData($tHistogram, "MaxBlue", $iMaxBlue) - DllStructSetData($tHistogram, "MaxAlpha", $iMaxAlpha) - DllStructSetData($tHistogram, "MaxGrey", $iMaxGrey) - - Return $tHistogram -EndFunc ;==>_GDIPlus_BitmapGetHistogramEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_BitmapGetHistogramSize($iFormat) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipBitmapGetHistogramSize", "uint", $iFormat, "uint*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[2] -EndFunc ;==>_GDIPlus_BitmapGetHistogramSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_DrawImageFX($hGraphics, $hImage, $hEffect, $tRECTF = 0, $hMatrix = 0, $hImgAttributes = 0, $iUnit = 2) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, False) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDrawImageFX", "handle", $hGraphics, "handle", $hImage, "struct*", $tRECTF, "handle", $hMatrix, "handle", $hEffect, "handle", $hImgAttributes, "uint", $iUnit) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_DrawImageFX - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_DrawImageFXEx($hGraphics, $hImage, $hEffect, $nX = 0, $nY = 0, $nW = 0, $nH = 0, $hMatrix = 0, $hImgAttributes = 0, $iUnit = 2) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, False) - - Local $tRECTF = 0 - If BitOR($nX, $nY, $nW, $nH) Then $tRECTF = _GDIPlus_RectFCreate($nX, $nY, $nW, $nH) - - Local $iStatus = _GDIPlus_DrawImageFX($hGraphics, $hImage, $hEffect, $tRECTF, $hMatrix, $hImgAttributes, $iUnit) - - Return SetError(@error, @extended, $iStatus) -EndFunc ;==>_GDIPlus_DrawImageFXEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreate($sEffectGUID) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tGUID = _WinAPI_GUIDFromString($sEffectGUID) - Local $tElem = DllStructCreate("uint64[2];", DllStructGetPtr($tGUID)) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipCreateEffect", "uint64", DllStructGetData($tElem, 1, 1), "uint64", DllStructGetData($tElem, 1, 2), "handle*", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $aResult[3] -EndFunc ;==>_GDIPlus_EffectCreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateBlur($fRadius = 10.0, $bExpandEdge = False) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_Blur) - DllStructSetData($tEffectParameters, "Radius", $fRadius) - DllStructSetData($tEffectParameters, "ExpandEdge", $bExpandEdge) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_BlurEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateBlur - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateBrightnessContrast($iBrightnessLevel = 0, $iContrastLevel = 0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_BrightnessContrast) - DllStructSetData($tEffectParameters, "BrightnessLevel", $iBrightnessLevel) - DllStructSetData($tEffectParameters, "ContrastLevel", $iContrastLevel) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_BrightnessContrastEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateBrightnessContrast - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateColorBalance($iCyanRed = 0, $iMagentaGreen = 0, $iYellowBlue = 0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_ColorBalance) - DllStructSetData($tEffectParameters, "CyanRed", $iCyanRed) - DllStructSetData($tEffectParameters, "MagentaGreen", $iMagentaGreen) - DllStructSetData($tEffectParameters, "YellowBlue", $iYellowBlue) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_ColorBalanceEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateColorBalance - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateColorCurve($iAdjustment, $iChannel, $iAdjustValue) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_ColorCurve) - DllStructSetData($tEffectParameters, "Adjustment", $iAdjustment) - DllStructSetData($tEffectParameters, "Channel", $iChannel) - DllStructSetData($tEffectParameters, "AdjustValue", $iAdjustValue) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_ColorCurveEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateColorCurve - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateColorLUT($aColorLUT) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_ColorLUT) - For $iI = 0 To 255 - DllStructSetData($tEffectParameters, "LutA", $aColorLUT[$iI][0], $iI + 1) - DllStructSetData($tEffectParameters, "LutR", $aColorLUT[$iI][1], $iI + 1) - DllStructSetData($tEffectParameters, "LutG", $aColorLUT[$iI][2], $iI + 1) - DllStructSetData($tEffectParameters, "LutB", $aColorLUT[$iI][3], $iI + 1) - Next - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_ColorLUTEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateColorLUT - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateColorMatrix($tColorMatrix) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_ColorMatrixEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tColorMatrix) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateColorMatrix - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateHueSaturationLightness($iHueLevel = 0, $iSaturationLevel = 0, $iLightnessLevel = 0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_HueSaturationLightness) - DllStructSetData($tEffectParameters, "HueLevel", $iHueLevel) - DllStructSetData($tEffectParameters, "SaturationLevel", $iSaturationLevel) - DllStructSetData($tEffectParameters, "LightnessLevel", $iLightnessLevel) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_HueSaturationLightnessEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateHueSaturationLightness - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateLevels($iHighlight = 100, $iMidtone = 0, $iShadow = 0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_Levels) - DllStructSetData($tEffectParameters, "Highlight", $iHighlight) - DllStructSetData($tEffectParameters, "Midtone", $iMidtone) - DllStructSetData($tEffectParameters, "Shadow", $iShadow) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_LevelsEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateLevels - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateRedEyeCorrection($aAreas) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $iCount = $aAreas[0][0] - Local $tAreas = DllStructCreate("long[" & $iCount * 4 & "]") - For $iI = 1 To $iCount - DllStructSetData($tAreas, 1, DllStructSetData($tAreas, 1, $aAreas[$iI][0], (($iI - 1) * 4) + 1) + $aAreas[$iI][2], (($iI - 1) * 4) + 3) - DllStructSetData($tAreas, 1, DllStructSetData($tAreas, 1, $aAreas[$iI][1], (($iI - 1) * 4) + 2) + $aAreas[$iI][3], (($iI - 1) * 4) + 4) - Next - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_RedEyeCorrection) - DllStructSetData($tEffectParameters, "NumberOfAreas", $iCount) - DllStructSetData($tEffectParameters, "Areas", DllStructGetPtr($tAreas)) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_RedEyeCorrectionEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters, (DllStructGetSize($tAreas) + DllStructGetSize($tEffectParameters)) / DllStructGetSize($tEffectParameters)) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateRedEyeCorrection - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateSharpen($fRadius = 10.0, $fAmount = 50.0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_Sharpen) - DllStructSetData($tEffectParameters, "Radius", $fRadius) - DllStructSetData($tEffectParameters, "Amount", $fAmount) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_SharpenEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateSharpen - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectCreateTint($iHue = 0, $iAmount = 0) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - Local $tEffectParameters = DllStructCreate($tagGDIP_EFFECTPARAMS_Tint) - DllStructSetData($tEffectParameters, "Hue", $iHue) - DllStructSetData($tEffectParameters, "Amount", $iAmount) - - Local $hEffect = _GDIPlus_EffectCreate($GDIP_TintEffectGuid) - If @error Then Return SetError(@error, @extended, 0) - _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters) - If @error Then Return SetError(@error + 10, @extended, 0) - - Return $hEffect -EndFunc ;==>_GDIPlus_EffectCreateTint - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectDispose($hEffect) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, False) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipDeleteEffect", "handle", $hEffect) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_EffectDispose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectGetParameters($hEffect, $tEffectParameters) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, False) - - If DllStructGetSize($tEffectParameters) < __GDIPlus_EffectGetParameterSize($hEffect) Then Return SetError(2, 5, False) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetEffectParameters", "handle", $hEffect, "uint*", DllStructGetSize($tEffectParameters), "struct*", $tEffectParameters) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_EffectGetParameters - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name ..........: __GDIPlus_EffectGetParameterSize -; Description ...: Gets the total size, in bytes, of the parameters currently set for the specified effect -; Syntax ........: __GDIPlus_EffectGetParameterSize($hEffect) -; Parameters ....: $hEffect - Handle to an Effect object -; Return values .: Success - the size in Bytes. -; Failure - -1 and sets the @error flag to non-zero, @extended may contain GPSTATUS error code ($GPID_ERR*). -; Author ........: Eukalyptus -; Modified ......: -; Remarks .......: -; Related .......: _GDIPlus_EffectCreate, _GDIPlus_EffectGetParameters -; Link ..........: @@MsdnLink@@ GdipGetEffectParameterSize -; Example .......: No -; =============================================================================================================================== -Func __GDIPlus_EffectGetParameterSize($hEffect) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, -1) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipGetEffectParameterSize", "handle", $hEffect, "uint*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetError(10, $aResult[0], -1) - - Return $aResult[2] -EndFunc ;==>__GDIPlus_EffectGetParameterSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_EffectSetParameters($hEffect, $tEffectParameters, $iSizeAdjust = 1) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, False) - - Local $iSize = __GDIPlus_EffectGetParameterSize($hEffect) - If @error Then Return SetError(@error, @extended, False) - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipSetEffectParameters", "handle", $hEffect, "struct*", $tEffectParameters, "uint", $iSize * $iSizeAdjust) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] Then Return SetError(10, $aResult[0], False) - - Return True -EndFunc ;==>_GDIPlus_EffectSetParameters - -; #FUNCTION# ==================================================================================================================== -; Author ........: Eukalyptus -; Modified ......: jpm -; =============================================================================================================================== -Func _GDIPlus_PaletteInitialize($iEntries, $iPaletteType = $GDIP_PaletteTypeOptimal, $iOptimalColors = 0, $bUseTransparentColor = True, $hBitmap = Null) - If $__g_bGDIP_V1_0 Then Return SetError(-1, 0, 0) - - If $iOptimalColors > 0 Then $iPaletteType = $GDIP_PaletteTypeOptimal - Local $tPalette = DllStructCreate("uint Flags; uint Count; uint ARGB[" & $iEntries & "];") - DllStructSetData($tPalette, "Flags", $iPaletteType) - DllStructSetData($tPalette, "Count", $iEntries) - - Local $aResult = DllCall($__g_hGDIPDll, "int", "GdipInitializePalette", "struct*", $tPalette, "uint", $iPaletteType, "uint", $iOptimalColors, "bool", $bUseTransparentColor, "handle", $hBitmap) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return SetError(10, $aResult[0], 0) - - Return $tPalette -EndFunc ;==>_GDIPlus_PaletteInitialize diff --git a/build/Include/GDIPlusConstants.au3 b/build/Include/GDIPlusConstants.au3 deleted file mode 100644 index ab717f0c1..000000000 --- a/build/Include/GDIPlusConstants.au3 +++ /dev/null @@ -1,402 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: GDIPlus_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for GDI+ -; Author(s) .....: Valik, Gary Frost, UEZ -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Pen Dash Cap Types -Global Const $GDIP_DASHCAPFLAT = 0 ; A square cap that squares off both ends of each dash -Global Const $GDIP_DASHCAPROUND = 2 ; A circular cap that rounds off both ends of each dash -Global Const $GDIP_DASHCAPTRIANGLE = 3 ; A triangular cap that points both ends of each dash - -; Pen Dash Style Types -Global Const $GDIP_DASHSTYLESOLID = 0 ; A solid line -Global Const $GDIP_DASHSTYLEDASH = 1 ; A dashed line -Global Const $GDIP_DASHSTYLEDOT = 2 ; A dotted line -Global Const $GDIP_DASHSTYLEDASHDOT = 3 ; An alternating dash-dot line -Global Const $GDIP_DASHSTYLEDASHDOTDOT = 4 ; An alternating dash-dot-dot line -Global Const $GDIP_DASHSTYLECUSTOM = 5 ; A a user-defined, custom dashed line - -; Encoder Parameter GUIDs -Global Const $GDIP_EPGCHROMINANCETABLE = '{F2E455DC-09B3-4316-8260-676ADA32481C}' -Global Const $GDIP_EPGCOLORDEPTH = '{66087055-AD66-4C7C-9A18-38A2310B8337}' -Global Const $GDIP_EPGCOMPRESSION = '{E09D739D-CCD4-44EE-8EBA-3FBF8BE4FC58}' -Global Const $GDIP_EPGLUMINANCETABLE = '{EDB33BCE-0266-4A77-B904-27216099E717}' -Global Const $GDIP_EPGQUALITY = '{1D5BE4B5-FA4A-452D-9CDD-5DB35105E7EB}' -Global Const $GDIP_EPGRENDERMETHOD = '{6D42C53A-229A-4825-8BB7-5C99E2B9A8B8}' -Global Const $GDIP_EPGSAVEFLAG = '{292266FC-AC40-47BF-8CFC-A85B89A655DE}' -Global Const $GDIP_EPGSCANMETHOD = '{3A4E2661-3109-4E56-8536-42C156E7DCFA}' -Global Const $GDIP_EPGTRANSFORMATION = '{8D0EB2D1-A58E-4EA8-AA14-108074B7B6F9}' -Global Const $GDIP_EPGVERSION = '{24D18C76-814A-41A4-BF53-1C219CCCF797}' - -; Encoder Parameter Types -Global Const $GDIP_EPTBYTE = 1 ; 8 bit unsigned integer -Global Const $GDIP_EPTASCII = 2 ; Null terminated character string -Global Const $GDIP_EPTSHORT = 3 ; 16 bit unsigned integer -Global Const $GDIP_EPTLONG = 4 ; 32 bit unsigned integer -Global Const $GDIP_EPTRATIONAL = 5 ; Two longs (numerator, denomintor) -Global Const $GDIP_EPTLONGRANGE = 6 ; Two longs (low, high) -Global Const $GDIP_EPTUNDEFINED = 7 ; Array of bytes of any type -Global Const $GDIP_EPTRATIONALRANGE = 8 ; Two ratationals (low, high) - -; GDI Error Codes -Global Const $GDIP_ERROK = 0 ; Method call was successful -Global Const $GDIP_ERRGENERICERROR = 1 ; Generic method call error -Global Const $GDIP_ERRINVALIDPARAMETER = 2 ; One of the arguments passed to the method was not valid -Global Const $GDIP_ERROUTOFMEMORY = 3 ; The operating system is out of memory -Global Const $GDIP_ERROBJECTBUSY = 4 ; One of the arguments in the call is already in use -Global Const $GDIP_ERRINSUFFICIENTBUFFER = 5 ; A buffer is not large enough -Global Const $GDIP_ERRNOTIMPLEMENTED = 6 ; The method is not implemented -Global Const $GDIP_ERRWIN32ERROR = 7 ; The method generated a Microsoft Win32 error -Global Const $GDIP_ERRWRONGSTATE = 8 ; The object is in an invalid state to satisfy the API call -Global Const $GDIP_ERRABORTED = 9 ; The method was aborted -Global Const $GDIP_ERRFILENOTFOUND = 10 ; The specified image file or metafile cannot be found -Global Const $GDIP_ERRVALUEOVERFLOW = 11 ; The method produced a numeric overflow -Global Const $GDIP_ERRACCESSDENIED = 12 ; A write operation is not allowed on the specified file -Global Const $GDIP_ERRUNKNOWNIMAGEFORMAT = 13 ; The specified image file format is not known -Global Const $GDIP_ERRFONTFAMILYNOTFOUND = 14 ; The specified font family cannot be found -Global Const $GDIP_ERRFONTSTYLENOTFOUND = 15 ; The specified style is not available for the specified font -Global Const $GDIP_ERRNOTTRUETYPEFONT = 16 ; The font retrieved is not a TrueType font -Global Const $GDIP_ERRUNSUPPORTEDGDIVERSION = 17 ; The installed GDI+ version is incompatible -Global Const $GDIP_ERRGDIPLUSNOTINITIALIZED = 18 ; The GDI+ API is not in an initialized state -Global Const $GDIP_ERRPROPERTYNOTFOUND = 19 ; The specified property does not exist in the image -Global Const $GDIP_ERRPROPERTYNOTSUPPORTED = 20 ; The specified property is not supported - -; Encoder Value Types -Global Const $GDIP_EVTCOMPRESSIONLZW = 2 ; TIFF: LZW compression -Global Const $GDIP_EVTCOMPRESSIONCCITT3 = 3 ; TIFF: CCITT3 compression -Global Const $GDIP_EVTCOMPRESSIONCCITT4 = 4 ; TIFF: CCITT4 compression -Global Const $GDIP_EVTCOMPRESSIONRLE = 5 ; TIFF: RLE compression -Global Const $GDIP_EVTCOMPRESSIONNONE = 6 ; TIFF: No compression -Global Const $GDIP_EVTTRANSFORMROTATE90 = 13 ; JPEG: Lossless 90 degree clockwise rotation -Global Const $GDIP_EVTTRANSFORMROTATE180 = 14 ; JPEG: Lossless 180 degree clockwise rotation -Global Const $GDIP_EVTTRANSFORMROTATE270 = 15 ; JPEG: Lossless 270 degree clockwise rotation -Global Const $GDIP_EVTTRANSFORMFLIPHORIZONTAL = 16 ; JPEG: Lossless horizontal flip -Global Const $GDIP_EVTTRANSFORMFLIPVERTICAL = 17 ; JPEG: Lossless vertical flip -Global Const $GDIP_EVTMULTIFRAME = 18 ; Multiple frame encoding -Global Const $GDIP_EVTLASTFRAME = 19 ; Last frame of a multiple frame image -Global Const $GDIP_EVTFLUSH = 20 ; The encoder object is to be closed -Global Const $GDIP_EVTFRAMEDIMENSIONPAGE = 23 ; TIFF: Page frame dimension - -; Image Codec Flags constants -Global Const $GDIP_ICFENCODER = 0x00000001 ; The codec supports encoding (saving) -Global Const $GDIP_ICFDECODER = 0x00000002 ; The codec supports decoding (reading) -Global Const $GDIP_ICFSUPPORTBITMAP = 0x00000004 ; The codec supports raster images (bitmaps) -Global Const $GDIP_ICFSUPPORTVECTOR = 0x00000008 ; The codec supports vector images (metafiles) -Global Const $GDIP_ICFSEEKABLEENCODE = 0x00000010 ; The encoder requires a seekable output stream -Global Const $GDIP_ICFBLOCKINGDECODE = 0x00000020 ; The decoder has blocking behavior during the decoding process -Global Const $GDIP_ICFBUILTIN = 0x00010000 ; The codec is built in to GDI+ -Global Const $GDIP_ICFSYSTEM = 0x00020000 ; Not used in GDI+ version 1.0 -Global Const $GDIP_ICFUSER = 0x00040000 ; Not used in GDI+ version 1.0 - -; Image Lock Mode constants -Global Const $GDIP_ILMREAD = 0x0001 ; A portion of the image is locked for reading -Global Const $GDIP_ILMWRITE = 0x0002 ; A portion of the image is locked for writing -Global Const $GDIP_ILMUSERINPUTBUF = 0x0004 ; The buffer is allocated by the user - -; LineCap constants -Global Const $GDIP_LINECAPFLAT = 0x00 ; Specifies a flat cap -Global Const $GDIP_LINECAPSQUARE = 0x01 ; Specifies a square cap -Global Const $GDIP_LINECAPROUND = 0x02 ; Specifies a circular cap -Global Const $GDIP_LINECAPTRIANGLE = 0x03 ; Specifies a triangular cap -Global Const $GDIP_LINECAPNOANCHOR = 0x10 ; Specifies that the line ends are not anchored -Global Const $GDIP_LINECAPSQUAREANCHOR = 0x11 ; Specifies that the line ends are anchored with a square -Global Const $GDIP_LINECAPROUNDANCHOR = 0x12 ; Specifies that the line ends are anchored with a circle -Global Const $GDIP_LINECAPDIAMONDANCHOR = 0x13 ; Specifies that the line ends are anchored with a diamond -Global Const $GDIP_LINECAPARROWANCHOR = 0x14 ; Specifies that the line ends are anchored with arrowheads -Global Const $GDIP_LINECAPCUSTOM = 0xFF ; Specifies that the line ends are made from a CustomLineCap - -; Pixel Format constants -Global Const $GDIP_PXF01INDEXED = 0x00030101 ; 1 bpp, indexed -Global Const $GDIP_PXF04INDEXED = 0x00030402 ; 4 bpp, indexed -Global Const $GDIP_PXF08INDEXED = 0x00030803 ; 8 bpp, indexed -Global Const $GDIP_PXF16GRAYSCALE = 0x00101004 ; 16 bpp, grayscale -Global Const $GDIP_PXF16RGB555 = 0x00021005 ; 16 bpp; 5 bits for each RGB -Global Const $GDIP_PXF16RGB565 = 0x00021006 ; 16 bpp; 5 bits red, 6 bits green, and 5 bits blue -Global Const $GDIP_PXF16ARGB1555 = 0x00061007 ; 16 bpp; 1 bit for alpha and 5 bits for each RGB component -Global Const $GDIP_PXF24RGB = 0x00021808 ; 24 bpp; 8 bits for each RGB -Global Const $GDIP_PXF32RGB = 0x00022009 ; 32 bpp; 8 bits for each RGB. No alpha. -Global Const $GDIP_PXF32ARGB = 0x0026200A ; 32 bpp; 8 bits for each RGB and alpha -Global Const $GDIP_PXF32PARGB = 0x000E200B ; 32 bpp; 8 bits for each RGB and alpha, pre-mulitiplied -Global Const $GDIP_PXF48RGB = 0x0010300C ; 48 bpp; 16 bits for each RGB -Global Const $GDIP_PXF64ARGB = 0x0034400D ; 64 bpp; 16 bits for each RGB and alpha -Global Const $GDIP_PXF64PARGB = 0x001A400E ; 64 bpp; 16 bits for each RGB and alpha, pre-multiplied - -; ImageFormat constants (Globally Unique Identifier (GUID)) -Global Const $GDIP_IMAGEFORMAT_UNDEFINED = "{B96B3CA9-0728-11D3-9D7B-0000F81EF32E}" ; Windows GDI+ is unable to determine the format. -Global Const $GDIP_IMAGEFORMAT_MEMORYBMP = "{B96B3CAA-0728-11D3-9D7B-0000F81EF32E}" ; Image was constructed from a memory bitmap. -Global Const $GDIP_IMAGEFORMAT_BMP = "{B96B3CAB-0728-11D3-9D7B-0000F81EF32E}" ; Microsoft Windows Bitmap (BMP) format. -Global Const $GDIP_IMAGEFORMAT_EMF = "{B96B3CAC-0728-11D3-9D7B-0000F81EF32E}" ; Enhanced Metafile (EMF) format. -Global Const $GDIP_IMAGEFORMAT_WMF = "{B96B3CAD-0728-11D3-9D7B-0000F81EF32E}" ; Windows Metafile Format (WMF) format. -Global Const $GDIP_IMAGEFORMAT_JPEG = "{B96B3CAE-0728-11D3-9D7B-0000F81EF32E}" ; Joint Photographic Experts Group (JPEG) format. -Global Const $GDIP_IMAGEFORMAT_PNG = "{B96B3CAF-0728-11D3-9D7B-0000F81EF32E}" ; Portable Network Graphics (PNG) format. -Global Const $GDIP_IMAGEFORMAT_GIF = "{B96B3CB0-0728-11D3-9D7B-0000F81EF32E}" ; Graphics Interchange Format (GIF) format. -Global Const $GDIP_IMAGEFORMAT_TIFF = "{B96B3CB1-0728-11D3-9D7B-0000F81EF32E}" ; Tagged Image File Format (TIFF) format. -Global Const $GDIP_IMAGEFORMAT_EXIF = "{B96B3CB2-0728-11D3-9D7B-0000F81EF32E}" ; Exchangeable Image File (EXIF) format. -Global Const $GDIP_IMAGEFORMAT_ICON = "{B96B3CB5-0728-11D3-9D7B-0000F81EF32E}" ; Microsoft Windows Icon Image (ICO)format. - -; ImageType constants -Global Const $GDIP_IMAGETYPE_UNKNOWN = 0 -Global Const $GDIP_IMAGETYPE_BITMAP = 1 -Global Const $GDIP_IMAGETYPE_METAFILE = 2 - -; ImageFlags flags constants -Global Const $GDIP_IMAGEFLAGS_NONE = 0x0 ; no format information. -Global Const $GDIP_IMAGEFLAGS_SCALABLE = 0x0001 ; image can be scaled. -Global Const $GDIP_IMAGEFLAGS_HASALPHA = 0x0002 ; pixel data contains alpha values. -Global Const $GDIP_IMAGEFLAGS_HASTRANSLUCENT = 0x0004 ; pixel data has alpha values other than 0 (transparent) and 255 (opaque). -Global Const $GDIP_IMAGEFLAGS_PARTIALLYSCALABLE = 0x0008 ; pixel data is partially scalable with some limitations. -Global Const $GDIP_IMAGEFLAGS_COLORSPACE_RGB = 0x0010 ; image is stored using an RGB color space. -Global Const $GDIP_IMAGEFLAGS_COLORSPACE_CMYK = 0x0020 ; image is stored using a CMYK color space. -Global Const $GDIP_IMAGEFLAGS_COLORSPACE_GRAY = 0x0040 ; image is a grayscale image. -Global Const $GDIP_IMAGEFLAGS_COLORSPACE_YCBCR = 0x0080 ; image is stored using a YCBCR color space. -Global Const $GDIP_IMAGEFLAGS_COLORSPACE_YCCK = 0x0100 ; image is stored using a YCCK color space. -Global Const $GDIP_IMAGEFLAGS_HASREALDPI = 0x1000 ; dots per inch information is stored in the image. -Global Const $GDIP_IMAGEFLAGS_HASREALPIXELSIZE = 0x2000 ; pixel size is stored in the image. -Global Const $GDIP_IMAGEFLAGS_READONLY = 0x00010000 ; pixel data is read-only. -Global Const $GDIP_IMAGEFLAGS_CACHING = 0x00020000 ; pixel data can be cached for faster access. - -; Graphic SmoothingMode constants -Global Const $GDIP_SMOOTHINGMODE_INVALID = -1 ; Reserved. -Global Const $GDIP_SMOOTHINGMODE_DEFAULT = 0 ; Specifies that smoothing is not applied. -Global Const $GDIP_SMOOTHINGMODE_HIGHSPEED = 1 ; Specifies that smoothing is not applied. -Global Const $GDIP_SMOOTHINGMODE_HIGHQUALITY = 2 ; Specifies that smoothing is applied using an 8 X 4 box filter. -Global Const $GDIP_SMOOTHINGMODE_NONE = 3 ; Specifies that smoothing is not applied. -Global Const $GDIP_SMOOTHINGMODE_ANTIALIAS8X4 = 4 ; Specifies that smoothing is applied using an 8 X 4 box filter. -Global Const $GDIP_SMOOTHINGMODE_ANTIALIAS = $GDIP_SMOOTHINGMODE_ANTIALIAS8X4 ; Specifies that smoothing is applied using an 8 X 4 box filter. -Global Const $GDIP_SMOOTHINGMODE_ANTIALIAS8X8 = 5 ; Specifies that smoothing is applied using an 8 X 8 box filter. - -; Colors luminance -Global Const $GDIP_RLUM = 0.3086 -Global Const $GDIP_GLUM = 0.6094 -Global Const $GDIP_BLUM = 0.0820 - -; Interpolation Mode constants -Global Const $GDIP_INTERPOLATIONMODE_INVALID = -1 ; Reserved (used internally) -Global Const $GDIP_INTERPOLATIONMODE_DEFAULT = 0 ; Specifies the default interpolation mode -Global Const $GDIP_INTERPOLATIONMODE_LOWQUALITY = 1 ; Specifies a low-quality mode -Global Const $GDIP_INTERPOLATIONMODE_HIGHQUALITY = 2 ; Specifies a high-quality mode -Global Const $GDIP_INTERPOLATIONMODE_BILINEAR = 3 ; Specifies bilinear interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 50 percent of its original size. -Global Const $GDIP_INTERPOLATIONMODE_BICUBIC = 4 ; Specifies bicubic interpolation. No prefiltering is done. This mode is not suitable for shrinking an image below 25 percent of its original size -Global Const $GDIP_INTERPOLATIONMODE_NEARESTNEIGHBOR = 5 ; Specifies nearest-neighbor interpolation -Global Const $GDIP_INTERPOLATIONMODE_HIGHQUALITYBILINEAR = 6 ; Specifies high-quality, bilinear interpolation. Prefiltering is performed to ensure high-quality shrinking. -Global Const $GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC = 7 ; Specifies high-quality, bicubic interpolation. Prefiltering is performed to ensure high-quality shrinking. This mode produces the highest quality transformed images. - -; TextRenderingHint constants -Global Const $GDIP_TEXTRENDERINGHINT_SYSTEMDEFAULT = 0 ; Specifies that a character is drawn using the currently selected system font smoothing mode (also called a rendering hint). -Global Const $GDIP_TEXTRENDERINGHINT_SINGLEBITPERPIXELGRIDFIT = 1 ; Specifies that a character is drawn using its glyph bitmap and hinting to improve character appearance on stems and curvature. -Global Const $GDIP_TEXTRENDERINGHINT_SINGLEBITPERPIXEL = 2 ; Specifies that a character is drawn using its glyph bitmap and no hinting. This results in better performance at the expense of quality. -Global Const $GDIP_TEXTRENDERINGHINT_ANTIALIASGRIDFIT = 3 ; Specifies that a character is drawn using its antialiased glyph bitmap and hinting. This results in much better quality due to antialiasing at a higher performance cost. -Global Const $GDIP_TEXTRENDERINGHINT_ANTIALIAS = 4 ; Specifies that a character is drawn using its antialiased glyph bitmap and no hinting. Stem width differences may be noticeable because hinting is turned off. -Global Const $GDIP_TEXTRENDERINGHINT_CLEARTYPEGRIDFIT = 5 ; Specifies that a character is drawn using its glyph ClearType bitmap and hinting. This type of text rendering cannot be used along with CompositingModeSourceCopy. - -; PixelOffsetMode constants -Global Const $GDIP_PIXELOFFSETMODE_INVALID = -1 ; Used internally. -Global Const $GDIP_PIXELOFFSETMODE_DEFAULT = 0 ; Equivalent to $GDIP_PIXELOFFSETMODE_NONE -Global Const $GDIP_PIXELOFFSETMODE_HIGHSPEED = 1 ; Equivalent to $GDIP_PIXELOFFSETMODE_NONE -Global Const $GDIP_PIXELOFFSETMODE_HIGHQUALITY = 2 ; Equivalent to $GDIP_PIXELOFFSETMODE_HALF -Global Const $GDIP_PIXELOFFSETMODE_NONE = 3 ; Indicates that pixel centers have integer coordinates. -Global Const $GDIP_PIXELOFFSETMODE_HALF = 4 ; Indicates that pixel centers have coordinates that are half way between integer values. - -; LineJoin constants -Global Const $GDIP_PENSETLINEJOIN_MITER = 0 ; Specifies a mitered join. This produces a sharp corner or a clipped corner, depending on whether the length of the miter exceeds the miter limit. -Global Const $GDIP_PENSETLINEJOIN_BEVEL = 1 ; Specifies a beveled join. This produces a diagonal corner. -Global Const $GDIP_PENSETLINEJOIN_ROUND = 2 ; Specifies a circular join. This produces a smooth, circular arc between the lines. -Global Const $GDIP_PENSETLINEJOIN_MITERCLIPPED = 3 ; Specifies a mitered join. This produces a sharp corner or a beveled corner, depending on whether the length of the miter exceeds the miter limit. - -; Fill mode constants -Global Const $GDIP_FillModeAlternate = 0 ;Specifies that areas are filled according to the even-odd parity rule. According to this rule, you can determine -;whether a test point is inside or outside a closed curve as follows: Draw a line from the test point to a point -;that is distant from the curve. If that line crosses the curve an odd number of times, the test point is inside -;the curve; otherwise, the test point is outside the curve. - -Global Const $GDIP_FillModeWinding = 1 ;Specifies that areas are filled according to the nonzero winding rule. According to this rule, you can determine -;whether a test point is inside or outside a closed curve as follows: Draw a line from a test point to a point that -;is distant from the curve. Count the number of times the curve crosses the test line from left to right, and count -;the number of times the curve crosses the test line from right to left. If those two numbers are the same, the test -;point is outside the curve; otherwise, the test point is inside the curve. - -; Quality constants -Global Const $GDIP_QUALITYMODEINVALID = -1 -Global Const $GDIP_QUALITYMODEDEFAULT = 0 -Global Const $GDIP_QUALITYMODELOW = 1 -Global Const $GDIP_QUALITYMODEHIGH = 2 - -; Alpha Compositing mode constants -Global Const $GDIP_COMPOSITINGMODESOURCEOVER = 0 ; Specifies that when a color is rendered, it is blended with the background color. The blend is determined by the alpha component of the color being rendered -Global Const $GDIP_COMPOSITINGMODESOURCECOPY = 1 ; Specifies that when a color is rendered, it overwrites the background color. This mode cannot be used along with $TextRenderingHintClearTypeGridFit - -; Alpha Compositing quality constants -Global Const $GDIP_COMPOSITINGQUALITYINVALID = $GDIP_QUALITYMODEINVALID ; Invalid quality -Global Const $GDIP_COMPOSITINGQUALITYDEFAULT = $GDIP_QUALITYMODEDEFAULT ; Gamma correction is not applied -Global Const $GDIP_COMPOSITINGQUALITYHIGHSPEED = $GDIP_QUALITYMODELOW ; Gamma correction is not applied. High speed, low quality -Global Const $GDIP_COMPOSITINGQUALITYHIGHQUALITY = $GDIP_QUALITYMODEHIGH ; Gamma correction is applied. Composition of high quality and speed. -Global Const $GDIP_COMPOSITINGQUALITYGAMMACORRECTED = 3 ; Gamma correction is applied -Global Const $GDIP_COMPOSITINGQUALITYASSUMELINEAR = 4 ; Gamma correction is not applied. Linear values are used - -; Various hatch styles -Global Const $GDIP_HATCHSTYLE_HORIZONTAL = 0 -Global Const $GDIP_HATCHSTYLE_VERTICAL = 1 -Global Const $GDIP_HATCHSTYLE_FORWARDDIAGONAL = 2 -Global Const $GDIP_HATCHSTYLE_BACKWARDDIAGONAL = 3 -Global Const $GDIP_HATCHSTYLE_CROSS = 4 -Global Const $GDIP_HATCHSTYLE_DIAGONALCROSS = 5 -Global Const $GDIP_HATCHSTYLE_05PERCENT = 6 -Global Const $GDIP_HATCHSTYLE_10PERCENT = 7 -Global Const $GDIP_HATCHSTYLE_20PERCENT = 8 -Global Const $GDIP_HATCHSTYLE_25PERCENT = 9 -Global Const $GDIP_HATCHSTYLE_30PERCENT = 10 -Global Const $GDIP_HATCHSTYLE_40PERCENT = 11 -Global Const $GDIP_HATCHSTYLE_50PERCENT = 12 -Global Const $GDIP_HATCHSTYLE_60PERCENT = 13 -Global Const $GDIP_HATCHSTYLE_70PERCENT = 14 -Global Const $GDIP_HATCHSTYLE_75PERCENT = 15 -Global Const $GDIP_HATCHSTYLE_80PERCENT = 16 -Global Const $GDIP_HATCHSTYLE_90PERCENT = 17 -Global Const $GDIP_HATCHSTYLE_LIGHTDOWNWARDDIAGONAL = 18 -Global Const $GDIP_HATCHSTYLE_LIGHTUPWARDDIAGONAL = 19 -Global Const $GDIP_HATCHSTYLE_DARKDOWNWARDDIAGONAL = 20 -Global Const $GDIP_HATCHSTYLE_DARKUPWARDDIAGONAL = 21 -Global Const $GDIP_HATCHSTYLE_WIDEDOWNWARDDIAGONAL = 22 -Global Const $GDIP_HATCHSTYLE_WIDEUPWARDDIAGONAL = 23 -Global Const $GDIP_HATCHSTYLE_LIGHTVERTICAL = 24 -Global Const $GDIP_HATCHSTYLE_LIGHTHORIZONTAL = 25 -Global Const $GDIP_HATCHSTYLE_NARROWVERTICAL = 26 -Global Const $GDIP_HATCHSTYLE_NARROWHORIZONTAL = 27 -Global Const $GDIP_HATCHSTYLE_DARKVERTICAL = 28 -Global Const $GDIP_HATCHSTYLE_DARKHORIZONTAL = 29 -Global Const $GDIP_HATCHSTYLE_DASHEDDOWNWARDDIAGONAL = 30 -Global Const $GDIP_HATCHSTYLE_DASHEDUPWARDDIAGONAL = 31 -Global Const $GDIP_HATCHSTYLE_DASHEDHORIZONTAL = 32 -Global Const $GDIP_HATCHSTYLE_DASHEDVERTICAL = 33 -Global Const $GDIP_HATCHSTYLE_SMALLCONFETTI = 34 -Global Const $GDIP_HATCHSTYLE_LARGECONFETTI = 35 -Global Const $GDIP_HATCHSTYLE_ZIGZAG = 36 -Global Const $GDIP_HATCHSTYLE_WAVE = 37 -Global Const $GDIP_HATCHSTYLE_DIAGONALBRICK = 38 -Global Const $GDIP_HATCHSTYLE_HORIZONTALBRICK = 39 -Global Const $GDIP_HATCHSTYLE_WEAVE = 40 -Global Const $GDIP_HATCHSTYLE_PLAID = 41 -Global Const $GDIP_HATCHSTYLE_DIVOT = 42 -Global Const $GDIP_HATCHSTYLE_DOTTEDGRID = 43 -Global Const $GDIP_HATCHSTYLE_DOTTEDDIAMOND = 44 -Global Const $GDIP_HATCHSTYLE_SHINGLE = 45 -Global Const $GDIP_HATCHSTYLE_TRELLIS = 46 -Global Const $GDIP_HATCHSTYLE_SPHERE = 47 -Global Const $GDIP_HATCHSTYLE_SMALLGRID = 48 -Global Const $GDIP_HATCHSTYLE_SMALLCHECKERBOARD = 49 -Global Const $GDIP_HATCHSTYLE_LARGECHECKERBOARD = 50 -Global Const $GDIP_HATCHSTYLE_OUTLINEDDIAMOND = 51 -Global Const $GDIP_HATCHSTYLE_SOLIDDIAMOND = 52 -Global Const $GDIP_HATCHSTYLE_TOTAL = 53 -Global Const $GDIP_HATCHSTYLE_LARGEGRID = $GDIP_HATCHSTYLE_CROSS -Global Const $GDIP_HATCHSTYLE_MIN = $GDIP_HATCHSTYLE_HORIZONTAL -Global Const $GDIP_HATCHSTYLE_MAX = $GDIP_HATCHSTYLE_TOTAL - 1 - -; GDIPlus V1.1 constants -;GDI+ effect GUIDs -Global Const $GDIP_BlurEffectGuid = '{633C80A4-1843-482b-9EF2-BE2834C5FDD4}' -Global Const $GDIP_SharpenEffectGuid = '{63CBF3EE-C526-402c-8F71-62C540BF5142}' -Global Const $GDIP_ColorMatrixEffectGuid = '{718F2615-7933-40e3-A511-5F68FE14DD74}' -Global Const $GDIP_ColorLUTEffectGuid = '{A7CE72A9-0F7F-40d7-B3CC-D0C02D5C3212}' -Global Const $GDIP_BrightnessContrastEffectGuid = '{D3A1DBE1-8EC4-4c17-9F4C-EA97AD1C343D}' -Global Const $GDIP_HueSaturationLightnessEffectGuid = '{8B2DD6C3-EB07-4d87-A5F0-7108E26A9C5F}' -Global Const $GDIP_LevelsEffectGuid = '{99C354EC-2A31-4f3a-8C34-17A803B33A25}' -Global Const $GDIP_TintEffectGuid = '{1077AF00-2848-4441-9489-44AD4C2D7A2C}' -Global Const $GDIP_ColorBalanceEffectGuid = '{537E597D-251E-48da-9664-29CA496B70F8}' -Global Const $GDIP_RedEyeCorrectionEffectGuid = '{74D29D05-69A4-4266-9549-3CC52836B632}' -Global Const $GDIP_ColorCurveEffectGuid = '{DD6A0022-58E4-4a67-9D9B-D48EB881A53D}' - -Global Const $GDIP_AdjustExposure = 0 ;[-255..255] -Global Const $GDIP_AdjustDensity = 1 ;[-255..255] -Global Const $GDIP_AdjustContrast = 2 ;[-100..100] -Global Const $GDIP_AdjustHighlight = 3;[-100..100] -Global Const $GDIP_AdjustShadow = 4;[-100..100] -Global Const $GDIP_AdjustMidtone = 5;[-100..100] -Global Const $GDIP_AdjustWhiteSaturation = 6;[0..255] -Global Const $GDIP_AdjustBlackSaturation = 7;[0..255] - -Global Const $GDIP_CurveChannelAll = 0 -Global Const $GDIP_CurveChannelRed = 1 -Global Const $GDIP_CurveChannelGreen = 2 -Global Const $GDIP_CurveChannelBlue = 3 - -;Color format conversion parameters -Global Const $GDIP_PaletteTypeCustom = 0 ;Arbitrary custom palette provided by caller. -Global Const $GDIP_PaletteTypeOptimal = 1 ;Optimal palette generated using a median-cut algorithm. -Global Const $GDIP_PaletteTypeFixedBW = 2 ;Black and white palette. - -;Symmetric halftone palettes. Each of these halftone palettes will be a superset of the system palette. E.g. Halftone8 will have it's 8-color on-off primaries and the 16 system colors added. With duplicates removed, that leaves 16 colors. -Global Const $GDIP_PaletteTypeFixedHalftone8 = 3 ;8-color, on-off primaries -Global Const $GDIP_PaletteTypeFixedHalftone27 = 4 ;3 intensity levels of each color -Global Const $GDIP_PaletteTypeFixedHalftone64 = 5 ;4 intensity levels of each color -Global Const $GDIP_PaletteTypeFixedHalftone125 = 6 ;5 intensity levels of each color -Global Const $GDIP_PaletteTypeFixedHalftone216 = 7 ;6 intensity levels of each color - -;Assymetric halftone palettes. These are somewhat less useful than the symmetric ones, but are included for completeness. These do not include all of the system colors. -Global Const $GDIP_PaletteTypeFixedHalftone252 = 8 ;6-red, 7-green, 6-blue intensities -Global Const $GDIP_PaletteTypeFixedHalftone256 = 9 ;8-red, 8-green, 4-blue intensities - -;PaletteFlags enumeration -Global Const $GDIP_PaletteFlagsHasAlpha = 0x0001 -Global Const $GDIP_PaletteFlagsGrayScale = 0x0002 -Global Const $GDIP_PaletteFlagsHalftone = 0x0004 - -;DitherType -Global Const $GDIP_DitherTypeNone = 0 -Global Const $GDIP_DitherTypeSolid = 1 ;Solid color - picks the nearest matching color with no attempt to halftone or dither. May be used on an arbitrary palette. - -;Ordered dithers and spiral dithers must be used with a fixed palette. NOTE: DitherOrdered4x4 is unique in that it may apply to 16bpp conversions also. -Global Const $GDIP_DitherTypeOrdered4x4 = 2 -Global Const $GDIP_DitherTypeOrdered8x8 = 3 -Global Const $GDIP_DitherTypeOrdered16x16 = 4 -Global Const $GDIP_DitherTypeOrdered91x91 = 5 -Global Const $GDIP_DitherTypeSpiral4x4 = 6 -Global Const $GDIP_DitherTypeSpiral8x8 = 7 -Global Const $GDIP_DitherTypeDualSpiral4x4 = 8 -Global Const $GDIP_DitherTypeDualSpiral8x8 = 9 - -;Error diffusion. May be used with any palette. -Global Const $GDIP_DitherTypeErrorDiffusion = 10 -Global Const $GDIP_DitherTypeMax = 10 - -;HistogramFormat -Global Const $GDIP_HistogramFormatARGB = 0 -Global Const $GDIP_HistogramFormatPARGB = 1 -Global Const $GDIP_HistogramFormatRGB = 2 -Global Const $GDIP_HistogramFormatGray = 3 -Global Const $GDIP_HistogramFormatB = 4 -Global Const $GDIP_HistogramFormatG = 5 -Global Const $GDIP_HistogramFormatR = 6 -Global Const $GDIP_HistogramFormatA = 7 - -;TextRenderingHint constants -Global Const $GDIP_TextRenderingHintSystemDefault = 0 -Global Const $GDIP_TextRenderingHintSingleBitPerPixelGridFit = 1 -Global Const $GDIP_TextRenderingHintSingleBitPerPixel = 2 -Global Const $GDIP_TextRenderingHintAntialiasGridFit = 3 -Global Const $GDIP_TextRenderingHintAntialias = 4 -Global Const $GDIP_TextRenderingHintClearTypeGridFit = 5 - -;RotateFlipType constants -Global Const $GDIP_RotateNoneFlipNone = 0 -Global Const $GDIP_Rotate90FlipNone = 1 -Global Const $GDIP_Rotate180FlipNone = 2 -Global Const $GDIP_Rotate270FlipNone = 3 -Global Const $GDIP_RotateNoneFlipX = 4 -Global Const $GDIP_Rotate90FlipX = 5 -Global Const $GDIP_Rotate180FlipX = 6 -Global Const $GDIP_Rotate270FlipX = 7 -Global Const $GDIP_RotateNoneFlipY = $GDIP_Rotate180FlipX -Global Const $GDIP_Rotate90FlipY = $GDIP_Rotate270FlipX -Global Const $GDIP_Rotate180FlipY = $GDIP_RotateNoneFlipX -Global Const $GDIP_Rotate270FlipY = $GDIP_Rotate90FlipX -Global Const $GDIP_RotateNoneFlipXY = $GDIP_Rotate180FlipNone -Global Const $GDIP_Rotate90FlipXY = $GDIP_Rotate270FlipNone -Global Const $GDIP_Rotate270FlipXY = $GDIP_Rotate90FlipNone -;=============================================================================================================================== diff --git a/build/Include/GUIConstants.au3 b/build/Include/GUIConstants.au3 deleted file mode 100644 index a07c12478..000000000 --- a/build/Include/GUIConstants.au3 +++ /dev/null @@ -1,27 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: All GUIConstants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with GUI Applications -; Author(s) .....: Valik, jpm -; Dll ...........: -; =============================================================================================================================== - -#include "AVIConstants.au3" -#include "ButtonConstants.au3" -#include "ComboConstants.au3" -#include "DateTimeConstants.au3" -#include "EditConstants.au3" -#include "GUIConstantsEx.au3" -#include "ListBoxConstants.au3" -#include "ListViewConstants.au3" -#include "ProgressConstants.au3" -#include "RichEditConstants.au3" -#include "SliderConstants.au3" -#include "StaticConstants.au3" -#include "TabConstants.au3" -#include "TreeViewConstants.au3" -#include "UpDownConstants.au3" -#include "WindowsConstants.au3" diff --git a/build/Include/GUIConstantsEx.au3 b/build/Include/GUIConstantsEx.au3 deleted file mode 100644 index bb17854ee..000000000 --- a/build/Include/GUIConstantsEx.au3 +++ /dev/null @@ -1,111 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: GUIConstantsEx -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be used in GUI applications. -; Author(s) .....: Jpm, Valik -; Dll ...........: -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Events and messages -Global Const $GUI_EVENT_SINGLE = 0 ; (default) Returns a single event. -Global Const $GUI_EVENT_ARRAY = 1 ; returns an array containing the event and extended information. - -Global Const $GUI_EVENT_NONE = 0 -Global Const $GUI_EVENT_CLOSE = -3 -Global Const $GUI_EVENT_MINIMIZE = -4 -Global Const $GUI_EVENT_RESTORE = -5 -Global Const $GUI_EVENT_MAXIMIZE = -6 -Global Const $GUI_EVENT_PRIMARYDOWN = -7 -Global Const $GUI_EVENT_PRIMARYUP = -8 -Global Const $GUI_EVENT_SECONDARYDOWN = -9 -Global Const $GUI_EVENT_SECONDARYUP = -10 -Global Const $GUI_EVENT_MOUSEMOVE = -11 -Global Const $GUI_EVENT_RESIZED = -12 -Global Const $GUI_EVENT_DROPPED = -13 - -Global Const $GUI_RUNDEFMSG = 'GUI_RUNDEFMSG' - -; State -Global Const $GUI_AVISTOP = 0 -Global Const $GUI_AVISTART = 1 -Global Const $GUI_AVICLOSE = 2 - -Global Const $GUI_CHECKED = 1 -Global Const $GUI_INDETERMINATE = 2 -Global Const $GUI_UNCHECKED = 4 - -Global Const $GUI_DROPACCEPTED = 8 -Global Const $GUI_NODROPACCEPTED = 4096 -Global Const $GUI_ACCEPTFILES = $GUI_DROPACCEPTED ; to be suppressed - -Global Const $GUI_SHOW = 16 -Global Const $GUI_HIDE = 32 -Global Const $GUI_ENABLE = 64 -Global Const $GUI_DISABLE = 128 - -Global Const $GUI_FOCUS = 256 -Global Const $GUI_NOFOCUS = 8192 -Global Const $GUI_DEFBUTTON = 512 - -Global Const $GUI_EXPAND = 1024 -Global Const $GUI_ONTOP = 2048 - -; Font -Global Const $GUI_FONTNORMAL = 0 -Global Const $GUI_FONTITALIC = 2 -Global Const $GUI_FONTUNDER = 4 -Global Const $GUI_FONTSTRIKE = 8 - -; Resizing -Global Const $GUI_DOCKAUTO = 0x0001 -Global Const $GUI_DOCKLEFT = 0x0002 -Global Const $GUI_DOCKRIGHT = 0x0004 -Global Const $GUI_DOCKHCENTER = 0x0008 -Global Const $GUI_DOCKTOP = 0x0020 -Global Const $GUI_DOCKBOTTOM = 0x0040 -Global Const $GUI_DOCKVCENTER = 0x0080 -Global Const $GUI_DOCKWIDTH = 0x0100 -Global Const $GUI_DOCKHEIGHT = 0x0200 - -Global Const $GUI_DOCKSIZE = 0x0300 ; width+height -Global Const $GUI_DOCKMENUBAR = 0x0220 ; top+height -Global Const $GUI_DOCKSTATEBAR = 0x0240 ; bottom+height -Global Const $GUI_DOCKALL = 0x0322 ; left+top+width+height -Global Const $GUI_DOCKBORDERS = 0x0066 ; left+top+right+bottom - -; Graphic -Global Const $GUI_GR_CLOSE = 1 -Global Const $GUI_GR_LINE = 2 -Global Const $GUI_GR_BEZIER = 4 -Global Const $GUI_GR_MOVE = 6 -Global Const $GUI_GR_COLOR = 8 -Global Const $GUI_GR_RECT = 10 -Global Const $GUI_GR_ELLIPSE = 12 -Global Const $GUI_GR_PIE = 14 -Global Const $GUI_GR_DOT = 16 -Global Const $GUI_GR_PIXEL = 18 -Global Const $GUI_GR_HINT = 20 -Global Const $GUI_GR_REFRESH = 22 -Global Const $GUI_GR_PENSIZE = 24 -Global Const $GUI_GR_NOBKCOLOR = -2 - -; Background color special flags -Global Const $GUI_BKCOLOR_DEFAULT = -1 -Global Const $GUI_BKCOLOR_TRANSPARENT = -2 -Global Const $GUI_BKCOLOR_LV_ALTERNATE = 0xFE000000 - -; GUICtrlRead Constants -Global Const $GUI_READ_DEFAULT = 0 ; (Default) Returns a value with state or data of a control. -Global Const $GUI_READ_EXTENDED = 1 ; Returns extended information of a control (see Remarks). - -; GUISetCursor Constants -Global Const $GUI_CURSOR_NOOVERRIDE = 0 ; (default) Don't override a control's default mouse cursor. -Global Const $GUI_CURSOR_OVERRIDE = 1 ; override control's default mouse cursor. - -; Other -Global Const $GUI_WS_EX_PARENTDRAG = 0x00100000 -; =============================================================================================================================== diff --git a/build/Include/GuiAVI.au3 b/build/Include/GuiAVI.au3 deleted file mode 100644 index df19d5f55..000000000 --- a/build/Include/GuiAVI.au3 +++ /dev/null @@ -1,206 +0,0 @@ -#include-once - -#include "AVIConstants.au3" -#include "Memory.au3" -#include "SendMessage.au3" -#include "UDFGlobalID.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Animation -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with AVI control management. -; An animation control is a window that displays an Audio-Video Interleaved (AVI) clip. An AVI clip is a series -; of bitmap frames like a movie. Animation controls can only display AVI clips that do not contain audio. One -; common use for an animation control is to indicate system activity during a lengthy operation. This is -; possible because the operation thread continues executing while the AVI clip is displayed. For example, the -; Find dialog box of Microsoft Windows Explorer displays a moving magnifying glass as the system searches for a -; file. -; -; If you are using comctl32.dll version 6 the thread is not supported, therefore make sure that your application -; does not block the UI or the animation will not occur. An animation control can display an AVI clip -; originating from either an uncompressed AVI file or from an AVI file that was compressed using run length -; (BI_RLE8) encoding. You can add the AVI clip to your application as an AVI resource, or the clip can accompany -; your application as a separate AVI file. -; -; The AVI file, or resource, must not have a sound channel. The capabilities of the animation control are very -; limited and are subject to change. If you need a control to provide multimedia playback and recording -; capabilities for your application, you can use the MCIWnd control. -; Author(s) .....: Paul Campbell (PaulIA) -; Dll(s .........: user32.dll -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== - -Global $__g_hAVLastWnd -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__AVICONSTANT_ClassName = "SysAnimate32" -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlAVI_Close -; _GUICtrlAVI_Create -; _GUICtrlAVI_Destroy -; _GUICtrlAVI_IsPlaying -; _GUICtrlAVI_Open -; _GUICtrlAVI_OpenEx -; _GUICtrlAVI_Play -; _GUICtrlAVI_Seek -; _GUICtrlAVI_Show -; _GUICtrlAVI_Stop -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlAVI_Close($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iRet = _SendMessage($hWnd, $ACM_OPENA) - Return SetError(@error, @extended, $iRet <> 0) -EndFunc ;==>_GUICtrlAVI_Close - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (Added params, Added Open calls "sets the avi to 1st frame") -; =============================================================================================================================== -Func _GUICtrlAVI_Create($hWnd, $sFilePath = "", $iSubFileID = -1, $iX = 0, $iY = 0, $iWidth = 0, $iHeight = 0, $iStyle = 0x00000006, $iExStyle = 0x00000000) - If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0) ; Invalid Window handle for 1st parameter - If Not IsString($sFilePath) Then Return SetError(2, 0, 0) ; 2nd parameter not a string for _GUICtrlAVI_Create - - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hAVI = _WinAPI_CreateWindowEx($iExStyle, $__AVICONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - If $iSubFileID <> -1 And $sFilePath <> "" Then - _GUICtrlAVI_OpenEx($hAVI, $sFilePath, $iSubFileID) - ElseIf $sFilePath <> "" Then - _GUICtrlAVI_Open($hAVI, $sFilePath) - EndIf - Return $hAVI -EndFunc ;==>_GUICtrlAVI_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlAVI_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__AVICONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hAVLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlAVI_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlAVI_IsPlaying($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $ACM_ISPLAYING) <> 0 -EndFunc ;==>_GUICtrlAVI_IsPlaying - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (Added seek "sets the avi to 1st frame") -; =============================================================================================================================== -Func _GUICtrlAVI_Open($hWnd, $sFileName) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hAVLastWnd) Then - $iRet = _SendMessage($hWnd, $ACM_OPENW, 0, $sFileName, 0, "wparam", "wstr") - Else - Local $tBuffer = DllStructCreate("wchar Text[" & StringLen($sFileName) + 1 & "]") - DllStructSetData($tBuffer, "Text", $sFileName) - Local $tMemMap - _MemInit($hWnd, DllStructGetSize($tBuffer), $tMemMap) - _MemWrite($tMemMap, $tBuffer) - $iRet = _SendMessage($hWnd, $ACM_OPENW, True, $tBuffer, 0, "wparam", "struct*") - _MemFree($tMemMap) - EndIf - If $iRet <> 0 Then _GUICtrlAVI_Seek($hWnd, 0) - Return SetError(@error, @extended, $iRet <> 0) -EndFunc ;==>_GUICtrlAVI_Open - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (Added seek "sets the avi to 1st frame") -; =============================================================================================================================== -Func _GUICtrlAVI_OpenEx($hWnd, $sFileName, $iResourceID) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $hInst = _WinAPI_LoadLibrary($sFileName) - If @error Then Return SetError(@error, @extended, False) - Local $iRet = _SendMessage($hWnd, $ACM_OPENW, $hInst, $iResourceID) - _WinAPI_FreeLibrary($hInst) - If $iRet <> 0 Then _GUICtrlAVI_Seek($hWnd, 0) - Return SetError(@error, @extended, $iRet <> 0) -EndFunc ;==>_GUICtrlAVI_OpenEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlAVI_Play($hWnd, $iFrom = 0, $iTo = -1, $iRepeat = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iRet = _SendMessage($hWnd, $ACM_PLAY, $iRepeat, _WinAPI_MakeLong($iFrom, $iTo)) - Return SetError(@error, @extended, $iRet <> 0) -EndFunc ;==>_GUICtrlAVI_Play - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlAVI_Seek($hWnd, $iFrame) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iRet = _SendMessage($hWnd, $ACM_PLAY, 1, _WinAPI_MakeLong($iFrame, $iFrame)) - Return SetError(@error, @extended, $iRet <> 0) -EndFunc ;==>_GUICtrlAVI_Seek - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlAVI_Show($hWnd, $iState) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If $iState <> @SW_HIDE And $iState <> @SW_SHOW Then Return SetError(1, 1, 0) - Return _WinAPI_ShowWindow($hWnd, $iState) -EndFunc ;==>_GUICtrlAVI_Show - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlAVI_Stop($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iRet = _SendMessage($hWnd, $ACM_STOP) - Return SetError(@error, @extended, $iRet <> 0) -EndFunc ;==>_GUICtrlAVI_Stop diff --git a/build/Include/GuiButton.au3 b/build/Include/GuiButton.au3 deleted file mode 100644 index 2f120a418..000000000 --- a/build/Include/GuiButton.au3 +++ /dev/null @@ -1,559 +0,0 @@ -#include-once - -#include "ButtonConstants.au3" -#include "SendMessage.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Button -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Button control management. -; A button is a control the user can click to provide input to an application. -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hButtonLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $tagBUTTON_IMAGELIST = "ptr ImageList;" & $tagRECT & ";uint Align" -Global Const $tagBUTTON_SPLITINFO = "uint mask;handle himlGlyph;uint uSplitStyle;" & $tagSIZE -; mask -; A set of flags that specify which members of this structure contain data to be set or which members are being requested. Set this member to one or more of the following flags. -; BCSIF_GLYPH -; himlGlyph is valid. -; BCSIF_IMAGE -; himlGlyph is valid. Use when uSplitStyle is set to BCSS_IMAGE. -; BCSIF_SIZE -; size is valid. -; BCSIF_STYLE -; uSplitStyle is valid. -; himlGlyph -; A handle to the image list. The provider retains ownership of the image list and is ultimately responsible for its disposal. -; uSplitStyle -; The split button style. Value must be one or more of the following flags. -; BCSS_ALIGNLEFT -; Align the image or glyph horizontally with the left margin. -; BCSS_IMAGE -; Draw an icon image as the glyph. -; BCSS_NOSPLIT -; No split. -; BCSS_STRETCH -; Stretch glyph, but try to retain aspect ratio. -; size -; Fields ........: X - Width -; Y - Height - -Global Const $__BUTTONCONSTANT_ClassName = "Button" - -Global Const $__BUTTONCONSTANT_GWL_STYLE = 0xFFFFFFF0 - -Global Const $__BUTTONCONSTANT_WM_SETFONT = 0x0030 -Global Const $__BUTTONCONSTANT_DEFAULT_GUI_FONT = 17 -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not working/documented/implemented at this time -; -; _GUICtrlButton_SetDropDownState -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlButton_Click -; _GUICtrlButton_Create -; _GUICtrlButton_Destroy -; _GUICtrlButton_Enable -; _GUICtrlButton_GetCheck -; _GUICtrlButton_GetFocus -; _GUICtrlButton_GetIdealSize -; _GUICtrlButton_GetImage -; _GUICtrlButton_GetImageList -; _GUICtrlButton_GetNote -; _GUICtrlButton_GetNoteLength -; _GUICtrlButton_GetSplitInfo -; _GUICtrlButton_GetState -; _GUICtrlButton_GetText -; _GUICtrlButton_GetTextMargin -; _GUICtrlButton_SetCheck -; _GUICtrlButton_SetDontClick -; _GUICtrlButton_SetFocus -; _GUICtrlButton_SetImage -; _GUICtrlButton_SetImageList -; _GUICtrlButton_SetNote -; _GUICtrlButton_SetShield -; _GUICtrlButton_SetSize -; _GUICtrlButton_SetSplitInfo -; _GUICtrlButton_SetState -; _GUICtrlButton_SetStyle -; _GUICtrlButton_SetText -; _GUICtrlButton_SetTextMargin -; _GUICtrlButton_Show -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_Click($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - _SendMessage($hWnd, $BM_CLICK) -EndFunc ;==>_GUICtrlButton_Click - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_Create($hWnd, $sText, $iX, $iY, $iWidth, $iHeight, $iStyle = -1, $iExStyle = -1) - If Not IsHWnd($hWnd) Then - ; Invalid Window handle for _GUICtrlButton_Create 1st parameter - Return SetError(1, 0, 0) - EndIf - If Not IsString($sText) Then - ; 2nd parameter not a string for _GUICtrlButton_Create - Return SetError(2, 0, 0) - EndIf - - Local $iForcedStyle = BitOR($__UDFGUICONSTANT_WS_TABSTOP, $__UDFGUICONSTANT_WS_VISIBLE, $__UDFGUICONSTANT_WS_CHILD, $BS_NOTIFY) - - If $iStyle = -1 Then - $iStyle = $iForcedStyle - Else - $iStyle = BitOR($iStyle, $iForcedStyle) - EndIf - If $iExStyle = -1 Then $iExStyle = 0 - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - Local $hButton = _WinAPI_CreateWindowEx($iExStyle, $__BUTTONCONSTANT_ClassName, $sText, $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _SendMessage($hButton, $__BUTTONCONSTANT_WM_SETFONT, _WinAPI_GetStockObject($__BUTTONCONSTANT_DEFAULT_GUI_FONT), True) - Return $hButton -EndFunc ;==>_GUICtrlButton_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__BUTTONCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hButtonLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlButton_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_Enable($hWnd, $bEnable = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - If _WinAPI_IsClassName($hWnd, $__BUTTONCONSTANT_ClassName) Then Return _WinAPI_EnableWindow($hWnd, $bEnable) = $bEnable -EndFunc ;==>_GUICtrlButton_Enable - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetCheck($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Return _SendMessage($hWnd, $BM_GETCHECK) -EndFunc ;==>_GUICtrlButton_GetCheck - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetFocus($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - If _WinAPI_IsClassName($hWnd, $__BUTTONCONSTANT_ClassName) Then Return _WinAPI_GetFocus() = $hWnd -EndFunc ;==>_GUICtrlButton_GetFocus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetIdealSize($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tSize = DllStructCreate($tagSIZE), $aSize[2] - Local $iRet = _SendMessage($hWnd, $BCM_GETIDEALSIZE, 0, $tSize, 0, "wparam", "struct*") - If Not $iRet Then Return SetError(-1, -1, $aSize) - $aSize[0] = DllStructGetData($tSize, "X") - $aSize[1] = DllStructGetData($tSize, "Y") - Return $aSize -EndFunc ;==>_GUICtrlButton_GetIdealSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetImage($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Local $iRet = _SendMessage($hWnd, $BM_GETIMAGE, 0, 0, 0, "wparam", "lparam", "hwnd") ; check IMAGE_BITMAP - If $iRet <> 0x00000000 Then Return $iRet - $iRet = _SendMessage($hWnd, $BM_GETIMAGE, 1, 0, 0, "wparam", "lparam", "hwnd") ; check IMAGE_ICON - If $iRet = 0x00000000 Then Return 0 - Return $iRet -EndFunc ;==>_GUICtrlButton_GetImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetImageList($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Local $tBUTTON_IMAGELIST = DllStructCreate($tagBUTTON_IMAGELIST), $aImageList[6] - If Not _SendMessage($hWnd, $BCM_GETIMAGELIST, 0, $tBUTTON_IMAGELIST, 0, "wparam", "struct*") Then Return SetError(-1, -1, $aImageList) - $aImageList[0] = DllStructGetData($tBUTTON_IMAGELIST, "ImageList") - $aImageList[1] = DllStructGetData($tBUTTON_IMAGELIST, "Left") - $aImageList[2] = DllStructGetData($tBUTTON_IMAGELIST, "Right") - $aImageList[3] = DllStructGetData($tBUTTON_IMAGELIST, "Top") - $aImageList[4] = DllStructGetData($tBUTTON_IMAGELIST, "Bottom") - $aImageList[5] = DllStructGetData($tBUTTON_IMAGELIST, "Align") - Return $aImageList -EndFunc ;==>_GUICtrlButton_GetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetNote($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iLen = _GUICtrlButton_GetNoteLength($hWnd) + 1 - Local $tNote = DllStructCreate("wchar Note[" & $iLen & "]") - Local $tLen = DllStructCreate("dword") - DllStructSetData($tLen, 1, $iLen) - If Not _SendMessage($hWnd, $BCM_GETNOTE, $tLen, $tNote, 0, "struct*", "struct*") Then Return SetError(-1, 0, "") - Return _WinAPI_WideCharToMultiByte($tNote) -EndFunc ;==>_GUICtrlButton_GetNote - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetNoteLength($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Return _SendMessage($hWnd, $BCM_GETNOTELENGTH) -EndFunc ;==>_GUICtrlButton_GetNoteLength - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetSplitInfo($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tSplitInfo = DllStructCreate($tagBUTTON_SPLITINFO), $aInfo[4] - DllStructSetData($tSplitInfo, "mask", BitOR($BCSIF_GLYPH, $BCSIF_IMAGE, $BCSIF_SIZE, $BCSIF_STYLE)) - If Not _SendMessage($hWnd, $BCM_GETSPLITINFO, 0, $tSplitInfo, 0, "wparam", "struct*") Then Return SetError(-1, 0, $aInfo) - $aInfo[0] = DllStructGetData($tSplitInfo, "himlGlyph") - $aInfo[1] = DllStructGetData($tSplitInfo, "uSplitStyle") - $aInfo[2] = DllStructGetData($tSplitInfo, "X") - $aInfo[3] = DllStructGetData($tSplitInfo, "Y") - Return $aInfo -EndFunc ;==>_GUICtrlButton_GetSplitInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetState($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Return _SendMessage($hWnd, $BM_GETSTATE) -EndFunc ;==>_GUICtrlButton_GetState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetText($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - If _WinAPI_IsClassName($hWnd, $__BUTTONCONSTANT_ClassName) Then Return _WinAPI_GetWindowText($hWnd) - Return "" -EndFunc ;==>_GUICtrlButton_GetText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_GetTextMargin($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Local $tRECT = DllStructCreate($tagRECT), $aRect[4] - If Not _SendMessage($hWnd, $BCM_GETTEXTMARGIN, 0, $tRECT, 0, "wparam", "struct*") Then Return SetError(-1, -1, $aRect) - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlButton_GetTextMargin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetCheck($hWnd, $iState = $BST_CHECKED) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - _SendMessage($hWnd, $BM_SETCHECK, $iState) -EndFunc ;==>_GUICtrlButton_SetCheck - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetDontClick($hWnd, $bState = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - _SendMessage($hWnd, $BM_SETDONTCLICK, $bState) -EndFunc ;==>_GUICtrlButton_SetDontClick - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlButton_SetDropDownState -; Description ...: Sets the drop down state for a button with style $TBSTYLE_DROPDOWN -; Syntax.........: _GUICtrlButton_SetDropDownState ( $hWnd [, $bState = True] ) -; Parameters ....: $hWnd - Handle to the control -; $iState - Drop down state -; | True - For state of $BST_DROPDOWNPUSHED -; | False - otherwise -; Return values .: Success - True -; Failure - False -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: Minimum Operating Systems: Windows Vista -; Related .......: -; Link ..........: @@MsdnLink@@ BCM_SETDROPDOWNSTATE -; Example .......: Yes -; =============================================================================================================================== -Func _GUICtrlButton_SetDropDownState($hWnd, $bState = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Return _SendMessage($hWnd, $BCM_SETDROPDOWNSTATE, $bState) <> 0 -EndFunc ;==>_GUICtrlButton_SetDropDownState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetFocus($hWnd, $bFocus = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - If _WinAPI_IsClassName($hWnd, $__BUTTONCONSTANT_ClassName) Then - If $bFocus Then - Return _WinAPI_SetFocus($hWnd) <> 0 - Else - Return _WinAPI_SetFocus(_WinAPI_GetParent($hWnd)) <> 0 - EndIf - EndIf -EndFunc ;==>_GUICtrlButton_SetFocus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetImage($hWnd, $sImageFile, $iIconID = -1, $bLarge = False) - Local $hImage, $hPrevImage - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If StringUpper(StringMid($sImageFile, StringLen($sImageFile) - 2)) = "BMP" Then - If BitAND(_WinAPI_GetWindowLong($hWnd, $__BUTTONCONSTANT_GWL_STYLE), $BS_BITMAP) = $BS_BITMAP Then - $hImage = _WinAPI_LoadImage(0, $sImageFile, 0, 0, 0, BitOR($LR_LOADFROMFILE, $LR_CREATEDIBSECTION)) - If Not $hImage Then Return SetError(-1, -1, False) - $hPrevImage = _SendMessage($hWnd, $BM_SETIMAGE, 0, $hImage) - If $hPrevImage Then - If Not _WinAPI_DeleteObject($hPrevImage) Then _WinAPI_DestroyIcon($hPrevImage) - EndIf - _WinAPI_UpdateWindow($hWnd) ; force a WM_PAINT - Return True - EndIf - Else - If $iIconID = -1 Then - $hImage = _WinAPI_LoadImage(0, $sImageFile, 1, 0, 0, BitOR($LR_LOADFROMFILE, $LR_CREATEDIBSECTION)) - If Not $hImage Then Return SetError(-1, -1, False) - $hPrevImage = _SendMessage($hWnd, $BM_SETIMAGE, 1, $hImage) - If $hPrevImage Then - If Not _WinAPI_DeleteObject($hPrevImage) Then _WinAPI_DestroyIcon($hPrevImage) - EndIf - _WinAPI_UpdateWindow($hWnd) ; force a WM_PAINT - Return True - Else - Local $tIcon = DllStructCreate("handle Handle") - Local $iRet - If $bLarge Then - $iRet = _WinAPI_ExtractIconEx($sImageFile, $iIconID, $tIcon, 0, 1) - Else - $iRet = _WinAPI_ExtractIconEx($sImageFile, $iIconID, 0, $tIcon, 1) - EndIf - If Not $iRet Then Return SetError(-1, -1, False) - $hPrevImage = _SendMessage($hWnd, $BM_SETIMAGE, 1, DllStructGetData($tIcon, "Handle")) - If $hPrevImage Then - If Not _WinAPI_DeleteObject($hPrevImage) Then _WinAPI_DestroyIcon($hPrevImage) - EndIf - _WinAPI_UpdateWindow($hWnd) ; force a WM_PAINT - Return True - EndIf - EndIf - Return False -EndFunc ;==>_GUICtrlButton_SetImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetImageList($hWnd, $hImage, $iAlign = 0, $iLeft = 1, $iTop = 1, $iRight = 1, $iBottom = 1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - If $iAlign < 0 Or $iAlign > 4 Then $iAlign = 0 - - Local $tBUTTON_IMAGELIST = DllStructCreate($tagBUTTON_IMAGELIST) - - DllStructSetData($tBUTTON_IMAGELIST, "ImageList", $hImage) - DllStructSetData($tBUTTON_IMAGELIST, "Left", $iLeft) - DllStructSetData($tBUTTON_IMAGELIST, "Top", $iTop) - DllStructSetData($tBUTTON_IMAGELIST, "Right", $iRight) - DllStructSetData($tBUTTON_IMAGELIST, "Bottom", $iBottom) - DllStructSetData($tBUTTON_IMAGELIST, "Align", $iAlign) - - Local $bEnabled = _GUICtrlButton_Enable($hWnd, False) - Local $iRet = _SendMessage($hWnd, $BCM_SETIMAGELIST, 0, $tBUTTON_IMAGELIST, 0, "wparam", "struct*") <> 0 - _GUICtrlButton_Enable($hWnd) - If Not $bEnabled Then _GUICtrlButton_Enable($hWnd, False) - Return $iRet -EndFunc ;==>_GUICtrlButton_SetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetNote($hWnd, $sNote) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Local $tNote = _WinAPI_MultiByteToWideChar($sNote) - Return _SendMessage($hWnd, $BCM_SETNOTE, 0, $tNote, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlButton_SetNote - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetShield($hWnd, $bRequired = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Return _SendMessage($hWnd, $BCM_SETSHIELD, 0, $bRequired) = 1 -EndFunc ;==>_GUICtrlButton_SetShield - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetSize($hWnd, $iWidth, $iHeight) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If Not _WinAPI_IsClassName($hWnd, $__BUTTONCONSTANT_ClassName) Then Return SetError(-1, -1, False) - Local $hParent = _WinAPI_GetParent($hWnd) - If Not $hParent Then Return SetError(-1, -1, False) - Local $aPos = WinGetPos($hWnd) - If Not IsArray($aPos) Then Return SetError(-1, -1, False) - Local $tPoint = DllStructCreate($tagPOINT) - DllStructSetData($tPoint, "X", $aPos[0]) - DllStructSetData($tPoint, "Y", $aPos[1]) - If Not _WinAPI_ScreenToClient($hParent, $tPoint) Then Return SetError(-1, -1, False) - Local $iRet = WinMove($hWnd, "", DllStructGetData($tPoint, "X"), DllStructGetData($tPoint, "Y"), $iWidth, $iHeight) - Return SetError($iRet - 1, $iRet - 1, $iRet <> 0) -EndFunc ;==>_GUICtrlButton_SetSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetSplitInfo($hWnd, $hImlGlyph = -1, $iSplitStyle = $BCSS_ALIGNLEFT, $iWidth = 0, $iHeight = 0) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Local $tSplitInfo = DllStructCreate($tagBUTTON_SPLITINFO), $iMask = 0 - - If $hImlGlyph <> -1 Then - $iMask = BitOR($iMask, $BCSIF_GLYPH) - DllStructSetData($tSplitInfo, "himlGlyph", $hImlGlyph) - EndIf - - $iMask = BitOR($iMask, $BCSIF_STYLE) - If BitAND($iSplitStyle, $BCSS_IMAGE) = $BCSS_IMAGE Then $iMask = BitOR($iMask, $BCSIF_IMAGE) - DllStructSetData($tSplitInfo, "uSplitStyle", $iSplitStyle) - - If $iWidth > 0 Or $iHeight > 0 Then - $iMask = BitOR($iMask, $BCSIF_SIZE) - DllStructSetData($tSplitInfo, "X", $iWidth) - DllStructSetData($tSplitInfo, "Y", $iHeight) - EndIf - - DllStructSetData($tSplitInfo, "mask", $iMask) - - Return _SendMessage($hWnd, $BCM_SETSPLITINFO, 0, $tSplitInfo, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlButton_SetSplitInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetState($hWnd, $bHighlighted = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - _SendMessage($hWnd, $BM_SETSTATE, $bHighlighted) -EndFunc ;==>_GUICtrlButton_SetState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetStyle($hWnd, $iStyle) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - _SendMessage($hWnd, $BM_SETSTYLE, $iStyle, True) - _WinAPI_UpdateWindow($hWnd) ; force a WM_PAINT -EndFunc ;==>_GUICtrlButton_SetStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetText($hWnd, $sText) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - If _WinAPI_IsClassName($hWnd, $__BUTTONCONSTANT_ClassName) Then Return _WinAPI_SetWindowText($hWnd, $sText) -EndFunc ;==>_GUICtrlButton_SetText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_SetTextMargin($hWnd, $iLeft = 1, $iTop = 1, $iRight = 1, $iBottom = 1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Left", $iLeft) - DllStructSetData($tRECT, "Top", $iTop) - DllStructSetData($tRECT, "Right", $iRight) - DllStructSetData($tRECT, "Bottom", $iBottom) - Return _SendMessage($hWnd, $BCM_SETTEXTMARGIN, 0, $tRECT, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlButton_SetTextMargin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlButton_Show($hWnd, $bShow = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - If _WinAPI_IsClassName($hWnd, $__BUTTONCONSTANT_ClassName) Then - If $bShow Then - Return _WinAPI_ShowWindow($hWnd, @SW_SHOW) - Else - Return _WinAPI_ShowWindow($hWnd, @SW_HIDE) - EndIf - EndIf -EndFunc ;==>_GUICtrlButton_Show diff --git a/build/Include/GuiComboBox.au3 b/build/Include/GuiComboBox.au3 deleted file mode 100644 index 13becc523..000000000 --- a/build/Include/GuiComboBox.au3 +++ /dev/null @@ -1,799 +0,0 @@ -#include-once - -#include "ComboConstants.au3" -#include "DirConstants.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: ComboBox -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with ComboBox control management. -; Author(s) .....: gafrost, PaulIA, Valik -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hCBLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__COMBOBOXCONSTANT_ClassName = "ComboBox" -Global Const $__COMBOBOXCONSTANT_EM_GETLINE = 0xC4 -Global Const $__COMBOBOXCONSTANT_EM_LINEINDEX = 0xBB -Global Const $__COMBOBOXCONSTANT_EM_LINELENGTH = 0xC1 -Global Const $__COMBOBOXCONSTANT_EM_REPLACESEL = 0xC2 - -Global Const $__COMBOBOXCONSTANT_WM_SETREDRAW = 0x000B -Global Const $__COMBOBOXCONSTANT_DEFAULT_GUI_FONT = 17 -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not working/documented/implemented at this time -; -; _GUICtrlComboBox_SetLocale -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlComboBox_AddDir -; _GUICtrlComboBox_AddString -; _GUICtrlComboBox_AutoComplete -; _GUICtrlComboBox_BeginUpdate -; _GUICtrlComboBox_Create -; _GUICtrlComboBox_DeleteString -; _GUICtrlComboBox_Destroy -; _GUICtrlComboBox_EndUpdate -; _GUICtrlComboBox_FindString -; _GUICtrlComboBox_FindStringExact -; _GUICtrlComboBox_GetComboBoxInfo -; _GUICtrlComboBox_GetCount -; _GUICtrlComboBox_GetCueBanner -; _GUICtrlComboBox_GetCurSel -; _GUICtrlComboBox_GetDroppedControlRect -; _GUICtrlComboBox_GetDroppedControlRectEx -; _GUICtrlComboBox_GetDroppedState -; _GUICtrlComboBox_GetDroppedWidth -; _GUICtrlComboBox_GetEditSel -; _GUICtrlComboBox_GetEditText -; _GUICtrlComboBox_GetExtendedUI -; _GUICtrlComboBox_GetHorizontalExtent -; _GUICtrlComboBox_GetItemHeight -; _GUICtrlComboBox_GetLBText -; _GUICtrlComboBox_GetLBTextLen -; _GUICtrlComboBox_GetList -; _GUICtrlComboBox_GetListArray -; _GUICtrlComboBox_GetLocale -; _GUICtrlComboBox_GetLocaleCountry -; _GUICtrlComboBox_GetLocaleLang -; _GUICtrlComboBox_GetLocalePrimLang -; _GUICtrlComboBox_GetLocaleSubLang -; _GUICtrlComboBox_GetMinVisible -; _GUICtrlComboBox_GetTopIndex -; _GUICtrlComboBox_InitStorage -; _GUICtrlComboBox_InsertString -; _GUICtrlComboBox_LimitText -; _GUICtrlComboBox_ReplaceEditSel -; _GUICtrlComboBox_ResetContent -; _GUICtrlComboBox_SelectString -; _GUICtrlComboBox_SetCueBanner -; _GUICtrlComboBox_SetCurSel -; _GUICtrlComboBox_SetDroppedWidth -; _GUICtrlComboBox_SetEditSel -; _GUICtrlComboBox_SetEditText -; _GUICtrlComboBox_SetExtendedUI -; _GUICtrlComboBox_SetHorizontalExtent -; _GUICtrlComboBox_SetItemHeight -; _GUICtrlComboBox_SetMinVisible -; _GUICtrlComboBox_SetTopIndex -; _GUICtrlComboBox_ShowDropDown -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagCOMBOBOXINFO -; __GUICtrlComboBox_IsPressed -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagCOMBOBOXINFO -; Description ...: Contains combo box status information -; Fields ........: cbSize - The size, in bytes, of the structure. The calling application must set this to sizeof(COMBOBOXINFO). -; rcItem - A RECT structure that specifies the coordinates of the edit box. -; |EditLeft -; |EditTop -; |EditRight -; |EditBottom -; rcButton - A RECT structure that specifies the coordinates of the button that contains the drop-down arrow. -; |BtnLeft -; |BtnTop -; |BtnRight -; |BtnBottom -; stateButton - The combo box button state. This parameter can be one of the following values. -; |0 - The button exists and is not pressed. -; |$STATE_SYSTEM_INVISIBLE - There is no button. -; |$STATE_SYSTEM_PRESSED - The button is pressed. -; hCombo - A handle to the combo box. -; hEdit - A handle to the edit box. -; hList - A handle to the drop-down list. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagCOMBOBOXINFO = "dword Size;struct;long EditLeft;long EditTop;long EditRight;long EditBottom;endstruct;" & _ - "struct;long BtnLeft;long BtnTop;long BtnRight;long BtnBottom;endstruct;dword BtnState;hwnd hCombo;hwnd hEdit;hwnd hList" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_AddDir($hWnd, $sFilePath, $iAttributes = 0, $bBrackets = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If BitAND($iAttributes, $DDL_DRIVES) = $DDL_DRIVES And Not $bBrackets Then - Local $sText - Local $hGui_no_brackets = GUICreate("no brackets") - Local $idCombo_no_brackets = GUICtrlCreateCombo("", 240, 40, 120, 120) - Local $iRet = GUICtrlSendMsg($idCombo_no_brackets, $CB_DIR, $iAttributes, $sFilePath) - For $i = 0 To _GUICtrlComboBox_GetCount($idCombo_no_brackets) - 1 - _GUICtrlComboBox_GetLBText($idCombo_no_brackets, $i, $sText) - $sText = StringReplace(StringReplace(StringReplace($sText, "[", ""), "]", ":"), "-", "") - _GUICtrlComboBox_InsertString($hWnd, $sText) - Next - GUIDelete($hGui_no_brackets) - Return $iRet - Else - Return _SendMessage($hWnd, $CB_DIR, $iAttributes, $sFilePath, 0, "wparam", "wstr") - EndIf -EndFunc ;==>_GUICtrlComboBox_AddDir - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_AddString($hWnd, $sText) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_ADDSTRING, 0, $sText, 0, "wparam", "wstr") -EndFunc ;==>_GUICtrlComboBox_AddString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_AutoComplete($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If Not __GUICtrlComboBox_IsPressed('08') And Not __GUICtrlComboBox_IsPressed("2E") Then ;backspace pressed or Del - Local $sEditText = _GUICtrlComboBox_GetEditText($hWnd) - If StringLen($sEditText) Then - Local $sInputText - Local $iRet = _GUICtrlComboBox_FindString($hWnd, $sEditText) - If ($iRet <> $CB_ERR) Then - _GUICtrlComboBox_GetLBText($hWnd, $iRet, $sInputText) - _GUICtrlComboBox_SetEditText($hWnd, $sInputText) - _GUICtrlComboBox_SetEditSel($hWnd, StringLen($sEditText), StringLen($sInputText)) - EndIf - EndIf - EndIf -EndFunc ;==>_GUICtrlComboBox_AutoComplete - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlComboBox_BeginUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__COMBOBOXCONSTANT_WM_SETREDRAW, False) = 0 -EndFunc ;==>_GUICtrlComboBox_BeginUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_Create($hWnd, $sText, $iX, $iY, $iWidth = 100, $iHeight = 120, $iStyle = 0x00200042, $iExStyle = 0x00000000) - If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0) ; Invalid Window handle for _GUICtrlComboBox_Create 1st parameter - If Not IsString($sText) Then Return SetError(2, 0, 0) ; 2nd parameter not a string for _GUICtrlComboBox_Create - - Local $aText, $sDelimiter = Opt("GUIDataSeparatorChar") - - If $iWidth = -1 Then $iWidth = 100 - If $iHeight = -1 Then $iHeight = 120 - Local Const $WS_VSCROLL = 0x00200000 - If $iStyle = -1 Then $iStyle = BitOR($WS_VSCROLL, $CBS_AUTOHSCROLL, $CBS_DROPDOWN) - If $iExStyle = -1 Then $iExStyle = 0x00000000 - - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_TABSTOP, $__UDFGUICONSTANT_WS_VISIBLE) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hCombo = _WinAPI_CreateWindowEx($iExStyle, $__COMBOBOXCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _WinAPI_SetFont($hCombo, _WinAPI_GetStockObject($__COMBOBOXCONSTANT_DEFAULT_GUI_FONT)) - If StringLen($sText) Then - $aText = StringSplit($sText, $sDelimiter) - For $x = 1 To $aText[0] - _GUICtrlComboBox_AddString($hCombo, $aText[$x]) - Next - EndIf - Return $hCombo -EndFunc ;==>_GUICtrlComboBox_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_DeleteString($hWnd, $iIndex) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_DELETESTRING, $iIndex) -EndFunc ;==>_GUICtrlComboBox_DeleteString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__COMBOBOXCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hCBLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlComboBox_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlComboBox_EndUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__COMBOBOXCONSTANT_WM_SETREDRAW, True) = 0 -EndFunc ;==>_GUICtrlComboBox_EndUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_FindString($hWnd, $sText, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_FINDSTRING, $iIndex, $sText, 0, "int", "wstr") -EndFunc ;==>_GUICtrlComboBox_FindString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_FindStringExact($hWnd, $sText, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_FINDSTRINGEXACT, $iIndex, $sText, 0, "wparam", "wstr") -EndFunc ;==>_GUICtrlComboBox_FindStringExact - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetComboBoxInfo($hWnd, ByRef $tInfo) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - $tInfo = DllStructCreate($tagCOMBOBOXINFO) - Local $iInfo = DllStructGetSize($tInfo) - DllStructSetData($tInfo, "Size", $iInfo) - Return _SendMessage($hWnd, $CB_GETCOMBOBOXINFO, 0, $tInfo, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlComboBox_GetComboBoxInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetCount($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETCOUNT) -EndFunc ;==>_GUICtrlComboBox_GetCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetCueBanner($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tText = DllStructCreate("wchar[4096]") - If _SendMessage($hWnd, $CB_GETCUEBANNER, $tText, 4096, 0, "struct*") <> 1 Then Return SetError(-1, 0, "") - Return _WinAPI_WideCharToMultiByte($tText) -EndFunc ;==>_GUICtrlComboBox_GetCueBanner - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetCurSel($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETCURSEL) -EndFunc ;==>_GUICtrlComboBox_GetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetDroppedControlRect($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $aRect[4] - - Local $tRECT = _GUICtrlComboBox_GetDroppedControlRectEx($hWnd) - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - - Return $aRect -EndFunc ;==>_GUICtrlComboBox_GetDroppedControlRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetDroppedControlRectEx($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tRECT = DllStructCreate($tagRECT) - _SendMessage($hWnd, $CB_GETDROPPEDCONTROLRECT, 0, $tRECT, 0, "wparam", "struct*") - Return $tRECT -EndFunc ;==>_GUICtrlComboBox_GetDroppedControlRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetDroppedState($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETDROPPEDSTATE) <> 0 -EndFunc ;==>_GUICtrlComboBox_GetDroppedState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetDroppedWidth($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETDROPPEDWIDTH) -EndFunc ;==>_GUICtrlComboBox_GetDroppedWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetEditSel($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tStart = DllStructCreate("dword Start") - Local $tEnd = DllStructCreate("dword End") - - Local $iRet = _SendMessage($hWnd, $CB_GETEDITSEL, $tStart, $tEnd, 0, "struct*", "struct*") - If $iRet = 0 Then Return SetError($CB_ERR, $CB_ERR, $CB_ERR) - - Local $aSel[2] - $aSel[0] = DllStructGetData($tStart, "Start") - $aSel[1] = DllStructGetData($tEnd, "End") - Return $aSel -EndFunc ;==>_GUICtrlComboBox_GetEditSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Melba23 -; =============================================================================================================================== -Func _GUICtrlComboBox_GetEditText($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tInfo - If _GUICtrlComboBox_GetComboBoxInfo($hWnd, $tInfo) Then - Local $hEdit = DllStructGetData($tInfo, "hEdit") - Local $iLine = 0 - Local $iIndex = _SendMessage($hEdit, $__COMBOBOXCONSTANT_EM_LINEINDEX, $iLine) - Local $iLength = _SendMessage($hEdit, $__COMBOBOXCONSTANT_EM_LINELENGTH, $iIndex) - If $iLength = 0 Then Return "" - Local $tBuffer = DllStructCreate("short Len;wchar Text[" & $iLength & "]") - DllStructSetData($tBuffer, "Len", $iLength) - - Local $iRet = _SendMessage($hEdit, $__COMBOBOXCONSTANT_EM_GETLINE, $iLine, $tBuffer, 0, "wparam", "struct*") - If $iRet = 0 Then Return SetError(-1, -1, "") - - Local $tText = DllStructCreate("wchar Text[" & $iLength & "]", DllStructGetPtr($tBuffer)) - Return DllStructGetData($tText, "Text") - Else - Return SetError(-1, -1, "") - EndIf -EndFunc ;==>_GUICtrlComboBox_GetEditText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetExtendedUI($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETEXTENDEDUI) <> 0 -EndFunc ;==>_GUICtrlComboBox_GetExtendedUI - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetHorizontalExtent($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETHORIZONTALEXTENT) -EndFunc ;==>_GUICtrlComboBox_GetHorizontalExtent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetItemHeight($hWnd, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETITEMHEIGHT, $iIndex) -EndFunc ;==>_GUICtrlComboBox_GetItemHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetLBText($hWnd, $iIndex, ByRef $sText) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iLen = _GUICtrlComboBox_GetLBTextLen($hWnd, $iIndex) - Local $tBuffer = DllStructCreate("wchar Text[" & $iLen + 1 & "]") - Local $iRet = _SendMessage($hWnd, $CB_GETLBTEXT, $iIndex, $tBuffer, 0, "wparam", "struct*") - - If ($iRet == $CB_ERR) Then Return SetError($CB_ERR, $CB_ERR, $CB_ERR) - - $sText = DllStructGetData($tBuffer, "Text") - Return $iRet -EndFunc ;==>_GUICtrlComboBox_GetLBText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetLBTextLen($hWnd, $iIndex) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETLBTEXTLEN, $iIndex) -EndFunc ;==>_GUICtrlComboBox_GetLBTextLen - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jason Boggs -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlComboBox_GetList($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $sDelimiter = Opt("GUIDataSeparatorChar") - Local $sResult = "", $sItem - For $i = 0 To _GUICtrlComboBox_GetCount($hWnd) - 1 - _GUICtrlComboBox_GetLBText($hWnd, $i, $sItem) - $sResult &= $sItem & $sDelimiter - Next - - Return StringTrimRight($sResult, StringLen($sDelimiter)) -EndFunc ;==>_GUICtrlComboBox_GetList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetListArray($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $sDelimiter = Opt("GUIDataSeparatorChar") - Return StringSplit(_GUICtrlComboBox_GetList($hWnd), $sDelimiter) -EndFunc ;==>_GUICtrlComboBox_GetListArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetLocale($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETLOCALE) -EndFunc ;==>_GUICtrlComboBox_GetLocale - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetLocaleCountry($hWnd) - Return _WinAPI_HiWord(_GUICtrlComboBox_GetLocale($hWnd)) -EndFunc ;==>_GUICtrlComboBox_GetLocaleCountry - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetLocaleLang($hWnd) - Return _WinAPI_LoWord(_GUICtrlComboBox_GetLocale($hWnd)) -EndFunc ;==>_GUICtrlComboBox_GetLocaleLang - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetLocalePrimLang($hWnd) - Return _WinAPI_PrimaryLangId(_GUICtrlComboBox_GetLocaleLang($hWnd)) -EndFunc ;==>_GUICtrlComboBox_GetLocalePrimLang - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetLocaleSubLang($hWnd) - Return _WinAPI_SubLangId(_GUICtrlComboBox_GetLocaleLang($hWnd)) -EndFunc ;==>_GUICtrlComboBox_GetLocaleSubLang - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetMinVisible($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETMINVISIBLE) -EndFunc ;==>_GUICtrlComboBox_GetMinVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_GetTopIndex($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_GETTOPINDEX) -EndFunc ;==>_GUICtrlComboBox_GetTopIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_InitStorage($hWnd, $iNum, $iBytes) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_INITSTORAGE, $iNum, $iBytes) -EndFunc ;==>_GUICtrlComboBox_InitStorage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_InsertString($hWnd, $sText, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_INSERTSTRING, $iIndex, $sText, 0, "wparam", "wstr") -EndFunc ;==>_GUICtrlComboBox_InsertString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_LimitText($hWnd, $iLimit = 0) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $CB_LIMITTEXT, $iLimit) -EndFunc ;==>_GUICtrlComboBox_LimitText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_ReplaceEditSel($hWnd, $sText) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tInfo - If _GUICtrlComboBox_GetComboBoxInfo($hWnd, $tInfo) Then - Local $hEdit = DllStructGetData($tInfo, "hEdit") - _SendMessage($hEdit, $__COMBOBOXCONSTANT_EM_REPLACESEL, True, $sText, 0, "wparam", "wstr") - EndIf -EndFunc ;==>_GUICtrlComboBox_ReplaceEditSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_ResetContent($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $CB_RESETCONTENT) -EndFunc ;==>_GUICtrlComboBox_ResetContent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SelectString($hWnd, $sText, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_SELECTSTRING, $iIndex, $sText, 0, "wparam", "wstr") -EndFunc ;==>_GUICtrlComboBox_SelectString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetCueBanner($hWnd, $sText) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tText = _WinAPI_MultiByteToWideChar($sText) - - Return _SendMessage($hWnd, $CB_SETCUEBANNER, 0, $tText, 0, "wparam", "struct*") = 1 -EndFunc ;==>_GUICtrlComboBox_SetCueBanner - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetCurSel($hWnd, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_SETCURSEL, $iIndex) -EndFunc ;==>_GUICtrlComboBox_SetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetDroppedWidth($hWnd, $iWidth) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_SETDROPPEDWIDTH, $iWidth) -EndFunc ;==>_GUICtrlComboBox_SetDroppedWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetEditSel($hWnd, $iStart, $iStop) - If Not HWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_SETEDITSEL, 0, _WinAPI_MakeLong($iStart, $iStop)) <> -1 -EndFunc ;==>_GUICtrlComboBox_SetEditSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetEditText($hWnd, $sText) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _GUICtrlComboBox_SetEditSel($hWnd, 0, -1) - _GUICtrlComboBox_ReplaceEditSel($hWnd, $sText) -EndFunc ;==>_GUICtrlComboBox_SetEditText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetExtendedUI($hWnd, $bExtended = False) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_SETEXTENDEDUI, $bExtended) = 0 -EndFunc ;==>_GUICtrlComboBox_SetExtendedUI - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetHorizontalExtent($hWnd, $iWidth) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $CB_SETHORIZONTALEXTENT, $iWidth) -EndFunc ;==>_GUICtrlComboBox_SetHorizontalExtent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetItemHeight($hWnd, $iHeight, $iComponent = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_SETITEMHEIGHT, $iComponent, $iHeight) -EndFunc ;==>_GUICtrlComboBox_SetItemHeight - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlComboBox_SetLocale -; Description ...: Set the current locale of the ComboBox -; Syntax.........: _GUICtrlComboBox_SetLocale ( $hWnd, $iLocale ) -; Parameters ....: $hWnd - Handle to control -; $iLocale - Specifies the locale identifier for the ComboBox to use for sorting when adding text -; Return values .: Success - The previous locale identifier -; Failure - -1 -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: _WinAPI_MAKELANGID, _WinAPI_MAKELCID, _WinAPI_PrimaryLangId, _WinAPI_SubLangId -; Related .......: _GUICtrlComboBox_GetLocale -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func _GUICtrlComboBox_SetLocale($hWnd, $iLocal) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_SETLOCALE, $iLocal) -EndFunc ;==>_GUICtrlComboBox_SetLocale - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetMinVisible($hWnd, $iMinimum) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_SETMINVISIBLE, $iMinimum) <> 0 -EndFunc ;==>_GUICtrlComboBox_SetMinVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_SetTopIndex($hWnd, $iIndex) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $CB_SETTOPINDEX, $iIndex) = 0 -EndFunc ;==>_GUICtrlComboBox_SetTopIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBox_ShowDropDown($hWnd, $bShow = False) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $CB_SHOWDROPDOWN, $bShow) -EndFunc ;==>_GUICtrlComboBox_ShowDropDown - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlComboBox_IsPressed -; Description ...: Check if key has been pressed -; Syntax.........: __GUICtrlComboBox_IsPressed ( $sHexKey [, $vDLL = 'user32.dll'] ) -; Parameters ....: $sHexKey - Key to check for -; $vDLL - Handle to dll or default to user32.dll -; Return values .: True - 1 -; False - 0 -; Author ........: ezzetabi and Jon -; Modified.......: -; Remarks .......: If calling this function repeatidly, should open 'user32.dll' and pass in handle. -; Make sure to close at end of script -; Related .......: -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func __GUICtrlComboBox_IsPressed($sHexKey, $vDLL = 'user32.dll') - ; $hexKey must be the value of one of the keys. - ; _Is_Key_Pressed will return 0 if the key is not pressed, 1 if it is. - Local $a_R = DllCall($vDLL, "short", "GetAsyncKeyState", "int", '0x' & $sHexKey) - If @error Then Return SetError(@error, @extended, False) - Return BitAND($a_R[0], 0x8000) <> 0 -EndFunc ;==>__GUICtrlComboBox_IsPressed diff --git a/build/Include/GuiComboBoxEx.au3 b/build/Include/GuiComboBoxEx.au3 deleted file mode 100644 index 1ec8000e9..000000000 --- a/build/Include/GuiComboBoxEx.au3 +++ /dev/null @@ -1,907 +0,0 @@ -#include-once - -#include "DirConstants.au3" -#include "GuiComboBox.au3" -#include "Memory.au3" -#include "UDFGlobalID.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: ComboBoxEx -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with ComboBoxEx control management. -; ComboBoxEx Controls are an extension of the combo box control that provides native support for item images. -; To make item images easily accessible, the control provides image list support. By using this control, you -; can provide the functionality of a combo box without having to manually draw item graphics. -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hCBExLastWnd -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__COMBOBOXEXCONSTANT_ClassName = "ComboBoxEx32" -Global Const $__COMBOBOXEXCONSTANT_WM_SIZE = 0x05 -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not working/documented/implemented at this time -; -; _GUICtrlComboBoxEx_HasEditChanged -; -; Things to figure out for ComboBoxEx -; FindString -; AutoComplete -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlComboBoxEx_AddDir -; _GUICtrlComboBoxEx_AddString -; _GUICtrlComboBoxEx_BeginUpdate -; _GUICtrlComboBoxEx_Create -; _GUICtrlComboBoxEx_CreateSolidBitMap -; _GUICtrlComboBoxEx_DeleteString -; _GUICtrlComboBoxEx_Destroy -; _GUICtrlComboBoxEx_EndUpdate -; _GUICtrlComboBoxEx_FindStringExact -; _GUICtrlComboBoxEx_GetComboBoxInfo -; _GUICtrlComboBoxEx_GetComboControl -; _GUICtrlComboBoxEx_GetCount -; _GUICtrlComboBoxEx_GetCurSel -; _GUICtrlComboBoxEx_GetDroppedControlRect -; _GUICtrlComboBoxEx_GetDroppedControlRectEx -; _GUICtrlComboBoxEx_GetDroppedState -; _GUICtrlComboBoxEx_GetDroppedWidth -; _GUICtrlComboBoxEx_GetEditControl -; _GUICtrlComboBoxEx_GetEditSel -; _GUICtrlComboBoxEx_GetEditText -; _GUICtrlComboBoxEx_GetExtendedStyle -; _GUICtrlComboBoxEx_GetExtendedUI -; _GUICtrlComboBoxEx_GetImageList -; _GUICtrlComboBoxEx_GetItem -; _GUICtrlComboBoxEx_GetItemEx -; _GUICtrlComboBoxEx_GetItemHeight -; _GUICtrlComboBoxEx_GetItemImage -; _GUICtrlComboBoxEx_GetItemIndent -; _GUICtrlComboBoxEx_GetItemOverlayImage -; _GUICtrlComboBoxEx_GetItemParam -; _GUICtrlComboBoxEx_GetItemSelectedImage -; _GUICtrlComboBoxEx_GetItemText -; _GUICtrlComboBoxEx_GetItemTextLen -; _GUICtrlComboBoxEx_GetList -; _GUICtrlComboBoxEx_GetListArray -; _GUICtrlComboBoxEx_GetLocale -; _GUICtrlComboBoxEx_GetLocaleCountry -; _GUICtrlComboBoxEx_GetLocaleLang -; _GUICtrlComboBoxEx_GetLocalePrimLang -; _GUICtrlComboBoxEx_GetLocaleSubLang -; _GUICtrlComboBoxEx_GetMinVisible -; _GUICtrlComboBoxEx_GetTopIndex -; _GUICtrlComboBoxEx_GetUnicode -; _GUICtrlComboBoxEx_InitStorage -; _GUICtrlComboBoxEx_InsertString -; _GUICtrlComboBoxEx_LimitText -; _GUICtrlComboBoxEx_ReplaceEditSel -; _GUICtrlComboBoxEx_ResetContent -; _GUICtrlComboBoxEx_SetCurSel -; _GUICtrlComboBoxEx_SetDroppedWidth -; _GUICtrlComboBoxEx_SetEditSel -; _GUICtrlComboBoxEx_SetEditText -; _GUICtrlComboBoxEx_SetExtendedStyle -; _GUICtrlComboBoxEx_SetExtendedUI -; _GUICtrlComboBoxEx_SetImageList -; _GUICtrlComboBoxEx_SetItem -; _GUICtrlComboBoxEx_SetItemEx -; _GUICtrlComboBoxEx_SetItemHeight -; _GUICtrlComboBoxEx_SetItemImage -; _GUICtrlComboBoxEx_SetItemIndent -; _GUICtrlComboBoxEx_SetItemOverlayImage -; _GUICtrlComboBoxEx_SetItemParam -; _GUICtrlComboBoxEx_SetItemSelectedImage -; _GUICtrlComboBoxEx_SetMinVisible -; _GUICtrlComboBoxEx_SetTopIndex -; _GUICtrlComboBoxEx_SetUnicode -; _GUICtrlComboBoxEx_ShowDropDown -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_AddDir($hWnd, $sFilePath, $iAttributes = 0, $bBrackets = True) - Local $hGui = GUICreate("combo gui") - Local $idCombo = GUICtrlCreateCombo("", 240, 40, 120, 120) - Local $iRet = GUICtrlSendMsg($idCombo, $CB_DIR, $iAttributes, $sFilePath) - If $iRet = -1 Then - GUIDelete($hGui) - Return SetError(-1, -1, -1) - EndIf - Local $sText - For $i = 0 To _GUICtrlComboBox_GetCount($idCombo) - 1 - _GUICtrlComboBox_GetLBText($idCombo, $i, $sText) - If BitAND($iAttributes, $DDL_DRIVES) = $DDL_DRIVES And _ - Not $bBrackets Then $sText = StringReplace(StringReplace(StringReplace($sText, "[", ""), "]", ":"), "-", "") - _GUICtrlComboBoxEx_InsertString($hWnd, $sText) - Next - GUIDelete($hGui) - Return $iRet -EndFunc ;==>_GUICtrlComboBoxEx_AddDir - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_AddString($hWnd, $sText, $iImage = -1, $iSelectedImage = -1, $iOverlayImage = -1, $iIndent = -1, $iParam = -1) - Return _GUICtrlComboBoxEx_InsertString($hWnd, $sText, -1, $iImage, $iSelectedImage, $iOverlayImage, $iIndent, $iParam) -EndFunc ;==>_GUICtrlComboBoxEx_AddString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_BeginUpdate($hWnd) - Return _SendMessage($hWnd, $__COMBOBOXCONSTANT_WM_SETREDRAW, False) = 0 -EndFunc ;==>_GUICtrlComboBoxEx_BeginUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_Create($hWnd, $sText, $iX, $iY, $iWidth = 100, $iHeight = 200, $iStyle = 0x00200002, $iExStyle = 0x00000000) - If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0) ; Invalid Window handle for _GUICtrlComboBoxEx_Create 1st parameter - If Not IsString($sText) Then Return SetError(2, 0, 0) ; 2nd parameter not a string for _GUICtrlComboBoxEx_Create - - Local $sDelimiter = Opt("GUIDataSeparatorChar") - - If $iWidth = -1 Then $iWidth = 100 - If $iHeight = -1 Then $iHeight = 200 - Local Const $WS_VSCROLL = 0x00200000 - If $iStyle = -1 Then $iStyle = BitOR($WS_VSCROLL, $CBS_DROPDOWN) - If $iExStyle = -1 Then $iExStyle = 0x00000000 - - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_TABSTOP, $__UDFGUICONSTANT_WS_VISIBLE) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hCombo = _WinAPI_CreateWindowEx($iExStyle, $__COMBOBOXEXCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _WinAPI_SetFont($hCombo, _WinAPI_GetStockObject($__COMBOBOXCONSTANT_DEFAULT_GUI_FONT)) - If StringLen($sText) Then - Local $aText = StringSplit($sText, $sDelimiter) - For $x = 1 To $aText[0] - _GUICtrlComboBoxEx_AddString($hCombo, $aText[$x]) - Next - EndIf - Return $hCombo -EndFunc ;==>_GUICtrlComboBoxEx_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_CreateSolidBitMap($hWnd, $iColor, $iWidth, $iHeight) - Return _WinAPI_CreateSolidBitmap($hWnd, $iColor, $iWidth, $iHeight) -EndFunc ;==>_GUICtrlComboBoxEx_CreateSolidBitMap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_DeleteString($hWnd, $iIndex) - Return _SendMessage($hWnd, $CBEM_DELETEITEM, $iIndex) -EndFunc ;==>_GUICtrlComboBoxEx_DeleteString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__COMBOBOXEXCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If _WinAPI_InProcess($hWnd, $__g_hCBExLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlComboBoxEx_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_EndUpdate($hWnd) - Return _SendMessage($hWnd, $__COMBOBOXCONSTANT_WM_SETREDRAW, True) = 0 -EndFunc ;==>_GUICtrlComboBoxEx_EndUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_FindStringExact($hWnd, $sText, $iIndex = -1) - Return _SendMessage($hWnd, $CB_FINDSTRINGEXACT, $iIndex, $sText, 0, "wparam", "wstr") -EndFunc ;==>_GUICtrlComboBoxEx_FindStringExact - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetComboBoxInfo($hWnd, ByRef $tInfo) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_GetComboBoxInfo($hCombo, $tInfo) -EndFunc ;==>_GUICtrlComboBoxEx_GetComboBoxInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return HWnd(_SendMessage($hWnd, $CBEM_GETCOMBOCONTROL)) -EndFunc ;==>_GUICtrlComboBoxEx_GetComboControl - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetCount($hWnd) - Return _SendMessage($hWnd, $CB_GETCOUNT) -EndFunc ;==>_GUICtrlComboBoxEx_GetCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetCurSel($hWnd) - Return _SendMessage($hWnd, $CB_GETCURSEL) -EndFunc ;==>_GUICtrlComboBoxEx_GetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetDroppedControlRect($hWnd) - Local $tRECT = _GUICtrlComboBox_GetDroppedControlRectEx($hWnd) - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - - Return $aRect -EndFunc ;==>_GUICtrlComboBoxEx_GetDroppedControlRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetDroppedControlRectEx($hWnd) - Local $tRECT = DllStructCreate($tagRECT) - _SendMessage($hWnd, $CB_GETDROPPEDCONTROLRECT, 0, $tRECT, 0, "wparam", "struct*") - Return $tRECT -EndFunc ;==>_GUICtrlComboBoxEx_GetDroppedControlRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafro_GUICtrlComboBox_GetDroppedState -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetDroppedState($hWnd) - Return _SendMessage($hWnd, $CB_GETDROPPEDSTATE) <> 0 -EndFunc ;==>_GUICtrlComboBoxEx_GetDroppedState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetDroppedWidth($hWnd) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_GetDroppedWidth($hCombo) -EndFunc ;==>_GUICtrlComboBoxEx_GetDroppedWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetEditControl($hWnd) - Return HWnd(_SendMessage($hWnd, $CBEM_GETEDITCONTROL)) -EndFunc ;==>_GUICtrlComboBoxEx_GetEditControl - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetEditSel($hWnd) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Local $aResult = _GUICtrlComboBox_GetEditSel($hCombo) - - Return SetError(@error, @extended, $aResult) -EndFunc ;==>_GUICtrlComboBoxEx_GetEditSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetEditText($hWnd) - Local $hComboBox = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_GetEditText($hComboBox) -EndFunc ;==>_GUICtrlComboBoxEx_GetEditText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetExtendedStyle($hWnd) - Return _SendMessage($hWnd, $CBEM_GETEXTENDEDSTYLE) -EndFunc ;==>_GUICtrlComboBoxEx_GetExtendedStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetExtendedUI($hWnd) - Return _GUICtrlComboBox_GetExtendedUI($hWnd) -EndFunc ;==>_GUICtrlComboBoxEx_GetExtendedUI - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetImageList($hWnd) - Return Ptr(_SendMessage($hWnd, $CBEM_GETIMAGELIST)) -EndFunc ;==>_GUICtrlComboBoxEx_GetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItem($hWnd, $iIndex) - Local $aItem[7], $sText - - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", BitOR($CBEIF_IMAGE, $CBEIF_INDENT, $CBEIF_LPARAM, $CBEIF_SELECTEDIMAGE, $CBEIF_OVERLAY)) - DllStructSetData($tItem, "Item", $iIndex) - _GUICtrlComboBoxEx_GetItemEx($hWnd, $tItem) - Local $iLen = _GUICtrlComboBoxEx_GetItemText($hWnd, $iIndex, $sText) - $aItem[0] = $sText - $aItem[1] = $iLen - $aItem[2] = DllStructGetData($tItem, "Indent") - $aItem[3] = DllStructGetData($tItem, "Image") - $aItem[4] = DllStructGetData($tItem, "SelectedImage") - $aItem[5] = DllStructGetData($tItem, "OverlayImage") - $aItem[6] = DllStructGetData($tItem, "Param") - Return $aItem -EndFunc ;==>_GUICtrlComboBoxEx_GetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItemEx($hWnd, ByRef $tItem) - Local $bUnicode = _GUICtrlComboBoxEx_GetUnicode($hWnd) - - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hCBExLastWnd) Then - $iRet = _SendMessage($hWnd, $CBEM_GETITEMW, 0, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem, $tMemMap) - _MemWrite($tMemMap, $tItem) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $CBEM_GETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $CBEM_GETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tItem, $iItem) - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlComboBoxEx_GetItemEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItemHeight($hWnd, $iComponent = -1) - Return _GUICtrlComboBox_GetItemHeight($hWnd, $iComponent) -EndFunc ;==>_GUICtrlComboBoxEx_GetItemHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItemImage($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_IMAGE) - DllStructSetData($tItem, "Item", $iIndex) - _GUICtrlComboBoxEx_GetItemEx($hWnd, $tItem) - Return DllStructGetData($tItem, "Image") -EndFunc ;==>_GUICtrlComboBoxEx_GetItemImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItemIndent($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_INDENT) - DllStructSetData($tItem, "Item", $iIndex) - _GUICtrlComboBoxEx_GetItemEx($hWnd, $tItem) - Return DllStructGetData($tItem, "Indent") -EndFunc ;==>_GUICtrlComboBoxEx_GetItemIndent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItemOverlayImage($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_OVERLAY) - DllStructSetData($tItem, "Item", $iIndex) - _GUICtrlComboBoxEx_GetItemEx($hWnd, $tItem) - Return DllStructGetData($tItem, "OverlayImage") -EndFunc ;==>_GUICtrlComboBoxEx_GetItemOverlayImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItemParam($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_LPARAM) - DllStructSetData($tItem, "Item", $iIndex) - _GUICtrlComboBoxEx_GetItemEx($hWnd, $tItem) - Return DllStructGetData($tItem, "Param") -EndFunc ;==>_GUICtrlComboBoxEx_GetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItemSelectedImage($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_SELECTEDIMAGE) - DllStructSetData($tItem, "Item", $iIndex) - _GUICtrlComboBoxEx_GetItemEx($hWnd, $tItem) - Return DllStructGetData($tItem, "SelectedImage") -EndFunc ;==>_GUICtrlComboBoxEx_GetItemSelectedImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItemText($hWnd, $iIndex, ByRef $sText) - Return _GUICtrlComboBox_GetLBText($hWnd, $iIndex, $sText) -EndFunc ;==>_GUICtrlComboBoxEx_GetItemText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetItemTextLen($hWnd, $iIndex) - Return _GUICtrlComboBox_GetLBTextLen($hWnd, $iIndex) -EndFunc ;==>_GUICtrlComboBoxEx_GetItemTextLen - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetList($hWnd) - Return _GUICtrlComboBox_GetList($hWnd) -EndFunc ;==>_GUICtrlComboBoxEx_GetList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetListArray($hWnd) - Local $sDelimiter = Opt("GUIDataSeparatorChar") - Return StringSplit(_GUICtrlComboBoxEx_GetList($hWnd), $sDelimiter) -EndFunc ;==>_GUICtrlComboBoxEx_GetListArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetLocale($hWnd) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_GetLocale($hCombo) -EndFunc ;==>_GUICtrlComboBoxEx_GetLocale - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetLocaleCountry($hWnd) - Return _WinAPI_HiWord(_GUICtrlComboBoxEx_GetLocale($hWnd)) -EndFunc ;==>_GUICtrlComboBoxEx_GetLocaleCountry - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetLocaleLang($hWnd) - Return _WinAPI_LoWord(_GUICtrlComboBoxEx_GetLocale($hWnd)) -EndFunc ;==>_GUICtrlComboBoxEx_GetLocaleLang - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetLocalePrimLang($hWnd) - Return _WinAPI_PrimaryLangId(_GUICtrlComboBoxEx_GetLocaleLang($hWnd)) -EndFunc ;==>_GUICtrlComboBoxEx_GetLocalePrimLang - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetLocaleSubLang($hWnd) - Return _WinAPI_SubLangId(_GUICtrlComboBoxEx_GetLocaleLang($hWnd)) -EndFunc ;==>_GUICtrlComboBoxEx_GetLocaleSubLang - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetMinVisible($hWnd) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_GetMinVisible($hCombo) -EndFunc ;==>_GUICtrlComboBoxEx_GetMinVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetTopIndex($hWnd) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_GetTopIndex($hCombo) -EndFunc ;==>_GUICtrlComboBoxEx_GetTopIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_GetUnicode($hWnd) - Return _SendMessage($hWnd, $CBEM_GETUNICODEFORMAT) <> 0 -EndFunc ;==>_GUICtrlComboBoxEx_GetUnicode - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlComboBoxEx_HasEditChanged -; Description ...: Determines whether the user has changed the text of a ComboBoxEx edit control -; Syntax.........: _GUICtrlComboBoxEx_HasEditChanged ( $hWnd ) -; Parameters ....: $hWnd - Handle to control -; Return values .: True - Text in the control's edit box has changed -; False - No change -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_HasEditChanged($hWnd) - Local $tInfo - If _GUICtrlComboBoxEx_GetComboBoxInfo($hWnd, $tInfo) Then - Local $hEdit = DllStructGetData($tInfo, "hEdit") - Return _SendMessage($hEdit, $CBEM_HASEDITCHANGED) <> 0 - Else - Return False - EndIf -EndFunc ;==>_GUICtrlComboBoxEx_HasEditChanged - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_InitStorage($hWnd, $iNum, $iBytes) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_InitStorage($hCombo, $iNum, $iBytes) -EndFunc ;==>_GUICtrlComboBoxEx_InitStorage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_InsertString($hWnd, $sText, $iIndex = -1, $iImage = -1, $iSelectedImage = -1, $iOverlayImage = -1, $iIndent = -1, $iParam = -1) - Local $iBuffer = 0, $iMask, $iRet - Local $bUnicode = _GUICtrlComboBoxEx_GetUnicode($hWnd) - - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - If $sText <> -1 Then - $iMask = BitOR($CBEIF_TEXT, $CBEIF_LPARAM) - $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tItem, "Text", DllStructGetPtr($tBuffer)) - DllStructSetData($tItem, "TextMax", $iBuffer) - Else - $iMask = BitOR($CBEIF_DI_SETITEM, $CBEIF_LPARAM) - EndIf - If $iImage >= 0 Then $iMask = BitOR($iMask, $CBEIF_IMAGE) - If $iSelectedImage >= 0 Then $iMask = BitOR($iMask, $CBEIF_SELECTEDIMAGE) - If $iOverlayImage >= 0 Then $iMask = BitOR($iMask, $CBEIF_OVERLAY) - If $iIndent >= 1 Then $iMask = BitOR($iMask, $CBEIF_INDENT) - If $iParam = -1 Then $iParam = _GUICtrlComboBoxEx_GetCount($hWnd) - DllStructSetData($tItem, "Mask", $iMask) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "Image", $iImage) - DllStructSetData($tItem, "SelectedImage", $iSelectedImage) - DllStructSetData($tItem, "OverlayImage", $iOverlayImage) - DllStructSetData($tItem, "Indent", $iIndent) - DllStructSetData($tItem, "Param", $iParam) - If _WinAPI_InProcess($hWnd, $__g_hCBExLastWnd) Or ($sText = -1) Then - $iRet = _SendMessage($hWnd, $CBEM_INSERTITEMW, 0, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $CBEM_INSERTITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $CBEM_INSERTITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Return $iRet -EndFunc ;==>_GUICtrlComboBoxEx_InsertString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_LimitText($hWnd, $iLimit = 0) - _SendMessage($hWnd, $CB_LIMITTEXT, $iLimit) -EndFunc ;==>_GUICtrlComboBoxEx_LimitText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_ReplaceEditSel($hWnd, $sText) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - _GUICtrlComboBox_ReplaceEditSel($hCombo, $sText) -EndFunc ;==>_GUICtrlComboBoxEx_ReplaceEditSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_ResetContent($hWnd) - _SendMessage($hWnd, $CB_RESETCONTENT) -EndFunc ;==>_GUICtrlComboBoxEx_ResetContent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetCurSel($hWnd, $iIndex = -1) - Return _SendMessage($hWnd, $CB_SETCURSEL, $iIndex) -EndFunc ;==>_GUICtrlComboBoxEx_SetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetDroppedWidth($hWnd, $iWidth) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_SetDroppedWidth($hCombo, $iWidth) -EndFunc ;==>_GUICtrlComboBoxEx_SetDroppedWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetEditSel($hWnd, $iStart, $iStop) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_SetEditSel($hCombo, $iStart, $iStop) -EndFunc ;==>_GUICtrlComboBoxEx_SetEditSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetEditText($hWnd, $sText) - Local $hComboBox = _GUICtrlComboBoxEx_GetComboControl($hWnd) - _GUICtrlComboBox_SetEditSel($hComboBox, 0, -1) - _GUICtrlComboBox_ReplaceEditSel($hComboBox, $sText) -EndFunc ;==>_GUICtrlComboBoxEx_SetEditText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetExtendedStyle($hWnd, $iExStyle, $iExMask = 0) - Local $iRet = _SendMessage($hWnd, $CBEM_SETEXTENDEDSTYLE, $iExMask, $iExStyle) - _WinAPI_InvalidateRect($hWnd) - Return $iRet -EndFunc ;==>_GUICtrlComboBoxEx_SetExtendedStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetExtendedUI($hWnd, $bExtended = False) - Local $hComboBox = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _SendMessage($hComboBox, $CB_SETEXTENDEDUI, $bExtended) = 0 -EndFunc ;==>_GUICtrlComboBoxEx_SetExtendedUI - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetImageList($hWnd, $hHandle) - Local $hResult = _SendMessage($hWnd, $CBEM_SETIMAGELIST, 0, $hHandle, 0, "wparam", "handle", "handle") - _SendMessage($hWnd, $__COMBOBOXEXCONSTANT_WM_SIZE) - Return $hResult -EndFunc ;==>_GUICtrlComboBoxEx_SetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetItem($hWnd, $sText, $iIndex = 0, $iImage = -1, $iSelectedImage = -1, $iOverlayImage = -1, $iIndent = -1, $iParam = -1) - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - Local $iMask = $CBEIF_TEXT - If $iImage <> -1 Then $iMask = BitOR($iMask, $CBEIF_IMAGE) - If $iSelectedImage <> -1 Then $iMask = BitOR($iMask, $CBEIF_SELECTEDIMAGE) - If $iOverlayImage <> -1 Then $iMask = BitOR($iMask, $CBEIF_OVERLAY) - If $iParam <> -1 Then $iMask = BitOR($iMask, $CBEIF_LPARAM) - If $iIndent <> -1 Then $iMask = BitOR($iMask, $CBEIF_INDENT) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tItem, "Mask", $iMask) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "Text", $pBuffer) - DllStructSetData($tItem, "TextMax", $iBuffer * 2) - DllStructSetData($tItem, "Image", $iImage) - DllStructSetData($tItem, "Param", $iParam) - DllStructSetData($tItem, "Indent", $iIndent) - DllStructSetData($tItem, "SelectedImage", $iSelectedImage) - DllStructSetData($tItem, "OverlayImage", $iOverlayImage) - Return _GUICtrlComboBoxEx_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlComboBoxEx_SetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetItemEx($hWnd, ByRef $tItem) - Local $iItem = DllStructGetSize($tItem) - Local $iBuffer = DllStructGetData($tItem, "TextMax") - If $iBuffer = 0 Then $iBuffer = 1 - Local $pBuffer = DllStructGetData($tItem, "Text") - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - If $pBuffer <> 0 Then _MemWrite($tMemMap, $pBuffer, $pText, $iBuffer) - Local $iRet = _SendMessage($hWnd, $CBEM_SETITEMW, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - - Return $iRet <> 0 -EndFunc ;==>_GUICtrlComboBoxEx_SetItemEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetItemHeight($hWnd, $iComponent, $iHeight) - Return _SendMessage($hWnd, $CB_SETITEMHEIGHT, $iComponent, $iHeight) -EndFunc ;==>_GUICtrlComboBoxEx_SetItemHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetItemImage($hWnd, $iIndex, $iImage) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_IMAGE) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "Image", $iImage) - Return _GUICtrlComboBoxEx_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlComboBoxEx_SetItemImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetItemIndent($hWnd, $iIndex, $iIndent) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_INDENT) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "Indent", $iIndent) - Return _GUICtrlComboBoxEx_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlComboBoxEx_SetItemIndent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetItemOverlayImage($hWnd, $iIndex, $iImage) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_OVERLAY) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "OverlayImage", $iImage) - Return _GUICtrlComboBoxEx_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlComboBoxEx_SetItemOverlayImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetItemParam($hWnd, $iIndex, $iParam) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_LPARAM) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "Param", $iParam) - Return _GUICtrlComboBoxEx_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlComboBoxEx_SetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetItemSelectedImage($hWnd, $iIndex, $iImage) - Local $tItem = DllStructCreate($tagCOMBOBOXEXITEM) - DllStructSetData($tItem, "Mask", $CBEIF_SELECTEDIMAGE) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "SelectedImage", $iImage) - Return _GUICtrlComboBoxEx_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlComboBoxEx_SetItemSelectedImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetMinVisible($hWnd, $iMinimum) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_SetMinVisible($hCombo, $iMinimum) -EndFunc ;==>_GUICtrlComboBoxEx_SetMinVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetTopIndex($hWnd, $iIndex) - Local $hCombo = _GUICtrlComboBoxEx_GetComboControl($hWnd) - Return _GUICtrlComboBox_SetTopIndex($hCombo, $iIndex) -EndFunc ;==>_GUICtrlComboBoxEx_SetTopIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_SetUnicode($hWnd, $bUnicode = True) - Local $iUnicode = _SendMessage($hWnd, $CBEM_SETUNICODEFORMAT, $bUnicode) <> 0 - Return $iUnicode <> $bUnicode -EndFunc ;==>_GUICtrlComboBoxEx_SetUnicode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlComboBoxEx_ShowDropDown($hWnd, $bShow = False) - _GUICtrlComboBox_ShowDropDown($hWnd, $bShow) -EndFunc ;==>_GUICtrlComboBoxEx_ShowDropDown diff --git a/build/Include/GuiDateTimePicker.au3 b/build/Include/GuiDateTimePicker.au3 deleted file mode 100644 index efff1e505..000000000 --- a/build/Include/GuiDateTimePicker.au3 +++ /dev/null @@ -1,313 +0,0 @@ -#include-once - -#include "DateTimeConstants.au3" -#include "Memory.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Date_Time_Picker -; AutoIt Version : 3.3.14.2 -; Description ...: Functions that assist with date and time picker (DTP) control management. -; A date and time picker (DTP) control provides a simple and intuitive interface through which to exchange date -; and time information with a user. For example, with a DTP control you can ask the user to enter a date and -; then retrieve his or her selection with ease. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hDTLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__DTPCONSTANT_ClassName = "SysDateTimePick32" -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlDTP_Create -; _GUICtrlDTP_Destroy -; _GUICtrlDTP_GetMCColor -; _GUICtrlDTP_GetMCFont -; _GUICtrlDTP_GetMonthCal -; _GUICtrlDTP_GetRange -; _GUICtrlDTP_GetRangeEx -; _GUICtrlDTP_GetSystemTime -; _GUICtrlDTP_GetSystemTimeEx -; _GUICtrlDTP_SetFormat -; _GUICtrlDTP_SetMCColor -; _GUICtrlDTP_SetMCFont -; _GUICtrlDTP_SetRange -; _GUICtrlDTP_SetRangeEx -; _GUICtrlDTP_SetSystemTime -; _GUICtrlDTP_SetSystemTimeEx -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlDTP_Create($hWnd, $iX, $iY, $iWidth = 120, $iHeight = 21, $iStyle = 0x00000000, $iExStyle = 0x00000000) - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE) - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return _WinAPI_CreateWindowEx($iExStyle, $__DTPCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) -EndFunc ;==>_GUICtrlDTP_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__DTPCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hDTLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlDTP_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_GetMCColor($hWnd, $iIndex) - Return _SendMessage($hWnd, $DTM_GETMCCOLOR, $iIndex) -EndFunc ;==>_GUICtrlDTP_GetMCColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_GetMCFont($hWnd) - Return Ptr(_SendMessage($hWnd, $DTM_GETMCFONT)) -EndFunc ;==>_GUICtrlDTP_GetMCFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_GetMonthCal($hWnd) - Return HWnd(_SendMessage($hWnd, $DTM_GETMONTHCAL)) -EndFunc ;==>_GUICtrlDTP_GetMonthCal - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_GetRange($hWnd) - Local $aRange[14] - - Local $tRange = _GUICtrlDTP_GetRangeEx($hWnd) - $aRange[0] = DllStructGetData($tRange, "MinValid") - $aRange[1] = DllStructGetData($tRange, "MinYear") - $aRange[2] = DllStructGetData($tRange, "MinMonth") - $aRange[3] = DllStructGetData($tRange, "MinDay") - $aRange[4] = DllStructGetData($tRange, "MinHour") - $aRange[5] = DllStructGetData($tRange, "MinMinute") - $aRange[6] = DllStructGetData($tRange, "MinSecond") - $aRange[7] = DllStructGetData($tRange, "MaxValid") - $aRange[8] = DllStructGetData($tRange, "MaxYear") - $aRange[9] = DllStructGetData($tRange, "MaxMonth") - $aRange[10] = DllStructGetData($tRange, "MaxDay") - $aRange[11] = DllStructGetData($tRange, "MaxHour") - $aRange[12] = DllStructGetData($tRange, "MaxMinute") - $aRange[13] = DllStructGetData($tRange, "MaxSecond") - Return $aRange -EndFunc ;==>_GUICtrlDTP_GetRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_GetRangeEx($hWnd) - Local $tRange = DllStructCreate($tagDTPRANGE) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hDTLastWnd) Then - $iRet = _SendMessage($hWnd, $DTM_GETRANGE, 0, $tRange, 0, "wparam", "struct*") - Else - Local $iRange = DllStructGetSize($tRange) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRange, $tMemMap) - $iRet = _SendMessage($hWnd, $DTM_GETRANGE, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRange, $iRange) - _MemFree($tMemMap) - EndIf - DllStructSetData($tRange, "MinValid", BitAND($iRet, $GDTR_MIN) <> 0) - DllStructSetData($tRange, "MaxValid", BitAND($iRet, $GDTR_MAX) <> 0) - Return $tRange -EndFunc ;==>_GUICtrlDTP_GetRangeEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_GetSystemTime($hWnd) - Local $aDate[6] - - Local $tDate = _GUICtrlDTP_GetSystemTimeEx($hWnd) - $aDate[0] = DllStructGetData($tDate, "Year") - $aDate[1] = DllStructGetData($tDate, "Month") - $aDate[2] = DllStructGetData($tDate, "Day") - $aDate[3] = DllStructGetData($tDate, "Hour") - $aDate[4] = DllStructGetData($tDate, "Minute") - $aDate[5] = DllStructGetData($tDate, "Second") - Return $aDate -EndFunc ;==>_GUICtrlDTP_GetSystemTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_GetSystemTimeEx($hWnd) - Local $tDate = DllStructCreate($tagSYSTEMTIME) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hDTLastWnd) Then - $iRet = _SendMessage($hWnd, $DTM_GETSYSTEMTIME, 0, $tDate, 0, "wparam", "struct*") - Else - Local $iDate = DllStructGetSize($tDate) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iDate, $tMemMap) - $iRet = _SendMessage($hWnd, $DTM_GETSYSTEMTIME, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tDate, $iDate) - _MemFree($tMemMap) - EndIf - Return SetError($iRet, $iRet, $tDate) -EndFunc ;==>_GUICtrlDTP_GetSystemTimeEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_SetFormat($hWnd, $sFormat) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hDTLastWnd) Then - $iRet = _SendMessage($hWnd, $DTM_SETFORMATW, 0, $sFormat, 0, "wparam", "wstr") - Else - Local $iMemory = 2 * (StringLen($sFormat) + 1) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iMemory, $tMemMap) - _MemWrite($tMemMap, $sFormat, $pMemory, $iMemory, "wstr") - $iRet = _SendMessage($hWnd, $DTM_SETFORMATW, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlDTP_SetFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_SetMCColor($hWnd, $iIndex, $iColor) - Return _SendMessage($hWnd, $DTM_SETMCCOLOR, $iIndex, $iColor) -EndFunc ;==>_GUICtrlDTP_SetMCColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_SetMCFont($hWnd, $hFont, $bRedraw = True) - _SendMessage($hWnd, $DTM_SETMCFONT, $hFont, $bRedraw, 0, "handle") -EndFunc ;==>_GUICtrlDTP_SetMCFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_SetRange($hWnd, ByRef $aRange) - Local $tRange = DllStructCreate($tagDTPRANGE) - DllStructSetData($tRange, "MinValid", $aRange[0]) - DllStructSetData($tRange, "MinYear", $aRange[1]) - DllStructSetData($tRange, "MinMonth", $aRange[2]) - DllStructSetData($tRange, "MinDay", $aRange[3]) - DllStructSetData($tRange, "MinHour", $aRange[4]) - DllStructSetData($tRange, "MinMinute", $aRange[5]) - DllStructSetData($tRange, "MinSecond", $aRange[6]) - DllStructSetData($tRange, "MaxValid", $aRange[7]) - DllStructSetData($tRange, "MaxYear", $aRange[8]) - DllStructSetData($tRange, "MaxMonth", $aRange[9]) - DllStructSetData($tRange, "MaxDay", $aRange[10]) - DllStructSetData($tRange, "MaxHour", $aRange[11]) - DllStructSetData($tRange, "MaxMinute", $aRange[12]) - DllStructSetData($tRange, "MaxSecond", $aRange[13]) - Return _GUICtrlDTP_SetRangeEx($hWnd, $tRange) -EndFunc ;==>_GUICtrlDTP_SetRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_SetRangeEx($hWnd, ByRef $tRange) - Local $iFlags = 0, $iRet - If DllStructGetData($tRange, "MinValid") Then $iFlags = BitOR($iFlags, $GDTR_MIN) - If DllStructGetData($tRange, "MaxValid") Then $iFlags = BitOR($iFlags, $GDTR_MAX) - If _WinAPI_InProcess($hWnd, $__g_hDTLastWnd) Then - $iRet = _SendMessage($hWnd, $DTM_SETRANGE, $iFlags, $tRange, 0, "wparam", "struct*") - Else - Local $iRange = DllStructGetSize($tRange) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRange, $tMemMap) - _MemWrite($tMemMap, $tRange) - $iRet = _SendMessage($hWnd, $DTM_SETRANGE, $iFlags, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlDTP_SetRangeEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_SetSystemTime($hWnd, ByRef $aDate) - Local $tDate = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tDate, "Year", $aDate[1]) - DllStructSetData($tDate, "Month", $aDate[2]) - DllStructSetData($tDate, "Day", $aDate[3]) - DllStructSetData($tDate, "Hour", $aDate[4]) - DllStructSetData($tDate, "Minute", $aDate[5]) - DllStructSetData($tDate, "Second", $aDate[6]) - Return _GUICtrlDTP_SetSystemTimeEx($hWnd, $tDate, $aDate[0]) -EndFunc ;==>_GUICtrlDTP_SetSystemTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlDTP_SetSystemTimeEx($hWnd, ByRef $tDate, $bFlag = False) - Local $iFlag, $iRet - - If $bFlag Then - $iFlag = $GDT_NONE - Else - $iFlag = $GDT_VALID - EndIf - If _WinAPI_InProcess($hWnd, $__g_hDTLastWnd) Then - $iRet = _SendMessage($hWnd, $DTM_SETSYSTEMTIME, $iFlag, $tDate, 0, "wparam", "struct*") - Else - Local $iDate = DllStructGetSize($tDate) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iDate, $tMemMap) - _MemWrite($tMemMap, $tDate) - $iRet = _SendMessage($hWnd, $DTM_SETSYSTEMTIME, $iFlag, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlDTP_SetSystemTimeEx diff --git a/build/Include/GuiEdit.au3 b/build/Include/GuiEdit.au3 deleted file mode 100644 index f111bc657..000000000 --- a/build/Include/GuiEdit.au3 +++ /dev/null @@ -1,1057 +0,0 @@ -#include-once - -#include "EditConstants.au3" -#include "GuiStatusBar.au3" -#include "Memory.au3" -#include "SendMessage.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" -#include "ToolTipConstants.au3" ; for _GUICtrlEdit_ShowBalloonTip() - -; #INDEX# ======================================================================================================================= -; Title .........: Edit -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Edit control management. -; An edit control is a rectangular control window typically used in a dialog box to permit the user to enter -; and edit text by typing on the keyboard. -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hEditLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__EDITCONSTANT_ClassName = "Edit" -Global Const $__EDITCONSTANT_GUI_CHECKED = 1 -Global Const $__EDITCONSTANT_GUI_HIDE = 32 -Global Const $__EDITCONSTANT_GUI_EVENT_CLOSE = -3 -Global Const $__EDITCONSTANT_GUI_ENABLE = 64 -Global Const $__EDITCONSTANT_GUI_DISABLE = 128 -Global Const $__EDITCONSTANT_SS_CENTER = 1 -Global Const $__EDITCONSTANT_WM_SETREDRAW = 0x000B -Global Const $__EDITCONSTANT_WS_CAPTION = 0x00C00000 -Global Const $__EDITCONSTANT_WS_POPUP = 0x80000000 -Global Const $__EDITCONSTANT_WS_SYSMENU = 0x00080000 -Global Const $__EDITCONSTANT_WS_MINIMIZEBOX = 0x00020000 -Global Const $__EDITCONSTANT_DEFAULT_GUI_FONT = 17 -Global Const $__EDITCONSTANT_WM_SETFONT = 0x0030 -Global Const $__EDITCONSTANT_WM_GETTEXTLENGTH = 0x000E -Global Const $__EDITCONSTANT_WM_GETTEXT = 0x000D -Global Const $__EDITCONSTANT_WM_SETTEXT = 0x000C -Global Const $__EDITCONSTANT_SB_LINEUP = 0 -Global Const $__EDITCONSTANT_SB_LINEDOWN = 1 -Global Const $__EDITCONSTANT_SB_PAGEDOWN = 3 -Global Const $__EDITCONSTANT_SB_PAGEUP = 2 -Global Const $__EDITCONSTANT_SB_SCROLLCARET = 4 -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not working/documented/implemented at this time -; -; _GUICtrlEdit_GetHandle -; _GUICtrlEdit_GetIMEStatus -; _GUICtrlEdit_GetThumb -; _GUICtrlEdit_GetWordBreakProc -; _GUICtrlEdit_SetHandle -; _GUICtrlEdit_SetIMEStatus -; _GUICtrlEdit_SetWordBreakProc -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlEdit_AppendText -; _GUICtrlEdit_BeginUpdate -; _GUICtrlEdit_CanUndo -; _GUICtrlEdit_CharFromPos -; _GUICtrlEdit_Create -; _GUICtrlEdit_Destroy -; _GUICtrlEdit_EmptyUndoBuffer -; _GUICtrlEdit_EndUpdate -; _GUICtrlEdit_FmtLines -; _GUICtrlEdit_Find -; _GUICtrlEdit_GetCueBanner -; _GUICtrlEdit_GetFirstVisibleLine -; _GUICtrlEdit_GetLimitText -; _GUICtrlEdit_GetLine -; _GUICtrlEdit_GetLineCount -; _GUICtrlEdit_GetMargins -; _GUICtrlEdit_GetModify -; _GUICtrlEdit_GetPasswordChar -; _GUICtrlEdit_GetRECT -; _GUICtrlEdit_GetRECTEx -; _GUICtrlEdit_GetSel -; _GUICtrlEdit_GetText -; _GUICtrlEdit_GetTextLen -; _GUICtrlEdit_HideBalloonTip -; _GUICtrlEdit_InsertText -; _GUICtrlEdit_LineFromChar -; _GUICtrlEdit_LineIndex -; _GUICtrlEdit_LineLength -; _GUICtrlEdit_LineScroll -; _GUICtrlEdit_PosFromChar -; _GUICtrlEdit_ReplaceSel -; _GUICtrlEdit_Scroll -; _GUICtrlEdit_SetCueBanner -; _GUICtrlEdit_SetLimitText -; _GUICtrlEdit_SetMargins -; _GUICtrlEdit_SetModify -; _GUICtrlEdit_SetPasswordChar -; _GUICtrlEdit_SetReadOnly -; _GUICtrlEdit_SetRECT -; _GUICtrlEdit_SetRECTEx -; _GUICtrlEdit_SetRECTNP -; _GUICtrlEdit_SetRectNPEx -; _GUICtrlEdit_SetSel -; _GUICtrlEdit_SetTabStops -; _GUICtrlEdit_SetText -; _GUICtrlEdit_ShowBalloonTip -; _GUICtrlEdit_Undo -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $__tagEDITBALLOONTIP -; __GUICtrlEdit_FindText -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagEDITBALLOONTIP -; Description ...: Contains information about a balloon tip -; Fields ........: Size - Size of this structure, in bytes -; Title - Pointer to the buffer that holds Title of the ToolTip -; Text - Pointer to the buffer that holds Text of the ToolTip -; Icon - Type of Icon. This can be one of the following values: -; |$TTI_ERROR - Use the error icon -; |$TTI_INFO - Use the information icon -; |$TTI_NONE - Use no icon -; |$TTI_WARNING - Use the warning icon -; Author ........: Gary Frost (gafrost) -; Remarks .......: For use with Edit control (minimum O.S. Win XP) -; =============================================================================================================================== -Global Const $__tagEDITBALLOONTIP = "dword Size;ptr Title;ptr Text;int Icon" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_AppendText($hWnd, $sText) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iLength = _GUICtrlEdit_GetTextLen($hWnd) - _GUICtrlEdit_SetSel($hWnd, $iLength, $iLength) - _SendMessage($hWnd, $EM_REPLACESEL, True, $sText, 0, "wparam", "wstr") -EndFunc ;==>_GUICtrlEdit_AppendText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_BeginUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__EDITCONSTANT_WM_SETREDRAW, False) = 0 -EndFunc ;==>_GUICtrlEdit_BeginUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_CanUndo($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_CANUNDO) <> 0 -EndFunc ;==>_GUICtrlEdit_CanUndo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_CharFromPos($hWnd, $iX, $iY) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $aReturn[2] - - Local $iRet = _SendMessage($hWnd, $EM_CHARFROMPOS, 0, _WinAPI_MakeLong($iX, $iY)) - $aReturn[0] = _WinAPI_LoWord($iRet) - $aReturn[1] = _WinAPI_HiWord($iRet) - Return $aReturn -EndFunc ;==>_GUICtrlEdit_CharFromPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_Create($hWnd, $sText, $iX, $iY, $iWidth = 150, $iHeight = 150, $iStyle = 0x003010C4, $iExStyle = 0x00000200) - If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0) ; Invalid Window handle for _GUICtrlEdit_Create 1st parameter - If Not IsString($sText) Then Return SetError(2, 0, 0) ; 2nd parameter not a string for _GUICtrlEdit_Create - - If $iWidth = -1 Then $iWidth = 150 - If $iHeight = -1 Then $iHeight = 150 - If $iStyle = -1 Then $iStyle = 0x003010C4 - If $iExStyle = -1 Then $iExStyle = 0x00000200 - - If BitAND($iStyle, $ES_READONLY) = $ES_READONLY Then - $iStyle = BitOR($__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE, $iStyle) - Else - $iStyle = BitOR($__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE, $__UDFGUICONSTANT_WS_TABSTOP, $iStyle) - EndIf - ;========================================================================================================= - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hEdit = _WinAPI_CreateWindowEx($iExStyle, $__EDITCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _SendMessage($hEdit, $__EDITCONSTANT_WM_SETFONT, _WinAPI_GetStockObject($__EDITCONSTANT_DEFAULT_GUI_FONT), True) - _GUICtrlEdit_SetText($hEdit, $sText) - _GUICtrlEdit_SetLimitText($hEdit, 0) - Return $hEdit -EndFunc ;==>_GUICtrlEdit_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__EDITCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hEditLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlEdit_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_EmptyUndoBuffer($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_EMPTYUNDOBUFFER) -EndFunc ;==>_GUICtrlEdit_EmptyUndoBuffer - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_EndUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__EDITCONSTANT_WM_SETREDRAW, True) = 0 -EndFunc ;==>_GUICtrlEdit_EndUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_FmtLines($hWnd, $bSoftBreak = False) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_FMTLINES, $bSoftBreak) -EndFunc ;==>_GUICtrlEdit_FmtLines - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_Find($hWnd, $bReplace = False) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iPos = 0, $iCase, $iOccurance = 0, $iReplacements = 0 - Local $aPartsRightEdge[3] = [125, 225, -1] - Local $iOldMode = Opt("GUIOnEventMode", 0) - - Local $aSel = _GUICtrlEdit_GetSel($hWnd) - Local $sText = _GUICtrlEdit_GetText($hWnd) - - Local $hGuiSearch = GUICreate("Find", 349, 177, -1, -1, BitOR($__UDFGUICONSTANT_WS_CHILD, $__EDITCONSTANT_WS_MINIMIZEBOX, $__EDITCONSTANT_WS_CAPTION, $__EDITCONSTANT_WS_POPUP, $__EDITCONSTANT_WS_SYSMENU)) - Local $idStatusBar1 = _GUICtrlStatusBar_Create($hGuiSearch, $aPartsRightEdge) - _GUICtrlStatusBar_SetText($idStatusBar1, "Find: ") - - GUISetIcon(@SystemDir & "\shell32.dll", 22, $hGuiSearch) - GUICtrlCreateLabel("Find what:", 9, 10, 53, 16, $__EDITCONSTANT_SS_CENTER) - Local $idInputSearch = GUICtrlCreateInput("", 80, 8, 257, 21) - Local $idLblReplace = GUICtrlCreateLabel("Replace with:", 9, 42, 69, 17, $__EDITCONSTANT_SS_CENTER) - Local $idInputReplace = GUICtrlCreateInput("", 80, 40, 257, 21) - Local $idChkWholeOnly = GUICtrlCreateCheckbox("Match whole word only", 9, 72, 145, 17) - Local $idChkMatchCase = GUICtrlCreateCheckbox("Match case", 9, 96, 145, 17) - Local $idBtnFindNext = GUICtrlCreateButton("Find Next", 168, 72, 161, 21, 0) - Local $idBtnReplace = GUICtrlCreateButton("Replace", 168, 96, 161, 21, 0) - Local $idBtnClose = GUICtrlCreateButton("Close", 104, 130, 161, 21, 0) - If (IsArray($aSel) And $aSel <> $EC_ERR) Then - GUICtrlSetData($idInputSearch, StringMid($sText, $aSel[0] + 1, $aSel[1] - $aSel[0])) - If $aSel[0] <> $aSel[1] Then ; text was selected when function was invoked - $iPos = $aSel[0] - If BitAND(GUICtrlRead($idChkMatchCase), $__EDITCONSTANT_GUI_CHECKED) = $__EDITCONSTANT_GUI_CHECKED Then $iCase = 1 - $iOccurance = 1 - Local $iTPose - While 1 ; set the current occurance so search starts from here - $iTPose = StringInStr($sText, GUICtrlRead($idInputSearch), $iCase, $iOccurance) - If Not $iTPose Then ; this should never happen, but just in case - $iOccurance = 0 - ExitLoop - ElseIf $iTPose = $iPos + 1 Then ; found the occurance - ExitLoop - EndIf - $iOccurance += 1 - WEnd - EndIf - _GUICtrlStatusBar_SetText($idStatusBar1, "Find: " & GUICtrlRead($idInputSearch)) - EndIf - - If $bReplace = False Then - GUICtrlSetState($idLblReplace, $__EDITCONSTANT_GUI_HIDE) - GUICtrlSetState($idInputReplace, $__EDITCONSTANT_GUI_HIDE) - GUICtrlSetState($idBtnReplace, $__EDITCONSTANT_GUI_HIDE) - Else - _GUICtrlStatusBar_SetText($idStatusBar1, "Replacements: " & $iReplacements, 1) - _GUICtrlStatusBar_SetText($idStatusBar1, "With: ", 2) - EndIf - GUISetState(@SW_SHOW) - - Local $iMsgFind - While 1 - $iMsgFind = GUIGetMsg() - Select - Case $iMsgFind = $__EDITCONSTANT_GUI_EVENT_CLOSE Or $iMsgFind = $idBtnClose - ExitLoop - Case $iMsgFind = $idBtnFindNext - GUICtrlSetState($idBtnFindNext, $__EDITCONSTANT_GUI_DISABLE) - GUICtrlSetCursor($idBtnFindNext, 15) - Sleep(100) - _GUICtrlStatusBar_SetText($idStatusBar1, "Find: " & GUICtrlRead($idInputSearch)) - If $bReplace = True Then - _GUICtrlStatusBar_SetText($idStatusBar1, "Find: " & GUICtrlRead($idInputSearch)) - _GUICtrlStatusBar_SetText($idStatusBar1, "With: " & GUICtrlRead($idInputReplace), 2) - EndIf - __GUICtrlEdit_FindText($hWnd, $idInputSearch, $idChkMatchCase, $idChkWholeOnly, $iPos, $iOccurance, $iReplacements) - Sleep(100) - GUICtrlSetState($idBtnFindNext, $__EDITCONSTANT_GUI_ENABLE) - GUICtrlSetCursor($idBtnFindNext, 2) - Case $iMsgFind = $idBtnReplace - GUICtrlSetState($idBtnReplace, $__EDITCONSTANT_GUI_DISABLE) - GUICtrlSetCursor($idBtnReplace, 15) - Sleep(100) - _GUICtrlStatusBar_SetText($idStatusBar1, "Find: " & GUICtrlRead($idInputSearch)) - _GUICtrlStatusBar_SetText($idStatusBar1, "With: " & GUICtrlRead($idInputReplace), 2) - If $iPos Then - _GUICtrlEdit_ReplaceSel($hWnd, GUICtrlRead($idInputReplace)) - $iReplacements += 1 - $iOccurance -= 1 - _GUICtrlStatusBar_SetText($idStatusBar1, "Replacements: " & $iReplacements, 1) - EndIf - __GUICtrlEdit_FindText($hWnd, $idInputSearch, $idChkMatchCase, $idChkWholeOnly, $iPos, $iOccurance, $iReplacements) - Sleep(100) - GUICtrlSetState($idBtnReplace, $__EDITCONSTANT_GUI_ENABLE) - GUICtrlSetCursor($idBtnReplace, 2) - EndSelect - WEnd - GUIDelete($hGuiSearch) - Opt("GUIOnEventMode", $iOldMode) -EndFunc ;==>_GUICtrlEdit_Find - -; #FUNCTION# ==================================================================================================================== -; Author ........: Guinness -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetCueBanner($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tText = DllStructCreate("wchar[4096]") - If _SendMessage($hWnd, $EM_GETCUEBANNER, $tText, 4096, 0, "struct*") <> 1 Then Return SetError(-1, 0, "") - Return _WinAPI_WideCharToMultiByte($tText) -EndFunc ;==>_GUICtrlEdit_GetCueBanner - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlEdit_FindText -; Description ...: -; Syntax.........: __GUICtrlEdit_FindText ( $hWnd, $idInputSearch, $idChkMatchCase, $idChkWholeOnly, ByRef $iPos, ByRef $iOccurance, ByRef $iReplacements ) -; Parameters ....: $hWnd - Handle to the control -; $idInputSearch - controlID -; $idChkMatchCase - controlID -; $idChkWholeOnly - controlID -; $iPos - position of text found -; $iOccurance - occurance to find -; $iReplacements - # of occurances replaced -; Return values .: -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: -; Related .......: _GUICtrlEdit_Find -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlEdit_FindText($hWnd, $idInputSearch, $idChkMatchCase, $idChkWholeOnly, ByRef $iPos, ByRef $iOccurance, ByRef $iReplacements) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iCase = 0, $iWhole = 0 - Local $bExact = False - Local $sFind = GUICtrlRead($idInputSearch) - - Local $sText = _GUICtrlEdit_GetText($hWnd) - - If BitAND(GUICtrlRead($idChkMatchCase), $__EDITCONSTANT_GUI_CHECKED) = $__EDITCONSTANT_GUI_CHECKED Then $iCase = 1 - If BitAND(GUICtrlRead($idChkWholeOnly), $__EDITCONSTANT_GUI_CHECKED) = $__EDITCONSTANT_GUI_CHECKED Then $iWhole = 1 - If $sFind <> "" Then - $iOccurance += 1 - $iPos = StringInStr($sText, $sFind, $iCase, $iOccurance) - If $iWhole And $iPos Then - Local $s_Compare2 = StringMid($sText, $iPos + StringLen($sFind), 1) - If $iPos = 1 Then - If ($iPos + StringLen($sFind)) - 1 = StringLen($sText) Or _ - ($s_Compare2 = " " Or $s_Compare2 = @LF Or $s_Compare2 = @CR Or _ - $s_Compare2 = @CRLF Or $s_Compare2 = @TAB) Then $bExact = True - Else - Local $s_Compare1 = StringMid($sText, $iPos - 1, 1) - If ($iPos + StringLen($sFind)) - 1 = StringLen($sText) Then - If ($s_Compare1 = " " Or $s_Compare1 = @LF Or $s_Compare1 = @CR Or _ - $s_Compare1 = @CRLF Or $s_Compare1 = @TAB) Then $bExact = True - Else - If ($s_Compare1 = " " Or $s_Compare1 = @LF Or $s_Compare1 = @CR Or _ - $s_Compare1 = @CRLF Or $s_Compare1 = @TAB) And _ - ($s_Compare2 = " " Or $s_Compare2 = @LF Or $s_Compare2 = @CR Or _ - $s_Compare2 = @CRLF Or $s_Compare2 = @TAB) Then $bExact = True - EndIf - EndIf - If $bExact = False Then ; found word, but as part of another word, so search again - __GUICtrlEdit_FindText($hWnd, $idInputSearch, $idChkMatchCase, $idChkWholeOnly, $iPos, $iOccurance, $iReplacements) - Else ; found it - _GUICtrlEdit_SetSel($hWnd, $iPos - 1, ($iPos + StringLen($sFind)) - 1) - _GUICtrlEdit_Scroll($hWnd, $__EDITCONSTANT_SB_SCROLLCARET) - EndIf - ElseIf $iWhole And Not $iPos Then ; no more to find - $iOccurance = 0 - MsgBox($MB_SYSTEMMODAL, "Find", "Reached End of document, Can not find the string '" & $sFind & "'") - ElseIf Not $iWhole Then - If Not $iPos Then ; wrap around search and select - $iOccurance = 1 - _GUICtrlEdit_SetSel($hWnd, -1, 0) - _GUICtrlEdit_Scroll($hWnd, $__EDITCONSTANT_SB_SCROLLCARET) - $iPos = StringInStr($sText, $sFind, $iCase, $iOccurance) - If Not $iPos Then ; no more to find - $iOccurance = 0 - MsgBox($MB_SYSTEMMODAL, "Find", "Reached End of document, Can not find the string '" & $sFind & "'") - Else ; found it - _GUICtrlEdit_SetSel($hWnd, $iPos - 1, ($iPos + StringLen($sFind)) - 1) - _GUICtrlEdit_Scroll($hWnd, $__EDITCONSTANT_SB_SCROLLCARET) - EndIf - Else ; set selection - _GUICtrlEdit_SetSel($hWnd, $iPos - 1, ($iPos + StringLen($sFind)) - 1) - _GUICtrlEdit_Scroll($hWnd, $__EDITCONSTANT_SB_SCROLLCARET) - EndIf - EndIf - EndIf -EndFunc ;==>__GUICtrlEdit_FindText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetFirstVisibleLine($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_GETFIRSTVISIBLELINE) -EndFunc ;==>_GUICtrlEdit_GetFirstVisibleLine - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlEdit_GetHandle -; Description ...: Gets a handle of the memory currently allocated for a multiline edit control's text -; Syntax.........: _GUICtrlEdit_GetHandle ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: Success - Memory handle identifying the buffer that holds the content of the edit control -; Failure - 0 -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: If the function succeeds, the application can access the contents of the edit control by casting the -; return value to HLOCAL and passing it to LocalLock. LocalLock returns a pointer to a buffer that is a -; null-terminated array of CHARs or WCHARs, depending on whether an ANSI or Unicode function created the control. -; For example, if CreateWindowExA was used the buffer is an array of CHARs, but if CreateWindowExW was used the -; buffer is an array of WCHARs. The application may not change the contents of the buffer. To unlock the buffer, -; the application calls LocalUnlock before allowing the edit control to receive new messages. -; + -; If your application cannot abide by the restrictions imposed by EM_GETHANDLE, use the GetWindowTextLength and -; GetWindowText functions to copy the contents of the edit control into an application-provided buffer. -; Related .......: _GUICtrlEdit_SetHandle -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetHandle($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return Ptr(_SendMessage($hWnd, $EM_GETHANDLE)) -EndFunc ;==>_GUICtrlEdit_GetHandle - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlEdit_GetIMEStatus -; Description ...: Gets a set of status flags that indicate how the edit control interacts with the Input Method Editor (IME) -; Syntax.........: _GUICtrlEdit_GetIMEStatus ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: Success - One or More of the Following Flags -; |$EIMES_GETCOMPSTRATONCE - The edit control hooks the WM_IME_COMPOSITION message -; |$EIMES_CANCELCOMPSTRINFOCUS - The edit control cancels the composition string when it receives the WM_SETFOCUS message -; |$EIMES_COMPLETECOMPSTRKILLFOCUS - The edit control completes the composition string upon receiving the WM_KILLFOCUS message -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetIMEStatus($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_GETIMESTATUS, $EMSIS_COMPOSITIONSTRING) -EndFunc ;==>_GUICtrlEdit_GetIMEStatus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetLimitText($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_GETLIMITTEXT) -EndFunc ;==>_GUICtrlEdit_GetLimitText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), Jos van der Zande -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlEdit_GetLine($hWnd, $iLine) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iLength = _GUICtrlEdit_LineLength($hWnd, $iLine) - If $iLength = 0 Then Return "" - Local $tBuffer = DllStructCreate("short Len;wchar Text[" & $iLength & "]") - DllStructSetData($tBuffer, "Len", $iLength + 1) - Local $iRet = _SendMessage($hWnd, $EM_GETLINE, $iLine, $tBuffer, 0, "wparam", "struct*") - - If $iRet = 0 Then Return SetError($EC_ERR, $EC_ERR, "") - - Local $tText = DllStructCreate("wchar Text[" & $iLength & "]", DllStructGetPtr($tBuffer)) - Return DllStructGetData($tText, "Text") -EndFunc ;==>_GUICtrlEdit_GetLine - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetLineCount($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_GETLINECOUNT) -EndFunc ;==>_GUICtrlEdit_GetLineCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetMargins($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $aMargins[2] - Local $iMargins = _SendMessage($hWnd, $EM_GETMARGINS) - $aMargins[0] = _WinAPI_LoWord($iMargins) ; Left Margin - $aMargins[1] = _WinAPI_HiWord($iMargins) ; Right Margin - Return $aMargins -EndFunc ;==>_GUICtrlEdit_GetMargins - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetModify($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_GETMODIFY) <> 0 -EndFunc ;==>_GUICtrlEdit_GetModify - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetPasswordChar($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_GETPASSWORDCHAR) -EndFunc ;==>_GUICtrlEdit_GetPasswordChar - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetRECT($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $aRect[4] - - Local $tRECT = _GUICtrlEdit_GetRECTEx($hWnd) - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlEdit_GetRECT - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetRECTEx($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tRECT = DllStructCreate($tagRECT) - _SendMessage($hWnd, $EM_GETRECT, 0, $tRECT, 0, "wparam", "struct*") - Return $tRECT -EndFunc ;==>_GUICtrlEdit_GetRECTEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetSel($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $aSel[2] - Local $tStart = DllStructCreate("uint Start") - Local $tEnd = DllStructCreate("uint End") - _SendMessage($hWnd, $EM_GETSEL, $tStart, $tEnd, 0, "struct*", "struct*") - $aSel[0] = DllStructGetData($tStart, "Start") - $aSel[1] = DllStructGetData($tEnd, "End") - Return $aSel -EndFunc ;==>_GUICtrlEdit_GetSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetText($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iTextLen = _GUICtrlEdit_GetTextLen($hWnd) + 1 - Local $tText = DllStructCreate("wchar Text[" & $iTextLen & "]") - _SendMessage($hWnd, $__EDITCONSTANT_WM_GETTEXT, $iTextLen, $tText, 0, "wparam", "struct*") - Return DllStructGetData($tText, "Text") -EndFunc ;==>_GUICtrlEdit_GetText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetTextLen($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__EDITCONSTANT_WM_GETTEXTLENGTH) -EndFunc ;==>_GUICtrlEdit_GetTextLen - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlEdit_GetThumb -; Description ...: Retrieves the position of the scroll box (thumb) in the vertical scroll -; Syntax.........: _GUICtrlEdit_GetThumb ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: Success - The position of the scroll box -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: I think WM_VSCROLL events probably work better -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetThumb($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_GETTHUMB) -EndFunc ;==>_GUICtrlEdit_GetThumb - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlEdit_GetWordBreakProc -; Description ...: Retrieves the address of the current Wordwrap function -; Syntax.........: _GUICtrlEdit_GetWordBreakProc ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: Success - The address of the application-defined Wordwrap function -; Failure - 0 -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: -; Related .......: _GUICtrlEdit_SetWordBreakProc -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlEdit_GetWordBreakProc($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_GETWORDBREAKPROC) -EndFunc ;==>_GUICtrlEdit_GetWordBreakProc - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_HideBalloonTip($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_HIDEBALLOONTIP) <> 0 -EndFunc ;==>_GUICtrlEdit_HideBalloonTip - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_InsertText($hWnd, $sText, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If $iIndex = -1 Then - _GUICtrlEdit_AppendText($hWnd, $sText) - Else - _GUICtrlEdit_SetSel($hWnd, $iIndex, $iIndex) - _SendMessage($hWnd, $EM_REPLACESEL, True, $sText, 0, "wparam", "wstr") - EndIf -EndFunc ;==>_GUICtrlEdit_InsertText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_LineFromChar($hWnd, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_LINEFROMCHAR, $iIndex) -EndFunc ;==>_GUICtrlEdit_LineFromChar - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_LineIndex($hWnd, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_LINEINDEX, $iIndex) -EndFunc ;==>_GUICtrlEdit_LineIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_LineLength($hWnd, $iIndex = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iCharIndex = _GUICtrlEdit_LineIndex($hWnd, $iIndex) - Return _SendMessage($hWnd, $EM_LINELENGTH, $iCharIndex) -EndFunc ;==>_GUICtrlEdit_LineLength - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_LineScroll($hWnd, $iHoriz, $iVert) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_LINESCROLL, $iHoriz, $iVert) <> 0 -EndFunc ;==>_GUICtrlEdit_LineScroll - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_PosFromChar($hWnd, $iIndex) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $aCoord[2] - Local $iRet = _SendMessage($hWnd, $EM_POSFROMCHAR, $iIndex) - $aCoord[0] = _WinAPI_LoWord($iRet) - $aCoord[1] = _WinAPI_HiWord($iRet) - Return $aCoord -EndFunc ;==>_GUICtrlEdit_PosFromChar - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_ReplaceSel($hWnd, $sText, $bUndo = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_REPLACESEL, $bUndo, $sText, 0, "wparam", "wstr") -EndFunc ;==>_GUICtrlEdit_ReplaceSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_Scroll($hWnd, $iDirection) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If BitAND($iDirection, $__EDITCONSTANT_SB_LINEDOWN) <> $__EDITCONSTANT_SB_LINEDOWN And _ - BitAND($iDirection, $__EDITCONSTANT_SB_LINEUP) <> $__EDITCONSTANT_SB_LINEUP And _ - BitAND($iDirection, $__EDITCONSTANT_SB_PAGEDOWN) <> $__EDITCONSTANT_SB_PAGEDOWN And _ - BitAND($iDirection, $__EDITCONSTANT_SB_PAGEUP) <> $__EDITCONSTANT_SB_PAGEUP And _ - BitAND($iDirection, $__EDITCONSTANT_SB_SCROLLCARET) <> $__EDITCONSTANT_SB_SCROLLCARET Then Return 0 - - If $iDirection == $__EDITCONSTANT_SB_SCROLLCARET Then - Return _SendMessage($hWnd, $EM_SCROLLCARET) - Else - Return _SendMessage($hWnd, $EM_SCROLL, $iDirection) - EndIf -EndFunc ;==>_GUICtrlEdit_Scroll - -; #FUNCTION# ==================================================================================================================== -; Author ........: Guinness -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetCueBanner($hWnd, $sText, $bOnFocus = False) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tText = _WinAPI_MultiByteToWideChar($sText) - - Return _SendMessage($hWnd, $EM_SETCUEBANNER, $bOnFocus, $tText, 0, "wparam", "struct*") = 1 -EndFunc ;==>_GUICtrlEdit_SetCueBanner - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlEdit_SetHandle -; Description ...: Sets the handle of the memory that will be used -; Syntax.........: _GUICtrlEdit_SetHandle ( $hWnd, $hMemory ) -; Parameters ....: $hWnd - Handle to the control -; $hMemory - A handle to the memory buffer the edit control uses to store the currently displayed text -; +instead of allocating its own memory -; Return values .: -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: -; Related .......: _GUICtrlEdit_GetHandle -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetHandle($hWnd, $hMemory) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_SETHANDLE, $hMemory, 0, 0, "handle") -EndFunc ;==>_GUICtrlEdit_SetHandle - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlEdit_SetIMEStatus -; Description ...: Sets the status flags that determine how an edit control interacts with the Input Method Editor (IME) -; Syntax.........: _GUICtrlEdit_SetIMEStatus ( $hWnd, $iComposition ) -; Parameters ....: $hWnd - Handle to the control -; $iComposition - One or more of the following: -; |$EIMES_GETCOMPSTRATONCE - The edit control hooks the WM_IME_COMPOSITION message -; |$EIMES_CANCELCOMPSTRINFOCUS - The edit control cancels the composition string when it receives the WM_SETFOCUS message -; |$EIMES_COMPLETECOMPSTRKILLFOCUS - The edit control completes the composition string upon receiving the WM_KILLFOCUS message -; Return values .: Success - the previous value of the $iComposition parameter -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetIMEStatus($hWnd, $iComposition) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_SETIMESTATUS, $EMSIS_COMPOSITIONSTRING, $iComposition) -EndFunc ;==>_GUICtrlEdit_SetIMEStatus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetLimitText($hWnd, $iLimit) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_SETLIMITTEXT, $iLimit) -EndFunc ;==>_GUICtrlEdit_SetLimitText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetMargins($hWnd, $iMargin = 0x1, $iLeft = 0xFFFF, $iRight = 0xFFFF) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_SETMARGINS, $iMargin, _WinAPI_MakeLong($iLeft, $iRight)) -EndFunc ;==>_GUICtrlEdit_SetMargins - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetModify($hWnd, $bModified) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_SETMODIFY, $bModified) -EndFunc ;==>_GUICtrlEdit_SetModify - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetPasswordChar($hWnd, $sDisplayChar = "0") - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - $sDisplayChar = StringLeft($sDisplayChar, 1) - If Asc($sDisplayChar) = 48 Then - _SendMessage($hWnd, $EM_SETPASSWORDCHAR) - Else - _SendMessage($hWnd, $EM_SETPASSWORDCHAR, Asc($sDisplayChar)) - EndIf -EndFunc ;==>_GUICtrlEdit_SetPasswordChar - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetReadOnly($hWnd, $bReadOnly) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_SETREADONLY, $bReadOnly) <> 0 -EndFunc ;==>_GUICtrlEdit_SetReadOnly - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetRECT($hWnd, $aRect) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Left", $aRect[0]) - DllStructSetData($tRECT, "Top", $aRect[1]) - DllStructSetData($tRECT, "Right", $aRect[2]) - DllStructSetData($tRECT, "Bottom", $aRect[3]) - _GUICtrlEdit_SetRECTEx($hWnd, $tRECT) -EndFunc ;==>_GUICtrlEdit_SetRECT - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetRECTEx($hWnd, $tRECT) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_SETRECT, 0, $tRECT, 0, "wparam", "struct*") -EndFunc ;==>_GUICtrlEdit_SetRECTEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetRECTNP($hWnd, $aRect) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Left", $aRect[0]) - DllStructSetData($tRECT, "Top", $aRect[1]) - DllStructSetData($tRECT, "Right", $aRect[2]) - DllStructSetData($tRECT, "Bottom", $aRect[3]) - _GUICtrlEdit_SetRectNPEx($hWnd, $tRECT) -EndFunc ;==>_GUICtrlEdit_SetRECTNP - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetRectNPEx($hWnd, $tRECT) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_SETRECTNP, 0, $tRECT, 0, "wparam", "struct*") -EndFunc ;==>_GUICtrlEdit_SetRectNPEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetSel($hWnd, $iStart, $iEnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_SETSEL, $iStart, $iEnd) -EndFunc ;==>_GUICtrlEdit_SetSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetTabStops($hWnd, $aTabStops) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If Not IsArray($aTabStops) Then Return SetError(-1, -1, False) - - Local $sTabStops = "" - Local $iNumTabStops = UBound($aTabStops) - - For $x = 0 To $iNumTabStops - 1 - $sTabStops &= "int;" - Next - $sTabStops = StringTrimRight($sTabStops, 1) - Local $tTabStops = DllStructCreate($sTabStops) - For $x = 0 To $iNumTabStops - 1 - DllStructSetData($tTabStops, $x + 1, $aTabStops[$x]) - Next - Local $iRet = _SendMessage($hWnd, $EM_SETTABSTOPS, $iNumTabStops, $tTabStops, 0, "wparam", "struct*") <> 0 - _WinAPI_InvalidateRect($hWnd) - Return $iRet -EndFunc ;==>_GUICtrlEdit_SetTabStops - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetText($hWnd, $sText) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $__EDITCONSTANT_WM_SETTEXT, 0, $sText, 0, "wparam", "wstr") -EndFunc ;==>_GUICtrlEdit_SetText - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlEdit_SetWordBreakProc -; Description ...: Replaces an edit control's default Wordwrap function with an application-defined Wordwrap function -; Syntax.........: _GUICtrlEdit_SetWordBreakProc ( $hWnd, $iAddressFunc ) -; Parameters ....: $hWnd - Handle to the control -; $iAddressFunc - The address of the application-defined Wordwrap function -; Return values .: -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: -; Related .......: _GUICtrlEdit_GetWordBreakProc -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlEdit_SetWordBreakProc($hWnd, $iAddressFunc) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $EM_SETWORDBREAKPROC, 0, $iAddressFunc) -EndFunc ;==>_GUICtrlEdit_SetWordBreakProc - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_ShowBalloonTip($hWnd, $sTitle, $sText, $iIcon) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tTitle = _WinAPI_MultiByteToWideChar($sTitle) - Local $tText = _WinAPI_MultiByteToWideChar($sText) - Local $tTT = DllStructCreate($__tagEDITBALLOONTIP) - DllStructSetData($tTT, "Size", DllStructGetSize($tTT)) - DllStructSetData($tTT, "Title", DllStructGetPtr($tTitle)) - DllStructSetData($tTT, "Text", DllStructGetPtr($tText)) - DllStructSetData($tTT, "Icon", $iIcon) - Return _SendMessage($hWnd, $EM_SHOWBALLOONTIP, 0, $tTT, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlEdit_ShowBalloonTip - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlEdit_Undo($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $EM_UNDO) <> 0 -EndFunc ;==>_GUICtrlEdit_Undo diff --git a/build/Include/GuiHeader.au3 b/build/Include/GuiHeader.au3 deleted file mode 100644 index 8c6af36d1..000000000 --- a/build/Include/GuiHeader.au3 +++ /dev/null @@ -1,865 +0,0 @@ -#include-once - -#include "HeaderConstants.au3" -#include "Memory.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Header -; AutoIt Version : 3.3.14.2 -; Description ...: Functions that assist with Header control management. -; A header control is a window that is usually positioned above columns of text or numbers. It contains a title -; for each column, and it can be divided into parts. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hHDRLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__HEADERCONSTANT_ClassName = "SysHeader32" -Global Const $__HEADERCONSTANT_DEFAULT_GUI_FONT = 17 -Global Const $__HEADERCONSTANT_SWP_SHOWWINDOW = 0x0040 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlHeader_AddItem -; _GUICtrlHeader_ClearFilter -; _GUICtrlHeader_ClearFilterAll -; _GUICtrlHeader_Create -; _GUICtrlHeader_CreateDragImage -; _GUICtrlHeader_DeleteItem -; _GUICtrlHeader_Destroy -; _GUICtrlHeader_EditFilter -; _GUICtrlHeader_GetBitmapMargin -; _GUICtrlHeader_GetImageList -; _GUICtrlHeader_GetItem -; _GUICtrlHeader_GetItemAlign -; _GUICtrlHeader_GetItemBitmap -; _GUICtrlHeader_GetItemCount -; _GUICtrlHeader_GetItemDisplay -; _GUICtrlHeader_GetItemFlags -; _GUICtrlHeader_GetItemFormat -; _GUICtrlHeader_GetItemImage -; _GUICtrlHeader_GetItemOrder -; _GUICtrlHeader_GetItemParam -; _GUICtrlHeader_GetItemRect -; _GUICtrlHeader_GetItemRectEx -; _GUICtrlHeader_GetItemText -; _GUICtrlHeader_GetItemWidth -; _GUICtrlHeader_GetOrderArray -; _GUICtrlHeader_GetUnicodeFormat -; _GUICtrlHeader_HitTest -; _GUICtrlHeader_InsertItem -; _GUICtrlHeader_Layout -; _GUICtrlHeader_OrderToIndex -; _GUICtrlHeader_SetBitmapMargin -; _GUICtrlHeader_SetFilterChangeTimeout -; _GUICtrlHeader_SetHotDivider -; _GUICtrlHeader_SetImageList -; _GUICtrlHeader_SetItem -; _GUICtrlHeader_SetItemAlign -; _GUICtrlHeader_SetItemBitmap -; _GUICtrlHeader_SetItemDisplay -; _GUICtrlHeader_SetItemFlags -; _GUICtrlHeader_SetItemFormat -; _GUICtrlHeader_SetItemImage -; _GUICtrlHeader_SetItemOrder -; _GUICtrlHeader_SetItemParam -; _GUICtrlHeader_SetItemText -; _GUICtrlHeader_SetItemWidth -; _GUICtrlHeader_SetOrderArray -; _GUICtrlHeader_SetUnicodeFormat -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagHDHITTESTINFO -; $tagHDLAYOUT -; $tagHDTEXTFILTER -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagHDHITTESTINFO -; Description ...: Contains information about a hit test -; Fields ........: X - Horizontal postion to be hit test, in client coordinates -; Y - Vertical position to be hit test, in client coordinates -; Flags - Information about the results of a hit test -; Item - If the hit test is successful, contains the index of the item at the hit test point -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: This structure is used with the $HDM_HITTEST message. -; =============================================================================================================================== -Global Const $tagHDHITTESTINFO = $tagPOINT & ";uint Flags;int Item" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagHDLAYOUT -; Description ...: Contains information used to set the size and position of the control -; Fields ........: Rect - Pointer to a RECT structure that contains the rectangle that the header control will occupy -; WindowPos - Pointer to a WINDOWPOS structure that receives information about the size/position of the control -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: This structure is used with the $HDM_LAYOUT message -; =============================================================================================================================== -Global Const $tagHDLAYOUT = "ptr Rect;ptr WindowPos" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagHDTEXTFILTER -; Description ...: Contains information about header control text filters -; Fields ........: Text - Pointer to the buffer containing the filter -; TextMax - The maximum size, in characters, for an edit control buffer -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagHDTEXTFILTER = "ptr Text;int TextMax" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlHeader_AddItem($hWnd, $sText, $iWidth = 50, $iAlign = 0, $iImage = -1, $bOnRight = False) - Return _GUICtrlHeader_InsertItem($hWnd, _GUICtrlHeader_GetItemCount($hWnd), $sText, $iWidth, $iAlign, $iImage, $bOnRight) -EndFunc ;==>_GUICtrlHeader_AddItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_ClearFilter($hWnd, $iIndex) - Return _SendMessage($hWnd, $HDM_CLEARFILTER, $iIndex) <> 0 -EndFunc ;==>_GUICtrlHeader_ClearFilter - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_ClearFilterAll($hWnd) - Return _SendMessage($hWnd, $HDM_CLEARFILTER, -1) <> 0 -EndFunc ;==>_GUICtrlHeader_ClearFilterAll - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlHeader_Create($hWnd, $iStyle = 0x00000046) - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hHeader = _WinAPI_CreateWindowEx(0, $__HEADERCONSTANT_ClassName, "", $iStyle, 0, 0, 0, 0, $hWnd, $nCtrlID) - Local $tRECT = _WinAPI_GetClientRect($hWnd) - Local $tWindowPos = _GUICtrlHeader_Layout($hHeader, $tRECT) - Local $iFlags = BitOR(DllStructGetData($tWindowPos, "Flags"), $__HEADERCONSTANT_SWP_SHOWWINDOW) - _WinAPI_SetWindowPos($hHeader, DllStructGetData($tWindowPos, "InsertAfter"), _ - DllStructGetData($tWindowPos, "X"), DllStructGetData($tWindowPos, "Y"), _ - DllStructGetData($tWindowPos, "CX"), DllStructGetData($tWindowPos, "CY"), $iFlags) - _WinAPI_SetFont($hHeader, _WinAPI_GetStockObject($__HEADERCONSTANT_DEFAULT_GUI_FONT)) - Return $hHeader -EndFunc ;==>_GUICtrlHeader_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_CreateDragImage($hWnd, $iIndex) - Return Ptr(_SendMessage($hWnd, $HDM_CREATEDRAGIMAGE, $iIndex)) -EndFunc ;==>_GUICtrlHeader_CreateDragImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_DeleteItem($hWnd, $iIndex) - Return _SendMessage($hWnd, $HDM_DELETEITEM, $iIndex) <> 0 -EndFunc ;==>_GUICtrlHeader_DeleteItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlHeader_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__HEADERCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlHeader_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_EditFilter($hWnd, $iIndex, $bDiscard = True) - Return _SendMessage($hWnd, $HDM_EDITFILTER, $iIndex, $bDiscard) <> 0 -EndFunc ;==>_GUICtrlHeader_EditFilter - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetBitmapMargin($hWnd) - Return _SendMessage($hWnd, $HDM_GETBITMAPMARGIN) -EndFunc ;==>_GUICtrlHeader_GetBitmapMargin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetImageList($hWnd) - Return Ptr(_SendMessage($hWnd, $HDM_GETIMAGELIST)) -EndFunc ;==>_GUICtrlHeader_GetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItem($hWnd, $iIndex, ByRef $tItem) - Local $bUnicode = _GUICtrlHeader_GetUnicodeFormat($hWnd) - - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - $iRet = _SendMessage($hWnd, $HDM_GETITEMW, $iIndex, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem, $tMemMap) - _MemWrite($tMemMap, $tItem) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $HDM_GETITEMW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $HDM_GETITEMA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tItem, $iItem) - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlHeader_GetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemAlign($hWnd, $iIndex) - Switch BitAND(_GUICtrlHeader_GetItemFormat($hWnd, $iIndex), $HDF_JUSTIFYMASK) - Case $HDF_LEFT - Return 0 - Case $HDF_RIGHT - Return 1 - Case $HDF_CENTER - Return 2 - Case Else - Return -1 - EndSwitch -EndFunc ;==>_GUICtrlHeader_GetItemAlign - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemBitmap($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_BITMAP) - _GUICtrlHeader_GetItem($hWnd, $iIndex, $tItem) - Return DllStructGetData($tItem, "hBmp") -EndFunc ;==>_GUICtrlHeader_GetItemBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemCount($hWnd) - Return _SendMessage($hWnd, $HDM_GETITEMCOUNT) -EndFunc ;==>_GUICtrlHeader_GetItemCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemDisplay($hWnd, $iIndex) - Local $iRet = 0 - - Local $iFormat = _GUICtrlHeader_GetItemFormat($hWnd, $iIndex) - If BitAND($iFormat, $HDF_BITMAP) <> 0 Then $iRet = BitOR($iRet, 1) - If BitAND($iFormat, $HDF_BITMAP_ON_RIGHT) <> 0 Then $iRet = BitOR($iRet, 2) - If BitAND($iFormat, $HDF_OWNERDRAW) <> 0 Then $iRet = BitOR($iRet, 4) - If BitAND($iFormat, $HDF_STRING) <> 0 Then $iRet = BitOR($iRet, 8) - Return $iRet -EndFunc ;==>_GUICtrlHeader_GetItemDisplay - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemFlags($hWnd, $iIndex) - Local $iRet = 0 - - Local $iFormat = _GUICtrlHeader_GetItemFormat($hWnd, $iIndex) - If BitAND($iFormat, $HDF_IMAGE) <> 0 Then $iRet = BitOR($iRet, 1) - If BitAND($iFormat, $HDF_RTLREADING) <> 0 Then $iRet = BitOR($iRet, 2) - If BitAND($iFormat, $HDF_SORTDOWN) <> 0 Then $iRet = BitOR($iRet, 4) - If BitAND($iFormat, $HDF_SORTUP) <> 0 Then $iRet = BitOR($iRet, 8) - Return $iRet -EndFunc ;==>_GUICtrlHeader_GetItemFlags - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemFormat($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_FORMAT) - _GUICtrlHeader_GetItem($hWnd, $iIndex, $tItem) - Return DllStructGetData($tItem, "Fmt") -EndFunc ;==>_GUICtrlHeader_GetItemFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemImage($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_IMAGE) - _GUICtrlHeader_GetItem($hWnd, $iIndex, $tItem) - Return DllStructGetData($tItem, "Image") -EndFunc ;==>_GUICtrlHeader_GetItemImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemOrder($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_ORDER) - _GUICtrlHeader_GetItem($hWnd, $iIndex, $tItem) - Return DllStructGetData($tItem, "Order") -EndFunc ;==>_GUICtrlHeader_GetItemOrder - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemParam($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_PARAM) - _GUICtrlHeader_GetItem($hWnd, $iIndex, $tItem) - Return DllStructGetData($tItem, "Param") -EndFunc ;==>_GUICtrlHeader_GetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemRect($hWnd, $iIndex) - Local $aRect[4] - - Local $tRECT = _GUICtrlHeader_GetItemRectEx($hWnd, $iIndex) - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlHeader_GetItemRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemRectEx($hWnd, $iIndex) - Local $tRECT = DllStructCreate($tagRECT) - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - _SendMessage($hWnd, $HDM_GETITEMRECT, $iIndex, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _MemWrite($tMemMap, $tRECT) - _SendMessage($hWnd, $HDM_GETITEMRECT, $iIndex, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Return $tRECT -EndFunc ;==>_GUICtrlHeader_GetItemRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemText($hWnd, $iIndex) - Local $bUnicode = _GUICtrlHeader_GetUnicodeFormat($hWnd) - - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[4096]") - Else - $tBuffer = DllStructCreate("char Text[4096]") - EndIf - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_TEXT) - DllStructSetData($tItem, "TextMax", 4096) - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - DllStructSetData($tItem, "Text", DllStructGetPtr($tBuffer)) - _SendMessage($hWnd, $HDM_GETITEMW, $iIndex, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + DllStructGetSize($tBuffer), $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - If $bUnicode Then - _SendMessage($hWnd, $HDM_GETITEMW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $HDM_GETITEMA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pText, $tBuffer, DllStructGetSize($tBuffer)) - _MemFree($tMemMap) - EndIf - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>_GUICtrlHeader_GetItemText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetItemWidth($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_WIDTH) - _GUICtrlHeader_GetItem($hWnd, $iIndex, $tItem) - Return DllStructGetData($tItem, "XY") -EndFunc ;==>_GUICtrlHeader_GetItemWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetOrderArray($hWnd) - Local $iItems = _GUICtrlHeader_GetItemCount($hWnd) - Local $tBuffer = DllStructCreate("int[" & $iItems & "]") - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - _SendMessage($hWnd, $HDM_GETORDERARRAY, $iItems, $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _SendMessage($hWnd, $HDM_GETORDERARRAY, $iItems, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - - Local $aBuffer[$iItems + 1] - $aBuffer[0] = $iItems - For $iI = 1 To $iItems - $aBuffer[$iI] = DllStructGetData($tBuffer, 1, $iI) - Next - Return $aBuffer -EndFunc ;==>_GUICtrlHeader_GetOrderArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_GetUnicodeFormat($hWnd) - Return _SendMessage($hWnd, $HDM_GETUNICODEFORMAT) <> 0 -EndFunc ;==>_GUICtrlHeader_GetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_HitTest($hWnd, $iX, $iY) - Local $tTest = DllStructCreate($tagHDHITTESTINFO) - DllStructSetData($tTest, "X", $iX) - DllStructSetData($tTest, "Y", $iY) - Local $aTest[11] - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - $aTest[0] = _SendMessage($hWnd, $HDM_HITTEST, 0, $tTest, 0, "wparam", "struct*") - Else - Local $iTest = DllStructGetSize($tTest) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iTest, $tMemMap) - _MemWrite($tMemMap, $tTest) - $aTest[0] = _SendMessage($hWnd, $HDM_HITTEST, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tTest, $iTest) - _MemFree($tMemMap) - EndIf - Local $iFlags = DllStructGetData($tTest, "Flags") - $aTest[1] = BitAND($iFlags, $HHT_NOWHERE) <> 0 - $aTest[2] = BitAND($iFlags, $HHT_ONHEADER) <> 0 - $aTest[3] = BitAND($iFlags, $HHT_ONDIVIDER) <> 0 - $aTest[4] = BitAND($iFlags, $HHT_ONDIVOPEN) <> 0 - $aTest[5] = BitAND($iFlags, $HHT_ONFILTER) <> 0 - $aTest[6] = BitAND($iFlags, $HHT_ONFILTERBUTTON) <> 0 - $aTest[7] = BitAND($iFlags, $HHT_ABOVE) <> 0 - $aTest[8] = BitAND($iFlags, $HHT_BELOW) <> 0 - $aTest[9] = BitAND($iFlags, $HHT_TORIGHT) <> 0 - $aTest[10] = BitAND($iFlags, $HHT_TOLEFT) <> 0 - Return $aTest -EndFunc ;==>_GUICtrlHeader_HitTest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_InsertItem($hWnd, $iIndex, $sText, $iWidth = 50, $iAlign = 0, $iImage = -1, $bOnRight = False) - Local $aAlign[3] = [$HDF_LEFT, $HDF_RIGHT, $HDF_CENTER] - Local $bUnicode = _GUICtrlHeader_GetUnicodeFormat($hWnd) - - Local $pBuffer, $iBuffer - If $sText <> -1 Then - $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sText) - $pBuffer = DllStructGetPtr($tBuffer) - Else - $iBuffer = 0 - $pBuffer = -1 ; LPSTR_TEXTCALLBACK - EndIf - Local $tItem = DllStructCreate($tagHDITEM) - Local $iFmt = $aAlign[$iAlign] - Local $iMask = BitOR($HDI_WIDTH, $HDI_FORMAT) - If $sText <> "" Then - $iMask = BitOR($iMask, $HDI_TEXT) - $iFmt = BitOR($iFmt, $HDF_STRING) - EndIf - If $iImage <> -1 Then - $iMask = BitOR($iMask, $HDI_IMAGE) - $iFmt = BitOR($iFmt, $HDF_IMAGE) - EndIf - If $bOnRight Then $iFmt = BitOR($iFmt, $HDF_BITMAP_ON_RIGHT) - DllStructSetData($tItem, "Mask", $iMask) - DllStructSetData($tItem, "XY", $iWidth) - DllStructSetData($tItem, "Fmt", $iFmt) - DllStructSetData($tItem, "Image", $iImage) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - DllStructSetData($tItem, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $HDM_INSERTITEMW, $iIndex, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - If $sText <> -1 Then - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - Else - DllStructSetData($tItem, "Text", -1) ; LPSTR_TEXTCALLBACK - EndIf - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $HDM_INSERTITEMW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $HDM_INSERTITEMA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Return $iRet -EndFunc ;==>_GUICtrlHeader_InsertItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_Layout($hWnd, ByRef $tRECT) - Local $tLayout = DllStructCreate($tagHDLAYOUT) - Local $tWindowPos = DllStructCreate($tagWINDOWPOS) - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - DllStructSetData($tLayout, "Rect", DllStructGetPtr($tRECT)) - DllStructSetData($tLayout, "WindowPos", DllStructGetPtr($tWindowPos)) - _SendMessage($hWnd, $HDM_LAYOUT, 0, $tLayout, 0, "wparam", "struct*") - Else - Local $iLayout = DllStructGetSize($tLayout) - Local $iRect = DllStructGetSize($tRECT) - Local $iWindowPos = DllStructGetSize($tWindowPos) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iLayout + $iRect + $iWindowPos, $tMemMap) - DllStructSetData($tLayout, "Rect", $pMemory + $iLayout) - DllStructSetData($tLayout, "WindowPos", $pMemory + $iLayout + $iRect) - _MemWrite($tMemMap, $tLayout, $pMemory, $iLayout) - _MemWrite($tMemMap, $tRECT, $pMemory + $iLayout, $iRect) - _SendMessage($hWnd, $HDM_LAYOUT, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory + $iLayout + $iRect, $tWindowPos, $iWindowPos) - _MemFree($tMemMap) - EndIf - Return $tWindowPos -EndFunc ;==>_GUICtrlHeader_Layout - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_OrderToIndex($hWnd, $iOrder) - Return _SendMessage($hWnd, $HDM_ORDERTOINDEX, $iOrder) -EndFunc ;==>_GUICtrlHeader_OrderToIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetBitmapMargin($hWnd, $iWidth) - Return _SendMessage($hWnd, $HDM_SETBITMAPMARGIN, $iWidth) -EndFunc ;==>_GUICtrlHeader_SetBitmapMargin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetFilterChangeTimeout($hWnd, $iTimeOut) - Return _SendMessage($hWnd, $HDM_SETFILTERCHANGETIMEOUT, 0, $iTimeOut) -EndFunc ;==>_GUICtrlHeader_SetFilterChangeTimeout - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetHotDivider($hWnd, $iFlag, $iInputValue) - Return _SendMessage($hWnd, $HDM_SETHOTDIVIDER, $iFlag, $iInputValue) -EndFunc ;==>_GUICtrlHeader_SetHotDivider - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetImageList($hWnd, $hImage) - Return _SendMessage($hWnd, $HDM_SETIMAGELIST, 0, $hImage, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlHeader_SetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetItem($hWnd, $iIndex, ByRef $tItem) - Local $bUnicode = _GUICtrlHeader_GetUnicodeFormat($hWnd) - - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - $iRet = _SendMessage($hWnd, $HDM_SETITEMW, $iIndex, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem, $tMemMap) - _MemWrite($tMemMap, $tItem) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $HDM_SETITEMW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $HDM_SETITEMA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlHeader_SetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemAlign($hWnd, $iIndex, $iAlign) - Local $aAlign[3] = [$HDF_LEFT, $HDF_RIGHT, $HDF_CENTER] - - Local $iFormat = _GUICtrlHeader_GetItemFormat($hWnd, $iIndex) - $iFormat = BitAND($iFormat, BitNOT($HDF_JUSTIFYMASK)) - $iFormat = BitOR($iFormat, $aAlign[$iAlign]) - Return _GUICtrlHeader_SetItemFormat($hWnd, $iIndex, $iFormat) -EndFunc ;==>_GUICtrlHeader_SetItemAlign - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemBitmap($hWnd, $iIndex, $hBitmap) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", BitOR($HDI_FORMAT, $HDI_BITMAP)) - DllStructSetData($tItem, "Fmt", $HDF_BITMAP) - DllStructSetData($tItem, "hBMP", $hBitmap) - Return _GUICtrlHeader_SetItem($hWnd, $iIndex, $tItem) -EndFunc ;==>_GUICtrlHeader_SetItemBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemDisplay($hWnd, $iIndex, $iDisplay) - Local $iFormat = BitAND(_GUICtrlHeader_GetItemFormat($hWnd, $iIndex), Not $HDF_DISPLAYMASK) - If BitAND($iDisplay, 1) <> 0 Then $iFormat = BitOR($iFormat, $HDF_BITMAP) - If BitAND($iDisplay, 2) <> 0 Then $iFormat = BitOR($iFormat, $HDF_BITMAP_ON_RIGHT) - If BitAND($iDisplay, 4) <> 0 Then $iFormat = BitOR($iFormat, $HDF_OWNERDRAW) - If BitAND($iDisplay, 8) <> 0 Then $iFormat = BitOR($iFormat, $HDF_STRING) - Return _GUICtrlHeader_SetItemFormat($hWnd, $iIndex, $iFormat) -EndFunc ;==>_GUICtrlHeader_SetItemDisplay - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemFlags($hWnd, $iIndex, $iFlags) - Local $iFormat = _GUICtrlHeader_GetItemFormat($hWnd, $iIndex) - $iFormat = BitAND($iFormat, BitNOT($HDF_FLAGMASK)) - If BitAND($iFlags, 1) <> 0 Then $iFormat = BitOR($iFormat, $HDF_IMAGE) - If BitAND($iFlags, 2) <> 0 Then $iFormat = BitOR($iFormat, $HDF_RTLREADING) - If BitAND($iFlags, 4) <> 0 Then $iFormat = BitOR($iFormat, $HDF_SORTDOWN) - If BitAND($iFlags, 8) <> 0 Then $iFormat = BitOR($iFormat, $HDF_SORTUP) - Return _GUICtrlHeader_SetItemFormat($hWnd, $iIndex, $iFormat) -EndFunc ;==>_GUICtrlHeader_SetItemFlags - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemFormat($hWnd, $iIndex, $iFormat) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_FORMAT) - DllStructSetData($tItem, "Fmt", $iFormat) - Return _GUICtrlHeader_SetItem($hWnd, $iIndex, $tItem) -EndFunc ;==>_GUICtrlHeader_SetItemFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemImage($hWnd, $iIndex, $iImage) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_IMAGE) - DllStructSetData($tItem, "Image", $iImage) - Return _GUICtrlHeader_SetItem($hWnd, $iIndex, $tItem) -EndFunc ;==>_GUICtrlHeader_SetItemImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemOrder($hWnd, $iIndex, $iOrder) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_ORDER) - DllStructSetData($tItem, "Order", $iOrder) - Return _GUICtrlHeader_SetItem($hWnd, $iIndex, $tItem) -EndFunc ;==>_GUICtrlHeader_SetItemOrder - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemParam($hWnd, $iIndex, $iParam) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_PARAM) - DllStructSetData($tItem, "Param", $iParam) - Return _GUICtrlHeader_SetItem($hWnd, $iIndex, $tItem) -EndFunc ;==>_GUICtrlHeader_SetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemText($hWnd, $iIndex, $sText) - Local $bUnicode = _GUICtrlHeader_GetUnicodeFormat($hWnd) - - Local $iBuffer, $pBuffer - If $sText <> -1 Then - $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sText) - $pBuffer = DllStructGetPtr($tBuffer) - Else - $iBuffer = 0 - $pBuffer = -1 ; LPSTR_TEXTCALLBACK - EndIf - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_TEXT) - DllStructSetData($tItem, "TextMax", $iBuffer) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - DllStructSetData($tItem, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $HDM_SETITEMW, $iIndex, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - If $sText <> -1 Then - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - Else - DllStructSetData($tItem, "Text", -1) ; LPSTR_TEXTCALLBACK - EndIf - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $HDM_SETITEMW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $HDM_SETITEMA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlHeader_SetItemText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetItemWidth($hWnd, $iIndex, $iWidth) - Local $tItem = DllStructCreate($tagHDITEM) - DllStructSetData($tItem, "Mask", $HDI_WIDTH) - DllStructSetData($tItem, "XY", $iWidth) - Return _GUICtrlHeader_SetItem($hWnd, $iIndex, $tItem) -EndFunc ;==>_GUICtrlHeader_SetItemWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetOrderArray($hWnd, ByRef $aOrder) - Local $tBuffer = DllStructCreate("int[" & $aOrder[0] & "]") - For $iI = 1 To $aOrder[0] - DllStructSetData($tBuffer, 1, $aOrder[$iI], $iI) - Next - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hHDRLastWnd) Then - $iRet = _SendMessage($hWnd, $HDM_SETORDERARRAY, $aOrder[0], $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tBuffer) - $iRet = _SendMessage($hWnd, $HDM_SETORDERARRAY, $aOrder[0], $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlHeader_SetOrderArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlHeader_SetUnicodeFormat($hWnd, $bUnicode) - Return _SendMessage($hWnd, $HDM_SETUNICODEFORMAT, $bUnicode) -EndFunc ;==>_GUICtrlHeader_SetUnicodeFormat diff --git a/build/Include/GuiIPAddress.au3 b/build/Include/GuiIPAddress.au3 deleted file mode 100644 index d20b90833..000000000 --- a/build/Include/GuiIPAddress.au3 +++ /dev/null @@ -1,249 +0,0 @@ -#include-once - -#include "IPAddressConstants.au3" -#include "Memory.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: IPAddress -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with IPAddress control management. -; Author(s) .....: Gary Frost (gafrost) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hIPLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__IPADDRESSCONSTANT_ClassName = "SysIPAddress32" -Global Const $__IPADDRESSCONSTANT_DEFAULT_GUI_FONT = 17 -Global Const $__IPADDRESSCONSTANT_LOGPIXELSX = 88 -Global Const $__IPADDRESSCONSTANT_PROOF_QUALITY = 2 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlIpAddress_Create -; _GUICtrlIpAddress_ClearAddress -; _GUICtrlIpAddress_Destroy -; _GUICtrlIpAddress_Get -; _GUICtrlIpAddress_GetArray -; _GUICtrlIpAddress_GetEx -; _GUICtrlIpAddress_IsBlank -; _GUICtrlIpAddress_Set -; _GUICtrlIpAddress_SetArray -; _GUICtrlIpAddress_SetEx -; _GUICtrlIpAddress_SetFocus -; _GUICtrlIpAddress_SetFont -; _GUICtrlIpAddress_SetRange -; _GUICtrlIpAddress_ShowHide -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_Create($hWnd, $iX, $iY, $iWidth = 125, $iHeight = 25, $iStyles = 0x00000000, $iExstyles = 0x00000000) - If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0) ; Invalid Window handle for _GUICtrlIpAddress_Create 1st parameter - - If $iStyles = -1 Then $iStyles = 0x00000000 - If $iExstyles = -1 Then $iExstyles = 0x00000000 - - Local $iStyle = BitOR($__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE, $__UDFGUICONSTANT_WS_TABSTOP, $iStyles) - - Local Const $ICC_INTERNET_CLASSES = 0x0800 - Local $tICCE = DllStructCreate('dword dwSize;dword dwICC') - DllStructSetData($tICCE, "dwSize", DllStructGetSize($tICCE)) - DllStructSetData($tICCE, "dwICC", $ICC_INTERNET_CLASSES) - DllCall('comctl32.dll', 'bool', 'InitCommonControlsEx', 'struct*', $tICCE) - If @error Then Return SetError(@error, @extended, 0) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hIPAddress = _WinAPI_CreateWindowEx($iExstyles, $__IPADDRESSCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _WinAPI_SetFont($hIPAddress, _WinAPI_GetStockObject($__IPADDRESSCONSTANT_DEFAULT_GUI_FONT)) - - Return $hIPAddress -EndFunc ;==>_GUICtrlIpAddress_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_ClearAddress($hWnd) - _SendMessage($hWnd, $IPM_CLEARADDRESS) -EndFunc ;==>_GUICtrlIpAddress_ClearAddress - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_Destroy($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__IPADDRESSCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If _WinAPI_InProcess($hWnd, $__g_hIPLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Delete Other Applications IPAddress Control(s) - Return SetError(1, 1, False) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlIpAddress_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_Get($hWnd) - Local $tIP = _GUICtrlIpAddress_GetEx($hWnd) - - If @error Then Return SetError(2, 2, "") - Return StringFormat("%d.%d.%d.%d", DllStructGetData($tIP, "Field1"), _ - DllStructGetData($tIP, "Field2"), _ - DllStructGetData($tIP, "Field3"), _ - DllStructGetData($tIP, "Field4")) -EndFunc ;==>_GUICtrlIpAddress_Get - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_GetArray($hWnd) - Local $tIP = _GUICtrlIpAddress_GetEx($hWnd) - Local $aIP[4] - $aIP[0] = DllStructGetData($tIP, "Field1") - $aIP[1] = DllStructGetData($tIP, "Field2") - $aIP[2] = DllStructGetData($tIP, "Field3") - $aIP[3] = DllStructGetData($tIP, "Field4") - Return $aIP -EndFunc ;==>_GUICtrlIpAddress_GetArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_GetEx($hWnd) - Local $tIP = DllStructCreate($tagGETIPAddress) - If @error Then Return SetError(1, 1, "") - If _WinAPI_InProcess($hWnd, $__g_hIPLastWnd) Then - _SendMessage($hWnd, $IPM_GETADDRESS, 0, $tIP, 0, "wparam", "struct*") - Else - Local $iIP = DllStructGetSize($tIP) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iIP, $tMemMap) - _SendMessage($hWnd, $IPM_GETADDRESS, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tIP, $iIP) - _MemFree($tMemMap) - EndIf - Return $tIP -EndFunc ;==>_GUICtrlIpAddress_GetEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_IsBlank($hWnd) - Return _SendMessage($hWnd, $IPM_ISBLANK) <> 0 -EndFunc ;==>_GUICtrlIpAddress_IsBlank - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_Set($hWnd, $sAddress) - Local $aAddress = StringSplit($sAddress, ".") - If $aAddress[0] = 4 Then - Local $tIP = DllStructCreate($tagGETIPAddress) - For $x = 1 To 4 - DllStructSetData($tIP, "Field" & $x, $aAddress[$x]) - Next - _GUICtrlIpAddress_SetEx($hWnd, $tIP) - EndIf -EndFunc ;==>_GUICtrlIpAddress_Set - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_SetArray($hWnd, $aAddress) - If UBound($aAddress) = 4 Then - Local $tIP = DllStructCreate($tagGETIPAddress) - For $x = 0 To 3 - DllStructSetData($tIP, "Field" & $x + 1, $aAddress[$x]) - Next - _GUICtrlIpAddress_SetEx($hWnd, $tIP) - EndIf -EndFunc ;==>_GUICtrlIpAddress_SetArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_SetEx($hWnd, $tIP) - _SendMessage($hWnd, $IPM_SETADDRESS, 0, _ - _WinAPI_MakeLong(BitOR(DllStructGetData($tIP, "Field4"), 0x100 * DllStructGetData($tIP, "Field3")), _ - BitOR(DllStructGetData($tIP, "Field2"), 0x100 * DllStructGetData($tIP, "Field1")))) -EndFunc ;==>_GUICtrlIpAddress_SetEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_SetFocus($hWnd, $iIndex) - _SendMessage($hWnd, $IPM_SETFOCUS, $iIndex) -EndFunc ;==>_GUICtrlIpAddress_SetFocus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_SetFont($hWnd, $sFaceName = "Arial", $iFontSize = 12, $iFontWeight = 400, $bFontItalic = False) - Local $hDC = _WinAPI_GetDC(0) - Local $iHeight = Round(($iFontSize * _WinAPI_GetDeviceCaps($hDC, $__IPADDRESSCONSTANT_LOGPIXELSX)) / 72, 0) - _WinAPI_ReleaseDC(0, $hDC) - - Local $tFont = DllStructCreate($tagLOGFONT) - DllStructSetData($tFont, "Height", $iHeight) - DllStructSetData($tFont, "Weight", $iFontWeight) - DllStructSetData($tFont, "Italic", $bFontItalic) - DllStructSetData($tFont, "Underline", False) ; font underline - DllStructSetData($tFont, "Strikeout", False) ; font strikethru - DllStructSetData($tFont, "Quality", $__IPADDRESSCONSTANT_PROOF_QUALITY) - DllStructSetData($tFont, "FaceName", $sFaceName) - - Local $hFont = _WinAPI_CreateFontIndirect($tFont) - _WinAPI_SetFont($hWnd, $hFont) -EndFunc ;==>_GUICtrlIpAddress_SetFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_SetRange($hWnd, $iIndex, $iLowRange = 0, $iHighRange = 255) - If ($iLowRange < 0 Or $iLowRange > $iHighRange) Or $iHighRange > 255 Or ($iIndex < 0 Or $iIndex > 3) Then Return SetError(-1, -1, False) - - Return _SendMessage($hWnd, $IPM_SETRANGE, $iIndex, BitOR($iLowRange, 0x100 * $iHighRange)) <> 0 -EndFunc ;==>_GUICtrlIpAddress_SetRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlIpAddress_ShowHide($hWnd, $iState) - If $iState <> @SW_HIDE And $iState <> @SW_SHOW Then Return SetError(1, 1, 0) - Return _WinAPI_ShowWindow($hWnd, $iState) <> 0 -EndFunc ;==>_GUICtrlIpAddress_ShowHide diff --git a/build/Include/GuiImageList.au3 b/build/Include/GuiImageList.au3 deleted file mode 100644 index ad9645674..000000000 --- a/build/Include/GuiImageList.au3 +++ /dev/null @@ -1,544 +0,0 @@ -#include-once - -#include "ColorConstants.au3" -#include "ImageListConstants.au3" -#include "StructureConstants.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: ImageList -; AutoIt Version : 3.3.14.2 -; Description ...: Functions that assist with ImageList control management. -; An image list is a collection of images of the same size, each of which can be referred to by its index. Image -; lists are used to efficiently manage large sets of icons or bitmaps. All images in an image list are contained -; in a single, wide bitmap in screen device format. An image list can also include a monochrome bitmap that -; contains masks used to draw images transparently (icon style). -; Author(s)......: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__IMAGELISTCONSTANT_IMAGE_BITMAP = 0 -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not documented at this time -; -; _GUIImageList_DragShowNolock -; _GUIImageList_Merge -; _GUIImageList_Replace -; _GUIImageList_SetDragCursorImage -; _GUIImageList_SetOverlayImage -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUIImageList_Add -; _GUIImageList_AddMasked -; _GUIImageList_AddBitmap -; _GUIImageList_AddIcon -; _GUIImageList_BeginDrag -; _GUIImageList_Copy -; _GUIImageList_Create -; _GUIImageList_Destroy -; _GUIImageList_DestroyIcon -; _GUIImageList_DragEnter -; _GUIImageList_DragLeave -; _GUIImageList_DragMove -; _GUIImageList_Draw -; _GUIImageList_DrawEx -; _GUIImageList_Duplicate -; _GUIImageList_EndDrag -; _GUIImageList_GetBkColor -; _GUIImageList_GetIcon -; _GUIImageList_GetIconHeight -; _GUIImageList_GetIconSize -; _GUIImageList_GetIconSizeEx -; _GUIImageList_GetIconWidth -; _GUIImageList_GetImageCount -; _GUIImageList_GetImageInfoEx -; _GUIImageList_Remove -; _GUIImageList_ReplaceIcon -; _GUIImageList_SetBkColor -; _GUIImageList_SetIconSize -; _GUIImageList_SetImageCount -; _GUIImageList_Swap -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_Add($hWnd, $hImage, $hMask = 0) - Local $aResult = DllCall("comctl32.dll", "int", "ImageList_Add", "handle", $hWnd, "handle", $hImage, "handle", $hMask) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_GUIImageList_Add - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_AddMasked($hWnd, $hImage, $iMask = 0) - Local $aResult = DllCall("comctl32.dll", "int", "ImageList_AddMasked", "handle", $hWnd, "handle", $hImage, "dword", $iMask) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_GUIImageList_AddMasked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_AddBitmap($hWnd, $sImage, $sMask = "") - Local $aSize = _GUIImageList_GetIconSize($hWnd) - Local $hImage = _WinAPI_LoadImage(0, $sImage, $__IMAGELISTCONSTANT_IMAGE_BITMAP, $aSize[0], $aSize[1], $LR_LOADFROMFILE) - If $hImage = 0 Then Return SetError(_WinAPI_GetLastError(), 1, -1) - Local $hMask = 0 - If $sMask <> "" Then - $hMask = _WinAPI_LoadImage(0, $sMask, $__IMAGELISTCONSTANT_IMAGE_BITMAP, $aSize[0], $aSize[1], $LR_LOADFROMFILE) - If $hMask = 0 Then Return SetError(_WinAPI_GetLastError(), 2, -1) - EndIf - - Local $iRet = _GUIImageList_Add($hWnd, $hImage, $hMask) - _WinAPI_DeleteObject($hImage) - If $hMask <> 0 Then _WinAPI_DeleteObject($hMask) - Return $iRet -EndFunc ;==>_GUIImageList_AddBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_AddIcon($hWnd, $sFilePath, $iIndex = 0, $bLarge = False) - Local $iRet, $tIcon = DllStructCreate("handle Handle") - If $bLarge Then - $iRet = _WinAPI_ExtractIconEx($sFilePath, $iIndex, $tIcon, 0, 1) - Else - $iRet = _WinAPI_ExtractIconEx($sFilePath, $iIndex, 0, $tIcon, 1) - EndIf - If $iRet <= 0 Then Return SetError(-1, $iRet, -1) - - Local $hIcon = DllStructGetData($tIcon, "Handle") - $iRet = _GUIImageList_ReplaceIcon($hWnd, -1, $hIcon) - _WinAPI_DestroyIcon($hIcon) - If $iRet = -1 Then Return SetError(-2, $iRet, -1) - Return $iRet -EndFunc ;==>_GUIImageList_AddIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_BeginDrag($hWnd, $iTrack, $iXHotSpot, $iYHotSpot) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_BeginDrag", "handle", $hWnd, "int", $iTrack, "int", $iXHotSpot, "int", $iYHotSpot) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_BeginDrag - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_Copy($hWnd, $iSource, $iDestination) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_Copy", "handle", $hWnd, "int", $iDestination, "handle", $hWnd, "int", $iSource, "uint", $ILCF_MOVE) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_Copy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_Create($iCX = 16, $iCY = 16, $iColor = 4, $iOptions = 0, $iInitial = 4, $iGrow = 4) - Local Const $aColor[7] = [$ILC_COLOR, $ILC_COLOR4, $ILC_COLOR8, $ILC_COLOR16, $ILC_COLOR24, $ILC_COLOR32, $ILC_COLORDDB] - Local $iFlags = 0 - - If BitAND($iOptions, 1) <> 0 Then $iFlags = BitOR($iFlags, $ILC_MASK) - If BitAND($iOptions, 2) <> 0 Then $iFlags = BitOR($iFlags, $ILC_MIRROR) - If BitAND($iOptions, 4) <> 0 Then $iFlags = BitOR($iFlags, $ILC_PERITEMMIRROR) - $iFlags = BitOR($iFlags, $aColor[$iColor]) - Local $aResult = DllCall("comctl32.dll", "handle", "ImageList_Create", "int", $iCX, "int", $iCY, "uint", $iFlags, "int", $iInitial, "int", $iGrow) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUIImageList_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_Destroy($hWnd) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_Destroy", "handle", $hWnd) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_DestroyIcon($hIcon) - Return _WinAPI_DestroyIcon($hIcon) -EndFunc ;==>_GUIImageList_DestroyIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_DragEnter($hWnd, $iX, $iY) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_DragEnter", "hwnd", $hWnd, "int", $iX, "int", $iY) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_DragEnter - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_DragLeave($hWnd) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_DragLeave", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_DragLeave - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_DragMove($iX, $iY) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_DragMove", "int", $iX, "int", $iY) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_DragMove - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUIImageList_DragShowNolock -; Description ...: Shows or hides the image being dragged -; Syntax.........: _GUIImageList_DragShowNolock ( $bShow ) -; Parameters ....: $bShow - Show or hide the image being dragged -; | True - Show -; |False - Hide -; Return values .: Success - True -; Failure - False -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUIImageList_DragShowNolock($bShow) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_DragShowNolock", "bool", $bShow) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_DragShowNolock - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_Draw($hWnd, $iIndex, $hDC, $iX, $iY, $iStyle = 0) - Local $iFlags = 0 - - If BitAND($iStyle, 1) <> 0 Then $iFlags = BitOR($iFlags, $ILD_TRANSPARENT) - If BitAND($iStyle, 2) <> 0 Then $iFlags = BitOR($iFlags, $ILD_BLEND25) - If BitAND($iStyle, 4) <> 0 Then $iFlags = BitOR($iFlags, $ILD_BLEND50) - If BitAND($iStyle, 8) <> 0 Then $iFlags = BitOR($iFlags, $ILD_MASK) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_Draw", "handle", $hWnd, "int", $iIndex, "handle", $hDC, "int", $iX, "int", $iY, "uint", $iFlags) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_Draw - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_DrawEx($hWnd, $iIndex, $hDC, $iX, $iY, $iDX = 0, $iDY = 0, $iRGBBk = 0xFFFFFFFF, $iRGBFg = 0xFFFFFFFF, $iStyle = 0) - If $iDX = -1 Then $iDX = 0 - If $iDY = -1 Then $iDY = 0 - If $iRGBBk = -1 Then $iRGBBk = 0xFFFFFFFF - If $iRGBFg = -1 Then $iRGBFg = 0xFFFFFFFF - Local $iFlags = 0 - If BitAND($iStyle, 1) <> 0 Then $iFlags = BitOR($iFlags, $ILD_TRANSPARENT) - If BitAND($iStyle, 2) <> 0 Then $iFlags = BitOR($iFlags, $ILD_BLEND25) - If BitAND($iStyle, 4) <> 0 Then $iFlags = BitOR($iFlags, $ILD_BLEND50) - If BitAND($iStyle, 8) <> 0 Then $iFlags = BitOR($iFlags, $ILD_MASK) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_DrawEx", "handle", $hWnd, "int", $iIndex, "handle", $hDC, "int", $iX, "int", $iY, _ - "int", $iDX, "int", $iDY, "dword", $iRGBBk, "dword", $iRGBFg, "uint", $iFlags) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_DrawEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_Duplicate($hWnd) - Local $aResult = DllCall("comctl32.dll", "handle", "ImageList_Duplicate", "handle", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUIImageList_Duplicate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_EndDrag() - DllCall("comctl32.dll", "none", "ImageList_EndDrag") - If @error Then Return SetError(@error, @extended) -EndFunc ;==>_GUIImageList_EndDrag - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_GetBkColor($hWnd) - Local $aResult = DllCall("comctl32.dll", "dword", "ImageList_GetBkColor", "handle", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUIImageList_GetBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_GetIcon($hWnd, $iIndex, $iStyle = 0) - Local $iFlags = 0 - - If BitAND($iStyle, 1) <> 0 Then $iFlags = BitOR($iFlags, $ILD_TRANSPARENT) - If BitAND($iStyle, 2) <> 0 Then $iFlags = BitOR($iFlags, $ILD_BLEND25) - If BitAND($iStyle, 4) <> 0 Then $iFlags = BitOR($iFlags, $ILD_BLEND50) - If BitAND($iStyle, 8) <> 0 Then $iFlags = BitOR($iFlags, $ILD_MASK) - - Local $aResult = DllCall("comctl32.dll", "handle", "ImageList_GetIcon", "handle", $hWnd, "int", $iIndex, "uint", $iFlags) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUIImageList_GetIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_GetIconHeight($hWnd) - Local $aSize = _GUIImageList_GetIconSize($hWnd) - Return $aSize[1] -EndFunc ;==>_GUIImageList_GetIconHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_GetIconSize($hWnd) - Local $aSize[2] - - Local $tPoint = _GUIImageList_GetIconSizeEx($hWnd) - $aSize[0] = DllStructGetData($tPoint, "X") - $aSize[1] = DllStructGetData($tPoint, "Y") - Return $aSize -EndFunc ;==>_GUIImageList_GetIconSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_GetIconSizeEx($hWnd) - Local $tPoint = DllStructCreate($tagPOINT) - Local $pPointX = DllStructGetPtr($tPoint, "X") - Local $pPointY = DllStructGetPtr($tPoint, "Y") - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_GetIconSize", "hwnd", $hWnd, "struct*", $pPointX, "struct*", $pPointY) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tPoint) -EndFunc ;==>_GUIImageList_GetIconSizeEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_GetIconWidth($hWnd) - Local $aSize = _GUIImageList_GetIconSize($hWnd) - Return $aSize[0] -EndFunc ;==>_GUIImageList_GetIconWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_GetImageCount($hWnd) - Local $aResult = DllCall("comctl32.dll", "int", "ImageList_GetImageCount", "handle", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUIImageList_GetImageCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_GetImageInfoEx($hWnd, $iIndex) - Local $tImage = DllStructCreate($tagIMAGEINFO) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_GetImageInfo", "handle", $hWnd, "int", $iIndex, "struct*", $tImage) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tImage) -EndFunc ;==>_GUIImageList_GetImageInfoEx - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUIImageList_Merge -; Description ...: Creates a new image by combining two existing images -; Syntax.........: _GUIImageList_Merge ( $hWnd1, $iIndex1, $hWnd2, $iIndex2, $iDX, $IDY ) -; Parameters ....: $hWnd1 - Handle to the 1st image control -; $iIndex1 - Zero based of the first existing image -; $hWnd2 - Handle to the 2nd image control -; $iIndex2 - Zero based of the second existing image -; $iDX - The x-offset of the second image relative to the first image -; $iDY - The y-offset of the second image relative to the first image -; Return values .: Success - The handle to the new image list -; Failure - 0 -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: The new image consists of the second existing image drawn transparently over the first. -; The mask for the new image is the result of performing a logical OR operation on the masks -; of the two existing images. -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUIImageList_Merge($hWnd1, $iIndex1, $hWnd2, $iIndex2, $iDX, $iDY) - Local $aResult = DllCall("comctl32.dll", "handle", "ImageList_Merge", "handle", $hWnd1, "int", $iIndex1, _ - "handle", $hWnd2, "int", $iIndex2, "int", $iDX, "int", $iDY) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUIImageList_Merge - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_Remove($hWnd, $iIndex = -1) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_Remove", "handle", $hWnd, "int", $iIndex) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_Remove - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUIImageList_Replace -; Description ...: Replaces an image with an icon or cursor -; Syntax.........: _GUIImageList_ReplaceIcon ( $hWnd, $iIndex, $hIcon ) -; Parameters ....: $hWnd - Handle to the control -; $iIndex - Index of the image to replace. -; $hImage - Handle to the bitmap that contains the image -; $hMask - A handle to the bitmap that contains the mask. -; +If no mask is used with the image list, this parameter is ignored -; Return values .: Success - True -; Failure - False -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: The _GUIImageList_Replace function copies the bitmap to an internal data structure. -; Be sure to use the _WinAPI_DeleteObject function to delete $hImage and $hMask after the function returns. -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUIImageList_Replace($hWnd, $iIndex, $hImage, $hMask = 0) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_Replace", "handle", $hWnd, "int", $iIndex, "handle", $hImage, "handle", $hMask) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_Replace - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (GaryFrost) changed return type from hwnd to int -; =============================================================================================================================== -Func _GUIImageList_ReplaceIcon($hWnd, $iIndex, $hIcon) - Local $aResult = DllCall("comctl32.dll", "int", "ImageList_ReplaceIcon", "handle", $hWnd, "int", $iIndex, "handle", $hIcon) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_GUIImageList_ReplaceIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_SetBkColor($hWnd, $iClrBk) - Local $aResult = DllCall("comctl32.dll", "dword", "ImageList_SetBkColor", "handle", $hWnd, "dword", $iClrBk) - If @error Then Return SetError(@error, @extended, $CLR_NONE) - Return $aResult[0] -EndFunc ;==>_GUIImageList_SetBkColor - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUIImageList_SetDragCursorImage -; Description ...: Creates a new drag image -; Syntax.........: _GUIImageList_SetDragCursorImage ( $hWnd, $iDrag, $iDXHotSpot, $iDYHotSpot ) -; Parameters ....: $hWnd - A handle to the image list that contains the new image to combine with the drag image -; $iDrag - The index of the new image to combine with the drag image -; $iDXHotSpot - The x-position of the hot spot within the new image -; $iDYHotSpot - The y-position of the hot spot within the new image -; Return values .: Success - True -; Failure - False -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: Creates a new drag image by combining the specified image (typically a mouse cursor image) -; with the current drag image -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUIImageList_SetDragCursorImage($hWnd, $iDrag, $iDXHotSpot, $iDYHotSpot) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_SetDragCursorImage", "handle", $hWnd, "int", $iDrag, "int", $iDXHotSpot, "int", $iDYHotSpot) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_SetDragCursorImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_SetIconSize($hWnd, $iCX, $iCY) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_SetIconSize", "handle", $hWnd, "int", $iCX, "int", $iCY) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_SetIconSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_SetImageCount($hWnd, $iNewCount) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_SetImageCount", "handle", $hWnd, "uint", $iNewCount) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_SetImageCount - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUIImageList_SetOverlayImage -; Description ...: Adds a specified image to the list of images to be used as overlay masks -; Syntax.........: _GUIImageList_SetOverlayImage ( $hWnd, $iImage, $iOverlay ) -; Parameters ....: $hWnd - Handle to the control -; $iImage - The zero-based index of an image in the himl image list -; +This index identifies the image to use as an overlay mask -; $iOverlay - The one-based index of the overlay mask -; Return values .: Success - True -; Failure - False -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: An image list can have up to four overlay masks in (comctl32.dll) version 4.70 and earlier -; and up to 15 in version 4.71. The function assigns an overlay mask index to the specified image. -; + -; An overlay mask is an image drawn transparently over another image. -; To draw an overlay mask over an image, call the _GUIImageList_Draw or _GUIImageList_DrawEx function. -; + -; A call to this method fails and returns $E_INVALIDARG unless the image list is created using a mask. -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUIImageList_SetOverlayImage($hWnd, $iImage, $iOverlay) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_SetOverlayImage", "handle", $hWnd, "int", $iImage, "int", $iOverlay) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_SetOverlayImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUIImageList_Swap($hWnd, $iSource, $iDestination) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_Copy", "handle", $hWnd, "int", $iDestination, "handle", $hWnd, "int", $iSource, "uint", $ILCF_SWAP) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>_GUIImageList_Swap diff --git a/build/Include/GuiListBox.au3 b/build/Include/GuiListBox.au3 deleted file mode 100644 index 48442853f..000000000 --- a/build/Include/GuiListBox.au3 +++ /dev/null @@ -1,921 +0,0 @@ -#include-once - -#include "DirConstants.au3" -#include "ListBoxConstants.au3" -#include "SendMessage.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: ListBox -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with ListBox control management. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hLBLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__LISTBOXCONSTANT_ClassName = "ListBox" -Global Const $__LISTBOXCONSTANT_ClassNames = $__LISTBOXCONSTANT_ClassName & "|TListbox" -Global Const $__LISTBOXCONSTANT_DEFAULT_GUI_FONT = 17 -Global Const $__LISTBOXCONSTANT_WM_SETREDRAW = 0x000B -Global Const $__LISTBOXCONSTANT_WM_GETFONT = 0x0031 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlListBox_AddFile -; _GUICtrlListBox_AddString -; _GUICtrlListBox_BeginUpdate -; _GUICtrlListBox_ClickItem -; _GUICtrlListBox_Create -; _GUICtrlListBox_DeleteString -; _GUICtrlListBox_Destroy -; _GUICtrlListBox_Dir -; _GUICtrlListBox_EndUpdate -; _GUICtrlListBox_FindString -; _GUICtrlListBox_FindInText -; _GUICtrlListBox_GetAnchorIndex -; _GUICtrlListBox_GetCaretIndex -; _GUICtrlListBox_GetCount -; _GUICtrlListBox_GetCurSel -; _GUICtrlListBox_GetHorizontalExtent -; _GUICtrlListBox_GetItemData -; _GUICtrlListBox_GetItemHeight -; _GUICtrlListBox_GetItemRect -; _GUICtrlListBox_GetItemRectEx -; _GUICtrlListBox_GetListBoxInfo -; _GUICtrlListBox_GetLocale -; _GUICtrlListBox_GetLocaleCountry -; _GUICtrlListBox_GetLocaleLang -; _GUICtrlListBox_GetLocalePrimLang -; _GUICtrlListBox_GetLocaleSubLang -; _GUICtrlListBox_GetSel -; _GUICtrlListBox_GetSelCount -; _GUICtrlListBox_GetSelItems -; _GUICtrlListBox_GetSelItemsText -; _GUICtrlListBox_GetText -; _GUICtrlListBox_GetTextLen -; _GUICtrlListBox_GetTopIndex -; _GUICtrlListBox_InitStorage -; _GUICtrlListBox_InsertString -; _GUICtrlListBox_ItemFromPoint -; _GUICtrlListBox_ReplaceString -; _GUICtrlListBox_ResetContent -; _GUICtrlListBox_SelectString -; _GUICtrlListBox_SelItemRange -; _GUICtrlListBox_SelItemRangeEx -; _GUICtrlListBox_SetAnchorIndex -; _GUICtrlListBox_SetCaretIndex -; _GUICtrlListBox_SetColumnWidth -; _GUICtrlListBox_SetCurSel -; _GUICtrlListBox_SetHorizontalExtent -; _GUICtrlListBox_SetItemData -; _GUICtrlListBox_SetItemHeight -; _GUICtrlListBox_SetLocale -; _GUICtrlListBox_SetSel -; _GUICtrlListBox_SetTabStops -; _GUICtrlListBox_SetTopIndex -; _GUICtrlListBox_Sort -; _GUICtrlListBox_SwapString -; _GUICtrlListBox_UpdateHScroll -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_AddFile($hWnd, $sFilePath) - If Not IsString($sFilePath) Then $sFilePath = String($sFilePath) - - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_ADDFILE, 0, $sFilePath, 0, "wparam", "wstr") - Else - Return GUICtrlSendMsg($hWnd, $LB_ADDFILE, 0, $sFilePath) - EndIf -EndFunc ;==>_GUICtrlListBox_AddFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_AddString($hWnd, $sText) - If Not IsString($sText) Then $sText = String($sText) - - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_ADDSTRING, 0, $sText, 0, "wparam", "wstr") - Else - Return GUICtrlSendMsg($hWnd, $LB_ADDSTRING, 0, $sText) - EndIf -EndFunc ;==>_GUICtrlListBox_AddString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_BeginUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__LISTBOXCONSTANT_WM_SETREDRAW, False) = 0 -EndFunc ;==>_GUICtrlListBox_BeginUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_ClickItem($hWnd, $iIndex, $sButton = "left", $bMove = False, $iClicks = 1, $iSpeed = 0) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tRECT = _GUICtrlListBox_GetItemRectEx($hWnd, $iIndex) - Local $tPoint = _WinAPI_PointFromRect($tRECT) - $tPoint = _WinAPI_ClientToScreen($hWnd, $tPoint) - Local $iX, $iY - _WinAPI_GetXYFromPoint($tPoint, $iX, $iY) - Local $iMode = Opt("MouseCoordMode", 1) - If Not $bMove Then - Local $aPos = MouseGetPos() - _WinAPI_ShowCursor(False) - MouseClick($sButton, $iX, $iY, $iClicks, $iSpeed) - MouseMove($aPos[0], $aPos[1], 0) - _WinAPI_ShowCursor(True) - Else - MouseClick($sButton, $iX, $iY, $iClicks, $iSpeed) - EndIf - Opt("MouseCoordMode", $iMode) -EndFunc ;==>_GUICtrlListBox_ClickItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlListBox_Create($hWnd, $sText, $iX, $iY, $iWidth = 100, $iHeight = 200, $iStyle = 0x00B00002, $iExStyle = 0x00000200) - If Not IsHWnd($hWnd) Then - ; Invalid Window handle for _GUICtrlListBox_Create 1st parameter - Return SetError(1, 0, 0) - EndIf - If Not IsString($sText) Then - ; 2nd parameter not a string for _GUICtrlListBox_Create - Return SetError(2, 0, 0) - EndIf - - If $iWidth = -1 Then $iWidth = 100 - If $iHeight = -1 Then $iHeight = 200 - Local Const $WS_VSCROLL = 0x00200000, $WS_HSCROLL = 0x00100000, $WS_BORDER = 0x00800000 - If $iStyle = -1 Then $iStyle = BitOR($WS_BORDER, $WS_VSCROLL, $WS_HSCROLL, $LBS_SORT) - If $iExStyle = -1 Then $iExStyle = 0x00000200 - - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_VISIBLE, $__UDFGUICONSTANT_WS_TABSTOP, $__UDFGUICONSTANT_WS_CHILD, $LBS_NOTIFY) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hList = _WinAPI_CreateWindowEx($iExStyle, $__LISTBOXCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _WinAPI_SetFont($hList, _WinAPI_GetStockObject($__LISTBOXCONSTANT_DEFAULT_GUI_FONT)) - If StringLen($sText) Then _GUICtrlListBox_AddString($hList, $sText) - Return $hList -EndFunc ;==>_GUICtrlListBox_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_DeleteString($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_DELETESTRING, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $LB_DELETESTRING, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_DeleteString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_Destroy(ByRef $hWnd) - ;If Not _WinAPI_IsClassName($hWnd, $__LISTBOXCONSTANT_ClassNames) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLBLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlListBox_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), CyberSlug -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_Dir($hWnd, $sFilePath, $iAttributes = 0, $bBrackets = True) - If Not IsString($sFilePath) Then $sFilePath = String($sFilePath) - - If BitAND($iAttributes, $DDL_DRIVES) = $DDL_DRIVES And Not $bBrackets Then - Local $sText - Local $hGui_no_brackets = GUICreate("no brackets") - Local $idList_no_brackets = GUICtrlCreateList("", 240, 40, 120, 120) - Local $iRet = GUICtrlSendMsg($idList_no_brackets, $LB_DIR, $iAttributes, $sFilePath) - For $i = 0 To _GUICtrlListBox_GetCount($idList_no_brackets) - 1 - $sText = _GUICtrlListBox_GetText($idList_no_brackets, $i) - $sText = StringReplace(StringReplace(StringReplace($sText, "[", ""), "]", ":"), "-", "") - _GUICtrlListBox_InsertString($hWnd, $sText) - Next - GUIDelete($hGui_no_brackets) - Return $iRet - Else - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_DIR, $iAttributes, $sFilePath, 0, "wparam", "wstr") - Else - Return GUICtrlSendMsg($hWnd, $LB_DIR, $iAttributes, $sFilePath) - EndIf - EndIf -EndFunc ;==>_GUICtrlListBox_Dir - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_EndUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__LISTBOXCONSTANT_WM_SETREDRAW, True) = 0 -EndFunc ;==>_GUICtrlListBox_EndUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_FindString($hWnd, $sText, $bExact = False) - If Not IsString($sText) Then $sText = String($sText) - - If IsHWnd($hWnd) Then - If ($bExact) Then - Return _SendMessage($hWnd, $LB_FINDSTRINGEXACT, -1, $sText, 0, "wparam", "wstr") - Else - Return _SendMessage($hWnd, $LB_FINDSTRING, -1, $sText, 0, "wparam", "wstr") - EndIf - Else - If ($bExact) Then - Return GUICtrlSendMsg($hWnd, $LB_FINDSTRINGEXACT, -1, $sText) - Else - Return GUICtrlSendMsg($hWnd, $LB_FINDSTRING, -1, $sText) - EndIf - EndIf -EndFunc ;==>_GUICtrlListBox_FindString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_FindInText($hWnd, $sText, $iStart = -1, $bWrapOK = True) - Local $sList - - Local $iCount = _GUICtrlListBox_GetCount($hWnd) - For $iI = $iStart + 1 To $iCount - 1 - $sList = _GUICtrlListBox_GetText($hWnd, $iI) - If StringInStr($sList, $sText) Then Return $iI - Next - - If ($iStart = -1) Or Not $bWrapOK Then Return -1 - For $iI = 0 To $iStart - 1 - $sList = _GUICtrlListBox_GetText($hWnd, $iI) - If StringInStr($sList, $sText) Then Return $iI - Next - - Return -1 -EndFunc ;==>_GUICtrlListBox_FindInText - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetAnchorIndex($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETANCHORINDEX) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETANCHORINDEX, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetAnchorIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetCaretIndex($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETCARETINDEX) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETCARETINDEX, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetCaretIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetCount($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETCOUNT) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETCOUNT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetCurSel($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETCURSEL) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETCURSEL, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetHorizontalExtent($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETHORIZONTALEXTENT) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETHORIZONTALEXTENT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetHorizontalExtent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetItemData($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETITEMDATA, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETITEMDATA, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetItemData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetItemHeight($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETITEMHEIGHT) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETITEMHEIGHT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetItemHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetItemRect($hWnd, $iIndex) - Local $aRect[4] - - Local $tRECT = _GUICtrlListBox_GetItemRectEx($hWnd, $iIndex) - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlListBox_GetItemRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetItemRectEx($hWnd, $iIndex) - Local $tRECT = DllStructCreate($tagRECT) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $LB_GETITEMRECT, $iIndex, $tRECT, 0, "wparam", "struct*") - Else - GUICtrlSendMsg($hWnd, $LB_GETITEMRECT, $iIndex, DllStructGetPtr($tRECT)) - EndIf - Return $tRECT -EndFunc ;==>_GUICtrlListBox_GetItemRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetListBoxInfo($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETLISTBOXINFO) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETLISTBOXINFO, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetListBoxInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetLocale($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETLOCALE) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETLOCALE, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetLocale - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetLocaleCountry($hWnd) - Return _WinAPI_HiWord(_GUICtrlListBox_GetLocale($hWnd)) -EndFunc ;==>_GUICtrlListBox_GetLocaleCountry - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetLocaleLang($hWnd) - Return _WinAPI_LoWord(_GUICtrlListBox_GetLocale($hWnd)) -EndFunc ;==>_GUICtrlListBox_GetLocaleLang - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetLocalePrimLang($hWnd) - Return _WinAPI_PrimaryLangId(_GUICtrlListBox_GetLocaleLang($hWnd)) -EndFunc ;==>_GUICtrlListBox_GetLocalePrimLang - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetLocaleSubLang($hWnd) - Return _WinAPI_SubLangId(_GUICtrlListBox_GetLocaleLang($hWnd)) -EndFunc ;==>_GUICtrlListBox_GetLocaleSubLang - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetSel($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETSEL, $iIndex) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LB_GETSEL, $iIndex, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlListBox_GetSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetSelCount($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETSELCOUNT) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETSELCOUNT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetSelCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetSelItems($hWnd) - Local $aArray[1] = [0] - - Local $iCount = _GUICtrlListBox_GetSelCount($hWnd) - If $iCount > 0 Then - ReDim $aArray[$iCount + 1] - Local $tArray = DllStructCreate("int[" & $iCount & "]") - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $LB_GETSELITEMS, $iCount, $tArray, 0, "wparam", "struct*") - Else - GUICtrlSendMsg($hWnd, $LB_GETSELITEMS, $iCount, DllStructGetPtr($tArray)) - EndIf - $aArray[0] = $iCount - For $iI = 1 To $iCount - $aArray[$iI] = DllStructGetData($tArray, 1, $iI) - Next - EndIf - Return $aArray -EndFunc ;==>_GUICtrlListBox_GetSelItems - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), CyberSlug -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_GetSelItemsText($hWnd) - Local $aText[1] = [0], $iCount = _GUICtrlListBox_GetSelCount($hWnd) - If $iCount > 0 Then - Local $aIndices = _GUICtrlListBox_GetSelItems($hWnd) - ReDim $aText[UBound($aIndices)] - $aText[0] = $aIndices[0] - For $i = 1 To $aIndices[0] - $aText[$i] = _GUICtrlListBox_GetText($hWnd, $aIndices[$i]) - Next - EndIf - Return $aText -EndFunc ;==>_GUICtrlListBox_GetSelItemsText - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost -; =============================================================================================================================== -Func _GUICtrlListBox_GetText($hWnd, $iIndex) - Local $tText = DllStructCreate("wchar Text[" & _GUICtrlListBox_GetTextLen($hWnd, $iIndex) + 1 & "]") - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - _SendMessage($hWnd, $LB_GETTEXT, $iIndex, $tText, 0, "wparam", "struct*") - Return DllStructGetData($tText, "Text") -EndFunc ;==>_GUICtrlListBox_GetText - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetTextLen($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETTEXTLEN, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETTEXTLEN, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetTextLen - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_GetTopIndex($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_GETTOPINDEX) - Else - Return GUICtrlSendMsg($hWnd, $LB_GETTOPINDEX, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_GetTopIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_InitStorage($hWnd, $iItems, $iBytes) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_INITSTORAGE, $iItems, $iBytes) - Else - Return GUICtrlSendMsg($hWnd, $LB_INITSTORAGE, $iItems, $iBytes) - EndIf -EndFunc ;==>_GUICtrlListBox_InitStorage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_InsertString($hWnd, $sText, $iIndex = -1) - If Not IsString($sText) Then $sText = String($sText) - - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_INSERTSTRING, $iIndex, $sText, 0, "wparam", "wstr") - Else - Return GUICtrlSendMsg($hWnd, $LB_INSERTSTRING, $iIndex, $sText) - EndIf -EndFunc ;==>_GUICtrlListBox_InsertString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_ItemFromPoint($hWnd, $iX, $iY) - Local $iRet - - If IsHWnd($hWnd) Then - $iRet = _SendMessage($hWnd, $LB_ITEMFROMPOINT, 0, _WinAPI_MakeLong($iX, $iY)) - Else - $iRet = GUICtrlSendMsg($hWnd, $LB_ITEMFROMPOINT, 0, _WinAPI_MakeLong($iX, $iY)) - EndIf - - If _WinAPI_HiWord($iRet) <> 0 Then $iRet = -1 - Return $iRet -EndFunc ;==>_GUICtrlListBox_ItemFromPoint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), CyberSlug -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_ReplaceString($hWnd, $iIndex, $sText) - If (_GUICtrlListBox_DeleteString($hWnd, $iIndex) == $LB_ERR) Then Return SetError($LB_ERR, $LB_ERR, False) - If (_GUICtrlListBox_InsertString($hWnd, $sText, $iIndex) == $LB_ERR) Then Return SetError($LB_ERR, $LB_ERR, False) - Return True -EndFunc ;==>_GUICtrlListBox_ReplaceString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_ResetContent($hWnd) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $LB_RESETCONTENT) - Else - GUICtrlSendMsg($hWnd, $LB_RESETCONTENT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_ResetContent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_SelectString($hWnd, $sText, $iIndex = -1) - If Not IsString($sText) Then $sText = String($sText) - - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SELECTSTRING, $iIndex, $sText, 0, "wparam", "wstr") - Else - Return GUICtrlSendMsg($hWnd, $LB_SELECTSTRING, $iIndex, $sText) - EndIf -EndFunc ;==>_GUICtrlListBox_SelectString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), CyberSlug -; Modified.......: Gary Frost (gafrost, re-written -; =============================================================================================================================== -Func _GUICtrlListBox_SelItemRange($hWnd, $iFirst, $iLast, $bSelect = True) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SELITEMRANGE, $bSelect, _WinAPI_MakeLong($iFirst, $iLast)) = 0 - Else - Return GUICtrlSendMsg($hWnd, $LB_SELITEMRANGE, $bSelect, _WinAPI_MakeLong($iFirst, $iLast)) = 0 - EndIf -EndFunc ;==>_GUICtrlListBox_SelItemRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_SelItemRangeEx($hWnd, $iFirst, $iLast) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SELITEMRANGEEX, $iFirst, $iLast) = 0 - Else - Return GUICtrlSendMsg($hWnd, $LB_SELITEMRANGEEX, $iFirst, $iLast) = 0 - EndIf -EndFunc ;==>_GUICtrlListBox_SelItemRangeEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_SetAnchorIndex($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SETANCHORINDEX, $iIndex) = 0 - Else - Return GUICtrlSendMsg($hWnd, $LB_SETANCHORINDEX, $iIndex, 0) = 0 - EndIf -EndFunc ;==>_GUICtrlListBox_SetAnchorIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_SetCaretIndex($hWnd, $iIndex, $bPartial = False) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SETCARETINDEX, $iIndex, $bPartial) = 0 - Else - Return GUICtrlSendMsg($hWnd, $LB_SETCARETINDEX, $iIndex, $bPartial) = 0 - EndIf -EndFunc ;==>_GUICtrlListBox_SetCaretIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_SetColumnWidth($hWnd, $iWidth) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $LB_SETCOLUMNWIDTH, $iWidth) - Else - GUICtrlSendMsg($hWnd, $LB_SETCOLUMNWIDTH, $iWidth, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_SetColumnWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Sokko -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_SetCurSel($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SETCURSEL, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $LB_SETCURSEL, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_SetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_SetHorizontalExtent($hWnd, $iWidth) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $LB_SETHORIZONTALEXTENT, $iWidth) - Else - GUICtrlSendMsg($hWnd, $LB_SETHORIZONTALEXTENT, $iWidth, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_SetHorizontalExtent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_SetItemData($hWnd, $iIndex, $iValue) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SETITEMDATA, $iIndex, $iValue) <> -1 - Else - Return GUICtrlSendMsg($hWnd, $LB_SETITEMDATA, $iIndex, $iValue) <> -1 - EndIf -EndFunc ;==>_GUICtrlListBox_SetItemData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_SetItemHeight($hWnd, $iHeight, $iIndex = 0) - Local $iRet - - If IsHWnd($hWnd) Then - $iRet = _SendMessage($hWnd, $LB_SETITEMHEIGHT, $iIndex, $iHeight) - _WinAPI_InvalidateRect($hWnd) - Else - $iRet = GUICtrlSendMsg($hWnd, $LB_SETITEMHEIGHT, $iIndex, $iHeight) - _WinAPI_InvalidateRect(GUICtrlGetHandle($hWnd)) - EndIf - Return $iRet <> -1 -EndFunc ;==>_GUICtrlListBox_SetItemHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_SetLocale($hWnd, $iLocal) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SETLOCALE, $iLocal) - Else - Return GUICtrlSendMsg($hWnd, $LB_SETLOCALE, $iLocal, 0) - EndIf -EndFunc ;==>_GUICtrlListBox_SetLocale - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), CyberSlug -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_SetSel($hWnd, $iIndex = -1, $iSelect = -1) - Local $i_Ret = 1 - If IsHWnd($hWnd) Then - If $iIndex == -1 Then ; toggle all - For $iIndex = 0 To _GUICtrlListBox_GetCount($hWnd) - 1 - $i_Ret = _GUICtrlListBox_GetSel($hWnd, $iIndex) - If ($i_Ret == $LB_ERR) Then Return SetError($LB_ERR, $LB_ERR, False) - If ($i_Ret > 0) Then ;If Selected Then - $i_Ret = _SendMessage($hWnd, $LB_SETSEL, False, $iIndex) <> -1 - Else - $i_Ret = _SendMessage($hWnd, $LB_SETSEL, True, $iIndex) <> -1 - EndIf - If ($i_Ret == False) Then Return SetError($LB_ERR, $LB_ERR, False) - Next - ElseIf $iSelect == -1 Then ; toggle state of index - If _GUICtrlListBox_GetSel($hWnd, $iIndex) Then ;If Selected Then - Return _SendMessage($hWnd, $LB_SETSEL, False, $iIndex) <> -1 - Else - Return _SendMessage($hWnd, $LB_SETSEL, True, $iIndex) <> -1 - EndIf - Else ; set state according to flag - Return _SendMessage($hWnd, $LB_SETSEL, $iSelect, $iIndex) <> -1 - EndIf - Else - If $iIndex == -1 Then ; toggle all - For $iIndex = 0 To _GUICtrlListBox_GetCount($hWnd) - 1 - $i_Ret = _GUICtrlListBox_GetSel($hWnd, $iIndex) - If ($i_Ret == $LB_ERR) Then Return SetError($LB_ERR, $LB_ERR, False) - If ($i_Ret > 0) Then ;If Selected Then - $i_Ret = GUICtrlSendMsg($hWnd, $LB_SETSEL, False, $iIndex) <> -1 - Else - $i_Ret = GUICtrlSendMsg($hWnd, $LB_SETSEL, True, $iIndex) <> -1 - EndIf - If ($i_Ret == 0) Then Return SetError($LB_ERR, $LB_ERR, False) - Next - ElseIf $iSelect == -1 Then ; toggle state of index - If _GUICtrlListBox_GetSel($hWnd, $iIndex) Then ;If Selected Then - Return GUICtrlSendMsg($hWnd, $LB_SETSEL, False, $iIndex) <> -1 - Else - Return GUICtrlSendMsg($hWnd, $LB_SETSEL, True, $iIndex) <> -1 - EndIf - Else ; set state according to flag - Return GUICtrlSendMsg($hWnd, $LB_SETSEL, $iSelect, $iIndex) <> -1 - EndIf - EndIf - Return $i_Ret <> 0 -EndFunc ;==>_GUICtrlListBox_SetSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_SetTabStops($hWnd, $aTabStops) - Local $iCount = $aTabStops[0] - Local $tTabStops = DllStructCreate("int[" & $iCount & "]") - For $iI = 1 To $iCount - DllStructSetData($tTabStops, 1, $aTabStops[$iI], $iI) - Next - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SETTABSTOPS, $iCount, $tTabStops, 0, "wparam", "struct*") = 0 - Else - Return GUICtrlSendMsg($hWnd, $LB_SETTABSTOPS, $iCount, DllStructGetPtr($tTabStops)) = 0 - EndIf -EndFunc ;==>_GUICtrlListBox_SetTabStops - -; #FUNCTION# ==================================================================================================================== -; Author ........: CyberSlug -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_SetTopIndex($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LB_SETTOPINDEX, $iIndex) <> -1 - Else - Return GUICtrlSendMsg($hWnd, $LB_SETTOPINDEX, $iIndex, 0) <> -1 - EndIf -EndFunc ;==>_GUICtrlListBox_SetTopIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), CyberSlug -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_Sort($hWnd) - Local $sBak = _GUICtrlListBox_GetText($hWnd, 0) - If ($sBak == -1) Then Return SetError($LB_ERR, $LB_ERR, False) - If (_GUICtrlListBox_DeleteString($hWnd, 0) == -1) Then Return SetError($LB_ERR, $LB_ERR, False) - Return _GUICtrlListBox_AddString($hWnd, $sBak) <> -1 -EndFunc ;==>_GUICtrlListBox_Sort - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), Cyberslug -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListBox_SwapString($hWnd, $iIndexA, $iIndexB) - Local $sItemA = _GUICtrlListBox_GetText($hWnd, $iIndexA) - Local $sItemB = _GUICtrlListBox_GetText($hWnd, $iIndexB) - If (_GUICtrlListBox_DeleteString($hWnd, $iIndexA) == -1) Then Return SetError($LB_ERR, $LB_ERR, False) - If (_GUICtrlListBox_InsertString($hWnd, $sItemB, $iIndexA) == -1) Then Return SetError($LB_ERR, $LB_ERR, False) - - If (_GUICtrlListBox_DeleteString($hWnd, $iIndexB) == -1) Then Return SetError($LB_ERR, $LB_ERR, False) - If (_GUICtrlListBox_InsertString($hWnd, $sItemA, $iIndexB) == -1) Then Return SetError($LB_ERR, $LB_ERR, False) - Return True -EndFunc ;==>_GUICtrlListBox_SwapString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListBox_UpdateHScroll($hWnd) - Local $hDC, $hFont, $tSize, $sText - Local $iMax = 0 - If IsHWnd($hWnd) Then - $hFont = _SendMessage($hWnd, $__LISTBOXCONSTANT_WM_GETFONT) - $hDC = _WinAPI_GetDC($hWnd) - _WinAPI_SelectObject($hDC, $hFont) - For $iI = 0 To _GUICtrlListBox_GetCount($hWnd) - 1 - $sText = _GUICtrlListBox_GetText($hWnd, $iI) - $tSize = _WinAPI_GetTextExtentPoint32($hDC, $sText & "W") - If DllStructGetData($tSize, "X") > $iMax Then - $iMax = DllStructGetData($tSize, "X") - EndIf - Next - _GUICtrlListBox_SetHorizontalExtent($hWnd, $iMax) - _WinAPI_SelectObject($hDC, $hFont) - _WinAPI_ReleaseDC($hWnd, $hDC) - Else - $hFont = GUICtrlSendMsg($hWnd, $__LISTBOXCONSTANT_WM_GETFONT, 0, 0) - Local $hWnd_t = GUICtrlGetHandle($hWnd) - $hDC = _WinAPI_GetDC($hWnd_t) - _WinAPI_SelectObject($hDC, $hFont) - For $iI = 0 To _GUICtrlListBox_GetCount($hWnd) - 1 - $sText = _GUICtrlListBox_GetText($hWnd, $iI) - $tSize = _WinAPI_GetTextExtentPoint32($hDC, $sText & "W") - If DllStructGetData($tSize, "X") > $iMax Then - $iMax = DllStructGetData($tSize, "X") - EndIf - Next - _GUICtrlListBox_SetHorizontalExtent($hWnd, $iMax) - _WinAPI_SelectObject($hDC, $hFont) - _WinAPI_ReleaseDC($hWnd_t, $hDC) - EndIf -EndFunc ;==>_GUICtrlListBox_UpdateHScroll diff --git a/build/Include/GuiListView.au3 b/build/Include/GuiListView.au3 deleted file mode 100644 index b76c3500c..000000000 --- a/build/Include/GuiListView.au3 +++ /dev/null @@ -1,4715 +0,0 @@ -#include-once - -#include "Array.au3" -#include "GuiHeader.au3" -#include "ListViewConstants.au3" -#include "Memory.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: ListView -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with ListView control management. -; A ListView control is a window that displays a collection of items; each item consists of an icon and a label. -; ListView controls provide several ways to arrange and display items. For example, additional information about -; each item can be displayed in columns to the right of the icon and label. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hLVLastWnd - -; for use with the sort call back functions -Global $__g_iLListViewSortInfoSize = 11 -Global $__g_aListViewSortInfo[1][$__g_iLListViewSortInfoSize] -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__LISTVIEWCONSTANT_ClassName = "SysListView32" -Global Const $__LISTVIEWCONSTANT_WS_MAXIMIZEBOX = 0x00010000 -Global Const $__LISTVIEWCONSTANT_WS_MINIMIZEBOX = 0x00020000 -Global Const $__LISTVIEWCONSTANT_GUI_RUNDEFMSG = 'GUI_RUNDEFMSG' -Global Const $__LISTVIEWCONSTANT_WM_SETREDRAW = 0x000B -Global Const $__LISTVIEWCONSTANT_WM_SETFONT = 0x0030 -Global Const $__LISTVIEWCONSTANT_WM_NOTIFY = 0x004E -Global Const $__LISTVIEWCONSTANT_DEFAULT_GUI_FONT = 17 -Global Const $__LISTVIEWCONSTANT_ILD_TRANSPARENT = 0x00000001 -Global Const $__LISTVIEWCONSTANT_ILD_BLEND25 = 0x00000002 -Global Const $__LISTVIEWCONSTANT_ILD_BLEND50 = 0x00000004 -Global Const $__LISTVIEWCONSTANT_ILD_MASK = 0x00000010 -Global Const $__LISTVIEWCONSTANT_VK_DOWN = 0x28 -Global Const $__LISTVIEWCONSTANT_VK_END = 0x23 -Global Const $__LISTVIEWCONSTANT_VK_HOME = 0x24 -Global Const $__LISTVIEWCONSTANT_VK_LEFT = 0x25 -Global Const $__LISTVIEWCONSTANT_VK_NEXT = 0x22 -Global Const $__LISTVIEWCONSTANT_VK_PRIOR = 0x21 -Global Const $__LISTVIEWCONSTANT_VK_RIGHT = 0x27 -Global Const $__LISTVIEWCONSTANT_VK_UP = 0x26 -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not working/documented/implimented at this time -; -; _GUICtrlListView_GetEmptyText -; _GUICtrlListView_GetGroupState -; _GUICtrlListView_GetInsertMark -; _GUICtrlListView_GetInsertMarkColor -; _GUICtrlListView_GetInsertMarkRect -; _GUICtrlListView_InsertMarkHitTest -; _GUICtrlListView_IsItemVisible -; _GUICtrlListView_MoveGroup -; _GUICtrlListView_SetHotCursor -; _GUICtrlListView_SetInfoTip -; _GUICtrlListView_SetInsertMark -; _GUICtrlListView_SetInsertMarkColor -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlListView_AddArray -; _GUICtrlListView_AddColumn -; _GUICtrlListView_AddItem -; _GUICtrlListView_AddSubItem -; _GUICtrlListView_ApproximateViewHeight -; _GUICtrlListView_ApproximateViewRect -; _GUICtrlListView_ApproximateViewWidth -; _GUICtrlListView_Arrange -; _GUICtrlListView_BeginUpdate -; _GUICtrlListView_CancelEditLabel -; _GUICtrlListView_ClickItem -; _GUICtrlListView_CopyItems -; _GUICtrlListView_Create -; _GUICtrlListView_CreateDragImage -; _GUICtrlListView_CreateSolidBitMap -; _GUICtrlListView_DeleteAllItems -; _GUICtrlListView_DeleteColumn -; _GUICtrlListView_DeleteItem -; _GUICtrlListView_DeleteItemsSelected -; _GUICtrlListView_Destroy -; _GUICtrlListView_DrawDragImage -; _GUICtrlListView_EditLabel -; _GUICtrlListView_EnableGroupView -; _GUICtrlListView_EndUpdate -; _GUICtrlListView_EnsureVisible -; _GUICtrlListView_FindInText -; _GUICtrlListView_FindItem -; _GUICtrlListView_FindNearest -; _GUICtrlListView_FindParam -; _GUICtrlListView_FindText -; _GUICtrlListView_GetBkColor -; _GUICtrlListView_GetBkImage -; _GUICtrlListView_GetCallbackMask -; _GUICtrlListView_GetColumn -; _GUICtrlListView_GetColumnCount -; _GUICtrlListView_GetColumnOrder -; _GUICtrlListView_GetColumnOrderArray -; _GUICtrlListView_GetColumnWidth -; _GUICtrlListView_GetCounterPage -; _GUICtrlListView_GetEditControl -; _GUICtrlListView_GetExtendedListViewStyle -; _GUICtrlListView_GetFocusedGroup -; _GUICtrlListView_GetGroupCount -; _GUICtrlListView_GetGroupInfo -; _GUICtrlListView_GetGroupInfoByIndex -; _GUICtrlListView_GetGroupRect -; _GUICtrlListView_GetGroupViewEnabled -; _GUICtrlListView_GetHeader -; _GUICtrlListView_GetHotCursor -; _GUICtrlListView_GetHotItem -; _GUICtrlListView_GetHoverTime -; _GUICtrlListView_GetImageList -; _GUICtrlListView_GetISearchString -; _GUICtrlListView_GetItem -; _GUICtrlListView_GetItemChecked -; _GUICtrlListView_GetItemCount -; _GUICtrlListView_GetItemCut -; _GUICtrlListView_GetItemDropHilited -; _GUICtrlListView_GetItemEx -; _GUICtrlListView_GetItemFocused -; _GUICtrlListView_GetItemGroupID -; _GUICtrlListView_GetItemImage -; _GUICtrlListView_GetItemIndent -; _GUICtrlListView_GetItemParam -; _GUICtrlListView_GetItemPosition -; _GUICtrlListView_GetItemPositionX -; _GUICtrlListView_GetItemPositionY -; _GUICtrlListView_GetItemRect -; _GUICtrlListView_GetItemRectEx -; _GUICtrlListView_GetItemSelected -; _GUICtrlListView_GetItemSpacing -; _GUICtrlListView_GetItemSpacingX -; _GUICtrlListView_GetItemSpacingY -; _GUICtrlListView_GetItemState -; _GUICtrlListView_GetItemStateImage -; _GUICtrlListView_GetItemText -; _GUICtrlListView_GetItemTextArray -; _GUICtrlListView_GetItemTextString -; _GUICtrlListView_GetNextItem -; _GUICtrlListView_GetNumberOfWorkAreas -; _GUICtrlListView_GetOrigin -; _GUICtrlListView_GetOriginX -; _GUICtrlListView_GetOriginY -; _GUICtrlListView_GetOutlineColor -; _GUICtrlListView_GetSelectedColumn -; _GUICtrlListView_GetSelectedCount -; _GUICtrlListView_GetSelectedIndices -; _GUICtrlListView_GetSelectionMark -; _GUICtrlListView_GetStringWidth -; _GUICtrlListView_GetSubItemRect -; _GUICtrlListView_GetTextBkColor -; _GUICtrlListView_GetTextColor -; _GUICtrlListView_GetToolTips -; _GUICtrlListView_GetTopIndex -; _GUICtrlListView_GetUnicodeFormat -; _GUICtrlListView_GetView -; _GUICtrlListView_GetViewDetails -; _GUICtrlListView_GetViewLarge -; _GUICtrlListView_GetViewList -; _GUICtrlListView_GetViewSmall -; _GUICtrlListView_GetViewTile -; _GUICtrlListView_GetViewRect -; _GUICtrlListView_HideColumn -; _GUICtrlListView_HitTest -; _GUICtrlListView_InsertColumn -; _GUICtrlListView_InsertGroup -; _GUICtrlListView_InsertItem -; _GUICtrlListView_JustifyColumn -; _GUICtrlListView_MapIDToIndex -; _GUICtrlListView_MapIndexToID -; _GUICtrlListView_RedrawItems -; _GUICtrlListView_RegisterSortCallBack -; _GUICtrlListView_RemoveAllGroups -; _GUICtrlListView_RemoveGroup -; _GUICtrlListView_Scroll -; _GUICtrlListView_SetBkColor -; _GUICtrlListView_SetBkImage -; _GUICtrlListView_SetCallBackMask -; _GUICtrlListView_SetColumn -; _GUICtrlListView_SetColumnOrder -; _GUICtrlListView_SetColumnOrderArray -; _GUICtrlListView_SetColumnWidth -; _GUICtrlListView_SetExtendedListViewStyle -; _GUICtrlListView_SetGroupInfo -; _GUICtrlListView_SetHotItem -; _GUICtrlListView_SetHoverTime -; _GUICtrlListView_SetIconSpacing -; _GUICtrlListView_SetImageList -; _GUICtrlListView_SetItem -; _GUICtrlListView_SetItemChecked -; _GUICtrlListView_SetItemCount -; _GUICtrlListView_SetItemCut -; _GUICtrlListView_SetItemDropHilited -; _GUICtrlListView_SetItemEx -; _GUICtrlListView_SetItemFocused -; _GUICtrlListView_SetItemGroupID -; _GUICtrlListView_SetItemImage -; _GUICtrlListView_SetItemIndent -; _GUICtrlListView_SetItemParam -; _GUICtrlListView_SetItemPosition -; _GUICtrlListView_SetItemPosition32 -; _GUICtrlListView_SetItemSelected -; _GUICtrlListView_SetItemState -; _GUICtrlListView_SetItemStateImage -; _GUICtrlListView_SetItemText -; _GUICtrlListView_SetOutlineColor -; _GUICtrlListView_SetSelectedColumn -; _GUICtrlListView_SetSelectionMark -; _GUICtrlListView_SetTextBkColor -; _GUICtrlListView_SetTextColor -; _GUICtrlListView_SetToolTips -; _GUICtrlListView_SetUnicodeFormat -; _GUICtrlListView_SetView -; _GUICtrlListView_SetWorkAreas -; _GUICtrlListView_SimpleSort -; _GUICtrlListView_SortItems -; _GUICtrlListView_SubItemHitTest -; _GUICtrlListView_UnRegisterSortCallBack -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagLVBKIMAGE -; $tagLVCOLUMN -; $tagLVGROUP -; $tagLVINSERTMARK -; $tagLVSETINFOTIP -; __GUICtrlListView_ArrayDelete -; __GUICtrlListView_Draw -; __GUICtrlListView_GetGroupInfoEx -; __GUICtrlListView_GetItemOverlayImage -; __GUICtrlListView_IndexToOverlayImageMask -; __GUICtrlListView_IndexToStateImageMask -; __GUICtrlListView_OverlayImageMaskToIndex -; __GUICtrlListView_SetItemOverlayImage -; __GUICtrlListView_Sort -; __GUICtrlListView_StateImageMaskToIndex -; __GUICtrlListView_ReverseColorOrder -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagLVBKIMAGE -; Description ...: Contains information about the background image of a list-view control -; Fields ........: Flags - This member may be one or more of the following flags. You can use the LVBKIF_SOURCE_MASK value -; +to mask off all but the source flags. You can use the LVBKIF_STYLE_MASK value to mask off all but the style -; +flags. -; |$LVBKIF_SOURCE_NONE - The control has no background image -; |$LVBKIF_SOURCE_URL - The Image member contains the URL of the background image -; |$LVBKIF_STYLE_NORMAL - The background image is displayed normally -; |$LVBKIF_STYLE_TILE - The background image will be tiled to fill the entire background of the control -; |$LVBKIF_FLAG_TILEOFFSET - You use this flag to specify the coordinates of the first tile. This flag is valid -; +only if the $LVBKIF_STYLE_TILE flag is also specified. If this flag is not specified the first tile begins at -; +the upper-left corner of the client area. -; hBmp - Not used -; Image - Address of a string that contains the URL of the background image. This member is only valid if -; +the $LVBKIF_SOURCE_URL flag is set in Flags. This member must be initialized to point to the buffer that -; +contains or receives the text before sending the message. -; ImageMax - Size of the buffer at the address in Image. If information is being sent to the control, this -; +member is ignored. -; XOffPercent - Percentage of the client area that the image should be offset horizontally. For example, at 0 -; +percent, the image will be displayed against the left edge of the control's client area. At 50 percent, the -; +image will be displayed horizontally centered in the control's client area. At 100 percent, the image will be -; +displayed against the right edge of the control's client area. This member is only valid when the -; +$LVBKIF_STYLE_NORMAL is specified in Flags. If both $LVBKIF_FLAG_TILEOFFSET and $LVBKIF_STYLE_TILE are -; +specified in Flags, then the value specifies the pixel, not percentage offset, of the first tile. Otherwise, -; +the value is ignored. -; YOffPercent - Percentage of the control's client area that the image should be offset vertically. For example -; +at 0 percent, the image will be displayed against the top edge of the control's client area. At 50 percent, -; +the image will be displayed vertically centered in the control's client area. At 100 percent, the image will -; +be displayed against the bottom edge of the control's client area. This member is only valid when the -; +$LVBKIF_STYLE_NORMAL is specified in Flags. If both $LVBKIF_FLAG_TILEOFFSET and $LVBKIF_STYLE_TILE are -; +specified in Flags, then the value specifies the pixel, not percentage offset, of the first tile. Otherwise, -; +the value is ignored. -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagLVBKIMAGE = "ulong Flags;hwnd hBmp;ptr Image;uint ImageMax;int XOffPercent;int YOffPercent" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagLVCOLUMN -; Description ...: Contains information about a column in report view -; Fields ........: Mask - Variable specifying which members contain valid information. This member can be zero, or one or -; +more of the following values: -; |LVCF_FMT - The Fmt member is valid -; |LVCF_WIDTH - The CX member is valid -; |LVCF_TEXT - The Text member is valid -; |LVCF_SUBITEM - The SubItem member is valid -; |LVCF_IMAGE - The Image member is valid -; |LVCF_ORDER - The Order member is valid. -; Fmt - Alignment of the column header and the subitem text in the column. This member can be one of the -; +following values. The alignment of the leftmost column is always left-justified; it cannot be changed: -; |LVCFMT_LEFT - Text is left-aligned -; |LVCFMT_RIGHT - Text is right-aligned -; |LVCFMT_CENTER - Text is centered -; |LVCFMT_JUSTIFYMASK - A bitmask used to select those bits of Fmt that control field justification -; |LVCFMT_IMAGE - The item displays an image from an image list -; |LVCFMT_BITMAP_ON_RIGHT - The bitmap appears to the right of text -; |LVCFMT_COL_HAS_IMAGES - The header item contains an image in the image list. -; CX - Width of the column, in pixels -; Text - If column information is being set, this member is the address of a string that contains the column -; +header text. If the structure is receiving information about a column, this member specifies the address of -; +the buffer that receives the column header text. -; TextMax - Size of the buffer pointed to by the Text member. If the structure is not receiving information -; +about a column, this member is ignored. -; SubItem - Index of subitem associated with the column -; Image - Zero based index of an image within the image list -; Order - Zero-based column offset. Column offset is in left-to-right order. -; Microsoft Windows Vista or later -; cxMin; // min snap point -; cxDefault; // default snap point -; cxIdeal; // read only. ideal may not eqaul current width if auto sized (LVS_EX_AUTOSIZECOLUMNS) to a lesser width. -; Author ........: Paul Campbell (PaulIA) -; Modified ......: jpm -; Remarks .......: -; =============================================================================================================================== -Global Const $tagLVCOLUMN = "uint Mask;int Fmt;int CX;ptr Text;int TextMax;int SubItem;int Image;int Order;int cxMin;int cxDefault;int cxIdeal" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagLVGROUP -; Description ...: Used to set and retrieve groups -; Fields ........: Size - Size of this structure, in bytes -; Mask - Mask that specifies which members of the structure are valid input. Can be one or more of the -; +following values: -; |$LVGF_NONE - No other items are valid -; |$LVGF_HEADER - Header and HeaderMax members are valid -; |$LVGF_FOOTER - Reserved -; |$LVGF_STATE - Reserved -; |$LVGF_ALIGN - Align member is valid -; |$LVGF_GROUPID - GroupId member is valid -; Header - Pointer to a string that contains the header text when item information is being set. If group -; +information is being retrieved this member specifies the address of the buffer that receives the header text. -; HeaderMax - Size of the buffer pointed to by the Header member. If the structure is not receiving information -; +about a group, this member is ignored. -; Footer - Reserved -; FooterMax - Reserved -; GroupID - ID of the group -; StateMask - Reserved -; State - Reserved -; Align - Indicates the alignment of the header text. It can have one or more of the following values. Use -; +one of the header flags. -; |LVGA_HEADER_CENTER - Header text is centered horizontally in the window -; |LVGA_HEADER_LEFT - Header text is aligned at the left of the window -; |LVGA_HEADER_RIGHT - Header text is aligned at the right of the window. -; Microsoft Windows Vista or later -; pszSubtitle; -; cchSubtitle; -; pszTask; -; cchTask; -; pszDescriptionTop; -; cchDescriptionTop; -; pszDescriptionBottom; -; cchDescriptionBottom; -; iTitleImage; -; iExtendedImage; -; iFirstItem; // Read only -; cItems; // Read only -; pszSubsetTitle; // NULL if group is not subset -; cchSubsetTitle; -; Author ........: Paul Campbell (PaulIA) -; Modified ......: jpm -; Remarks .......: -; =============================================================================================================================== -Global Const $tagLVGROUP = "uint Size;uint Mask;ptr Header;int HeaderMax;ptr Footer;int FooterMax;int GroupID;uint StateMask;uint State;uint Align;" & _ - "ptr pszSubtitle;uint cchSubtitle;ptr pszTask;uint cchTask;ptr pszDescriptionTop;uint cchDescriptionTop;ptr pszDescriptionBottom;" & _ - "uint cchDescriptionBottom;int iTitleImage;int iExtendedImage;int iFirstItem;uint cItems;ptr pszSubsetTitle;uint cchSubsetTitle" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagLVINSERTMARK -; Description ...: Used to describe insertion points -; Fields ........: Size - Size of this structure, in bytes -; Flags - Flag that specifies where the insertion point should appear: -; |$LVIM_AFTER - The insertion point appears after the item specified if the $LVIM_AFTER flag is set; otherwise -; +it appears before the specified item. -; Item - Item next to which the insertion point appears. If -1, there is no insertion point. -; Reserved - Reserved. Must be set to 0. -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagLVINSERTMARK = "uint Size;dword Flags;int Item;dword Reserved" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagLVSETINFOTIP -; Description ...: Provides information about tooltip text that is to be set -; Fields ........: Size - Size of this structure, in bytes -; Flags - Flag that specifies how the text should be set. Set to zero. -; Text - Pointer to a Unicode string that contains the tooltip text -; Item - Contains the zero based index of the item to which this structure refers -; SubItem - Contains the one based index of the subitem to which this structure refers -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagLVSETINFOTIP = "uint Size;dword Flags;ptr Text;int Item;int SubItem" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_AddArray($hWnd, ByRef $aItems) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $tItem = DllStructCreate($tagLVITEM) - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[4096]") - Else - $tBuffer = DllStructCreate("char Text[4096]") - EndIf - DllStructSetData($tItem, "Mask", $LVIF_TEXT) - DllStructSetData($tItem, "Text", DllStructGetPtr($tBuffer)) - DllStructSetData($tItem, "TextMax", 4096) - Local $iLastItem = _GUICtrlListView_GetItemCount($hWnd) - _GUICtrlListView_BeginUpdate($hWnd) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - For $iI = 0 To UBound($aItems) - 1 - DllStructSetData($tItem, "Item", $iI) - DllStructSetData($tItem, "SubItem", 0) - DllStructSetData($tBuffer, "Text", $aItems[$iI][0]) - _SendMessage($hWnd, $LVM_INSERTITEMW, 0, $tItem, 0, "wparam", "struct*") - For $iJ = 1 To UBound($aItems, $UBOUND_COLUMNS) - 1 - DllStructSetData($tItem, "SubItem", $iJ) - DllStructSetData($tBuffer, "Text", $aItems[$iI][$iJ]) - _SendMessage($hWnd, $LVM_SETITEMW, 0, $tItem, 0, "wparam", "struct*") - Next - Next - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - For $iI = 0 To UBound($aItems) - 1 - DllStructSetData($tItem, "Item", $iI + $iLastItem) - DllStructSetData($tItem, "SubItem", 0) - DllStructSetData($tBuffer, "Text", $aItems[$iI][0]) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - _SendMessage($hWnd, $LVM_INSERTITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $LVM_INSERTITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - For $iJ = 1 To UBound($aItems, $UBOUND_COLUMNS) - 1 - DllStructSetData($tItem, "SubItem", $iJ) - DllStructSetData($tBuffer, "Text", $aItems[$iI][$iJ]) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - _SendMessage($hWnd, $LVM_SETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $LVM_SETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - Next - Next - _MemFree($tMemMap) - EndIf - Else - Local $pItem = DllStructGetPtr($tItem) - For $iI = 0 To UBound($aItems) - 1 - DllStructSetData($tItem, "Item", $iI + $iLastItem) - DllStructSetData($tItem, "SubItem", 0) - DllStructSetData($tBuffer, "Text", $aItems[$iI][0]) - If $bUnicode Then - GUICtrlSendMsg($hWnd, $LVM_INSERTITEMW, 0, $pItem) - Else - GUICtrlSendMsg($hWnd, $LVM_INSERTITEMA, 0, $pItem) - EndIf - For $iJ = 1 To UBound($aItems, $UBOUND_COLUMNS) - 1 - DllStructSetData($tItem, "SubItem", $iJ) - DllStructSetData($tBuffer, "Text", $aItems[$iI][$iJ]) - If $bUnicode Then - GUICtrlSendMsg($hWnd, $LVM_SETITEMW, 0, $pItem) - Else - GUICtrlSendMsg($hWnd, $LVM_SETITEMA, 0, $pItem) - EndIf - Next - Next - EndIf - _GUICtrlListView_EndUpdate($hWnd) -EndFunc ;==>_GUICtrlListView_AddArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_AddColumn($hWnd, $sText, $iWidth = 50, $iAlign = -1, $iImage = -1, $bOnRight = False) - Return _GUICtrlListView_InsertColumn($hWnd, _GUICtrlListView_GetColumnCount($hWnd), $sText, $iWidth, $iAlign, $iImage, $bOnRight) -EndFunc ;==>_GUICtrlListView_AddColumn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_AddItem($hWnd, $sText, $iImage = -1, $iParam = 0) - Return _GUICtrlListView_InsertItem($hWnd, $sText, -1, $iImage, $iParam) -EndFunc ;==>_GUICtrlListView_AddItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_AddSubItem($hWnd, $iIndex, $sText, $iSubItem, $iImage = -1) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tItem = DllStructCreate($tagLVITEM) - Local $iMask = $LVIF_TEXT - If $iImage <> -1 Then $iMask = BitOR($iMask, $LVIF_IMAGE) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tItem, "Mask", $iMask) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "SubItem", $iSubItem) - DllStructSetData($tItem, "Image", $iImage) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tItem, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $LVM_SETITEMW, 0, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_SETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_SETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Else - Local $pItem = DllStructGetPtr($tItem) - DllStructSetData($tItem, "Text", $pBuffer) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETITEMW, 0, $pItem) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETITEMA, 0, $pItem) - EndIf - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_AddSubItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_ApproximateViewHeight($hWnd, $iCount = -1, $iCX = -1, $iCY = -1) - If IsHWnd($hWnd) Then - Return BitShift((_SendMessage($hWnd, $LVM_APPROXIMATEVIEWRECT, $iCount, _WinAPI_MakeLong($iCX, $iCY))), 16) - Else - Return BitShift((GUICtrlSendMsg($hWnd, $LVM_APPROXIMATEVIEWRECT, $iCount, _WinAPI_MakeLong($iCX, $iCY))), 16) - EndIf -EndFunc ;==>_GUICtrlListView_ApproximateViewHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_ApproximateViewRect($hWnd, $iCount = -1, $iCX = -1, $iCY = -1) - Local $iView - If IsHWnd($hWnd) Then - $iView = _SendMessage($hWnd, $LVM_APPROXIMATEVIEWRECT, $iCount, _WinAPI_MakeLong($iCX, $iCY)) - Else - $iView = GUICtrlSendMsg($hWnd, $LVM_APPROXIMATEVIEWRECT, $iCount, _WinAPI_MakeLong($iCX, $iCY)) - EndIf - Local $aView[2] - $aView[0] = BitAND($iView, 0xFFFF) - $aView[1] = BitShift($iView, 16) - Return $aView -EndFunc ;==>_GUICtrlListView_ApproximateViewRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_ApproximateViewWidth($hWnd, $iCount = -1, $iCX = -1, $iCY = -1) - If IsHWnd($hWnd) Then - Return BitAND((_SendMessage($hWnd, $LVM_APPROXIMATEVIEWRECT, $iCount, _WinAPI_MakeLong($iCX, $iCY))), 0xFFFF) - Else - Return BitAND((GUICtrlSendMsg($hWnd, $LVM_APPROXIMATEVIEWRECT, $iCount, _WinAPI_MakeLong($iCX, $iCY))), 0xFFFF) - EndIf -EndFunc ;==>_GUICtrlListView_ApproximateViewWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_Arrange($hWnd, $iArrange = 0) - Local $aArrange[4] = [$LVA_DEFAULT, $LVA_ALIGNLEFT, $LVA_ALIGNTOP, $LVA_SNAPTOGRID] - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_ARRANGE, $aArrange[$iArrange]) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_ARRANGE, $aArrange[$iArrange], 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_Arrange - -; #INTERNAL_USE_ONLY#============================================================================== -; Name...........: __GUICtrlListView_ArrayDelete -; Description ...: Deletes the specified element from the given array, returning the adjusted array. -; Syntax.........: __GUICtrlListView_ArrayDelete ( ByRef $avArray, $iElement ) -; Parameters ....: $avArray - The array from which an element is to be deleted -; $iElement - The index of the element to be deleted -; Return values .: Success - Returns 1 and the original Array is updated -; Failure - Returns 0 and the original Array -; Author ........: Cephas -; Modified.......: Array is passed via ByRef - Jos van der zande, for exclusive use with listview sort - GaryFrost -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlListView_ArrayDelete(ByRef $avArray, $iElement) - If Not IsArray($avArray) Then Return SetError(1, 0, "") - - ; We have to define this here so that we're sure that $avArray is an array - ; before we get it's size. - Local $iUpper = UBound($avArray) ; Size of original array - - ; If the array is only 1 element in size then we can't delete the 1 element. - If $iUpper = 1 Then - SetError(2) - Return "" - EndIf - - Local $avNewArray[$iUpper - 1][$__g_iLListViewSortInfoSize] - $avNewArray[0][0] = $avArray[0][0] - If $iElement < 0 Then - $iElement = 0 - EndIf - If $iElement > ($iUpper - 1) Then - $iElement = ($iUpper - 1) - EndIf - If $iElement > 0 Then - For $iCntr = 0 To $iElement - 1 - For $x = 1 To $__g_iLListViewSortInfoSize - 1 - $avNewArray[$iCntr][$x] = $avArray[$iCntr][$x] - Next - Next - EndIf - If $iElement < ($iUpper - 1) Then - For $iCntr = ($iElement + 1) To ($iUpper - 1) - For $x = 1 To $__g_iLListViewSortInfoSize - 1 - $avNewArray[$iCntr - 1][$x] = $avArray[$iCntr][$x] - Next - Next - EndIf - $avArray = $avNewArray - SetError(0) - Return 1 -EndFunc ;==>__GUICtrlListView_ArrayDelete - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_BeginUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__LISTVIEWCONSTANT_WM_SETREDRAW, False) = 0 -EndFunc ;==>_GUICtrlListView_BeginUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_CancelEditLabel($hWnd) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $LVM_CANCELEDITLABEL) - Else - GUICtrlSendMsg($hWnd, $LVM_CANCELEDITLABEL, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_CancelEditLabel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlListView_ClickItem($hWnd, $iIndex, $sButton = "left", $bMove = False, $iClicks = 1, $iSpeed = 1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _GUICtrlListView_EnsureVisible($hWnd, $iIndex, False) - Local $tRECT = _GUICtrlListView_GetItemRectEx($hWnd, $iIndex, $LVIR_LABEL) - Local $tPoint = _WinAPI_PointFromRect($tRECT, True) - $tPoint = _WinAPI_ClientToScreen($hWnd, $tPoint) - Local $iX, $iY - _WinAPI_GetXYFromPoint($tPoint, $iX, $iY) - Local $iMode = Opt("MouseCoordMode", 1) - If Not $bMove Then - Local $aPos = MouseGetPos() - _WinAPI_ShowCursor(False) - MouseClick($sButton, $iX, $iY, $iClicks, $iSpeed) - MouseMove($aPos[0], $aPos[1], 0) - _WinAPI_ShowCursor(True) - Else - MouseClick($sButton, $iX, $iY, $iClicks, $iSpeed) - EndIf - Opt("MouseCoordMode", $iMode) -EndFunc ;==>_GUICtrlListView_ClickItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_CopyItems($hWnd_Source, $hWnd_Destination, $bDelFlag = False) - Local $a_Indices, $tItem = DllStructCreate($tagLVITEM), $iIndex - Local $iCols = _GUICtrlListView_GetColumnCount($hWnd_Source) - - Local $iItems = _GUICtrlListView_GetItemCount($hWnd_Source) - _GUICtrlListView_BeginUpdate($hWnd_Source) - _GUICtrlListView_BeginUpdate($hWnd_Destination) - If BitAND(_GUICtrlListView_GetExtendedListViewStyle($hWnd_Source), $LVS_EX_CHECKBOXES) == $LVS_EX_CHECKBOXES Then - For $i = 0 To $iItems - 1 - If (_GUICtrlListView_GetItemChecked($hWnd_Source, $i)) Then - If IsArray($a_Indices) Then - ReDim $a_Indices[UBound($a_Indices) + 1] - Else - Local $a_Indices[2] - EndIf - $a_Indices[0] = $a_Indices[0] + 1 - $a_Indices[UBound($a_Indices) - 1] = $i - EndIf - Next - - If (IsArray($a_Indices)) Then - For $i = 1 To $a_Indices[0] - DllStructSetData($tItem, "Mask", BitOR($LVIF_GROUPID, $LVIF_IMAGE, $LVIF_INDENT, $LVIF_PARAM, $LVIF_STATE)) - DllStructSetData($tItem, "Item", $a_Indices[$i]) - DllStructSetData($tItem, "SubItem", 0) - DllStructSetData($tItem, "StateMask", -1) - _GUICtrlListView_GetItemEx($hWnd_Source, $tItem) - $iIndex = _GUICtrlListView_AddItem($hWnd_Destination, _GUICtrlListView_GetItemText($hWnd_Source, $a_Indices[$i], 0), DllStructGetData($tItem, "Image")) - _GUICtrlListView_SetItemChecked($hWnd_Destination, $iIndex) - For $x = 1 To $iCols - 1 - DllStructSetData($tItem, "Item", $a_Indices[$i]) - DllStructSetData($tItem, "SubItem", $x) - _GUICtrlListView_GetItemEx($hWnd_Source, $tItem) - _GUICtrlListView_AddSubItem($hWnd_Destination, $iIndex, _GUICtrlListView_GetItemText($hWnd_Source, $a_Indices[$i], $x), $x, DllStructGetData($tItem, "Image")) - Next - ;_GUICtrlListView_SetItemChecked($hWnd_Source, $a_Indices[$i], False) - Next - If $bDelFlag Then - For $i = $a_Indices[0] To 1 Step -1 - _GUICtrlListView_DeleteItem($hWnd_Source, $a_Indices[$i]) - Next - EndIf - EndIf - EndIf - If (_GUICtrlListView_GetSelectedCount($hWnd_Source)) Then - $a_Indices = _GUICtrlListView_GetSelectedIndices($hWnd_Source, 1) - For $i = 1 To $a_Indices[0] - DllStructSetData($tItem, "Mask", BitOR($LVIF_GROUPID, $LVIF_IMAGE, $LVIF_INDENT, $LVIF_PARAM, $LVIF_STATE)) - DllStructSetData($tItem, "Item", $a_Indices[$i]) - DllStructSetData($tItem, "SubItem", 0) - DllStructSetData($tItem, "StateMask", -1) - _GUICtrlListView_GetItemEx($hWnd_Source, $tItem) - $iIndex = _GUICtrlListView_AddItem($hWnd_Destination, _GUICtrlListView_GetItemText($hWnd_Source, $a_Indices[$i], 0), DllStructGetData($tItem, "Image")) - For $x = 1 To $iCols - 1 - DllStructSetData($tItem, "Item", $a_Indices[$i]) - DllStructSetData($tItem, "SubItem", $x) - _GUICtrlListView_GetItemEx($hWnd_Source, $tItem) - _GUICtrlListView_AddSubItem($hWnd_Destination, $iIndex, _GUICtrlListView_GetItemText($hWnd_Source, $a_Indices[$i], $x), $x, DllStructGetData($tItem, "Image")) - Next - Next - _GUICtrlListView_SetItemSelected($hWnd_Source, -1, False) - If $bDelFlag Then - For $i = $a_Indices[0] To 1 Step -1 - _GUICtrlListView_DeleteItem($hWnd_Source, $a_Indices[$i]) - Next - EndIf - EndIf - _GUICtrlListView_EndUpdate($hWnd_Source) - _GUICtrlListView_EndUpdate($hWnd_Destination) -EndFunc ;==>_GUICtrlListView_CopyItems - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlListView_Create($hWnd, $sHeaderText, $iX, $iY, $iWidth = 150, $iHeight = 150, $iStyle = 0x0000000D, $iExStyle = 0x00000000, $bCoInit = False) - If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0) ; Invalid Window handle for _GUICtrlListViewCreate 1st parameter - If Not IsString($sHeaderText) Then Return SetError(2, 0, 0) ; 2nd parameter not a string for _GUICtrlListViewCreate - - If $iWidth = -1 Then $iWidth = 150 - If $iHeight = -1 Then $iHeight = 150 - If $iStyle = -1 Then $iStyle = $LVS_DEFAULT - If $iExStyle = -1 Then $iExStyle = 0x00000000 - - Local Const $S_OK = 0x0 - Local Const $S_FALSE = 0x1 - Local Const $RPC_E_CHANGED_MODE = 0x80010106 - Local Const $E_INVALIDARG = 0x80070057 - Local Const $E_OUTOFMEMORY = 0x8007000E - Local Const $E_UNEXPECTED = 0x8000FFFF - Local $sSeparatorChar = Opt('GUIDataSeparatorChar') - ;====================================== - Local Const $COINIT_APARTMENTTHREADED = 0x02 - ;====================================== - Local $iStr_len = StringLen($sHeaderText) - If $iStr_len Then $sHeaderText = StringSplit($sHeaderText, $sSeparatorChar) - - $iStyle = BitOR($__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE, $iStyle) - - ;========================================================================================================= - If $bCoInit Then - Local $aResult = DllCall('ole32.dll', 'long', 'CoInitializeEx', 'ptr', 0, 'dword', $COINIT_APARTMENTTHREADED) - If @error Then Return SetError(@error, @extended, 0) - Switch $aResult[0] - Case $S_OK - Case $S_FALSE - Case $RPC_E_CHANGED_MODE - ; "-->or the thread that called CoInitializeEx currently belongs to the neutral threaded apartment.") - Case $E_INVALIDARG - Case $E_OUTOFMEMORY - Case $E_UNEXPECTED - EndSwitch - EndIf - ;========================================================================================================= - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hList = _WinAPI_CreateWindowEx($iExStyle, $__LISTVIEWCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _SendMessage($hList, $__LISTVIEWCONSTANT_WM_SETFONT, _WinAPI_GetStockObject($__LISTVIEWCONSTANT_DEFAULT_GUI_FONT), True) - If $iStr_len Then - For $x = 1 To $sHeaderText[0] - _GUICtrlListView_InsertColumn($hList, $x - 1, $sHeaderText[$x], 75) - Next - EndIf - Return $hList -EndFunc ;==>_GUICtrlListView_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_CreateDragImage($hWnd, $iIndex) - Local $aDrag[3] - - Local $tPoint = DllStructCreate($tagPOINT) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $aDrag[0] = _SendMessage($hWnd, $LVM_CREATEDRAGIMAGE, $iIndex, $tPoint, 0, "wparam", "struct*", "handle") - Else - Local $iPoint = DllStructGetSize($tPoint) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iPoint, $tMemMap) - $aDrag[0] = _SendMessage($hWnd, $LVM_CREATEDRAGIMAGE, $iIndex, $pMemory, 0, "wparam", "ptr", "handle") - _MemRead($tMemMap, $pMemory, $tPoint, $iPoint) - _MemFree($tMemMap) - EndIf - Else - $aDrag[0] = Ptr(GUICtrlSendMsg($hWnd, $LVM_CREATEDRAGIMAGE, $iIndex, DllStructGetPtr($tPoint))) - EndIf - $aDrag[1] = DllStructGetData($tPoint, "X") - $aDrag[2] = DllStructGetData($tPoint, "Y") - Return $aDrag -EndFunc ;==>_GUICtrlListView_CreateDragImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_CreateSolidBitMap($hWnd, $iColor, $iWidth, $iHeight) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Return _WinAPI_CreateSolidBitmap($hWnd, $iColor, $iWidth, $iHeight) -EndFunc ;==>_GUICtrlListView_CreateSolidBitMap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Melba23 -; =============================================================================================================================== -Func _GUICtrlListView_DeleteAllItems($hWnd) - ; Check if deletion necessary - If _GUICtrlListView_GetItemCount($hWnd) = 0 Then Return True - ; Determine ListView type - Local $vCID = 0 - If IsHWnd($hWnd) Then - ; Check ListView ControlID to detect UDF control - $vCID = _WinAPI_GetDlgCtrlID($hWnd) - Else - $vCID = $hWnd - ; Get ListView handle - $hWnd = GUICtrlGetHandle($hWnd) - EndIf - ; If native ListView - could be either type of item - If $vCID < $_UDF_STARTID Then - ; Try deleting as native items - Local $iParam = 0 - For $iIndex = _GUICtrlListView_GetItemCount($hWnd) - 1 To 0 Step -1 - $iParam = _GUICtrlListView_GetItemParam($hWnd, $iIndex) - ; Check if LV item - If GUICtrlGetState($iParam) > 0 And GUICtrlGetHandle($iParam) = 0 Then - GUICtrlDelete($iParam) - EndIf - Next - ; Return if no items left - If _GUICtrlListView_GetItemCount($hWnd) = 0 Then Return True - EndIf - ; Has to be UDF Listview and/or UDF items - Return _SendMessage($hWnd, $LVM_DELETEALLITEMS) <> 0 -EndFunc ;==>_GUICtrlListView_DeleteAllItems - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_DeleteColumn($hWnd, $iCol) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_DELETECOLUMN, $iCol) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_DELETECOLUMN, $iCol, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_DeleteColumn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Melba23 -; =============================================================================================================================== -Func _GUICtrlListView_DeleteItem($hWnd, $iIndex) - ; Determine ListView type - Local $vCID = 0 - If IsHWnd($hWnd) Then - ; Check if the ListView has a ControlID - $vCID = _WinAPI_GetDlgCtrlID($hWnd) - Else - $vCID = $hWnd - ; Get ListView handle - $hWnd = GUICtrlGetHandle($hWnd) - EndIf - ; If native ListView - could be either type of item - If $vCID < $_UDF_STARTID Then - ; Try deleting as native item - Local $iParam = _GUICtrlListView_GetItemParam($hWnd, $iIndex) - ; Check if LV item - If GUICtrlGetState($iParam) > 0 And GUICtrlGetHandle($iParam) = 0 Then - If GUICtrlDelete($iParam) Then - Return True - EndIf - EndIf - EndIf - ; Has to be UDF Listview and/or UDF item - Return _SendMessage($hWnd, $LVM_DELETEITEM, $iIndex) <> 0 -EndFunc ;==>_GUICtrlListView_DeleteItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Melba23 -; =============================================================================================================================== -Func _GUICtrlListView_DeleteItemsSelected($hWnd) - Local $iItemCount = _GUICtrlListView_GetItemCount($hWnd) - ; Delete all? - If _GUICtrlListView_GetSelectedCount($hWnd) = $iItemCount Then - Return _GUICtrlListView_DeleteAllItems($hWnd) - Else - Local $aSelected = _GUICtrlListView_GetSelectedIndices($hWnd, True) - If Not IsArray($aSelected) Then Return SetError($LV_ERR, $LV_ERR, 0) - ; Unselect all items - _GUICtrlListView_SetItemSelected($hWnd, -1, False) - ; Determine ListView type - Local $vCID = 0, $iNative_Delete, $iUDF_Delete - If IsHWnd($hWnd) Then - ; Check if the ListView has a ControlID - $vCID = _WinAPI_GetDlgCtrlID($hWnd) - Else - $vCID = $hWnd - ; Get ListView handle - $hWnd = GUICtrlGetHandle($hWnd) - EndIf - ; Loop through items - For $iIndex = $aSelected[0] To 1 Step -1 - ; If native ListView - could be either type of item - If $vCID < $_UDF_STARTID Then - ; Try deleting as native item - Local $iParam = _GUICtrlListView_GetItemParam($hWnd, $aSelected[$iIndex]) - ; Check if LV item - If GUICtrlGetState($iParam) > 0 And GUICtrlGetHandle($iParam) = 0 Then - ; Delete native item - $iNative_Delete = GUICtrlDelete($iParam) - ; If deletion successful move to next - If $iNative_Delete Then ContinueLoop - EndIf - EndIf - ; Has to be UDF Listview and/or UDF item - $iUDF_Delete = _SendMessage($hWnd, $LVM_DELETEITEM, $aSelected[$iIndex]) - ; Check for failed deletion - If $iNative_Delete + $iUDF_Delete = 0 Then - ; $iIndex will be > 0 - ExitLoop - EndIf - Next - ; If all deleted return True; else return False - Return Not $iIndex - EndIf -EndFunc ;==>_GUICtrlListView_DeleteItemsSelected - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__LISTVIEWCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlListView_Destroy - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_Draw -; Description ...: Draws an image list item in the specified device context -; Syntax.........: __GUICtrlListView_Draw ($hWnd, $iIndex, $hDC, $iX, $iY [, $iStyle=0] ) -; Parameters ....: $hWnd - Handle to the control -; $iIndex - Zero based index of the image to draw -; $hDC - Handle to the destination device context -; $iX - X coordinate where the image will be drawn -; $iY - Y coordinate where the image will be drawn -; $iStyle - Drawing style and overlay image: -; |1 - Draws the image transparently using the mask, regardless of the background color -; |2 - Draws the image, blending 25 percent with the system highlight color -; |4 - Draws the image, blending 50 percent with the system highlight color -; |8 - Draws the mask -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func __GUICtrlListView_Draw($hWnd, $iIndex, $hDC, $iX, $iY, $iStyle = 0) - Local $iFlags = 0 - - If BitAND($iStyle, 1) <> 0 Then $iFlags = BitOR($iFlags, $__LISTVIEWCONSTANT_ILD_TRANSPARENT) - If BitAND($iStyle, 2) <> 0 Then $iFlags = BitOR($iFlags, $__LISTVIEWCONSTANT_ILD_BLEND25) - If BitAND($iStyle, 4) <> 0 Then $iFlags = BitOR($iFlags, $__LISTVIEWCONSTANT_ILD_BLEND50) - If BitAND($iStyle, 8) <> 0 Then $iFlags = BitOR($iFlags, $__LISTVIEWCONSTANT_ILD_MASK) - Local $aResult = DllCall("comctl32.dll", "bool", "ImageList_Draw", "handle", $hWnd, "int", $iIndex, "handle", $hDC, "int", $iX, "int", $iY, "uint", $iFlags) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>__GUICtrlListView_Draw - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_DrawDragImage(ByRef $hWnd, ByRef $aDrag) - Local $hDC = _WinAPI_GetWindowDC($hWnd) - Local $tPoint = _WinAPI_GetMousePos(True, $hWnd) - _WinAPI_InvalidateRect($hWnd) - __GUICtrlListView_Draw($aDrag[0], 0, $hDC, DllStructGetData($tPoint, "X"), DllStructGetData($tPoint, "Y")) - _WinAPI_ReleaseDC($hWnd, $hDC) -EndFunc ;==>_GUICtrlListView_DrawDragImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_EditLabel($hWnd, $iIndex) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $aResult - If IsHWnd($hWnd) Then - $aResult = DllCall("user32.dll", "hwnd", "SetFocus", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - If $aResult = 0 Then Return 0 - - If $bUnicode Then - Return _SendMessage($hWnd, $LVM_EDITLABELW, $iIndex, 0, 0, "wparam", "lparam", "hwnd") - Else - Return _SendMessage($hWnd, $LVM_EDITLABEL, $iIndex, 0, 0, "wparam", "lparam", "hwnd") - EndIf - Else - $aResult = DllCall("user32.dll", "hwnd", "SetFocus", "hwnd", GUICtrlGetHandle($hWnd)) - If @error Then Return SetError(@error, @extended, 0) - If $aResult = 0 Then Return 0 - - If $bUnicode Then - Return HWnd(GUICtrlSendMsg($hWnd, $LVM_EDITLABELW, $iIndex, 0)) - Else - Return HWnd(GUICtrlSendMsg($hWnd, $LVM_EDITLABEL, $iIndex, 0)) - EndIf - EndIf -EndFunc ;==>_GUICtrlListView_EditLabel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_EnableGroupView($hWnd, $bEnable = True) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_ENABLEGROUPVIEW, $bEnable) - Else - Return GUICtrlSendMsg($hWnd, $LVM_ENABLEGROUPVIEW, $bEnable, 0) - EndIf -EndFunc ;==>_GUICtrlListView_EnableGroupView - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_EndUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__LISTVIEWCONSTANT_WM_SETREDRAW, True) = 0 -EndFunc ;==>_GUICtrlListView_EndUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_EnsureVisible($hWnd, $iIndex, $bPartialOK = False) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_ENSUREVISIBLE, $iIndex, $bPartialOK) - Else - Return GUICtrlSendMsg($hWnd, $LVM_ENSUREVISIBLE, $iIndex, $bPartialOK) - EndIf -EndFunc ;==>_GUICtrlListView_EnsureVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (added reverse search) -; =============================================================================================================================== -Func _GUICtrlListView_FindInText($hWnd, $sText, $iStart = -1, $bWrapOK = True, $bReverse = False) - Local $iCount = _GUICtrlListView_GetItemCount($hWnd) - Local $iColumns = _GUICtrlListView_GetColumnCount($hWnd) - If $iColumns = 0 Then $iColumns = 1 - - If $bReverse And $iStart = -1 Then Return -1 - - Local $sList - If $bReverse Then - For $iI = $iStart - 1 To 0 Step -1 - For $iJ = 0 To $iColumns - 1 - $sList = _GUICtrlListView_GetItemText($hWnd, $iI, $iJ) - If StringInStr($sList, $sText) Then Return $iI - Next - Next - Else - For $iI = $iStart + 1 To $iCount - 1 - For $iJ = 0 To $iColumns - 1 - $sList = _GUICtrlListView_GetItemText($hWnd, $iI, $iJ) - If StringInStr($sList, $sText) Then Return $iI - Next - Next - EndIf - - If (($iStart = -1) Or Not $bWrapOK) And Not $bReverse Then Return -1 - - If $bReverse And $bWrapOK Then - For $iI = $iCount - 1 To $iStart + 1 Step -1 - For $iJ = 0 To $iColumns - 1 - $sList = _GUICtrlListView_GetItemText($hWnd, $iI, $iJ) - If StringInStr($sList, $sText) Then Return $iI - Next - Next - Else - For $iI = 0 To $iStart - 1 - For $iJ = 0 To $iColumns - 1 - $sList = _GUICtrlListView_GetItemText($hWnd, $iI, $iJ) - If StringInStr($sList, $sText) Then Return $iI - Next - Next - EndIf - - Return -1 -EndFunc ;==>_GUICtrlListView_FindInText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_FindItem($hWnd, $iStart, ByRef $tFindInfo, $sText = "") - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - Local $pBuffer = DllStructGetPtr($tBuffer) - DllStructSetData($tBuffer, "Text", $sText) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tFindInfo, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $LVM_FINDITEM, $iStart, $tFindInfo, 0, "wparam", "struct*") - Else - Local $iFindInfo = DllStructGetSize($tFindInfo) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iFindInfo + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iFindInfo - DllStructSetData($tFindInfo, "Text", $pText) - _MemWrite($tMemMap, $tFindInfo, $pMemory, $iFindInfo) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - $iRet = _SendMessage($hWnd, $LVM_FINDITEM, $iStart, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - DllStructSetData($tFindInfo, "Text", $pBuffer) - $iRet = GUICtrlSendMsg($hWnd, $LVM_FINDITEM, $iStart, DllStructGetPtr($tFindInfo)) - EndIf - Return $iRet -EndFunc ;==>_GUICtrlListView_FindItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_FindNearest($hWnd, $iX, $iY, $iDir = 0, $iStart = -1, $bWrapOK = True) - Local $aDir[8] = [$__LISTVIEWCONSTANT_VK_LEFT, $__LISTVIEWCONSTANT_VK_RIGHT, $__LISTVIEWCONSTANT_VK_UP, $__LISTVIEWCONSTANT_VK_DOWN, $__LISTVIEWCONSTANT_VK_HOME, $__LISTVIEWCONSTANT_VK_END, $__LISTVIEWCONSTANT_VK_PRIOR, $__LISTVIEWCONSTANT_VK_NEXT] - - Local $tFindInfo = DllStructCreate($tagLVFINDINFO) - Local $iFlags = $LVFI_NEARESTXY - If $bWrapOK Then $iFlags = BitOR($iFlags, $LVFI_WRAP) - DllStructSetData($tFindInfo, "Flags", $iFlags) - DllStructSetData($tFindInfo, "X", $iX) - DllStructSetData($tFindInfo, "Y", $iY) - DllStructSetData($tFindInfo, "Direction", $aDir[$iDir]) - Return _GUICtrlListView_FindItem($hWnd, $iStart, $tFindInfo) -EndFunc ;==>_GUICtrlListView_FindNearest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_FindParam($hWnd, $iParam, $iStart = -1) - Local $tFindInfo = DllStructCreate($tagLVFINDINFO) - DllStructSetData($tFindInfo, "Flags", $LVFI_PARAM) - DllStructSetData($tFindInfo, "Param", $iParam) - Return _GUICtrlListView_FindItem($hWnd, $iStart, $tFindInfo) -EndFunc ;==>_GUICtrlListView_FindParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_FindText($hWnd, $sText, $iStart = -1, $bPartialOK = True, $bWrapOK = True) - Local $tFindInfo = DllStructCreate($tagLVFINDINFO) - Local $iFlags = $LVFI_STRING - If $bPartialOK Then $iFlags = BitOR($iFlags, $LVFI_PARTIAL) - If $bWrapOK Then $iFlags = BitOR($iFlags, $LVFI_WRAP) - DllStructSetData($tFindInfo, "Flags", $iFlags) - Return _GUICtrlListView_FindItem($hWnd, $iStart, $tFindInfo, $sText) -EndFunc ;==>_GUICtrlListView_FindText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetBkColor($hWnd) - Local $i_Color - If IsHWnd($hWnd) Then - $i_Color = _SendMessage($hWnd, $LVM_GETBKCOLOR) - Else - $i_Color = GUICtrlSendMsg($hWnd, $LVM_GETBKCOLOR, 0, 0) - EndIf - Return __GUICtrlListView_ReverseColorOrder($i_Color) -EndFunc ;==>_GUICtrlListView_GetBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetBkImage($hWnd) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[4096]") - Else - $tBuffer = DllStructCreate("char Text[4096]") - EndIf - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tImage = DllStructCreate($tagLVBKIMAGE) - DllStructSetData($tImage, "ImageMax", 4096) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tImage, "Image", $pBuffer) - $iRet = _SendMessage($hWnd, $LVM_GETBKIMAGEW, 0, $tImage, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $iImage = DllStructGetSize($tImage) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iImage + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iImage - DllStructSetData($tImage, "Image", $pText) - _MemWrite($tMemMap, $tImage, $pMemory, $iImage) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_GETBKIMAGEW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_GETBKIMAGEA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tImage, $iImage) - _MemRead($tMemMap, $pText, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - Local $pImage = DllStructGetPtr($tImage) - DllStructSetData($tImage, "Image", $pBuffer) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETBKIMAGEW, 0, $pImage) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETBKIMAGEA, 0, $pImage) - EndIf - EndIf - Local $aImage[4] - Switch BitAND(DllStructGetData($tImage, "Flags"), $LVBKIF_SOURCE_MASK) - Case $LVBKIF_SOURCE_HBITMAP - $aImage[0] = 1 - Case $LVBKIF_SOURCE_URL - $aImage[0] = 2 - EndSwitch - $aImage[1] = DllStructGetData($tBuffer, "Text") - $aImage[2] = DllStructGetData($tImage, "XOffPercent") - $aImage[3] = DllStructGetData($tImage, "YOffPercent") - Return SetError($iRet <> 0, 0, $aImage) -EndFunc ;==>_GUICtrlListView_GetBkImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetCallbackMask($hWnd) - Local $iFlags = 0 - Local $iMask = _SendMessage($hWnd, $LVM_GETCALLBACKMASK) - If BitAND($iMask, $LVIS_CUT) <> 0 Then $iFlags = BitOR($iFlags, 1) - If BitAND($iMask, $LVIS_DROPHILITED) <> 0 Then $iFlags = BitOR($iFlags, 2) - If BitAND($iMask, $LVIS_FOCUSED) <> 0 Then $iFlags = BitOR($iFlags, 4) - If BitAND($iMask, $LVIS_SELECTED) <> 0 Then $iFlags = BitOR($iFlags, 8) - If BitAND($iMask, $LVIS_OVERLAYMASK) <> 0 Then $iFlags = BitOR($iFlags, 16) - If BitAND($iMask, $LVIS_STATEIMAGEMASK) <> 0 Then $iFlags = BitOR($iFlags, 32) - Return $iFlags -EndFunc ;==>_GUICtrlListView_GetCallbackMask - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetColumn($hWnd, $iIndex) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[4096]") - Else - $tBuffer = DllStructCreate("char Text[4096]") - EndIf - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tColumn = DllStructCreate($tagLVCOLUMN) - DllStructSetData($tColumn, "Mask", $LVCF_ALLDATA) - DllStructSetData($tColumn, "TextMax", 4096) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tColumn, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $LVM_GETCOLUMNW, $iIndex, $tColumn, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $iColumn = DllStructGetSize($tColumn) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iColumn + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iColumn - DllStructSetData($tColumn, "Text", $pText) - _MemWrite($tMemMap, $tColumn, $pMemory, $iColumn) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_GETCOLUMNW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_GETCOLUMNA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tColumn, $iColumn) - _MemRead($tMemMap, $pText, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - Local $pColumn = DllStructGetPtr($tColumn) - DllStructSetData($tColumn, "Text", $pBuffer) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETCOLUMNW, $iIndex, $pColumn) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETCOLUMNA, $iIndex, $pColumn) - EndIf - EndIf - Local $aColumn[9] - Switch BitAND(DllStructGetData($tColumn, "Fmt"), $LVCFMT_JUSTIFYMASK) - Case $LVCFMT_RIGHT - $aColumn[0] = 1 - Case $LVCFMT_CENTER - $aColumn[0] = 2 - Case Else - $aColumn[0] = 0 - EndSwitch - $aColumn[1] = BitAND(DllStructGetData($tColumn, "Fmt"), $LVCFMT_IMAGE) <> 0 - $aColumn[2] = BitAND(DllStructGetData($tColumn, "Fmt"), $LVCFMT_BITMAP_ON_RIGHT) <> 0 - $aColumn[3] = BitAND(DllStructGetData($tColumn, "Fmt"), $LVCFMT_COL_HAS_IMAGES) <> 0 - $aColumn[4] = DllStructGetData($tColumn, "CX") - $aColumn[5] = DllStructGetData($tBuffer, "Text") - $aColumn[6] = DllStructGetData($tColumn, "SubItem") - $aColumn[7] = DllStructGetData($tColumn, "Image") - $aColumn[8] = DllStructGetData($tColumn, "Order") - Return SetError($iRet = 0, 0, $aColumn) -EndFunc ;==>_GUICtrlListView_GetColumn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetColumnCount($hWnd) - ;Local Const $HDM_GETITEMCOUNT = 0x1200 - Return _SendMessage(_GUICtrlListView_GetHeader($hWnd), 0x1200) -EndFunc ;==>_GUICtrlListView_GetColumnCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetColumnOrder($hWnd) - Local $a_Cols = _GUICtrlListView_GetColumnOrderArray($hWnd), $s_Cols = "" - Local $sSeparatorChar = Opt('GUIDataSeparatorChar') - For $i = 1 To $a_Cols[0] - $s_Cols &= $a_Cols[$i] & $sSeparatorChar - Next - $s_Cols = StringTrimRight($s_Cols, 1) - Return $s_Cols -EndFunc ;==>_GUICtrlListView_GetColumnOrder - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetColumnOrderArray($hWnd) - Local $iColumns = _GUICtrlListView_GetColumnCount($hWnd) - Local $tBuffer = DllStructCreate("int[" & $iColumns & "]") - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - _SendMessage($hWnd, $LVM_GETCOLUMNORDERARRAY, $iColumns, $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _SendMessage($hWnd, $LVM_GETCOLUMNORDERARRAY, $iColumns, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $LVM_GETCOLUMNORDERARRAY, $iColumns, DllStructGetPtr($tBuffer)) - EndIf - - Local $aBuffer[$iColumns + 1] - $aBuffer[0] = $iColumns - For $iI = 1 To $iColumns - $aBuffer[$iI] = DllStructGetData($tBuffer, 1, $iI) - Next - Return $aBuffer -EndFunc ;==>_GUICtrlListView_GetColumnOrderArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetColumnWidth($hWnd, $iCol) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETCOLUMNWIDTH, $iCol) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETCOLUMNWIDTH, $iCol, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetColumnWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetCounterPage($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETCOUNTPERPAGE) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETCOUNTPERPAGE, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetCounterPage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetEditControl($hWnd) - If IsHWnd($hWnd) Then - Return HWnd(_SendMessage($hWnd, $LVM_GETEDITCONTROL)) - Else - Return HWnd(GUICtrlSendMsg($hWnd, $LVM_GETEDITCONTROL, 0, 0)) - EndIf -EndFunc ;==>_GUICtrlListView_GetEditControl - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_GetEmptyText -; Description ...: Gets the text meant for display when the list-view control appears empty -; Syntax.........: _GUICtrlListView_GetEmptyText ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: Success - Text meant for display when the list-view control appears emtpy -; Failure - "" -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: Minimum OS: Windows Vista -; Related .......: -; Link ..........: @@MsdnLink@@ LVM_GETEMPTYTEXT -; Example .......: Yes -; =============================================================================================================================== -Func _GUICtrlListView_GetEmptyText($hWnd) - Local $tText = DllStructCreate("char[4096]") - Local $iRet - - If IsHWnd($hWnd) Then - Local $iText = DllStructGetSize($tText) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iText + 4096, $tMemMap) - Local $pText = $pMemory + $iText - DllStructSetData($tText, "Text", $pText) - _MemWrite($tMemMap, $pText, $pMemory, $iText) - $iRet = _SendMessage($hWnd, $LVM_GETEMPTYTEXT, 4096, $pMemory) - _MemRead($tMemMap, $pText, $tText, 4096) - _MemFree($tMemMap) - If $iRet = 0 Then Return SetError(-1, 0, "") - Return DllStructGetData($tText, 1) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETEMPTYTEXT, 4096, DllStructGetPtr($tText)) - If $iRet = 0 Then Return SetError(-1, 0, "") - Return DllStructGetData($tText, 1) - EndIf -EndFunc ;==>_GUICtrlListView_GetEmptyText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetExtendedListViewStyle($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETEXTENDEDLISTVIEWSTYLE) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetExtendedListViewStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetFocusedGroup($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETFOCUSEDGROUP) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETFOCUSEDGROUP, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetFocusedGroup - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetGroupCount($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETGROUPCOUNT) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETGROUPCOUNT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetGroupCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost), guinness - Replaced retrieving the header and alignment code with __GUICtrlListView_GetGroupInfoEx. -; =============================================================================================================================== -Func _GUICtrlListView_GetGroupInfo($hWnd, $iGroupID) - Local $tGroup = __GUICtrlListView_GetGroupInfoEx($hWnd, $iGroupID, BitOR($LVGF_HEADER, $LVGF_ALIGN)) - Local $iErr = @error - Local $aGroup[2] - $aGroup[0] = _WinAPI_WideCharToMultiByte(DllStructGetData($tGroup, "Header")) - Select - Case BitAND(DllStructGetData($tGroup, "Align"), $LVGA_HEADER_CENTER) <> 0 - $aGroup[1] = 1 - Case BitAND(DllStructGetData($tGroup, "Align"), $LVGA_HEADER_RIGHT) <> 0 - $aGroup[1] = 2 - Case Else - $aGroup[1] = 0 - EndSelect - Return SetError($iErr, 0, $aGroup) -EndFunc ;==>_GUICtrlListView_GetGroupInfo - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name ..........: __GUICtrlListView_GetGroupInfoEx -; Description ...: Retrieves group information -; Syntax ........: __GUICtrlListView_GetGroupInfoEx($hWnd, $iGroupID, $iMask) -; Parameters ....: $hWnd - Handle to the control -; $iGroupID - ID that specifies the group whose information is retrieved -; $iMask - Can be a combination of the following: -; |$LVGF_NONENo other items are valid. -; |$LVGF_HEADER -; |$LVGF_FOOTER -; |$LVGF_STATE -; |$LVGF_ALIGN -; |$LVGF_GROUPID -; |$LVGF_SUBTITLE -; |$LVGF_TASK -; |$LVGF_DESCRIPTIONTOP -; |$LVGF_DESCRIPTIONBOTTOM -; |$LVGF_TITLEIMAGE -; |$LVGF_EXTENDEDIMAGE -; |$LVGF_ITEMS -; |$LVGF_SUBSET -; |$LVGF_SUBSETITEMS -; Return values .: Success - $tagLVGROUP structure -; Author ........: Paul Campbell (PaulIA) -; Modified.......: guinness -; Remarks .......: This function is used internally and should not normally be called -; Related .......: $tagLVGROUP -; Link ..........: -; Example .......: No -; =============================================================================================================================== -Func __GUICtrlListView_GetGroupInfoEx($hWnd, $iGroupID, $iMask) - Local $tGroup = DllStructCreate($tagLVGROUP) - Local $iGroup = DllStructGetSize($tGroup) - DllStructSetData($tGroup, "Size", $iGroup) - DllStructSetData($tGroup, "Mask", $iMask) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_GETGROUPINFO, $iGroupID, $tGroup, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iGroup, $tMemMap) - _MemWrite($tMemMap, $tGroup, $pMemory, $iGroup) - $iRet = _SendMessage($hWnd, $LVM_GETGROUPINFO, $iGroupID, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tGroup, $iGroup) - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETGROUPINFO, $iGroupID, DllStructGetPtr($tGroup)) - EndIf - Return SetError($iRet <> $iGroupID, 0, $tGroup) -EndFunc ;==>__GUICtrlListView_GetGroupInfoEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: Matt Diesel (Mat) #2726 - Added group id to returned array. -; =============================================================================================================================== -Func _GUICtrlListView_GetGroupInfoByIndex($hWnd, $iIndex) - Local $tGroup = DllStructCreate($tagLVGROUP) - Local $iGroup = DllStructGetSize($tGroup) - DllStructSetData($tGroup, "Size", $iGroup) - DllStructSetData($tGroup, "Mask", BitOR($LVGF_HEADER, $LVGF_ALIGN, $LVGF_GROUPID)) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_GETGROUPINFOBYINDEX, $iIndex, $tGroup, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iGroup, $tMemMap) - _MemWrite($tMemMap, $tGroup, $pMemory, $iGroup) - $iRet = _SendMessage($hWnd, $LVM_GETGROUPINFOBYINDEX, $iIndex, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tGroup, $iGroup) - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETGROUPINFOBYINDEX, $iIndex, DllStructGetPtr($tGroup)) - EndIf - Local $aGroup[3] - $aGroup[0] = _WinAPI_WideCharToMultiByte(DllStructGetData($tGroup, "Header")) - Select - Case BitAND(DllStructGetData($tGroup, "Align"), $LVGA_HEADER_CENTER) <> 0 - $aGroup[1] = 1 - Case BitAND(DllStructGetData($tGroup, "Align"), $LVGA_HEADER_RIGHT) <> 0 - $aGroup[1] = 2 - Case Else - $aGroup[1] = 0 - EndSelect - $aGroup[2] = DllStructGetData($tGroup, "GroupID") - Return SetError($iRet = 0, 0, $aGroup) -EndFunc ;==>_GUICtrlListView_GetGroupInfoByIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetGroupRect($hWnd, $iGroupID, $iGet = $LVGGR_GROUP) - Local $tGroup = DllStructCreate($tagRECT) - DllStructSetData($tGroup, "Top", $iGet) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_GETGROUPRECT, $iGroupID, $tGroup, 0, "wparam", "struct*") - Else - Local $iGroup = DllStructGetSize($tGroup) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iGroup, $tMemMap) - _MemWrite($tMemMap, $tGroup, $pMemory, $iGroup) - $iRet = _SendMessage($hWnd, $LVM_GETGROUPRECT, $iGroupID, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tGroup, $iGroup) - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETGROUPRECT, $iGroupID, DllStructGetPtr($tGroup)) - EndIf - Local $aGroup[4] - For $x = 0 To 3 - $aGroup[$x] = DllStructGetData($tGroup, $x + 1) - Next - Return SetError($iRet = 0, 0, $aGroup) -EndFunc ;==>_GUICtrlListView_GetGroupRect - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_GetGroupState -; Description ...: Gets the state for a specified group -; Syntax.........: _GUICtrlListView_GetGroupState ( $hWnd, $iGroupID, $iMask ) -; Parameters ....: $hWnd - Handle to the control -; $iGroupID - ID that specifies the group whose information is retrieved -; $iMask - Can be a combination of the following: -; | $LVGS_NORMAL - Groups are expanded, the group name is displayed, and all items in the group are displayed. -; | $LVGS_COLLAPSED - The group is collapsed. -; | $LVGS_HIDDEN - The group is hidden. -; | $LVGS_NOHEADER - The group does not display a header -; | $LVGS_COLLAPSIBLE - The group can be collapsed -; | $LVGS_FOCUSED - The group has keyboard focus -; | $LVGS_SELECTED - The group is selected -; | $LVGS_SUBSETED - The group displays only a portion of its items -; | $LVGS_SUBSETLINKFOCUSED - The subset link of the group has keyboard focus -; Return values .: Success - Returns the combination of state values that are set -; Failure - 0 -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: Minimum operating systems: Windows Vista -; Related .......: -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func _GUICtrlListView_GetGroupState($hWnd, $iGroupID, $iMask) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETGROUPSTATE, $iGroupID, $iMask) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETGROUPSTATE, $iGroupID, $iMask) - EndIf -EndFunc ;==>_GUICtrlListView_GetGroupState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetGroupViewEnabled($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_ISGROUPVIEWENABLED) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_ISGROUPVIEWENABLED, 0, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_GetGroupViewEnabled - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetHeader($hWnd) - If IsHWnd($hWnd) Then - Return HWnd(_SendMessage($hWnd, $LVM_GETHEADER)) - Else - Return HWnd(GUICtrlSendMsg($hWnd, $LVM_GETHEADER, 0, 0)) - EndIf -EndFunc ;==>_GUICtrlListView_GetHeader - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetHotCursor($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETHOTCURSOR, 0, 0, 0, "wparam", "lparam", "handle") - Else - Return Ptr(GUICtrlSendMsg($hWnd, $LVM_GETHOTCURSOR, 0, 0)) - EndIf -EndFunc ;==>_GUICtrlListView_GetHotCursor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetHotItem($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETHOTITEM) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETHOTITEM, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetHotItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetHoverTime($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETHOVERTIME) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETHOVERTIME, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetHoverTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetImageList($hWnd, $iImageList) - Local $aImageList[3] = [$LVSIL_NORMAL, $LVSIL_SMALL, $LVSIL_STATE] - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETIMAGELIST, $aImageList[$iImageList], 0, 0, "wparam", "lparam", "handle") - Else - Return Ptr(GUICtrlSendMsg($hWnd, $LVM_GETIMAGELIST, $aImageList[$iImageList], 0)) - EndIf -EndFunc ;==>_GUICtrlListView_GetImageList - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_GetInsertMark -; Description ...: Retrieves the position of the insertion point -; Syntax.........: _GUICtrlListView_GetInsertMark ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: Success - Array with the following format: -; |[0] - True if the insertion point appears after the item, otherwise False -; |[1] - Item next to which the insertion point appears. If this is -1, there is no insertion point. -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum operating systems Windows XP. -; + -; An insertion point can appear only if the control is in icon view, small icon view, or tile view, -; and is not in group view mode. -; Related .......: _GUICtrlListView_SetInsertMark -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlListView_GetInsertMark($hWnd) - Local $tMark = DllStructCreate($tagLVINSERTMARK) - Local $iMark = DllStructGetSize($tMark) - DllStructSetData($tMark, "Size", $iMark) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_GETINSERTMARK, 0, $tMark, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iMark, $tMemMap) - _MemWrite($tMemMap, $tMark) - $iRet = _SendMessage($hWnd, $LVM_GETINSERTMARK, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tMark, $iMark) - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETINSERTMARK, 0, DllStructGetPtr($tMark)) - EndIf - Local $aMark[2] - $aMark[0] = DllStructGetData($tMark, "Flags") = $LVIM_AFTER - $aMark[1] = DllStructGetData($tMark, "Item") - Return SetError($iRet = 0, 0, $aMark) -EndFunc ;==>_GUICtrlListView_GetInsertMark - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_GetInsertMarkColor -; Description ...: Retrieves the color of the insertion point -; Syntax.........: _GUICtrlListView_GetInsertMarkColor ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: Success - Color of the insertion point -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum operating systems Windows XP. -; Related .......: _GUICtrlListView_SetInsertMarkColor -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlListView_GetInsertMarkColor($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETINSERTMARKCOLOR, $LVSIL_STATE) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETINSERTMARKCOLOR, $LVSIL_STATE, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetInsertMarkColor - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_GetInsertMarkRect -; Description ...: Retrieves the rectangle that bounds the insertion point -; Syntax.........: _GUICtrlListView_GetInsertMarkRect ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: Success - Array with the following format: -; |[0] = True if insertion point found, otherwise False -; |[1] = X coordinate of the upper left corner of the rectangle -; |[2] = Y coordinate of the upper left corner of the rectangle -; |[3] = X coordinate of the lower right corner of the rectangle -; |[4] = Y coordinate of the lower right corner of the rectangle -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum operating systems Windows XP. -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlListView_GetInsertMarkRect($hWnd) - Local $aRect[5] - - Local $tRECT = DllStructCreate($tagRECT) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $aRect[0] = _SendMessage($hWnd, $LVM_GETINSERTMARKRECT, 0, $tRECT, 0, "wparam", "struct*") <> 0 - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - $aRect[0] = _SendMessage($hWnd, $LVM_GETINSERTMARKRECT, 0, $pMemory, 0, "wparam", "ptr") <> 0 - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Else - $aRect[0] = GUICtrlSendMsg($hWnd, $LVM_GETINSERTMARKRECT, 0, DllStructGetPtr($tRECT)) <> 0 - EndIf - $aRect[1] = DllStructGetData($tRECT, "Left") - $aRect[2] = DllStructGetData($tRECT, "Top") - $aRect[3] = DllStructGetData($tRECT, "Right") - $aRect[4] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlListView_GetInsertMarkRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetISearchString($hWnd) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $iBuffer - If IsHWnd($hWnd) Then - If $bUnicode Then - $iBuffer = _SendMessage($hWnd, $LVM_GETISEARCHSTRINGW) + 1 - Else - $iBuffer = _SendMessage($hWnd, $LVM_GETISEARCHSTRINGA) + 1 - EndIf - Else - If $bUnicode Then - $iBuffer = GUICtrlSendMsg($hWnd, $LVM_GETISEARCHSTRINGW, 0, 0) + 1 - Else - $iBuffer = GUICtrlSendMsg($hWnd, $LVM_GETISEARCHSTRINGA, 0, 0) + 1 - EndIf - EndIf - If $iBuffer = 1 Then Return "" - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - _SendMessage($hWnd, $LVM_GETISEARCHSTRINGW, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - If $bUnicode Then - _SendMessage($hWnd, $LVM_GETISEARCHSTRINGW, 0, $pMemory) - Else - _SendMessage($hWnd, $LVM_GETISEARCHSTRINGA, 0, $pMemory) - EndIf - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - Local $pBuffer = DllStructGetPtr($tBuffer) - If $bUnicode Then - GUICtrlSendMsg($hWnd, $LVM_GETISEARCHSTRINGW, 0, $pBuffer) - Else - GUICtrlSendMsg($hWnd, $LVM_GETISEARCHSTRINGA, 0, $pBuffer) - EndIf - EndIf - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>_GUICtrlListView_GetISearchString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItem($hWnd, $iIndex, $iSubItem = 0) - Local $aItem[8] - - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", BitOR($LVIF_GROUPID, $LVIF_IMAGE, $LVIF_INDENT, $LVIF_PARAM, $LVIF_STATE)) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "SubItem", $iSubItem) - DllStructSetData($tItem, "StateMask", -1) - _GUICtrlListView_GetItemEx($hWnd, $tItem) - Local $iState = DllStructGetData($tItem, "State") - If BitAND($iState, $LVIS_CUT) <> 0 Then $aItem[0] = BitOR($aItem[0], 1) - If BitAND($iState, $LVIS_DROPHILITED) <> 0 Then $aItem[0] = BitOR($aItem[0], 2) - If BitAND($iState, $LVIS_FOCUSED) <> 0 Then $aItem[0] = BitOR($aItem[0], 4) - If BitAND($iState, $LVIS_SELECTED) <> 0 Then $aItem[0] = BitOR($aItem[0], 8) - $aItem[1] = __GUICtrlListView_OverlayImageMaskToIndex($iState) - $aItem[2] = __GUICtrlListView_StateImageMaskToIndex($iState) - $aItem[3] = _GUICtrlListView_GetItemText($hWnd, $iIndex, $iSubItem) - $aItem[4] = DllStructGetData($tItem, "Image") - $aItem[5] = DllStructGetData($tItem, "Param") - $aItem[6] = DllStructGetData($tItem, "Indent") - $aItem[7] = DllStructGetData($tItem, "GroupID") - Return $aItem -EndFunc ;==>_GUICtrlListView_GetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: Siao for external control -; =============================================================================================================================== -Func _GUICtrlListView_GetItemChecked($hWnd, $iIndex) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $tLVITEM = DllStructCreate($tagLVITEM) - Local $iSize = DllStructGetSize($tLVITEM) - If @error Then Return SetError($LV_ERR, $LV_ERR, False) - DllStructSetData($tLVITEM, "Mask", $LVIF_STATE) - DllStructSetData($tLVITEM, "Item", $iIndex) - DllStructSetData($tLVITEM, "StateMask", 0xffff) - - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_GETITEMW, 0, $tLVITEM, 0, "wparam", "struct*") <> 0 - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - _MemWrite($tMemMap, $tLVITEM) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_GETITEMW, 0, $pMemory, 0, "wparam", "ptr") <> 0 - Else - $iRet = _SendMessage($hWnd, $LVM_GETITEMA, 0, $pMemory, 0, "wparam", "ptr") <> 0 - EndIf - _MemRead($tMemMap, $pMemory, $tLVITEM, $iSize) - _MemFree($tMemMap) - EndIf - Else - Local $pItem = DllStructGetPtr($tLVITEM) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETITEMW, 0, $pItem) <> 0 - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETITEMA, 0, $pItem) <> 0 - EndIf - EndIf - - If Not $iRet Then Return SetError($LV_ERR, $LV_ERR, False) - Return BitAND(DllStructGetData($tLVITEM, "State"), 0x2000) <> 0 -EndFunc ;==>_GUICtrlListView_GetItemChecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemCount($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETITEMCOUNT) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETITEMCOUNT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetItemCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemCut($hWnd, $iIndex) - Return _GUICtrlListView_GetItemState($hWnd, $iIndex, $LVIS_CUT) <> 0 -EndFunc ;==>_GUICtrlListView_GetItemCut - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemDropHilited($hWnd, $iIndex) - Return _GUICtrlListView_GetItemState($hWnd, $iIndex, $LVIS_DROPHILITED) <> 0 -EndFunc ;==>_GUICtrlListView_GetItemDropHilited - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetItemEx($hWnd, ByRef $tItem) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_GETITEMW, 0, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem, $tMemMap) - _MemWrite($tMemMap, $tItem) - If $bUnicode Then - _SendMessage($hWnd, $LVM_GETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $LVM_GETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tItem, $iItem) - _MemFree($tMemMap) - EndIf - Else - Local $pItem = DllStructGetPtr($tItem) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETITEMW, 0, $pItem) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETITEMA, 0, $pItem) - EndIf - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_GetItemEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemFocused($hWnd, $iIndex) - Return _GUICtrlListView_GetItemState($hWnd, $iIndex, $LVIS_FOCUSED) <> 0 -EndFunc ;==>_GUICtrlListView_GetItemFocused - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemGroupID($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", $LVIF_GROUPID) - DllStructSetData($tItem, "Item", $iIndex) - _GUICtrlListView_GetItemEx($hWnd, $tItem) - Return DllStructGetData($tItem, "GroupID") -EndFunc ;==>_GUICtrlListView_GetItemGroupID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemImage($hWnd, $iIndex, $iSubItem = 0) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", $LVIF_IMAGE) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "SubItem", $iSubItem) - _GUICtrlListView_GetItemEx($hWnd, $tItem) - Return DllStructGetData($tItem, "Image") -EndFunc ;==>_GUICtrlListView_GetItemImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemIndent($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", $LVIF_INDENT) - DllStructSetData($tItem, "Item", $iIndex) - _GUICtrlListView_GetItemEx($hWnd, $tItem) - Return DllStructGetData($tItem, "Indent") -EndFunc ;==>_GUICtrlListView_GetItemIndent - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_GetItemOverlayImage -; Description ...: Gets the overlay image that is superimposed over the item's icon image -; Syntax.........: __GUICtrlListView_GetItemOverlayImage ( $hWnd, $iIndex ) -; Parameters ....: $hWnd - Handle to the control -; $iIndex - Zero based index of the item -; Return values .: Success - Zero based image index -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally and should not normally be called -; Related .......: __GUICtrlListView_SetItemOverlayImage -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlListView_GetItemOverlayImage($hWnd, $iIndex) - Return BitShift(_GUICtrlListView_GetItemState($hWnd, $iIndex, $LVIS_OVERLAYMASK), 8) -EndFunc ;==>__GUICtrlListView_GetItemOverlayImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemParam($hWnd, $iIndex) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", $LVIF_PARAM) - DllStructSetData($tItem, "Item", $iIndex) - _GUICtrlListView_GetItemEx($hWnd, $tItem) - Return DllStructGetData($tItem, "Param") -EndFunc ;==>_GUICtrlListView_GetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetItemPosition($hWnd, $iIndex) - Local $aPoint[2], $iRet - - Local $tPoint = DllStructCreate($tagPOINT) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - If Not _SendMessage($hWnd, $LVM_GETITEMPOSITION, $iIndex, $tPoint, 0, "wparam", "struct*") Then Return $aPoint - Else - Local $iPoint = DllStructGetSize($tPoint) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iPoint, $tMemMap) - If Not _SendMessage($hWnd, $LVM_GETITEMPOSITION, $iIndex, $pMemory, 0, "wparam", "ptr") Then Return $aPoint - _MemRead($tMemMap, $pMemory, $tPoint, $iPoint) - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETITEMPOSITION, $iIndex, DllStructGetPtr($tPoint)) - If Not $iRet Then Return $aPoint - EndIf - $aPoint[0] = DllStructGetData($tPoint, "X") - $aPoint[1] = DllStructGetData($tPoint, "Y") - Return $aPoint -EndFunc ;==>_GUICtrlListView_GetItemPosition - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemPositionX($hWnd, $iIndex) - Local $aPoint = _GUICtrlListView_GetItemPosition($hWnd, $iIndex) - Return $aPoint[0] -EndFunc ;==>_GUICtrlListView_GetItemPositionX - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemPositionY($hWnd, $iIndex) - Local $aPoint = _GUICtrlListView_GetItemPosition($hWnd, $iIndex) - Return $aPoint[1] -EndFunc ;==>_GUICtrlListView_GetItemPositionY - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemRect($hWnd, $iIndex, $iPart = 3) - Local $tRECT = _GUICtrlListView_GetItemRectEx($hWnd, $iIndex, $iPart) - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlListView_GetItemRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetItemRectEx($hWnd, $iIndex, $iPart = 3) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Left", $iPart) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - _SendMessage($hWnd, $LVM_GETITEMRECT, $iIndex, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _MemWrite($tMemMap, $tRECT, $pMemory, $iRect) - _SendMessage($hWnd, $LVM_GETITEMRECT, $iIndex, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $LVM_GETITEMRECT, $iIndex, DllStructGetPtr($tRECT)) - EndIf - Return $tRECT -EndFunc ;==>_GUICtrlListView_GetItemRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemSelected($hWnd, $iIndex) - Return _GUICtrlListView_GetItemState($hWnd, $iIndex, $LVIS_SELECTED) <> 0 -EndFunc ;==>_GUICtrlListView_GetItemSelected - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetItemSpacing($hWnd, $bSmall = False) - Local $iSpace - If IsHWnd($hWnd) Then - $iSpace = _SendMessage($hWnd, $LVM_GETITEMSPACING, $bSmall) - Else - $iSpace = GUICtrlSendMsg($hWnd, $LVM_GETITEMSPACING, $bSmall, 0) - EndIf - Local $aSpace[2] - $aSpace[0] = BitAND($iSpace, 0xFFFF) - $aSpace[1] = BitShift($iSpace, 16) - Return $aSpace -EndFunc ;==>_GUICtrlListView_GetItemSpacing - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetItemSpacingX($hWnd, $bSmall = False) - If IsHWnd($hWnd) Then - Return BitAND(_SendMessage($hWnd, $LVM_GETITEMSPACING, $bSmall, 0), 0xFFFF) - Else - Return BitAND(GUICtrlSendMsg($hWnd, $LVM_GETITEMSPACING, $bSmall, 0), 0xFFFF) - EndIf -EndFunc ;==>_GUICtrlListView_GetItemSpacingX - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetItemSpacingY($hWnd, $bSmall = False) - If IsHWnd($hWnd) Then - Return BitShift(_SendMessage($hWnd, $LVM_GETITEMSPACING, $bSmall, 0), 16) - Else - Return BitShift(GUICtrlSendMsg($hWnd, $LVM_GETITEMSPACING, $bSmall, 0), 16) - EndIf -EndFunc ;==>_GUICtrlListView_GetItemSpacingY - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetItemState($hWnd, $iIndex, $iMask) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETITEMSTATE, $iIndex, $iMask) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETITEMSTATE, $iIndex, $iMask) - EndIf -EndFunc ;==>_GUICtrlListView_GetItemState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemStateImage($hWnd, $iIndex) - Return BitShift(_GUICtrlListView_GetItemState($hWnd, $iIndex, $LVIS_STATEIMAGEMASK), 12) -EndFunc ;==>_GUICtrlListView_GetItemStateImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetItemText($hWnd, $iIndex, $iSubItem = 0) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[4096]") - Else - $tBuffer = DllStructCreate("char Text[4096]") - EndIf - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "SubItem", $iSubItem) - DllStructSetData($tItem, "TextMax", 4096) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tItem, "Text", $pBuffer) - _SendMessage($hWnd, $LVM_GETITEMTEXTW, $iIndex, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + 4096, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - If $bUnicode Then - _SendMessage($hWnd, $LVM_GETITEMTEXTW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $LVM_GETITEMTEXTA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pText, $tBuffer, 4096) - _MemFree($tMemMap) - EndIf - Else - Local $pItem = DllStructGetPtr($tItem) - DllStructSetData($tItem, "Text", $pBuffer) - If $bUnicode Then - GUICtrlSendMsg($hWnd, $LVM_GETITEMTEXTW, $iIndex, $pItem) - Else - GUICtrlSendMsg($hWnd, $LVM_GETITEMTEXTA, $iIndex, $pItem) - EndIf - EndIf - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>_GUICtrlListView_GetItemText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemTextArray($hWnd, $iItem = -1) - Local $sItems = _GUICtrlListView_GetItemTextString($hWnd, $iItem) - If $sItems = "" Then - Local $aItems[1] = [0] - Return SetError($LV_ERR, $LV_ERR, $aItems) - EndIf - Return StringSplit($sItems, Opt('GUIDataSeparatorChar')) -EndFunc ;==>_GUICtrlListView_GetItemTextArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetItemTextString($hWnd, $iItem = -1) - Local $sRow = "", $sSeparatorChar = Opt('GUIDataSeparatorChar'), $iSelected - If $iItem = -1 Then - $iSelected = _GUICtrlListView_GetNextItem($hWnd) ; get current row selected - Else - $iSelected = $iItem ; get row - EndIf - For $x = 0 To _GUICtrlListView_GetColumnCount($hWnd) - 1 - $sRow &= _GUICtrlListView_GetItemText($hWnd, $iSelected, $x) & $sSeparatorChar - Next - Return StringTrimRight($sRow, 1) -EndFunc ;==>_GUICtrlListView_GetItemTextString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetNextItem($hWnd, $iStart = -1, $iSearch = 0, $iState = 8) - Local $aSearch[5] = [$LVNI_ALL, $LVNI_ABOVE, $LVNI_BELOW, $LVNI_TOLEFT, $LVNI_TORIGHT] - - Local $iFlags = $aSearch[$iSearch] - If BitAND($iState, 1) <> 0 Then $iFlags = BitOR($iFlags, $LVNI_CUT) - If BitAND($iState, 2) <> 0 Then $iFlags = BitOR($iFlags, $LVNI_DROPHILITED) - If BitAND($iState, 4) <> 0 Then $iFlags = BitOR($iFlags, $LVNI_FOCUSED) - If BitAND($iState, 8) <> 0 Then $iFlags = BitOR($iFlags, $LVNI_SELECTED) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETNEXTITEM, $iStart, $iFlags) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETNEXTITEM, $iStart, $iFlags) - EndIf -EndFunc ;==>_GUICtrlListView_GetNextItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetNumberOfWorkAreas($hWnd) - Local $tBuffer = DllStructCreate("int Data") - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - _SendMessage($hWnd, $LVM_GETNUMBEROFWORKAREAS, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _SendMessage($hWnd, $LVM_GETNUMBEROFWORKAREAS, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $LVM_GETNUMBEROFWORKAREAS, 0, DllStructGetPtr($tBuffer)) - EndIf - - Return DllStructGetData($tBuffer, "Data") -EndFunc ;==>_GUICtrlListView_GetNumberOfWorkAreas - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetOrigin($hWnd) - Local $tPoint = DllStructCreate($tagPOINT) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_GETORIGIN, 0, $tPoint, 0, "wparam", "struct*") - Else - Local $iPoint = DllStructGetSize($tPoint) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iPoint, $tMemMap) - $iRet = _SendMessage($hWnd, $LVM_GETORIGIN, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tPoint, $iPoint) - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETORIGIN, 0, DllStructGetPtr($tPoint)) - EndIf - Local $aOrigin[2] - $aOrigin[0] = DllStructGetData($tPoint, "X") - $aOrigin[1] = DllStructGetData($tPoint, "Y") - Return SetError(@error, $iRet = 1, $aOrigin) -EndFunc ;==>_GUICtrlListView_GetOrigin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetOriginX($hWnd) - Local $aOrigin = _GUICtrlListView_GetOrigin($hWnd) - Return $aOrigin[0] -EndFunc ;==>_GUICtrlListView_GetOriginX - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetOriginY($hWnd) - Local $aOrigin = _GUICtrlListView_GetOrigin($hWnd) - Return $aOrigin[1] -EndFunc ;==>_GUICtrlListView_GetOriginY - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetOutlineColor($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETOUTLINECOLOR) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETOUTLINECOLOR, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetOutlineColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetSelectedColumn($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETSELECTEDCOLUMN) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETSELECTEDCOLUMN, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetSelectedColumn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetSelectedCount($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETSELECTEDCOUNT) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETSELECTEDCOUNT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetSelectedCount - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_GetCheckedIndices -; Description ...: Retrieve indices of checked item(s) -; Syntax.........: __GUICtrlListView_GetCheckedIndices ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: Success - Checked indices Based on $bArray: -; +Array - With the following format -; |[0] - Number of Items in array (n) -; |[1] - First item index -; |[2] - Second item index -; |[n] - Last item index -; Failure - Based on $bArray -; |Array - With the following format -; |[0] - Number of Items in array (0) -; Author ........: jpm -; Modified.......: Melba23 (based on code by benners) -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func __GUICtrlListView_GetCheckedIndices($hWnd) - Local $iCount = _GUICtrlListView_GetItemCount($hWnd) - ; Create max size array - Local $aSelected[$iCount + 1] = [0] - For $i = 0 To $iCount - 1 - If _GUICtrlListView_GetItemChecked($hWnd, $i) Then - $aSelected[0] += 1 - $aSelected[$aSelected[0]] = $i - EndIf - Next - ; Remove unfilled elements - ReDim $aSelected[$aSelected[0] + 1] - Return $aSelected -EndFunc ;==>__GUICtrlListView_GetCheckedIndices - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetSelectedIndices($hWnd, $bArray = False) - Local $sIndices, $aIndices[1] = [0] - Local $iRet, $iCount = _GUICtrlListView_GetItemCount($hWnd) - For $iItem = 0 To $iCount - If IsHWnd($hWnd) Then - $iRet = _SendMessage($hWnd, $LVM_GETITEMSTATE, $iItem, $LVIS_SELECTED) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETITEMSTATE, $iItem, $LVIS_SELECTED) - EndIf - If $iRet Then - If (Not $bArray) Then - If StringLen($sIndices) Then - $sIndices &= "|" & $iItem - Else - $sIndices = $iItem - EndIf - Else - ReDim $aIndices[UBound($aIndices) + 1] - $aIndices[0] = UBound($aIndices) - 1 - $aIndices[UBound($aIndices) - 1] = $iItem - EndIf - EndIf - Next - If (Not $bArray) Then - Return String($sIndices) - Else - Return $aIndices - EndIf -EndFunc ;==>_GUICtrlListView_GetSelectedIndices - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetSelectionMark($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETSELECTIONMARK) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETSELECTIONMARK, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetSelectionMark - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetStringWidth($hWnd, $sString) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $iBuffer = StringLen($sString) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sString) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_GETSTRINGWIDTHW, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tBuffer, $pMemory, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_GETSTRINGWIDTHW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_GETSTRINGWIDTHA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - Local $pBuffer = DllStructGetPtr($tBuffer) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETSTRINGWIDTHW, 0, $pBuffer) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_GETSTRINGWIDTHA, 0, $pBuffer) - EndIf - EndIf - Return $iRet -EndFunc ;==>_GUICtrlListView_GetStringWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetSubItemRect($hWnd, $iIndex, $iSubItem, $iPart = 0) - Local $aPart[2] = [$LVIR_BOUNDS, $LVIR_ICON] - - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Top", $iSubItem) - DllStructSetData($tRECT, "Left", $aPart[$iPart]) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - _SendMessage($hWnd, $LVM_GETSUBITEMRECT, $iIndex, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _MemWrite($tMemMap, $tRECT, $pMemory, $iRect) - _SendMessage($hWnd, $LVM_GETSUBITEMRECT, $iIndex, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $LVM_GETSUBITEMRECT, $iIndex, DllStructGetPtr($tRECT)) - EndIf - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlListView_GetSubItemRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetTextBkColor($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETTEXTBKCOLOR) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETTEXTBKCOLOR, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetTextBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetTextColor($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETTEXTCOLOR) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETTEXTCOLOR, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetTextColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetToolTips($hWnd) - If IsHWnd($hWnd) Then - Return HWnd(_SendMessage($hWnd, $LVM_GETTOOLTIPS)) - Else - Return HWnd(GUICtrlSendMsg($hWnd, $LVM_GETTOOLTIPS, 0, 0)) - EndIf -EndFunc ;==>_GUICtrlListView_GetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetTopIndex($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETTOPINDEX) - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETTOPINDEX, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_GetTopIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetUnicodeFormat($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_GETUNICODEFORMAT) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_GETUNICODEFORMAT, 0, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_GetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetView($hWnd) - Local $iView - If IsHWnd($hWnd) Then - $iView = _SendMessage($hWnd, $LVM_GETVIEW) - Else - $iView = GUICtrlSendMsg($hWnd, $LVM_GETVIEW, 0, 0) - EndIf - Switch $iView - Case $LV_VIEW_ICON - Return Int($LV_VIEW_ICON) - Case $LV_VIEW_DETAILS - Return Int($LV_VIEW_DETAILS) - Case $LV_VIEW_LIST - Return Int($LV_VIEW_LIST) - Case $LV_VIEW_SMALLICON - Return Int($LV_VIEW_SMALLICON) - Case $LV_VIEW_TILE - Return Int($LV_VIEW_TILE) - Case Else - Return -1 - EndSwitch -EndFunc ;==>_GUICtrlListView_GetView - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetViewDetails($hWnd) - Return _GUICtrlListView_GetView($hWnd) = $LV_VIEW_DETAILS -EndFunc ;==>_GUICtrlListView_GetViewDetails - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetViewLarge($hWnd) - Return _GUICtrlListView_GetView($hWnd) = $LV_VIEW_ICON -EndFunc ;==>_GUICtrlListView_GetViewLarge - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetViewList($hWnd) - Return _GUICtrlListView_GetView($hWnd) = $LV_VIEW_LIST -EndFunc ;==>_GUICtrlListView_GetViewList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetViewSmall($hWnd) - Return _GUICtrlListView_GetView($hWnd) = $LV_VIEW_SMALLICON -EndFunc ;==>_GUICtrlListView_GetViewSmall - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_GetViewTile($hWnd) - Return _GUICtrlListView_GetView($hWnd) = $LV_VIEW_TILE -EndFunc ;==>_GUICtrlListView_GetViewTile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_GetViewRect($hWnd) - Local $aRect[4] = [0, 0, 0, 0] - - Local $iView = _GUICtrlListView_GetView($hWnd) - If ($iView <> 1) And ($iView <> 3) Then Return $aRect - - Local $tRECT = DllStructCreate($tagRECT) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - _SendMessage($hWnd, $LVM_GETVIEWRECT, 0, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _SendMessage($hWnd, $LVM_GETVIEWRECT, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $LVM_GETVIEWRECT, 0, DllStructGetPtr($tRECT)) - EndIf - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlListView_GetViewRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_HideColumn($hWnd, $iCol) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETCOLUMNWIDTH, $iCol) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETCOLUMNWIDTH, $iCol, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_HideColumn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_HitTest($hWnd, $iX = -1, $iY = -1) - Local $aTest[10] - - Local $iMode = Opt("MouseCoordMode", 1) - Local $aPos = MouseGetPos() - Opt("MouseCoordMode", $iMode) - Local $tPoint = DllStructCreate($tagPOINT) - DllStructSetData($tPoint, "X", $aPos[0]) - DllStructSetData($tPoint, "Y", $aPos[1]) - Local $aResult = DllCall("user32.dll", "bool", "ScreenToClient", "hwnd", $hWnd, "struct*", $tPoint) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] = 0 Then Return 0 - - If $iX = -1 Then $iX = DllStructGetData($tPoint, "X") - If $iY = -1 Then $iY = DllStructGetData($tPoint, "Y") - - Local $tTest = DllStructCreate($tagLVHITTESTINFO) - DllStructSetData($tTest, "X", $iX) - DllStructSetData($tTest, "Y", $iY) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $aTest[0] = _SendMessage($hWnd, $LVM_HITTEST, 0, $tTest, 0, "wparam", "struct*") - Else - Local $iTest = DllStructGetSize($tTest) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iTest, $tMemMap) - _MemWrite($tMemMap, $tTest, $pMemory, $iTest) - $aTest[0] = _SendMessage($hWnd, $LVM_HITTEST, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tTest, $iTest) - _MemFree($tMemMap) - EndIf - Else - $aTest[0] = GUICtrlSendMsg($hWnd, $LVM_HITTEST, 0, DllStructGetPtr($tTest)) - EndIf - Local $iFlags = DllStructGetData($tTest, "Flags") - $aTest[1] = BitAND($iFlags, $LVHT_NOWHERE) <> 0 - $aTest[2] = BitAND($iFlags, $LVHT_ONITEMICON) <> 0 - $aTest[3] = BitAND($iFlags, $LVHT_ONITEMLABEL) <> 0 - $aTest[4] = BitAND($iFlags, $LVHT_ONITEMSTATEICON) <> 0 - $aTest[5] = BitAND($iFlags, $LVHT_ONITEM) <> 0 - $aTest[6] = BitAND($iFlags, $LVHT_ABOVE) <> 0 - $aTest[7] = BitAND($iFlags, $LVHT_BELOW) <> 0 - $aTest[8] = BitAND($iFlags, $LVHT_TOLEFT) <> 0 - $aTest[9] = BitAND($iFlags, $LVHT_TORIGHT) <> 0 - Return $aTest -EndFunc ;==>_GUICtrlListView_HitTest - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_IndexToOverlayImageMask -; Description ...: Converts an image index to a overlay image mask -; Syntax.........: __GUICtrlListView_IndexToOverlayImageMask ( $iIndex ) -; Parameters ....: $iIndex - One based overlay index -; Return values .: Success - Image index mask -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally and should not normally be called -; Related .......: __GUICtrlListView_OverlayImageMaskToIndex -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlListView_IndexToOverlayImageMask($iIndex) - Return BitShift($iIndex, -8) -EndFunc ;==>__GUICtrlListView_IndexToOverlayImageMask - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_IndexToStateImageMask -; Description ...: Converts an image index to a state image mask -; Syntax.........: __GUICtrlListView_IndexToStateImageMask ( $iIndex ) -; Parameters ....: $iIndex - One based image index -; Return values .: Success - Image index mask -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally and should not normally be called -; Related .......: __GUICtrlListView_StateImageMaskToIndex -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlListView_IndexToStateImageMask($iIndex) - Return BitShift($iIndex, -12) -EndFunc ;==>__GUICtrlListView_IndexToStateImageMask - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_InsertColumn($hWnd, $iIndex, $sText, $iWidth = 50, $iAlign = -1, $iImage = -1, $bOnRight = False) - Local $aAlign[3] = [$LVCFMT_LEFT, $LVCFMT_RIGHT, $LVCFMT_CENTER] - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tColumn = DllStructCreate($tagLVCOLUMN) - Local $iMask = BitOR($LVCF_FMT, $LVCF_WIDTH, $LVCF_TEXT) - If $iAlign < 0 Or $iAlign > 2 Then $iAlign = 0 - Local $iFmt = $aAlign[$iAlign] - If $iImage <> -1 Then - $iMask = BitOR($iMask, $LVCF_IMAGE) - $iFmt = BitOR($iFmt, $LVCFMT_COL_HAS_IMAGES, $LVCFMT_IMAGE) - EndIf - If $bOnRight Then $iFmt = BitOR($iFmt, $LVCFMT_BITMAP_ON_RIGHT) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tColumn, "Mask", $iMask) - DllStructSetData($tColumn, "Fmt", $iFmt) - DllStructSetData($tColumn, "CX", $iWidth) - DllStructSetData($tColumn, "TextMax", $iBuffer) - DllStructSetData($tColumn, "Image", $iImage) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tColumn, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $LVM_INSERTCOLUMNW, $iIndex, $tColumn, 0, "wparam", "struct*") - Else - Local $iColumn = DllStructGetSize($tColumn) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iColumn + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iColumn - DllStructSetData($tColumn, "Text", $pText) - _MemWrite($tMemMap, $tColumn, $pMemory, $iColumn) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_INSERTCOLUMNW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_INSERTCOLUMNA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Else - Local $pColumn = DllStructGetPtr($tColumn) - DllStructSetData($tColumn, "Text", $pBuffer) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_INSERTCOLUMNW, $iIndex, $pColumn) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_INSERTCOLUMNA, $iIndex, $pColumn) - EndIf - EndIf - ; added, not sure why justification is not working on insert - If $iAlign > 0 Then _GUICtrlListView_SetColumn($hWnd, $iRet, $sText, $iWidth, $iAlign, $iImage, $bOnRight) - Return $iRet -EndFunc ;==>_GUICtrlListView_InsertColumn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Yoan Roblet (Arcker), Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_InsertGroup($hWnd, $iIndex, $iGroupID, $sHeader, $iAlign = 0) - Local $aAlign[3] = [$LVGA_HEADER_LEFT, $LVGA_HEADER_CENTER, $LVGA_HEADER_RIGHT] - - If $iAlign < 0 Or $iAlign > 2 Then $iAlign = 0 - - Local $tHeader = _WinAPI_MultiByteToWideChar($sHeader) - Local $pHeader = DllStructGetPtr($tHeader) - Local $iHeader = StringLen($sHeader) - Local $tGroup = DllStructCreate($tagLVGROUP) - Local $iGroup = DllStructGetSize($tGroup) - Local $iMask = BitOR($LVGF_HEADER, $LVGF_ALIGN, $LVGF_GROUPID) - DllStructSetData($tGroup, "Size", $iGroup) - DllStructSetData($tGroup, "Mask", $iMask) - DllStructSetData($tGroup, "HeaderMax", $iHeader) - DllStructSetData($tGroup, "GroupID", $iGroupID) - DllStructSetData($tGroup, "Align", $aAlign[$iAlign]) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tGroup, "Header", $pHeader) - $iRet = _SendMessage($hWnd, $LVM_INSERTGROUP, $iIndex, $tGroup, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iGroup + $iHeader, $tMemMap) - Local $pText = $pMemory + $iGroup - DllStructSetData($tGroup, "Header", $pText) - _MemWrite($tMemMap, $tGroup, $pMemory, $iGroup) - _MemWrite($tMemMap, $tHeader, $pText, $iHeader) - $iRet = _SendMessage($hWnd, $LVM_INSERTGROUP, $iIndex, $tGroup, 0, "wparam", "struct*") - _MemFree($tMemMap) - EndIf - Else - DllStructSetData($tGroup, "Header", $pHeader) - $iRet = GUICtrlSendMsg($hWnd, $LVM_INSERTGROUP, $iIndex, DllStructGetPtr($tGroup)) - EndIf - Return $iRet -EndFunc ;==>_GUICtrlListView_InsertGroup - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_InsertItem($hWnd, $sText, $iIndex = -1, $iImage = -1, $iParam = 0) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $iBuffer, $tBuffer, $iRet - If $iIndex = -1 Then $iIndex = 999999999 - - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Param", $iParam) - ; If $sText <> -1 Then - $iBuffer = StringLen($sText) + 1 - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tItem, "Text", DllStructGetPtr($tBuffer)) - DllStructSetData($tItem, "TextMax", $iBuffer) - ; Else - ; DllStructSetData($tItem, "Text", -1) - ; EndIf - Local $iMask = BitOR($LVIF_TEXT, $LVIF_PARAM) - If $iImage >= 0 Then $iMask = BitOR($iMask, $LVIF_IMAGE) - DllStructSetData($tItem, "Mask", $iMask) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "Image", $iImage) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Or ($sText = -1) Then - $iRet = _SendMessage($hWnd, $LVM_INSERTITEMW, 0, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_INSERTITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_INSERTITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Else - Local $pItem = DllStructGetPtr($tItem) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_INSERTITEMW, 0, $pItem) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_INSERTITEMA, 0, $pItem) - EndIf - EndIf - Return $iRet -EndFunc ;==>_GUICtrlListView_InsertItem - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_InsertMarkHitTest -; Description ...: Retrieves the insertion point closest to a specified point -; Syntax.........: _GUICtrlListView_InsertMarkHitTest ( $hWnd [, $iX = -1 [, $iY = -1]] ) -; Parameters ....: $hWnd - Handle to the control -; $iX - X position test point or -1 to use the current mouse position -; $iY - Y position test point or -1 to use the current mouse position -; Return values .: Success - Array with the following format: -; |[0] - True if the insertion point appears after the item, otherwise False -; |[1] - Item next to which the insertion point appears. If this is -1, there is no insertion point. -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum operating systems Windows XP. -; Related .......: _GUICtrlListView_GetInsertMark -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlListView_InsertMarkHitTest($hWnd, $iX = -1, $iY = -1) - Local $iMode = Opt("MouseCoordMode", 1) - Local $aPos = MouseGetPos() - Opt("MouseCoordMode", $iMode) - Local $tPoint = DllStructCreate($tagPOINT) - DllStructSetData($tPoint, "X", $aPos[0]) - DllStructSetData($tPoint, "Y", $aPos[1]) - Local $aResult = DllCall("user32.dll", "bool", "ScreenToClient", "hwnd", $hWnd, "struct*", $tPoint) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] = 0 Then Return 0 - - If $iX = -1 Then $iX = DllStructGetData($tPoint, "X") - If $iY = -1 Then $iY = DllStructGetData($tPoint, "Y") - - Local $tMark = DllStructCreate($tagLVINSERTMARK) - Local $iMark = DllStructGetSize($tMark) - DllStructSetData($tPoint, "X", $iX) - DllStructSetData($tPoint, "Y", $iY) - DllStructSetData($tMark, "Size", $iMark) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - _SendMessage($hWnd, $LVM_INSERTMARKHITTEST, $tPoint, $tMark, 0, "struct*", "struct*") - Else - Local $iPoint = DllStructGetSize($tPoint) - Local $tMemMap - Local $pMemM = _MemInit($hWnd, $iPoint + $iMark, $tMemMap) - Local $pMemP = $pMemM + $iPoint ; BUG ??? was referencing $pMemP - _MemWrite($tMemMap, $tMark, $pMemM, $iMark) - _MemWrite($tMemMap, $tPoint, $pMemP, $iPoint) - _SendMessage($hWnd, $LVM_INSERTMARKHITTEST, $pMemP, $pMemM, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemM, $tMark, $iMark) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $LVM_INSERTMARKHITTEST, DllStructGetPtr($tPoint), DllStructGetPtr($tMark)) - EndIf - Local $aTest[2] - $aTest[0] = DllStructGetData($tMark, "Flags") = $LVIM_AFTER - $aTest[1] = DllStructGetData($tMark, "Item") - Return $aTest -EndFunc ;==>_GUICtrlListView_InsertMarkHitTest - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_IsItemVisible -; Description ...: Gets the state for a specified group -; Syntax.........: _GUICtrlListView_IsItemVisible ( $hWnd, $iIndex ) -; Parameters ....: $hWnd - Handle to the control -; $iIndex - An index of the item in the list-view control -; Return values .: True - Visible -; False - Not Visible -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: Minimum operating systems: Windows Vista -; Related .......: -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func _GUICtrlListView_IsItemVisible($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_ISITEMVISIBLE, $iIndex) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_ISITEMVISIBLE, $iIndex, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_IsItemVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_JustifyColumn($hWnd, $iIndex, $iAlign = -1) - Local $aAlign[3] = [$LVCFMT_LEFT, $LVCFMT_RIGHT, $LVCFMT_CENTER] - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $tColumn = DllStructCreate($tagLVCOLUMN) - If $iAlign < 0 Or $iAlign > 2 Then $iAlign = 0 - Local $iMask = $LVCF_FMT - Local $iFmt = $aAlign[$iAlign] - DllStructSetData($tColumn, "Mask", $iMask) - DllStructSetData($tColumn, "Fmt", $iFmt) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_SETCOLUMNW, $iIndex, $tColumn, 0, "wparam", "struct*") - Else - Local $iColumn = DllStructGetSize($tColumn) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iColumn, $tMemMap) - _MemWrite($tMemMap, $tColumn, $pMemory, $iColumn) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_SETCOLUMNW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_SETCOLUMNA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Else - Local $pColumn = DllStructGetPtr($tColumn) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETCOLUMNW, $iIndex, $pColumn) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETCOLUMNA, $iIndex, $pColumn) - EndIf - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_JustifyColumn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_MapIDToIndex($hWnd, $iID) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_MAPIDTOINDEX, $iID) - Else - Return GUICtrlSendMsg($hWnd, $LVM_MAPIDTOINDEX, $iID, 0) - EndIf -EndFunc ;==>_GUICtrlListView_MapIDToIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_MapIndexToID($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_MAPINDEXTOID, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $LVM_MAPINDEXTOID, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlListView_MapIndexToID - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_MoveGroup -; Description ...: Moves the group to the specified zero based index -; Syntax.........: _GUICtrlListView_MoveGroup ( $hWnd, $iGroupID [, $iIndex = -1] ) -; Parameters ....: $hWnd - Handle to the control -; $iGroupID - ID of the group to move -; $iIndex - Zero based index of an item where the group will move -; Return values .: -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum operating systems Windows XP. -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlListView_MoveGroup($hWnd, $iGroupID, $iIndex = -1) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_MOVEGROUP, $iGroupID, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $LVM_MOVEGROUP, $iGroupID, $iIndex) - EndIf -EndFunc ;==>_GUICtrlListView_MoveGroup - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_OverlayImageMaskToIndex -; Description ...: Converts an overlay image mask to an image index -; Syntax.........: __GUICtrlListView_OverlayImageMaskToIndex ( $iMask ) -; Parameters ....: $iMask - Image index mask -; Return values .: Success - Image index -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally and should not normally be called -; Related .......: __GUICtrlListView_IndexToOverlayImageMask -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlListView_OverlayImageMaskToIndex($iMask) - Return BitShift(BitAND($LVIS_OVERLAYMASK, $iMask), 8) -EndFunc ;==>__GUICtrlListView_OverlayImageMaskToIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_RedrawItems($hWnd, $iFirst, $iLast) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_REDRAWITEMS, $iFirst, $iLast) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_REDRAWITEMS, $iFirst, $iLast) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_RedrawItems - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_RegisterSortCallBack($hWnd, $bNumbers = True, $bArrows = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $hHeader = _GUICtrlListView_GetHeader($hWnd) - - ReDim $__g_aListViewSortInfo[UBound($__g_aListViewSortInfo) + 1][$__g_iLListViewSortInfoSize] - - $__g_aListViewSortInfo[0][0] = UBound($__g_aListViewSortInfo) - 1 - Local $iIndex = $__g_aListViewSortInfo[0][0] - - $__g_aListViewSortInfo[$iIndex][1] = $hWnd ; Handle/ID of listview - - $__g_aListViewSortInfo[$iIndex][2] = _ - DllCallbackRegister("__GUICtrlListView_Sort", "int", "int;int;hwnd") ; Handle of callback - $__g_aListViewSortInfo[$iIndex][3] = -1 ; $nColumn - $__g_aListViewSortInfo[$iIndex][4] = -1 ; nCurCol - $__g_aListViewSortInfo[$iIndex][5] = 1 ; $nSortDir - $__g_aListViewSortInfo[$iIndex][6] = -1 ; $nCol - $__g_aListViewSortInfo[$iIndex][7] = 0 ; $bSet - $__g_aListViewSortInfo[$iIndex][8] = $bNumbers ; Treat as numbers? - $__g_aListViewSortInfo[$iIndex][9] = $bArrows ; Use arrows in the header of the columns? - $__g_aListViewSortInfo[$iIndex][10] = $hHeader ; Handle to the Header - - Return $__g_aListViewSortInfo[$iIndex][2] <> 0 -EndFunc ;==>_GUICtrlListView_RegisterSortCallBack - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_RemoveAllGroups($hWnd) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $LVM_REMOVEALLGROUPS) - Else - GUICtrlSendMsg($hWnd, $LVM_REMOVEALLGROUPS, 0, 0) - EndIf -EndFunc ;==>_GUICtrlListView_RemoveAllGroups - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_RemoveGroup($hWnd, $iGroupID) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_REMOVEGROUP, $iGroupID) - Else - Return GUICtrlSendMsg($hWnd, $LVM_REMOVEGROUP, $iGroupID, 0) - EndIf -EndFunc ;==>_GUICtrlListView_RemoveGroup - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_ReverseColorOrder -; Description ...: Convert Hex RGB or BGR Color to Hex RGB or BGR Color -; Syntax.........: __GUICtrlListView_ReverseColorOrder ( $iColor ) -; Parameters ....: $iColor - Color to convert -; Return values .: Color - Hex RGB or BGR Color -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: This function is used interanally only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlListView_ReverseColorOrder($iColor) - Local $sH = Hex(String($iColor), 6) - Return '0x' & StringMid($sH, 5, 2) & StringMid($sH, 3, 2) & StringMid($sH, 1, 2) -EndFunc ;==>__GUICtrlListView_ReverseColorOrder - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_Scroll($hWnd, $iDX, $iDY) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SCROLL, $iDX, $iDY) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_SCROLL, $iDX, $iDY) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_Scroll - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetBkColor($hWnd, $iColor) - Local $iRet - If IsHWnd($hWnd) Then - $iRet = _SendMessage($hWnd, $LVM_SETBKCOLOR, 0, $iColor) - _WinAPI_InvalidateRect($hWnd) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETBKCOLOR, 0, $iColor) - _WinAPI_InvalidateRect(GUICtrlGetHandle($hWnd)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetBkImage($hWnd, $sURL = "", $iStyle = 0, $iXOffset = 0, $iYOffset = 0) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - If Not IsHWnd($hWnd) Then Return SetError($LV_ERR, $LV_ERR, False) - Local $aStyle[2] = [$LVBKIF_STYLE_NORMAL, $LVBKIF_STYLE_TILE] - - Local $iBuffer = StringLen($sURL) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - If @error Then Return SetError($LV_ERR, $LV_ERR, $LV_ERR) - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tImage = DllStructCreate($tagLVBKIMAGE) - Local $iRet = 0 - If $sURL <> "" Then $iRet = $LVBKIF_SOURCE_URL - $iRet = BitOR($iRet, $aStyle[$iStyle]) - DllStructSetData($tBuffer, "Text", $sURL) - DllStructSetData($tImage, "Flags", $iRet) - DllStructSetData($tImage, "XOffPercent", $iXOffset) - DllStructSetData($tImage, "YOffPercent", $iYOffset) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tImage, "Image", $pBuffer) - $iRet = _SendMessage($hWnd, $LVM_SETBKIMAGEW, 0, $tImage, 0, "wparam", "struct*") - Else - Local $iImage = DllStructGetSize($tImage) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iImage + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iImage - DllStructSetData($tImage, "Image", $pText) - _MemWrite($tMemMap, $tImage, $pMemory, $iImage) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_SETBKIMAGEW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_SETBKIMAGEA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Else - Local $pImage = DllStructGetPtr($tImage) - DllStructSetData($tImage, "Image", $pBuffer) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETBKIMAGEW, 0, $pImage) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETBKIMAGEA, 0, $pImage) - EndIf - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetBkImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetCallBackMask($hWnd, $iMask) - Local $iFlags = 0 - - If BitAND($iMask, 1) <> 0 Then $iFlags = BitOR($iFlags, $LVIS_CUT) - If BitAND($iMask, 2) <> 0 Then $iFlags = BitOR($iFlags, $LVIS_DROPHILITED) - If BitAND($iMask, 4) <> 0 Then $iFlags = BitOR($iFlags, $LVIS_FOCUSED) - If BitAND($iMask, 8) <> 0 Then $iFlags = BitOR($iFlags, $LVIS_SELECTED) - If BitAND($iMask, 16) <> 0 Then $iFlags = BitOR($iFlags, $LVIS_OVERLAYMASK) - If BitAND($iMask, 32) <> 0 Then $iFlags = BitOR($iFlags, $LVIS_STATEIMAGEMASK) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETCALLBACKMASK, $iFlags) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETCALLBACKMASK, $iFlags, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_SetCallBackMask - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetColumn($hWnd, $iIndex, $sText, $iWidth = -1, $iAlign = -1, $iImage = -1, $bOnRight = False) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $aAlign[3] = [$LVCFMT_LEFT, $LVCFMT_RIGHT, $LVCFMT_CENTER] - - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tColumn = DllStructCreate($tagLVCOLUMN) - Local $iMask = $LVCF_TEXT - If $iAlign < 0 Or $iAlign > 2 Then $iAlign = 0 - $iMask = BitOR($iMask, $LVCF_FMT) - Local $iFmt = $aAlign[$iAlign] - If $iWidth <> -1 Then $iMask = BitOR($iMask, $LVCF_WIDTH) - If $iImage <> -1 Then - $iMask = BitOR($iMask, $LVCF_IMAGE) - $iFmt = BitOR($iFmt, $LVCFMT_COL_HAS_IMAGES, $LVCFMT_IMAGE) - Else - $iImage = 0 - EndIf - If $bOnRight Then $iFmt = BitOR($iFmt, $LVCFMT_BITMAP_ON_RIGHT) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tColumn, "Mask", $iMask) - DllStructSetData($tColumn, "Fmt", $iFmt) - DllStructSetData($tColumn, "CX", $iWidth) - DllStructSetData($tColumn, "TextMax", $iBuffer) - DllStructSetData($tColumn, "Image", $iImage) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tColumn, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $LVM_SETCOLUMNW, $iIndex, $tColumn, 0, "wparam", "struct*") - Else - Local $iColumn = DllStructGetSize($tColumn) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iColumn + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iColumn - DllStructSetData($tColumn, "Text", $pText) - _MemWrite($tMemMap, $tColumn, $pMemory, $iColumn) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_SETCOLUMNW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_SETCOLUMNA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Else - Local $pColumn = DllStructGetPtr($tColumn) - DllStructSetData($tColumn, "Text", $pBuffer) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETCOLUMNW, $iIndex, $pColumn) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETCOLUMNA, $iIndex, $pColumn) - EndIf - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetColumn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetColumnOrder($hWnd, $sOrder) - Local $sSeparatorChar = Opt('GUIDataSeparatorChar') - Return _GUICtrlListView_SetColumnOrderArray($hWnd, StringSplit($sOrder, $sSeparatorChar)) -EndFunc ;==>_GUICtrlListView_SetColumnOrder - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetColumnOrderArray($hWnd, $aOrder) - Local $tBuffer = DllStructCreate("int[" & $aOrder[0] & "]") - For $iI = 1 To $aOrder[0] - DllStructSetData($tBuffer, 1, $aOrder[$iI], $iI) - Next - - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_SETCOLUMNORDERARRAY, $aOrder[0], $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tBuffer, $pMemory, $iBuffer) - $iRet = _SendMessage($hWnd, $LVM_SETCOLUMNORDERARRAY, $aOrder[0], $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETCOLUMNORDERARRAY, $aOrder[0], DllStructGetPtr($tBuffer)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetColumnOrderArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetColumnWidth($hWnd, $iCol, $iWidth) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETCOLUMNWIDTH, $iCol, $iWidth) - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETCOLUMNWIDTH, $iCol, $iWidth) - EndIf -EndFunc ;==>_GUICtrlListView_SetColumnWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetExtendedListViewStyle($hWnd, $iExStyle, $iExMask = 0) - Local $iRet - If IsHWnd($hWnd) Then - $iRet = _SendMessage($hWnd, $LVM_SETEXTENDEDLISTVIEWSTYLE, $iExMask, $iExStyle) - _WinAPI_InvalidateRect($hWnd) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETEXTENDEDLISTVIEWSTYLE, $iExMask, $iExStyle) - _WinAPI_InvalidateRect(GUICtrlGetHandle($hWnd)) - EndIf - Return $iRet -EndFunc ;==>_GUICtrlListView_SetExtendedListViewStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetGroupInfo($hWnd, $iGroupID, $sHeader, $iAlign = 0, $iState = $LVGS_NORMAL) - Local $tGroup = 0 - - ; Validate the ID of the group contains a list of items when using the $LVGS_SELECTED state - If BitAND($iState, $LVGS_SELECTED) Then - $tGroup = __GUICtrlListView_GetGroupInfoEx($hWnd, $iGroupID, BitOR($LVGF_GROUPID, $LVGF_ITEMS)) - If DllStructGetData($tGroup, "GroupId") <> $iGroupID Or DllStructGetData($tGroup, "cItems") = 0 Then Return False - EndIf - - Local $aAlign[3] = [$LVGA_HEADER_LEFT, $LVGA_HEADER_CENTER, $LVGA_HEADER_RIGHT] - - If $iAlign < 0 Or $iAlign > 2 Then $iAlign = 0 - - Local $tHeader = _WinAPI_MultiByteToWideChar($sHeader) - Local $pHeader = DllStructGetPtr($tHeader) - Local $iHeader = StringLen($sHeader) - $tGroup = DllStructCreate($tagLVGROUP) - Local $pGroup = DllStructGetPtr($tGroup) - Local $iGroup = DllStructGetSize($tGroup) - Local $iMask = BitOR($LVGF_HEADER, $LVGF_ALIGN, $LVGF_STATE) - DllStructSetData($tGroup, "Size", $iGroup) - DllStructSetData($tGroup, "Mask", $iMask) - DllStructSetData($tGroup, "HeaderMax", $iHeader) - DllStructSetData($tGroup, "Align", $aAlign[$iAlign]) - DllStructSetData($tGroup, "State", $iState) - DllStructSetData($tGroup, "StateMask", $iState) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tGroup, "Header", $pHeader) - $iRet = _SendMessage($hWnd, $LVM_SETGROUPINFO, $iGroupID, $pGroup) - DllStructSetData($tGroup, "Mask", $LVGF_GROUPID) - DllStructSetData($tGroup, "GroupID", $iGroupID) - _SendMessage($hWnd, $LVM_SETGROUPINFO, 0, $pGroup) - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iGroup + $iHeader, $tMemMap) - Local $pText = $pMemory + $iGroup - DllStructSetData($tGroup, "Header", $pText) - _MemWrite($tMemMap, $tGroup, $pMemory, $iGroup) - _MemWrite($tMemMap, $tHeader, $pText, $iHeader) - $iRet = _SendMessage($hWnd, $LVM_SETGROUPINFO, $iGroupID, $pMemory) - DllStructSetData($tGroup, "Mask", $LVGF_GROUPID) - DllStructSetData($tGroup, "GroupID", $iGroupID) - _SendMessage($hWnd, $LVM_SETGROUPINFO, 0, $pMemory) - _MemFree($tMemMap) - EndIf - _WinAPI_InvalidateRect($hWnd) - Else - DllStructSetData($tGroup, "Header", $pHeader) - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETGROUPINFO, $iGroupID, $pGroup) - DllStructSetData($tGroup, "Mask", $LVGF_GROUPID) - DllStructSetData($tGroup, "GroupID", $iGroupID) - GUICtrlSendMsg($hWnd, $LVM_SETGROUPINFO, 0, $pGroup) - _WinAPI_InvalidateRect(GUICtrlGetHandle($hWnd)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetGroupInfo - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_SetHotCursor -; Description ...: Sets the cursor handle that the control uses -; Syntax.........: _GUICtrlListView_SetHotCursor ( $hWnd, $hCursor ) -; Parameters ....: $hWnd - Handle to the control -; $hCursor - Handle to the cursor to be set -; Return values .: Success - Handle to the previous hot cursor -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Currently not tested -; Related .......: _GUICtrlListView_GetHotCursor -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlListView_SetHotCursor($hWnd, $hCursor) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETHOTCURSOR, 0, $hCursor, 0, "wparam", "handle", "handle") - Else - Return Ptr(GUICtrlSendMsg($hWnd, $LVM_SETHOTCURSOR, 0, $hCursor)) - EndIf -EndFunc ;==>_GUICtrlListView_SetHotCursor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetHotItem($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETHOTITEM, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETHOTITEM, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlListView_SetHotItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetHoverTime($hWnd, $iTime) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETHOVERTIME, 0, $iTime) - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETHOVERTIME, 0, $iTime) - EndIf -EndFunc ;==>_GUICtrlListView_SetHoverTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetIconSpacing($hWnd, $iCX, $iCY) - Local $iRet, $aPadding[2] - - If IsHWnd($hWnd) Then - $iRet = _SendMessage($hWnd, $LVM_SETICONSPACING, 0, _WinAPI_MakeLong($iCX, $iCY)) - _WinAPI_InvalidateRect($hWnd) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETICONSPACING, 0, _WinAPI_MakeLong($iCX, $iCY)) - _WinAPI_InvalidateRect(GUICtrlGetHandle($hWnd)) - EndIf - $aPadding[0] = BitAND($iRet, 0xFFFF) - $aPadding[1] = BitShift($iRet, 16) - Return $aPadding -EndFunc ;==>_GUICtrlListView_SetIconSpacing - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetImageList($hWnd, $hHandle, $iType = 0) - Local $aType[3] = [$LVSIL_NORMAL, $LVSIL_SMALL, $LVSIL_STATE] - - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETIMAGELIST, $aType[$iType], $hHandle, 0, "wparam", "handle", "handle") - Else - Return Ptr(GUICtrlSendMsg($hWnd, $LVM_SETIMAGELIST, $aType[$iType], $hHandle)) - EndIf -EndFunc ;==>_GUICtrlListView_SetImageList - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_SetInfoTip -; Description ...: Sets ToolTip text -; Syntax.........: _GUICtrlListView_SetInfoTip ( $hWnd, $iIndex, $sText [, $iSubItem = 0] ) -; Parameters ....: $hWnd - Handle to the control -; $iIndex - Zero based index of the item -; $sText - String that contains the tooltip text -; $iSubItem - One based index of the subitem -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum operating systems Windows XP. -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlListView_SetInfoTip($hWnd, $iIndex, $sText, $iSubItem = 0) - Local $tBuffer = _WinAPI_MultiByteToWideChar($sText) - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $iBuffer = StringLen($sText) - Local $tInfo = DllStructCreate($tagLVSETINFOTIP) - Local $iInfo = DllStructGetSize($tInfo) - DllStructSetData($tInfo, "Size", $iInfo) - DllStructSetData($tInfo, "Item", $iIndex) - DllStructSetData($tInfo, "SubItem", $iSubItem) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tInfo, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $LVM_SETINFOTIP, 0, $tInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iInfo + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iInfo - DllStructSetData($tInfo, "Text", $pText) - _MemWrite($tMemMap, $tInfo, $pMemory, $iInfo) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - $iRet = _SendMessage($hWnd, $LVM_SETINFOTIP, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - DllStructSetData($tInfo, "Text", $pBuffer) - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETINFOTIP, 0, DllStructGetPtr($tInfo)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetInfoTip - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_SetInsertMark -; Description ...: Sets the insertion point to the defined position -; Syntax.........: _GUICtrlListView_SetInsertMark ( $hWnd, $iIndex [, $bAfter = False] ) -; Parameters ....: $hWnd - Handle to the control -; $iIndex - Zero based index of the item -; $bAfter - Insertion point: -; $i_Cols | True - The insertion point will appear after the item -; |False - The insertion point will appear before the item -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum operating systems Windows XP. -; + -; An insertion point can only appear if the control is in icon view, small icon view, or tile -; view, and not in group view mode. -; Related .......: _GUICtrlListView_GetInsertMark -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlListView_SetInsertMark($hWnd, $iIndex, $bAfter = False) - Local $tMark = DllStructCreate($tagLVINSERTMARK) - Local $iMark = DllStructGetSize($tMark) - DllStructSetData($tMark, "Size", $iMark) - If $bAfter Then DllStructSetData($tMark, "Flags", $LVIM_AFTER) - DllStructSetData($tMark, "Item", $iIndex) - DllStructSetData($tMark, "Reserved", 0) - Local $iRet - If IsHWnd($hWnd) Then - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iMark, $tMemMap) - _MemWrite($tMemMap, $tMark, $pMemory, $iMark) - $iRet = _SendMessage($hWnd, $LVM_SETINSERTMARK, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETINSERTMARK, 0, DllStructGetPtr($tMark)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetInsertMark - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlListView_SetInsertMarkColor -; Description ...: Sets the color of the insertion point -; Syntax.........: _GUICtrlListView_SetInsertMarkColor ( $hWnd, $iColor ) -; Parameters ....: $hWnd - Handle to the control -; $iColor - Color to set the insertion point -; Return values .: Success - The previous insertion point color -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum operating systems Windows XP. -; Related .......: _GUICtrlListView_GetInsertMarkColor -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlListView_SetInsertMarkColor($hWnd, $iColor) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETINSERTMARKCOLOR, 0, $iColor) - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETINSERTMARKCOLOR, 0, $iColor) - EndIf -EndFunc ;==>_GUICtrlListView_SetInsertMarkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItem($hWnd, $sText, $iIndex = 0, $iSubItem = 0, $iImage = -1, $iParam = -1, $iIndent = -1) - Local $pBuffer, $iBuffer - If $sText <> -1 Then - $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If _GUICtrlListView_GetUnicodeFormat($hWnd) Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - $pBuffer = DllStructGetPtr($tBuffer) - DllStructSetData($tBuffer, "Text", $sText) - Else - $iBuffer = 0 - $pBuffer = -1 ; LPSTR_TEXTCALLBACK - EndIf - - Local $tItem = DllStructCreate($tagLVITEM) - Local $iMask = $LVIF_TEXT - If $iImage <> -1 Then $iMask = BitOR($iMask, $LVIF_IMAGE) - If $iParam <> -1 Then $iMask = BitOR($iMask, $LVIF_PARAM) - If $iIndent <> -1 Then $iMask = BitOR($iMask, $LVIF_INDENT) - DllStructSetData($tItem, "Mask", $iMask) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "SubItem", $iSubItem) - DllStructSetData($tItem, "Text", $pBuffer) - DllStructSetData($tItem, "TextMax", $iBuffer) - DllStructSetData($tItem, "Image", $iImage) - DllStructSetData($tItem, "Param", $iParam) - DllStructSetData($tItem, "Indent", $iIndent) - Return _GUICtrlListView_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlListView_SetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemChecked($hWnd, $iIndex, $bCheck = True) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $pMemory, $tMemMap, $iRet - - Local $tItem = DllStructCreate($tagLVITEM) - Local $pItem = DllStructGetPtr($tItem) - Local $iItem = DllStructGetSize($tItem) - If @error Then Return SetError($LV_ERR, $LV_ERR, $LV_ERR) - If $iIndex <> -1 Then - DllStructSetData($tItem, "Mask", $LVIF_STATE) - DllStructSetData($tItem, "Item", $iIndex) - If ($bCheck) Then - DllStructSetData($tItem, "State", 0x2000) - Else - DllStructSetData($tItem, "State", 0x1000) - EndIf - DllStructSetData($tItem, "StateMask", 0xf000) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - Return _SendMessage($hWnd, $LVM_SETITEMW, 0, $tItem, 0, "wparam", "struct*") <> 0 - Else - $pMemory = _MemInit($hWnd, $iItem, $tMemMap) - _MemWrite($tMemMap, $tItem) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_SETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_SETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - Return $iRet <> 0 - EndIf - Else - If $bUnicode Then - Return GUICtrlSendMsg($hWnd, $LVM_SETITEMW, 0, $pItem) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETITEMA, 0, $pItem) <> 0 - EndIf - EndIf - Else - For $x = 0 To _GUICtrlListView_GetItemCount($hWnd) - 1 - DllStructSetData($tItem, "Mask", $LVIF_STATE) - DllStructSetData($tItem, "Item", $x) - If ($bCheck) Then - DllStructSetData($tItem, "State", 0x2000) - Else - DllStructSetData($tItem, "State", 0x1000) - EndIf - DllStructSetData($tItem, "StateMask", 0xf000) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - If Not _SendMessage($hWnd, $LVM_SETITEMW, 0, $tItem, 0, "wparam", "struct*") <> 0 Then Return SetError($LV_ERR, $LV_ERR, $LV_ERR) - Else - $pMemory = _MemInit($hWnd, $iItem, $tMemMap) - _MemWrite($tMemMap, $tItem) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_SETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_SETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - If Not $iRet <> 0 Then Return SetError($LV_ERR, $LV_ERR, $LV_ERR) - EndIf - Else - If $bUnicode Then - If Not GUICtrlSendMsg($hWnd, $LVM_SETITEMW, 0, $pItem) <> 0 Then Return SetError($LV_ERR, $LV_ERR, $LV_ERR) - Else - If Not GUICtrlSendMsg($hWnd, $LVM_SETITEMA, 0, $pItem) <> 0 Then Return SetError($LV_ERR, $LV_ERR, $LV_ERR) - EndIf - EndIf - Next - Return True - EndIf - Return False -EndFunc ;==>_GUICtrlListView_SetItemChecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemCount($hWnd, $iItems) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETITEMCOUNT, $iItems, BitOR($LVSICF_NOINVALIDATEALL, $LVSICF_NOSCROLL)) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETITEMCOUNT, $iItems, BitOR($LVSICF_NOINVALIDATEALL, $LVSICF_NOSCROLL)) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_SetItemCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemCut($hWnd, $iIndex, $bEnabled = True) - Local $iState = 0 - - If $bEnabled Then $iState = $LVIS_CUT - Return _GUICtrlListView_SetItemState($hWnd, $iIndex, $iState, $LVIS_CUT) -EndFunc ;==>_GUICtrlListView_SetItemCut - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemDropHilited($hWnd, $iIndex, $bEnabled = True) - Local $iState = 0 - - If $bEnabled Then $iState = $LVIS_DROPHILITED - Return _GUICtrlListView_SetItemState($hWnd, $iIndex, $iState, $LVIS_DROPHILITED) -EndFunc ;==>_GUICtrlListView_SetItemDropHilited - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetItemEx($hWnd, ByRef $tItem) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $iRet - If IsHWnd($hWnd) Then - Local $iItem = DllStructGetSize($tItem) - Local $iBuffer = DllStructGetData($tItem, "TextMax") - Local $pBuffer = DllStructGetData($tItem, "Text") - If $bUnicode Then $iBuffer *= 2 - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - If $pBuffer <> 0 Then _MemWrite($tMemMap, $pBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_SETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_SETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - Else - Local $pItem = DllStructGetPtr($tItem) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETITEMW, 0, $pItem) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETITEMA, 0, $pItem) - EndIf - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetItemEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemFocused($hWnd, $iIndex, $bEnabled = True) - Local $iState = 0 - - If $bEnabled Then $iState = $LVIS_FOCUSED - Return _GUICtrlListView_SetItemState($hWnd, $iIndex, $iState, $LVIS_FOCUSED) -EndFunc ;==>_GUICtrlListView_SetItemFocused - -; #FUNCTION# ==================================================================================================================== -; Author ........: Yoan Roblet (Arcker), Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemGroupID($hWnd, $iIndex, $iGroupID) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", $LVIF_GROUPID) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "GroupID", $iGroupID) - _GUICtrlListView_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlListView_SetItemGroupID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemImage($hWnd, $iIndex, $iImage, $iSubItem = 0) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", $LVIF_IMAGE) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "SubItem", $iSubItem) - DllStructSetData($tItem, "Image", $iImage) - Return _GUICtrlListView_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlListView_SetItemImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemIndent($hWnd, $iIndex, $iIndent) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", $LVIF_INDENT) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "Indent", $iIndent) - Return _GUICtrlListView_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlListView_SetItemIndent - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_SetItemOverlayImage -; Description ...: Sets the overlay image is superimposed over the item's icon image -; Syntax.........: __GUICtrlListView_SetItemOverlayImage ( $hWnd, $iIndex, $iImage ) -; Parameters ....: $hWnd - Handle to the control -; $iIndex - Zero based index of the item -; $iImage - One based overlay image index -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally and should not normally be called -; Related .......: __GUICtrlListView_GetItemOverlayImage -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlListView_SetItemOverlayImage($hWnd, $iIndex, $iImage) - Return _GUICtrlListView_SetItemState($hWnd, $iIndex, __GUICtrlListView_IndexToOverlayImageMask($iImage), $LVIS_OVERLAYMASK) -EndFunc ;==>__GUICtrlListView_SetItemOverlayImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemParam($hWnd, $iIndex, $iParam) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", $LVIF_PARAM) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "Param", $iParam) - Return _GUICtrlListView_SetItemEx($hWnd, $tItem) -EndFunc ;==>_GUICtrlListView_SetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetItemPosition($hWnd, $iIndex, $iCX, $iCY) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETITEMPOSITION, $iIndex, _WinAPI_MakeLong($iCX, $iCY)) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETITEMPOSITION, $iIndex, _WinAPI_MakeLong($iCX, $iCY)) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_SetItemPosition - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetItemPosition32($hWnd, $iIndex, $iCX, $iCY) - Local $tPoint = DllStructCreate($tagPOINT) - DllStructSetData($tPoint, "X", $iCX) - DllStructSetData($tPoint, "Y", $iCY) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - $iRet = _SendMessage($hWnd, $LVM_SETITEMPOSITION32, $iIndex, $tPoint, 0, "wparam", "struct*") - Else - Local $iPoint = DllStructGetSize($tPoint) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iPoint, $tMemMap) - _MemWrite($tMemMap, $tPoint) - $iRet = _SendMessage($hWnd, $LVM_SETITEMPOSITION32, $iIndex, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETITEMPOSITION32, $iIndex, DllStructGetPtr($tPoint)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetItemPosition32 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemSelected($hWnd, $iIndex, $bSelected = True, $bFocused = False) - Local $tStruct = DllStructCreate($tagLVITEM) - Local $iRet, $iSelected = 0, $iFocused = 0, $iSize, $tMemMap, $pMemory - If ($bSelected = True) Then $iSelected = $LVIS_SELECTED - If ($bFocused = True And $iIndex <> -1) Then $iFocused = $LVIS_FOCUSED - DllStructSetData($tStruct, "Mask", $LVIF_STATE) - DllStructSetData($tStruct, "Item", $iIndex) - DllStructSetData($tStruct, "State", BitOR($iSelected, $iFocused)) - DllStructSetData($tStruct, "StateMask", BitOR($LVIS_SELECTED, $iFocused)) - $iSize = DllStructGetSize($tStruct) - If IsHWnd($hWnd) Then - $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - _MemWrite($tMemMap, $tStruct, $pMemory, $iSize) - $iRet = _SendMessage($hWnd, $LVM_SETITEMSTATE, $iIndex, $pMemory) - _MemFree($tMemMap) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETITEMSTATE, $iIndex, DllStructGetPtr($tStruct)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetItemSelected - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemState($hWnd, $iIndex, $iState, $iStateMask) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tItem, "Mask", $LVIF_STATE) - DllStructSetData($tItem, "Item", $iIndex) - DllStructSetData($tItem, "State", $iState) - DllStructSetData($tItem, "StateMask", $iStateMask) - Return _GUICtrlListView_SetItemEx($hWnd, $tItem) <> 0 -EndFunc ;==>_GUICtrlListView_SetItemState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetItemStateImage($hWnd, $iIndex, $iImage) - Return _GUICtrlListView_SetItemState($hWnd, $iIndex, BitShift($iImage, -12), $LVIS_STATEIMAGEMASK) -EndFunc ;==>_GUICtrlListView_SetItemStateImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost), added code by Ultima to set row text -; =============================================================================================================================== -Func _GUICtrlListView_SetItemText($hWnd, $iIndex, $sText, $iSubItem = 0) - Local $bUnicode = _GUICtrlListView_GetUnicodeFormat($hWnd) - - Local $iRet - - If $iSubItem = -1 Then - Local $sSeparatorChar = Opt('GUIDataSeparatorChar') - Local $i_Cols = _GUICtrlListView_GetColumnCount($hWnd) - Local $a_Text = StringSplit($sText, $sSeparatorChar) - If $i_Cols > $a_Text[0] Then $i_Cols = $a_Text[0] - For $i = 1 To $i_Cols - $iRet = _GUICtrlListView_SetItemText($hWnd, $iIndex, $a_Text[$i], $i - 1) - If Not $iRet Then ExitLoop - Next - Return $iRet - EndIf - - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tItem = DllStructCreate($tagLVITEM) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tItem, "Mask", $LVIF_TEXT) - DllStructSetData($tItem, "item", $iIndex) - DllStructSetData($tItem, "SubItem", $iSubItem) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - DllStructSetData($tItem, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $LVM_SETITEMW, 0, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $LVM_SETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $LVM_SETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Else - Local $pItem = DllStructGetPtr($tItem) - DllStructSetData($tItem, "Text", $pBuffer) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETITEMW, 0, $pItem) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETITEMA, 0, $pItem) - EndIf - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetItemText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetOutlineColor($hWnd, $iColor) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETOUTLINECOLOR, 0, $iColor) - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETOUTLINECOLOR, 0, $iColor) - EndIf -EndFunc ;==>_GUICtrlListView_SetOutlineColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SetSelectedColumn($hWnd, $iCol) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $LVM_SETSELECTEDCOLUMN, $iCol) - _WinAPI_InvalidateRect($hWnd) - Else - GUICtrlSendMsg($hWnd, $LVM_SETSELECTEDCOLUMN, $iCol, 0) - _WinAPI_InvalidateRect(GUICtrlGetHandle($hWnd)) - EndIf -EndFunc ;==>_GUICtrlListView_SetSelectedColumn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetSelectionMark($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETSELECTIONMARK, 0, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETSELECTIONMARK, 0, $iIndex) - EndIf -EndFunc ;==>_GUICtrlListView_SetSelectionMark - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetTextBkColor($hWnd, $iColor) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETTEXTBKCOLOR, 0, $iColor) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETTEXTBKCOLOR, 0, $iColor) <> 0 - EndIf -EndFunc ;==>_GUICtrlListView_SetTextBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetTextColor($hWnd, $iColor) - Local $iRet - If IsHWnd($hWnd) Then - $iRet = _SendMessage($hWnd, $LVM_SETTEXTCOLOR, 0, $iColor) - _WinAPI_InvalidateRect($hWnd) - Else - $iRet = GUICtrlSendMsg($hWnd, $LVM_SETTEXTCOLOR, 0, $iColor) - _WinAPI_InvalidateRect(GUICtrlGetHandle($hWnd)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SetTextColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetToolTips($hWnd, $hToolTip) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETTOOLTIPS, 0, $hToolTip, 0, "wparam", "hwnd", "hwnd") - Else - Return HWnd(GUICtrlSendMsg($hWnd, $LVM_SETTOOLTIPS, 0, $hToolTip)) - EndIf -EndFunc ;==>_GUICtrlListView_SetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetUnicodeFormat($hWnd, $bUnicode) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETUNICODEFORMAT, $bUnicode) - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETUNICODEFORMAT, $bUnicode, 0) - EndIf -EndFunc ;==>_GUICtrlListView_SetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetView($hWnd, $iView) - Local $aView[5] = [$LV_VIEW_ICON, $LV_VIEW_DETAILS, $LV_VIEW_LIST, $LV_VIEW_SMALLICON, $LV_VIEW_TILE] - - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $LVM_SETVIEW, $aView[$iView]) <> -1 - Else - Return GUICtrlSendMsg($hWnd, $LVM_SETVIEW, $aView[$iView], 0) <> -1 - EndIf -EndFunc ;==>_GUICtrlListView_SetView - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SetWorkAreas($hWnd, $iLeft, $iTop, $iRight, $iBottom) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Left", $iLeft) - DllStructSetData($tRECT, "Top", $iTop) - DllStructSetData($tRECT, "Right", $iRight) - DllStructSetData($tRECT, "Bottom", $iBottom) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - _SendMessage($hWnd, $LVM_SETWORKAREAS, 1, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _MemWrite($tMemMap, $tRECT, $pMemory, $iRect) - _SendMessage($hWnd, $LVM_SETWORKAREAS, 1, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $LVM_SETWORKAREAS, 1, DllStructGetPtr($tRECT)) - EndIf -EndFunc ;==>_GUICtrlListView_SetWorkAreas - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: guinness - Re-write of function to remove magic numbers and unnecessary use of UBound. Melba23 - Added optional parameter to reverse the $vSortSense variable. -; Modified.......: Melba23 to fix checked item bug in __GUICtrlListView_GetCheckedIndices -; =============================================================================================================================== -Func _GUICtrlListView_SimpleSort($hWnd, ByRef $vSortSense, $iCol, $bToggleSense = True) - Local $iItemCount = _GUICtrlListView_GetItemCount($hWnd) - If $iItemCount Then - Local $iDescending = 0 - If UBound($vSortSense) Then - $iDescending = $vSortSense[$iCol] - Else - $iDescending = $vSortSense - EndIf - Local $vSeparatorChar = Opt('GUIDataSeparatorChar') - Local $iColumnCount = _GUICtrlListView_GetColumnCount($hWnd) - Local Enum $iIndexValue = $iColumnCount, $iItemParam ; Additional columns for the index value and ItemParam - Local $aListViewItems[$iItemCount][$iColumnCount + 2] - - Local $aSelectedItems = StringSplit(_GUICtrlListView_GetSelectedIndices($hWnd), $vSeparatorChar) - Local $aCheckedItems = __GUICtrlListView_GetCheckedIndices($hWnd) - Local $sItemText, $iFocused = -1 - For $i = 0 To $iItemCount - 1 ; Rows - If $iFocused = -1 Then - If _GUICtrlListView_GetItemFocused($hWnd, $i) Then $iFocused = $i - EndIf - _GUICtrlListView_SetItemSelected($hWnd, $i, False) - _GUICtrlListView_SetItemChecked($hWnd, $i, False) - For $j = 0 To $iColumnCount - 1 ; Columns - $sItemText = StringStripWS(_GUICtrlListView_GetItemText($hWnd, $i, $j), $STR_STRIPTRAILING) - If (StringIsFloat($sItemText) Or StringIsInt($sItemText)) Then - $aListViewItems[$i][$j] = Number($sItemText) - Else - $aListViewItems[$i][$j] = $sItemText - EndIf - Next - $aListViewItems[$i][$iIndexValue] = $i ; Index value - $aListViewItems[$i][$iItemParam] = _GUICtrlListView_GetItemParam($hWnd, $i) ; ItemParam - Next - - ; Sort the ListView array - _ArraySort($aListViewItems, $iDescending, 0, 0, $iCol) - - For $i = 0 To $iItemCount - 1 ; Rows - For $j = 0 To $iColumnCount - 1 ; Columns - _GUICtrlListView_SetItemText($hWnd, $i, $aListViewItems[$i][$j], $j) - Next - - _GUICtrlListView_SetItemParam($hWnd, $i, $aListViewItems[$i][$iItemParam]) ; ItemParam - - For $j = 1 To $aSelectedItems[0] - If $aListViewItems[$i][$iIndexValue] = $aSelectedItems[$j] Then - If $aListViewItems[$i][$iIndexValue] = $iFocused Then - _GUICtrlListView_SetItemSelected($hWnd, $i, True, True) - Else - _GUICtrlListView_SetItemSelected($hWnd, $i, True) - EndIf - ExitLoop - EndIf - Next - For $j = 1 To $aCheckedItems[0] - If $aListViewItems[$i][$iIndexValue] = $aCheckedItems[$j] Then - _GUICtrlListView_SetItemChecked($hWnd, $i, True) - ExitLoop - EndIf - Next - Next - If $bToggleSense Then ; Automatic sort sense toggle - If UBound($vSortSense) Then - $vSortSense[$iCol] = Not $iDescending - Else - $vSortSense = Not $iDescending - EndIf - EndIf - EndIf -EndFunc ;==>_GUICtrlListView_SimpleSort - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_Sort -; Description ...: Our sorting callback function -; Syntax.........: __GUICtrlListView_Sort ( $nItem1, $nItem2, $hWnd ) -; Parameters ....: $nItem1 - Param of 1st item -; $nItem2 - Param of 2nd item -; $hWnd - Handle of the control -; Return values .: None -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlListView_Sort($nItem1, $nItem2, $hWnd) - Local $iIndex, $sVal1, $sVal2, $nResult - - For $x = 1 To $__g_aListViewSortInfo[0][0] - If $hWnd = $__g_aListViewSortInfo[$x][1] Then - $iIndex = $x - ExitLoop - EndIf - Next - - ; Switch the sorting direction - If $__g_aListViewSortInfo[$iIndex][3] = $__g_aListViewSortInfo[$iIndex][4] Then ; $nColumn = nCurCol ? - If Not $__g_aListViewSortInfo[$iIndex][7] Then ; $bSet - $__g_aListViewSortInfo[$iIndex][5] *= -1 ; $nSortDir - $__g_aListViewSortInfo[$iIndex][7] = 1 ; $bSet - EndIf - Else - $__g_aListViewSortInfo[$iIndex][7] = 1 ; $bSet - EndIf - $__g_aListViewSortInfo[$iIndex][6] = $__g_aListViewSortInfo[$iIndex][3] ; $nCol = $nColumn - $sVal1 = _GUICtrlListView_GetItemText($hWnd, $nItem1, $__g_aListViewSortInfo[$iIndex][3]) - $sVal2 = _GUICtrlListView_GetItemText($hWnd, $nItem2, $__g_aListViewSortInfo[$iIndex][3]) - If $__g_aListViewSortInfo[$iIndex][8] Then ; Treat As Number - If (StringIsFloat($sVal1) Or StringIsInt($sVal1)) Then $sVal1 = Number($sVal1) - If (StringIsFloat($sVal2) Or StringIsInt($sVal2)) Then $sVal2 = Number($sVal2) - EndIf - - $nResult = 0 ; No change of item1 and item2 positions - - If $sVal1 < $sVal2 Then - $nResult = -1 ; Put item2 before item1 - ElseIf $sVal1 > $sVal2 Then - $nResult = 1 ; Put item2 behind item1 - EndIf - - $nResult = $nResult * $__g_aListViewSortInfo[$iIndex][5] ; $nSortDir - - Return $nResult -EndFunc ;==>__GUICtrlListView_Sort - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_SortItems($hWnd, $iCol) - Local $iRet, $iIndex, $pFunction, $hHeader, $iFormat - - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - For $x = 1 To $__g_aListViewSortInfo[0][0] - If $hWnd = $__g_aListViewSortInfo[$x][1] Then - $iIndex = $x - ExitLoop - EndIf - Next - - $pFunction = DllCallbackGetPtr($__g_aListViewSortInfo[$iIndex][2]) ; get pointer to call back - $__g_aListViewSortInfo[$iIndex][3] = $iCol ; $nColumn = column clicked - $__g_aListViewSortInfo[$iIndex][7] = 0 ; $bSet - $__g_aListViewSortInfo[$iIndex][4] = $__g_aListViewSortInfo[$iIndex][6] ; nCurCol = $nCol - $iRet = _SendMessage($hWnd, $LVM_SORTITEMSEX, $hWnd, $pFunction, 0, "hwnd", "ptr") - If $iRet <> 0 Then - If $__g_aListViewSortInfo[$iIndex][9] Then ; Use arrow in header - $hHeader = $__g_aListViewSortInfo[$iIndex][10] - For $x = 0 To _GUICtrlHeader_GetItemCount($hHeader) - 1 - $iFormat = _GUICtrlHeader_GetItemFormat($hHeader, $x) - If BitAND($iFormat, $HDF_SORTDOWN) Then - _GUICtrlHeader_SetItemFormat($hHeader, $x, BitXOR($iFormat, $HDF_SORTDOWN)) - ElseIf BitAND($iFormat, $HDF_SORTUP) Then - _GUICtrlHeader_SetItemFormat($hHeader, $x, BitXOR($iFormat, $HDF_SORTUP)) - EndIf - Next - $iFormat = _GUICtrlHeader_GetItemFormat($hHeader, $iCol) - If $__g_aListViewSortInfo[$iIndex][5] = 1 Then ; ascending - _GUICtrlHeader_SetItemFormat($hHeader, $iCol, BitOR($iFormat, $HDF_SORTUP)) - Else ; descending - _GUICtrlHeader_SetItemFormat($hHeader, $iCol, BitOR($iFormat, $HDF_SORTDOWN)) - EndIf - EndIf - EndIf - - Return $iRet <> 0 -EndFunc ;==>_GUICtrlListView_SortItems - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlListView_StateImageMaskToIndex -; Description ...: Converts a state image mask to an image index -; Syntax.........: __GUICtrlListView_StateImageMaskToIndex ( $iMask ) -; Parameters ....: $iMask - State image mask -; Return values .: Success - One base state image index -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally and should not normally be called -; Related .......: __GUICtrlListView_IndexToStateImageMask -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlListView_StateImageMaskToIndex($iMask) - Return BitShift(BitAND($iMask, $LVIS_STATEIMAGEMASK), 12) -EndFunc ;==>__GUICtrlListView_StateImageMaskToIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlListView_SubItemHitTest($hWnd, $iX = -1, $iY = -1) - Local $iTest, $tTest, $pMemory, $tMemMap, $iFlags, $aTest[11] - - If $iX = -1 Then $iX = _WinAPI_GetMousePosX(True, $hWnd) - If $iY = -1 Then $iY = _WinAPI_GetMousePosY(True, $hWnd) - $tTest = DllStructCreate($tagLVHITTESTINFO) - DllStructSetData($tTest, "X", $iX) - DllStructSetData($tTest, "Y", $iY) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hLVLastWnd) Then - _SendMessage($hWnd, $LVM_SUBITEMHITTEST, 0, $tTest, 0, "wparam", "struct*") - Else - $iTest = DllStructGetSize($tTest) - $pMemory = _MemInit($hWnd, $iTest, $tMemMap) - _MemWrite($tMemMap, $tTest) - _SendMessage($hWnd, $LVM_SUBITEMHITTEST, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tTest, $iTest) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $LVM_SUBITEMHITTEST, 0, DllStructGetPtr($tTest)) - EndIf - $iFlags = DllStructGetData($tTest, "Flags") - $aTest[0] = DllStructGetData($tTest, "Item") - $aTest[1] = DllStructGetData($tTest, "SubItem") - $aTest[2] = BitAND($iFlags, $LVHT_NOWHERE) <> 0 - $aTest[3] = BitAND($iFlags, $LVHT_ONITEMICON) <> 0 - $aTest[4] = BitAND($iFlags, $LVHT_ONITEMLABEL) <> 0 - $aTest[5] = BitAND($iFlags, $LVHT_ONITEMSTATEICON) <> 0 - $aTest[6] = BitAND($iFlags, $LVHT_ONITEM) <> 0 - $aTest[7] = BitAND($iFlags, $LVHT_ABOVE) <> 0 - $aTest[8] = BitAND($iFlags, $LVHT_BELOW) <> 0 - $aTest[9] = BitAND($iFlags, $LVHT_TOLEFT) <> 0 - $aTest[10] = BitAND($iFlags, $LVHT_TORIGHT) <> 0 - Return $aTest -EndFunc ;==>_GUICtrlListView_SubItemHitTest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlListView_UnRegisterSortCallBack($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - For $x = 1 To $__g_aListViewSortInfo[0][0] - If $hWnd = $__g_aListViewSortInfo[$x][1] Then - DllCallbackFree($__g_aListViewSortInfo[$x][2]) - __GUICtrlListView_ArrayDelete($__g_aListViewSortInfo, $x) - $__g_aListViewSortInfo[0][0] -= 1 - ExitLoop - EndIf - Next -EndFunc ;==>_GUICtrlListView_UnRegisterSortCallBack diff --git a/build/Include/GuiMenu.au3 b/build/Include/GuiMenu.au3 deleted file mode 100644 index 7b9789272..000000000 --- a/build/Include/GuiMenu.au3 +++ /dev/null @@ -1,1098 +0,0 @@ -#include-once - -#include "MenuConstants.au3" -#include "StructureConstants.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Menu -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Menu control management. -; A menu is a list of items that specify options or groups of options (a submenu) for an application. Clicking a -; menu item opens a submenu or causes the application to carry out a command. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__MENUCONSTANT_OBJID_CLIENT = 0xFFFFFFFC -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not working/documented/implemented at this time -; -; _GUICtrlMenu_EndMenu -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlMenu_AddMenuItem -; _GUICtrlMenu_AppendMenu -; _GUICtrlMenu_CalculatePopupWindowPosition -; _GUICtrlMenu_CheckMenuItem -; _GUICtrlMenu_CheckRadioItem -; _GUICtrlMenu_CreateMenu -; _GUICtrlMenu_CreatePopup -; _GUICtrlMenu_DeleteMenu -; _GUICtrlMenu_DestroyMenu -; _GUICtrlMenu_DrawMenuBar -; _GUICtrlMenu_EnableMenuItem -; _GUICtrlMenu_FindItem -; _GUICtrlMenu_FindParent -; _GUICtrlMenu_GetItemBmp -; _GUICtrlMenu_GetItemBmpChecked -; _GUICtrlMenu_GetItemBmpUnchecked -; _GUICtrlMenu_GetItemChecked -; _GUICtrlMenu_GetItemCount -; _GUICtrlMenu_GetItemData -; _GUICtrlMenu_GetItemDefault -; _GUICtrlMenu_GetItemDisabled -; _GUICtrlMenu_GetItemEnabled -; _GUICtrlMenu_GetItemGrayed -; _GUICtrlMenu_GetItemHighlighted -; _GUICtrlMenu_GetItemID -; _GUICtrlMenu_GetItemInfo -; _GUICtrlMenu_GetItemRect -; _GUICtrlMenu_GetItemRectEx -; _GUICtrlMenu_GetItemState -; _GUICtrlMenu_GetItemStateEx -; _GUICtrlMenu_GetItemSubMenu -; _GUICtrlMenu_GetItemText -; _GUICtrlMenu_GetItemType -; _GUICtrlMenu_GetMenu -; _GUICtrlMenu_GetMenuBackground -; _GUICtrlMenu_GetMenuBarInfo -; _GUICtrlMenu_GetMenuContextHelpID -; _GUICtrlMenu_GetMenuData -; _GUICtrlMenu_GetMenuDefaultItem -; _GUICtrlMenu_GetMenuHeight -; _GUICtrlMenu_GetMenuInfo -; _GUICtrlMenu_GetMenuStyle -; _GUICtrlMenu_GetSystemMenu -; _GUICtrlMenu_InsertMenuItem -; _GUICtrlMenu_InsertMenuItemEx -; _GUICtrlMenu_IsMenu -; _GUICtrlMenu_LoadMenu -; _GUICtrlMenu_MapAccelerator -; _GUICtrlMenu_MenuItemFromPoint -; _GUICtrlMenu_RemoveMenu -; _GUICtrlMenu_SetItemBitmaps -; _GUICtrlMenu_SetItemBmp -; _GUICtrlMenu_SetItemBmpChecked -; _GUICtrlMenu_SetItemBmpUnchecked -; _GUICtrlMenu_SetItemChecked -; _GUICtrlMenu_SetItemData -; _GUICtrlMenu_SetItemDefault -; _GUICtrlMenu_SetItemDisabled -; _GUICtrlMenu_SetItemEnabled -; _GUICtrlMenu_SetItemGrayed -; _GUICtrlMenu_SetItemHighlighted -; _GUICtrlMenu_SetItemID -; _GUICtrlMenu_SetItemInfo -; _GUICtrlMenu_SetItemState -; _GUICtrlMenu_SetItemSubMenu -; _GUICtrlMenu_SetItemText -; _GUICtrlMenu_SetItemType -; _GUICtrlMenu_SetMenu -; _GUICtrlMenu_SetMenuBackground -; _GUICtrlMenu_SetMenuContextHelpID -; _GUICtrlMenu_SetMenuData -; _GUICtrlMenu_SetMenuDefaultItem -; _GUICtrlMenu_SetMenuHeight -; _GUICtrlMenu_SetMenuInfo -; _GUICtrlMenu_SetMenuStyle -; _GUICtrlMenu_TrackPopupMenu -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagMENUBARINFO -; $tagMDINEXTMENU -; $tagMENUGETOBJECTINFO -; $tagTPMPARAMS -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagMENUBARINFO -; Description ...: tagMENUBARINFO structure -; Fields ........: Size - Specifies the size, in bytes, of the structure -; Left - Specifies the x coordinate of the upper left corner of the rectangle -; Top - Specifies the y coordinate of the upper left corner of the rectangle -; Right - Specifies the x coordinate of the lower right corner of the rectangle -; Bottom - Specifies the y coordinate of the lower right corner of the rectangle -; hMenu - Handle to the menu bar or popup menu -; hWndMenu - Handle to the menu bar or popup menu -; Focused - True if the item has focus -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagMENUBARINFO = "dword Size;" & $tagRECT & ";handle hMenu;handle hWndMenu;bool Focused" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagMDINEXTMENU -; Description ...: tagMDINEXTMENU structure -; Fields ........: hMenuIn - Receives a handle to the current menu -; hMenuNext - Specifies a handle to the menu to be activated -; hWndNext - Specifies a handle to the window to receive the menu notification messages -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagMDINEXTMENU = "handle hMenuIn;handle hMenuNext;hwnd hWndNext" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagMENUGETOBJECTINFO -; Description ...: tagMENUGETOBJECTINFO structure -; Fields ........: Flags - Position of the mouse cursor with respect to the item indicated by Pos. It can be one of the following -; +values.: -; |$MNGOF_BOTTOMGAP - Mouse is on the bottom of the item indicated by Pos -; |$MNGOF_TOPGAP - Mouse is on the top of the item indicated by Pos -; Pos - Position of the item the mouse cursor is on -; hMenu - Handle to the menu the mouse cursor is on -; RIID - Identifier of the requested interface. Currently it can only be IDropTarget. -; Obj - Pointer to the interface corresponding to the RIID member. This pointer is to be returned by the -; +application when processing the message. -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: The tagMENUGETOBJECTINFO structure is used only in drag and drop menus. When the $WM_MENUGETOBJECT message is -; sent, lParam is a pointer to this structure. To create a drag and drop menu, call SetMenuInfo with -; $MNS_DRAGDROP set -; =============================================================================================================================== -Global Const $tagMENUGETOBJECTINFO = "dword Flags;uint Pos;handle hMenu;ptr RIID;ptr Obj" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTPMPARAMS -; Description ...: tagTPMPARAMS structure -; Fields ........: Size - Size of structure, in bytes -; Left - X position of upper left corner to exclude when positioing the window -; Top - Y position of upper left corner to exclude when positioing the window -; Right - X position of lower right corner to exclude when positioing the window -; Bottom - Y position of lower right corner to exclude when positioing the window -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: All coordinates are in screen coordinates -; =============================================================================================================================== -Global Const $tagTPMPARAMS = "uint Size;" & $tagRECT - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_AddMenuItem($hMenu, $sText, $iCmdID = 0, $hSubMenu = 0) - Local $iIndex = _GUICtrlMenu_GetItemCount($hMenu) - Local $tMenu = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tMenu, "Size", DllStructGetSize($tMenu)) - DllStructSetData($tMenu, "ID", $iCmdID) - DllStructSetData($tMenu, "SubMenu", $hSubMenu) - If $sText = "" Then - DllStructSetData($tMenu, "Mask", $MIIM_FTYPE) - DllStructSetData($tMenu, "Type", $MFT_SEPARATOR) - Else - DllStructSetData($tMenu, "Mask", BitOR($MIIM_ID, $MIIM_STRING, $MIIM_SUBMENU)) - DllStructSetData($tMenu, "Type", $MFT_STRING) - Local $tText = DllStructCreate("wchar Text[" & StringLen($sText) + 1 & "]") - DllStructSetData($tText, "Text", $sText) - DllStructSetData($tMenu, "TypeData", DllStructGetPtr($tText)) - EndIf - Local $aResult = DllCall("user32.dll", "bool", "InsertMenuItemW", "handle", $hMenu, "uint", $iIndex, "bool", True, "struct*", $tMenu) - If @error Then Return SetError(@error, @extended, -1) - Return SetExtended($aResult[0], $iIndex) -EndFunc ;==>_GUICtrlMenu_AddMenuItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_AppendMenu($hMenu, $iFlags, $iNewItem, $vNewItem) - Local $sType = "wstr" - If BitAND($iFlags, $MF_BITMAP) Then $sType = "handle" - If BitAND($iFlags, $MF_OWNERDRAW) Then $sType = "ulong_ptr" - Local $aResult = DllCall("user32.dll", "bool", "AppendMenuW", "handle", $hMenu, "uint", $iFlags, "uint_ptr", $iNewItem, $sType, $vNewItem) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] = 0 Then Return SetError(10, 0, False) - - _GUICtrlMenu_DrawMenuBar(_GUICtrlMenu_FindParent($hMenu)) - Return True -EndFunc ;==>_GUICtrlMenu_AppendMenu - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _GUICtrlMenu_CalculatePopupWindowPosition($iX, $iY, $iWidth, $iHeight, $iFlags = 0, $tExclude = 0) - Local $tAnchor = DllStructCreate($tagPOINT) - DllStructSetData($tAnchor, 1, $iX) - DllStructSetData($tAnchor, 2, $iY) - Local $tSIZE = DllStructCreate($tagSIZE) - DllStructSetData($tSIZE, 1, $iWidth) - DllStructSetData($tSIZE, 2, $iHeight) - Local $tPos = DllStructCreate($tagRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'CalculatePopupWindowPosition', 'struct*', $tAnchor, 'struct*', $tSIZE, _ - 'uint', $iFlags, 'struct*', $tExclude, 'struct*', $tPos) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tPos -EndFunc ;==>_GUICtrlMenu_CalculatePopupWindowPosition - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_CheckMenuItem($hMenu, $iItem, $bCheck = True, $bByPos = True) - Local $iByPos = 0 - - If $bCheck Then $iByPos = BitOR($iByPos, $MF_CHECKED) - If $bByPos Then $iByPos = BitOR($iByPos, $MF_BYPOSITION) - Local $aResult = DllCall("user32.dll", "dword", "CheckMenuItem", "handle", $hMenu, "uint", $iItem, "uint", $iByPos) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_CheckMenuItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_CheckRadioItem($hMenu, $iFirst, $iLast, $iCheck, $bByPos = True) - Local $iByPos = 0 - - If $bByPos Then $iByPos = $MF_BYPOSITION - Local $aResult = DllCall("user32.dll", "bool", "CheckMenuRadioItem", "handle", $hMenu, "uint", $iFirst, "uint", $iLast, "uint", $iCheck, "uint", $iByPos) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_CheckRadioItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_CreateMenu($iStyle = $MNS_CHECKORBMP) - Local $aResult = DllCall("user32.dll", "handle", "CreateMenu") - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] = 0 Then Return SetError(10, 0, 0) - _GUICtrlMenu_SetMenuStyle($aResult[0], $iStyle) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_CreateMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_CreatePopup($iStyle = $MNS_CHECKORBMP) - Local $aResult = DllCall("user32.dll", "handle", "CreatePopupMenu") - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] = 0 Then Return SetError(10, 0, 0) - _GUICtrlMenu_SetMenuStyle($aResult[0], $iStyle) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_CreatePopup - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_DeleteMenu($hMenu, $iItem, $bByPos = True) - Local $iByPos = 0 - - If $bByPos Then $iByPos = $MF_BYPOSITION - Local $aResult = DllCall("user32.dll", "bool", "DeleteMenu", "handle", $hMenu, "uint", $iItem, "uint", $iByPos) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] = 0 Then Return SetError(10, 0, False) - - _GUICtrlMenu_DrawMenuBar(_GUICtrlMenu_FindParent($hMenu)) - Return True -EndFunc ;==>_GUICtrlMenu_DeleteMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_DestroyMenu($hMenu) - Local $aResult = DllCall("user32.dll", "bool", "DestroyMenu", "handle", $hMenu) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_DestroyMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_DrawMenuBar($hWnd) - Local $aResult = DllCall("user32.dll", "bool", "DrawMenuBar", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_DrawMenuBar - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_EnableMenuItem($hMenu, $iItem, $iState = 0, $bByPos = True) - Local $iByPos = $iState - If $bByPos Then $iByPos = BitOR($iByPos, $MF_BYPOSITION) - Local $aResult = DllCall("user32.dll", "bool", "EnableMenuItem", "handle", $hMenu, "uint", $iItem, "uint", $iByPos) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] = 0 Then Return SetError(10, 0, False) - - _GUICtrlMenu_DrawMenuBar(_GUICtrlMenu_FindParent($hMenu)) - Return True -EndFunc ;==>_GUICtrlMenu_EnableMenuItem - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlMenu_EndMenu -; Description ...: Ends the calling thread's active menu -; Syntax.........: _GUICtrlMenu_EndMenu ( ) -; Parameters ....: -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: Does not work on menus in external programs -; Related .......: -; Link ..........: @@MsdnLink@@ EndMenu -; Example .......: -; =============================================================================================================================== -Func _GUICtrlMenu_EndMenu() - Local $aResult = DllCall("user32.dll", "bool", "EndMenu") - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_EndMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_FindItem($hMenu, $sText, $bInStr = False, $iStart = 0) - Local $sMenu - - For $iI = $iStart To _GUICtrlMenu_GetItemCount($hMenu) - $sMenu = StringReplace(_GUICtrlMenu_GetItemText($hMenu, $iI), "&", "") - Switch $bInStr - Case False - If $sMenu = $sText Then Return $iI - Case True - If StringInStr($sMenu, $sText) Then Return $iI - EndSwitch - Next - Return -1 -EndFunc ;==>_GUICtrlMenu_FindItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_FindParent($hMenu) - Local $hList = _WinAPI_EnumWindowsTop() - For $iI = 1 To $hList[0][0] - If _GUICtrlMenu_GetMenu($hList[$iI][0]) = $hMenu Then Return $hList[$iI][0] - Next -EndFunc ;==>_GUICtrlMenu_FindParent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemBmp($hMenu, $iItem, $bByPos = True) - Local $tInfo = _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos) - Return DllStructGetData($tInfo, "BmpItem") -EndFunc ;==>_GUICtrlMenu_GetItemBmp - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemBmpChecked($hMenu, $iItem, $bByPos = True) - Local $tInfo = _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos) - Return DllStructGetData($tInfo, "BmpChecked") -EndFunc ;==>_GUICtrlMenu_GetItemBmpChecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemBmpUnchecked($hMenu, $iItem, $bByPos = True) - Local $tInfo = _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos) - Return DllStructGetData($tInfo, "BmpUnchecked") -EndFunc ;==>_GUICtrlMenu_GetItemBmpUnchecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemChecked($hMenu, $iItem, $bByPos = True) - Return BitAND(_GUICtrlMenu_GetItemStateEx($hMenu, $iItem, $bByPos), $MF_CHECKED) <> 0 -EndFunc ;==>_GUICtrlMenu_GetItemChecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemCount($hMenu) - Local $aResult = DllCall("user32.dll", "int", "GetMenuItemCount", "handle", $hMenu) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_GetItemCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemData($hMenu, $iItem, $bByPos = True) - Local $tInfo = _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos) - Return DllStructGetData($tInfo, "ItemData") -EndFunc ;==>_GUICtrlMenu_GetItemData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemDefault($hMenu, $iItem, $bByPos = True) - Return BitAND(_GUICtrlMenu_GetItemStateEx($hMenu, $iItem, $bByPos), $MF_DEFAULT) <> 0 -EndFunc ;==>_GUICtrlMenu_GetItemDefault - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemDisabled($hMenu, $iItem, $bByPos = True) - Return BitAND(_GUICtrlMenu_GetItemStateEx($hMenu, $iItem, $bByPos), $MF_DISABLED) <> 0 -EndFunc ;==>_GUICtrlMenu_GetItemDisabled - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemEnabled($hMenu, $iItem, $bByPos = True) - Return BitAND(_GUICtrlMenu_GetItemStateEx($hMenu, $iItem, $bByPos), $MF_DISABLED) = 0 -EndFunc ;==>_GUICtrlMenu_GetItemEnabled - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemGrayed($hMenu, $iItem, $bByPos = True) - Return BitAND(_GUICtrlMenu_GetItemStateEx($hMenu, $iItem, $bByPos), $MF_GRAYED) <> 0 -EndFunc ;==>_GUICtrlMenu_GetItemGrayed - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemHighlighted($hMenu, $iItem, $bByPos = True) - Return BitAND(_GUICtrlMenu_GetItemStateEx($hMenu, $iItem, $bByPos), $MF_HILITE) <> 0 -EndFunc ;==>_GUICtrlMenu_GetItemHighlighted - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemID($hMenu, $iItem, $bByPos = True) - Local $tInfo = _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos) - Return DllStructGetData($tInfo, "ID") -EndFunc ;==>_GUICtrlMenu_GetItemID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos = True) - Local $tInfo = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - DllStructSetData($tInfo, "Mask", $MIIM_DATAMASK) - Local $aResult = DllCall("user32.dll", "bool", "GetMenuItemInfo", "handle", $hMenu, "uint", $iItem, "bool", $bByPos, "struct*", $tInfo) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tInfo) -EndFunc ;==>_GUICtrlMenu_GetItemInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemRect($hWnd, $hMenu, $iItem) - Local $tRECT = _GUICtrlMenu_GetItemRectEx($hWnd, $hMenu, $iItem) - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlMenu_GetItemRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemRectEx($hWnd, $hMenu, $iItem) - Local $tRECT = DllStructCreate($tagRECT) - Local $aResult = DllCall("user32.dll", "bool", "GetMenuItemRect", "hwnd", $hWnd, "handle", $hMenu, "uint", $iItem, "struct*", $tRECT) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tRECT) -EndFunc ;==>_GUICtrlMenu_GetItemRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemState($hMenu, $iItem, $bByPos = True) - Local $iRet = 0 - - Local $iState = _GUICtrlMenu_GetItemStateEx($hMenu, $iItem, $bByPos) - If BitAND($iState, $MFS_CHECKED) <> 0 Then $iRet = BitOR($iRet, 1) - If BitAND($iState, $MFS_DEFAULT) <> 0 Then $iRet = BitOR($iRet, 2) - If BitAND($iState, $MFS_DISABLED) <> 0 Then $iRet = BitOR($iRet, 4) - If BitAND($iState, $MFS_GRAYED) <> 0 Then $iRet = BitOR($iRet, 8) - If BitAND($iState, $MFS_HILITE) <> 0 Then $iRet = BitOR($iRet, 16) - Return $iRet -EndFunc ;==>_GUICtrlMenu_GetItemState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemStateEx($hMenu, $iItem, $bByPos = True) - Local $tInfo = _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos) - Return DllStructGetData($tInfo, "State") -EndFunc ;==>_GUICtrlMenu_GetItemStateEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemSubMenu($hMenu, $iItem) - Local $aResult = DllCall("user32.dll", "handle", "GetSubMenu", "handle", $hMenu, "int", $iItem) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_GetItemSubMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemText($hMenu, $iItem, $bByPos = True) - Local $iByPos = 0 - - If $bByPos Then $iByPos = $MF_BYPOSITION - Local $aResult = DllCall("user32.dll", "int", "GetMenuStringW", "handle", $hMenu, "uint", $iItem, "wstr", "", "int", 4096, "uint", $iByPos) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $aResult[3]) -EndFunc ;==>_GUICtrlMenu_GetItemText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetItemType($hMenu, $iItem, $bByPos = True) - Local $tInfo = _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos) - Return DllStructGetData($tInfo, "Type") -EndFunc ;==>_GUICtrlMenu_GetItemType - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetMenu($hWnd) - Local $aResult = DllCall("user32.dll", "handle", "GetMenu", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_GetMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetMenuBackground($hMenu) - Local $tInfo = _GUICtrlMenu_GetMenuInfo($hMenu) - Return DllStructGetData($tInfo, "hBack") -EndFunc ;==>_GUICtrlMenu_GetMenuBackground - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetMenuBarInfo($hWnd, $iItem = 0, $iObject = 1) - Local $aObject[3] = [$__MENUCONSTANT_OBJID_CLIENT, $OBJID_MENU, $OBJID_SYSMENU] - - Local $tInfo = DllStructCreate($tagMENUBARINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - Local $aResult = DllCall("user32.dll", "bool", "GetMenuBarInfo", "hwnd", $hWnd, "long", $aObject[$iObject], "long", $iItem, "struct*", $tInfo) - If @error Then Return SetError(@error, @extended, 0) - Local $aInfo[8] - $aInfo[0] = DllStructGetData($tInfo, "Left") - $aInfo[1] = DllStructGetData($tInfo, "Top") - $aInfo[2] = DllStructGetData($tInfo, "Right") - $aInfo[3] = DllStructGetData($tInfo, "Bottom") - $aInfo[4] = DllStructGetData($tInfo, "hMenu") - $aInfo[5] = DllStructGetData($tInfo, "hWndMenu") - $aInfo[6] = BitAND(DllStructGetData($tInfo, "Focused"), 1) <> 0 - $aInfo[7] = BitAND(DllStructGetData($tInfo, "Focused"), 2) <> 0 - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_GUICtrlMenu_GetMenuBarInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetMenuContextHelpID($hMenu) - Local $tInfo = _GUICtrlMenu_GetMenuInfo($hMenu) - Return DllStructGetData($tInfo, "ContextHelpID") -EndFunc ;==>_GUICtrlMenu_GetMenuContextHelpID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetMenuData($hMenu) - Local $tInfo = _GUICtrlMenu_GetMenuInfo($hMenu) - Return DllStructGetData($tInfo, "MenuData") -EndFunc ;==>_GUICtrlMenu_GetMenuData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetMenuDefaultItem($hMenu, $bByPos = True, $iFlags = 0) - Local $aResult = DllCall("user32.dll", "INT", "GetMenuDefaultItem", "handle", $hMenu, "uint", $bByPos, "uint", $iFlags) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_GetMenuDefaultItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetMenuHeight($hMenu) - Local $tInfo = _GUICtrlMenu_GetMenuInfo($hMenu) - Return DllStructGetData($tInfo, "YMax") -EndFunc ;==>_GUICtrlMenu_GetMenuHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetMenuInfo($hMenu) - Local $tInfo = DllStructCreate($tagMENUINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - DllStructSetData($tInfo, "Mask", BitOR($MIM_BACKGROUND, $MIM_HELPID, $MIM_MAXHEIGHT, $MIM_MENUDATA, $MIM_STYLE)) - Local $aResult = DllCall("user32.dll", "bool", "GetMenuInfo", "handle", $hMenu, "struct*", $tInfo) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tInfo) -EndFunc ;==>_GUICtrlMenu_GetMenuInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetMenuStyle($hMenu) - Local $tInfo = _GUICtrlMenu_GetMenuInfo($hMenu) - Return DllStructGetData($tInfo, "Style") -EndFunc ;==>_GUICtrlMenu_GetMenuStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_GetSystemMenu($hWnd, $bRevert = False) - Local $aResult = DllCall("user32.dll", "hwnd", "GetSystemMenu", "hwnd", $hWnd, "int", $bRevert) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_GetSystemMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_InsertMenuItem($hMenu, $iIndex, $sText, $iCmdID = 0, $hSubMenu = 0) - Local $tMenu = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tMenu, "Size", DllStructGetSize($tMenu)) - DllStructSetData($tMenu, "ID", $iCmdID) - DllStructSetData($tMenu, "SubMenu", $hSubMenu) - If $sText = "" Then - DllStructSetData($tMenu, "Mask", $MIIM_FTYPE) - DllStructSetData($tMenu, "Type", $MFT_SEPARATOR) - Else - DllStructSetData($tMenu, "Mask", BitOR($MIIM_ID, $MIIM_STRING, $MIIM_SUBMENU)) - DllStructSetData($tMenu, "Type", $MFT_STRING) - Local $tText = DllStructCreate("wchar Text[" & StringLen($sText) + 1 & "]") - DllStructSetData($tText, "Text", $sText) - DllStructSetData($tMenu, "TypeData", DllStructGetPtr($tText)) - EndIf - Local $aResult = DllCall("user32.dll", "bool", "InsertMenuItemW", "handle", $hMenu, "uint", $iIndex, "bool", True, "struct*", $tMenu) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_InsertMenuItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_InsertMenuItemEx($hMenu, $iIndex, ByRef $tMenu, $bByPos = True) - Local $aResult = DllCall("user32.dll", "bool", "InsertMenuItemW", "handle", $hMenu, "uint", $iIndex, "bool", $bByPos, "struct*", $tMenu) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_InsertMenuItemEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_IsMenu($hMenu) - Local $aResult = DllCall("user32.dll", "bool", "IsMenu", "handle", $hMenu) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_IsMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_LoadMenu($hInst, $sMenuName) - Local $aResult = DllCall("user32.dll", "handle", "LoadMenuW", "handle", $hInst, "wstr", $sMenuName) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_LoadMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_MapAccelerator($hMenu, $sAccelKey) - Local $sText - - Local $iCount = _GUICtrlMenu_GetItemCount($hMenu) - For $iI = 0 To $iCount - 1 - $sText = _GUICtrlMenu_GetItemText($hMenu, $iI) - If StringInStr($sText, "&" & $sAccelKey) > 0 Then Return $iI - Next - Return -1 -EndFunc ;==>_GUICtrlMenu_MapAccelerator - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_MenuItemFromPoint($hWnd, $hMenu, $iX = -1, $iY = -1) - If $iX = -1 Then $iX = _WinAPI_GetMousePosX() - If $iY = -1 Then $iY = _WinAPI_GetMousePosY() - Local $aResult = DllCall("user32.dll", "int", "MenuItemFromPoint", "hwnd", $hWnd, "handle", $hMenu, "int", $iX, "int", $iY) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_MenuItemFromPoint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_RemoveMenu($hMenu, $iItem, $bByPos = True) - Local $iByPos = 0 - - If $bByPos Then $iByPos = $MF_BYPOSITION - Local $aResult = DllCall("user32.dll", "bool", "RemoveMenu", "handle", $hMenu, "uint", $iItem, "uint", $iByPos) - If @error Then Return SetError(@error, @extended, False) - If $aResult[0] = 0 Then Return SetError(10, 0, False) - - _GUICtrlMenu_DrawMenuBar(_GUICtrlMenu_FindParent($hMenu)) - Return True -EndFunc ;==>_GUICtrlMenu_RemoveMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemBitmaps($hMenu, $iItem, $hChecked, $hUnChecked, $bByPos = True) - Local $iByPos = 0 - - If $bByPos Then $iByPos = $MF_BYPOSITION - Local $aResult = DllCall("user32.dll", "bool", "SetMenuItemBitmaps", "handle", $hMenu, "uint", $iItem, "uint", $iByPos, "handle", $hUnChecked, "handle", $hChecked) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_SetItemBitmaps - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemBmp($hMenu, $iItem, $hBitmap, $bByPos = True) - Local $tInfo = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - DllStructSetData($tInfo, "Mask", $MIIM_BITMAP) - DllStructSetData($tInfo, "BmpItem", $hBitmap) - Return _GUICtrlMenu_SetItemInfo($hMenu, $iItem, $tInfo, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemBmp - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemBmpChecked($hMenu, $iItem, $hBitmap, $bByPos = True) - Local $tInfo = _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos) - DllStructSetData($tInfo, "Mask", $MIIM_CHECKMARKS) - DllStructSetData($tInfo, "BmpChecked", $hBitmap) - Return _GUICtrlMenu_SetItemInfo($hMenu, $iItem, $tInfo, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemBmpChecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemBmpUnchecked($hMenu, $iItem, $hBitmap, $bByPos = True) - Local $tInfo = _GUICtrlMenu_GetItemInfo($hMenu, $iItem, $bByPos) - DllStructSetData($tInfo, "Mask", $MIIM_CHECKMARKS) - DllStructSetData($tInfo, "BmpUnchecked", $hBitmap) - Return _GUICtrlMenu_SetItemInfo($hMenu, $iItem, $tInfo, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemBmpUnchecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemChecked($hMenu, $iItem, $bState = True, $bByPos = True) - Return _GUICtrlMenu_SetItemState($hMenu, $iItem, $MFS_CHECKED, $bState, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemChecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemData($hMenu, $iItem, $iData, $bByPos = True) - Local $tInfo = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - DllStructSetData($tInfo, "Mask", $MIIM_DATA) - DllStructSetData($tInfo, "ItemData", $iData) - Return _GUICtrlMenu_SetItemInfo($hMenu, $iItem, $tInfo, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemDefault($hMenu, $iItem, $bState = True, $bByPos = True) - Return _GUICtrlMenu_SetItemState($hMenu, $iItem, $MFS_DEFAULT, $bState, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemDefault - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemDisabled($hMenu, $iItem, $bState = True, $bByPos = True) - Return _GUICtrlMenu_SetItemState($hMenu, $iItem, BitOR($MFS_DISABLED, $MFS_GRAYED), $bState, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemDisabled - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemEnabled($hMenu, $iItem, $bState = True, $bByPos = True) - Return _GUICtrlMenu_SetItemState($hMenu, $iItem, BitOR($MFS_DISABLED, $MFS_GRAYED), Not $bState, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemEnabled - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemGrayed($hMenu, $iItem, $bState = True, $bByPos = True) - Return _GUICtrlMenu_SetItemState($hMenu, $iItem, $MFS_GRAYED, $bState, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemGrayed - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemHighlighted($hMenu, $iItem, $bState = True, $bByPos = True) - Return _GUICtrlMenu_SetItemState($hMenu, $iItem, $MFS_HILITE, $bState, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemHighlighted - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemID($hMenu, $iItem, $iID, $bByPos = True) - Local $tInfo = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - DllStructSetData($tInfo, "Mask", $MIIM_ID) - DllStructSetData($tInfo, "ID", $iID) - Return _GUICtrlMenu_SetItemInfo($hMenu, $iItem, $tInfo, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemInfo($hMenu, $iItem, ByRef $tInfo, $bByPos = True) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - Local $aResult = DllCall("user32.dll", "bool", "SetMenuItemInfoW", "handle", $hMenu, "uint", $iItem, "bool", $bByPos, "struct*", $tInfo) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_SetItemInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemState($hMenu, $iItem, $iState, $bState = True, $bByPos = True) - Local $iFlag = _GUICtrlMenu_GetItemStateEx($hMenu, $iItem, $bByPos) - If $bState Then - $iState = BitOR($iFlag, $iState) - Else - $iState = BitAND($iFlag, BitNOT($iState)) - EndIf - Local $tInfo = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - DllStructSetData($tInfo, "Mask", $MIIM_STATE) - DllStructSetData($tInfo, "State", $iState) - Return _GUICtrlMenu_SetItemInfo($hMenu, $iItem, $tInfo, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemSubMenu($hMenu, $iItem, $hSubMenu, $bByPos = True) - Local $tInfo = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - DllStructSetData($tInfo, "Mask", $MIIM_SUBMENU) - DllStructSetData($tInfo, "SubMenu", $hSubMenu) - Return _GUICtrlMenu_SetItemInfo($hMenu, $iItem, $tInfo, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemSubMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemText($hMenu, $iItem, $sText, $bByPos = True) - Local $tBuffer = DllStructCreate("wchar Text[" & StringLen($sText) + 1 & "]") - DllStructSetData($tBuffer, "Text", $sText) - Local $tInfo = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - DllStructSetData($tInfo, "Mask", $MIIM_STRING) - DllStructSetData($tInfo, "TypeData", DllStructGetPtr($tBuffer)) - Return _GUICtrlMenu_SetItemInfo($hMenu, $iItem, $tInfo, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetItemType($hMenu, $iItem, $iType, $bByPos = True) - Local $tInfo = DllStructCreate($tagMENUITEMINFO) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - DllStructSetData($tInfo, "Mask", $MIIM_FTYPE) - DllStructSetData($tInfo, "Type", $iType) - Return _GUICtrlMenu_SetItemInfo($hMenu, $iItem, $tInfo, $bByPos) -EndFunc ;==>_GUICtrlMenu_SetItemType - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetMenu($hWnd, $hMenu) - Local $aResult = DllCall("user32.dll", "bool", "SetMenu", "hwnd", $hWnd, "handle", $hMenu) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_SetMenu - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetMenuBackground($hMenu, $hBrush) - Local $tInfo = DllStructCreate($tagMENUINFO) - DllStructSetData($tInfo, "Mask", $MIM_BACKGROUND) - DllStructSetData($tInfo, "hBack", $hBrush) - Return _GUICtrlMenu_SetMenuInfo($hMenu, $tInfo) -EndFunc ;==>_GUICtrlMenu_SetMenuBackground - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetMenuContextHelpID($hMenu, $iHelpID) - Local $tInfo = DllStructCreate($tagMENUINFO) - DllStructSetData($tInfo, "Mask", $MIM_HELPID) - DllStructSetData($tInfo, "ContextHelpID", $iHelpID) - Return _GUICtrlMenu_SetMenuInfo($hMenu, $tInfo) -EndFunc ;==>_GUICtrlMenu_SetMenuContextHelpID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetMenuData($hMenu, $iData) - Local $tInfo = DllStructCreate($tagMENUINFO) - DllStructSetData($tInfo, "Mask", $MIM_MENUDATA) - DllStructSetData($tInfo, "MenuData", $iData) - Return _GUICtrlMenu_SetMenuInfo($hMenu, $tInfo) -EndFunc ;==>_GUICtrlMenu_SetMenuData - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetMenuDefaultItem($hMenu, $iItem, $bByPos = True) - Local $aResult = DllCall("user32.dll", "bool", "SetMenuDefaultItem", "handle", $hMenu, "uint", $iItem, "uint", $bByPos) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_SetMenuDefaultItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetMenuHeight($hMenu, $iHeight) - Local $tInfo = DllStructCreate($tagMENUINFO) - DllStructSetData($tInfo, "Mask", $MIM_MAXHEIGHT) - DllStructSetData($tInfo, "YMax", $iHeight) - Return _GUICtrlMenu_SetMenuInfo($hMenu, $tInfo) -EndFunc ;==>_GUICtrlMenu_SetMenuHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetMenuInfo($hMenu, ByRef $tInfo) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - Local $aResult = DllCall("user32.dll", "bool", "SetMenuInfo", "handle", $hMenu, "struct*", $tInfo) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_SetMenuInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_SetMenuStyle($hMenu, $iStyle) - Local $tInfo = DllStructCreate($tagMENUINFO) - DllStructSetData($tInfo, "Mask", $MIM_STYLE) - DllStructSetData($tInfo, "Style", $iStyle) - Return _GUICtrlMenu_SetMenuInfo($hMenu, $tInfo) -EndFunc ;==>_GUICtrlMenu_SetMenuStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMenu_TrackPopupMenu($hMenu, $hWnd, $iX = -1, $iY = -1, $iAlignX = 1, $iAlignY = 1, $iNotify = 0, $iButtons = 0) - If $iX = -1 Then $iX = _WinAPI_GetMousePosX() - If $iY = -1 Then $iY = _WinAPI_GetMousePosY() - - Local $iFlags = 0 - Switch $iAlignX - Case 1 - $iFlags = BitOR($iFlags, $TPM_LEFTALIGN) - Case 2 - $iFlags = BitOR($iFlags, $TPM_RIGHTALIGN) - Case Else - $iFlags = BitOR($iFlags, $TPM_CENTERALIGN) - EndSwitch - Switch $iAlignY - Case 1 - $iFlags = BitOR($iFlags, $TPM_TOPALIGN) - Case 2 - $iFlags = BitOR($iFlags, $TPM_VCENTERALIGN) - Case Else - $iFlags = BitOR($iFlags, $TPM_BOTTOMALIGN) - EndSwitch - If BitAND($iNotify, 1) <> 0 Then $iFlags = BitOR($iFlags, $TPM_NONOTIFY) - If BitAND($iNotify, 2) <> 0 Then $iFlags = BitOR($iFlags, $TPM_RETURNCMD) - Switch $iButtons - Case 1 - $iFlags = BitOR($iFlags, $TPM_RIGHTBUTTON) - Case Else - $iFlags = BitOR($iFlags, $TPM_LEFTBUTTON) - EndSwitch - Local $aResult = DllCall("user32.dll", "bool", "TrackPopupMenu", "handle", $hMenu, "uint", $iFlags, "int", $iX, "int", $iY, "int", 0, "hwnd", $hWnd, "ptr", 0) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_GUICtrlMenu_TrackPopupMenu diff --git a/build/Include/GuiMonthCal.au3 b/build/Include/GuiMonthCal.au3 deleted file mode 100644 index 57f9a1be8..000000000 --- a/build/Include/GuiMonthCal.au3 +++ /dev/null @@ -1,904 +0,0 @@ -#include-once - -#include "DateTimeConstants.au3" -#include "Memory.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: MonthCalendar -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with MonthCalendar control management. -; A month calendar control implements a calendar-like user interface. This provides the user with a very -; intuitive and recognizable method of entering or selecting a date. The control also provides the application -; with the means to obtain and set the date information in the control using existing data types. -; Author(s) .....: Paul Campbell (PaulIA), Gary Frost (gafrost) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hMCLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__MONTHCALCONSTANT_ClassName = "SysMonthCal32" -Global Const $__MONTHCALCONSTANT_SWP_NOZORDER = 0x0004 -; ===============================================================================================================================$aArray[$i] - -; #CURRENT# ===================================================================================================================== -; _GUICtrlMonthCal_Create -; _GUICtrlMonthCal_Destroy -; _GUICtrlMonthCal_GetCalendarBorder -; _GUICtrlMonthCal_GetCalendarCount -; _GUICtrlMonthCal_GetColor -; _GUICtrlMonthCal_GetColorArray -; _GUICtrlMonthCal_GetCurSel -; _GUICtrlMonthCal_GetCurSelStr -; _GUICtrlMonthCal_GetFirstDOW -; _GUICtrlMonthCal_GetFirstDOWStr -; _GUICtrlMonthCal_GetMaxSelCount -; _GUICtrlMonthCal_GetMaxTodayWidth -; _GUICtrlMonthCal_GetMinReqHeight -; _GUICtrlMonthCal_GetMinReqRect -; _GUICtrlMonthCal_GetMinReqRectArray -; _GUICtrlMonthCal_GetMinReqWidth -; _GUICtrlMonthCal_GetMonthDelta -; _GUICtrlMonthCal_GetMonthRange -; _GUICtrlMonthCal_GetMonthRangeMax -; _GUICtrlMonthCal_GetMonthRangeMaxStr -; _GUICtrlMonthCal_GetMonthRangeMin -; _GUICtrlMonthCal_GetMonthRangeMinStr -; _GUICtrlMonthCal_GetMonthRangeSpan -; _GUICtrlMonthCal_GetRange -; _GUICtrlMonthCal_GetRangeMax -; _GUICtrlMonthCal_GetRangeMaxStr -; _GUICtrlMonthCal_GetRangeMin -; _GUICtrlMonthCal_GetRangeMinStr -; _GUICtrlMonthCal_GetSelRange -; _GUICtrlMonthCal_GetSelRangeMax -; _GUICtrlMonthCal_GetSelRangeMaxStr -; _GUICtrlMonthCal_GetSelRangeMin -; _GUICtrlMonthCal_GetSelRangeMinStr -; _GUICtrlMonthCal_GetToday -; _GUICtrlMonthCal_GetTodayStr -; _GUICtrlMonthCal_GetUnicodeFormat -; _GUICtrlMonthCal_HitTest -; _GUICtrlMonthCal_SetCalendarBorder -; _GUICtrlMonthCal_SetColor -; _GUICtrlMonthCal_SetCurSel -; _GUICtrlMonthCal_SetDayState -; _GUICtrlMonthCal_SetFirstDOW -; _GUICtrlMonthCal_SetMaxSelCount -; _GUICtrlMonthCal_SetMonthDelta -; _GUICtrlMonthCal_SetRange -; _GUICtrlMonthCal_SetSelRange -; _GUICtrlMonthCal_SetToday -; _GUICtrlMonthCal_SetUnicodeFormat -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __GUICtrlMonthCal_Resize -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlMonthCal_Create($hWnd, $iX, $iY, $iStyle = 0x00000000, $iExStyle = 0x00000000) - If Not IsHWnd($hWnd) Then - ; Invalid Window handle for _GUICtrlMonthCal_Create 1st parameter - Return SetError(1, 0, 0) - EndIf - - Local $hMonCal, $nCtrlID - - If $iStyle = -1 Then $iStyle = 0x00000000 - If $iExStyle = -1 Then $iExStyle = 0x00000000 - - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE) - - $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - $hMonCal = _WinAPI_CreateWindowEx($iExStyle, $__MONTHCALCONSTANT_ClassName, "", $iStyle, $iX, $iY, 0, 0, $hWnd, $nCtrlID) - __GUICtrlMonthCal_Resize($hMonCal, $iX, $iY) - Return $hMonCal -EndFunc ;==>_GUICtrlMonthCal_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__MONTHCALCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Delete Other Applications Month Calendar(s) Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlMonthCal_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetCalendarBorder($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_GETCALENDARBORDER) - Else - Return GUICtrlSendMsg($hWnd, $MCM_GETCALENDARBORDER, 0, 0) - EndIf -EndFunc ;==>_GUICtrlMonthCal_GetCalendarBorder - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetCalendarCount($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_GETCALENDARCOUNT) - Else - Return GUICtrlSendMsg($hWnd, $MCM_GETCALENDARCOUNT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlMonthCal_GetCalendarCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetColor($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_GETCOLOR, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $MCM_GETCOLOR, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlMonthCal_GetColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetColorArray($hWnd, $iColor) - Local $iRet, $a_Result[4] - $a_Result[0] = 3 - If IsHWnd($hWnd) Then - $iRet = _SendMessage($hWnd, $MCM_GETCOLOR, $iColor) - Else - $iRet = GUICtrlSendMsg($hWnd, $MCM_GETCOLOR, $iColor, 0) - EndIf - If $iRet = -1 Then Return SetError(1, $iRet, 0) - - $a_Result[1] = Int($iRet) ; COLORREF rgbcolor - $a_Result[2] = "0x" & Hex(String($iRet), 6) ; Hex BGR color - $a_Result[3] = Hex(String($iRet), 6) - $a_Result[3] = "0x" & StringMid($a_Result[3], 5, 2) & StringMid($a_Result[3], 3, 2) & StringMid($a_Result[3], 1, 2) ; Hex RGB Color - Return $a_Result -EndFunc ;==>_GUICtrlMonthCal_GetColorArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetCurSel($hWnd) - Local $tBuffer = DllStructCreate($tagSYSTEMTIME) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - _SendMessage($hWnd, $MCM_GETCURSEL, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _SendMessage($hWnd, $MCM_GETCURSEL, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $MCM_GETCURSEL, 0, DllStructGetPtr($tBuffer)) - EndIf - Return $tBuffer -EndFunc ;==>_GUICtrlMonthCal_GetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetCurSelStr($hWnd, $sFormat = "%02d/%02d/%04d") - Local $tBuffer = _GUICtrlMonthCal_GetCurSel($hWnd) - Return StringFormat($sFormat, DllStructGetData($tBuffer, "Month"), DllStructGetData($tBuffer, "Day"), DllStructGetData($tBuffer, "Year")) -EndFunc ;==>_GUICtrlMonthCal_GetCurSelStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetFirstDOW($hWnd) - If IsHWnd($hWnd) Then - Return _WinAPI_LoWord(_SendMessage($hWnd, $MCM_GETFIRSTDAYOFWEEK)) - Else - Return _WinAPI_LoWord(GUICtrlSendMsg($hWnd, $MCM_GETFIRSTDAYOFWEEK, 0, 0)) - EndIf -EndFunc ;==>_GUICtrlMonthCal_GetFirstDOW - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetFirstDOWStr($hWnd) - Local $aDays[7] = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] - - Return $aDays[_GUICtrlMonthCal_GetFirstDOW($hWnd)] -EndFunc ;==>_GUICtrlMonthCal_GetFirstDOWStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMaxSelCount($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_GETMAXSELCOUNT) - Else - Return GUICtrlSendMsg($hWnd, $MCM_GETMAXSELCOUNT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlMonthCal_GetMaxSelCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMaxTodayWidth($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_GETMAXTODAYWIDTH) - Else - Return GUICtrlSendMsg($hWnd, $MCM_GETMAXTODAYWIDTH, 0, 0) - EndIf -EndFunc ;==>_GUICtrlMonthCal_GetMaxTodayWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMinReqHeight($hWnd) - Local $tRECT = _GUICtrlMonthCal_GetMinReqRect($hWnd) - Return DllStructGetData($tRECT, "Bottom") -EndFunc ;==>_GUICtrlMonthCal_GetMinReqHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMinReqRect($hWnd) - Local $tRECT = DllStructCreate($tagRECT) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - _SendMessage($hWnd, $MCM_GETMINREQRECT, 0, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _SendMessage($hWnd, $MCM_GETMINREQRECT, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $MCM_GETMINREQRECT, 0, DllStructGetPtr($tRECT)) - EndIf - Return $tRECT -EndFunc ;==>_GUICtrlMonthCal_GetMinReqRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMinReqRectArray($hWnd) - Local $i_Ret - Local $tRECT = DllStructCreate($tagRECT) - If @error Then Return SetError(-1, -1, -1) - If IsHWnd($hWnd) Then - $i_Ret = _SendMessage($hWnd, $MCM_GETMINREQRECT, 0, $tRECT, 0, "wparam", "struct*") - Else - $i_Ret = GUICtrlSendMsg($hWnd, $MCM_GETMINREQRECT, 0, DllStructGetPtr($tRECT)) - EndIf - If (Not $i_Ret) Then Return SetError(-2, -1, -1) - Return StringSplit(DllStructGetData($tRECT, "Left") & "," & DllStructGetData($tRECT, "Top") & "," & DllStructGetData($tRECT, "Right") & "," & DllStructGetData($tRECT, "Bottom"), ",") -EndFunc ;==>_GUICtrlMonthCal_GetMinReqRectArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMinReqWidth($hWnd) - Local $tRECT = _GUICtrlMonthCal_GetMinReqRect($hWnd) - Return DllStructGetData($tRECT, "Right") -EndFunc ;==>_GUICtrlMonthCal_GetMinReqWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMonthDelta($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_GETMONTHDELTA) - Else - Return GUICtrlSendMsg($hWnd, $MCM_GETMONTHDELTA, 0, 0) - EndIf -EndFunc ;==>_GUICtrlMonthCal_GetMonthDelta - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMonthRange($hWnd, $bPartial = False) - Local $tBuffer = DllStructCreate($tagMCMONTHRANGE) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - DllStructSetData($tBuffer, "Span", _SendMessage($hWnd, $MCM_GETMONTHRANGE, $bPartial, $tBuffer, 0, "wparam", "struct*")) - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - DllStructSetData($tBuffer, "Span", _SendMessage($hWnd, $MCM_GETMONTHRANGE, $bPartial, $pMemory, 0, "wparam", "ptr")) - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - DllStructSetData($tBuffer, "Span", GUICtrlSendMsg($hWnd, $MCM_GETMONTHRANGE, $bPartial, DllStructGetPtr($tBuffer))) - EndIf - Return $tBuffer -EndFunc ;==>_GUICtrlMonthCal_GetMonthRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMonthRangeMax($hWnd, $bPartial = False) - Local $tBuffer = _GUICtrlMonthCal_GetMonthRange($hWnd, $bPartial) - Local $tRange = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tRange, "Year", DllStructGetData($tBuffer, "MaxYear")) - DllStructSetData($tRange, "Month", DllStructGetData($tBuffer, "MaxMonth")) - DllStructSetData($tRange, "DOW", DllStructGetData($tBuffer, "MaxDOW")) - DllStructSetData($tRange, "Day", DllStructGetData($tBuffer, "MaxDay")) - Return $tRange -EndFunc ;==>_GUICtrlMonthCal_GetMonthRangeMax - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMonthRangeMaxStr($hWnd, $sFormat = "%02d/%02d/%04d") - Local $tBuffer = _GUICtrlMonthCal_GetMonthRangeMax($hWnd) - Return StringFormat($sFormat, DllStructGetData($tBuffer, "Month"), DllStructGetData($tBuffer, "Day"), DllStructGetData($tBuffer, "Year")) -EndFunc ;==>_GUICtrlMonthCal_GetMonthRangeMaxStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMonthRangeMin($hWnd, $bPartial = False) - Local $tBuffer = _GUICtrlMonthCal_GetMonthRange($hWnd, $bPartial) - Local $tRange = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tRange, "Year", DllStructGetData($tBuffer, "MinYear")) - DllStructSetData($tRange, "Month", DllStructGetData($tBuffer, "MinMonth")) - DllStructSetData($tRange, "DOW", DllStructGetData($tBuffer, "MinDOW")) - DllStructSetData($tRange, "Day", DllStructGetData($tBuffer, "MinDay")) - Return $tRange -EndFunc ;==>_GUICtrlMonthCal_GetMonthRangeMin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMonthRangeMinStr($hWnd, $sFormat = "%02d/%02d/%04d") - Local $tBuffer = _GUICtrlMonthCal_GetMonthRangeMin($hWnd) - Return StringFormat($sFormat, DllStructGetData($tBuffer, "Month"), DllStructGetData($tBuffer, "Day"), DllStructGetData($tBuffer, "Year")) -EndFunc ;==>_GUICtrlMonthCal_GetMonthRangeMinStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetMonthRangeSpan($hWnd, $bPartial = False) - Local $tBuffer = _GUICtrlMonthCal_GetMonthRange($hWnd, $bPartial) - Return DllStructGetData($tBuffer, "Span") -EndFunc ;==>_GUICtrlMonthCal_GetMonthRangeSpan - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetRange($hWnd) - Local $iRet - - Local $tBuffer = DllStructCreate($tagMCRANGE) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - $iRet = _SendMessage($hWnd, $MCM_GETRANGE, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - $iRet = _SendMessage($hWnd, $MCM_GETRANGE, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $MCM_GETRANGE, 0, DllStructGetPtr($tBuffer)) - EndIf - DllStructSetData($tBuffer, "MinSet", BitAND($iRet, $GDTR_MIN) <> 0) - DllStructSetData($tBuffer, "MaxSet", BitAND($iRet, $GDTR_MAX) <> 0) - Return $tBuffer -EndFunc ;==>_GUICtrlMonthCal_GetRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetRangeMax($hWnd) - Local $tBuffer = _GUICtrlMonthCal_GetRange($hWnd) - Local $tRange = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tRange, "Year", DllStructGetData($tBuffer, "MaxYear")) - DllStructSetData($tRange, "Month", DllStructGetData($tBuffer, "MaxMonth")) - DllStructSetData($tRange, "DOW", DllStructGetData($tBuffer, "MaxDOW")) - DllStructSetData($tRange, "Day", DllStructGetData($tBuffer, "MaxDay")) - Return $tRange -EndFunc ;==>_GUICtrlMonthCal_GetRangeMax - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetRangeMaxStr($hWnd, $sFormat = "%02d/%02d/%04d") - Local $tBuffer = _GUICtrlMonthCal_GetRangeMax($hWnd) - Return StringFormat($sFormat, DllStructGetData($tBuffer, "Month"), DllStructGetData($tBuffer, "Day"), DllStructGetData($tBuffer, "Year")) -EndFunc ;==>_GUICtrlMonthCal_GetRangeMaxStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetRangeMin($hWnd) - Local $tBuffer = _GUICtrlMonthCal_GetRange($hWnd) - Local $tRange = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tRange, "Year", DllStructGetData($tBuffer, "MinYear")) - DllStructSetData($tRange, "Month", DllStructGetData($tBuffer, "MinMonth")) - DllStructSetData($tRange, "DOW", DllStructGetData($tBuffer, "MinDOW")) - DllStructSetData($tRange, "Day", DllStructGetData($tBuffer, "MinDay")) - Return $tRange -EndFunc ;==>_GUICtrlMonthCal_GetRangeMin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetRangeMinStr($hWnd, $sFormat = "%02d/%02d/%04d") - Local $tBuffer = _GUICtrlMonthCal_GetRangeMin($hWnd) - Return StringFormat($sFormat, DllStructGetData($tBuffer, "Month"), DllStructGetData($tBuffer, "Day"), DllStructGetData($tBuffer, "Year")) -EndFunc ;==>_GUICtrlMonthCal_GetRangeMinStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetSelRange($hWnd) - Local $iRet - - Local $tBuffer = DllStructCreate($tagMCSELRANGE) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - $iRet = _SendMessage($hWnd, $MCM_GETSELRANGE, 0, $tBuffer, 0, "wparam", "ptr") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - $iRet = _SendMessage($hWnd, $MCM_GETSELRANGE, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $MCM_GETSELRANGE, 0, DllStructGetPtr($tBuffer)) - EndIf - Return SetError($iRet = 0, 0, $tBuffer) -EndFunc ;==>_GUICtrlMonthCal_GetSelRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetSelRangeMax($hWnd) - Local $tBuffer = _GUICtrlMonthCal_GetSelRange($hWnd) - Local $tRange = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tRange, "Year", DllStructGetData($tBuffer, "MaxYear")) - DllStructSetData($tRange, "Month", DllStructGetData($tBuffer, "MaxMonth")) - DllStructSetData($tRange, "DOW", DllStructGetData($tBuffer, "MaxDOW")) - DllStructSetData($tRange, "Day", DllStructGetData($tBuffer, "MaxDay")) - Return $tRange -EndFunc ;==>_GUICtrlMonthCal_GetSelRangeMax - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetSelRangeMaxStr($hWnd, $sFormat = "%02d/%02d/%04d") - Local $tBuffer = _GUICtrlMonthCal_GetSelRangeMax($hWnd) - Return StringFormat($sFormat, DllStructGetData($tBuffer, "Month"), DllStructGetData($tBuffer, "Day"), DllStructGetData($tBuffer, "Year")) -EndFunc ;==>_GUICtrlMonthCal_GetSelRangeMaxStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetSelRangeMin($hWnd) - Local $tBuffer = _GUICtrlMonthCal_GetSelRange($hWnd) - Local $tRange = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tRange, "Year", DllStructGetData($tBuffer, "MinYear")) - DllStructSetData($tRange, "Month", DllStructGetData($tBuffer, "MinMonth")) - DllStructSetData($tRange, "DOW", DllStructGetData($tBuffer, "MinDOW")) - DllStructSetData($tRange, "Day", DllStructGetData($tBuffer, "MinDay")) - Return $tRange -EndFunc ;==>_GUICtrlMonthCal_GetSelRangeMin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetSelRangeMinStr($hWnd, $sFormat = "%02d/%02d/%04d") - Local $tBuffer = _GUICtrlMonthCal_GetSelRangeMin($hWnd) - Return StringFormat($sFormat, DllStructGetData($tBuffer, "Month"), DllStructGetData($tBuffer, "Day"), DllStructGetData($tBuffer, "Year")) -EndFunc ;==>_GUICtrlMonthCal_GetSelRangeMinStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetToday($hWnd) - Local $iRet - - Local $tBuffer = DllStructCreate($tagSYSTEMTIME) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - $iRet = _SendMessage($hWnd, $MCM_GETTODAY, 0, $tBuffer, 0, "wparam", "ptr") <> 0 - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - $iRet = _SendMessage($hWnd, $MCM_GETTODAY, 0, $pMemory, 0, "wparam", "ptr") <> 0 - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $MCM_GETTODAY, 0, DllStructGetPtr($tBuffer)) <> 0 - EndIf - Return SetError($iRet = 0, 0, $tBuffer) -EndFunc ;==>_GUICtrlMonthCal_GetToday - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetTodayStr($hWnd, $sFormat = "%02d/%02d/%04d") - Local $tBuffer = _GUICtrlMonthCal_GetToday($hWnd) - Return StringFormat($sFormat, DllStructGetData($tBuffer, "Month"), DllStructGetData($tBuffer, "Day"), DllStructGetData($tBuffer, "Year")) -EndFunc ;==>_GUICtrlMonthCal_GetTodayStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_GetUnicodeFormat($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_GETUNICODEFORMAT) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $MCM_GETUNICODEFORMAT, 0, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlMonthCal_GetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_HitTest($hWnd, $iX, $iY) - Local $tTest = DllStructCreate($tagMCHITTESTINFO) - Local $iTest = DllStructGetSize($tTest) - DllStructSetData($tTest, "Size", $iTest) - DllStructSetData($tTest, "X", $iX) - DllStructSetData($tTest, "Y", $iY) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - _SendMessage($hWnd, $MCM_HITTEST, 0, $tTest, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iTest, $tMemMap) - _SendMessage($hWnd, $MCM_HITTEST, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tTest, $iTest) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $MCM_HITTEST, 0, DllStructGetPtr($tTest)) - EndIf - Return $tTest -EndFunc ;==>_GUICtrlMonthCal_HitTest - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlMonthCal_Resize -; Description ...: Adjusts the control size so that it is fully shown -; Syntax.........: __GUICtrlMonthCal_Resize ( $hWnd [, $iX = -1 [, $iY = -1]] ) -; Parameters ....: $hWnd - Handle to control -; $iX - Left position of calendar. If -1, the current position will be used -; $iY - Top position of calendar. If -1, the current position will be used -; Return values .: None -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; Remarks .......: This function is called internally by _GUICtrlMonthCal_Create and should not normally be called by the end user. -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlMonthCal_Resize($hWnd, $iX = -1, $iY = -1) - Local $iN = _GUICtrlMonthCal_GetMaxTodayWidth($hWnd) - Local $iH = _GUICtrlMonthCal_GetMinReqHeight($hWnd) - Local $iW = _GUICtrlMonthCal_GetMinReqWidth($hWnd) - If $iN > $iW Then $iW = $iN - If ($iX = -1) Or ($iY = -1) Then - Local $tRECT = _WinAPI_GetWindowRect($hWnd) - If $iX = -1 Then $iX = DllStructGetData($tRECT, "Left") - If $iY = -1 Then $iY = DllStructGetData($tRECT, "Top") - EndIf - ;_WinAPI_SetWindowPos($hWnd, 0, $iX, $iY, $iX + $iW, $iY + $iH, $__MONTHCALCONSTANT_SWP_NOZORDER) - _WinAPI_SetWindowPos($hWnd, 0, $iX, $iY, $iW, $iH, $__MONTHCALCONSTANT_SWP_NOZORDER) -EndFunc ;==>__GUICtrlMonthCal_Resize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetCalendarBorder($hWnd, $iBorderSize = 4, $bSetBorder = True) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $MCM_SETCALENDARBORDER, $bSetBorder, $iBorderSize) - Else - GUICtrlSendMsg($hWnd, $MCM_SETCALENDARBORDER, $bSetBorder, $iBorderSize) - EndIf -EndFunc ;==>_GUICtrlMonthCal_SetCalendarBorder - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetColor($hWnd, $iIndex, $iColor) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_SETCOLOR, $iIndex, $iColor) - Else - Return GUICtrlSendMsg($hWnd, $MCM_SETCOLOR, $iIndex, $iColor) - EndIf -EndFunc ;==>_GUICtrlMonthCal_SetColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetCurSel($hWnd, $iYear, $iMonth, $iDay) - Local $iRet - - Local $tBuffer = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tBuffer, "Month", $iMonth) - DllStructSetData($tBuffer, "Day", $iDay) - DllStructSetData($tBuffer, "Year", $iYear) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - $iRet = _SendMessage($hWnd, $MCM_SETCURSEL, 0, $tBuffer, 0, "wparam", "ptr") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tBuffer) - $iRet = _SendMessage($hWnd, $MCM_SETCURSEL, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $MCM_SETCURSEL, 0, DllStructGetPtr($tBuffer)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlMonthCal_SetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetDayState($hWnd, $aMasks) - Local $iRet - - Local $iMasks = _GUICtrlMonthCal_GetMonthRangeSpan($hWnd, True) - Local $tBuffer = DllStructCreate("int;int;int") - For $iI = 0 To $iMasks - 1 - DllStructSetData($tBuffer, $iI + 1, $aMasks[$iI]) - Next - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - $iRet = _SendMessage($hWnd, $MCM_SETDAYSTATE, $iMasks, $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tBuffer) - $iRet = _SendMessage($hWnd, $MCM_SETDAYSTATE, $iMasks, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $MCM_SETDAYSTATE, $iMasks, DllStructGetPtr($tBuffer)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlMonthCal_SetDayState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetFirstDOW($hWnd, $sDay) - Local $i_Day - If $sDay >= 0 Or $sDay <= 6 Then - $i_Day = $sDay - ElseIf StringInStr("MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAY", $sDay) Then - Switch StringUpper($sDay) - Case "MONDAY" - $i_Day = 0 - Case "TUESDAY" - $i_Day = 1 - Case "WEDNESDAY" - $i_Day = 2 - Case "THURSDAY" - $i_Day = 3 - Case "FRIDAY" - $i_Day = 4 - Case "SATURDAY" - $i_Day = 5 - Case "SUNDAY" - $i_Day = 6 - EndSwitch - Else - Return SetError(-1, -1, -1) - EndIf - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_SETFIRSTDAYOFWEEK, 0, $i_Day) - Else - Return GUICtrlSendMsg($hWnd, $MCM_SETFIRSTDAYOFWEEK, 0, $i_Day) - EndIf -EndFunc ;==>_GUICtrlMonthCal_SetFirstDOW - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetMaxSelCount($hWnd, $iMaxSel) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_SETMAXSELCOUNT, $iMaxSel) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $MCM_SETMAXSELCOUNT, $iMaxSel, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlMonthCal_SetMaxSelCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetMonthDelta($hWnd, $iDelta) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_SETMONTHDELTA, $iDelta) - Else - Return GUICtrlSendMsg($hWnd, $MCM_SETMONTHDELTA, $iDelta, 0) - EndIf -EndFunc ;==>_GUICtrlMonthCal_SetMonthDelta - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetRange($hWnd, $iMinYear, $iMinMonth, $iMinDay, $iMaxYear, $iMaxMonth, $iMaxDay) - Local $iRet - - Local $tRange = DllStructCreate($tagMCRANGE) - Local $iFlags = BitOR($GDTR_MIN, $GDTR_MAX) - DllStructSetData($tRange, "MinYear", $iMinYear) - DllStructSetData($tRange, "MinMonth", $iMinMonth) - DllStructSetData($tRange, "MinDay", $iMinDay) - DllStructSetData($tRange, "MaxYear", $iMaxYear) - DllStructSetData($tRange, "MaxMonth", $iMaxMonth) - DllStructSetData($tRange, "MaxDay", $iMaxDay) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - $iRet = _SendMessage($hWnd, $MCM_SETRANGE, $iFlags, $tRange, 0, "wparam", "ptr") - Else - Local $iRange = DllStructGetSize($tRange) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRange, $tMemMap) - _MemWrite($tMemMap, $tRange) - $iRet = _SendMessage($hWnd, $MCM_SETRANGE, $iFlags, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $MCM_SETRANGE, $iFlags, DllStructGetPtr($tRange)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlMonthCal_SetRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetSelRange($hWnd, $iMinYear, $iMinMonth, $iMinDay, $iMaxYear, $iMaxMonth, $iMaxDay) - Local $tBuffer = DllStructCreate($tagMCRANGE) - DllStructSetData($tBuffer, "MinYear", $iMinYear) - DllStructSetData($tBuffer, "MinMonth", $iMinMonth) - DllStructSetData($tBuffer, "MinDay", $iMinDay) - DllStructSetData($tBuffer, "MaxYear", $iMaxYear) - DllStructSetData($tBuffer, "MaxMonth", $iMaxMonth) - DllStructSetData($tBuffer, "MaxDay", $iMaxDay) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - $iRet = _SendMessage($hWnd, $MCM_SETSELRANGE, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tBuffer) - $iRet = _SendMessage($hWnd, $MCM_SETSELRANGE, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - $iRet = GUICtrlSendMsg($hWnd, $MCM_SETSELRANGE, 0, DllStructGetPtr($tBuffer)) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlMonthCal_SetSelRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetToday($hWnd, $iYear, $iMonth, $iDay) - Local $tBuffer = DllStructCreate($tagSYSTEMTIME) - DllStructSetData($tBuffer, "Month", $iMonth) - DllStructSetData($tBuffer, "Day", $iDay) - DllStructSetData($tBuffer, "Year", $iYear) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hMCLastWnd) Then - _SendMessage($hWnd, $MCM_SETTODAY, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetSize($tBuffer) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tBuffer) - _SendMessage($hWnd, $MCM_SETTODAY, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $MCM_SETTODAY, 0, DllStructGetPtr($tBuffer)) - EndIf -EndFunc ;==>_GUICtrlMonthCal_SetToday - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlMonthCal_SetUnicodeFormat($hWnd, $bUnicode = False) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $MCM_SETUNICODEFORMAT, $bUnicode) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $MCM_SETUNICODEFORMAT, $bUnicode, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlMonthCal_SetUnicodeFormat diff --git a/build/Include/GuiReBar.au3 b/build/Include/GuiReBar.au3 deleted file mode 100644 index af2894333..000000000 --- a/build/Include/GuiReBar.au3 +++ /dev/null @@ -1,1310 +0,0 @@ -#include-once - -#include "Memory.au3" -#include "RebarConstants.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Rebar -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Rebar control management. -; Rebar controls act as containers for child windows. An application assigns child windows, -; which are often other controls, to a rebar control band. Rebar controls contain one or more bands, -; and each band can have any combination of a gripper bar, a bitmap, a text label, and a child window. -; However, bands cannot contain more than one child window. -; Author(s) .....: Gary Frost -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== - -Global $__g_hRBLastWnd -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__REBARCONSTANT_ClassName = "ReBarWindow32" -Global Const $__REBARCONSTANT_TB_GETBUTTONSIZE = $__REBARCONSTANT_WM_USER + 58 -Global Const $__REBARCONSTANT_TB_BUTTONCOUNT = $__REBARCONSTANT_WM_USER + 24 -Global Const $__REBARCONSTANT_WS_CLIPCHILDREN = 0x02000000 -Global Const $__REBARCONSTANT_WS_CLIPSIBLINGS = 0x04000000 -Global Const $__REBARCONSTANT_CCS_TOP = 0x01 -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not working/documented/implemented at this time -; -; _GUICtrlRebar_GetBandStyleNoVert -; _GUICtrlRebar_SetBandStyleNoVert -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlRebar_AddBand -; _GUICtrlRebar_AddToolBarBand -; _GUICtrlRebar_BeginDrag -; _GUICtrlRebar_Create -; _GUICtrlRebar_DeleteBand -; _GUICtrlRebar_Destroy -; _GUICtrlRebar_DragMove -; _GUICtrlRebar_EndDrag -; _GUICtrlRebar_GetBandBackColor -; _GUICtrlRebar_GetBandBorders -; _GUICtrlRebar_GetBandBordersEx -; _GUICtrlRebar_GetBandChildHandle -; _GUICtrlRebar_GetBandChildSize -; _GUICtrlRebar_GetBandCount -; _GUICtrlRebar_GetBandForeColor -; _GUICtrlRebar_GetBandHeaderSize -; _GUICtrlRebar_GetBandID -; _GUICtrlRebar_GetBandIdealSize -; _GUICtrlRebar_GetBandLParam -; _GUICtrlRebar_GetBandLength -; _GUICtrlRebar_GetBandMargins -; _GUICtrlRebar_GetBandMarginsEx -; _GUICtrlRebar_GetBandStyle -; _GUICtrlRebar_GetBandStyleBreak -; _GUICtrlRebar_GetBandStyleChildEdge -; _GUICtrlRebar_GetBandStyleFixedBMP -; _GUICtrlRebar_GetBandStyleFixedSize -; _GUICtrlRebar_GetBandStyleGripperAlways -; _GUICtrlRebar_GetBandStyleHidden -; _GUICtrlRebar_GetBandStyleHideTitle -; _GUICtrlRebar_GetBandStyleNoGripper -; _GUICtrlRebar_GetBandStyleTopAlign -; _GUICtrlRebar_GetBandStyleUseChevron -; _GUICtrlRebar_GetBandStyleVariableHeight -; _GUICtrlRebar_GetBandRect -; _GUICtrlRebar_GetBandRectEx -; _GUICtrlRebar_GetBandText -; _GUICtrlRebar_GetBarHeight -; _GUICtrlRebar_GetBarInfo -; _GUICtrlRebar_GetBKColor -; _GUICtrlRebar_GetColorScheme -; _GUICtrlRebar_GetRowCount -; _GUICtrlRebar_GetRowHeight -; _GUICtrlRebar_GetTextColor -; _GUICtrlRebar_GetToolTips -; _GUICtrlRebar_GetUnicodeFormat -; _GUICtrlRebar_HitTest -; _GUICtrlRebar_IDToIndex -; _GUICtrlRebar_MaximizeBand -; _GUICtrlRebar_MinimizeBand -; _GUICtrlRebar_MoveBand -; _GUICtrlRebar_SetBandBackColor -; _GUICtrlRebar_SetBandForeColor -; _GUICtrlRebar_SetBandHeaderSize -; _GUICtrlRebar_SetBandID -; _GUICtrlRebar_SetBandIdealSize -; _GUICtrlRebar_SetBandLength -; _GUICtrlRebar_SetBandLParam -; _GUICtrlRebar_SetBandStyle -; _GUICtrlRebar_SetBandStyleBreak -; _GUICtrlRebar_SetBandStyleChildEdge -; _GUICtrlRebar_SetBandStyleFixedBMP -; _GUICtrlRebar_SetBandStyleFixedSize -; _GUICtrlRebar_SetBandStyleGripperAlways -; _GUICtrlRebar_SetBandStyleHidden -; _GUICtrlRebar_SetBandStyleHideTitle -; _GUICtrlRebar_SetBandStyleNoGripper -; _GUICtrlRebar_SetBandStyleTopAlign -; _GUICtrlRebar_SetBandStyleUseChevron -; _GUICtrlRebar_SetBandStyleVariableHeight -; _GUICtrlRebar_SetBandText -; _GUICtrlRebar_SetBKColor -; _GUICtrlRebar_SetBarInfo -; _GUICtrlRebar_SetColorScheme -; _GUICtrlRebar_SetTextColor -; _GUICtrlRebar_SetToolTips -; _GUICtrlRebar_SetUnicodeFormat -; _GUICtrlRebar_ShowBand -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagREBARINFO -; $tagRBHITTESTINFO -; __GUICtrlRebar_GetBandInfo -; __GUICtrlRebar_GetColorSchemeEx -; __GUICtrlRebar_SetBandInfo -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagREBARINFO -; Description ...: Contains information that describes rebar control characteristics -; Fields ........: cbSize - Size of this structure, in bytes. Your application must fill this member before sending any messages that use the address of this structure as a parameter. -; fMask - Flag values that describe characteristics of the rebar control. Currently, rebar controls support only one value: -; |$RBIM_IMAGELIST - The himl member is valid or must be filled -; himl - Handle to an image list. The rebar control will use the specified image list to obtain images -; Author ........: Gary Frost -; Remarks .......: -; =============================================================================================================================== -Global Const $tagREBARINFO = "uint cbSize;uint fMask;handle himl" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagRBHITTESTINFO -; Description ...: Contains information specific to a hit test operation -; Fields ........: X - Specifies the x-coordinate of the point -; Y - Specifies the y-coordinate of the point -; flags - Member that receives a flag value indicating the rebar band's component located at the point described by pt -; |This member will be one of the following: -; - -; |$RBHT_CAPTION - The point was in the rebar band's caption -; |$RBHT_CHEVRON - The point was in the rebar band's chevron (version 5.80 and greater) -; |$RBHT_CLIENT - The point was in the rebar band's client area -; |$RBHT_GRABBER - The point was in the rebar band's gripper -; |$RBHT_NOWHERE - The point was not in a rebar band -; iBand - Member that receives the rebar band's index at the point described by pt -; |This value will be the zero-based index of the band, or -1 if no band was at the hit-tested point -; Author ........: Gary Frost -; Remarks .......: -; =============================================================================================================================== -Global Const $tagRBHITTESTINFO = $tagPOINT & ";uint flags;int iBand" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_AddBand($hWndRebar, $hWndChild, $iMinWidth = 100, $iDefaultWidth = 100, $sText = "", $iIndex = -1, $iStyle = -1) - Local $bUnicode = _GUICtrlRebar_GetUnicodeFormat($hWndRebar) - - If Not IsHWnd($hWndChild) Then $hWndChild = GUICtrlGetHandle($hWndChild) - Local $tINFO = DllStructCreate($tagREBARBANDINFO) - Local $iSize = DllStructGetSize($tINFO) - - If $iDefaultWidth < $iMinWidth Then $iDefaultWidth = $iMinWidth - If $iStyle <> -1 Then - $iStyle = BitOR($iStyle, $RBBS_CHILDEDGE, $RBBS_GRIPPERALWAYS) - Else - $iStyle = BitOR($RBBS_CHILDEDGE, $RBBS_GRIPPERALWAYS) - EndIf - ;// Initialize band info used by the control - DllStructSetData($tINFO, "cbSize", $iSize) - DllStructSetData($tINFO, "fMask", BitOR($RBBIM_STYLE, $RBBIM_TEXT, $RBBIM_CHILD, $RBBIM_CHILDSIZE, $RBBIM_SIZE, $RBBIM_ID)) - DllStructSetData($tINFO, "fStyle", $iStyle) - - ;// Set values unique to the band with the control - Local $tRECT = _WinAPI_GetWindowRect($hWndChild) - Local $iBottom = DllStructGetData($tRECT, "Bottom") - Local $iTop = DllStructGetData($tRECT, "Top") - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tINFO, "hwndChild", $hWndChild) - DllStructSetData($tINFO, "cxMinChild", $iMinWidth) - DllStructSetData($tINFO, "cyMinChild", $iBottom - $iTop) - ;// The default width should be set to some value wider than the text. The combo - ;// box itself will expand to fill the band. - DllStructSetData($tINFO, "cx", $iDefaultWidth) - DllStructSetData($tINFO, "wID", _GUICtrlRebar_GetBandCount($hWndRebar)) - - Local $tMemMap - Local $pMemory = _MemInit($hWndRebar, $iSize + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iSize - DllStructSetData($tINFO, "lpText", $pText) - _MemWrite($tMemMap, $tINFO, $pMemory, $iSize) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - ;// Add the band that has the combobox - Local $iRet - If $bUnicode Then - $iRet = _SendMessage($hWndRebar, $RB_INSERTBANDW, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - Else - $iRet = _SendMessage($hWndRebar, $RB_INSERTBANDA, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - EndIf - _MemFree($tMemMap) - Return $iRet -EndFunc ;==>_GUICtrlRebar_AddBand - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_AddToolBarBand($hWndRebar, $hWndToolbar, $sText = "", $iIndex = -1, $iStyle = -1) - Local $bUnicode = _GUICtrlRebar_GetUnicodeFormat($hWndRebar) - - Local $tINFO = DllStructCreate($tagREBARBANDINFO) - Local $iSize = DllStructGetSize($tINFO) - - If $iStyle <> -1 Then - $iStyle = BitOR($iStyle, $RBBS_CHILDEDGE, $RBBS_GRIPPERALWAYS) - Else - $iStyle = BitOR($RBBS_CHILDEDGE, $RBBS_GRIPPERALWAYS) - EndIf - - ;// Initialize band info used by the toolbar - DllStructSetData($tINFO, "cbSize", $iSize) - DllStructSetData($tINFO, "fMask", BitOR($RBBIM_STYLE, $RBBIM_TEXT, $RBBIM_CHILD, $RBBIM_CHILDSIZE, $RBBIM_SIZE, $RBBIM_ID)) - DllStructSetData($tINFO, "fStyle", $iStyle) - - ;// Get the height of the toolbar. - Local $iBtnSize = _SendMessage($hWndToolbar, $__REBARCONSTANT_TB_GETBUTTONSIZE) - ; Get the number of buttons contained in toolbar for calculation - Local $iNumButtons = _SendMessage($hWndToolbar, $__REBARCONSTANT_TB_BUTTONCOUNT) - Local $iDefaultWidth = $iNumButtons * _WinAPI_LoWord($iBtnSize) - - ;// Set values unique to the band with the toolbar. - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tINFO, "hwndChild", $hWndToolbar) - DllStructSetData($tINFO, "cyChild", _WinAPI_HiWord($iBtnSize)) - DllStructSetData($tINFO, "cxMinChild", $iDefaultWidth) - DllStructSetData($tINFO, "cyMinChild", _WinAPI_HiWord($iBtnSize)) - DllStructSetData($tINFO, "cx", $iDefaultWidth) ;// The default width is the width of the buttons. - DllStructSetData($tINFO, "wID", _GUICtrlRebar_GetBandCount($hWndRebar)) - - ;// Add the band that has the toolbar. - Local $tMemMap, $iRet - Local $pMemory = _MemInit($hWndRebar, $iSize + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iSize - DllStructSetData($tINFO, "lpText", $pText) - _MemWrite($tMemMap, $tINFO, $pMemory, $iSize) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - ;// Add the band that has the combobox - If $bUnicode Then - $iRet = _SendMessage($hWndRebar, $RB_INSERTBANDW, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - Else - $iRet = _SendMessage($hWndRebar, $RB_INSERTBANDA, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - EndIf - _MemFree($tMemMap) - Return $iRet -EndFunc ;==>_GUICtrlRebar_AddToolBarBand - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_BeginDrag($hWnd, $iIndex, $iPos = -1) - _SendMessage($hWnd, $RB_BEGINDRAG, $iIndex, $iPos, 0, "wparam", "dword") -EndFunc ;==>_GUICtrlRebar_BeginDrag - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_Create($hWnd, $iStyles = 0x513) - Local Const $ICC_BAR_CLASSES = 0x00000004; toolbar - Local Const $ICC_COOL_CLASSES = 0x00000400; rebar - - Local $iStyle = BitOR($__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE, $__REBARCONSTANT_WS_CLIPCHILDREN, $__REBARCONSTANT_WS_CLIPSIBLINGS) - If $iStyles <> BitOR($__REBARCONSTANT_CCS_TOP, $RBS_VARHEIGHT) Then - $iStyle = BitOR($iStyle, $iStyles) - Else - $iStyle = BitOR($iStyle, $__REBARCONSTANT_CCS_TOP, $RBS_VARHEIGHT) - EndIf - - Local $tICCE = DllStructCreate('dword;dword') - DllStructSetData($tICCE, 1, DllStructGetSize($tICCE)) - DllStructSetData($tICCE, 2, BitOR($ICC_BAR_CLASSES, $ICC_COOL_CLASSES)) - - Local $aResult = DllCall('comctl32.dll', 'int', 'InitCommonControlsEx', 'struct*', $tICCE) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] = 0 Then Return SetError(-2, 0, 0) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hReBar = _WinAPI_CreateWindowEx(0, $__REBARCONSTANT_ClassName, "", $iStyle, 0, 0, 0, 0, $hWnd, $nCtrlID) - - If @error Then Return SetError(-1, -1, 0) - Return $hReBar -EndFunc ;==>_GUICtrlRebar_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_DeleteBand($hWnd, $iIndex) - Return _SendMessage($hWnd, $RB_DELETEBAND, $iIndex) <> 0 -EndFunc ;==>_GUICtrlRebar_DeleteBand - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__REBARCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If _WinAPI_InProcess($hWnd, $__g_hRBLastWnd) Then - Local $iRebarCount = _GUICtrlRebar_GetBandCount($hWnd) - For $iIndex = $iRebarCount - 1 To 0 Step -1 - _GUICtrlRebar_DeleteBand($hWnd, $iIndex) - Next - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlRebar_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_DragMove($hWnd, $iPos = -1) - _SendMessage($hWnd, $RB_DRAGMOVE, 0, $iPos, 0, "wparam", "dword") -EndFunc ;==>_GUICtrlRebar_DragMove - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_EndDrag($hWnd) - _SendMessage($hWnd, $RB_ENDDRAG) -EndFunc ;==>_GUICtrlRebar_EndDrag - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandBackColor($hWnd, $iIndex) - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_COLORS) - If @error Then Return SetError(@error, @error, 0) - Return DllStructGetData($tINFO, "clrBack") -EndFunc ;==>_GUICtrlRebar_GetBandBackColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandBorders($hWnd, $iIndex) - Local $tRECT = _GUICtrlRebar_GetBandBordersEx($hWnd, $iIndex) - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlRebar_GetBandBorders - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandBordersEx($hWnd, $iIndex) - Local $tRECT = DllStructCreate($tagRECT) - _SendMessage($hWnd, $RB_GETBANDBORDERS, $iIndex, $tRECT, 0, "uint", "struct*") - Return $tRECT -EndFunc ;==>_GUICtrlRebar_GetBandBordersEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandChildHandle($hWnd, $iIndex) - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_CHILD) - If @error Then Return SetError(@error, @error, 0) - Return DllStructGetData($tINFO, "hwndChild") -EndFunc ;==>_GUICtrlRebar_GetBandChildHandle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandChildSize($hWnd, $iIndex) - Local $aSizes[5] - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_CHILDSIZE) - If @error Then Return SetError(@error, @error, $aSizes) - $aSizes[0] = DllStructGetData($tINFO, "cxMinChild") - $aSizes[1] = DllStructGetData($tINFO, "cyMinChild") - $aSizes[2] = DllStructGetData($tINFO, "cyChild") - $aSizes[3] = DllStructGetData($tINFO, "cyMaxChild") - $aSizes[4] = DllStructGetData($tINFO, "cyIntegral") - - Return $aSizes -EndFunc ;==>_GUICtrlRebar_GetBandChildSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandCount($hWnd) - Return _SendMessage($hWnd, $RB_GETBANDCOUNT) -EndFunc ;==>_GUICtrlRebar_GetBandCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandForeColor($hWnd, $iIndex) - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_COLORS) - If @error Then Return SetError(@error, @error, 0) - Return DllStructGetData($tINFO, "clrFore") -EndFunc ;==>_GUICtrlRebar_GetBandForeColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandHeaderSize($hWnd, $iIndex) - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_HEADERSIZE) - If @error Then Return SetError(@error, @error, 0) - Return DllStructGetData($tINFO, "cxHeader") -EndFunc ;==>_GUICtrlRebar_GetBandHeaderSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandID($hWnd, $iIndex) - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_ID) - If @error Then Return SetError(@error, @error, 0) - Return DllStructGetData($tINFO, "wID") -EndFunc ;==>_GUICtrlRebar_GetBandID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandIdealSize($hWnd, $iIndex) - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_IDEALSIZE) - If @error Then Return SetError(@error, @error, 0) - Return DllStructGetData($tINFO, "cxIdeal") -EndFunc ;==>_GUICtrlRebar_GetBandIdealSize - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlRebar_GetBandInfo -; Description ...: Get Ideal width of the band, in pixels. -; Syntax.........: __GUICtrlRebar_GetBandInfo ( $hWnd, $iIndex, $iMask ) -; Parameters ....: $hWnd - Handle to rebar control -; $iIndex - Zero-based index of the band -; $iMask - Flags that indicate which members of this structure are valid -; Return values .: Success - $tagREBARBANDINFO structure -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $iMask) - Local $tINFO = DllStructCreate($tagREBARBANDINFO) - Local $iSize = DllStructGetSize($tINFO) - DllStructSetData($tINFO, "cbSize", $iSize) - DllStructSetData($tINFO, "fMask", $iMask) - - Local $iRet = _SendMessage($hWnd, $RB_GETBANDINFOW, $iIndex, $tINFO, 0, "wparam", "struct*") - - Return SetError($iRet = 0, 0, $tINFO) -EndFunc ;==>__GUICtrlRebar_GetBandInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandLParam($hWnd, $iIndex) - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_LPARAM) - If @error Then Return SetError(@error, @error, 0) - Return DllStructGetData($tINFO, "lParam") -EndFunc ;==>_GUICtrlRebar_GetBandLParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandLength($hWnd, $iIndex) - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_SIZE) - If @error Then Return SetError(@error, @error, 0) - Return DllStructGetData($tINFO, "cx") -EndFunc ;==>_GUICtrlRebar_GetBandLength - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandMargins($hWnd) - Local $tMargins = _GUICtrlRebar_GetBandMarginsEx($hWnd) - Local $aMargins[4] - $aMargins[0] = DllStructGetData($tMargins, "cxLeftWidth") - $aMargins[1] = DllStructGetData($tMargins, "cxRightWidth") - $aMargins[2] = DllStructGetData($tMargins, "cyTopHeight") - $aMargins[3] = DllStructGetData($tMargins, "cyBottomHeight") - Return $aMargins -EndFunc ;==>_GUICtrlRebar_GetBandMargins - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandMarginsEx($hWnd) - Local $tMargins = DllStructCreate($tagMARGINS) - - _SendMessage($hWnd, $RB_GETBANDMARGINS, 0, $tMargins, 0, "wparam", "struct*") - Return $tMargins -EndFunc ;==>_GUICtrlRebar_GetBandMarginsEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyle($hWnd, $iIndex) - Local $tINFO = __GUICtrlRebar_GetBandInfo($hWnd, $iIndex, $RBBIM_STYLE) - If @error Then Return SetError(@error, @error, 0) - Return DllStructGetData($tINFO, "fStyle") -EndFunc ;==>_GUICtrlRebar_GetBandStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleBreak($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_BREAK) = $RBBS_BREAK -EndFunc ;==>_GUICtrlRebar_GetBandStyleBreak - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleChildEdge($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_CHILDEDGE) = $RBBS_CHILDEDGE -EndFunc ;==>_GUICtrlRebar_GetBandStyleChildEdge - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleFixedBMP($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_FIXEDBMP) = $RBBS_FIXEDBMP -EndFunc ;==>_GUICtrlRebar_GetBandStyleFixedBMP - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleFixedSize($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_FIXEDSIZE) = $RBBS_FIXEDSIZE -EndFunc ;==>_GUICtrlRebar_GetBandStyleFixedSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleGripperAlways($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_GRIPPERALWAYS) = $RBBS_GRIPPERALWAYS -EndFunc ;==>_GUICtrlRebar_GetBandStyleGripperAlways - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleHidden($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_HIDDEN) = $RBBS_HIDDEN -EndFunc ;==>_GUICtrlRebar_GetBandStyleHidden - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleHideTitle($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_HIDETITLE) = $RBBS_HIDETITLE -EndFunc ;==>_GUICtrlRebar_GetBandStyleHideTitle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleNoGripper($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_NOGRIPPER) = $RBBS_NOGRIPPER -EndFunc ;==>_GUICtrlRebar_GetBandStyleNoGripper - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlRebar_GetBandStyleNoVert -; Description ...: Determine if flag is set -; Syntax.........: _GUICtrlRebar_GetBandStyleNoVert ( $hWnd, $iIndex ) -; Parameters ....: $hWnd - Handle to rebar control -; $iIndex - Zero-based index of the band -; Return values .: True - Flag is set (Don't show when vertical) -; False - Flag not set -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: -; Related .......: _GUICtrlRebar_SetBandStyleNoVert, _GUICtrlRebar_GetBandStyle -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleNoVert($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_NOVERT) = $RBBS_NOVERT -EndFunc ;==>_GUICtrlRebar_GetBandStyleNoVert - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleTopAlign($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_TOPALIGN) = $RBBS_TOPALIGN -EndFunc ;==>_GUICtrlRebar_GetBandStyleTopAlign - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleUseChevron($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_USECHEVRON) = $RBBS_USECHEVRON -EndFunc ;==>_GUICtrlRebar_GetBandStyleUseChevron - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandStyleVariableHeight($hWnd, $iIndex) - Return BitAND(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_VARIABLEHEIGHT) = $RBBS_VARIABLEHEIGHT -EndFunc ;==>_GUICtrlRebar_GetBandStyleVariableHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandRect($hWnd, $iIndex) - Local $tRECT = _GUICtrlRebar_GetBandRectEx($hWnd, $iIndex) - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlRebar_GetBandRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandRectEx($hWnd, $iIndex) - Local $tRECT = DllStructCreate($tagRECT) - _SendMessage($hWnd, $RB_GETRECT, $iIndex, $tRECT, 0, "uint", "struct*") - Return $tRECT -EndFunc ;==>_GUICtrlRebar_GetBandRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBandText($hWnd, $iIndex) - Local $bUnicode = _GUICtrlRebar_GetUnicodeFormat($hWnd) - - Local $tINFO = DllStructCreate($tagREBARBANDINFO) - Local $iSize = DllStructGetSize($tINFO) - Local $tBuffer - Local $iBuffer = 4096 - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Buffer[4096]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Buffer[4096]") - EndIf - - DllStructSetData($tINFO, "cbSize", $iSize) - DllStructSetData($tINFO, "fMask", $RBBIM_TEXT) - DllStructSetData($tINFO, "cch", $iBuffer) - - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iSize - DllStructSetData($tINFO, "lpText", $pText) - _MemWrite($tMemMap, $tINFO, $pMemory, $iSize) - Local $iRet - If $bUnicode Then - $iRet = _SendMessage($hWnd, $RB_GETBANDINFOW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $RB_GETBANDINFOA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pText, $tBuffer, $iBuffer) - _MemFree($tMemMap) - - Return SetError($iRet = 0, 0, DllStructGetData($tBuffer, "Buffer")) -EndFunc ;==>_GUICtrlRebar_GetBandText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBarHeight($hWnd) - Return _SendMessage($hWnd, $RB_GETBARHEIGHT) -EndFunc ;==>_GUICtrlRebar_GetBarHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBarInfo($hWnd) - Local $tINFO = DllStructCreate($tagREBARINFO) - - DllStructSetData($tINFO, "cbSize", DllStructGetSize($tINFO)) - DllStructSetData($tINFO, "fMask", $RBIM_IMAGELIST) - Local $iRet = _SendMessage($hWnd, $RB_GETBARINFO, 0, $tINFO, 0, "wparam", "struct*") - - Return SetError($iRet = 0, 0, DllStructGetData($tINFO, "himl")) -EndFunc ;==>_GUICtrlRebar_GetBarInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetBKColor($hWnd) - Return _SendMessage($hWnd, $RB_GETBKCOLOR) -EndFunc ;==>_GUICtrlRebar_GetBKColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetColorScheme($hWnd) - Local $aColors[2] - Local $tColorScheme = __GUICtrlRebar_GetColorSchemeEx($hWnd) - If @error Then Return SetError(@error, @error, $aColors) - $aColors[0] = DllStructGetData($tColorScheme, "BtnHighlight") - $aColors[1] = DllStructGetData($tColorScheme, "BtnShadow") - Return $aColors -EndFunc ;==>_GUICtrlRebar_GetColorScheme - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlRebar_GetColorSchemeEx -; Description ...: Retrieves the color scheme information from the rebar control -; Syntax.........: __GUICtrlRebar_GetColorSchemeEx ( $hWnd ) -; Parameters ....: $hWnd - Handle to rebar control -; Return values .: Success - $tagCOLORSCHEME structure -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: -; Related .......: _GUICtrlRebar_GetColorScheme, $tagCOLORSCHEME -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func __GUICtrlRebar_GetColorSchemeEx($hWnd) - Local $tColorScheme = DllStructCreate($tagCOLORSCHEME) - DllStructSetData($tColorScheme, "Size", DllStructGetSize($tColorScheme)) - Local $iRet = _SendMessage($hWnd, $RB_GETCOLORSCHEME, 0, $tColorScheme, 0, "wparam", "struct*") - Return SetError($iRet = 0, 0, $tColorScheme) -EndFunc ;==>__GUICtrlRebar_GetColorSchemeEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetRowCount($hWnd) - Return _SendMessage($hWnd, $RB_GETROWCOUNT) -EndFunc ;==>_GUICtrlRebar_GetRowCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetRowHeight($hWnd, $iIndex) - Return _SendMessage($hWnd, $RB_GETROWHEIGHT, $iIndex) -EndFunc ;==>_GUICtrlRebar_GetRowHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetTextColor($hWnd) - Return _SendMessage($hWnd, $RB_GETTEXTCOLOR) -EndFunc ;==>_GUICtrlRebar_GetTextColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetToolTips($hWnd) - Return _SendMessage($hWnd, $RB_GETTOOLTIPS, 0, 0, 0, "wparam", "lparam", "hwnd") -EndFunc ;==>_GUICtrlRebar_GetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_GetUnicodeFormat($hWnd) - Return _SendMessage($hWnd, $RB_GETUNICODEFORMAT) <> 0 -EndFunc ;==>_GUICtrlRebar_GetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_HitTest($hWnd, $iX = -1, $iY = -1) - Local $iMode = Opt("MouseCoordMode", 1) - Local $aPos = MouseGetPos() - Opt("MouseCoordMode", $iMode) - Local $tPoint = DllStructCreate($tagPOINT) - DllStructSetData($tPoint, "X", $aPos[0]) - DllStructSetData($tPoint, "Y", $aPos[1]) - DllCall("user32.dll", "bool", "ScreenToClient", "hwnd", $hWnd, "struct*", $tPoint) - If @error Then Return SetError(@error, @extended, 0) - - If $iX = -1 Then $iX = DllStructGetData($tPoint, "X") - If $iY = -1 Then $iY = DllStructGetData($tPoint, "Y") - - Local $tTest = DllStructCreate($tagRBHITTESTINFO) - DllStructSetData($tTest, "X", $iX) - DllStructSetData($tTest, "Y", $iY) - Local $iTest = DllStructGetSize($tTest) - Local $tMemMap, $aTest[6] - Local $pMemory = _MemInit($hWnd, $iTest, $tMemMap) - _MemWrite($tMemMap, $tTest, $pMemory, $iTest) - $aTest[0] = _SendMessage($hWnd, $RB_HITTEST, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tTest, $iTest) - _MemFree($tMemMap) - Local $iFlags = DllStructGetData($tTest, "flags") - $aTest[1] = BitAND($iFlags, $RBHT_NOWHERE) <> 0 - $aTest[2] = BitAND($iFlags, $RBHT_CLIENT) <> 0 - $aTest[3] = BitAND($iFlags, $RBHT_CAPTION) <> 0 - $aTest[4] = BitAND($iFlags, $RBHT_CHEVRON) <> 0 - $aTest[5] = BitAND($iFlags, $RBHT_GRABBER) <> 0 - Return $aTest -EndFunc ;==>_GUICtrlRebar_HitTest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_IDToIndex($hWnd, $iID) - Return _SendMessage($hWnd, $RB_IDTOINDEX, $iID) -EndFunc ;==>_GUICtrlRebar_IDToIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_MaximizeBand($hWnd, $iIndex, $bIdeal = True) - _SendMessage($hWnd, $RB_MAXIMIZEBAND, $iIndex, $bIdeal) -EndFunc ;==>_GUICtrlRebar_MaximizeBand - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_MinimizeBand($hWnd, $iIndex) - _SendMessage($hWnd, $RB_MINIMIZEBAND, $iIndex) -EndFunc ;==>_GUICtrlRebar_MinimizeBand - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_MoveBand($hWnd, $iIndexFrom, $iIndexTo) - If $iIndexTo > _GUICtrlRebar_GetBandCount($hWnd) - 1 Then Return False - Return _SendMessage($hWnd, $RB_MOVEBAND, $iIndexFrom, $iIndexTo) <> 0 -EndFunc ;==>_GUICtrlRebar_MoveBand - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandBackColor($hWnd, $iIndex, $iColor) - Local $tINFO = DllStructCreate($tagREBARBANDINFO) - Local $iSize = DllStructGetSize($tINFO) - - DllStructSetData($tINFO, "cbSize", $iSize) - DllStructSetData($tINFO, "fMask", $RBBIM_COLORS) - DllStructSetData($tINFO, "clrBack", $iColor) - DllStructGetData($tINFO, "clrFore", _GUICtrlRebar_GetBandForeColor($hWnd, $iIndex)) - - Local $iRet, $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - _MemWrite($tMemMap, $tINFO, $pMemory, $iSize) - If _GUICtrlRebar_GetUnicodeFormat($hWnd) Then - $iRet = _SendMessage($hWnd, $RB_SETBANDINFOW, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - Else - $iRet = _SendMessage($hWnd, $RB_SETBANDINFOA, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - EndIf - _MemFree($tMemMap) - Return $iRet -EndFunc ;==>_GUICtrlRebar_SetBandBackColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandForeColor($hWnd, $iIndex, $iColor) - Local $tINFO = DllStructCreate($tagREBARBANDINFO) - Local $iSize = DllStructGetSize($tINFO) - - DllStructSetData($tINFO, "cbSize", $iSize) - DllStructSetData($tINFO, "fMask", $RBBIM_COLORS) - DllStructSetData($tINFO, "clrFore", $iColor) - DllStructSetData($tINFO, "clrBack", _GUICtrlRebar_GetBandBackColor($hWnd, $iIndex)) - - Local $iRet, $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - _MemWrite($tMemMap, $tINFO, $pMemory, $iSize) - If _GUICtrlRebar_GetUnicodeFormat($hWnd) Then - $iRet = _SendMessage($hWnd, $RB_SETBANDINFOW, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - Else - $iRet = _SendMessage($hWnd, $RB_SETBANDINFOA, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - EndIf - _MemFree($tMemMap) - Return $iRet -EndFunc ;==>_GUICtrlRebar_SetBandForeColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandHeaderSize($hWnd, $iIndex, $iNewSize) - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_HEADERSIZE, "cxHeader", $iNewSize) -EndFunc ;==>_GUICtrlRebar_SetBandHeaderSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandID($hWnd, $iIndex, $iID) - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_ID, "wID", $iID) -EndFunc ;==>_GUICtrlRebar_SetBandID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandIdealSize($hWnd, $iIndex, $iNewSize) - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_IDEALSIZE, "cxIdeal", $iNewSize) -EndFunc ;==>_GUICtrlRebar_SetBandIdealSize - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlRebar_SetBandInfo -; Description ...: Set Ideal width of the band, in pixels. -; Syntax.........: __GUICtrlRebar_SetBandInfo ( $hWnd, $iIndex, $iMask, $sName, $iData ) -; Parameters ....: $hWnd - Handle to rebar control -; $iIndex - Zero-based index of the band -; $iMask - Flags that indicate which members of this structure are valid or must be filled -; $sName - Name of the member -; $iData - Data for the member -; Return values .: Success - True -; Failure - False -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: -; Related .......: __GUICtrlRebar_GetBandInfo -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $iMask, $sName, $iData) - Local $tINFO = DllStructCreate($tagREBARBANDINFO) - Local $iSize = DllStructGetSize($tINFO) - - DllStructSetData($tINFO, "cbSize", $iSize) - DllStructSetData($tINFO, "fMask", $iMask) - DllStructSetData($tINFO, $sName, $iData) - - Local $iRet, $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - _MemWrite($tMemMap, $tINFO, $pMemory, $iSize) - If _GUICtrlRebar_GetUnicodeFormat($hWnd) Then - $iRet = _SendMessage($hWnd, $RB_SETBANDINFOW, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - Else - $iRet = _SendMessage($hWnd, $RB_SETBANDINFOA, $iIndex, $pMemory, 0, "wparam", "ptr") <> 0 - EndIf - _MemFree($tMemMap) - Return $iRet -EndFunc ;==>__GUICtrlRebar_SetBandInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandLength($hWnd, $iIndex, $iLength) - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_SIZE, "cx", $iLength) -EndFunc ;==>_GUICtrlRebar_SetBandLength - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandLParam($hWnd, $iIndex, $lParam) - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_LPARAM, "lParam", $lParam) -EndFunc ;==>_GUICtrlRebar_SetBandLParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyle($hWnd, $iIndex, $iStyle) - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", $iStyle) -EndFunc ;==>_GUICtrlRebar_SetBandStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleBreak($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_BREAK)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_BREAK)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleBreak - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleChildEdge($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_CHILDEDGE)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_CHILDEDGE)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleChildEdge - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleFixedBMP($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_FIXEDBMP)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_FIXEDBMP)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleFixedBMP - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleFixedSize($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_FIXEDSIZE)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_FIXEDSIZE)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleFixedSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleGripperAlways($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_GRIPPERALWAYS)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_GRIPPERALWAYS)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleGripperAlways - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleHidden($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_HIDDEN)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_HIDDEN)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleHidden - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleHideTitle($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_HIDETITLE)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_HIDETITLE)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleHideTitle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleNoGripper($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_NOGRIPPER)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_NOGRIPPER)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleNoGripper - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlRebar_SetBandStyleNoVert -; Description ...: Set whether to Don't show when vertical -; Syntax.........: _GUICtrlRebar_SetBandStyleNoVert ( $hWnd, $iIndex [, $bEnabled = True] ) -; Parameters ....: $hWnd - Handle to rebar control -; $iIndex - Zero-based index of the band -; $bEnabled - If True the item state is set, otherwise it is not set -; Return values .: Success - True -; Failure - False -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: -; Related .......: _GUICtrlRebar_GetBandStyleNoVert, _GUICtrlRebar_SetBandStyle -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleNoVert($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_NOVERT)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_NOVERT)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleNoVert - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleTopAlign($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_TOPALIGN)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_TOPALIGN)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleTopAlign - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleUseChevron($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_USECHEVRON)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_USECHEVRON)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleUseChevron - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandStyleVariableHeight($hWnd, $iIndex, $bEnabled = True) - If $bEnabled Then - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_VARIABLEHEIGHT)) - Else - Return __GUICtrlRebar_SetBandInfo($hWnd, $iIndex, $RBBIM_STYLE, "fStyle", BitXOR(_GUICtrlRebar_GetBandStyle($hWnd, $iIndex), $RBBS_VARIABLEHEIGHT)) - EndIf -EndFunc ;==>_GUICtrlRebar_SetBandStyleVariableHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBandText($hWnd, $iIndex, $sText) - Local $bUnicode = _GUICtrlRebar_GetUnicodeFormat($hWnd) - - Local $tINFO = DllStructCreate($tagREBARBANDINFO) - Local $iSize = DllStructGetSize($tINFO) - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Buffer[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Buffer[" & $iBuffer & "]") - EndIf - - DllStructSetData($tBuffer, "Buffer", $sText) - DllStructSetData($tINFO, "cbSize", $iSize) - DllStructSetData($tINFO, "fMask", $RBBIM_TEXT) - DllStructSetData($tINFO, "cch", $iBuffer) - - Local $iRet, $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iSize - DllStructSetData($tINFO, "lpText", $pText) - _MemWrite($tMemMap, $tINFO, $pMemory, $iSize) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $RB_SETBANDINFOW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $RB_SETBANDINFOA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - - Return $iRet <> 0 -EndFunc ;==>_GUICtrlRebar_SetBandText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBKColor($hWnd, $iColor) - Return _SendMessage($hWnd, $RB_SETBKCOLOR, 0, $iColor) -EndFunc ;==>_GUICtrlRebar_SetBKColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetBarInfo($hWnd, $hIml) - Local $tINFO = DllStructCreate($tagREBARINFO) - - DllStructSetData($tINFO, "cbSize", DllStructGetSize($tINFO)) - DllStructSetData($tINFO, "fMask", $RBIM_IMAGELIST) - DllStructSetData($tINFO, "himl", $hIml) - Return _SendMessage($hWnd, $RB_SETBARINFO, 0, $tINFO, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlRebar_SetBarInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetColorScheme($hWnd, $iBtnHighlight, $iBtnShadow) - Local $tINFO = DllStructCreate($tagCOLORSCHEME) - Local $iSize = DllStructGetSize($tINFO) - - DllStructSetData($tINFO, "Size", $iSize) - DllStructSetData($tINFO, "BtnHighlight", $iBtnHighlight) - DllStructSetData($tINFO, "BtnShadow", $iBtnShadow) - - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - _MemWrite($tMemMap, $tINFO, $pMemory, $iSize) - _SendMessage($hWnd, $RB_SETCOLORSCHEME, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) -EndFunc ;==>_GUICtrlRebar_SetColorScheme - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetTextColor($hWnd, $iColor) - Return _SendMessage($hWnd, $RB_SETTEXTCOLOR, 0, $iColor) -EndFunc ;==>_GUICtrlRebar_SetTextColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetToolTips($hWnd, $hToolTip) - _SendMessage($hWnd, $RB_SETTOOLTIPS, $hToolTip, 0, 0, "hwnd") -EndFunc ;==>_GUICtrlRebar_SetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_SetUnicodeFormat($hWnd, $bUnicode = True) - Return _SendMessage($hWnd, $RB_SETUNICODEFORMAT, $bUnicode) -EndFunc ;==>_GUICtrlRebar_SetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRebar_ShowBand($hWnd, $iIndex, $bShow = True) - Return _SendMessage($hWnd, $RB_SHOWBAND, $iIndex, $bShow) <> 0 -EndFunc ;==>_GUICtrlRebar_ShowBand diff --git a/build/Include/GuiRichEdit.au3 b/build/Include/GuiRichEdit.au3 deleted file mode 100644 index 5aa04bb07..000000000 --- a/build/Include/GuiRichEdit.au3 +++ /dev/null @@ -1,3771 +0,0 @@ -#include-once - -#include "Clipboard.au3" -#include "EditConstants.au3" -#include "FileConstants.au3" -#include "RichEditConstants.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "UDFGlobalID.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Rich Edit -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Programmer-friendly Rich Edit control -; Author(s) .....: GaryFrost, grham, Prog@ndy, KIP, c.haslam -; OLE stuff .....: example from http://www.powerbasic.com/support/pbforums/showpost.php?p=294112&postcount=7 -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== - -Global $__g_sRTFClassName, $__g_sRTFVersion, $__g_iRTFTwipsPeSpaceUnit = 1440 ; inches -Global $__g_sGRE_CF_RTF, $__g_sGRE_CF_RETEXTOBJ -Global $__g_pGRC_StreamFromFileCallback = DllCallbackRegister("__GCR_StreamFromFileCallback", "dword", "long_ptr;ptr;long;ptr") -Global $__g_pGRC_StreamFromVarCallback = DllCallbackRegister("__GCR_StreamFromVarCallback", "dword", "long_ptr;ptr;long;ptr") -Global $__g_pGRC_StreamToFileCallback = DllCallbackRegister("__GCR_StreamToFileCallback", "dword", "long_ptr;ptr;long;ptr") -Global $__g_pGRC_StreamToVarCallback = DllCallbackRegister("__GCR_StreamToVarCallback", "dword", "long_ptr;ptr;long;ptr") -Global $__g_pGRC_sStreamVar -Global $__g_hRELastWnd -; Functions translated from http://www.powerbasic.com/support/pbforums/showpost.php?p=294112&postcount=7 -; by Prog@ndy -Global $__g_tObj_RichComObject = DllStructCreate("ptr pIntf; dword Refcount") -Global $__g_tCall_RichCom, $__g_pObj_RichCom -Global $__g_hLib_RichCom_OLE32 = DllOpen("OLE32.DLL") -Global $__g_pRichCom_Object_QueryInterface = DllCallbackRegister("__RichCom_Object_QueryInterface", "long", "ptr;dword;dword") -Global $__g_pRichCom_Object_AddRef = DllCallbackRegister("__RichCom_Object_AddRef", "long", "ptr") -Global $__g_pRichCom_Object_Release = DllCallbackRegister("__RichCom_Object_Release", "long", "ptr") -Global $__g_pRichCom_Object_GetNewStorage = DllCallbackRegister("__RichCom_Object_GetNewStorage", "long", "ptr;ptr") -Global $__g_pRichCom_Object_GetInPlaceContext = DllCallbackRegister("__RichCom_Object_GetInPlaceContext", "long", "ptr;dword;dword;dword") -Global $__g_pRichCom_Object_ShowContainerUI = DllCallbackRegister("__RichCom_Object_ShowContainerUI", "long", "ptr;long") -Global $__g_pRichCom_Object_QueryInsertObject = DllCallbackRegister("__RichCom_Object_QueryInsertObject", "long", "ptr;dword;ptr;long") -Global $__g_pRichCom_Object_DeleteObject = DllCallbackRegister("__RichCom_Object_DeleteObject", "long", "ptr;ptr") -Global $__g_pRichCom_Object_QueryAcceptData = DllCallbackRegister("__RichCom_Object_QueryAcceptData", "long", "ptr;ptr;dword;dword;dword;ptr") -Global $__g_pRichCom_Object_ContextSensitiveHelp = DllCallbackRegister("__RichCom_Object_ContextSensitiveHelp", "long", "ptr;long") -Global $__g_pRichCom_Object_GetClipboardData = DllCallbackRegister("__RichCom_Object_GetClipboardData", "long", "ptr;ptr;dword;ptr") -Global $__g_pRichCom_Object_GetDragDropEffect = DllCallbackRegister("__RichCom_Object_GetDragDropEffect", "long", "ptr;dword;dword;dword") -Global $__g_pRichCom_Object_GetContextMenu = DllCallbackRegister("__RichCom_Object_GetContextMenu", "long", "ptr;short;ptr;ptr;ptr") -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__RICHEDITCONSTANT_SB_LINEDOWN = 1 -Global Const $__RICHEDITCONSTANT_SB_LINEUP = 0 -Global Const $__RICHEDITCONSTANT_SB_PAGEDOWN = 3 -Global Const $__RICHEDITCONSTANT_SB_PAGEUP = 2 - -Global Const $__RICHEDITCONSTANT_WM_COPY = 0x00000301 - -Global Const $__RICHEDITCONSTANT_WM_SETFONT = 0x0030 -Global Const $__RICHEDITCONSTANT_WM_CUT = 0x00000300 -Global Const $__RICHEDITCONSTANT_WM_PASTE = 0x00000302 -Global Const $__RICHEDITCONSTANT_WM_SETREDRAW = 0x000B - -Global Const $__RICHEDITCONSTANT_COLOR_WINDOWTEXT = 8 - -Global Const $_GCR_S_OK = 0 -Global Const $_GCR_E_NOTIMPL = 0x80004001 -Global Const $_GCR_E_INVALIDARG = 0x80070057 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlRichEdit_AppendText -; _GUICtrlRichEdit_AutoDetectURL -; _GUICtrlRichEdit_CanPaste -; _GUICtrlRichEdit_CanPasteSpecial -; _GUICtrlRichEdit_CanRedo -; _GUICtrlRichEdit_CanUndo -; _GUICtrlRichEdit_ChangeFontSize -; _GUICtrlRichEdit_Copy -; _GUICtrlRichEdit_Create -; _GUICtrlRichEdit_Cut -; _GUICtrlRichEdit_Deselect -; _GUICtrlRichEdit_Destroy -; _GUICtrlRichEdit_EmptyUndoBuffer -; _GUICtrlRichEdit_FindText -; _GUICtrlRichEdit_FindTextInRange -; _GUICtrlRichEdit_GetCharAttributes -; _GUICtrlRichEdit_GetCharBkColor -; _GUICtrlRichEdit_GetCharColor -; _GUICtrlRichEdit_GetCharPosFromXY -; _GUICtrlRichEdit_GetCharPosOfNextWord -; _GUICtrlRichEdit_GetCharPosOfPreviousWord -; _GUICtrlRichEdit_GetCharWordBreakInfo -; _GUICtrlRichEdit_GetBkColor -; _GUICtrlRichEdit_GetText -; _GUICtrlRichEdit_GetTextLength -; _GUICtrlRichEdit_GetZoom -; _GUICtrlRichEdit_GetFirstCharPosOnLine -; _GUICtrlRichEdit_GetFont -; _GUICtrlRichEdit_GetRECT -; _GUICtrlRichEdit_GetLineCount -; _GUICtrlRichEdit_GetLineLength -; _GUICtrlRichEdit_GetLineNumberFromCharPos -; _GUICtrlRichEdit_GetNextRedo -; _GUICtrlRichEdit_GetNextUndo -; _GUICtrlRichEdit_GetNumberOfFirstVisibleLine -; _GUICtrlRichEdit_GetParaAlignment -; _GUICtrlRichEdit_GetParaAttributes -; _GUICtrlRichEdit_GetParaBorder -; _GUICtrlRichEdit_GetParaIndents -; _GUICtrlRichEdit_GetParaNumbering -; _GUICtrlRichEdit_GetParaShading -; _GUICtrlRichEdit_GetParaSpacing -; _GUICtrlRichEdit_GetParaTabStops -; _GUICtrlRichEdit_GetPasswordChar -; _GUICtrlRichEdit_GetScrollPos -; _GUICtrlRichEdit_GetSel -; _GUICtrlRichEdit_GetSelAA -; _GUICtrlRichEdit_GetSelText -; _GUICtrlRichEdit_GetSpaceUnit -; _GUICtrlRichEdit_GetTextInLine -; _GUICtrlRichEdit_GetTextInRange -; _GUICtrlRichEdit_GetVersion -; _GUICtrlRichEdit_GetXYFromCharPos -; _GUICtrlRichEdit_GotoCharPos -; _GUICtrlRichEdit_HideSelection -; _GUICtrlRichEdit_InsertText -; _GUICtrlRichEdit_IsModified -; _GUICtrlRichEdit_IsTextSelected -; _GUICtrlRichEdit_Paste -; _GUICtrlRichEdit_PasteSpecial -; _GUICtrlRichEdit_PauseRedraw -; _GUICtrlRichEdit_Redo -; _GUICtrlRichEdit_ReplaceText -; _GUICtrlRichEdit_ResumeRedraw -; _GUICtrlRichEdit_ScrollLineOrPage -; _GUICtrlRichEdit_ScrollLines -; _GUICtrlRichEdit_ScrollToCaret -; _GUICtrlRichEdit_SetCharAttributes -; _GUICtrlRichEdit_SetCharBkColor -; _GUICtrlRichEdit_SetCharColor -; _GUICtrlRichEdit_SetBkColor -; _GUICtrlRichEdit_SetLimitOnText -; _GUICtrlRichEdit_SetTabStops -; _GUICtrlRichEdit_SetZoom -; _GUICtrlRichEdit_SetEventMask -; _GUICtrlRichEdit_SetFont -; _GUICtrlRichEdit_SetRECT -; _GUICtrlRichEdit_SetModified -; _GUICtrlRichEdit_SetParaAlignment -; _GUICtrlRichEdit_SetParaAttributes -; _GUICtrlRichEdit_SetParaBorder -; _GUICtrlRichEdit_SetParaIndents -; _GUICtrlRichEdit_SetParaNumbering -; _GUICtrlRichEdit_SetParaShading -; _GUICtrlRichEdit_SetParaSpacing -; _GUICtrlRichEdit_SetParaTabStops -; _GUICtrlRichEdit_SetPasswordChar -; _GUICtrlRichEdit_SetReadOnly -; _GUICtrlRichEdit_SetScrollPos -; _GUICtrlRichEdit_SetSel -; _GUICtrlRichEdit_SetSpaceUnit -; _GUICtrlRichEdit_SetText -; _GUICtrlRichEdit_SetUndoLimit -; _GUICtrlRichEdit_StreamFromFile -; _GUICtrlRichEdit_StreamFromVar -; _GUICtrlRichEdit_StreamToFile -; _GUICtrlRichEdit_StreamToVar -; _GUICtrlRichEdit_Undo -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagEDITSTREAM -; $tagBIDIOPTIONS -; $tagCHARFORMAT -; $tagCHARFORMAT2 -; $tagCHARRANGE -; $tagFINDTEXT -; $tagFINDTEXTEX -; $tagGETTEXTEX -; $tagGETTEXTLENGTHEX -; $tagPARAFORMAT -; $tagPARAFORMAT2 -; $tagSETTEXTEX -; $tagTEXTRANGE -; $tagMSGFILTER -; $tagENLINK -; __GCR_ConvertRomanToNumber -; __GCR_ConvertTwipsToSpaceUnit -; __GCR_GetParaScopeChar -; __GCR_Init -; __GCR_IsNumeric -; __GCR_ParseParaNumberingStyle -; __GCR_SendGetCharFormatMessage -; __GCR_SendGetParaFormatMessage -; __GCR_SetOLECallback -; __GCR_StreamFromFileCallback -; __GCR_StreamFromVarCallback -; __GCR_StreamToFileCallback -; __GCR_StreamToVarCallback -; __RichCom_Object_AddRef -; __RichCom_Object_ContextSensitiveHelp -; __RichCom_Object_DeleteObject -; __RichCom_Object_GetClipboardData -; __RichCom_Object_GetContextMenu -; __RichCom_Object_GetDragDropEffect -; __RichCom_Object_GetInPlaceContext -; __RichCom_Object_GetNewStorage -; __RichCom_Object_QueryAcceptData -; __RichCom_Object_QueryInsertObject -; __RichCom_Object_QueryInterface -; __RichCom_Object_Release -; __RichCom_Object_ShowContainerUI -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagEDITSTREAM -; Description ...: Contains information that an application passes to a rich edit control in a EM_STREAMIN or EM_STREAMOUT message -; Fields ........: dwCookie - Specifies an application-defined value that the rich edit control passes to the EditStreamCallback callback function specified by the pfnCallback member -; dwError - Indicates the results of the stream-in (read) or stream-out (write) operation -; pfnCallback - Pointer to an EditStreamCallback function -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagEDITSTREAM = "align 4;dword_ptr dwCookie;dword dwError;ptr pfnCallback" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagBIDIOPTIONS -; Description ...: Contains bidirectional information about a rich edit control -; Fields ........: cbSize - Specifies the size, in bytes, of the structure -; wMask - A set of mask bits that determine which of the wEffects flags will be set to 1 or 0 by the rich edit control. This approach eliminates the need to read the effects flags before changing them. -; |Obsolete bits are valid only for the bidirectional version of Rich Edit 1.0. -; | $BOM_DEFPARADIR - Default paragraph direction—implies alignment (obsolete). -; | $BOM_PLAINTEXT - Use plain text layout (obsolete). -; | $BOM_NEUTRALOVERRIDE - Override neutral layout. -; | $BOM_CONTEXTREADING - Context reading order. -; | $BOM_CONTEXTALIGNMENT - Context alignment. -; | $BOM_LEGACYBIDICLASS - Treatment of plus, minus, and slash characters in right-to-left (LTR) or bidirectional text. -; wEffects - A set of flags that indicate the desired or current state of the effects flags. Obsolete bits are valid only for the bidirectional version of Rich Edit 1.0. -; |Obsolete bits are valid only for the bidirectional version of Rich Edit 1.0. -; | $BOE_RTLDIR - Default paragraph direction—implies alignment (obsolete). -; | $BOE_PLAINTEXT - Uses plain text layout (obsolete). -; | $BOE_NEUTRALOVERRIDE - Overrides neutral layout. -; | $BOE_CONTEXTREADING - Context reading order. -; | $BOE_CONTEXTALIGNMENT - Context alignment. -; | $BOE_LEGACYBIDICLASS - Causes the plus and minus characters to be treated as neutral characters with no implied direction. Also causes the slash character to be treated as a common separator. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagBIDIOPTIONS = "uint cbSize;word wMask;word wEffects" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagCHARFORMAT -; Description ...: Contains information about character formatting in a rich edit control -; Fields ........: cbSize - Size in bytes of the specified structure -; dwMask - Members containing valid information or attributes to set. This member can be zero, one, or more than one of the following values. -; | $CFM_BOLD - The $CFE_BOLD value of the dwEffects member is valid. -; | $CFM_CHARSET - The bCharSet member is valid. -; | $CFM_COLOR - The crTextColor member and the $CFE_AUTOCOLOR value of the dwEffects member are valid. -; | $CFM_FACE - The szFaceName member is valid. -; | $CFM_ITALIC - The $CFE_ITALIC value of the dwEffects member is valid. -; | $CFM_OFFSET - The yOffset member is valid. -; | $CFM_PROTECTED - The $CFE_PROTECTED value of the dwEffects member is valid. -; | $CFM_SIZE - The yHeight member is valid. -; | $CFM_STRIKEOUT - The $CFE_STRIKEOUT value of the dwEffects member is valid. -; | $CFM_UNDERLINE - The $CFE_UNDERLINE value of the dwEffects member is valid. -; dwEffects - Character effects. This member can be a combination of the following values. -; | $CFE_AUTOCOLOR - The text color is the return value of GetSysColor(COLOR_WINDOWTEXT). -; | $CFE_BOLD - Characters are bold. -; | $CFE_DISABLED - RichEdit 2.0 and later: Characters are displayed with a shadow that is offset by 3/4 point or one pixel, whichever is larger. -; | $CFE_ITALIC - Characters are italic. -; | $CFE_STRIKEOUT - Characters are struck. -; | $CFE_UNDERLINE - Characters are underlined. -; | $CFE_PROTECTED - Characters are protected; an attempt to modify them will cause an EN_PROTECTED notification message. -; yHeight - Character height, in twips (1/1440 of an inch or 1/20 of a printer's point). -; yOffset - Character offset, in twips, from the baseline. If the value of this member is positive, the character is a superscript; if it is negative, the character is a subscript. -; crCharColor - Text color. This member is ignored if the $CFE_AUTOCOLOR character effect is specified. To generate a COLORREF, use the RGB macro. -; bCharSet - Character set value. The bCharSet member can be one of the values specified for the lfCharSet member of the LOGFONT structure. Rich Edit 3.0 may override this value if it is invalid for the target characters. -; bPitchAndFamily - Font family and pitch. This member is the same as the lfPitchAndFamily member of the LOGFONT structure. -; szFaceName - Null-terminated character array specifying the font name. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagCHARFORMAT = "struct;uint cbSize;dword dwMask;dword dwEffects;long yHeight;long yOffset;INT crCharColor;" & _ - "byte bCharSet;byte bPitchAndFamily;wchar szFaceName[32];endstruct" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagCHARFORMAT2 -; Description ...: Contains information about character formatting in a rich edit control -; Fields ........: cbSize - Size in bytes of the specified structure -; dwMask - Members containing valid information or attributes to set. This member can be zero, one, or more than one of the following values. -; | $CFM_BOLD - The $CFE_BOLD value of the dwEffects member is valid. -; | $CFM_CHARSET - The bCharSet member is valid. -; | $CFM_COLOR - The crTextColor member and the $CFE_AUTOCOLOR value of the dwEffects member are valid. -; | $CFM_FACE - The szFaceName member is valid. -; | $CFM_ITALIC - The $CFE_ITALIC value of the dwEffects member is valid. -; | $CFM_OFFSET - The yOffset member is valid. -; | $CFM_PROTECTED - The $CFE_PROTECTED value of the dwEffects member is valid. -; | $CFM_SIZE - The yHeight member is valid. -; | $CFM_STRIKEOUT - The $CFE_STRIKEOUT value of the dwEffects member is valid. -; | $CFM_UNDERLINE - The $CFE_UNDERLINE value of the dwEffects member is valid. -; |Set the following values to indicate the valid structure members. -; | $CFM_ANIMATION - The bAnimation member is valid. -; | $CFM_BACKCOLOR - The crBackColor member is valid. -; | $CFM_CHARSET - The bCharSet member is valid. -; | $CFM_COLOR - The crTextColor member is valid unless the CFE_AUTOCOLOR flag is set in the dwEffects member. -; | $CFM_FACE - The szFaceName member is valid. -; | $CFM_KERNING - The wKerning member is valid. -; | $CFM_LCID - The lcid member is valid. -; | $CFM_OFFSET - The yOffset member is valid. -; | $CFM_REVAUTHOR - The bRevAuthor member is valid. -; | $CFM_SIZE - The yHeight member is valid. -; | $CFM_SPACING - The sSpacing member is valid. -; | $CFM_STYLE - The sStyle member is valid. -; | $CFM_UNDERLINETYPE - The bUnderlineType member is valid. -; | $CFM_WEIGHT - The wWeight member is valid. -; dwEffects - A set of bit flags that specify character effects. Some of the flags are included only for compatibility with Microsoft Text Object Model (TOM) interfaces; the rich edit control stores the value but does not use it to display text. -; |This member can be a combination of the following values. -; | $CFE_ALLCAPS - Characters are all capital letters. The value does not affect the way the control displays the text. This value applies only to versions earlier than Rich Edit 3.0. -; | $CFE_AUTOBACKCOLOR - The background color is the return value of GetSysColor(COLOR_WINDOW). If this flag is set, crBackColor member is ignored. -; | $CFE_AUTOCOLOR - The text color is the return value of GetSysColor(COLOR_WINDOWTEXT). If this flag is set, the crTextColor member is ignored. -; | $CFE_BOLD - Characters are bold. -; | $CFE_DISABLED - Characters are displayed with a shadow that is offset by 3/4 point or one pixel, whichever is larger. -; | $CFE_EMBOSS - Characters are embossed. The value does not affect how the control displays the text. -; | $CFE_HIDDEN - For Rich Edit 3.0 and later, characters are not displayed. -; | $CFE_IMPRINT - Characters are displayed as imprinted characters. The value does not affect how the control displays the text. -; | $CFE_ITALIC - Characters are italic. -; | $CFE_LINK - A rich edit control can send EN_LINK notification messages when it receives mouse messages while the mouse pointer is over text with the CFE_LINK effect. -; | $CFE_OUTLINE - Characters are displayed as outlined characters. The value does not affect how the control displays the text. -; | $CFE_PROTECTED - Characters are protected; an attempt to modify them will cause an EN_PROTECTED notification message. -; | $CFE_REVISED - Characters are marked as revised. -; | $CFE_SHADOW - Characters are displayed as shadowed characters. The value does not affect how the control displays the text. -; | $CFE_SMALLCAPS - Characters are in small capital letters. The value does not affect how the control displays the text. -; | $CFE_STRIKEOUT - Characters are struck out. -; | $CFE_SUBSCRIPT - Characters are subscript. The CFE_SUPERSCRIPT and CFE_SUBSCRIPT values are mutually exclusive. For both values, the control automatically calculates an offset and a smaller font size. Alternatively, you can use the yHeight and yOffset members to explicitly specify font size and offset for subscript and superscript characters. -; | $CFE_SUPERSCRIPT - Characters are superscript. -; | $CFE_UNDERLINE - Characters are underlined. -; yHeight - Character height, in twips (1/1440 of an inch or 1/20 of a printer's point). -; yOffset - Character offset, in twips, from the baseline. If the value of this member is positive, the character is a superscript; if it is negative, the character is a subscript. -; crCharColor - Text color. This member is ignored if the $CFE_AUTOCOLOR character effect is specified. To generate a COLORREF, use the RGB macro. -; bCharSet - Character set value. The bCharSet member can be one of the values specified for the lfCharSet member of the LOGFONT structure. Rich Edit 3.0 may override this value if it is invalid for the target characters. -; bPitchAndFamily - Font family and pitch. This member is the same as the lfPitchAndFamily member of the LOGFONT structure. -; szFaceName - Null-terminated character array specifying the font name. -; wWeight - Font weight. This member is the same as the lfWeight member of the LOGFONT structure. To use this member, set the CFM_WEIGHT flag in the dwMask member. -; sSpacing - Horizontal space between letters, in twips. This value has no effect on the text displayed by a rich edit control; it is included for compatibility with Microsoft WindowsText Object Model (TOM) interfaces. To use this member, set the CFM_SPACING flag in the dwMask member. -; crBackColor - Background color. To use this member, set the CFM_BACKCOLOR flag in the dwMask member. This member is ignored if the CFE_AUTOBACKCOLOR character effect is specified. To generate a , use the macro. -; lcid - A 32-bit locale identifier that contains a language identifier in the lower word and a sorting identifier and reserved value in the upper word. This member has no effect on the text displayed by a rich edit control, but spelling and grammar checkers can use it to deal with language-dependent problems. You can use the macro to create an LCID value. To use this member, set the CFM_LCID flag in the dwMask member. -; dwReserved - Reserved; the value must be zero. -; sStyle - Character style handle. This value has no effect on the text displayed by a rich edit control; it is included for compatibility with WindowsTOM interfaces. To use this member, set the CFM_STYLE flag in the dwMask member. For more information see the Text Object Model documentation. -; wKerning - Value of the font size, above which to kern the character (yHeight). This value has no effect on the text displayed by a rich edit control; it is included for compatibility with TOM interfaces. To use this member, set the CFM_KERNING flag in the dwMask member. -; bUnderlineType - Specifies the underline type. To use this member, set the CFM_UNDERLINETYPE flag in the dwMask member. This member can be one of the following values. -; | $CFU_CF1UNDERLINE - The structure maps CHARFORMAT's bit underline to CHARFORMAT2, (that is, it performs a CHARFORMAT type of underline on this text). -; | $CFU_UNDERLINE - Solid underlined text. -; | $CFU_UNDERLINEDOTTED - Dotted underlined text. For versions earlier than Rich Edit 3.0, text is displayed with a solid underline. -; | $CFU_UNDERLINEDOUBLE - Double-underlined text. The rich edit control displays the text with a solid underline. -; | $CFU_UNDERLINENONE - No underline. This is the default. -; | $CFU_UNDERLINEWORD - Underline words only. The rich edit control displays the text with a solid underline. -; bAnimation - Text animation type. This value has no effect on the text displayed by a rich edit control; it is included for compatibility with TOM interfaces. To use this member, set the CFM_ANIMATION flag in the dwMask member. -; bRevAuthor - An index that identifies the author making a revision. The rich edit control uses different text colors for each different author index. To use this member, set the CFM_REVAUTHOR flag in the dwMask member. -; bReserved1 - Reserved; the value must be zero. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagCHARFORMAT2 = $tagCHARFORMAT & ";word wWeight;short sSpacing;INT crBackColor;dword lcid;dword dwReserved;" & _ - "short sStyle;word wKerning;byte bUnderlineType;byte bAnimation;byte bRevAuthor;byte bReserved1" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagCHARRANGE -; Description ...: Specifies a range of characters in a rich edit control -; Fields ........: cpMin - Character position index immediately preceding the first character in the range. -; cpMax - Character position immediately following the last character in the range. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagCHARRANGE = "struct;long cpMin;long cpMax;endstruct" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagFINDTEXT -; Description ...: Contains information about a search operation in a rich edit control -; Fields ........: cpMin - Character position index immediately preceding the first character in the range. -; cpMax - Character position immediately following the last character in the range. -; lpstrText - Pointer to the null-terminated string used in the find operation. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagFINDTEXT = $tagCHARRANGE & ";ptr lpstrText" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagFINDTEXTEX -; Description ...: Contains information about text to search for in a rich edit control. -; Fields ........: cpMin - Character position index immediately preceding the first character in the range to search. -; cpMax - Character position immediately following the last character in the range to search. -; lpstrText - Pointer to the null-terminated string used in the find operation. -; cpMinRang - Character position index immediately preceding the first character in the range found. -; cpMaxRange - Character position immediately following the last character in the range found. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagFINDTEXTEX = $tagCHARRANGE & ";ptr lpstrText;long cpMinRang;long cpMaxRange" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagGETTEXTEX -; Description ...: Contains information about an operation to get text from a rich edit control. -; Fields ........: cb - Count of bytes in the fetched string. -; flags - Value specifying a text operation. This member can be one of the following values. -; | $GT_DEFAULT - No CR translation. -; | $GT_SELECTION - Retrieves the text for the current selection. -; | $GT_USECRLF - Indicates that when copying text, each CR should be translated into a CRLF. -; codepage - Code page used in the translation. It is $CP_ACP for ANSI Code Page and 1200 for Unicode. -; lpDefaultChar - Points to the character used if a wide character cannot be represented in the specified code page. -; |It is used only if the code page is not 1200 (Unicode). If this member is NULL, a system default value is used. -; lpUsedDefChar - Points to a flag that indicates whether a default character was used. -; |It is used only if the code page is not 1200 (Unicode). -; |The flag is set to TRUE if one or more wide characters in the source string cannot be represented in the specified code page. -; |Otherwise, the flag is set to FALSE. This member may be NULL. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagGETTEXTEX = "align 4;dword cb;dword flags;uint codepage;ptr lpDefaultChar;ptr lpbUsedDefChar" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagGETTEXTLENGTHEX -; Description ...: Contains information about how the text length of a rich edit control should be calculated. -; Fields ........: flags - Value specifying the method to be used in determining the text length. This member can be one or more of the following values (some values are mutually exclusive). -; | $GTL_DEFAULT - Returns the number of characters. This is the default. -; | $GTL_USECRLF - Computes the answer by using CR/LFs at the end of paragraphs. -; | $GTL_PRECISE - Computes a precise answer. This approach could necessitate a conversion and thereby take longer. This flag cannot be used with the GTL_CLOSE flag. E_INVALIDARG will be returned if both are used. -; | $GTL_CLOSE - Computes an approximate (close) answer. It is obtained quickly and can be used to set the buffer size. This flag cannot be used with the GTL_PRECISE flag. E_INVALIDARG will be returned if both are used. -; | $GTL_NUMCHARS - Returns the number of characters. This flag cannot be used with the GTL_NUMBYTES flag. E_INVALIDARG will be returned if both are used. -; | $GTL_NUMBYTES - Returns the number of bytes. This flag cannot be used with the GTL_NUMCHARS flag. E_INVALIDARG will be returned if both are used. -; codepage - Code page used in the translation. It is $CP_ACP for ANSI Code Page and 1200 for Unicode. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagGETTEXTLENGTHEX = "dword flags;uint codepage" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagPARAFORMAT -; Description ...: Contains information about paragraph formatting attributes in a rich edit control. -; Fields ........: cbSize - Structure size, in bytes. -; dwMask - Members containing valid information or attributes to set. This parameter can be none or a combination of the following values. If both PFM_STARTINDENT and PFM_OFFSETINDENT are specified, PFM_STARTINDENT takes precedence. -; | $PFM_ALIGNMENT - The wAlignment member is valid. -; | $PFM_NUMBERING - The wNumbering member is valid. -; | $PFM_OFFSET - The dxOffset member is valid. -; | $PFM_OFFSETINDENT - The dxStartIndent member is valid and specifies a relative value. -; | $PFM_RIGHTINDENT - The dxRightIndent member is valid. -; | $PFM_RTLPARA - Rich Edit 2.0: The wEffects member is valid -; | $PFM_STARTINDENT - The dxStartIndent member is valid. -; | $PFM_TABSTOPS - The cTabStobs and rgxTabStops members are valid. -; wNumbering - Value specifying numbering options. This member can be zero or $PFN_BULLET. -; wEffects - A bit flag that specifies a paragraph effect. It is included only for compatibility with Text Object Model (TOM) interfaces; the rich edit control stores the value but does not use it to display the text. This parameter can be one of the following values. -; | 0 - Displays text using left-to-right reading order. This is the default. -; | $PFE_RLTPARA - Displays text using right-to-left reading order. -; dxStartIndent - Indentation of the first line in the paragraph, in twips. -; |If the paragraph formatting is being set and PFM_OFFSETINDENT is specified, this member is treated as a relative value that is added to the starting indentation of each affected paragraph. -; dxRightIndent - Size, of the right indentation relative to the right margin, in twips. -; dxOffset - Indentation of the second and subsequent lines of a paragraph relative to the starting indentation, in twips. -; |The first line is indented if this member is negative or outdented if this member is positive. -; wAlignment - Value specifying the paragraph alignment. This member can be one of the following values. -; | $PFA_CENTER - Paragraphs are centered. -; | $PFA_LEFT - Paragraphs are aligned with the left margin. -; | $PFA_RIGHT - Paragraphs are aligned with the right margin. -; cTabCount - Number of tab stops. -; rgxTabs - Array of absolute tab stop positions. Each element in the array specifies information about a tab stop. The 24 low-order bits specify the absolute offset, in twips. To use this member, set the PFM_TABSTOPS flag in the dwMask member. -; |Rich Edit 2.0: For compatibility with TOM interfaces, you can use the eight high-order bits to store additional information about each tab stop. -; | Bits 24-27 can specify one of the following values to indicate the tab alignment. These bits do not affect the rich edit control display for versions earlier than Rich Edit 3.0. -; | 0 - Ordinary tab -; | 1 - Center tab -; | 2 - Right-aligned tab -; | 3 - Decimal tab -; | 4 - Word bar tab (vertical bar) -; | Bits 28-31 can specify one of the following values to indicate the type of tab leader. These bits do not affect the rich edit control display. -; | 0 - No leader -; | 1 - Dotted leader -; | 2 - Dashed leader -; | 3 - Underlined leader -; | 4 - Thick line leader -; | 5 - Double line leader -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagPARAFORMAT = "uint cbSize;dword dwMask;word wNumbering;word wEffects;long dxStartIndent;" _ - & "long dxRightIndent;long dxOffset;word wAlignment;short cTabCount;long rgxTabs[32]" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagPARAFORMAT2 -; Description ...: Contains information about paragraph formatting attributes in a rich edit control. -; Fields ........: cbSize - Structure size, in bytes. -; dwMask - The members of the PARAFORMAT2 structure that contain valid information. The dwMask member can be a combination of the values from two sets of bit flags. One set indicates the structure members that are valid; another set indicates the valid attributes in the wEffects member. -; |Set the following values to indicate the valid structure members. -; | $PFM_ALIGNMENT - The wAlignment member is valid. -; | $PFM_BORDER - The wBorderSpace, wBorderWidth, and wBorders members are valid. -; | $PFM_LINESPACING - The dyLineSpacing and bLineSpacingRule members are valid. -; | $PFM_NUMBERING - The wNumbering member is valid. -; | $PFM_NUMBERINGSTART - The wNumberingStart member is valid. -; | $PFM_NUMBERINGSTYLE - The wNumberingStyle member is valid. -; | $PFM_NUMBERINGTAB - The wNumberingTab member is valid. -; | $PFM_OFFSET - The dxOffset member is valid. -; | $PFM_OFFSETINDENT - The dxStartIndent member is valid. If you are setting the indentation, dxStartIndent specifies the amount to indent relative to the current indentation. -; | $PFM_RIGHTINDENT - The dxRightIndent member is valid. -; | $PFM_SHADING - The wShadingWeight and wShadingStyle members are valid. -; | $PFM_SPACEAFTER - The dySpaceAfter member is valid. -; | $PFM_SPACEBEFORE - The dySpaceBefore member is valid. -; | $PFM_STARTINDENT - The dxStartIndent member is valid and specifies the indentation from the left margin. If both PFM_STARTINDENT and PFM_OFFSETINDENT are specified, PFM_STARTINDENT takes precedence. -; | $PFM_STYLE - The sStyle member is valid. -; | $PFM_TABSTOPS - The cTabCount and rgxTabs members are valid. -; |Set the following values to indicate the valid attributes of the wEffects member. -; | $PFM_DONOTHYPHEN - The PFE_DONOTHYPHEN value is valid. -; | $PFM_KEEP - The PFE_KEEP value is valid. -; | $PFM_KEEPNEXT - The PFE_KEEPNEXT value is valid. -; | $PFM_NOLINENUMBER - The PFE_NOLINENUMBER value is valid. -; | $PFM_NOWIDOWCONTROL - The PFE_NOWIDOWCONTROL value is valid. -; | $PFM_PAGEBREAKBEFORE - The PFE_PAGEBREAKBEFORE value is valid. -; | $PFM_RTLPARA - The PFE_RTLPARA value is valid. -; | $PFM_SIDEBYSIDE - The PFE_SIDEBYSIDE value is valid. -; | $PFM_TABLE - The PFE_TABLE value is valid. -; wNumbering - Options used for bulleted or numbered paragraphs. To use this member, set the PFM_NUMBERING flag in the dwMask member. -; |This member can be one of the following values. -; | zero - No paragraph numbering or bullets. -; | $PFN_BULLET - Insert a bullet at the beginning of each selected paragraph. -; | Rich Edit versions earlier than version 3.0 do not display paragraph numbers. -; | However, for compatibility with Microsoft Text Object Model (TOM) interfaces, -; | wNumbering can specify one of the following values. -; | (The rich edit control stores the value but does not use it to display the text.) -; | 2 - Uses Arabic numbers (1, 2, 3, ...). -; | 3 - Uses lowercase letters (a, b, c, ...). -; | 4 - Uses uppercase letters (A, B, C, ...). -; | 5 - Uses lowercase Roman numerals (i, ii, iii, ...). -; | 6 - Uses uppercase Roman numerals (I, II, III, ...). -; | 7 - Uses a sequence of characters beginning with the Unicode character specified by the wNumberingStart member. -; wEffects - A set of bit flags that specify paragraph effects. These flags are included only for compatibility with Text Object Model (TOM) interfaces; the rich edit control stores the value but does not use it to display the text. -; |This member can be a combination of the following values. -; | $PFE_DONOTHYPHEN - Disables automatic hyphenation. -; | $PFE_KEEP - No page break within the paragraph. -; | $PFE_KEEPNEXT - No page break between this paragraph and the next. -; | $PFE_NOLINENUMBER - Disables line numbering (in Rich Edit 3.0 only). -; | $PFE_NOWIDOWCONTROL - Disables widow and orphan control for the selected paragraph. -; | $PFE_PAGEBREAKBEFORE - Inserts a page break before the selected paragraph. -; | $PFE_RTLPARA - Displays text using right-to-left reading order (in Rich Edit 2.1 and later). -; | $PFE_SIDEBYSIDE - Displays paragraphs side by side. -; | $PFE_TABLE - The paragraph is a table row. -; dxStartIndent - Indentation of the paragraph's first line, in twips. -; |The indentation of subsequent lines depends on the dxOffset member. -; |To use the dxStartIndent member, set the $PFM_STARTINDENT or $PFM_OFFSETINDENT flag in the dwMask member. -; |If you are setting the indentation, use the $PFM_STARTINDENT flag to specify an absolute indentation from the left margin -; |or use the $PFM_OFFSETINDENT flag to specify an indentation relative to the paragraph's current indentation. -; |Use either flag to retrieve the current indentation. -; dxRightIndent - Indentation of the right side of the paragraph, relative to the right margin, in twips. -; |To use this member, set the $PFM_RIGHTINDENT flag in the dwMask member. -; dxOffset - Indentation of the second and subsequent lines, relative to the indentation of the first line, in twips. -; |The first line is indented if this member is negative or outdented if this member is positive. -; |To use this member, set the $PFM_OFFSET flag in the dwMask member. -; wAlignment - Paragraph alignment. To use this member, set the PFM_ALIGNMENT flag in the dwMask member. This member can be one of the following values. -; | $PFA_LEFT - Paragraphs are aligned with the left margin. -; | $PFA_RIGHT - Paragraphs are aligned with the right margin. -; | $PFA_CENTER - Paragraphs are centered. -; | $PFA_JUSTIFY - Rich Edit 2.0: Paragraphs are justified. -; | This value is included for compatibility with TOM interfaces; -; | rich edit controls earlier than Rich Edit 3.0 display the text aligned with the left margin. -; | $PFA_FULL_INTERWORD - Paragraphs are justified by expanding the blanks alone. -; cTabCount - Number of tab stops defined in the rgxTabs array. -; rgxTabs - Array of absolute tab stop positions. Each element in the array specifies information about a tab stop. The 24 low-order bits specify the absolute offset, in twips. To use this member, set the PFM_TABSTOPS flag in the dwMask member. -; |Rich Edit 2.0: For compatibility with TOM interfaces, you can use the eight high-order bits to store additional information about each tab stop. -; | Bits 24-27 can specify one of the following values to indicate the tab alignment. These bits do not affect the rich edit control display for versions earlier than Rich Edit 3.0. -; | 0 - Ordinary tab -; | 1 - Center tab -; | 2 - Right-aligned tab -; | 3 - Decimal tab -; | 4 - Word bar tab (vertical bar) -; | Bits 28-31 can specify one of the following values to indicate the type of tab leader. These bits do not affect the rich edit control display. -; | 0 - No leader -; | 1 - Dotted leader -; | 2 - Dashed leader -; | 3 - Underlined leader -; | 4 - Thick line leader -; | 5 - Double line leader -; dySpaceBefore - Size of the spacing above the paragraph, in twips. To use this member, set the PFM_SPACEBEFORE flag in the dwMask member. The value must be greater than or equal to zero. -; dySpaceAfter - Specifies the size of the spacing below the paragraph, in twips. To use this member, set the PFM_SPACEAFTER flag in the dwMask member. The value must be greater than or equal to zero. -; dyLineSpacing - Spacing between lines. For a description of how this value is interpreted, see the bLineSpacingRule member. To use this member, set the PFM_LINESPACING flag in the dwMask member. -; sStyle - Text style. To use this member, set the PFM_STYLE flag in the dwMask member. This member is included only for compatibility with TOM interfaces and Microsoft Word; the rich edit control stores the value but does not use it to display the text. -; bLineSpacingRule - Type of line spacing. To use this member, set the PFM_SPACEAFTER flag in the dwMask member. This member can be one of the following values. -; | 0 - Single spacing. The dyLineSpacing member is ignored. -; | 1 - One-and-a-half spacing. The dyLineSpacing member is ignored. -; | 2 - Double spacing. The dyLineSpacing member is ignored. -; | 3 - The dyLineSpacing member specifies the spacingfrom one line to the next, in twips. However, if dyLineSpacing specifies a value that is less than single spacing, the control displays single-spaced text. -; | 4 - The dyLineSpacing member specifies the spacing from one line to the next, in twips. The control uses the exact spacing specified, even if dyLineSpacing specifies a value that is less than single spacing. -; | 5 - The value of dyLineSpacing / 20 is the spacing, in lines, from one line to the next. Thus, setting dyLineSpacing to 20 produces single-spaced text, 40 is double spaced, 60 is triple spaced, and so on. -; bOutlineLevel - Reserved; must be zero. -; wShadingWeight - Percentage foreground color used in shading. The wShadingStyle member specifies the foreground and background shading colors. A value of 5 indicates a shading color consisting of 5 percent foreground color and 95 percent background color. To use these members, set the PFM_SHADING flag in the dwMask member. This member is included only for compatibility with Word; the rich edit control stores the value but does not use it to display the text. -; wShadingStyle - Style and colors used for background shading. Bits 0 to 3 contain the shading style, bits 4 to 7 contain the foreground color index, and bits 8 to 11 contain the background color index. To use this member, set the PFM_SHADING flag in the dwMask member. This member is included only for compatibility with Word; the rich edit control stores the value but does not use it to display the text. -; | The shading style can be one of the following values. -; | 0 - None -; | 1 - Dark horizontal -; | 2 - Dark vertical -; | 3 - Dark down diagonal -; | 4 - Dark up diagonal -; | 5 - Dark grid -; | 6 - Dark trellis -; | 7 - Light horizontal -; | 8 - Light vertical -; | 9 - Light down diagonal -; | 10 - Light up diagonal -; | 11 - Light grid -; | 12 - Light trellis -; | The foreground and background color indexes can be one of the following values. -; | 0 - Black -; | 1 - Blue -; | 2 - Cyan -; | 3 - Green -; | 4 - Magenta -; | 5 - Red -; | 6 - Yellow -; | 7 - White -; | 8 - Dark blue -; | 9 - Dark cyan -; | 10 - Dark green -; | 11 - Dark magenta -; | 12 - Dark red -; | 13 - Dark yellow -; | 14 - Dark gray -; | 15 - Light gray -; wNumberingStart - Starting number or Unicode value used for numbered paragraphs. Use this member in conjunction with the wNumbering member. This member is included only for compatibility with TOM interfaces; the rich edit control stores the value but does not use it to display the text or bullets. To use this member, set the PFM_NUMBERINGSTART flag in the dwMask member. -; wNumberingStyle - Numbering style used with numbered paragraphs. Use this member in conjunction with the wNumbering member. This member is included only for compatibility with TOM interfaces; the rich edit control stores the value but rich edit versions earlier than 3.0 do not use it to display the text or bullets. To use this member, set the PFM_NUMBERINGSTYLE flag in the dwMask member. This member can be one of the following values. -; | 0 - Follows the number with a right parenthesis. -; | 0x100 - Encloses the number in parentheses. -; | 0x200 - Follows the number with a period. -; | 0x300 - Displays only the number. -; | 0x400 - Continues a numbered list without applying the next number or bullet. -; | 0x8000 - Starts a new number with wNumberingStart. -; wNumberingTab - Minimum space between a paragraph number and the paragraph text, in twips. Use this member in conjunction with the wNumbering member. The wNumberingTab member is included for compatibility with TOM interfaces; previous to Rich Edit 3.0, the rich edit control stores the value but does not use it to display text. To use this member, set the PFM_NUMBERINGTAB flag in the dwMask member. -; wBorderSpace - The space between the border and the paragraph text, in twips. The wBorderSpace member is included for compatibility with Word; the rich edit control stores the values but does not use them to display text. To use this member, set the PFM_BORDER flag in the dwMask member. -; wBorderWidth - Border width, in twips. To use this member, set the PFM_BORDER flag in the dwMask member. -; wBorders - Border location, style, and color. Bits 0 to 7 specify the border locations, bits 8 to 11 specify the border style, and bits 12 to 15 specify the border color index. To use this member, set the PFM_BORDER flag in the dwMask member. -; | Specify the border locations using a combination of the following values in bits 0 to 7. -; | 1 - Left border. -; | 2 - Right border. -; | 4 - Top border. -; | 8 - Bottom border. -; | 16 - Inside borders. -; | 32 - Outside borders. -; | 64 - Autocolor. If this bit is set, the color index in bits 12 to 15 is not used. -; | Specify the border style using one of the following values for bits 8 to 11. -; | 0 - None -; | 1 - 3/4 point -; | 2 - 11/2 point -; | 3 - 21/4 point -; | 4 - 3 point -; | 5 - 41/2 point -; | 6 - 6 point -; | 7 - 3/4 point double -; | 8 - 11/2 point double -; | 9 - 21/4 point double -; | 10 - 3/4 point gray -; | 11 - 3/4 point gray dashed -; | Specify the border color using one of the following values for bits 12 to 15. This value is ignored if the autocolor bit (bit 6) is set. -; | 0 - Black -; | 1 - Blue -; | 2 - Cyan -; | 3 - Green -; | 4 - Magenta -; | 5 - Red -; | 6 - Yellow -; | 7 - White -; | 8 - Dark blue -; | 9 - Dark cyan -; | 10 - Dark green -; | 11 - Dark magenta -; | 12 - Dark red -; | 13 - Dark yellow -; | 14 - Dark gray -; | 15 - Light gray -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagPARAFORMAT2 = $tagPARAFORMAT _ - & ";long dySpaceBefore;long dySpaceAfter;long dyLineSpacing;short sStyle;byte bLineSpacingRule;" _ - & "byte bOutlineLevel;word wShadingWeight;word wShadingStyle;word wNumberingStart;word wNumberingStyle;" _ - & "word wNumberingTab;word wBorderSpace;word wBorderWidth;word wBorders" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagSETTEXTEX -; Description ...: Specifies which code page (if any) to use in setting text, whether the text replaces all the text in the control or just the selection, and whether the undo state is to be preserved. -; Fields ........: flags - Option flags. It can be any reasonable combination of the following flags. -; | $ST_DEFAULT - Deletes the undo stack, discards rich-text formatting, replaces all text. -; | $ST_KEEPUNDO - Keeps the undo stack. -; | $ST_SELECTION - Replaces selection and keeps rich-text formatting. -; codepage - Code page used in the translation. It is $CP_ACP for ANSI Code Page and 1200 for Unicode. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagSETTEXTEX = "dword flags;uint codepage" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTEXTRANGE -; Description ...: Specifies a range of characters in a rich edit control -; Fields ........: cpMin - Character position index immediately preceding the first character in the range. -; cpMax - Character position immediately following the last character in the range. -; lpstrText - Pointer to buffer that receives the text. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTEXTRANGE = $tagCHARRANGE & ";ptr lpstrText" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagMSGFILTER -; Description ...: Contains information about a keyboard or mouse event. -; Fields ........: hWndFrom - Window handle to the control sending a message -; IDFrom - Identifier of the control sending a message -; Code - Notification code -; msg - Keyboard or mouse message identifier. -; wParam - The wParam parameter of the message. -; lParam - The lParam parameter of the message. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagMSGFILTER = "align 4;" & $tagNMHDR & ";uint msg;wparam wParam;lparam lParam" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagENLINK -; Description ...: Contains information about an EN_LINK notification message from a rich edit control. -; Fields ........: hWndFrom - Window handle to the control sending a message -; IDFrom - Identifier of the control sending a message -; Code - Notification code -; msg - Keyboard or mouse message identifier. -; wParam - The wParam parameter of the message. -; lParam - The lParam parameter of the message. -; cpMin - Character position index immediately preceding the first character in the range. -; cpMax - Character position immediately following the last character in the range. -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagENLINK = "align 4;" & $tagNMHDR & ";uint msg;wparam wParam;lparam lParam;" & $tagCHARRANGE - -; #FUNCTION# ==================================================================================================================== -; Authors........: Gary Frost (gafrost (custompcs@charter.net)) -; Modified ......: Prog@ndy, Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_AppendText($hWnd, $sText) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $iLength = _GUICtrlRichEdit_GetTextLength($hWnd) - _GUICtrlRichEdit_SetSel($hWnd, $iLength, $iLength) ; go to end of text - Local $tSetText = DllStructCreate($tagSETTEXTEX) - DllStructSetData($tSetText, 1, $ST_SELECTION) - Local $iRet - If StringLeft($sText, 5) <> "{\rtf" And StringLeft($sText, 5) <> "{urtf" Then - DllStructSetData($tSetText, 2, $CP_UNICODE) - $iRet = _SendMessage($hWnd, $EM_SETTEXTEX, $tSetText, $sText, 0, "struct*", "wstr") - Else - DllStructSetData($tSetText, 2, $CP_ACP) - $iRet = _SendMessage($hWnd, $EM_SETTEXTEX, $tSetText, $sText, 0, "struct*", "STR") - EndIf - If Not $iRet Then Return SetError(700, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_AppendText - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_AutoDetectURL($hWnd, $bState) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not IsBool($bState) Then Return SetError(102, 0, False) - - If _SendMessage($hWnd, $EM_AUTOURLDETECT, $bState) Then Return SetError(700, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_AutoDetectURL - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_CanPaste($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $iRet = _SendMessage($hWnd, $EM_CANPASTE, 0, 0) - Return $iRet <> 0 -EndFunc ;==>_GUICtrlRichEdit_CanPaste - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_CanPasteSpecial($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Return _SendMessage($hWnd, $EM_CANPASTE, $__g_sGRE_CF_RTF, 0) <> 0 _ - And _SendMessage($hWnd, $EM_CANPASTE, $__g_sGRE_CF_RETEXTOBJ, 0) <> 0 -EndFunc ;==>_GUICtrlRichEdit_CanPasteSpecial - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_CanRedo($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Return _SendMessage($hWnd, $EM_CANREDO, 0, 0) <> 0 -EndFunc ;==>_GUICtrlRichEdit_CanRedo - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_CanUndo($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Return _SendMessage($hWnd, $EM_CANUNDO, 0, 0) <> 0 -EndFunc ;==>_GUICtrlRichEdit_CanUndo - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_ChangeFontSize($hWnd, $iIncrement) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iIncrement) Then SetError(102, 0, False) - - If Not _GUICtrlRichEdit_IsTextSelected($hWnd) Then Return SetError(-1, 0, False) - Return _SendMessage($hWnd, $EM_SETFONTSIZE, $iIncrement, 0) <> 0 -EndFunc ;==>_GUICtrlRichEdit_ChangeFontSize - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_Copy($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - _SendMessage($hWnd, $__RICHEDITCONSTANT_WM_COPY, 0, 0) - Return True -EndFunc ;==>_GUICtrlRichEdit_Copy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_Create($hWnd, $sText, $iLeft, $iTop, $iWidth = 150, $iHeight = 150, $iStyle = -1, $iExStyle = -1) - If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0) ; Invalid Window handle for _GUICtrlRichEdit_Create 1st parameter - If Not IsString($sText) Then Return SetError(2, 0, 0) ; 2nd parameter not a string for _GUICtrlRichEdit_Create - - If Not __GCR_IsNumeric($iWidth, ">0,-1") Then Return SetError(105, 0, 0) - If Not __GCR_IsNumeric($iHeight, ">0,-1") Then Return SetError(106, 0, 0) - If Not __GCR_IsNumeric($iStyle, ">=0,-1") Then Return SetError(107, 0, 0) - If Not __GCR_IsNumeric($iExStyle, ">=0,-1") Then Return SetError(108, 0, 0) - - If $iWidth = -1 Then $iWidth = 150 - If $iHeight = -1 Then $iHeight = 150 - If $iStyle = -1 Then $iStyle = BitOR($ES_WANTRETURN, $ES_MULTILINE) - - If BitAND($iStyle, $ES_MULTILINE) <> 0 Then $iStyle = BitOR($iStyle, $ES_WANTRETURN) - If $iExStyle = -1 Then $iExStyle = 0x200 ; $DS_FOREGROUND - - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE) - If BitAND($iStyle, $ES_READONLY) = 0 Then $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_TABSTOP) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - __GCR_Init() - - Local $hRichEdit = _WinAPI_CreateWindowEx($iExStyle, $__g_sRTFClassName, "", $iStyle, $iLeft, $iTop, $iWidth, _ - $iHeight, $hWnd, $nCtrlID) - If $hRichEdit = 0 Then Return SetError(700, 0, False) - - __GCR_SetOLECallback($hRichEdit) - _SendMessage($hRichEdit, $__RICHEDITCONSTANT_WM_SETFONT, _WinAPI_GetStockObject($DEFAULT_GUI_FONT), True) - _GUICtrlRichEdit_AppendText($hRichEdit, $sText) - Return $hRichEdit -EndFunc ;==>_GUICtrlRichEdit_Create - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_Cut($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - _SendMessage($hWnd, $__RICHEDITCONSTANT_WM_CUT, 0, 0) - Return True -EndFunc ;==>_GUICtrlRichEdit_Cut - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_Deselect($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - _SendMessage($hWnd, $EM_SETSEL, -1, 0) - Return True -EndFunc ;==>_GUICtrlRichEdit_Deselect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hRELastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlRichEdit_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_EmptyUndoBuffer($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - _SendMessage($hWnd, $EM_EMPTYUNDOBUFFER, 0, 0) - Return True -EndFunc ;==>_GUICtrlRichEdit_EmptyUndoBuffer - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_FindText($hWnd, $sText, $bForward = True, $bMatchCase = False, $bWholeWord = False, $iBehavior = 0) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, -1) - If $sText = "" Then Return SetError(102, 0, -1) - If Not IsBool($bForward) Then Return SetError(103, 0, -1) - If Not IsBool($bMatchCase) Then Return SetError(104, 0, -1) - If Not IsBool($bWholeWord) Then Return SetError(105, 0, -1) - If Not __GCR_IsNumeric($iBehavior) Then Return SetError(1061, 0, -1) - If BitAND($iBehavior, BitNOT(BitOR($FR_MATCHALEFHAMZA, $FR_MATCHDIAC, $FR_MATCHKASHIDA))) <> 0 Then Return SetError(1062, 0, -1) - - Local $iLen = StringLen($sText) + 3 - Local $tText = DllStructCreate("wchar[" & $iLen & "]") - DllStructSetData($tText, 1, $sText) - Local $tFindtext = DllStructCreate($tagFINDTEXT) - Local $aiAnchorActive - Local $bSel = _GUICtrlRichEdit_IsTextSelected($hWnd) - If $bSel Then - $aiAnchorActive = _GUICtrlRichEdit_GetSelAA($hWnd) - Else - $aiAnchorActive = _GUICtrlRichEdit_GetSel($hWnd) - EndIf - DllStructSetData($tFindtext, 1, $aiAnchorActive[0]) - DllStructSetData($tFindtext, 2, ($bForward ? -1 : 0)) ; to end else to start - DllStructSetData($tFindtext, 3, DllStructGetPtr($tText)) - - Local Const $FR_DOWN = 0x00000001 - Local Const $FR_WHOLEWORD = 0x00000002 - Local Const $FR_MATCHCASE = 0x00000004 - Local $wParam = 0 - If $bForward Then $wParam = $FR_DOWN - If $bWholeWord Then $wParam = BitOR($wParam, $FR_WHOLEWORD) - If $bMatchCase Then $wParam = BitOR($wParam, $FR_MATCHCASE) - $wParam = BitOR($wParam, $iBehavior) - Return _SendMessage($hWnd, $EM_FINDTEXTW, $wParam, $tFindtext, "wparam", "ptr", "struct*") -EndFunc ;==>_GUICtrlRichEdit_FindText - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_FindTextInRange($hWnd, $sText, $iStart = 0, $iEnd = -1, $bMatchCase = False, $bWholeWord = False, $iBehavior = 0) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If $sText = "" Then Return SetError(102, 0, 0) - If Not __GCR_IsNumeric($iStart, ">=0,-1") Then Return SetError(103, 0, 0) - If Not __GCR_IsNumeric($iEnd, ">=0,-1") Then Return SetError(104, 0, 0) - If Not IsBool($bMatchCase) Then Return SetError(105, 0, 0) - If Not IsBool($bWholeWord) Then Return SetError(106, 0, 0) - If Not __GCR_IsNumeric($iBehavior) Then Return SetError(1071, 0, 0) - If BitAND($iBehavior, BitNOT(BitOR($FR_MATCHALEFHAMZA, $FR_MATCHDIAC, $FR_MATCHKASHIDA))) <> 0 Then Return SetError(1072, 0, 0) - - Local $iLen = StringLen($sText) + 3 - Local $tText = DllStructCreate("wchar Text[" & $iLen & "]") - DllStructSetData($tText, "Text", $sText) - Local $tFindtext = DllStructCreate($tagFINDTEXTEX) - DllStructSetData($tFindtext, "cpMin", $iStart) - DllStructSetData($tFindtext, "cpMax", $iEnd) - DllStructSetData($tFindtext, "lpstrText", DllStructGetPtr($tText)) - - Local Const $FR_DOWN = 0x00000001 - Local Const $FR_WHOLEWORD = 0x00000002 - Local Const $FR_MATCHCASE = 0x00000004 - Local $wParam = 0 - If $iEnd >= $iStart Or $iEnd = -1 Then - $wParam = $FR_DOWN - EndIf - If $bWholeWord Then $wParam = BitOR($wParam, $FR_WHOLEWORD) - If $bMatchCase Then $wParam = BitOR($wParam, $FR_MATCHCASE) - $wParam = BitOR($wParam, $iBehavior) - _SendMessage($hWnd, $EM_FINDTEXTEXW, $wParam, $tFindtext, "iWparam", "ptr", "struct*") - Local $aRet[2] - $aRet[0] = DllStructGetData($tFindtext, "cpMinRang") - $aRet[1] = DllStructGetData($tFindtext, "cpMaxRange") - Return $aRet -EndFunc ;==>_GUICtrlRichEdit_FindTextInRange - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetCharAttributes($hWnd) - Local Const $aV[17][3] = [ _ - ["bo", $CFM_BOLD, $CFE_BOLD], ["di", $CFM_DISABLED, $CFE_DISABLED], _ - ["em", $CFM_EMBOSS, $CFE_EMBOSS], ["hi", $CFM_HIDDEN, $CFE_HIDDEN], _ - ["im", $CFM_IMPRINT, $CFE_IMPRINT], ["it", $CFM_ITALIC, $CFE_ITALIC], _ - ["li", $CFM_LINK, $CFE_LINK], ["ou", $CFM_OUTLINE, $CFE_OUTLINE], _ - ["pr", $CFM_PROTECTED, $CFE_PROTECTED], ["re", $CFM_REVISED, $CFE_REVISED], _ - ["sh", $CFM_SHADOW, $CFE_SHADOW], ["sm", $CFM_SMALLCAPS, $CFE_SMALLCAPS], _ - ["st", $CFM_STRIKEOUT, $CFE_STRIKEOUT], ["sb", $CFM_SUBSCRIPT, $CFE_SUBSCRIPT], _ - ["sp", $CFM_SUPERSCRIPT, $CFE_SUPERSCRIPT], ["un", $CFM_UNDERLINE, $CFE_UNDERLINE], _ - ["al", $CFM_ALLCAPS, $CFE_ALLCAPS]] - - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $bSel = _GUICtrlRichEdit_IsTextSelected($hWnd) - If Not $bSel Then Return SetError(-1, 0, "") - Local $tCharFormat = DllStructCreate($tagCHARFORMAT2) - DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat)) - ; $wParam = ($bDefault ? $SCF_DEFAULT : $SCF_SELECTION) ; SCF_DEFAULT doesn't work - Local $iMask = _SendMessage($hWnd, $EM_GETCHARFORMAT, $SCF_SELECTION, $tCharFormat, 0, "wparam", "struct*") - - Local $iEffects = DllStructGetData($tCharFormat, 3) - - Local $sStatesAndAtts = "", $sState, $bM, $bE - For $i = 0 To UBound($aV, $UBOUND_ROWS) - 1 - $bM = BitAND($iMask, $aV[$i][1]) = $aV[$i][1] - $bE = BitAND($iEffects, $aV[$i][2]) = $aV[$i][2] - If $bSel Then - If $bM Then - If $bE Then - $sState = "+" - Else - $sState = "-" - EndIf - Else - $sState = "~" - EndIf - Else - If $bM Then - $sState = "+" - Else - $sState = "-" - EndIf - EndIf - If $sState <> "-" Then $sStatesAndAtts &= $aV[$i][0] & $sState - Next - Return $sStatesAndAtts -EndFunc ;==>_GUICtrlRichEdit_GetCharAttributes - -; #FUNCTION# ==================================================================================================================== -; Authors........: grham -; Modified ......: Chris Haslam (c.haslam), jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetCharBkColor($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $tCharFormat = DllStructCreate($tagCHARFORMAT2) - DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat)) - __GCR_SendGetCharFormatMessage($hWnd, $tCharFormat) - Local $iEffects = DllStructGetData($tCharFormat, 3) - Local $iBkColor - If BitAND($iEffects, $CFE_AUTOBACKCOLOR) = $CFE_AUTOBACKCOLOR Then - $iBkColor = _WinAPI_GetSysColor($__RICHEDITCONSTANT_COLOR_WINDOWTEXT) - Else - $iBkColor = DllStructGetData($tCharFormat, 12) - EndIf - Return SetExtended(BitAND($iEffects, $CFM_BACKCOLOR) <> 0, $iBkColor) -EndFunc ;==>_GUICtrlRichEdit_GetCharBkColor - -; #FUNCTION# ==================================================================================================================== -; Authors........: grham -; Modified ......: Chris Haslam (c.haslam), jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetCharColor($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $tCharFormat = DllStructCreate($tagCHARFORMAT) - DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat)) - __GCR_SendGetCharFormatMessage($hWnd, $tCharFormat) - Local $iEffects = DllStructGetData($tCharFormat, 3) - Local $iColor - If BitAND($iEffects, $CFE_AUTOCOLOR) = $CFE_AUTOCOLOR Then - $iColor = _WinAPI_GetSysColor($__RICHEDITCONSTANT_COLOR_WINDOWTEXT) - Else - $iColor = DllStructGetData($tCharFormat, 6) - EndIf - Return SetExtended(BitAND($iEffects, $CFM_COLOR) <> 0, $iColor) -EndFunc ;==>_GUICtrlRichEdit_GetCharColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Prog@ndy, Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetCharPosFromXY($hWnd, $iX, $iY) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If Not __GCR_IsNumeric($iX) Then Return SetError(102, 0, 0) - If Not __GCR_IsNumeric($iY) Then Return SetError(103, 0, 0) - - Local $aiRect = _GUICtrlRichEdit_GetRECT($hWnd) - If $iX < $aiRect[0] Or $iX > $aiRect[2] Or $iY < $aiRect[1] Or $iY > $aiRect[3] Then Return -1 - Local $tPointL = DllStructCreate("LONG x; LONG y;") - DllStructSetData($tPointL, 1, $iX) - DllStructSetData($tPointL, 2, $iY) - Local $iRet = _SendMessage($hWnd, $EM_CHARFROMPOS, 0, $tPointL, 0, "wparam", "struct*") - If Not $iRet Then Return SetError(-1, 0, 0) - Return $iRet -EndFunc ;==>_GUICtrlRichEdit_GetCharPosFromXY - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetCharPosOfNextWord($hWnd, $iCpStart) - ; WB_RIGHT, WB_LEFT, WB_RIGHTBREAK, WB_LEFTBREAK and WB_ISDELIMITER don't work properly or at all - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If Not __GCR_IsNumeric($iCpStart) Then Return SetError(102, 0, 0) - - Return _SendMessage($hWnd, $EM_FINDWORDBREAK, $WB_MOVEWORDRIGHT, $iCpStart) -EndFunc ;==>_GUICtrlRichEdit_GetCharPosOfNextWord - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetCharPosOfPreviousWord($hWnd, $iCpStart) - ; WB_RIGHT, WB_LEFT, WB_RIGHTBREAK, WB_LEFTBREAK and WB_ISDELIMITER don't work properly or at all - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If Not __GCR_IsNumeric($iCpStart) Then Return SetError(102, 0, 0) - - Return _SendMessage($hWnd, $EM_FINDWORDBREAK, $WB_MOVEWORDLEFT, $iCpStart) -EndFunc ;==>_GUICtrlRichEdit_GetCharPosOfPreviousWord - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetCharWordBreakInfo($hWnd, $iCp) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - If Not __GCR_IsNumeric($iCp) Then Return SetError(102, 0, "") - - Local $iRet = _SendMessage($hWnd, $EM_FINDWORDBREAK, $WB_CLASSIFY, $iCp) - Local $iClass = BitAND($iRet, 0xF0) - Local $sRet = "" - If BitAND($iClass, $WBF_BREAKAFTER) Then $sRet &= "c" - If BitAND($iClass, $WBF_BREAKLINE) Then $sRet &= "d" - If BitAND($iClass, $WBF_ISWHITE) Then $sRet &= "w" - $sRet &= ";" & BitAND($iRet, 0xF) - Return $sRet -EndFunc ;==>_GUICtrlRichEdit_GetCharWordBreakInfo - -; #FUNCTION# ==================================================================================================================== -; Authors........: jpm -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetBkColor($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $iBkColor = _SendMessage($hWnd, $EM_SETBKGNDCOLOR, False, 0) - _SendMessage($hWnd, $EM_SETBKGNDCOLOR, False, $iBkColor) - Return $iBkColor -EndFunc ;==>_GUICtrlRichEdit_GetBkColor - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam), jpm, Prog@ndy -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetText($hWnd, $bCrToCrLf = False, $iCodePage = 0, $sReplChar = "") - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - If Not IsBool($bCrToCrLf) Then Return SetError(102, 0, "") - If Not __GCR_IsNumeric($iCodePage) Then Return SetError(103, 0, "") - - Local $iLen = _GUICtrlRichEdit_GetTextLength($hWnd, False, True) + 1 - Local $sUni = '' - If $iCodePage = $CP_UNICODE Or Not $iCodePage Then $sUni = "w" - Local $tText = DllStructCreate($sUni & "char[" & $iLen & "]") - - Local $tGetTextEx = DllStructCreate($tagGETTEXTEX) - DllStructSetData($tGetTextEx, "cb", DllStructGetSize($tText)) - - Local $iFlags = 0 - If $bCrToCrLf Then $iFlags = $GT_USECRLF - DllStructSetData($tGetTextEx, "flags", $iFlags) - - If $iCodePage = 0 Then $iCodePage = $CP_UNICODE - DllStructSetData($tGetTextEx, "codepage", $iCodePage) - - Local $pUsedDefChar = 0, $pDefaultChar = 0 - If $sReplChar <> "" Then - Local $tDefaultChar = DllStructCreate("char") - $pDefaultChar = DllStructGetPtr($tDefaultChar, 1) - DllStructSetData($tDefaultChar, 1, $sReplChar) - Local $tUsedDefChar = DllStructCreate("bool") - $pUsedDefChar = DllStructGetPtr($tUsedDefChar, 1) - EndIf - DllStructSetData($tGetTextEx, "lpDefaultChar", $pDefaultChar) - DllStructSetData($tGetTextEx, "lpbUsedDefChar", $pUsedDefChar) - - Local $iRet = _SendMessage($hWnd, $EM_GETTEXTEX, $tGetTextEx, $tText, 0, "struct*", "struct*") - If $iRet = 0 Then Return SetError(700, 0, "") - If $sReplChar <> "" Then SetExtended(DllStructGetData($tUsedDefChar, 1) <> 0) - Return DllStructGetData($tText, 1) -EndFunc ;==>_GUICtrlRichEdit_GetText - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetTextLength($hWnd, $bExact = True, $bChars = False) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If Not IsBool($bExact) Then Return SetError(102, 0, 0) - If Not IsBool($bChars) Then Return SetError(103, 0, 0) - - Local $tGetTextLen = DllStructCreate($tagGETTEXTLENGTHEX) - Local $iFlags = BitOR($GTL_USECRLF, ($bExact ? $GTL_PRECISE : $GTL_CLOSE)) - $iFlags = BitOR($iFlags, ($bChars ? $GTL_DEFAULT : $GTL_NUMBYTES)) - DllStructSetData($tGetTextLen, 1, $iFlags) - DllStructSetData($tGetTextLen, 2, ($bChars ? $CP_ACP : $CP_UNICODE)) - Local $iRet = _SendMessage($hWnd, $EM_GETTEXTLENGTHEX, $tGetTextLen, 0, 0, "struct*") - Return $iRet -EndFunc ;==>_GUICtrlRichEdit_GetTextLength - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetZoom($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $wParam = 0, $lParam = 0 - Local $aI = _SendMessage($hWnd, $EM_GETZOOM, $wParam, $lParam, -1, "int*", "int*") - If Not $aI[0] Then Return SetError(700, 0, 0) - Local $iRet - If $aI[3] = 0 And $aI[4] = 0 Then ; if a control that has not been zoomed - $iRet = 100 - Else - $iRet = $aI[3] / $aI[4] * 100 - EndIf - Return StringFormat("%.2f", $iRet) -EndFunc ;==>_GUICtrlRichEdit_GetZoom - -; #FUNCTION# ==================================================================================================================== -; Authors........: Gary Frost (custompcs at charter dot net) -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetFirstCharPosOnLine($hWnd, $iLine = -1) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If Not __GCR_IsNumeric($iLine, ">0,-1") Then Return SetError(1021, 0, 0) - - If $iLine <> -1 Then $iLine -= 1 - Local $iRet = _SendMessage($hWnd, $EM_LINEINDEX, $iLine) - If $iRet = -1 Then Return SetError(1022, 0, 0) - Return $iRet -EndFunc ;==>_GUICtrlRichEdit_GetFirstCharPosOnLine - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetFont($hWnd) - ; MSDN does not give a mask (CFM) for bPitchAndFamily so it appears that there is no way of knowing when it is valid => omitted here - Local $aRet[3] = [0, "", 0] - ;, $iLcid = 1033 - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $tCharFormat = DllStructCreate($tagCHARFORMAT) - DllStructSetData($tCharFormat, "cbSize", DllStructGetSize($tCharFormat)) - - __GCR_SendGetCharFormatMessage($hWnd, $tCharFormat) - - If BitAND(DllStructGetData($tCharFormat, "dwMask"), $CFM_FACE) = $CFM_FACE Then _ - $aRet[1] = DllStructGetData($tCharFormat, "szFaceName") - - If BitAND(DllStructGetData($tCharFormat, "dwMask"), $CFM_SIZE) = $CFM_SIZE Then _ - $aRet[0] = DllStructGetData($tCharFormat, "yHeight") / 20 - - If BitAND(DllStructGetData($tCharFormat, "dwMask"), $CFM_CHARSET) = $CFM_CHARSET Then _ - $aRet[2] = DllStructGetData($tCharFormat, "bCharSet") - - ; available if using $tagCHARFORMAT2 - ;If BitAND(DllStructGetData($tCharFormat, "dwMask"), $CFM_LCID) = $CFM_LCID Then _ - ;$iLcid = DllStructGetData($tCharFormat, 13) - - Return $aRet -EndFunc ;==>_GUICtrlRichEdit_GetFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Chris Haslam (c.haslam), jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetRECT($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $tRECT = DllStructCreate($tagRECT) - _SendMessage($hWnd, $EM_GETRECT, 0, $tRECT, 0, "wparam", "struct*") - Local $aiRect[4] - $aiRect[0] = DllStructGetData($tRECT, "Left") - $aiRect[1] = DllStructGetData($tRECT, "Top") - $aiRect[2] = DllStructGetData($tRECT, "Right") - $aiRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aiRect -EndFunc ;==>_GUICtrlRichEdit_GetRECT - -; #FUNCTION# ==================================================================================================================== -; Authors........: Gary Frost (custompcs at charter dot net) -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetLineCount($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Return _SendMessage($hWnd, $EM_GETLINECOUNT) -EndFunc ;==>_GUICtrlRichEdit_GetLineCount - -; #FUNCTION# ==================================================================================================================== -; Authors........: Gary Frost (custompcs at charter dot net) -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetLineLength($hWnd, $iLine) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If Not __GCR_IsNumeric($iLine, ">0,-1") Then Return SetError(102, 0, 0) - - Local $iCharPos = _GUICtrlRichEdit_GetFirstCharPosOnLine($hWnd, $iLine) - Local $iRet = _SendMessage($hWnd, $EM_LINELENGTH, $iCharPos) - Return $iRet -EndFunc ;==>_GUICtrlRichEdit_GetLineLength - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetLineNumberFromCharPos($hWnd, $iCharPos) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If Not __GCR_IsNumeric($iCharPos, ">=0") Then Return SetError(102, 0, 0) - - Return _SendMessage($hWnd, $EM_EXLINEFROMCHAR, 0, $iCharPos) + 1 -EndFunc ;==>_GUICtrlRichEdit_GetLineNumberFromCharPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetNextRedo($hWnd, $bName = True) - Local Const $aS[6] = ["Unknown", "Typing", "Delete", "Drag and drop", "Cut", "Paste"] - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - If Not IsBool($bName) Then Return SetError(102, 0, "") - - Local $iUid = _SendMessage($hWnd, $EM_GETREDONAME, 0, 0) - If $bName Then - Return $aS[$iUid] - Else - Return $iUid - EndIf -EndFunc ;==>_GUICtrlRichEdit_GetNextRedo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetNextUndo($hWnd, $bName = True) - Local Const $aS[6] = ["Unknown", "Typing", "Delete", "Drag and drop", "Cut", "Paste"] - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - If Not IsBool($bName) Then Return SetError(102, 0, "") - - Local $iUid = _SendMessage($hWnd, $EM_GETUNDONAME, 0, 0) - If $bName Then - Return $aS[$iUid] - Else - Return $iUid - EndIf -EndFunc ;==>_GUICtrlRichEdit_GetNextUndo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetNumberOfFirstVisibleLine($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - Return _SendMessage($hWnd, $EM_GETFIRSTVISIBLELINE) + 1 -EndFunc ;==>_GUICtrlRichEdit_GetNumberOfFirstVisibleLine - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetParaAlignment($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - - __GCR_SendGetParaFormatMessage($hWnd, $tParaFormat) - If @error Then Return SetError(@error, 0, "") - Local $iMask = DllStructGetData($tParaFormat, 2) - Local $iAlignment = DllStructGetData($tParaFormat, 8) - Local $sRet = "" - Switch ($iAlignment) - Case $PFA_LEFT - $sRet = "l" - Case $PFA_CENTER - $sRet = "c" - Case $PFA_RIGHT - $sRet = "r" - Case $PFA_JUSTIFY - $sRet = "j" - Case $PFA_FULL_INTERWORD - $sRet = "w" - EndSwitch - $sRet &= ";" & __GCR_GetParaScopeChar($hWnd, $iMask, $PFM_ALIGNMENT) - Return $sRet -EndFunc ;==>_GUICtrlRichEdit_GetParaAlignment - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetParaAttributes($hWnd) - ; dwMask is always BitOR of all PFMs - Local Enum $eAbbrev = 0, $eEffect, $eInverted - ; MS seems to mean LINENUMBER and WIDOWCONTROL, not NOLINENUMBER and NOWIDOWCONTROL - Local Const $aV[9][3] = [ _ ; abbrev, mask, effect, inverted - ["fpg", $PFE_PAGEBREAKBEFORE, False], _ - ["hyp", $PFE_DONOTHYPHEN, True], _ - ["kpt", $PFE_KEEP, False], _ - ["kpn", $PFE_KEEPNEXT, False], _ - ["pwo", $PFE_NOWIDOWCONTROL, False], _ - ["r2l", $PFE_RTLPARA, False], _ - ["row", $PFE_TABLE, False], _ - ["sbs", $PFE_SIDEBYSIDE, False], _ - ["sln", $PFE_NOLINENUMBER, False]] - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - __GCR_SendGetParaFormatMessage($hWnd, $tParaFormat) - If @error Then Return SetError(@error, 0, "") - - Local $iEffects = DllStructGetData($tParaFormat, "wEffects") - - Local $sStatesAndAtts = "", $sState - For $i = 0 To UBound($aV, $UBOUND_ROWS) - 1 - $sStatesAndAtts &= $aV[$i][$eAbbrev] - If BitAND($iEffects, $aV[$i][$eEffect]) = $aV[$i][$eEffect] Then - $sState = ($aV[$i][$eInverted] ? "-" : "+") - Else - $sState = ($aV[$i][$eInverted] ? "+" : "-") - EndIf - $sStatesAndAtts &= $sState & ";" - Next - $sStatesAndAtts &= (_GUICtrlRichEdit_IsTextSelected($hWnd) ? "f" : "c") - Return $sStatesAndAtts -EndFunc ;==>_GUICtrlRichEdit_GetParaAttributes - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetParaBorder($hWnd) - Local Const $avLocs[6][2] = [["l", 1], ["r", 2], ["t", 4], ["b", 8], ["i", 16], ["o", 32]] - Local Const $avLS[12] = ["none", .75, 1.5, 2.25, 3, 4.5, 6, ".75d", "1.5d", "2.25d", ".75g", ".75gd"] - Local Const $sClrs = "blk;blu;cyn;grn;mag;red;yel;whi;dbl;dgn;dmg;drd;dyl;dgy;lgy;" - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - __GCR_SendGetParaFormatMessage($hWnd, $tParaFormat) - If @error Then Return SetError(@error, 0, "") - - Local $iMask = DllStructGetData($tParaFormat, 2) - Local $iSpace = DllStructGetData($tParaFormat, 22) - ; $iWidth = DllStructGetData($tParaFormat, 23) ; wBorderWidth does not round-trip in Rich Edit 3.0 - Local $iBorders = DllStructGetData($tParaFormat, 24) - - Local $sRet = "" - For $i = 0 To UBound($avLocs, $UBOUND_ROWS) - 1 - If BitAND($iBorders, $avLocs[$i][1]) Then $sRet &= $avLocs[$i][0] - Next - $sRet &= ";" - $sRet &= $avLS[BitShift(BitAND($iBorders, 0xF00), 8)] - $sRet &= ";" - If BitAND($iBorders, 64) Then - $sRet &= "aut" - Else - $sRet &= StringMid($sClrs, BitShift(BitAND($iBorders, 0xF000), 12) * 4 + 1, 3) - EndIf - $sRet &= ";" - $sRet &= __GCR_ConvertTwipsToSpaceUnit($iSpace) & ";" ; & __GCR_ConvertTwipsToSpaceUnit($iWidth) & ";" - $sRet &= __GCR_GetParaScopeChar($hWnd, $iMask, $PFM_BORDER) - Return $sRet -EndFunc ;==>_GUICtrlRichEdit_GetParaBorder - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetParaIndents($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - DllStructSetData($tParaFormat, "dwMask", BitOR($PFM_STARTINDENT, $PFM_OFFSET)) - __GCR_SendGetParaFormatMessage($hWnd, $tParaFormat) - If @error Then Return SetError(@error, 0, "") - - Local $iMask = DllStructGetData($tParaFormat, "dwMask") - Local $iIdxSI = DllStructGetData($tParaFormat, "dxStartIndent") ; absolute - Local $iIdxOfs = DllStructGetData($tParaFormat, "dxOffset") - Local $iDxRI = DllStructGetData($tParaFormat, "dxRightIndent") - - Local $iLeft = __GCR_ConvertTwipsToSpaceUnit($iIdxSI + $iIdxOfs) - Local $iFirstLine = __GCR_ConvertTwipsToSpaceUnit(-$iIdxOfs) - Local $iRight = __GCR_ConvertTwipsToSpaceUnit($iDxRI) - - Local $iRet = $iLeft & ";" & $iRight & ";" & $iFirstLine & ";" & __GCR_GetParaScopeChar($hWnd, $iMask, $PFM_STARTINDENT) - Return $iRet -EndFunc ;==>_GUICtrlRichEdit_GetParaIndents - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetParaNumbering($hWnd) - Local Const $avRoman[7][2] = [[1000, "m"], [500, "d"], [100, "c"], [50, "l"], [10, "x"], [5, "v"], [1, "i"]] - - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - DllStructSetData($tParaFormat, 2, BitOR($PFM_NUMBERING, $PFM_NUMBERINGSTART, $PFM_NUMBERINGSTYLE)) - __GCR_SendGetParaFormatMessage($hWnd, $tParaFormat) - If @error Then Return SetError(@error, 0, "") - - Local $iMask = DllStructGetData($tParaFormat, "dwMask") - Local $iChar = DllStructGetData($tParaFormat, "wNumbering") - Local $iStart = DllStructGetData($tParaFormat, "wNumberingStart") - Local $iStyle = DllStructGetData($tParaFormat, "wNumberingStyle") - Local $iTab = DllStructGetData($tParaFormat, "wNumberingTab") - Local $sRet = "" - Switch $iChar - Case 0 ; no numbering - $sRet = "" - Case 1 ; bullet - $sRet = "." - Case 2 ; Arabic - $sRet = $iStart - Case 3 - $sRet = Chr(Asc("a") + $iStart - 1) - Case 4 - $sRet = Chr(Asc("a") + $iStart - 1) - Case 5, 6 ; lower case Roman - For $i = 0 To UBound($avRoman, $UBOUND_ROWS) - 2 Step 2 - For $j = $i To $i + 1 - While $iStart >= $avRoman[$j][0] - $sRet &= $avRoman[$j][1] - $iStart -= $avRoman[$j][0] - WEnd - If $iStart = $avRoman[$j][0] - 1 Then - $sRet &= $avRoman[$i + 2][1] & $avRoman[$j][1] - $iStart -= $avRoman[$j][0] - $avRoman[$i + 2][0] - EndIf - Next - Next - While $iStart > 0 - $sRet &= "i" - $iStart -= 1 - WEnd - If $iChar = 6 Then $sRet = StringUpper($sRet) - EndSwitch - If $iChar > 1 Then - Switch $iStyle - Case 0 - $sRet &= ")" - Case 0x100 - $sRet = "(" & $sRet & ")" - Case 0x200 - $sRet &= "." - Case 0x300 ; display only number - ; do nothing - EndSwitch - EndIf - ; set number-to-text spacing based on font at anchor - Local $aV = _GUICtrlRichEdit_GetFont($hWnd) - Local $iPoints = $aV[0] - Local $iQspaces = Round($iTab / ($iPoints * 20), 0) - For $i = 1 To $iQspaces - $sRet &= " " - Next - $sRet &= ";" - $sRet &= (($iChar = 5 Or $iChar = 6) ? "Roman;" : ";") - $sRet &= __GCR_ConvertTwipsToSpaceUnit($iTab) & ";" - $sRet &= __GCR_GetParaScopeChar($hWnd, $iMask, BitOR($PFM_NUMBERING, $PFM_NUMBERINGSTART, $PFM_NUMBERINGSTYLE)) - Return $sRet -EndFunc ;==>_GUICtrlRichEdit_GetParaNumbering - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetParaShading($hWnd) - Local Const $asStyles[13] = ["non", "dhz", "dvt", "ddd", "dud", "dgr", "dtr", "lhz", "lrt", "ldd", "lud", _ - "lgr", "ltr"] - Local Const $asClrs[16] = ["blk", "blu", "cyn", "grn", "mag", "red", "yel", "whi", "dbl", "dgn", "dmg", _ - "drd", "dyl", "dgy", "lgy"] - - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - __GCR_SendGetParaFormatMessage($hWnd, $tParaFormat) - If @error Then Return SetError(@error, 0, "") - - Local $iMask = DllStructGetData($tParaFormat, "dwMask") - Local $iWeight = DllStructGetData($tParaFormat, "wShadingWeight") - Local $iS = DllStructGetData($tParaFormat, "wShadingStyle") - - Local $sRet = $iWeight & ";" - Local $iN = BitAND($iS, 0xF) - $sRet &= $asStyles[$iN] & ";" - $iN = BitShift(BitAND($iS, 0xF0), 4) - $sRet &= $asClrs[$iN] & ";" - $iN = BitShift(BitAND($iS, 0xF00), 8) - $sRet &= $asClrs[$iN] & ";" - $sRet &= __GCR_GetParaScopeChar($hWnd, $iMask, $PFM_SHADING) - Return $sRet -EndFunc ;==>_GUICtrlRichEdit_GetParaShading - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetParaSpacing($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, "cbSize", DllStructGetSize($tParaFormat)) - __GCR_SendGetParaFormatMessage($hWnd, $tParaFormat) - If @error Then Return SetError(@error, 0, "") - Local $iInter = DllStructGetData($tParaFormat, "dyLineSpacing") - Local $iRule = DllStructGetData($tParaFormat, "bLineSpacingRule") - Local $sRet = "" - Switch $iRule - Case 0 - $sRet = "1 line;" - Case 1 - $sRet = "1.5 lines;" - Case 2 - $sRet = "2 lines;" - Case 3, 4 - $sRet = __GCR_ConvertTwipsToSpaceUnit($iInter) & ";" - Case 5 - $sRet = StringFormat("%.2f", $iInter / 20) & " lines;" - EndSwitch - Local $iMask = 0 ; perhaps a BUG (jpm) always 0 - $sRet &= __GCR_GetParaScopeChar($hWnd, $iMask, $PFM_LINESPACING) & ";" - - Local $iBefore = DllStructGetData($tParaFormat, "dySpaceBefore") - $sRet &= __GCR_ConvertTwipsToSpaceUnit($iBefore) & ";" - $sRet &= __GCR_GetParaScopeChar($hWnd, $iMask, $PFM_SPACEBEFORE) & ";" - - Local $iAfter = DllStructGetData($tParaFormat, "dySPaceAfter") - $sRet &= __GCR_ConvertTwipsToSpaceUnit($iAfter) & ";" - $sRet &= __GCR_GetParaScopeChar($hWnd, $iMask, $PFM_SPACEAFTER) - Return $sRet -EndFunc ;==>_GUICtrlRichEdit_GetParaSpacing - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetParaTabStops($hWnd) - Local Const $asKind[5] = ["l", "c", "r", "d", "b"], $asLeader[6] = [" ", ".", "-", "_", "t", "="] - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT) - DllStructSetData($tParaFormat, "cbSize", DllStructGetSize($tParaFormat)) - __GCR_SendGetParaFormatMessage($hWnd, $tParaFormat) - If @error Then Return SetError(@error, 0, "") - - Local $iMask = DllStructGetData($tParaFormat, "dwMask") - Local $iQtabs = DllStructGetData($tParaFormat, "cTabCount") - Local $sRet = $iQtabs & ";" - Local $iN, $iM - For $i = 1 To $iQtabs - $iN = DllStructGetData($tParaFormat, "rgxTabs", $i) - $sRet &= __GCR_ConvertTwipsToSpaceUnit(BitAND($iN, 0xFFFFF)) - $iM = BitAND(BitShift($iN, 24), 0xF) - $sRet &= $asKind[$iM] - $iM = BitAND(BitShift($iN, 28), 0xF) - $sRet &= $asLeader[$iM] & ";" - Next - $sRet &= __GCR_GetParaScopeChar($hWnd, $iMask, $PFM_TABSTOPS) - Return $sRet -EndFunc ;==>_GUICtrlRichEdit_GetParaTabStops - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetPasswordChar($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $n = _SendMessage($hWnd, $EM_GETPASSWORDCHAR) - Return ($n = 0) ? "" : Chr($n) -EndFunc ;==>_GUICtrlRichEdit_GetPasswordChar - -; #FUNCTION# ==================================================================================================================== -; Author ........: unknown -; Modified.......: Chris Haslam (c.haslam), jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetScrollPos($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $tPoint = DllStructCreate($tagPOINT) - _SendMessage($hWnd, $EM_GETSCROLLPOS, 0, $tPoint, 0, "wparam", "struct*") - Local $aRet[2] - $aRet[0] = DllStructGetData($tPoint, "x") - $aRet[1] = DllStructGetData($tPoint, "y") - Return $aRet -EndFunc ;==>_GUICtrlRichEdit_GetScrollPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: Chris Haslam (c.haslam), jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetSel($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $tCharRange = DllStructCreate($tagCHARRANGE) - _SendMessage($hWnd, $EM_EXGETSEL, 0, $tCharRange, 0, "wparam", "struct*") - Local $aRet[2] - $aRet[0] = DllStructGetData($tCharRange, 1) - $aRet[1] = DllStructGetData($tCharRange, 2) - Return $aRet -EndFunc ;==>_GUICtrlRichEdit_GetSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: Chris Haslam (c.haslam), jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetSelAA($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - - Local $aiLowHigh = _GUICtrlRichEdit_GetSel($hWnd) - - If $aiLowHigh[0] = $aiLowHigh[1] Then Return SetError(-1, 0, 0) ; no text selected - - _SendMessage($hWnd, $EM_SETSEL, -1, 0) ; deselect - - Local $aiNoSel = _GUICtrlRichEdit_GetSel($hWnd) - - Local $aRet[2] - If $aiLowHigh[0] = $aiNoSel[0] Then ; if active < anchor - $aRet[0] = $aiLowHigh[1] - $aRet[1] = $aiLowHigh[0] - Else - $aRet = $aiLowHigh - EndIf - ; restore selection - _SendMessage($hWnd, $EM_SETSEL, $aiLowHigh[0], $aiLowHigh[1]) - _WinAPI_SetFocus($hWnd) ; need to have the selection updated - Return $aRet -EndFunc ;==>_GUICtrlRichEdit_GetSelAA - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetSelText($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not _GUICtrlRichEdit_IsTextSelected($hWnd) Then Return SetError(-1, 0, -1) - - Local $aiLowHigh = _GUICtrlRichEdit_GetSel($hWnd) - Local $tText = DllStructCreate("wchar[" & $aiLowHigh[1] - $aiLowHigh[0] + 1 & "]") - _SendMessage($hWnd, $EM_GETSELTEXT, 0, $tText, 0, "wparam", "struct*") - Return DllStructGetData($tText, 1) -EndFunc ;==>_GUICtrlRichEdit_GetSelText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetSpaceUnit() - Switch $__g_iRTFTwipsPeSpaceUnit - Case 1440 - Return "in" - Case 567 - Return "cm" - Case 56.7 - Return "mm" - Case 20 - Return "pt" - Case 1 - Return "tw" - EndSwitch -EndFunc ;==>_GUICtrlRichEdit_GetSpaceUnit - -; #FUNCTION# ==================================================================================================================== -; Authors........: Gary Frost (gafrost (custompcs@charter.net)) -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetTextInLine($hWnd, $iLine) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iLine, ">0,-1") Then Return SetError(1021, 0, False) - If $iLine > _GUICtrlRichEdit_GetLineCount($hWnd) Then Return SetError(1022, 0, False) - - Local $iLen = _GUICtrlRichEdit_GetLineLength($hWnd, $iLine) - If $iLen = 0 Then Return "" - Local $tBuffer = DllStructCreate("short Len;wchar Text[" & $iLen + 2 & "]") - DllStructSetData($tBuffer, "Len", $iLen + 2) - If $iLine <> -1 Then $iLine -= 1 - Local $iRet = _SendMessage($hWnd, $EM_GETLINE, $iLine, $tBuffer, 10, "wparam", "struct*") - If $iRet = 0 Then Return SetError(700, 0, False) - Local $tString = DllStructCreate("wchar Text[" & $iLen + 1 & "]", DllStructGetPtr($tBuffer)) - Return StringLeft(DllStructGetData($tString, "Text"), $iLen) -EndFunc ;==>_GUICtrlRichEdit_GetTextInLine - -; #FUNCTION# ==================================================================================================================== -; Authors........: Gary Frost (gafrost (custompcs@charter.net)) -; Modified ......: Prog@ndy, Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetTextInRange($hWnd, $iStart, $iEnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iStart, ">=0") Then Return SetError(102, 0, False) - If Not __GCR_IsNumeric($iEnd, ">=0,-1") Then Return SetError(1031, 0, False) - If Not ($iEnd > $iStart Or $iEnd = -1) Then Return SetError(1032, 0, False) - - Local $iLen = _GUICtrlRichEdit_GetTextLength($hWnd) ; can't use $iEnd - $iStart + 1 because of Unicode - Local $tText = DllStructCreate("wchar[" & ($iLen + 4) & "]") - Local $tTextRange = DllStructCreate($tagTEXTRANGE) - DllStructSetData($tTextRange, 1, $iStart) - DllStructSetData($tTextRange, 2, $iEnd) - DllStructSetData($tTextRange, 3, DllStructGetPtr($tText)) - _SendMessage($hWnd, $EM_GETTEXTRANGE, 0, $tTextRange, 0, "wparam", "struct*") - Return DllStructGetData($tText, 1) -EndFunc ;==>_GUICtrlRichEdit_GetTextInRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetVersion() - Return $__g_sRTFVersion -EndFunc ;==>_GUICtrlRichEdit_GetVersion - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_GetXYFromCharPos($hWnd, $iCharPos) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If Not __GCR_IsNumeric($iCharPos, ">=0") Then Return SetError(1021, 0, 0) - If $iCharPos > _GUICtrlRichEdit_GetTextLength($hWnd) Then Return SetError(1022, 0, 0) - - Local $tPoint = DllStructCreate($tagPOINT) - _SendMessage($hWnd, $EM_POSFROMCHAR, $tPoint, $iCharPos, 0, "struct*", "lparam") - Local $aRet[2] - $aRet[0] = DllStructGetData($tPoint, "X") - $aRet[1] = DllStructGetData($tPoint, "Y") - Return $aRet -EndFunc ;==>_GUICtrlRichEdit_GetXYFromCharPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_GotoCharPos($hWnd, $iCharPos) - _GUICtrlRichEdit_SetSel($hWnd, $iCharPos, $iCharPos) - If @error Then Return SetError(@error, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_GotoCharPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: Chris Haslam (c.haslam), jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_HideSelection($hWnd, $bHide = True) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not IsBool($bHide) Then Return SetError(102, 0, False) - - _SendMessage($hWnd, $EM_HIDESELECTION, $bHide, 0) - _WinAPI_SetFocus($hWnd) ; need to have the selection updated -EndFunc ;==>_GUICtrlRichEdit_HideSelection - -; #FUNCTION# ==================================================================================================================== -; Authors........: Gary Frost (gafrost (custompcs@charter.net) -; Modified ......: Prog@ndy, Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_InsertText($hWnd, $sText) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If $sText = "" Then Return SetError(102, 0, False) - - Local $tSetText = DllStructCreate($tagSETTEXTEX) - DllStructSetData($tSetText, 1, $ST_SELECTION) - _GUICtrlRichEdit_Deselect($hWnd) - Local $iRet - If StringLeft($sText, 5) <> "{\rtf" And StringLeft($sText, 5) <> "{urtf" Then - DllStructSetData($tSetText, 2, $CP_UNICODE) - $iRet = _SendMessage($hWnd, $EM_SETTEXTEX, $tSetText, $sText, 0, "struct*", "wstr") - Else - DllStructSetData($tSetText, 2, $CP_ACP) - $iRet = _SendMessage($hWnd, $EM_SETTEXTEX, $tSetText, $sText, 0, "struct*", "STR") - EndIf - If Not $iRet Then Return SetError(103, 0, False) ; cannot be set - Return True -EndFunc ;==>_GUICtrlRichEdit_InsertText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_IsModified($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Return _SendMessage($hWnd, $EM_GETMODIFY) <> 0 -EndFunc ;==>_GUICtrlRichEdit_IsModified - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_IsTextSelected($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $tCharRange = DllStructCreate($tagCHARRANGE) - _SendMessage($hWnd, $EM_EXGETSEL, 0, $tCharRange, 0, "wparam", "struct*") - Return DllStructGetData($tCharRange, 2) <> DllStructGetData($tCharRange, 1) -EndFunc ;==>_GUICtrlRichEdit_IsTextSelected - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_Paste($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - _SendMessage($hWnd, $__RICHEDITCONSTANT_WM_PASTE, 0, 0) - Return True -EndFunc ;==>_GUICtrlRichEdit_Paste - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_PasteSpecial($hWnd, $bAndObjects = True) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $iN = ($bAndObjects ? $__g_sGRE_CF_RETEXTOBJ : $__g_sGRE_CF_RTF) - _SendMessage($hWnd, $EM_PASTESPECIAL, $iN, 0) - Return True -EndFunc ;==>_GUICtrlRichEdit_PasteSpecial - -; #FUNCTION# ==================================================================================================================== -; Authors........: unknown -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_PauseRedraw($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - _SendMessage($hWnd, $__RICHEDITCONSTANT_WM_SETREDRAW, False) -EndFunc ;==>_GUICtrlRichEdit_PauseRedraw - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_Redo($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Return _SendMessage($hWnd, $EM_REDO, 0, 0) <> 0 -EndFunc ;==>_GUICtrlRichEdit_Redo - -; #FUNCTION# ==================================================================================================================== -; Authors........: Gary Frost (gafrost) -; Modified ......: Chris Haslam (c.haslam), jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_ReplaceText($hWnd, $sText, $bCanUndo = True) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not IsBool($bCanUndo) Then Return SetError(103, 0, False) - If Not _GUICtrlRichEdit_IsTextSelected($hWnd) Then Return SetError(-1, 0, False) - - Local $tText = DllStructCreate("wchar Text[" & StringLen($sText) + 1 & "]") - DllStructSetData($tText, "Text", $sText) - If _WinAPI_InProcess($hWnd, $__g_hRELastWnd) Then - _SendMessage($hWnd, $EM_REPLACESEL, $bCanUndo, $tText, 0, "wparam", "struct*") - Else - Local $iText = DllStructGetSize($tText) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iText, $tMemMap) - _MemWrite($tMemMap, $tText) - _SendMessage($hWnd, $EM_REPLACESEL, $bCanUndo, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return True -EndFunc ;==>_GUICtrlRichEdit_ReplaceText - -; #FUNCTION# ==================================================================================================================== -; Authors........: unknown -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_ResumeRedraw($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - _SendMessage($hWnd, $__RICHEDITCONSTANT_WM_SETREDRAW, True) - Return _WinAPI_InvalidateRect($hWnd) -EndFunc ;==>_GUICtrlRichEdit_ResumeRedraw - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_ScrollLineOrPage($hWnd, $sAction) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) - If StringLen($sAction) <> 2 Then Return SetError(1021, 0, 0) - - Local $sCh = StringLeft($sAction, 1) - If Not ($sCh = "l" Or $sCh = "p") Then Return SetError(1022, 0, 0) - $sCh = StringRight($sAction, 1) - If Not ($sCh = "d" Or $sCh = "u") Then Return SetError(1023, 0, 0) - - Local $wParam = 0 - Switch $sAction - Case "ld" - $wParam = $__RICHEDITCONSTANT_SB_LINEDOWN - Case "lu" - $wParam = $__RICHEDITCONSTANT_SB_LINEUP - Case "pd" - $wParam = $__RICHEDITCONSTANT_SB_PAGEDOWN - Case "pu" - $wParam = $__RICHEDITCONSTANT_SB_PAGEUP - EndSwitch - Local $iRet = _SendMessage($hWnd, $EM_SCROLL, $wParam, 0) - $iRet = BitAND($iRet, 0xFFFF) ; low word - If BitAND($iRet, 0x8000) <> 0 Then $iRet = BitOR($iRet, 0xFFFF0000) ; extend sign bit - Return $iRet -EndFunc ;==>_GUICtrlRichEdit_ScrollLineOrPage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_ScrollLines($hWnd, $iQlines) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iQlines) Then SetError(102, 0, False) - - Local $iRet = _SendMessage($hWnd, $EM_LINESCROLL, 0, $iQlines) - If $iRet = 0 Then Return SetError(700, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_ScrollLines - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_ScrollToCaret($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - _SendMessage($hWnd, $EM_SCROLLCARET, 0, 0) - Return True -EndFunc ;==>_GUICtrlRichEdit_ScrollToCaret - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetCharAttributes($hWnd, $sStatesAndEffects, $bWord = False) - Local Const $aV[17][3] = [ _ - ["bo", $CFM_BOLD, $CFE_BOLD], ["di", $CFM_DISABLED, $CFE_DISABLED], _ - ["em", $CFM_EMBOSS, $CFE_EMBOSS], ["hi", $CFM_HIDDEN, $CFE_HIDDEN], _ - ["im", $CFM_IMPRINT, $CFE_IMPRINT], ["it", $CFM_ITALIC, $CFE_ITALIC], _ - ["li", $CFM_LINK, $CFE_LINK], ["ou", $CFM_OUTLINE, $CFE_OUTLINE], _ - ["pr", $CFM_PROTECTED, $CFE_PROTECTED], ["re", $CFM_REVISED, $CFE_REVISED], _ - ["sh", $CFM_SHADOW, $CFE_SHADOW], ["sm", $CFM_SMALLCAPS, $CFE_SMALLCAPS], _ - ["st", $CFM_STRIKEOUT, $CFE_STRIKEOUT], ["sb", $CFM_SUBSCRIPT, $CFE_SUBSCRIPT], _ - ["sp", $CFM_SUPERSCRIPT, $CFE_SUPERSCRIPT], ["un", $CFM_UNDERLINE, $CFE_UNDERLINE], _ - ["al", $CFM_ALLCAPS, $CFE_ALLCAPS]] - - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not IsBool($bWord) Then Return SetError(103, 0, False) - - Local $iMask = 0, $iEffects = 0, $n, $s - For $i = 1 To StringLen($sStatesAndEffects) Step 3 - $s = StringMid($sStatesAndEffects, $i + 1, 2) - $n = -1 - For $j = 0 To UBound($aV) - 1 - If $aV[$j][0] = $s Then - $n = $j - ExitLoop - EndIf - Next - If $n = -1 Then Return SetError(1023, $s, False) ; not found - $iMask = BitOR($iMask, $aV[$n][1]) - $s = StringMid($sStatesAndEffects, $i, 1) - Switch $s - Case "+" - $iEffects = BitOR($iEffects, $aV[$n][2]) - Case "-" - ; do nothing - Case Else - Return SetError(1022, $s, False) - EndSwitch - Next - Local $tCharFormat = DllStructCreate($tagCHARFORMAT) - DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat)) - DllStructSetData($tCharFormat, 2, $iMask) - DllStructSetData($tCharFormat, 3, $iEffects) - Local $wParam = ($bWord ? BitOR($SCF_WORD, $SCF_SELECTION) : $SCF_SELECTION) - Local $iRet = _SendMessage($hWnd, $EM_SETCHARFORMAT, $wParam, $tCharFormat, 0, "wparam", "struct*") - If Not $iRet Then Return SetError(700, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetCharAttributes - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: jpm, guinness, mLipok -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetCharBkColor($hWnd, $iBkColor = Default) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $tCharFormat = DllStructCreate($tagCHARFORMAT2) - DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat)) - If $iBkColor = Default Then - DllStructSetData($tCharFormat, 3, $CFE_AUTOBACKCOLOR) - $iBkColor = 0 - Else - If BitAND($iBkColor, 0xff000000) Then Return SetError(1022, 0, False) - EndIf - - DllStructSetData($tCharFormat, 2, $CFM_BACKCOLOR) - DllStructSetData($tCharFormat, 12, $iBkColor) - Return _SendMessage($hWnd, $EM_SETCHARFORMAT, $SCF_SELECTION, $tCharFormat, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlRichEdit_SetCharBkColor - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: Jpm, guinness -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetCharColor($hWnd, $iColor = Default) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $tCharFormat = DllStructCreate($tagCHARFORMAT) - DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat)) - If $iColor = Default Then - DllStructSetData($tCharFormat, 3, $CFE_AUTOCOLOR) - $iColor = 0 - Else - If BitAND($iColor, 0xff000000) Then Return SetError(1022, 0, False) - EndIf - - DllStructSetData($tCharFormat, 2, $CFM_COLOR) - DllStructSetData($tCharFormat, 6, $iColor) - Return _SendMessage($hWnd, $EM_SETCHARFORMAT, $SCF_SELECTION, $tCharFormat, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlRichEdit_SetCharColor - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: Jpm, guinness -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetBkColor($hWnd, $iBngColor = Default) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $bSysColor = False - If $iBngColor = Default Then - $bSysColor = True - $iBngColor = 0 - Else - If BitAND($iBngColor, 0xff000000) Then Return SetError(1022, 0, False) - EndIf - - _SendMessage($hWnd, $EM_SETBKGNDCOLOR, $bSysColor, $iBngColor) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetBkColor - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetLimitOnText($hWnd, $iNewLimit) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iNewLimit, ">=0") Then Return SetError(102, 0, False) - - If $iNewLimit < 65535 Then $iNewLimit = 0 ; default max is 64K - _SendMessage($hWnd, $EM_EXLIMITTEXT, 0, $iNewLimit) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetLimitOnText - -; #FUNCTION# ==================================================================================================================== -; Author ........: KIP -; Modified.......: Chris Haslam (c.haslam), guinness -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetTabStops($hWnd, $vTabStops, $bRedraw = True) - ; Should take tabstops in space units (like EM_SETPARAFORMAT PFM_TABSTOPS, but how to convert inches, etc. - ; to dialog units? For now, a kludge based on experimentation - Local Const $iTwipsPerDU = 18.75 - Local $tTabStops, $tagTabStops = "", $wParam - - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not IsBool($bRedraw) Then Return SetError(103, 0, False) - - If IsString($vTabStops) Then ; Set every tabstop manually - If $vTabStops = "" Then Return SetError(1023, 0, False) - Local $aS = StringSplit($vTabStops, ";") - Local $iNumTabStops = $aS[0] - For $i = 1 To $iNumTabStops - If Not __GCR_IsNumeric($aS[$i], ">0") Then Return SetError(1022, 0, False) - $tagTabStops &= "int;" - Next - $tagTabStops = StringTrimRight($tagTabStops, 1) - $tTabStops = DllStructCreate($tagTabStops) - For $i = 1 To $iNumTabStops - DllStructSetData($tTabStops, $i, $aS[$i] * $__g_iRTFTwipsPeSpaceUnit / $iTwipsPerDU) - Next - $wParam = $iNumTabStops - ElseIf IsNumber($vTabStops) Then - If __GCR_IsNumeric($vTabStops, ">0") Then - $tTabStops = DllStructCreate("int") - DllStructSetData($tTabStops, 1, $vTabStops * $__g_iRTFTwipsPeSpaceUnit / $iTwipsPerDU) - $wParam = 1 - Else - Return SetError(1024, 9, False) - EndIf - Else - Return SetError(1021, 0, False) - EndIf - Local $bResult = _SendMessage($hWnd, $EM_SETTABSTOPS, $wParam, $tTabStops, 0, "wparam", "struct*") <> 0 - If $bRedraw Then _WinAPI_InvalidateRect($hWnd) ; redraw the control - Return $bResult -EndFunc ;==>_GUICtrlRichEdit_SetTabStops - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetZoom($hWnd, $iPercent) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iPercent, ">0") Then Return SetError(1021, 0, False) - - Local $iNumerator, $iDenominator - Select - Case Not ($iPercent = 100 Or ($iPercent >= 200 And $iPercent < 6400)) - Return SetError(1022, 0, False) - Case $iPercent >= 100 - $iNumerator = 10000 - $iDenominator = 10000 / ($iPercent / 100) - Case Else - $iNumerator = 10000 * ($iPercent / 100) - $iDenominator = 10000 - EndSelect - Return _SendMessage($hWnd, $EM_SETZOOM, $iNumerator, $iDenominator) <> 0 -EndFunc ;==>_GUICtrlRichEdit_SetZoom - -; #FUNCTION# ==================================================================================================================== -; Authors........: Yoan Roblet (Arcker) -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetEventMask($hWnd, $iEventMask) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iEventMask) Then Return SetError(102, 0, False) - - _SendMessage($hWnd, $EM_SETEVENTMASK, 0, $iEventMask) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetEventMask - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetFont($hWnd, $iPoints = Default, $sName = Default, $iCharset = Default, $iLcid = Default) - ; MSDN does not give a mask (CFM) for bPitchAndFamily so it appears that it cannot be set => omitted here - Local $iDwMask = 0 - - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not ($iPoints = Default Or __GCR_IsNumeric($iPoints, ">0")) Then Return SetError(102, 0, False) - If $sName <> Default Then - Local $aS = StringSplit($sName, " ") - For $i = 1 To UBound($aS) - 1 - If Not StringIsAlpha($aS[$i]) Then Return SetError(103, 0, False) - Next - EndIf - If Not ($iCharset = Default Or __GCR_IsNumeric($iCharset)) Then Return SetError(104, 0, False) - If Not ($iLcid = Default Or __GCR_IsNumeric($iLcid)) Then Return SetError(105, 0, False) - - Local $tCharFormat = DllStructCreate($tagCHARFORMAT2) - DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat)) - - If $iPoints <> Default Then - $iDwMask = $CFM_SIZE - DllStructSetData($tCharFormat, 4, Int($iPoints * 20)) - EndIf - If $sName <> Default Then - If StringLen($sName) > $LF_FACESIZE - 1 Then SetError(-1, 0, False) - $iDwMask = BitOR($iDwMask, $CFM_FACE) - DllStructSetData($tCharFormat, 9, $sName) - EndIf - If $iCharset <> Default Then - $iDwMask = BitOR($iDwMask, $CFM_CHARSET) - DllStructSetData($tCharFormat, 7, $iCharset) - EndIf - If $iLcid <> Default Then - $iDwMask = BitOR($iDwMask, $CFM_LCID) - DllStructSetData($tCharFormat, 13, $iLcid) - EndIf - DllStructSetData($tCharFormat, 2, $iDwMask) - - Local $iRet = _SendMessage($hWnd, $EM_SETCHARFORMAT, $SCF_SELECTION, $tCharFormat, 0, "wparam", "struct*") - If Not $iRet Then Return SetError(@error + 200, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: jpm, guinness -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetRECT($hWnd, $iLeft = Default, $iTop = Default, $iRight = Default, $iBottom = Default, $bRedraw = True) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not ($iLeft = Default Or __GCR_IsNumeric($iLeft, ">0")) Then Return SetError(1021, 0, False) - If Not ($iTop = Default Or __GCR_IsNumeric($iTop, ">0")) Then Return SetError(1022, 0, False) - If Not ($iRight = Default Or __GCR_IsNumeric($iRight, ">0")) Then Return SetError(1023, 0, False) - If Not ($iBottom = Default Or __GCR_IsNumeric($iBottom, ">0")) Then Return SetError(1024, 0, False) - - If @NumParams = 1 Then - Local $aPos = ControlGetPos($hWnd, "", "") - $iLeft = 2 - $iTop = 2 - $iRight = $aPos[2] - $iBottom = $aPos[3] - _GUICtrlRichEdit_SetRECT($hWnd, $iLeft, $iTop, $iRight, $iBottom) - Return True - Else - Local $aS = _GUICtrlRichEdit_GetRECT($hWnd) - If $iLeft = Default Then - $iLeft = $aS[0] - EndIf - If $iTop = Default Then - $iTop = $aS[1] - EndIf - If $iRight = Default Then - $iRight = $aS[2] - EndIf - If $iBottom = Default Then - $iBottom = $aS[3] - EndIf - If $iLeft >= $iRight Then Return SetError(1025, 0, False) - If $iTop >= $iBottom Then Return SetError(1026, 0, False) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Left", Number($iLeft)) - DllStructSetData($tRECT, "Top", Number($iTop)) - DllStructSetData($tRECT, "Right", Number($iRight)) - DllStructSetData($tRECT, "Bottom", Number($iBottom)) - Local $iMsg = ($bRedraw ? $EM_SETRECT : $EM_SETRECTNP) - _SendMessage($hWnd, $iMsg, 0, $tRECT, 0, "wparam", "struct*") - EndIf - Return True -EndFunc ;==>_GUICtrlRichEdit_SetRECT - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetModified($hWnd, $bState = True) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not IsBool($bState) Then Return SetError(102, 0, False) - - _SendMessage($hWnd, $EM_SETMODIFY, $bState) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetModified - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: guinness -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetParaAlignment($hWnd, $sAlignment) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $iAlignment - Switch $sAlignment - Case "l" - $iAlignment = $PFA_LEFT - Case "c" - $iAlignment = $PFA_CENTER - Case "r" - $iAlignment = $PFA_RIGHT - Case "j" - $iAlignment = $PFA_JUSTIFY - Case "w" - $iAlignment = $PFA_FULL_INTERWORD - Case Else - Return SetError(102, 0, False) - EndSwitch - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - DllStructSetData($tParaFormat, 2, $PFM_ALIGNMENT) - DllStructSetData($tParaFormat, 8, $iAlignment) - Return _SendMessage($hWnd, $EM_SETPARAFORMAT, 0, $tParaFormat, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlRichEdit_SetParaAlignment - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetParaAttributes($hWnd, $sStatesAndAtts) - Local Enum $eAbbrev = 0, $eMask, $eEffect, $eInverted - ; MS seems to mean LINENUMBER and WIDOWCONTROL, not NOLINENUMBER and NOWIDOWCONTROL - Local Const $aV[9][4] = [ _ ; abbrev, mask, effect, inverted - ["fpg", $PFM_PAGEBREAKBEFORE, $PFE_PAGEBREAKBEFORE, False], _ - ["hyp", $PFM_DONOTHYPHEN, $PFE_DONOTHYPHEN, True], _ - ["kpt", $PFM_KEEP, $PFE_KEEP, False], _ - ["kpn", $PFM_KEEPNEXT, $PFE_KEEPNEXT, False], _ - ["pwo", $PFM_NOWIDOWCONTROL, $PFE_NOWIDOWCONTROL, False], _ - ["r2l", $PFM_RTLPARA, $PFE_RTLPARA, False], _ - ["row", $PFM_TABLE, $PFE_TABLE, False], _ - ["sbs", $PFM_SIDEBYSIDE, $PFE_SIDEBYSIDE, False], _ - ["sln", $PFM_NOLINENUMBER, $PFE_NOLINENUMBER, False]] - - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - If Mod(StringLen($sStatesAndAtts) + 1, 5) <> 0 Then Return SetError(1023, 0, False) - Local $aS = StringSplit($sStatesAndAtts, ";") - Local $iMask = 0, $iEffects = 0, $s, $n - For $i = 1 To UBound($aS, $UBOUND_ROWS) - 1 - $s = StringMid($aS[$i], 2) - $n = -1 - For $j = 0 To UBound($aV, $UBOUND_ROWS) - 1 - If $aV[$j][$eAbbrev] = $s Then - $n = $j - ExitLoop - EndIf - Next - If $n = -1 Then Return SetError(1022, $s, False) - $iMask = BitOR($iMask, $aV[$n][$eMask]) - $s = StringLeft($aS[$i], 1) - Switch $s - Case "+" - If Not $aV[$n][$eInverted] Then ; if normal sense - $iEffects = BitOR($iEffects, $aV[$n][$eEffect]) - EndIf - Case "-" - If $aV[$n][$eInverted] Then ; if inverted sense - $iEffects = BitOR($iEffects, $aV[$n][$eEffect]) - EndIf - Case Else - Return SetError(1021, $s, False) - EndSwitch - Next - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - DllStructSetData($tParaFormat, 2, $iMask) - DllStructSetData($tParaFormat, 4, $iEffects) - Return _SendMessage($hWnd, $EM_SETPARAFORMAT, 0, $tParaFormat, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlRichEdit_SetParaAttributes - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetParaBorder($hWnd, $sLocation = Default, $vLineStyle = Default, $sColor = Default, $iSpace = Default) - ; wBorderWidth doesn't appear to work - Local $iBorders - ; Local $tOldParaFormat,$iOldLoc, $iOldSpace, $iOldLineStyle, $iOldColor, $iN - Local Const $avLocs[6][2] = [["l", 1], ["r", 2], ["t", 4], ["b", 8], ["i", 16], ["o", 32]] - Local Const $avLS[12] = ["none", .75, 1.5, 2.25, 3, 4.5, 6, ".75d", "1.5d", "2.25d", ".75g", ".75gd"] - Local Const $sClrs = ";blk;blu;cyn;grn;mag;red;yel;whi;dbl;dgn;dmg;drd;dyl;dgy;lgy;aut;" - - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not ($iSpace = Default Or __GCR_IsNumeric($iSpace, ">=0")) Then Return SetError(105, 0, False) - ; If Not ($iWidth = Default Or __GCR_IsNumeric($iWidth, ">=0")) Then Return SetError(106, 0, False) ; wBorderWidth does not round-trip - - If $sLocation = "" Then - $iBorders = 0 - $iSpace = 0 - ; $iWidth = 0 - Else - If $sLocation = Default Or $vLineStyle = Default Or $sColor = Default Or $iSpace = Default Then - Local $aS = StringSplit(_GUICtrlRichEdit_GetParaBorder($hWnd), ";") - If $sLocation = Default Then $sLocation = $aS[1] - If $vLineStyle = Default Then $vLineStyle = $aS[2] - If $sColor = Default Then $sColor = $aS[3] - If $iSpace = Default Then $iSpace = $aS[4] - EndIf - Local $iLoc = 0, $n, $s - For $i = 1 To StringLen($sLocation) - $s = StringMid($sLocation, $i, 1) - $n = -1 - For $j = 0 To UBound($avLocs, $UBOUND_ROWS) - 1 - If $avLocs[$j][0] = $s Then - $n = $j - ExitLoop - EndIf - Next - If $n = -1 Then Return SetError(102, $s, False) - $iLoc = BitOR($iLoc, $avLocs[$n][1]) - Next - $n = -1 - For $i = 0 To UBound($avLS, $UBOUND_ROWS) - 1 - If $vLineStyle = $avLS[$i] Then - $n = $i - ExitLoop - EndIf - Next - If $n = -1 Then Return SetError(103, 0, False) - Local $iLineStyle = $n - $n = StringInStr($sClrs, ";" & $sColor & ";") - If $n = 0 Then Return SetError(104, 0, False) - Local $iColor = Int($n / 4) - If $iColor = 16 Then ; if autocolor - $iLoc = BitOR($iLoc, 64) - $iColor = 0 - EndIf - $iBorders = $iLoc + BitShift($iLineStyle, -8) + BitShift($iColor, -12) - ; If $iWidth = Default Then $iWidth = $iOldWidth - EndIf - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, "cbSize", DllStructGetSize($tParaFormat)) - DllStructSetData($tParaFormat, "wBorderSpace", $iSpace * $__g_iRTFTwipsPeSpaceUnit) - ; DllStructGetData($tParaFormat, 23, $iWidth * $__g_iRTFTwipsPeSpaceUnit) - DllStructSetData($tParaFormat, "wBorders", $iBorders) - DllStructSetData($tParaFormat, "dwMask", $PFM_BORDER) - Return _SendMessage($hWnd, $EM_SETPARAFORMAT, 0, $tParaFormat, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlRichEdit_SetParaBorder - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetParaIndents($hWnd, $vLeft = Default, $iRight = Default, $iFirstLine = Default) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not ($vLeft = Default Or __GCR_IsNumeric($vLeft)) Then Return SetError(1021, 0, False) - If Not ($iRight = Default Or __GCR_IsNumeric($iRight, ">=0")) Then Return SetError(103, 0, False) - If Not ($iFirstLine = Default Or __GCR_IsNumeric($iFirstLine)) Then Return SetError(104, 0, False) - - Local $s = _GUICtrlRichEdit_GetParaIndents($hWnd) - Local $aS = StringSplit($s, ";") - If $vLeft = Default Then $vLeft = $aS[1] - If $iRight = Default Then $iRight = $aS[2] - If $iFirstLine = Default Then $iFirstLine = $aS[3] - If $vLeft < 0 Then Return SetError(1022, 0, False) - If $vLeft + $iFirstLine < 0 Then Return SetError(200, 0, False) - - If StringInStr("+-", StringLeft($vLeft, 1)) <> 0 Then $vLeft = $aS[1] + $vLeft - - Local $iIdxSI = $vLeft + $iFirstLine - Local $iIdxOfs = -$iFirstLine - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - DllStructSetData($tParaFormat, "dxStartIndent", $iIdxSI * $__g_iRTFTwipsPeSpaceUnit) - DllStructSetData($tParaFormat, "dxOffset", $iIdxOfs * $__g_iRTFTwipsPeSpaceUnit) - DllStructSetData($tParaFormat, "dxRightIndent", $iRight * $__g_iRTFTwipsPeSpaceUnit) - DllStructSetData($tParaFormat, 2, BitOR($PFM_STARTINDENT, $PFM_OFFSET, $PFM_RIGHTINDENT)) ; absolute - Local $iRet = _SendMessage($hWnd, $EM_SETPARAFORMAT, 0, $tParaFormat, 0, "wparam", "struct*") - If Not $iRet Then Return SetError(700, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetParaIndents - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetParaNumbering($hWnd, $sStyle, $iTextToNbrSpace = Default, $bForceRoman = False) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not ($iTextToNbrSpace = Default Or __GCR_IsNumeric($iTextToNbrSpace, ">0")) Then Return SetError(103, 0, False) - If Not IsBool($bForceRoman) Then Return SetError(104, 0, False) - - Local $iPFM, $iWNumbering, $iWnumStart, $iWnumStyle, $iQspaces - __GCR_ParseParaNumberingStyle($sStyle, $bForceRoman, $iPFM, $iWNumbering, $iWnumStart, $iWnumStyle, $iQspaces) - If @error Then Return SetError(@error, 0, False) - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, 1, DllStructGetSize($tParaFormat)) - If BitAND($iPFM, $PFM_NUMBERING) Then DllStructSetData($tParaFormat, 3, $iWNumbering) - If BitAND($iPFM, $PFM_NUMBERINGSTART) Then DllStructSetData($tParaFormat, 19, $iWnumStart) - If BitAND($iPFM, $PFM_NUMBERINGSTYLE) Then DllStructSetData($tParaFormat, 20, $iWnumStyle) - If BitAND($iPFM, $PFM_NUMBERINGTAB) Then - Local $iTwips - If $iTextToNbrSpace = Default Then - ; set number-to-text spacing based on font at anchor or onsertion point - Local $aV = _GUICtrlRichEdit_GetFont($hWnd) - Local $iPoints = $aV[0] - $iTwips = $iQspaces * $iPoints * 20 - Else - $iTwips = $iTextToNbrSpace * $__g_iRTFTwipsPeSpaceUnit - EndIf - DllStructSetData($tParaFormat, 21, $iTwips) - EndIf - DllStructSetData($tParaFormat, 2, $iPFM) - Return _SendMessage($hWnd, $EM_SETPARAFORMAT, 0, $tParaFormat, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlRichEdit_SetParaNumbering - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetParaShading($hWnd, $iWeight = Default, $sStyle = Default, $sForeColor = Default, $sBackColor = Default) - Local $iS = 0 ; perhaps a BUG (jpm) only referenced - Local Const $sStyles = ";non;dhz;dvt;ddd;dud;dgr;dtr;lhz;lrt;ldd;lud;lgr;ltr;" - Local Const $sClrs = ";blk;blu;cyn;grn;mag;red;yel;whi;dbl;dgn;dmg;drd;dyl;dgy;lgy;" - - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not ($iWeight = Default Or __GCR_IsNumeric($iWeight, ">=0")) Then Return SetError(1021, 0, False) - - If $iWeight <> Default Or $sStyle <> Default Or $sForeColor <> Default Or $sBackColor <> Default Then - Local $aS = StringSplit(_GUICtrlRichEdit_GetParaShading($hWnd), ";") - If $iWeight = Default Then $iWeight = $aS[1] - If $sStyle = Default Then $sStyle = $aS[2] - If $sForeColor = Default Then $sForeColor = $aS[3] - If $sBackColor = Default Then $sBackColor = $aS[4] - #cs - $tOldParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tOldParaFormat, 1, DllStructGetSize($tOldParaFormat)) - _SendMessage($hWnd, $EM_GETPARAFORMAT, 0, DllStructGetPtr($tOldParaFormat)) - #ce - EndIf - ; If $iWeight = Default Then - ; $iWeight = DllStructGetData($tOldParaFormat, 17) - ; Else - If $iWeight < 0 Or $iWeight > 100 Then Return SetError(1022, 0, False) - ; EndIf - ; If $sStyle = Default Or $sForeColor = Default Or $sBackColor = Default Then - ; $iS = DllStructGetData($tOldParaFormat, 18) - ; EndIf - ; If $sStyle = Default Then - ; $iStyle = BitAND($iS, 0xF) - ; Else - Local $iN = StringInStr($sStyles, ";" & $sStyle & ";") - If $iN = 0 Then Return SetError(103, 0, False) - Local $iStyle = Int($iN / 4) - ; EndIf - ; If $sForeColor = Default Then - Local $iFore = BitShift(BitAND($iS, 0xF0), 4) - ; Else - $iN = StringInStr($sClrs, ";" & $sForeColor & ";") - If $iN = 0 Then Return SetError(104, 0, False) - $iFore = Int($iN / 4) - ; EndIf - ; If $sBackColor = Default Then - ; $iBack = BitShift(BitAND($iS, 0xF00), 8) - ; Else - $iN = StringInStr($sClrs, ";" & $sBackColor & ";") - If $iN = 0 Then Return SetError(105, 0, False) - Local $iBack = Int($iN / 4) - ; EndIf - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, "cbSize", DllStructGetSize($tParaFormat)) - DllStructSetData($tParaFormat, "wShadingWeight", $iWeight) - $iN = $iStyle + BitShift($iFore, -4) + BitShift($iBack, -8) - DllStructSetData($tParaFormat, "wShadingStyle", $iN) - DllStructSetData($tParaFormat, "dwMask", $PFM_SHADING) - Local $iRet = _SendMessage($hWnd, $EM_SETPARAFORMAT, 0, $tParaFormat, 0, "wparam", "struct*") - If Not $iRet Then Return SetError(700, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetParaShading - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetParaSpacing($hWnd, $vInter = Default, $iBefore = Default, $iAfter = Default) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not ($iBefore = Default Or __GCR_IsNumeric($iBefore, ">=0")) Then Return SetError(103, 0, False) - If Not ($iAfter = Default Or __GCR_IsNumeric($iAfter, ">=0")) Then Return SetError(104, 0, False) - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, "cbSize", DllStructGetSize($tParaFormat)) - Local $iMask = 0 - If $vInter <> Default Then - $vInter = StringStripWS($vInter, $STR_STRIPALL) ; strip all spaces - Local $iP = StringInStr($vInter, "line", 2) ; case-insensitive, faster - If $iP <> 0 Then - $vInter = StringLeft($vInter, $iP - 1) - EndIf - If Not __GCR_IsNumeric($vInter, ">=0") Then Return SetError(1021, 0, False) - Local $iRule, $iLnSp = 0 - If $iP <> 0 Then ; if in lines - Switch $vInter - Case 1 - $iRule = 0 - Case 1.5 - $iRule = 1 - Case 2 - $iRule = 2 - Case Else - If $vInter < 1 Then Return SetError(1022, 0, False) - $iRule = 5 ; spacing in lines - $iLnSp = $vInter * 20 - EndSwitch - Else - $iRule = 4 ; spacing in twips - $iLnSp = $vInter * $__g_iRTFTwipsPeSpaceUnit - EndIf - $iMask = $PFM_LINESPACING - DllStructSetData($tParaFormat, "bLineSpacingRule", $iRule) - If $iLnSp <> 0 Then DllStructSetData($tParaFormat, 13, $iLnSp) - EndIf - If $iBefore <> Default Then - $iMask = BitOR($iMask, $PFM_SPACEBEFORE) - DllStructSetData($tParaFormat, "dySpaceBefore", $iBefore * $__g_iRTFTwipsPeSpaceUnit) - EndIf - If $iAfter <> Default Then - $iMask = BitOR($iMask, $PFM_SPACEAFTER) - DllStructSetData($tParaFormat, "dySpaceAfter", $iAfter * $__g_iRTFTwipsPeSpaceUnit) - EndIf - If $iMask <> 0 Then - DllStructSetData($tParaFormat, "dwMask", $iMask) - Return _SendMessage($hWnd, $EM_SETPARAFORMAT, 0, $tParaFormat, 0, "wparam", "struct*") <> 0 - Else - Return True - EndIf -EndFunc ;==>_GUICtrlRichEdit_SetParaSpacing - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetParaTabStops($hWnd, $sTabStops) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $tParaFormat = DllStructCreate($tagPARAFORMAT2) - DllStructSetData($tParaFormat, "cbSize", DllStructGetSize($tParaFormat)) - - If $sTabStops = "" Then - DllStructSetData($tParaFormat, "cTabCount", 0) - Else - Local $asTabs = StringSplit($sTabStops, ";") - If $asTabs[0] > $MAX_TAB_STOPS Then Return SetError(1021, 0, False) - Local $asAtab, $i, $s, $iN, $iP - For $iTab = 1 To $asTabs[0] - $asAtab = StringSplit($asTabs[$iTab], "") ; split into characters - $i = 1 - While $i <= $asAtab[0] And StringInStr("01234567890.", $asAtab[$i]) <> 0 - $i += 1 - WEnd - If $i = 1 Then Return SetError(1021, $iTab, False) - $s = StringLeft($asTabs[$iTab], $i - 1) - If Not __GCR_IsNumeric($s, ">=0") Then Return SetError(1021, $iTab, False) - $iN = $s * $__g_iRTFTwipsPeSpaceUnit - If $i <= $asAtab[0] Then - $iP = StringInStr("lcrdb", $asAtab[$i]) - If $iP = 0 Then Return SetError(1022, $iTab, False) - $iN = BitOR($iN, BitShift($iP - 1, -24)) - EndIf - $i += 1 - If $i <= $asAtab[0] Then - $iP = StringInStr(" .-_t=", $asAtab[$i]) - If $iP = 0 Then Return SetError(1023, $iTab, False) - $iN = BitOR($iN, BitShift($iP - 1, -28)) - EndIf - DllStructSetData($tParaFormat, "rgxTabs", $iN, $iTab) - Next - DllStructSetData($tParaFormat, "cTabCount", $asTabs[0]) - EndIf - DllStructSetData($tParaFormat, "dwMask", $PFM_TABSTOPS) - Return _SendMessage($hWnd, $EM_SETPARAFORMAT, 0, $tParaFormat, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlRichEdit_SetParaTabStops - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetPasswordChar($hWnd, $sDisplayChar = "*") - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not IsString($sDisplayChar) Then SetError(102, 0, False) - - If $sDisplayChar = "" Then - _SendMessage($hWnd, $EM_SETPASSWORDCHAR) - Else - _SendMessage($hWnd, $EM_SETPASSWORDCHAR, Asc($sDisplayChar)) - EndIf - Return True -EndFunc ;==>_GUICtrlRichEdit_SetPasswordChar - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetReadOnly($hWnd, $bState = True) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not IsBool($bState) Then Return SetError(102, 0, False) - - Local $iRet = _SendMessage($hWnd, $EM_SETREADONLY, $bState) - If $iRet = 0 Then Return SetError(700, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetReadOnly - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetScrollPos($hWnd, $iX, $iY) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iX, ">=0") Then Return SetError(102, 0, False) - If Not __GCR_IsNumeric($iY, ">=0") Then Return SetError(103, 0, False) - - Local $tPoint = DllStructCreate($tagPOINT) - DllStructSetData($tPoint, 1, $iX) - DllStructSetData($tPoint, 2, $iY) - Return _SendMessage($hWnd, $EM_SETSCROLLPOS, 0, $tPoint, 0, "wparam", "struct*") <> 0 -EndFunc ;==>_GUICtrlRichEdit_SetScrollPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: jpm -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetSel($hWnd, $iAnchor, $iActive, $bHideSel = False) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iAnchor, ">=0,-1") Then Return SetError(102, 0, False) - If Not __GCR_IsNumeric($iActive, ">=0,-1") Then Return SetError(103, 0, False) - If Not IsBool($bHideSel) Then Return SetError(104, 0, False) - _SendMessage($hWnd, $EM_SETSEL, $iAnchor, $iActive) - If $bHideSel Then _SendMessage($hWnd, $EM_HIDESELECTION, $bHideSel) - _WinAPI_SetFocus($hWnd) ; need to have the selection updated - Return True -EndFunc ;==>_GUICtrlRichEdit_SetSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetSpaceUnit($sUnit) - Switch StringLower($sUnit) - Case "in" - $__g_iRTFTwipsPeSpaceUnit = 1440 - Case "cm" - $__g_iRTFTwipsPeSpaceUnit = 567 - Case "mm" - $__g_iRTFTwipsPeSpaceUnit = 56.7 - Case "pt" - $__g_iRTFTwipsPeSpaceUnit = 20 - Case "tw" - $__g_iRTFTwipsPeSpaceUnit = 1 - Case Else - Return SetError(1, 0, False) - EndSwitch - Return True -EndFunc ;==>_GUICtrlRichEdit_SetSpaceUnit - -; #FUNCTION# ==================================================================================================================== -; Authors........: Gary Frost (gafrost (custompcs@charter.net)) -; Modified ......: Prog@ndy, Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetText($hWnd, $sText) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $tSetText = DllStructCreate($tagSETTEXTEX) - ; DllStructSetData($tSetText, 1, $ST_KEEPUNDO) - DllStructSetData($tSetText, 1, $ST_DEFAULT) - DllStructSetData($tSetText, 2, $CP_ACP) - Local $iRet - If StringLeft($sText, 5) <> "{\rtf" And StringLeft($sText, 5) <> "{urtf" Then - DllStructSetData($tSetText, 2, $CP_UNICODE) - $iRet = _SendMessage($hWnd, $EM_SETTEXTEX, $tSetText, $sText, 0, "struct*", "wstr") - Else - $iRet = _SendMessage($hWnd, $EM_SETTEXTEX, $tSetText, $sText, 0, "struct*", "STR") - EndIf - If Not $iRet Then Return SetError(700, 0, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_SetText - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_SetUndoLimit($hWnd, $iLimit) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - If Not __GCR_IsNumeric($iLimit, ">=0") Then Return SetError(102, 0, False) - - Return _SendMessage($hWnd, $EM_SETUNDOLIMIT, $iLimit) <> 0 Or $iLimit = 0 -EndFunc ;==>_GUICtrlRichEdit_SetUndoLimit - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_StreamFromFile($hWnd, $sFileSpec) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $tEditStream = DllStructCreate($tagEDITSTREAM) - DllStructSetData($tEditStream, "pfnCallback", DllCallbackGetPtr($__g_pGRC_StreamFromFileCallback)) - Local $hFile = FileOpen($sFileSpec, $FO_READ) - If $hFile = -1 Then Return SetError(1021, 0, False) - Local $sBuf = FileRead($hFile, 5) - FileClose($hFile) - $hFile = FileOpen($sFileSpec, $FO_READ) ; reopen it at the start - DllStructSetData($tEditStream, "dwCookie", $hFile) ; -> Send handle to CallbackFunc - Local $wParam = ($sBuf == "{\rtf" Or $sBuf == "{urtf") ? $SF_RTF : $SF_TEXT - $wParam = BitOR($wParam, $SFF_SELECTION) - If Not _GUICtrlRichEdit_IsTextSelected($hWnd) Then - _GUICtrlRichEdit_SetText($hWnd, "") - EndIf - Local $iQchs = _SendMessage($hWnd, $EM_STREAMIN, $wParam, $tEditStream, 0, "wparam", "struct*") - FileClose($hFile) - Local $iError = DllStructGetData($tEditStream, "dwError") - If $iError <> 1 Then SetError(700, $iError, False) - If $iQchs = 0 Then - If FileGetSize($sFileSpec) = 0 Then Return SetError(1022, 0, False) - Return SetError(700, $iError, False) - EndIf - Return True -EndFunc ;==>_GUICtrlRichEdit_StreamFromFile - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_StreamFromVar($hWnd, $sVar) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $tEditStream = DllStructCreate($tagEDITSTREAM) - DllStructSetData($tEditStream, "pfnCallback", DllCallbackGetPtr($__g_pGRC_StreamFromVarCallback)) - $__g_pGRC_sStreamVar = $sVar - Local $s = StringLeft($sVar, 5) - Local $wParam = ($s == "{\rtf" Or $s == "{urtf") ? $SF_RTF : $SF_TEXT - $wParam = BitOR($wParam, $SFF_SELECTION) - If Not _GUICtrlRichEdit_IsTextSelected($hWnd) Then - _GUICtrlRichEdit_SetText($hWnd, "") - EndIf - _SendMessage($hWnd, $EM_STREAMIN, $wParam, $tEditStream, 0, "wparam", "struct*") - Local $iError = DllStructGetData($tEditStream, "dwError") - If $iError <> 1 Then Return SetError(700, $iError, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_StreamFromVar - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_StreamToFile($hWnd, $sFileSpec, $bIncludeCOM = True, $iOpts = 0, $iCodePage = 0) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - - Local $wParam - If StringRight($sFileSpec, 4) = ".rtf" Then - $wParam = ($bIncludeCOM ? $SF_RTF : $SF_RTFNOOBJS) - Else - $wParam = ($bIncludeCOM ? $SF_TEXTIZED : $SF_TEXT) - If BitAND($iOpts, $SFF_PLAINRTF) Then Return SetError(1041, 0, False) - EndIf - ; only opts are $SFF_PLAINRTF and $SF_UNICODE - If BitAND($iOpts, BitNOT(BitOR($SFF_PLAINRTF, $SF_UNICODE))) Then Return SetError(1042, 0, False) - If BitAND($iOpts, $SF_UNICODE) Then - If Not BitAND($wParam, $SF_TEXT) Then Return SetError(1043, 0, False) - EndIf - - If _GUICtrlRichEdit_IsTextSelected($hWnd) Then $wParam = BitOR($wParam, $SFF_SELECTION) - - $wParam = BitOR($wParam, $iOpts) - If $iCodePage <> 0 Then - $wParam = BitOR($wParam, $SF_USECODEPAGE, BitShift($iCodePage, -16)) - EndIf - Local $tEditStream = DllStructCreate($tagEDITSTREAM) - DllStructSetData($tEditStream, "pfnCallback", DllCallbackGetPtr($__g_pGRC_StreamToFileCallback)) - Local $hFile = FileOpen($sFileSpec, $FO_OVERWRITE) - If $hFile = -1 Then Return SetError(102, 0, False) - - DllStructSetData($tEditStream, "dwCookie", $hFile) ; -> Send handle to CallbackFunc - _SendMessage($hWnd, $EM_STREAMOUT, $wParam, $tEditStream, 0, "wparam", "struct*") - FileClose($hFile) - Local $iError = DllStructGetData($tEditStream, "dwError") - If $iError <> 0 Then SetError(700, $iError, False) - Return True -EndFunc ;==>_GUICtrlRichEdit_StreamToFile - -; #FUNCTION# ==================================================================================================================== -; Authors........: Chris Haslam (c.haslam) -; Modified ......: -; =============================================================================================================================== -Func _GUICtrlRichEdit_StreamToVar($hWnd, $bRtf = True, $bIncludeCOM = True, $iOpts = 0, $iCodePage = 0) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, "") - - Local $wParam - If $bRtf Then - $wParam = ($bIncludeCOM ? $SF_RTF : $SF_RTFNOOBJS) - Else - $wParam = ($bIncludeCOM ? $SF_TEXTIZED : $SF_TEXT) - If BitAND($iOpts, $SFF_PLAINRTF) Then Return SetError(1041, 0, "") - EndIf - ; only opts are $SFF_PLAINRTF and $SF_UNICODE - If BitAND($iOpts, BitNOT(BitOR($SFF_PLAINRTF, $SF_UNICODE))) Then Return SetError(1042, 0, "") - If BitAND($iOpts, $SF_UNICODE) Then - If Not BitAND($wParam, $SF_TEXT) Then Return SetError(1043, 0, "") - EndIf - If _GUICtrlRichEdit_IsTextSelected($hWnd) Then $wParam = BitOR($wParam, $SFF_SELECTION) - - $wParam = BitOR($wParam, $iOpts) - If $iCodePage <> 0 Then - $wParam = BitOR($wParam, $SF_USECODEPAGE, BitShift($iCodePage, -16)) - EndIf - - Local $tEditStream = DllStructCreate($tagEDITSTREAM) - DllStructSetData($tEditStream, "pfnCallback", DllCallbackGetPtr($__g_pGRC_StreamToVarCallback)) - - $__g_pGRC_sStreamVar = "" - _SendMessage($hWnd, $EM_STREAMOUT, $wParam, $tEditStream, 0, "wparam", "struct*") - Local $iError = DllStructGetData($tEditStream, "dwError") - If $iError <> 0 Then SetError(700, $iError, "") - Return $__g_pGRC_sStreamVar -EndFunc ;==>_GUICtrlRichEdit_StreamToVar - -; #FUNCTION# ==================================================================================================================== -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; =============================================================================================================================== -Func _GUICtrlRichEdit_Undo($hWnd) - If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, False) - Return _SendMessage($hWnd, $EM_UNDO, 0, 0) <> 0 -EndFunc ;==>_GUICtrlRichEdit_Undo - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_Init -; Description ...: Sets global variables $__g_sRTFClassName, $__g_sRTFVersion, $__g_sGRE_CF_RTF and $__g_sGRE_CF_RETEXTOBJ -; Syntax.........: __GCR_Init { } -; Parameters ....: -; Return values .: -; Author ........: Prog@ndy -; Modified.......: Chris Haslam (c.haslam) -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GCR_Init() - Local $ah_GUICtrlRTF_lib = DllCall("kernel32.dll", "ptr", "LoadLibraryW", "wstr", "MSFTEDIT.DLL") - If $ah_GUICtrlRTF_lib[0] <> 0 Then - $__g_sRTFClassName = "RichEdit50W" - $__g_sRTFVersion = 4.1 - Else - ;RICHED20.DLL - $ah_GUICtrlRTF_lib = DllCall("kernel32.dll", "ptr", "LoadLibraryW", "wstr", "RICHED20.DLL") - $__g_sRTFVersion = FileGetVersion(@SystemDir & "\riched20.dll", "ProductVersion") - Switch $__g_sRTFVersion - Case 3.0 - $__g_sRTFClassName = "RichEdit20W" - Case 5.0 - $__g_sRTFClassName = "RichEdit50W" - Case 6.0 - $__g_sRTFClassName = "RichEdit60W" - EndSwitch - EndIf - $__g_sGRE_CF_RTF = _ClipBoard_RegisterFormat("Rich Text Format") - $__g_sGRE_CF_RETEXTOBJ = _ClipBoard_RegisterFormat("Rich Text Format with Objects") -EndFunc ;==>__GCR_Init - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_StreamFromFileCallback -; Description ...: Callback function for streaming in from a file -; Syntax.........: __GCR_StreamFromFileCallback ( $hFile, $pBuf, $iBuflen, $pQbytes ) -; Parameters ....: $hFile - Handle to the file -; $pBuf - pointer to a buffer in the control -; $iBuflen - length of this buffer -; $pQbytes - pointer to number of bytes set in buffer -; Return values .: More bytes to "return" - 0 -; All bytes have been "returned" - 1 -; Author ........: Prog@ndy -; Modified.......: Chris Haslam (c.haslam) -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ EditStreamCallback Function -; Example .......: -; =============================================================================================================================== -Func __GCR_StreamFromFileCallback($hFile, $pBuf, $iBuflen, $pQbytes) - Local $tQbytes = DllStructCreate("long", $pQbytes) - DllStructSetData($tQbytes, 1, 0) - Local $tBuf = DllStructCreate("char[" & $iBuflen & "]", $pBuf) - Local $sBuf = FileRead($hFile, $iBuflen - 1) - If @error Then Return 1 - DllStructSetData($tBuf, 1, $sBuf) - DllStructSetData($tQbytes, 1, StringLen($sBuf)) - Return 0 -EndFunc ;==>__GCR_StreamFromFileCallback - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_StreamFromVarCallback -; Description ...: Callback function for streaming in from a variable -; Syntax.........: __GCR_StreamFromVarCallback ( $iCookie, $pBuf, $iBufLen, $pQbytes ) -; Parameters ....: $iCookie - not used -; $pBuf - pointer to a buffer in the control -; $iBuflen - length of this buffer -; $pQbytes - pointer to number of bytes set in buffer -; Return values .: More bytes to "return" - 0 -; All bytes have been "returned" - 1 -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ EditStreamCallback Function -; Example .......: -; =============================================================================================================================== -Func __GCR_StreamFromVarCallback($iCookie, $pBuf, $iBuflen, $pQbytes) - #forceref $iCookie - Local $tQbytes = DllStructCreate("long", $pQbytes) - DllStructSetData($tQbytes, 1, 0) - - Local $tCtl = DllStructCreate("char[" & $iBuflen & "]", $pBuf) - Local $sCtl = StringLeft($__g_pGRC_sStreamVar, $iBuflen - 1) - If $sCtl = "" Then Return 1 - DllStructSetData($tCtl, 1, $sCtl) - - Local $iLen = StringLen($sCtl) - DllStructSetData($tQbytes, 1, $iLen) - $__g_pGRC_sStreamVar = StringMid($__g_pGRC_sStreamVar, $iLen + 1) - Return 0 -EndFunc ;==>__GCR_StreamFromVarCallback - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_StreamFToFileCallback -; Description ...: Callback function for streaming out to a file -; Syntax.........: __GCR_StreamToFileCallback ( $hFile, $pBuf, $iBuflen, $pQbytes ) -; Parameters ....: $hFile - Handle to the file -; $pBuf - pointer to a buffer in the control -; $iBuflen - length of this buffer -; $pQbytes - pointer to number of bytes set in buffer -; Return values .: 0 -; Author ........: Prog@ndy -; Modified.......: Chris Haslam (c.haslam) -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ EditStreamCallback Function -; Example .......: -; =============================================================================================================================== -Func __GCR_StreamToFileCallback($hFile, $pBuf, $iBuflen, $pQbytes) - Local $tQbytes = DllStructCreate("long", $pQbytes) - DllStructSetData($tQbytes, 1, 0) - Local $tBuf = DllStructCreate("char[" & $iBuflen & "]", $pBuf) - Local $s = DllStructGetData($tBuf, 1) - FileWrite($hFile, $s) - DllStructSetData($tQbytes, 1, StringLen($s)) - Return 0 -EndFunc ;==>__GCR_StreamToFileCallback - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_StreamFToVarCallback -; Description ...: Callback function for streaming out to a variable -; Syntax.........: __GCR_StreamToVarCallback ( $iCookie, $pBuf, $iBufLen, $pQbytes ) -; Parameters ....: $iCookie - not used -; $pBuf - pointer to a buffer in the control -; $iBuflen - length of this buffer -; $pQbytes - pointer to number of bytes set in buffer -; Return values .: 0 -; Author ........: Chris Haslam (c.haslam) -; Modified.......: guinness -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ EditStreamCallback Function -; Example .......: -; =============================================================================================================================== -Func __GCR_StreamToVarCallback($iCookie, $pBuf, $iBuflen, $pQbytes) - #forceref $iCookie - Local $tQbytes = DllStructCreate("long", $pQbytes) - DllStructSetData($tQbytes, 1, 0) - Local $tBuf = DllStructCreate("char[" & $iBuflen & "]", $pBuf) - Local $s = DllStructGetData($tBuf, 1) - $__g_pGRC_sStreamVar &= $s - Return 0 -EndFunc ;==>__GCR_StreamToVarCallback - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_ConvertTwipsToSpaceUnit -; Description ...: Converts Twips (1/1440 inch) to user space units -; Syntax.........: __GCR_ConvertTwipsToSpaceUnit ( $nIn ) -; Parameters ....: $nIn - space in twips -; Return values .: Success - value in space units (inches, cm, mm, points or twips) -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GCR_ConvertTwipsToSpaceUnit($nIn) - Local $sRet - Switch $__g_iRTFTwipsPeSpaceUnit - Case 1440, 567 ; inches, cm - $sRet = StringFormat("%.2f", $nIn / $__g_iRTFTwipsPeSpaceUnit) - If $sRet = "-0.00" Then $sRet = "0.00" - Case 56.7, 72 ; mm, points - $sRet = StringFormat("%.1f", $nIn / $__g_iRTFTwipsPeSpaceUnit) - If $sRet = "-0.0" Then $sRet = "0.0" - Case Else - $sRet = $nIn - EndSwitch - Return $sRet -EndFunc ;==>__GCR_ConvertTwipsToSpaceUnit - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_IsNumeric -; Description ...: Does a variable contain a numeric value? -; Syntax.........: __GCR_IsNumeric ( $vN ) -; Parameters ....: $VN - the variable -; $SRange - ">0", ">=0", ">0,-1", ">=0,-1" -; Return values .: Success - True or False -; Failure - can't fail -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GCR_IsNumeric($vN, $sRange = "") - If Not (IsNumber($vN) Or StringIsInt($vN) Or StringIsFloat($vN)) Then Return False - Switch $sRange - Case ">0" - If $vN <= 0 Then Return False - Case ">=0" - If $vN < 0 Then Return False - Case ">0,-1" - If Not ($vN > 0 Or $vN = -1) Then Return False - Case ">=0,-1" - If Not ($vN >= 0 Or $vN = -1) Then Return False - EndSwitch - Return True -EndFunc ;==>__GCR_IsNumeric - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_GetParaScopeChar -; Description ...: Gets the scope to which paragraph format settings apply -; Syntax.........: __GCR_GetParaScopeChar ( $hWnd, $iMask, $iPFM ) -; Parameters ....: $hWnd - handle to control -; $iMask - mask returned by _SendMessage -; Return values .: Success - the scope character -; Failure - can't fail -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; Remarks .......: Takes advantage of an undocumented feature of EM_GETPARAFORMAT -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GCR_GetParaScopeChar($hWnd, $iMask, $iPFM) - If Not _GUICtrlRichEdit_IsTextSelected($hWnd) Then - Return "c" - ElseIf BitAND($iMask, $iPFM) = $iPFM Then - Return "a" - Else - Return "f" - EndIf -EndFunc ;==>__GCR_GetParaScopeChar - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_ParseParaNumberingStyle -; Description ...: For _GUICtrlRichEdit_SetParaNumbering(), parses $vStyle -; Syntax.........: __GCR_ParseParaNumberingStyle ($sIn, $bForceRoman, ByRef $iPFM, ByRef $iWNumbering, ByRef $iWnumStart, ByRef $iWnumStyle, ByRef $iQspaces ) -; Parameters ....: $sIn - style string: see _GUICtrlRichEdit_SetParaNumbering() -; $bForceRoman - If $vStyle contains numner i, interpret as Roman one else as letter i -; $iPFM - BitOR combination of $PFM_ constants (Returned) -; $iWNumbering - wNumbering member of PARAFORMAT2 structure -; $iWnumStart - wNumbering Start member of PARAFORMAT2 structure (Returned) -; $iWNumStyle - wNumberingStyle member of PARAFORMAT2 structure (Returned) -; $iQspaces - for wNumberingTab member of PARAFORMAT2 structure (Returned) -; Return values .: Success - True -; Failure - False and sets @error: -; |102 - $sIn is invalid -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; Remarks .......: -; Related .......: GuiCtrlRichEdit_SetParaNumbering() -; Link ..........: @@MsdnLink@@ EM_PARAMFORMAT -; Example .......: -; =============================================================================================================================== -Func __GCR_ParseParaNumberingStyle($sIn, $bForceRoman, ByRef $iPFM, ByRef $iWNumbering, ByRef $iWnumStart, ByRef $iWnumStyle, ByRef $iQspaces) - Local Const $sRoman = "mdclxviMDCLXVI", $iRpar = 0, $i2par = 0x100, $iPeriod = 0x200, $iNbrOnly = 0x300 - If $sIn = "" Then - $iWNumbering = 0 - $iPFM = $PFM_NUMBERING - Else - Local $s = StringStripWS($sIn, $STR_STRIPTRAILING) ; trialing whitespace - $iQspaces = StringLen($sIn) - StringLen($s) - $sIn = $s - $iPFM = $PFM_NUMBERINGTAB - If $sIn = "." Then - $iWNumbering = $PFN_BULLET - $iPFM = BitOR($iPFM, $PFM_NUMBERING) - ElseIf $sIn = "=" Then - $iWnumStyle = 0x400 - $iPFM = BitOR($iPFM, $PFM_NUMBERINGSTYLE) - Else - Switch StringRight($sIn, 1) - Case ")" - If StringLeft($sIn, 1) = "(" Then - $iWnumStyle = $i2par - $sIn = StringTrimLeft($sIn, 1) - Else - $iWnumStyle = $iRpar - EndIf - Case "." - $iWnumStyle = $iPeriod - Case Else ; display only number - $iWnumStyle = $iNbrOnly - EndSwitch - $iPFM = BitOR($iPFM, $PFM_NUMBERINGSTYLE) - If $iWnumStyle <> 0x300 Then $sIn = StringTrimRight($sIn, 1) - If StringIsDigit($sIn) Then - $iWnumStart = Number($sIn) - $iWNumbering = 2 - $iPFM = BitOR($iPFM, $PFM_NUMBERINGSTART, $PFM_NUMBERING) - Else - Local $bMayBeRoman = True - For $i = 1 To StringLen($sIn) - If Not StringInStr($sRoman, StringMid($sIn, $i, 1)) Then - $bMayBeRoman = False - ExitLoop - EndIf - Next - Local $bIsRoman - If $bMayBeRoman Then - $bIsRoman = $bForceRoman - Else - $bIsRoman = False - EndIf - Switch True - Case $bIsRoman - $iWnumStart = __GCR_ConvertRomanToNumber($sIn) - If $iWnumStart = -1 Then Return SetError(102, 0, False) - $iWNumbering = (StringIsLower($sIn) ? 5 : 6) - $iPFM = BitOR($iPFM, $PFM_NUMBERINGSTART, $PFM_NUMBERING) - Case StringIsAlpha($sIn) - If StringIsLower($sIn) Then - $iWNumbering = 3 - Else - $iWNumbering = 4 - $sIn = StringLower($sIn) - EndIf - $iWnumStart = 0 - Local $iN - For $iP = 1 To StringLen($sIn) - $iN = Asc(StringMid($sIn, $i)) - If $iN >= Asc("a") And $iN <= Asc("z") Then - $iWnumStart = $iWnumStart * 26 + ($iN - Asc("a") + 1) - EndIf - Next - $iPFM = BitOR($iPFM, $PFM_NUMBERINGSTART, $PFM_NUMBERING) - Case Else - Return SetError(102, 0, False) - EndSwitch - EndIf - EndIf - EndIf - Return True -EndFunc ;==>__GCR_ParseParaNumberingStyle - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_ConvertRomanToNumber -; Description ...: Converts a Roman number to a number -; Syntax.........: __GCR_ConvertRomanToNumber ( $sRnum ) -; Parameters ....: $sRnum - string containing Roman number -; Return values .: Success - the (Arabic) number -; Failure - -1 -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; Remarks .......: Is case-insensitive -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GCR_ConvertRomanToNumber($sRnum) - Local Enum $e9, $e5, $e4, $e1, $eMult, $eHigher - Local Const $aV[3][6] = [["cm", "d", "cd", "c", 100, "m"], ["xc", "l", "xl", "x", 10, "mdc"], ["ix", "v", "iv", "i", 1, "mdclx"]] - $sRnum = StringLower($sRnum) - Local $i = 1 - While StringMid($sRnum, $i, 1) = "m" - $i += 1 - WEnd - Local $iDigit, $iQ1s, $iRet = ($i - 1) * 1000 - For $j = 0 To 2 - $iDigit = 0 - If StringMid($sRnum, $i, 2) = $aV[$j][$e9] Then - $iDigit = 9 - $i += 2 - ElseIf StringMid($sRnum, $i, 1) = $aV[$j][$e5] Then - $iDigit = 5 - $i += 1 - ElseIf StringMid($sRnum, $i, 2) = $aV[$j][$e4] Then - $iDigit = 4 - $i += 2 - ElseIf StringInStr($aV[$j][$eHigher], StringMid($sRnum, $i, 1)) Then - Return -1 - EndIf - If $iDigit = 0 Or $iDigit = 5 Then - $iQ1s = 0 - While StringMid($sRnum, $i, 1) = $aV[$j][$e1] - $iQ1s += 1 - If $iQ1s > 3 Then Return 0 - $i += 1 - WEnd - $iDigit += $iQ1s - EndIf - $iRet += $iDigit * $aV[$j][$eMult] - Next - If $i <= StringLen($sRnum) Then Return -1 - Return $iRet -EndFunc ;==>__GCR_ConvertRomanToNumber - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_SendGetCharFormatMessage -; Description ...: Gets character format of character just after the anchor point (if text is selected) or after the inserton point -; Syntax.........: __GCR_SendGetCharFormatMessage ( $hWnd, $tCharFormat ) -; Parameters ....: $hWnd - handle of control -; : $tCharFormat - CHARFORMAT or CHARFORMAT2 structure -; Return values .: Success - True -; Failure - error of _SendMessage EM_GETCHARFORMAT SCF_SELECTION -; Author ........: Chris Haslam (c.haslam) -; Modified.......: -; Remarks .......: If there is a selection, restores it before returning, with the anchor and actove positions correct, -; even if active < anchor -; Related .......: -; Link ..........: @@MsdnLink@@ EM_GETCHARFORMAT -; Example .......: -; =============================================================================================================================== -Func __GCR_SendGetCharFormatMessage($hWnd, $tCharFormat) - Return _SendMessage($hWnd, $EM_GETCHARFORMAT, $SCF_SELECTION, $tCharFormat, 0, "wparam", "struct*") -EndFunc ;==>__GCR_SendGetCharFormatMessage - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_SendGetParaFormatMessage -; Description ...: Gets format of (first) selected paragraph or, if no selection, of the paragraph containing the insertion point -; Syntax.........: __GCR_SendGetParaFormatMessage ( $hWnd, $tParaFormat ) -; Parameters ....: $hWnd - handle of control -; : $tParaFormat - PARAFORMAT or PARAFORMAT2 structure -; Return values .: Success - True -; Failure - error of _SendMessage EM_PARAFORMAT -; Author ........: Chris Haslam (c.haslam) -; Modified.......: guinness -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ EM_PARAFORMAT -; Example .......: -; =============================================================================================================================== -Func __GCR_SendGetParaFormatMessage($hWnd, $tParaFormat) - Local $bIsSel = _GUICtrlRichEdit_IsTextSelected($hWnd) - Local $iInsPt = 0 - If Not $bIsSel Then - Local $aS = _GUICtrlRichEdit_GetSel($hWnd) - $iInsPt = $aS[0] - Local $iN = _GUICtrlRichEdit_GetFirstCharPosOnLine($hWnd) - _GUICtrlRichEdit_SetSel($hWnd, $iN, $iN + 1, True) - EndIf - - _SendMessage($hWnd, $EM_GETPARAFORMAT, 0, $tParaFormat, 0, "wparam", "struct*") - If @error Then Return SetError(@error, @extended, False) - - If Not $bIsSel Then _GUICtrlRichEdit_SetSel($hWnd, $iInsPt, $iInsPt) - - Return True -EndFunc ;==>__GCR_SendGetParaFormatMessage - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GCR_SetOLECallback -; Description....: Enables OLE-relationed functionality -; Syntax.........: _GUICtrlRichEdit_SetOLECallback ( $hWnd ) -; Parameters.....: $hWnd - Handle to the control -; Return values..: Success - True -; Failure - False and set @error: -; |101 - $hWnd is not a handle -; |700 - internal error -; Authors........: Prog@ndy -; Modified ......: Chris Haslam (c.haslam) -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ EM_SETOLECALLBACK -; Example .......: -; =============================================================================================================================== -Func __GCR_SetOLECallback($hWnd) - If Not IsHWnd($hWnd) Then Return SetError(101, 0, False) - - ;// Initialize the OLE part. - If Not $__g_pObj_RichCom Then - $__g_tCall_RichCom = DllStructCreate("ptr[20]"); '(With some extra space for the future) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_QueryInterface), 1) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_AddRef), 2) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_Release), 3) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_GetNewStorage), 4) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_GetInPlaceContext), 5) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_ShowContainerUI), 6) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_QueryInsertObject), 7) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_DeleteObject), 8) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_QueryAcceptData), 9) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_ContextSensitiveHelp), 10) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_GetClipboardData), 11) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_GetDragDropEffect), 12) - DllStructSetData($__g_tCall_RichCom, 1, DllCallbackGetPtr($__g_pRichCom_Object_GetContextMenu), 13) - DllStructSetData($__g_tObj_RichComObject, 1, DllStructGetPtr($__g_tCall_RichCom)) - DllStructSetData($__g_tObj_RichComObject, 2, 1) - $__g_pObj_RichCom = DllStructGetPtr($__g_tObj_RichComObject) - EndIf - Local Const $EM_SETOLECALLBACK = 0x400 + 70 - If _SendMessage($hWnd, $EM_SETOLECALLBACK, 0, $__g_pObj_RichCom) = 0 Then Return SetError(700, 0, False) - Return True -EndFunc ;==>__GCR_SetOLECallback - -; ///////////////////////////////////// -; // OLE stuff, don't use yourself.. -; ///////////////////////////////////// -; // Useless procedure, never called.. -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_QueryInterface -; Description ...: -; Syntax.........: __RichCom_Object_QueryInterface ( $pObject, $RiEFIID, $pPvObj ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_QueryInterface($pObject, $iREFIID, $pPvObj) - #forceref $pObject, $iREFIID, $pPvObj - Return $_GCR_S_OK -EndFunc ;==>__RichCom_Object_QueryInterface - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_AddRef -; Description ...: -; Syntax.........: __RichCom_Object_AddRef ( $pObject ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_AddRef($pObject) - ;Exit Function - Local $tData = DllStructCreate("ptr;dword", $pObject) - DllStructSetData($tData, 2, DllStructGetData($tData, 2) + 1) - Return DllStructGetData($tData, 2) -EndFunc ;==>__RichCom_Object_AddRef - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_Release -; Description ...: -; Syntax.........: __RichCom_Object_Release ( $pObject ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_Release($pObject) - ;Exit Function - Local $tData = DllStructCreate("ptr;dword", $pObject) - If DllStructGetData($tData, 2) > 0 Then - DllStructSetData($tData, 2, DllStructGetData($tData, 2) - 1) - Return DllStructGetData($tData, 2) - EndIf - ;If @pObject[1] > 0 Then - ;Decr @pObject[1] - ;Func = @pObject[1] - ;Else - ;pObject = 0 - ;End If -EndFunc ;==>__RichCom_Object_Release - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_GetInPlaceContext -; Description ...: -; Syntax.........: __RichCom_Object_GetInPlaceContext ( $pObject, $pPFrame, $pPDoc, $pFrameInfo ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_GetInPlaceContext($pObject, $pPFrame, $pPDoc, $pFrameInfo) - #forceref $pObject, $pPFrame, $pPDoc, $pFrameInfo - Return $_GCR_E_NOTIMPL -EndFunc ;==>__RichCom_Object_GetInPlaceContext - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_ShowContainerUI -; Description ...: -; Syntax.........: __RichCom_Object_ShowContainerUI ( $pObject, $bShow ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_ShowContainerUI($pObject, $bShow) - #forceref $pObject, $bShow - Return $_GCR_E_NOTIMPL -EndFunc ;==>__RichCom_Object_ShowContainerUI - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_QueryInsertObject -; Description ...: -; Syntax.........: __RichCom_Object_QueryInsertObject ( $pObject, $pClsid, $tStg, $vCp ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_QueryInsertObject($pObject, $pClsid, $tStg, $vCp) - #forceref $pObject, $pClsid, $tStg, $vCp - Return $_GCR_S_OK -EndFunc ;==>__RichCom_Object_QueryInsertObject - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_DeleteObject -; Description ...: -; Syntax.........: __RichCom_Object_DeleteObject ( $pObject, $pOleobj ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_DeleteObject($pObject, $pOleobj) - #forceref $pObject, $pOleobj - Return $_GCR_E_NOTIMPL -EndFunc ;==>__RichCom_Object_DeleteObject - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_QueryAcceptData -; Description ...: -; Syntax.........: __RichCom_Object_QueryAcceptData ( $pObject, $pDataobj, $pCfFormat, $vReco, bReally, $hMetaPict ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_QueryAcceptData($pObject, $pDataobj, $pCfFormat, $vReco, $bReally, $hMetaPict) - #forceref $pObject, $pDataobj, $pCfFormat, $vReco, $bReally, $hMetaPict - Return $_GCR_S_OK -EndFunc ;==>__RichCom_Object_QueryAcceptData - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_ContextSensitiveHelp -; Description ...: -; Syntax.........: __RichCom_Object_ContextSensitiveHelp ( $pObject, $bEnterMode ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_ContextSensitiveHelp($pObject, $bEnterMode) - #forceref $pObject, $bEnterMode - Return $_GCR_E_NOTIMPL -EndFunc ;==>__RichCom_Object_ContextSensitiveHelp - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_GetClipboardData -; Description ...: -; Syntax.........: __RichCom_Object_GetClipboardData ( $pObject, $pChrg, $vReco, $pPdataobj ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_GetClipboardData($pObject, $pChrg, $vReco, $pPdataobj) - #forceref $pObject, $pChrg, $vReco, $pPdataobj - Return $_GCR_E_NOTIMPL -EndFunc ;==>__RichCom_Object_GetClipboardData - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_GetDragDropEffect -; Description ...: -; Syntax.........: __RichCom_Object_GetDragDropEffect ( $pObject, $bDrag, $iGrfKeyState, $piEffect ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_GetDragDropEffect($pObject, $bDrag, $iGrfKeyState, $piEffect) - #forceref $pObject, $bDrag, $iGrfKeyState, $piEffect - Return $_GCR_E_NOTIMPL -EndFunc ;==>__RichCom_Object_GetDragDropEffect - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_GetContextMenu -; Description ...: -; Syntax.........: __RichCom_Object_GetContextMenu ( $pObject, $iSeltype, $pOleobj, $pChrg, $pHmenu ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_GetContextMenu($pObject, $iSeltype, $pOleobj, $pChrg, $pHmenu) - #forceref $pObject, $iSeltype, $pOleobj, $pChrg, $pHmenu - Return $_GCR_E_NOTIMPL -EndFunc ;==>__RichCom_Object_GetContextMenu - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __RichCom_Object_GetNewStorage -; Description ...: -; Syntax.........: __RichCom_Object_GetNewStorage ( $pObject, $pPstg ) -; Parameters ....: -; Return values .: -; Author ........: -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __RichCom_Object_GetNewStorage($pObject, $pPstg) - #forceref $pObject - ;If pCall_RichCom_CreateILockBytesOnHGlobal = 0 Or pCall_RichCom_StgCreateDocfileOnILockBytes = 0 Then Exit Function - Local $aSc = DllCall($__g_hLib_RichCom_OLE32, "dword", "CreateILockBytesOnHGlobal", "hwnd", 0, "int", 1, "ptr*", 0) - Local $pLockBytes = $aSc[3] - $aSc = $aSc[0] - ;Call Dword pCall_RichCom_CreateILockBytesOnHGlobal Using _ - ;RichCom_CreateILockBytesOnHGlobal( ByVal 0&, ByVal 1&, lpLockBytes ) To sc - If $aSc Then Return $aSc - $aSc = DllCall($__g_hLib_RichCom_OLE32, "dword", "StgCreateDocfileOnILockBytes", "ptr", $pLockBytes, "dword", BitOR(0x10, 2, 0x1000), "dword", 0, "ptr*", 0) - Local $tStg = DllStructCreate("ptr", $pPstg) - DllStructSetData($tStg, 1, $aSc[4]) - $aSc = $aSc[0] - ;Call Dword pCall_RichCom_StgCreateDocfileOnILockBytes Using _ - ;RichCom_StgCreateDocfileOnILockBytes( _ - ;@lpLockBytes _ - ;, ByVal %STGM_SHARE_EXCLUSIVE Or %STGM_READWRITE Or %STGM_CREATE _ - ;, ByVal 0& _ - ;, lplpstg _ - ;) To sc - If $aSc Then ; Call IUnknown->Release on $pLockBytes - Local $tObj = DllStructCreate("ptr", $pLockBytes) ; prepare access to vTable - Local $tUnknownFuncTable = DllStructCreate("ptr[3]", DllStructGetData($tObj, 1)) ; access IUnknown vTable - Local $pReleaseFunc = DllStructGetData($tUnknownFuncTable, 3) ; get address of IUnknwon->Release - DllCallAddress("long", $pReleaseFunc, "ptr", $pLockBytes) ; call release - EndIf - ;If sc Then Call Dword @@lpLockBytes[2] Using __RichCom_Object_Release( @lpLockBytes ) - Return $aSc -EndFunc ;==>__RichCom_Object_GetNewStorage diff --git a/build/Include/GuiScrollBars.au3 b/build/Include/GuiScrollBars.au3 deleted file mode 100644 index f3f3c2738..000000000 --- a/build/Include/GuiScrollBars.au3 +++ /dev/null @@ -1,450 +0,0 @@ -#include-once - -#include "ScrollbarsConstants.au3" -#include "StructureConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: ScrollBar -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with ScrollBar management. -; A scroll bar consists of a shaded shaft with an arrow button at each end and a scroll box (sometimes called a thumb) -; between the arrow buttons. A scroll bar represents the overall length or width of a data object in a window's client -; area, the scroll box represents the portion of the object that is visible in the client area. The position of the -; scroll box changes whenever the user scrolls a data object to display a different portion of it. The system also adjusts -; the size of a scroll bar's scroll box so that it indicates what portion of the entire data object is currently visible -; in the window. If most of the object is visible, the scroll box occupies most of the scroll bar shaft. Similarly, -; if only a small portion of the object is visible, the scroll box occupies a small part of the scroll bar shaft. -; Author(s) .....: Gary Frost -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -; 0 = hwnd;1 = xClientMax;2 cxChar;3 = cyChar;4 cxClient;5 = cyClient,6 = iHMax;7 = iVMax -Global $__g_aSB_WindowInfo[1][8] -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUIScrollBars_EnableScrollBar -; _GUIScrollBars_GetScrollBarInfoEx -; _GUIScrollBars_GetScrollBarRect -; _GUIScrollBars_GetScrollBarRGState -; _GUIScrollBars_GetScrollBarXYLineButton -; _GUIScrollBars_GetScrollBarXYThumbTop -; _GUIScrollBars_GetScrollBarXYThumbBottom -; _GUIScrollBars_GetScrollInfo -; _GUIScrollBars_GetScrollInfoEx -; _GUIScrollBars_GetScrollInfoPage -; _GUIScrollBars_GetScrollInfoPos -; _GUIScrollBars_GetScrollInfoMin -; _GUIScrollBars_GetScrollInfoMax -; _GUIScrollBars_GetScrollInfoTrackPos -; _GUIScrollBars_GetScrollPos -; _GUIScrollBars_GetScrollRange -; _GUIScrollBars_Init -; _GUIScrollBars_ScrollWindow -; _GUIScrollBars_SetScrollInfo -; _GUIScrollBars_SetScrollInfoMin -; _GUIScrollBars_SetScrollInfoMax -; _GUIScrollBars_SetScrollInfoPage -; _GUIScrollBars_SetScrollInfoPos -; _GUIScrollBars_SetScrollRange -; _GUIScrollBars_ShowScrollBar -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_EnableScrollBar($hWnd, $iSBflags = $SB_BOTH, $iArrows = $ESB_ENABLE_BOTH) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, False) - Local $aResult = DllCall("user32.dll", "bool", "EnableScrollBar", "hwnd", $hWnd, "uint", $iSBflags, "uint", $iArrows) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUIScrollBars_EnableScrollBar - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollBarInfoEx($hWnd, $iObject) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, 0) - Local $tSCROLLBARINFO = DllStructCreate($tagSCROLLBARINFO) - DllStructSetData($tSCROLLBARINFO, "cbSize", DllStructGetSize($tSCROLLBARINFO)) - Local $aResult = DllCall("user32.dll", "bool", "GetScrollBarInfo", "hwnd", $hWnd, "long", $iObject, "struct*", $tSCROLLBARINFO) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $tSCROLLBARINFO) -EndFunc ;==>_GUIScrollBars_GetScrollBarInfoEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollBarRect($hWnd, $iObject) - Local $aRect[4] - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, 0) - Local $tSCROLLBARINFO = _GUIScrollBars_GetScrollBarInfoEx($hWnd, $iObject) - If @error Then Return SetError(@error, @extended, 0) - $aRect[0] = DllStructGetData($tSCROLLBARINFO, "Left") - $aRect[1] = DllStructGetData($tSCROLLBARINFO, "Top") - $aRect[2] = DllStructGetData($tSCROLLBARINFO, "Right") - $aRect[3] = DllStructGetData($tSCROLLBARINFO, "Bottom") - Return $aRect -EndFunc ;==>_GUIScrollBars_GetScrollBarRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollBarRGState($hWnd, $iObject) - Local $aRGState[6] - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, 0) - Local $tSCROLLBARINFO = _GUIScrollBars_GetScrollBarInfoEx($hWnd, $iObject) - If @error Then Return SetError(@error, @extended, 0) - For $x = 0 To 5 - $aRGState[$x] = DllStructGetData($tSCROLLBARINFO, "rgstate", $x + 1) - Next - Return $aRGState -EndFunc ;==>_GUIScrollBars_GetScrollBarRGState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollBarXYLineButton($hWnd, $iObject) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $tSCROLLBARINFO = _GUIScrollBars_GetScrollBarInfoEx($hWnd, $iObject) - If @error Then Return SetError(@error, @extended, -1) - Return DllStructGetData($tSCROLLBARINFO, "dxyLineButton") -EndFunc ;==>_GUIScrollBars_GetScrollBarXYLineButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollBarXYThumbTop($hWnd, $iObject) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $tSCROLLBARINFO = _GUIScrollBars_GetScrollBarInfoEx($hWnd, $iObject) - If @error Then Return SetError(@error, @extended, -1) - Return DllStructGetData($tSCROLLBARINFO, "xyThumbTop") -EndFunc ;==>_GUIScrollBars_GetScrollBarXYThumbTop - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollBarXYThumbBottom($hWnd, $iObject) - If Not IsHWnd($hWnd) Then Return SetError(-1, -1, -1) - Local $tSCROLLBARINFO = _GUIScrollBars_GetScrollBarInfoEx($hWnd, $iObject) - If @error Then Return SetError(-1, -1, -1) - Return DllStructGetData($tSCROLLBARINFO, "xyThumbBottom") -EndFunc ;==>_GUIScrollBars_GetScrollBarXYThumbBottom - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollInfo($hWnd, $iBar, ByRef $tSCROLLINFO) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, False) - Local $aResult = DllCall("user32.dll", "bool", "GetScrollInfo", "hwnd", $hWnd, "int", $iBar, "struct*", $tSCROLLINFO) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUIScrollBars_GetScrollInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollInfoEx($hWnd, $iBar) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, 0) - Local $tSCROLLINFO = DllStructCreate($tagSCROLLINFO) - DllStructSetData($tSCROLLINFO, "cbSize", DllStructGetSize($tSCROLLINFO)) - DllStructSetData($tSCROLLINFO, "fMask", $SIF_ALL) - If Not _GUIScrollBars_GetScrollInfo($hWnd, $iBar, $tSCROLLINFO) Then Return SetError(@error, @extended, 0) - Return $tSCROLLINFO -EndFunc ;==>_GUIScrollBars_GetScrollInfoEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollInfoPage($hWnd, $iBar) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $iBar) - If @error Then Return SetError(@error, @extended, -1) - Return DllStructGetData($tSCROLLINFO, "nPage") -EndFunc ;==>_GUIScrollBars_GetScrollInfoPage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollInfoPos($hWnd, $iBar) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $iBar) - If @error Then Return SetError(@error, @extended, -1) - Return DllStructGetData($tSCROLLINFO, "nPos") -EndFunc ;==>_GUIScrollBars_GetScrollInfoPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollInfoMin($hWnd, $iBar) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $iBar) - If @error Then Return SetError(@error, @extended, -1) - Return DllStructGetData($tSCROLLINFO, "nMin") -EndFunc ;==>_GUIScrollBars_GetScrollInfoMin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollInfoMax($hWnd, $iBar) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $iBar) - If @error Then Return SetError(@error, @extended, -1) - Return DllStructGetData($tSCROLLINFO, "nMax") -EndFunc ;==>_GUIScrollBars_GetScrollInfoMax - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollInfoTrackPos($hWnd, $iBar) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $iBar) - If @error Then Return SetError(@error, @extended, -1) - Return DllStructGetData($tSCROLLINFO, "nTrackPos") -EndFunc ;==>_GUIScrollBars_GetScrollInfoTrackPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollPos($hWnd, $iBar) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $aResult = DllCall("user32.dll", "int", "GetScrollPos", "hwnd", $hWnd, "int", $iBar) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_GUIScrollBars_GetScrollPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_GetScrollRange($hWnd, $iBar) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $aResult = DllCall("user32.dll", "bool", "GetScrollRange", "hwnd", $hWnd, "int", $iBar, "int*", 0, "int*", 0) - If @error Then Return SetError(@error, @extended, -1) - Local $aMin_Max[2] - $aMin_Max[0] = $aResult[3] - $aMin_Max[1] = $aResult[4] - Return SetExtended($aResult[0], $aMin_Max) -EndFunc ;==>_GUIScrollBars_GetScrollRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_Init($hWnd, $iMaxH = -1, $iMaxV = -1) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, 0) - If $__g_aSB_WindowInfo[0][0] <> 0 Then ReDim $__g_aSB_WindowInfo[UBound($__g_aSB_WindowInfo) + 1][8] - - Local $tSCROLLINFO = DllStructCreate($tagSCROLLINFO) - Local $tRECT = DllStructCreate($tagRECT) - - Local $iIndex = UBound($__g_aSB_WindowInfo) - 1 - Local $iError, $iExtended - - $__g_aSB_WindowInfo[$iIndex][0] = $hWnd - $__g_aSB_WindowInfo[$iIndex][1] = $iMaxH - $__g_aSB_WindowInfo[$iIndex][6] = $iMaxH - $__g_aSB_WindowInfo[$iIndex][7] = $iMaxV - If $iMaxV = -1 Then $__g_aSB_WindowInfo[$iIndex][7] = 27 - - Local $hDC = DllCall("user32.dll", "handle", "GetDC", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended) - $hDC = $hDC[0] - - Local $tTEXTMETRIC = DllStructCreate($tagTEXTMETRIC) - - DllStructSetData($tSCROLLINFO, "cbSize", DllStructGetSize($tSCROLLINFO)) - - DllCall("gdi32.dll", "bool", "GetTextMetricsW", "handle", $hDC, "struct*", $tTEXTMETRIC) - If @error Then - $iError = @error - $iExtended = @extended - EndIf - - DllCall("user32.dll", "int", "ReleaseDC", "hwnd", $hWnd, "handle", $hDC) - ; Skip @error test as the results don't matter. - - ; Test previous error from GetTextMetrics call. - If $iError Then Return SetError($iError, $iExtended) - - Local $iUpperX, $iXAmount = DllStructGetData($tTEXTMETRIC, "tmAveCharWidth") - If BitAND(DllStructGetData($tTEXTMETRIC, "tmPitchAndFamily"), 1) Then - $iUpperX = 3 * $iXAmount / 2 - Else - $iUpperX = 2 * $iXAmount / 2 - EndIf - - Local $iYAmount = DllStructGetData($tTEXTMETRIC, "tmHeight") + DllStructGetData($tTEXTMETRIC, "tmExternalLeading") - - If $iMaxH = -1 Then $__g_aSB_WindowInfo[$iIndex][1] = 48 * $iXAmount + 12 * $iUpperX - $__g_aSB_WindowInfo[$iIndex][2] = $iXAmount - $__g_aSB_WindowInfo[$iIndex][3] = $iYAmount - - _GUIScrollBars_ShowScrollBar($hWnd, $SB_HORZ, False) - _GUIScrollBars_ShowScrollBar($hWnd, $SB_VERT, False) - _GUIScrollBars_ShowScrollBar($hWnd, $SB_HORZ) - _GUIScrollBars_ShowScrollBar($hWnd, $SB_VERT) - - DllCall("user32.dll", "bool", "GetClientRect", "hwnd", $hWnd, "struct*", $tRECT) - If @error Then Return SetError(@error, @extended) - - Local $iClientX = DllStructGetData($tRECT, "Right") - DllStructGetData($tRECT, "Left") - Local $iClientY = DllStructGetData($tRECT, "Bottom") - DllStructGetData($tRECT, "Top") - $__g_aSB_WindowInfo[$iIndex][4] = $iClientX - $__g_aSB_WindowInfo[$iIndex][5] = $iClientY - - $tSCROLLINFO = DllStructCreate($tagSCROLLINFO) - - ; Set the vertical scrolling range and page size - DllStructSetData($tSCROLLINFO, "fMask", BitOR($SIF_RANGE, $SIF_PAGE)) - DllStructSetData($tSCROLLINFO, "nMin", 0) - DllStructSetData($tSCROLLINFO, "nMax", $__g_aSB_WindowInfo[$iIndex][7]) - DllStructSetData($tSCROLLINFO, "nPage", $iClientY / $iYAmount) - _GUIScrollBars_SetScrollInfo($hWnd, $SB_VERT, $tSCROLLINFO) - - ; Set the horizontal scrolling range and page size - DllStructSetData($tSCROLLINFO, "fMask", BitOR($SIF_RANGE, $SIF_PAGE)) - DllStructSetData($tSCROLLINFO, "nMin", 0) - DllStructSetData($tSCROLLINFO, "nMax", 2 + $__g_aSB_WindowInfo[$iIndex][1] / $iXAmount) - DllStructSetData($tSCROLLINFO, "nPage", $iClientX / $iXAmount) - _GUIScrollBars_SetScrollInfo($hWnd, $SB_HORZ, $tSCROLLINFO) -EndFunc ;==>_GUIScrollBars_Init - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_ScrollWindow($hWnd, $iXAmount, $iYAmount) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, False) - Local $aResult = DllCall("user32.dll", "bool", "ScrollWindow", "hwnd", $hWnd, "int", $iXAmount, "int", $iYAmount, "ptr", 0, "ptr", 0) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUIScrollBars_ScrollWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_SetScrollInfo($hWnd, $iBar, $tSCROLLINFO, $bRedraw = True) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - DllStructSetData($tSCROLLINFO, "cbSize", DllStructGetSize($tSCROLLINFO)) - Local $aResult = DllCall("user32.dll", "int", "SetScrollInfo", "hwnd", $hWnd, "int", $iBar, "struct*", $tSCROLLINFO, "bool", $bRedraw) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_GUIScrollBars_SetScrollInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_SetScrollInfoMin($hWnd, $iBar, $iMin) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, False) - Local $aRange = _GUIScrollBars_GetScrollRange($hWnd, $iBar) - _GUIScrollBars_SetScrollRange($hWnd, $iBar, $iMin, $aRange[1]) - Local $aRange_check = _GUIScrollBars_GetScrollRange($hWnd, $iBar) - ; invalid range check if invalid reset to previous values - If $aRange[1] <> $aRange_check[1] Or $iMin <> $aRange_check[0] Then - _GUIScrollBars_SetScrollRange($hWnd, $iBar, $aRange[0], $aRange[1]) - Return False - EndIf - Return True -EndFunc ;==>_GUIScrollBars_SetScrollInfoMin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_SetScrollInfoMax($hWnd, $iBar, $iMax) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, False) - Local $aRange = _GUIScrollBars_GetScrollRange($hWnd, $iBar) - _GUIScrollBars_SetScrollRange($hWnd, $iBar, $aRange[0], $iMax) - Local $aRange_check = _GUIScrollBars_GetScrollRange($hWnd, $iBar) - ; invalid range check if invalid reset to previous values - If $aRange[0] <> $aRange_check[0] Or $iMax <> $aRange_check[1] Then - _GUIScrollBars_SetScrollRange($hWnd, $iBar, $aRange[0], $aRange[1]) - Return False - EndIf - Return True -EndFunc ;==>_GUIScrollBars_SetScrollInfoMax - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_SetScrollInfoPage($hWnd, $iBar, $iPage) - If Not IsHWnd($hWnd) Then Return SetError(-2, -1, -1) - Local $tSCROLLINFO = DllStructCreate($tagSCROLLINFO) - DllStructSetData($tSCROLLINFO, "fMask", $SIF_PAGE) - DllStructSetData($tSCROLLINFO, "nPage", $iPage) - Return _GUIScrollBars_SetScrollInfo($hWnd, $iBar, $tSCROLLINFO) -EndFunc ;==>_GUIScrollBars_SetScrollInfoPage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_SetScrollInfoPos($hWnd, $iBar, $iPos) - Local $iIndex = -1, $iYAmount, $iXAmount - - For $x = 0 To UBound($__g_aSB_WindowInfo) - 1 - If $__g_aSB_WindowInfo[$x][0] = $hWnd Then - $iIndex = $x - $iXAmount = $__g_aSB_WindowInfo[$iIndex][2] - $iYAmount = $__g_aSB_WindowInfo[$iIndex][3] - ExitLoop - EndIf - Next - If $iIndex = -1 Then Return 0 - - ; Save the position for comparison later on - Local $tSCROLLINFO = _GUIScrollBars_GetScrollInfoEx($hWnd, $iBar) - Local $iPosXY = DllStructGetData($tSCROLLINFO, "nPos") - - DllStructSetData($tSCROLLINFO, "fMask", $SIF_POS) - DllStructSetData($tSCROLLINFO, "nPos", $iPos) - _GUIScrollBars_SetScrollInfo($hWnd, $iBar, $tSCROLLINFO) - _GUIScrollBars_GetScrollInfo($hWnd, $iBar, $tSCROLLINFO) - ;// If the position has changed, scroll the window and update it - $iPos = DllStructGetData($tSCROLLINFO, "nPos") - If $iBar = $SB_HORZ Then - If ($iPos <> $iPosXY) Then _GUIScrollBars_ScrollWindow($hWnd, $iXAmount * ($iPosXY - $iPos), 0) - Else - If ($iPos <> $iPosXY) Then _GUIScrollBars_ScrollWindow($hWnd, 0, $iYAmount * ($iPosXY - $iPos)) - EndIf -EndFunc ;==>_GUIScrollBars_SetScrollInfoPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_SetScrollRange($hWnd, $iBar, $iMinPos, $iMaxPos) - Local $aResult = DllCall("user32.dll", "bool", "SetScrollRange", "hwnd", $hWnd, "int", $iBar, "int", $iMinPos, "int", $iMaxPos, "bool", True) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUIScrollBars_SetScrollRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIScrollBars_ShowScrollBar($hWnd, $iBar, $bShow = True) - Local $aResult = DllCall("user32.dll", "bool", "ShowScrollBar", "hwnd", $hWnd, "int", $iBar, "bool", $bShow) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_GUIScrollBars_ShowScrollBar diff --git a/build/Include/GuiSlider.au3 b/build/Include/GuiSlider.au3 deleted file mode 100644 index ba7fbe2c9..000000000 --- a/build/Include/GuiSlider.au3 +++ /dev/null @@ -1,534 +0,0 @@ -#include-once - -#include "SendMessage.au3" -#include "SliderConstants.au3" -#include "StructureConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Slider -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Slider Control "Trackbar" management. -; Author(s) .....: Gary Frost (gafrost) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hSLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__SLIDERCONSTANT_ClassName = "msctls_trackbar32" -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlSlider_ClearSel -; _GUICtrlSlider_ClearTics -; _GUICtrlSlider_Create -; _GUICtrlSlider_Destroy -; _GUICtrlSlider_GetBuddy -; _GUICtrlSlider_GetChannelRect -; _GUICtrlSlider_GetChannelRectEx -; _GUICtrlSlider_GetLineSize -; _GUICtrlSlider_GetLogicalTics -; _GUICtrlSlider_GetNumTics -; _GUICtrlSlider_GetPageSize -; _GUICtrlSlider_GetPos -; _GUICtrlSlider_GetRange -; _GUICtrlSlider_GetRangeMax -; _GUICtrlSlider_GetRangeMin -; _GUICtrlSlider_GetSel -; _GUICtrlSlider_GetSelEnd -; _GUICtrlSlider_GetSelStart -; _GUICtrlSlider_GetThumbLength -; _GUICtrlSlider_GetThumbRect -; _GUICtrlSlider_GetThumbRectEx -; _GUICtrlSlider_GetTic -; _GUICtrlSlider_GetTicPos -; _GUICtrlSlider_GetToolTips -; _GUICtrlSlider_GetUnicodeFormat -; _GUICtrlSlider_SetBuddy -; _GUICtrlSlider_SetLineSize -; _GUICtrlSlider_SetPageSize -; _GUICtrlSlider_SetPos -; _GUICtrlSlider_SetRange -; _GUICtrlSlider_SetRangeMax -; _GUICtrlSlider_SetRangeMin -; _GUICtrlSlider_SetSel -; _GUICtrlSlider_SetSelEnd -; _GUICtrlSlider_SetSelStart -; _GUICtrlSlider_SetThumbLength -; _GUICtrlSlider_SetTic -; _GUICtrlSlider_SetTicFreq -; _GUICtrlSlider_SetTipSide -; _GUICtrlSlider_SetToolTips -; _GUICtrlSlider_SetUnicodeFormat -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_ClearSel($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_CLEARSEL, True) -EndFunc ;==>_GUICtrlSlider_ClearSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_ClearTics($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_CLEARTICS, True) -EndFunc ;==>_GUICtrlSlider_ClearTics - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_Create($hWnd, $iX, $iY, $iWidth = 100, $iHeight = 20, $iStyle = $TBS_AUTOTICKS, $iExStyle = 0x00000000) - If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0) ; Invalid Window handle for _GUICtrlSlider_Create 1st parameter - - If $iWidth = -1 Then $iWidth = 100 - If $iHeight = -1 Then $iHeight = 20 - If $iStyle = -1 Then $iStyle = $TBS_AUTOTICKS - If $iExStyle = -1 Then $iExStyle = 0x00000000 - - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hSlider = _WinAPI_CreateWindowEx($iExStyle, $__SLIDERCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _SendMessage($hSlider, $TBM_SETRANGE, True, _WinAPI_MakeLong(0, 100)); // min. & max. positions - _GUICtrlSlider_SetTicFreq($hSlider, 5) - Return $hSlider -EndFunc ;==>_GUICtrlSlider_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__SLIDERCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hSLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlSlider_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetBuddy($hWnd, $bLocation) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETBUDDY, $bLocation, 0, 0, "wparam", "lparam", "hwnd") -EndFunc ;==>_GUICtrlSlider_GetBuddy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetChannelRect($hWnd) - Local $tRECT = _GUICtrlSlider_GetChannelRectEx($hWnd) - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlSlider_GetChannelRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetChannelRectEx($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tRECT = DllStructCreate($tagRECT) - _SendMessage($hWnd, $TBM_GETCHANNELRECT, 0, $tRECT, 0, "wparam", "struct*") - Return $tRECT -EndFunc ;==>_GUICtrlSlider_GetChannelRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetLineSize($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETLINESIZE) -EndFunc ;==>_GUICtrlSlider_GetLineSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetLogicalTics($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iArraySize = _GUICtrlSlider_GetNumTics($hWnd) - 2 - Local $aTics[$iArraySize] - - Local $pArray = _SendMessage($hWnd, $TBM_GETPTICS) - If @error Then Return SetError(@error, @extended, $aTics) - Local $tArray = DllStructCreate("dword[" & $iArraySize & "]", $pArray) - For $x = 1 To $iArraySize - $aTics[$x - 1] = _GUICtrlSlider_GetTicPos($hWnd, DllStructGetData($tArray, 1, $x)) - Next - Return $aTics -EndFunc ;==>_GUICtrlSlider_GetLogicalTics - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetNumTics($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETNUMTICS) -EndFunc ;==>_GUICtrlSlider_GetNumTics - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetPageSize($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETPAGESIZE) -EndFunc ;==>_GUICtrlSlider_GetPageSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetPos($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETPOS) -EndFunc ;==>_GUICtrlSlider_GetPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetRange($hWnd) - Local $aMinMax[2] - $aMinMax[0] = _GUICtrlSlider_GetRangeMin($hWnd) - $aMinMax[1] = _GUICtrlSlider_GetRangeMax($hWnd) - Return $aMinMax -EndFunc ;==>_GUICtrlSlider_GetRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetRangeMax($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETRANGEMAX) -EndFunc ;==>_GUICtrlSlider_GetRangeMax - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetRangeMin($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETRANGEMIN) -EndFunc ;==>_GUICtrlSlider_GetRangeMin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetSel($hWnd) - Local $aSelStartEnd[2] - $aSelStartEnd[0] = _GUICtrlSlider_GetSelStart($hWnd) - $aSelStartEnd[1] = _GUICtrlSlider_GetSelEnd($hWnd) - - Return $aSelStartEnd -EndFunc ;==>_GUICtrlSlider_GetSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetSelEnd($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETSELEND) -EndFunc ;==>_GUICtrlSlider_GetSelEnd - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetSelStart($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETSELSTART) -EndFunc ;==>_GUICtrlSlider_GetSelStart - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetThumbLength($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETTHUMBLENGTH) -EndFunc ;==>_GUICtrlSlider_GetThumbLength - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetThumbRect($hWnd) - Local $tRECT = _GUICtrlSlider_GetThumbRectEx($hWnd) - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlSlider_GetThumbRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetThumbRectEx($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tRECT = DllStructCreate($tagRECT) - _SendMessage($hWnd, $TBM_GETTHUMBRECT, 0, $tRECT, 0, "wparam", "struct*") - Return $tRECT -EndFunc ;==>_GUICtrlSlider_GetThumbRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetTic($hWnd, $iTic) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETTIC, $iTic) -EndFunc ;==>_GUICtrlSlider_GetTic - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetTicPos($hWnd, $iTic) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETTICPOS, $iTic) -EndFunc ;==>_GUICtrlSlider_GetTicPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetToolTips($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETTOOLTIPS, 0, 0, 0, "wparam", "lparam", "hwnd") -EndFunc ;==>_GUICtrlSlider_GetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_GetUnicodeFormat($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_GETUNICODEFORMAT) <> 0 -EndFunc ;==>_GUICtrlSlider_GetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetBuddy($hWnd, $bLocation, $hBuddy) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - If Not IsHWnd($hBuddy) Then $hBuddy = GUICtrlGetHandle($hBuddy) - - Return _SendMessage($hWnd, $TBM_SETBUDDY, $bLocation, $hBuddy, 0, "wparam", "hwnd", "hwnd") -EndFunc ;==>_GUICtrlSlider_SetBuddy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetLineSize($hWnd, $iLineSize) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_SETLINESIZE, 0, $iLineSize) -EndFunc ;==>_GUICtrlSlider_SetLineSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetPageSize($hWnd, $iPageSize) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_SETPAGESIZE, 0, $iPageSize) -EndFunc ;==>_GUICtrlSlider_SetPageSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetPos($hWnd, $iPosition) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETPOS, True, $iPosition) -EndFunc ;==>_GUICtrlSlider_SetPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetRange($hWnd, $iMinimum, $iMaximum) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETRANGE, True, _WinAPI_MakeLong($iMinimum, $iMaximum)) -EndFunc ;==>_GUICtrlSlider_SetRange - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetRangeMax($hWnd, $iMaximum) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETRANGEMAX, True, $iMaximum) -EndFunc ;==>_GUICtrlSlider_SetRangeMax - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetRangeMin($hWnd, $iMinimum) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETRANGEMIN, True, $iMinimum) -EndFunc ;==>_GUICtrlSlider_SetRangeMin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetSel($hWnd, $iMinimum, $iMaximum) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETSEL, True, _WinAPI_MakeLong($iMinimum, $iMaximum)) -EndFunc ;==>_GUICtrlSlider_SetSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetSelEnd($hWnd, $iMaximum) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETSELEND, True, $iMaximum) -EndFunc ;==>_GUICtrlSlider_SetSelEnd - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetSelStart($hWnd, $iMinimum) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETSELSTART, True, $iMinimum) -EndFunc ;==>_GUICtrlSlider_SetSelStart - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetThumbLength($hWnd, $iLength) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETTHUMBLENGTH, $iLength) -EndFunc ;==>_GUICtrlSlider_SetThumbLength - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetTic($hWnd, $iPosition) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETTIC, 0, $iPosition) -EndFunc ;==>_GUICtrlSlider_SetTic - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetTicFreq($hWnd, $iFreg) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETTICFREQ, $iFreg) -EndFunc ;==>_GUICtrlSlider_SetTicFreq - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetTipSide($hWnd, $iLocation) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETTIPSIDE, $iLocation) -EndFunc ;==>_GUICtrlSlider_SetTipSide - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetToolTips($hWnd, $hWndTT) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TBM_SETTOOLTIPS, $hWndTT, 0, 0, "hwnd") -EndFunc ;==>_GUICtrlSlider_SetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlSlider_SetUnicodeFormat($hWnd, $bUnicode) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TBM_SETUNICODEFORMAT, $bUnicode) <> 0 -EndFunc ;==>_GUICtrlSlider_SetUnicodeFormat diff --git a/build/Include/GuiStatusBar.au3 b/build/Include/GuiStatusBar.au3 deleted file mode 100644 index b089c773d..000000000 --- a/build/Include/GuiStatusBar.au3 +++ /dev/null @@ -1,640 +0,0 @@ -#include-once - -#include "Memory.au3" -#include "SendMessage.au3" -#include "StatusBarConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: StatusBar -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with StatusBar control management. -; A status bar is a horizontal window at the bottom of a parent window in which an application can display -; various kinds of status information. The status bar can be divided into parts to display more than one type -; of information -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hSBLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__STATUSBARCONSTANT_ClassName = "msctls_statusbar32" -Global Const $__STATUSBARCONSTANT_WM_SIZE = 0x05 -Global Const $__STATUSBARCONSTANT_CLR_DEFAULT = 0xFF000000 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlStatusBar_Create -; _GUICtrlStatusBar_Destroy -; _GUICtrlStatusBar_EmbedControl -; _GUICtrlStatusBar_GetBorders -; _GUICtrlStatusBar_GetBordersHorz -; _GUICtrlStatusBar_GetBordersRect -; _GUICtrlStatusBar_GetBordersVert -; _GUICtrlStatusBar_GetCount -; _GUICtrlStatusBar_GetHeight -; _GUICtrlStatusBar_GetIcon -; _GUICtrlStatusBar_GetParts -; _GUICtrlStatusBar_GetRect -; _GUICtrlStatusBar_GetRectEx -; _GUICtrlStatusBar_GetText -; _GUICtrlStatusBar_GetTextFlags -; _GUICtrlStatusBar_GetTextLength -; _GUICtrlStatusBar_GetTextLengthEx -; _GUICtrlStatusBar_GetTipText -; _GUICtrlStatusBar_GetUnicodeFormat -; _GUICtrlStatusBar_GetWidth -; _GUICtrlStatusBar_IsSimple -; _GUICtrlStatusBar_Resize -; _GUICtrlStatusBar_SetBkColor -; _GUICtrlStatusBar_SetIcon -; _GUICtrlStatusBar_SetMinHeight -; _GUICtrlStatusBar_SetParts -; _GUICtrlStatusBar_SetSimple -; _GUICtrlStatusBar_SetText -; _GUICtrlStatusBar_SetTipText -; _GUICtrlStatusBar_SetUnicodeFormat -; _GUICtrlStatusBar_ShowHide -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagBORDERS -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagBORDERS -; Description ...: Structure that recieves the current widths of the horizontal and vertical borders of a status window -; Fields ........: BX - Width of the horizontal border -; BY - Width of the vertical border -; RX - Width of the border between rectangles -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagBORDERS = "int BX;int BY;int RX" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost, Steve Podhajecki -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlStatusBar_Create($hWnd, $vPartEdge = -1, $vPartText = "", $iStyles = -1, $iExStyles = 0x00000000) - If Not IsHWnd($hWnd) Then Return SetError(1, 0, 0) ; Invalid Window handle for _GUICtrlStatusBar_Create 1st parameter - - Local $iStyle = BitOR($__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE) - - If $iStyles = -1 Then $iStyles = 0x00000000 - If $iExStyles = -1 Then $iExStyles = 0x00000000 - - Local $aPartWidth[1], $aPartText[1] - If @NumParams > 1 Then ; more than param passed in - ; setting up arrays - If IsArray($vPartEdge) Then ; setup part width array - $aPartWidth = $vPartEdge - Else - $aPartWidth[0] = $vPartEdge - EndIf - If @NumParams = 2 Then ; part text was not passed in so set array to same size as part width array - ReDim $aPartText[UBound($aPartWidth)] - Else - If IsArray($vPartText) Then ; setup part text array - $aPartText = $vPartText - Else - $aPartText[0] = $vPartText - EndIf - ; if partwidth array is not same size as parttext array use larger sized array for size - If UBound($aPartWidth) <> UBound($aPartText) Then - Local $iLast - If UBound($aPartWidth) > UBound($aPartText) Then ; width array is larger - $iLast = UBound($aPartText) - ReDim $aPartText[UBound($aPartWidth)] - Else ; text array is larger - $iLast = UBound($aPartWidth) - ReDim $aPartWidth[UBound($aPartText)] - For $x = $iLast To UBound($aPartWidth) - 1 - $aPartWidth[$x] = $aPartWidth[$x - 1] + 75 - Next - $aPartWidth[UBound($aPartText) - 1] = -1 - EndIf - EndIf - EndIf - If Not IsHWnd($hWnd) Then $hWnd = HWnd($hWnd) - If @NumParams > 3 Then $iStyle = BitOR($iStyle, $iStyles) - EndIf - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hWndSBar = _WinAPI_CreateWindowEx($iExStyles, $__STATUSBARCONSTANT_ClassName, "", $iStyle, 0, 0, 0, 0, $hWnd, $nCtrlID) - If @error Then Return SetError(@error, @extended, 0) - - If @NumParams > 1 Then ; set the parts/text - _GUICtrlStatusBar_SetParts($hWndSBar, UBound($aPartWidth), $aPartWidth) - For $x = 0 To UBound($aPartText) - 1 - _GUICtrlStatusBar_SetText($hWndSBar, $aPartText[$x], $x) - Next - EndIf - Return $hWndSBar -EndFunc ;==>_GUICtrlStatusBar_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__STATUSBARCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hSBLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlStatusBar_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_EmbedControl($hWnd, $iPart, $hControl, $iFit = 4) - Local $aRect = _GUICtrlStatusBar_GetRect($hWnd, $iPart) - Local $iBarX = $aRect[0] - Local $iBarY = $aRect[1] - Local $iBarW = $aRect[2] - $iBarX - Local $iBarH = $aRect[3] - $iBarY - - Local $iConX = $iBarX - Local $iConY = $iBarY - Local $iConW = _WinAPI_GetWindowWidth($hControl) - Local $iConH = _WinAPI_GetWindowHeight($hControl) - - If $iConW > $iBarW Then $iConW = $iBarW - If $iConH > $iBarH Then $iConH = $iBarH - Local $iPadX = ($iBarW - $iConW) / 2 - Local $iPadY = ($iBarH - $iConH) / 2 - If $iPadX < 0 Then $iPadX = 0 - If $iPadY < 0 Then $iPadY = 0 - - If BitAND($iFit, 1) = 1 Then $iConX = $iBarX + $iPadX - If BitAND($iFit, 2) = 2 Then $iConY = $iBarY + $iPadY - If BitAND($iFit, 4) = 4 Then - $iPadX = _GUICtrlStatusBar_GetBordersRect($hWnd) - $iPadY = _GUICtrlStatusBar_GetBordersVert($hWnd) - $iConX = $iBarX - If _GUICtrlStatusBar_IsSimple($hWnd) Then $iConX += $iPadX - $iConY = $iBarY + $iPadY - $iConW = $iBarW - ($iPadX * 2) - $iConH = $iBarH - ($iPadY * 2) - EndIf - - _WinAPI_SetParent($hControl, $hWnd) - _WinAPI_MoveWindow($hControl, $iConX, $iConY, $iConW, $iConH) -EndFunc ;==>_GUICtrlStatusBar_EmbedControl - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetBorders($hWnd) - Local $tBorders = DllStructCreate($tagBORDERS) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hSBLastWnd) Then - $iRet = _SendMessage($hWnd, $SB_GETBORDERS, 0, $tBorders, 0, "wparam", "struct*") - Else - Local $iSize = DllStructGetSize($tBorders) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - $iRet = _SendMessage($hWnd, $SB_GETBORDERS, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tBorders, $iSize) - _MemFree($tMemMap) - EndIf - Local $aBorders[3] - If $iRet = 0 Then Return SetError(-1, -1, $aBorders) - $aBorders[0] = DllStructGetData($tBorders, "BX") - $aBorders[1] = DllStructGetData($tBorders, "BY") - $aBorders[2] = DllStructGetData($tBorders, "RX") - Return $aBorders -EndFunc ;==>_GUICtrlStatusBar_GetBorders - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetBordersHorz($hWnd) - Local $aBorders = _GUICtrlStatusBar_GetBorders($hWnd) - Return SetError(@error, @extended, $aBorders[0]) -EndFunc ;==>_GUICtrlStatusBar_GetBordersHorz - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetBordersRect($hWnd) - Local $aBorders = _GUICtrlStatusBar_GetBorders($hWnd) - Return SetError(@error, @extended, $aBorders[2]) -EndFunc ;==>_GUICtrlStatusBar_GetBordersRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetBordersVert($hWnd) - Local $aBorders = _GUICtrlStatusBar_GetBorders($hWnd) - Return SetError(@error, @extended, $aBorders[1]) -EndFunc ;==>_GUICtrlStatusBar_GetBordersVert - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetCount($hWnd) - Return _SendMessage($hWnd, $SB_GETPARTS) -EndFunc ;==>_GUICtrlStatusBar_GetCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) Removed dot notation -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetHeight($hWnd) - Local $tRECT = _GUICtrlStatusBar_GetRectEx($hWnd, 0) - Return DllStructGetData($tRECT, "Bottom") - DllStructGetData($tRECT, "Top") - (_GUICtrlStatusBar_GetBordersVert($hWnd) * 2) -EndFunc ;==>_GUICtrlStatusBar_GetHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Steve Podhajecki -; Modified.......: Gary Frost (GaryFrost) -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetIcon($hWnd, $iIndex = 0) - Return _SendMessage($hWnd, $SB_GETICON, $iIndex, 0, 0, "wparam", "lparam", "handle") -EndFunc ;==>_GUICtrlStatusBar_GetIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetParts($hWnd) - Local $iCount = _GUICtrlStatusBar_GetCount($hWnd) - Local $tParts = DllStructCreate("int[" & $iCount & "]") - Local $aParts[$iCount + 1] - If _WinAPI_InProcess($hWnd, $__g_hSBLastWnd) Then - $aParts[0] = _SendMessage($hWnd, $SB_GETPARTS, $iCount, $tParts, 0, "wparam", "struct*") - Else - Local $iParts = DllStructGetSize($tParts) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iParts, $tMemMap) - $aParts[0] = _SendMessage($hWnd, $SB_GETPARTS, $iCount, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tParts, $iParts) - _MemFree($tMemMap) - EndIf - For $iI = 1 To $iCount - $aParts[$iI] = DllStructGetData($tParts, 1, $iI) - Next - Return $aParts -EndFunc ;==>_GUICtrlStatusBar_GetParts - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetRect($hWnd, $iPart) - Local $tRECT = _GUICtrlStatusBar_GetRectEx($hWnd, $iPart) - If @error Then Return SetError(@error, 0, 0) - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlStatusBar_GetRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetRectEx($hWnd, $iPart) - Local $tRECT = DllStructCreate($tagRECT) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hSBLastWnd) Then - $iRet = _SendMessage($hWnd, $SB_GETRECT, $iPart, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - $iRet = _SendMessage($hWnd, $SB_GETRECT, $iPart, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Return SetError($iRet = 0, 0, $tRECT) -EndFunc ;==>_GUICtrlStatusBar_GetRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetText($hWnd, $iPart) - Local $bUnicode = _GUICtrlStatusBar_GetUnicodeFormat($hWnd) - - Local $iBuffer = _GUICtrlStatusBar_GetTextLength($hWnd, $iPart) + 1 - If $iBuffer = 1 Then Return SetError(1, 0, "") - - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - If _WinAPI_InProcess($hWnd, $__g_hSBLastWnd) Then - _SendMessage($hWnd, $SB_GETTEXTW, $iPart, $tBuffer, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - If $bUnicode Then - _SendMessage($hWnd, $SB_GETTEXTW, $iPart, $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $SB_GETTEXT, $iPart, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>_GUICtrlStatusBar_GetText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetTextFlags($hWnd, $iPart) - If _GUICtrlStatusBar_GetUnicodeFormat($hWnd) Then - Return _SendMessage($hWnd, $SB_GETTEXTLENGTHW, $iPart) - Else - Return _SendMessage($hWnd, $SB_GETTEXTLENGTH, $iPart) - EndIf -EndFunc ;==>_GUICtrlStatusBar_GetTextFlags - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetTextLength($hWnd, $iPart) - Return _WinAPI_LoWord(_GUICtrlStatusBar_GetTextFlags($hWnd, $iPart)) -EndFunc ;==>_GUICtrlStatusBar_GetTextLength - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetTextLengthEx($hWnd, $iPart) - Return _WinAPI_HiWord(_GUICtrlStatusBar_GetTextFlags($hWnd, $iPart)) -EndFunc ;==>_GUICtrlStatusBar_GetTextLengthEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (GaryFrost) -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetTipText($hWnd, $iPart) - Local $bUnicode = _GUICtrlStatusBar_GetUnicodeFormat($hWnd) - - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[4096]") - Else - $tBuffer = DllStructCreate("char Text[4096]") - EndIf - If _WinAPI_InProcess($hWnd, $__g_hSBLastWnd) Then - _SendMessage($hWnd, $SB_GETTIPTEXTW, _WinAPI_MakeLong($iPart, 4096), $tBuffer, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, 4096, $tMemMap) - If $bUnicode Then - _SendMessage($hWnd, $SB_GETTIPTEXTW, _WinAPI_MakeLong($iPart, 4096), $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $SB_GETTIPTEXTA, _WinAPI_MakeLong($iPart, 4096), $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tBuffer, 4096) - _MemFree($tMemMap) - EndIf - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>_GUICtrlStatusBar_GetTipText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetUnicodeFormat($hWnd) - Return _SendMessage($hWnd, $SB_GETUNICODEFORMAT) <> 0 -EndFunc ;==>_GUICtrlStatusBar_GetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) Removed dot notation -; =============================================================================================================================== -Func _GUICtrlStatusBar_GetWidth($hWnd, $iPart) - Local $tRECT = _GUICtrlStatusBar_GetRectEx($hWnd, $iPart) - Return DllStructGetData($tRECT, "Right") - DllStructGetData($tRECT, "Left") - (_GUICtrlStatusBar_GetBordersHorz($hWnd) * 2) -EndFunc ;==>_GUICtrlStatusBar_GetWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_IsSimple($hWnd) - Return _SendMessage($hWnd, $SB_ISSIMPLE) <> 0 -EndFunc ;==>_GUICtrlStatusBar_IsSimple - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_Resize($hWnd) - _SendMessage($hWnd, $__STATUSBARCONSTANT_WM_SIZE) -EndFunc ;==>_GUICtrlStatusBar_Resize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlStatusBar_SetBkColor($hWnd, $iColor) - $iColor = _SendMessage($hWnd, $SB_SETBKCOLOR, 0, $iColor) - If $iColor = $__STATUSBARCONSTANT_CLR_DEFAULT Then Return '0x' & Hex($__STATUSBARCONSTANT_CLR_DEFAULT) - Return $iColor -EndFunc ;==>_GUICtrlStatusBar_SetBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_SetIcon($hWnd, $iPart, $hIcon = -1, $sIconFile = "") - If $hIcon = -1 Then Return _SendMessage($hWnd, $SB_SETICON, $iPart, $hIcon, 0, "wparam", "handle") <> 0 ; Remove Icon - If StringLen($sIconFile) <= 0 Then Return _SendMessage($hWnd, $SB_SETICON, $iPart, $hIcon) <> 0 ; set icon from icon handle - ; set icon from file - Local $tIcon = DllStructCreate("handle") - Local $vResult = DllCall("shell32.dll", "uint", "ExtractIconExW", "wstr", $sIconFile, "int", $hIcon, "ptr", 0, "struct*", $tIcon, "uint", 1) - If @error Then Return SetError(@error, @extended, False) - $vResult = $vResult[0] - If $vResult > 0 Then $vResult = _SendMessage($hWnd, $SB_SETICON, $iPart, DllStructGetData($tIcon, 1), 0, "wparam", "handle") - DllCall("user32.dll", "bool", "DestroyIcon", "handle", DllStructGetData($tIcon, 1)) - ; No need to test @error. - Return $vResult -EndFunc ;==>_GUICtrlStatusBar_SetIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_SetMinHeight($hWnd, $iMinHeight) - _SendMessage($hWnd, $SB_SETMINHEIGHT, $iMinHeight) - _GUICtrlStatusBar_Resize($hWnd) -EndFunc ;==>_GUICtrlStatusBar_SetMinHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_SetParts($hWnd, $aParts = -1, $aPartWidth = 25) - ;== start sizing parts - Local $tParts, $iParts = 1 - If IsArray($aParts) <> 0 Then ; adding array of parts (contains widths) - $aParts[UBound($aParts) - 1] = -1 - $iParts = UBound($aParts) - $tParts = DllStructCreate("int[" & $iParts & "]") - For $x = 0 To $iParts - 2 - DllStructSetData($tParts, 1, $aParts[$x], $x + 1) - Next - DllStructSetData($tParts, 1, -1, $iParts) - ElseIf IsArray($aPartWidth) <> 0 Then ; adding array of part widths (make parts an array) - $iParts = UBound($aPartWidth) - $tParts = DllStructCreate("int[" & $iParts & "]") - For $x = 0 To $iParts - 2 - DllStructSetData($tParts, 1, $aPartWidth[$x], $x + 1) - Next - DllStructSetData($tParts, 1, -1, $iParts) - ElseIf $aParts > 1 Then ; adding parts with default width - $iParts = $aParts - $tParts = DllStructCreate("int[" & $iParts & "]") - For $x = 1 To $iParts - 1 - DllStructSetData($tParts, 1, $aPartWidth * $x, $x) - Next - DllStructSetData($tParts, 1, -1, $iParts) - Else ; defaulting to 1 part - $tParts = DllStructCreate("int") - DllStructSetData($tParts, $iParts, -1) - EndIf - ;== end set sizing - If _WinAPI_InProcess($hWnd, $__g_hSBLastWnd) Then - _SendMessage($hWnd, $SB_SETPARTS, $iParts, $tParts, 0, "wparam", "struct*") - Else - Local $iSize = DllStructGetSize($tParts) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - _MemWrite($tMemMap, $tParts) - _SendMessage($hWnd, $SB_SETPARTS, $iParts, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - _GUICtrlStatusBar_Resize($hWnd) - Return True -EndFunc ;==>_GUICtrlStatusBar_SetParts - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_SetSimple($hWnd, $bSimple = True) - _SendMessage($hWnd, $SB_SIMPLE, $bSimple) -EndFunc ;==>_GUICtrlStatusBar_SetSimple - -; #FUNCTION# ==================================================================================================================== -; Author ........: rysiora, JdeB, tonedef, Gary Frost (gafrost) -; Modified.......: Gary Frost (gafrost) re-written also added $iUFlag -; =============================================================================================================================== -Func _GUICtrlStatusBar_SetText($hWnd, $sText = "", $iPart = 0, $iUFlag = 0) - Local $bUnicode = _GUICtrlStatusBar_GetUnicodeFormat($hWnd) - - Local $iBuffer = StringLen($sText) + 1 - Local $tText - If $bUnicode Then - $tText = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tText = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tText, "Text", $sText) - If _GUICtrlStatusBar_IsSimple($hWnd) Then $iPart = $SB_SIMPLEID - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hSBLastWnd) Then - $iRet = _SendMessage($hWnd, $SB_SETTEXTW, BitOR($iPart, $iUFlag), $tText, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tText) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $SB_SETTEXTW, BitOR($iPart, $iUFlag), $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $SB_SETTEXT, BitOR($iPart, $iUFlag), $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlStatusBar_SetText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_SetTipText($hWnd, $iPart, $sText) - Local $bUnicode = _GUICtrlStatusBar_GetUnicodeFormat($hWnd) - - Local $iBuffer = StringLen($sText) + 1 - Local $tText - If $bUnicode Then - $tText = DllStructCreate("wchar TipText[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tText = DllStructCreate("char TipText[" & $iBuffer & "]") - EndIf - DllStructSetData($tText, "TipText", $sText) - If _WinAPI_InProcess($hWnd, $__g_hSBLastWnd) Then - _SendMessage($hWnd, $SB_SETTIPTEXTW, $iPart, $tText, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tText, $pMemory, $iBuffer) - If $bUnicode Then - _SendMessage($hWnd, $SB_SETTIPTEXTW, $iPart, $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $SB_SETTIPTEXTA, $iPart, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUICtrlStatusBar_SetTipText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_SetUnicodeFormat($hWnd, $bUnicode = True) - Return _SendMessage($hWnd, $SB_SETUNICODEFORMAT, $bUnicode) -EndFunc ;==>_GUICtrlStatusBar_SetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlStatusBar_ShowHide($hWnd, $iState) - If $iState <> @SW_HIDE And $iState <> @SW_SHOW Then Return SetError(1, 1, False) - Return _WinAPI_ShowWindow($hWnd, $iState) -EndFunc ;==>_GUICtrlStatusBar_ShowHide diff --git a/build/Include/GuiTab.au3 b/build/Include/GuiTab.au3 deleted file mode 100644 index 346228a3d..000000000 --- a/build/Include/GuiTab.au3 +++ /dev/null @@ -1,862 +0,0 @@ -#include-once - -#include "Memory.au3" -#include "SendMessage.au3" -#include "TabConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Tab_Control -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Tab control management. -; A tab control is analogous to the dividers in a notebook or the labels in a file cabinet. By using a tab -; control, an application can define multiple pages for the same area of a window or dialog box. Each page -; consists of a certain type of information or a group of controls that the application displays when the user -; selects the corresponding tab. -; Author(s) .....: Paul Campbell (PaulIA), Gary Frost (gafrost) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hTabLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__TABCONSTANT_ClassName = "SysTabControl32" -Global Const $__TABCONSTANT_WS_CLIPSIBLINGS = 0x04000000 -Global Const $__TABCONSTANT_WM_NOTIFY = 0x004E -Global Const $__TABCONSTANT_DEFAULT_GUI_FONT = 17 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlTab_ActivateTab -; _GUICtrlTab_ClickTab -; _GUICtrlTab_Create -; _GUICtrlTab_DeleteAllItems -; _GUICtrlTab_DeleteItem -; _GUICtrlTab_DeselectAll -; _GUICtrlTab_Destroy -; _GUICtrlTab_FindTab -; _GUICtrlTab_GetCurFocus -; _GUICtrlTab_GetCurSel -; _GUICtrlTab_GetDisplayRect -; _GUICtrlTab_GetDisplayRectEx -; _GUICtrlTab_GetExtendedStyle -; _GUICtrlTab_GetImageList -; _GUICtrlTab_GetItem -; _GUICtrlTab_GetItemCount -; _GUICtrlTab_GetItemImage -; _GUICtrlTab_GetItemParam -; _GUICtrlTab_GetItemRect -; _GUICtrlTab_GetItemRectEx -; _GUICtrlTab_GetItemState -; _GUICtrlTab_GetItemText -; _GUICtrlTab_GetRowCount -; _GUICtrlTab_GetToolTips -; _GUICtrlTab_GetUnicodeFormat -; _GUICtrlTab_HighlightItem -; _GUICtrlTab_HitTest -; _GUICtrlTab_InsertItem -; _GUICtrlTab_RemoveImage -; _GUICtrlTab_SetCurFocus -; _GUICtrlTab_SetCurSel -; _GUICtrlTab_SetExtendedStyle -; _GUICtrlTab_SetImageList -; _GUICtrlTab_SetItem -; _GUICtrlTab_SetItemImage -; _GUICtrlTab_SetItemParam -; _GUICtrlTab_SetItemSize -; _GUICtrlTab_SetItemState -; _GUICtrlTab_SetItemText -; _GUICtrlTab_SetMinTabWidth -; _GUICtrlTab_SetPadding -; _GUICtrlTab_SetToolTips -; _GUICtrlTab_SetUnicodeFormat -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagTCITEM -; $tagTCHITTESTINFO -; __GUICtrlTab_AdjustRect -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTCITEM -; Description ...: Specifies or receives the attributes of a tab item -; Fields ........: Mask - Value that specifies which members to retrieve or set: -; |$TCIF_IMAGE - The Image member is valid -; |$TCIF_PARAM - The Param member is valid -; |$TCIF_RTLREADING - The string pointed to by Text will be displayed in the opposite direction -; |$TCIF_STATE - The State member is valid -; |$TCIF_TEXT - The Text member is valid -; State - Specifies the item's current state if information is being retrieved. If item information is being -; +set this member contains the state value to be set for the item. -; StateMask - Specifies which bits of the dwState member contain valid information -; Text - String that contains the tab text when item information is being set. If item information is being -; +retrieved, this member specifies the address of the buffer that receives the tab text. -; TextMax - Size of the buffer pointed to by the Text member. If the structure is not receiving information, -; +this member is ignored. -; Image - Index in the tab control's image list, or -1 if there is no image for the tab. -; Param - Application-defined data associated with the tab control item -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTCITEM = "uint Mask;dword State;dword StateMask;ptr Text;int TextMax;int Image;lparam Param" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTCHITTESTINFO -; Description ...: Contains information about a hit test -; Fields ........: X - X position to hit test -; Y - Y position to hit test -; Flags - Results of a hit test. The control sets this member to one of the following values: -; |$TCHT_NOWHERE - The position is not over a tab -; |$TCHT_ONITEM - The position is over a tab but not over its icon or its text -; |$TCHT_ONITEMICON - The position is over a tab's icon -; |$TCHT_ONITEMLABEL - The position is over a tab's text -; |$TCHT_ONITEM - Bitwise OR of $TCHT_ONITEMICON and $TCHT_ONITEMLABEL -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTCHITTESTINFO = $tagPOINT & ";uint Flags" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlTab_AdjustRect -; Description ...: Calculates a tab control's display area given a window rectangle -; Syntax.........: __GUICtrlTab_AdjustRect ( $hWnd, ByRef $tRECT [, $bLarger = False] ) -; Parameters ....: $hWnd - Handle to the control -; $tRECT - $tagRECT structure that holds a window or text display rectangle -; $bLarger - Value that specifies which operation to perform. If True, $tRECT is used to specify a text -; +display rectangle and it receives the corresponding window rectangle. If False, $tRECT is used to specify a -; +window rectangle and it receives the corresponding text display rectangle. -; Return values .: Success - $tagRECT structure with requested coordinates -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This message applies only to tab controls that are at the top. It does not apply to tab controls that are on -; the sides or bottom. -; Related .......: $tagRECT -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlTab_AdjustRect($hWnd, ByRef $tRECT, $bLarger = False) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hTabLastWnd) Then - _SendMessage($hWnd, $TCM_ADJUSTRECT, $bLarger, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _MemWrite($tMemMap, $tRECT) - _SendMessage($hWnd, $TCM_ADJUSTRECT, $bLarger, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - EndIf - Return $tRECT -EndFunc ;==>__GUICtrlTab_AdjustRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_ActivateTab($hWnd, $iIndex) - Local $nIndX - ; first, get Handle and CtrlID of TabControl - If $hWnd = -1 Then $hWnd = GUICtrlGetHandle(-1) - If IsHWnd($hWnd) Then - $nIndX = _WinAPI_GetDlgCtrlID($hWnd) - Else - $nIndX = $hWnd - $hWnd = GUICtrlGetHandle($hWnd) - EndIf - Local $hParent = _WinAPI_GetParent($hWnd) - If @error Then Return SetError(1, 0, -1) - - ; create Struct for the Messages - Local $tNmhdr = DllStructCreate($tagNMHDR) - DllStructSetData($tNmhdr, 1, $hWnd) - DllStructSetData($tNmhdr, 2, $nIndX) - DllStructSetData($tNmhdr, 3, $TCN_SELCHANGING) - - _SendMessage($hParent, $__TABCONSTANT_WM_NOTIFY, $nIndX, $tNmhdr, 0, "wparam", "struct*") - ; select TabItem - Local $iRet = _GUICtrlTab_SetCurSel($hWnd, $iIndex) - - DllStructSetData($tNmhdr, 3, $TCN_SELCHANGE) - _SendMessage($hParent, $__TABCONSTANT_WM_NOTIFY, $nIndX, $tNmhdr, 0, "wparam", "struct*") - Return $iRet -EndFunc ;==>_GUICtrlTab_ActivateTab - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost), PsaltyDS -; =============================================================================================================================== -Func _GUICtrlTab_ClickTab($hWnd, $iIndex, $sButton = "left", $bMove = False, $iClicks = 1, $iSpeed = 1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iX, $iY - If Not $bMove Then - ; Don't move mouse, use ControlClick() - Local $hWinParent = _WinAPI_GetParent($hWnd) - Local $avTabPos = _GUICtrlTab_GetItemRect($hWnd, $iIndex) - $iX = $avTabPos[0] + (($avTabPos[2] - $avTabPos[0]) / 2) - $iY = $avTabPos[1] + (($avTabPos[3] - $avTabPos[1]) / 2) - ControlClick($hWinParent, "", $hWnd, $sButton, $iClicks, $iX, $iY) - Else - ; Original code to move mouse and click (requires active window) - Local $tRECT = _GUICtrlTab_GetItemRectEx($hWnd, $iIndex) - Local $tPoint = _WinAPI_PointFromRect($tRECT, True) - $tPoint = _WinAPI_ClientToScreen($hWnd, $tPoint) - _WinAPI_GetXYFromPoint($tPoint, $iX, $iY) - Local $iMode = Opt("MouseCoordMode", 1) - MouseClick($sButton, $iX, $iY, $iClicks, $iSpeed) - Opt("MouseCoordMode", $iMode) - EndIf -EndFunc ;==>_GUICtrlTab_ClickTab - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlTab_Create($hWnd, $iX, $iY, $iWidth = 150, $iHeight = 150, $iStyle = 0x00000040, $iExStyle = 0x00000000) - If Not IsHWnd($hWnd) Then - ; Invalid Window handle for _GUICtrlTab_Create 1st parameter - Return SetError(1, 0, 0) - EndIf - - If $iWidth = -1 Then $iWidth = 150 - If $iHeight = -1 Then $iHeight = 150 - If $iStyle = -1 Then $iStyle = $TCS_HOTTRACK - If $iExStyle = -1 Then $iExStyle = 0x00000000 - - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__TABCONSTANT_WS_CLIPSIBLINGS, $__UDFGUICONSTANT_WS_VISIBLE) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hTab = _WinAPI_CreateWindowEx($iExStyle, $__TABCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _WinAPI_SetFont($hTab, _WinAPI_GetStockObject($__TABCONSTANT_DEFAULT_GUI_FONT)) - Return $hTab -EndFunc ;==>_GUICtrlTab_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_DeleteAllItems($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_DELETEALLITEMS) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $TCM_DELETEALLITEMS, 0, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlTab_DeleteAllItems - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_DeleteItem($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_DELETEITEM, $iIndex) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $TCM_DELETEITEM, $iIndex, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlTab_DeleteItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_DeselectAll($hWnd, $bExclude = True) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $TCM_DESELECTALL, $bExclude) - Else - GUICtrlSendMsg($hWnd, $TCM_DESELECTALL, $bExclude, 0) - EndIf -EndFunc ;==>_GUICtrlTab_DeselectAll - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__TABCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hTabLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlTab_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_FindTab($hWnd, $sText, $bInStr = False, $iStart = 0) - Local $sTab - - For $iI = $iStart To _GUICtrlTab_GetItemCount($hWnd) - $sTab = _GUICtrlTab_GetItemText($hWnd, $iI) - Switch $bInStr - Case False - If $sTab = $sText Then Return $iI - Case True - If StringInStr($sTab, $sText) Then Return $iI - EndSwitch - Next - Return -1 -EndFunc ;==>_GUICtrlTab_FindTab - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetCurFocus($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_GETCURFOCUS) - Else - Return GUICtrlSendMsg($hWnd, $TCM_GETCURFOCUS, 0, 0) - EndIf -EndFunc ;==>_GUICtrlTab_GetCurFocus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetCurSel($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_GETCURSEL) - Else - Return GUICtrlSendMsg($hWnd, $TCM_GETCURSEL, 0, 0) - EndIf -EndFunc ;==>_GUICtrlTab_GetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetDisplayRect($hWnd) - Local $aRect[4] - - Local $tRECT = _GUICtrlTab_GetDisplayRectEx($hWnd) - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlTab_GetDisplayRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetDisplayRectEx($hWnd) - Local $tRECT = _WinAPI_GetClientRect($hWnd) - Return __GUICtrlTab_AdjustRect($hWnd, $tRECT) -EndFunc ;==>_GUICtrlTab_GetDisplayRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetExtendedStyle($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_GETEXTENDEDSTYLE) - Else - Return GUICtrlSendMsg($hWnd, $TCM_GETEXTENDEDSTYLE, 0, 0) - EndIf -EndFunc ;==>_GUICtrlTab_GetExtendedStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_GetImageList($hWnd) - If IsHWnd($hWnd) Then - Return Ptr(_SendMessage($hWnd, $TCM_GETIMAGELIST)) - Else - Return Ptr(GUICtrlSendMsg($hWnd, $TCM_GETIMAGELIST, 0, 0)) - EndIf -EndFunc ;==>_GUICtrlTab_GetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_GetItem($hWnd, $iIndex) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Local $bUnicode = _GUICtrlTab_GetUnicodeFormat($hWnd) - - Local $iBuffer = 4096 - Local $tagTCITEMEx = $tagTCITEM & ";ptr Filler" ; strange the Filler is erased by TCM_GETITEM : MS Bug!!! - Local $tItem = DllStructCreate($tagTCITEMEx) - DllStructSetData($tItem, "Mask", $TCIF_ALLDATA) - DllStructSetData($tItem, "TextMax", $iBuffer) - DllStructSetData($tItem, "StateMask", BitOR($TCIS_HIGHLIGHTED, $TCIS_BUTTONPRESSED)) - Local $iItem = DllStructGetSize($tItem) - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - Local $iRet - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TCM_GETITEMW, $iIndex, $pMemory) - Else - $iRet = _SendMessage($hWnd, $TCM_GETITEMA, $iIndex, $pMemory) - EndIf - _MemRead($tMemMap, $pMemory, $tItem, $iItem) - _MemRead($tMemMap, $pText, $tBuffer, $iBuffer) - _MemFree($tMemMap) - Local $aItem[4] - $aItem[0] = DllStructGetData($tItem, "State") - $aItem[1] = DllStructGetData($tBuffer, "Text") - $aItem[2] = DllStructGetData($tItem, "Image") - $aItem[3] = DllStructGetData($tItem, "Param") - Return SetError($iRet = 0, 0, $aItem) -EndFunc ;==>_GUICtrlTab_GetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetItemCount($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_GETITEMCOUNT) - Else - Return GUICtrlSendMsg($hWnd, $TCM_GETITEMCOUNT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlTab_GetItemCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetItemImage($hWnd, $iIndex) - Local $aItem = _GUICtrlTab_GetItem($hWnd, $iIndex) - Return $aItem[2] -EndFunc ;==>_GUICtrlTab_GetItemImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetItemParam($hWnd, $iIndex) - Local $aItem = _GUICtrlTab_GetItem($hWnd, $iIndex) - Return $aItem[3] -EndFunc ;==>_GUICtrlTab_GetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetItemRect($hWnd, $iIndex) - Local $aRect[4] - - Local $tRECT = _GUICtrlTab_GetItemRectEx($hWnd, $iIndex) - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlTab_GetItemRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_GetItemRectEx($hWnd, $iIndex) - Local $tRECT = DllStructCreate($tagRECT) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hTabLastWnd) Then - _SendMessage($hWnd, $TCM_GETITEMRECT, $iIndex, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _SendMessage($hWnd, $TCM_GETITEMRECT, $iIndex, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Else - GUICtrlSendMsg($hWnd, $TCM_GETITEMRECT, $iIndex, DllStructGetPtr($tRECT)) - EndIf - Return $tRECT -EndFunc ;==>_GUICtrlTab_GetItemRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetItemState($hWnd, $iIndex) - Local $aItem = _GUICtrlTab_GetItem($hWnd, $iIndex) - Return $aItem[0] -EndFunc ;==>_GUICtrlTab_GetItemState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetItemText($hWnd, $iIndex) - Local $aItem = _GUICtrlTab_GetItem($hWnd, $iIndex) - Return $aItem[1] -EndFunc ;==>_GUICtrlTab_GetItemText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetRowCount($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_GETROWCOUNT) - Else - Return GUICtrlSendMsg($hWnd, $TCM_GETROWCOUNT, 0, 0) - EndIf -EndFunc ;==>_GUICtrlTab_GetRowCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_GetToolTips($hWnd) - If IsHWnd($hWnd) Then - Return HWnd(_SendMessage($hWnd, $TCM_GETTOOLTIPS)) - Else - Return HWnd(GUICtrlSendMsg($hWnd, $TCM_GETTOOLTIPS, 0, 0)) - EndIf -EndFunc ;==>_GUICtrlTab_GetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_GetUnicodeFormat($hWnd) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_GETUNICODEFORMAT) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $TCM_GETUNICODEFORMAT, 0, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlTab_GetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_HighlightItem($hWnd, $iIndex, $bHighlight = True) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_HIGHLIGHTITEM, $iIndex, $bHighlight) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $TCM_HIGHLIGHTITEM, $iIndex, $bHighlight) <> 0 - EndIf -EndFunc ;==>_GUICtrlTab_HighlightItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_HitTest($hWnd, $iX, $iY) - Local $aHit[2] = [-1, 1] - - Local $tHit = DllStructCreate($tagTCHITTESTINFO) - DllStructSetData($tHit, "X", $iX) - DllStructSetData($tHit, "Y", $iY) - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hTabLastWnd) Then - $aHit[0] = _SendMessage($hWnd, $TCM_HITTEST, 0, $tHit, 0, "wparam", "struct*") - Else - Local $iHit = DllStructGetSize($tHit) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iHit, $tMemMap) - _MemWrite($tMemMap, $tHit) - $aHit[0] = _SendMessage($hWnd, $TCM_HITTEST, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tHit, $iHit) - _MemFree($tMemMap) - EndIf - Else - $aHit[0] = GUICtrlSendMsg($hWnd, $TCM_HITTEST, 0, DllStructGetPtr($tHit)) - EndIf - $aHit[1] = DllStructGetData($tHit, "Flags") - Return $aHit -EndFunc ;==>_GUICtrlTab_HitTest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_InsertItem($hWnd, $iIndex, $sText, $iImage = -1, $iParam = 0) - Local $bUnicode = _GUICtrlTab_GetUnicodeFormat($hWnd) - - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tItem = DllStructCreate($tagTCITEM) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tItem, "Mask", BitOR($TCIF_TEXT, $TCIF_IMAGE, $TCIF_PARAM)) - DllStructSetData($tItem, "TextMax", $iBuffer) - DllStructSetData($tItem, "Image", $iImage) - DllStructSetData($tItem, "Param", $iParam) - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hTabLastWnd) Then - DllStructSetData($tItem, "Text", $pBuffer) - $iRet = _SendMessage($hWnd, $TCM_INSERTITEMW, $iIndex, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TCM_INSERTITEMW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $TCM_INSERTITEMA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Else - Local $pItem = DllStructGetPtr($tItem) - DllStructSetData($tItem, "Text", $pBuffer) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $TCM_INSERTITEMW, $iIndex, $pItem) - Else - $iRet = GUICtrlSendMsg($hWnd, $TCM_INSERTITEMA, $iIndex, $pItem) - EndIf - EndIf - Return $iRet -EndFunc ;==>_GUICtrlTab_InsertItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_RemoveImage($hWnd, $iIndex) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $TCM_REMOVEIMAGE, $iIndex) - _WinAPI_InvalidateRect($hWnd) - Else - GUICtrlSendMsg($hWnd, $TCM_REMOVEIMAGE, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlTab_RemoveImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_SetCurFocus($hWnd, $iIndex) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $TCM_SETCURFOCUS, $iIndex) - Else - GUICtrlSendMsg($hWnd, $TCM_SETCURFOCUS, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlTab_SetCurFocus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_SetCurSel($hWnd, $iIndex) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_SETCURSEL, $iIndex) - Else - Return GUICtrlSendMsg($hWnd, $TCM_SETCURSEL, $iIndex, 0) - EndIf -EndFunc ;==>_GUICtrlTab_SetCurSel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_SetExtendedStyle($hWnd, $iStyle) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_SETEXTENDEDSTYLE, 0, $iStyle) - Else - Return GUICtrlSendMsg($hWnd, $TCM_SETEXTENDEDSTYLE, 0, $iStyle) - EndIf -EndFunc ;==>_GUICtrlTab_SetExtendedStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_SetImageList($hWnd, $hImage) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_SETIMAGELIST, 0, $hImage, 0, "wparam", "handle", "handle") - Else - Return Ptr(GUICtrlSendMsg($hWnd, $TCM_SETIMAGELIST, 0, $hImage)) - EndIf -EndFunc ;==>_GUICtrlTab_SetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_SetItem($hWnd, $iIndex, $sText = -1, $iState = -1, $iImage = -1, $iParam = -1) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tItem = DllStructCreate($tagTCITEM) - Local $iBuffer, $tBuffer, $iMask = 0, $iRet - Local $bUnicode = _GUICtrlTab_GetUnicodeFormat($hWnd) - If IsString($sText) Then - $iBuffer = StringLen($sText) + 1 - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tItem, "Text", DllStructGetPtr($tBuffer)) - $iMask = $TCIF_TEXT - EndIf - If $iState <> -1 Then - DllStructSetData($tItem, "State", $iState) - DllStructSetData($tItem, "StateMask", $iState) - $iMask = BitOR($iMask, $TCIF_STATE) - EndIf - If $iImage <> -1 Then - DllStructSetData($tItem, "Image", $iImage) - $iMask = BitOR($iMask, $TCIF_IMAGE) - EndIf - If $iParam <> -1 Then - DllStructSetData($tItem, "Param", $iParam) - $iMask = BitOR($iMask, $TCIF_PARAM) - EndIf - DllStructSetData($tItem, "Mask", $iMask) - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + 8192, $tMemMap) - Local $pText = $pMemory + 4096 - DllStructSetData($tItem, "Text", $pText) - _MemWrite($tMemMap, $tItem, $pMemory, $iItem) - If IsString($sText) Then _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TCM_SETITEMW, $iIndex, $pMemory) <> 0 - Else - $iRet = _SendMessage($hWnd, $TCM_SETITEMA, $iIndex, $pMemory) <> 0 - EndIf - _MemFree($tMemMap) - Return $iRet -EndFunc ;==>_GUICtrlTab_SetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_SetItemImage($hWnd, $iIndex, $iImage) - Return _GUICtrlTab_SetItem($hWnd, $iIndex, -1, -1, $iImage) -EndFunc ;==>_GUICtrlTab_SetItemImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_SetItemParam($hWnd, $iIndex, $iParam) - Return _GUICtrlTab_SetItem($hWnd, $iIndex, -1, -1, -1, $iParam) -EndFunc ;==>_GUICtrlTab_SetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_SetItemSize($hWnd, $iWidth, $iHeight) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_SETITEMSIZE, 0, _WinAPI_MakeLong($iWidth, $iHeight)) - Else - Return GUICtrlSendMsg($hWnd, $TCM_SETITEMSIZE, 0, _WinAPI_MakeLong($iWidth, $iHeight)) - EndIf -EndFunc ;==>_GUICtrlTab_SetItemSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_SetItemState($hWnd, $iIndex, $iState) - Return _GUICtrlTab_SetItem($hWnd, $iIndex, -1, $iState) -EndFunc ;==>_GUICtrlTab_SetItemState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_SetItemText($hWnd, $iIndex, $sText) - Return _GUICtrlTab_SetItem($hWnd, $iIndex, $sText) -EndFunc ;==>_GUICtrlTab_SetItemText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_SetMinTabWidth($hWnd, $iMinWidth) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_SETMINTABWIDTH, 0, $iMinWidth) - Else - Return GUICtrlSendMsg($hWnd, $TCM_SETMINTABWIDTH, 0, $iMinWidth) - EndIf -EndFunc ;==>_GUICtrlTab_SetMinTabWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_SetPadding($hWnd, $iHorz, $iVert) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $TCM_SETPADDING, 0, _WinAPI_MakeLong($iHorz, $iVert)) - Else - GUICtrlSendMsg($hWnd, $TCM_SETPADDING, 0, _WinAPI_MakeLong($iHorz, $iVert)) - EndIf -EndFunc ;==>_GUICtrlTab_SetPadding - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTab_SetToolTips($hWnd, $hToolTip) - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $TCM_SETTOOLTIPS, $hToolTip, 0, 0, "hwnd") - Else - GUICtrlSendMsg($hWnd, $TCM_SETTOOLTIPS, $hToolTip, 0) - EndIf -EndFunc ;==>_GUICtrlTab_SetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTab_SetUnicodeFormat($hWnd, $bUnicode) - If IsHWnd($hWnd) Then - Return _SendMessage($hWnd, $TCM_SETUNICODEFORMAT, $bUnicode) <> 0 - Else - Return GUICtrlSendMsg($hWnd, $TCM_SETUNICODEFORMAT, $bUnicode, 0) <> 0 - EndIf -EndFunc ;==>_GUICtrlTab_SetUnicodeFormat diff --git a/build/Include/GuiToolTip.au3 b/build/Include/GuiToolTip.au3 deleted file mode 100644 index 1488a91b3..000000000 --- a/build/Include/GuiToolTip.au3 +++ /dev/null @@ -1,891 +0,0 @@ -#include-once - -#include "Memory.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "ToolTipConstants.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: ToolTip -; AutoIt Version : 3.3.14.2 -; Description ...: Functions that assist with ToolTip control management. -; ToolTip controls are pop-up windows that display text. The text usually describes a tool, which is either a -; window, such as a child window or control, or an application-defined rectangular area within a window's client -; area. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hTTLastWnd -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $_TOOLTIPCONSTANTS_ClassName = "tooltips_class32" -Global Const $_TT_ghTTDefaultStyle = BitOR($TTS_ALWAYSTIP, $TTS_NOPREFIX) -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUIToolTip_Activate -; _GUIToolTip_AddTool -; _GUIToolTip_AdjustRect -; _GUIToolTip_BitsToTTF -; _GUIToolTip_Create -; _GUIToolTip_Deactivate -; _GUIToolTip_DelTool -; _GUIToolTip_Destroy -; _GUIToolTip_EnumTools -; _GUIToolTip_GetBubbleHeight -; _GUIToolTip_GetBubbleSize -; _GUIToolTip_GetBubbleWidth -; _GUIToolTip_GetCurrentTool -; _GUIToolTip_GetDelayTime -; _GUIToolTip_GetMargin -; _GUIToolTip_GetMarginEx -; _GUIToolTip_GetMaxTipWidth -; _GUIToolTip_GetText -; _GUIToolTip_GetTipBkColor -; _GUIToolTip_GetTipTextColor -; _GUIToolTip_GetTitleBitMap -; _GUIToolTip_GetTitleText -; _GUIToolTip_GetToolCount -; _GUIToolTip_GetToolInfo -; _GUIToolTip_HitTest -; _GUIToolTip_NewToolRect -; _GUIToolTip_Pop -; _GUIToolTip_PopUp -; _GUIToolTip_SetDelayTime -; _GUIToolTip_SetMargin -; _GUIToolTip_SetMaxTipWidth -; _GUIToolTip_SetTipBkColor -; _GUIToolTip_SetTipTextColor -; _GUIToolTip_SetTitle -; _GUIToolTip_SetToolInfo -; _GUIToolTip_SetWindowTheme -; _GUIToolTip_ToolExists -; _GUIToolTip_ToolToArray -; _GUIToolTip_TrackActivate -; _GUIToolTip_TrackPosition -; _GUIToolTip_Update -; _GUIToolTip_UpdateTipText -; =============================================================================================================================== - -; #NEW_FUNCTIONS# =============================================================================================================== -; _GUIToolTip_Deactivate -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagNMTTDISPINFO -; $tagTOOLINFO -; $tagTTGETTITLE -; $tagTTHITTESTINFO -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagNMTTDISPINFO -; Description ...: Contains information used in handling the $TTN_GETDISPINFOW notification message -; Fields ........: $tagNMHDR - Contains information about a notification message -; pText - Pointer to a string that will be displayed as the ToolTip text. If Instance specifies an instance -; +handle, this member must be the identifier of a string resource. -; aText - Buffer that receives the ToolTip text. An application can copy the text to this buffer instead of -; +specifying a string address or string resource. -; Instance - Handle to the instance that contains a string resource to be used as the ToolTip text. If pText is -; +the address of the ToolTip text string, this member must be 0. -; Flags - Flags that indicates how to interpret the IDFrom member: -; |$TTF_IDISHWND - If this flag is set, IDFrom is the tool's handle. Otherwise, it is the tool's identifier. -; |$TTF_RTLREADING - Specifies right to left text -; |$TTF_DI_SETITEM - If you add this flag to Flags while processing the notification, the ToolTip control will -; +retain the supplied information and not request it again. -; Param - Application-defined data associated with the tool -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: You need to point the pText array to your own private buffer when the text used in the ToolTip text exceeds 80 -; +characters in length. The system automatically strips the accelerator from all strings passed to a ToolTip -; control, unless the control has the $TTS_NOPREFIX style. -; =============================================================================================================================== -Global Const $tagNMTTDISPINFO = $tagNMHDR & ";ptr pText;wchar aText[80];ptr Instance;uint Flags;lparam Param" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTOOLINFO -; Description ...: Contains information about a tool in a ToolTip contr -; Fields ........: Size - Size of this structure, in bytes -; Flags - Flags that control the ToolTip display. This member can be a combination of the following values: -; |$TTF_ABSOLUTE - Positions the ToolTip at the same coordinates provided by $TTM_TRACKPOSITION -; |$TTF_CENTERTIP - Centers the ToolTip below the tool specified by the ID member -; |$TTF_IDISHWND - Indicates that the ID member is the window handle to the tool -; |$TTF_PARSELINKS - Indicates that links in the tooltip text should be parsed -; |$TTF_RTLREADING - Indicates that the ToolTip text will be displayed in the opposite direction -; |$TTF_SUBCLASS - Indicates that the ToolTip control should subclass the tool's window to intercept messages -; |$TTF_TRACK - Positions the ToolTip next to the tool to which it corresponds -; |$TTF_TRANSPARENT - Causes the ToolTip control to forward mouse event messages to the parent window -; hWnd - Handle to the window that contains the tool -; ID - Application-defined identifier of the tool -; Left - X position of upper left corner of bounding rectangle -; Top - Y position of upper left corner of bounding rectangle -; Right - X position of lower right corner of bounding rectangle -; Bottom - Y position of lower right corner of bounding rectangle -; hInst - Handle to the instance that contains the string resource for the too -; Text - Pointer to the buffer that contains the text for the tool -; Param - A 32-bit application-defined value that is associated with the tool -; Reserved - Reserved -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTOOLINFO = "uint Size;uint Flags;hwnd hWnd;uint_ptr ID;" & $tagRECT & ";handle hInst;ptr Text;lparam Param;ptr Reserved" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTTGETTITLE -; Description ...: Provides information about the title of a tooltip control -; Fields ........: Size - Size of this structure, in bytes -; Bitmap - The tooltip icon -; TitleMax - Specifies the number of characters in the title -; Title - Pointer to a wide character string that contains the title -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTTGETTITLE = "dword Size;uint Bitmap;uint TitleMax;ptr Title" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTTHITTESTINFO -; Description ...: Contains information that a ToolTip control uses to determine whether a point is in the bounding rectangle of the specified tool -; Fields ........: Tool - Handle to the tool or window with the specified tool -; X - X position to be tested, in client coordinates -; Y - Y position to be tested, in client coordinates -; Size - Size of a TOOLINFO structure -; Flags - Flags that control the ToolTip display. This member can be a combination of the following values: -; |$TTF_ABSOLUTE - Positions the ToolTip at the same coordinates provided by $TTM_TRACKPOSITION -; |$TTF_CENTERTIP - Centers the ToolTip below the tool specified by the ID member -; |$TTF_IDISHWND - Indicates that the ID member is the window handle to the tool -; |$TTF_PARSELINKS - Indicates that links in the tooltip text should be parsed -; |$TTF_RTLREADING - Indicates that the ToolTip text will be displayed in the opposite direction -; |$TTF_SUBCLASS - Indicates that the ToolTip control should subclass the tool's window to intercept messages -; |$TTF_TRACK - Positions the ToolTip next to the tool to which it corresponds -; |$TTF_TRANSPARENT - Causes the ToolTip control to forward mouse event messages to the parent window -; hWnd - Handle to the window that contains the tool -; ID - Application-defined identifier of the tool -; Left - X position of upper left corner of bounding rectangle -; Top - Y position of upper left corner of bounding rectangle -; Right - X position of lower right corner of bounding rectangle -; Bottom - Y position of lower right corner of bounding rectangle -; hInst - Handle to the instance that contains the string resource for the too -; Text - Pointer to the buffer that contains the text for the tool -; Param - A 32-bit application-defined value that is associated with the tool -; Reserved - Reserved -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTTHITTESTINFO = "hwnd Tool;" & $tagPOINT & ";" & $tagTOOLINFO - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Bob Marotte (BrewManNH) -; =============================================================================================================================== -Func _GUIToolTip_Activate($hWnd) - _SendMessage($hWnd, $TTM_ACTIVATE, True) -EndFunc ;==>_GUIToolTip_Activate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Bob Marotte (BrewManNH) -; =============================================================================================================================== -Func _GUIToolTip_AddTool($hTool, $hWnd, $sText, $iID = 0, $iLeft = 0, $iTop = 0, $iRight = 0, $iBottom = 0, $iFlags = Default, $iParam = 0) - Local $iBuffer, $tBuffer, $pBuffer - If $iFlags = Default Then $iFlags = BitOR($TTF_SUBCLASS, $TTF_IDISHWND) - If $sText <> -1 Then - $iBuffer = StringLen($sText) + 1 - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - $pBuffer = DllStructGetPtr($tBuffer) - DllStructSetData($tBuffer, "Text", $sText) - Else - $iBuffer = 0 - $pBuffer = -1 ; LPSTR_TEXTCALLBACK - EndIf - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - DllStructSetData($tToolInfo, "Flags", $iFlags) - DllStructSetData($tToolInfo, "hWnd", $hWnd) - DllStructSetData($tToolInfo, "ID", $iID) - DllStructSetData($tToolInfo, "Left", $iLeft) - DllStructSetData($tToolInfo, "Top", $iTop) - DllStructSetData($tToolInfo, "Right", $iRight) - DllStructSetData($tToolInfo, "Bottom", $iBottom) - DllStructSetData($tToolInfo, "Param", $iParam) - Local $iRet - If _WinAPI_InProcess($hTool, $__g_hTTLastWnd) Then - DllStructSetData($tToolInfo, "Text", $pBuffer) - $iRet = _SendMessage($hTool, $TTM_ADDTOOLW, 0, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hTool, $iToolInfo + $iBuffer, $tMemMap) - If $sText <> -1 Then - Local $pText = $pMemory + $iToolInfo - DllStructSetData($tToolInfo, "Text", $pText) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - Else - DllStructSetData($tToolInfo, "Text", -1) ; LPSTR_TEXTCALLBACK - EndIf - _MemWrite($tMemMap, $tToolInfo, $pMemory, $iToolInfo) - $iRet = _SendMessage($hTool, $TTM_ADDTOOLW, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUIToolTip_AddTool - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_AdjustRect($hWnd, ByRef $tRECT, $bLarger = True) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - _SendMessage($hWnd, $TTM_ADJUSTRECT, $bLarger, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _MemWrite($tMemMap, $tRECT) - _SendMessage($hWnd, $TTM_ADJUSTRECT, $bLarger, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Return $tRECT -EndFunc ;==>_GUIToolTip_AdjustRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Bob Marotte (BrewManNH) -; =============================================================================================================================== -Func _GUIToolTip_BitsToTTF($iFlags) - Local $iN = "" - If BitAND($iFlags, $TTF_IDISHWND) <> 0 Then $iN &= "TTF_IDISHWND," - If BitAND($iFlags, $TTF_CENTERTIP) <> 0 Then $iN &= "TTF_CENTERTIP," - If BitAND($iFlags, $TTF_RTLREADING) <> 0 Then $iN &= "TTF_RTLREADING," - If BitAND($iFlags, $TTF_SUBCLASS) <> 0 Then $iN &= "TTF_SUBCLASS," - If BitAND($iFlags, $TTF_TRACK) <> 0 Then $iN &= "TTF_TRACK," - If BitAND($iFlags, $TTF_ABSOLUTE) <> 0 Then $iN &= "TTF_ABSOLUTE," - If BitAND($iFlags, $TTF_TRANSPARENT) <> 0 Then $iN &= "TTF_TRANSPARENT," - If BitAND($iFlags, $TTF_PARSELINKS) <> 0 Then $iN &= "TTF_PARSELINKS," - Return StringTrimRight($iN, 1) -EndFunc ;==>_GUIToolTip_BitsToTTF - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUIToolTip_Create($hWnd, $iStyle = $_TT_ghTTDefaultStyle) - Return _WinAPI_CreateWindowEx(0, $_TOOLTIPCONSTANTS_ClassName, "", $iStyle, 0, 0, 0, 0, $hWnd) -EndFunc ;==>_GUIToolTip_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Bob Marotte (BrewManNH) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_Deactivate($hWnd) - _SendMessage($hWnd, $TTM_ACTIVATE, False) -EndFunc ;==>_GUIToolTip_Deactivate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Bob Marotte (BrewManNH) -; =============================================================================================================================== -Func _GUIToolTip_DelTool($hWnd, $hTool, $iID = 0) - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - DllStructSetData($tToolInfo, "ID", $iID) - DllStructSetData($tToolInfo, "hWnd", $hTool) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - _SendMessage($hWnd, $TTM_DELTOOLW, 0, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo, $tMemMap) - _MemWrite($tMemMap, $tToolInfo) - _SendMessage($hWnd, $TTM_DELTOOLW, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUIToolTip_DelTool - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $_TOOLTIPCONSTANTS_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUIToolTip_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_EnumTools($hWnd, $iIndex) - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - Local $bResult - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - $bResult = _SendMessage($hWnd, $TTM_ENUMTOOLSW, $iIndex, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo, $tMemMap) - _MemWrite($tMemMap, $tToolInfo, $pMemory, $iToolInfo) - $bResult = _SendMessage($hWnd, $TTM_ENUMTOOLSW, $iIndex, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tToolInfo, $iToolInfo) - _MemFree($tMemMap) - EndIf - Return _GUIToolTip_ToolToArray($hWnd, $tToolInfo, $bResult = True) -EndFunc ;==>_GUIToolTip_EnumTools - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Bob Marotte (BrewManNH) -; =============================================================================================================================== -Func _GUIToolTip_GetBubbleHeight($hWnd, $hTool, $iID, $iFlags = Default) - If $iFlags = Default Then $iFlags = BitOR($TTF_IDISHWND, $TTF_SUBCLASS) - Return _WinAPI_HiWord(_GUIToolTip_GetBubbleSize($hWnd, $hTool, $iID, $iFlags)) -EndFunc ;==>_GUIToolTip_GetBubbleHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Bob Marotte (BrewManNH) -; =============================================================================================================================== -Func _GUIToolTip_GetBubbleSize($hWnd, $hTool, $iID, $iFlags = Default) - If $iFlags = Default Then $iFlags = BitOR($TTF_IDISHWND, $TTF_SUBCLASS) - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - DllStructSetData($tToolInfo, "hWnd", $hTool) - DllStructSetData($tToolInfo, "ID", $iID) - DllStructSetData($tToolInfo, "Flags", $iFlags) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - $iRet = _SendMessage($hWnd, $TTM_GETBUBBLESIZE, 0, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo, $tMemMap) - _MemWrite($tMemMap, $tToolInfo) - $iRet = _SendMessage($hWnd, $TTM_GETBUBBLESIZE, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return $iRet -EndFunc ;==>_GUIToolTip_GetBubbleSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Bob Marotte (BrewManNH) -; =============================================================================================================================== -Func _GUIToolTip_GetBubbleWidth($hWnd, $hTool, $iID, $iFlags = Default) - If $iFlags = Default Then $iFlags = BitOR($TTF_IDISHWND, $TTF_SUBCLASS) - Return _WinAPI_LoWord(_GUIToolTip_GetBubbleSize($hWnd, $hTool, $iID, $iFlags)) -EndFunc ;==>_GUIToolTip_GetBubbleWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetCurrentTool($hWnd) - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - Local $bResult - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - $bResult = _SendMessage($hWnd, $TTM_GETCURRENTTOOLW, 0, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo, $tMemMap) - _MemWrite($tMemMap, $tToolInfo, $pMemory, $iToolInfo) - $bResult = _SendMessage($hWnd, $TTM_GETCURRENTTOOLW, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tToolInfo, $iToolInfo) - _MemFree($tMemMap) - EndIf - Return _GUIToolTip_ToolToArray($hWnd, $tToolInfo, $bResult = True) -EndFunc ;==>_GUIToolTip_GetCurrentTool - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Bob Marotte (BrewManNH) -; =============================================================================================================================== -Func _GUIToolTip_GetDelayTime($hWnd, $iDuration) - Return _SendMessage($hWnd, $TTM_GETDELAYTIME, $iDuration) -EndFunc ;==>_GUIToolTip_GetDelayTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetMargin($hWnd) - Local $aMargin[4] - - Local $tRECT = _GUIToolTip_GetMarginEx($hWnd) - $aMargin[0] = DllStructGetData($tRECT, "Left") - $aMargin[1] = DllStructGetData($tRECT, "Top") - $aMargin[2] = DllStructGetData($tRECT, "Right") - $aMargin[3] = DllStructGetData($tRECT, "Bottom") - Return $aMargin -EndFunc ;==>_GUIToolTip_GetMargin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetMarginEx($hWnd) - Local $tRECT = DllStructCreate($tagRECT) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - _SendMessage($hWnd, $TTM_GETMARGIN, 0, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _SendMessage($hWnd, $TTM_GETMARGIN, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Return $tRECT -EndFunc ;==>_GUIToolTip_GetMarginEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetMaxTipWidth($hWnd) - Return _SendMessage($hWnd, $TTM_GETMAXTIPWIDTH) -EndFunc ;==>_GUIToolTip_GetMaxTipWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetText($hWnd, $hTool, $iID) - Local $tBuffer = DllStructCreate("wchar Text[4096]") - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - DllStructSetData($tToolInfo, "hWnd", $hTool) - DllStructSetData($tToolInfo, "ID", $iID) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - DllStructSetData($tToolInfo, "Text", DllStructGetPtr($tBuffer)) - _SendMessage($hWnd, $TTM_GETTEXTW, 0, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo + 4096, $tMemMap) - Local $pText = $pMemory + $iToolInfo - DllStructSetData($tToolInfo, "Text", $pText) - _MemWrite($tMemMap, $tToolInfo, $pMemory, $iToolInfo) - _SendMessage($hWnd, $TTM_GETTEXTW, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pText, $tBuffer, 81) - _MemFree($tMemMap) - EndIf - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>_GUIToolTip_GetText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetTipBkColor($hWnd) - Return _SendMessage($hWnd, $TTM_GETTIPBKCOLOR) -EndFunc ;==>_GUIToolTip_GetTipBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetTipTextColor($hWnd) - Return _SendMessage($hWnd, $TTM_GETTIPTEXTCOLOR) -EndFunc ;==>_GUIToolTip_GetTipTextColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetTitleBitMap($hWnd) - Local $tBuffer = DllStructCreate("wchar Text[4096]") - Local $tTitle = DllStructCreate($tagTTGETTITLE) - Local $iTitle = DllStructGetSize($tTitle) - DllStructSetData($tTitle, "TitleMax", DllStructGetSize($tBuffer)) - DllStructSetData($tTitle, "Size", $iTitle) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - DllStructSetData($tTitle, "Title", DllStructGetPtr($tBuffer)) - _SendMessage($hWnd, $TTM_GETTITLE, 0, $tTitle, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iTitle + 4096, $tMemMap) - Local $pText = $pMemory + $iTitle - DllStructSetData($tTitle, "Title", $pText) - _MemWrite($tMemMap, $tTitle, $pMemory, $iTitle) - _SendMessage($hWnd, $TTM_GETTITLE, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pText, $tBuffer, 4096) - _MemFree($tMemMap) - EndIf - Return DllStructGetData($tTitle, "Bitmap") -EndFunc ;==>_GUIToolTip_GetTitleBitMap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetTitleText($hWnd) - Local $tBuffer = DllStructCreate("wchar Text[4096]") - Local $tTitle = DllStructCreate($tagTTGETTITLE) - Local $iTitle = DllStructGetSize($tTitle) - DllStructSetData($tTitle, "TitleMax", DllStructGetSize($tBuffer)) - DllStructSetData($tTitle, "Size", $iTitle) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - DllStructSetData($tTitle, "Title", DllStructGetPtr($tBuffer)) - _SendMessage($hWnd, $TTM_GETTITLE, 0, $tTitle, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iTitle + 4096, $tMemMap) - Local $pText = $pMemory + $iTitle - DllStructSetData($tTitle, "Title", $pText) - _MemWrite($tMemMap, $tTitle, $pMemory, $iTitle) - _SendMessage($hWnd, $TTM_GETTITLE, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pText, $tBuffer, 4096) - _MemFree($tMemMap) - EndIf - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>_GUIToolTip_GetTitleText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetToolCount($hWnd) - Return _SendMessage($hWnd, $TTM_GETTOOLCOUNT) -EndFunc ;==>_GUIToolTip_GetToolCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_GetToolInfo($hWnd, $hTool, $iID) - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - DllStructSetData($tToolInfo, "hWnd", $hTool) - DllStructSetData($tToolInfo, "ID", $iID) - Local $bResult - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - $bResult = _SendMessage($hWnd, $TTM_GETTOOLINFOW, 0, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo, $tMemMap) - _MemWrite($tMemMap, $tToolInfo, $pMemory, $iToolInfo) - $bResult = _SendMessage($hWnd, $TTM_GETTOOLINFOW, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tToolInfo, $iToolInfo) - _MemFree($tMemMap) - EndIf - Return _GUIToolTip_ToolToArray($hWnd, $tToolInfo, $bResult = True) -EndFunc ;==>_GUIToolTip_GetToolInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_HitTest($hWnd, $hTool, $iX, $iY) - Local $tHitTest = DllStructCreate($tagTTHITTESTINFO) - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tHitTest, "Tool", $hTool) - DllStructSetData($tHitTest, "X", $iX) - DllStructSetData($tHitTest, "Y", $iY) - DllStructSetData($tHitTest, "Size", $iToolInfo) - Local $bResult - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - $bResult = _SendMessage($hWnd, $TTM_HITTESTW, 0, $tHitTest, 0, "wparam", "struct*") - Else - Local $iHitTest = DllStructGetSize($tHitTest) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iHitTest, $tMemMap) - _MemWrite($tMemMap, $tHitTest, $pMemory, $iHitTest) - $bResult = _SendMessage($hWnd, $TTM_HITTESTW, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tHitTest, $iHitTest) - _MemFree($tMemMap) - EndIf - DllStructSetData($tToolInfo, "Size", DllStructGetData($tHitTest, "Size")) - DllStructSetData($tToolInfo, "Flags", DllStructGetData($tHitTest, "Flags")) - DllStructSetData($tToolInfo, "hWnd", DllStructGetData($tHitTest, "hWnd")) - DllStructSetData($tToolInfo, "ID", DllStructGetData($tHitTest, "ID")) - DllStructSetData($tToolInfo, "Left", DllStructGetData($tHitTest, "Left")) - DllStructSetData($tToolInfo, "Top", DllStructGetData($tHitTest, "Top")) - DllStructSetData($tToolInfo, "Right", DllStructGetData($tHitTest, "Right")) - DllStructSetData($tToolInfo, "Bottom", DllStructGetData($tHitTest, "Bottom")) - DllStructSetData($tToolInfo, "hInst", DllStructGetData($tHitTest, "hInst")) - DllStructSetData($tToolInfo, "Param", DllStructGetData($tHitTest, "Param")) - Return _GUIToolTip_ToolToArray($hWnd, $tToolInfo, $bResult = True) -EndFunc ;==>_GUIToolTip_HitTest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_NewToolRect($hWnd, $hTool, $iID, $iLeft, $iTop, $iRight, $iBottom) - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - DllStructSetData($tToolInfo, "hwnd", $hTool) - DllStructSetData($tToolInfo, "ID", $iID) - DllStructSetData($tToolInfo, "Left", $iLeft) - DllStructSetData($tToolInfo, "Top", $iTop) - DllStructSetData($tToolInfo, "Right", $iRight) - DllStructSetData($tToolInfo, "Bottom", $iBottom) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - _SendMessage($hWnd, $TTM_NEWTOOLRECTW, 0, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo, $tMemMap) - _MemWrite($tMemMap, $tToolInfo) - _SendMessage($hWnd, $TTM_NEWTOOLRECTW, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUIToolTip_NewToolRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_Pop($hWnd) - _SendMessage($hWnd, $TTM_POP) -EndFunc ;==>_GUIToolTip_Pop - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_PopUp($hWnd) - _SendMessage($hWnd, $TTM_POPUP) -EndFunc ;==>_GUIToolTip_PopUp - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_SetDelayTime($hWnd, $iDuration, $iTime) - _SendMessage($hWnd, $TTM_SETDELAYTIME, $iDuration, $iTime) -EndFunc ;==>_GUIToolTip_SetDelayTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_SetMargin($hWnd, $iLeft, $iTop, $iRight, $iBottom) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Left", $iLeft) - DllStructSetData($tRECT, "Top", $iTop) - DllStructSetData($tRECT, "Right", $iRight) - DllStructSetData($tRECT, "Bottom", $iBottom) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - _SendMessage($hWnd, $TTM_SETMARGIN, 0, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _MemWrite($tMemMap, $tRECT) - _SendMessage($hWnd, $TTM_SETMARGIN, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUIToolTip_SetMargin - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_SetMaxTipWidth($hWnd, $iWidth) - Return _SendMessage($hWnd, $TTM_SETMAXTIPWIDTH, 0, $iWidth) -EndFunc ;==>_GUIToolTip_SetMaxTipWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_SetTipBkColor($hWnd, $iColor) - _SendMessage($hWnd, $TTM_SETTIPBKCOLOR, $iColor) -EndFunc ;==>_GUIToolTip_SetTipBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_SetTipTextColor($hWnd, $iColor) - _SendMessage($hWnd, $TTM_SETTIPTEXTCOLOR, $iColor) -EndFunc ;==>_GUIToolTip_SetTipTextColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_SetTitle($hWnd, $sTitle, $iIcon = 0) - Local $iBuffer = StringLen($sTitle) + 1 - Local $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - DllStructSetData($tBuffer, "Text", $sTitle) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - $iRet = _SendMessage($hWnd, $TTM_SETTITLEW, $iIcon, $tBuffer, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tBuffer) - $iRet = _SendMessage($hWnd, $TTM_SETTITLEW, $iIcon, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUIToolTip_SetTitle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_SetToolInfo($hWnd, $sText, $iID = 0, $iLeft = 0, $iTop = 0, $iRight = 0, $iBottom = 0, $iFlags = Default, $iParam = 0) - If $iFlags = Default Then $iFlags = BitOR($TTF_SUBCLASS, $TTF_IDISHWND) - Local $tBuffer = DllStructCreate("wchar Text[4096]") - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - DllStructSetData($tToolInfo, "Flags", $iFlags) - DllStructSetData($tToolInfo, "hWnd", $hWnd) - DllStructSetData($tToolInfo, "ID", $iID) - DllStructSetData($tToolInfo, "Left", $iLeft) - DllStructSetData($tToolInfo, "Top", $iTop) - DllStructSetData($tToolInfo, "Right", $iRight) - DllStructSetData($tToolInfo, "Bottom", $iBottom) - DllStructSetData($tToolInfo, "Param", $iParam) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - DllStructSetData($tToolInfo, "Text", DllStructGetPtr($tBuffer)) - _SendMessage($hWnd, $TTM_SETTOOLINFOW, 0, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo + 4096, $tMemMap) - Local $pText = $pMemory + $iToolInfo - DllStructSetData($tToolInfo, "Text", $pText) - _MemWrite($tMemMap, $tToolInfo, $pMemory, $iToolInfo) - _MemWrite($tMemMap, $pText, $tBuffer, 4096) - _SendMessage($hWnd, $TTM_SETTOOLINFOW, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUIToolTip_SetToolInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_SetWindowTheme($hWnd, $sStyle) - Local $tBuffer = _WinAPI_MultiByteToWideChar($sStyle) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - _SendMessage($hWnd, $TTM_SETWINDOWTHEME, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, 4096, $tMemMap) - _MemWrite($tMemMap, $tBuffer) - _SendMessage($hWnd, $TTM_SETWINDOWTHEME, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUIToolTip_SetWindowTheme - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_ToolExists($hWnd) - Return _SendMessage($hWnd, $TTM_GETCURRENTTOOL) <> 0 -EndFunc ;==>_GUIToolTip_ToolExists - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_ToolToArray($hWnd, ByRef $tToolInfo, $iError) - Local $aTool[10] - - $aTool[0] = DllStructGetData($tToolInfo, "Flags") - $aTool[1] = DllStructGetData($tToolInfo, "hWnd") - $aTool[2] = DllStructGetData($tToolInfo, "ID") - $aTool[3] = DllStructGetData($tToolInfo, "Left") - $aTool[4] = DllStructGetData($tToolInfo, "Top") - $aTool[5] = DllStructGetData($tToolInfo, "Right") - $aTool[6] = DllStructGetData($tToolInfo, "Bottom") - $aTool[7] = DllStructGetData($tToolInfo, "hInst") - $aTool[8] = _GUIToolTip_GetText($hWnd, $aTool[1], $aTool[2]) - $aTool[9] = DllStructGetData($tToolInfo, "Param") - Return SetError($iError, 0, $aTool) -EndFunc ;==>_GUIToolTip_ToolToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_TrackActivate($hWnd, $bActivate = True, $hTool = 0, $iID = 0) - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - - DllStructSetData($tToolInfo, "Size", $iToolInfo) - DllStructSetData($tToolInfo, "hWnd", $hTool) - DllStructSetData($tToolInfo, "ID", $iID) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - _SendMessage($hWnd, $TTM_TRACKACTIVATE, $bActivate, $tToolInfo, 0, "wparam", "struct*") - Else - $iToolInfo = DllStructGetSize($tToolInfo) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo, $tMemMap) - _MemWrite($tMemMap, $tToolInfo) - _SendMessage($hWnd, $TTM_TRACKACTIVATE, $bActivate, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUIToolTip_TrackActivate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_TrackPosition($hWnd, $iX, $iY) - _SendMessage($hWnd, $TTM_TRACKPOSITION, 0, _WinAPI_MakeLong($iX, $iY)) -EndFunc ;==>_GUIToolTip_TrackPosition - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_Update($hWnd) - _SendMessage($hWnd, $TTM_UPDATE) -EndFunc ;==>_GUIToolTip_Update - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUIToolTip_UpdateTipText($hWnd, $hTool, $iID, $sText) - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Local $tToolInfo = DllStructCreate($tagTOOLINFO) - Local $iToolInfo = DllStructGetSize($tToolInfo) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tToolInfo, "Size", $iToolInfo) - DllStructSetData($tToolInfo, "hWnd", $hTool) - DllStructSetData($tToolInfo, "ID", $iID) - If _WinAPI_InProcess($hWnd, $__g_hTTLastWnd) Then - DllStructSetData($tToolInfo, "Text", DllStructGetPtr($tBuffer)) - _SendMessage($hWnd, $TTM_UPDATETIPTEXTW, 0, $tToolInfo, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iToolInfo + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iToolInfo - DllStructSetData($tToolInfo, "Text", $pText) - _MemWrite($tMemMap, $tToolInfo, $pMemory, $iToolInfo) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - _SendMessage($hWnd, $TTM_UPDATETIPTEXTW, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUIToolTip_UpdateTipText diff --git a/build/Include/GuiToolbar.au3 b/build/Include/GuiToolbar.au3 deleted file mode 100644 index 2b83cdffd..000000000 --- a/build/Include/GuiToolbar.au3 +++ /dev/null @@ -1,1686 +0,0 @@ -#include-once - -#include "Memory.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "ToolbarConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Toolbar -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Toolbar control management. -; A toolbar is a control window that contains one or more buttons. Each button, when clicked by a user, sends a -; command message to the parent window. Typically, the buttons in a toolbar correspond to items in the -; application's menu, providing an additional and more direct way for the user to access an application's -; commands. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_hTBLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__TOOLBARCONSTANT_ClassName = "ToolbarWindow32" -Global Const $__TOOLBARCONSTANT_WS_CLIPSIBLINGS = 0x04000000 -Global Const $__TOOLBARCONSTANT_HINST_COMMCTRL = -1 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlToolbar_AddBitmap -; _GUICtrlToolbar_AddButton -; _GUICtrlToolbar_AddButtonSep -; _GUICtrlToolbar_AddString -; _GUICtrlToolbar_ButtonCount -; _GUICtrlToolbar_CheckButton -; _GUICtrlToolbar_ClickAccel -; _GUICtrlToolbar_ClickButton -; _GUICtrlToolbar_ClickIndex -; _GUICtrlToolbar_CommandToIndex -; _GUICtrlToolbar_Create -; _GUICtrlToolbar_Customize -; _GUICtrlToolbar_DeleteButton -; _GUICtrlToolbar_Destroy -; _GUICtrlToolbar_EnableButton -; _GUICtrlToolbar_FindToolbar -; _GUICtrlToolbar_GetAnchorHighlight -; _GUICtrlToolbar_GetBitmapFlags -; _GUICtrlToolbar_GetButtonBitmap -; _GUICtrlToolbar_GetButtonInfo -; _GUICtrlToolbar_GetButtonInfoEx -; _GUICtrlToolbar_GetButtonParam -; _GUICtrlToolbar_GetButtonRect -; _GUICtrlToolbar_GetButtonRectEx -; _GUICtrlToolbar_GetButtonSize -; _GUICtrlToolbar_GetButtonState -; _GUICtrlToolbar_GetButtonStyle -; _GUICtrlToolbar_GetButtonText -; _GUICtrlToolbar_GetColorScheme -; _GUICtrlToolbar_GetDisabledImageList -; _GUICtrlToolbar_GetExtendedStyle -; _GUICtrlToolbar_GetHotImageList -; _GUICtrlToolbar_GetHotItem -; _GUICtrlToolbar_GetImageList -; _GUICtrlToolbar_GetInsertMark -; _GUICtrlToolbar_GetInsertMarkColor -; _GUICtrlToolbar_GetMaxSize -; _GUICtrlToolbar_GetMetrics -; _GUICtrlToolbar_GetPadding -; _GUICtrlToolbar_GetRows -; _GUICtrlToolbar_GetString -; _GUICtrlToolbar_GetStyle -; _GUICtrlToolbar_GetStyleAltDrag -; _GUICtrlToolbar_GetStyleCustomErase -; _GUICtrlToolbar_GetStyleFlat -; _GUICtrlToolbar_GetStyleList -; _GUICtrlToolbar_GetStyleRegisterDrop -; _GUICtrlToolbar_GetStyleToolTips -; _GUICtrlToolbar_GetStyleTransparent -; _GUICtrlToolbar_GetStyleWrapable -; _GUICtrlToolbar_GetTextRows -; _GUICtrlToolbar_GetToolTips -; _GUICtrlToolbar_GetUnicodeFormat -; _GUICtrlToolbar_HideButton -; _GUICtrlToolbar_HighlightButton -; _GUICtrlToolbar_HitTest -; _GUICtrlToolbar_IndexToCommand -; _GUICtrlToolbar_InsertButton -; _GUICtrlToolbar_InsertMarkHitTest -; _GUICtrlToolbar_IsButtonChecked -; _GUICtrlToolbar_IsButtonEnabled -; _GUICtrlToolbar_IsButtonHidden -; _GUICtrlToolbar_IsButtonHighlighted -; _GUICtrlToolbar_IsButtonIndeterminate -; _GUICtrlToolbar_IsButtonPressed -; _GUICtrlToolbar_LoadBitmap -; _GUICtrlToolbar_LoadImages -; _GUICtrlToolbar_MapAccelerator -; _GUICtrlToolbar_MoveButton -; _GUICtrlToolbar_PressButton -; _GUICtrlToolbar_SetAnchorHighlight -; _GUICtrlToolbar_SetBitmapSize -; _GUICtrlToolbar_SetButtonBitMap -; _GUICtrlToolbar_SetButtonInfo -; _GUICtrlToolbar_SetButtonInfoEx -; _GUICtrlToolbar_SetButtonParam -; _GUICtrlToolbar_SetButtonSize -; _GUICtrlToolbar_SetButtonState -; _GUICtrlToolbar_SetButtonStyle -; _GUICtrlToolbar_SetButtonText -; _GUICtrlToolbar_SetButtonWidth -; _GUICtrlToolbar_SetCmdID -; _GUICtrlToolbar_SetColorScheme -; _GUICtrlToolbar_SetDisabledImageList -; _GUICtrlToolbar_SetDrawTextFlags -; _GUICtrlToolbar_SetExtendedStyle -; _GUICtrlToolbar_SetHotImageList -; _GUICtrlToolbar_SetHotItem -; _GUICtrlToolbar_SetImageList -; _GUICtrlToolbar_SetIndent -; _GUICtrlToolbar_SetIndeterminate -; _GUICtrlToolbar_SetInsertMark -; _GUICtrlToolbar_SetInsertMarkColor -; _GUICtrlToolbar_SetMaxTextRows -; _GUICtrlToolbar_SetMetrics -; _GUICtrlToolbar_SetPadding -; _GUICtrlToolbar_SetParent -; _GUICtrlToolbar_SetRows -; _GUICtrlToolbar_SetStyle -; _GUICtrlToolbar_SetStyleAltDrag -; _GUICtrlToolbar_SetStyleCustomErase -; _GUICtrlToolbar_SetStyleFlat -; _GUICtrlToolbar_SetStyleList -; _GUICtrlToolbar_SetStyleRegisterDrop -; _GUICtrlToolbar_SetStyleToolTips -; _GUICtrlToolbar_SetStyleTransparent -; _GUICtrlToolbar_SetStyleWrapable -; _GUICtrlToolbar_SetToolTips -; _GUICtrlToolbar_SetUnicodeFormat -; _GUICtrlToolbar_SetWindowTheme -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagTBADDBITMAP -; $tagTBINSERTMARK -; $tagTBMETRICS -; __GUICtrlToolbar_AutoSize -; __GUICtrlToolbar_ButtonStructSize -; __GUICtrlToolbar_SetStyleEx -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTBADDBITMAP -; Description ...: Adds a bitmap that contains button images to a toolbar -; Fields ........: hInst - Handle to the module instance with the executable file that contains a bitmap resource. To use bitmap -; +handles instead of resource IDs, set this member to 0. You can add the system-defined button bitmaps to the -; +list by specifying $HINST_COMMCTRL as the hInst member and one of the following values as the ID member: -; |$IDB_STD_LARGE_COLOR - Adds large, color standard bitmaps -; |$IDB_STD_SMALL_COLOR - Adds small, color standard bitmaps -; |$IDB_VIEW_LARGE_COLOR - Adds large, color view bitmaps -; |$IDB_VIEW_SMALL_COLOR - Adds small, color view bitmaps -; ID - If hInst is 0, set this member to the bitmap handle of the bitmap with the button images. Otherwise, -; +set it to the resource identifier of the bitmap with the button images. -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTBADDBITMAP = "handle hInst;uint_ptr ID" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTBINSERTMARK -; Description ...: Contains information on the insertion mark in a toolbar control -; Fields ........: Button - Zero based index of the insertion mark. If this member is -1, there is no insertion mark -; Flags - Defines where the insertion mark is in relation to Button. This can be one of the following values: -; |0 - The insertion mark is to the left of the specified button -; |$TBIMHT_AFTER - The insertion mark is to the right of the specified button -; |$TBIMHT_BACKGROUND - The insertion mark is on the background of the toolbar. This flag is only used with -; +the $TB_INSERTMARKHITTEST message. -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTBINSERTMARK = "int Button;dword Flags" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTBMETRICS -; Description ...: Defines the metrics of a toolbar that are used to shrink or expand toolbar items -; Fields ........: Size - Size of this structure, in bytes -; Mask - Mask that determines the metric to retrieve. It can be any combination of the following: -; |$TBMF_PAD - Retrieve the XPad and YPad values -; |$TBMF_BARPAD - Retrieve the XBarPad and YBarPad values -; |$TBMF_BUTTONSPACING - Retrieve the XSpacing and YSpacing values -; XPad - Width of the padding inside the toolbar buttons -; YPad - Height of the padding inside the toolbar buttons -; XBarPad - Width of the toolbar. Not used. -; YBarPad - Height of the toolbar. Not used. -; XSpacing - Width of the space between toolbar buttons -; YSpacing - Height of the space between toolbar buttons -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTBMETRICS = "uint Size;dword Mask;int XPad;int YPad;int XBarPad;int YBarPad;int XSpacing;int YSpacing" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_AddBitmap($hWnd, $iButtons, $hInst, $iID) - Local $tBitmap = DllStructCreate($tagTBADDBITMAP) - DllStructSetData($tBitmap, "hInst", $hInst) - DllStructSetData($tBitmap, "ID", $iID) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_ADDBITMAP, $iButtons, $tBitmap, 0, "wparam", "struct*") - Else - Local $iBitmap = DllStructGetSize($tBitmap) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBitmap, $tMemMap) - _MemWrite($tMemMap, $tBitmap, $pMemory, $iBitmap) - $iRet = _SendMessage($hWnd, $TB_ADDBITMAP, $iButtons, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return $iRet -EndFunc ;==>_GUICtrlToolbar_AddBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_AddButton($hWnd, $iID, $iImage, $iString = 0, $iStyle = 0, $iState = 4, $iParam = 0) - Local $bUnicode = _GUICtrlToolbar_GetUnicodeFormat($hWnd) - - Local $tButton = DllStructCreate($tagTBBUTTON) - DllStructSetData($tButton, "Bitmap", $iImage) - DllStructSetData($tButton, "Command", $iID) - DllStructSetData($tButton, "State", $iState) - DllStructSetData($tButton, "Style", $iStyle) - DllStructSetData($tButton, "Param", $iParam) - DllStructSetData($tButton, "String", $iString) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_ADDBUTTONSW, 1, $tButton, 0, "wparam", "struct*") - Else - Local $iButton = DllStructGetSize($tButton) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iButton, $tMemMap) - _MemWrite($tMemMap, $tButton, $pMemory, $iButton) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TB_ADDBUTTONSW, 1, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $TB_ADDBUTTONSA, 1, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - __GUICtrlToolbar_AutoSize($hWnd) - Return $iRet <> 0 -EndFunc ;==>_GUICtrlToolbar_AddButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_AddButtonSep($hWnd, $iWidth = 6) - _GUICtrlToolbar_AddButton($hWnd, 0, $iWidth, 0, $BTNS_SEP) -EndFunc ;==>_GUICtrlToolbar_AddButtonSep - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_AddString($hWnd, $sString) - Local $bUnicode = _GUICtrlToolbar_GetUnicodeFormat($hWnd) - - Local $iBuffer = StringLen($sString) + 2 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sString) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_ADDSTRINGW, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - _MemWrite($tMemMap, $tBuffer, $pMemory, $iBuffer) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TB_ADDSTRINGW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $TB_ADDSTRINGA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Return $iRet -EndFunc ;==>_GUICtrlToolbar_AddString - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlToolbar_AutoSize -; Description ...: Causes a toolbar to be resized -; Syntax.........: __GUICtrlToolbar_AutoSize ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: An application calls this function after causing the size of a toolbar to change by setting the button or -; bitmap size or by adding strings for the first time. Normally, you do not need to use this function as it is -; called internally as needed. -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlToolbar_AutoSize($hWnd) - _SendMessage($hWnd, $TB_AUTOSIZE) -EndFunc ;==>__GUICtrlToolbar_AutoSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_ButtonCount($hWnd) - Return _SendMessage($hWnd, $TB_BUTTONCOUNT) -EndFunc ;==>_GUICtrlToolbar_ButtonCount - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlToolbar_ButtonStructSize -; Description ...: Specifies the size of the $tagTBBUTTON structure -; Syntax.........: __GUICtrlToolbar_ButtonStructSize ( $hWnd ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; Remarks .......: This function is used to tell the control the size of a $tagTBBUTTON structure. Normally, you do not need to -; use this function as it is called internally when the control is created. -; Related .......: $tagTBBUTTON -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlToolbar_ButtonStructSize($hWnd) - Local $tButton = DllStructCreate($tagTBBUTTON) - _SendMessage($hWnd, $TB_BUTTONSTRUCTSIZE, DllStructGetSize($tButton), 0, 0, "wparam", "ptr") -EndFunc ;==>__GUICtrlToolbar_ButtonStructSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_CheckButton($hWnd, $iCommandID, $bCheck = True) - Return _SendMessage($hWnd, $TB_CHECKBUTTON, $iCommandID, $bCheck) <> 0 -EndFunc ;==>_GUICtrlToolbar_CheckButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_ClickAccel($hWnd, $sAccelKey, $sButton = "left", $bMove = False, $iClicks = 1, $iSpeed = 1) - Local $iID = _GUICtrlToolbar_MapAccelerator($hWnd, $sAccelKey) - _GUICtrlToolbar_ClickButton($hWnd, $iID, $sButton, $bMove, $iClicks, $iSpeed) -EndFunc ;==>_GUICtrlToolbar_ClickAccel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_ClickButton($hWnd, $iCommandID, $sButton = "left", $bMove = False, $iClicks = 1, $iSpeed = 1) - Local $tRECT = _GUICtrlToolbar_GetButtonRectEx($hWnd, $iCommandID) - Local $tPoint = _WinAPI_PointFromRect($tRECT) - $tPoint = _WinAPI_ClientToScreen($hWnd, $tPoint) - Local $iX, $iY - _WinAPI_GetXYFromPoint($tPoint, $iX, $iY) - Local $iMode = Opt("MouseCoordMode", 1) - If Not $bMove Then - Local $aPos = MouseGetPos() - _WinAPI_ShowCursor(False) - MouseClick($sButton, $iX, $iY, $iClicks, $iSpeed) - MouseMove($aPos[0], $aPos[1], 0) - _WinAPI_ShowCursor(True) - Else - MouseClick($sButton, $iX, $iY, $iClicks, $iSpeed) - EndIf - Opt("MouseCoordMode", $iMode) -EndFunc ;==>_GUICtrlToolbar_ClickButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_ClickIndex($hWnd, $iIndex, $sButton = "left", $bMove = False, $iClicks = 1, $iSpeed = 1) - Local $iCommandID = _GUICtrlToolbar_IndexToCommand($hWnd, $iIndex) - _GUICtrlToolbar_ClickButton($hWnd, $iCommandID, $sButton, $bMove, $iClicks, $iSpeed) -EndFunc ;==>_GUICtrlToolbar_ClickIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_CommandToIndex($hWnd, $iCommandID) - Return _SendMessage($hWnd, $TB_COMMANDTOINDEX, $iCommandID) -EndFunc ;==>_GUICtrlToolbar_CommandToIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_Create($hWnd, $iStyle = 0x00000800, $iExStyle = 0x00000000) - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__TOOLBARCONSTANT_WS_CLIPSIBLINGS, $__UDFGUICONSTANT_WS_VISIBLE) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hTool = _WinAPI_CreateWindowEx($iExStyle, $__TOOLBARCONSTANT_ClassName, "", $iStyle, 0, 0, 0, 0, $hWnd, $nCtrlID) - __GUICtrlToolbar_ButtonStructSize($hTool) - Return $hTool -EndFunc ;==>_GUICtrlToolbar_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_Customize($hWnd) - _SendMessage($hWnd, $TB_CUSTOMIZE) -EndFunc ;==>_GUICtrlToolbar_Customize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_DeleteButton($hWnd, $iCommandID) - Local $iIndex = _GUICtrlToolbar_CommandToIndex($hWnd, $iCommandID) - If $iIndex = -1 Then Return SetError(-1, 0, False) - Return _SendMessage($hWnd, $TB_DELETEBUTTON, $iIndex) <> 0 -EndFunc ;==>_GUICtrlToolbar_DeleteButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_Destroy(ByRef $hWnd) - If Not _WinAPI_IsClassName($hWnd, $__TOOLBARCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlToolbar_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_EnableButton($hWnd, $iCommandID, $bEnable = True) - Return _SendMessage($hWnd, $TB_ENABLEBUTTON, $iCommandID, $bEnable) <> 0 -EndFunc ;==>_GUICtrlToolbar_EnableButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_FindToolbar($hWnd, $sText) - Local $iCommandID, $hToolbar - - If Not _WinAPI_IsWindow($hWnd) Then - $hWnd = WinGetHandle($hWnd) - If @error Then Return SetError(-1, -1, 0) - EndIf - Local $aWinList = _WinAPI_EnumWindows(True, $hWnd) - For $iI = 1 To $aWinList[0][0] - If $aWinList[$iI][1] = $__TOOLBARCONSTANT_ClassName Then - $hToolbar = $aWinList[$iI][0] - For $iJ = 0 To _GUICtrlToolbar_ButtonCount($hToolbar) - 1 - $iCommandID = _GUICtrlToolbar_IndexToCommand($hToolbar, $iJ) - If _GUICtrlToolbar_GetButtonText($hToolbar, $iCommandID) = $sText Then Return $hToolbar - Next - EndIf - Next - Return SetError(-2, -2, 0) -EndFunc ;==>_GUICtrlToolbar_FindToolbar - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetAnchorHighlight($hWnd) - Return _SendMessage($hWnd, $TB_GETANCHORHIGHLIGHT) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetAnchorHighlight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetBitmapFlags($hWnd) - Return _SendMessage($hWnd, $TB_GETBITMAPFLAGS) -EndFunc ;==>_GUICtrlToolbar_GetBitmapFlags - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonBitmap($hWnd, $iCommandID) - Return _SendMessage($hWnd, $TB_GETBITMAP, $iCommandID) -EndFunc ;==>_GUICtrlToolbar_GetButtonBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonInfo($hWnd, $iCommandID) - Local $aButton[5] - - Local $tButton = _GUICtrlToolbar_GetButtonInfoEx($hWnd, $iCommandID) - $aButton[0] = DllStructGetData($tButton, "Image") - $aButton[1] = DllStructGetData($tButton, "State") - $aButton[2] = DllStructGetData($tButton, "Style") - $aButton[3] = DllStructGetData($tButton, "CX") - $aButton[4] = DllStructGetData($tButton, "Param") - Return $aButton -EndFunc ;==>_GUICtrlToolbar_GetButtonInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonInfoEx($hWnd, $iCommandID) - Local $bUnicode = _GUICtrlToolbar_GetUnicodeFormat($hWnd) - - Local $tButton = DllStructCreate($tagTBBUTTONINFO) - Local $iButton = DllStructGetSize($tButton) - Local $iMask = BitOR($TBIF_IMAGE, $TBIF_STATE, $TBIF_STYLE, $TBIF_LPARAM, $TBIF_SIZE) - DllStructSetData($tButton, "Size", $iButton) - DllStructSetData($tButton, "Mask", $iMask) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_GETBUTTONINFOW, $iCommandID, $tButton, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iButton, $tMemMap) - _MemWrite($tMemMap, $tButton, $pMemory, $iButton) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TB_GETBUTTONINFOW, $iCommandID, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $TB_GETBUTTONINFOA, $iCommandID, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tButton, $iButton) - _MemFree($tMemMap) - EndIf - Return SetError($iRet = -1, 0, $tButton) -EndFunc ;==>_GUICtrlToolbar_GetButtonInfoEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonParam($hWnd, $iCommandID) - Local $tButton = _GUICtrlToolbar_GetButtonInfoEx($hWnd, $iCommandID) - Return DllStructGetData($tButton, "Param") -EndFunc ;==>_GUICtrlToolbar_GetButtonParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonRect($hWnd, $iCommandID) - Local $aRect[4] - - Local $tRECT = _GUICtrlToolbar_GetButtonRectEx($hWnd, $iCommandID) - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlToolbar_GetButtonRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonRectEx($hWnd, $iCommandID) - Local $tRECT = DllStructCreate($tagRECT) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - _SendMessage($hWnd, $TB_GETRECT, $iCommandID, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _SendMessage($hWnd, $TB_GETRECT, $iCommandID, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Return $tRECT -EndFunc ;==>_GUICtrlToolbar_GetButtonRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonSize($hWnd) - Local $aSize[2] - - Local $iRet = _SendMessage($hWnd, $TB_GETBUTTONSIZE) - $aSize[0] = _WinAPI_HiWord($iRet) - $aSize[1] = _WinAPI_LoWord($iRet) - Return $aSize -EndFunc ;==>_GUICtrlToolbar_GetButtonSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonState($hWnd, $iCommandID) - Return _SendMessage($hWnd, $TB_GETSTATE, $iCommandID) -EndFunc ;==>_GUICtrlToolbar_GetButtonState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonStyle($hWnd, $iCommandID) - Local $tButton = _GUICtrlToolbar_GetButtonInfoEx($hWnd, $iCommandID) - Return DllStructGetData($tButton, "Style") -EndFunc ;==>_GUICtrlToolbar_GetButtonStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_GetButtonText($hWnd, $iCommandID) - Local $bUnicode = _GUICtrlToolbar_GetUnicodeFormat($hWnd) - - Local $iBuffer - If $bUnicode Then - $iBuffer = _SendMessage($hWnd, $TB_GETBUTTONTEXTW, $iCommandID) - Else - $iBuffer = _SendMessage($hWnd, $TB_GETBUTTONTEXTA, $iCommandID) - EndIf - If $iBuffer = 0 Then Return SetError(True, 0, "") - If $iBuffer = 1 Then Return SetError(False, 0, "") - If $iBuffer <= -1 Then Return SetError(False, -1, "") - $iBuffer += 1 - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_GETBUTTONTEXTW, $iCommandID, $tBuffer, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TB_GETBUTTONTEXTW, $iCommandID, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $TB_GETBUTTONTEXTA, $iCommandID, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Return SetError($iRet > 0, 0, DllStructGetData($tBuffer, "Text")) -EndFunc ;==>_GUICtrlToolbar_GetButtonText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_GetColorScheme($hWnd) - Local $aColor[2], $iRet - - Local $tColor = DllStructCreate($tagCOLORSCHEME) - Local $iColor = DllStructGetSize($tColor) - DllStructSetData($tColor, "Size", $iColor) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_GETCOLORSCHEME, 0, $tColor, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iColor, $tMemMap) - $iRet = _SendMessage($hWnd, $TB_GETCOLORSCHEME, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tColor, $iColor) - _MemFree($tMemMap) - EndIf - $aColor[0] = DllStructGetData($tColor, "BtnHighlight") - $aColor[1] = DllStructGetData($tColor, "BtnShadow") - Return SetError($iRet = 0, 0, $aColor) -EndFunc ;==>_GUICtrlToolbar_GetColorScheme - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetDisabledImageList($hWnd) - Return Ptr(_SendMessage($hWnd, $TB_GETDISABLEDIMAGELIST)) -EndFunc ;==>_GUICtrlToolbar_GetDisabledImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetExtendedStyle($hWnd) - Return _SendMessage($hWnd, $TB_GETEXTENDEDSTYLE) -EndFunc ;==>_GUICtrlToolbar_GetExtendedStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetHotImageList($hWnd) - Return Ptr(_SendMessage($hWnd, $TB_GETHOTIMAGELIST)) -EndFunc ;==>_GUICtrlToolbar_GetHotImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetHotItem($hWnd) - Return _SendMessage($hWnd, $TB_GETHOTITEM) -EndFunc ;==>_GUICtrlToolbar_GetHotItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetImageList($hWnd) - Return Ptr(_SendMessage($hWnd, $TB_GETIMAGELIST)) -EndFunc ;==>_GUICtrlToolbar_GetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_GetInsertMark($hWnd) - Local $aMark[2], $iRet - - Local $tMark = DllStructCreate($tagTBINSERTMARK) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_GETINSERTMARK, 0, $tMark, 0, "wparam", "struct*") - Else - Local $iMark = DllStructGetSize($tMark) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iMark, $tMemMap) - $iRet = _SendMessage($hWnd, $TB_GETINSERTMARK, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tMark, $iMark) - _MemFree($tMemMap) - EndIf - $aMark[0] = DllStructGetData($tMark, "Button") - $aMark[1] = DllStructGetData($tMark, "Flags") - Return SetError($iRet <> 0, 0, $aMark) -EndFunc ;==>_GUICtrlToolbar_GetInsertMark - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetInsertMarkColor($hWnd) - Return _SendMessage($hWnd, $TB_GETINSERTMARKCOLOR) -EndFunc ;==>_GUICtrlToolbar_GetInsertMarkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_GetMaxSize($hWnd) - Local $aSize[2], $iRet - - Local $tSize = DllStructCreate($tagSIZE) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_GETMAXSIZE, 0, $tSize, 0, "wparam", "struct*") - Else - Local $iSize = DllStructGetSize($tSize) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - $iRet = _SendMessage($hWnd, $TB_GETMAXSIZE, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tSize, $iSize) - _MemFree($tMemMap) - EndIf - $aSize[0] = DllStructGetData($tSize, "X") - $aSize[1] = DllStructGetData($tSize, "Y") - Return SetError($iRet = 0, 0, $aSize) -EndFunc ;==>_GUICtrlToolbar_GetMaxSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_GetMetrics($hWnd) - Local $aMetrics[4] - - Local $tMetrics = DllStructCreate($tagTBMETRICS) - Local $iMetrics = DllStructGetSize($tMetrics) - Local $iMask = BitOR($TBMF_PAD, $TBMF_BUTTONSPACING) - DllStructSetData($tMetrics, "Size", $iMetrics) - DllStructSetData($tMetrics, "Mask", $iMask) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - _SendMessage($hWnd, $TB_GETMETRICS, 0, $tMetrics, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iMetrics, $tMemMap) - _SendMessage($hWnd, $TB_GETMETRICS, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tMetrics, $iMetrics) - _MemFree($tMemMap) - EndIf - $aMetrics[0] = DllStructGetData($tMetrics, "XPad") - $aMetrics[1] = DllStructGetData($tMetrics, "YPad") - $aMetrics[2] = DllStructGetData($tMetrics, "XSpacing") - $aMetrics[3] = DllStructGetData($tMetrics, "YSpacing") - Return $aMetrics -EndFunc ;==>_GUICtrlToolbar_GetMetrics - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetPadding($hWnd) - Local $aPad[2] - - Local $iPad = _SendMessage($hWnd, $TB_GETPADDING) - $aPad[0] = _WinAPI_LoWord($iPad) - $aPad[1] = _WinAPI_HiWord($iPad) - Return $aPad -EndFunc ;==>_GUICtrlToolbar_GetPadding - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetRows($hWnd) - Return _SendMessage($hWnd, $TB_GETROWS) -EndFunc ;==>_GUICtrlToolbar_GetRows - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_GetString($hWnd, $iIndex) - Local $bUnicode = _GUICtrlToolbar_GetUnicodeFormat($hWnd) - - Local $iBuffer - If $bUnicode Then - $iBuffer = _SendMessage($hWnd, $TB_GETSTRINGW, _WinAPI_MakeLong(0, $iIndex), 0, 0, "long") + 1 - Else - $iBuffer = _SendMessage($hWnd, $TB_GETSTRINGA, _WinAPI_MakeLong(0, $iIndex), 0, 0, "long") + 1 - EndIf - - If $iBuffer = 0 Then Return SetError(-1, 0, "") - If $iBuffer = 1 Then Return "" - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_GETSTRINGW, _WinAPI_MakeLong($iBuffer, $iIndex), $tBuffer, 0, "long", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TB_GETSTRINGW, _WinAPI_MakeLong($iBuffer, $iIndex), $pMemory, 0, "long", "ptr") - Else - $iRet = _SendMessage($hWnd, $TB_GETSTRINGA, _WinAPI_MakeLong($iBuffer, $iIndex), $pMemory, 0, "long", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - Return SetError($iRet = -1, 0, DllStructGetData($tBuffer, "Text")) -EndFunc ;==>_GUICtrlToolbar_GetString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetStyle($hWnd) - Return _SendMessage($hWnd, $TB_GETSTYLE) -EndFunc ;==>_GUICtrlToolbar_GetStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetStyleAltDrag($hWnd) - Return BitAND(_GUICtrlToolbar_GetStyle($hWnd), $TBSTYLE_ALTDRAG) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetStyleAltDrag - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetStyleCustomErase($hWnd) - Return BitAND(_GUICtrlToolbar_GetStyle($hWnd), $TBSTYLE_CUSTOMERASE) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetStyleCustomErase - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetStyleFlat($hWnd) - Return BitAND(_GUICtrlToolbar_GetStyle($hWnd), $TBSTYLE_FLAT) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetStyleFlat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetStyleList($hWnd) - Return BitAND(_GUICtrlToolbar_GetStyle($hWnd), $TBSTYLE_LIST) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetStyleList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetStyleRegisterDrop($hWnd) - Return BitAND(_GUICtrlToolbar_GetStyle($hWnd), $TBSTYLE_REGISTERDROP) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetStyleRegisterDrop - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetStyleToolTips($hWnd) - Return BitAND(_GUICtrlToolbar_GetStyle($hWnd), $TBSTYLE_TOOLTIPS) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetStyleToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetStyleTransparent($hWnd) - Return BitAND(_GUICtrlToolbar_GetStyle($hWnd), $TBSTYLE_TRANSPARENT) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetStyleTransparent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetStyleWrapable($hWnd) - Return BitAND(_GUICtrlToolbar_GetStyle($hWnd), $TBSTYLE_WRAPABLE) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetStyleWrapable - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetTextRows($hWnd) - Return _SendMessage($hWnd, $TB_GETTEXTROWS) -EndFunc ;==>_GUICtrlToolbar_GetTextRows - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetToolTips($hWnd) - Return HWnd(_SendMessage($hWnd, $TB_GETTOOLTIPS)) -EndFunc ;==>_GUICtrlToolbar_GetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_GetUnicodeFormat($hWnd) - Return _SendMessage($hWnd, $TB_GETUNICODEFORMAT) <> 0 -EndFunc ;==>_GUICtrlToolbar_GetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_HideButton($hWnd, $iCommandID, $bHide = True) - Return _SendMessage($hWnd, $TB_HIDEBUTTON, $iCommandID, $bHide) <> 0 -EndFunc ;==>_GUICtrlToolbar_HideButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_HighlightButton($hWnd, $iCommandID, $bHighlight = True) - Return _SendMessage($hWnd, $TB_MARKBUTTON, $iCommandID, $bHighlight) <> 0 -EndFunc ;==>_GUICtrlToolbar_HighlightButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_HitTest($hWnd, $iX, $iY) - Local $tPoint = DllStructCreate($tagPOINT) - DllStructSetData($tPoint, "X", $iX) - DllStructSetData($tPoint, "Y", $iY) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_HITTEST, 0, $tPoint, 0, "wparam", "struct*") - Else - Local $iPoint = DllStructGetSize($tPoint) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iPoint, $tMemMap) - _MemWrite($tMemMap, $tPoint, $pMemory, $iPoint) - $iRet = _SendMessage($hWnd, $TB_HITTEST, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - Return $iRet -EndFunc ;==>_GUICtrlToolbar_HitTest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_IndexToCommand($hWnd, $iIndex) - Local $tButton = DllStructCreate($tagTBBUTTON) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - _SendMessage($hWnd, $TB_GETBUTTON, $iIndex, $tButton, 0, "wparam", "struct*") - Else - Local $iButton = DllStructGetSize($tButton) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iButton, $tMemMap) - _MemWrite($tMemMap, $tButton, $pMemory, $iButton) - _SendMessage($hWnd, $TB_GETBUTTON, $iIndex, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tButton, $iButton) - _MemFree($tMemMap) - EndIf - Return DllStructGetData($tButton, "Command") -EndFunc ;==>_GUICtrlToolbar_IndexToCommand - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_InsertButton($hWnd, $iIndex, $iID, $iImage, $sText = "", $iStyle = 0, $iState = 4, $iParam = 0) - Local $bUnicode = _GUICtrlToolbar_GetUnicodeFormat($hWnd) - - Local $tBuffer, $iRet - - Local $tButton = DllStructCreate($tagTBBUTTON) - Local $iBuffer = StringLen($sText) + 1 - If $iBuffer > 1 Then - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tButton, "String", DllStructGetPtr($tBuffer)) - EndIf - DllStructSetData($tButton, "Bitmap", $iImage) - DllStructSetData($tButton, "Command", $iID) - DllStructSetData($tButton, "State", $iState) - DllStructSetData($tButton, "Style", $iStyle) - DllStructSetData($tButton, "Param", $iParam) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_INSERTBUTTONW, $iIndex, $tButton, 0, "wparam", "struct*") - Else - Local $iButton = DllStructGetSize($tButton) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iButton + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iButton - _MemWrite($tMemMap, $tButton, $pMemory, $iButton) - If $iBuffer > 1 Then - DllStructSetData($tButton, "String", $pText) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - EndIf - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TB_INSERTBUTTONW, $iIndex, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $TB_INSERTBUTTONA, $iIndex, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>_GUICtrlToolbar_InsertButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_InsertMarkHitTest($hWnd, $iX, $iY) - Local $aMark[2], $iRet - - Local $tPoint = DllStructCreate($tagPOINT) - Local $tMark = DllStructCreate($tagTBINSERTMARK) - DllStructSetData($tPoint, "X", $iX) - DllStructSetData($tPoint, "Y", $iY) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_INSERTMARKHITTEST, $tPoint, $tMark, 0, "struct*", "struct*") - Else - Local $iPoint = DllStructGetSize($tPoint) - Local $iMark = DllStructGetSize($tMark) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iPoint + $iMark, $tMemMap) - Local $pMarkPtr = $pMemory + $iPoint - _MemWrite($tMemMap, $tPoint, $pMemory, $iPoint) - $iRet = _SendMessage($hWnd, $TB_INSERTMARKHITTEST, $pMemory, $pMarkPtr, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMarkPtr, $tMark, $iMark) - _MemFree($tMemMap) - EndIf - $aMark[0] = DllStructGetData($tMark, "Button") - $aMark[1] = DllStructGetData($tMark, "Flags") - Return SetError($iRet <> 0, 0, $aMark) -EndFunc ;==>_GUICtrlToolbar_InsertMarkHitTest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_IsButtonChecked($hWnd, $iCommandID) - Return _SendMessage($hWnd, $TB_ISBUTTONCHECKED, $iCommandID) <> 0 -EndFunc ;==>_GUICtrlToolbar_IsButtonChecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_IsButtonEnabled($hWnd, $iCommandID) - Return _SendMessage($hWnd, $TB_ISBUTTONENABLED, $iCommandID) <> 0 -EndFunc ;==>_GUICtrlToolbar_IsButtonEnabled - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_IsButtonHidden($hWnd, $iCommandID) - Return _SendMessage($hWnd, $TB_ISBUTTONHIDDEN, $iCommandID) <> 0 -EndFunc ;==>_GUICtrlToolbar_IsButtonHidden - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_IsButtonHighlighted($hWnd, $iCommandID) - Return _SendMessage($hWnd, $TB_ISBUTTONHIGHLIGHTED, $iCommandID) <> 0 -EndFunc ;==>_GUICtrlToolbar_IsButtonHighlighted - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_IsButtonIndeterminate($hWnd, $iCommandID) - Return _SendMessage($hWnd, $TB_ISBUTTONINDETERMINATE, $iCommandID) <> 0 -EndFunc ;==>_GUICtrlToolbar_IsButtonIndeterminate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_IsButtonPressed($hWnd, $iCommandID) - Return _SendMessage($hWnd, $TB_ISBUTTONPRESSED, $iCommandID) <> 0 -EndFunc ;==>_GUICtrlToolbar_IsButtonPressed - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_LoadBitmap($hWnd, $sFileName) - Local $aSize = _GUICtrlToolbar_GetButtonSize($hWnd) - Local $hBitmap = _WinAPI_LoadImage(0, $sFileName, 0, $aSize[1], $aSize[0], $LR_LOADFROMFILE) - If $hBitmap = 0 Then Return SetError(-1, -1, -1) - Return _GUICtrlToolbar_AddBitmap($hWnd, 1, 0, $hBitmap) -EndFunc ;==>_GUICtrlToolbar_LoadBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_LoadImages($hWnd, $iBitMapID) - Return _SendMessage($hWnd, $TB_LOADIMAGES, $iBitMapID, $__TOOLBARCONSTANT_HINST_COMMCTRL) -EndFunc ;==>_GUICtrlToolbar_LoadImages - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_MapAccelerator($hWnd, $sAccelKey) - Local $tCommand = DllStructCreate("int Data") - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - _SendMessage($hWnd, $TB_MAPACCELERATORW, Asc($sAccelKey), $tCommand, 0, "wparam", "struct*") - Else - Local $iCommand = DllStructGetSize($tCommand) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iCommand, $tMemMap) - _SendMessage($hWnd, $TB_MAPACCELERATORW, Asc($sAccelKey), $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tCommand, $iCommand) - _MemFree($tMemMap) - EndIf - Return DllStructGetData($tCommand, "Data") -EndFunc ;==>_GUICtrlToolbar_MapAccelerator - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_MoveButton($hWnd, $iOldPos, $iNewPos) - Return _SendMessage($hWnd, $TB_MOVEBUTTON, $iOldPos, $iNewPos) <> 0 -EndFunc ;==>_GUICtrlToolbar_MoveButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_PressButton($hWnd, $iCommandID, $bPress = True) - Return _SendMessage($hWnd, $TB_PRESSBUTTON, $iCommandID, $bPress) <> 0 -EndFunc ;==>_GUICtrlToolbar_PressButton - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetAnchorHighlight($hWnd, $bAnchor) - Return _SendMessage($hWnd, $TB_SETANCHORHIGHLIGHT, $bAnchor) -EndFunc ;==>_GUICtrlToolbar_SetAnchorHighlight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetBitmapSize($hWnd, $iWidth, $iHeight) - Return _SendMessage($hWnd, $TB_SETBITMAPSIZE, 0, _WinAPI_MakeLong($iWidth, $iHeight), 0, "wparam", "long") <> 0 -EndFunc ;==>_GUICtrlToolbar_SetBitmapSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetButtonBitMap($hWnd, $iCommandID, $iIndex) - Return _SendMessage($hWnd, $TB_CHANGEBITMAP, $iCommandID, $iIndex) <> 0 -EndFunc ;==>_GUICtrlToolbar_SetButtonBitMap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetButtonInfo($hWnd, $iCommandID, $iImage = -3, $iState = -1, $iStyle = -1, $iWidth = -1, $iParam = -1) - Local $iMask = 0 - - Local $tButton = DllStructCreate($tagTBBUTTONINFO) - If $iImage <> -3 Then - $iMask = $TBIF_IMAGE - DllStructSetData($tButton, "Image", $iImage) - EndIf - If $iState <> -1 Then - $iMask = BitOR($iMask, $TBIF_STATE) - DllStructSetData($tButton, "State", $iState) - EndIf - If $iStyle <> -1 Then - $iMask = BitOR($iMask, $TBIF_STYLE) - DllStructSetData($tButton, "Style", $iStyle) - EndIf - If $iWidth <> -1 Then - $iMask = BitOR($iMask, $TBIF_SIZE) - DllStructSetData($tButton, "CX", $iWidth) - EndIf - If $iParam <> -1 Then - $iMask = BitOR($iMask, $TBIF_LPARAM) - DllStructSetData($tButton, "Param", $iParam) - EndIf - DllStructSetData($tButton, "Mask", $iMask) - Return _GUICtrlToolbar_SetButtonInfoEx($hWnd, $iCommandID, $tButton) -EndFunc ;==>_GUICtrlToolbar_SetButtonInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetButtonInfoEx($hWnd, $iCommandID, $tButton) - Local $iButton = DllStructGetSize($tButton) - DllStructSetData($tButton, "Size", $iButton) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - $iRet = _SendMessage($hWnd, $TB_SETBUTTONINFOW, $iCommandID, $tButton, 0, "wparam", "struct*") - Else - Local $iBuffer = DllStructGetData($tButton, "TextMax") - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iButton + $iBuffer, $tMemMap) - Local $pBuffer = $pMemory + $iButton - DllStructSetData($tButton, "Text", $pBuffer) - _MemWrite($tMemMap, $tButton, $pMemory, $iButton) - _MemWrite($tMemMap, $pBuffer, $pBuffer, $iBuffer) - $iRet = _SendMessage($hWnd, $TB_SETBUTTONINFOW, $iCommandID, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf - - Return $iRet <> 0 -EndFunc ;==>_GUICtrlToolbar_SetButtonInfoEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetButtonParam($hWnd, $iCommandID, $iParam) - Local $tButton = DllStructCreate($tagTBBUTTONINFO) - DllStructSetData($tButton, "Mask", $TBIF_LPARAM) - DllStructSetData($tButton, "Param", $iParam) - Return _GUICtrlToolbar_SetButtonInfoEx($hWnd, $iCommandID, $tButton) -EndFunc ;==>_GUICtrlToolbar_SetButtonParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetButtonSize($hWnd, $iHeight, $iWidth) - Return _SendMessage($hWnd, $TB_SETBUTTONSIZE, 0, _WinAPI_MakeLong($iWidth, $iHeight), 0, "wparam", "long") <> 0 -EndFunc ;==>_GUICtrlToolbar_SetButtonSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetButtonState($hWnd, $iCommandID, $iState) - Return _SendMessage($hWnd, $TB_SETSTATE, $iCommandID, $iState) <> 0 -EndFunc ;==>_GUICtrlToolbar_SetButtonState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetButtonStyle($hWnd, $iCommandID, $iStyle) - Local $tButton = DllStructCreate($tagTBBUTTONINFO) - DllStructSetData($tButton, "Mask", $TBIF_STYLE) - DllStructSetData($tButton, "Style", $iStyle) - Return _GUICtrlToolbar_SetButtonInfoEx($hWnd, $iCommandID, $tButton) -EndFunc ;==>_GUICtrlToolbar_SetButtonStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetButtonText($hWnd, $iCommandID, $sText) - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer = DllStructCreate("wchar Text[" & $iBuffer * 2 & "]") - $iBuffer *= 2 - Local $pBuffer = DllStructGetPtr($tBuffer) - Local $tButton = DllStructCreate($tagTBBUTTONINFO) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tButton, "Mask", $TBIF_TEXT) - DllStructSetData($tButton, "Text", $pBuffer) - DllStructSetData($tButton, "TextMax", $iBuffer) - Return _GUICtrlToolbar_SetButtonInfoEx($hWnd, $iCommandID, $tButton) -EndFunc ;==>_GUICtrlToolbar_SetButtonText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetButtonWidth($hWnd, $iMin, $iMax) - Return _SendMessage($hWnd, $TB_SETBUTTONWIDTH, 0, _WinAPI_MakeLong($iMin, $iMax), 0, "wparam", "long") <> 0 -EndFunc ;==>_GUICtrlToolbar_SetButtonWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetCmdID($hWnd, $iIndex, $iCommandID) - Return _SendMessage($hWnd, $TB_SETCMDID, $iIndex, $iCommandID) <> 0 -EndFunc ;==>_GUICtrlToolbar_SetCmdID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetColorScheme($hWnd, $iHighlight, $iShadow) - Local $tColor = DllStructCreate($tagCOLORSCHEME) - Local $iColor = DllStructGetSize($tColor) - DllStructSetData($tColor, "Size", $iColor) - DllStructSetData($tColor, "BtnHighlight", $iHighlight) - DllStructSetData($tColor, "BtnShadow", $iShadow) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - _SendMessage($hWnd, $TB_SETCOLORSCHEME, 0, $tColor, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iColor, $tMemMap) - _MemWrite($tMemMap, $tColor, $pMemory, $iColor) - _SendMessage($hWnd, $TB_SETCOLORSCHEME, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUICtrlToolbar_SetColorScheme - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetDisabledImageList($hWnd, $hImageList) - Return _SendMessage($hWnd, $TB_SETDISABLEDIMAGELIST, 0, $hImageList, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlToolbar_SetDisabledImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetDrawTextFlags($hWnd, $iMask, $iDTFlags) - Return _SendMessage($hWnd, $TB_SETDRAWTEXTFLAGS, $iMask, $iDTFlags) -EndFunc ;==>_GUICtrlToolbar_SetDrawTextFlags - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetExtendedStyle($hWnd, $iStyle) - Return _SendMessage($hWnd, $TB_SETEXTENDEDSTYLE, 0, $iStyle) -EndFunc ;==>_GUICtrlToolbar_SetExtendedStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetHotImageList($hWnd, $hImageList) - Return _SendMessage($hWnd, $TB_SETHOTIMAGELIST, 0, $hImageList, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlToolbar_SetHotImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetHotItem($hWnd, $iIndex) - Return _SendMessage($hWnd, $TB_SETHOTITEM, $iIndex) -EndFunc ;==>_GUICtrlToolbar_SetHotItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetImageList($hWnd, $hImageList) - Return _SendMessage($hWnd, $TB_SETIMAGELIST, 0, $hImageList, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlToolbar_SetImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetIndent($hWnd, $iIndent) - Return _SendMessage($hWnd, $TB_SETINDENT, $iIndent) <> 0 -EndFunc ;==>_GUICtrlToolbar_SetIndent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetIndeterminate($hWnd, $iCommandID, $bState = True) - Return _SendMessage($hWnd, $TB_INDETERMINATE, $iCommandID, $bState) <> 0 -EndFunc ;==>_GUICtrlToolbar_SetIndeterminate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetInsertMark($hWnd, $iButton, $iFlags = 0) - Local $tMark = DllStructCreate($tagTBINSERTMARK) - DllStructSetData($tMark, "Button", $iButton) - DllStructSetData($tMark, "Flags", $iFlags) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - _SendMessage($hWnd, $TB_SETINSERTMARK, 0, $tMark, 0, "wparam", "struct*") - Else - Local $iMark = DllStructGetSize($tMark) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iMark, $tMemMap) - _MemWrite($tMemMap, $tMark, $pMemory, $iMark) - _SendMessage($hWnd, $TB_SETINSERTMARK, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUICtrlToolbar_SetInsertMark - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetInsertMarkColor($hWnd, $iColor) - Return _SendMessage($hWnd, $TB_SETINSERTMARKCOLOR, 0, $iColor) -EndFunc ;==>_GUICtrlToolbar_SetInsertMarkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetMaxTextRows($hWnd, $iMaxRows) - Return _SendMessage($hWnd, $TB_SETMAXTEXTROWS, $iMaxRows) <> 0 -EndFunc ;==>_GUICtrlToolbar_SetMaxTextRows - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetMetrics($hWnd, $iXPad, $iYPad, $iXSpacing, $iYSpacing) - Local $tMetrics = DllStructCreate($tagTBMETRICS) - Local $iMetrics = DllStructGetSize($tMetrics) - Local $iMask = BitOR($TBMF_PAD, $TBMF_BUTTONSPACING) - DllStructSetData($tMetrics, "Size", $iMetrics) - DllStructSetData($tMetrics, "Mask", $iMask) - DllStructSetData($tMetrics, "XPad", $iXPad) - DllStructSetData($tMetrics, "YPad", $iYPad) - DllStructSetData($tMetrics, "XSpacing", $iXSpacing) - DllStructSetData($tMetrics, "YSpacing", $iYSpacing) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - _SendMessage($hWnd, $TB_SETMETRICS, 0, $tMetrics, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iMetrics, $tMemMap) - _MemWrite($tMemMap, $tMetrics, $pMemory, $iMetrics) - _SendMessage($hWnd, $TB_SETMETRICS, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUICtrlToolbar_SetMetrics - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetPadding($hWnd, $iCX, $iCY) - Return _SendMessage($hWnd, $TB_SETPADDING, 0, _WinAPI_MakeLong($iCX, $iCY), 0, "wparam", "long") -EndFunc ;==>_GUICtrlToolbar_SetPadding - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetParent($hWnd, $hParent) - Return HWnd(_SendMessage($hWnd, $TB_SETPARENT, $hParent)) -EndFunc ;==>_GUICtrlToolbar_SetParent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetRows($hWnd, $iRows, $bLarger = True) - Local $tRECT = DllStructCreate($tagRECT) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - _SendMessage($hWnd, $TB_SETROWS, _WinAPI_MakeLong($iRows, $bLarger), $tRECT, 0, "long", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _SendMessage($hWnd, $TB_SETROWS, _WinAPI_MakeLong($iRows, $bLarger), $pMemory, 0, "long", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlToolbar_SetRows - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetStyle($hWnd, $iStyle) - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__TOOLBARCONSTANT_WS_CLIPSIBLINGS, $__UDFGUICONSTANT_WS_VISIBLE) - _SendMessage($hWnd, $TB_SETSTYLE, 0, $iStyle) -EndFunc ;==>_GUICtrlToolbar_SetStyle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetStyleAltDrag($hWnd, $bState = True) - Return __GUICtrlToolbar_SetStyleEx($hWnd, $TBSTYLE_ALTDRAG, $bState) -EndFunc ;==>_GUICtrlToolbar_SetStyleAltDrag - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetStyleCustomErase($hWnd, $bState = True) - Return __GUICtrlToolbar_SetStyleEx($hWnd, $TBSTYLE_CUSTOMERASE, $bState) -EndFunc ;==>_GUICtrlToolbar_SetStyleCustomErase - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlToolbar_SetStyleEx -; Description ...: Changes a style for the toolbar -; Syntax.........: __GUICtrlToolbar_SetStyleEx ( $hWnd, $iStyle, $bStyle ) -; Parameters ....: $hWnd - Handle to the control -; $iStyle - Style to be changed -; $bStyle - True to set, false to unset -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally to implement the SetStylex functions -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlToolbar_SetStyleEx($hWnd, $iStyle, $bStyle) - Local $iN = _GUICtrlToolbar_GetStyle($hWnd) - If $bStyle Then - $iN = BitOR($iN, $iStyle) - Else - $iN = BitAND($iN, BitNOT($iStyle)) - EndIf - Return _GUICtrlToolbar_SetStyle($hWnd, $iN) -EndFunc ;==>__GUICtrlToolbar_SetStyleEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetStyleFlat($hWnd, $bState) - Return __GUICtrlToolbar_SetStyleEx($hWnd, $TBSTYLE_FLAT, $bState) -EndFunc ;==>_GUICtrlToolbar_SetStyleFlat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetStyleList($hWnd, $bState) - Return __GUICtrlToolbar_SetStyleEx($hWnd, $TBSTYLE_LIST, $bState) -EndFunc ;==>_GUICtrlToolbar_SetStyleList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetStyleRegisterDrop($hWnd, $bState) - Return __GUICtrlToolbar_SetStyleEx($hWnd, $TBSTYLE_REGISTERDROP, $bState) -EndFunc ;==>_GUICtrlToolbar_SetStyleRegisterDrop - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetStyleToolTips($hWnd, $bState) - Return __GUICtrlToolbar_SetStyleEx($hWnd, $TBSTYLE_TOOLTIPS, $bState) -EndFunc ;==>_GUICtrlToolbar_SetStyleToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetStyleTransparent($hWnd, $bState) - Return __GUICtrlToolbar_SetStyleEx($hWnd, $TBSTYLE_TRANSPARENT, $bState) -EndFunc ;==>_GUICtrlToolbar_SetStyleTransparent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetStyleWrapable($hWnd, $bState) - Return __GUICtrlToolbar_SetStyleEx($hWnd, $TBSTYLE_WRAPABLE, $bState) -EndFunc ;==>_GUICtrlToolbar_SetStyleWrapable - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetToolTips($hWnd, $hToolTip) - _SendMessage($hWnd, $TB_SETTOOLTIPS, $hToolTip, 0, 0, "hwnd") -EndFunc ;==>_GUICtrlToolbar_SetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlToolbar_SetUnicodeFormat($hWnd, $bUnicode = False) - Return _SendMessage($hWnd, $TB_SETUNICODEFORMAT, $bUnicode) -EndFunc ;==>_GUICtrlToolbar_SetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlToolbar_SetWindowTheme($hWnd, $sTheme) - Local $tTheme = _WinAPI_MultiByteToWideChar($sTheme) - If _WinAPI_InProcess($hWnd, $__g_hTBLastWnd) Then - _SendMessage($hWnd, $TB_SETWINDOWTHEME, 0, $tTheme, 0, "wparam", "struct*") - Else - Local $iTheme = DllStructGetSize($tTheme) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iTheme, $tMemMap) - _MemWrite($tMemMap, $tTheme, $pMemory, $iTheme) - _SendMessage($hWnd, $TB_SETWINDOWTHEME, 0, $pMemory, 0, "wparam", "ptr") - _MemFree($tMemMap) - EndIf -EndFunc ;==>_GUICtrlToolbar_SetWindowTheme diff --git a/build/Include/GuiTreeView.au3 b/build/Include/GuiTreeView.au3 deleted file mode 100644 index fbe33a51f..000000000 --- a/build/Include/GuiTreeView.au3 +++ /dev/null @@ -1,2484 +0,0 @@ -#include-once - -#include "GuiImageList.au3" -#include "Memory.au3" -#include "SendMessage.au3" -#include "StructureConstants.au3" -#include "TreeViewConstants.au3" -#include "UDFGlobalID.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: TreeView -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with TreeView control management. -; A TreeView control is a window that displays a hierarchical list of items, such as the headings in a document, -; the entries in an index, or the files and directories on a disk. Each item consists of a label and an optional -; bitmapped image, and each item can have a list of subitems associated with it. By clicking an item, the user -; can expand or collapse the associated list of subitems. -; Author(s) .....: Paul Campbell (PaulIA), Gary Frost (gafrost), Holger Kotsch -; =============================================================================================================================== - -; Default treeview item extended structure -; http://msdn.microsoft.com/en-us/library/bb773459.aspx -; Min.OS: 2K, NT4 with IE 4.0, 98, 95 with IE 4.0 - -; #VARIABLES# =================================================================================================================== -Global $__g_hTVLastWnd - -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__TREEVIEWCONSTANT_ClassName = "SysTreeView32" -Global Const $__TREEVIEWCONSTANT_WM_SETREDRAW = 0x000B -Global Const $__TREEVIEWCONSTANT_DEFAULT_GUI_FONT = 17 -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Not working/documented/implrmented at this time -; -; _GUICtrlTreeView_GetOverlayImageIndex -; _GUICtrlTreeView_MapAccIDToItem -; _GUICtrlTreeView_MapItemToAccID -; _GUICtrlTreeView_SetOverlayImageIndex -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GUICtrlTreeView_Add -; _GUICtrlTreeView_AddChild -; _GUICtrlTreeView_AddChildFirst -; _GUICtrlTreeView_AddFirst -; _GUICtrlTreeView_BeginUpdate -; _GUICtrlTreeView_ClickItem -; _GUICtrlTreeView_Create -; _GUICtrlTreeView_CreateDragImage -; _GUICtrlTreeView_CreateSolidBitMap -; _GUICtrlTreeView_Delete -; _GUICtrlTreeView_DeleteAll -; _GUICtrlTreeView_DeleteChildren -; _GUICtrlTreeView_Destroy -; _GUICtrlTreeView_DisplayRect -; _GUICtrlTreeView_DisplayRectEx -; _GUICtrlTreeView_EditText -; _GUICtrlTreeView_EndEdit -; _GUICtrlTreeView_EndUpdate -; _GUICtrlTreeView_EnsureVisible -; _GUICtrlTreeView_Expand -; _GUICtrlTreeView_ExpandedOnce -; _GUICtrlTreeView_FindItem -; _GUICtrlTreeView_FindItemEx -; _GUICtrlTreeView_GetBkColor -; _GUICtrlTreeView_GetBold -; _GUICtrlTreeView_GetChecked -; _GUICtrlTreeView_GetChildCount -; _GUICtrlTreeView_GetChildren -; _GUICtrlTreeView_GetCount -; _GUICtrlTreeView_GetCut -; _GUICtrlTreeView_GetDropTarget -; _GUICtrlTreeView_GetEditControl -; _GUICtrlTreeView_GetExpanded -; _GUICtrlTreeView_GetFirstChild -; _GUICtrlTreeView_GetFirstItem -; _GUICtrlTreeView_GetFirstVisible -; _GUICtrlTreeView_GetFocused -; _GUICtrlTreeView_GetHeight -; _GUICtrlTreeView_GetImageIndex -; _GUICtrlTreeView_GetImageListIconHandle -; _GUICtrlTreeView_GetIndent -; _GUICtrlTreeView_GetInsertMarkColor -; _GUICtrlTreeView_GetISearchString -; _GUICtrlTreeView_GetItemByIndex -; _GUICtrlTreeView_GetItemHandle -; _GUICtrlTreeView_GetItemParam -; _GUICtrlTreeView_GetLastChild -; _GUICtrlTreeView_GetLineColor -; _GUICtrlTreeView_GetNext -; _GUICtrlTreeView_GetNextChild -; _GUICtrlTreeView_GetNextSibling -; _GUICtrlTreeView_GetNextVisible -; _GUICtrlTreeView_GetNormalImageList -; _GUICtrlTreeView_GetParentHandle -; _GUICtrlTreeView_GetParentParam -; _GUICtrlTreeView_GetPrev -; _GUICtrlTreeView_GetPrevChild -; _GUICtrlTreeView_GetPrevSibling -; _GUICtrlTreeView_GetPrevVisible -; _GUICtrlTreeView_GetScrollTime -; _GUICtrlTreeView_GetSelected -; _GUICtrlTreeView_GetSelectedImageIndex -; _GUICtrlTreeView_GetSelection -; _GUICtrlTreeView_GetSiblingCount -; _GUICtrlTreeView_GetState -; _GUICtrlTreeView_GetStateImageIndex -; _GUICtrlTreeView_GetStateImageList -; _GUICtrlTreeView_GetText -; _GUICtrlTreeView_GetTextColor -; _GUICtrlTreeView_GetToolTips -; _GUICtrlTreeView_GetTree -; _GUICtrlTreeView_GetUnicodeFormat -; _GUICtrlTreeView_GetVisible -; _GUICtrlTreeView_GetVisibleCount -; _GUICtrlTreeView_HitTest -; _GUICtrlTreeView_HitTestEx -; _GUICtrlTreeView_HitTestItem -; _GUICtrlTreeView_Index -; _GUICtrlTreeView_InsertItem -; _GUICtrlTreeView_IsFirstItem -; _GUICtrlTreeView_IsParent -; _GUICtrlTreeView_Level -; _GUICtrlTreeView_SelectItem -; _GUICtrlTreeView_SelectItemByIndex -; _GUICtrlTreeView_SetBkColor -; _GUICtrlTreeView_SetBold -; _GUICtrlTreeView_SetChecked -; _GUICtrlTreeView_SetCheckedByIndex -; _GUICtrlTreeView_SetChildren -; _GUICtrlTreeView_SetCut -; _GUICtrlTreeView_SetDropTarget -; _GUICtrlTreeView_SetFocused -; _GUICtrlTreeView_SetHeight -; _GUICtrlTreeView_SetIcon -; _GUICtrlTreeView_SetImageIndex -; _GUICtrlTreeView_SetIndent -; _GUICtrlTreeView_SetInsertMark -; _GUICtrlTreeView_SetInsertMarkColor -; _GUICtrlTreeView_SetItemHeight -; _GUICtrlTreeView_SetItemParam -; _GUICtrlTreeView_SetLineColor -; _GUICtrlTreeView_SetNormalImageList -; _GUICtrlTreeView_SetScrollTime -; _GUICtrlTreeView_SetSelected -; _GUICtrlTreeView_SetSelectedImageIndex -; _GUICtrlTreeView_SetState -; _GUICtrlTreeView_SetStateImageIndex -; _GUICtrlTreeView_SetStateImageList -; _GUICtrlTreeView_SetText -; _GUICtrlTreeView_SetTextColor -; _GUICtrlTreeView_SetToolTips -; _GUICtrlTreeView_SetUnicodeFormat -; _GUICtrlTreeView_Sort -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagTVINSERTSTRUCT -; __GUICtrlTreeView_AddItem -; __GUICtrlTreeView_ExpandItem -; __GUICtrlTreeView_GetItem -; __GUICtrlTreeView_ReverseColorOrder -; __GUICtrlTreeView_SetItem -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTVINSERTSTRUCT -; Description ...: Contains information used to add a new item to a tree-view control -; Fields ........: Parent - Handle to the parent item. If this member is $TVI_ROOT, the item is inserted at the root -; InsertAfter - Handle to the item after which the new item is to be inserted, or one of the following values: -; |$TVI_FIRST - Inserts the item at the beginning of the list -; |$TVI_LAST - Inserts the item at the end of the list -; |$TVI_ROOT - Add the item as a root item -; |$TVI_SORT - Inserts the item into the list in alphabetical order -; Mask - Flags that indicate which of the other structure members contain valid data: -; |$TVIF_CHILDREN - The Children member is valid -; |$TVIF_DI_SETITEM - The will retain the supplied information and will not request it again -; |$TVIF_HANDLE - The hItem member is valid -; |$TVIF_IMAGE - The Image member is valid -; |$TVIF_INTEGRAL - The Integral member is valid -; |$TVIF_PARAM - The Param member is valid -; |$TVIF_SELECTEDIMAGE - The SelectedImage member is valid -; |$TVIF_STATE - The State and StateMask members are valid -; |$TVIF_TEXT - The Text and TextMax members are valid -; hItem - Item to which this structure refers -; State - Set of bit flags and image list indexes that indicate the item's state. When setting the state -; +of an item, the StateMask member indicates the bits of this member that are valid. When retrieving the state -; +of an item, this member returns the current state for the bits indicated in the StateMask member. Bits 0 -; +through 7 of this member contain the item state flags. Bits 8 through 11 of this member specify the one based -; +overlay image index. -; StateMask - Bits of the state member that are valid. If you are retrieving an item's state, set the bits -; +of the stateMask member to indicate the bits to be returned in the state member. If you are setting an item's -; +state, set the bits of the stateMask member to indicate the bits of the state member that you want to set. -; Text - Pointer to a null-terminated string that contains the item text. -; TextMax - Size of the buffer pointed to by the Text member, in characters -; Image - Index in the image list of the icon image to use when the item is in the nonselected state -; SelectedImage - Index in the image list of the icon image to use when the item is in the selected state -; Children - Flag that indicates whether the item has associated child items. This member can be one of the -; +following values: -; |0 - The item has no child items -; |1 - The item has one or more child items -; Param - A value to associate with the item -; Integral - Height of the item -; Author ........: Paul Campbell (PaulIA) -; Modified ......: jpm -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTVINSERTSTRUCT = "handle Parent;handle InsertAfter;" & $tagTVITEMEX - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_Add($hWnd, $hSibling, $sText, $iImage = -1, $iSelImage = -1) - Return __GUICtrlTreeView_AddItem($hWnd, $hSibling, $sText, $TVNA_ADD, $iImage, $iSelImage) -EndFunc ;==>_GUICtrlTreeView_Add - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_AddChild($hWnd, $hParent, $sText, $iImage = -1, $iSelImage = -1) - Return __GUICtrlTreeView_AddItem($hWnd, $hParent, $sText, $TVNA_ADDCHILD, $iImage, $iSelImage) -EndFunc ;==>_GUICtrlTreeView_AddChild - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_AddChildFirst($hWnd, $hParent, $sText, $iImage = -1, $iSelImage = -1) - Return __GUICtrlTreeView_AddItem($hWnd, $hParent, $sText, $TVNA_ADDCHILDFIRST, $iImage, $iSelImage) -EndFunc ;==>_GUICtrlTreeView_AddChildFirst - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_AddFirst($hWnd, $hSibling, $sText, $iImage = -1, $iSelImage = -1) - Return __GUICtrlTreeView_AddItem($hWnd, $hSibling, $sText, $TVNA_ADDFIRST, $iImage, $iSelImage) -EndFunc ;==>_GUICtrlTreeView_AddFirst - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlTreeView_AddItem -; Description ...: Add a new item -; Syntax.........: __GUICtrlTreeView_AddItem ( $hWnd, $hRelative, $sText, $iMethod [, $iImage = -1 [, $iSelImage = -1]] ) -; Parameters ....: $hWnd - Handle to the control -; $hRelative - Handle to an existing item that will be either parent or sibling to the new item -; $sText - The text for the new item -; $iMethod - The relationship between the new item and the $hRelative item -; |$TVNA_ADD - The item becomes the last sibling of the other item -; |$TVNA_ADDFIRST - The item becomes the first sibling of the other item -; |$TVNA_ADDCHILD - The item becomes the sibling before the other item -; |$TVNA_ADDCHILDFIRST - The item becomes the last child of the other item -; |$TVNA_INSERT - The item becomes the first child of the other item -; $iImage - Zero based index of the item's icon in the control's image list -; $iSelImage - Zero based index of the item's icon in the control's image list -; $iParam - Application Defined Data -; Return values .: Success - The handle to the new item -; Failure - 0 -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is for interall use only and should not normally be called by the end user -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlTreeView_AddItem($hWnd, $hRelative, $sText, $iMethod, $iImage = -1, $iSelImage = -1, $iParam = 0) - Local $iAddMode - Switch $iMethod - Case $TVNA_ADD, $TVNA_ADDCHILD - $iAddMode = $TVTA_ADD - Case $TVNA_ADDFIRST, $TVNA_ADDCHILDFIRST - $iAddMode = $TVTA_ADDFIRST - Case Else - $iAddMode = $TVTA_INSERT - EndSwitch - - Local $hItem, $hItemID = 0 - If $hRelative <> 0x00000000 Then - Switch $iMethod - Case $TVNA_ADD, $TVNA_ADDFIRST - $hItem = _GUICtrlTreeView_GetParentHandle($hWnd, $hRelative) - Case $TVNA_ADDCHILD, $TVNA_ADDCHILDFIRST - $hItem = $hRelative - Case Else - $hItem = _GUICtrlTreeView_GetParentHandle($hWnd, $hRelative) - $hItemID = _GUICtrlTreeView_GetPrevSibling($hWnd, $hRelative) - If $hItemID = 0x00000000 Then $iAddMode = $TVTA_ADDFIRST - EndSwitch - EndIf - - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - Local $bUnicode = _GUICtrlTreeView_GetUnicodeFormat($hWnd) - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - Local $tInsert = DllStructCreate($tagTVINSERTSTRUCT) - Switch $iAddMode - Case $TVTA_ADDFIRST - DllStructSetData($tInsert, "InsertAfter", $TVI_FIRST) - Case $TVTA_ADD - DllStructSetData($tInsert, "InsertAfter", $TVI_LAST) - Case $TVTA_INSERT - DllStructSetData($tInsert, "InsertAfter", $hItemID) - EndSwitch - Local $iMask = BitOR($TVIF_TEXT, $TVIF_PARAM) - If $iImage >= 0 Then $iMask = BitOR($iMask, $TVIF_IMAGE) - If $iSelImage >= 0 Then $iMask = BitOR($iMask, $TVIF_SELECTEDIMAGE) - DllStructSetData($tBuffer, "Text", $sText) - DllStructSetData($tInsert, "Parent", $hItem) - DllStructSetData($tInsert, "Mask", $iMask) - DllStructSetData($tInsert, "TextMax", $iBuffer) - DllStructSetData($tInsert, "Image", $iImage) - DllStructSetData($tInsert, "SelectedImage", $iSelImage) - DllStructSetData($tInsert, "Param", $iParam) - - Local $hResult - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - DllStructSetData($tInsert, "Text", DllStructGetPtr($tBuffer)) - $hResult = _SendMessage($hWnd, $TVM_INSERTITEMW, 0, $tInsert, 0, "wparam", "struct*", "handle") - Else - Local $iInsert = DllStructGetSize($tInsert) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iInsert + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iInsert - _MemWrite($tMemMap, $tInsert, $pMemory, $iInsert) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - DllStructSetData($tInsert, "Text", $pText) - If $bUnicode Then - $hResult = _SendMessage($hWnd, $TVM_INSERTITEMW, 0, $pMemory, 0, "wparam", "ptr", "handle") - Else - $hResult = _SendMessage($hWnd, $TVM_INSERTITEMA, 0, $pMemory, 0, "wparam", "ptr", "handle") - EndIf - _MemFree($tMemMap) - EndIf - Return $hResult -EndFunc ;==>__GUICtrlTreeView_AddItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_BeginUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__TREEVIEWCONSTANT_WM_SETREDRAW, False) = 0 -EndFunc ;==>_GUICtrlTreeView_BeginUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlTreeView_ClickItem($hWnd, $hItem, $sButton = "left", $bMove = False, $iClicks = 1, $iSpeed = 0) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tRECT = _GUICtrlTreeView_DisplayRectEx($hWnd, $hItem, True) - If @error Then Return SetError(@error, @error, 0) - ; Always click on the left-most portion of the control, not the center. A - ; very wide control may be off-screen which means clicking on it's center - ; will click outside the window. - Local $tPoint = _WinAPI_PointFromRect($tRECT, False) - _WinAPI_ClientToScreen($hWnd, $tPoint) - Local $iX, $iY - _WinAPI_GetXYFromPoint($tPoint, $iX, $iY) - Local $iMode = Opt("MouseCoordMode", 1) - If Not $bMove Then - Local $aPos = MouseGetPos() - _WinAPI_ShowCursor(False) - MouseClick($sButton, $iX, $iY, $iClicks, $iSpeed) - MouseMove($aPos[0], $aPos[1], 0) - _WinAPI_ShowCursor(True) - Else - MouseClick($sButton, $iX, $iY, $iClicks, $iSpeed) - EndIf - Opt("MouseCoordMode", $iMode) - Return 1 -EndFunc ;==>_GUICtrlTreeView_ClickItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlTreeView_Create($hWnd, $iX, $iY, $iWidth = 150, $iHeight = 150, $iStyle = 0x00000037, $iExStyle = 0x00000000) - If Not IsHWnd($hWnd) Then - ; Invalid Window handle for _GUICtrlTreeView_Create 1st parameter - Return SetError(1, 0, 0) - EndIf - - If $iWidth = -1 Then $iWidth = 150 - If $iHeight = -1 Then $iHeight = 150 - If $iStyle = -1 Then $iStyle = BitOR($TVS_SHOWSELALWAYS, $TVS_DISABLEDRAGDROP, $TVS_LINESATROOT, $TVS_HASLINES, $TVS_HASBUTTONS) - If $iExStyle = -1 Then $iExStyle = 0x00000000 - - $iStyle = BitOR($iStyle, $__UDFGUICONSTANT_WS_CHILD, $__UDFGUICONSTANT_WS_VISIBLE) - - Local $nCtrlID = __UDF_GetNextGlobalID($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Local $hTree = _WinAPI_CreateWindowEx($iExStyle, $__TREEVIEWCONSTANT_ClassName, "", $iStyle, $iX, $iY, $iWidth, $iHeight, $hWnd, $nCtrlID) - _WinAPI_SetFont($hTree, _WinAPI_GetStockObject($__TREEVIEWCONSTANT_DEFAULT_GUI_FONT)) - Return $hTree -EndFunc ;==>_GUICtrlTreeView_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_CreateDragImage($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_CREATEDRAGIMAGE, 0, $hItem, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_CreateDragImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_CreateSolidBitMap($hWnd, $iColor, $iWidth, $iHeight) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Return _WinAPI_CreateSolidBitmap($hWnd, $iColor, $iWidth, $iHeight) -EndFunc ;==>_GUICtrlTreeView_CreateSolidBitMap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: re-written by Holger Kotsch, re-written again by Gary Frost -; =============================================================================================================================== -Func _GUICtrlTreeView_Delete($hWnd, $hItem = 0) - If $hItem = 0 Then $hItem = 0x00000000 - - If IsHWnd($hWnd) Then - If $hItem = 0x00000000 Then - $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CARET, 0, 0, "wparam", "handle", "handle") - If $hItem <> 0x00000000 Then Return _SendMessage($hWnd, $TVM_DELETEITEM, 0, $hItem, 0, "wparam", "handle", "hwnd") <> 0 - Return False - Else - If GUICtrlDelete($hItem) Then Return True - Return _SendMessage($hWnd, $TVM_DELETEITEM, 0, $hItem, 0, "wparam", "handle", "hwnd") <> 0 - EndIf - Else - If $hItem = 0x00000000 Then - $hItem = GUICtrlSendMsg($hWnd, $TVM_GETNEXTITEM, $TVGN_CARET, 0) - If $hItem <> 0x00000000 Then Return GUICtrlSendMsg($hWnd, $TVM_DELETEITEM, 0, $hItem) <> 0 - Return False - Else - If GUICtrlDelete($hItem) Then Return True - Return GUICtrlSendMsg($hWnd, $TVM_DELETEITEM, 0, $hItem) <> 0 - EndIf - EndIf -EndFunc ;==>_GUICtrlTreeView_Delete - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_DeleteAll($hWnd) - Local $iCount = 0 - If IsHWnd($hWnd) Then - _SendMessage($hWnd, $TVM_DELETEITEM, 0, $TVI_ROOT) - $iCount = _GUICtrlTreeView_GetCount($hWnd) ; might be created with autoit create - If $iCount Then Return GUICtrlSendMsg($hWnd, $TVM_DELETEITEM, 0, $TVI_ROOT) <> 0 - Return True - Else - GUICtrlSendMsg($hWnd, $TVM_DELETEITEM, 0, $TVI_ROOT) - $iCount = _GUICtrlTreeView_GetCount($hWnd) ; might be created with udf - If $iCount Then Return _SendMessage($hWnd, $TVM_DELETEITEM, 0, $TVI_ROOT) <> 0 - Return True - EndIf - Return False -EndFunc ;==>_GUICtrlTreeView_DeleteAll - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_DeleteChildren($hWnd, $hItem) - Local $bResult - If IsHWnd($hWnd) Then - $bResult = _SendMessage($hWnd, $TVM_EXPAND, BitOR($TVE_COLLAPSE, $TVE_COLLAPSERESET), $hItem, 0, "wparam", "handle") - Else - $bResult = GUICtrlSendMsg($hWnd, $TVM_EXPAND, BitOR($TVE_COLLAPSE, $TVE_COLLAPSERESET), $hItem) - EndIf - Return $bResult -EndFunc ;==>_GUICtrlTreeView_DeleteChildren - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_Destroy(ByRef $hWnd) - ;If Not _WinAPI_IsClassName($hWnd, $__TREEVIEWCONSTANT_ClassName) Then Return SetError(2, 2, False) - - Local $iDestroyed = 0 - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - Local $nCtrlID = _WinAPI_GetDlgCtrlID($hWnd) - Local $hParent = _WinAPI_GetParent($hWnd) - $iDestroyed = _WinAPI_DestroyWindow($hWnd) - Local $iRet = __UDF_FreeGlobalID($hParent, $nCtrlID) - If Not $iRet Then - ; can check for errors here if needed, for debug - EndIf - Else - ; Not Allowed to Destroy Other Applications Control(s) - Return SetError(1, 1, False) - EndIf - Else - $iDestroyed = GUICtrlDelete($hWnd) - EndIf - If $iDestroyed Then $hWnd = 0 - Return $iDestroyed <> 0 -EndFunc ;==>_GUICtrlTreeView_Destroy - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_DisplayRect($hWnd, $hItem, $bTextOnly = False) - Local $tRECT = _GUICtrlTreeView_DisplayRectEx($hWnd, $hItem, $bTextOnly) - If @error Then Return SetError(@error, @error, 0) - Local $aRect[4] - $aRect[0] = DllStructGetData($tRECT, "Left") - $aRect[1] = DllStructGetData($tRECT, "Top") - $aRect[2] = DllStructGetData($tRECT, "Right") - $aRect[3] = DllStructGetData($tRECT, "Bottom") - Return $aRect -EndFunc ;==>_GUICtrlTreeView_DisplayRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_DisplayRectEx($hWnd, $hItem, $bTextOnly = False) - Local $tRECT = DllStructCreate($tagRECT) - Local $iRet - If IsHWnd($hWnd) Then - ; RECT is expected to point to the item in its first member. - DllStructSetData($tRECT, "Left", $hItem) - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - $iRet = _SendMessage($hWnd, $TVM_GETITEMRECT, $bTextOnly, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _MemWrite($tMemMap, $tRECT) - $iRet = _SendMessage($hWnd, $TVM_GETITEMRECT, $bTextOnly, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - Else - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - ; RECT is expected to point to the item in its first member. - DllStructSetData($tRECT, "Left", $hItem) - $iRet = GUICtrlSendMsg($hWnd, $TVM_GETITEMRECT, $bTextOnly, DllStructGetPtr($tRECT)) - EndIf - - ; On failure ensure Left is set to 0 and not the item handle. - If Not $iRet Then DllStructSetData($tRECT, "Left", 0) - Return SetError($iRet = 0, $iRet, $tRECT) -EndFunc ;==>_GUICtrlTreeView_DisplayRectEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_EditText($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _WinAPI_SetFocus($hWnd) - Local $bUnicode = _GUICtrlTreeView_GetUnicodeFormat($hWnd) - If $bUnicode Then - Return _SendMessage($hWnd, $TVM_EDITLABELW, 0, $hItem, 0, "wparam", "handle", "handle") - Else - Return _SendMessage($hWnd, $TVM_EDITLABELA, 0, $hItem, 0, "wparam", "handle", "handle") - EndIf -EndFunc ;==>_GUICtrlTreeView_EditText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_EndEdit($hWnd, $bCancel = False) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_ENDEDITLABELNOW, $bCancel) <> 0 -EndFunc ;==>_GUICtrlTreeView_EndEdit - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_EndUpdate($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $__TREEVIEWCONSTANT_WM_SETREDRAW, True) = 0 -EndFunc ;==>_GUICtrlTreeView_EndUpdate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_EnsureVisible($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_ENSUREVISIBLE, 0, $hItem, 0, "wparam", "handle") <> 0 -EndFunc ;==>_GUICtrlTreeView_EnsureVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Holger Kotsch -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlTreeView_Expand($hWnd, $hItem = 0, $bExpand = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If $hItem = 0 Then $hItem = 0x00000000 - - If $hItem = 0x00000000 Then - $hItem = $TVI_ROOT - Else - If Not IsHWnd($hItem) Then - Local $hItem_tmp = GUICtrlGetHandle($hItem) - If $hItem_tmp <> 0x00000000 Then $hItem = $hItem_tmp - EndIf - EndIf - - If $bExpand Then - __GUICtrlTreeView_ExpandItem($hWnd, $TVE_EXPAND, $hItem) - Else - __GUICtrlTreeView_ExpandItem($hWnd, $TVE_COLLAPSE, $hItem) - EndIf -EndFunc ;==>_GUICtrlTreeView_Expand - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlTreeView_ExpandItem($hWnd, $iExpand, $hItem) -; Description ...: Expands/Collapes the item and child(ren), if any -; Syntax.........: __GUICtrlTreeView_ExpandItem ( $hWnd, $iExpand, $hItem ) -; Parameters ....: $hWnd - Handle to the control -; Return values .: -; Author ........: Holger Kotsch -; Modified.......: Gary Frost (gafrost) -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlTreeView_ExpandItem($hWnd, $iExpand, $hItem) - If Not IsHWnd($hWnd) Then - - If $hItem = 0x00000000 Then - $hItem = $TVI_ROOT - Else - $hItem = GUICtrlGetHandle($hItem) - If $hItem = 0 Then Return - EndIf - $hWnd = GUICtrlGetHandle($hWnd) - EndIf - - _SendMessage($hWnd, $TVM_EXPAND, $iExpand, $hItem, 0, "wparam", "handle") - - If $iExpand = $TVE_EXPAND And $hItem > 0 Then _SendMessage($hWnd, $TVM_ENSUREVISIBLE, 0, $hItem, 0, "wparam", "handle") - - $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CHILD, $hItem, 0, "wparam", "handle") - - While $hItem <> 0x00000000 - Local $hChild = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CHILD, $hItem, 0, "wparam", "handle") - If $hChild <> 0x00000000 Then __GUICtrlTreeView_ExpandItem($hWnd, $iExpand, $hItem) - $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_NEXT, $hItem, 0, "wparam", "handle") - WEnd -EndFunc ;==>__GUICtrlTreeView_ExpandItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_ExpandedOnce($hWnd, $hItem) - Return BitAND(_GUICtrlTreeView_GetState($hWnd, $hItem), $TVIS_EXPANDEDONCE) <> 0 -EndFunc ;==>_GUICtrlTreeView_ExpandedOnce - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_FindItem($hWnd, $sText, $bInStr = False, $hStart = 0) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If $hStart = 0 Then $hStart = _GUICtrlTreeView_GetFirstItem($hWnd) - While $hStart <> 0x00000000 - Local $sItem = _GUICtrlTreeView_GetText($hWnd, $hStart) - Switch $bInStr - Case False - If $sItem = $sText Then Return $hStart - Case True - If StringInStr($sItem, $sText) Then Return $hStart - EndSwitch - $hStart = _GUICtrlTreeView_GetNext($hWnd, $hStart) - WEnd -EndFunc ;==>_GUICtrlTreeView_FindItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Miguel Pilar (luckyb), Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_FindItemEx($hWnd, $sTreePath, $hStart = 0) - Local $sDelimiter = Opt("GUIDataSeparatorChar") - - Local $iIndex = 1 - Local $aParts = StringSplit($sTreePath, $sDelimiter) - If $hStart = 0 Then $hStart = _GUICtrlTreeView_GetFirstItem($hWnd) - While ($iIndex <= $aParts[0]) And ($hStart <> 0x00000000) - If StringStripWS(_GUICtrlTreeView_GetText($hWnd, $hStart), $STR_STRIPLEADING + $STR_STRIPTRAILING) = StringStripWS($aParts[$iIndex], $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - If $iIndex = $aParts[0] Then Return $hStart - $iIndex += 1 - __GUICtrlTreeView_ExpandItem($hWnd, $TVE_EXPAND, $hStart) - $hStart = _GUICtrlTreeView_GetFirstChild($hWnd, $hStart) - Else - $hStart = _GUICtrlTreeView_GetNextSibling($hWnd, $hStart) - __GUICtrlTreeView_ExpandItem($hWnd, $TVE_COLLAPSE, $hStart) - EndIf - WEnd - Return $hStart -EndFunc ;==>_GUICtrlTreeView_FindItemEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetBkColor($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $sHex = Hex(String(_SendMessage($hWnd, $TVM_GETBKCOLOR)), 6) - Return '0x' & StringMid($sHex, 5, 2) & StringMid($sHex, 3, 2) & StringMid($sHex, 1, 2) -EndFunc ;==>_GUICtrlTreeView_GetBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetBold($hWnd, $hItem) - Return BitAND(_GUICtrlTreeView_GetState($hWnd, $hItem), $TVIS_BOLD) <> 0 -EndFunc ;==>_GUICtrlTreeView_GetBold - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetChecked($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", $TVIF_STATE) - DllStructSetData($tItem, "hItem", $hItem) - __GUICtrlTreeView_GetItem($hWnd, $tItem) - Return BitAND(DllStructGetData($tItem, "State"), $TVIS_CHECKED) = $TVIS_CHECKED -EndFunc ;==>_GUICtrlTreeView_GetChecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetChildCount($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iRet = 0 - - Local $hNext = _GUICtrlTreeView_GetFirstChild($hWnd, $hItem) - If $hNext = 0x00000000 Then Return -1 - Do - $iRet += 1 - $hNext = _GUICtrlTreeView_GetNextSibling($hWnd, $hNext) - Until $hNext = 0x00000000 - Return $iRet -EndFunc ;==>_GUICtrlTreeView_GetChildCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetChildren($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", $TVIF_CHILDREN) - DllStructSetData($tItem, "hItem", $hItem) - __GUICtrlTreeView_GetItem($hWnd, $tItem) - Return DllStructGetData($tItem, "Children") <> 0 -EndFunc ;==>_GUICtrlTreeView_GetChildren - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetCount($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETCOUNT) -EndFunc ;==>_GUICtrlTreeView_GetCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetCut($hWnd, $hItem) - Return BitAND(_GUICtrlTreeView_GetState($hWnd, $hItem), $TVIS_CUT) <> 0 -EndFunc ;==>_GUICtrlTreeView_GetCut - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetDropTarget($hWnd, $hItem) - Return BitAND(_GUICtrlTreeView_GetState($hWnd, $hItem), $TVIS_DROPHILITED) <> 0 -EndFunc ;==>_GUICtrlTreeView_GetDropTarget - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetEditControl($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETEDITCONTROL, 0, 0, 0, "wparam", "lparam", "handle") -EndFunc ;==>_GUICtrlTreeView_GetEditControl - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetExpanded($hWnd, $hItem) - Return BitAND(_GUICtrlTreeView_GetState($hWnd, $hItem), $TVIS_EXPANDED) <> 0 -EndFunc ;==>_GUICtrlTreeView_GetExpanded - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetFirstChild($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CHILD, $hItem, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_GetFirstChild - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetFirstItem($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_ROOT, 0, 0, "wparam", "lparam", "handle") -EndFunc ;==>_GUICtrlTreeView_GetFirstItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetFirstVisible($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_FIRSTVISIBLE, 0, 0, "wparam", "lparam", "handle") -EndFunc ;==>_GUICtrlTreeView_GetFirstVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetFocused($hWnd, $hItem) - Return BitAND(_GUICtrlTreeView_GetState($hWnd, $hItem), $TVIS_FOCUSED) <> 0 -EndFunc ;==>_GUICtrlTreeView_GetFocused - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetHeight($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETITEMHEIGHT) -EndFunc ;==>_GUICtrlTreeView_GetHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetImageIndex($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", $TVIF_IMAGE) - DllStructSetData($tItem, "hItem", $hItem) - __GUICtrlTreeView_GetItem($hWnd, $tItem) - Return DllStructGetData($tItem, "Image") -EndFunc ;==>_GUICtrlTreeView_GetImageIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetImageListIconHandle($hWnd, $iIndex) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $hImageList = _SendMessage($hWnd, $TVM_GETIMAGELIST, 0, 0, 0, "wparam", "lparam", "handle") - Local $hIcon = DllCall("comctl32.dll", "handle", "ImageList_GetIcon", "handle", $hImageList, "int", $iIndex, "uint", 0) - If @error Then Return SetError(@error, @extended, 0) - Return $hIcon[0] -EndFunc ;==>_GUICtrlTreeView_GetImageListIconHandle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetIndent($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETINDENT) -EndFunc ;==>_GUICtrlTreeView_GetIndent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetInsertMarkColor($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETINSERTMARKCOLOR) -EndFunc ;==>_GUICtrlTreeView_GetInsertMarkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetISearchString($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $bUnicode = _GUICtrlTreeView_GetUnicodeFormat($hWnd) - Local $iBuffer - If $bUnicode Then - $iBuffer = _SendMessage($hWnd, $TVM_GETISEARCHSTRINGW) + 1 - Else - $iBuffer = _SendMessage($hWnd, $TVM_GETISEARCHSTRINGA) + 1 - EndIf - If $iBuffer = 1 Then Return "" - - Local $tBuffer - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Text[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Text[" & $iBuffer & "]") - EndIf - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - _SendMessage($hWnd, $TVM_GETISEARCHSTRINGW, 0, $tBuffer, 0, "wparam", "struct*") - Else - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iBuffer, $tMemMap) - If $bUnicode Then - _SendMessage($hWnd, $TVM_GETISEARCHSTRINGW, 0, $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $TVM_GETISEARCHSTRINGA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tBuffer, $iBuffer) - _MemFree($tMemMap) - EndIf - - Return DllStructGetData($tBuffer, "Text") -EndFunc ;==>_GUICtrlTreeView_GetISearchString - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlTreeView_GetItem -; Description ...: Retrieves some or all of a item's attributes -; Syntax.........: __GUICtrlTreeView_GetItem ( $hWnd, ByRef $tItem ) -; Parameters ....: $hWnd - Handle to the control -; $tItem - $tagTVITEMEX structure used to request/receive item information -; +the item -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally and should not normally be called by the end user -; Related .......: __GUICtrlTreeView_SetItem -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlTreeView_GetItem($hWnd, ByRef $tItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $bUnicode = _GUICtrlTreeView_GetUnicodeFormat($hWnd) - - Local $iRet - If IsHWnd($hWnd) Then - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - $iRet = _SendMessage($hWnd, $TVM_GETITEMW, 0, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem, $tMemMap) - _MemWrite($tMemMap, $tItem) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TVM_GETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $TVM_GETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pMemory, $tItem, $iItem) - _MemFree($tMemMap) - EndIf - Else - Local $pItem = DllStructGetPtr($tItem) - If $bUnicode Then - $iRet = GUICtrlSendMsg($hWnd, $TVM_GETITEMW, 0, $pItem) - Else - $iRet = GUICtrlSendMsg($hWnd, $TVM_GETITEMA, 0, $pItem) - EndIf - EndIf - Return $iRet <> 0 -EndFunc ;==>__GUICtrlTreeView_GetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetItemByIndex($hWnd, $hItem, $iIndex) - Local $hResult = _GUICtrlTreeView_GetFirstChild($hWnd, $hItem) - While ($hResult <> 0x00000000) And ($iIndex > 0) - $hResult = _GUICtrlTreeView_GetNextSibling($hWnd, $hResult) - $iIndex -= 1 - WEnd - Return $hResult -EndFunc ;==>_GUICtrlTreeView_GetItemByIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Holger Kotsch -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetItemHandle($hWnd, $hItem = 0) - If $hItem = 0 Then $hItem = 0x00000000 - If IsHWnd($hWnd) Then - If $hItem = 0x00000000 Then $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_ROOT, 0, 0, "wparam", "lparam", "handle") - Else - If $hItem = 0x00000000 Then - $hItem = Ptr(GUICtrlSendMsg($hWnd, $TVM_GETNEXTITEM, $TVGN_ROOT, 0)) - Else - Local $hTempItem = GUICtrlGetHandle($hItem) - If $hTempItem <> 0x00000000 Then $hItem = $hTempItem - EndIf - EndIf - - Return $hItem -EndFunc ;==>_GUICtrlTreeView_GetItemHandle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetItemParam($hWnd, $hItem = 0) - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", $TVIF_PARAM) - DllStructSetData($tItem, "Param", 0) - Local $bUnicode = _GUICtrlTreeView_GetUnicodeFormat($hWnd) - If IsHWnd($hWnd) Then - ; get the handle to item selected - If $hItem = 0x00000000 Then $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CARET, 0, 0, "wparam", "lparam", "handle") - If $hItem = 0x00000000 Then Return False - DllStructSetData($tItem, "hItem", $hItem) - ; get the item properties - If $bUnicode Then - If _SendMessage($hWnd, $TVM_GETITEMW, 0, $tItem, 0, "wparam", "struct*") = 0 Then Return False - Else - If _SendMessage($hWnd, $TVM_GETITEMA, 0, $tItem, 0, "wparam", "struct*") = 0 Then Return False - EndIf - Else - ; get the handle to item selected - If $hItem = 0x00000000 Then - $hItem = Ptr(GUICtrlSendMsg($hWnd, $TVM_GETNEXTITEM, $TVGN_CARET, 0)) - If $hItem = 0x00000000 Then Return False - Else - Local $hTempItem = GUICtrlGetHandle($hItem) - If $hTempItem <> 0x00000000 Then - $hItem = $hTempItem - Else - Return False - EndIf - EndIf - DllStructSetData($tItem, "hItem", $hItem) - ; get the item properties - If $bUnicode Then - If GUICtrlSendMsg($hWnd, $TVM_GETITEMW, 0, DllStructGetPtr($tItem)) = 0 Then Return False - Else - If GUICtrlSendMsg($hWnd, $TVM_GETITEMA, 0, DllStructGetPtr($tItem)) = 0 Then Return False - EndIf - EndIf - - Return DllStructGetData($tItem, "Param") -EndFunc ;==>_GUICtrlTreeView_GetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetLastChild($hWnd, $hItem) - Local $hResult = _GUICtrlTreeView_GetFirstChild($hWnd, $hItem) - If $hResult <> 0x00000000 Then - Local $hNext = $hResult - Do - $hResult = $hNext - $hNext = _GUICtrlTreeView_GetNextSibling($hWnd, $hNext) - Until $hNext = 0x00000000 - EndIf - Return $hResult -EndFunc ;==>_GUICtrlTreeView_GetLastChild - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetLineColor($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $sHex = Hex(String(_SendMessage($hWnd, $TVM_GETLINECOLOR)), 6) - Return '0x' & StringMid($sHex, 5, 2) & StringMid($sHex, 3, 2) & StringMid($sHex, 1, 2) -EndFunc ;==>_GUICtrlTreeView_GetLineColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _GUICtrlTreeView_GetNext($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $hResult = 0 - If $hItem <> 0x00000000 And $hItem <> 0 Then - Local $hNext = _GUICtrlTreeView_GetFirstChild($hWnd, $hItem) - If $hNext = 0x00000000 Then - $hNext = _GUICtrlTreeView_GetNextSibling($hWnd, $hItem) - EndIf - Local $hParent = $hItem - While ($hNext = 0x00000000) And ($hParent <> 0x00000000) - $hParent = _GUICtrlTreeView_GetParentHandle($hWnd, $hParent) - If $hParent = 0x00000000 Then - $hNext = 0x00000000 - ExitLoop - EndIf - $hNext = _GUICtrlTreeView_GetNextSibling($hWnd, $hParent) - WEnd - If $hNext = 0x00000000 Then $hNext = 0 - $hResult = $hNext - EndIf - Return $hResult -EndFunc ;==>_GUICtrlTreeView_GetNext - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetNextChild($hWnd, $hItem) - Return _GUICtrlTreeView_GetNextSibling($hWnd, $hItem) -EndFunc ;==>_GUICtrlTreeView_GetNextChild - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetNextSibling($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_NEXT, $hItem, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_GetNextSibling - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetNextVisible($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_NEXTVISIBLE, $hItem, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_GetNextVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetNormalImageList($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETIMAGELIST, $TVSIL_NORMAL, 0, 0, "wparam", "lparam", "handle") -EndFunc ;==>_GUICtrlTreeView_GetNormalImageList - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlTreeView_GetOverlayImageIndex -; Description ...: Returns the index of the image from the image list that is used as an overlay mask -; Syntax.........: _GUICtrlTreeView_GetOverlayImageIndex ( $hWnd, $hItem ) -; Parameters ....: $hWnd - Handle to the control -; $hItem - Handle to the item -; Return values .: Success - Overlay list index -; Failure - 0 -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: _GUICtrlTreeView_SetOverlayImageIndex -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetOverlayImageIndex($hWnd, $hItem) - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", $TVIF_STATE) - DllStructSetData($tItem, "hItem", $hItem) - DllStructSetData($tItem, "StateMask", $TVIS_OVERLAYMASK) - __GUICtrlTreeView_GetItem($hWnd, $tItem) - Return DllStructGetData($tItem, "Image") -EndFunc ;==>_GUICtrlTreeView_GetOverlayImageIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), Holger Kotsch -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetParentHandle($hWnd, $hItem = 0) - ;If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If $hItem = 0 Then $hItem = 0x00000000 - - ; get the handle to item selected - If $hItem = 0x00000000 Then - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CARET, 0, 0, "wparam", "handle", "handle") - If $hItem = 0x00000000 Then Return False - Else - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - EndIf - ; get the handle of the parent item - Local $hParent = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_PARENT, $hItem, 0, "wparam", "handle", "handle") - - Return $hParent -EndFunc ;==>_GUICtrlTreeView_GetParentHandle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetParentParam($hWnd, $hItem = 0) - If $hItem = 0 Then $hItem = 0x00000000 - - Local $tTVITEM = DllStructCreate($tagTVITEMEX) - DllStructSetData($tTVITEM, "Mask", $TVIF_PARAM) - DllStructSetData($tTVITEM, "Param", 0) - - Local $hParent - If IsHWnd($hWnd) Then - ; get the handle to item selected - If $hItem = 0x00000000 Then $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CARET, 0, 0, "wparam", "handle", "handle") - If $hItem = 0x00000000 Then Return False - ; get the handle of the parent item - $hParent = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_PARENT, $hItem, 0, "wparam", "handle", "handle") - DllStructSetData($tTVITEM, "hItem", $hParent) - ; get the item properties - If _SendMessage($hWnd, $TVM_GETITEMA, 0, $tTVITEM, 0, "wparam", "struct*") = 0 Then Return False - Else - ; get the handle to item selected - If $hItem = 0x00000000 Then - $hItem = GUICtrlSendMsg($hWnd, $TVM_GETNEXTITEM, $TVGN_CARET, 0) - If $hItem = 0x00000000 Then Return False - Else - Local $hTempItem = GUICtrlGetHandle($hItem) - If $hTempItem <> 0x00000000 Then - $hItem = $hTempItem - Else - Return False - EndIf - EndIf - ; get the handle of the parent item - $hParent = GUICtrlSendMsg($hWnd, $TVM_GETNEXTITEM, $TVGN_PARENT, $hItem) - DllStructSetData($tTVITEM, "hItem", $hParent) - ; get the item properties - If GUICtrlSendMsg($hWnd, $TVM_GETITEMA, 0, DllStructGetPtr($tTVITEM)) = 0 Then Return False - EndIf - - Return DllStructGetData($tTVITEM, "Param") -EndFunc ;==>_GUICtrlTreeView_GetParentParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetPrev($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $hResult = _GUICtrlTreeView_GetPrevChild($hWnd, $hItem) - If $hResult <> 0x00000000 Then - Local $hPrev = $hResult - Do - $hResult = $hPrev - $hPrev = _GUICtrlTreeView_GetLastChild($hWnd, $hPrev) - Until $hPrev = 0x00000000 - Else - $hResult = _GUICtrlTreeView_GetParentHandle($hWnd, $hItem) - EndIf - Return $hResult -EndFunc ;==>_GUICtrlTreeView_GetPrev - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetPrevChild($hWnd, $hItem) - Return _GUICtrlTreeView_GetPrevSibling($hWnd, $hItem) -EndFunc ;==>_GUICtrlTreeView_GetPrevChild - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetPrevSibling($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_PREVIOUS, $hItem, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_GetPrevSibling - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetPrevVisible($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_PREVIOUSVISIBLE, $hItem, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_GetPrevVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetScrollTime($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETSCROLLTIME) -EndFunc ;==>_GUICtrlTreeView_GetScrollTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetSelected($hWnd, $hItem) - Return BitAND(_GUICtrlTreeView_GetState($hWnd, $hItem), $TVIS_SELECTED) <> 0 -EndFunc ;==>_GUICtrlTreeView_GetSelected - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetSelectedImageIndex($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", $TVIF_SELECTEDIMAGE) - DllStructSetData($tItem, "hItem", $hItem) - __GUICtrlTreeView_GetItem($hWnd, $tItem) - Return DllStructGetData($tItem, "SelectedImage") -EndFunc ;==>_GUICtrlTreeView_GetSelectedImageIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetSelection($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CARET, 0, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_GetSelection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetSiblingCount($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $hNext, $iRet = 0 - - Local $hParent = _GUICtrlTreeView_GetParentHandle($hWnd, $hItem) - If $hParent <> 0x00000000 Then - $hNext = _GUICtrlTreeView_GetFirstChild($hWnd, $hParent) - If $hNext = 0x00000000 Then Return -1 - Do - $iRet += 1 - $hNext = _GUICtrlTreeView_GetNextSibling($hWnd, $hNext) - Until $hNext = 0x00000000 - Else - $hNext = _GUICtrlTreeView_GetFirstItem($hWnd) - If $hNext = 0x00000000 Then Return -1 - Do - $iRet += 1 - $hNext = _GUICtrlTreeView_GetNextSibling($hWnd, $hNext) - Until $hNext = 0x00000000 - EndIf - Return $iRet -EndFunc ;==>_GUICtrlTreeView_GetSiblingCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Holger Kotsch -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetState($hWnd, $hItem = 0) - If $hItem = 0 Then $hItem = 0x00000000 - - $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If $hItem = 0x00000000 Then Return SetError(1, 1, 0) - - Local $tTVITEM = DllStructCreate($tagTVITEMEX) - DllStructSetData($tTVITEM, "Mask", $TVIF_STATE) - DllStructSetData($tTVITEM, "hItem", $hItem) - - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - _SendMessage($hWnd, $TVM_GETITEMA, 0, $tTVITEM, 0, "wparam", "struct*") - Else - Local $iSize = DllStructGetSize($tTVITEM) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iSize, $tMemMap) - _MemWrite($tMemMap, $tTVITEM) - _SendMessage($hWnd, $TVM_GETITEMA, 0, $pMemory) - _MemRead($tMemMap, $pMemory, $tTVITEM, $iSize) - _MemFree($tMemMap) - EndIf - - Return DllStructGetData($tTVITEM, "State") -EndFunc ;==>_GUICtrlTreeView_GetState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetStateImageIndex($hWnd, $hItem) - $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", $TVIF_STATE) - DllStructSetData($tItem, "hItem", $hItem) - __GUICtrlTreeView_GetItem($hWnd, $tItem) - Return BitShift(BitAND(DllStructGetData($tItem, "State"), $TVIS_STATEIMAGEMASK), 12) -EndFunc ;==>_GUICtrlTreeView_GetStateImageIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetStateImageList($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETIMAGELIST, $TVSIL_STATE, 0, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_GetStateImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetText($hWnd, $hItem = 0) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If $hItem = 0x00000000 Then Return SetError(1, 1, "") - - Local $tTVITEM = DllStructCreate($tagTVITEMEX) - Local $tText - Local $bUnicode = _GUICtrlTreeView_GetUnicodeFormat($hWnd) - If $bUnicode Then - $tText = DllStructCreate("wchar Buffer[4096]"); create a text 'area' for receiving the text - Else - $tText = DllStructCreate("char Buffer[4096]"); create a text 'area' for receiving the text - EndIf - - DllStructSetData($tTVITEM, "Mask", $TVIF_TEXT) - DllStructSetData($tTVITEM, "hItem", $hItem) - DllStructSetData($tTVITEM, "TextMax", 4096) - - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - DllStructSetData($tTVITEM, "Text", DllStructGetPtr($tText)) - _SendMessage($hWnd, $TVM_GETITEMW, 0, $tTVITEM, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tTVITEM) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + 4096, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tTVITEM, "Text", $pText) - _MemWrite($tMemMap, $tTVITEM, $pMemory, $iItem) - If $bUnicode Then - _SendMessage($hWnd, $TVM_GETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - _SendMessage($hWnd, $TVM_GETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemRead($tMemMap, $pText, $tText, 4096) - _MemFree($tMemMap) - EndIf - - Return DllStructGetData($tText, "Buffer") -EndFunc ;==>_GUICtrlTreeView_GetText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_GetTextColor($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $sHex = Hex(String(_SendMessage($hWnd, $TVM_GETTEXTCOLOR)), 6) - Return '0x' & StringMid($sHex, 5, 2) & StringMid($sHex, 3, 2) & StringMid($sHex, 1, 2) -EndFunc ;==>_GUICtrlTreeView_GetTextColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetToolTips($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETTOOLTIPS, 0, 0, 0, "wparam", "lparam", "hwnd") -EndFunc ;==>_GUICtrlTreeView_GetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost), Holger Kotsch -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetTree($hWnd, $hItem = 0) - If $hItem = 0 Then - $hItem = 0x00000000 - Else - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - EndIf - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $sPath = "" - - If $hItem = 0x00000000 Then $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CARET, 0, 0, "wparam", "handle", "handle") - If $hItem <> 0x00000000 Then - $sPath = _GUICtrlTreeView_GetText($hWnd, $hItem) - - Local $hParent, $sSeparator = Opt("GUIDataSeparatorChar") - Do; Get now the parent item handle if there is one - $hParent = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_PARENT, $hItem, 0, "wparam", "handle", "handle") - If $hParent <> 0x00000000 Then $sPath = _GUICtrlTreeView_GetText($hWnd, $hParent) & $sSeparator & $sPath - $hItem = $hParent - Until $hItem = 0x00000000 - EndIf - - Return $sPath -EndFunc ;==>_GUICtrlTreeView_GetTree - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetUnicodeFormat($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETUNICODEFORMAT) <> 0 -EndFunc ;==>_GUICtrlTreeView_GetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetVisible($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Left", $hItem) - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - $iRet = _SendMessage($hWnd, $TVM_GETITEMRECT, True, $tRECT, 0, "wparam", "struct*") - Else - Local $iRect = DllStructGetSize($tRECT) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iRect, $tMemMap) - _MemWrite($tMemMap, $tRECT) - $iRet = _SendMessage($hWnd, $TVM_GETITEMRECT, True, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tRECT, $iRect) - _MemFree($tMemMap) - EndIf - If $iRet = 0 Then Return False ; item is child item, collapsed and not visible - - ; item may not be collapsed or may be at the root level the above will give a rect even it isn't in the view - ; check to see if it is visible to the eye - Local $iControlHeight = _WinAPI_GetWindowHeight($hWnd) - If DllStructGetData($tRECT, "Top") >= $iControlHeight Or _ - DllStructGetData($tRECT, "Bottom") <= 0 Then - Return False - Else - Return True - EndIf -EndFunc ;==>_GUICtrlTreeView_GetVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_GetVisibleCount($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_GETVISIBLECOUNT) -EndFunc ;==>_GUICtrlTreeView_GetVisibleCount - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_HitTest($hWnd, $iX, $iY) - Local $tHitTest = _GUICtrlTreeView_HitTestEx($hWnd, $iX, $iY) - Local $iFlags = DllStructGetData($tHitTest, "Flags") - Local $iRet = 0 - If BitAND($iFlags, $TVHT_NOWHERE) <> 0 Then $iRet = BitOR($iRet, 1) - If BitAND($iFlags, $TVHT_ONITEMICON) <> 0 Then $iRet = BitOR($iRet, 2) - If BitAND($iFlags, $TVHT_ONITEMLABEL) <> 0 Then $iRet = BitOR($iRet, 4) - If BitAND($iFlags, $TVHT_ONITEMINDENT) <> 0 Then $iRet = BitOR($iRet, 8) - If BitAND($iFlags, $TVHT_ONITEMBUTTON) <> 0 Then $iRet = BitOR($iRet, 16) - If BitAND($iFlags, $TVHT_ONITEMRIGHT) <> 0 Then $iRet = BitOR($iRet, 32) - If BitAND($iFlags, $TVHT_ONITEMSTATEICON) <> 0 Then $iRet = BitOR($iRet, 64) - If BitAND($iFlags, $TVHT_ABOVE) <> 0 Then $iRet = BitOR($iRet, 128) - If BitAND($iFlags, $TVHT_BELOW) <> 0 Then $iRet = BitOR($iRet, 256) - If BitAND($iFlags, $TVHT_TORIGHT) <> 0 Then $iRet = BitOR($iRet, 512) - If BitAND($iFlags, $TVHT_TOLEFT) <> 0 Then $iRet = BitOR($iRet, 1024) - Return $iRet -EndFunc ;==>_GUICtrlTreeView_HitTest - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_HitTestEx($hWnd, $iX, $iY) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tHitTest = DllStructCreate($tagTVHITTESTINFO) - DllStructSetData($tHitTest, "X", $iX) - DllStructSetData($tHitTest, "Y", $iY) - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - _SendMessage($hWnd, $TVM_HITTEST, 0, $tHitTest, 0, "wparam", "struct*") - Else - Local $iHitTest = DllStructGetSize($tHitTest) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iHitTest, $tMemMap) - _MemWrite($tMemMap, $tHitTest) - _SendMessage($hWnd, $TVM_HITTEST, 0, $pMemory, 0, "wparam", "ptr") - _MemRead($tMemMap, $pMemory, $tHitTest, $iHitTest) - _MemFree($tMemMap) - EndIf - Return $tHitTest -EndFunc ;==>_GUICtrlTreeView_HitTestEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_HitTestItem($hWnd, $iX, $iY) - Local $tHitTest = _GUICtrlTreeView_HitTestEx($hWnd, $iX, $iY) - Return DllStructGetData($tHitTest, "Item") -EndFunc ;==>_GUICtrlTreeView_HitTestItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_Index($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iRet = -1 - Local $hParent = _GUICtrlTreeView_GetParentHandle($hWnd, $hItem) - Local $hNext - If $hParent <> 0x00000000 Then - $hNext = _GUICtrlTreeView_GetFirstChild($hWnd, $hParent) - While $hNext <> 0x00000000 - $iRet += 1 - If $hNext = $hItem Then ExitLoop - $hNext = _GUICtrlTreeView_GetNextSibling($hWnd, $hNext) - WEnd - Else - $hNext = _GUICtrlTreeView_GetFirstItem($hWnd) - While $hNext <> 0x00000000 - $iRet += 1 - If $hNext = $hItem Then ExitLoop - $hNext = _GUICtrlTreeView_GetNextSibling($hWnd, $hNext) - WEnd - EndIf - If $hNext = 0x00000000 Then $iRet = -1 - Return $iRet -EndFunc ;==>_GUICtrlTreeView_Index - -; #FUNCTION# ==================================================================================================================== -; Author ........: Holger Kotsch -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_InsertItem($hWnd, $sItem_Text, $hItem_Parent = 0, $hItem_After = 0, $iImage = -1, $iSelImage = -1) - Local $tTVI = DllStructCreate($tagTVINSERTSTRUCT) - - Local $iBuffer, $pBuffer - If $sItem_Text <> -1 Then - $iBuffer = StringLen($sItem_Text) + 1 - Local $tText - Local $bUnicode = _GUICtrlTreeView_GetUnicodeFormat($hWnd) - If $bUnicode Then - $tText = DllStructCreate("wchar Buffer[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tText = DllStructCreate("char Buffer[" & $iBuffer & "]") - EndIf - DllStructSetData($tText, "Buffer", $sItem_Text) - $pBuffer = DllStructGetPtr($tText) - Else - $iBuffer = 0 - $pBuffer = -1 ; LPSTR_TEXTCALLBACK - EndIf - - Local $hItem_tmp - If $hItem_Parent = 0 Then ; setting to root level - $hItem_Parent = $TVI_ROOT - ElseIf Not IsHWnd($hItem_Parent) Then ; control created by autoit create - $hItem_tmp = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem_Parent) - If $hItem_tmp Then $hItem_Parent = $hItem_tmp - EndIf - - If $hItem_After = 0 Then ; using default - $hItem_After = $TVI_LAST - ElseIf ($hItem_After <> $TVI_ROOT And _ - $hItem_After <> $TVI_FIRST And _ - $hItem_After <> $TVI_LAST And _ - $hItem_After <> $TVI_SORT) Then ; not using flag - If Not IsHWnd($hItem_After) Then - $hItem_tmp = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem_After) - If Not $hItem_tmp Then ; item not found or invalid flag used - $hItem_After = $TVI_LAST - Else ; setting handle - $hItem_After = $hItem_tmp - EndIf - EndIf - EndIf - - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $hIcon - Local $iMask = $TVIF_TEXT - If $iImage >= 0 Then - $iMask = BitOR($iMask, $TVIF_IMAGE) - $iMask = BitOR($iMask, $TVIF_IMAGE) - DllStructSetData($tTVI, "Image", $iImage) - Else - $hIcon = _GUICtrlTreeView_GetImageListIconHandle($hWnd, 0) - If $hIcon <> 0x00000000 Then - $iMask = BitOR($iMask, $TVIF_IMAGE) - DllStructSetData($tTVI, "Image", 0) - DllCall("user32.dll", "int", "DestroyIcon", "handle", $hIcon) - ; No @error test because results are unimportant. - EndIf - EndIf - - If $iSelImage >= 0 Then - $iMask = BitOR($iMask, $TVIF_SELECTEDIMAGE) - $iMask = BitOR($iMask, $TVIF_SELECTEDIMAGE) - DllStructSetData($tTVI, "SelectedImage", $iSelImage) - Else - $hIcon = _GUICtrlTreeView_GetImageListIconHandle($hWnd, 1) - If $hIcon <> 0x00000000 Then - $iMask = BitOR($iMask, $TVIF_SELECTEDIMAGE) - DllStructSetData($tTVI, "SelectedImage", 0) - DllCall("user32.dll", "int", "DestroyIcon", "handle", $hIcon) - ; No @error test because results are unimportant. - EndIf - EndIf - - DllStructSetData($tTVI, "Parent", $hItem_Parent) - DllStructSetData($tTVI, "InsertAfter", $hItem_After) - DllStructSetData($tTVI, "Mask", $iMask) - DllStructSetData($tTVI, "TextMax", $iBuffer) - $iMask = BitOR($iMask, $TVIF_PARAM) - DllStructSetData($tTVI, "Param", 0) - - Local $hItem - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - DllStructSetData($tTVI, "Text", $pBuffer) - $hItem = _SendMessage($hWnd, $TVM_INSERTITEMW, 0, $tTVI, 0, "wparam", "struct*", "handle") - - Else - Local $iInsert = DllStructGetSize($tTVI) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iInsert + $iBuffer, $tMemMap) - If $sItem_Text <> -1 Then - Local $pText = $pMemory + $iInsert - DllStructSetData($tTVI, "Text", $pText) - _MemWrite($tMemMap, $tText, $pText, $iBuffer) - Else - DllStructSetData($tTVI, "Text", -1) ; LPSTR_TEXTCALLBACK - EndIf - _MemWrite($tMemMap, $tTVI, $pMemory, $iInsert) - If $bUnicode Then - $hItem = _SendMessage($hWnd, $TVM_INSERTITEMW, 0, $pMemory, 0, "wparam", "ptr", "handle") - Else - $hItem = _SendMessage($hWnd, $TVM_INSERTITEMA, 0, $pMemory, 0, "wparam", "ptr", "handle") - EndIf - _MemFree($tMemMap) - EndIf - Return $hItem -EndFunc ;==>_GUICtrlTreeView_InsertItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_IsFirstItem($hWnd, $hItem) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _GUICtrlTreeView_GetFirstItem($hWnd) = $hItem -EndFunc ;==>_GUICtrlTreeView_IsFirstItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_IsParent($hWnd, $hParent, $hItem) - If Not IsHWnd($hParent) Then $hParent = _GUICtrlTreeView_GetItemHandle($hWnd, $hParent) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _GUICtrlTreeView_GetParentHandle($hWnd, $hItem) = $hParent -EndFunc ;==>_GUICtrlTreeView_IsParent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_Level($hWnd, $hItem) - Local $iRet = 0 - Local $hNext = _GUICtrlTreeView_GetParentHandle($hWnd, $hItem) - While $hNext <> 0x00000000 - $iRet += 1 - $hNext = _GUICtrlTreeView_GetParentHandle($hWnd, $hNext) - WEnd - Return $iRet -EndFunc ;==>_GUICtrlTreeView_Level - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlTreeView_MapAccIDToItem -; Description ...: Maps an accessibility ID to an HTREEITEM -; Syntax.........: _GUICtrlTreeView_MapAccIDToItem ( $hWnd, $iID ) -; Parameters ....: $hWnd - Handle to the control -; $iID - Accessibility ID -; Return values .: Success - The HTREEITEM that the specified accessibility ID is mapped to -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum OS Windows XP. -; + -; When you add an item to a control an HTREEITEM returns, which uniquely identifies the item. -; Related .......: _GUICtrlTreeView_MapItemToAccID -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlTreeView_MapAccIDToItem($hWnd, $iID) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_MAPACCIDTOHTREEITEM, $iID, 0, 0, "wparam", "lparam", "handle") -EndFunc ;==>_GUICtrlTreeView_MapAccIDToItem - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlTreeView_MapItemToAccID -; Description ...: Maps an HTREEITEM to an accessibility ID -; Syntax.........: _GUICtrlTreeView_MapItemToAccID ( $hWnd, $hTreeItem ) -; Parameters ....: $hWnd - Handle to the control -; $hTreeItem - HTREEITEM that is mapped to an accessibility ID -; Return values .: Success - Returns an accessibility ID -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: Minimum OS Windows XP. -; + -; When you add an item to a control an HTREEITEM returns, which uniquely identifies the item. -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlTreeView_MapItemToAccID($hWnd, $hTreeItem) - If Not IsHWnd($hTreeItem) Then $hTreeItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hTreeItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_MAPHTREEITEMTOACCID, $hTreeItem, 0, 0, "handle") -EndFunc ;==>_GUICtrlTreeView_MapItemToAccID - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlTreeView_ReverseColorOrder -; Description ...: Convert Hex RGB or BGR Color to Hex RGB or BGR Color -; Syntax.........: __GUICtrlTreeView_ReverseColorOrder ( $vColor ) -; Parameters ....: $vColor - Hex Color -; Return values .: Success - Hex RGB or BGR Color -; Author ........: Gary Frost (gafrost) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlTreeView_ReverseColorOrder($vColor) - Local $sHex = Hex(String($vColor), 6) - Return '0x' & StringMid($sHex, 5, 2) & StringMid($sHex, 3, 2) & StringMid($sHex, 1, 2) -EndFunc ;==>__GUICtrlTreeView_ReverseColorOrder - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SelectItem($hWnd, $hItem, $iFlag = 0) - If Not IsHWnd($hItem) And $hItem <> 0 Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If $iFlag = 0 Then $iFlag = $TVGN_CARET - Return _SendMessage($hWnd, $TVM_SELECTITEM, $iFlag, $hItem, 0, "wparam", "handle") <> 0 -EndFunc ;==>_GUICtrlTreeView_SelectItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SelectItemByIndex($hWnd, $hItem, $iIndex) - Return _GUICtrlTreeView_SelectItem($hWnd, _GUICtrlTreeView_GetItemByIndex($hWnd, $hItem, $iIndex)) -EndFunc ;==>_GUICtrlTreeView_SelectItemByIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetBkColor($hWnd, $vRGBColor) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return __GUICtrlTreeView_ReverseColorOrder(_SendMessage($hWnd, $TVM_SETBKCOLOR, 0, Int(__GUICtrlTreeView_ReverseColorOrder($vRGBColor)))) -EndFunc ;==>_GUICtrlTreeView_SetBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetBold($hWnd, $hItem, $bFlag = True) - Return _GUICtrlTreeView_SetState($hWnd, $hItem, $TVIS_BOLD, $bFlag) -EndFunc ;==>_GUICtrlTreeView_SetBold - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetChecked($hWnd, $hItem, $bCheck = True) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", $TVIF_STATE) - DllStructSetData($tItem, "hItem", $hItem) - If $bCheck Then - DllStructSetData($tItem, "State", 0x2000) - Else - DllStructSetData($tItem, "State", 0x1000) - EndIf - DllStructSetData($tItem, "StateMask", 0xf000) - Return __GUICtrlTreeView_SetItem($hWnd, $tItem) -EndFunc ;==>_GUICtrlTreeView_SetChecked - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetCheckedByIndex($hWnd, $hItem, $iIndex, $bCheck = True) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $hChild = _GUICtrlTreeView_GetItemByIndex($hWnd, $hItem, $iIndex) - Return _GUICtrlTreeView_SetChecked($hWnd, $hChild, $bCheck) -EndFunc ;==>_GUICtrlTreeView_SetCheckedByIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetChildren($hWnd, $hItem, $bFlag = True) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", BitOR($TVIF_HANDLE, $TVIF_CHILDREN)) - DllStructSetData($tItem, "hItem", $hItem) - DllStructSetData($tItem, "Children", $bFlag) - Return __GUICtrlTreeView_SetItem($hWnd, $tItem) -EndFunc ;==>_GUICtrlTreeView_SetChildren - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetCut($hWnd, $hItem, $bFlag = True) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _GUICtrlTreeView_SetState($hWnd, $hItem, $TVIS_CUT, $bFlag) -EndFunc ;==>_GUICtrlTreeView_SetCut - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetDropTarget($hWnd, $hItem, $bFlag = True) - If $bFlag Then - Return _GUICtrlTreeView_SelectItem($hWnd, $hItem, $TVGN_DROPHILITE) - ElseIf _GUICtrlTreeView_GetDropTarget($hWnd, $hItem) Then - Return _GUICtrlTreeView_SelectItem($hWnd, 0) - EndIf - Return False -EndFunc ;==>_GUICtrlTreeView_SetDropTarget - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetFocused($hWnd, $hItem, $bFlag = True) - Return _GUICtrlTreeView_SetState($hWnd, $hItem, $TVIS_FOCUSED, $bFlag) -EndFunc ;==>_GUICtrlTreeView_SetFocused - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetHeight($hWnd, $iHeight) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_SETITEMHEIGHT, $iHeight) -EndFunc ;==>_GUICtrlTreeView_SetHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Holger Kotsch -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetIcon($hWnd, $hItem = 0, $sIconFile = "", $iIconID = 0, $iImageMode = 6) - If $hItem = 0 Then $hItem = 0x00000000 - - If $hItem <> 0x00000000 And Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If $hItem = 0x00000000 Or $sIconFile = "" Then Return SetError(1, 1, False) - - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tTVITEM = DllStructCreate($tagTVITEMEX) - - Local $tIcon = DllStructCreate("handle") - Local $aCount = DllCall("shell32.dll", "uint", "ExtractIconExW", "wstr", $sIconFile, "int", $iIconID, _ - "handle", 0, "struct*", $tIcon, "uint", 1) - If @error Then Return SetError(@error, @extended, 0) - If $aCount[0] = 0 Then Return 0 - - Local $hImageList = _SendMessage($hWnd, $TVM_GETIMAGELIST, 0, 0, 0, "wparam", "lparam", "handle") - If $hImageList = 0x00000000 Then - $hImageList = DllCall("comctl32.dll", "handle", "ImageList_Create", "int", 16, "int", 16, "uint", 0x0021, "int", 0, "int", 1) - If @error Then Return SetError(@error, @extended, 0) - $hImageList = $hImageList[0] - If $hImageList = 0 Then Return SetError(1, 1, False) - - _SendMessage($hWnd, $TVM_SETIMAGELIST, 0, $hImageList, 0, "wparam", "handle") - EndIf - - Local $hIcon = DllStructGetData($tIcon, 1) - Local $vIcon = DllCall("comctl32.dll", "int", "ImageList_AddIcon", "handle", $hImageList, "handle", $hIcon) - $vIcon = $vIcon[0] - If @error Then - Local $iError = @error, $iExtended = @extended - DllCall("user32.dll", "int", "DestroyIcon", "handle", $hIcon) - ; No @error test because results are unimportant. - Return SetError($iError, $iExtended, 0) - EndIf - - DllCall("user32.dll", "int", "DestroyIcon", "handle", $hIcon) - ; No @error test because results are unimportant. - - Local $iMask = BitOR($TVIF_IMAGE, $TVIF_SELECTEDIMAGE) - - If BitAND($iImageMode, 2) Then - DllStructSetData($tTVITEM, "Image", $vIcon) - If Not BitAND($iImageMode, 4) Then $iMask = $TVIF_IMAGE - EndIf - - If BitAND($iImageMode, 4) Then - DllStructSetData($tTVITEM, "SelectedImage", $vIcon) - If Not BitAND($iImageMode, 2) Then - $iMask = $TVIF_SELECTEDIMAGE - Else - $iMask = BitOR($TVIF_IMAGE, $TVIF_SELECTEDIMAGE) - EndIf - EndIf - - DllStructSetData($tTVITEM, "Mask", $iMask) - DllStructSetData($tTVITEM, "hItem", $hItem) - - Return __GUICtrlTreeView_SetItem($hWnd, $tTVITEM) -EndFunc ;==>_GUICtrlTreeView_SetIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetImageIndex($hWnd, $hItem, $iIndex) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", BitOR($TVIF_HANDLE, $TVIF_IMAGE)) - DllStructSetData($tItem, "hItem", $hItem) - DllStructSetData($tItem, "Image", $iIndex) - Return __GUICtrlTreeView_SetItem($hWnd, $tItem) -EndFunc ;==>_GUICtrlTreeView_SetImageIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetIndent($hWnd, $iIndent) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - _SendMessage($hWnd, $TVM_SETINDENT, $iIndent) -EndFunc ;==>_GUICtrlTreeView_SetIndent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetInsertMark($hWnd, $hItem, $bAfter = True) - If Not IsHWnd($hItem) And $hItem <> 0 Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_SETINSERTMARK, $bAfter, $hItem, 0, "wparam", "handle") <> 0 -EndFunc ;==>_GUICtrlTreeView_SetInsertMark - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetInsertMarkColor($hWnd, $iColor) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_SETINSERTMARKCOLOR, 0, $iColor) -EndFunc ;==>_GUICtrlTreeView_SetInsertMarkColor - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __GUICtrlTreeView_SetItem -; Description ...: Sets some or all of a items attributes -; Syntax.........: __GUICtrlTreeView_SetItem ( $hWnd, ByRef $tItem ) -; Parameters ....: $hWnd - Handle to the control -; $tItem - $tagTVITEMEX structure that contains the new item attributes -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: This function is used internally and should not normally be called by the end user -; Related .......: __GUICtrlTreeView_GetItem -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __GUICtrlTreeView_SetItem($hWnd, ByRef $tItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $bUnicode = _GUICtrlTreeView_GetUnicodeFormat($hWnd) - - Local $iRet - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - $iRet = _SendMessage($hWnd, $TVM_SETITEMW, 0, $tItem, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tItem) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem, $tMemMap) - _MemWrite($tMemMap, $tItem) - If $bUnicode Then - $iRet = _SendMessage($hWnd, $TVM_SETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $iRet = _SendMessage($hWnd, $TVM_SETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - Return $iRet <> 0 -EndFunc ;==>__GUICtrlTreeView_SetItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetItemHeight($hWnd, $hItem, $iIntegral) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - - _GUICtrlTreeView_BeginUpdate($hWnd) - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", BitOR($TVIF_HANDLE, $TVIF_INTEGRAL)) - DllStructSetData($tItem, "hItem", $hItem) - DllStructSetData($tItem, "Integral", $iIntegral) - Local $bResult = __GUICtrlTreeView_SetItem($hWnd, $tItem) - _GUICtrlTreeView_EndUpdate($hWnd) - Return $bResult -EndFunc ;==>_GUICtrlTreeView_SetItemHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetItemParam($hWnd, $hItem, $iParam) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", BitOR($TVIF_HANDLE, $TVIF_PARAM)) - DllStructSetData($tItem, "hItem", $hItem) - DllStructSetData($tItem, "Param", $iParam) - Local $bResult = __GUICtrlTreeView_SetItem($hWnd, $tItem) - Return $bResult -EndFunc ;==>_GUICtrlTreeView_SetItemParam - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetLineColor($hWnd, $vRGBColor) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return __GUICtrlTreeView_ReverseColorOrder(_SendMessage($hWnd, $TVM_SETLINECOLOR, 0, Int(__GUICtrlTreeView_ReverseColorOrder($vRGBColor)))) -EndFunc ;==>_GUICtrlTreeView_SetLineColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetNormalImageList($hWnd, $hImageList) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_SETIMAGELIST, $TVSIL_NORMAL, $hImageList, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_SetNormalImageList - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _GUICtrlTreeView_SetOverlayImageIndex -; Description ...: Sets the index into image list for the state image -; Syntax.........: _GUICtrlTreeView_SetOverlayImageIndex ( $hWnd, $hItem, $iIndex ) -; Parameters ....: $hWnd - Handle to the control -; $hItem - Handle to the item -; $iIndex - Image list index -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; Remarks .......: -; Related .......: _GUICtrlTreeView_GetOverlayImageIndex -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetOverlayImageIndex($hWnd, $hItem, $iIndex) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", BitOR($TVIF_HANDLE, $TVIF_STATE)) - DllStructSetData($tItem, "hItem", $hItem) - DllStructSetData($tItem, "State", BitShift($iIndex, -8)) - DllStructSetData($tItem, "StateMask", $TVIS_OVERLAYMASK) - Return __GUICtrlTreeView_SetItem($hWnd, $tItem) -EndFunc ;==>_GUICtrlTreeView_SetOverlayImageIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetScrollTime($hWnd, $iTime) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_SETSCROLLTIME, $iTime) -EndFunc ;==>_GUICtrlTreeView_SetScrollTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetSelected($hWnd, $hItem, $bFlag = True) - Return _GUICtrlTreeView_SetState($hWnd, $hItem, $TVIS_SELECTED, $bFlag) -EndFunc ;==>_GUICtrlTreeView_SetSelected - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetSelectedImageIndex($hWnd, $hItem, $iIndex) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", BitOR($TVIF_HANDLE, $TVIF_SELECTEDIMAGE)) - DllStructSetData($tItem, "hItem", $hItem) - DllStructSetData($tItem, "SelectedImage", $iIndex) - Return __GUICtrlTreeView_SetItem($hWnd, $tItem) -EndFunc ;==>_GUICtrlTreeView_SetSelectedImageIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Holger Kotsch -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetState($hWnd, $hItem, $iState = 0, $bSetState = True) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If $hItem = 0x00000000 Or ($iState = 0 And $bSetState = False) Then Return False - - Local $tTVITEM = DllStructCreate($tagTVITEMEX) - If @error Then Return SetError(1, 1, 0) - DllStructSetData($tTVITEM, "Mask", $TVIF_STATE) - DllStructSetData($tTVITEM, "hItem", $hItem) - If $bSetState Then - DllStructSetData($tTVITEM, "State", $iState) - Else - DllStructSetData($tTVITEM, "State", BitAND($bSetState, $iState)) - EndIf - DllStructSetData($tTVITEM, "StateMask", $iState) - If $bSetState Then DllStructSetData($tTVITEM, "StateMask", BitOR($bSetState, $iState)) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Return __GUICtrlTreeView_SetItem($hWnd, $tTVITEM) -EndFunc ;==>_GUICtrlTreeView_SetState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetStateImageIndex($hWnd, $hItem, $iIndex) - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - If $iIndex < 0 Then - ; Invalid index for State Image" & @LF & "State Image List is One-based list - Return SetError(1, 0, False) - EndIf - - Local $tItem = DllStructCreate($tagTVITEMEX) - DllStructSetData($tItem, "Mask", $TVIF_STATE) - DllStructSetData($tItem, "hItem", $hItem) - DllStructSetData($tItem, "State", BitShift($iIndex, -12)) - DllStructSetData($tItem, "StateMask", $TVIS_STATEIMAGEMASK) - Return __GUICtrlTreeView_SetItem($hWnd, $tItem) -EndFunc ;==>_GUICtrlTreeView_SetStateImageIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetStateImageList($hWnd, $hImageList) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - ; haven't figured out why but the state image list appears to use a 1 based index - ; add and icon - _GUIImageList_AddIcon($hImageList, "shell32.dll", 0) - Local $iCount = _GUIImageList_GetImageCount($hImageList) - ; shift it to the zero index, won't be used - For $x = $iCount - 1 To 1 Step -1 - _GUIImageList_Swap($hImageList, $x, $x - 1) - Next - Return _SendMessage($hWnd, $TVM_SETIMAGELIST, $TVSIL_STATE, $hImageList, 0, "wparam", "handle", "handle") -EndFunc ;==>_GUICtrlTreeView_SetStateImageList - -; #FUNCTION# ==================================================================================================================== -; Author ........: Holger Kotsch -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetText($hWnd, $hItem = 0, $sText = "") - If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem) - If $hItem = 0x00000000 Or $sText = "" Then Return SetError(1, 1, 0) - - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $tTVITEM = DllStructCreate($tagTVITEMEX) - Local $iBuffer = StringLen($sText) + 1 - Local $tBuffer - Local $bUnicode = _GUICtrlTreeView_GetUnicodeFormat($hWnd) - If $bUnicode Then - $tBuffer = DllStructCreate("wchar Buffer[" & $iBuffer & "]") - $iBuffer *= 2 - Else - $tBuffer = DllStructCreate("char Buffer[" & $iBuffer & "]") - EndIf - DllStructSetData($tBuffer, "Buffer", $sText) - DllStructSetData($tTVITEM, "Mask", BitOR($TVIF_HANDLE, $TVIF_TEXT)) - DllStructSetData($tTVITEM, "hItem", $hItem) - DllStructSetData($tTVITEM, "TextMax", $iBuffer) - Local $bResult - If _WinAPI_InProcess($hWnd, $__g_hTVLastWnd) Then - DllStructSetData($tTVITEM, "Text", DllStructGetPtr($tBuffer)) - $bResult = _SendMessage($hWnd, $TVM_SETITEMW, 0, $tTVITEM, 0, "wparam", "struct*") - Else - Local $iItem = DllStructGetSize($tTVITEM) - Local $tMemMap - Local $pMemory = _MemInit($hWnd, $iItem + $iBuffer, $tMemMap) - Local $pText = $pMemory + $iItem - DllStructSetData($tTVITEM, "Text", $pText) - _MemWrite($tMemMap, $tTVITEM, $pMemory, $iItem) - _MemWrite($tMemMap, $tBuffer, $pText, $iBuffer) - If $bUnicode Then - $bResult = _SendMessage($hWnd, $TVM_SETITEMW, 0, $pMemory, 0, "wparam", "ptr") - Else - $bResult = _SendMessage($hWnd, $TVM_SETITEMA, 0, $pMemory, 0, "wparam", "ptr") - EndIf - _MemFree($tMemMap) - EndIf - - Return $bResult <> 0 -EndFunc ;==>_GUICtrlTreeView_SetText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _GUICtrlTreeView_SetTextColor($hWnd, $vRGBColor) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return __GUICtrlTreeView_ReverseColorOrder(_SendMessage($hWnd, $TVM_SETTEXTCOLOR, 0, Int(__GUICtrlTreeView_ReverseColorOrder($vRGBColor)))) -EndFunc ;==>_GUICtrlTreeView_SetTextColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetToolTips($hWnd, $hToolTip) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_SETTOOLTIPS, $hToolTip, 0, 0, "wparam", "int", "hwnd") -EndFunc ;==>_GUICtrlTreeView_SetToolTips - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _GUICtrlTreeView_SetUnicodeFormat($hWnd, $bFormat = True) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Return _SendMessage($hWnd, $TVM_SETUNICODEFORMAT, $bFormat) -EndFunc ;==>_GUICtrlTreeView_SetUnicodeFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: mlipok, guinness -; =============================================================================================================================== -Func _GUICtrlTreeView_Sort($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - - Local $iItemCount = _GUICtrlTreeView_GetCount($hWnd) - If $iItemCount Then - Local $aTreeView[$iItemCount], $hItem = 0 - For $i = 0 To $iItemCount - 1 - If $i Then - $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_NEXT, $hItem, 0, "wparam", "handle", "handle") - Else - $hItem = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CHILD, $TVI_ROOT, 0, "wparam", "handle", "handle") - EndIf - $aTreeView[$i] = $hItem - Next - Local $hChild = 0, $iRecursive = 1 - For $i = 0 To $iItemCount - 1 - _SendMessage($hWnd, $TVM_SORTCHILDREN, $iRecursive, $aTreeView[$i], 0, "wparam", "handle") ; Sort the items in root - Do ; Sort all child items - $hChild = _SendMessage($hWnd, $TVM_GETNEXTITEM, $TVGN_CHILD, $hItem, 0, "wparam", "handle", "handle") - If $hChild Then - _SendMessage($hWnd, $TVM_SORTCHILDREN, $iRecursive, $hChild, 0, "wparam", "handle") - EndIf - $hItem = $hChild - Until $hItem = 0x00000000 - Next - EndIf -EndFunc ;==>_GUICtrlTreeView_Sort diff --git a/build/Include/HeaderConstants.au3 b/build/Include/HeaderConstants.au3 deleted file mode 100644 index 04c7a55cc..000000000 --- a/build/Include/HeaderConstants.au3 +++ /dev/null @@ -1,120 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Header_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for Header functions. -; Author(s) .....: Valik, Gary Frost -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $HDF_LEFT = 0x00000000 -Global Const $HDF_RIGHT = 0x00000001 -Global Const $HDF_CENTER = 0x00000002 -Global Const $HDF_JUSTIFYMASK = 0x00000003 - -Global Const $HDF_BITMAP_ON_RIGHT = 0x00001000 -Global Const $HDF_BITMAP = 0x00002000 -Global Const $HDF_STRING = 0x00004000 -Global Const $HDF_OWNERDRAW = 0x00008000 -Global Const $HDF_DISPLAYMASK = 0x0000F000 - -Global Const $HDF_RTLREADING = 0x00000004 -Global Const $HDF_SORTDOWN = 0x00000200 -Global Const $HDF_IMAGE = 0x00000800 -Global Const $HDF_SORTUP = 0x00000400 -Global Const $HDF_FLAGMASK = 0x00000E04 - -Global Const $HDI_WIDTH = 0x00000001 -Global Const $HDI_TEXT = 0x00000002 -Global Const $HDI_FORMAT = 0x00000004 -Global Const $HDI_PARAM = 0x00000008 -Global Const $HDI_BITMAP = 0x00000010 -Global Const $HDI_IMAGE = 0x00000020 -Global Const $HDI_DI_SETITEM = 0x00000040 -Global Const $HDI_ORDER = 0x00000080 -Global Const $HDI_FILTER = 0x00000100 - -Global Const $HHT_NOWHERE = 0x00000001 -Global Const $HHT_ONHEADER = 0x00000002 -Global Const $HHT_ONDIVIDER = 0x00000004 -Global Const $HHT_ONDIVOPEN = 0x00000008 -Global Const $HHT_ONFILTER = 0x00000010 -Global Const $HHT_ONFILTERBUTTON = 0x00000020 -Global Const $HHT_ABOVE = 0x00000100 -Global Const $HHT_BELOW = 0x00000200 -Global Const $HHT_TORIGHT = 0x00000400 -Global Const $HHT_TOLEFT = 0x00000800 - -; Messages -Global Const $HDM_FIRST = 0x1200 -Global Const $HDM_CLEARFILTER = $HDM_FIRST + 24 -Global Const $HDM_CREATEDRAGIMAGE = $HDM_FIRST + 16 -Global Const $HDM_DELETEITEM = $HDM_FIRST + 2 -Global Const $HDM_EDITFILTER = $HDM_FIRST + 23 -Global Const $HDM_GETBITMAPMARGIN = $HDM_FIRST + 21 -Global Const $HDM_GETFOCUSEDITEM = $HDM_FIRST + 27 -Global Const $HDM_GETIMAGELIST = $HDM_FIRST + 9 -Global Const $HDM_GETITEMA = $HDM_FIRST + 3 -Global Const $HDM_GETITEMW = $HDM_FIRST + 11 -Global Const $HDM_GETITEMCOUNT = $HDM_FIRST + 0 -Global Const $HDM_GETITEMDROPDOWNRECT = $HDM_FIRST + 25 -Global Const $HDM_GETITEMRECT = $HDM_FIRST + 7 -Global Const $HDM_GETORDERARRAY = $HDM_FIRST + 17 -Global Const $HDM_GETOVERFLOWRECT = $HDM_FIRST + 26 -Global Const $HDM_GETUNICODEFORMAT = 0x2000 + 6 -Global Const $HDM_HITTEST = $HDM_FIRST + 6 -Global Const $HDM_INSERTITEMA = $HDM_FIRST + 1 -Global Const $HDM_INSERTITEMW = $HDM_FIRST + 10 -Global Const $HDM_LAYOUT = $HDM_FIRST + 5 -Global Const $HDM_ORDERTOINDEX = $HDM_FIRST + 15 -Global Const $HDM_SETBITMAPMARGIN = $HDM_FIRST + 20 -Global Const $HDM_SETFILTERCHANGETIMEOUT = $HDM_FIRST + 22 -Global Const $HDM_SETFOCUSEDITEM = $HDM_FIRST + 28 -Global Const $HDM_SETHOTDIVIDER = $HDM_FIRST + 19 -Global Const $HDM_SETIMAGELIST = $HDM_FIRST + 8 -Global Const $HDM_SETITEMA = $HDM_FIRST + 4 -Global Const $HDM_SETITEMW = $HDM_FIRST + 12 -Global Const $HDM_SETORDERARRAY = $HDM_FIRST + 18 -Global Const $HDM_SETUNICODEFORMAT = 0x2000 + 5 - -; Notifications -Global Const $HDN_FIRST = -300 -Global Const $HDN_BEGINDRAG = $HDN_FIRST - 10 ; Sent when a drag operation has begun -Global Const $HDN_BEGINTRACK = $HDN_FIRST - 6 ; Sent when the user has begun dragging a divider -Global Const $HDN_DIVIDERDBLCLICK = $HDN_FIRST - 5 ; Sent when the user double clicks the divider -Global Const $HDN_ENDDRAG = $HDN_FIRST - 11 ; Sent when a drag operation has ended -Global Const $HDN_ENDTRACK = $HDN_FIRST - 7 ; Sent when the user has finished dragging a divider -Global Const $HDN_FILTERBTNCLICK = $HDN_FIRST - 13 ; Sent when filter button is clicked -Global Const $HDN_FILTERCHANGE = $HDN_FIRST - 12 ; Sent when the attributes of a header control filter are being changed -Global Const $HDN_GETDISPINFO = $HDN_FIRST - 9 ; Sent when the control needs information about a callback -Global Const $HDN_ITEMCHANGED = $HDN_FIRST - 1 ; Sent when a header item has changed -Global Const $HDN_ITEMCHANGING = $HDN_FIRST - 0 ; Sent when a header item is about to change -Global Const $HDN_ITEMCLICK = $HDN_FIRST - 2 ; Sent when the user clicks the control -Global Const $HDN_ITEMDBLCLICK = $HDN_FIRST - 3 ; Sent when the user double clicks the control -Global Const $HDN_TRACK = $HDN_FIRST - 8 ; Sent when the user is dragging a divider -Global Const $HDN_BEGINTRACKW = $HDN_FIRST - 26 ; [Unicode] Sent when the user has begun dragging a divider -Global Const $HDN_DIVIDERDBLCLICKW = $HDN_FIRST - 25 ; [Unicode] Sent when the user double clicks the divider -Global Const $HDN_ENDTRACKW = $HDN_FIRST - 27 ; [Unicode] Sent when the user has finished dragging a divider -Global Const $HDN_GETDISPINFOW = $HDN_FIRST - 29 ; [Unicode] Sent when the control needs information about a callback -Global Const $HDN_ITEMCHANGEDW = $HDN_FIRST - 21 ; [Unicode] Sent when a header item has changed -Global Const $HDN_ITEMCHANGINGW = $HDN_FIRST - 20 ; [Unicode] Sent when a header item is about to change -Global Const $HDN_ITEMCLICKW = $HDN_FIRST - 22 ; [Unicode] Sent when the user clicks the control -Global Const $HDN_ITEMDBLCLICKW = $HDN_FIRST - 23 ; [Unicode] Sent when the user double clicks the control -Global Const $HDN_TRACKW = $HDN_FIRST - 28 ; [Unicode] Sent when the user is dragging a divider - -; Styles -Global Const $HDS_BUTTONS = 0x00000002 ; Each item in the control looks and behaves like a push button -Global Const $HDS_CHECKBOXES = 0x00000400 ; Allows the placing of checkboxes on header items on Vista -Global Const $HDS_DRAGDROP = 0x00000040 ; Allows drag-and-drop reordering of header items -Global Const $HDS_FILTERBAR = 0x00000100 ; Include a filter bar as part of the standard header control -Global Const $HDS_FLAT = 0x00000200 ; Control is drawn flat when XP is running in classic mode -Global Const $HDS_FULLDRAG = 0x00000080 ; Column contents are displayed while the user resizes a column -Global Const $HDS_HIDDEN = 0x00000008 ; Indicates a header control that is intended to be hidden -Global Const $HDS_HORZ = 0x00000000 ; Creates a header control with a horizontal orientation -Global Const $HDS_HOTTRACK = 0x00000004 ; Enables hot tracking -Global Const $HDS_NOSIZING = 0x0800 ; The user cannot drag the divider on the header control on Vista -Global Const $HDS_OVERFLOW = 0x1000 ; A button is displayed when not all items can be displayed within the header control's rectangle on Vista -Global Const $HDS_DEFAULT = 0x00000046 ; Default header style $HDS_DRAGDROP + $HDS_HOTTRACK + $HDS_BUTTONS -; =============================================================================================================================== diff --git a/build/Include/IE.au3 b/build/Include/IE.au3 deleted file mode 100644 index 5f6921ccf..000000000 --- a/build/Include/IE.au3 +++ /dev/null @@ -1,3439 +0,0 @@ -#include-once - -#include "AutoItConstants.au3" -#include "FileConstants.au3" -#include "WinAPIError.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Internet Explorer Automation UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: A collection of functions for creating, attaching to, reading from and manipulating Internet Explorer. -; Author(s) .....: DaleHohm, big_daddy, jpm -; Dll ...........: user32.dll, ole32.dll, oleacc.dll -; =============================================================================================================================== - -#Region Header -#cs - Title: Internet Explorer Automation UDF Library for AutoIt3 - Filename: IE.au3 - Description: A collection of functions for creating, attaching to, reading from and manipulating Internet Explorer - Author: DaleHohm - Modified: jpm, Jon - Version: T3.0-1 - Last Update: 13/06/02 - Requirements: AutoIt3 3.3.9 or higher - - Update History: - =================================================== - T3.0-2 14/8/19 - - Enhancements - - Updated __IEErrorHandlerRegister to work with or without COM errors being fatal - - T3.0-1 13/6/2 - - Enhancements - - Fixed _IE_Introduction, _IE_Examples generate HTML5 - - Added check in __IEComErrorUnrecoverable for COM error -2147023174, "RPC server not accessible." - - Fixed check in __IEComErrorUnrecoverable for COM error -2147024891, "Access is denied." - - Fixed check in __IEComErrorUnrecoverable for COM error -2147352567, "an exception has occurred." - - Fixed __IEIsObjType() not restoring _IEErrorNotify() - - Fixed $b_mustUnlock on Error in _IECreate() - - Fixed no timeout cheking if error in _IELoadWait() - - Fixed HTML5 support in _IEImgClick(), _IEFormImageClick() - - Fixed _IEHeadInsertEventScript() COM error return - - Updated _IEErrorNotify() default keyword support - - Updated rename __IENotify() to __IEConsoleWriteError() and restore calling @error - - Removed __IEInternalErrorHandler() (not used any more) - - Updated Function Headers - - Updated doc and splitting and checking examples - - T3.0-0 12/9/3 - - Fixes - - Removed _IEErrorHandlerRegister() and all internal calls to it. Unneeded as COM errors are no longer fatal - - Removed code deprecated in V2 - - Fixed _IELoadWait check for unrecoverable COM errors - - Removed Vcard support from _IEPropertyGet (IE removed support in IE7) - - Code cleanup with #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 - - New Features - - Added "scrollIntoView" to _IEAction - - Enhancements - - Added check in __IEComErrorUnrecoverable for COM error -2147023179, "The interface is unknown." - - Added "Trap COM error, report and return" to functions that perform blind method calls (those without return values) - - =================================================== -#ce -#EndRegion Header - -; #VARIABLES# =================================================================================================================== -#Region Global Variables -Global $__g_iIELoadWaitTimeout = 300000 ; 5 Minutes -Global $__g_bIEAU3Debug = False -Global $__g_bIEErrorNotify = True -Global $__g_oIEErrorHandler, $__g_sIEUserErrorHandler -#EndRegion Global Variables -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -#Region Global Constants -Global Const $__gaIEAU3VersionInfo[6] = ["T", 3, 0, 2, "20140819", "T3.0-2"] -Global Const $LSFW_LOCK = 1, $LSFW_UNLOCK = 2 -; -; Enums -; -Global Enum _; Error Status Types - $_IESTATUS_Success = 0, _ - $_IESTATUS_GeneralError, _ - $_IESTATUS_ComError, _ - $_IESTATUS_InvalidDataType, _ - $_IESTATUS_InvalidObjectType, _ - $_IESTATUS_InvalidValue, _ - $_IESTATUS_LoadWaitTimeout, _ - $_IESTATUS_NoMatch, _ - $_IESTATUS_AccessIsDenied, _ - $_IESTATUS_ClientDisconnected -;~ Global Enum Step * 2 _; NotificationLevel -;~ $_IENotifyLevel_None = 0, _ -;~ $_IENotifyNotifyLevel_Warning = 1, _ -;~ $_IENotifyNotifyLevel_Error, _ -;~ $_IENotifyNotifyLevel_ComError -;~ Global Enum Step * 2 _; NotificationMethod -;~ $_IENotifyMethod_Silent = 0, _ -;~ $_IENotifyMethod_Console = 1, _ -;~ $_IENotifyMethod_ToolTip, _ -;~ $_IENotifyMethod_MsgBox -#EndRegion Global Constants -; =============================================================================================================================== - -; #NO_DOC_FUNCTION# ============================================================================================================= -; _IEErrorHandlerRegister -; _IEErrorHandlerDeRegister -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _IECreate -; _IECreateEmbedded -; _IENavigate -; _IEAttach -; _IELoadWait -; _IELoadWaitTimeout -; -; _IEIsFrameSet -; _IEFrameGetCollection -; _IEFrameGetObjByName -; -; _IELinkClickByText -; _IELinkClickByIndex -; _IELinkGetCollection -; -; _IEImgClick -; _IEImgGetCollection -; -; _IEFormGetCollection -; _IEFormGetObjByName -; _IEFormElementGetCollection -; _IEFormElementGetObjByName -; _IEFormElementGetValue -; _IEFormElementSetValue -; _IEFormElementOptionSelect -; _IEFormElementCheckBoxSelect -; _IEFormElementRadioSelect -; _IEFormImageClick -; _IEFormSubmit -; _IEFormReset -; -; _IETableGetCollection -; _IETableWriteToArray -; -; _IEBodyReadHTML -; _IEBodyReadText -; _IEBodyWriteHTML -; _IEDocReadHTML -; _IEDocWriteHTML -; _IEDocInsertText -; _IEDocInsertHTML -; _IEHeadInsertEventScript -; -; _IEDocGetObj -; _IETagNameGetCollection -; _IETagNameAllGetCollection -; _IEGetObjByName -; _IEGetObjById -; _IEAction -; _IEPropertyGet -; _IEPropertySet -; _IEErrorNotify -; _IEQuit -; -; _IE_Introduction -; _IE_Example -; _IE_VersionInfo -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __IELockSetForegroundWindow -; __IEControlGetObjFromHWND -; __IERegisterWindowMessage -; __IESendMessageTimeout -; __IEIsObjType -; __IEConsoleWriteError -; __IEComErrorUnrecoverable -; -; __IEInternalErrorHandler -; __IEInternalErrorHandlerRegister -; __IENavigate -; __IECreateNewIE -; __IETempFile -; -; __IEStringToBstr -; __IEBstrToString -; =============================================================================================================================== - -#Region Core functions -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func _IECreate($sUrl = "about:blank", $iTryAttach = 0, $iVisible = 1, $iWait = 1, $iTakeFocus = 1) - If Not $iVisible Then $iTakeFocus = 0 ; Force takeFocus to 0 for hidden window - - If $iTryAttach Then - Local $oResult = _IEAttach($sUrl, "url") - If IsObj($oResult) Then - If $iTakeFocus Then WinActivate(HWnd($oResult.hWnd)) - Return SetError($_IESTATUS_Success, 1, $oResult) - EndIf - EndIf - - Local $iMustUnlock = 0 - If Not $iVisible And __IELockSetForegroundWindow($LSFW_LOCK) Then $iMustUnlock = 1 - - Local $oObject = ObjCreate("InternetExplorer.Application") - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IECreate", "", "Browser Object Creation Failed") - If $iMustUnlock Then __IELockSetForegroundWindow($LSFW_UNLOCK) - Return SetError($_IESTATUS_GeneralError, 0, 0) - EndIf - - $oObject.visible = $iVisible - - ; If the unlock doesn't work we may have created an unwanted modal window - If $iMustUnlock And Not __IELockSetForegroundWindow($LSFW_UNLOCK) Then __IEConsoleWriteError("Warning", "_IECreate", "", "Foreground Window Unlock Failed!") - _IENavigate($oObject, $sUrl, $iWait) - - ; Store @error after _IENavigate() so that it can be returned. - Local $iError = @error - - ; IE9 sets focus to the URL bar when an about: URI is displayed (such as about:blank). This can cause - ; _IEAction(..., "focus") to work incorrectly. It will give focus to the element (as shown by the elements's - ; appearance changing but) the input caret will not move. The work-around for this "helpful" behavior is - ; to explicitly give focus to the document. We should only do this for about: URIs and on successful - ; navigate. - If Not $iError And StringLeft($sUrl, 6) = "about:" Then - Local $oDocument = $oObject.document - _IEAction($oDocument, "focus") - EndIf - - Return SetError($iError, 0, $oObject) -EndFunc ;==>_IECreate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IECreateEmbedded() - Local $oObject = ObjCreate("Shell.Explorer.2") - - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IECreateEmbedded", "", "WebBrowser Object Creation Failed") - Return SetError($_IESTATUS_GeneralError, 0, 0) - EndIf - ; - Return SetError($_IESTATUS_Success, 0, $oObject) -EndFunc ;==>_IECreateEmbedded - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IENavigate(ByRef $oObject, $sUrl, $iWait = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IENavigate", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IENavigate", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $oObject.navigate($sUrl) - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IENavigate", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - If $iWait Then - _IELoadWait($oObject) - Return SetError(@error, 0, -1) - EndIf - - Return SetError($_IESTATUS_Success, 0, -1) -EndFunc ;==>_IENavigate - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEAttach($sString, $sMode = "title", $iInstance = 1) - $sMode = StringLower($sMode) - - $iInstance = Int($iInstance) - If $iInstance < 1 Then - __IEConsoleWriteError("Error", "_IEAttach", "$_IESTATUS_InvalidValue", "$iInstance < 1") - Return SetError($_IESTATUS_InvalidValue, 3, 0) - EndIf - - If $sMode = "embedded" Or $sMode = "dialogbox" Then - Local $iWinTitleMatchMode = Opt("WinTitleMatchMode", $OPT_MATCHANY) - If $sMode = "dialogbox" And $iInstance > 1 Then - If IsHWnd($sString) Then - $iInstance = 1 - __IEConsoleWriteError("Warning", "_IEAttach", "$_IESTATUS_GeneralError", "$iInstance > 1 invalid with HWnd and DialogBox. Setting to 1.") - Else - Local $aWinlist = WinList($sString, "") - If $iInstance <= $aWinlist[0][0] Then - $sString = $aWinlist[$iInstance][1] - $iInstance = 1 - Else - __IEConsoleWriteError("Warning", "_IEAttach", "$_IESTATUS_NoMatch") - Opt("WinTitleMatchMode", $iWinTitleMatchMode) - Return SetError($_IESTATUS_NoMatch, 1, 0) - EndIf - EndIf - EndIf - Local $hControl = ControlGetHandle($sString, "", "[CLASS:Internet Explorer_Server; INSTANCE:" & $iInstance & "]") - Local $oResult = __IEControlGetObjFromHWND($hControl) - Opt("WinTitleMatchMode", $iWinTitleMatchMode) - If IsObj($oResult) Then - Return SetError($_IESTATUS_Success, 0, $oResult) - Else - __IEConsoleWriteError("Warning", "_IEAttach", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 1, 0) - EndIf - EndIf - - Local $oShell = ObjCreate("Shell.Application") - Local $oShellWindows = $oShell.Windows(); collection of all ShellWindows (IE and File Explorer) - Local $iTmp = 1 - Local $iNotifyStatus, $bIsBrowser, $sTmp - Local $bStatus - For $oWindow In $oShellWindows - ;------------------------------------------------------------------------------------------ - ; Check to verify that the window object is a valid browser, if not, skip it - ; - ; Setup internal error handler to Trap COM errors, turn off error notification, - ; check object property validity, set a flag and reset error handler and notification - ; - $bIsBrowser = True - ; Trap COM errors and turn off error notification - $bStatus = __IEInternalErrorHandlerRegister() - If Not $bStatus Then __IEConsoleWriteError("Warning", "_IEAttach", _ - "Cannot register internal error handler, cannot trap COM errors", _ - "Use _IEErrorHandlerRegister() to register a user error handler") - ; Turn off error notification for internal processing - $iNotifyStatus = _IEErrorNotify() ; save current error notify status - _IEErrorNotify(False) - - ; Check conditions to verify that the object is a browser - If $bIsBrowser Then - $sTmp = $oWindow.type ; Is .type a valid property? - If @error Then $bIsBrowser = False - EndIf - If $bIsBrowser Then - $sTmp = $oWindow.document.title ; Does object have a .document and .title property? - If @error Then $bIsBrowser = False - EndIf - - ; restore error notify - _IEErrorNotify($iNotifyStatus) ; restore notification status - __IEInternalErrorHandlerDeRegister() - ;------------------------------------------------------------------------------------------ - - If $bIsBrowser Then - Switch $sMode - Case "title" - If StringInStr($oWindow.document.title, $sString) > 0 Then - If $iInstance = $iTmp Then - Return SetError($_IESTATUS_Success, 0, $oWindow) - Else - $iTmp += 1 - EndIf - EndIf - Case "instance" - If $iInstance = $iTmp Then - Return SetError($_IESTATUS_Success, 0, $oWindow) - Else - $iTmp += 1 - EndIf - Case "windowtitle" - Local $bFound = False - $sTmp = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\", "Window Title") - If Not @error Then - If StringInStr($oWindow.document.title & " - " & $sTmp, $sString) Then $bFound = True - Else - If StringInStr($oWindow.document.title & " - Microsoft Internet Explorer", $sString) Then $bFound = True - If StringInStr($oWindow.document.title & " - Windows Internet Explorer", $sString) Then $bFound = True - EndIf - If $bFound Then - If $iInstance = $iTmp Then - Return SetError($_IESTATUS_Success, 0, $oWindow) - Else - $iTmp += 1 - EndIf - EndIf - Case "url" - If StringInStr($oWindow.LocationURL, $sString) > 0 Then - If $iInstance = $iTmp Then - Return SetError($_IESTATUS_Success, 0, $oWindow) - Else - $iTmp += 1 - EndIf - EndIf - Case "text" - If StringInStr($oWindow.document.body.innerText, $sString) > 0 Then - If $iInstance = $iTmp Then - Return SetError($_IESTATUS_Success, 0, $oWindow) - Else - $iTmp += 1 - EndIf - EndIf - Case "html" - If StringInStr($oWindow.document.body.innerHTML, $sString) > 0 Then - If $iInstance = $iTmp Then - Return SetError($_IESTATUS_Success, 0, $oWindow) - Else - $iTmp += 1 - EndIf - EndIf - Case "hwnd" - If $iInstance > 1 Then - $iInstance = 1 - __IEConsoleWriteError("Warning", "_IEAttach", "$_IESTATUS_GeneralError", "$iInstance > 1 invalid with HWnd. Setting to 1.") - EndIf - If _IEPropertyGet($oWindow, "hwnd") = $sString Then - Return SetError($_IESTATUS_Success, 0, $oWindow) - EndIf - Case Else - ; Invalid Mode - __IEConsoleWriteError("Error", "_IEAttach", "$_IESTATUS_InvalidValue", "Invalid Mode Specified") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - EndSwitch - EndIf - Next - __IEConsoleWriteError("Warning", "_IEAttach", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 1, 0) -EndFunc ;==>_IEAttach - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func _IELoadWait(ByRef $oObject, $iDelay = 0, $iTimeout = -1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IELoadWait", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IELoadWait", "$_IESTATUS_InvalidObjectType", ObjName($oObject)) - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - - Local $oTemp, $bAbort = False, $iErrorStatusCode = $_IESTATUS_Success - - ; Setup internal error handler to Trap COM errors, turn off error notification - Local $bStatus = __IEInternalErrorHandlerRegister() - If Not $bStatus Then __IEConsoleWriteError("Warning", "_IELoadWait", _ - "Cannot register internal error handler, cannot trap COM errors", _ - "Use _IEErrorHandlerRegister() to register a user error handler") - Local $iNotifyStatus = _IEErrorNotify() ; save current error notify status - _IEErrorNotify(False) - - Sleep($iDelay) - ; - Local $iError - Local $hIELoadWaitTimer = __TimerInit() - If $iTimeout = -1 Then $iTimeout = $__g_iIELoadWaitTimeout - - Select - Case __IEIsObjType($oObject, "browser", False); Internet Explorer - While Not (String($oObject.readyState) = "complete" Or $oObject.readyState = 4 Or $bAbort) - ; Trap unrecoverable COM errors - If @error Then - $iError = @error - If __IEComErrorUnrecoverable($iError) Then - $iErrorStatusCode = __IEComErrorUnrecoverable($iError) - $bAbort = True - EndIf - ElseIf (__TimerDiff($hIELoadWaitTimer) > $iTimeout) Then - $iErrorStatusCode = $_IESTATUS_LoadWaitTimeout - $bAbort = True - EndIf - Sleep(100) - WEnd - While Not (String($oObject.document.readyState) = "complete" Or $oObject.document.readyState = 4 Or $bAbort) - ; Trap unrecoverable COM errors - If @error Then - $iError = @error - If __IEComErrorUnrecoverable($iError) Then - $iErrorStatusCode = __IEComErrorUnrecoverable($iError) - $bAbort = True - EndIf - ElseIf (__TimerDiff($hIELoadWaitTimer) > $iTimeout) Then - $iErrorStatusCode = $_IESTATUS_LoadWaitTimeout - $bAbort = True - EndIf - Sleep(100) - WEnd - Case __IEIsObjType($oObject, "window", False) ; Window, Frame, iFrame - While Not (String($oObject.document.readyState) = "complete" Or $oObject.document.readyState = 4 Or $bAbort) - ; Trap unrecoverable COM errors - If @error Then - $iError = @error - If __IEComErrorUnrecoverable($iError) Then - $iErrorStatusCode = __IEComErrorUnrecoverable($iError) - $bAbort = True - EndIf - ElseIf (__TimerDiff($hIELoadWaitTimer) > $iTimeout) Then - $iErrorStatusCode = $_IESTATUS_LoadWaitTimeout - $bAbort = True - EndIf - Sleep(100) - WEnd - While Not (String($oObject.top.document.readyState) = "complete" Or $oObject.top.document.readyState = 4 Or $bAbort) - ; Trap unrecoverable COM errors - If @error Then - $iError = @error - If __IEComErrorUnrecoverable($iError) Then - $iErrorStatusCode = __IEComErrorUnrecoverable($iError) - $bAbort = True - EndIf - ElseIf (__TimerDiff($hIELoadWaitTimer) > $iTimeout) Then - $iErrorStatusCode = $_IESTATUS_LoadWaitTimeout - $bAbort = True - EndIf - Sleep(100) - WEnd - Case __IEIsObjType($oObject, "document", False) ; Document - $oTemp = $oObject.parentWindow - While Not (String($oTemp.document.readyState) = "complete" Or $oTemp.document.readyState = 4 Or $bAbort) - ; Trap unrecoverable COM errors - If @error Then - $iError = @error - If __IEComErrorUnrecoverable($iError) Then - $iErrorStatusCode = __IEComErrorUnrecoverable($iError) - $bAbort = True - EndIf - ElseIf (__TimerDiff($hIELoadWaitTimer) > $iTimeout) Then - $iErrorStatusCode = $_IESTATUS_LoadWaitTimeout - $bAbort = True - EndIf - Sleep(100) - WEnd - While Not (String($oTemp.top.document.readyState) = "complete" Or $oTemp.top.document.readyState = 4 Or $bAbort) - ; Trap unrecoverable COM errors - If @error Then - $iError = @error - If __IEComErrorUnrecoverable($iError) Then - $iErrorStatusCode = __IEComErrorUnrecoverable($iError) - $bAbort = True - EndIf - ElseIf (__TimerDiff($hIELoadWaitTimer) > $iTimeout) Then - $iErrorStatusCode = $_IESTATUS_LoadWaitTimeout - $bAbort = True - EndIf - Sleep(100) - WEnd - Case Else ; this should work with any other DOM object - $oTemp = $oObject.document.parentWindow - While Not (String($oTemp.document.readyState) = "complete" Or $oTemp.document.readyState = 4 Or $bAbort) - ; Trap unrecoverable COM errors - If @error Then - $iError = @error - If __IEComErrorUnrecoverable($iError) Then - $iErrorStatusCode = __IEComErrorUnrecoverable($iError) - $bAbort = True - EndIf - ElseIf (__TimerDiff($hIELoadWaitTimer) > $iTimeout) Then - $iErrorStatusCode = $_IESTATUS_LoadWaitTimeout - $bAbort = True - EndIf - Sleep(100) - WEnd - While Not (String($oTemp.top.document.readyState) = "complete" Or $oObject.top.document.readyState = 4 Or $bAbort) - ; Trap unrecoverable COM errors - If @error Then - $iError = @error - If __IEComErrorUnrecoverable($iError) Then - $iErrorStatusCode = __IEComErrorUnrecoverable($iError) - $bAbort = True - EndIf - ElseIf (__TimerDiff($hIELoadWaitTimer) > $iTimeout) Then - $iErrorStatusCode = $_IESTATUS_LoadWaitTimeout - $bAbort = True - EndIf - Sleep(100) - WEnd - EndSelect - - ; restore error notify - _IEErrorNotify($iNotifyStatus) ; restore notification status - __IEInternalErrorHandlerDeRegister() - - Switch $iErrorStatusCode - Case $_IESTATUS_Success - Return SetError($_IESTATUS_Success, 0, 1) - Case $_IESTATUS_LoadWaitTimeout - __IEConsoleWriteError("Warning", "_IELoadWait", "$_IESTATUS_LoadWaitTimeout") - Return SetError($_IESTATUS_LoadWaitTimeout, 3, 0) - Case $_IESTATUS_AccessIsDenied - __IEConsoleWriteError("Warning", "_IELoadWait", "$_IESTATUS_AccessIsDenied", _ - "Cannot verify readyState. Likely casue: cross-domain scripting security restriction. (" & $iError & ")") - Return SetError($_IESTATUS_AccessIsDenied, 0, 0) - Case $_IESTATUS_ClientDisconnected - __IEConsoleWriteError("Error", "_IELoadWait", "$_IESTATUS_ClientDisconnected", _ - $iError & ", Browser has been deleted prior to operation.") - Return SetError($_IESTATUS_ClientDisconnected, 0, 0) - Case Else - __IEConsoleWriteError("Error", "_IELoadWait", "$_IESTATUS_GeneralError", "Invalid Error Status - Notify IE.au3 developer") - Return SetError($_IESTATUS_GeneralError, 0, 0) - EndSwitch -EndFunc ;==>_IELoadWait - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IELoadWaitTimeout($iTimeout = -1) - If $iTimeout = -1 Then - Return SetError($_IESTATUS_Success, 0, $__g_iIELoadWaitTimeout) - Else - $__g_iIELoadWaitTimeout = $iTimeout - Return SetError($_IESTATUS_Success, 0, 1) - EndIf -EndFunc ;==>_IELoadWaitTimeout - -#EndRegion Core functions - -#Region Frame Functions -; Security Note on Frame functions: -; Note that security restriction in Internet Explorer related to cross-site scripting -; between frames can cause serious problems with the frame functions. Functions that -; work connected to one site will fail when connected to another depending on the sites -; referenced in the frames. In general, if all the referenced pages are on the same -; webserver these functions should work as described; if not, unexpected COM failures -; can occur. -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEIsFrameSet(ByRef $oObject) - ; Note: this is more reliable test for a FrameSet than checking the - ; number of frames (document.frames.length) because iFrames embedded on a normal - ; page are included in the frame collection even though it is not a FrameSet - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEIsFrameSet", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If String($oObject.document.body.tagName) = "frameset" Then - Return SetError($_IESTATUS_Success, 0, 1) - Else - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEIsFrameSet", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, 0) - EndIf -EndFunc ;==>_IEIsFrameSet - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFrameGetCollection(ByRef $oObject, $iIndex = -1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFrameGetCollection", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - $iIndex = Number($iIndex) - Select - Case $iIndex = -1 - Return SetError($_IESTATUS_Success, $oObject.document.parentwindow.frames.length, _ - $oObject.document.parentwindow.frames) - Case $iIndex > -1 And $iIndex < $oObject.document.parentwindow.frames.length - Return SetError($_IESTATUS_Success, $oObject.document.parentwindow.frames.length, _ - $oObject.document.parentwindow.frames.item($iIndex)) - Case $iIndex < -1 - __IEConsoleWriteError("Error", "_IEFrameGetCollection", "$_IESTATUS_InvalidValue", "$iIndex < -1") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - Case Else - __IEConsoleWriteError("Warning", "_IEFrameGetCollection", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 2, 0) - EndSelect -EndFunc ;==>_IEFrameGetCollection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFrameGetObjByName(ByRef $oObject, $sName) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFrameGetObjByName", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - Local $oTemp, $oFrames - - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IEFrameGetObjByName", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - - If __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.parentWindow - Else - $oTemp = $oObject.document.parentWindow - EndIf - - If _IEIsFrameSet($oTemp) Then - $oFrames = _IETagNameGetCollection($oTemp, "frame") - Else - $oFrames = _IETagNameGetCollection($oTemp, "iframe") - EndIf - - If $oFrames.length Then - For $oFrame In $oFrames - If String($oFrame.name) = $sName Then Return SetError($_IESTATUS_Success, 0, $oTemp.frames($sName)) - Next - __IEConsoleWriteError("Warning", "_IEFrameGetObjByName", "$_IESTATUS_NoMatch", "No frames matching name") - Return SetError($_IESTATUS_NoMatch, 2, 0) - Else - __IEConsoleWriteError("Warning", "_IEFrameGetObjByName", "$_IESTATUS_NoMatch", "No Frames found") - Return SetError($_IESTATUS_NoMatch, 2, 0) - EndIf -EndFunc ;==>_IEFrameGetObjByName - -#EndRegion Frame Functions - -#Region Link functions -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IELinkClickByText(ByRef $oObject, $sLinkText, $iIndex = 0, $iWait = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IELinkClickByText", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - Local $iFound = 0, $sModeLinktext, $oLinks = $oObject.document.links - $iIndex = Number($iIndex) - For $oLink In $oLinks - $sModeLinktext = String($oLink.outerText) - If $sModeLinktext = $sLinkText Then - If ($iFound = $iIndex) Then - $oLink.click() - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IELinkClickByText", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - If $iWait Then - _IELoadWait($oObject) - Return SetError(@error, 0, -1) - EndIf - Return SetError($_IESTATUS_Success, 0, -1) - EndIf - $iFound = $iFound + 1 - EndIf - Next - __IEConsoleWriteError("Warning", "_IELinkClickByText", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 0, 0) ; Could be caused by parameter 2, 3 or both -EndFunc ;==>_IELinkClickByText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IELinkClickByIndex(ByRef $oObject, $iIndex, $iWait = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IELinkClickByIndex", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - Local $oLinks = $oObject.document.links, $oLink - $iIndex = Number($iIndex) - If ($iIndex >= 0) And ($iIndex <= $oLinks.length - 1) Then - $oLink = $oLinks($iIndex) - $oLink.click() - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IELinkClickByIndex", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - If $iWait Then - _IELoadWait($oObject) - Return SetError(@error, 0, -1) - EndIf - Return SetError($_IESTATUS_Success, 0, -1) - Else - __IEConsoleWriteError("Warning", "_IELinkClickByIndex", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 2, 0) - EndIf -EndFunc ;==>_IELinkClickByIndex - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IELinkGetCollection(ByRef $oObject, $iIndex = -1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IELinkGetCollection", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - $iIndex = Number($iIndex) - Select - Case $iIndex = -1 - Return SetError($_IESTATUS_Success, $oObject.document.links.length, _ - $oObject.document.links) - Case $iIndex > -1 And $iIndex < $oObject.document.links.length - Return SetError($_IESTATUS_Success, $oObject.document.links.length, _ - $oObject.document.links.item($iIndex)) - Case $iIndex < -1 - __IEConsoleWriteError("Error", "_IELinkGetCollection", "$_IESTATUS_InvalidValue") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - Case Else - __IEConsoleWriteError("Warning", "_IELinkGetCollection", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 2, 0) - EndSelect -EndFunc ;==>_IELinkGetCollection -#EndRegion Link functions - -#Region Image functions -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func _IEImgClick(ByRef $oObject, $sLinkText, $sMode = "src", $iIndex = 0, $iWait = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEImgClick", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - Local $sModeLinktext, $iFound = 0, $oImgs = $oObject.document.images - $sMode = StringLower($sMode) - $iIndex = Number($iIndex) - For $oImg In $oImgs - Select - Case $sMode = "alt" - $sModeLinktext = $oImg.alt - Case $sMode = "name" - $sModeLinktext = $oImg.name - If Not IsString($sModeLinktext) Then $sModeLinktext = $oImg.id ; html5 support - Case $sMode = "id" - $sModeLinktext = $oImg.id - Case $sMode = "src" - $sModeLinktext = $oImg.src - Case Else - __IEConsoleWriteError("Error", "_IEImgClick", "$_IESTATUS_InvalidValue", "Invalid mode: " & $sMode) - Return SetError($_IESTATUS_InvalidValue, 3, 0) - EndSelect - If StringInStr($sModeLinktext, $sLinkText) Then - If ($iFound = $iIndex) Then - $oImg.click() - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEImgClick", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - If $iWait Then - _IELoadWait($oObject) - Return SetError(@error, 0, -1) - EndIf - Return SetError($_IESTATUS_Success, 0, -1) - EndIf - $iFound = $iFound + 1 - EndIf - Next - __IEConsoleWriteError("Warning", "_IEImgClick", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 0, 0) ; Could be caused by parameter 2, 4 or both -EndFunc ;==>_IEImgClick - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEImgGetCollection(ByRef $oObject, $iIndex = -1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEImgGetCollection", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - Local $oTemp = _IEDocGetObj($oObject) - $iIndex = Number($iIndex) - Select - Case $iIndex = -1 - Return SetError($_IESTATUS_Success, $oTemp.images.length, $oTemp.images) - Case $iIndex > -1 And $iIndex < $oTemp.images.length - Return SetError($_IESTATUS_Success, $oTemp.images.length, $oTemp.images.item($iIndex)) - Case $iIndex < -1 - __IEConsoleWriteError("Error", "_IEImgGetCollection", "$_IESTATUS_InvalidValue", "$iIndex < -1") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - Case Else - __IEConsoleWriteError("Warning", "_IEImgGetCollection", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 1, 0) - EndSelect -EndFunc ;==>_IEImgGetCollection - -#EndRegion Image functions - -#Region Form functions -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormGetCollection(ByRef $oObject, $iIndex = -1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormGetCollection", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - Local $oTemp = _IEDocGetObj($oObject) - $iIndex = Number($iIndex) - Select - Case $iIndex = -1 - Return SetError($_IESTATUS_Success, $oTemp.forms.length, $oTemp.forms) - Case $iIndex > -1 And $iIndex < $oTemp.forms.length - Return SetError($_IESTATUS_Success, $oTemp.forms.length, $oTemp.forms.item($iIndex)) - Case $iIndex < -1 - __IEConsoleWriteError("Error", "_IEFormGetCollection", "$_IESTATUS_InvalidValue", "$iIndex < -1") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - Case Else - __IEConsoleWriteError("Warning", "_IEFormGetCollection", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 1, 0) - EndSelect -EndFunc ;==>_IEFormGetCollection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormGetObjByName(ByRef $oObject, $sName, $iIndex = 0) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormGetObjByName", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - ;----- Determine valid collection length - Local $iLength = 0 - Local $oCol = $oObject.document.forms.item($sName) - If IsObj($oCol) Then - If __IEIsObjType($oCol, "elementcollection") Then - $iLength = $oCol.length - Else - $iLength = 1 - EndIf - EndIf - ;----- - $iIndex = Number($iIndex) - If $iIndex = -1 Then - Return SetError($_IESTATUS_Success, $iLength, $oObject.document.forms.item($sName)) - Else - If IsObj($oObject.document.forms.item($sName, $iIndex)) Then - Return SetError($_IESTATUS_Success, $iLength, $oObject.document.forms.item($sName, $iIndex)) - Else - __IEConsoleWriteError("Warning", "_IEFormGetObjByName", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 0, 0) ; Could be caused by parameter 2, 3 or both - EndIf - EndIf -EndFunc ;==>_IEFormGetObjByName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormElementGetCollection(ByRef $oObject, $iIndex = -1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormElementGetCollection", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "form") Then - __IEConsoleWriteError("Error", "_IEFormElementGetCollection", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $iIndex = Number($iIndex) - Select - Case $iIndex = -1 - Return SetError($_IESTATUS_Success, $oObject.elements.length, $oObject.elements) - Case $iIndex > -1 And $iIndex < $oObject.elements.length - Return SetError($_IESTATUS_Success, $oObject.elements.length, $oObject.elements.item($iIndex)) - Case $iIndex < -1 - __IEConsoleWriteError("Error", "_IEFormElementGetCollection", "$_IESTATUS_InvalidValue", "$iIndex < -1") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - Case Else - Return SetError($_IESTATUS_NoMatch, 1, 0) - EndSelect -EndFunc ;==>_IEFormElementGetCollection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormElementGetObjByName(ByRef $oObject, $sName, $iIndex = 0) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormElementGetObjByName", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "form") Then - __IEConsoleWriteError("Error", "_IEFormElementGetObjByName", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - ;----- Determine valid collection length - Local $iLength = 0 - Local $oCol = $oObject.elements.item($sName) - If IsObj($oCol) Then - If __IEIsObjType($oCol, "elementcollection") Then - $iLength = $oCol.length - Else - $iLength = 1 - EndIf - EndIf - ;----- - $iIndex = Number($iIndex) - If $iIndex = -1 Then - Return SetError($_IESTATUS_Success, $iLength, $oObject.elements.item($sName)) - Else - If IsObj($oObject.elements.item($sName, $iIndex)) Then - Return SetError($_IESTATUS_Success, $iLength, $oObject.elements.item($sName, $iIndex)) - Else - __IEConsoleWriteError("Warning", "_IEFormElementGetObjByName", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 0, 0) ; Could be caused by parameter 2, 3 or both - EndIf - EndIf -EndFunc ;==>_IEFormElementGetObjByName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormElementGetValue(ByRef $oObject) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormElementGetValue", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "forminputelement") Then - __IEConsoleWriteError("Error", "_IEFormElementGetValue", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - Local $sReturn = String($oObject.value) - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEFormElementGetValue", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - SetError($_IESTATUS_Success) - Return $sReturn -EndFunc ;==>_IEFormElementGetValue - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormElementSetValue(ByRef $oObject, $sNewValue, $iFireEvent = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormElementSetValue", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "forminputelement") Then - __IEConsoleWriteError("Error", "_IEFormElementSetValue", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - If String($oObject.type) = "file" Then - __IEConsoleWriteError("Error", "_IEFormElementSetValue", "$_IESTATUS_InvalidObjectType", "Browser security prevents SetValue of TYPE=FILE") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $oObject.value = $sNewValue - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEFormElementSetValue", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - If $iFireEvent Then - $oObject.fireEvent("OnChange") - $oObject.fireEvent("OnClick") - EndIf - Return SetError($_IESTATUS_Success, 0, 1) -EndFunc ;==>_IEFormElementSetValue - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormElementOptionSelect(ByRef $oObject, $sString, $iSelect = 1, $sMode = "byValue", $iFireEvent = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "formselectelement") Then - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - Local $oItem, $oItems = $oObject.options, $iNumItems = $oObject.options.length, $bIsMultiple = $oObject.multiple - - Switch $sMode - Case "byValue" - For $oItem In $oItems - If $oItem.value = $sString Then - Switch $iSelect - Case -1 - Return SetError($_IESTATUS_Success, 0, $oItem.selected) - Case 0 - If Not $bIsMultiple Then - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidValue", _ - "$iSelect=0 only valid for type=select multiple") - SetError($_IESTATUS_InvalidValue, 3) - EndIf - If $oItem.selected Then - $oItem.selected = False - If $iFireEvent Then - $oObject.fireEvent("onChange") - $oObject.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case 1 - If Not $oItem.selected Then - $oItem.selected = True - If $iFireEvent Then - $oObject.fireEvent("onChange") - $oObject.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case Else - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidValue", "Invalid $iSelect value") - Return SetError($_IESTATUS_InvalidValue, 3, 0) - EndSwitch - __IEConsoleWriteError("Warning", "_IEFormElementOptionSelect", "$_IESTATUS_NoMatch", "Value not matched") - Return SetError($_IESTATUS_NoMatch, 2, 0) - EndIf - Next - Case "byText" - For $oItem In $oItems - If String($oItem.text) = $sString Then - Switch $iSelect - Case -1 - Return SetError($_IESTATUS_Success, 0, $oItem.selected) - Case 0 - If Not $bIsMultiple Then - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidValue", _ - "$iSelect=0 only valid for type=select multiple") - SetError($_IESTATUS_InvalidValue, 3) - EndIf - If $oItem.selected Then - $oItem.selected = False - If $iFireEvent Then - $oObject.fireEvent("onChange") - $oObject.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case 1 - If Not $oItem.selected Then - $oItem.selected = True - If $iFireEvent Then - $oObject.fireEvent("onChange") - $oObject.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case Else - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidValue", "Invalid $iSelect value") - Return SetError($_IESTATUS_InvalidValue, 3, 0) - EndSwitch - __IEConsoleWriteError("Warning", "_IEFormElementOptionSelect", "$_IESTATUS_NoMatch", "Text not matched") - Return SetError($_IESTATUS_NoMatch, 2, 0) - EndIf - Next - Case "byIndex" - Local $iIndex = Number($sString) - If $iIndex < 0 Or $iIndex >= $iNumItems Then - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidValue", "Invalid index value, " & $iIndex) - Return SetError($_IESTATUS_InvalidValue, 2, 0) - EndIf - $oItem = $oItems.item($iIndex) - Switch $iSelect - Case -1 - Return SetError($_IESTATUS_Success, 0, $oItems.item($iIndex).selected) - Case 0 - If Not $bIsMultiple Then - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidValue", _ - "$iSelect=0 only valid for type=select multiple") - SetError($_IESTATUS_InvalidValue, 3) - EndIf - If $oItem.selected Then - $oItems.item($iIndex).selected = False - If $iFireEvent Then - $oObject.fireEvent("onChange") - $oObject.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case 1 - If Not $oItem.selected Then - $oItems.item($iIndex).selected = True - If $iFireEvent Then - $oObject.fireEvent("onChange") - $oObject.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case Else - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidValue", "Invalid $iSelect value") - Return SetError($_IESTATUS_InvalidValue, 3, 0) - EndSwitch - Case Else - __IEConsoleWriteError("Error", "_IEFormElementOptionSelect", "$_IESTATUS_InvalidValue", "Invalid Mode") - Return SetError($_IESTATUS_InvalidValue, 4, 0) - EndSwitch -EndFunc ;==>_IEFormElementOptionSelect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormElementCheckBoxSelect(ByRef $oObject, $sString, $sName = "", $iSelect = 1, $sMode = "byValue", $iFireEvent = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormElementCheckBoxSelect", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "form") Then - __IEConsoleWriteError("Error", "_IEFormElementCheckBoxSelect", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $sString = String($sString) - $sName = String($sName) - - Local $oItems - If $sName = "" Then - $oItems = _IETagNameGetCollection($oObject, "input") - Else - $oItems = Execute("$oObject.elements('" & $sName & "')") - EndIf - - If Not IsObj($oItems) Then - __IEConsoleWriteError("Warning", "_IEFormElementCheckBoxSelect", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 3, 0) - EndIf - - Local $oItem, $bFound = False - Switch $sMode - Case "byValue" - If __IEIsObjType($oItems, "forminputelement") Then - $oItem = $oItems - If String($oItem.type) = "checkbox" And String($oItem.value) = $sString Then $bFound = True - Else - For $oItem In $oItems - If String($oItem.type) = "checkbox" And String($oItem.value) = $sString Then - $bFound = True - ExitLoop - EndIf - Next - EndIf - Case "byIndex" - If __IEIsObjType($oItems, "forminputelement") Then - $oItem = $oItems - If String($oItem.type) = "checkbox" And Number($sString) = 0 Then $bFound = True - Else - Local $iCount = 0 - For $oItem In $oItems - If String($oItem.type) = "checkbox" And Number($sString) = $iCount Then - $bFound = True - ExitLoop - Else - If String($oItem.type) = "checkbox" Then $iCount += 1 - EndIf - Next - EndIf - Case Else - __IEConsoleWriteError("Error", "_IEFormElementCheckBoxSelect", "$_IESTATUS_InvalidValue", "Invalid Mode") - Return SetError($_IESTATUS_InvalidValue, 5, 0) - EndSwitch - - If Not $bFound Then - __IEConsoleWriteError("Warning", "_IEFormElementCheckBoxSelect", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 2, 0) - EndIf - - Switch $iSelect - Case -1 - Return SetError($_IESTATUS_Success, 0, $oItem.checked) - Case 0 - If $oItem.checked Then - $oItem.checked = False - If $iFireEvent Then - $oItem.fireEvent("onChange") - $oItem.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case 1 - If Not $oItem.checked Then - $oItem.checked = True - If $iFireEvent Then - $oItem.fireEvent("onChange") - $oItem.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case Else - __IEConsoleWriteError("Error", "_IEFormElementCheckBoxSelect", "$_IESTATUS_InvalidValue", "Invalid $iSelect value") - Return SetError($_IESTATUS_InvalidValue, 3, 0) - EndSwitch -EndFunc ;==>_IEFormElementCheckBoxSelect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormElementRadioSelect(ByRef $oObject, $sString, $sName, $iSelect = 1, $sMode = "byValue", $iFireEvent = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormElementRadioSelect", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "form") Then - __IEConsoleWriteError("Error", "_IEFormElementRadioSelect", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $sString = String($sString) - $sName = String($sName) - - Local $oItems = Execute("$oObject.elements('" & $sName & "')") - If Not IsObj($oItems) Then - __IEConsoleWriteError("Warning", "_IEFormElementRadioSelect", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 3, 0) - EndIf - - Local $oItem, $bFound = False - Switch $sMode - Case "byValue" - If __IEIsObjType($oItems, "forminputelement") Then - $oItem = $oItems - If String($oItem.type) = "radio" And String($oItem.value) = $sString Then $bFound = True - Else - For $oItem In $oItems - If String($oItem.type) = "radio" And String($oItem.value) = $sString Then - $bFound = True - ExitLoop - EndIf - Next - EndIf - Case "byIndex" - If __IEIsObjType($oItems, "forminputelement") Then - $oItem = $oItems - If String($oItem.type) = "radio" And Number($sString) = 0 Then $bFound = True - Else - Local $iCount = 0 - For $oItem In $oItems - If String($oItem.type) = "radio" And Number($sString) = $iCount Then - $bFound = True - ExitLoop - Else - $iCount += 1 - EndIf - Next - EndIf - Case Else - __IEConsoleWriteError("Error", "_IEFormElementRadioSelect", "$_IESTATUS_InvalidValue", "Invalid Mode") - Return SetError($_IESTATUS_InvalidValue, 5, 0) - EndSwitch - - If Not $bFound Then - __IEConsoleWriteError("Warning", "_IEFormElementRadioSelect", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 2, 0) - EndIf - - Switch $iSelect - Case -1 - Return SetError($_IESTATUS_Success, 0, $oItem.checked) - Case 0 - If $oItem.checked Then - $oItem.checked = False - If $iFireEvent Then - $oItem.fireEvent("onChange") - $oItem.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case 1 - If Not $oItem.checked Then - $oItem.checked = True - If $iFireEvent Then - $oItem.fireEvent("onChange") - $oItem.fireEvent("OnClick") - EndIf - EndIf - Return SetError($_IESTATUS_Success, 0, 1) - Case Else - __IEConsoleWriteError("Error", "_IEFormElementRadioSelect", "$_IESTATUS_InvalidValue", "$iSelect value invalid") - Return SetError($_IESTATUS_InvalidValue, 4, 0) - EndSwitch -EndFunc ;==>_IEFormElementRadioSelect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func _IEFormImageClick(ByRef $oObject, $sLinkText, $sMode = "src", $iIndex = 0, $iWait = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormImageClick", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - Local $sModeLinktext, $iFound = 0 - Local $oTemp = _IEDocGetObj($oObject) - Local $oImgs = _IETagNameGetCollection($oTemp, "input") - $sMode = StringLower($sMode) - $iIndex = Number($iIndex) - For $oImg In $oImgs - If String($oImg.type) = "image" Then - Select - Case $sMode = "alt" - $sModeLinktext = $oImg.alt - Case $sMode = "name" - $sModeLinktext = $oImg.name - If Not IsString($sModeLinktext) Then $sModeLinktext = $oImg.id ; html5 support - Case $sMode = "id" - $sModeLinktext = $oImg.id - Case $sMode = "src" - $sModeLinktext = $oImg.src - Case Else - __IEConsoleWriteError("Error", "_IEFormImageClick", "$_IESTATUS_InvalidValue", "Invalid mode: " & $sMode) - Return SetError($_IESTATUS_InvalidValue, 3, 0) - EndSelect - If StringInStr($sModeLinktext, $sLinkText) Then - If ($iFound = $iIndex) Then - $oImg.click() - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEFormImageClick", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - If $iWait Then - _IELoadWait($oObject) - Return SetError(@error, 0, -1) - EndIf - Return SetError($_IESTATUS_Success, 0, -1) - EndIf - $iFound = $iFound + 1 - EndIf - EndIf - Next - __IEConsoleWriteError("Warning", "_IEFormImageClick", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 2, 0) -EndFunc ;==>_IEFormImageClick - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormSubmit(ByRef $oObject, $iWait = 1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormSubmit", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "form") Then - __IEConsoleWriteError("Error", "_IEFormSubmit", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - - Local $oWindow = $oObject.document.parentWindow - $oObject.submit() - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEFormSubmit", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - If $iWait Then - _IELoadWait($oWindow) - Return SetError(@error, 0, -1) - EndIf - Return SetError($_IESTATUS_Success, 0, -1) -EndFunc ;==>_IEFormSubmit - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEFormReset(ByRef $oObject) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEFormReset", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "form") Then - __IEConsoleWriteError("Error", "_IEFormReset", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $oObject.reset() - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEFormReset", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, 1) -EndFunc ;==>_IEFormReset -#EndRegion Form functions - -#Region Table functions -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IETableGetCollection(ByRef $oObject, $iIndex = -1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IETableGetCollection", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - $iIndex = Number($iIndex) - Select - Case $iIndex = -1 - Return SetError($_IESTATUS_Success, $oObject.document.GetElementsByTagName("table").length, _ - $oObject.document.GetElementsByTagName("table")) - Case $iIndex > -1 And $iIndex < $oObject.document.GetElementsByTagName("table").length - Return SetError($_IESTATUS_Success, $oObject.document.GetElementsByTagName("table").length, _ - $oObject.document.GetElementsByTagName("table").item($iIndex)) - Case $iIndex < -1 - __IEConsoleWriteError("Error", "_IETableGetCollection", "$_IESTATUS_InvalidValue", "$iIndex < -1") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - Case Else - __IEConsoleWriteError("Warning", "_IETableGetCollection", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 1, 0) - EndSelect -EndFunc ;==>_IETableGetCollection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IETableWriteToArray(ByRef $oObject, $bTranspose = False) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IETableWriteToArray", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "table") Then - __IEConsoleWriteError("Error", "_IETableWriteToArray", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - Local $iCols = 0, $oTds, $iCol - Local $oTrs = $oObject.rows - For $oTr In $oTrs - $oTds = $oTr.cells - $iCol = 0 - For $oTd In $oTds - $iCol = $iCol + $oTd.colSpan - Next - If $iCol > $iCols Then $iCols = $iCol - Next - Local $iRows = $oTrs.length - Local $aTableCells[$iCols][$iRows] - Local $iRow = 0 - For $oTr In $oTrs - $oTds = $oTr.cells - $iCol = 0 - For $oTd In $oTds - $aTableCells[$iCol][$iRow] = String($oTd.innerText) - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IETableWriteToArray", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - $iCol = $iCol + $oTd.colSpan - Next - $iRow = $iRow + 1 - Next - If $bTranspose Then - Local $iD1 = UBound($aTableCells, $UBOUND_ROWS), $iD2 = UBound($aTableCells, $UBOUND_COLUMNS), $aTmp[$iD2][$iD1] - For $i = 0 To $iD2 - 1 - For $j = 0 To $iD1 - 1 - $aTmp[$i][$j] = $aTableCells[$j][$i] - Next - Next - $aTableCells = $aTmp - EndIf - Return SetError($_IESTATUS_Success, 0, $aTableCells) -EndFunc ;==>_IETableWriteToArray -#EndRegion Table functions - -#Region Read/Write functions -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEBodyReadHTML(ByRef $oObject) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEBodyReadHTML", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - Return SetError($_IESTATUS_Success, 0, $oObject.document.body.innerHTML) -EndFunc ;==>_IEBodyReadHTML - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEBodyReadText(ByRef $oObject) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEBodyReadText", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IEBodyReadText", "$_IESTATUS_InvalidObjectType", "Expected document element") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - Return SetError($_IESTATUS_Success, 0, $oObject.document.body.innerText) -EndFunc ;==>_IEBodyReadText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEBodyWriteHTML(ByRef $oObject, $sHTML) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEBodyWriteHTML", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IEBodyWriteHTML", "$_IESTATUS_InvalidObjectType", "Expected document element") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $oObject.document.body.innerHTML = $sHTML - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEBodyWriteHTML", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - Local $oTemp = $oObject.document - _IELoadWait($oTemp) - Return SetError(@error, 0, -1) -EndFunc ;==>_IEBodyWriteHTML - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEDocReadHTML(ByRef $oObject) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEDocReadHTML", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IEDocReadHTML", "$_IESTATUS_InvalidObjectType", "Expected document element") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - Return SetError($_IESTATUS_Success, 0, $oObject.document.documentElement.outerHTML) -EndFunc ;==>_IEDocReadHTML - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEDocWriteHTML(ByRef $oObject, $sHTML) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEDocWriteHTML", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IEDocWriteHTML", "$_IESTATUS_InvalidObjectType", "Expected document element") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $oObject.document.Write($sHTML) - $oObject.document.close() - Local $oTemp = $oObject.document - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEDocWriteHTML", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - _IELoadWait($oTemp) - Return SetError(@error, 0, -1) -EndFunc ;==>_IEDocWriteHTML - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEDocInsertText(ByRef $oObject, $sString, $sWhere = "beforeend") - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEDocInsertText", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - If Not __IEIsObjType($oObject, "browserdom") Or __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - __IEConsoleWriteError("Error", "_IEDocInsertText", "$_IESTATUS_InvalidObjectType", "Expected document element") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - - $sWhere = StringLower($sWhere) - Select - Case $sWhere = "beforebegin" - $oObject.insertAdjacentText($sWhere, $sString) - Case $sWhere = "afterbegin" - $oObject.insertAdjacentText($sWhere, $sString) - Case $sWhere = "beforeend" - $oObject.insertAdjacentText($sWhere, $sString) - Case $sWhere = "afterend" - $oObject.insertAdjacentText($sWhere, $sString) - Case Else - ; Unsupported Where - __IEConsoleWriteError("Error", "_IEDocInsertText", "$_IESTATUS_InvalidValue", "Invalid where value") - Return SetError($_IESTATUS_InvalidValue, 3, 0) - EndSelect - - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEDocInsertText", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, 1) -EndFunc ;==>_IEDocInsertText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEDocInsertHTML(ByRef $oObject, $sString, $sWhere = "beforeend") - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEDocInsertHTML", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - If Not __IEIsObjType($oObject, "browserdom") Or __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - __IEConsoleWriteError("Error", "_IEDocInsertHTML", "$_IESTATUS_InvalidObjectType", "Expected document element") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - - $sWhere = StringLower($sWhere) - Select - Case $sWhere = "beforebegin" - $oObject.insertAdjacentHTML($sWhere, $sString) - Case $sWhere = "afterbegin" - $oObject.insertAdjacentHTML($sWhere, $sString) - Case $sWhere = "beforeend" - $oObject.insertAdjacentHTML($sWhere, $sString) - Case $sWhere = "afterend" - $oObject.insertAdjacentHTML($sWhere, $sString) - Case Else - ; Unsupported Where - __IEConsoleWriteError("Error", "_IEDocInsertHTML", "$_IESTATUS_InvalidValue", "Invalid where value") - Return SetError($_IESTATUS_InvalidValue, 3, 0) - EndSelect - - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEDocInsertHTML", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, 1) -EndFunc ;==>_IEDocInsertHTML - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func _IEHeadInsertEventScript(ByRef $oObject, $sHTMLFor, $sEvent, $sScript) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEHeadInsertEventScript", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - - Local $oHead = $oObject.document.all.tags("HEAD").Item(0) - Local $oScript = $oObject.document.createElement("script") - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEHeadInsertEventScript(script)", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - With $oScript - .defer = True - .language = "jscript" - .type = "text/javascript" - .htmlFor = $sHTMLFor - .event = $sEvent - .text = $sScript - EndWith - $oHead.appendChild($oScript) - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEHeadInsertEventScript", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, 1) -EndFunc ;==>_IEHeadInsertEventScript -#EndRegion Read/Write functions - -#Region Utility functions -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEDocGetObj(ByRef $oObject) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEDocGetObj", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If __IEIsObjType($oObject, "document") Then - Return SetError($_IESTATUS_Success, 0, $oObject) - EndIf - - Return SetError($_IESTATUS_Success, 0, $oObject.document) -EndFunc ;==>_IEDocGetObj - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IETagNameGetCollection(ByRef $oObject, $sTagName, $iIndex = -1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IETagNameGetCollection", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IETagNameGetCollection", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - - Local $oTemp - If __IEIsObjType($oObject, "documentcontainer") Then - $oTemp = _IEDocGetObj($oObject) - Else - $oTemp = $oObject - EndIf - - $iIndex = Number($iIndex) - Select - Case $iIndex = -1 - Return SetError($_IESTATUS_Success, $oTemp.GetElementsByTagName($sTagName).length, _ - $oTemp.GetElementsByTagName($sTagName)) - Case $iIndex > -1 And $iIndex < $oTemp.GetElementsByTagName($sTagName).length - Return SetError($_IESTATUS_Success, $oTemp.GetElementsByTagName($sTagName).length, _ - $oTemp.GetElementsByTagName($sTagName).item($iIndex)) - Case $iIndex < -1 - __IEConsoleWriteError("Error", "_IETagNameGetCollection", "$_IESTATUS_InvalidValue", "$iIndex < -1") - Return SetError($_IESTATUS_InvalidValue, 3, 0) - Case Else - __IEConsoleWriteError("Error", "_IETagNameGetCollection", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 0, 0) ; Could be caused by parameter 2, 3 or both - EndSelect -EndFunc ;==>_IETagNameGetCollection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IETagNameAllGetCollection(ByRef $oObject, $iIndex = -1) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IETagNameAllGetCollection", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IETagNameAllGetCollection", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - - Local $oTemp - If __IEIsObjType($oObject, "documentcontainer") Then - $oTemp = _IEDocGetObj($oObject) - Else - $oTemp = $oObject - EndIf - - $iIndex = Number($iIndex) - Select - Case $iIndex = -1 - Return SetError($_IESTATUS_Success, $oTemp.all.length, $oTemp.all) - Case $iIndex > -1 And $iIndex < $oTemp.all.length - Return SetError($_IESTATUS_Success, $oTemp.all.length, $oTemp.all.item($iIndex)) - Case $iIndex < -1 - __IEConsoleWriteError("Error", "_IETagNameAllGetCollection", "$_IESTATUS_InvalidValue", "$iIndex < -1") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - Case Else - __IEConsoleWriteError("Error", "_IETagNameAllGetCollection", "$_IESTATUS_NoMatch") - Return SetError($_IESTATUS_NoMatch, 1, 0) - EndSelect -EndFunc ;==>_IETagNameAllGetCollection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEGetObjByName(ByRef $oObject, $sName, $iIndex = 0) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEGetObjByName", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - $iIndex = Number($iIndex) - If $iIndex = -1 Then - Return SetError($_IESTATUS_Success, $oObject.document.GetElementsByName($sName).length, _ - $oObject.document.GetElementsByName($sName)) - Else - If IsObj($oObject.document.GetElementsByName($sName).item($iIndex)) Then - Return SetError($_IESTATUS_Success, $oObject.document.GetElementsByName($sName).length, _ - $oObject.document.GetElementsByName($sName).item($iIndex)) - Else - __IEConsoleWriteError("Warning", "_IEGetObjByName", "$_IESTATUS_NoMatch", "Name: " & $sName & ", Index: " & $iIndex) - Return SetError($_IESTATUS_NoMatch, 0, 0) ; Could be caused by parameter 2, 3 or both - EndIf - EndIf -EndFunc ;==>_IEGetObjByName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEGetObjById(ByRef $oObject, $sID) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEGetObjById", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IEGetObById", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - If IsObj($oObject.document.getElementById($sID)) Then - Return SetError($_IESTATUS_Success, 0, $oObject.document.getElementById($sID)) - Else - __IEConsoleWriteError("Warning", "_IEGetObjById", "$_IESTATUS_NoMatch", $sID) - Return SetError($_IESTATUS_NoMatch, 2, 0) - EndIf -EndFunc ;==>_IEGetObjById - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEAction(ByRef $oObject, $sAction) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEAction(" & $sAction & ")", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - $sAction = StringLower($sAction) - Select - ; DOM objects - Case $sAction = "click" - If __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IEAction(click)", " $_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.Click() - Case $sAction = "disable" - If __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IEAction(disable)", " $_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.disabled = True - Case $sAction = "enable" - If __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IEAction(enable)", " $_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.disabled = False - Case $sAction = "focus" - If __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IEAction(focus)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.Focus() - Case $sAction = "scrollintoview" - If __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IEAction(scrollintoview)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.scrollIntoView() - ; Browser Object - Case $sAction = "copy" - $oObject.document.execCommand("Copy") - Case $sAction = "cut" - $oObject.document.execCommand("Cut") - Case $sAction = "paste" - $oObject.document.execCommand("Paste") - Case $sAction = "delete" - $oObject.document.execCommand("Delete") - Case $sAction = "saveas" - $oObject.document.execCommand("SaveAs") - Case $sAction = "refresh" - $oObject.document.execCommand("Refresh") - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEAction(refresh)", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - _IELoadWait($oObject) - Case $sAction = "selectall" - $oObject.document.execCommand("SelectAll") - Case $sAction = "unselect" - $oObject.document.execCommand("Unselect") - Case $sAction = "print" - $oObject.document.parentwindow.Print() - Case $sAction = "printdefault" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEAction(printdefault)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.execWB(6, 2) - Case $sAction = "back" - If Not __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IEAction(back)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.GoBack() - Case $sAction = "blur" - $oObject.Blur() - Case $sAction = "forward" - If Not __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IEAction(forward)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.GoForward() - Case $sAction = "home" - If Not __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IEAction(home)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.GoHome() - Case $sAction = "invisible" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEAction(invisible)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.visible = 0 - Case $sAction = "visible" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEAction(visible)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.visible = 1 - Case $sAction = "search" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEAction(search)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.GoSearch() - Case $sAction = "stop" - If Not __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "_IEAction(stop)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.Stop() - Case $sAction = "quit" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEAction(quit)", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.Quit() - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEAction(" & $sAction & ")", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - $oObject = 0 - Return SetError($_IESTATUS_Success, 0, 1) - Case Else - ; Unsupported Action - __IEConsoleWriteError("Error", "_IEAction(" & $sAction & ")", "$_IESTATUS_InvalidValue", "Invalid Action") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - EndSelect - - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEAction(" & $sAction & ")", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, 1) -EndFunc ;==>_IEAction - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEPropertyGet(ByRef $oObject, $sProperty) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - If Not __IEIsObjType($oObject, "browserdom") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - Local $oTemp, $iTemp - $sProperty = StringLower($sProperty) - Select - Case $sProperty = "browserx" - If __IEIsObjType($oObject, "browsercontainer") Or __IEIsObjType($oObject, "document") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oTemp = $oObject - $iTemp = 0 - While IsObj($oTemp) - $iTemp += $oTemp.offsetLeft - $oTemp = $oTemp.offsetParent - WEnd - Return SetError($_IESTATUS_Success, 0, $iTemp) - Case $sProperty = "browsery" - If __IEIsObjType($oObject, "browsercontainer") Or __IEIsObjType($oObject, "document") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oTemp = $oObject - $iTemp = 0 - While IsObj($oTemp) - $iTemp += $oTemp.offsetTop - $oTemp = $oTemp.offsetParent - WEnd - Return SetError($_IESTATUS_Success, 0, $iTemp) - Case $sProperty = "screenx" - If __IEIsObjType($oObject, "window") Or __IEIsObjType($oObject, "document") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - If __IEIsObjType($oObject, "browser") Then - Return SetError($_IESTATUS_Success, 0, $oObject.left()) - Else - $oTemp = $oObject - $iTemp = 0 - While IsObj($oTemp) - $iTemp += $oTemp.offsetLeft - $oTemp = $oTemp.offsetParent - WEnd - EndIf - Return SetError($_IESTATUS_Success, 0, _ - $iTemp + $oObject.document.parentWindow.screenLeft) - Case $sProperty = "screeny" - If __IEIsObjType($oObject, "window") Or __IEIsObjType($oObject, "document") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - If __IEIsObjType($oObject, "browser") Then - Return SetError($_IESTATUS_Success, 0, $oObject.top()) - Else - $oTemp = $oObject - $iTemp = 0 - While IsObj($oTemp) - $iTemp += $oTemp.offsetTop - $oTemp = $oTemp.offsetParent - WEnd - EndIf - Return SetError($_IESTATUS_Success, 0, _ - $iTemp + $oObject.document.parentWindow.screenTop) - Case $sProperty = "height" - If __IEIsObjType($oObject, "window") Or __IEIsObjType($oObject, "document") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - If __IEIsObjType($oObject, "browser") Then - Return SetError($_IESTATUS_Success, 0, $oObject.Height()) - Else - Return SetError($_IESTATUS_Success, 0, $oObject.offsetHeight) - EndIf - Case $sProperty = "width" - If __IEIsObjType($oObject, "window") Or __IEIsObjType($oObject, "document") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - If __IEIsObjType($oObject, "browser") Then - Return SetError($_IESTATUS_Success, 0, $oObject.Width()) - Else - Return SetError($_IESTATUS_Success, 0, $oObject.offsetWidth) - EndIf - Case $sProperty = "isdisabled" - Return SetError($_IESTATUS_Success, 0, $oObject.isDisabled()) - Case $sProperty = "addressbar" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.AddressBar()) - Case $sProperty = "busy" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.Busy()) - Case $sProperty = "fullscreen" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.fullScreen()) - Case $sProperty = "hwnd" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, HWnd($oObject.HWnd())) - Case $sProperty = "left" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.Left()) - Case $sProperty = "locationname" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.LocationName()) - Case $sProperty = "locationurl" - If __IEIsObjType($oObject, "browser") Then - Return SetError($_IESTATUS_Success, 0, $oObject.locationURL()) - EndIf - If __IEIsObjType($oObject, "window") Then - Return SetError($_IESTATUS_Success, 0, $oObject.location.href()) - EndIf - If __IEIsObjType($oObject, "document") Then - Return SetError($_IESTATUS_Success, 0, $oObject.parentwindow.location.href()) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentwindow.location.href()) - Case $sProperty = "menubar" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.MenuBar()) - Case $sProperty = "offline" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.OffLine()) - Case $sProperty = "readystate" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.ReadyState()) - Case $sProperty = "resizable" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.Resizable()) - Case $sProperty = "silent" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.Silent()) - Case $sProperty = "statusbar" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.StatusBar()) - Case $sProperty = "statustext" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.StatusText()) - Case $sProperty = "top" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.Top()) - Case $sProperty = "visible" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.Visible()) - Case $sProperty = "appcodename" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.appCodeName()) - Case $sProperty = "appminorversion" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.appMinorVersion()) - Case $sProperty = "appname" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.appName()) - Case $sProperty = "appversion" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.appVersion()) - Case $sProperty = "browserlanguage" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.browserLanguage()) - Case $sProperty = "cookieenabled" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.cookieEnabled()) - Case $sProperty = "cpuclass" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.cpuClass()) - Case $sProperty = "javaenabled" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.javaEnabled()) - Case $sProperty = "online" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.onLine()) - Case $sProperty = "platform" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.platform()) - Case $sProperty = "systemlanguage" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.systemLanguage()) - Case $sProperty = "useragent" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.userAgent()) - Case $sProperty = "userlanguage" - Return SetError($_IESTATUS_Success, 0, $oObject.document.parentWindow.top.navigator.userLanguage()) - Case $sProperty = "referrer" - Return SetError($_IESTATUS_Success, 0, $oObject.document.referrer) - Case $sProperty = "theatermode" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.TheaterMode) - Case $sProperty = "toolbar" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject.ToolBar) - Case $sProperty = "contenteditable" - If __IEIsObjType($oObject, "browser") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - Return SetError($_IESTATUS_Success, 0, $oTemp.isContentEditable) - Case $sProperty = "innertext" - If __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - Return SetError($_IESTATUS_Success, 0, $oTemp.innerText) - Case $sProperty = "outertext" - If __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - Return SetError($_IESTATUS_Success, 0, $oTemp.outerText) - Case $sProperty = "innerhtml" - If __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - Return SetError($_IESTATUS_Success, 0, $oTemp.innerHTML) - Case $sProperty = "outerhtml" - If __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - Return SetError($_IESTATUS_Success, 0, $oTemp.outerHTML) - Case $sProperty = "title" - Return SetError($_IESTATUS_Success, 0, $oObject.document.title) - Case $sProperty = "uniqueid" - If __IEIsObjType($oObject, "window") Then - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - Else - Return SetError($_IESTATUS_Success, 0, $oObject.uniqueID) - EndIf - Case Else - ; Unsupported Property - __IEConsoleWriteError("Error", "_IEPropertyGet", "$_IESTATUS_InvalidValue", "Invalid Property") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - EndSelect -EndFunc ;==>_IEPropertyGet - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEPropertySet(ByRef $oObject, $sProperty, $vValue) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - Local $oTemp - #forceref $oTemp - $sProperty = StringLower($sProperty) - Select - Case $sProperty = "addressbar" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.AddressBar = $vValue - Case $sProperty = "height" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.Height = $vValue - Case $sProperty = "left" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.Left = $vValue - Case $sProperty = "menubar" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.MenuBar = $vValue - Case $sProperty = "offline" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.OffLine = $vValue - Case $sProperty = "resizable" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.Resizable = $vValue - Case $sProperty = "statusbar" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.StatusBar = $vValue - Case $sProperty = "statustext" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.StatusText = $vValue - Case $sProperty = "top" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.Top = $vValue - Case $sProperty = "width" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - $oObject.Width = $vValue - Case $sProperty = "theatermode" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - If $vValue Then - $oObject.TheaterMode = True - Else - $oObject.TheaterMode = False - EndIf - Case $sProperty = "toolbar" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - If $vValue Then - $oObject.ToolBar = True - Else - $oObject.ToolBar = False - EndIf - Case $sProperty = "contenteditable" - If __IEIsObjType($oObject, "browser") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - If $vValue Then - $oTemp.contentEditable = "true" - Else - $oTemp.contentEditable = "false" - EndIf - Case $sProperty = "innertext" - If __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - $oTemp.innerText = $vValue - Case $sProperty = "outertext" - If __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - $oTemp.outerText = $vValue - Case $sProperty = "innerhtml" - If __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - $oTemp.innerHTML = $vValue - Case $sProperty = "outerhtml" - If __IEIsObjType($oObject, "documentcontainer") Or __IEIsObjType($oObject, "document") Then - $oTemp = $oObject.document.body - Else - $oTemp = $oObject - EndIf - $oTemp.outerHTML = $vValue - Case $sProperty = "title" - $oObject.document.title = $vValue - Case $sProperty = "silent" - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - If $vValue Then - $oObject.silent = True - Else - $oObject.silent = False - EndIf - Case Else - ; Unsupported Property - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_InvalidValue", "Invalid Property") - Return SetError($_IESTATUS_InvalidValue, 2, 0) - EndSelect - - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEPropertySet", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - Return SetError($_IESTATUS_Success, 0, 0) -EndFunc ;==>_IEPropertySet - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func _IEErrorNotify($vNotify = Default) - If $vNotify = Default Then Return $__g_bIEErrorNotify - - If $vNotify Then - $__g_bIEErrorNotify = True - Else - $__g_bIEErrorNotify = False - EndIf - Return 1 -EndFunc ;==>_IEErrorNotify - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _IEErrorHandlerRegister -; Description ...: Register and enable a user COM error handler -; Parameters ....: $sFunctionName - String variable with the name of a user-defined COM error handler -; defaults to the internal COM error handler in this UDF -; Return values .: On Success - Returns 1 -; On Failure - Returns 0 and sets @error -; @error - 0 ($_IEStatus_Success) = No Error -; - 1 ($_IEStatus_GeneralError) = General Error -; @extended - Contains invalid parameter number -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEErrorHandlerRegister($sFunctionName = "__IEInternalErrorHandler") - $__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $sFunctionName) - If IsObj($__g_oIEErrorHandler) Then - $__g_sIEUserErrorHandler = $sFunctionName - Return SetError($_IESTATUS_Success, 0, 1) - Else - $__g_oIEErrorHandler = "" - __IEConsoleWriteError("Error", "_IEErrorHandlerRegister", "$_IEStatus_GeneralError", _ - "Error Handler Not Registered - Check existance of error function") - Return SetError($_IEStatus_GeneralError, 1, 0) - EndIf -EndFunc ;==>_IEErrorHandlerRegister - -; #NO_DOC_FUNCTION# ============================================================================================================= -; Name...........: _IEErrorHandlerDeRegister -; Description ...: Disable a registered user COM error handler -; Parameters ....: None -; Return values .: On Success - Returns 1 -; On Failure - None -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEErrorHandlerDeRegister() - $__g_sIEUserErrorHandler = "" - $__g_oIEErrorHandler = "" - Return SetError($_IESTATUS_Success, 0, 1) -EndFunc ;==>_IEErrorHandlerDeRegister - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IEInternalErrorHandlerRegister -; Description ...: to be called on error -; Author ........: Dale Hohm -; Modified ......: -; =============================================================================================================================== -Func __IEInternalErrorHandlerRegister() - Local $sCurrentErrorHandler = ObjEvent("AutoIt.Error") - If $sCurrentErrorHandler <> "" And Not IsObj($__g_oIEErrorHandler) Then - ; We've got trouble... User COM Error handler assigned without using _IEUserErrorHandlerRegister - Return SetError($_IEStatus_GeneralError, 0, False) - EndIf - $__g_oIEErrorHandler = ObjEvent("AutoIt.Error", "__IEInternalErrorHandler") - If IsObj($__g_oIEErrorHandler) Then - Return SetError($_IESTATUS_Success, 0, True) - Else - $__g_oIEErrorHandler = "" - Return SetError($_IEStatus_GeneralError, 0, False) - EndIf -EndFunc ;==>__IEInternalErrorHandlerRegister - -Func __IEInternalErrorHandlerDeRegister() - $__g_oIEErrorHandler = "" - If $__g_sIEUserErrorHandler <> "" Then - $__g_oIEErrorHandler = ObjEvent("AutoIt.Error", $__g_sIEUserErrorHandler) - EndIf - Return SetError($_IESTATUS_Success, 0, 1) -EndFunc ;==>__IEInternalErrorHandlerDeRegister - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IEInternalErrorHandler -; Description ...: to be called on error -; Author ........: Dale Hohm -; Modified ......: -; =============================================================================================================================== -Func __IEInternalErrorHandler($oCOMError) - If $__g_bIEErrorNotify Or $__g_bIEAU3Debug Then ConsoleWrite("--> " & __COMErrorFormating($oCOMError, "----> $IEComError") & @CRLF) - SetError($_IEStatus_ComError) - Return -EndFunc ;==>__IEInternalErrorHandler - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IEQuit(ByRef $oObject) -;~ Local $sName_IEQuit = String(ObjName($oObject)) - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "_IEQuit", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "browser") Then - __IEConsoleWriteError("Error", "_IEQuit", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $oObject.quit() - If @error Then ; Trap COM error, report and return - __IEConsoleWriteError("Error", "_IEQuit", "$_IESTATUS_COMError", @error) - Return SetError($_IESTATUS_ComError, @error, 0) - EndIf - $oObject = 0 - Return SetError($_IESTATUS_Success, 0, 1) -EndFunc ;==>_IEQuit - -#EndRegion Utility functions - -#Region General -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func _IE_Introduction($sModule = "basic") - Local $sHTML = "" - Switch $sModule - Case "basic" - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '_IE_Introduction ("basic")' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '
' & @CR - $sHTML &= '

Welcome to IE.au3

' & @CR - $sHTML &= 'IE.au3 is a UDF (User Defined Function) library for the ' & @CR - $sHTML &= 'AutoIt scripting language.' & @CR - $sHTML &= '
' & @CR - $sHTML &= 'IE.au3 allows you to either create or attach to an Internet Explorer browser and do ' & @CR - $sHTML &= 'just about anything you could do with it interactively with the mouse and ' & @CR - $sHTML &= 'keyboard, but do it through script.' & @CR - $sHTML &= '
' & @CR - $sHTML &= 'You can navigate to pages, click links, fill and submit forms etc. You can ' & @CR - $sHTML &= 'also do things you cannot do interactively like change or rewrite page ' & @CR - $sHTML &= 'content and JavaScripts, read, parse and save page content and monitor and act ' & @CR - $sHTML &= 'upon browser "events".
' & @CR - $sHTML &= 'IE.au3 uses the COM interface in AutoIt to interact with the Internet Explorer ' & @CR - $sHTML &= 'object model and the DOM (Document Object Model) supported by the browser.' & @CR - $sHTML &= '
' & @CR - $sHTML &= 'Here are some links for more information and helpful tools:
' & @CR - $sHTML &= 'Reference Material: ' & @CR - $sHTML &= '
' & @CR - $sHTML &= 'Helpful Tools: ' & @CR - $sHTML &= '
    ' & @CR - $sHTML &= '
  • AutoIt IE Builder (build IE scripts interactively)
  • ' & @CR - $sHTML &= '
  • DebugBar (DOM inspector, HTTP inspector, HTML validator and more - free for personal use) Recommended
  • ' & @CR - $sHTML &= '
  • IE Developer Toolbar (comprehensive DOM analysis tool)
  • ' & @CR - $sHTML &= '
  • MODIV2 (view the DOM of a web page by mousing around)
  • ' & @CR - $sHTML &= '
  • HTML Validator (verify HTML follows format rules)
  • ' & @CR - $sHTML &= '
  • Fiddler (examine HTTP traffic)
  • ' & @CR - $sHTML &= '
' & @CR - $sHTML &= '
' & @CR - $sHTML &= '' & @CR - $sHTML &= '' - Case Else - __IEConsoleWriteError("Error", "_IE_Introduction", "$_IESTATUS_InvalidValue") - Return SetError($_IESTATUS_InvalidValue, 1, 0) - EndSwitch - Local $oObject = _IECreate() - _IEDocWriteHTML($oObject, $sHTML) - Return SetError($_IESTATUS_Success, 0, $oObject) -EndFunc ;==>_IE_Introduction - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func _IE_Example($sModule = "basic") - Local $sHTML = "", $oObject - Switch $sModule - Case "basic" - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '_IE_Example("basic")' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= 'AutoIt Homepage Image' & @CR - $sHTML &= '

' & @CR - $sHTML &= '
This is a simple HTML page with text, links and images.
' & @CR - $sHTML &= '
' & @CR - $sHTML &= '
AutoIt is a wonderful automation scripting language.
' & @CR - $sHTML &= '
' & @CR - $sHTML &= '
It is supported by a very active and supporting user forum.
' & @CR - $sHTML &= '
' & @CR - $sHTML &= '
' & @CR - $sHTML &= '' & @CR - $sHTML &= '' - $oObject = _IECreate() - _IEDocWriteHTML($oObject, $sHTML) - Case "table" - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '_IE_Example("table")' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '$oTableOne = _IETableGetObjByName($oIE, "tableOne")
' & @CR - $sHTML &= '<table border=1 id="tableOne">
' & @CR - $sHTML &= '' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= '
AutoItisreallygreatwithIE.au3
123456
thequickredfoxjumpedover
thelazybrowndogthetime
hascomeforallgoodmen
tocometotheaidof
' & @CR - $sHTML &= '
' & @CR - $sHTML &= '$oTableTwo = _IETableGetObjByName($oIE, "tableTwo")
' & @CR - $sHTML &= '<table border="1" id="tableTwo">
' & @CR - $sHTML &= '' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= '
Table Top
OneTwo
ThreeFourFive
SixSeven
EightNineTenEleven
' & @CR - $sHTML &= '' & @CR - $sHTML &= '' - $oObject = _IECreate() - _IEDocWriteHTML($oObject, $sHTML) - Case "form" - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '_IE_Example("form")' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '
' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '
ExampleForm<form name="ExampleForm" onSubmit="javascript:alert(''ExampleFormSubmitted'');" method="post">
Hidden Input Element<input type="hidden" name="hiddenExample" value="secret value">
' & @CR - $sHTML &= '' & @CR - $sHTML &= '<input type="text" name="textExample" value="http://" size="20" maxlength="30">
' & @CR - $sHTML &= '' & @CR - $sHTML &= '<input type="password" name="passwordExample" size="10">
' & @CR - $sHTML &= '' & @CR - $sHTML &= '<input type="file" name="fileExample">
' & @CR - $sHTML &= '' & @CR - $sHTML &= '<input type="image" name="imageExample" alt="AutoIt Homepage" src="http://www.autoitscript.com/images/autoit_6_240x100.jpg">
' & @CR - $sHTML &= '' & @CR - $sHTML &= '<textarea name="textareaExample" rows="5" cols="15">Hello!</textarea>
' & @CR - $sHTML &= 'Basketball
' & @CR - $sHTML &= 'Football
' & @CR - $sHTML &= 'Tennis
' & @CR - $sHTML &= 'Baseball' & @CR - $sHTML &= '
<input type="checkbox" name="checkboxG1Example" value="gameBasketball">Basketball<br>
' & @CR - $sHTML &= '<input type="checkbox" name="checkboxG1Example" value="gameFootball">Football<br>
' & @CR - $sHTML &= '<input type="checkbox" name="checkboxG2Example" value="gameTennis" checked>Tennis<br>
' & @CR - $sHTML &= '<input type="checkbox" name="checkboxG2Example" value="gameBaseball">Baseball
' & @CR - $sHTML &= 'Airplane
' & @CR - $sHTML &= 'Train
' & @CR - $sHTML &= 'Boat
' & @CR - $sHTML &= 'Car
<input type="radio" name="radioExample" value="vehicleAirplane">Airplane<br>
' & @CR - $sHTML &= '<input type="radio" name="radioExample" value="vehicleTrain" checked>Train<br>
' & @CR - $sHTML &= '<input type="radio" name="radioExample" value="vehicleBoat">Boat<br>
' & @CR - $sHTML &= '<input type="radio" name="radioExample" value="vehicleCar">Car<br>
' & @CR - $sHTML &= '' & @CR - $sHTML &= '<select name="selectExample">
' & @CR - $sHTML &= '<option value="homepage.html">Homepage
' & @CR - $sHTML &= '<option value="midipage.html">Midipage
' & @CR - $sHTML &= '<option value="freepage.html">Freepage
' & @CR - $sHTML &= '</select>
' & @CR - $sHTML &= '' & @CR - $sHTML &= '<select name="multipleSelectExample" size="6" multiple>
' & @CR - $sHTML &= '<option value="Name1">Aaron
' & @CR - $sHTML &= '<option value="Name2">Bruce
' & @CR - $sHTML &= '<option value="Name3">Carlos
' & @CR - $sHTML &= '<option value="Name4">Denis
' & @CR - $sHTML &= '<option value="Name5">Ed
' & @CR - $sHTML &= '<option value="Name6">Freddy
' & @CR - $sHTML &= '</select>
' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '<input name="submitExample" type="submit" value="Submit">
' & @CR - $sHTML &= '<input name="resetExample" type="reset" value="Reset">
' & @CR - $sHTML &= '' & @CR - $sHTML &= '
' & @CR - $sHTML &= '' & @CR - $sHTML &= '' - $oObject = _IECreate() - _IEDocWriteHTML($oObject, $sHTML) - Case "frameset" - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '_IE_Example("frameset")' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= ' ' & @CR - $sHTML &= '' & @CR - $sHTML &= '' - $oObject = _IECreate() - _IEDocWriteHTML($oObject, $sHTML) - _IEAction($oObject, "refresh") - Local $oFrameTop = _IEFrameGetObjByName($oObject, "Top") - Local $oFrameMenu = _IEFrameGetObjByName($oObject, "Menu") - Local $oFrameMain = _IEFrameGetObjByName($oObject, "Main") - _IEBodyWriteHTML($oFrameTop, '$oFrameTop = _IEFrameGetObjByName($oIE, "Top")') - _IEBodyWriteHTML($oFrameMenu, '$oFrameMenu = _IEFrameGetObjByName($oIE, "Menu")') - _IEBodyWriteHTML($oFrameMain, '$oFrameMain = _IEFrameGetObjByName($oIE, "Main")') - Case "iframe" - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '_IE_Example("iframe")' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '
<iframe name="iFrameOne" src="about:blank" title="iFrameOne">
<iframe name="iFrameTwo" src="about:blank" title="iFrameTwo">
' & @CR - $sHTML &= '' & @CR - $sHTML &= '' - $oObject = _IECreate() - _IEDocWriteHTML($oObject, $sHTML) - _IEAction($oObject, "refresh") - Local $oIFrameOne = _IEFrameGetObjByName($oObject, "iFrameOne") - Local $oIFrameTwo = _IEFrameGetObjByName($oObject, "iFrameTwo") - _IEBodyWriteHTML($oIFrameOne, '$oIFrameOne = _IEFrameGetObjByName($oIE, "iFrameOne")') - _IEBodyWriteHTML($oIFrameTwo, '$oIFrameTwo = _IEFrameGetObjByName($oIE, "iFrameTwo")') - Case Else - __IEConsoleWriteError("Error", "_IE_Example", "$_IESTATUS_InvalidValue") - Return SetError($_IESTATUS_InvalidValue, 1, 0) - EndSwitch - - ; at least under IE10 some delay is needed to have functions as _IEPropertySet() working - ; value can depend of processor speed ... - Sleep(500) - Return SetError($_IESTATUS_Success, 0, $oObject) -EndFunc ;==>_IE_Example - -; #FUNCTION# ==================================================================================================================== -; Author ........: Dale Hohm -; =============================================================================================================================== -Func _IE_VersionInfo() - __IEConsoleWriteError("Information", "_IE_VersionInfo", "version " & _ - $__gaIEAU3VersionInfo[0] & _ - $__gaIEAU3VersionInfo[1] & "." & _ - $__gaIEAU3VersionInfo[2] & "-" & _ - $__gaIEAU3VersionInfo[3], "Release date: " & $__gaIEAU3VersionInfo[4]) - Return SetError($_IESTATUS_Success, 0, $__gaIEAU3VersionInfo) -EndFunc ;==>_IE_VersionInfo - -#EndRegion General - -#Region Internal functions -; -; Internal Functions with names starting with two underscores will not be documented -; as user functions -; -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IELockSetForegroundWindow -; Description ...: Locks (and Unlocks) current Foregrouns Window focus to prevent a new window -; from stealing it (e.g. when creating invisible IE browser) -; Parameters ....: $iLockCode - 1 Lock Foreground Window Focus, 2 Unlock Foreground Window Focus -; Return values .: On Success - 1 -; On Failure - 0 and sets @error and @extended to non-zero values -; Author ........: Valik -; =============================================================================================================================== -Func __IELockSetForegroundWindow($iLockCode) - Local $aRet = DllCall("user32.dll", "bool", "LockSetForegroundWindow", "uint", $iLockCode) - If @error Or Not $aRet[0] Then Return SetError(1, _WinAPI_GetLastError(), 0) - Return $aRet[0] -EndFunc ;==>__IELockSetForegroundWindow - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IEControlGetObjFromHWND -; Description ...: Returns a COM Object Window reference to an embebedded Webbrowser control -; Parameters ....: $hWin - HWND of a Internet Explorer_Server1 control obtained for example: -; $hwnd = ControlGetHandle("MyApp","","Internet Explorer_Server1") -; Return values .: On Success - Returns DOM Window object -; On Failure - 0 and sets @error = 1 -; Author ........: Larry with thanks to Valik -; Remarks .......: -; =============================================================================================================================== -Func __IEControlGetObjFromHWND(ByRef $hWin) - ; The code assumes CoInitialize() succeeded due to the number of different - ; yet successful return values it has. - DllCall("ole32.dll", "long", "CoInitialize", "ptr", 0) - If @error Then Return SetError(2, @error, 0) - - Local Const $WM_HTML_GETOBJECT = __IERegisterWindowMessage("WM_HTML_GETOBJECT") - Local Const $SMTO_ABORTIFHUNG = 0x0002 - Local $iResult - - __IESendMessageTimeout($hWin, $WM_HTML_GETOBJECT, 0, 0, $SMTO_ABORTIFHUNG, 1000, $iResult) - - Local $tUUID = DllStructCreate("int;short;short;byte[8]") - DllStructSetData($tUUID, 1, 0x626FC520) - DllStructSetData($tUUID, 2, 0xA41E) - DllStructSetData($tUUID, 3, 0x11CF) - DllStructSetData($tUUID, 4, 0xA7, 1) - DllStructSetData($tUUID, 4, 0x31, 2) - DllStructSetData($tUUID, 4, 0x0, 3) - DllStructSetData($tUUID, 4, 0xA0, 4) - DllStructSetData($tUUID, 4, 0xC9, 5) - DllStructSetData($tUUID, 4, 0x8, 6) - DllStructSetData($tUUID, 4, 0x26, 7) - DllStructSetData($tUUID, 4, 0x37, 8) - - Local $aRet = DllCall("oleacc.dll", "long", "ObjectFromLresult", "lresult", $iResult, "struct*", $tUUID, _ - "wparam", 0, "idispatch*", 0) - If @error Then Return SetError(3, @error, 0) - - If IsObj($aRet[4]) Then - Local $oIE = $aRet[4].Script() - ; $oIE is now a valid IDispatch object - Return $oIE.Document.parentwindow - Else - Return SetError(1, $aRet[0], 0) - EndIf -EndFunc ;==>__IEControlGetObjFromHWND - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IERegisterWindowMessage -; Description ...: Required by __IEControlGetObjFromHWND() -; Author ........: Larry with thanks to Valik -; =============================================================================================================================== -Func __IERegisterWindowMessage($sMsg) - Local $aRet = DllCall("user32.dll", "uint", "RegisterWindowMessageW", "wstr", $sMsg) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = 0 Then Return SetError(10, _WinAPI_GetLastError(), 0) - Return $aRet[0] -EndFunc ;==>__IERegisterWindowMessage - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IESendMessageTimeout -; Description ...: Required by __IEControlGetObjFromHWND() -; Author ........: Larry with thanks to Valik -; =============================================================================================================================== -Func __IESendMessageTimeout($hWnd, $iMsg, $wParam, $lParam, $iFlags, $iTimeout, ByRef $vOut, $r = 0, $sT1 = "int", $sT2 = "int") - Local $aRet = DllCall("user32.dll", "lresult", "SendMessageTimeout", "hwnd", $hWnd, "uint", $iMsg, $sT1, $wParam, _ - $sT2, $lParam, "uint", $iFlags, "uint", $iTimeout, "dword_ptr*", "") - If @error Or $aRet[0] = 0 Then - $vOut = 0 - Return SetError(1, _WinAPI_GetLastError(), 0) - EndIf - $vOut = $aRet[7] - If $r >= 0 And $r <= 4 Then Return $aRet[$r] - Return $aRet -EndFunc ;==>__IESendMessageTimeout - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IEIsObjType -; Description ...: Check to see if an object variable is of a specific type -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func __IEIsObjType(ByRef $oObject, $sType, $bRegister = True) - If Not IsObj($oObject) Then - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - - ; Setup internal error handler to Trap COM errors, turn off error notification - Local $bStatus = $bRegister - If $bRegister Then - $bStatus = __IEInternalErrorHandlerRegister() - If Not $bStatus Then __IEConsoleWriteError("Warning", "internal function __IEIsObjType", _ - "Cannot register internal error handler, cannot trap COM errors", _ - "Use _IEErrorHandlerRegister() to register a user error handler") - EndIf - - Local $iNotifyStatus = _IEErrorNotify() ; save current error notify status - _IEErrorNotify(False) - ; - Local $sName = String(ObjName($oObject)), $iErrorStatus = $_IESTATUS_InvalidObjectType - - Switch $sType - Case "browserdom" - If __IEIsObjType($oObject, "documentcontainer", False) Then - $iErrorStatus = $_IESTATUS_Success - ElseIf __IEIsObjType($oObject, "document", False) Then - $iErrorStatus = $_IESTATUS_Success - Else - Local $oTemp = $oObject.document - If __IEIsObjType($oTemp, "document", False) Then - $iErrorStatus = $_IESTATUS_Success - EndIf - EndIf - Case "browser" - If ($sName = "IWebBrowser2") Or ($sName = "IWebBrowser") Or ($sName = "WebBrowser") Then $iErrorStatus = $_IESTATUS_Success - Case "window" - If $sName = "HTMLWindow2" Then $iErrorStatus = $_IESTATUS_Success - Case "documentContainer" - If __IEIsObjType($oObject, "window", False) Or __IEIsObjType($oObject, "browser", False) Then $iErrorStatus = $_IESTATUS_Success - Case "document" - If $sName = "HTMLDocument" Then $iErrorStatus = $_IESTATUS_Success - Case "table" - If $sName = "HTMLTable" Then $iErrorStatus = $_IESTATUS_Success - Case "form" - If $sName = "HTMLFormElement" Then $iErrorStatus = $_IESTATUS_Success - Case "forminputelement" - If ($sName = "HTMLInputElement") Or ($sName = "HTMLSelectElement") Or ($sName = "HTMLTextAreaElement") Then $iErrorStatus = $_IESTATUS_Success - Case "elementcollection" - If ($sName = "HTMLElementCollection") Then $iErrorStatus = $_IESTATUS_Success - Case "formselectelement" - If $sName = "HTMLSelectElement" Then $iErrorStatus = $_IESTATUS_Success - Case Else - ; Unsupported ObjType specified - $iErrorStatus = $_IESTATUS_InvalidValue - EndSwitch - - ; restore error notify - _IEErrorNotify($iNotifyStatus) ; restore notification status - - If $bRegister Then - __IEInternalErrorHandlerDeRegister() - EndIf - - If $iErrorStatus = $_IESTATUS_Success Then - Return SetError($_IESTATUS_Success, 0, 1) - Else - Return SetError($iErrorStatus, 1, 0) - EndIf -EndFunc ;==>__IEIsObjType - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IEConsoleWriteError -; Description ...: ConsoleWrite an error message if required -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func __IEConsoleWriteError($sSeverity, $sFunc, $sMessage = Default, $sStatus = Default) - If $__g_bIEErrorNotify Or $__g_bIEAU3Debug Then - Local $sStr = "--> IE.au3 " & $__gaIEAU3VersionInfo[5] & " " & $sSeverity & " from function " & $sFunc - If Not ($sMessage = Default) Then $sStr &= ", " & $sMessage - If Not ($sStatus = Default) Then $sStr &= " (" & $sStatus & ")" - ConsoleWrite($sStr & @CRLF) - EndIf - Return SetError($sStatus, 0, 1) ; restore calling @error -EndFunc ;==>__IEConsoleWriteError - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IEComErrorUnrecoverable -; Description ...: Internal function to test a COM error condition and determine if it is considered unrecoverable -; Parameters ....: Error number -; Return values .: Unrecoverable: True, Else: False -; Author ........: Dale Hohm -; Modified ......: jpm -; =============================================================================================================================== -Func __IEComErrorUnrecoverable($iError) - Switch $iError - ; Cross-domain scripting security error - Case -2147352567 ; "an exception has occurred." - Return $_IESTATUS_AccessIsDenied - Case -2147024891 ; "Access is denied." - Return $_IESTATUS_AccessIsDenied - ; - ; Browser object is destroyed before we try to operate upon it - Case -2147417848 ; "The object invoked has disconnected from its clients." - Return $_IESTATUS_ClientDisconnected - Case -2147023174 ; "RPC server not accessible." - Return $_IESTATUS_ClientDisconnected - Case -2147023179 ; "The interface is unknown." - Return $_IESTATUS_ClientDisconnected - ; - Case Else - Return $_IESTATUS_Success - EndSwitch -EndFunc ;==>__IEComErrorUnrecoverable - -#EndRegion Internal functions - -#Region ProtoType Functions -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IENavigate -; Description ...: ** Unsupported version of _IENavigate (note second underscore in function name) -; ** Last 4 parameters insufficiently tested. -; ** - Flags and Target can create new windows and new browser object - causing confusion -; ** - Postdata needs SAFEARRAY and we have no way to create one -; Directs an existing browser window to navigate to the specified URL -; Parameters ....: $oObject - Object variable of an InternetExplorer.Application, Window or Frame object -; $sUrl - URL to navigate to (e.g. "http://www.autoitscript.com") -; $iWait - Optional: specifies whether to wait for page to load before returning -; 0 = Return immediately, not waiting for page to load -; 1 = (Default) Wait for page load to complete before returning -; $iFags - URL to navigate to (e.g. "http://www.autoitscript.com") -; $sTarget - target frame -; $spostdata - data for form method="POST", non-functional - requires safearray -; $sHeaders - additional headers to be passed -; Return values .: On Success - Returns -1 -; On Failure - Returns 0 and sets @error -; @error - 1 ($_IESTATUS_GeneralError) = General Error -; - 3 ($_IESTATUS_InvalidDataType) = Invalid Data Type -; - 4 ($_IESTATUS_InvalidObjectType) = Invalid Object Type -; - 6 ($_IESTATUS_LoadWaitTimeout) = Load Wait Timeout -; - 8 ($_IESTATUS_AccessIsDenied) = Access Is Denied -; - 9 ($_IESTATUS_ClientDisconnected) = Client Disconnected -; @extended - Contains invalid parameter number -; Author ........: Dale Hohm -; Remarks .......: AutoIt3 V3.2 or higher, flags for Tabs require IE7 or higher -; Additional information on the navigate2 method here: http://msdn.microsoft.com/en-us/library/aa752134.aspx -; -; Flags: -; navOpenInNewWindow = 0x1, -; navNoHistory = 0x2, -; navNoReadFromCache = 0x4, -; navNoWriteToCache = 0x8, -; navAllowAutosearch = 0x10, -; navBrowserBar = 0x20, -; navHyperlink = 0x40, -; navEnforceRestricted = 0x80, -; navNewWindowsManaged = 0x0100, -; navUntrustedForDownload = 0x0200, -; navTrustedForActiveX = 0x0400, -; navOpenInNewTab = 0x0800, -; navOpenInBackgroundTab = 0x1000, -; navKeepWordWheelText = 0x2000 -; -; Additional documentation on the flags can be found here: -; http://msdn.microsoft.com/en-us/library/aa768360.aspx -; =============================================================================================================================== -Func __IENavigate(ByRef $oObject, $sUrl, $iWait = 1, $iFags = 0, $sTarget = "", $sPostdata = "", $sHeaders = "") - __IEConsoleWriteError("Warning", "__IENavigate", "Unsupported function called. Not fully tested.") - If Not IsObj($oObject) Then - __IEConsoleWriteError("Error", "__IENavigate", "$_IESTATUS_InvalidDataType") - Return SetError($_IESTATUS_InvalidDataType, 1, 0) - EndIf - ; - If Not __IEIsObjType($oObject, "documentContainer") Then - __IEConsoleWriteError("Error", "__IENavigate", "$_IESTATUS_InvalidObjectType") - Return SetError($_IESTATUS_InvalidObjectType, 1, 0) - EndIf - ; - $oObject.navigate($sUrl, $iFags, $sTarget, $sPostdata, $sHeaders) - If $iWait Then - _IELoadWait($oObject) - Return SetError(@error, 0, $oObject) - EndIf - Return SetError($_IESTATUS_Success, 0, $oObject) -EndFunc ;==>__IENavigate - -#cs - #include - ; Simulates the submission of the form from the page: - ; - ; http://www.autoitscript.com/forum/index.php?act=Search - ; - ; searches for the string safearray and returns the results as posts - - $sFormAction = "http://www.autoitscript.com/forum/index.php?act=Search&CODE=01" - $sHeader = "Content-Type: application/x-www-form-urlencoded" - - $sDataToPost = "keywords=safearray&namesearch=&forums%5B%5D=all&searchsubs=1&prune=0&prune_type=newer&sort_key=last_post&sort_order=desc&search_in=posts&result_type=posts" - $oDataToPostBstr = __IEStringToBstr($sDataToPost) ; convert string to BSTR - ConsoleWrite(__IEBstrToString($oDataToPostBstr) & @CRLF) ; prove we can convert it back to a string - - $oIE = _IECreate() - $oIE.Navigate( $sFormAction, Default, Default, $oDataToPostBstr, $sHeader) - ; or - ;__IENavigate($oIE, $sFormAction, 1, 0, "", $oDataToPostBstr, $sHeader) -#ce - -Func __IEStringToBstr($sString, $sCharSet = "us-ascii") - Local Const $iTypeBinary = 1, $iTypeText = 2 - - Local $oStream = ObjCreate("ADODB.Stream") - - $oStream.type = $iTypeText - $oStream.CharSet = $sCharSet - $oStream.Open - $oStream.WriteText($sString) - $oStream.Position = 0 - - $oStream.type = $iTypeBinary - $oStream.Position = 0 - - Return $oStream.Read() -EndFunc ;==>__IEStringToBstr - -Func __IEBstrToString($oBstr, $sCharSet = "us-ascii") - Local Const $iTypeBinary = 1, $iTypeText = 2 - - Local $oStream = ObjCreate("ADODB.Stream") - - $oStream.type = $iTypeBinary - $oStream.Open - $oStream.Write($oBstr) - $oStream.Position = 0 - - $oStream.type = $iTypeText - $oStream.CharSet = $sCharSet - $oStream.Position = 0 - - Return $oStream.ReadText() -EndFunc ;==>__IEBstrToString - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IECreateNewIE -; Description ...: Create a Webbrowser in a seperate process -; Parameters ....: None -; Return values .: On Success - Returns a Webbrowser object reference -; On Failure - Returns 0 and sets @error -; @error - 0 ($_IESTATUS_Success) = No Error -; - 1 ($_IESTATUS_GeneralError) = General Error -; Author ........: Dale Hohm -; Modified ......: jpm -; Remarks .......: http://msdn2.microsoft.com/en-us/library/ms536471(vs.85).aspx -; =============================================================================================================================== -Func __IECreateNewIE($sTitle, $sHead = "", $sBody = "") - Local $sTemp = __IETempFile("", "~IE~", ".htm") - If @error Then - __IEConsoleWriteError("Error", "_IECreateHTA", "", "Error creating temporary file in @TempDir or @ScriptDir") - Return SetError($_IESTATUS_GeneralError, 1, 0) - EndIf - - Local $sHTML = '' - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR - $sHTML &= '' & $sTemp & '' & @CR & $sHead & @CR - $sHTML &= '' & @CR - $sHTML &= '' & @CR & $sBody & @CR - $sHTML &= '' & @CR - $sHTML &= '' - - Local $hFile = FileOpen($sTemp, $FO_OVERWRITE) - FileWrite($hFile, $sHTML) - FileClose($hFile) - If @error Then - __IEConsoleWriteError("Error", "_IECreateNewIE", "", "Error creating temporary file in @TempDir or @ScriptDir") - Return SetError($_IESTATUS_GeneralError, 2, 0) - EndIf - Run(@ProgramFilesDir & "\Internet Explorer\iexplore.exe " & $sTemp) - - Local $iPID - If WinWait($sTemp, "", 60) Then - $iPID = WinGetProcess($sTemp) - Else - __IEConsoleWriteError("Error", "_IECreateNewIE", "", "Timeout waiting for new IE window creation") - Return SetError($_IESTATUS_GeneralError, 3, 0) - EndIf - - If Not FileDelete($sTemp) Then - __IEConsoleWriteError("Warning", "_IECreateNewIE", "", "Could not delete temporary file " & FileGetLongName($sTemp)) - EndIf - - Local $oObject = _IEAttach($sTemp) - _IELoadWait($oObject) - _IEPropertySet($oObject, "title", $sTitle) - - Return SetError($_IESTATUS_Success, $iPID, $oObject) -EndFunc ;==>__IECreateNewIE - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __IETempFile -; Description ...: Generate a name for a temporary file. The file is guaranteed not to already exist. -; Parameters ....: $sDirectoryName optional Name of directory for filename, defaults to @TempDir -; $sFilePrefix optional File prefixname, defaults to "~" -; $sFileExtension optional File extenstion, defaults to ".tmp" -; $iRandomLength optional Number of characters to use to generate a unique name, defaults to 7 -; Return values .: Filename of a temporary file which does not exist. -; Author ........: Dale (Klaatu) Thompson -; Modified.......: Hans Harder - Added Optional parameters -; -; Adapted from excellent _TempFile() in File.au3 for IE.au3 by Dale Hohm -; =============================================================================================================================== -Func __IETempFile($sDirectoryName = @TempDir, $sFilePrefix = "~", $sFileExtension = ".tmp", $iRandomLength = 7) - Local $sTempName, $iTmp = 0 - ; Check parameters - If Not FileExists($sDirectoryName) Then $sDirectoryName = @TempDir ; First reset to default temp dir - If Not FileExists($sDirectoryName) Then $sDirectoryName = @ScriptDir ; Still wrong then set to Scriptdir - ; add trailing \ for directory name - If StringRight($sDirectoryName, 1) <> "\" Then $sDirectoryName = $sDirectoryName & "\" - ; - Do - $sTempName = "" - While StringLen($sTempName) < $iRandomLength - $sTempName = $sTempName & Chr(Random(97, 122, 1)) - WEnd - $sTempName = $sDirectoryName & $sFilePrefix & $sTempName & $sFileExtension - $iTmp += 1 - If $iTmp > 200 Then ; If we fail over 200 times, there is something wrong - Return SetError($_IESTATUS_GeneralError, 1, 0) - EndIf - Until Not FileExists($sTempName) - - Return $sTempName -EndFunc ;==>__IETempFile - -#EndRegion ProtoType Functions diff --git a/build/Include/IPAddressConstants.au3 b/build/Include/IPAddressConstants.au3 deleted file mode 100644 index 4264516a3..000000000 --- a/build/Include/IPAddressConstants.au3 +++ /dev/null @@ -1,23 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: IPAddress_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for IPAddress functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__IPADDRESSCONSTANT_WM_USER = 0X400 -Global Const $IPM_CLEARADDRESS = ($__IPADDRESSCONSTANT_WM_USER + 100) -Global Const $IPM_SETADDRESS = ($__IPADDRESSCONSTANT_WM_USER + 101) -Global Const $IPM_GETADDRESS = ($__IPADDRESSCONSTANT_WM_USER + 102) -Global Const $IPM_SETRANGE = ($__IPADDRESSCONSTANT_WM_USER + 103) -Global Const $IPM_SETFOCUS = ($__IPADDRESSCONSTANT_WM_USER + 104) -Global Const $IPM_ISBLANK = ($__IPADDRESSCONSTANT_WM_USER + 105) - -; Notifications -Global Const $IPN_FIRST = (-860) -Global Const $IPN_FIELDCHANGED = ($IPN_FIRST - 0) ; Sent when the user changes a field or moves from one field to another -; =============================================================================================================================== diff --git a/build/Include/ImageListConstants.au3 b/build/Include/ImageListConstants.au3 deleted file mode 100644 index 53bf0caff..000000000 --- a/build/Include/ImageListConstants.au3 +++ /dev/null @@ -1,41 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: ImageList_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for ImageList functions. -; Author(s) .....: Gary Frost -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $ILC_MASK = 0x00000001 -Global Const $ILC_COLOR = 0x00000000 -Global Const $ILC_COLORDDB = 0x000000FE -Global Const $ILC_COLOR4 = 0x00000004 -Global Const $ILC_COLOR8 = 0x00000008 -Global Const $ILC_COLOR16 = 0x00000010 -Global Const $ILC_COLOR24 = 0x00000018 -Global Const $ILC_COLOR32 = 0x00000020 -Global Const $ILC_PALETTE = 0x00000800 -Global Const $ILC_MIRROR = 0x00002000 -Global Const $ILC_PERITEMMIRROR = 0x00008000 - -Global Const $ILCF_MOVE = 0x0 -Global Const $ILCF_SWAP = 0x1 - -Global Const $ILD_NORMAL = 0x00000000 -Global Const $ILD_TRANSPARENT = 0x00000001 -Global Const $ILD_BLEND25 = 0x00000002 -Global Const $ILD_BLEND50 = 0x00000004 -Global Const $ILD_MASK = 0x00000010 -Global Const $ILD_IMAGE = 0x00000020 -Global Const $ILD_ROP = 0x00000040 -Global Const $ILD_OVERLAYMASK = 0x00000F00 - -Global Const $ILS_NORMAL = 0x00000000 -Global Const $ILS_GLOW = 0x00000001 -Global Const $ILS_SHADOW = 0x00000002 -Global Const $ILS_SATURATE = 0x00000004 -Global Const $ILS_ALPHA = 0x00000008 -; =============================================================================================================================== diff --git a/build/Include/Inet.au3 b/build/Include/Inet.au3 deleted file mode 100644 index a1ce87ed6..000000000 --- a/build/Include/Inet.au3 +++ /dev/null @@ -1,341 +0,0 @@ -#include-once - -#include "Date.au3" -#include "InetConstants.au3" -#include "StringConstants.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Edit Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Internet. -; Author(s) .....: Larry, Ezzetabi, Jarvis Stubblefield, Wes Wolfe-Wolvereness, Wouter, Walkabout, Florian Fida, guinness -; Dll ...........: wininet.dll, ws2_32.dll -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _GetIP -; _INetExplorerCapable -; _INetGetSource -; _INetMail -; _INetSmtpMail -; _TCPIpToName -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __SmtpTrace -; __SmtpSend -; __TCPIpToName_szStringRead -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: guinness, Mat -; =============================================================================================================================== -Func _GetIP() - Local Const $GETIP_TIMER = 300000 ; Constant for how many milliseconds between each check. This is 5 minutes. - Local Static $hTimer = 0 ; Create a static variable to store the timer handle. - Local Static $sLastIP = 0 ; Create a static variable to store the last IP. - - If __TimerDiff($hTimer) < $GETIP_TIMER And Not $sLastIP Then ; If still in the timer and $sLastIP contains a value. - Return SetExtended(1, $sLastIP) ; Return the last IP instead and set @extended to 1. - EndIf - - #cs - Additional list of possible IP disovery sites by z3r0c00l12. - http://corz.org/ip - http://icanhazip.com - http://ip.appspot.com - http://ip.eprci.net/text - http://ip.jsontest.com/ - http://services.packetizer.com/ipaddress/?f=text - http://whatthehellismyip.com/?ipraw - http://wtfismyip.com/text - http://www.networksecuritytoolkit.org/nst/tools/ip.php - http://www.telize.com/ip - http://www.trackip.net/ip - #ce - Local $aGetIPURL[] = ["http://checkip.dyndns.org", "http://www.myexternalip.com/raw", "http://bot.whatismyipaddress.com"], _ - $aReturn = 0, _ - $sReturn = "" - - For $i = 0 To UBound($aGetIPURL) - 1 - $sReturn = InetRead($aGetIPURL[$i]) - If @error Or $sReturn == "" Then ContinueLoop - $aReturn = StringRegExp(BinaryToString($sReturn), "((?:\d{1,3}\.){3}\d{1,3})", $STR_REGEXPARRAYGLOBALMATCH) ; [\d\.]{7,15} - If Not @error Then - $sReturn = $aReturn[0] - ExitLoop - EndIf - $sReturn = "" - Next - - $hTimer = __TimerInit() ; Create a new timer handle. - $sLastIP = $sReturn ; Store this IP. - If $sReturn == "" Then Return SetError(1, 0, -1) - Return $sReturn -EndFunc ;==>_GetIP - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wes Wolfe-Wolvereness -; =============================================================================================================================== -Func _INetExplorerCapable($sIEString) - If StringLen($sIEString) <= 0 Then Return SetError(1, 0, '') - Local $s_IEReturn - Local $n_IEChar - For $i_IECount = 1 To StringLen($sIEString) - $n_IEChar = '0x' & Hex(Asc(StringMid($sIEString, $i_IECount, 1)), 2) - If $n_IEChar < 0x21 Or $n_IEChar = 0x25 Or $n_IEChar = 0x2f Or $n_IEChar > 0x7f Then - $s_IEReturn = $s_IEReturn & '%' & StringRight($n_IEChar, 2) - Else - $s_IEReturn = $s_IEReturn & Chr($n_IEChar) - EndIf - Next - Return $s_IEReturn -EndFunc ;==>_INetExplorerCapable - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wouter van Kesteren. -; =============================================================================================================================== -Func _INetGetSource($sURL, $bString = True) - Local $sString = InetRead($sURL, $INET_FORCERELOAD) - Local $iError = @error, $iExtended = @extended - If $bString = Default Or $bString Then $sString = BinaryToString($sString) - Return SetError($iError, $iExtended, $sString) -EndFunc ;==>_INetGetSource - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wes Wolfe-Wolvereness , modified by Emiel Wieldraaijer -; =============================================================================================================================== -Func _INetMail($sMailTo, $sMailSubject, $sMailBody) - Local $iPrev = Opt("ExpandEnvStrings", 1) - Local $sVar, $sDflt = RegRead('HKCU\Software\Clients\Mail', "") - If $sDflt = "Windows Live Mail" Then - $sVar = RegRead('HKCR\WLMail.Url.Mailto\Shell\open\command', "") - Else - $sVar = RegRead('HKCR\mailto\shell\open\command', "") - EndIf - Local $iRet = Run(StringReplace($sVar, '%1', _INetExplorerCapable('mailto:' & $sMailTo & '?subject=' & $sMailSubject & '&body=' & $sMailBody))) - Local $iError = @error, $iExtended = @extended - Opt("ExpandEnvStrings", $iPrev) - Return SetError($iError, $iExtended, $iRet) -EndFunc ;==>_INetMail - -; #FUNCTION# ==================================================================================================================== -; Author ........: Asimzameer, Walkabout -; Modified.......: Jpm -; =============================================================================================================================== -Func _INetSmtpMail($sSMTPServer, $sFromName, $sFromAddress, $sToAddress, $sSubject = "", $aBody = "", $sEHLO = "", $sFirst = "", $bTrace = 0) - If $sSMTPServer = "" Or $sFromAddress = "" Or $sToAddress = "" Or $sFromName = "" Or StringLen($sFromName) > 256 Then Return SetError(1, 0, 0) - If $sEHLO = "" Then $sEHLO = @ComputerName - - If TCPStartup() = 0 Then Return SetError(2, 0, 0) - - Local $s_IPAddress, $i_Count - If StringRegExp($sSMTPServer, "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$") Then - $s_IPAddress = $sSMTPServer - Else - $s_IPAddress = TCPNameToIP($sSMTPServer) - EndIf - If $s_IPAddress = "" Then - TCPShutdown() - Return SetError(3, 0, 0) - EndIf - Local $vSocket = TCPConnect($s_IPAddress, 25) - If $vSocket = -1 Then - TCPShutdown() - Return SetError(4, 0, 0) - EndIf - - Local $aSend[6], $aReplyCode[6] ; Return code from SMTP server indicating success - $aSend[0] = "HELO " & $sEHLO & @CRLF - If StringLeft($sEHLO, 5) = "EHLO " Then $aSend[0] = $sEHLO & @CRLF - $aReplyCode[0] = "250" - - $aSend[1] = "MAIL FROM: <" & $sFromAddress & ">" & @CRLF - $aReplyCode[1] = "250" - $aSend[2] = "RCPT TO: <" & $sToAddress & ">" & @CRLF - $aReplyCode[2] = "250" - $aSend[3] = "DATA" & @CRLF - $aReplyCode[3] = "354" - - Local $aResult = _Date_Time_GetTimeZoneInformation() - Local $iBias = -$aResult[1] / 60 - Local $iBiasH = Int($iBias) - Local $iBiasM = 0 - If $iBiasH <> $iBias Then $iBiasM = Abs($iBias - $iBiasH) * 60 - $iBias = StringFormat(" (%+.2d%.2d)", $iBiasH, $iBiasM) - - $aSend[4] = "From:" & $sFromName & "<" & $sFromAddress & ">" & @CRLF & _ - "To:" & "<" & $sToAddress & ">" & @CRLF & _ - "Subject:" & $sSubject & @CRLF & _ - "Mime-Version: 1.0" & @CRLF & _ - "Date: " & _DateDayOfWeek(@WDAY, 1) & ", " & @MDAY & " " & _DateToMonth(@MON, 1) & " " & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & $iBias & @CRLF & _ - "Content-Type: text/plain; charset=US-ASCII" & @CRLF & _ - @CRLF - $aReplyCode[4] = "" - - $aSend[5] = @CRLF & "." & @CRLF - $aReplyCode[5] = "250" - - ; open stmp session - If __SmtpSend($vSocket, $aSend[0], $aReplyCode[0], $bTrace, "220", $sFirst) Then Return SetError(50, 0, 0) - - ; send header - For $i_Count = 1 To UBound($aSend) - 2 - If __SmtpSend($vSocket, $aSend[$i_Count], $aReplyCode[$i_Count], $bTrace) Then Return SetError(50 + $i_Count, 0, 0) - Next - - ; send body records (a record can be multiline : take care of a subline beginning with a dot should be ..) - For $i_Count = 0 To UBound($aBody) - 1 - ; correct line beginning with a dot - If StringLeft($aBody[$i_Count], 1) = "." Then $aBody[$i_Count] = "." & $aBody[$i_Count] - - If __SmtpSend($vSocket, $aBody[$i_Count] & @CRLF, "", $bTrace) Then Return SetError(500 + $i_Count, 0, 0) - Next - - ; close the smtp session - $i_Count = UBound($aSend) - 1 - If __SmtpSend($vSocket, $aSend[$i_Count], $aReplyCode[$i_Count], $bTrace) Then Return SetError(5000, 0, 0) - - TCPCloseSocket($vSocket) - TCPShutdown() - Return 1 -EndFunc ;==>_INetSmtpMail - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SmtpTrace -; Description ...: Used internally within this file, not for general use -; Syntax.........: __SmtpTrace ( $sStr [, $iTimeout = 0] ) -; Author ........: Asimzameer, Walkabout -; Modified.......: Jpm -; =============================================================================================================================== -Func __SmtpTrace($sStr, $iTimeout = 0) - Local $sW_TITLE = "SMTP trace" - Local $sSmtpTrace = ControlGetText($sW_TITLE, "", "Static1") - $sStr = StringLeft(StringReplace($sStr, @CRLF, ""), 70) - $sSmtpTrace &= @HOUR & ":" & @MIN & ":" & @SEC & " " & $sStr & @LF - If WinExists($sW_TITLE) Then - ControlSetText($sW_TITLE, "", "Static1", $sSmtpTrace) - Else - SplashTextOn($sW_TITLE, $sSmtpTrace, 400, 500, 500, 100, 4 + 16, "", 8) - EndIf - If $iTimeout Then Sleep($iTimeout * 1000) -EndFunc ;==>__SmtpTrace - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SmtpSend -; Description ...: Used internally within this file, not for general use -; Syntax.........: __SmtpSend ( $vSocket, $sSend, $sReplyCode, $bTrace [, $sIntReply="" [, $sFirst=""]] ) -; Author ........: Asimzameer, Walkabout -; Modified.......: Jpm -; =============================================================================================================================== -Func __SmtpSend($vSocket, $sSend, $sReplyCode, $bTrace, $sIntReply = "", $sFirst = "") - Local $sReceive, $i, $hTimer - If $bTrace Then __SmtpTrace($sSend) - - If $sIntReply <> "" Then - - ; Send special first char to awake smtp server - If $sFirst <> -1 Then - If TCPSend($vSocket, $sFirst) = 0 Then - TCPCloseSocket($vSocket) - TCPShutdown() - Return 1; cannot send - EndIf - EndIf - - ; Check intermediate reply before HELO acceptation - $sReceive = "" - $hTimer = __TimerInit() - While StringLeft($sReceive, StringLen($sIntReply)) <> $sIntReply And __TimerDiff($hTimer) < 45000 - $sReceive = TCPRecv($vSocket, 1000) - If $bTrace And $sReceive <> "" Then __SmtpTrace("intermediate->" & $sReceive) - WEnd - EndIf - - ; Send string. - If TCPSend($vSocket, $sSend) = 0 Then - TCPCloseSocket($vSocket) - TCPShutdown() - Return 1; cannot send - EndIf - - $hTimer = __TimerInit() - - $sReceive = "" - While $sReceive = "" And __TimerDiff($hTimer) < 45000 - $i += 1 - $sReceive = TCPRecv($vSocket, 1000) - If $sReplyCode = "" Then ExitLoop - WEnd - - If $sReplyCode <> "" Then - ; Check replycode - If $bTrace Then __SmtpTrace($i & " <- " & $sReceive) - - If StringLeft($sReceive, StringLen($sReplyCode)) <> $sReplyCode Then - TCPCloseSocket($vSocket) - TCPShutdown() - If $bTrace Then __SmtpTrace("<-> " & $sReplyCode, 5) - Return 2; bad receive code - EndIf - EndIf - - Return 0 -EndFunc ;==>__SmtpSend - -; #FUNCTION# ==================================================================================================================== -; Author ........: Florian Fida -; =============================================================================================================================== -Func _TCPIpToName($sIp, $iOption = Default, $hDll = Default) - Local $iINADDR_NONE = 0xffffffff, $iAF_INET = 2, $sSeparator = @CR - If $iOption = Default Then $iOption = 0 - If $hDll = Default Then $hDll = "ws2_32.dll" - Local $avDllCall = DllCall($hDll, "ulong", "inet_addr", "STR", $sIp) - If @error Then Return SetError(1, 0, "") ; inet_addr DllCall Failed - Local $vBinIP = $avDllCall[0] - If $vBinIP = $iINADDR_NONE Then Return SetError(2, 0, "") ; inet_addr Failed - $avDllCall = DllCall($hDll, "ptr", "gethostbyaddr", "ptr*", $vBinIP, "int", 4, "int", $iAF_INET) - If @error Then Return SetError(3, 0, "") ; gethostbyaddr DllCall Failed - Local $pvHostent = $avDllCall[0] - If $pvHostent = 0 Then - $avDllCall = DllCall($hDll, "int", "WSAGetLastError") - If @error Then Return SetError(5, 0, "") ; gethostbyaddr Failed, WSAGetLastError Failed - Return SetError(4, $avDllCall[0], "") ; gethostbyaddr Failed, WSAGetLastError = @extended - EndIf - Local $tHostent = DllStructCreate("ptr;ptr;short;short;ptr", $pvHostent) - Local $sHostnames = __TCPIpToName_szStringRead(DllStructGetData($tHostent, 1)) - If @error Then Return SetError(6, 0, $sHostnames) ; strlen/sZStringRead Failed - If $iOption = 1 Then - Local $tAliases - $sHostnames &= $sSeparator - For $i = 0 To 63 ; up to 64 Aliases - $tAliases = DllStructCreate("ptr", DllStructGetData($tHostent, 2) + ($i * 4)) - If DllStructGetData($tAliases, 1) = 0 Then ExitLoop ; Null Pointer - $sHostnames &= __TCPIpToName_szStringRead(DllStructGetData($tAliases, 1)) - If @error Then - SetError(7) ; Error reading array - ExitLoop - EndIf - Next - Return StringSplit(StringStripWS($sHostnames, $STR_STRIPTRAILING), @CR) - Else - Return $sHostnames - EndIf -EndFunc ;==>_TCPIpToName - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __TCPIpToName_szStringRead -; Description ...: Used internally within this file, not for general use -; Syntax.........: __TCPIpToName_szStringRead ( $pStr [, $iLen = -1] ) -; Author ........: Florian Fida -; =============================================================================================================================== -Func __TCPIpToName_szStringRead($pStr, $iLen = -1) - Local $tString - If $pStr < 1 Then Return "" ; Null Pointer - If $iLen < 0 Then $iLen = _WinAPI_StringLenA($pStr) - $tString = DllStructCreate("char[" & $iLen & "]", $pStr) - If @error Then Return SetError(2, 0, "") - Return SetExtended($iLen, DllStructGetData($tString, 1)) -EndFunc ;==>__TCPIpToName_szStringRead diff --git a/build/Include/InetConstants.au3 b/build/Include/InetConstants.au3 deleted file mode 100644 index 6f3526f24..000000000 --- a/build/Include/InetConstants.au3 +++ /dev/null @@ -1,28 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Inet_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script when using Inet functions. -; Author(s) .....: guinness -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $INET_LOCALCACHE = 0 -Global Const $INET_FORCERELOAD = 1 -Global Const $INET_IGNORESSL = 2 -Global Const $INET_ASCIITRANSFER = 4 -Global Const $INET_BINARYTRANSFER = 8 -Global Const $INET_FORCEBYPASS = 16 - -Global Const $INET_DOWNLOADWAIT = 0 -Global Const $INET_DOWNLOADBACKGROUND = 1 - -Global Const $INET_DOWNLOADREAD = 0 -Global Const $INET_DOWNLOADSIZE = 1 -Global Const $INET_DOWNLOADCOMPLETE = 2 -Global Const $INET_DOWNLOADSUCCESS = 3 -Global Const $INET_DOWNLOADERROR = 4 -Global Const $INET_DOWNLOADEXTENDED = 5 -; =============================================================================================================================== diff --git a/build/Include/ListBoxConstants.au3 b/build/Include/ListBoxConstants.au3 deleted file mode 100644 index 269fb52d4..000000000 --- a/build/Include/ListBoxConstants.au3 +++ /dev/null @@ -1,91 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: ListBox_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control ListBox styles and much more constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Styles -Global Const $LBS_NOTIFY = 0x00000001 ; Notifies whenever the user clicks or double clicks a string -Global Const $LBS_SORT = 0x00000002 ; Sorts strings in the list box alphabetically -Global Const $LBS_NOREDRAW = 0x00000004 ; Specifies that the appearance is not updated when changes are made -Global Const $LBS_MULTIPLESEL = 0x00000008 ; Turns string selection on or off each time the user clicks a string -Global Const $LBS_OWNERDRAWFIXED = 0x00000010 ; Specifies that the list box is owner drawn -Global Const $LBS_OWNERDRAWVARIABLE = 0x00000020 ; Specifies that the list box is owner drawn with variable height -Global Const $LBS_HASSTRINGS = 0x00000040 ; Specifies that a list box contains items consisting of strings -Global Const $LBS_USETABSTOPS = 0x00000080 ; Enables a list box to recognize and expand tab characters -Global Const $LBS_NOINTEGRALHEIGHT = 0x00000100 ; Specifies that the size is exactly the size set by the application -Global Const $LBS_MULTICOLUMN = 0x00000200 ; Specifies a multi columnn list box that is scrolled horizontally -Global Const $LBS_WANTKEYBOARDINPUT = 0x00000400 ; Specifies that the owner window receives WM_VKEYTOITEM messages -Global Const $LBS_EXTENDEDSEL = 0x00000800 ; Allows multiple items to be selected -Global Const $LBS_DISABLENOSCROLL = 0x00001000 ; Shows a disabled vertical scroll bar -Global Const $LBS_NODATA = 0x00002000 ; Specifies a no-data list box -Global Const $LBS_NOSEL = 0x00004000 ; Specifies that items that can be viewed but not selected -Global Const $LBS_COMBOBOX = 0x00008000 ; Notifies a list box that it is part of a combo box -Global Const $LBS_STANDARD = 0x00000003 ; Standard list box style - -; Control default styles -Global Const $GUI_SS_DEFAULT_LIST = 0x00a00003 ; BitOR($LBS_SORT, $WS_BORDER, $S_VSCROLL, $LBS_NOTIFY) - -; Errors -Global Const $LB_ERR = -1 -Global Const $LB_ERRATTRIBUTE = -3 -Global Const $LB_ERRREQUIRED = -4 -Global Const $LB_ERRSPACE = -2 - -; Messages -Global Const $LB_ADDSTRING = 0x0180 -Global Const $LB_INSERTSTRING = 0x0181 -Global Const $LB_DELETESTRING = 0x0182 -Global Const $LB_SELITEMRANGEEX = 0x0183 -Global Const $LB_RESETCONTENT = 0x0184 -Global Const $LB_SETSEL = 0x0185 -Global Const $LB_SETCURSEL = 0x0186 -Global Const $LB_GETSEL = 0x0187 -Global Const $LB_GETCURSEL = 0x0188 -Global Const $LB_GETTEXT = 0x0189 -Global Const $LB_GETTEXTLEN = 0x018A -Global Const $LB_GETCOUNT = 0x018B -Global Const $LB_SELECTSTRING = 0x018C -Global Const $LB_DIR = 0x018D -Global Const $LB_GETTOPINDEX = 0x018E -Global Const $LB_FINDSTRING = 0x018F -Global Const $LB_GETSELCOUNT = 0x0190 -Global Const $LB_GETSELITEMS = 0x0191 -Global Const $LB_SETTABSTOPS = 0x0192 -Global Const $LB_GETHORIZONTALEXTENT = 0x0193 -Global Const $LB_SETHORIZONTALEXTENT = 0x0194 -Global Const $LB_SETCOLUMNWIDTH = 0x0195 -Global Const $LB_ADDFILE = 0x0196 -Global Const $LB_SETTOPINDEX = 0x0197 -Global Const $LB_GETITEMRECT = 0x0198 -Global Const $LB_GETITEMDATA = 0x0199 -Global Const $LB_SETITEMDATA = 0x019A -Global Const $LB_SELITEMRANGE = 0x019B -Global Const $LB_SETANCHORINDEX = 0x019C -Global Const $LB_GETANCHORINDEX = 0x019D -Global Const $LB_SETCARETINDEX = 0x019E -Global Const $LB_GETCARETINDEX = 0x019F -Global Const $LB_SETITEMHEIGHT = 0x01A0 -Global Const $LB_GETITEMHEIGHT = 0x01A1 -Global Const $LB_FINDSTRINGEXACT = 0x01A2 -Global Const $LB_SETLOCALE = 0x01A5 -Global Const $LB_GETLOCALE = 0x01A6 -Global Const $LB_SETCOUNT = 0x01A7 -Global Const $LB_INITSTORAGE = 0x01A8 -Global Const $LB_ITEMFROMPOINT = 0x01A9 -Global Const $LB_MULTIPLEADDSTRING = 0x01B1 -Global Const $LB_GETLISTBOXINFO = 0x01B2 - -; Notifications -Global Const $LBN_ERRSPACE = 0xFFFFFFFE ; Sent when a list box cannot allocate enough memory for a request -Global Const $LBN_SELCHANGE = 0x00000001 ; Sent when the selection in a list box is about to change -Global Const $LBN_DBLCLK = 0x00000002 ; Sent when the user double clicks a string in a list box -Global Const $LBN_SELCANCEL = 0x00000003 ; Sent when the user cancels the selection in a list box -Global Const $LBN_SETFOCUS = 0x00000004 ; Sent when a list box receives the keyboard focus -Global Const $LBN_KILLFOCUS = 0x00000005 ; Sent when a list box loses the keyboard focus -; =============================================================================================================================== diff --git a/build/Include/ListViewConstants.au3 b/build/Include/ListViewConstants.au3 deleted file mode 100644 index 6ffc813fe..000000000 --- a/build/Include/ListViewConstants.au3 +++ /dev/null @@ -1,414 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: ListView_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control ListView styles and much more constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Group state - Vista -Global Const $LVGS_NORMAL = 0x00000000 -Global Const $LVGS_COLLAPSED = 0x00000001 -Global Const $LVGS_HIDDEN = 0x00000002 -Global Const $LVGS_NOHEADER = 0x00000004 -Global Const $LVGS_COLLAPSIBLE = 0x00000008 -Global Const $LVGS_FOCUSED = 0x00000010 -Global Const $LVGS_SELECTED = 0x00000020 -Global Const $LVGS_SUBSETED = 0x00000040 -Global Const $LVGS_SUBSETLINKFOCUSED = 0x00000080 - -; Group Rect - Vista -Global Const $LVGGR_GROUP = 0 ;// Entire expanded group -Global Const $LVGGR_HEADER = 1 ; // Header only (collapsed group) -Global Const $LVGGR_LABEL = 2 ; // Label only -Global Const $LVGGR_SUBSETLINK = 3 ; // subset link only - -; error -Global Const $LV_ERR = -1 - -Global Const $LVBKIF_SOURCE_NONE = 0x00000000 -Global Const $LVBKIF_SOURCE_HBITMAP = 0x00000001 -Global Const $LVBKIF_SOURCE_URL = 0x00000002 -Global Const $LVBKIF_SOURCE_MASK = 0x00000003 -Global Const $LVBKIF_STYLE_NORMAL = 0x00000000 -Global Const $LVBKIF_STYLE_TILE = 0x00000010 -Global Const $LVBKIF_STYLE_MASK = 0x00000010 -Global Const $LVBKIF_FLAG_TILEOFFSET = 0x00000100 -Global Const $LVBKIF_TYPE_WATERMARK = 0x10000000 - -Global Const $LV_VIEW_DETAILS = 0x0001 -Global Const $LV_VIEW_ICON = 0x0000 -Global Const $LV_VIEW_LIST = 0x0003 -Global Const $LV_VIEW_SMALLICON = 0x0002 -Global Const $LV_VIEW_TILE = 0x0004 - -Global Const $LVA_ALIGNLEFT = 0x0001 -Global Const $LVA_ALIGNTOP = 0x0002 -Global Const $LVA_DEFAULT = 0x0000 -Global Const $LVA_SNAPTOGRID = 0x0005 - -Global Const $LVCDI_ITEM = 0x00000000 -Global Const $LVCDI_GROUP = 0x00000001 - -Global Const $LVCF_ALLDATA = 0X0000003F -Global Const $LVCF_FMT = 0x0001 -Global Const $LVCF_IMAGE = 0x0010 -Global Const $LVCFMT_JUSTIFYMASK = 0x0003 -Global Const $LVCF_TEXT = 0x0004 -Global Const $LVCF_WIDTH = 0x0002 - -Global Const $LVCFMT_BITMAP_ON_RIGHT = 0x1000 -Global Const $LVCFMT_CENTER = 0x0002 -Global Const $LVCFMT_COL_HAS_IMAGES = 0x8000 -Global Const $LVCFMT_IMAGE = 0x0800 -Global Const $LVCFMT_LEFT = 0x0000 -Global Const $LVCFMT_RIGHT = 0x0001 - -Global Const $LVCFMT_LINE_BREAK = 0x100000 -Global Const $LVCFMT_FILL = 0x200000 -Global Const $LVCFMT_WRAP = 0x400000 -Global Const $LVCFMT_NO_TITLE = 0x800000 -Global Const $LVCFMT_TILE_PLACEMENTMASK = BitOR($LVCFMT_LINE_BREAK, $LVCFMT_FILL) - -Global Const $LVFI_NEARESTXY = 0x0040 -Global Const $LVFI_PARAM = 0x0001 -Global Const $LVFI_PARTIAL = 0x0008 -Global Const $LVFI_STRING = 0x0002 -Global Const $LVFI_SUBSTRING = 0x0004 -Global Const $LVFI_WRAP = 0x0020 - -Global Const $LVGA_FOOTER_LEFT = 0x00000008 -Global Const $LVGA_FOOTER_CENTER = 0x00000010 -Global Const $LVGA_FOOTER_RIGHT = 0x00000020 -Global Const $LVGA_HEADER_LEFT = 0x00000001 -Global Const $LVGA_HEADER_CENTER = 0x00000002 -Global Const $LVGA_HEADER_RIGHT = 0x00000004 - -Global Const $LVGF_ALIGN = 0x00000008 -Global Const $LVGF_DESCRIPTIONTOP = 0x00000400 -Global Const $LVGF_DESCRIPTIONBOTTOM = 0x00000800 -Global Const $LVGF_EXTENDEDIMAGE = 0x00002000 -Global Const $LVGF_FOOTER = 0x00000002 -Global Const $LVGF_GROUPID = 0x00000010 -Global Const $LVGF_HEADER = 0x00000001 -Global Const $LVGF_ITEMS = 0x00004000 -Global Const $LVGF_NONE = 0x00000000 -Global Const $LVGF_STATE = 0x00000004 -Global Const $LVGF_SUBSET = 0x00008000 -Global Const $LVGF_SUBSETITEMS = 0x00010000 -Global Const $LVGF_SUBTITLE = 0x00000100 -Global Const $LVGF_TASK = 0x00000200 -Global Const $LVGF_TITLEIMAGE = 0x00001000 - -Global Const $LVHT_ABOVE = 0x00000008 -Global Const $LVHT_BELOW = 0x00000010 -Global Const $LVHT_NOWHERE = 0x00000001 -Global Const $LVHT_ONITEMICON = 0x00000002 -Global Const $LVHT_ONITEMLABEL = 0x00000004 -Global Const $LVHT_ONITEMSTATEICON = 0x00000008 -Global Const $LVHT_TOLEFT = 0x00000040 -Global Const $LVHT_TORIGHT = 0x00000020 -Global Const $LVHT_ONITEM = BitOR($LVHT_ONITEMICON, $LVHT_ONITEMLABEL, $LVHT_ONITEMSTATEICON) - -Global Const $LVHT_EX_GROUP_HEADER = 0x10000000 -Global Const $LVHT_EX_GROUP_FOOTER = 0x20000000 -Global Const $LVHT_EX_GROUP_COLLAPSE = 0x40000000 -Global Const $LVHT_EX_GROUP_BACKGROUND = 0x80000000 -Global Const $LVHT_EX_GROUP_STATEICON = 0x01000000 -Global Const $LVHT_EX_GROUP_SUBSETLINK = 0x02000000 -Global Const $LVHT_EX_GROUP = BitOR($LVHT_EX_GROUP_BACKGROUND, $LVHT_EX_GROUP_COLLAPSE, $LVHT_EX_GROUP_FOOTER, $LVHT_EX_GROUP_HEADER, $LVHT_EX_GROUP_STATEICON, $LVHT_EX_GROUP_SUBSETLINK) -Global Const $LVHT_EX_ONCONTENTS = 0x04000000 ; On item AND not on the background -Global Const $LVHT_EX_FOOTER = 0x08000000 - -Global Const $LVIF_COLFMT = 0x00010000 -Global Const $LVIF_COLUMNS = 0x00000200 -Global Const $LVIF_GROUPID = 0x00000100 -Global Const $LVIF_IMAGE = 0x00000002 -Global Const $LVIF_INDENT = 0x00000010 -Global Const $LVIF_NORECOMPUTE = 0x00000800 -Global Const $LVIF_PARAM = 0x00000004 -Global Const $LVIF_STATE = 0x00000008 -Global Const $LVIF_TEXT = 0x00000001 - -Global Const $LVIM_AFTER = 0x00000001 - -Global Const $LVIR_BOUNDS = 0 -Global Const $LVIR_ICON = 1 -Global Const $LVIR_LABEL = 2 -Global Const $LVIR_SELECTBOUNDS = 3 - -Global Const $LVIS_CUT = 0x0004 -Global Const $LVIS_DROPHILITED = 0x0008 -Global Const $LVIS_FOCUSED = 0x0001 -Global Const $LVIS_OVERLAYMASK = 0x0F00 -Global Const $LVIS_SELECTED = 0x0002 -Global Const $LVIS_STATEIMAGEMASK = 0xF000 - -; Styles -Global Const $LVS_ALIGNLEFT = 0x0800 ; Items are left aligned in icon and small icon view -Global Const $LVS_ALIGNMASK = 0x0c00 ; Determines the control's current alignment -Global Const $LVS_ALIGNTOP = 0x0000 ; Items are aligned at the top in icon and small icon view -Global Const $LVS_AUTOARRANGE = 0x0100 ; Icons are automatically kept arranged in icon and small icon view -Global Const $LVS_DEFAULT = 0x0000000D ; Default control style $LVS_SHOWSELALWAYS + $LVS_SINGLESEL + $LVS_REPORT -Global Const $LVS_EDITLABELS = 0x0200 ; Item text can be edited in place -Global Const $LVS_ICON = 0x0000 ; This style specifies icon view -Global Const $LVS_LIST = 0x0003 ; This style specifies list view -Global Const $LVS_NOCOLUMNHEADER = 0x4000 ; Column headers are not displayed in report view -Global Const $LVS_NOLABELWRAP = 0x0080 ; Item text is displayed on a single line in icon view -Global Const $LVS_NOSCROLL = 0x2000 ; Scrolling is disabled -Global Const $LVS_NOSORTHEADER = 0x8000 ; Column headers do not work like buttons -Global Const $LVS_OWNERDATA = 0x1000 -Global Const $LVS_OWNERDRAWFIXED = 0x0400 ; The owner window can paint items in report view -Global Const $LVS_REPORT = 0x0001 ; This style specifies report view -Global Const $LVS_SHAREIMAGELISTS = 0x0040 ; The image list will not be deleted when the control is destroyed -Global Const $LVS_SHOWSELALWAYS = 0x0008 ; The selection is always shown -Global Const $LVS_SINGLESEL = 0x0004 ; Only one item at a time can be selected -Global Const $LVS_SMALLICON = 0x0002 ; This style specifies small icon view -Global Const $LVS_SORTASCENDING = 0x0010 ; Item indexes are sorted based on item text in ascending order -Global Const $LVS_SORTDESCENDING = 0x0020 ; Item indexes are sorted based on item text in descending order -Global Const $LVS_TYPEMASK = 0x0003 ; Determines the control's current window style -Global Const $LVS_TYPESTYLEMASK = 0xfc00 ; Determines the window styles - -; listView Extended Styles -Global Const $LVS_EX_AUTOAUTOARRANGE = 0x01000000 ; Vista - Automatically arrange icons if no icon positions have been set (Similar to LVS_AUTOARRANGE). -Global Const $LVS_EX_AUTOCHECKSELECT = 0x08000000 ; Vista - Automatically select check boxes on single click -Global Const $LVS_EX_AUTOSIZECOLUMNS = 0x10000000 ; Vista - Automatically size listview columns -Global Const $LVS_EX_BORDERSELECT = 0x00008000 ; The border color of the item changes when selected -Global Const $LVS_EX_CHECKBOXES = 0x00000004 ; Enables check boxes for items -Global Const $LVS_EX_COLUMNOVERFLOW = 0x80000000 ; Indicates that an overflow button should be displayed in icon/tile view if there is not enough client width to display the complete set of header items -Global Const $LVS_EX_COLUMNSNAPPOINTS = 0x40000000 ; Vista - Snap to minimum column width when the user resizes a column -Global Const $LVS_EX_DOUBLEBUFFER = 0x00010000 ; Paints via double-buffering, which reduces flicker -Global Const $LVS_EX_FLATSB = 0x00000100 ; Enables flat scroll bars -Global Const $LVS_EX_FULLROWSELECT = 0x00000020 ; When an item is selected, the item and all its subitems are highlighted -Global Const $LVS_EX_GRIDLINES = 0x00000001 ; Displays gridlines around items and subitems -Global Const $LVS_EX_HEADERDRAGDROP = 0x00000010 ; Enables drag-and-drop reordering of columns -Global Const $LVS_EX_HEADERINALLVIEWS = 0x02000000 ; Vista - Show column headers in all view modes -Global Const $LVS_EX_HIDELABELS = 0x20000 ; Hides the labels in icon and small icon view -Global Const $LVS_EX_INFOTIP = 0x00000400 ; A message is sent to the parent before displaying an item's ToolTip -Global Const $LVS_EX_JUSTIFYCOLUMNS = 0x00200000 ; Vista - Icons are lined up in columns that use up the whole view -Global Const $LVS_EX_LABELTIP = 0x00004000 ; If a partially hidden label lacks ToolTip text, the label will unfold -Global Const $LVS_EX_MULTIWORKAREAS = 0x00002000 ; The control will not autoarrange its icons until a work area is defined -Global Const $LVS_EX_ONECLICKACTIVATE = 0x00000040 ; Sends an $LVN_ITEMACTIVATE message when the user clicks an item -Global Const $LVS_EX_REGIONAL = 0x00000200 ; Sets the region to include only the icons and text using SetWindowRgn -Global Const $LVS_EX_SIMPLESELECT = 0x00100000 ; Moves the state image to the top right of the large icon rendering#cs -Global Const $LVS_EX_SNAPTOGRID = 0x00080000 ; Icons automatically snap to grid -Global Const $LVS_EX_SUBITEMIMAGES = 0x00000002 ; Allows images to be displayed for subitems -Global Const $LVS_EX_TRACKSELECT = 0x00000008 ; Enables hot-track selection -Global Const $LVS_EX_TRANSPARENTBKGND = 0x00400000 ; Vista - Background is painted by the parent via WM_PRINTCLIENT -Global Const $LVS_EX_TRANSPARENTSHADOWTEXT = 0x00800000 ; Vista - Enable shadow text on transparent backgrounds only -Global Const $LVS_EX_TWOCLICKACTIVATE = 0x00000080 ; Sends an $LVN_ITEMACTIVATE message when the user double clicks an item -Global Const $LVS_EX_UNDERLINECOLD = 0x00001000 ; Causes non-hot items to be displayed with underlined text -Global Const $LVS_EX_UNDERLINEHOT = 0x00000800 ; Causes hot items to be displayed with underlined text - -; Control default styles -Global Const $GUI_SS_DEFAULT_LISTVIEW = BitOR($LVS_SHOWSELALWAYS, $LVS_SINGLESEL) -; =============================================================================================================================== - -; #MESSAGES# ==================================================================================================================== -Global Const $LVM_FIRST = 0x1000 - -Global Const $LVM_APPROXIMATEVIEWRECT = ($LVM_FIRST + 64) -Global Const $LVM_ARRANGE = ($LVM_FIRST + 22) -Global Const $LVM_CANCELEDITLABEL = ($LVM_FIRST + 179) -Global Const $LVM_CREATEDRAGIMAGE = ($LVM_FIRST + 33) -Global Const $LVM_DELETEALLITEMS = ($LVM_FIRST + 9) -Global Const $LVM_DELETECOLUMN = ($LVM_FIRST + 28) -Global Const $LVM_DELETEITEM = ($LVM_FIRST + 8) -Global Const $LVM_EDITLABELA = ($LVM_FIRST + 23) -Global Const $LVM_EDITLABELW = ($LVM_FIRST + 118) -Global Const $LVM_EDITLABEL = $LVM_EDITLABELA -Global Const $LVM_ENABLEGROUPVIEW = ($LVM_FIRST + 157) -Global Const $LVM_ENSUREVISIBLE = ($LVM_FIRST + 19) -Global Const $LVM_FINDITEM = ($LVM_FIRST + 13) -Global Const $LVM_GETBKCOLOR = ($LVM_FIRST + 0) -Global Const $LVM_GETBKIMAGEA = ($LVM_FIRST + 69) -Global Const $LVM_GETBKIMAGEW = ($LVM_FIRST + 139) -Global Const $LVM_GETCALLBACKMASK = ($LVM_FIRST + 10) -Global Const $LVM_GETCOLUMNA = ($LVM_FIRST + 25) -Global Const $LVM_GETCOLUMNW = ($LVM_FIRST + 95) -Global Const $LVM_GETCOLUMNORDERARRAY = ($LVM_FIRST + 59) -Global Const $LVM_GETCOLUMNWIDTH = ($LVM_FIRST + 29) -Global Const $LVM_GETCOUNTPERPAGE = ($LVM_FIRST + 40) -Global Const $LVM_GETEDITCONTROL = ($LVM_FIRST + 24) -Global Const $LVM_GETEMPTYTEXT = ($LVM_FIRST + 204) -Global Const $LVM_GETEXTENDEDLISTVIEWSTYLE = ($LVM_FIRST + 55) -Global Const $LVM_GETFOCUSEDGROUP = ($LVM_FIRST + 93) -Global Const $LVM_GETFOOTERINFO = ($LVM_FIRST + 206) -Global Const $LVM_GETFOOTERITEM = ($LVM_FIRST + 208) -Global Const $LVM_GETFOOTERITEMRECT = ($LVM_FIRST + 207) -Global Const $LVM_GETFOOTERRECT = ($LVM_FIRST + 205) -Global Const $LVM_GETGROUPCOUNT = ($LVM_FIRST + 152) -Global Const $LVM_GETGROUPINFO = ($LVM_FIRST + 149) -Global Const $LVM_GETGROUPINFOBYINDEX = ($LVM_FIRST + 153) -Global Const $LVM_GETGROUPMETRICS = ($LVM_FIRST + 156) -Global Const $LVM_GETGROUPRECT = ($LVM_FIRST + 98) -Global Const $LVM_GETGROUPSTATE = ($LVM_FIRST + 92) -Global Const $LVM_GETHEADER = ($LVM_FIRST + 31) -Global Const $LVM_GETHOTCURSOR = ($LVM_FIRST + 63) -Global Const $LVM_GETHOTITEM = ($LVM_FIRST + 61) -Global Const $LVM_GETHOVERTIME = ($LVM_FIRST + 72) -Global Const $LVM_GETIMAGELIST = ($LVM_FIRST + 2) -Global Const $LVM_GETINSERTMARK = ($LVM_FIRST + 167) -Global Const $LVM_GETINSERTMARKCOLOR = ($LVM_FIRST + 171) -Global Const $LVM_GETINSERTMARKRECT = ($LVM_FIRST + 169) -Global Const $LVM_GETISEARCHSTRINGA = ($LVM_FIRST + 52) -Global Const $LVM_GETISEARCHSTRINGW = ($LVM_FIRST + 117) -Global Const $LVM_GETITEMA = ($LVM_FIRST + 5) -Global Const $LVM_GETITEMW = ($LVM_FIRST + 75) -Global Const $LVM_GETITEMCOUNT = ($LVM_FIRST + 4) -Global Const $LVM_GETITEMINDEXRECT = ($LVM_FIRST + 209) -Global Const $LVM_GETITEMPOSITION = ($LVM_FIRST + 16) -Global Const $LVM_GETITEMRECT = ($LVM_FIRST + 14) -Global Const $LVM_GETITEMSPACING = ($LVM_FIRST + 51) -Global Const $LVM_GETITEMSTATE = ($LVM_FIRST + 44) -Global Const $LVM_GETITEMTEXTA = ($LVM_FIRST + 45) -Global Const $LVM_GETITEMTEXTW = ($LVM_FIRST + 115) -Global Const $LVM_GETNEXTITEM = ($LVM_FIRST + 12) -Global Const $LVM_GETNEXTITEMINDEX = ($LVM_FIRST + 211) -Global Const $LVM_GETNUMBEROFWORKAREAS = ($LVM_FIRST + 73) -Global Const $LVM_GETORIGIN = ($LVM_FIRST + 41) -Global Const $LVM_GETOUTLINECOLOR = ($LVM_FIRST + 176) -Global Const $LVM_GETSELECTEDCOLUMN = ($LVM_FIRST + 174) -Global Const $LVM_GETSELECTEDCOUNT = ($LVM_FIRST + 50) -Global Const $LVM_GETSELECTIONMARK = ($LVM_FIRST + 66) -Global Const $LVM_GETSTRINGWIDTHA = ($LVM_FIRST + 17) -Global Const $LVM_GETSTRINGWIDTHW = ($LVM_FIRST + 87) -Global Const $LVM_GETSUBITEMRECT = ($LVM_FIRST + 56) -Global Const $LVM_GETTEXTBKCOLOR = ($LVM_FIRST + 37) -Global Const $LVM_GETTEXTCOLOR = ($LVM_FIRST + 35) -Global Const $LVM_GETTILEINFO = ($LVM_FIRST + 165) -Global Const $LVM_GETTILEVIEWINFO = ($LVM_FIRST + 163) -Global Const $LVM_GETTOOLTIPS = ($LVM_FIRST + 78) -Global Const $LVM_GETTOPINDEX = ($LVM_FIRST + 39) -Global Const $LVM_GETUNICODEFORMAT = 0x2000 + 6 -Global Const $LVM_GETVIEW = ($LVM_FIRST + 143) -Global Const $LVM_GETVIEWRECT = ($LVM_FIRST + 34) -Global Const $LVM_GETWORKAREAS = ($LVM_FIRST + 70) -Global Const $LVM_HASGROUP = ($LVM_FIRST + 161) -Global Const $LVM_HITTEST = ($LVM_FIRST + 18) -Global Const $LVM_INSERTCOLUMNA = ($LVM_FIRST + 27) -Global Const $LVM_INSERTCOLUMNW = ($LVM_FIRST + 97) -Global Const $LVM_INSERTGROUP = ($LVM_FIRST + 145) -Global Const $LVM_INSERTGROUPSORTED = ($LVM_FIRST + 159) -Global Const $LVM_INSERTITEMA = ($LVM_FIRST + 7) -Global Const $LVM_INSERTITEMW = ($LVM_FIRST + 77) -Global Const $LVM_INSERTMARKHITTEST = ($LVM_FIRST + 168) -Global Const $LVM_ISGROUPVIEWENABLED = ($LVM_FIRST + 175) -Global Const $LVM_ISITEMVISIBLE = ($LVM_FIRST + 182) -Global Const $LVM_MAPIDTOINDEX = ($LVM_FIRST + 181) -Global Const $LVM_MAPINDEXTOID = ($LVM_FIRST + 180) -Global Const $LVM_MOVEGROUP = ($LVM_FIRST + 151) -Global Const $LVM_REDRAWITEMS = ($LVM_FIRST + 21) -Global Const $LVM_REMOVEALLGROUPS = ($LVM_FIRST + 160) -Global Const $LVM_REMOVEGROUP = ($LVM_FIRST + 150) -Global Const $LVM_SCROLL = ($LVM_FIRST + 20) -Global Const $LVM_SETBKCOLOR = ($LVM_FIRST + 1) -Global Const $LVM_SETBKIMAGEA = ($LVM_FIRST + 68) -Global Const $LVM_SETBKIMAGEW = ($LVM_FIRST + 138) -Global Const $LVM_SETCALLBACKMASK = ($LVM_FIRST + 11) -Global Const $LVM_SETCOLUMNA = ($LVM_FIRST + 26) -Global Const $LVM_SETCOLUMNW = ($LVM_FIRST + 96) -Global Const $LVM_SETCOLUMNORDERARRAY = ($LVM_FIRST + 58) -Global Const $LVM_SETCOLUMNWIDTH = ($LVM_FIRST + 30) -Global Const $LVM_SETEXTENDEDLISTVIEWSTYLE = ($LVM_FIRST + 54) -Global Const $LVM_SETGROUPINFO = ($LVM_FIRST + 147) -Global Const $LVM_SETGROUPMETRICS = ($LVM_FIRST + 155) -Global Const $LVM_SETHOTCURSOR = ($LVM_FIRST + 62) -Global Const $LVM_SETHOTITEM = ($LVM_FIRST + 60) -Global Const $LVM_SETHOVERTIME = ($LVM_FIRST + 71) -Global Const $LVM_SETICONSPACING = ($LVM_FIRST + 53) -Global Const $LVM_SETIMAGELIST = ($LVM_FIRST + 3) -Global Const $LVM_SETINFOTIP = ($LVM_FIRST + 173) -Global Const $LVM_SETINSERTMARK = ($LVM_FIRST + 166) -Global Const $LVM_SETINSERTMARKCOLOR = ($LVM_FIRST + 170) -Global Const $LVM_SETITEMA = ($LVM_FIRST + 6) -Global Const $LVM_SETITEMW = ($LVM_FIRST + 76) -Global Const $LVM_SETITEMCOUNT = ($LVM_FIRST + 47) -Global Const $LVM_SETITEMINDEXSTATE = ($LVM_FIRST + 210) -Global Const $LVM_SETITEMPOSITION = ($LVM_FIRST + 15) -Global Const $LVM_SETITEMPOSITION32 = ($LVM_FIRST + 49) -Global Const $LVM_SETITEMSTATE = ($LVM_FIRST + 43) -Global Const $LVM_SETITEMTEXTA = ($LVM_FIRST + 46) -Global Const $LVM_SETITEMTEXTW = ($LVM_FIRST + 116) -Global Const $LVM_SETOUTLINECOLOR = ($LVM_FIRST + 177) -Global Const $LVM_SETSELECTEDCOLUMN = ($LVM_FIRST + 140) -Global Const $LVM_SETSELECTIONMARK = ($LVM_FIRST + 67) -Global Const $LVM_SETTEXTBKCOLOR = ($LVM_FIRST + 38) -Global Const $LVM_SETTEXTCOLOR = ($LVM_FIRST + 36) -Global Const $LVM_SETTILEINFO = ($LVM_FIRST + 164) -Global Const $LVM_SETTILEVIEWINFO = ($LVM_FIRST + 162) -Global Const $LVM_SETTILEWIDTH = ($LVM_FIRST + 141) -Global Const $LVM_SETTOOLTIPS = ($LVM_FIRST + 74) -Global Const $LVM_SETUNICODEFORMAT = 0x2000 + 5 -Global Const $LVM_SETVIEW = ($LVM_FIRST + 142) -Global Const $LVM_SETWORKAREAS = ($LVM_FIRST + 65) -Global Const $LVM_SORTGROUPS = ($LVM_FIRST + 158) -Global Const $LVM_SORTITEMS = ($LVM_FIRST + 48) -Global Const $LVM_SORTITEMSEX = ($LVM_FIRST + 81) -Global Const $LVM_SUBITEMHITTEST = ($LVM_FIRST + 57) -Global Const $LVM_UPDATE = ($LVM_FIRST + 42) -; =============================================================================================================================== - -; #NOTIFICATIONS# =============================================================================================================== -Global Const $LVN_FIRST = -100 -Global Const $LVN_LAST = -199 -Global Const $LVN_BEGINDRAG = ($LVN_FIRST - 9) ; A drag and drop involving the left mouse button is being initiated -Global Const $LVN_BEGINLABELEDITA = ($LVN_FIRST - 5) ; The label editting is starting -Global Const $LVN_BEGINLABELEDITW = ($LVN_FIRST - 75) ; [Unicode] The label editting is starting -Global Const $LVN_BEGINRDRAG = ($LVN_FIRST - 11) ; A drag and drop involving the right mouse button is being initiated -Global Const $LVN_BEGINSCROLL = ($LVN_FIRST - 80) -Global Const $LVN_COLUMNCLICK = ($LVN_FIRST - 8) ; A column was clicked -Global Const $LVN_COLUMNDROPDOWN = ($LVN_FIRST - 64) -Global Const $LVN_COLUMNOVERFLOWCLICK = ($LVN_FIRST - 66) -Global Const $LVN_DELETEALLITEMS = ($LVN_FIRST - 4) ; All items are about to be deleted -Global Const $LVN_DELETEITEM = ($LVN_FIRST - 3) ; An item is about to be deleted -Global Const $LVN_ENDLABELEDITA = ($LVN_FIRST - 6) ; The label editting is ending -Global Const $LVN_ENDLABELEDITW = ($LVN_FIRST - 76) ; [Unicode] The label editting is ending -Global Const $LVN_ENDSCROLL = ($LVN_FIRST - 81) -Global Const $LVN_GETDISPINFOA = ($LVN_FIRST - 50) ; Request for the parent to provide information -Global Const $LVN_GETDISPINFOW = ($LVN_FIRST - 77) ; [Unicode] Request for the parent to provide information -Global Const $LVN_GETDISPINFO = $LVN_GETDISPINFOA -Global Const $LVN_GETEMPTYMARKUP = ($LVN_FIRST - 87) ; Vista - when the control has no items -Global Const $LVN_GETINFOTIPA = ($LVN_FIRST - 57) -Global Const $LVN_GETINFOTIPW = ($LVN_FIRST - 58) -Global Const $LVN_HOTTRACK = ($LVN_FIRST - 21) ; The user moved the mouse over an item -Global Const $LVN_INCREMENTALSEARCHA = ($LVN_FIRST - 62) -Global Const $LVN_INCREMENTALSEARCHW = ($LVN_FIRST - 63) -Global Const $LVN_INSERTITEM = ($LVN_FIRST - 2) ; A new item was inserted -Global Const $LVN_ITEMACTIVATE = ($LVN_FIRST - 14) ; The user activated an item -Global Const $LVN_ITEMCHANGED = ($LVN_FIRST - 1) ; An item has changed -Global Const $LVN_ITEMCHANGING = ($LVN_FIRST - 0) ; An item is changing -Global Const $LVN_KEYDOWN = ($LVN_FIRST - 55) -Global Const $LVN_LINKCLICK = ($LVN_FIRST - 84) ; Vista - a link has been clicked on -Global Const $LVN_MARQUEEBEGIN = ($LVN_FIRST - 56) -Global Const $LVN_ODCACHEHINT = ($LVN_FIRST - 13) ; The contents of its display area for a virtual control have changed -Global Const $LVN_ODFINDITEMA = ($LVN_FIRST - 52) ; Sent to the parent when it needs to find a callback item -Global Const $LVN_ODFINDITEMW = ($LVN_FIRST - 79) ; [Unicode] Sent to the parent when it needs to find a callback item -Global Const $LVN_ODFINDITEM = $LVN_ODFINDITEMA -Global Const $LVN_ODSTATECHANGED = ($LVN_FIRST - 15) ; The state of an item or range of items in a virtual control has changed -Global Const $LVN_SETDISPINFOA = ($LVN_FIRST - 51) ; Sent to the parent when it needs to update item information -Global Const $LVN_SETDISPINFOW = ($LVN_FIRST - 78) ; [Unicode] Sent to the parent when it needs to update item information - -Global Const $LVNI_ABOVE = 0x0100 -Global Const $LVNI_BELOW = 0x0200 -Global Const $LVNI_TOLEFT = 0x0400 -Global Const $LVNI_TORIGHT = 0x0800 -Global Const $LVNI_ALL = 0x0000 -Global Const $LVNI_CUT = 0x0004 -Global Const $LVNI_DROPHILITED = 0x0008 -Global Const $LVNI_FOCUSED = 0x0001 -Global Const $LVNI_SELECTED = 0x0002 - -Global Const $LVSCW_AUTOSIZE = -1 -Global Const $LVSCW_AUTOSIZE_USEHEADER = -2 - -Global Const $LVSICF_NOINVALIDATEALL = 0x00000001 -Global Const $LVSICF_NOSCROLL = 0x00000002 - -Global Const $LVSIL_NORMAL = 0 -Global Const $LVSIL_SMALL = 1 -Global Const $LVSIL_STATE = 2 -; =============================================================================================================================== diff --git a/build/Include/Math.au3 b/build/Include/Math.au3 deleted file mode 100644 index 89127f44d..000000000 --- a/build/Include/Math.au3 +++ /dev/null @@ -1,66 +0,0 @@ -#include-once - -#include "MathConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Mathematical calculations -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with mathematical calculations. -; Author(s) .....: Valik, Gary Frost, guinness ... -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _Degree -; _MathCheckDiv -; _Max -; _Min -; _Radian -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Erifash -; =============================================================================================================================== -Func _Degree($iRadians) - Return IsNumber($iRadians) ? $iRadians * $MATH_DEGREES : SetError(1, 0, "") -EndFunc ;==>_Degree - -; #FUNCTION# ==================================================================================================================== -; Author ........: Wes Wolfe-Wolvereness -; Modified ......: czardas - rewritten for compatibility with Int64 -; =============================================================================================================================== -Func _MathCheckDiv($iNum1, $iNum2 = 2) - If Not (IsInt($iNum1) And IsInt($iNum2)) Then - Return SetError(1, 0, -1) - EndIf - Return (Mod($iNum1, $iNum2) = 0) ? $MATH_ISDIVISIBLE : $MATH_ISNOTDIVISIBLE -EndFunc ;==>_MathCheckDiv - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jeremy Landes -; Modified ......: guinness - Added ternary operator. -; =============================================================================================================================== -Func _Max($iNum1, $iNum2) - ; Check to see if the parameters are numbers - If Not IsNumber($iNum1) Then Return SetError(1, 0, 0) - If Not IsNumber($iNum2) Then Return SetError(2, 0, 0) - Return ($iNum1 > $iNum2) ? $iNum1 : $iNum2 -EndFunc ;==>_Max - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jeremy Landes -; Modified ......: guinness - Added ternary operator. -; =============================================================================================================================== -Func _Min($iNum1, $iNum2) - ; Check to see if the parameters are numbers - If Not IsNumber($iNum1) Then Return SetError(1, 0, 0) - If Not IsNumber($iNum2) Then Return SetError(2, 0, 0) - Return ($iNum1 > $iNum2) ? $iNum2 : $iNum1 -EndFunc ;==>_Min - -; #FUNCTION# ==================================================================================================================== -; Author ........: Erifash -; =============================================================================================================================== -Func _Radian($iDegrees) - Return Number($iDegrees) ? $iDegrees / $MATH_DEGREES : SetError(1, 0, "") -EndFunc ;==>_Radian diff --git a/build/Include/MathConstants.au3 b/build/Include/MathConstants.au3 deleted file mode 100644 index 4442ad583..000000000 --- a/build/Include/MathConstants.au3 +++ /dev/null @@ -1,18 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Math_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script when using Math functions. -; Author(s) .....: guinness -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; _MathCheckDiv() -Global Const $MATH_ISNOTDIVISIBLE = 1 -Global Const $MATH_ISDIVISIBLE = 2 - -; _Degree(), _Radian() -Global Const $MATH_DEGREES = 57.2957795130823 -; =============================================================================================================================== diff --git a/build/Include/Memory.au3 b/build/Include/Memory.au3 deleted file mode 100644 index 831b27314..000000000 --- a/build/Include/Memory.au3 +++ /dev/null @@ -1,311 +0,0 @@ -#include-once - -#include "MemoryConstants.au3" -#include "ProcessConstants.au3" -#include "Security.au3" -#include "StructureConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Memory -; AutoIt Version : 3.3.14.2 -; Description ...: Functions that assist with Memory management. -; The memory manager implements virtual memory, provides a core set of services such as memory mapped files, -; copy-on-write memory, large memory support, and underlying support for the cache manager. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _MemGlobalAlloc -; _MemGlobalFree -; _MemGlobalLock -; _MemGlobalSize -; _MemGlobalUnlock -; _MemMoveMemory -; _MemVirtualAlloc -; _MemVirtualAllocEx -; _MemVirtualFree -; _MemVirtualFreeEx -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagMEMMAP -; _MemFree -; _MemInit -; _MemRead -; _MemWrite -; __Mem_OpenProcess -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagMEMMAP -; Description ...: Contains information about the memory -; Fields ........: hProc - Handle to the external process -; Size - Size, in bytes, of the memory block allocated -; Mem - Pointer to the memory block -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagMEMMAP = "handle hProc;ulong_ptr Size;ptr Mem" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: _MemFree -; Description ...: Releases a memory map structure for a control -; Syntax.........: _MemFree ( ByRef $tMemMap ) -; Parameters ....: $tMemMap - tagMEMMAP structure -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally by Auto3Lib and should not normally be called -; Related .......: _MemInit -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _MemFree(ByRef $tMemMap) - Local $pMemory = DllStructGetData($tMemMap, "Mem") - Local $hProcess = DllStructGetData($tMemMap, "hProc") - Local $bResult = _MemVirtualFreeEx($hProcess, $pMemory, 0, $MEM_RELEASE) - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hProcess) - If @error Then Return SetError(@error, @extended, False) - Return $bResult -EndFunc ;==>_MemFree - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemGlobalAlloc($iBytes, $iFlags = 0) - Local $aResult = DllCall("kernel32.dll", "handle", "GlobalAlloc", "uint", $iFlags, "ulong_ptr", $iBytes) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_MemGlobalAlloc - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemGlobalFree($hMemory) - Local $aResult = DllCall("kernel32.dll", "ptr", "GlobalFree", "handle", $hMemory) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_MemGlobalFree - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemGlobalLock($hMemory) - Local $aResult = DllCall("kernel32.dll", "ptr", "GlobalLock", "handle", $hMemory) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_MemGlobalLock - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemGlobalSize($hMemory) - Local $aResult = DllCall("kernel32.dll", "ulong_ptr", "GlobalSize", "handle", $hMemory) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_MemGlobalSize - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemGlobalUnlock($hMemory) - Local $aResult = DllCall("kernel32.dll", "bool", "GlobalUnlock", "handle", $hMemory) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_MemGlobalUnlock - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: _MemInit -; Description ...: Initializes a tagMEMMAP structure for a control -; Syntax.........: _MemInit ( $hWnd, $iSize, ByRef $tMemMap ) -; Parameters ....: $hWnd - Window handle of the process where memory will be mapped -; $iSize - Size, in bytes, of memory space to map -; $tMemMap - tagMEMMAP structure that will be initialized -; Return values .: Success - Pointer to reserved memory block -; Failure - 0 -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally by Auto3Lib and should not normally be called -; Related .......: _MemFree -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _MemInit($hWnd, $iSize, ByRef $tMemMap) - Local $aResult = DllCall("user32.dll", "dword", "GetWindowThreadProcessId", "hwnd", $hWnd, "dword*", 0) - If @error Then Return SetError(@error + 10, @extended, 0) - Local $iProcessID = $aResult[2] - If $iProcessID = 0 Then Return SetError(1, 0, 0) ; Invalid window handle - - Local $iAccess = BitOR($PROCESS_VM_OPERATION, $PROCESS_VM_READ, $PROCESS_VM_WRITE) - Local $hProcess = __Mem_OpenProcess($iAccess, False, $iProcessID, True) - Local $iAlloc = BitOR($MEM_RESERVE, $MEM_COMMIT) - Local $pMemory = _MemVirtualAllocEx($hProcess, 0, $iSize, $iAlloc, $PAGE_READWRITE) - - If $pMemory = 0 Then Return SetError(2, 0, 0) ; Unable to allocate memory - - $tMemMap = DllStructCreate($tagMEMMAP) - DllStructSetData($tMemMap, "hProc", $hProcess) - DllStructSetData($tMemMap, "Size", $iSize) - DllStructSetData($tMemMap, "Mem", $pMemory) - Return $pMemory -EndFunc ;==>_MemInit - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemMoveMemory($pSource, $pDest, $iLength) - DllCall("kernel32.dll", "none", "RtlMoveMemory", "struct*", $pDest, "struct*", $pSource, "ulong_ptr", $iLength) - If @error Then Return SetError(@error, @extended) -EndFunc ;==>_MemMoveMemory - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: _MemRead -; Description ...: Transfer memory from external address space to internal address space -; Syntax.........: _MemRead ( ByRef $tMemMap, $pSrce, $pDest, $iSize ) -; Parameters ....: $tMemMap - tagMEMMAP structure -; $pSrce - Pointer to external memory -; $pDest - Pointer to internal memory -; $iSize - Size in bytes of memory to read -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally by Auto3Lib and should not normally be called -; Related .......: _MemWrite -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _MemRead(ByRef $tMemMap, $pSrce, $pDest, $iSize) - Local $aResult = DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", DllStructGetData($tMemMap, "hProc"), _ - "ptr", $pSrce, "struct*", $pDest, "ulong_ptr", $iSize, "ulong_ptr*", 0) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_MemRead - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: _MemWrite -; Description ...: Transfer memory to external address space from internal address space -; Syntax.........: _MemWrite ( ByRef $tMemMap, $pSrce [, $pDest = 0 [, $iSize = 0 [, $sSrce = "ptr"]]] ) -; Parameters ....: $tMemMap - tagMEMMAP structure -; $pSrce - Pointer to internal memory -; $pDest - Pointer to external memory -; $iSize - Size in bytes of memory to write -; $sSrce - Contains the data type for $pSrce -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally by Auto3Lib and should not normally be called -; Related .......: _MemRead -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func _MemWrite(ByRef $tMemMap, $pSrce, $pDest = 0, $iSize = 0, $sSrce = "struct*") - If $pDest = 0 Then $pDest = DllStructGetData($tMemMap, "Mem") - If $iSize = 0 Then $iSize = DllStructGetData($tMemMap, "Size") - Local $aResult = DllCall("kernel32.dll", "bool", "WriteProcessMemory", "handle", DllStructGetData($tMemMap, "hProc"), _ - "ptr", $pDest, $sSrce, $pSrce, "ulong_ptr", $iSize, "ulong_ptr*", 0) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_MemWrite - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemVirtualAlloc($pAddress, $iSize, $iAllocation, $iProtect) - Local $aResult = DllCall("kernel32.dll", "ptr", "VirtualAlloc", "ptr", $pAddress, "ulong_ptr", $iSize, "dword", $iAllocation, "dword", $iProtect) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_MemVirtualAlloc - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemVirtualAllocEx($hProcess, $pAddress, $iSize, $iAllocation, $iProtect) - Local $aResult = DllCall("kernel32.dll", "ptr", "VirtualAllocEx", "handle", $hProcess, "ptr", $pAddress, "ulong_ptr", $iSize, "dword", $iAllocation, "dword", $iProtect) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>_MemVirtualAllocEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemVirtualFree($pAddress, $iSize, $iFreeType) - Local $aResult = DllCall("kernel32.dll", "bool", "VirtualFree", "ptr", $pAddress, "ulong_ptr", $iSize, "dword", $iFreeType) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_MemVirtualFree - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _MemVirtualFreeEx($hProcess, $pAddress, $iSize, $iFreeType) - Local $aResult = DllCall("kernel32.dll", "bool", "VirtualFreeEx", "handle", $hProcess, "ptr", $pAddress, "ulong_ptr", $iSize, "dword", $iFreeType) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_MemVirtualFreeEx - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Mem_OpenProcess -; Description ...: Returns a handle of an existing process object -; Syntax.........: _WinAPI_OpenProcess ( $iAccess, $bInherit, $iProcessID [, $bDebugPriv = False] ) -; Parameters ....: $iAccess - Specifies the access to the process object -; $bInherit - Specifies whether the returned handle can be inherited -; $iProcessID - Specifies the process identifier of the process to open -; $bDebugPriv - Certain system processes can not be opened unless you have the debug security privilege. If -; +True, this function will attempt to open the process with debug priviliges if the process can not be opened -; +with standard access privileges. -; Return values .: Success - Process handle to the object -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ OpenProcess -; Example .......: -; =============================================================================================================================== -Func __Mem_OpenProcess($iAccess, $bInherit, $iProcessID, $bDebugPriv = False) - ; Attempt to open process with standard security priviliges - Local $aResult = DllCall("kernel32.dll", "handle", "OpenProcess", "dword", $iAccess, "bool", $bInherit, "dword", $iProcessID) - If @error Then Return SetError(@error + 10, @extended, 0) - If $aResult[0] Then Return $aResult[0] - If Not $bDebugPriv Then Return 0 - - ; Enable debug privileged mode - Local $hToken = _Security__OpenThreadTokenEx(BitOR($TOKEN_ADJUST_PRIVILEGES, $TOKEN_QUERY)) - If @error Then Return SetError(@error + 20, @extended, 0) - _Security__SetPrivilege($hToken, "SeDebugPrivilege", True) - Local $iError = @error - Local $iLastError = @extended - Local $iRet = 0 - If Not @error Then - ; Attempt to open process with debug privileges - $aResult = DllCall("kernel32.dll", "handle", "OpenProcess", "dword", $iAccess, "bool", $bInherit, "dword", $iProcessID) - $iError = @error - $iLastError = @extended - If $aResult[0] Then $iRet = $aResult[0] - - ; Disable debug privileged mode - _Security__SetPrivilege($hToken, "SeDebugPrivilege", False) - If @error Then - $iError = @error + 30 - $iLastError = @extended - EndIf - Else - $iError = @error + 40 - EndIf - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hToken) - ; No need to test @error. - - Return SetError($iError, $iLastError, $iRet) -EndFunc ;==>__Mem_OpenProcess diff --git a/build/Include/MemoryConstants.au3 b/build/Include/MemoryConstants.au3 deleted file mode 100644 index f9940549c..000000000 --- a/build/Include/MemoryConstants.au3 +++ /dev/null @@ -1,55 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Memory_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for Memory functions. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $GMEM_FIXED = 0x0000 -Global Const $GMEM_MOVEABLE = 0x0002 -Global Const $GMEM_NOCOMPACT = 0x0010 -Global Const $GMEM_NODISCARD = 0x0020 -Global Const $GMEM_ZEROINIT = 0x0040 -Global Const $GMEM_MODIFY = 0x0080 -Global Const $GMEM_DISCARDABLE = 0x0100 -Global Const $GMEM_NOT_BANKED = 0x1000 -Global Const $GMEM_SHARE = 0x2000 -Global Const $GMEM_DDESHARE = 0x2000 -Global Const $GMEM_NOTIFY = 0x4000 -Global Const $GMEM_LOWER = 0x1000 -Global Const $GMEM_VALID_FLAGS = 0x7F72 -Global Const $GMEM_INVALID_HANDLE = 0x8000 - -Global Const $GPTR = BitOR($GMEM_FIXED, $GMEM_ZEROINIT) ; in fact equal $GMEM_ZEROINIT -Global Const $GHND = BitOR($GMEM_MOVEABLE, $GMEM_ZEROINIT) - -; VirtualAlloc Allocation Type Constants - -Global Const $MEM_COMMIT = 0x00001000 -Global Const $MEM_RESERVE = 0x00002000 -Global Const $MEM_TOP_DOWN = 0x00100000 -Global Const $MEM_SHARED = 0x08000000 - -; VirtualAlloc Protection Constants - -Global Const $PAGE_NOACCESS = 0x00000001 -Global Const $PAGE_READONLY = 0x00000002 -Global Const $PAGE_READWRITE = 0x00000004 -Global Const $PAGE_EXECUTE = 0x00000010 -Global Const $PAGE_EXECUTE_READ = 0x00000020 -Global Const $PAGE_EXECUTE_READWRITE = 0x00000040 -Global Const $PAGE_EXECUTE_WRITECOPY = 0x00000080 -Global Const $PAGE_GUARD = 0x00000100 -Global Const $PAGE_NOCACHE = 0x00000200 -Global Const $PAGE_WRITECOMBINE = 0x00000400 -Global Const $PAGE_WRITECOPY = 0x00000008 - -; VirtualFree FreeType Constants - -Global Const $MEM_DECOMMIT = 0x00004000 -Global Const $MEM_RELEASE = 0x00008000 -; =============================================================================================================================== diff --git a/build/Include/MenuConstants.au3 b/build/Include/MenuConstants.au3 deleted file mode 100644 index fbd9c8a88..000000000 --- a/build/Include/MenuConstants.au3 +++ /dev/null @@ -1,124 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Menu_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for Menu functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $MF_UNHILITE = 0x0 -Global Const $MF_ENABLED = 0x0 -Global Const $MF_UNCHECKED = 0x0 -Global Const $MF_STRING = 0x0 -Global Const $MF_GRAYED = 0x00000001 -Global Const $MF_DISABLED = 0x00000002 -Global Const $MF_BITMAP = 0x00000004 -Global Const $MF_CHECKED = 0x00000008 -Global Const $MF_POPUP = 0x00000010 -Global Const $MF_MENUBARBREAK = 0x00000020 -Global Const $MF_MENUBREAK = 0x00000040 -Global Const $MF_HILITE = 0x00000080 -Global Const $MF_OWNERDRAW = 0x00000100 -Global Const $MF_USECHECKBITMAPS = 0x00000200 -Global Const $MF_BYPOSITION = 0x00000400 -Global Const $MF_SEPARATOR = 0x00000800 -Global Const $MF_DEFAULT = 0x00001000 -Global Const $MF_SYSMENU = 0x00002000 -Global Const $MF_HELP = 0x00004000 -Global Const $MF_RIGHTJUSTIFY = 0x00004000 -Global Const $MF_MOUSESELECT = 0x00008000 - -Global Const $MFS_GRAYED = 0x00000003 -Global Const $MFS_DISABLED = $MFS_GRAYED -Global Const $MFS_CHECKED = $MF_CHECKED -Global Const $MFS_HILITE = $MF_HILITE -Global Const $MFS_ENABLED = $MF_ENABLED -Global Const $MFS_UNCHECKED = $MF_UNCHECKED -Global Const $MFS_UNHILITE = $MF_UNHILITE -Global Const $MFS_DEFAULT = $MF_DEFAULT - -Global Const $MFT_STRING = $MF_STRING -Global Const $MFT_BITMAP = $MF_BITMAP -Global Const $MFT_MENUBARBREAK = $MF_MENUBARBREAK -Global Const $MFT_MENUBREAK = $MF_MENUBREAK -Global Const $MFT_OWNERDRAW = $MF_OWNERDRAW -Global Const $MFT_RADIOCHECK = 0x00000200 -Global Const $MFT_SEPARATOR = $MF_SEPARATOR -Global Const $MFT_RIGHTORDER = 0x00002000 -Global Const $MFT_RIGHTJUSTIFY = $MF_RIGHTJUSTIFY - -Global Const $MIIM_STATE = 0x00000001 -Global Const $MIIM_ID = 0x00000002 -Global Const $MIIM_SUBMENU = 0x00000004 -Global Const $MIIM_CHECKMARKS = 0x00000008 -Global Const $MIIM_TYPE = 0x00000010 -Global Const $MIIM_DATA = 0x00000020 -Global Const $MIIM_DATAMASK = 0x0000003F -Global Const $MIIM_STRING = 0x00000040 -Global Const $MIIM_BITMAP = 0x00000080 -Global Const $MIIM_FTYPE = 0x00000100 - -Global Const $MIM_MAXHEIGHT = 0x00000001 -Global Const $MIM_BACKGROUND = 0x00000002 -Global Const $MIM_HELPID = 0x00000004 -Global Const $MIM_MENUDATA = 0x00000008 -Global Const $MIM_STYLE = 0x00000010 -Global Const $MIM_APPLYTOSUBMENUS = 0x80000000 - -Global Const $MNS_CHECKORBMP = 0x04000000 -Global Const $MNS_NOTIFYBYPOS = 0x08000000 -Global Const $MNS_AUTODISMISS = 0x10000000 -Global Const $MNS_DRAGDROP = 0x20000000 -Global Const $MNS_MODELESS = 0x40000000 -Global Const $MNS_NOCHECK = 0x80000000 - -Global Const $TPM_LEFTBUTTON = 0x0 -Global Const $TPM_LEFTALIGN = 0x0 -Global Const $TPM_TOPALIGN = 0x0 -Global Const $TPM_HORIZONTAL = 0x0 -Global Const $TPM_RECURSE = 0x00000001 -Global Const $TPM_RIGHTBUTTON = 0x00000002 -Global Const $TPM_CENTERALIGN = 0x00000004 -Global Const $TPM_RIGHTALIGN = 0x00000008 -Global Const $TPM_VCENTERALIGN = 0x00000010 -Global Const $TPM_BOTTOMALIGN = 0x00000020 -Global Const $TPM_VERTICAL = 0x00000040 -Global Const $TPM_NONOTIFY = 0x00000080 -Global Const $TPM_RETURNCMD = 0x00000100 -Global Const $TPM_HORPOSANIMATION = 0x00000400 -Global Const $TPM_HORNEGANIMATION = 0x00000800 -Global Const $TPM_VERPOSANIMATION = 0x00001000 -Global Const $TPM_VERNEGANIMATION = 0x00002000 -Global Const $TPM_NOANIMATION = 0x00004000 -Global Const $TPM_LAYOUTRTL = 0x00008000 -Global Const $TPM_WORKAREA = 0x00010000 - -; System Menu Commands -Global Const $SC_SIZE = 0xF000 -Global Const $SC_MOVE = 0xF010 -Global Const $SC_MINIMIZE = 0xF020 -Global Const $SC_MAXIMIZE = 0xF030 -Global Const $SC_NEXTWINDOW = 0xF040 -Global Const $SC_PREVWINDOW = 0xF050 -Global Const $SC_CLOSE = 0xF060 -Global Const $SC_VSCROLL = 0xF070 -Global Const $SC_HSCROLL = 0xF080 -Global Const $SC_MOUSEMENU = 0xF090 -Global Const $SC_KEYMENU = 0xF100 -Global Const $SC_ARRANGE = 0xF110 -Global Const $SC_RESTORE = 0xF120 -Global Const $SC_TASKLIST = 0xF130 -Global Const $SC_SCREENSAVE = 0xF140 -Global Const $SC_HOTKEY = 0xF150 -Global Const $SC_DEFAULT = 0xF160 -Global Const $SC_MONITORPOWER = 0xF170 -Global Const $SC_CONTEXTHELP = 0xF180 -Global Const $SC_SEPARATOR = 0xF00F - -; Reserved IDs for System Objects -Global Const $OBJID_SYSMENU = 0xFFFFFFFF -Global Const $OBJID_MENU = 0xFFFFFFFD -; =============================================================================================================================== diff --git a/build/Include/Misc.au3 b/build/Include/Misc.au3 deleted file mode 100644 index a6136e62d..000000000 --- a/build/Include/Misc.au3 +++ /dev/null @@ -1,530 +0,0 @@ -#include-once - -#include "FontConstants.au3" -#include "StructureConstants.au3" -#include "WinAPIError.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Misc -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Common Dialogs. -; Author(s) .....: Gary Frost, Florian Fida (Piccaso), Dale (Klaatu) Thompson, Valik, ezzetabi, Jon, Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__MISCCONSTANT_CC_ANYCOLOR = 0x0100 -Global Const $__MISCCONSTANT_CC_FULLOPEN = 0x0002 -Global Const $__MISCCONSTANT_CC_RGBINIT = 0x0001 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _ChooseColor -; _ChooseFont -; _ClipPutFile -; _MouseTrap -; _Singleton -; _IsPressed -; _VersionCompare -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagCHOOSECOLOR -; $tagCHOOSEFONT -; __MISC_GetDC -; __MISC_GetDeviceCaps -; __MISC_ReleaseDC -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagCHOOSECOLOR -; Description ...: Contains information the _ChooseColor function uses to initialize the Color dialog box -; Fields ........: Size - Specifies the size, in bytes, of the structure -; hWndOwner - Handle to the window that owns the dialog box -; hInstance - If the $CC_ENABLETEMPLATEHANDLE flag is set in the Flags member, hInstance is a handle to a memory -; +object containing a dialog box template. If the $CC_ENABLETEMPLATE flag is set, hInstance is a handle to a module -; +that contains a dialog box template named by the lpTemplateName member. If neither $CC_ENABLETEMPLATEHANDLE -; +nor $CC_ENABLETEMPLATE is set, this member is ignored. -; rgbResult - If the $CC_RGBINIT flag is set, rgbResult specifies the color initially selected when the dialog -; +box is created. -; CustColors - Pointer to an array of 16 values that contain red, green, blue (RGB) values for the custom color -; +boxes in the dialog box. -; Flags - A set of bit flags that you can use to initialize the Color dialog box. When the dialog box returns, -; +it sets these flags to indicate the user's input. This member can be a combination of the following flags: -; |$CC_ANYCOLOR - Causes the dialog box to display all available colors in the set of basic colors -; |$CC_ENABLEHOOK - Enables the hook procedure specified in the lpfnHook member -; |$CC_ENABLETEMPLATE - Indicates that the hInstance and lpTemplateName members specify a dialog box template -; |$CC_ENABLETEMPLATEHANDLE - Indicates that the hInstance member identifies a data block that contains a preloaded -; +dialog box template -; |$CC_FULLOPEN - Causes the dialog box to display the additional controls that allow the user to create -; +custom colors -; |$CC_PREVENTFULLOPEN - Disables the Define Custom Color -; |$CC_RGBINIT - Causes the dialog box to use the color specified in the rgbResult member as the initial -; +color selection -; |$CC_SHOWHELP - Causes the dialog box to display the Help button -; |$CC_SOLIDCOLOR - Causes the dialog box to display only solid colors in the set of basic colors -; lCustData - Specifies application-defined data that the system passes to the hook procedure identified by the -; +lpfnHook member -; lpfnHook - Pointer to a CCHookProc hook procedure that can process messages intended for the dialog box. -; +This member is ignored unless the CC_ENABLEHOOK flag is set in the Flags member -; lpTemplateName - Pointer to a null-terminated string that names the dialog box template resource in the module -; +identified by the hInstance m -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagCHOOSECOLOR = "dword Size;hwnd hWndOwnder;handle hInstance;dword rgbResult;ptr CustColors;dword Flags;lparam lCustData;" & _ - "ptr lpfnHook;ptr lpTemplateName" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagCHOOSEFONT -; Description ...: Contains information that the _ChooseFont function uses to initialize the Font dialog box -; Fields ........: Size - Specifies the size, in bytes, of the structure -; hWndOwner - Handle to the window that owns the dialog box -; hDC - Handle to the device context -; LogFont - Pointer to a structure -; PointSize - Specifies the size of the selected font, in units of 1/10 of a point -; Flags - A set of bit flags that you can use to initialize the Font dialog box. -; +This parameter can be one of the following values: -; |$CF_APPLY - Causes the dialog box to display the Apply button -; |$CF_ANSIONLY - This flag is obsolete -; |$CF_TTONLY - Specifies that ChooseFont should only enumerate and allow the selection of TrueType fonts -; |$CF_EFFECTS - Causes the dialog box to display the controls that allow the user to specify strikeout, -; +underline, and text color options -; |$CF_ENABLEHOOK - Enables the hook procedure specified in the lpfnHook member of this structure -; |$CF_ENABLETEMPLATE - Indicates that the hInstance and lpTemplateName members specify a dialog box template to use -; +in place of the default template -; |$CF_ENABLETEMPLATEHANDLE - Indicates that the hInstance member identifies a data block that contains a preloaded -; +dialog box template -; |$CF_FIXEDPITCHONLY - Specifies that ChooseFont should select only fixed-pitch fonts -; |$CF_FORCEFONTEXIST - Specifies that ChooseFont should indicate an error condition if the user attempts to select -; +a font or style that does not exist. -; |$CF_INITTOLOGFONTSTRUCT - Specifies that ChooseFont should use the structure pointed to by the lpLogFont member -; +to initialize the dialog box controls. -; |$CF_LIMITSIZE - Specifies that ChooseFont should select only font sizes within the range specified by the nSizeMin and nSizeMax members. -; |$CF_NOOEMFONTS - Same as the $CF_NOVECTORFONTS flag. -; |$CF_NOFACESEL - When using a LOGFONT structure to initialize the dialog box controls, use this flag to selectively prevent the dialog box -; +from displaying an initial selection for the font name combo box. -; |$CF_NOSCRIPTSEL - Disables the Script combo box. -; |$CF_NOSTYLESEL - When using a LOGFONT structure to initialize the dialog box controls, use this flag to selectively prevent the dialog box -; +from displaying an initial selection for the font style combo box. -; |$CF_NOSIZESEL - When using a structure to initialize the dialog box controls, use this flag to selectively prevent the dialog box from -; +displaying an initial selection for the font size combo box. -; |$CF_NOSIMULATIONS - Specifies that ChooseFont should not allow graphics device interface (GDI) font simulations. -; |$CF_NOVECTORFONTS - Specifies that ChooseFont should not allow vector font selections. -; |$CF_NOVERTFONTS - Causes the Font dialog box to list only horizontally oriented fonts. -; |$CF_PRINTERFONTS - Causes the dialog box to list only the fonts supported by the printer associated with the device context -; +(or information context) identified by the hDC member. -; |$CF_SCALABLEONLY - Specifies that ChooseFont should allow only the selection of scalable fonts. -; |$CF_SCREENFONTS - Causes the dialog box to list only the screen fonts supported by the system. -; |$CF_SCRIPTSONLY - Specifies that ChooseFont should allow selection of fonts for all non-OEM and Symbol character sets, as well as -; +the ANSI character set. This supersedes the $CF_ANSIONLY value. -; |$CF_SELECTSCRIPT - When specified on input, only fonts with the character set identified in the lfCharSet member of the LOGFONT -; +structure are displayed. -; |$CF_SHOWHELP - Causes the dialog box to display the Help button. The hwndOwner member must specify the window to receive the HELPMSGSTRING -; +registered messages that the dialog box sends when the user clicks the Help button. -; |$CF_USESTYLE - Specifies that the lpszStyle member is a pointer to a buffer that contains style data that ChooseFont should use to initialize -; +the Font Style combo box. When the user closes the dialog box, ChooseFont copies style data for the user's selection to this buffer. -; |$CF_WYSIWYG - Specifies that ChooseFont should allow only the selection of fonts available on both the printer and the display -; rgbColors - If the CF_EFFECTS flag is set, rgbColors specifies the initial text color -; CustData - Specifies application-defined data that the system passes to the hook procedure identified by the lpfnHook member -; fnHook - Pointer to a CFHookProc hook procedure that can process messages intended for the dialog box -; TemplateName - Pointer to a null-terminated string that names the dialog box template resource in the module -; +identified by the hInstance member -; hInstance - If the $CF_ENABLETEMPLATEHANDLE flag is set in the Flags member, hInstance is a handle to a memory -; +object containing a dialog box template. If the $CF_ENABLETEMPLATE flag is set, hInstance is a handle to a -; +module that contains a dialog box template named by the TemplateName member. If neither $CF_ENABLETEMPLATEHANDLE -; +nor $CF_ENABLETEMPLATE is set, this member is ignored. -; szStyle - Pointer to a buffer that contains style data -; FontType - Specifies the type of the selected font when ChooseFont returns. This member can be one or more of the following values. -; |$BOLD_FONTTYPE - The font weight is bold. This information is duplicated in the lfWeight member of the LOGFONT -; +structure and is equivalent to FW_BOLD. -; |$iItalic_FONTTYPE - The italic font attribute is set. This information is duplicated in the lfItalic member of the LOGFONT structure. -; |$PRINTER_FONTTYPE - The font is a printer font. -; |$REGULAR_FONTTYPE - The font weight is normal. This information is duplicated in the lfWeight member of the LOGFONT structure and is -; +equivalent to FW_REGULAR. -; |$SCREEN_FONTTYPE - The font is a screen font. -; |$SIMULATED_FONTTYPE - The font is simulated by the graphics device interface (GDI). -; SizeMin - Specifies the minimum point size a user can select -; SizeMax - Specifies the maximum point size a user can select -; Author ........: Gary Frost (gafrost) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagCHOOSEFONT = "dword Size;hwnd hWndOwner;handle hDC;ptr LogFont;int PointSize;dword Flags;dword rgbColors;lparam CustData;" & _ - "ptr fnHook;ptr TemplateName;handle hInstance;ptr szStyle;word FontType;int SizeMin;int SizeMax" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _ChooseColor($iReturnType = 0, $iColorRef = 0, $iRefType = 0, $hWndOwnder = 0) - Local $tagCustcolors = "dword[16]" - - Local $tChoose = DllStructCreate($tagCHOOSECOLOR) - Local $tCc = DllStructCreate($tagCustcolors) - - If $iRefType = 1 Then ; BGR hex color to colorref - $iColorRef = Int($iColorRef) - ElseIf $iRefType = 2 Then ; RGB hex color to colorref - $iColorRef = Hex(String($iColorRef), 6) - $iColorRef = '0x' & StringMid($iColorRef, 5, 2) & StringMid($iColorRef, 3, 2) & StringMid($iColorRef, 1, 2) - EndIf - - DllStructSetData($tChoose, "Size", DllStructGetSize($tChoose)) - DllStructSetData($tChoose, "hWndOwnder", $hWndOwnder) - DllStructSetData($tChoose, "rgbResult", $iColorRef) - DllStructSetData($tChoose, "CustColors", DllStructGetPtr($tCc)) - DllStructSetData($tChoose, "Flags", BitOR($__MISCCONSTANT_CC_ANYCOLOR, $__MISCCONSTANT_CC_FULLOPEN, $__MISCCONSTANT_CC_RGBINIT)) - - Local $aResult = DllCall("comdlg32.dll", "bool", "ChooseColor", "struct*", $tChoose) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] = 0 Then Return SetError(-3, -3, -1) ; user selected cancel or struct settings incorrect - - Local $sColor_picked = DllStructGetData($tChoose, "rgbResult") - - If $iReturnType = 1 Then ; return Hex BGR Color - Return '0x' & Hex(String($sColor_picked), 6) - ElseIf $iReturnType = 2 Then ; return Hex RGB Color - $sColor_picked = Hex(String($sColor_picked), 6) - Return '0x' & StringMid($sColor_picked, 5, 2) & StringMid($sColor_picked, 3, 2) & StringMid($sColor_picked, 1, 2) - ElseIf $iReturnType = 0 Then ; return RGB COLORREF - Return $sColor_picked - Else - Return SetError(-4, -4, -1) - EndIf -EndFunc ;==>_ChooseColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _ChooseFont($sFontName = "Courier New", $iPointSize = 10, $iFontColorRef = 0, $iFontWeight = 0, $bItalic = False, $bUnderline = False, $bStrikethru = False, $hWndOwner = 0) - Local $iItalic = 0, $iUnderline = 0, $iStrikeout = 0 - $iFontColorRef = BitOR(BitShift(BitAND($iFontColorRef, 0x000000FF), -16), BitAND($iFontColorRef, 0x0000FF00), BitShift(BitAND($iFontColorRef, 0x00FF0000), 16)) - - Local $hDC = __MISC_GetDC(0) - Local $iHeight = Round(($iPointSize * __MISC_GetDeviceCaps($hDC, $LOGPIXELSX)) / 72, 0) - __MISC_ReleaseDC(0, $hDC) - - Local $tChooseFont = DllStructCreate($tagCHOOSEFONT) - Local $tLogFont = DllStructCreate($tagLOGFONT) - - DllStructSetData($tChooseFont, "Size", DllStructGetSize($tChooseFont)) - DllStructSetData($tChooseFont, "hWndOwner", $hWndOwner) - DllStructSetData($tChooseFont, "LogFont", DllStructGetPtr($tLogFont)) - DllStructSetData($tChooseFont, "PointSize", $iPointSize) - DllStructSetData($tChooseFont, "Flags", BitOR($CF_SCREENFONTS, $CF_PRINTERFONTS, $CF_EFFECTS, $CF_INITTOLOGFONTSTRUCT, $CF_NOSCRIPTSEL)) - DllStructSetData($tChooseFont, "rgbColors", $iFontColorRef) - DllStructSetData($tChooseFont, "FontType", 0) - - DllStructSetData($tLogFont, "Height", $iHeight) - DllStructSetData($tLogFont, "Weight", $iFontWeight) - DllStructSetData($tLogFont, "Italic", $bItalic) - DllStructSetData($tLogFont, "Underline", $bUnderline) - DllStructSetData($tLogFont, "Strikeout", $bStrikethru) - DllStructSetData($tLogFont, "FaceName", $sFontName) - - Local $aResult = DllCall("comdlg32.dll", "bool", "ChooseFontW", "struct*", $tChooseFont) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] = 0 Then Return SetError(-3, -3, -1) ; user selected cancel or struct settings incorrect - - Local $sFaceName = DllStructGetData($tLogFont, "FaceName") - If StringLen($sFaceName) = 0 And StringLen($sFontName) > 0 Then $sFaceName = $sFontName - - If DllStructGetData($tLogFont, "Italic") Then $iItalic = 2 - If DllStructGetData($tLogFont, "Underline") Then $iUnderline = 4 - If DllStructGetData($tLogFont, "Strikeout") Then $iStrikeout = 8 - - Local $iAttributes = BitOR($iItalic, $iUnderline, $iStrikeout) - Local $iSize = DllStructGetData($tChooseFont, "PointSize") / 10 - Local $iColorRef = DllStructGetData($tChooseFont, "rgbColors") - Local $iWeight = DllStructGetData($tLogFont, "Weight") - - Local $sColor_picked = Hex(String($iColorRef), 6) - - Return StringSplit($iAttributes & "," & $sFaceName & "," & $iSize & "," & $iWeight & "," & $iColorRef & "," & '0x' & $sColor_picked & "," & '0x' & StringMid($sColor_picked, 5, 2) & StringMid($sColor_picked, 3, 2) & StringMid($sColor_picked, 1, 2), ",") -EndFunc ;==>_ChooseFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: Piccaso (Florian Fida) -; Modified.......: Gary Frost (gafrost) -; =============================================================================================================================== -Func _ClipPutFile($sFilePath, $sDelimiter = "|") - Local Const $GMEM_MOVEABLE = 0x0002, $CF_HDROP = 15 - - $sFilePath &= $sDelimiter & $sDelimiter - Local $nGlobMemSize = 2 * (StringLen($sFilePath) + 20) - - Local $aResult = DllCall("user32.dll", "bool", "OpenClipboard", "hwnd", 0) - If @error Or $aResult[0] = 0 Then Return SetError(1, _WinAPI_GetLastError(), False) - Local $iError = 0, $iLastError = 0 - $aResult = DllCall("user32.dll", "bool", "EmptyClipboard") - If @error Or Not $aResult[0] Then - $iError = 2 - $iLastError = _WinAPI_GetLastError() - Else - $aResult = DllCall("kernel32.dll", "handle", "GlobalAlloc", "uint", $GMEM_MOVEABLE, "ulong_ptr", $nGlobMemSize) - If @error Or Not $aResult[0] Then - $iError = 3 - $iLastError = _WinAPI_GetLastError() - Else - Local $hGlobal = $aResult[0] - $aResult = DllCall("kernel32.dll", "ptr", "GlobalLock", "handle", $hGlobal) - If @error Or Not $aResult[0] Then - $iError = 4 - $iLastError = _WinAPI_GetLastError() - Else - Local $hLock = $aResult[0] - Local $tDROPFILES = DllStructCreate("dword pFiles;" & $tagPOINT & ";bool fNC;bool fWide;wchar[" & StringLen($sFilePath) + 1 & "]", $hLock) - If @error Then Return SetError(5, 6, False) - - Local $tStruct = DllStructCreate("dword;long;long;bool;bool") - - DllStructSetData($tDROPFILES, "pFiles", DllStructGetSize($tStruct)) - DllStructSetData($tDROPFILES, "X", 0) - DllStructSetData($tDROPFILES, "Y", 0) - DllStructSetData($tDROPFILES, "fNC", 0) - DllStructSetData($tDROPFILES, "fWide", 1) - DllStructSetData($tDROPFILES, 6, $sFilePath) - For $i = 1 To StringLen($sFilePath) - If DllStructGetData($tDROPFILES, 6, $i) = $sDelimiter Then DllStructSetData($tDROPFILES, 6, Chr(0), $i) - Next - - $aResult = DllCall("user32.dll", "handle", "SetClipboardData", "uint", $CF_HDROP, "handle", $hGlobal) - If @error Or Not $aResult[0] Then - $iError = 6 - $iLastError = _WinAPI_GetLastError() - EndIf - - $aResult = DllCall("kernel32.dll", "bool", "GlobalUnlock", "handle", $hGlobal) - If (@error Or Not $aResult[0]) And Not $iError And _WinAPI_GetLastError() Then - $iError = 8 - $iLastError = _WinAPI_GetLastError() - EndIf - EndIf - $aResult = DllCall("kernel32.dll", "ptr", "GlobalFree", "handle", $hGlobal) - If (@error Or $aResult[0]) And Not $iError Then - $iError = 9 - $iLastError = _WinAPI_GetLastError() - EndIf - EndIf - EndIf - $aResult = DllCall("user32.dll", "bool", "CloseClipboard") - If (@error Or Not $aResult[0]) And Not $iError Then Return SetError(7, _WinAPI_GetLastError(), False) - If $iError Then Return SetError($iError, $iLastError, False) - Return True -EndFunc ;==>_ClipPutFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _MouseTrap($iLeft = 0, $iTop = 0, $iRight = 0, $iBottom = 0) - Local $aReturn = 0 - If $iLeft = Default Then $iLeft = 0 - If $iTop = Default Then $iTop = 0 - If $iRight = Default Then $iRight = 0 - If $iBottom = Default Then $iBottom = 0 - If @NumParams = 0 Then - $aReturn = DllCall("user32.dll", "bool", "ClipCursor", "ptr", 0) - If @error Or Not $aReturn[0] Then Return SetError(1, _WinAPI_GetLastError(), False) - Else - If @NumParams = 2 Then - $iRight = $iLeft + 1 - $iBottom = $iTop + 1 - EndIf - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, "Left", $iLeft) - DllStructSetData($tRECT, "Top", $iTop) - DllStructSetData($tRECT, "Right", $iRight) - DllStructSetData($tRECT, "Bottom", $iBottom) - $aReturn = DllCall("user32.dll", "bool", "ClipCursor", "struct*", $tRECT) - If @error Or Not $aReturn[0] Then Return SetError(2, _WinAPI_GetLastError(), False) - EndIf - Return True -EndFunc ;==>_MouseTrap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Valik -; Modified.......: -; =============================================================================================================================== -Func _Singleton($sOccurrenceName, $iFlag = 0) - Local Const $ERROR_ALREADY_EXISTS = 183 - Local Const $SECURITY_DESCRIPTOR_REVISION = 1 - Local $tSecurityAttributes = 0 - - If BitAND($iFlag, 2) Then - ; The size of SECURITY_DESCRIPTOR is 20 bytes. We just - ; need a block of memory the right size, we aren't going to - ; access any members directly so it's not important what - ; the members are, just that the total size is correct. - Local $tSecurityDescriptor = DllStructCreate("byte;byte;word;ptr[4]") - ; Initialize the security descriptor. - Local $aRet = DllCall("advapi32.dll", "bool", "InitializeSecurityDescriptor", _ - "struct*", $tSecurityDescriptor, "dword", $SECURITY_DESCRIPTOR_REVISION) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then - ; Add the NULL DACL specifying access to everybody. - $aRet = DllCall("advapi32.dll", "bool", "SetSecurityDescriptorDacl", _ - "struct*", $tSecurityDescriptor, "bool", 1, "ptr", 0, "bool", 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then - ; Create a SECURITY_ATTRIBUTES structure. - $tSecurityAttributes = DllStructCreate($tagSECURITY_ATTRIBUTES) - ; Assign the members. - DllStructSetData($tSecurityAttributes, 1, DllStructGetSize($tSecurityAttributes)) - DllStructSetData($tSecurityAttributes, 2, DllStructGetPtr($tSecurityDescriptor)) - DllStructSetData($tSecurityAttributes, 3, 0) - EndIf - EndIf - EndIf - - Local $aHandle = DllCall("kernel32.dll", "handle", "CreateMutexW", "struct*", $tSecurityAttributes, "bool", 1, "wstr", $sOccurrenceName) - If @error Then Return SetError(@error, @extended, 0) - Local $aLastError = DllCall("kernel32.dll", "dword", "GetLastError") - If @error Then Return SetError(@error, @extended, 0) - If $aLastError[0] = $ERROR_ALREADY_EXISTS Then - If BitAND($iFlag, 1) Then - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $aHandle[0]) - If @error Then Return SetError(@error, @extended, 0) - Return SetError($aLastError[0], $aLastError[0], 0) - Else - Exit -1 - EndIf - EndIf - Return $aHandle[0] -EndFunc ;==>_Singleton - -; #FUNCTION# ==================================================================================================================== -; Author ........: ezzetabi and Jon -; Modified.......: -; =============================================================================================================================== -Func _IsPressed($sHexKey, $vDLL = 'user32.dll') - ; $hexKey must be the value of one of the keys. - ; _Is_Key_Pressed will return 0 if the key is not pressed, 1 if it is. - Local $a_R = DllCall($vDLL, "short", "GetAsyncKeyState", "int", '0x' & $sHexKey) - If @error Then Return SetError(@error, @extended, False) - Return BitAND($a_R[0], 0x8000) <> 0 -EndFunc ;==>_IsPressed - -; #FUNCTION# ==================================================================================================================== -; Author ........: Valik -; Modified.......: -; =============================================================================================================================== -Func _VersionCompare($sVersion1, $sVersion2) - If $sVersion1 = $sVersion2 Then Return 0 - Local $sSubVersion1 = "", $sSubVersion2 = "" - If StringIsAlpha(StringRight($sVersion1, 1)) Then - $sSubVersion1 = StringRight($sVersion1, 1) - $sVersion1 = StringTrimRight($sVersion1, 1) - EndIf - If StringIsAlpha(StringRight($sVersion2, 1)) Then - $sSubVersion2 = StringRight($sVersion2, 1) - $sVersion2 = StringTrimRight($sVersion2, 1) - EndIf - - Local $aVersion1 = StringSplit($sVersion1, ".,"), _ - $aVersion2 = StringSplit($sVersion2, ".,") - Local $iPartDifference = ($aVersion1[0] - $aVersion2[0]) - If $iPartDifference < 0 Then - ;$sVersion1 consists of less parts, fill the missing parts with zeros - ReDim $aVersion1[UBound($aVersion2)] - $aVersion1[0] = UBound($aVersion1) - 1 - For $i = (UBound($aVersion1) - Abs($iPartDifference)) To $aVersion1[0] - $aVersion1[$i] = "0" - Next - ElseIf $iPartDifference > 0 Then - ;$sVersion2 consists of less parts, fill the missing parts with zeros - ReDim $aVersion2[UBound($aVersion1)] - $aVersion2[0] = UBound($aVersion2) - 1 - For $i = (UBound($aVersion2) - Abs($iPartDifference)) To $aVersion2[0] - $aVersion2[$i] = "0" - Next - EndIf - For $i = 1 To $aVersion1[0] - ; Compare this segment as numbers - If StringIsDigit($aVersion1[$i]) And StringIsDigit($aVersion2[$i]) Then - If Number($aVersion1[$i]) > Number($aVersion2[$i]) Then - Return SetExtended(2, 1) ; @extended set to 2 for number comparison. - ElseIf Number($aVersion1[$i]) < Number($aVersion2[$i]) Then - Return SetExtended(2, -1) ; @extended set to 2 for number comparison. - ElseIf $i = $aVersion1[0] Then - ; compare extra version informtion as string - If $sSubVersion1 > $sSubVersion2 Then - Return SetExtended(3, 1) ; @extended set to 3 for subversion comparison. - ElseIf $sSubVersion1 < $sSubVersion2 Then - Return SetExtended(3, -1) ; @extended set to 3 for subversion comparison. - EndIf - EndIf - Else ; Compare the segment as strings - If $aVersion1[$i] > $aVersion2[$i] Then - Return SetExtended(1, 1) ; @extended set to 1 for string comparison. - ElseIf $aVersion1[$i] < $aVersion2[$i] Then - Return SetExtended(1, -1) ; @extended set to 1 for string comparison. - EndIf - EndIf - Next - ; Versions are equal - Return SetExtended(Abs($iPartDifference), 0) -EndFunc ;==>_VersionCompare - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __MISC_GetDC -; Description ...: Retrieves a handle of a display device context for the client area a window -; Syntax.........: __MISC_GetDC ( $hWnd ) -; Parameters ....: $hWnd - Handle of window -; Return values .: Success - The device context for the given window's client area -; Failure - 0 -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: After painting with a common device context, the __MISC_ReleaseDC function must be called to release the DC -; Related .......: -; Link ..........: @@MsdnLink@@ GetDC -; Example .......: -; =============================================================================================================================== -Func __MISC_GetDC($hWnd) - Local $aResult = DllCall("user32.dll", "handle", "GetDC", "hwnd", $hWnd) - If @error Or Not $aResult[0] Then Return SetError(1, _WinAPI_GetLastError(), 0) - Return $aResult[0] -EndFunc ;==>__MISC_GetDC - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __MISC_GetDeviceCaps -; Description ...: Retrieves device specific information about a specified device -; Syntax.........: __MISC_GetDeviceCaps ( $hDC, $iIndex ) -; Parameters ....: $hDC - Identifies the device context -; $iIndex - Specifies the item to return -; Return values .: Success - The value of the desired item -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ GetDeviceCaps -; Example .......: -; =============================================================================================================================== -Func __MISC_GetDeviceCaps($hDC, $iIndex) - Local $aResult = DllCall("gdi32.dll", "int", "GetDeviceCaps", "handle", $hDC, "int", $iIndex) - If @error Then Return SetError(@error, @extended, 0) - Return $aResult[0] -EndFunc ;==>__MISC_GetDeviceCaps - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __MISC_ReleaseDC -; Description ...: Releases a device context -; Syntax.........: __MISC_ReleaseDC ( $hWnd, $hDC ) -; Parameters ....: $hWnd - Handle of window -; $hDC - Identifies the device context to be released -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: The application must call the __MISC_ReleaseDC function for each call to the _WinAPI_GetWindowDC function and for -; each call to the _WinAPI_GetDC function that retrieves a common device context. -; Related .......: _WinAPI_GetDC, _WinAPI_GetWindowDC -; Link ..........: @@MsdnLink@@ ReleaseDC -; Example .......: -; =============================================================================================================================== -Func __MISC_ReleaseDC($hWnd, $hDC) - Local $aResult = DllCall("user32.dll", "int", "ReleaseDC", "hwnd", $hWnd, "handle", $hDC) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] <> 0 -EndFunc ;==>__MISC_ReleaseDC diff --git a/build/Include/MsgBoxConstants.au3 b/build/Include/MsgBoxConstants.au3 deleted file mode 100644 index 9dede2f86..000000000 --- a/build/Include/MsgBoxConstants.au3 +++ /dev/null @@ -1,68 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: MsgBox_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script when using function MsgBox. -; Author(s) .....: guinness, jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Message Box Constants -; Indicates the buttons displayed in the message box -Global Const $MB_OK = 0 ; One push button: OK -Global Const $MB_OKCANCEL = 1 ; Two push buttons: OK and Cancel -Global Const $MB_ABORTRETRYIGNORE = 2 ; Three push buttons: Abort, Retry, and Ignore -Global Const $MB_YESNOCANCEL = 3 ; Three push buttons: Yes, No, and Cancel -Global Const $MB_YESNO = 4 ; Two push buttons: Yes and No -Global Const $MB_RETRYCANCEL = 5 ; Two push buttons: Retry and Cancel -Global Const $MB_CANCELTRYCONTINUE = 6 ; Three buttons: Cancel, Try Again and Continue -Global Const $MB_HELP = 0x4000 ; Adds a Help button to the message box. When the user clicks the Help button or presses F1, the system sends a WM_HELP message to the owner. - -; Displays an icon in the message box -Global Const $MB_ICONSTOP = 16 ; Stop-sign icon -Global Const $MB_ICONERROR = 16 ; Stop-sign icon -Global Const $MB_ICONHAND = 16 ; Stop-sign icon -Global Const $MB_ICONQUESTION = 32 ; Question-mark icon -Global Const $MB_ICONEXCLAMATION = 48 ; Exclamation-point icon -Global Const $MB_ICONWARNING = 48 ; Exclamation-point icon -Global Const $MB_ICONINFORMATION = 64 ; Icon consisting of an 'i' in a circle -Global Const $MB_ICONASTERISK = 64 ; Icon consisting of an 'i' in a circle -Global Const $MB_USERICON = 0x00000080 - -; Indicates the default button -Global Const $MB_DEFBUTTON1 = 0 ; The first button is the default button -Global Const $MB_DEFBUTTON2 = 256 ; The second button is the default button -Global Const $MB_DEFBUTTON3 = 512 ; The third button is the default button -Global Const $MB_DEFBUTTON4 = 768 ; The fourth button is the default button. - -; Indicates the modality of the dialog box -Global Const $MB_APPLMODAL = 0 ; Application modal -Global Const $MB_SYSTEMMODAL = 4096 ; System modal -Global Const $MB_TASKMODAL = 8192 ; Task modal - -; Indicates miscellaneous message box attributes -Global Const $MB_DEFAULT_DESKTOP_ONLY = 0x00020000 ; Same as desktop of the interactive window station -Global Const $MB_RIGHT = 0x00080000 ; The text is right-justified. -Global Const $MB_RTLREADING = 0x00100000 ; Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems. -Global Const $MB_SETFOREGROUND = 0x00010000 ; The message box becomes the foreground window -Global Const $MB_TOPMOST = 0x00040000 ; The message box is created with the WS_EX_TOPMOST window style. -Global Const $MB_SERVICE_NOTIFICATION = 0x00200000 ; The caller is a service notifying the user of an event. - -Global Const $MB_RIGHTJUSTIFIED = $MB_RIGHT ; Do not use, see $MB_RIGHT. Included for backwards compatibility. - -; Indicates the button selected in the message box -Global Const $IDTIMEOUT = -1 ; The message box timed out -Global Const $IDOK = 1 ; OK button was selected -Global Const $IDCANCEL = 2 ; Cancel button was selected -Global Const $IDABORT = 3 ; Abort button was selected -Global Const $IDRETRY = 4 ; Retry button was selected -Global Const $IDIGNORE = 5 ; Ignore button was selected -Global Const $IDYES = 6 ; Yes button was selected -Global Const $IDNO = 7 ; No button was selected -Global Const $IDCLOSE = 8 ; Close button was selected -Global Const $IDHELP = 9 ; Help button was selected -Global Const $IDTRYAGAIN = 10 ; Try Again button was selected -Global Const $IDCONTINUE = 11 ; Continue button was selected -; =============================================================================================================================== diff --git a/build/Include/NTSTATUSConstants.au3 b/build/Include/NTSTATUSConstants.au3 deleted file mode 100644 index 20fa3fd6d..000000000 --- a/build/Include/NTSTATUSConstants.au3 +++ /dev/null @@ -1,1673 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: NTSTATUS UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: NT error codes (NTSTATUS) to be used with WinAPI* UDF library -; Author(s) .....: Yashied -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $STATUS_SUCCESS = 0x00000000 ; The operation completed successfully. -Global Const $STATUS_WAIT_0 = 0x00000000 ; The caller specified WaitAny for WaitType and one of the dispatcher objects in the Object array has been set to the signaled state. -Global Const $STATUS_WAIT_1 = 0x00000001 ; The caller specified WaitAny for WaitType and one of the dispatcher objects in the Object array has been set to the signaled state. -Global Const $STATUS_WAIT_2 = 0x00000002 ; The caller specified WaitAny for WaitType and one of the dispatcher objects in the Object array has been set to the signaled state. -Global Const $STATUS_WAIT_3 = 0x00000003 ; The caller specified WaitAny for WaitType and one of the dispatcher objects in the Object array has been set to the signaled state. -Global Const $STATUS_WAIT_63 = 0x0000003F ; The caller specified WaitAny for WaitType and one of the dispatcher objects in the Object array has been set to the signaled state. -Global Const $STATUS_ABANDONED = 0x00000080 ; The caller attempted to wait for a mutex that has been abandoned. -Global Const $STATUS_ABANDONED_WAIT_0 = 0x00000080 ; The caller attempted to wait for a mutex that has been abandoned. -Global Const $STATUS_ABANDONED_WAIT_63 = 0x000000BF ; The caller attempted to wait for a mutex that has been abandoned. -Global Const $STATUS_USER_APC = 0x000000C0 ; A user-mode APC was delivered before the given Interval expired. -Global Const $STATUS_ALERTED = 0x00000101 ; The delay completed because the thread was alerted. -Global Const $STATUS_TIMEOUT = 0x00000102 ; The given Timeout interval expired. -Global Const $STATUS_PENDING = 0x00000103 ; The operation that was requested is pending completion. -Global Const $STATUS_REPARSE = 0x00000104 ; A reparse should be performed by the Object Manager because the name of the file resulted in a symbolic link. -Global Const $STATUS_MORE_ENTRIES = 0x00000105 ; Returned by enumeration APIs to indicate more information is available to successive calls. -Global Const $STATUS_NOT_ALL_ASSIGNED = 0x00000106 ; Indicates not all privileges or groups that are referenced are assigned to the caller. This allows, for example, all privileges to be disabled without having to know exactly which privileges are assigned. -Global Const $STATUS_SOME_NOT_MAPPED = 0x00000107 ; Some of the information to be translated has not been translated. -Global Const $STATUS_OPLOCK_BREAK_IN_PROGRESS = 0x00000108 ; An open/create operation completed while an opportunistic lock (oplock) break is underway. -Global Const $STATUS_VOLUME_MOUNTED = 0x00000109 ; A new volume has been mounted by a file system. -Global Const $STATUS_RXACT_COMMITTED = 0x0000010A ; This success level status indicates that the transaction state already exists for the registry subtree but that a transaction commit was previously aborted. The commit has now been completed. -Global Const $STATUS_NOTIFY_CLEANUP = 0x0000010B ; Indicates that a notify change request has been completed due to closing the handle that made the notify change request. -Global Const $STATUS_NOTIFY_ENUM_DIR = 0x0000010C ; Indicates that a notify change request is being completed and that the information is not being returned in the caller's buffer. The caller now needs to enumerate the files to find the changes. -Global Const $STATUS_NO_QUOTAS_FOR_ACCOUNT = 0x0000010D ; {No Quotas} No system quota limits are specifically set for this account. -Global Const $STATUS_PRIMARY_TRANSPORT_CONNECT_FAILED = 0x0000010E ; {Connect Failure on Primary Transport} An attempt was made to connect to the remote server %hs on the primary transport, but the connection failed. The computer WAS able to connect on a secondary transport. -Global Const $STATUS_PAGE_FAULT_TRANSITION = 0x00000110 ; The page fault was a transition fault. -Global Const $STATUS_PAGE_FAULT_DEMAND_ZERO = 0x00000111 ; The page fault was a demand zero fault. -Global Const $STATUS_PAGE_FAULT_COPY_ON_WRITE = 0x00000112 ; The page fault was a demand zero fault. -Global Const $STATUS_PAGE_FAULT_GUARD_PAGE = 0x00000113 ; The page fault was a demand zero fault. -Global Const $STATUS_PAGE_FAULT_PAGING_FILE = 0x00000114 ; The page fault was satisfied by reading from a secondary storage device. -Global Const $STATUS_CACHE_PAGE_LOCKED = 0x00000115 ; The cached page was locked during operation. -Global Const $STATUS_CRASH_DUMP = 0x00000116 ; The crash dump exists in a paging file. -Global Const $STATUS_BUFFER_ALL_ZEROS = 0x00000117 ; The specified buffer contains all zeros. -Global Const $STATUS_REPARSE_OBJECT = 0x00000118 ; A reparse should be performed by the Object Manager because the name of the file resulted in a symbolic link. -Global Const $STATUS_RESOURCE_REQUIREMENTS_CHANGED = 0x00000119 ; The device has succeeded a query-stop and its resource requirements have changed. -Global Const $STATUS_TRANSLATION_COMPLETE = 0x00000120 ; The translator has translated these resources into the global space and no additional translations should be performed. -Global Const $STATUS_DS_MEMBERSHIP_EVALUATED_LOCALLY = 0x00000121 ; The directory service evaluated group memberships locally, because it was unable to contact a global catalog server. -Global Const $STATUS_NOTHING_TO_TERMINATE = 0x00000122 ; A process being terminated has no threads to terminate. -Global Const $STATUS_PROCESS_NOT_IN_JOB = 0x00000123 ; The specified process is not part of a job. -Global Const $STATUS_PROCESS_IN_JOB = 0x00000124 ; The specified process is part of a job. -Global Const $STATUS_VOLSNAP_HIBERNATE_READY = 0x00000125 ; {Volume Shadow Copy Service} The system is now ready for hibernation. -Global Const $STATUS_FSFILTER_OP_COMPLETED_SUCCESSFULLY = 0x00000126 ; A file system or file system filter driver has successfully completed an FsFilter operation. -Global Const $STATUS_INTERRUPT_VECTOR_ALREADY_CONNECTED = 0x00000127 ; The specified interrupt vector was already connected. -Global Const $STATUS_INTERRUPT_STILL_CONNECTED = 0x00000128 ; The specified interrupt vector is still connected. -Global Const $STATUS_PROCESS_CLONED = 0x00000129 ; The current process is a cloned process. -Global Const $STATUS_FILE_LOCKED_WITH_ONLY_READERS = 0x0000012A ; The file was locked and all users of the file can only read. -Global Const $STATUS_FILE_LOCKED_WITH_WRITERS = 0x0000012B ; The file was locked and at least one user of the file can write. -Global Const $STATUS_RESOURCEMANAGER_READ_ONLY = 0x00000202 ; The specified ResourceManager made no changes or updates to the resource under this transaction. -Global Const $STATUS_WAIT_FOR_OPLOCK = 0x00000367 ; An operation is blocked and waiting for an oplock. -Global Const $STATUS_FLT_IO_COMPLETE = 0x001C0001 ; The IO was completed by a filter. -Global Const $STATUS_FILE_NOT_AVAILABLE = 0xC0000467 ; The file is temporarily unavailable. -Global Const $STATUS_CALLBACK_RETURNED_THREAD_AFFINITY = 0xC0000721 ; A threadpool worker thread entered a callback at thread affinity %p and exited at affinity %p. -Global Const $STATUS_OBJECT_NAME_EXISTS = 0x40000000 ; {Object Exists} An attempt was made to create an object but the object name already exists. -Global Const $STATUS_THREAD_WAS_SUSPENDED = 0x40000001 ; {Thread Suspended} A thread termination occurred while the thread was suspended. The thread resumed, and termination proceeded. -Global Const $STATUS_WORKING_SET_LIMIT_RANGE = 0x40000002 ; {Working Set Range Error} An attempt was made to set the working set minimum or maximum to values that are outside the allowable range. -Global Const $STATUS_IMAGE_NOT_AT_BASE = 0x40000003 ; {Image Relocated} An image file could not be mapped at the address that is specified in the image file. Local fixes must be performed on this image. -Global Const $STATUS_RXACT_STATE_CREATED = 0x40000004 ; This informational level status indicates that a specified registry subtree transaction state did not yet exist and had to be created. -Global Const $STATUS_SEGMENT_NOTIFICATION = 0x40000005 ; {Segment Load} A virtual DOS machine (VDM) is loading, unloading, or moving an MS-DOS or Win16 program segment image. An exception is raised so that a debugger can load, unload, or track symbols and breakpoints within these 16-bit segments. -Global Const $STATUS_LOCAL_USER_SESSION_KEY = 0x40000006 ; {Local Session Key} A user session key was requested for a local remote procedure call (RPC) connection. The session key that is returned is a constant value and not unique to this connection. -Global Const $STATUS_BAD_CURRENT_DIRECTORY = 0x40000007 ; {Invalid Current Directory} The process cannot switch to the startup current directory %hs. Select OK to set the current directory to %hs, or select CANCEL to exit. -Global Const $STATUS_SERIAL_MORE_WRITES = 0x40000008 ; {Serial IOCTL Complete} A serial I/O operation was completed by another write to a serial port. -Global Const $STATUS_REGISTRY_RECOVERED = 0x40000009 ; {Registry Recovery} One of the files that contains the system registry data had to be recovered by using a log or alternate copy. The recovery was successful. -Global Const $STATUS_FT_READ_RECOVERY_FROM_BACKUP = 0x4000000A ; {Redundant Read} To satisfy a read request, the Windows NT fault-tolerant file system successfully read the requested data from a redundant copy. This was done because the file system encountered a failure on a member of the fault-tolerant volume but was unable to reassign the failing area of the device. -Global Const $STATUS_FT_WRITE_RECOVERY = 0x4000000B ; {Redundant Write} To satisfy a write request, the Windows NT fault-tolerant file system successfully wrote a redundant copy of the information. This was done because the file system encountered a failure on a member of the fault-tolerant volume but was unable to reassign the failing area of the device. -Global Const $STATUS_SERIAL_COUNTER_TIMEOUT = 0x4000000C ; {Serial IOCTL Timeout} A serial I/O operation completed because the time-out period expired. -Global Const $STATUS_NULL_LM_PASSWORD = 0x4000000D ; {Password Too Complex} The Windows password is too complex to be converted to a LAN Manager password. The LAN Manager password that returned is a NULL string. -Global Const $STATUS_IMAGE_MACHINE_TYPE_MISMATCH = 0x4000000E ; {Machine Type Mismatch} The image file %hs is valid but is for a machine type other than the current machine. Select OK to continue, or CANCEL to fail the DLL load. -Global Const $STATUS_RECEIVE_PARTIAL = 0x4000000F ; {Partial Data Received} The network transport returned partial data to its client. The remaining data will be sent later. -Global Const $STATUS_RECEIVE_EXPEDITED = 0x40000010 ; {Expedited Data Received} The network transport returned data to its client that was marked as expedited by the remote system. -Global Const $STATUS_RECEIVE_PARTIAL_EXPEDITED = 0x40000011 ; {Partial Expedited Data Received} The network transport returned partial data to its client and this data was marked as expedited by the remote system. The remaining data will be sent later. -Global Const $STATUS_EVENT_DONE = 0x40000012 ; {TDI Event Done} The TDI indication has completed successfully. -Global Const $STATUS_EVENT_PENDING = 0x40000013 ; {TDI Event Pending} The TDI indication has entered the pending state. -Global Const $STATUS_CHECKING_FILE_SYSTEM = 0x40000014 ; Checking file system on %wZ. -Global Const $STATUS_FATAL_APP_EXIT = 0x40000015 ; {Fatal Application Exit} %hs -Global Const $STATUS_PREDEFINED_HANDLE = 0x40000016 ; The specified registry key is referenced by a predefined handle. -Global Const $STATUS_WAS_UNLOCKED = 0x40000017 ; {Page Unlocked} The page protection of a locked page was changed to 'No Access' and the page was unlocked from memory and from the process. -Global Const $STATUS_SERVICE_NOTIFICATION = 0x40000018 ; %hs -Global Const $STATUS_WAS_LOCKED = 0x40000019 ; {Page Locked} One of the pages to lock was already locked. -Global Const $STATUS_LOG_HARD_ERROR = 0x4000001A ; Application popup: %1 : %2 -Global Const $STATUS_ALREADY_WIN32 = 0x4000001B ; A Win32 process already exists. -Global Const $STATUS_WX86_UNSIMULATE = 0x4000001C ; An exception status code that is used by the Win32 x86 emulation subsystem. -Global Const $STATUS_WX86_CONTINUE = 0x4000001D ; An exception status code that is used by the Win32 x86 emulation subsystem. -Global Const $STATUS_WX86_SINGLE_STEP = 0x4000001E ; An exception status code that is used by the Win32 x86 emulation subsystem. -Global Const $STATUS_WX86_BREAKPOINT = 0x4000001F ; An exception status code that is used by the Win32 x86 emulation subsystem. -Global Const $STATUS_WX86_EXCEPTION_CONTINUE = 0x40000020 ; An exception status code that is used by the Win32 x86 emulation subsystem. -Global Const $STATUS_WX86_EXCEPTION_LASTCHANCE = 0x40000021 ; An exception status code that is used by the Win32 x86 emulation subsystem. -Global Const $STATUS_WX86_EXCEPTION_CHAIN = 0x40000022 ; An exception status code that is used by the Win32 x86 emulation subsystem. -Global Const $STATUS_IMAGE_MACHINE_TYPE_MISMATCH_EXE = 0x40000023 ; {Machine Type Mismatch} The image file %hs is valid but is for a machine type other than the current machine. -Global Const $STATUS_NO_YIELD_PERFORMED = 0x40000024 ; A yield execution was performed and no thread was available to run. -Global Const $STATUS_TIMER_RESUME_IGNORED = 0x40000025 ; The resume flag to a timer API was ignored. -Global Const $STATUS_ARBITRATION_UNHANDLED = 0x40000026 ; The arbiter has deferred arbitration of these resources to its parent. -Global Const $STATUS_CARDBUS_NOT_SUPPORTED = 0x40000027 ; The device has detected a CardBus card in its slot. -Global Const $STATUS_WX86_CREATEWX86TIB = 0x40000028 ; An exception status code that is used by the Win32 x86 emulation subsystem. -Global Const $STATUS_MP_PROCESSOR_MISMATCH = 0x40000029 ; The CPUs in this multiprocessor system are not all the same revision level. To use all processors, the operating system restricts itself to the features of the least capable processor in the system. If problems occur with this system, contact the CPU manufacturer to see if this mix of processors is supported. -Global Const $STATUS_HIBERNATED = 0x4000002A ; The system was put into hibernation. -Global Const $STATUS_RESUME_HIBERNATION = 0x4000002B ; The system was resumed from hibernation. -Global Const $STATUS_FIRMWARE_UPDATED = 0x4000002C ; Windows has detected that the system firmware (BIOS) was updated [previous firmware date = %2, current firmware date %3]. -Global Const $STATUS_DRIVERS_LEAKING_LOCKED_PAGES = 0x4000002D ; A device driver is leaking locked I/O pages and is causing system degradation. The system has automatically enabled the tracking code to try and catch the culprit. -Global Const $STATUS_MESSAGE_RETRIEVED = 0x4000002E ; The ALPC message being canceled has already been retrieved from the queue on the other side. -Global Const $STATUS_SYSTEM_POWERSTATE_TRANSITION = 0x4000002F ; The system power state is transitioning from %2 to %3. -Global Const $STATUS_ALPC_CHECK_COMPLETION_LIST = 0x40000030 ; The receive operation was successful. Check the ALPC completion list for the received message. -Global Const $STATUS_SYSTEM_POWERSTATE_COMPLEX_TRANSITION = 0x40000031 ; The system power state is transitioning from %2 to %3 but could enter %4. -Global Const $STATUS_ACCESS_AUDIT_BY_POLICY = 0x40000032 ; Access to %1 is monitored by policy rule %2. -Global Const $STATUS_ABANDON_HIBERFILE = 0x40000033 ; A valid hibernation file has been invalidated and should be abandoned. -Global Const $STATUS_BIZRULES_NOT_ENABLED = 0x40000034 ; Business rule scripts are disabled for the calling application. -Global Const $STATUS_WAKE_SYSTEM = 0x40000294 ; The system has awoken. -Global Const $STATUS_DS_SHUTTING_DOWN = 0x40000370 ; The directory service is shutting down. -Global Const $STATUS_CTX_CDM_CONNECT = 0x400A0004 ; The Client Drive Mapping Service has connected on Terminal Connection. -Global Const $STATUS_CTX_CDM_DISCONNECT = 0x400A0005 ; The Client Drive Mapping Service has disconnected on Terminal Connection. -Global Const $STATUS_SXS_RELEASE_ACTIVATION_CONTEXT = 0x4015000D ; A kernel mode component is releasing a reference on an activation context. -Global Const $STATUS_RECOVERY_NOT_NEEDED = 0x40190034 ; The transactional resource manager is already consistent. Recovery is not needed. -Global Const $STATUS_RM_ALREADY_STARTED = 0x40190035 ; The transactional resource manager has already been started. -Global Const $STATUS_LOG_NO_RESTART = 0x401A000C ; The log service encountered a log stream with no restart area. -Global Const $STATUS_VIDEO_DRIVER_DEBUG_REPORT_REQUEST = 0x401B00EC ; {Display Driver Recovered From Failure} The %hs display driver has detected a failure and recovered from it. Some graphical operations may have failed. The next time you restart the machine, a dialog box appears, giving you an opportunity to upload data about this failure to Microsoft. -Global Const $STATUS_GRAPHICS_PARTIAL_DATA_POPULATED = 0x401E000A ; The specified buffer is not big enough to contain the entire requested dataset. Partial data is populated up to the size of the buffer. -Global Const $STATUS_GRAPHICS_DRIVER_MISMATCH = 0x401E0117 ; The kernel driver detected a version mismatch between it and the user mode driver. -Global Const $STATUS_GRAPHICS_MODE_NOT_PINNED = 0x401E0307 ; No mode is pinned on the specified VidPN source/target. -Global Const $STATUS_GRAPHICS_NO_PREFERRED_MODE = 0x401E031E ; The specified mode set does not specify a preference for one of its modes. -Global Const $STATUS_GRAPHICS_DATASET_IS_EMPTY = 0x401E034B ; The specified dataset (for example, mode set, frequency range set, descriptor set, or topology) is empty. -Global Const $STATUS_GRAPHICS_NO_MORE_ELEMENTS_IN_DATASET = 0x401E034C ; The specified dataset (for example, mode set, frequency range set, descriptor set, or topology) does not contain any more elements. -Global Const $STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_PINNED = 0x401E0351 ; The specified content transformation is not pinned on the specified VidPN present path. -Global Const $STATUS_GRAPHICS_UNKNOWN_CHILD_STATUS = 0x401E042F ; The child device presence was not reliably detected. -Global Const $STATUS_GRAPHICS_LEADLINK_START_DEFERRED = 0x401E0437 ; Starting the lead adapter in a linked configuration has been temporarily deferred. -Global Const $STATUS_GRAPHICS_POLLING_TOO_FREQUENTLY = 0x401E0439 ; The display adapter is being polled for children too frequently at the same polling level. -Global Const $STATUS_GRAPHICS_START_DEFERRED = 0x401E043A ; Starting the adapter has been temporarily deferred. -Global Const $STATUS_NDIS_INDICATION_REQUIRED = 0x40230001 ; The request will be completed later by an NDIS status indication. -Global Const $STATUS_GUARD_PAGE_VIOLATION = 0x80000001 ; {EXCEPTION} Guard Page Exception A page of memory that marks the end of a data structure, such as a stack or an array, has been accessed. -Global Const $STATUS_DATATYPE_MISALIGNMENT = 0x80000002 ; {EXCEPTION} Alignment Fault A data type misalignment was detected in a load or store instruction. -Global Const $STATUS_BREAKPOINT = 0x80000003 ; {EXCEPTION} Breakpoint A breakpoint has been reached. -Global Const $STATUS_SINGLE_STEP = 0x80000004 ; {EXCEPTION} Single Step A single step or trace operation has just been completed. -Global Const $STATUS_BUFFER_OVERFLOW = 0x80000005 ; {Buffer Overflow} The data was too large to fit into the specified buffer. -Global Const $STATUS_NO_MORE_FILES = 0x80000006 ; {No More Files} No more files were found which match the file specification. -Global Const $STATUS_WAKE_SYSTEM_DEBUGGER = 0x80000007 ; {Kernel Debugger Awakened} The system debugger was awakened by an interrupt. -Global Const $STATUS_HANDLES_CLOSED = 0x8000000A ; {Handles Closed} Handles to objects have been automatically closed because of the requested operation. -Global Const $STATUS_NO_INHERITANCE = 0x8000000B ; {Non-Inheritable ACL} An access control list (ACL) contains no components that can be inherited. -Global Const $STATUS_GUID_SUBSTITUTION_MADE = 0x8000000C ; {GUID Substitution} During the translation of a globally unique identifier (GUID) to a Windows security ID (SID), no administratively defined GUID prefix was found. A substitute prefix was used, which will not compromise system security. However, this may provide a more restrictive access than intended. -Global Const $STATUS_PARTIAL_COPY = 0x8000000D ; Because of protection conflicts, not all the requested bytes could be copied. -Global Const $STATUS_DEVICE_PAPER_EMPTY = 0x8000000E ; {Out of Paper} The printer is out of paper. -Global Const $STATUS_DEVICE_POWERED_OFF = 0x8000000F ; {Device Power Is Off} The printer power has been turned off. -Global Const $STATUS_DEVICE_OFF_LINE = 0x80000010 ; {Device Offline} The printer has been taken offline. -Global Const $STATUS_DEVICE_BUSY = 0x80000011 ; {Device Busy} The device is currently busy. -Global Const $STATUS_NO_MORE_EAS = 0x80000012 ; {No More EAs} No more extended attributes (EAs) were found for the file. -Global Const $STATUS_INVALID_EA_NAME = 0x80000013 ; {Illegal EA} The specified extended attribute (EA) name contains at least one illegal character. -Global Const $STATUS_EA_LIST_INCONSISTENT = 0x80000014 ; {Inconsistent EA List} The extended attribute (EA) list is inconsistent. -Global Const $STATUS_INVALID_EA_FLAG = 0x80000015 ; {Invalid EA Flag} An invalid extended attribute (EA) flag was set. -Global Const $STATUS_VERIFY_REQUIRED = 0x80000016 ; {Verifying Disk} The media has changed and a verify operation is in progress; therefore, no reads or writes may be performed to the device, except those that are used in the verify operation. -Global Const $STATUS_EXTRANEOUS_INFORMATION = 0x80000017 ; {Too Much Information} The specified access control list (ACL) contained more information than was expected. -Global Const $STATUS_RXACT_COMMIT_NECESSARY = 0x80000018 ; This warning level status indicates that the transaction state already exists for the registry subtree, but that a transaction commit was previously aborted. The commit has NOT been completed but has not been rolled back either; therefore, it may still be committed, if needed. -Global Const $STATUS_NO_MORE_ENTRIES = 0x8000001A ; {No More Entries} No more entries are available from an enumeration operation. -Global Const $STATUS_FILEMARK_DETECTED = 0x8000001B ; {Filemark Found} A filemark was detected. -Global Const $STATUS_MEDIA_CHANGED = 0x8000001C ; {Media Changed} The media may have changed. -Global Const $STATUS_BUS_RESET = 0x8000001D ; {I/O Bus Reset} An I/O bus reset was detected. -Global Const $STATUS_END_OF_MEDIA = 0x8000001E ; {End of Media} The end of the media was encountered. -Global Const $STATUS_BEGINNING_OF_MEDIA = 0x8000001F ; The beginning of a tape or partition has been detected. -Global Const $STATUS_MEDIA_CHECK = 0x80000020 ; {Media Changed} The media may have changed. -Global Const $STATUS_SETMARK_DETECTED = 0x80000021 ; A tape access reached a set mark. -Global Const $STATUS_NO_DATA_DETECTED = 0x80000022 ; During a tape access, the end of the data written is reached. -Global Const $STATUS_REDIRECTOR_HAS_OPEN_HANDLES = 0x80000023 ; The redirector is in use and cannot be unloaded. -Global Const $STATUS_SERVER_HAS_OPEN_HANDLES = 0x80000024 ; The server is in use and cannot be unloaded. -Global Const $STATUS_ALREADY_DISCONNECTED = 0x80000025 ; The specified connection has already been disconnected. -Global Const $STATUS_LONGJUMP = 0x80000026 ; A long jump has been executed. -Global Const $STATUS_CLEANER_CARTRIDGE_INSTALLED = 0x80000027 ; A cleaner cartridge is present in the tape library. -Global Const $STATUS_PLUGPLAY_QUERY_VETOED = 0x80000028 ; The Plug and Play query operation was not successful. -Global Const $STATUS_UNWIND_CONSOLIDATE = 0x80000029 ; A frame consolidation has been executed. -Global Const $STATUS_REGISTRY_HIVE_RECOVERED = 0x8000002A ; {Registry Hive Recovered} The registry hive (file): %hs was corrupted and it has been recovered. Some data might have been lost. -Global Const $STATUS_DLL_MIGHT_BE_INSECURE = 0x8000002B ; The application is attempting to run executable code from the module %hs. This may be insecure. An alternative, %hs, is available. Should the application use the secure module %hs? -Global Const $STATUS_DLL_MIGHT_BE_INCOMPATIBLE = 0x8000002C ; The application is loading executable code from the module %hs. This is secure but may be incompatible with previous releases of the operating system. An alternative, %hs, is available. Should the application use the secure module %hs? -Global Const $STATUS_STOPPED_ON_SYMLINK = 0x8000002D ; The create operation stopped after reaching a symbolic link. -Global Const $STATUS_DEVICE_REQUIRES_CLEANING = 0x80000288 ; The device has indicated that cleaning is necessary. -Global Const $STATUS_DEVICE_DOOR_OPEN = 0x80000289 ; The device has indicated that its door is open. Further operations require it closed and secured. -Global Const $STATUS_DATA_LOST_REPAIR = 0x80000803 ; Windows discovered a corruption in the file %hs. This file has now been repaired. Check if any data in the file was lost because of the corruption. -Global Const $STATUS_CLUSTER_NODE_ALREADY_UP = 0x80130001 ; The cluster node is already up. -Global Const $STATUS_CLUSTER_NODE_ALREADY_DOWN = 0x80130002 ; The cluster node is already down. -Global Const $STATUS_CLUSTER_NETWORK_ALREADY_ONLINE = 0x80130003 ; The cluster network is already online. -Global Const $STATUS_CLUSTER_NETWORK_ALREADY_OFFLINE = 0x80130004 ; The cluster network is already offline. -Global Const $STATUS_CLUSTER_NODE_ALREADY_MEMBER = 0x80130005 ; The cluster node is already a member of the cluster. -Global Const $STATUS_COULD_NOT_RESIZE_LOG = 0x80190009 ; The log could not be set to the requested size. -Global Const $STATUS_NO_TXF_METADATA = 0x80190029 ; There is no transaction metadata on the file. -Global Const $STATUS_CANT_RECOVER_WITH_HANDLE_OPEN = 0x80190031 ; The file cannot be recovered because there is a handle still open on it. -Global Const $STATUS_TXF_METADATA_ALREADY_PRESENT = 0x80190041 ; Transaction metadata is already present on this file and cannot be superseded. -Global Const $STATUS_TRANSACTION_SCOPE_CALLBACKS_NOT_SET = 0x80190042 ; A transaction scope could not be entered because the scope handler has not been initialized. -Global Const $STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD_RECOVERED = 0x801B00EB ; {Display Driver Stopped Responding and recovered} The %hs display driver has stopped working normally. The recovery had been performed. -Global Const $STATUS_FLT_BUFFER_TOO_SMALL = 0x801C0001 ; {Buffer too small} The buffer is too small to contain the entry. No information has been written to the buffer. -Global Const $STATUS_FVE_PARTIAL_METADATA = 0x80210001 ; Volume metadata read or write is incomplete. -Global Const $STATUS_FVE_TRANSIENT_STATE = 0x80210002 ; BitLocker encryption keys were ignored because the volume was in a transient state. -Global Const $STATUS_UNSUCCESSFUL = 0xC0000001 ; {Operation Failed} The requested operation was unsuccessful. -Global Const $STATUS_NOT_IMPLEMENTED = 0xC0000002 ; {Not Implemented} The requested operation is not implemented. -Global Const $STATUS_INVALID_INFO_CLASS = 0xC0000003 ; {Invalid Parameter} The specified information class is not a valid information class for the specified object. -Global Const $STATUS_INFO_LENGTH_MISMATCH = 0xC0000004 ; The specified information record length does not match the length that is required for the specified information class. -Global Const $STATUS_ACCESS_VIOLATION = 0xC0000005 ; The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. -Global Const $STATUS_IN_PAGE_ERROR = 0xC0000006 ; The instruction at 0x%08lx referenced memory at 0x%08lx. The required data was not placed into memory because of an I/O error status of 0x%08lx. -Global Const $STATUS_PAGEFILE_QUOTA = 0xC0000007 ; The page file quota for the process has been exhausted. -Global Const $STATUS_INVALID_HANDLE = 0xC0000008 ; An invalid HANDLE was specified. -Global Const $STATUS_BAD_INITIAL_STACK = 0xC0000009 ; An invalid initial stack was specified in a call to NtCreateThread. -Global Const $STATUS_BAD_INITIAL_PC = 0xC000000A ; An invalid initial start address was specified in a call to NtCreateThread. -Global Const $STATUS_INVALID_CID = 0xC000000B ; An invalid client ID was specified. -Global Const $STATUS_TIMER_NOT_CANCELED = 0xC000000C ; An attempt was made to cancel or set a timer that has an associated APC and the specified thread is not the thread that originally set the timer with an associated APC routine. -Global Const $STATUS_INVALID_PARAMETER = 0xC000000D ; An invalid parameter was passed to a service or function. -Global Const $STATUS_NO_SUCH_DEVICE = 0xC000000E ; A device that does not exist was specified. -Global Const $STATUS_NO_SUCH_FILE = 0xC000000F ; {File Not Found} The file %hs does not exist. -Global Const $STATUS_INVALID_DEVICE_REQUEST = 0xC0000010 ; The specified request is not a valid operation for the target device. -Global Const $STATUS_END_OF_FILE = 0xC0000011 ; The end-of-file marker has been reached. There is no valid data in the file beyond this marker. -Global Const $STATUS_WRONG_VOLUME = 0xC0000012 ; {Wrong Volume} The wrong volume is in the drive. Insert volume %hs into drive %hs. -Global Const $STATUS_NO_MEDIA_IN_DEVICE = 0xC0000013 ; {No Disk} There is no disk in the drive. Insert a disk into drive %hs. -Global Const $STATUS_UNRECOGNIZED_MEDIA = 0xC0000014 ; {Unknown Disk Format} The disk in drive %hs is not formatted properly. Check the disk, and reformat it, if needed. -Global Const $STATUS_NONEXISTENT_SECTOR = 0xC0000015 ; {Sector Not Found} The specified sector does not exist. -Global Const $STATUS_MORE_PROCESSING_REQUIRED = 0xC0000016 ; {Still Busy} The specified I/O request packet (IRP) cannot be disposed of because the I/O operation is not complete. -Global Const $STATUS_NO_MEMORY = 0xC0000017 ; {Not Enough Quota} Not enough virtual memory or paging file quota is available to complete the specified operation. -Global Const $STATUS_CONFLICTING_ADDRESSES = 0xC0000018 ; {Conflicting Address Range} The specified address range conflicts with the address space. -Global Const $STATUS_NOT_MAPPED_VIEW = 0xC0000019 ; The address range to unmap is not a mapped view. -Global Const $STATUS_UNABLE_TO_FREE_VM = 0xC000001A ; The virtual memory cannot be freed. -Global Const $STATUS_UNABLE_TO_DELETE_SECTION = 0xC000001B ; The specified section cannot be deleted. -Global Const $STATUS_INVALID_SYSTEM_SERVICE = 0xC000001C ; An invalid system service was specified in a system service call. -Global Const $STATUS_ILLEGAL_INSTRUCTION = 0xC000001D ; {EXCEPTION} Illegal Instruction An attempt was made to execute an illegal instruction. -Global Const $STATUS_INVALID_LOCK_SEQUENCE = 0xC000001E ; {Invalid Lock Sequence} An attempt was made to execute an invalid lock sequence. -Global Const $STATUS_INVALID_VIEW_SIZE = 0xC000001F ; {Invalid Mapping} An attempt was made to create a view for a section that is bigger than the section. -Global Const $STATUS_INVALID_FILE_FOR_SECTION = 0xC0000020 ; {Bad File} The attributes of the specified mapping file for a section of memory cannot be read. -Global Const $STATUS_ALREADY_COMMITTED = 0xC0000021 ; {Already Committed} The specified address range is already committed. -Global Const $STATUS_ACCESS_DENIED = 0xC0000022 ; {Access Denied} A process has requested access to an object but has not been granted those access rights. -Global Const $STATUS_BUFFER_TOO_SMALL = 0xC0000023 ; {Buffer Too Small} The buffer is too small to contain the entry. No information has been written to the buffer. -Global Const $STATUS_OBJECT_TYPE_MISMATCH = 0xC0000024 ; {Wrong Type} There is a mismatch between the type of object that is required by the requested operation and the type of object that is specified in the request. -Global Const $STATUS_NONCONTINUABLE_EXCEPTION = 0xC0000025 ; {EXCEPTION} Cannot Continue Windows cannot continue from this exception. -Global Const $STATUS_INVALID_DISPOSITION = 0xC0000026 ; An invalid exception disposition was returned by an exception handler. -Global Const $STATUS_UNWIND = 0xC0000027 ; Unwind exception code. -Global Const $STATUS_BAD_STACK = 0xC0000028 ; An invalid or unaligned stack was encountered during an unwind operation. -Global Const $STATUS_INVALID_UNWIND_TARGET = 0xC0000029 ; An invalid unwind target was encountered during an unwind operation. -Global Const $STATUS_NOT_LOCKED = 0xC000002A ; An attempt was made to unlock a page of memory that was not locked. -Global Const $STATUS_PARITY_ERROR = 0xC000002B ; A device parity error on an I/O operation. -Global Const $STATUS_UNABLE_TO_DECOMMIT_VM = 0xC000002C ; An attempt was made to decommit uncommitted virtual memory. -Global Const $STATUS_NOT_COMMITTED = 0xC000002D ; An attempt was made to change the attributes on memory that has not been committed. -Global Const $STATUS_INVALID_PORT_ATTRIBUTES = 0xC000002E ; Invalid object attributes specified to NtCreatePort or invalid port attributes specified to NtConnectPort. -Global Const $STATUS_PORT_MESSAGE_TOO_LONG = 0xC000002F ; The length of the message that was passed to NtRequestPort or NtRequestWaitReplyPort is longer than the maximum message that is allowed by the port. -Global Const $STATUS_INVALID_PARAMETER_MIX = 0xC0000030 ; An invalid combination of parameters was specified. -Global Const $STATUS_INVALID_QUOTA_LOWER = 0xC0000031 ; An attempt was made to lower a quota limit below the current usage. -Global Const $STATUS_DISK_CORRUPT_ERROR = 0xC0000032 ; {Corrupt Disk} The file system structure on the disk is corrupt and unusable. Run the Chkdsk utility on the volume %hs. -Global Const $STATUS_OBJECT_NAME_INVALID = 0xC0000033 ; The object name is invalid. -Global Const $STATUS_OBJECT_NAME_NOT_FOUND = 0xC0000034 ; The object name is not found. -Global Const $STATUS_OBJECT_NAME_COLLISION = 0xC0000035 ; The object name already exists. -Global Const $STATUS_PORT_DISCONNECTED = 0xC0000037 ; An attempt was made to send a message to a disconnected communication port. -Global Const $STATUS_DEVICE_ALREADY_ATTACHED = 0xC0000038 ; An attempt was made to attach to a device that was already attached to another device. -Global Const $STATUS_OBJECT_PATH_INVALID = 0xC0000039 ; The object path component was not a directory object. -Global Const $STATUS_OBJECT_PATH_NOT_FOUND = 0xC000003A ; {Path Not Found} The path %hs does not exist. -Global Const $STATUS_OBJECT_PATH_SYNTAX_BAD = 0xC000003B ; The object path component was not a directory object. -Global Const $STATUS_DATA_OVERRUN = 0xC000003C ; {Data Overrun} A data overrun error occurred. -Global Const $STATUS_DATA_LATE_ERROR = 0xC000003D ; {Data Late} A data late error occurred. -Global Const $STATUS_DATA_ERROR = 0xC000003E ; {Data Error} An error occurred in reading or writing data. -Global Const $STATUS_CRC_ERROR = 0xC000003F ; {Bad CRC} A cyclic redundancy check (CRC) checksum error occurred. -Global Const $STATUS_SECTION_TOO_BIG = 0xC0000040 ; {Section Too Large} The specified section is too big to map the file. -Global Const $STATUS_PORT_CONNECTION_REFUSED = 0xC0000041 ; The NtConnectPort request is refused. -Global Const $STATUS_INVALID_PORT_HANDLE = 0xC0000042 ; The type of port handle is invalid for the operation that is requested. -Global Const $STATUS_SHARING_VIOLATION = 0xC0000043 ; A file cannot be opened because the share access flags are incompatible. -Global Const $STATUS_QUOTA_EXCEEDED = 0xC0000044 ; Insufficient quota exists to complete the operation. -Global Const $STATUS_INVALID_PAGE_PROTECTION = 0xC0000045 ; The specified page protection was not valid. -Global Const $STATUS_MUTANT_NOT_OWNED = 0xC0000046 ; An attempt to release a mutant object was made by a thread that was not the owner of the mutant object. -Global Const $STATUS_SEMAPHORE_LIMIT_EXCEEDED = 0xC0000047 ; An attempt was made to release a semaphore such that its maximum count would have been exceeded. -Global Const $STATUS_PORT_ALREADY_SET = 0xC0000048 ; An attempt was made to set the DebugPort or ExceptionPort of a process, but a port already exists in the process, or an attempt was made to set the CompletionPort of a file but a port was already set in the file, or an attempt was made to set the associated completion port of an ALPC port but it is already set. -Global Const $STATUS_SECTION_NOT_IMAGE = 0xC0000049 ; An attempt was made to query image information on a section that does not map an image. -Global Const $STATUS_SUSPEND_COUNT_EXCEEDED = 0xC000004A ; An attempt was made to suspend a thread whose suspend count was at its maximum. -Global Const $STATUS_THREAD_IS_TERMINATING = 0xC000004B ; An attempt was made to suspend a thread that has begun termination. -Global Const $STATUS_BAD_WORKING_SET_LIMIT = 0xC000004C ; An attempt was made to set the working set limit to an invalid value (for example, the minimum greater than maximum). -Global Const $STATUS_INCOMPATIBLE_FILE_MAP = 0xC000004D ; A section was created to map a file that is not compatible with an already existing section that maps the same file. -Global Const $STATUS_SECTION_PROTECTION = 0xC000004E ; A view to a section specifies a protection that is incompatible with the protection of the initial view. -Global Const $STATUS_EAS_NOT_SUPPORTED = 0xC000004F ; An operation involving EAs failed because the file system does not support EAs. -Global Const $STATUS_EA_TOO_LARGE = 0xC0000050 ; An EA operation failed because the EA set is too large. -Global Const $STATUS_NONEXISTENT_EA_ENTRY = 0xC0000051 ; An EA operation failed because the name or EA index is invalid. -Global Const $STATUS_NO_EAS_ON_FILE = 0xC0000052 ; The file for which EAs were requested has no EAs. -Global Const $STATUS_EA_CORRUPT_ERROR = 0xC0000053 ; The EA is corrupt and cannot be read. -Global Const $STATUS_FILE_LOCK_CONFLICT = 0xC0000054 ; A requested read/write cannot be granted due to a conflicting file lock. -Global Const $STATUS_LOCK_NOT_GRANTED = 0xC0000055 ; A requested file lock cannot be granted due to other existing locks. -Global Const $STATUS_DELETE_PENDING = 0xC0000056 ; A non-close operation has been requested of a file object that has a delete pending. -Global Const $STATUS_CTL_FILE_NOT_SUPPORTED = 0xC0000057 ; An attempt was made to set the control attribute on a file. This attribute is not supported in the destination file system. -Global Const $STATUS_UNKNOWN_REVISION = 0xC0000058 ; Indicates a revision number that was encountered or specified is not one that is known by the service. It may be a more recent revision than the service is aware of. -Global Const $STATUS_REVISION_MISMATCH = 0xC0000059 ; Indicates that two revision levels are incompatible. -Global Const $STATUS_INVALID_OWNER = 0xC000005A ; Indicates a particular security ID may not be assigned as the owner of an object. -Global Const $STATUS_INVALID_PRIMARY_GROUP = 0xC000005B ; Indicates a particular security ID may not be assigned as the primary group of an object. -Global Const $STATUS_NO_IMPERSONATION_TOKEN = 0xC000005C ; An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client. -Global Const $STATUS_CANT_DISABLE_MANDATORY = 0xC000005D ; A mandatory group may not be disabled. -Global Const $STATUS_NO_LOGON_SERVERS = 0xC000005E ; No logon servers are currently available to service the logon request. -Global Const $STATUS_NO_SUCH_LOGON_SESSION = 0xC000005F ; A specified logon session does not exist. It may already have been terminated. -Global Const $STATUS_NO_SUCH_PRIVILEGE = 0xC0000060 ; A specified privilege does not exist. -Global Const $STATUS_PRIVILEGE_NOT_HELD = 0xC0000061 ; A required privilege is not held by the client. -Global Const $STATUS_INVALID_ACCOUNT_NAME = 0xC0000062 ; The name provided is not a properly formed account name. -Global Const $STATUS_USER_EXISTS = 0xC0000063 ; The specified account already exists. -Global Const $STATUS_NO_SUCH_USER = 0xC0000064 ; The specified account does not exist. -Global Const $STATUS_GROUP_EXISTS = 0xC0000065 ; The specified group already exists. -Global Const $STATUS_NO_SUCH_GROUP = 0xC0000066 ; The specified group does not exist. -Global Const $STATUS_MEMBER_IN_GROUP = 0xC0000067 ; The specified user account is already in the specified group account. Also used to indicate a group cannot be deleted because it contains a member. -Global Const $STATUS_MEMBER_NOT_IN_GROUP = 0xC0000068 ; The specified user account is not a member of the specified group account. -Global Const $STATUS_LAST_ADMIN = 0xC0000069 ; Indicates the requested operation would disable or delete the last remaining administration account. This is not allowed to prevent creating a situation in which the system cannot be administrated. -Global Const $STATUS_WRONG_PASSWORD = 0xC000006A ; When trying to update a password, this return status indicates that the value provided as the current password is not correct. -Global Const $STATUS_ILL_FORMED_PASSWORD = 0xC000006B ; When trying to update a password, this return status indicates that the value provided for the new password contains values that are not allowed in passwords. -Global Const $STATUS_PASSWORD_RESTRICTION = 0xC000006C ; When trying to update a password, this status indicates that some password update rule has been violated. For example, the password may not meet length criteria. -Global Const $STATUS_LOGON_FAILURE = 0xC000006D ; The attempted logon is invalid. This is either due to a bad username or authentication information. -Global Const $STATUS_ACCOUNT_RESTRICTION = 0xC000006E ; Indicates a referenced user name and authentication information are valid, but some user account restriction has prevented successful authentication (such as time-of-day restrictions). -Global Const $STATUS_INVALID_LOGON_HOURS = 0xC000006F ; The user account has time restrictions and may not be logged onto at this time. -Global Const $STATUS_INVALID_WORKSTATION = 0xC0000070 ; The user account is restricted so that it may not be used to log on from the source workstation. -Global Const $STATUS_PASSWORD_EXPIRED = 0xC0000071 ; The user account password has expired. -Global Const $STATUS_ACCOUNT_DISABLED = 0xC0000072 ; The referenced account is currently disabled and may not be logged on to. -Global Const $STATUS_NONE_MAPPED = 0xC0000073 ; None of the information to be translated has been translated. -Global Const $STATUS_TOO_MANY_LUIDS_REQUESTED = 0xC0000074 ; The number of LUIDs requested may not be allocated with a single allocation. -Global Const $STATUS_LUIDS_EXHAUSTED = 0xC0000075 ; Indicates there are no more LUIDs to allocate. -Global Const $STATUS_INVALID_SUB_AUTHORITY = 0xC0000076 ; Indicates the sub-authority value is invalid for the particular use. -Global Const $STATUS_INVALID_ACL = 0xC0000077 ; Indicates the ACL structure is not valid. -Global Const $STATUS_INVALID_SID = 0xC0000078 ; Indicates the SID structure is not valid. -Global Const $STATUS_INVALID_SECURITY_DESCR = 0xC0000079 ; Indicates the SECURITY_DESCRIPTOR structure is not valid. -Global Const $STATUS_PROCEDURE_NOT_FOUND = 0xC000007A ; Indicates the specified procedure address cannot be found in the DLL. -Global Const $STATUS_INVALID_IMAGE_FORMAT = 0xC000007B ; {Bad Image} %hs is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. -Global Const $STATUS_NO_TOKEN = 0xC000007C ; An attempt was made to reference a token that does not exist. This is typically done by referencing the token that is associated with a thread when the thread is not impersonating a client. -Global Const $STATUS_BAD_INHERITANCE_ACL = 0xC000007D ; Indicates that an attempt to build either an inherited ACL or ACE was not successful. This can be caused by a number of things. One of the more probable causes is the replacement of a CreatorId with a SID that did not fit into the ACE or ACL. -Global Const $STATUS_RANGE_NOT_LOCKED = 0xC000007E ; The range specified in NtUnlockFile was not locked. -Global Const $STATUS_DISK_FULL = 0xC000007F ; An operation failed because the disk was full. -Global Const $STATUS_SERVER_DISABLED = 0xC0000080 ; The GUID allocation server is disabled at the moment. -Global Const $STATUS_SERVER_NOT_DISABLED = 0xC0000081 ; The GUID allocation server is enabled at the moment. -Global Const $STATUS_TOO_MANY_GUIDS_REQUESTED = 0xC0000082 ; Too many GUIDs were requested from the allocation server at once. -Global Const $STATUS_GUIDS_EXHAUSTED = 0xC0000083 ; The GUIDs could not be allocated because the Authority Agent was exhausted. -Global Const $STATUS_INVALID_ID_AUTHORITY = 0xC0000084 ; The value provided was an invalid value for an identifier authority. -Global Const $STATUS_AGENTS_EXHAUSTED = 0xC0000085 ; No more authority agent values are available for the particular identifier authority value. -Global Const $STATUS_INVALID_VOLUME_LABEL = 0xC0000086 ; An invalid volume label has been specified. -Global Const $STATUS_SECTION_NOT_EXTENDED = 0xC0000087 ; A mapped section could not be extended. -Global Const $STATUS_NOT_MAPPED_DATA = 0xC0000088 ; Specified section to flush does not map a data file. -Global Const $STATUS_RESOURCE_DATA_NOT_FOUND = 0xC0000089 ; Indicates the specified image file did not contain a resource section. -Global Const $STATUS_RESOURCE_TYPE_NOT_FOUND = 0xC000008A ; Indicates the specified resource type cannot be found in the image file. -Global Const $STATUS_RESOURCE_NAME_NOT_FOUND = 0xC000008B ; Indicates the specified resource name cannot be found in the image file. -Global Const $STATUS_ARRAY_BOUNDS_EXCEEDED = 0xC000008C ; {EXCEPTION} Array bounds exceeded. -Global Const $STATUS_FLOAT_DENORMAL_OPERAND = 0xC000008D ; {EXCEPTION} Floating-point denormal operand. -Global Const $STATUS_FLOAT_DIVIDE_BY_ZERO = 0xC000008E ; {EXCEPTION} Floating-point division by zero. -Global Const $STATUS_FLOAT_INEXACT_RESULT = 0xC000008F ; {EXCEPTION} Floating-point inexact result. -Global Const $STATUS_FLOAT_INVALID_OPERATION = 0xC0000090 ; {EXCEPTION} Floating-point invalid operation. -Global Const $STATUS_FLOAT_OVERFLOW = 0xC0000091 ; {EXCEPTION} Floating-point overflow. -Global Const $STATUS_FLOAT_STACK_CHECK = 0xC0000092 ; {EXCEPTION} Floating-point stack check. -Global Const $STATUS_FLOAT_UNDERFLOW = 0xC0000093 ; {EXCEPTION} Floating-point underflow. -Global Const $STATUS_INTEGER_DIVIDE_BY_ZERO = 0xC0000094 ; {EXCEPTION} Integer division by zero. -Global Const $STATUS_INTEGER_OVERFLOW = 0xC0000095 ; {EXCEPTION} Integer overflow. -Global Const $STATUS_PRIVILEGED_INSTRUCTION = 0xC0000096 ; {EXCEPTION} Privileged instruction. -Global Const $STATUS_TOO_MANY_PAGING_FILES = 0xC0000097 ; An attempt was made to install more paging files than the system supports. -Global Const $STATUS_FILE_INVALID = 0xC0000098 ; The volume for a file has been externally altered such that the opened file is no longer valid. -Global Const $STATUS_ALLOTTED_SPACE_EXCEEDED = 0xC0000099 ; When a block of memory is allotted for future updates, such as the memory allocated to hold discretionary access control and primary group information, successive updates may exceed the amount of memory originally allotted. Because a quota may already have been charged to several processes that have handles to the object, it is not reasonable to alter the size of the allocated memory. Instead, a request that requires more memory than has been allotted must fail and the STATUS_ALLOTTED_SPACE_EXCEEDED error returned. -Global Const $STATUS_INSUFFICIENT_RESOURCES = 0xC000009A ; Insufficient system resources exist to complete the API. -Global Const $STATUS_DFS_EXIT_PATH_FOUND = 0xC000009B ; An attempt has been made to open a DFS exit path control file. -Global Const $STATUS_DEVICE_DATA_ERROR = 0xC000009C ; There are bad blocks (sectors) on the hard disk. -Global Const $STATUS_DEVICE_NOT_CONNECTED = 0xC000009D ; There is bad cabling, non-termination, or the controller is not able to obtain access to the hard disk. -Global Const $STATUS_FREE_VM_NOT_AT_BASE = 0xC000009F ; Virtual memory cannot be freed because the base address is not the base of the region and a region size of zero was specified. -Global Const $STATUS_MEMORY_NOT_ALLOCATED = 0xC00000A0 ; An attempt was made to free virtual memory that is not allocated. -Global Const $STATUS_WORKING_SET_QUOTA = 0xC00000A1 ; The working set is not big enough to allow the requested pages to be locked. -Global Const $STATUS_MEDIA_WRITE_PROTECTED = 0xC00000A2 ; {Write Protect Error} The disk cannot be written to because it is write-protected. Remove the write protection from the volume %hs in drive %hs. -Global Const $STATUS_DEVICE_NOT_READY = 0xC00000A3 ; {Drive Not Ready} The drive is not ready for use; its door may be open. Check drive %hs and make sure that a disk is inserted and that the drive door is closed. -Global Const $STATUS_INVALID_GROUP_ATTRIBUTES = 0xC00000A4 ; The specified attributes are invalid or are incompatible with the attributes for the group as a whole. -Global Const $STATUS_BAD_IMPERSONATION_LEVEL = 0xC00000A5 ; A specified impersonation level is invalid. Also used to indicate that a required impersonation level was not provided. -Global Const $STATUS_CANT_OPEN_ANONYMOUS = 0xC00000A6 ; An attempt was made to open an anonymous-level token. Anonymous tokens may not be opened. -Global Const $STATUS_BAD_VALIDATION_CLASS = 0xC00000A7 ; The validation information class requested was invalid. -Global Const $STATUS_BAD_TOKEN_TYPE = 0xC00000A8 ; The type of a token object is inappropriate for its attempted use. -Global Const $STATUS_BAD_MASTER_BOOT_RECORD = 0xC00000A9 ; The type of a token object is inappropriate for its attempted use. -Global Const $STATUS_INSTRUCTION_MISALIGNMENT = 0xC00000AA ; An attempt was made to execute an instruction at an unaligned address and the host system does not support unaligned instruction references. -Global Const $STATUS_INSTANCE_NOT_AVAILABLE = 0xC00000AB ; The maximum named pipe instance count has been reached. -Global Const $STATUS_PIPE_NOT_AVAILABLE = 0xC00000AC ; An instance of a named pipe cannot be found in the listening state. -Global Const $STATUS_INVALID_PIPE_STATE = 0xC00000AD ; The named pipe is not in the connected or closing state. -Global Const $STATUS_PIPE_BUSY = 0xC00000AE ; The specified pipe is set to complete operations and there are current I/O operations queued so that it cannot be changed to queue operations. -Global Const $STATUS_ILLEGAL_FUNCTION = 0xC00000AF ; The specified handle is not open to the server end of the named pipe. -Global Const $STATUS_PIPE_DISCONNECTED = 0xC00000B0 ; The specified named pipe is in the disconnected state. -Global Const $STATUS_PIPE_CLOSING = 0xC00000B1 ; The specified named pipe is in the closing state. -Global Const $STATUS_PIPE_CONNECTED = 0xC00000B2 ; The specified named pipe is in the connected state. -Global Const $STATUS_PIPE_LISTENING = 0xC00000B3 ; The specified named pipe is in the listening state. -Global Const $STATUS_INVALID_READ_MODE = 0xC00000B4 ; The specified named pipe is not in message mode. -Global Const $STATUS_IO_TIMEOUT = 0xC00000B5 ; {Device Timeout} The specified I/O operation on %hs was not completed before the time-out period expired. -Global Const $STATUS_FILE_FORCED_CLOSED = 0xC00000B6 ; The specified file has been closed by another process. -Global Const $STATUS_PROFILING_NOT_STARTED = 0xC00000B7 ; Profiling is not started. -Global Const $STATUS_PROFILING_NOT_STOPPED = 0xC00000B8 ; Profiling is not stopped. -Global Const $STATUS_COULD_NOT_INTERPRET = 0xC00000B9 ; The passed ACL did not contain the minimum required information. -Global Const $STATUS_FILE_IS_A_DIRECTORY = 0xC00000BA ; The file that was specified as a target is a directory, and the caller specified that it could be anything but a directory. -Global Const $STATUS_NOT_SUPPORTED = 0xC00000BB ; The request is not supported. -Global Const $STATUS_REMOTE_NOT_LISTENING = 0xC00000BC ; This remote computer is not listening. -Global Const $STATUS_DUPLICATE_NAME = 0xC00000BD ; A duplicate name exists on the network. -Global Const $STATUS_BAD_NETWORK_PATH = 0xC00000BE ; The network path cannot be located. -Global Const $STATUS_NETWORK_BUSY = 0xC00000BF ; The network is busy. -Global Const $STATUS_DEVICE_DOES_NOT_EXIST = 0xC00000C0 ; This device does not exist. -Global Const $STATUS_TOO_MANY_COMMANDS = 0xC00000C1 ; The network BIOS command limit has been reached. -Global Const $STATUS_ADAPTER_HARDWARE_ERROR = 0xC00000C2 ; An I/O adapter hardware error has occurred. -Global Const $STATUS_INVALID_NETWORK_RESPONSE = 0xC00000C3 ; The network responded incorrectly. -Global Const $STATUS_UNEXPECTED_NETWORK_ERROR = 0xC00000C4 ; An unexpected network error occurred. -Global Const $STATUS_BAD_REMOTE_ADAPTER = 0xC00000C5 ; The remote adapter is not compatible. -Global Const $STATUS_PRINT_QUEUE_FULL = 0xC00000C6 ; The print queue is full. -Global Const $STATUS_NO_SPOOL_SPACE = 0xC00000C7 ; Space to store the file that is waiting to be printed is not available on the server. -Global Const $STATUS_PRINT_CANCELLED = 0xC00000C8 ; The requested print file has been canceled. -Global Const $STATUS_NETWORK_NAME_DELETED = 0xC00000C9 ; The network name was deleted. -Global Const $STATUS_NETWORK_ACCESS_DENIED = 0xC00000CA ; Network access is denied. -Global Const $STATUS_BAD_DEVICE_TYPE = 0xC00000CB ; {Incorrect Network Resource Type} The specified device type (LPT, for example) conflicts with the actual device type on the remote resource. -Global Const $STATUS_BAD_NETWORK_NAME = 0xC00000CC ; {Network Name Not Found} The specified share name cannot be found on the remote server. -Global Const $STATUS_TOO_MANY_NAMES = 0xC00000CD ; The name limit for the network adapter card of the local computer was exceeded. -Global Const $STATUS_TOO_MANY_SESSIONS = 0xC00000CE ; The network BIOS session limit was exceeded. -Global Const $STATUS_SHARING_PAUSED = 0xC00000CF ; File sharing has been temporarily paused. -Global Const $STATUS_REQUEST_NOT_ACCEPTED = 0xC00000D0 ; No more connections can be made to this remote computer at this time because the computer has already accepted the maximum number of connections. -Global Const $STATUS_REDIRECTOR_PAUSED = 0xC00000D1 ; Print or disk redirection is temporarily paused. -Global Const $STATUS_NET_WRITE_FAULT = 0xC00000D2 ; A network data fault occurred. -Global Const $STATUS_PROFILING_AT_LIMIT = 0xC00000D3 ; The number of active profiling objects is at the maximum and no more may be started. -Global Const $STATUS_NOT_SAME_DEVICE = 0xC00000D4 ; {Incorrect Volume} The destination file of a rename request is located on a different device than the source of the rename request. -Global Const $STATUS_FILE_RENAMED = 0xC00000D5 ; The specified file has been renamed and thus cannot be modified. -Global Const $STATUS_VIRTUAL_CIRCUIT_CLOSED = 0xC00000D6 ; {Network Request Timeout} The session with a remote server has been disconnected because the time-out interval for a request has expired. -Global Const $STATUS_NO_SECURITY_ON_OBJECT = 0xC00000D7 ; Indicates an attempt was made to operate on the security of an object that does not have security associated with it. -Global Const $STATUS_CANT_WAIT = 0xC00000D8 ; Used to indicate that an operation cannot continue without blocking for I/O. -Global Const $STATUS_PIPE_EMPTY = 0xC00000D9 ; Used to indicate that a read operation was done on an empty pipe. -Global Const $STATUS_CANT_ACCESS_DOMAIN_INFO = 0xC00000DA ; Configuration information could not be read from the domain controller, either because the machine is unavailable or access has been denied. -Global Const $STATUS_CANT_TERMINATE_SELF = 0xC00000DB ; Indicates that a thread attempted to terminate itself by default (called NtTerminateThread with NULL) and it was the last thread in the current process. -Global Const $STATUS_INVALID_SERVER_STATE = 0xC00000DC ; Indicates the Sam Server was in the wrong state to perform the desired operation. -Global Const $STATUS_INVALID_DOMAIN_STATE = 0xC00000DD ; Indicates the domain was in the wrong state to perform the desired operation. -Global Const $STATUS_INVALID_DOMAIN_ROLE = 0xC00000DE ; This operation is only allowed for the primary domain controller of the domain. -Global Const $STATUS_NO_SUCH_DOMAIN = 0xC00000DF ; The specified domain did not exist. -Global Const $STATUS_DOMAIN_EXISTS = 0xC00000E0 ; The specified domain already exists. -Global Const $STATUS_DOMAIN_LIMIT_EXCEEDED = 0xC00000E1 ; An attempt was made to exceed the limit on the number of domains per server for this release. -Global Const $STATUS_OPLOCK_NOT_GRANTED = 0xC00000E2 ; An error status returned when the opportunistic lock (oplock) request is denied. -Global Const $STATUS_INVALID_OPLOCK_PROTOCOL = 0xC00000E3 ; An error status returned when an invalid opportunistic lock (oplock) acknowledgment is received by a file system. -Global Const $STATUS_INTERNAL_DB_CORRUPTION = 0xC00000E4 ; This error indicates that the requested operation cannot be completed due to a catastrophic media failure or an on-disk data structure corruption. -Global Const $STATUS_INTERNAL_ERROR = 0xC00000E5 ; An internal error occurred. -Global Const $STATUS_GENERIC_NOT_MAPPED = 0xC00000E6 ; Indicates generic access types were contained in an access mask which should already be mapped to non-generic access types. -Global Const $STATUS_BAD_DESCRIPTOR_FORMAT = 0xC00000E7 ; Indicates a security descriptor is not in the necessary format (absolute or self-relative). -Global Const $STATUS_INVALID_USER_BUFFER = 0xC00000E8 ; An access to a user buffer failed at an expected point in time. This code is defined because the caller does not want to accept STATUS_ACCESS_VIOLATION in its filter. -Global Const $STATUS_UNEXPECTED_IO_ERROR = 0xC00000E9 ; If an I/O error that is not defined in the standard FsRtl filter is returned, it is converted to the following error, which is guaranteed to be in the filter. In this case, information is lost; however, the filter correctly handles the exception. -Global Const $STATUS_UNEXPECTED_MM_CREATE_ERR = 0xC00000EA ; If an MM error that is not defined in the standard FsRtl filter is returned, it is converted to one of the following errors, which are guaranteed to be in the filter. In this case, information is lost; however, the filter correctly handles the exception. -Global Const $STATUS_UNEXPECTED_MM_MAP_ERROR = 0xC00000EB ; If an MM error that is not defined in the standard FsRtl filter is returned, it is converted to one of the following errors, which are guaranteed to be in the filter. In this case, information is lost; however, the filter correctly handles the exception. -Global Const $STATUS_UNEXPECTED_MM_EXTEND_ERR = 0xC00000EC ; If an MM error that is not defined in the standard FsRtl filter is returned, it is converted to one of the following errors, which are guaranteed to be in the filter. In this case, information is lost; however, the filter correctly handles the exception. -Global Const $STATUS_NOT_LOGON_PROCESS = 0xC00000ED ; The requested action is restricted for use by logon processes only. The calling process has not registered as a logon process. -Global Const $STATUS_LOGON_SESSION_EXISTS = 0xC00000EE ; An attempt has been made to start a new session manager or LSA logon session by using an ID that is already in use. -Global Const $STATUS_INVALID_PARAMETER_1 = 0xC00000EF ; An invalid parameter was passed to a service or function as the first argument. -Global Const $STATUS_INVALID_PARAMETER_2 = 0xC00000F0 ; An invalid parameter was passed to a service or function as the second argument. -Global Const $STATUS_INVALID_PARAMETER_3 = 0xC00000F1 ; An invalid parameter was passed to a service or function as the third argument. -Global Const $STATUS_INVALID_PARAMETER_4 = 0xC00000F2 ; An invalid parameter was passed to a service or function as the fourth argument. -Global Const $STATUS_INVALID_PARAMETER_5 = 0xC00000F3 ; An invalid parameter was passed to a service or function as the fifth argument. -Global Const $STATUS_INVALID_PARAMETER_6 = 0xC00000F4 ; An invalid parameter was passed to a service or function as the sixth argument. -Global Const $STATUS_INVALID_PARAMETER_7 = 0xC00000F5 ; An invalid parameter was passed to a service or function as the seventh argument. -Global Const $STATUS_INVALID_PARAMETER_8 = 0xC00000F6 ; An invalid parameter was passed to a service or function as the eighth argument. -Global Const $STATUS_INVALID_PARAMETER_9 = 0xC00000F7 ; An invalid parameter was passed to a service or function as the ninth argument. -Global Const $STATUS_INVALID_PARAMETER_10 = 0xC00000F8 ; An invalid parameter was passed to a service or function as the tenth argument. -Global Const $STATUS_INVALID_PARAMETER_11 = 0xC00000F9 ; An invalid parameter was passed to a service or function as the eleventh argument. -Global Const $STATUS_INVALID_PARAMETER_12 = 0xC00000FA ; An invalid parameter was passed to a service or function as the twelfth argument. -Global Const $STATUS_REDIRECTOR_NOT_STARTED = 0xC00000FB ; An attempt was made to access a network file, but the network software was not yet started. -Global Const $STATUS_REDIRECTOR_STARTED = 0xC00000FC ; An attempt was made to start the redirector, but the redirector has already been started. -Global Const $STATUS_STACK_OVERFLOW = 0xC00000FD ; A new guard page for the stack cannot be created. -Global Const $STATUS_NO_SUCH_PACKAGE = 0xC00000FE ; A specified authentication package is unknown. -Global Const $STATUS_BAD_FUNCTION_TABLE = 0xC00000FF ; A malformed function table was encountered during an unwind operation. -Global Const $STATUS_VARIABLE_NOT_FOUND = 0xC0000100 ; Indicates the specified environment variable name was not found in the specified environment block. -Global Const $STATUS_DIRECTORY_NOT_EMPTY = 0xC0000101 ; Indicates that the directory trying to be deleted is not empty. -Global Const $STATUS_FILE_CORRUPT_ERROR = 0xC0000102 ; {Corrupt File} The file or directory %hs is corrupt and unreadable. Run the Chkdsk utility. -Global Const $STATUS_NOT_A_DIRECTORY = 0xC0000103 ; A requested opened file is not a directory. -Global Const $STATUS_BAD_LOGON_SESSION_STATE = 0xC0000104 ; The logon session is not in a state that is consistent with the requested operation. -Global Const $STATUS_LOGON_SESSION_COLLISION = 0xC0000105 ; An internal LSA error has occurred. An authentication package has requested the creation of a logon session but the ID of an already existing logon session has been specified. -Global Const $STATUS_NAME_TOO_LONG = 0xC0000106 ; A specified name string is too long for its intended use. -Global Const $STATUS_FILES_OPEN = 0xC0000107 ; The user attempted to force close the files on a redirected drive, but there were opened files on the drive, and the user did not specify a sufficient level of force. -Global Const $STATUS_CONNECTION_IN_USE = 0xC0000108 ; The user attempted to force close the files on a redirected drive, but there were opened directories on the drive, and the user did not specify a sufficient level of force. -Global Const $STATUS_MESSAGE_NOT_FOUND = 0xC0000109 ; RtlFindMessage could not locate the requested message ID in the message table resource. -Global Const $STATUS_PROCESS_IS_TERMINATING = 0xC000010A ; An attempt was made to duplicate an object handle into or out of an exiting process. -Global Const $STATUS_INVALID_LOGON_TYPE = 0xC000010B ; Indicates an invalid value has been provided for the LogonType requested. -Global Const $STATUS_NO_GUID_TRANSLATION = 0xC000010C ; Indicates that an attempt was made to assign protection to a file system file or directory and one of the SIDs in the security descriptor could not be translated into a GUID that could be stored by the file system. This causes the protection attempt to fail, which may cause a file creation attempt to fail. -Global Const $STATUS_CANNOT_IMPERSONATE = 0xC000010D ; Indicates that an attempt has been made to impersonate via a named pipe that has not yet been read from. -Global Const $STATUS_IMAGE_ALREADY_LOADED = 0xC000010E ; Indicates that the specified image is already loaded. -Global Const $STATUS_NO_LDT = 0xC0000117 ; Indicates that an attempt was made to change the size of the LDT for a process that has no LDT. -Global Const $STATUS_INVALID_LDT_SIZE = 0xC0000118 ; Indicates that an attempt was made to grow an LDT by setting its size, or that the size was not an even number of selectors. -Global Const $STATUS_INVALID_LDT_OFFSET = 0xC0000119 ; Indicates that the starting value for the LDT information was not an integral multiple of the selector size. -Global Const $STATUS_INVALID_LDT_DESCRIPTOR = 0xC000011A ; Indicates that the user supplied an invalid descriptor when trying to set up LDT descriptors. -Global Const $STATUS_INVALID_IMAGE_NE_FORMAT = 0xC000011B ; The specified image file did not have the correct format. It appears to be NE format. -Global Const $STATUS_RXACT_INVALID_STATE = 0xC000011C ; Indicates that the transaction state of a registry subtree is incompatible with the requested operation. For example, a request has been made to start a new transaction with one already in progress, or a request has been made to apply a transaction when one is not currently in progress. -Global Const $STATUS_RXACT_COMMIT_FAILURE = 0xC000011D ; Indicates an error has occurred during a registry transaction commit. The database has been left in an unknown, but probably inconsistent, state. The state of the registry transaction is left as COMMITTING. -Global Const $STATUS_MAPPED_FILE_SIZE_ZERO = 0xC000011E ; An attempt was made to map a file of size zero with the maximum size specified as zero. -Global Const $STATUS_TOO_MANY_OPENED_FILES = 0xC000011F ; Too many files are opened on a remote server. This error should only be returned by the Windows redirector on a remote drive. -Global Const $STATUS_CANCELLED = 0xC0000120 ; The I/O request was canceled. -Global Const $STATUS_CANNOT_DELETE = 0xC0000121 ; An attempt has been made to remove a file or directory that cannot be deleted. -Global Const $STATUS_INVALID_COMPUTER_NAME = 0xC0000122 ; Indicates a name that was specified as a remote computer name is syntactically invalid. -Global Const $STATUS_FILE_DELETED = 0xC0000123 ; An I/O request other than close was performed on a file after it was deleted, which can only happen to a request that did not complete before the last handle was closed via NtClose. -Global Const $STATUS_SPECIAL_ACCOUNT = 0xC0000124 ; Indicates an operation that is incompatible with built-in accounts has been attempted on a built-in (special) SAM account. For example, built-in accounts cannot be deleted. -Global Const $STATUS_SPECIAL_GROUP = 0xC0000125 ; The operation requested may not be performed on the specified group because it is a built-in special group. -Global Const $STATUS_SPECIAL_USER = 0xC0000126 ; The operation requested may not be performed on the specified user because it is a built-in special user. -Global Const $STATUS_MEMBERS_PRIMARY_GROUP = 0xC0000127 ; Indicates a member cannot be removed from a group because the group is currently the member's primary group. -Global Const $STATUS_FILE_CLOSED = 0xC0000128 ; An I/O request other than close and several other special case operations was attempted using a file object that had already been closed. -Global Const $STATUS_TOO_MANY_THREADS = 0xC0000129 ; Indicates a process has too many threads to perform the requested action. For example, assignment of a primary token may only be performed when a process has zero or one threads. -Global Const $STATUS_THREAD_NOT_IN_PROCESS = 0xC000012A ; An attempt was made to operate on a thread within a specific process, but the specified thread is not in the specified process. -Global Const $STATUS_TOKEN_ALREADY_IN_USE = 0xC000012B ; An attempt was made to establish a token for use as a primary token but the token is already in use. A token can only be the primary token of one process at a time. -Global Const $STATUS_PAGEFILE_QUOTA_EXCEEDED = 0xC000012C ; The page file quota was exceeded. -Global Const $STATUS_COMMITMENT_LIMIT = 0xC000012D ; {Out of Virtual Memory} Your system is low on virtual memory. To ensure that Windows runs correctly, increase the size of your virtual memory paging file. For more information, see Help. -Global Const $STATUS_INVALID_IMAGE_LE_FORMAT = 0xC000012E ; The specified image file did not have the correct format: it appears to be LE format. -Global Const $STATUS_INVALID_IMAGE_NOT_MZ = 0xC000012F ; The specified image file did not have the correct format: it did not have an initial MZ. -Global Const $STATUS_INVALID_IMAGE_PROTECT = 0xC0000130 ; The specified image file did not have the correct format: it did not have a proper e_lfarlc in the MZ header. -Global Const $STATUS_INVALID_IMAGE_WIN_16 = 0xC0000131 ; The specified image file did not have the correct format: it appears to be a 16-bit Windows image. -Global Const $STATUS_LOGON_SERVER_CONFLICT = 0xC0000132 ; The Netlogon service cannot start because another Netlogon service running in the domain conflicts with the specified role. -Global Const $STATUS_TIME_DIFFERENCE_AT_DC = 0xC0000133 ; The time at the primary domain controller is different from the time at the backup domain controller or member server by too large an amount. -Global Const $STATUS_SYNCHRONIZATION_REQUIRED = 0xC0000134 ; The SAM database on a Windows Server is significantly out of synchronization with the copy on the domain controller. A complete synchronization is required. -Global Const $STATUS_DLL_NOT_FOUND = 0xC0000135 ; {Unable To Locate Component} This application has failed to start because %hs was not found. Reinstalling the application may fix this problem. -Global Const $STATUS_OPEN_FAILED = 0xC0000136 ; The NtCreateFile API failed. This error should never be returned to an application; it is a place holder for the Windows LAN Manager Redirector to use in its internal error-mapping routines. -Global Const $STATUS_IO_PRIVILEGE_FAILED = 0xC0000137 ; {Privilege Failed} The I/O permissions for the process could not be changed. -Global Const $STATUS_ORDINAL_NOT_FOUND = 0xC0000138 ; {Ordinal Not Found} The ordinal %ld could not be located in the dynamic link library %hs. -Global Const $STATUS_ENTRYPOINT_NOT_FOUND = 0xC0000139 ; {Entry Point Not Found} The procedure entry point %hs could not be located in the dynamic link library %hs. -Global Const $STATUS_CONTROL_C_EXIT = 0xC000013A ; {Application Exit by CTRL+C} The application terminated as a result of a CTRL+C. -Global Const $STATUS_LOCAL_DISCONNECT = 0xC000013B ; {Virtual Circuit Closed} The network transport on your computer has closed a network connection. There may or may not be I/O requests outstanding. -Global Const $STATUS_REMOTE_DISCONNECT = 0xC000013C ; {Virtual Circuit Closed} The network transport on a remote computer has closed a network connection. There may or may not be I/O requests outstanding. -Global Const $STATUS_REMOTE_RESOURCES = 0xC000013D ; {Insufficient Resources on Remote Computer} The remote computer has insufficient resources to complete the network request. For example, the remote computer may not have enough available memory to carry out the request at this time. -Global Const $STATUS_LINK_FAILED = 0xC000013E ; {Virtual Circuit Closed} An existing connection (virtual circuit) has been broken at the remote computer. There is probably something wrong with the network software protocol or the network hardware on the remote computer. -Global Const $STATUS_LINK_TIMEOUT = 0xC000013F ; {Virtual Circuit Closed} The network transport on your computer has closed a network connection because it had to wait too long for a response from the remote computer. -Global Const $STATUS_INVALID_CONNECTION = 0xC0000140 ; The connection handle that was given to the transport was invalid. -Global Const $STATUS_INVALID_ADDRESS = 0xC0000141 ; The address handle that was given to the transport was invalid. -Global Const $STATUS_DLL_INIT_FAILED = 0xC0000142 ; {DLL Initialization Failed} Initialization of the dynamic link library %hs failed. The process is terminating abnormally. -Global Const $STATUS_MISSING_SYSTEMFILE = 0xC0000143 ; {Missing System File} The required system file %hs is bad or missing. -Global Const $STATUS_UNHANDLED_EXCEPTION = 0xC0000144 ; {Application Error} The exception %s (0x%08lx) occurred in the application at location 0x%08lx. -Global Const $STATUS_APP_INIT_FAILURE = 0xC0000145 ; {Application Error} The application failed to initialize properly (0x%lx). Click OK to terminate the application. -Global Const $STATUS_PAGEFILE_CREATE_FAILED = 0xC0000146 ; {Unable to Create Paging File} The creation of the paging file %hs failed (%lx). The requested size was %ld. -Global Const $STATUS_NO_PAGEFILE = 0xC0000147 ; {No Paging File Specified} No paging file was specified in the system configuration. -Global Const $STATUS_INVALID_LEVEL = 0xC0000148 ; {Incorrect System Call Level} An invalid level was passed into the specified system call. -Global Const $STATUS_WRONG_PASSWORD_CORE = 0xC0000149 ; {Incorrect Password to LAN Manager Server} You specified an incorrect password to a LAN Manager 2.x or MS-NET server. -Global Const $STATUS_ILLEGAL_FLOAT_CONTEXT = 0xC000014A ; {EXCEPTION} A real-mode application issued a floating-point instruction and floating-point hardware is not present. -Global Const $STATUS_PIPE_BROKEN = 0xC000014B ; The pipe operation has failed because the other end of the pipe has been closed. -Global Const $STATUS_REGISTRY_CORRUPT = 0xC000014C ; {The Registry Is Corrupt} The structure of one of the files that contains registry data is corrupt; the image of the file in memory is corrupt; or the file could not be recovered because the alternate copy or log was absent or corrupt. -Global Const $STATUS_REGISTRY_IO_FAILED = 0xC000014D ; An I/O operation initiated by the Registry failed and cannot be recovered. The registry could not read in, write out, or flush one of the files that contain the system's image of the registry. -Global Const $STATUS_NO_EVENT_PAIR = 0xC000014E ; An event pair synchronization operation was performed using the thread-specific client/server event pair object, but no event pair object was associated with the thread. -Global Const $STATUS_UNRECOGNIZED_VOLUME = 0xC000014F ; The volume does not contain a recognized file system. Be sure that all required file system drivers are loaded and that the volume is not corrupt. -Global Const $STATUS_SERIAL_NO_DEVICE_INITED = 0xC0000150 ; No serial device was successfully initialized. The serial driver will unload. -Global Const $STATUS_NO_SUCH_ALIAS = 0xC0000151 ; The specified local group does not exist. -Global Const $STATUS_MEMBER_NOT_IN_ALIAS = 0xC0000152 ; The specified account name is not a member of the group. -Global Const $STATUS_MEMBER_IN_ALIAS = 0xC0000153 ; The specified account name is already a member of the group. -Global Const $STATUS_ALIAS_EXISTS = 0xC0000154 ; The specified local group already exists. -Global Const $STATUS_LOGON_NOT_GRANTED = 0xC0000155 ; A requested type of logon (for example, interactive, network, and service) is not granted by the local security policy of the target system. Ask the system administrator to grant the necessary form of logon. -Global Const $STATUS_TOO_MANY_SECRETS = 0xC0000156 ; The maximum number of secrets that may be stored in a single system was exceeded. The length and number of secrets is limited to satisfy U.S. State Department export restrictions. -Global Const $STATUS_SECRET_TOO_LONG = 0xC0000157 ; The length of a secret exceeds the maximum allowable length. The length and number of secrets is limited to satisfy U.S. State Department export restrictions. -Global Const $STATUS_INTERNAL_DB_ERROR = 0xC0000158 ; The local security authority (LSA) database contains an internal inconsistency. -Global Const $STATUS_FULLSCREEN_MODE = 0xC0000159 ; The requested operation cannot be performed in full-screen mode. -Global Const $STATUS_TOO_MANY_CONTEXT_IDS = 0xC000015A ; During a logon attempt, the user's security context accumulated too many security IDs. This is a very unusual situation. Remove the user from some global or local groups to reduce the number of security IDs to incorporate into the security context. -Global Const $STATUS_LOGON_TYPE_NOT_GRANTED = 0xC000015B ; A user has requested a type of logon (for example, interactive or network) that has not been granted. An administrator has control over who may logon interactively and through the network. -Global Const $STATUS_NOT_REGISTRY_FILE = 0xC000015C ; The system has attempted to load or restore a file into the registry, and the specified file is not in the format of a registry file. -Global Const $STATUS_NT_CROSS_ENCRYPTION_REQUIRED = 0xC000015D ; An attempt was made to change a user password in the security account manager without providing the necessary Windows cross-encrypted password. -Global Const $STATUS_DOMAIN_CTRLR_CONFIG_ERROR = 0xC000015E ; A Windows Server has an incorrect configuration. -Global Const $STATUS_FT_MISSING_MEMBER = 0xC000015F ; An attempt was made to explicitly access the secondary copy of information via a device control to the fault tolerance driver and the secondary copy is not present in the system. -Global Const $STATUS_ILL_FORMED_SERVICE_ENTRY = 0xC0000160 ; A configuration registry node that represents a driver service entry was ill-formed and did not contain the required value entries. -Global Const $STATUS_ILLEGAL_CHARACTER = 0xC0000161 ; An illegal character was encountered. For a multibyte character set, this includes a lead byte without a succeeding trail byte. For the Unicode character set this includes the characters 0xFFFF and 0xFFFE. -Global Const $STATUS_UNMAPPABLE_CHARACTER = 0xC0000162 ; No mapping for the Unicode character exists in the target multibyte code page. -Global Const $STATUS_UNDEFINED_CHARACTER = 0xC0000163 ; The Unicode character is not defined in the Unicode character set that is installed on the system. -Global Const $STATUS_FLOPPY_VOLUME = 0xC0000164 ; The paging file cannot be created on a floppy disk. -Global Const $STATUS_FLOPPY_ID_MARK_NOT_FOUND = 0xC0000165 ; {Floppy Disk Error} While accessing a floppy disk, an ID address mark was not found. -Global Const $STATUS_FLOPPY_WRONG_CYLINDER = 0xC0000166 ; {Floppy Disk Error} While accessing a floppy disk, the track address from the sector ID field was found to be different from the track address that is maintained by the controller. -Global Const $STATUS_FLOPPY_UNKNOWN_ERROR = 0xC0000167 ; {Floppy Disk Error} The floppy disk controller reported an error that is not recognized by the floppy disk driver. -Global Const $STATUS_FLOPPY_BAD_REGISTERS = 0xC0000168 ; {Floppy Disk Error} While accessing a floppy-disk, the controller returned inconsistent results via its registers. -Global Const $STATUS_DISK_RECALIBRATE_FAILED = 0xC0000169 ; {Hard Disk Error} While accessing the hard disk, a recalibrate operation failed, even after retries. -Global Const $STATUS_DISK_OPERATION_FAILED = 0xC000016A ; {Hard Disk Error} While accessing the hard disk, a disk operation failed even after retries. -Global Const $STATUS_DISK_RESET_FAILED = 0xC000016B ; {Hard Disk Error} While accessing the hard disk, a disk controller reset was needed, but even that failed. -Global Const $STATUS_SHARED_IRQ_BUSY = 0xC000016C ; An attempt was made to open a device that was sharing an interrupt request (IRQ) with other devices. At least one other device that uses that IRQ was already opened. Two concurrent opens of devices that share an IRQ and only work via interrupts is not supported for the particular bus type that the devices use. -Global Const $STATUS_FT_ORPHANING = 0xC000016D ; {FT Orphaning} A disk that is part of a fault-tolerant volume can no longer be accessed. -Global Const $STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT = 0xC000016E ; The basic input/output system (BIOS) failed to connect a system interrupt to the device or bus for which the device is connected. -Global Const $STATUS_PARTITION_FAILURE = 0xC0000172 ; The tape could not be partitioned. -Global Const $STATUS_INVALID_BLOCK_LENGTH = 0xC0000173 ; When accessing a new tape of a multi-volume partition, the current blocksize is incorrect. -Global Const $STATUS_DEVICE_NOT_PARTITIONED = 0xC0000174 ; The tape partition information could not be found when loading a tape. -Global Const $STATUS_UNABLE_TO_LOCK_MEDIA = 0xC0000175 ; An attempt to lock the eject media mechanism failed. -Global Const $STATUS_UNABLE_TO_UNLOAD_MEDIA = 0xC0000176 ; An attempt to unload media failed. -Global Const $STATUS_EOM_OVERFLOW = 0xC0000177 ; The physical end of tape was detected. -Global Const $STATUS_NO_MEDIA = 0xC0000178 ; {No Media} There is no media in the drive. Insert media into drive %hs. -Global Const $STATUS_NO_SUCH_MEMBER = 0xC000017A ; A member could not be added to or removed from the local group because the member does not exist. -Global Const $STATUS_INVALID_MEMBER = 0xC000017B ; A new member could not be added to a local group because the member has the wrong account type. -Global Const $STATUS_KEY_DELETED = 0xC000017C ; An illegal operation was attempted on a registry key that has been marked for deletion. -Global Const $STATUS_NO_LOG_SPACE = 0xC000017D ; The system could not allocate the required space in a registry log. -Global Const $STATUS_TOO_MANY_SIDS = 0xC000017E ; Too many SIDs have been specified. -Global Const $STATUS_LM_CROSS_ENCRYPTION_REQUIRED = 0xC000017F ; An attempt was made to change a user password in the security account manager without providing the necessary LM cross-encrypted password. -Global Const $STATUS_KEY_HAS_CHILDREN = 0xC0000180 ; An attempt was made to create a symbolic link in a registry key that already has subkeys or values. -Global Const $STATUS_CHILD_MUST_BE_VOLATILE = 0xC0000181 ; An attempt was made to create a stable subkey under a volatile parent key. -Global Const $STATUS_DEVICE_CONFIGURATION_ERROR = 0xC0000182 ; The I/O device is configured incorrectly or the configuration parameters to the driver are incorrect. -Global Const $STATUS_DRIVER_INTERNAL_ERROR = 0xC0000183 ; An error was detected between two drivers or within an I/O driver. -Global Const $STATUS_INVALID_DEVICE_STATE = 0xC0000184 ; The device is not in a valid state to perform this request. -Global Const $STATUS_IO_DEVICE_ERROR = 0xC0000185 ; The I/O device reported an I/O error. -Global Const $STATUS_DEVICE_PROTOCOL_ERROR = 0xC0000186 ; A protocol error was detected between the driver and the device. -Global Const $STATUS_BACKUP_CONTROLLER = 0xC0000187 ; This operation is only allowed for the primary domain controller of the domain. -Global Const $STATUS_LOG_FILE_FULL = 0xC0000188 ; The log file space is insufficient to support this operation. -Global Const $STATUS_TOO_LATE = 0xC0000189 ; A write operation was attempted to a volume after it was dismounted. -Global Const $STATUS_NO_TRUST_LSA_SECRET = 0xC000018A ; The workstation does not have a trust secret for the primary domain in the local LSA database. -Global Const $STATUS_NO_TRUST_SAM_ACCOUNT = 0xC000018B ; The SAM database on the Windows Server does not have a computer account for this workstation trust relationship. -Global Const $STATUS_TRUSTED_DOMAIN_FAILURE = 0xC000018C ; The logon request failed because the trust relationship between the primary domain and the trusted domain failed. -Global Const $STATUS_TRUSTED_RELATIONSHIP_FAILURE = 0xC000018D ; The logon request failed because the trust relationship between this workstation and the primary domain failed. -Global Const $STATUS_EVENTLOG_FILE_CORRUPT = 0xC000018E ; The Eventlog log file is corrupt. -Global Const $STATUS_EVENTLOG_CANT_START = 0xC000018F ; No Eventlog log file could be opened. The Eventlog service did not start. -Global Const $STATUS_TRUST_FAILURE = 0xC0000190 ; The network logon failed. This may be because the validation authority cannot be reached. -Global Const $STATUS_MUTANT_LIMIT_EXCEEDED = 0xC0000191 ; An attempt was made to acquire a mutant such that its maximum count would have been exceeded. -Global Const $STATUS_NETLOGON_NOT_STARTED = 0xC0000192 ; An attempt was made to logon, but the NetLogon service was not started. -Global Const $STATUS_ACCOUNT_EXPIRED = 0xC0000193 ; The user account has expired. -Global Const $STATUS_POSSIBLE_DEADLOCK = 0xC0000194 ; {EXCEPTION} Possible deadlock condition. -Global Const $STATUS_NETWORK_CREDENTIAL_CONFLICT = 0xC0000195 ; Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again. -Global Const $STATUS_REMOTE_SESSION_LIMIT = 0xC0000196 ; An attempt was made to establish a session to a network server, but there are already too many sessions established to that server. -Global Const $STATUS_EVENTLOG_FILE_CHANGED = 0xC0000197 ; The log file has changed between reads. -Global Const $STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT = 0xC0000198 ; The account used is an interdomain trust account. Use your global user account or local user account to access this server. -Global Const $STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT = 0xC0000199 ; The account used is a computer account. Use your global user account or local user account to access this server. -Global Const $STATUS_NOLOGON_SERVER_TRUST_ACCOUNT = 0xC000019A ; The account used is a server trust account. Use your global user account or local user account to access this server. -Global Const $STATUS_DOMAIN_TRUST_INCONSISTENT = 0xC000019B ; The name or SID of the specified domain is inconsistent with the trust information for that domain. -Global Const $STATUS_FS_DRIVER_REQUIRED = 0xC000019C ; A volume has been accessed for which a file system driver is required that has not yet been loaded. -Global Const $STATUS_IMAGE_ALREADY_LOADED_AS_DLL = 0xC000019D ; Indicates that the specified image is already loaded as a DLL. -Global Const $STATUS_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING = 0xC000019E ; Short name settings may not be changed on this volume due to the global registry setting. -Global Const $STATUS_SHORT_NAMES_NOT_ENABLED_ON_VOLUME = 0xC000019F ; Short names are not enabled on this volume. -Global Const $STATUS_SECURITY_STREAM_IS_INCONSISTENT = 0xC00001A0 ; The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume. -Global Const $STATUS_INVALID_LOCK_RANGE = 0xC00001A1 ; A requested file lock operation cannot be processed due to an invalid byte range. -Global Const $STATUS_INVALID_ACE_CONDITION = 0xC00001A2 ; The specified access control entry (ACE) contains an invalid condition. -Global Const $STATUS_IMAGE_SUBSYSTEM_NOT_PRESENT = 0xC00001A3 ; The subsystem needed to support the image type is not present. -Global Const $STATUS_NOTIFICATION_GUID_ALREADY_DEFINED = 0xC00001A4 ; The specified file already has a notification GUID associated with it. -Global Const $STATUS_NETWORK_OPEN_RESTRICTION = 0xC0000201 ; A remote open failed because the network open restrictions were not satisfied. -Global Const $STATUS_NO_USER_SESSION_KEY = 0xC0000202 ; There is no user session key for the specified logon session. -Global Const $STATUS_USER_SESSION_DELETED = 0xC0000203 ; The remote user session has been deleted. -Global Const $STATUS_RESOURCE_LANG_NOT_FOUND = 0xC0000204 ; Indicates the specified resource language ID cannot be found in the image file. -Global Const $STATUS_INSUFF_SERVER_RESOURCES = 0xC0000205 ; Insufficient server resources exist to complete the request. -Global Const $STATUS_INVALID_BUFFER_SIZE = 0xC0000206 ; The size of the buffer is invalid for the specified operation. -Global Const $STATUS_INVALID_ADDRESS_COMPONENT = 0xC0000207 ; The transport rejected the specified network address as invalid. -Global Const $STATUS_INVALID_ADDRESS_WILDCARD = 0xC0000208 ; The transport rejected the specified network address due to invalid use of a wildcard. -Global Const $STATUS_TOO_MANY_ADDRESSES = 0xC0000209 ; The transport address could not be opened because all the available addresses are in use. -Global Const $STATUS_ADDRESS_ALREADY_EXISTS = 0xC000020A ; The transport address could not be opened because it already exists. -Global Const $STATUS_ADDRESS_CLOSED = 0xC000020B ; The transport address is now closed. -Global Const $STATUS_CONNECTION_DISCONNECTED = 0xC000020C ; The transport connection is now disconnected. -Global Const $STATUS_CONNECTION_RESET = 0xC000020D ; The transport connection has been reset. -Global Const $STATUS_TOO_MANY_NODES = 0xC000020E ; The transport cannot dynamically acquire any more nodes. -Global Const $STATUS_TRANSACTION_ABORTED = 0xC000020F ; The transport aborted a pending transaction. -Global Const $STATUS_TRANSACTION_TIMED_OUT = 0xC0000210 ; The transport timed out a request that is waiting for a response. -Global Const $STATUS_TRANSACTION_NO_RELEASE = 0xC0000211 ; The transport did not receive a release for a pending response. -Global Const $STATUS_TRANSACTION_NO_MATCH = 0xC0000212 ; The transport did not find a transaction that matches the specific token. -Global Const $STATUS_TRANSACTION_RESPONDED = 0xC0000213 ; The transport had previously responded to a transaction request. -Global Const $STATUS_TRANSACTION_INVALID_ID = 0xC0000214 ; The transport does not recognize the specified transaction request ID. -Global Const $STATUS_TRANSACTION_INVALID_TYPE = 0xC0000215 ; The transport does not recognize the specified transaction request type. -Global Const $STATUS_NOT_SERVER_SESSION = 0xC0000216 ; The transport can only process the specified request on the server side of a session. -Global Const $STATUS_NOT_CLIENT_SESSION = 0xC0000217 ; The transport can only process the specified request on the client side of a session. -Global Const $STATUS_CANNOT_LOAD_REGISTRY_FILE = 0xC0000218 ; {Registry File Failure} The registry cannot load the hive (file): %hs or its log or alternate. It is corrupt, absent, or not writable. -Global Const $STATUS_DEBUG_ATTACH_FAILED = 0xC0000219 ; {Unexpected Failure in DebugActiveProcess} An unexpected failure occurred while processing a DebugActiveProcess API request. You may choose OK to terminate the process, or Cancel to ignore the error. -Global Const $STATUS_SYSTEM_PROCESS_TERMINATED = 0xC000021A ; {Fatal System Error} The %hs system process terminated unexpectedly with a status of 0x%08x (0x%08x 0x%08x). The system has been shut down. -Global Const $STATUS_DATA_NOT_ACCEPTED = 0xC000021B ; {Data Not Accepted} The TDI client could not handle the data received during an indication. -Global Const $STATUS_NO_BROWSER_SERVERS_FOUND = 0xC000021C ; {Unable to Retrieve Browser Server List} The list of servers for this workgroup is not currently available. -Global Const $STATUS_VDM_HARD_ERROR = 0xC000021D ; NTVDM encountered a hard error. -Global Const $STATUS_DRIVER_CANCEL_TIMEOUT = 0xC000021E ; {Cancel Timeout} The driver %hs failed to complete a canceled I/O request in the allotted time. -Global Const $STATUS_REPLY_MESSAGE_MISMATCH = 0xC000021F ; {Reply Message Mismatch} An attempt was made to reply to an LPC message, but the thread specified by the client ID in the message was not waiting on that message. -Global Const $STATUS_MAPPED_ALIGNMENT = 0xC0000220 ; {Mapped View Alignment Incorrect} An attempt was made to map a view of a file, but either the specified base address or the offset into the file were not aligned on the proper allocation granularity. -Global Const $STATUS_IMAGE_CHECKSUM_MISMATCH = 0xC0000221 ; {Bad Image Checksum} The image %hs is possibly corrupt. The header checksum does not match the computed checksum. -Global Const $STATUS_LOST_WRITEBEHIND_DATA = 0xC0000222 ; {Delayed Write Failed} Windows was unable to save all the data for the file %hs. The data has been lost. This error may be caused by a failure of your computer hardware or network connection. Try to save this file elsewhere. -Global Const $STATUS_CLIENT_SERVER_PARAMETERS_INVALID = 0xC0000223 ; The parameters passed to the server in the client/server shared memory window were invalid. Too much data may have been put in the shared memory window. -Global Const $STATUS_PASSWORD_MUST_CHANGE = 0xC0000224 ; The user password must be changed before logging on the first time. -Global Const $STATUS_NOT_FOUND = 0xC0000225 ; The object was not found. -Global Const $STATUS_NOT_TINY_STREAM = 0xC0000226 ; The stream is not a tiny stream. -Global Const $STATUS_RECOVERY_FAILURE = 0xC0000227 ; A transaction recovery failed. -Global Const $STATUS_STACK_OVERFLOW_READ = 0xC0000228 ; The request must be handled by the stack overflow code. -Global Const $STATUS_FAIL_CHECK = 0xC0000229 ; A consistency check failed. -Global Const $STATUS_DUPLICATE_OBJECTID = 0xC000022A ; The attempt to insert the ID in the index failed because the ID is already in the index. -Global Const $STATUS_OBJECTID_EXISTS = 0xC000022B ; The attempt to set the object ID failed because the object already has an ID. -Global Const $STATUS_CONVERT_TO_LARGE = 0xC000022C ; Internal OFS status codes indicating how an allocation operation is handled. Either it is retried after the containing oNode is moved or the extent stream is converted to a large stream. -Global Const $STATUS_RETRY = 0xC000022D ; The request needs to be retried. -Global Const $STATUS_FOUND_OUT_OF_SCOPE = 0xC000022E ; The attempt to find the object found an object on the volume that matches by ID; however, it is out of the scope of the handle that is used for the operation. -Global Const $STATUS_ALLOCATE_BUCKET = 0xC000022F ; The bucket array must be grown. Retry the transaction after doing so. -Global Const $STATUS_PROPSET_NOT_FOUND = 0xC0000230 ; The specified property set does not exist on the object. -Global Const $STATUS_MARSHALL_OVERFLOW = 0xC0000231 ; The user/kernel marshaling buffer has overflowed. -Global Const $STATUS_INVALID_VARIANT = 0xC0000232 ; The supplied variant structure contains invalid data. -Global Const $STATUS_DOMAIN_CONTROLLER_NOT_FOUND = 0xC0000233 ; A domain controller for this domain was not found. -Global Const $STATUS_ACCOUNT_LOCKED_OUT = 0xC0000234 ; The user account has been automatically locked because too many invalid logon attempts or password change attempts have been requested. -Global Const $STATUS_HANDLE_NOT_CLOSABLE = 0xC0000235 ; NtClose was called on a handle that was protected from close via NtSetInformationObject. -Global Const $STATUS_CONNECTION_REFUSED = 0xC0000236 ; The transport-connection attempt was refused by the remote system. -Global Const $STATUS_GRACEFUL_DISCONNECT = 0xC0000237 ; The transport connection was gracefully closed. -Global Const $STATUS_ADDRESS_ALREADY_ASSOCIATED = 0xC0000238 ; The transport endpoint already has an address associated with it. -Global Const $STATUS_ADDRESS_NOT_ASSOCIATED = 0xC0000239 ; An address has not yet been associated with the transport endpoint. -Global Const $STATUS_CONNECTION_INVALID = 0xC000023A ; An operation was attempted on a nonexistent transport connection. -Global Const $STATUS_CONNECTION_ACTIVE = 0xC000023B ; An invalid operation was attempted on an active transport connection. -Global Const $STATUS_NETWORK_UNREACHABLE = 0xC000023C ; The remote network is not reachable by the transport. -Global Const $STATUS_HOST_UNREACHABLE = 0xC000023D ; The remote system is not reachable by the transport. -Global Const $STATUS_PROTOCOL_UNREACHABLE = 0xC000023E ; The remote system does not support the transport protocol. -Global Const $STATUS_PORT_UNREACHABLE = 0xC000023F ; No service is operating at the destination port of the transport on the remote system. -Global Const $STATUS_REQUEST_ABORTED = 0xC0000240 ; The request was aborted. -Global Const $STATUS_CONNECTION_ABORTED = 0xC0000241 ; The transport connection was aborted by the local system. -Global Const $STATUS_BAD_COMPRESSION_BUFFER = 0xC0000242 ; The specified buffer contains ill-formed data. -Global Const $STATUS_USER_MAPPED_FILE = 0xC0000243 ; The requested operation cannot be performed on a file with a user mapped section open. -Global Const $STATUS_AUDIT_FAILED = 0xC0000244 ; {Audit Failed} An attempt to generate a security audit failed. -Global Const $STATUS_TIMER_RESOLUTION_NOT_SET = 0xC0000245 ; The timer resolution was not previously set by the current process. -Global Const $STATUS_CONNECTION_COUNT_LIMIT = 0xC0000246 ; A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached. -Global Const $STATUS_LOGIN_TIME_RESTRICTION = 0xC0000247 ; Attempting to log on during an unauthorized time of day for this account. -Global Const $STATUS_LOGIN_WKSTA_RESTRICTION = 0xC0000248 ; The account is not authorized to log on from this station. -Global Const $STATUS_IMAGE_MP_UP_MISMATCH = 0xC0000249 ; {UP/MP Image Mismatch} The image %hs has been modified for use on a uniprocessor system, but you are running it on a multiprocessor machine. Reinstall the image file. -Global Const $STATUS_INSUFFICIENT_LOGON_INFO = 0xC0000250 ; There is insufficient account information to log you on. -Global Const $STATUS_BAD_DLL_ENTRYPOINT = 0xC0000251 ; {Invalid DLL Entrypoint} The dynamic link library %hs is not written correctly. The stack pointer has been left in an inconsistent state. The entry point should be declared as WINAPI or STDCALL. Select YES to fail the DLL load. Select NO to continue execution. Selecting NO may cause the application to operate incorrectly. -Global Const $STATUS_BAD_SERVICE_ENTRYPOINT = 0xC0000252 ; {Invalid Service Callback Entrypoint} The %hs service is not written correctly. The stack pointer has been left in an inconsistent state. The callback entry point should be declared as WINAPI or STDCALL. Selecting OK will cause the service to continue operation. However, the service process may operate incorrectly. -Global Const $STATUS_LPC_REPLY_LOST = 0xC0000253 ; The server received the messages but did not send a reply. -Global Const $STATUS_IP_ADDRESS_CONFLICT1 = 0xC0000254 ; There is an IP address conflict with another system on the network. -Global Const $STATUS_IP_ADDRESS_CONFLICT2 = 0xC0000255 ; There is an IP address conflict with another system on the network. -Global Const $STATUS_REGISTRY_QUOTA_LIMIT = 0xC0000256 ; {Low On Registry Space} The system has reached the maximum size that is allowed for the system part of the registry. Additional storage requests will be ignored. -Global Const $STATUS_PATH_NOT_COVERED = 0xC0000257 ; The contacted server does not support the indicated part of the DFS namespace. -Global Const $STATUS_NO_CALLBACK_ACTIVE = 0xC0000258 ; A callback return system service cannot be executed when no callback is active. -Global Const $STATUS_LICENSE_QUOTA_EXCEEDED = 0xC0000259 ; The service being accessed is licensed for a particular number of connections. No more connections can be made to the service at this time because the service has already accepted the maximum number of connections. -Global Const $STATUS_PWD_TOO_SHORT = 0xC000025A ; The password provided is too short to meet the policy of your user account. Choose a longer password. -Global Const $STATUS_PWD_TOO_RECENT = 0xC000025B ; The policy of your user account does not allow you to change passwords too frequently. This is done to prevent users from changing back to a familiar, but potentially discovered, password. If you feel your password has been compromised, contact your administrator immediately to have a new one assigned. -Global Const $STATUS_PWD_HISTORY_CONFLICT = 0xC000025C ; You have attempted to change your password to one that you have used in the past. The policy of your user account does not allow this. Select a password that you have not previously used. -Global Const $STATUS_PLUGPLAY_NO_DEVICE = 0xC000025E ; You have attempted to load a legacy device driver while its device instance had been disabled. -Global Const $STATUS_UNSUPPORTED_COMPRESSION = 0xC000025F ; The specified compression format is unsupported. -Global Const $STATUS_INVALID_HW_PROFILE = 0xC0000260 ; The specified hardware profile configuration is invalid. -Global Const $STATUS_INVALID_PLUGPLAY_DEVICE_PATH = 0xC0000261 ; The specified Plug and Play registry device path is invalid. -Global Const $STATUS_DRIVER_ORDINAL_NOT_FOUND = 0xC0000262 ; {Driver Entry Point Not Found} The %hs device driver could not locate the ordinal %ld in driver %hs. -Global Const $STATUS_DRIVER_ENTRYPOINT_NOT_FOUND = 0xC0000263 ; {Driver Entry Point Not Found} The %hs device driver could not locate the entry point %hs in driver %hs. -Global Const $STATUS_RESOURCE_NOT_OWNED = 0xC0000264 ; {Application Error} The application attempted to release a resource it did not own. Click OK to terminate the application. -Global Const $STATUS_TOO_MANY_LINKS = 0xC0000265 ; An attempt was made to create more links on a file than the file system supports. -Global Const $STATUS_QUOTA_LIST_INCONSISTENT = 0xC0000266 ; The specified quota list is internally inconsistent with its descriptor. -Global Const $STATUS_FILE_IS_OFFLINE = 0xC0000267 ; The specified file has been relocated to offline storage. -Global Const $STATUS_EVALUATION_EXPIRATION = 0xC0000268 ; {Windows Evaluation Notification} The evaluation period for this installation of Windows has expired. This system will shutdown in 1 hour. To restore access to this installation of Windows, upgrade this installation by using a licensed distribution of this product. -Global Const $STATUS_ILLEGAL_DLL_RELOCATION = 0xC0000269 ; {Illegal System DLL Relocation} The system DLL %hs was relocated in memory. The application will not run properly. The relocation occurred because the DLL %hs occupied an address range that is reserved for Windows system DLLs. The vendor supplying the DLL should be contacted for a new DLL. -Global Const $STATUS_LICENSE_VIOLATION = 0xC000026A ; {License Violation} The system has detected tampering with your registered product type. This is a violation of your software license. Tampering with the product type is not permitted. -Global Const $STATUS_DLL_INIT_FAILED_LOGOFF = 0xC000026B ; {DLL Initialization Failed} The application failed to initialize because the window station is shutting down. -Global Const $STATUS_DRIVER_UNABLE_TO_LOAD = 0xC000026C ; {Unable to Load Device Driver} %hs device driver could not be loaded. Error Status was 0x%x. -Global Const $STATUS_DFS_UNAVAILABLE = 0xC000026D ; DFS is unavailable on the contacted server. -Global Const $STATUS_VOLUME_DISMOUNTED = 0xC000026E ; An operation was attempted to a volume after it was dismounted. -Global Const $STATUS_WX86_INTERNAL_ERROR = 0xC000026F ; An internal error occurred in the Win32 x86 emulation subsystem. -Global Const $STATUS_WX86_FLOAT_STACK_CHECK = 0xC0000270 ; Win32 x86 emulation subsystem floating-point stack check. -Global Const $STATUS_VALIDATE_CONTINUE = 0xC0000271 ; The validation process needs to continue on to the next step. -Global Const $STATUS_NO_MATCH = 0xC0000272 ; There was no match for the specified key in the index. -Global Const $STATUS_NO_MORE_MATCHES = 0xC0000273 ; There are no more matches for the current index enumeration. -Global Const $STATUS_NOT_A_REPARSE_POINT = 0xC0000275 ; The NTFS file or directory is not a reparse point. -Global Const $STATUS_IO_REPARSE_TAG_INVALID = 0xC0000276 ; The Windows I/O reparse tag passed for the NTFS reparse point is invalid. -Global Const $STATUS_IO_REPARSE_TAG_MISMATCH = 0xC0000277 ; The Windows I/O reparse tag does not match the one that is in the NTFS reparse point. -Global Const $STATUS_IO_REPARSE_DATA_INVALID = 0xC0000278 ; The user data passed for the NTFS reparse point is invalid. -Global Const $STATUS_IO_REPARSE_TAG_NOT_HANDLED = 0xC0000279 ; The layered file system driver for this I/O tag did not handle it when needed. -Global Const $STATUS_REPARSE_POINT_NOT_RESOLVED = 0xC0000280 ; The NTFS symbolic link could not be resolved even though the initial file name is valid. -Global Const $STATUS_DIRECTORY_IS_A_REPARSE_POINT = 0xC0000281 ; The NTFS directory is a reparse point. -Global Const $STATUS_RANGE_LIST_CONFLICT = 0xC0000282 ; The range could not be added to the range list because of a conflict. -Global Const $STATUS_SOURCE_ELEMENT_EMPTY = 0xC0000283 ; The specified medium changer source element contains no media. -Global Const $STATUS_DESTINATION_ELEMENT_FULL = 0xC0000284 ; The specified medium changer destination element already contains media. -Global Const $STATUS_ILLEGAL_ELEMENT_ADDRESS = 0xC0000285 ; The specified medium changer element does not exist. -Global Const $STATUS_MAGAZINE_NOT_PRESENT = 0xC0000286 ; The specified element is contained in a magazine that is no longer present. -Global Const $STATUS_REINITIALIZATION_NEEDED = 0xC0000287 ; The device requires re-initialization due to hardware errors. -Global Const $STATUS_ENCRYPTION_FAILED = 0xC000028A ; The file encryption attempt failed. -Global Const $STATUS_DECRYPTION_FAILED = 0xC000028B ; The file decryption attempt failed. -Global Const $STATUS_RANGE_NOT_FOUND = 0xC000028C ; The specified range could not be found in the range list. -Global Const $STATUS_NO_RECOVERY_POLICY = 0xC000028D ; There is no encryption recovery policy configured for this system. -Global Const $STATUS_NO_EFS = 0xC000028E ; The required encryption driver is not loaded for this system. -Global Const $STATUS_WRONG_EFS = 0xC000028F ; The file was encrypted with a different encryption driver than is currently loaded. -Global Const $STATUS_NO_USER_KEYS = 0xC0000290 ; There are no EFS keys defined for the user. -Global Const $STATUS_FILE_NOT_ENCRYPTED = 0xC0000291 ; The specified file is not encrypted. -Global Const $STATUS_NOT_EXPORT_FORMAT = 0xC0000292 ; The specified file is not in the defined EFS export format. -Global Const $STATUS_FILE_ENCRYPTED = 0xC0000293 ; The specified file is encrypted and the user does not have the ability to decrypt it. -Global Const $STATUS_WMI_GUID_NOT_FOUND = 0xC0000295 ; The GUID passed was not recognized as valid by a WMI data provider. -Global Const $STATUS_WMI_INSTANCE_NOT_FOUND = 0xC0000296 ; The instance name passed was not recognized as valid by a WMI data provider. -Global Const $STATUS_WMI_ITEMID_NOT_FOUND = 0xC0000297 ; The data item ID passed was not recognized as valid by a WMI data provider. -Global Const $STATUS_WMI_TRY_AGAIN = 0xC0000298 ; The WMI request could not be completed and should be retried. -Global Const $STATUS_SHARED_POLICY = 0xC0000299 ; The policy object is shared and can only be modified at the root. -Global Const $STATUS_POLICY_OBJECT_NOT_FOUND = 0xC000029A ; The policy object does not exist when it should. -Global Const $STATUS_POLICY_ONLY_IN_DS = 0xC000029B ; The requested policy information only lives in the Ds. -Global Const $STATUS_VOLUME_NOT_UPGRADED = 0xC000029C ; The volume must be upgraded to enable this feature. -Global Const $STATUS_REMOTE_STORAGE_NOT_ACTIVE = 0xC000029D ; The remote storage service is not operational at this time. -Global Const $STATUS_REMOTE_STORAGE_MEDIA_ERROR = 0xC000029E ; The remote storage service encountered a media error. -Global Const $STATUS_NO_TRACKING_SERVICE = 0xC000029F ; The tracking (workstation) service is not running. -Global Const $STATUS_SERVER_SID_MISMATCH = 0xC00002A0 ; The server process is running under a SID that is different from the SID that is required by client. -Global Const $STATUS_DS_NO_ATTRIBUTE_OR_VALUE = 0xC00002A1 ; The specified directory service attribute or value does not exist. -Global Const $STATUS_DS_INVALID_ATTRIBUTE_SYNTAX = 0xC00002A2 ; The attribute syntax specified to the directory service is invalid. -Global Const $STATUS_DS_ATTRIBUTE_TYPE_UNDEFINED = 0xC00002A3 ; The attribute type specified to the directory service is not defined. -Global Const $STATUS_DS_ATTRIBUTE_OR_VALUE_EXISTS = 0xC00002A4 ; The specified directory service attribute or value already exists. -Global Const $STATUS_DS_BUSY = 0xC00002A5 ; The directory service is busy. -Global Const $STATUS_DS_UNAVAILABLE = 0xC00002A6 ; The directory service is unavailable. -Global Const $STATUS_DS_NO_RIDS_ALLOCATED = 0xC00002A7 ; The directory service was unable to allocate a relative identifier. -Global Const $STATUS_DS_NO_MORE_RIDS = 0xC00002A8 ; The directory service has exhausted the pool of relative identifiers. -Global Const $STATUS_DS_INCORRECT_ROLE_OWNER = 0xC00002A9 ; The requested operation could not be performed because the directory service is not the master for that type of operation. -Global Const $STATUS_DS_RIDMGR_INIT_ERROR = 0xC00002AA ; The directory service was unable to initialize the subsystem that allocates relative identifiers. -Global Const $STATUS_DS_OBJ_CLASS_VIOLATION = 0xC00002AB ; The requested operation did not satisfy one or more constraints that are associated with the class of the object. -Global Const $STATUS_DS_CANT_ON_NON_LEAF = 0xC00002AC ; The directory service can perform the requested operation only on a leaf object. -Global Const $STATUS_DS_CANT_ON_RDN = 0xC00002AD ; The directory service cannot perform the requested operation on the Relatively Defined Name (RDN) attribute of an object. -Global Const $STATUS_DS_CANT_MOD_OBJ_CLASS = 0xC00002AE ; The directory service detected an attempt to modify the object class of an object. -Global Const $STATUS_DS_CROSS_DOM_MOVE_FAILED = 0xC00002AF ; An error occurred while performing a cross domain move operation. -Global Const $STATUS_DS_GC_NOT_AVAILABLE = 0xC00002B0 ; Unable to contact the global catalog server. -Global Const $STATUS_DIRECTORY_SERVICE_REQUIRED = 0xC00002B1 ; The requested operation requires a directory service, and none was available. -Global Const $STATUS_REPARSE_ATTRIBUTE_CONFLICT = 0xC00002B2 ; The reparse attribute cannot be set because it is incompatible with an existing attribute. -Global Const $STATUS_CANT_ENABLE_DENY_ONLY = 0xC00002B3 ; A group marked "use for deny only" cannot be enabled. -Global Const $STATUS_FLOAT_MULTIPLE_FAULTS = 0xC00002B4 ; {EXCEPTION} Multiple floating-point faults. -Global Const $STATUS_FLOAT_MULTIPLE_TRAPS = 0xC00002B5 ; {EXCEPTION} Multiple floating-point traps. -Global Const $STATUS_DEVICE_REMOVED = 0xC00002B6 ; The device has been removed. -Global Const $STATUS_JOURNAL_DELETE_IN_PROGRESS = 0xC00002B7 ; The volume change journal is being deleted. -Global Const $STATUS_JOURNAL_NOT_ACTIVE = 0xC00002B8 ; The volume change journal is not active. -Global Const $STATUS_NOINTERFACE = 0xC00002B9 ; The requested interface is not supported. -Global Const $STATUS_DS_ADMIN_LIMIT_EXCEEDED = 0xC00002C1 ; A directory service resource limit has been exceeded. -Global Const $STATUS_DRIVER_FAILED_SLEEP = 0xC00002C2 ; {System Standby Failed} The driver %hs does not support standby mode. Updating this driver may allow the system to go to standby mode. -Global Const $STATUS_MUTUAL_AUTHENTICATION_FAILED = 0xC00002C3 ; Mutual Authentication failed. The server password is out of date at the domain controller. -Global Const $STATUS_CORRUPT_SYSTEM_FILE = 0xC00002C4 ; The system file %1 has become corrupt and has been replaced. -Global Const $STATUS_DATATYPE_MISALIGNMENT_ERROR = 0xC00002C5 ; {EXCEPTION} Alignment Error A data type misalignment error was detected in a load or store instruction. -Global Const $STATUS_WMI_READ_ONLY = 0xC00002C6 ; The WMI data item or data block is read-only. -Global Const $STATUS_WMI_SET_FAILURE = 0xC00002C7 ; The WMI data item or data block could not be changed. -Global Const $STATUS_COMMITMENT_MINIMUM = 0xC00002C8 ; {Virtual Memory Minimum Too Low} Your system is low on virtual memory. Windows is increasing the size of your virtual memory paging file. During this process, memory requests for some applications may be denied. For more information, see Help. -Global Const $STATUS_REG_NAT_CONSUMPTION = 0xC00002C9 ; {EXCEPTION} Register NaT consumption faults. A NaT value is consumed on a non-speculative instruction. -Global Const $STATUS_TRANSPORT_FULL = 0xC00002CA ; The transport element of the medium changer contains media, which is causing the operation to fail. -Global Const $STATUS_DS_SAM_INIT_FAILURE = 0xC00002CB ; Security Accounts Manager initialization failed because of the following error: %hs Error Status: 0x%x. Click OK to shut down this system and restart in Directory Services Restore Mode. Check the event log for more detailed information. -Global Const $STATUS_ONLY_IF_CONNECTED = 0xC00002CC ; This operation is supported only when you are connected to the server. -Global Const $STATUS_DS_SENSITIVE_GROUP_VIOLATION = 0xC00002CD ; Only an administrator can modify the membership list of an administrative group. -Global Const $STATUS_PNP_RESTART_ENUMERATION = 0xC00002CE ; A device was removed so enumeration must be restarted. -Global Const $STATUS_JOURNAL_ENTRY_DELETED = 0xC00002CF ; The journal entry has been deleted from the journal. -Global Const $STATUS_DS_CANT_MOD_PRIMARYGROUPID = 0xC00002D0 ; Cannot change the primary group ID of a domain controller account. -Global Const $STATUS_SYSTEM_IMAGE_BAD_SIGNATURE = 0xC00002D1 ; {Fatal System Error} The system image %s is not properly signed. The file has been replaced with the signed file. The system has been shut down. -Global Const $STATUS_PNP_REBOOT_REQUIRED = 0xC00002D2 ; The device will not start without a reboot. -Global Const $STATUS_POWER_STATE_INVALID = 0xC00002D3 ; The power state of the current device cannot support this request. -Global Const $STATUS_DS_INVALID_GROUP_TYPE = 0xC00002D4 ; The specified group type is invalid. -Global Const $STATUS_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN = 0xC00002D5 ; In a mixed domain, no nesting of a global group if the group is security enabled. -Global Const $STATUS_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN = 0xC00002D6 ; In a mixed domain, cannot nest local groups with other local groups, if the group is security enabled. -Global Const $STATUS_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER = 0xC00002D7 ; A global group cannot have a local group as a member. -Global Const $STATUS_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER = 0xC00002D8 ; A global group cannot have a universal group as a member. -Global Const $STATUS_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER = 0xC00002D9 ; A universal group cannot have a local group as a member. -Global Const $STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER = 0xC00002DA ; A global group cannot have a cross-domain member. -Global Const $STATUS_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER = 0xC00002DB ; A local group cannot have another cross-domain local group as a member. -Global Const $STATUS_DS_HAVE_PRIMARY_MEMBERS = 0xC00002DC ; Cannot change to a security-disabled group because primary members are in this group. -Global Const $STATUS_WMI_NOT_SUPPORTED = 0xC00002DD ; The WMI operation is not supported by the data block or method. -Global Const $STATUS_INSUFFICIENT_POWER = 0xC00002DE ; There is not enough power to complete the requested operation. -Global Const $STATUS_SAM_NEED_BOOTKEY_PASSWORD = 0xC00002DF ; The Security Accounts Manager needs to get the boot password. -Global Const $STATUS_SAM_NEED_BOOTKEY_FLOPPY = 0xC00002E0 ; The Security Accounts Manager needs to get the boot key from the floppy disk. -Global Const $STATUS_DS_CANT_START = 0xC00002E1 ; The directory service cannot start. -Global Const $STATUS_DS_INIT_FAILURE = 0xC00002E2 ; The directory service could not start because of the following error: %hs Error Status: 0x%x. Click OK to shut down this system and restart in Directory Services Restore Mode. Check the event log for more detailed information. -Global Const $STATUS_SAM_INIT_FAILURE = 0xC00002E3 ; The Security Accounts Manager initialization failed because of the following error: %hs Error Status: 0x%x. Click OK to shut down this system and restart in Safe Mode. Check the event log for more detailed information. -Global Const $STATUS_DS_GC_REQUIRED = 0xC00002E4 ; The requested operation can be performed only on a global catalog server. -Global Const $STATUS_DS_LOCAL_MEMBER_OF_LOCAL_ONLY = 0xC00002E5 ; A local group can only be a member of other local groups in the same domain. -Global Const $STATUS_DS_NO_FPO_IN_UNIVERSAL_GROUPS = 0xC00002E6 ; Foreign security principals cannot be members of universal groups. -Global Const $STATUS_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED = 0xC00002E7 ; Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased. -Global Const $STATUS_CURRENT_DOMAIN_NOT_ALLOWED = 0xC00002E9 ; This operation cannot be performed on the current domain. -Global Const $STATUS_CANNOT_MAKE = 0xC00002EA ; The directory or file cannot be created. -Global Const $STATUS_SYSTEM_SHUTDOWN = 0xC00002EB ; The system is in the process of shutting down. -Global Const $STATUS_DS_INIT_FAILURE_CONSOLE = 0xC00002EC ; Directory Services could not start because of the following error: %hs Error Status: 0x%x. Click OK to shut down the system. You can use the recovery console to diagnose the system further. -Global Const $STATUS_DS_SAM_INIT_FAILURE_CONSOLE = 0xC00002ED ; Security Accounts Manager initialization failed because of the following error: %hs Error Status: 0x%x. Click OK to shut down the system. You can use the recovery console to diagnose the system further. -Global Const $STATUS_UNFINISHED_CONTEXT_DELETED = 0xC00002EE ; A security context was deleted before the context was completed. This is considered a logon failure. -Global Const $STATUS_NO_TGT_REPLY = 0xC00002EF ; The client is trying to negotiate a context and the server requires user-to-user but did not send a TGT reply. -Global Const $STATUS_OBJECTID_NOT_FOUND = 0xC00002F0 ; An object ID was not found in the file. -Global Const $STATUS_NO_IP_ADDRESSES = 0xC00002F1 ; Unable to accomplish the requested task because the local machine does not have any IP addresses. -Global Const $STATUS_WRONG_CREDENTIAL_HANDLE = 0xC00002F2 ; The supplied credential handle does not match the credential that is associated with the security context. -Global Const $STATUS_CRYPTO_SYSTEM_INVALID = 0xC00002F3 ; The crypto system or checksum function is invalid because a required function is unavailable. -Global Const $STATUS_MAX_REFERRALS_EXCEEDED = 0xC00002F4 ; The number of maximum ticket referrals has been exceeded. -Global Const $STATUS_MUST_BE_KDC = 0xC00002F5 ; The local machine must be a Kerberos KDC (domain controller) and it is not. -Global Const $STATUS_STRONG_CRYPTO_NOT_SUPPORTED = 0xC00002F6 ; The other end of the security negotiation requires strong crypto but it is not supported on the local machine. -Global Const $STATUS_TOO_MANY_PRINCIPALS = 0xC00002F7 ; The KDC reply contained more than one principal name. -Global Const $STATUS_NO_PA_DATA = 0xC00002F8 ; Expected to find PA data for a hint of what etype to use, but it was not found. -Global Const $STATUS_PKINIT_NAME_MISMATCH = 0xC00002F9 ; The client certificate does not contain a valid UPN, or does not match the client name in the logon request. Contact your administrator. -Global Const $STATUS_SMARTCARD_LOGON_REQUIRED = 0xC00002FA ; Smart card logon is required and was not used. -Global Const $STATUS_KDC_INVALID_REQUEST = 0xC00002FB ; An invalid request was sent to the KDC. -Global Const $STATUS_KDC_UNABLE_TO_REFER = 0xC00002FC ; The KDC was unable to generate a referral for the service requested. -Global Const $STATUS_KDC_UNKNOWN_ETYPE = 0xC00002FD ; The encryption type requested is not supported by the KDC. -Global Const $STATUS_SHUTDOWN_IN_PROGRESS = 0xC00002FE ; A system shutdown is in progress. -Global Const $STATUS_SERVER_SHUTDOWN_IN_PROGRESS = 0xC00002FF ; The server machine is shutting down. -Global Const $STATUS_NOT_SUPPORTED_ON_SBS = 0xC0000300 ; This operation is not supported on a computer running Windows Server 2003 for Small Business Server. -Global Const $STATUS_WMI_GUID_DISCONNECTED = 0xC0000301 ; The WMI GUID is no longer available. -Global Const $STATUS_WMI_ALREADY_DISABLED = 0xC0000302 ; Collection or events for the WMI GUID is already disabled. -Global Const $STATUS_WMI_ALREADY_ENABLED = 0xC0000303 ; Collection or events for the WMI GUID is already enabled. -Global Const $STATUS_MFT_TOO_FRAGMENTED = 0xC0000304 ; The master file table on the volume is too fragmented to complete this operation. -Global Const $STATUS_COPY_PROTECTION_FAILURE = 0xC0000305 ; Copy protection failure. -Global Const $STATUS_CSS_AUTHENTICATION_FAILURE = 0xC0000306 ; Copy protection error�DVD CSS Authentication failed. -Global Const $STATUS_CSS_KEY_NOT_PRESENT = 0xC0000307 ; Copy protection error�The specified sector does not contain a valid key. -Global Const $STATUS_CSS_KEY_NOT_ESTABLISHED = 0xC0000308 ; Copy protection error�DVD session key not established. -Global Const $STATUS_CSS_SCRAMBLED_SECTOR = 0xC0000309 ; Copy protection error�The read failed because the sector is encrypted. -Global Const $STATUS_CSS_REGION_MISMATCH = 0xC000030A ; Copy protection error�The region of the specified DVD does not correspond to the region setting of the drive. -Global Const $STATUS_CSS_RESETS_EXHAUSTED = 0xC000030B ; Copy protection error�The region setting of the drive may be permanent. -Global Const $STATUS_PKINIT_FAILURE = 0xC0000320 ; The Kerberos protocol encountered an error while validating the KDC certificate during smart card logon. There is more information in the system event log. -Global Const $STATUS_SMARTCARD_SUBSYSTEM_FAILURE = 0xC0000321 ; The Kerberos protocol encountered an error while attempting to use the smart card subsystem. -Global Const $STATUS_NO_KERB_KEY = 0xC0000322 ; The target server does not have acceptable Kerberos credentials. -Global Const $STATUS_HOST_DOWN = 0xC0000350 ; The transport determined that the remote system is down. -Global Const $STATUS_UNSUPPORTED_PREAUTH = 0xC0000351 ; An unsupported pre-authentication mechanism was presented to the Kerberos package. -Global Const $STATUS_EFS_ALG_BLOB_TOO_BIG = 0xC0000352 ; The encryption algorithm that is used on the source file needs a bigger key buffer than the one that is used on the destination file. -Global Const $STATUS_PORT_NOT_SET = 0xC0000353 ; An attempt to remove a processes DebugPort was made, but a port was not already associated with the process. -Global Const $STATUS_DEBUGGER_INACTIVE = 0xC0000354 ; An attempt to do an operation on a debug port failed because the port is in the process of being deleted. -Global Const $STATUS_DS_VERSION_CHECK_FAILURE = 0xC0000355 ; This version of Windows is not compatible with the behavior version of the directory forest, domain, or domain controller. -Global Const $STATUS_AUDITING_DISABLED = 0xC0000356 ; The specified event is currently not being audited. -Global Const $STATUS_PRENT4_MACHINE_ACCOUNT = 0xC0000357 ; The machine account was created prior to Windows NT 4.0. The account needs to be recreated. -Global Const $STATUS_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER = 0xC0000358 ; An account group cannot have a universal group as a member. -Global Const $STATUS_INVALID_IMAGE_WIN_32 = 0xC0000359 ; The specified image file did not have the correct format; it appears to be a 32-bit Windows image. -Global Const $STATUS_INVALID_IMAGE_WIN_64 = 0xC000035A ; The specified image file did not have the correct format; it appears to be a 64-bit Windows image. -Global Const $STATUS_BAD_BINDINGS = 0xC000035B ; The client's supplied SSPI channel bindings were incorrect. -Global Const $STATUS_NETWORK_SESSION_EXPIRED = 0xC000035C ; The client session has expired; so the client must re-authenticate to continue accessing the remote resources. -Global Const $STATUS_APPHELP_BLOCK = 0xC000035D ; The AppHelp dialog box canceled; thus preventing the application from starting. -Global Const $STATUS_ALL_SIDS_FILTERED = 0xC000035E ; The SID filtering operation removed all SIDs. -Global Const $STATUS_NOT_SAFE_MODE_DRIVER = 0xC000035F ; The driver was not loaded because the system is starting in safe mode. -Global Const $STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT = 0xC0000361 ; Access to %1 has been restricted by your Administrator by the default software restriction policy level. -Global Const $STATUS_ACCESS_DISABLED_BY_POLICY_PATH = 0xC0000362 ; Access to %1 has been restricted by your Administrator by location with policy rule %2 placed on path %3. -Global Const $STATUS_ACCESS_DISABLED_BY_POLICY_PUBLISHER = 0xC0000363 ; Access to %1 has been restricted by your Administrator by software publisher policy. -Global Const $STATUS_ACCESS_DISABLED_BY_POLICY_OTHER = 0xC0000364 ; Access to %1 has been restricted by your Administrator by policy rule %2. -Global Const $STATUS_FAILED_DRIVER_ENTRY = 0xC0000365 ; The driver was not loaded because it failed its initialization call. -Global Const $STATUS_DEVICE_ENUMERATION_ERROR = 0xC0000366 ; The device encountered an error while applying power or reading the device configuration. This may be caused by a failure of your hardware or by a poor connection. -Global Const $STATUS_MOUNT_POINT_NOT_RESOLVED = 0xC0000368 ; The create operation failed because the name contained at least one mount point that resolves to a volume to which the specified device object is not attached. -Global Const $STATUS_INVALID_DEVICE_OBJECT_PARAMETER = 0xC0000369 ; The device object parameter is either not a valid device object or is not attached to the volume that is specified by the file name. -Global Const $STATUS_MCA_OCCURED = 0xC000036A ; A machine check error has occurred. Check the system event log for additional information. -Global Const $STATUS_DRIVER_BLOCKED_CRITICAL = 0xC000036B ; Driver %2 has been blocked from loading. -Global Const $STATUS_DRIVER_BLOCKED = 0xC000036C ; Driver %2 has been blocked from loading. -Global Const $STATUS_DRIVER_DATABASE_ERROR = 0xC000036D ; There was error [%2] processing the driver database. -Global Const $STATUS_SYSTEM_HIVE_TOO_LARGE = 0xC000036E ; System hive size has exceeded its limit. -Global Const $STATUS_INVALID_IMPORT_OF_NON_DLL = 0xC000036F ; A dynamic link library (DLL) referenced a module that was neither a DLL nor the process's executable image. -Global Const $STATUS_NO_SECRETS = 0xC0000371 ; The local account store does not contain secret material for the specified account. -Global Const $STATUS_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY = 0xC0000372 ; Access to %1 has been restricted by your Administrator by policy rule %2. -Global Const $STATUS_FAILED_STACK_SWITCH = 0xC0000373 ; The system was not able to allocate enough memory to perform a stack switch. -Global Const $STATUS_HEAP_CORRUPTION = 0xC0000374 ; A heap has been corrupted. -Global Const $STATUS_SMARTCARD_WRONG_PIN = 0xC0000380 ; An incorrect PIN was presented to the smart card. -Global Const $STATUS_SMARTCARD_CARD_BLOCKED = 0xC0000381 ; The smart card is blocked. -Global Const $STATUS_SMARTCARD_CARD_NOT_AUTHENTICATED = 0xC0000382 ; No PIN was presented to the smart card. -Global Const $STATUS_SMARTCARD_NO_CARD = 0xC0000383 ; No smart card is available. -Global Const $STATUS_SMARTCARD_NO_KEY_CONTAINER = 0xC0000384 ; The requested key container does not exist on the smart card. -Global Const $STATUS_SMARTCARD_NO_CERTIFICATE = 0xC0000385 ; The requested certificate does not exist on the smart card. -Global Const $STATUS_SMARTCARD_NO_KEYSET = 0xC0000386 ; The requested keyset does not exist. -Global Const $STATUS_SMARTCARD_IO_ERROR = 0xC0000387 ; A communication error with the smart card has been detected. -Global Const $STATUS_DOWNGRADE_DETECTED = 0xC0000388 ; The system detected a possible attempt to compromise security. Ensure that you can contact the server that authenticated you. -Global Const $STATUS_SMARTCARD_CERT_REVOKED = 0xC0000389 ; The smart card certificate used for authentication has been revoked. Contact your system administrator. There may be additional information in the event log. -Global Const $STATUS_ISSUING_CA_UNTRUSTED = 0xC000038A ; An untrusted certificate authority was detected while processing the smart card certificate that is used for authentication. Contact your system administrator. -Global Const $STATUS_REVOCATION_OFFLINE_C = 0xC000038B ; The revocation status of the smart card certificate that is used for authentication could not be determined. Contact your system administrator. -Global Const $STATUS_PKINIT_CLIENT_FAILURE = 0xC000038C ; The smart card certificate used for authentication was not trusted. Contact your system administrator. -Global Const $STATUS_SMARTCARD_CERT_EXPIRED = 0xC000038D ; The smart card certificate used for authentication has expired. Contact your system administrator. -Global Const $STATUS_DRIVER_FAILED_PRIOR_UNLOAD = 0xC000038E ; The driver could not be loaded because a previous version of the driver is still in memory. -Global Const $STATUS_SMARTCARD_SILENT_CONTEXT = 0xC000038F ; The smart card provider could not perform the action because the context was acquired as silent. -Global Const $STATUS_PER_USER_TRUST_QUOTA_EXCEEDED = 0xC0000401 ; The delegated trust creation quota of the current user has been exceeded. -Global Const $STATUS_ALL_USER_TRUST_QUOTA_EXCEEDED = 0xC0000402 ; The total delegated trust creation quota has been exceeded. -Global Const $STATUS_USER_DELETE_TRUST_QUOTA_EXCEEDED = 0xC0000403 ; The delegated trust deletion quota of the current user has been exceeded. -Global Const $STATUS_DS_NAME_NOT_UNIQUE = 0xC0000404 ; The requested name already exists as a unique identifier. -Global Const $STATUS_DS_DUPLICATE_ID_FOUND = 0xC0000405 ; The requested object has a non-unique identifier and cannot be retrieved. -Global Const $STATUS_DS_GROUP_CONVERSION_ERROR = 0xC0000406 ; The group cannot be converted due to attribute restrictions on the requested group type. -Global Const $STATUS_VOLSNAP_PREPARE_HIBERNATE = 0xC0000407 ; {Volume Shadow Copy Service} Wait while the Volume Shadow Copy Service prepares volume %hs for hibernation. -Global Const $STATUS_USER2USER_REQUIRED = 0xC0000408 ; Kerberos sub-protocol User2User is required. -Global Const $STATUS_STACK_BUFFER_OVERRUN = 0xC0000409 ; The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application. -Global Const $STATUS_NO_S4U_PROT_SUPPORT = 0xC000040A ; The Kerberos subsystem encountered an error. A service for user protocol request was made against a domain controller which does not support service for user. -Global Const $STATUS_CROSSREALM_DELEGATION_FAILURE = 0xC000040B ; An attempt was made by this server to make a Kerberos constrained delegation request for a target that is outside the server realm. This action is not supported and the resulting error indicates a misconfiguration on the allowed-to-delegate-to list for this server. Contact your administrator. -Global Const $STATUS_REVOCATION_OFFLINE_KDC = 0xC000040C ; The revocation status of the domain controller certificate used for smart card authentication could not be determined. There is additional information in the system event log. Contact your system administrator. -Global Const $STATUS_ISSUING_CA_UNTRUSTED_KDC = 0xC000040D ; An untrusted certificate authority was detected while processing the domain controller certificate used for authentication. There is additional information in the system event log. Contact your system administrator. -Global Const $STATUS_KDC_CERT_EXPIRED = 0xC000040E ; The domain controller certificate used for smart card logon has expired. Contact your system administrator with the contents of your system event log. -Global Const $STATUS_KDC_CERT_REVOKED = 0xC000040F ; The domain controller certificate used for smart card logon has been revoked. Contact your system administrator with the contents of your system event log. -Global Const $STATUS_PARAMETER_QUOTA_EXCEEDED = 0xC0000410 ; Data present in one of the parameters is more than the function can operate on. -Global Const $STATUS_HIBERNATION_FAILURE = 0xC0000411 ; The system has failed to hibernate (The error code is %hs). Hibernation will be disabled until the system is restarted. -Global Const $STATUS_DELAY_LOAD_FAILED = 0xC0000412 ; An attempt to delay-load a .dll or get a function address in a delay-loaded .dll failed. -Global Const $STATUS_AUTHENTICATION_FIREWALL_FAILED = 0xC0000413 ; Logon Failure: The machine you are logging onto is protected by an authentication firewall. The specified account is not allowed to authenticate to the machine. -Global Const $STATUS_VDM_DISALLOWED = 0xC0000414 ; %hs is a 16-bit application. You do not have permissions to execute 16-bit applications. Check your permissions with your system administrator. -Global Const $STATUS_HUNG_DISPLAY_DRIVER_THREAD = 0xC0000415 ; {Display Driver Stopped Responding} The %hs display driver has stopped working normally. Save your work and reboot the system to restore full display functionality. The next time you reboot the machine a dialog will be displayed giving you a chance to report this failure to Microsoft. -Global Const $STATUS_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE = 0xC0000416 ; The Desktop heap encountered an error while allocating session memory. There is more information in the system event log. -Global Const $STATUS_INVALID_CRUNTIME_PARAMETER = 0xC0000417 ; An invalid parameter was passed to a C runtime function. -Global Const $STATUS_NTLM_BLOCKED = 0xC0000418 ; The authentication failed because NTLM was blocked. -Global Const $STATUS_DS_SRC_SID_EXISTS_IN_FOREST = 0xC0000419 ; The source object's SID already exists in destination forest. -Global Const $STATUS_DS_DOMAIN_NAME_EXISTS_IN_FOREST = 0xC000041A ; The domain name of the trusted domain already exists in the forest. -Global Const $STATUS_DS_FLAT_NAME_EXISTS_IN_FOREST = 0xC000041B ; The flat name of the trusted domain already exists in the forest. -Global Const $STATUS_INVALID_USER_PRINCIPAL_NAME = 0xC000041C ; The User Principal Name (UPN) is invalid. -Global Const $STATUS_ASSERTION_FAILURE = 0xC0000420 ; There has been an assertion failure. -Global Const $STATUS_VERIFIER_STOP = 0xC0000421 ; Application verifier has found an error in the current process. -Global Const $STATUS_CALLBACK_POP_STACK = 0xC0000423 ; A user mode unwind is in progress. -Global Const $STATUS_INCOMPATIBLE_DRIVER_BLOCKED = 0xC0000424 ; %2 has been blocked from loading due to incompatibility with this system. Contact your software vendor for a compatible version of the driver. -Global Const $STATUS_HIVE_UNLOADED = 0xC0000425 ; Illegal operation attempted on a registry key which has already been unloaded. -Global Const $STATUS_COMPRESSION_DISABLED = 0xC0000426 ; Compression is disabled for this volume. -Global Const $STATUS_FILE_SYSTEM_LIMITATION = 0xC0000427 ; The requested operation could not be completed due to a file system limitation. -Global Const $STATUS_INVALID_IMAGE_HASH = 0xC0000428 ; The hash for image %hs cannot be found in the system catalogs. The image is likely corrupt or the victim of tampering. -Global Const $STATUS_NOT_CAPABLE = 0xC0000429 ; The implementation is not capable of performing the request. -Global Const $STATUS_REQUEST_OUT_OF_SEQUENCE = 0xC000042A ; The requested operation is out of order with respect to other operations. -Global Const $STATUS_IMPLEMENTATION_LIMIT = 0xC000042B ; An operation attempted to exceed an implementation-defined limit. -Global Const $STATUS_ELEVATION_REQUIRED = 0xC000042C ; The requested operation requires elevation. -Global Const $STATUS_NO_SECURITY_CONTEXT = 0xC000042D ; The required security context does not exist. -Global Const $STATUS_PKU2U_CERT_FAILURE = 0xC000042E ; The PKU2U protocol encountered an error while attempting to utilize the associated certificates. -Global Const $STATUS_BEYOND_VDL = 0xC0000432 ; The operation was attempted beyond the valid data length of the file. -Global Const $STATUS_ENCOUNTERED_WRITE_IN_PROGRESS = 0xC0000433 ; The attempted write operation encountered a write already in progress for some portion of the range. -Global Const $STATUS_PTE_CHANGED = 0xC0000434 ; The page fault mappings changed in the middle of processing a fault so the operation must be retried. -Global Const $STATUS_PURGE_FAILED = 0xC0000435 ; The attempt to purge this file from memory failed to purge some or all the data from memory. -Global Const $STATUS_CRED_REQUIRES_CONFIRMATION = 0xC0000440 ; The requested credential requires confirmation. -Global Const $STATUS_CS_ENCRYPTION_INVALID_SERVER_RESPONSE = 0xC0000441 ; The remote server sent an invalid response for a file being opened with Client Side Encryption. -Global Const $STATUS_CS_ENCRYPTION_UNSUPPORTED_SERVER = 0xC0000442 ; Client Side Encryption is not supported by the remote server even though it claims to support it. -Global Const $STATUS_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE = 0xC0000443 ; File is encrypted and should be opened in Client Side Encryption mode. -Global Const $STATUS_CS_ENCRYPTION_NEW_ENCRYPTED_FILE = 0xC0000444 ; A new encrypted file is being created and a $EFS needs to be provided. -Global Const $STATUS_CS_ENCRYPTION_FILE_NOT_CSE = 0xC0000445 ; The SMB client requested a CSE FSCTL on a non-CSE file. -Global Const $STATUS_INVALID_LABEL = 0xC0000446 ; Indicates a particular Security ID may not be assigned as the label of an object. -Global Const $STATUS_DRIVER_PROCESS_TERMINATED = 0xC0000450 ; The process hosting the driver for this device has terminated. -Global Const $STATUS_AMBIGUOUS_SYSTEM_DEVICE = 0xC0000451 ; The requested system device cannot be identified due to multiple indistinguishable devices potentially matching the identification criteria. -Global Const $STATUS_SYSTEM_DEVICE_NOT_FOUND = 0xC0000452 ; The requested system device cannot be found. -Global Const $STATUS_RESTART_BOOT_APPLICATION = 0xC0000453 ; This boot application must be restarted. -Global Const $STATUS_INSUFFICIENT_NVRAM_RESOURCES = 0xC0000454 ; Insufficient NVRAM resources exist to complete the API. A reboot might be required. -Global Const $STATUS_INVALID_TASK_NAME = 0xC0000500 ; The specified task name is invalid. -Global Const $STATUS_INVALID_TASK_INDEX = 0xC0000501 ; The specified task index is invalid. -Global Const $STATUS_THREAD_ALREADY_IN_TASK = 0xC0000502 ; The specified thread is already joining a task. -Global Const $STATUS_CALLBACK_BYPASS = 0xC0000503 ; A callback has requested to bypass native code. -Global Const $STATUS_FAIL_FAST_EXCEPTION = 0xC0000602 ; A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately. -Global Const $STATUS_IMAGE_CERT_REVOKED = 0xC0000603 ; Windows cannot verify the digital signature for this file. The signing certificate for this file has been revoked. -Global Const $STATUS_PORT_CLOSED = 0xC0000700 ; The ALPC port is closed. -Global Const $STATUS_MESSAGE_LOST = 0xC0000701 ; The ALPC message requested is no longer available. -Global Const $STATUS_INVALID_MESSAGE = 0xC0000702 ; The ALPC message supplied is invalid. -Global Const $STATUS_REQUEST_CANCELED = 0xC0000703 ; The ALPC message has been canceled. -Global Const $STATUS_RECURSIVE_DISPATCH = 0xC0000704 ; Invalid recursive dispatch attempt. -Global Const $STATUS_LPC_RECEIVE_BUFFER_EXPECTED = 0xC0000705 ; No receive buffer has been supplied in a synchronous request. -Global Const $STATUS_LPC_INVALID_CONNECTION_USAGE = 0xC0000706 ; The connection port is used in an invalid context. -Global Const $STATUS_LPC_REQUESTS_NOT_ALLOWED = 0xC0000707 ; The ALPC port does not accept new request messages. -Global Const $STATUS_RESOURCE_IN_USE = 0xC0000708 ; The resource requested is already in use. -Global Const $STATUS_HARDWARE_MEMORY_ERROR = 0xC0000709 ; The hardware has reported an uncorrectable memory error. -Global Const $STATUS_THREADPOOL_HANDLE_EXCEPTION = 0xC000070A ; Status 0x%08x was returned, waiting on handle 0x%x for wait 0x%p, in waiter 0x%p. -Global Const $STATUS_THREADPOOL_SET_EVENT_ON_COMPLETION_FAILED = 0xC000070B ; After a callback to 0x%p(0x%p), a completion call to Set event(0x%p) failed with status 0x%08x. -Global Const $STATUS_THREADPOOL_RELEASE_SEMAPHORE_ON_COMPLETION_FAILED = 0xC000070C ; After a callback to 0x%p(0x%p), a completion call to ReleaseSemaphore(0x%p, %d) failed with status 0x%08x. -Global Const $STATUS_THREADPOOL_RELEASE_MUTEX_ON_COMPLETION_FAILED = 0xC000070D ; After a callback to 0x%p(0x%p), a completion call to ReleaseMutex(%p) failed with status 0x%08x. -Global Const $STATUS_THREADPOOL_FREE_LIBRARY_ON_COMPLETION_FAILED = 0xC000070E ; After a callback to 0x%p(0x%p), a completion call to FreeLibrary(%p) failed with status 0x%08x. -Global Const $STATUS_THREADPOOL_RELEASED_DURING_OPERATION = 0xC000070F ; The thread pool 0x%p was released while a thread was posting a callback to 0x%p(0x%p) to it. -Global Const $STATUS_CALLBACK_RETURNED_WHILE_IMPERSONATING = 0xC0000710 ; A thread pool worker thread is impersonating a client, after a callback to 0x%p(0x%p). This is unexpected, indicating that the callback is missing a call to revert the impersonation. -Global Const $STATUS_APC_RETURNED_WHILE_IMPERSONATING = 0xC0000711 ; A thread pool worker thread is impersonating a client, after executing an APC. This is unexpected, indicating that the APC is missing a call to revert the impersonation. -Global Const $STATUS_PROCESS_IS_PROTECTED = 0xC0000712 ; Either the target process, or the target thread's containing process, is a protected process. -Global Const $STATUS_MCA_EXCEPTION = 0xC0000713 ; A thread is getting dispatched with MCA EXCEPTION because of MCA. -Global Const $STATUS_CERTIFICATE_MAPPING_NOT_UNIQUE = 0xC0000714 ; The client certificate account mapping is not unique. -Global Const $STATUS_SYMLINK_CLASS_DISABLED = 0xC0000715 ; The symbolic link cannot be followed because its type is disabled. -Global Const $STATUS_INVALID_IDN_NORMALIZATION = 0xC0000716 ; Indicates that the specified string is not valid for IDN normalization. -Global Const $STATUS_NO_UNICODE_TRANSLATION = 0xC0000717 ; No mapping for the Unicode character exists in the target multi-byte code page. -Global Const $STATUS_ALREADY_REGISTERED = 0xC0000718 ; The provided callback is already registered. -Global Const $STATUS_CONTEXT_MISMATCH = 0xC0000719 ; The provided context did not match the target. -Global Const $STATUS_PORT_ALREADY_HAS_COMPLETION_LIST = 0xC000071A ; The specified port already has a completion list. -Global Const $STATUS_CALLBACK_RETURNED_THREAD_PRIORITY = 0xC000071B ; A threadpool worker thread entered a callback at thread base priority 0x%x and exited at priority 0x%x. -Global Const $STATUS_INVALID_THREAD = 0xC000071C ; An invalid thread, handle %p, is specified for this operation. Possibly, a threadpool worker thread was specified. -Global Const $STATUS_CALLBACK_RETURNED_TRANSACTION = 0xC000071D ; A threadpool worker thread entered a callback, which left transaction state. -Global Const $STATUS_CALLBACK_RETURNED_LDR_LOCK = 0xC000071E ; A threadpool worker thread entered a callback, which left the loader lock held. -Global Const $STATUS_CALLBACK_RETURNED_LANG = 0xC000071F ; A threadpool worker thread entered a callback, which left with preferred languages set. -Global Const $STATUS_CALLBACK_RETURNED_PRI_BACK = 0xC0000720 ; A threadpool worker thread entered a callback, which left with background priorities set. -Global Const $STATUS_DISK_REPAIR_DISABLED = 0xC0000800 ; The attempted operation required self healing to be enabled. -Global Const $STATUS_DS_DOMAIN_RENAME_IN_PROGRESS = 0xC0000801 ; The directory service cannot perform the requested operation because a domain rename operation is in progress. -Global Const $STATUS_DISK_QUOTA_EXCEEDED = 0xC0000802 ; An operation failed because the storage quota was exceeded. -Global Const $STATUS_CONTENT_BLOCKED = 0xC0000804 ; An operation failed because the content was blocked. -Global Const $STATUS_BAD_CLUSTERS = 0xC0000805 ; The operation could not be completed due to bad clusters on disk. -Global Const $STATUS_VOLUME_DIRTY = 0xC0000806 ; The operation could not be completed because the volume is dirty. Please run the Chkdsk utility and try again. -Global Const $STATUS_FILE_CHECKED_OUT = 0xC0000901 ; This file is checked out or locked for editing by another user. -Global Const $STATUS_CHECKOUT_REQUIRED = 0xC0000902 ; The file must be checked out before saving changes. -Global Const $STATUS_BAD_FILE_TYPE = 0xC0000903 ; The file type being saved or retrieved has been blocked. -Global Const $STATUS_FILE_TOO_LARGE = 0xC0000904 ; The file size exceeds the limit allowed and cannot be saved. -Global Const $STATUS_FORMS_AUTH_REQUIRED = 0xC0000905 ; Access Denied. Before opening files in this location, you must first browse to the e.g. site and select the option to log on automatically. -Global Const $STATUS_VIRUS_INFECTED = 0xC0000906 ; The operation did not complete successfully because the file contains a virus. -Global Const $STATUS_VIRUS_DELETED = 0xC0000907 ; This file contains a virus and cannot be opened. Due to the nature of this virus, the file has been removed from this location. -Global Const $STATUS_BAD_MCFG_TABLE = 0xC0000908 ; The resources required for this device conflict with the MCFG table. -Global Const $STATUS_CANNOT_BREAK_OPLOCK = 0xC0000909 ; The operation did not complete successfully because it would cause an oplock to be broken. The caller has requested that existing oplocks not be broken. -Global Const $STATUS_WOW_ASSERTION = 0xC0009898 ; WOW Assertion Error. -Global Const $STATUS_INVALID_SIGNATURE = 0xC000A000 ; The cryptographic signature is invalid. -Global Const $STATUS_HMAC_NOT_SUPPORTED = 0xC000A001 ; The cryptographic provider does not support HMAC. -Global Const $STATUS_IPSEC_QUEUE_OVERFLOW = 0xC000A010 ; The IPsec queue overflowed. -Global Const $STATUS_ND_QUEUE_OVERFLOW = 0xC000A011 ; The neighbor discovery queue overflowed. -Global Const $STATUS_HOPLIMIT_EXCEEDED = 0xC000A012 ; An Internet Control Message Protocol (ICMP) hop limit exceeded error was received. -Global Const $STATUS_PROTOCOL_NOT_SUPPORTED = 0xC000A013 ; The protocol is not installed on the local machine. -Global Const $STATUS_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED = 0xC000A080 ; {Delayed Write Failed} Windows was unable to save all the data for the file %hs; the data has been lost. This error may be caused by network connectivity issues. Try to save this file elsewhere. -Global Const $STATUS_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR = 0xC000A081 ; {Delayed Write Failed} Windows was unable to save all the data for the file %hs; the data has been lost. This error was returned by the server on which the file exists. Try to save this file elsewhere. -Global Const $STATUS_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR = 0xC000A082 ; {Delayed Write Failed} Windows was unable to save all the data for the file %hs; the data has been lost. This error may be caused if the device has been removed or the media is write-protected. -Global Const $STATUS_XML_PARSE_ERROR = 0xC000A083 ; Windows was unable to parse the requested XML data. -Global Const $STATUS_XMLDSIG_ERROR = 0xC000A084 ; An error was encountered while processing an XML digital signature. -Global Const $STATUS_WRONG_COMPARTMENT = 0xC000A085 ; This indicates that the caller made the connection request in the wrong routing compartment. -Global Const $STATUS_AUTHIP_FAILURE = 0xC000A086 ; This indicates that there was an AuthIP failure when attempting to connect to the remote host. -Global Const $STATUS_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS = 0xC000A087 ; OID mapped groups cannot have members. -Global Const $STATUS_DS_OID_NOT_FOUND = 0xC000A088 ; The specified OID cannot be found. -Global Const $STATUS_HASH_NOT_SUPPORTED = 0xC000A100 ; Hash generation for the specified version and hash type is not enabled on server. -Global Const $STATUS_HASH_NOT_PRESENT = 0xC000A101 ; The hash requests is not present or not up to date with the current file contents. -Global Const $STATUS_PNP_BAD_MPS_TABLE = 0xC0040035 ; A device is missing in the system BIOS MPS table. This device will not be used. Contact your system vendor for a system BIOS update. -Global Const $STATUS_PNP_TRANSLATION_FAILED = 0xC0040036 ; A translator failed to translate resources. -Global Const $STATUS_PNP_IRQ_TRANSLATION_FAILED = 0xC0040037 ; An IRQ translator failed to translate resources. -Global Const $STATUS_PNP_INVALID_ID = 0xC0040038 ; Driver %2 returned an invalid ID for a child device (%3). -Global Const $STATUS_IO_REISSUE_AS_CACHED = 0xC0040039 ; Reissue the given operation as a cached I/O operation. -Global Const $STATUS_CTX_WINSTATION_NAME_INVALID = 0xC00A0001 ; Session name %1 is invalid. -Global Const $STATUS_CTX_INVALID_PD = 0xC00A0002 ; The protocol driver %1 is invalid. -Global Const $STATUS_CTX_PD_NOT_FOUND = 0xC00A0003 ; The protocol driver %1 was not found in the system path. -Global Const $STATUS_CTX_CLOSE_PENDING = 0xC00A0006 ; A close operation is pending on the terminal connection. -Global Const $STATUS_CTX_NO_OUTBUF = 0xC00A0007 ; No free output buffers are available. -Global Const $STATUS_CTX_MODEM_INF_NOT_FOUND = 0xC00A0008 ; The MODEM.INF file was not found. -Global Const $STATUS_CTX_INVALID_MODEMNAME = 0xC00A0009 ; The modem (%1) was not found in the MODEM.INF file. -Global Const $STATUS_CTX_RESPONSE_ERROR = 0xC00A000A ; The modem did not accept the command sent to it. Verify that the configured modem name matches the attached modem. -Global Const $STATUS_CTX_MODEM_RESPONSE_TIMEOUT = 0xC00A000B ; The modem did not respond to the command sent to it. Verify that the modem cable is properly attached and the modem is turned on. -Global Const $STATUS_CTX_MODEM_RESPONSE_NO_CARRIER = 0xC00A000C ; Carrier detection has failed or the carrier has been dropped due to disconnection. -Global Const $STATUS_CTX_MODEM_RESPONSE_NO_DIALTONE = 0xC00A000D ; A dial tone was not detected within the required time. Verify that the phone cable is properly attached and functional. -Global Const $STATUS_CTX_MODEM_RESPONSE_BUSY = 0xC00A000E ; A busy signal was detected at a remote site on callback. -Global Const $STATUS_CTX_MODEM_RESPONSE_VOICE = 0xC00A000F ; A voice was detected at a remote site on callback. -Global Const $STATUS_CTX_TD_ERROR = 0xC00A0010 ; Transport driver error. -Global Const $STATUS_CTX_LICENSE_CLIENT_INVALID = 0xC00A0012 ; The client you are using is not licensed to use this system. Your logon request is denied. -Global Const $STATUS_CTX_LICENSE_NOT_AVAILABLE = 0xC00A0013 ; The system has reached its licensed logon limit. Try again later. -Global Const $STATUS_CTX_LICENSE_EXPIRED = 0xC00A0014 ; The system license has expired. Your logon request is denied. -Global Const $STATUS_CTX_WINSTATION_NOT_FOUND = 0xC00A0015 ; The specified session cannot be found. -Global Const $STATUS_CTX_WINSTATION_NAME_COLLISION = 0xC00A0016 ; The specified session name is already in use. -Global Const $STATUS_CTX_WINSTATION_BUSY = 0xC00A0017 ; The requested operation cannot be completed because the terminal connection is currently processing a connect, disconnect, reset, or delete operation. -Global Const $STATUS_CTX_BAD_VIDEO_MODE = 0xC00A0018 ; An attempt has been made to connect to a session whose video mode is not supported by the current client. -Global Const $STATUS_CTX_GRAPHICS_INVALID = 0xC00A0022 ; The application attempted to enable DOS graphics mode. DOS graphics mode is not supported. -Global Const $STATUS_CTX_NOT_CONSOLE = 0xC00A0024 ; The requested operation can be performed only on the system console. This is most often the result of a driver or system DLL requiring direct console access. -Global Const $STATUS_CTX_CLIENT_QUERY_TIMEOUT = 0xC00A0026 ; The client failed to respond to the server connect message. -Global Const $STATUS_CTX_CONSOLE_DISCONNECT = 0xC00A0027 ; Disconnecting the console session is not supported. -Global Const $STATUS_CTX_CONSOLE_CONNECT = 0xC00A0028 ; Reconnecting a disconnected session to the console is not supported. -Global Const $STATUS_CTX_SHADOW_DENIED = 0xC00A002A ; The request to control another session remotely was denied. -Global Const $STATUS_CTX_WINSTATION_ACCESS_DENIED = 0xC00A002B ; A process has requested access to a session, but has not been granted those access rights. -Global Const $STATUS_CTX_INVALID_WD = 0xC00A002E ; The terminal connection driver %1 is invalid. -Global Const $STATUS_CTX_WD_NOT_FOUND = 0xC00A002F ; The terminal connection driver %1 was not found in the system path. -Global Const $STATUS_CTX_SHADOW_INVALID = 0xC00A0030 ; The requested session cannot be controlled remotely. You cannot control your own session, a session that is trying to control your session, a session that has no user logged on, or other sessions from the console. -Global Const $STATUS_CTX_SHADOW_DISABLED = 0xC00A0031 ; The requested session is not configured to allow remote control. -Global Const $STATUS_RDP_PROTOCOL_ERROR = 0xC00A0032 ; The RDP protocol component %2 detected an error in the protocol stream and has disconnected the client. -Global Const $STATUS_CTX_CLIENT_LICENSE_NOT_SET = 0xC00A0033 ; Your request to connect to this terminal server has been rejected. Your terminal server client license number has not been entered for this copy of the terminal client. Contact your system administrator for help in entering a valid, unique license number for this terminal server client. Click OK to continue. -Global Const $STATUS_CTX_CLIENT_LICENSE_IN_USE = 0xC00A0034 ; Your request to connect to this terminal server has been rejected. Your terminal server client license number is currently being used by another user. Contact your system administrator to obtain a new copy of the terminal server client with a valid, unique license number. Click OK to continue. -Global Const $STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE = 0xC00A0035 ; The remote control of the console was terminated because the display mode was changed. Changing the display mode in a remote control session is not supported. -Global Const $STATUS_CTX_SHADOW_NOT_RUNNING = 0xC00A0036 ; Remote control could not be terminated because the specified session is not currently being remotely controlled. -Global Const $STATUS_CTX_LOGON_DISABLED = 0xC00A0037 ; Your interactive logon privilege has been disabled. Contact your system administrator. -Global Const $STATUS_CTX_SECURITY_LAYER_ERROR = 0xC00A0038 ; The terminal server security layer detected an error in the protocol stream and has disconnected the client. -Global Const $STATUS_TS_INCOMPATIBLE_SESSIONS = 0xC00A0039 ; The target session is incompatible with the current session. -Global Const $STATUS_MUI_FILE_NOT_FOUND = 0xC00B0001 ; The resource loader failed to find an MUI file. -Global Const $STATUS_MUI_INVALID_FILE = 0xC00B0002 ; The resource loader failed to load an MUI file because the file failed to pass validation. -Global Const $STATUS_MUI_INVALID_RC_CONFIG = 0xC00B0003 ; The RC manifest is corrupted with garbage data, is an unsupported version, or is missing a required item. -Global Const $STATUS_MUI_INVALID_LOCALE_NAME = 0xC00B0004 ; The RC manifest has an invalid culture name. -Global Const $STATUS_MUI_INVALID_ULTIMATEFALLBACK_NAME = 0xC00B0005 ; The RC manifest has and invalid ultimate fallback name. -Global Const $STATUS_MUI_FILE_NOT_LOADED = 0xC00B0006 ; The resource loader cache does not have a loaded MUI entry. -Global Const $STATUS_RESOURCE_ENUM_USER_STOP = 0xC00B0007 ; The user stopped resource enumeration. -Global Const $STATUS_CLUSTER_INVALID_NODE = 0xC0130001 ; The cluster node is not valid. -Global Const $STATUS_CLUSTER_NODE_EXISTS = 0xC0130002 ; The cluster node already exists. -Global Const $STATUS_CLUSTER_JOIN_IN_PROGRESS = 0xC0130003 ; A node is in the process of joining the cluster. -Global Const $STATUS_CLUSTER_NODE_NOT_FOUND = 0xC0130004 ; The cluster node was not found. -Global Const $STATUS_CLUSTER_LOCAL_NODE_NOT_FOUND = 0xC0130005 ; The cluster local node information was not found. -Global Const $STATUS_CLUSTER_NETWORK_EXISTS = 0xC0130006 ; The cluster network already exists. -Global Const $STATUS_CLUSTER_NETWORK_NOT_FOUND = 0xC0130007 ; The cluster network was not found. -Global Const $STATUS_CLUSTER_NETINTERFACE_EXISTS = 0xC0130008 ; The cluster network interface already exists. -Global Const $STATUS_CLUSTER_NETINTERFACE_NOT_FOUND = 0xC0130009 ; The cluster network interface was not found. -Global Const $STATUS_CLUSTER_INVALID_REQUEST = 0xC013000A ; The cluster request is not valid for this object. -Global Const $STATUS_CLUSTER_INVALID_NETWORK_PROVIDER = 0xC013000B ; The cluster network provider is not valid. -Global Const $STATUS_CLUSTER_NODE_DOWN = 0xC013000C ; The cluster node is down. -Global Const $STATUS_CLUSTER_NODE_UNREACHABLE = 0xC013000D ; The cluster node is not reachable. -Global Const $STATUS_CLUSTER_NODE_NOT_MEMBER = 0xC013000E ; The cluster node is not a member of the cluster. -Global Const $STATUS_CLUSTER_JOIN_NOT_IN_PROGRESS = 0xC013000F ; A cluster join operation is not in progress. -Global Const $STATUS_CLUSTER_INVALID_NETWORK = 0xC0130010 ; The cluster network is not valid. -Global Const $STATUS_CLUSTER_NO_NET_ADAPTERS = 0xC0130011 ; No network adapters are available. -Global Const $STATUS_CLUSTER_NODE_UP = 0xC0130012 ; The cluster node is up. -Global Const $STATUS_CLUSTER_NODE_PAUSED = 0xC0130013 ; The cluster node is paused. -Global Const $STATUS_CLUSTER_NODE_NOT_PAUSED = 0xC0130014 ; The cluster node is not paused. -Global Const $STATUS_CLUSTER_NO_SECURITY_CONTEXT = 0xC0130015 ; No cluster security context is available. -Global Const $STATUS_CLUSTER_NETWORK_NOT_INTERNAL = 0xC0130016 ; The cluster network is not configured for internal cluster communication. -Global Const $STATUS_CLUSTER_POISONED = 0xC0130017 ; The cluster node has been poisoned. -Global Const $STATUS_ACPI_INVALID_OPCODE = 0xC0140001 ; An attempt was made to run an invalid AML opcode. -Global Const $STATUS_ACPI_STACK_OVERFLOW = 0xC0140002 ; The AML interpreter stack has overflowed. -Global Const $STATUS_ACPI_ASSERT_FAILED = 0xC0140003 ; An inconsistent state has occurred. -Global Const $STATUS_ACPI_INVALID_INDEX = 0xC0140004 ; An attempt was made to access an array outside its bounds. -Global Const $STATUS_ACPI_INVALID_ARGUMENT = 0xC0140005 ; A required argument was not specified. -Global Const $STATUS_ACPI_FATAL = 0xC0140006 ; A fatal error has occurred. -Global Const $STATUS_ACPI_INVALID_SUPERNAME = 0xC0140007 ; An invalid SuperName was specified. -Global Const $STATUS_ACPI_INVALID_ARGTYPE = 0xC0140008 ; An argument with an incorrect type was specified. -Global Const $STATUS_ACPI_INVALID_OBJTYPE = 0xC0140009 ; An object with an incorrect type was specified. -Global Const $STATUS_ACPI_INVALID_TARGETTYPE = 0xC014000A ; A target with an incorrect type was specified. -Global Const $STATUS_ACPI_INCORRECT_ARGUMENT_COUNT = 0xC014000B ; An incorrect number of arguments was specified. -Global Const $STATUS_ACPI_ADDRESS_NOT_MAPPED = 0xC014000C ; An address failed to translate. -Global Const $STATUS_ACPI_INVALID_EVENTTYPE = 0xC014000D ; An incorrect event type was specified. -Global Const $STATUS_ACPI_HANDLER_COLLISION = 0xC014000E ; A handler for the target already exists. -Global Const $STATUS_ACPI_INVALID_DATA = 0xC014000F ; Invalid data for the target was specified. -Global Const $STATUS_ACPI_INVALID_REGION = 0xC0140010 ; An invalid region for the target was specified. -Global Const $STATUS_ACPI_INVALID_ACCESS_SIZE = 0xC0140011 ; An attempt was made to access a field outside the defined range. -Global Const $STATUS_ACPI_ACQUIRE_GLOBAL_LOCK = 0xC0140012 ; The global system lock could not be acquired. -Global Const $STATUS_ACPI_ALREADY_INITIALIZED = 0xC0140013 ; An attempt was made to reinitialize the ACPI subsystem. -Global Const $STATUS_ACPI_NOT_INITIALIZED = 0xC0140014 ; The ACPI subsystem has not been initialized. -Global Const $STATUS_ACPI_INVALID_MUTEX_LEVEL = 0xC0140015 ; An incorrect mutex was specified. -Global Const $STATUS_ACPI_MUTEX_NOT_OWNED = 0xC0140016 ; The mutex is not currently owned. -Global Const $STATUS_ACPI_MUTEX_NOT_OWNER = 0xC0140017 ; An attempt was made to access the mutex by a process that was not the owner. -Global Const $STATUS_ACPI_RS_ACCESS = 0xC0140018 ; An error occurred during an access to region space. -Global Const $STATUS_ACPI_INVALID_TABLE = 0xC0140019 ; An attempt was made to use an incorrect table. -Global Const $STATUS_ACPI_REG_HANDLER_FAILED = 0xC0140020 ; The registration of an ACPI event failed. -Global Const $STATUS_ACPI_POWER_REQUEST_FAILED = 0xC0140021 ; An ACPI power object failed to transition state. -Global Const $STATUS_SXS_SECTION_NOT_FOUND = 0xC0150001 ; The requested section is not present in the activation context. -Global Const $STATUS_SXS_CANT_GEN_ACTCTX = 0xC0150002 ; Windows was unble to process the application binding information. Refer to the system event log for further information. -Global Const $STATUS_SXS_INVALID_ACTCTXDATA_FORMAT = 0xC0150003 ; The application binding data format is invalid. -Global Const $STATUS_SXS_ASSEMBLY_NOT_FOUND = 0xC0150004 ; The referenced assembly is not installed on the system. -Global Const $STATUS_SXS_MANIFEST_FORMAT_ERROR = 0xC0150005 ; The manifest file does not begin with the required tag and format information. -Global Const $STATUS_SXS_MANIFEST_PARSE_ERROR = 0xC0150006 ; The manifest file contains one or more syntax errors. -Global Const $STATUS_SXS_ACTIVATION_CONTEXT_DISABLED = 0xC0150007 ; The application attempted to activate a disabled activation context. -Global Const $STATUS_SXS_KEY_NOT_FOUND = 0xC0150008 ; The requested lookup key was not found in any active activation context. -Global Const $STATUS_SXS_VERSION_CONFLICT = 0xC0150009 ; A component version required by the application conflicts with another component version that is already active. -Global Const $STATUS_SXS_WRONG_SECTION_TYPE = 0xC015000A ; The type requested activation context section does not match the query API used. -Global Const $STATUS_SXS_THREAD_QUERIES_DISABLED = 0xC015000B ; Lack of system resources has required isolated activation to be disabled for the current thread of execution. -Global Const $STATUS_SXS_ASSEMBLY_MISSING = 0xC015000C ; The referenced assembly could not be found. -Global Const $STATUS_SXS_PROCESS_DEFAULT_ALREADY_SET = 0xC015000E ; An attempt to set the process default activation context failed because the process default activation context was already set. -Global Const $STATUS_SXS_EARLY_DEACTIVATION = 0xC015000F ; The activation context being deactivated is not the most recently activated one. -Global Const $STATUS_SXS_INVALID_DEACTIVATION = 0xC0150010 ; The activation context being deactivated is not active for the current thread of execution. -Global Const $STATUS_SXS_MULTIPLE_DEACTIVATION = 0xC0150011 ; The activation context being deactivated has already been deactivated. -Global Const $STATUS_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY = 0xC0150012 ; The activation context of the system default assembly could not be generated. -Global Const $STATUS_SXS_PROCESS_TERMINATION_REQUESTED = 0xC0150013 ; A component used by the isolation facility has requested that the process be terminated. -Global Const $STATUS_SXS_CORRUPT_ACTIVATION_STACK = 0xC0150014 ; The activation context activation stack for the running thread of execution is corrupt. -Global Const $STATUS_SXS_CORRUPTION = 0xC0150015 ; The application isolation metadata for this process or thread has become corrupt. -Global Const $STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE = 0xC0150016 ; The value of an attribute in an identity is not within the legal range. -Global Const $STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME = 0xC0150017 ; The name of an attribute in an identity is not within the legal range. -Global Const $STATUS_SXS_IDENTITY_DUPLICATE_ATTRIBUTE = 0xC0150018 ; An identity contains two definitions for the same attribute. -Global Const $STATUS_SXS_IDENTITY_PARSE_ERROR = 0xC0150019 ; The identity string is malformed. This may be due to a trailing comma, more than two unnamed attributes, a missing attribute name, or a missing attribute value. -Global Const $STATUS_SXS_COMPONENT_STORE_CORRUPT = 0xC015001A ; The component store has become corrupted. -Global Const $STATUS_SXS_FILE_HASH_MISMATCH = 0xC015001B ; A component's file does not match the verification information present in the component manifest. -Global Const $STATUS_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT = 0xC015001C ; The identities of the manifests are identical, but their contents are different. -Global Const $STATUS_SXS_IDENTITIES_DIFFERENT = 0xC015001D ; The component identities are different. -Global Const $STATUS_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT = 0xC015001E ; The assembly is not a deployment. -Global Const $STATUS_SXS_FILE_NOT_PART_OF_ASSEMBLY = 0xC015001F ; The file is not a part of the assembly. -Global Const $STATUS_ADVANCED_INSTALLER_FAILED = 0xC0150020 ; An advanced installer failed during setup or servicing. -Global Const $STATUS_XML_ENCODING_MISMATCH = 0xC0150021 ; The character encoding in the XML declaration did not match the encoding used in the document. -Global Const $STATUS_SXS_MANIFEST_TOO_BIG = 0xC0150022 ; The size of the manifest exceeds the maximum allowed. -Global Const $STATUS_SXS_SETTING_NOT_REGISTERED = 0xC0150023 ; The setting is not registered. -Global Const $STATUS_SXS_TRANSACTION_CLOSURE_INCOMPLETE = 0xC0150024 ; One or more required transaction members are not present. -Global Const $STATUS_SMI_PRIMITIVE_INSTALLER_FAILED = 0xC0150025 ; The SMI primitive installer failed during setup or servicing. -Global Const $STATUS_GENERIC_COMMAND_FAILED = 0xC0150026 ; A generic command executable returned a result that indicates failure. -Global Const $STATUS_SXS_FILE_HASH_MISSING = 0xC0150027 ; A component is missing file verification information in its manifest. -Global Const $STATUS_TRANSACTIONAL_CONFLICT = 0xC0190001 ; The function attempted to use a name that is reserved for use by another transaction. -Global Const $STATUS_INVALID_TRANSACTION = 0xC0190002 ; The transaction handle associated with this operation is invalid. -Global Const $STATUS_TRANSACTION_NOT_ACTIVE = 0xC0190003 ; The requested operation was made in the context of a transaction that is no longer active. -Global Const $STATUS_TM_INITIALIZATION_FAILED = 0xC0190004 ; The transaction manager was unable to be successfully initialized. Transacted operations are not supported. -Global Const $STATUS_RM_NOT_ACTIVE = 0xC0190005 ; Transaction support within the specified file system resource manager was not started or was shut down due to an error. -Global Const $STATUS_RM_METADATA_CORRUPT = 0xC0190006 ; The metadata of the resource manager has been corrupted. The resource manager will not function. -Global Const $STATUS_TRANSACTION_NOT_JOINED = 0xC0190007 ; The resource manager attempted to prepare a transaction that it has not successfully joined. -Global Const $STATUS_DIRECTORY_NOT_RM = 0xC0190008 ; The specified directory does not contain a file system resource manager. -Global Const $STATUS_TRANSACTIONS_UNSUPPORTED_REMOTE = 0xC019000A ; The remote server or share does not support transacted file operations. -Global Const $STATUS_LOG_RESIZE_INVALID_SIZE = 0xC019000B ; The requested log size for the file system resource manager is invalid. -Global Const $STATUS_REMOTE_FILE_VERSION_MISMATCH = 0xC019000C ; The remote server sent mismatching version number or Fid for a file opened with transactions. -Global Const $STATUS_CRM_PROTOCOL_ALREADY_EXISTS = 0xC019000F ; The resource manager tried to register a protocol that already exists. -Global Const $STATUS_TRANSACTION_PROPAGATION_FAILED = 0xC0190010 ; The attempt to propagate the transaction failed. -Global Const $STATUS_CRM_PROTOCOL_NOT_FOUND = 0xC0190011 ; The requested propagation protocol was not registered as a CRM. -Global Const $STATUS_TRANSACTION_SUPERIOR_EXISTS = 0xC0190012 ; The transaction object already has a superior enlistment, and the caller attempted an operation that would have created a new superior. Only a single superior enlistment is allowed. -Global Const $STATUS_TRANSACTION_REQUEST_NOT_VALID = 0xC0190013 ; The requested operation is not valid on the transaction object in its current state. -Global Const $STATUS_TRANSACTION_NOT_REQUESTED = 0xC0190014 ; The caller has called a response API, but the response is not expected because the transaction manager did not issue the corresponding request to the caller. -Global Const $STATUS_TRANSACTION_ALREADY_ABORTED = 0xC0190015 ; It is too late to perform the requested operation, because the transaction has already been aborted. -Global Const $STATUS_TRANSACTION_ALREADY_COMMITTED = 0xC0190016 ; It is too late to perform the requested operation, because the transaction has already been committed. -Global Const $STATUS_TRANSACTION_INVALID_MARSHALL_BUFFER = 0xC0190017 ; The buffer passed in to NtPushTransaction or NtPullTransaction is not in a valid format. -Global Const $STATUS_CURRENT_TRANSACTION_NOT_VALID = 0xC0190018 ; The current transaction context associated with the thread is not a valid handle to a transaction object. -Global Const $STATUS_LOG_GROWTH_FAILED = 0xC0190019 ; An attempt to create space in the transactional resource manager's log failed. The failure status has been recorded in the event log. -Global Const $STATUS_OBJECT_NO_LONGER_EXISTS = 0xC0190021 ; The object (file, stream, or link) that corresponds to the handle has been deleted by a transaction savepoint rollback. -Global Const $STATUS_STREAM_MINIVERSION_NOT_FOUND = 0xC0190022 ; The specified file miniversion was not found for this transacted file open. -Global Const $STATUS_STREAM_MINIVERSION_NOT_VALID = 0xC0190023 ; The specified file miniversion was found but has been invalidated. The most likely cause is a transaction savepoint rollback. -Global Const $STATUS_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION = 0xC0190024 ; A miniversion may be opened only in the context of the transaction that created it. -Global Const $STATUS_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT = 0xC0190025 ; It is not possible to open a miniversion with modify access. -Global Const $STATUS_CANT_CREATE_MORE_STREAM_MINIVERSIONS = 0xC0190026 ; It is not possible to create any more miniversions for this stream. -Global Const $STATUS_HANDLE_NO_LONGER_VALID = 0xC0190028 ; The handle has been invalidated by a transaction. The most likely cause is the presence of memory mapping on a file or an open handle when the transaction ended or rolled back to savepoint. -Global Const $STATUS_LOG_CORRUPTION_DETECTED = 0xC0190030 ; The log data is corrupt. -Global Const $STATUS_RM_DISCONNECTED = 0xC0190032 ; The transaction outcome is unavailable because the resource manager responsible for it is disconnected. -Global Const $STATUS_ENLISTMENT_NOT_SUPERIOR = 0xC0190033 ; The request was rejected because the enlistment in question is not a superior enlistment. -Global Const $STATUS_FILE_IDENTITY_NOT_PERSISTENT = 0xC0190036 ; The file cannot be opened in a transaction because its identity depends on the outcome of an unresolved transaction. -Global Const $STATUS_CANT_BREAK_TRANSACTIONAL_DEPENDENCY = 0xC0190037 ; The operation cannot be performed because another transaction is depending on this property not changing. -Global Const $STATUS_CANT_CROSS_RM_BOUNDARY = 0xC0190038 ; The operation would involve a single file with two transactional resource managers and is, therefore, not allowed. -Global Const $STATUS_TXF_DIR_NOT_EMPTY = 0xC0190039 ; The $Txf directory must be empty for this operation to succeed. -Global Const $STATUS_INDOUBT_TRANSACTIONS_EXIST = 0xC019003A ; The operation would leave a transactional resource manager in an inconsistent state and is therefore not allowed. -Global Const $STATUS_TM_VOLATILE = 0xC019003B ; The operation could not be completed because the transaction manager does not have a log. -Global Const $STATUS_ROLLBACK_TIMER_EXPIRED = 0xC019003C ; A rollback could not be scheduled because a previously scheduled rollback has already executed or been queued for execution. -Global Const $STATUS_TXF_ATTRIBUTE_CORRUPT = 0xC019003D ; The transactional metadata attribute on the file or directory %hs is corrupt and unreadable. -Global Const $STATUS_EFS_NOT_ALLOWED_IN_TRANSACTION = 0xC019003E ; The encryption operation could not be completed because a transaction is active. -Global Const $STATUS_TRANSACTIONAL_OPEN_NOT_ALLOWED = 0xC019003F ; This object is not allowed to be opened in a transaction. -Global Const $STATUS_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE = 0xC0190040 ; Memory mapping (creating a mapped section) a remote file under a transaction is not supported. -Global Const $STATUS_TRANSACTION_REQUIRED_PROMOTION = 0xC0190043 ; Promotion was required to allow the resource manager to enlist, but the transaction was set to disallow it. -Global Const $STATUS_CANNOT_EXECUTE_FILE_IN_TRANSACTION = 0xC0190044 ; This file is open for modification in an unresolved transaction and may be opened for execute only by a transacted reader. -Global Const $STATUS_TRANSACTIONS_NOT_FROZEN = 0xC0190045 ; The request to thaw frozen transactions was ignored because transactions were not previously frozen. -Global Const $STATUS_TRANSACTION_FREEZE_IN_PROGRESS = 0xC0190046 ; Transactions cannot be frozen because a freeze is already in progress. -Global Const $STATUS_NOT_SNAPSHOT_VOLUME = 0xC0190047 ; The target volume is not a snapshot volume. This operation is valid only on a volume mounted as a snapshot. -Global Const $STATUS_NO_SAVEPOINT_WITH_OPEN_FILES = 0xC0190048 ; The savepoint operation failed because files are open on the transaction, which is not permitted. -Global Const $STATUS_SPARSE_NOT_ALLOWED_IN_TRANSACTION = 0xC0190049 ; The sparse operation could not be completed because a transaction is active on the file. -Global Const $STATUS_TM_IDENTITY_MISMATCH = 0xC019004A ; The call to create a transaction manager object failed because the Tm Identity that is stored in the log file does not match the Tm Identity that was passed in as an argument. -Global Const $STATUS_FLOATED_SECTION = 0xC019004B ; I/O was attempted on a section object that has been floated as a result of a transaction ending. There is no valid data. -Global Const $STATUS_CANNOT_ACCEPT_TRANSACTED_WORK = 0xC019004C ; The transactional resource manager cannot currently accept transacted work due to a transient condition, such as low resources. -Global Const $STATUS_CANNOT_ABORT_TRANSACTIONS = 0xC019004D ; The transactional resource manager had too many transactions outstanding that could not be aborted. The transactional resource manager has been shut down. -Global Const $STATUS_TRANSACTION_NOT_FOUND = 0xC019004E ; The specified transaction was unable to be opened because it was not found. -Global Const $STATUS_RESOURCEMANAGER_NOT_FOUND = 0xC019004F ; The specified resource manager was unable to be opened because it was not found. -Global Const $STATUS_ENLISTMENT_NOT_FOUND = 0xC0190050 ; The specified enlistment was unable to be opened because it was not found. -Global Const $STATUS_TRANSACTIONMANAGER_NOT_FOUND = 0xC0190051 ; The specified transaction manager was unable to be opened because it was not found. -Global Const $STATUS_TRANSACTIONMANAGER_NOT_ONLINE = 0xC0190052 ; The specified resource manager was unable to create an enlistment because its associated transaction manager is not online. -Global Const $STATUS_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION = 0xC0190053 ; The specified transaction manager was unable to create the objects contained in its log file in the Ob namespace. Therefore, the transaction manager was unable to recover. -Global Const $STATUS_TRANSACTION_NOT_ROOT = 0xC0190054 ; The call to create a superior enlistment on this transaction object could not be completed because the transaction object specified for the enlistment is a subordinate branch of the transaction. Only the root of the transaction can be enlisted as a superior. -Global Const $STATUS_TRANSACTION_OBJECT_EXPIRED = 0xC0190055 ; Because the associated transaction manager or resource manager has been closed, the handle is no longer valid. -Global Const $STATUS_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION = 0xC0190056 ; The compression operation could not be completed because a transaction is active on the file. -Global Const $STATUS_TRANSACTION_RESPONSE_NOT_ENLISTED = 0xC0190057 ; The specified operation could not be performed on this superior enlistment because the enlistment was not created with the corresponding completion response in the NotificationMask. -Global Const $STATUS_TRANSACTION_RECORD_TOO_LONG = 0xC0190058 ; The specified operation could not be performed because the record to be logged was too long. This can occur because either there are too many enlistments on this transaction or the combined RecoveryInformation being logged on behalf of those enlistments is too long. -Global Const $STATUS_NO_LINK_TRACKING_IN_TRANSACTION = 0xC0190059 ; The link-tracking operation could not be completed because a transaction is active. -Global Const $STATUS_OPERATION_NOT_SUPPORTED_IN_TRANSACTION = 0xC019005A ; This operation cannot be performed in a transaction. -Global Const $STATUS_TRANSACTION_INTEGRITY_VIOLATED = 0xC019005B ; The kernel transaction manager had to abort or forget the transaction because it blocked forward progress. -Global Const $STATUS_EXPIRED_HANDLE = 0xC0190060 ; The handle is no longer properly associated with its transaction. It may have been opened in a transactional resource manager that was subsequently forced to restart. Please close the handle and open a new one. -Global Const $STATUS_TRANSACTION_NOT_ENLISTED = 0xC0190061 ; The specified operation could not be performed because the resource manager is not enlisted in the transaction. -Global Const $STATUS_LOG_SECTOR_INVALID = 0xC01A0001 ; The log service found an invalid log sector. -Global Const $STATUS_LOG_SECTOR_PARITY_INVALID = 0xC01A0002 ; The log service encountered a log sector with invalid block parity. -Global Const $STATUS_LOG_SECTOR_REMAPPED = 0xC01A0003 ; The log service encountered a remapped log sector. -Global Const $STATUS_LOG_BLOCK_INCOMPLETE = 0xC01A0004 ; The log service encountered a partial or incomplete log block. -Global Const $STATUS_LOG_INVALID_RANGE = 0xC01A0005 ; The log service encountered an attempt to access data outside the active log range. -Global Const $STATUS_LOG_BLOCKS_EXHAUSTED = 0xC01A0006 ; The log service user-log marshaling buffers are exhausted. -Global Const $STATUS_LOG_READ_CONTEXT_INVALID = 0xC01A0007 ; The log service encountered an attempt to read from a marshaling area with an invalid read context. -Global Const $STATUS_LOG_RESTART_INVALID = 0xC01A0008 ; The log service encountered an invalid log restart area. -Global Const $STATUS_LOG_BLOCK_VERSION = 0xC01A0009 ; The log service encountered an invalid log block version. -Global Const $STATUS_LOG_BLOCK_INVALID = 0xC01A000A ; The log service encountered an invalid log block. -Global Const $STATUS_LOG_READ_MODE_INVALID = 0xC01A000B ; The log service encountered an attempt to read the log with an invalid read mode. -Global Const $STATUS_LOG_METADATA_CORRUPT = 0xC01A000D ; The log service encountered a corrupted metadata file. -Global Const $STATUS_LOG_METADATA_INVALID = 0xC01A000E ; The log service encountered a metadata file that could not be created by the log file system. -Global Const $STATUS_LOG_METADATA_INCONSISTENT = 0xC01A000F ; The log service encountered a metadata file with inconsistent data. -Global Const $STATUS_LOG_RESERVATION_INVALID = 0xC01A0010 ; The log service encountered an attempt to erroneously allocate or dispose reservation space. -Global Const $STATUS_LOG_CANT_DELETE = 0xC01A0011 ; The log service cannot delete the log file or the file system container. -Global Const $STATUS_LOG_CONTAINER_LIMIT_EXCEEDED = 0xC01A0012 ; The log service has reached the maximum allowable containers allocated to a log file. -Global Const $STATUS_LOG_START_OF_LOG = 0xC01A0013 ; The log service has attempted to read or write backward past the start of the log. -Global Const $STATUS_LOG_POLICY_ALREADY_INSTALLED = 0xC01A0014 ; The log policy could not be installed because a policy of the same type is already present. -Global Const $STATUS_LOG_POLICY_NOT_INSTALLED = 0xC01A0015 ; The log policy in question was not installed at the time of the request. -Global Const $STATUS_LOG_POLICY_INVALID = 0xC01A0016 ; The installed set of policies on the log is invalid. -Global Const $STATUS_LOG_POLICY_CONFLICT = 0xC01A0017 ; A policy on the log in question prevented the operation from completing. -Global Const $STATUS_LOG_PINNED_ARCHIVE_TAIL = 0xC01A0018 ; The log space cannot be reclaimed because the log is pinned by the archive tail. -Global Const $STATUS_LOG_RECORD_NONEXISTENT = 0xC01A0019 ; The log record is not a record in the log file. -Global Const $STATUS_LOG_RECORDS_RESERVED_INVALID = 0xC01A001A ; The number of reserved log records or the adjustment of the number of reserved log records is invalid. -Global Const $STATUS_LOG_SPACE_RESERVED_INVALID = 0xC01A001B ; The reserved log space or the adjustment of the log space is invalid. -Global Const $STATUS_LOG_TAIL_INVALID = 0xC01A001C ; A new or existing archive tail or the base of the active log is invalid. -Global Const $STATUS_LOG_FULL = 0xC01A001D ; The log space is exhausted. -Global Const $STATUS_LOG_MULTIPLEXED = 0xC01A001E ; The log is multiplexed; no direct writes to the physical log are allowed. -Global Const $STATUS_LOG_DEDICATED = 0xC01A001F ; The operation failed because the log is dedicated. -Global Const $STATUS_LOG_ARCHIVE_NOT_IN_PROGRESS = 0xC01A0020 ; The operation requires an archive context. -Global Const $STATUS_LOG_ARCHIVE_IN_PROGRESS = 0xC01A0021 ; Log archival is in progress. -Global Const $STATUS_LOG_EPHEMERAL = 0xC01A0022 ; The operation requires a nonephemeral log, but the log is ephemeral. -Global Const $STATUS_LOG_NOT_ENOUGH_CONTAINERS = 0xC01A0023 ; The log must have at least two containers before it can be read from or written to. -Global Const $STATUS_LOG_CLIENT_ALREADY_REGISTERED = 0xC01A0024 ; A log client has already registered on the stream. -Global Const $STATUS_LOG_CLIENT_NOT_REGISTERED = 0xC01A0025 ; A log client has not been registered on the stream. -Global Const $STATUS_LOG_FULL_HANDLER_IN_PROGRESS = 0xC01A0026 ; A request has already been made to handle the log full condition. -Global Const $STATUS_LOG_CONTAINER_READ_FAILED = 0xC01A0027 ; The log service encountered an error when attempting to read from a log container. -Global Const $STATUS_LOG_CONTAINER_WRITE_FAILED = 0xC01A0028 ; The log service encountered an error when attempting to write to a log container. -Global Const $STATUS_LOG_CONTAINER_OPEN_FAILED = 0xC01A0029 ; The log service encountered an error when attempting to open a log container. -Global Const $STATUS_LOG_CONTAINER_STATE_INVALID = 0xC01A002A ; The log service encountered an invalid container state when attempting a requested action. -Global Const $STATUS_LOG_STATE_INVALID = 0xC01A002B ; The log service is not in the correct state to perform a requested action. -Global Const $STATUS_LOG_PINNED = 0xC01A002C ; The log space cannot be reclaimed because the log is pinned. -Global Const $STATUS_LOG_METADATA_FLUSH_FAILED = 0xC01A002D ; The log metadata flush failed. -Global Const $STATUS_LOG_INCONSISTENT_SECURITY = 0xC01A002E ; Security on the log and its containers is inconsistent. -Global Const $STATUS_LOG_APPENDED_FLUSH_FAILED = 0xC01A002F ; Records were appended to the log or reservation changes were made, but the log could not be flushed. -Global Const $STATUS_LOG_PINNED_RESERVATION = 0xC01A0030 ; The log is pinned due to reservation consuming most of the log space. Free some reserved records to make space available. -Global Const $STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD = 0xC01B00EA ; {Display Driver Stopped Responding} The %hs display driver has stopped working normally. Save your work and reboot the system to restore full display functionality. The next time you reboot the computer, a dialog box will allow you to upload data about this failure to Microsoft. -Global Const $STATUS_FLT_NO_HANDLER_DEFINED = 0xC01C0001 ; A handler was not defined by the filter for this operation. -Global Const $STATUS_FLT_CONTEXT_ALREADY_DEFINED = 0xC01C0002 ; A context is already defined for this object. -Global Const $STATUS_FLT_INVALID_ASYNCHRONOUS_REQUEST = 0xC01C0003 ; Asynchronous requests are not valid for this operation. -Global Const $STATUS_FLT_DISALLOW_FAST_IO = 0xC01C0004 ; This is an internal error code used by the filter manager to determine if a fast I/O operation should be forced down the input/output request packet (IRP) path. Minifilters should never return this value. -Global Const $STATUS_FLT_INVALID_NAME_REQUEST = 0xC01C0005 ; An invalid name request was made. The name requested cannot be retrieved at this time. -Global Const $STATUS_FLT_NOT_SAFE_TO_POST_OPERATION = 0xC01C0006 ; Posting this operation to a worker thread for further processing is not safe at this time because it could lead to a system deadlock. -Global Const $STATUS_FLT_NOT_INITIALIZED = 0xC01C0007 ; The Filter Manager was not initialized when a filter tried to register. Make sure that the Filter Manager is loaded as a driver. -Global Const $STATUS_FLT_FILTER_NOT_READY = 0xC01C0008 ; The filter is not ready for attachment to volumes because it has not finished initializing (FltStartFiltering has not been called). -Global Const $STATUS_FLT_POST_OPERATION_CLEANUP = 0xC01C0009 ; The filter must clean up any operation-specific context at this time because it is being removed from the system before the operation is completed by the lower drivers. -Global Const $STATUS_FLT_INTERNAL_ERROR = 0xC01C000A ; The Filter Manager had an internal error from which it cannot recover; therefore, the operation has failed. This is usually the result of a filter returning an invalid value from a pre-operation callback. -Global Const $STATUS_FLT_DELETING_OBJECT = 0xC01C000B ; The object specified for this action is in the process of being deleted; therefore, the action requested cannot be completed at this time. -Global Const $STATUS_FLT_MUST_BE_NONPAGED_POOL = 0xC01C000C ; A nonpaged pool must be used for this type of context. -Global Const $STATUS_FLT_DUPLICATE_ENTRY = 0xC01C000D ; A duplicate handler definition has been provided for an operation. -Global Const $STATUS_FLT_CBDQ_DISABLED = 0xC01C000E ; The callback data queue has been disabled. -Global Const $STATUS_FLT_DO_NOT_ATTACH = 0xC01C000F ; Do not attach the filter to the volume at this time. -Global Const $STATUS_FLT_DO_NOT_DETACH = 0xC01C0010 ; Do not detach the filter from the volume at this time. -Global Const $STATUS_FLT_INSTANCE_ALTITUDE_COLLISION = 0xC01C0011 ; An instance already exists at this altitude on the volume specified. -Global Const $STATUS_FLT_INSTANCE_NAME_COLLISION = 0xC01C0012 ; An instance already exists with this name on the volume specified. -Global Const $STATUS_FLT_FILTER_NOT_FOUND = 0xC01C0013 ; The system could not find the filter specified. -Global Const $STATUS_FLT_VOLUME_NOT_FOUND = 0xC01C0014 ; The system could not find the volume specified. -Global Const $STATUS_FLT_INSTANCE_NOT_FOUND = 0xC01C0015 ; The system could not find the instance specified. -Global Const $STATUS_FLT_CONTEXT_ALLOCATION_NOT_FOUND = 0xC01C0016 ; No registered context allocation definition was found for the given request. -Global Const $STATUS_FLT_INVALID_CONTEXT_REGISTRATION = 0xC01C0017 ; An invalid parameter was specified during context registration. -Global Const $STATUS_FLT_NAME_CACHE_MISS = 0xC01C0018 ; The name requested was not found in the Filter Manager name cache and could not be retrieved from the file system. -Global Const $STATUS_FLT_NO_DEVICE_OBJECT = 0xC01C0019 ; The requested device object does not exist for the given volume. -Global Const $STATUS_FLT_VOLUME_ALREADY_MOUNTED = 0xC01C001A ; The specified volume is already mounted. -Global Const $STATUS_FLT_ALREADY_ENLISTED = 0xC01C001B ; The specified transaction context is already enlisted in a transaction. -Global Const $STATUS_FLT_CONTEXT_ALREADY_LINKED = 0xC01C001C ; The specified context is already attached to another object. -Global Const $STATUS_FLT_NO_WAITER_FOR_REPLY = 0xC01C0020 ; No waiter is present for the filter's reply to this message. -Global Const $STATUS_MONITOR_NO_DESCRIPTOR = 0xC01D0001 ; A monitor descriptor could not be obtained. -Global Const $STATUS_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT = 0xC01D0002 ; This release does not support the format of the obtained monitor descriptor. -Global Const $STATUS_MONITOR_INVALID_DESCRIPTOR_CHECKSUM = 0xC01D0003 ; The checksum of the obtained monitor descriptor is invalid. -Global Const $STATUS_MONITOR_INVALID_STANDARD_TIMING_BLOCK = 0xC01D0004 ; The monitor descriptor contains an invalid standard timing block. -Global Const $STATUS_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED = 0xC01D0005 ; WMI data-block registration failed for one of the MSMonitorClass WMI subclasses. -Global Const $STATUS_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK = 0xC01D0006 ; The provided monitor descriptor block is either corrupted or does not contain the monitor's detailed serial number. -Global Const $STATUS_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK = 0xC01D0007 ; The provided monitor descriptor block is either corrupted or does not contain the monitor's user-friendly name. -Global Const $STATUS_MONITOR_NO_MORE_DESCRIPTOR_DATA = 0xC01D0008 ; There is no monitor descriptor data at the specified (offset or size) region. -Global Const $STATUS_MONITOR_INVALID_DETAILED_TIMING_BLOCK = 0xC01D0009 ; The monitor descriptor contains an invalid detailed timing block. -Global Const $STATUS_MONITOR_INVALID_MANUFACTURE_DATE = 0xC01D000A ; Monitor descriptor contains invalid manufacture date. -Global Const $STATUS_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER = 0xC01E0000 ; Exclusive mode ownership is needed to create an unmanaged primary allocation. -Global Const $STATUS_GRAPHICS_INSUFFICIENT_DMA_BUFFER = 0xC01E0001 ; The driver needs more DMA buffer space to complete the requested operation. -Global Const $STATUS_GRAPHICS_INVALID_DISPLAY_ADAPTER = 0xC01E0002 ; The specified display adapter handle is invalid. -Global Const $STATUS_GRAPHICS_ADAPTER_WAS_RESET = 0xC01E0003 ; The specified display adapter and all of its state have been reset. -Global Const $STATUS_GRAPHICS_INVALID_DRIVER_MODEL = 0xC01E0004 ; The driver stack does not match the expected driver model. -Global Const $STATUS_GRAPHICS_PRESENT_MODE_CHANGED = 0xC01E0005 ; Present happened but ended up into the changed desktop mode. -Global Const $STATUS_GRAPHICS_PRESENT_OCCLUDED = 0xC01E0006 ; Nothing to present due to desktop occlusion. -Global Const $STATUS_GRAPHICS_PRESENT_DENIED = 0xC01E0007 ; Not able to present due to denial of desktop access. -Global Const $STATUS_GRAPHICS_CANNOTCOLORCONVERT = 0xC01E0008 ; Not able to present with color conversion. -Global Const $STATUS_GRAPHICS_PRESENT_REDIRECTION_DISABLED = 0xC01E000B ; Present redirection is disabled (desktop windowing management subsystem is off). -Global Const $STATUS_GRAPHICS_PRESENT_UNOCCLUDED = 0xC01E000C ; Previous exclusive VidPn source owner has released its ownership. -Global Const $STATUS_GRAPHICS_NO_VIDEO_MEMORY = 0xC01E0100 ; Not enough video memory is available to complete the operation. -Global Const $STATUS_GRAPHICS_CANT_LOCK_MEMORY = 0xC01E0101 ; Could not probe and lock the underlying memory of an allocation. -Global Const $STATUS_GRAPHICS_ALLOCATION_BUSY = 0xC01E0102 ; The allocation is currently busy. -Global Const $STATUS_GRAPHICS_TOO_MANY_REFERENCES = 0xC01E0103 ; An object being referenced has already reached the maximum reference count and cannot be referenced further. -Global Const $STATUS_GRAPHICS_TRY_AGAIN_LATER = 0xC01E0104 ; A problem could not be solved due to an existing condition. Try again later. -Global Const $STATUS_GRAPHICS_TRY_AGAIN_NOW = 0xC01E0105 ; A problem could not be solved due to an existing condition. Try again now. -Global Const $STATUS_GRAPHICS_ALLOCATION_INVALID = 0xC01E0106 ; The allocation is invalid. -Global Const $STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE = 0xC01E0107 ; No more unswizzling apertures are currently available. -Global Const $STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED = 0xC01E0108 ; The current allocation cannot be unswizzled by an aperture. -Global Const $STATUS_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION = 0xC01E0109 ; The request failed because a pinned allocation cannot be evicted. -Global Const $STATUS_GRAPHICS_INVALID_ALLOCATION_USAGE = 0xC01E0110 ; The allocation cannot be used from its current segment location for the specified operation. -Global Const $STATUS_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION = 0xC01E0111 ; A locked allocation cannot be used in the current command buffer. -Global Const $STATUS_GRAPHICS_ALLOCATION_CLOSED = 0xC01E0112 ; The allocation being referenced has been closed permanently. -Global Const $STATUS_GRAPHICS_INVALID_ALLOCATION_INSTANCE = 0xC01E0113 ; An invalid allocation instance is being referenced. -Global Const $STATUS_GRAPHICS_INVALID_ALLOCATION_HANDLE = 0xC01E0114 ; An invalid allocation handle is being referenced. -Global Const $STATUS_GRAPHICS_WRONG_ALLOCATION_DEVICE = 0xC01E0115 ; The allocation being referenced does not belong to the current device. -Global Const $STATUS_GRAPHICS_ALLOCATION_CONTENT_LOST = 0xC01E0116 ; The specified allocation lost its content. -Global Const $STATUS_GRAPHICS_GPU_EXCEPTION_ON_DEVICE = 0xC01E0200 ; A GPU exception was detected on the given device. The device cannot be scheduled. -Global Const $STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY = 0xC01E0300 ; The specified VidPN topology is invalid. -Global Const $STATUS_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED = 0xC01E0301 ; The specified VidPN topology is valid but is not supported by this model of the display adapter. -Global Const $STATUS_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED = 0xC01E0302 ; The specified VidPN topology is valid but is not currently supported by the display adapter due to allocation of its resources. -Global Const $STATUS_GRAPHICS_INVALID_VIDPN = 0xC01E0303 ; The specified VidPN handle is invalid. -Global Const $STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE = 0xC01E0304 ; The specified video present source is invalid. -Global Const $STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET = 0xC01E0305 ; The specified video present target is invalid. -Global Const $STATUS_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED = 0xC01E0306 ; The specified VidPN modality is not supported (for example, at least two of the pinned modes are not co-functional). -Global Const $STATUS_GRAPHICS_INVALID_VIDPN_SOURCEMODESET = 0xC01E0308 ; The specified VidPN source mode set is invalid. -Global Const $STATUS_GRAPHICS_INVALID_VIDPN_TARGETMODESET = 0xC01E0309 ; The specified VidPN target mode set is invalid. -Global Const $STATUS_GRAPHICS_INVALID_FREQUENCY = 0xC01E030A ; The specified video signal frequency is invalid. -Global Const $STATUS_GRAPHICS_INVALID_ACTIVE_REGION = 0xC01E030B ; The specified video signal active region is invalid. -Global Const $STATUS_GRAPHICS_INVALID_TOTAL_REGION = 0xC01E030C ; The specified video signal total region is invalid. -Global Const $STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE = 0xC01E0310 ; The specified video present source mode is invalid. -Global Const $STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE = 0xC01E0311 ; The specified video present target mode is invalid. -Global Const $STATUS_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET = 0xC01E0312 ; The pinned mode must remain in the set on the VidPN's co-functional modality enumeration. -Global Const $STATUS_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY = 0xC01E0313 ; The specified video present path is already in the VidPN's topology. -Global Const $STATUS_GRAPHICS_MODE_ALREADY_IN_MODESET = 0xC01E0314 ; The specified mode is already in the mode set. -Global Const $STATUS_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET = 0xC01E0315 ; The specified video present source set is invalid. -Global Const $STATUS_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET = 0xC01E0316 ; The specified video present target set is invalid. -Global Const $STATUS_GRAPHICS_SOURCE_ALREADY_IN_SET = 0xC01E0317 ; The specified video present source is already in the video present source set. -Global Const $STATUS_GRAPHICS_TARGET_ALREADY_IN_SET = 0xC01E0318 ; The specified video present target is already in the video present target set. -Global Const $STATUS_GRAPHICS_INVALID_VIDPN_PRESENT_PATH = 0xC01E0319 ; The specified VidPN present path is invalid. -Global Const $STATUS_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY = 0xC01E031A ; The miniport has no recommendation for augmenting the specified VidPN's topology. -Global Const $STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET = 0xC01E031B ; The specified monitor frequency range set is invalid. -Global Const $STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE = 0xC01E031C ; The specified monitor frequency range is invalid. -Global Const $STATUS_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET = 0xC01E031D ; The specified frequency range is not in the specified monitor frequency range set. -Global Const $STATUS_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET = 0xC01E031F ; The specified frequency range is already in the specified monitor frequency range set. -Global Const $STATUS_GRAPHICS_STALE_MODESET = 0xC01E0320 ; The specified mode set is stale. Reacquire the new mode set. -Global Const $STATUS_GRAPHICS_INVALID_MONITOR_SOURCEMODESET = 0xC01E0321 ; The specified monitor source mode set is invalid. -Global Const $STATUS_GRAPHICS_INVALID_MONITOR_SOURCE_MODE = 0xC01E0322 ; The specified monitor source mode is invalid. -Global Const $STATUS_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN = 0xC01E0323 ; The miniport does not have a recommendation regarding the request to provide a functional VidPN given the current display adapter configuration. -Global Const $STATUS_GRAPHICS_MODE_ID_MUST_BE_UNIQUE = 0xC01E0324 ; The ID of the specified mode is being used by another mode in the set. -Global Const $STATUS_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION = 0xC01E0325 ; The system failed to determine a mode that is supported by both the display adapter and the monitor connected to it. -Global Const $STATUS_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES = 0xC01E0326 ; The number of video present targets must be greater than or equal to the number of video present sources. -Global Const $STATUS_GRAPHICS_PATH_NOT_IN_TOPOLOGY = 0xC01E0327 ; The specified present path is not in the VidPN's topology. -Global Const $STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE = 0xC01E0328 ; The display adapter must have at least one video present source. -Global Const $STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET = 0xC01E0329 ; The display adapter must have at least one video present target. -Global Const $STATUS_GRAPHICS_INVALID_MONITORDESCRIPTORSET = 0xC01E032A ; The specified monitor descriptor set is invalid. -Global Const $STATUS_GRAPHICS_INVALID_MONITORDESCRIPTOR = 0xC01E032B ; The specified monitor descriptor is invalid. -Global Const $STATUS_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET = 0xC01E032C ; The specified descriptor is not in the specified monitor descriptor set. -Global Const $STATUS_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET = 0xC01E032D ; The specified descriptor is already in the specified monitor descriptor set. -Global Const $STATUS_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE = 0xC01E032E ; The ID of the specified monitor descriptor is being used by another descriptor in the set. -Global Const $STATUS_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE = 0xC01E032F ; The specified video present target subset type is invalid. -Global Const $STATUS_GRAPHICS_RESOURCES_NOT_RELATED = 0xC01E0330 ; Two or more of the specified resources are not related to each other, as defined by the interface semantics. -Global Const $STATUS_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE = 0xC01E0331 ; The ID of the specified video present source is being used by another source in the set. -Global Const $STATUS_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE = 0xC01E0332 ; The ID of the specified video present target is being used by another target in the set. -Global Const $STATUS_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET = 0xC01E0333 ; The specified VidPN source cannot be used because there is no available VidPN target to connect it to. -Global Const $STATUS_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER = 0xC01E0334 ; The newly arrived monitor could not be associated with a display adapter. -Global Const $STATUS_GRAPHICS_NO_VIDPNMGR = 0xC01E0335 ; The particular display adapter does not have an associated VidPN manager. -Global Const $STATUS_GRAPHICS_NO_ACTIVE_VIDPN = 0xC01E0336 ; The VidPN manager of the particular display adapter does not have an active VidPN. -Global Const $STATUS_GRAPHICS_STALE_VIDPN_TOPOLOGY = 0xC01E0337 ; The specified VidPN topology is stale; obtain the new topology. -Global Const $STATUS_GRAPHICS_MONITOR_NOT_CONNECTED = 0xC01E0338 ; No monitor is connected on the specified video present target. -Global Const $STATUS_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY = 0xC01E0339 ; The specified source is not part of the specified VidPN's topology. -Global Const $STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE = 0xC01E033A ; The specified primary surface size is invalid. -Global Const $STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE = 0xC01E033B ; The specified visible region size is invalid. -Global Const $STATUS_GRAPHICS_INVALID_STRIDE = 0xC01E033C ; The specified stride is invalid. -Global Const $STATUS_GRAPHICS_INVALID_PIXELFORMAT = 0xC01E033D ; The specified pixel format is invalid. -Global Const $STATUS_GRAPHICS_INVALID_COLORBASIS = 0xC01E033E ; The specified color basis is invalid. -Global Const $STATUS_GRAPHICS_INVALID_PIXELVALUEACCESSMODE = 0xC01E033F ; The specified pixel value access mode is invalid. -Global Const $STATUS_GRAPHICS_TARGET_NOT_IN_TOPOLOGY = 0xC01E0340 ; The specified target is not part of the specified VidPN's topology. -Global Const $STATUS_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT = 0xC01E0341 ; Failed to acquire the display mode management interface. -Global Const $STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE = 0xC01E0342 ; The specified VidPN source is already owned by a DMM client and cannot be used until that client releases it. -Global Const $STATUS_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN = 0xC01E0343 ; The specified VidPN is active and cannot be accessed. -Global Const $STATUS_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL = 0xC01E0344 ; The specified VidPN's present path importance ordinal is invalid. -Global Const $STATUS_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION = 0xC01E0345 ; The specified VidPN's present path content geometry transformation is invalid. -Global Const $STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED = 0xC01E0346 ; The specified content geometry transformation is not supported on the respective VidPN present path. -Global Const $STATUS_GRAPHICS_INVALID_GAMMA_RAMP = 0xC01E0347 ; The specified gamma ramp is invalid. -Global Const $STATUS_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED = 0xC01E0348 ; The specified gamma ramp is not supported on the respective VidPN present path. -Global Const $STATUS_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED = 0xC01E0349 ; Multisampling is not supported on the respective VidPN present path. -Global Const $STATUS_GRAPHICS_MODE_NOT_IN_MODESET = 0xC01E034A ; The specified mode is not in the specified mode set. -Global Const $STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON = 0xC01E034D ; The specified VidPN topology recommendation reason is invalid. -Global Const $STATUS_GRAPHICS_INVALID_PATH_CONTENT_TYPE = 0xC01E034E ; The specified VidPN present path content type is invalid. -Global Const $STATUS_GRAPHICS_INVALID_COPYPROTECTION_TYPE = 0xC01E034F ; The specified VidPN present path copy protection type is invalid. -Global Const $STATUS_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS = 0xC01E0350 ; Only one unassigned mode set can exist at any one time for a particular VidPN source or target. -Global Const $STATUS_GRAPHICS_INVALID_SCANLINE_ORDERING = 0xC01E0352 ; The specified scan line ordering type is invalid. -Global Const $STATUS_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED = 0xC01E0353 ; The topology changes are not allowed for the specified VidPN. -Global Const $STATUS_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS = 0xC01E0354 ; All available importance ordinals are being used in the specified topology. -Global Const $STATUS_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT = 0xC01E0355 ; The specified primary surface has a different private-format attribute than the current primary surface. -Global Const $STATUS_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM = 0xC01E0356 ; The specified mode-pruning algorithm is invalid. -Global Const $STATUS_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN = 0xC01E0357 ; The specified monitor-capability origin is invalid. -Global Const $STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT = 0xC01E0358 ; The specified monitor-frequency range constraint is invalid. -Global Const $STATUS_GRAPHICS_MAX_NUM_PATHS_REACHED = 0xC01E0359 ; The maximum supported number of present paths has been reached. -Global Const $STATUS_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION = 0xC01E035A ; The miniport requested that augmentation be canceled for the specified source of the specified VidPN's topology. -Global Const $STATUS_GRAPHICS_INVALID_CLIENT_TYPE = 0xC01E035B ; The specified client type was not recognized. -Global Const $STATUS_GRAPHICS_CLIENTVIDPN_NOT_SET = 0xC01E035C ; The client VidPN is not set on this adapter (for example, no user mode-initiated mode changes have taken place on this adapter). -Global Const $STATUS_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED = 0xC01E0400 ; The specified display adapter child device already has an external device connected to it. -Global Const $STATUS_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED = 0xC01E0401 ; The display adapter child device does not support reporting a descriptor. -Global Const $STATUS_GRAPHICS_NOT_A_LINKED_ADAPTER = 0xC01E0430 ; The display adapter is not linked to any other adapters. -Global Const $STATUS_GRAPHICS_LEADLINK_NOT_ENUMERATED = 0xC01E0431 ; The lead adapter in a linked configuration was not enumerated yet. -Global Const $STATUS_GRAPHICS_CHAINLINKS_NOT_ENUMERATED = 0xC01E0432 ; Some chain adapters in a linked configuration have not yet been enumerated. -Global Const $STATUS_GRAPHICS_ADAPTER_CHAIN_NOT_READY = 0xC01E0433 ; The chain of linked adapters is not ready to start because of an unknown failure. -Global Const $STATUS_GRAPHICS_CHAINLINKS_NOT_STARTED = 0xC01E0434 ; An attempt was made to start a lead link display adapter when the chain links had not yet started. -Global Const $STATUS_GRAPHICS_CHAINLINKS_NOT_POWERED_ON = 0xC01E0435 ; An attempt was made to turn on a lead link display adapter when the chain links were turned off. -Global Const $STATUS_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE = 0xC01E0436 ; The adapter link was found in an inconsistent state. Not all adapters are in an expected PNP/power state. -Global Const $STATUS_GRAPHICS_NOT_POST_DEVICE_DRIVER = 0xC01E0438 ; The driver trying to start is not the same as the driver for the posted display adapter. -Global Const $STATUS_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED = 0xC01E043B ; An operation is being attempted that requires the display adapter to be in a quiescent state. -Global Const $STATUS_GRAPHICS_OPM_NOT_SUPPORTED = 0xC01E0500 ; The driver does not support OPM. -Global Const $STATUS_GRAPHICS_COPP_NOT_SUPPORTED = 0xC01E0501 ; The driver does not support COPP. -Global Const $STATUS_GRAPHICS_UAB_NOT_SUPPORTED = 0xC01E0502 ; The driver does not support UAB. -Global Const $STATUS_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS = 0xC01E0503 ; The specified encrypted parameters are invalid. -Global Const $STATUS_GRAPHICS_OPM_PARAMETER_ARRAY_TOO_SMALL = 0xC01E0504 ; An array passed to a function cannot hold all of the data that the function wants to put in it. -Global Const $STATUS_GRAPHICS_OPM_NO_PROTECTED_OUTPUTS_EXIST = 0xC01E0505 ; The GDI display device passed to this function does not have any active protected outputs. -Global Const $STATUS_GRAPHICS_PVP_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME = 0xC01E0506 ; The PVP cannot find an actual GDI display device that corresponds to the passed-in GDI display device name. -Global Const $STATUS_GRAPHICS_PVP_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP = 0xC01E0507 ; This function failed because the GDI display device passed to it was not attached to the Windows desktop. -Global Const $STATUS_GRAPHICS_PVP_MIRRORING_DEVICES_NOT_SUPPORTED = 0xC01E0508 ; The PVP does not support mirroring display devices because they do not have any protected outputs. -Global Const $STATUS_GRAPHICS_OPM_INVALID_POINTER = 0xC01E050A ; The function failed because an invalid pointer parameter was passed to it. A pointer parameter is invalid if it is null, is not correctly aligned, or it points to an invalid address or a kernel mode address. -Global Const $STATUS_GRAPHICS_OPM_INTERNAL_ERROR = 0xC01E050B ; An internal error caused an operation to fail. -Global Const $STATUS_GRAPHICS_OPM_INVALID_HANDLE = 0xC01E050C ; The function failed because the caller passed in an invalid OPM user-mode handle. -Global Const $STATUS_GRAPHICS_PVP_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE = 0xC01E050D ; This function failed because the GDI device passed to it did not have any monitors associated with it. -Global Const $STATUS_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH = 0xC01E050E ; A certificate could not be returned because the certificate buffer passed to the function was too small. -Global Const $STATUS_GRAPHICS_OPM_SPANNING_MODE_ENABLED = 0xC01E050F ; DxgkDdiOpmCreateProtectedOutput() could not create a protected output because the video present yarget is in spanning mode. -Global Const $STATUS_GRAPHICS_OPM_THEATER_MODE_ENABLED = 0xC01E0510 ; DxgkDdiOpmCreateProtectedOutput() could not create a protected output because the video present target is in theater mode. -Global Const $STATUS_GRAPHICS_PVP_HFS_FAILED = 0xC01E0511 ; The function call failed because the display adapter's hardware functionality scan (HFS) failed to validate the graphics hardware. -Global Const $STATUS_GRAPHICS_OPM_INVALID_SRM = 0xC01E0512 ; The HDCP SRM passed to this function did not comply with section 5 of the HDCP 1.1 specification. -Global Const $STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP = 0xC01E0513 ; The protected output cannot enable the HDCP system because it does not support it. -Global Const $STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP = 0xC01E0514 ; The protected output cannot enable analog copy protection because it does not support it. -Global Const $STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA = 0xC01E0515 ; The protected output cannot enable the CGMS-A protection technology because it does not support it. -Global Const $STATUS_GRAPHICS_OPM_HDCP_SRM_NEVER_SET = 0xC01E0516 ; DxgkDdiOPMGetInformation() cannot return the version of the SRM being used because the application never successfully passed an SRM to the protected output. -Global Const $STATUS_GRAPHICS_OPM_RESOLUTION_TOO_HIGH = 0xC01E0517 ; DxgkDdiOPMConfigureProtectedOutput() cannot enable the specified output protection technology because the output's screen resolution is too high. -Global Const $STATUS_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE = 0xC01E0518 ; DxgkDdiOPMConfigureProtectedOutput() cannot enable HDCP because other physical outputs are using the display adapter's HDCP hardware. -Global Const $STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_NO_LONGER_EXISTS = 0xC01E051A ; The operating system asynchronously destroyed this OPM-protected output because the operating system state changed. This error typically occurs because the monitor PDO associated with this protected output was removed or stopped, the protected output's session became a nonconsole session, or the protected output's desktop became inactive. -Global Const $STATUS_GRAPHICS_OPM_SESSION_TYPE_CHANGE_IN_PROGRESS = 0xC01E051B ; OPM functions cannot be called when a session is changing its type. Three types of sessions currently exist: console, disconnected, and remote (RDP or ICA). -Global Const $STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS = 0xC01E051C ; The DxgkDdiOPMGetCOPPCompatibleInformation, DxgkDdiOPMGetInformation, or DxgkDdiOPMConfigureProtectedOutput function failed. This error is returned only if a protected output has OPM semantics. -Global Const $STATUS_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST = 0xC01E051D ; The DxgkDdiOPMGetInformation and DxgkDdiOPMGetCOPPCompatibleInformation functions return this error code if the passed-in sequence number is not the expected sequence number or the passed-in OMAC value is invalid. -Global Const $STATUS_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR = 0xC01E051E ; The function failed because an unexpected error occurred inside a display driver. -Global Const $STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS = 0xC01E051F ; The DxgkDdiOPMGetCOPPCompatibleInformation, DxgkDdiOPMGetInformation, or DxgkDdiOPMConfigureProtectedOutput function failed. This error is returned only if a protected output has COPP semantics. -Global Const $STATUS_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED = 0xC01E0520 ; The DxgkDdiOPMGetCOPPCompatibleInformation and DxgkDdiOPMConfigureProtectedOutput functions return this error if the display driver does not support the DXGKMDT_OPM_GET_ACP_AND_CGMSA_SIGNALING and DXGKMDT_OPM_SET_ACP_AND_CGMSA_SIGNALING GUIDs. -Global Const $STATUS_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST = 0xC01E0521 ; The DxgkDdiOPMConfigureProtectedOutput function returns this error code if the passed-in sequence number is not the expected sequence number or the passed-in OMAC value is invalid. -Global Const $STATUS_GRAPHICS_I2C_NOT_SUPPORTED = 0xC01E0580 ; The monitor connected to the specified video output does not have an I2C bus. -Global Const $STATUS_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST = 0xC01E0581 ; No device on the I2C bus has the specified address. -Global Const $STATUS_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA = 0xC01E0582 ; An error occurred while transmitting data to the device on the I2C bus. -Global Const $STATUS_GRAPHICS_I2C_ERROR_RECEIVING_DATA = 0xC01E0583 ; An error occurred while receiving data from the device on the I2C bus. -Global Const $STATUS_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED = 0xC01E0584 ; The monitor does not support the specified VCP code. -Global Const $STATUS_GRAPHICS_DDCCI_INVALID_DATA = 0xC01E0585 ; The data received from the monitor is invalid. -Global Const $STATUS_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE = 0xC01E0586 ; A function call failed because a monitor returned an invalid timing status byte when the operating system used the DDC/CI get timing report and timing message command to get a timing report from a monitor. -Global Const $STATUS_GRAPHICS_DDCCI_INVALID_CAPABILITIES_STRING = 0xC01E0587 ; A monitor returned a DDC/CI capabilities string that did not comply with the ACCESS.bus 3.0, DDC/CI 1.1, or MCCS 2 Revision 1 specification. -Global Const $STATUS_GRAPHICS_MCA_INTERNAL_ERROR = 0xC01E0588 ; An internal error caused an operation to fail. -Global Const $STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND = 0xC01E0589 ; An operation failed because a DDC/CI message had an invalid value in its command field. -Global Const $STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH = 0xC01E058A ; This error occurred because a DDC/CI message had an invalid value in its length field. -Global Const $STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM = 0xC01E058B ; This error occurred because the value in a DDC/CI message's checksum field did not match the message's computed checksum value. This error implies that the data was corrupted while it was being transmitted from a monitor to a computer. -Global Const $STATUS_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE = 0xC01E058C ; This function failed because an invalid monitor handle was passed to it. -Global Const $STATUS_GRAPHICS_MONITOR_NO_LONGER_EXISTS = 0xC01E058D ; The operating system asynchronously destroyed the monitor that corresponds to this handle because the operating system's state changed. This error typically occurs because the monitor PDO associated with this handle was removed or stopped, or a display mode change occurred. A display mode change occurs when Windows sends a WM_DISPLAYCHANGE message to applications. -Global Const $STATUS_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED = 0xC01E05E0 ; This function can be used only if a program is running in the local console session. It cannot be used if a program is running on a remote desktop session or on a terminal server session. -Global Const $STATUS_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME = 0xC01E05E1 ; This function cannot find an actual GDI display device that corresponds to the specified GDI display device name. -Global Const $STATUS_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP = 0xC01E05E2 ; The function failed because the specified GDI display device was not attached to the Windows desktop. -Global Const $STATUS_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED = 0xC01E05E3 ; This function does not support GDI mirroring display devices because GDI mirroring display devices do not have any physical monitors associated with them. -Global Const $STATUS_GRAPHICS_INVALID_POINTER = 0xC01E05E4 ; The function failed because an invalid pointer parameter was passed to it. A pointer parameter is invalid if it is null, is not correctly aligned, or points to an invalid address or to a kernel mode address. -Global Const $STATUS_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE = 0xC01E05E5 ; This function failed because the GDI device passed to it did not have a monitor associated with it. -Global Const $STATUS_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL = 0xC01E05E6 ; An array passed to the function cannot hold all of the data that the function must copy into the array. -Global Const $STATUS_GRAPHICS_INTERNAL_ERROR = 0xC01E05E7 ; An internal error caused an operation to fail. -Global Const $STATUS_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS = 0xC01E05E8 ; The function failed because the current session is changing its type. This function cannot be called when the current session is changing its type. Three types of sessions currently exist: console, disconnected, and remote (RDP or ICA). -Global Const $STATUS_FVE_LOCKED_VOLUME = 0xC0210000 ; The volume must be unlocked before it can be used. -Global Const $STATUS_FVE_NOT_ENCRYPTED = 0xC0210001 ; The volume is fully decrypted and no key is available. -Global Const $STATUS_FVE_BAD_INFORMATION = 0xC0210002 ; The control block for the encrypted volume is not valid. -Global Const $STATUS_FVE_TOO_SMALL = 0xC0210003 ; Not enough free space remains on the volume to allow encryption. -Global Const $STATUS_FVE_FAILED_WRONG_FS = 0xC0210004 ; The partition cannot be encrypted because the file system is not supported. -Global Const $STATUS_FVE_FAILED_BAD_FS = 0xC0210005 ; The file system is inconsistent. Run the Check Disk utility. -Global Const $STATUS_FVE_FS_NOT_EXTENDED = 0xC0210006 ; The file system does not extend to the end of the volume. -Global Const $STATUS_FVE_FS_MOUNTED = 0xC0210007 ; This operation cannot be performed while a file system is mounted on the volume. -Global Const $STATUS_FVE_NO_LICENSE = 0xC0210008 ; BitLocker Drive Encryption is not included with this version of Windows. -Global Const $STATUS_FVE_ACTION_NOT_ALLOWED = 0xC0210009 ; The requested action was denied by the FVE control engine. -Global Const $STATUS_FVE_BAD_DATA = 0xC021000A ; The data supplied is malformed. -Global Const $STATUS_FVE_VOLUME_NOT_BOUND = 0xC021000B ; The volume is not bound to the system. -Global Const $STATUS_FVE_NOT_DATA_VOLUME = 0xC021000C ; The volume specified is not a data volume. -Global Const $STATUS_FVE_CONV_READ_ERROR = 0xC021000D ; A read operation failed while converting the volume. -Global Const $STATUS_FVE_CONV_WRITE_ERROR = 0xC021000E ; A write operation failed while converting the volume. -Global Const $STATUS_FVE_OVERLAPPED_UPDATE = 0xC021000F ; The control block for the encrypted volume was updated by another thread. Try again. -Global Const $STATUS_FVE_FAILED_SECTOR_SIZE = 0xC0210010 ; The volume encryption algorithm cannot be used on this sector size. -Global Const $STATUS_FVE_FAILED_AUTHENTICATION = 0xC0210011 ; BitLocker recovery authentication failed. -Global Const $STATUS_FVE_NOT_OS_VOLUME = 0xC0210012 ; The volume specified is not the boot operating system volume. -Global Const $STATUS_FVE_KEYFILE_NOT_FOUND = 0xC0210013 ; The BitLocker startup key or recovery password could not be read from external media. -Global Const $STATUS_FVE_KEYFILE_INVALID = 0xC0210014 ; The BitLocker startup key or recovery password file is corrupt or invalid. -Global Const $STATUS_FVE_KEYFILE_NO_VMK = 0xC0210015 ; The BitLocker encryption key could not be obtained from the startup key or the recovery password. -Global Const $STATUS_FVE_TPM_DISABLED = 0xC0210016 ; The TPM is disabled. -Global Const $STATUS_FVE_TPM_SRK_AUTH_NOT_ZERO = 0xC0210017 ; The authorization data for the SRK of the TPM is not zero. -Global Const $STATUS_FVE_TPM_INVALID_PCR = 0xC0210018 ; The system boot information changed or the TPM locked out access to BitLocker encryption keys until the computer is restarted. -Global Const $STATUS_FVE_TPM_NO_VMK = 0xC0210019 ; The BitLocker encryption key could not be obtained from the TPM. -Global Const $STATUS_FVE_PIN_INVALID = 0xC021001A ; The BitLocker encryption key could not be obtained from the TPM and PIN. -Global Const $STATUS_FVE_AUTH_INVALID_APPLICATION = 0xC021001B ; A boot application hash does not match the hash computed when BitLocker was turned on. -Global Const $STATUS_FVE_AUTH_INVALID_CONFIG = 0xC021001C ; The Boot Configuration Data (BCD) settings are not supported or have changed because BitLocker was enabled. -Global Const $STATUS_FVE_DEBUGGER_ENABLED = 0xC021001D ; Boot debugging is enabled. Run Windows Boot Configuration Data Store Editor (bcdedit.exe) to turn it off. -Global Const $STATUS_FVE_DRY_RUN_FAILED = 0xC021001E ; The BitLocker encryption key could not be obtained. -Global Const $STATUS_FVE_BAD_METADATA_POINTER = 0xC021001F ; The metadata disk region pointer is incorrect. -Global Const $STATUS_FVE_OLD_METADATA_COPY = 0xC0210020 ; The backup copy of the metadata is out of date. -Global Const $STATUS_FVE_REBOOT_REQUIRED = 0xC0210021 ; No action was taken because a system restart is required. -Global Const $STATUS_FVE_RAW_ACCESS = 0xC0210022 ; No action was taken because BitLocker Drive Encryption is in RAW access mode. -Global Const $STATUS_FVE_RAW_BLOCKED = 0xC0210023 ; BitLocker Drive Encryption cannot enter RAW access mode for this volume. -Global Const $STATUS_FVE_NO_FEATURE_LICENSE = 0xC0210026 ; This feature of BitLocker Drive Encryption is not included with this version of Windows. -Global Const $STATUS_FVE_POLICY_USER_DISABLE_RDV_NOT_ALLOWED = 0xC0210027 ; Group policy does not permit turning off BitLocker Drive Encryption on roaming data volumes. -Global Const $STATUS_FVE_CONV_RECOVERY_FAILED = 0xC0210028 ; Bitlocker Drive Encryption failed to recover from aborted conversion. This could be due to either all conversion logs being corrupted or the media being write-protected. -Global Const $STATUS_FVE_VIRTUALIZED_SPACE_TOO_BIG = 0xC0210029 ; The requested virtualization size is too big. -Global Const $STATUS_FVE_VOLUME_TOO_SMALL = 0xC0210030 ; The drive is too small to be protected using BitLocker Drive Encryption. -Global Const $STATUS_FWP_CALLOUT_NOT_FOUND = 0xC0220001 ; The callout does not exist. -Global Const $STATUS_FWP_CONDITION_NOT_FOUND = 0xC0220002 ; The filter condition does not exist. -Global Const $STATUS_FWP_FILTER_NOT_FOUND = 0xC0220003 ; The filter does not exist. -Global Const $STATUS_FWP_LAYER_NOT_FOUND = 0xC0220004 ; The layer does not exist. -Global Const $STATUS_FWP_PROVIDER_NOT_FOUND = 0xC0220005 ; The provider does not exist. -Global Const $STATUS_FWP_PROVIDER_CONTEXT_NOT_FOUND = 0xC0220006 ; The provider context does not exist. -Global Const $STATUS_FWP_SUBLAYER_NOT_FOUND = 0xC0220007 ; The sublayer does not exist. -Global Const $STATUS_FWP_NOT_FOUND = 0xC0220008 ; The object does not exist. -Global Const $STATUS_FWP_ALREADY_EXISTS = 0xC0220009 ; An object with that GUID or LUID already exists. -Global Const $STATUS_FWP_IN_USE = 0xC022000A ; The object is referenced by other objects and cannot be deleted. -Global Const $STATUS_FWP_DYNAMIC_SESSION_IN_PROGRESS = 0xC022000B ; The call is not allowed from within a dynamic session. -Global Const $STATUS_FWP_WRONG_SESSION = 0xC022000C ; The call was made from the wrong session and cannot be completed. -Global Const $STATUS_FWP_NO_TXN_IN_PROGRESS = 0xC022000D ; The call must be made from within an explicit transaction. -Global Const $STATUS_FWP_TXN_IN_PROGRESS = 0xC022000E ; The call is not allowed from within an explicit transaction. -Global Const $STATUS_FWP_TXN_ABORTED = 0xC022000F ; The explicit transaction has been forcibly canceled. -Global Const $STATUS_FWP_SESSION_ABORTED = 0xC0220010 ; The session has been canceled. -Global Const $STATUS_FWP_INCOMPATIBLE_TXN = 0xC0220011 ; The call is not allowed from within a read-only transaction. -Global Const $STATUS_FWP_TIMEOUT = 0xC0220012 ; The call timed out while waiting to acquire the transaction lock. -Global Const $STATUS_FWP_NET_EVENTS_DISABLED = 0xC0220013 ; The collection of network diagnostic events is disabled. -Global Const $STATUS_FWP_INCOMPATIBLE_LAYER = 0xC0220014 ; The operation is not supported by the specified layer. -Global Const $STATUS_FWP_KM_CLIENTS_ONLY = 0xC0220015 ; The call is allowed for kernel-mode callers only. -Global Const $STATUS_FWP_LIFETIME_MISMATCH = 0xC0220016 ; The call tried to associate two objects with incompatible lifetimes. -Global Const $STATUS_FWP_BUILTIN_OBJECT = 0xC0220017 ; The object is built-in and cannot be deleted. -Global Const $STATUS_FWP_TOO_MANY_BOOTTIME_FILTERS = 0xC0220018 ; The maximum number of boot-time filters has been reached. -Global Const $STATUS_FWP_TOO_MANY_CALLOUTS = 0xC0220018 ; The maximum number of callouts has been reached. -Global Const $STATUS_FWP_NOTIFICATION_DROPPED = 0xC0220019 ; A notification could not be delivered because a message queue has reached maximum capacity. -Global Const $STATUS_FWP_TRAFFIC_MISMATCH = 0xC022001A ; The traffic parameters do not match those for the security association context. -Global Const $STATUS_FWP_INCOMPATIBLE_SA_STATE = 0xC022001B ; The call is not allowed for the current security association state. -Global Const $STATUS_FWP_NULL_POINTER = 0xC022001C ; A required pointer is null. -Global Const $STATUS_FWP_INVALID_ENUMERATOR = 0xC022001D ; An enumerator is not valid. -Global Const $STATUS_FWP_INVALID_FLAGS = 0xC022001E ; The flags field contains an invalid value. -Global Const $STATUS_FWP_INVALID_NET_MASK = 0xC022001F ; A network mask is not valid. -Global Const $STATUS_FWP_INVALID_RANGE = 0xC0220020 ; An FWP_RANGE is not valid. -Global Const $STATUS_FWP_INVALID_INTERVAL = 0xC0220021 ; The time interval is not valid. -Global Const $STATUS_FWP_ZERO_LENGTH_ARRAY = 0xC0220022 ; An array that must contain at least one element has a zero length. -Global Const $STATUS_FWP_NULL_DISPLAY_NAME = 0xC0220023 ; The displayData.name field cannot be null. -Global Const $STATUS_FWP_INVALID_ACTION_TYPE = 0xC0220024 ; The action type is not one of the allowed action types for a filter. -Global Const $STATUS_FWP_INVALID_WEIGHT = 0xC0220025 ; The filter weight is not valid. -Global Const $STATUS_FWP_MATCH_TYPE_MISMATCH = 0xC0220026 ; A filter condition contains a match type that is not compatible with the operands. -Global Const $STATUS_FWP_TYPE_MISMATCH = 0xC0220027 ; An FWP_VALUE or FWPM_CONDITION_VALUE is of the wrong type. -Global Const $STATUS_FWP_OUT_OF_BOUNDS = 0xC0220028 ; An integer value is outside the allowed range. -Global Const $STATUS_FWP_RESERVED = 0xC0220029 ; A reserved field is nonzero. -Global Const $STATUS_FWP_DUPLICATE_CONDITION = 0xC022002A ; A filter cannot contain multiple conditions operating on a single field. -Global Const $STATUS_FWP_DUPLICATE_KEYMOD = 0xC022002B ; A policy cannot contain the same keying module more than once. -Global Const $STATUS_FWP_ACTION_INCOMPATIBLE_WITH_LAYER = 0xC022002C ; The action type is not compatible with the layer. -Global Const $STATUS_FWP_ACTION_INCOMPATIBLE_WITH_SUBLAYER = 0xC022002D ; The action type is not compatible with the sublayer. -Global Const $STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_LAYER = 0xC022002E ; The raw context or the provider context is not compatible with the layer. -Global Const $STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_CALLOUT = 0xC022002F ; The raw context or the provider context is not compatible with the callout. -Global Const $STATUS_FWP_INCOMPATIBLE_AUTH_METHOD = 0xC0220030 ; The authentication method is not compatible with the policy type. -Global Const $STATUS_FWP_INCOMPATIBLE_DH_GROUP = 0xC0220031 ; The Diffie-Hellman group is not compatible with the policy type. -Global Const $STATUS_FWP_EM_NOT_SUPPORTED = 0xC0220032 ; An IKE policy cannot contain an Extended Mode policy. -Global Const $STATUS_FWP_NEVER_MATCH = 0xC0220033 ; The enumeration template or subscription will never match any objects. -Global Const $STATUS_FWP_PROVIDER_CONTEXT_MISMATCH = 0xC0220034 ; The provider context is of the wrong type. -Global Const $STATUS_FWP_INVALID_PARAMETER = 0xC0220035 ; The parameter is incorrect. -Global Const $STATUS_FWP_TOO_MANY_SUBLAYERS = 0xC0220036 ; The maximum number of sublayers has been reached. -Global Const $STATUS_FWP_CALLOUT_NOTIFICATION_FAILED = 0xC0220037 ; The notification function for a callout returned an error. -Global Const $STATUS_FWP_INCOMPATIBLE_AUTH_CONFIG = 0xC0220038 ; The IPsec authentication configuration is not compatible with the authentication type. -Global Const $STATUS_FWP_INCOMPATIBLE_CIPHER_CONFIG = 0xC0220039 ; The IPsec cipher configuration is not compatible with the cipher type. -Global Const $STATUS_FWP_DUPLICATE_AUTH_METHOD = 0xC022003C ; A policy cannot contain the same auth method more than once. -Global Const $STATUS_FWP_TCPIP_NOT_READY = 0xC0220100 ; The TCP/IP stack is not ready. -Global Const $STATUS_FWP_INJECT_HANDLE_CLOSING = 0xC0220101 ; The injection handle is being closed by another thread. -Global Const $STATUS_FWP_INJECT_HANDLE_STALE = 0xC0220102 ; The injection handle is stale. -Global Const $STATUS_FWP_CANNOT_PEND = 0xC0220103 ; The classify cannot be pended. -Global Const $STATUS_NDIS_CLOSING = 0xC0230002 ; The binding to the network interface is being closed. -Global Const $STATUS_NDIS_BAD_VERSION = 0xC0230004 ; An invalid version was specified. -Global Const $STATUS_NDIS_BAD_CHARACTERISTICS = 0xC0230005 ; An invalid characteristics table was used. -Global Const $STATUS_NDIS_ADAPTER_NOT_FOUND = 0xC0230006 ; Failed to find the network interface or the network interface is not ready. -Global Const $STATUS_NDIS_OPEN_FAILED = 0xC0230007 ; Failed to open the network interface. -Global Const $STATUS_NDIS_DEVICE_FAILED = 0xC0230008 ; The network interface has encountered an internal unrecoverable failure. -Global Const $STATUS_NDIS_MULTICAST_FULL = 0xC0230009 ; The multicast list on the network interface is full. -Global Const $STATUS_NDIS_MULTICAST_EXISTS = 0xC023000A ; An attempt was made to add a duplicate multicast address to the list. -Global Const $STATUS_NDIS_MULTICAST_NOT_FOUND = 0xC023000B ; At attempt was made to remove a multicast address that was never added. -Global Const $STATUS_NDIS_REQUEST_ABORTED = 0xC023000C ; The network interface aborted the request. -Global Const $STATUS_NDIS_RESET_IN_PROGRESS = 0xC023000D ; The network interface cannot process the request because it is being reset. -Global Const $STATUS_NDIS_INVALID_PACKET = 0xC023000F ; An attempt was made to send an invalid packet on a network interface. -Global Const $STATUS_NDIS_INVALID_DEVICE_REQUEST = 0xC0230010 ; The specified request is not a valid operation for the target device. -Global Const $STATUS_NDIS_ADAPTER_NOT_READY = 0xC0230011 ; The network interface is not ready to complete this operation. -Global Const $STATUS_NDIS_INVALID_LENGTH = 0xC0230014 ; The length of the buffer submitted for this operation is not valid. -Global Const $STATUS_NDIS_INVALID_DATA = 0xC0230015 ; The data used for this operation is not valid. -Global Const $STATUS_NDIS_BUFFER_TOO_SHORT = 0xC0230016 ; The length of the submitted buffer for this operation is too small. -Global Const $STATUS_NDIS_INVALID_OID = 0xC0230017 ; The network interface does not support this object identifier. -Global Const $STATUS_NDIS_ADAPTER_REMOVED = 0xC0230018 ; The network interface has been removed. -Global Const $STATUS_NDIS_UNSUPPORTED_MEDIA = 0xC0230019 ; The network interface does not support this media type. -Global Const $STATUS_NDIS_GROUP_ADDRESS_IN_USE = 0xC023001A ; An attempt was made to remove a token ring group address that is in use by other components. -Global Const $STATUS_NDIS_FILE_NOT_FOUND = 0xC023001B ; An attempt was made to map a file that cannot be found. -Global Const $STATUS_NDIS_ERROR_READING_FILE = 0xC023001C ; An error occurred while NDIS tried to map the file. -Global Const $STATUS_NDIS_ALREADY_MAPPED = 0xC023001D ; An attempt was made to map a file that is already mapped. -Global Const $STATUS_NDIS_RESOURCE_CONFLICT = 0xC023001E ; An attempt to allocate a hardware resource failed because the resource is used by another component. -Global Const $STATUS_NDIS_MEDIA_DISCONNECTED = 0xC023001F ; The I/O operation failed because the network media is disconnected or the wireless access point is out of range. -Global Const $STATUS_NDIS_INVALID_ADDRESS = 0xC0230022 ; The network address used in the request is invalid. -Global Const $STATUS_NDIS_PAUSED = 0xC023002A ; The offload operation on the network interface has been paused. -Global Const $STATUS_NDIS_INTERFACE_NOT_FOUND = 0xC023002B ; The network interface was not found. -Global Const $STATUS_NDIS_UNSUPPORTED_REVISION = 0xC023002C ; The revision number specified in the structure is not supported. -Global Const $STATUS_NDIS_INVALID_PORT = 0xC023002D ; The specified port does not exist on this network interface. -Global Const $STATUS_NDIS_INVALID_PORT_STATE = 0xC023002E ; The current state of the specified port on this network interface does not support the requested operation. -Global Const $STATUS_NDIS_LOW_POWER_STATE = 0xC023002F ; The miniport adapter is in a lower power state. -Global Const $STATUS_NDIS_NOT_SUPPORTED = 0xC02300BB ; The network interface does not support this request. -Global Const $STATUS_NDIS_OFFLOAD_POLICY = 0xC023100F ; The TCP connection is not offloadable because of a local policy setting. -Global Const $STATUS_NDIS_OFFLOAD_CONNECTION_REJECTED = 0xC0231012 ; The TCP connection is not offloadable by the Chimney offload target. -Global Const $STATUS_NDIS_OFFLOAD_PATH_REJECTED = 0xC0231013 ; The IP Path object is not in an offloadable state. -Global Const $STATUS_NDIS_DOT11_AUTO_CONFIG_ENABLED = 0xC0232000 ; The wireless LAN interface is in auto-configuration mode and does not support the requested parameter change operation. -Global Const $STATUS_NDIS_DOT11_MEDIA_IN_USE = 0xC0232001 ; The wireless LAN interface is busy and cannot perform the requested operation. -Global Const $STATUS_NDIS_DOT11_POWER_STATE_INVALID = 0xC0232002 ; The wireless LAN interface is power down and does not support the requested operation. -Global Const $STATUS_NDIS_PM_WOL_PATTERN_LIST_FULL = 0xC0232003 ; The list of wake on LAN patterns is full. -Global Const $STATUS_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL = 0xC0232004 ; The list of low power protocol offloads is full. -Global Const $STATUS_IPSEC_BAD_SPI = 0xC0360001 ; The SPI in the packet does not match a valid IPsec SA. -Global Const $STATUS_IPSEC_SA_LIFETIME_EXPIRED = 0xC0360002 ; The packet was received on an IPsec SA whose lifetime has expired. -Global Const $STATUS_IPSEC_WRONG_SA = 0xC0360003 ; The packet was received on an IPsec SA that does not match the packet characteristics. -Global Const $STATUS_IPSEC_REPLAY_CHECK_FAILED = 0xC0360004 ; The packet sequence number replay check failed. -Global Const $STATUS_IPSEC_INVALID_PACKET = 0xC0360005 ; The IPsec header and/or trailer in the packet is invalid. -Global Const $STATUS_IPSEC_INTEGRITY_CHECK_FAILED = 0xC0360006 ; The IPsec integrity check failed. -Global Const $STATUS_IPSEC_CLEAR_TEXT_DROP = 0xC0360007 ; IPsec dropped a clear text packet. -Global Const $STATUS_IPSEC_AUTH_FIREWALL_DROP = 0xC0360008 ; IPsec dropped an incoming ESP packet in authenticated firewall mode. This drop is benign. -Global Const $STATUS_IPSEC_THROTTLE_DROP = 0xC0360009 ; IPsec dropped a packet due to DOS throttle. -Global Const $STATUS_IPSEC_DOSP_BLOCK = 0xC0368000 ; IPsec Dos Protection matched an explicit block rule. -Global Const $STATUS_IPSEC_DOSP_RECEIVED_MULTICAST = 0xC0368001 ; IPsec Dos Protection received an IPsec specific multicast packet which is not allowed. -Global Const $STATUS_IPSEC_DOSP_INVALID_PACKET = 0xC0368002 ; IPsec Dos Protection received an incorrectly formatted packet. -Global Const $STATUS_IPSEC_DOSP_STATE_LOOKUP_FAILED = 0xC0368003 ; IPsec Dos Protection failed to lookup state. -Global Const $STATUS_IPSEC_DOSP_MAX_ENTRIES = 0xC0368004 ; IPsec Dos Protection failed to create state because there are already maximum number of entries allowed by policy. -Global Const $STATUS_IPSEC_DOSP_KEYMOD_NOT_ALLOWED = 0xC0368005 ; IPsec Dos Protection received an IPsec negotiation packet for a keying module which is not allowed by policy. -Global Const $STATUS_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES = 0xC0368006 ; IPsec Dos Protection failed to create per internal IP ratelimit queue because there is already maximum number of queues allowed by policy. -Global Const $STATUS_VOLMGR_MIRROR_NOT_SUPPORTED = 0xC038005B ; The system does not support mirrored volumes. -Global Const $STATUS_VOLMGR_RAID5_NOT_SUPPORTED = 0xC038005C ; The system does not support RAID-5 volumes. -Global Const $STATUS_VIRTDISK_PROVIDER_NOT_FOUND = 0xC03A0014 ; A virtual disk support provider for the specified file was not found. -Global Const $STATUS_VIRTDISK_NOT_VIRTUAL_DISK = 0xC03A0015 ; The specified disk is not a virtual disk. -Global Const $STATUS_VHD_PARENT_VHD_ACCESS_DENIED = 0xC03A0016 ; The chain of virtual hard disks is inaccessible. The process has not been granted access rights to the parent virtual hard disk for the differencing disk. -Global Const $STATUS_VHD_CHILD_PARENT_SIZE_MISMATCH = 0xC03A0017 ; The chain of virtual hard disks is corrupted. There is a mismatch in the virtual sizes of the parent virtual hard disk and differencing disk. -Global Const $STATUS_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED = 0xC03A0018 ; The chain of virtual hard disks is corrupted. A differencing disk is indicated in its own parent chain. -Global Const $STATUS_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT = 0xC03A0019 ; The chain of virtual hard disks is inaccessible. There was an error opening a virtual hard disk further up the chain. -; =============================================================================================================================== diff --git a/build/Include/NamedPipes.au3 b/build/Include/NamedPipes.au3 deleted file mode 100644 index 41826cc01..000000000 --- a/build/Include/NamedPipes.au3 +++ /dev/null @@ -1,260 +0,0 @@ -#include-once - -#include "StructureConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Pipes -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Named Pipes. -; A named pipe is a named, one-way or duplex pipe for communication between the pipe server and one or more pipe -; clients. All instances of a named pipe share the same pipe name, but each instance has its own buffers and -; handles, and provides a separate conduit for client server communication. The use of instances enables -; multiple pipe clients to use the same named pipe simultaneously. Any process can access named pipes, subject -; to security checks, making named pipes an easy form of communication between related or unrelated processes. -; Any process can act as both a server and a client, making peer-to-peer communication possible. As used here, -; the term pipe server refers to a process that creates a named pipe, and the term pipe client refers to a -; process that connects to an instance of a named pipe. Named pipes can be used to provide communication between -; processes on the same computer or between processes on different computers across a network. If the server -; service is running, all named pipes are accessible remotely. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $PIPE_FLAG_FIRST_PIPE_INSTANCE = 1 -Global Const $PIPE_FLAG_OVERLAPPED = 2 -Global Const $PIPE_FLAG_WRITE_THROUGH = 4 - -Global Const $__FILE_FLAG_FIRST_PIPE_INSTANCE = 0x00080000 -Global Const $__FILE_FLAG_OVERLAPPED = 0x40000000 -Global Const $__FILE_FLAG_WRITE_THROUGH = 0x80000000 - -Global Const $__PIPE_ACCESS_INBOUND = 0x00000001 -Global Const $__PIPE_ACCESS_OUTBOUND = 0x00000002 -Global Const $__PIPE_ACCESS_DUPLEX = 0x00000003 - -Global Const $__PIPE_WAIT = 0x00000000 -Global Const $__PIPE_NOWAIT = 0x00000001 - -Global Const $__PIPE_READMODE_BYTE = 0x00000000 -Global Const $__PIPE_READMODE_MESSAGE = 0x00000002 - -Global Const $__PIPE_TYPE_BYTE = 0x00000000 -Global Const $__PIPE_TYPE_MESSAGE = 0x00000004 - -Global Const $__PIPE_CLIENT_END = 0x00000000 -Global Const $__PIPE_SERVER_END = 0x00000001 - -Global Const $__WRITE_DAC = 0x00040000 -Global Const $__WRITE_OWNER = 0x00080000 -Global Const $__ACCESS_SYSTEM_SECURITY = 0x01000000 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _NamedPipes_CallNamedPipe -; _NamedPipes_ConnectNamedPipe -; _NamedPipes_CreateNamedPipe -; _NamedPipes_CreatePipe -; _NamedPipes_DisconnectNamedPipe -; _NamedPipes_GetNamedPipeHandleState -; _NamedPipes_GetNamedPipeInfo -; _NamedPipes_PeekNamedPipe -; _NamedPipes_SetNamedPipeHandleState -; _NamedPipes_TransactNamedPipe -; _NamedPipes_WaitNamedPipe -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _NamedPipes_CallNamedPipe($sPipeName, $pInpBuf, $iInpSize, $pOutBuf, $iOutSize, ByRef $iRead, $iTimeOut = 0) - Local $aResult = DllCall("kernel32.dll", "bool", "CallNamedPipeW", "wstr", $sPipeName, "struct*", $pInpBuf, "dword", $iInpSize, "struct*", $pOutBuf, _ - "dword", $iOutSize, "dword*", 0, "dword", $iTimeOut) - If @error Then Return SetError(@error, @extended, False) - $iRead = $aResult[6] - Return $aResult[0] -EndFunc ;==>_NamedPipes_CallNamedPipe - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _NamedPipes_ConnectNamedPipe($hNamedPipe, $tOverlapped = 0) - Local $aResult = DllCall("kernel32.dll", "bool", "ConnectNamedPipe", "handle", $hNamedPipe, "struct*", $tOverlapped) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_NamedPipes_ConnectNamedPipe - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _NamedPipes_CreateNamedPipe($sName, $iAccess = 2, $iFlags = 2, $iACL = 0, $iType = 1, $iRead = 1, $iWait = 0, $iMaxInst = 25, _ - $iOutBufSize = 4096, $iInpBufSize = 4096, $iDefaultTimeout = 5000, $tSecurity = 0) - Local $iOpenMode, $iPipeMode - - Switch $iAccess - Case 1 - $iOpenMode = $__PIPE_ACCESS_OUTBOUND - Case 2 - $iOpenMode = $__PIPE_ACCESS_DUPLEX - Case Else - $iOpenMode = $__PIPE_ACCESS_INBOUND - EndSwitch - If BitAND($iFlags, 1) <> 0 Then $iOpenMode = BitOR($iOpenMode, $__FILE_FLAG_FIRST_PIPE_INSTANCE) - If BitAND($iFlags, 2) <> 0 Then $iOpenMode = BitOR($iOpenMode, $__FILE_FLAG_OVERLAPPED) - If BitAND($iFlags, 4) <> 0 Then $iOpenMode = BitOR($iOpenMode, $__FILE_FLAG_WRITE_THROUGH) - - If BitAND($iACL, 1) <> 0 Then $iOpenMode = BitOR($iOpenMode, $__WRITE_DAC) - If BitAND($iACL, 2) <> 0 Then $iOpenMode = BitOR($iOpenMode, $__WRITE_OWNER) - If BitAND($iACL, 4) <> 0 Then $iOpenMode = BitOR($iOpenMode, $__ACCESS_SYSTEM_SECURITY) - - Switch $iType - Case 1 - $iPipeMode = $__PIPE_TYPE_MESSAGE - Case Else - $iPipeMode = $__PIPE_TYPE_BYTE - EndSwitch - - Switch $iRead - Case 1 - $iPipeMode = BitOR($iPipeMode, $__PIPE_READMODE_MESSAGE) - Case Else - $iPipeMode = BitOR($iPipeMode, $__PIPE_READMODE_BYTE) - EndSwitch - - Switch $iWait - Case 1 - $iPipeMode = BitOR($iPipeMode, $__PIPE_NOWAIT) - Case Else - $iPipeMode = BitOR($iPipeMode, $__PIPE_WAIT) - EndSwitch - - Local $aResult = DllCall("kernel32.dll", "handle", "CreateNamedPipeW", "wstr", $sName, "dword", $iOpenMode, "dword", $iPipeMode, "dword", $iMaxInst, _ - "dword", $iOutBufSize, "dword", $iInpBufSize, "dword", $iDefaultTimeout, "struct*", $tSecurity) - If @error Then Return SetError(@error, @extended, -1) - Return $aResult[0] -EndFunc ;==>_NamedPipes_CreateNamedPipe - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _NamedPipes_CreatePipe(ByRef $hReadPipe, ByRef $hWritePipe, $tSecurity = 0, $iSize = 0) - Local $aResult = DllCall("kernel32.dll", "bool", "CreatePipe", "handle*", 0, "handle*", 0, "struct*", $tSecurity, "dword", $iSize) - If @error Then Return SetError(@error, @extended, False) - $hReadPipe = $aResult[1] ; read pipe handle - $hWritePipe = $aResult[2] ; write pipe handle - Return $aResult[0] -EndFunc ;==>_NamedPipes_CreatePipe - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _NamedPipes_DisconnectNamedPipe($hNamedPipe) - Local $aResult = DllCall("kernel32.dll", "bool", "DisconnectNamedPipe", "handle", $hNamedPipe) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_NamedPipes_DisconnectNamedPipe - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _NamedPipes_GetNamedPipeHandleState($hNamedPipe) - Local $aResult = DllCall("kernel32.dll", "bool", "GetNamedPipeHandleStateW", "handle", $hNamedPipe, "dword*", 0, "dword*", 0, _ - "dword*", 0, "dword*", 0, "wstr", "", "dword", 4096) - If @error Then Return SetError(@error, @extended, 0) - Local $aState[6] - $aState[0] = BitAND($aResult[2], $__PIPE_NOWAIT) <> 0 ; State - $aState[1] = BitAND($aResult[2], $__PIPE_READMODE_MESSAGE) <> 0 ; State - $aState[2] = $aResult[3] ; CurInst - $aState[3] = $aResult[4] ; MaxCount - $aState[4] = $aResult[5] ; TimeOut - $aState[5] = $aResult[6] ; Username - Return SetError(0, $aResult[0], $aState) -EndFunc ;==>_NamedPipes_GetNamedPipeHandleState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _NamedPipes_GetNamedPipeInfo($hNamedPipe) - Local $aResult = DllCall("kernel32.dll", "bool", "GetNamedPipeInfo", "handle", $hNamedPipe, "dword*", 0, "dword*", 0, "dword*", 0, _ - "dword*", 0) - If @error Then Return SetError(@error, @extended, 0) - Local $aInfo[5] - $aInfo[0] = BitAND($aResult[2], $__PIPE_SERVER_END) <> 0 ; Flags - $aInfo[1] = BitAND($aResult[2], $__PIPE_TYPE_MESSAGE) <> 0 ; Flags - $aInfo[2] = $aResult[3] ; OutSize - $aInfo[3] = $aResult[4] ; InpSize - $aInfo[4] = $aResult[5] ; MaxInst - Return SetError(0, $aResult[0], $aInfo) -EndFunc ;==>_NamedPipes_GetNamedPipeInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _NamedPipes_PeekNamedPipe($hNamedPipe) - Local $tBuffer = DllStructCreate("char Text[4096]") - - Local $aResult = DllCall("kernel32.dll", "bool", "PeekNamedPipe", "handle", $hNamedPipe, "struct*", $tBuffer, "int", 4096, "dword*", 0, _ - "dword*", 0, "dword*", 0) - If @error Then Return SetError(@error, @extended, 0) - Local $aInfo[4] - $aInfo[0] = DllStructGetData($tBuffer, "Text") - $aInfo[1] = $aResult[4] ; Read - $aInfo[2] = $aResult[5] ; Total - $aInfo[3] = $aResult[6] ; Left - Return SetError(0, $aResult[0], $aInfo) -EndFunc ;==>_NamedPipes_PeekNamedPipe - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _NamedPipes_SetNamedPipeHandleState($hNamedPipe, $iRead, $iWait, $iBytes = 0, $iTimeOut = 0) - Local $iMode = 0, $pBytes = 0, $pTimeOut = 0 - - Local $tInt = DllStructCreate("dword Bytes;dword Timeout") - If $iRead = 1 Then $iMode = BitOR($iMode, $__PIPE_READMODE_MESSAGE) - If $iWait = 1 Then $iMode = BitOR($iMode, $__PIPE_NOWAIT) - - If $iBytes <> 0 Then - $pBytes = DllStructGetPtr($tInt, "Bytes") - DllStructSetData($tInt, "Bytes", $iBytes) - EndIf - - If $iTimeOut <> 0 Then - $pTimeOut = DllStructGetPtr($tInt, "TimeOut") - DllStructSetData($tInt, "TimeOut", $iTimeOut) - EndIf - - Local $aResult = DllCall("kernel32.dll", "bool", "SetNamedPipeHandleState", "handle", $hNamedPipe, "dword*", $iMode, "ptr", $pBytes, "ptr", $pTimeOut) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_NamedPipes_SetNamedPipeHandleState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _NamedPipes_TransactNamedPipe($hNamedPipe, $pInpBuf, $iInpSize, $pOutBuf, $iOutSize, $tOverlapped = 0) - Local $aResult = DllCall("kernel32.dll", "bool", "TransactNamedPipe", "handle", $hNamedPipe, "struct*", $pInpBuf, "dword", $iInpSize, _ - "struct*", $pOutBuf, "dword", $iOutSize, "dword*", 0, "struct*", $tOverlapped) - If @error Then Return SetError(@error, @extended, 0) - Return SetError(0, $aResult[0], $aResult[6]) -EndFunc ;==>_NamedPipes_TransactNamedPipe - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _NamedPipes_WaitNamedPipe($sPipeName, $iTimeOut = 0) - Local $aResult = DllCall("kernel32.dll", "bool", "WaitNamedPipeW", "wstr", $sPipeName, "dword", $iTimeOut) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_NamedPipes_WaitNamedPipe diff --git a/build/Include/NetShare.au3 b/build/Include/NetShare.au3 deleted file mode 100644 index 8522049d3..000000000 --- a/build/Include/NetShare.au3 +++ /dev/null @@ -1,760 +0,0 @@ -#include-once - -#include "StructureConstants.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Network_Share -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Network Share. -; The network share functions control shared resources. A shared resource is a local resource on a server (for -; example, a disk directory, print device, or named pipe) that can be accessed by users and applications on the -; network. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $STYPE_DISKTREE = 0x00000000 -Global Const $STYPE_PRINTQ = 0x00000001 -Global Const $STYPE_DEVICE = 0x00000002 -Global Const $STYPE_IPC = 0x00000003 -Global Const $STYPE_TEMPORARY = 0x40000000 -Global Const $STYPE_SPECIAL = 0x80000000 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _Net_Share_ConnectionEnum -; _Net_Share_FileClose -; _Net_Share_FileEnum -; _Net_Share_FileGetInfo -; _Net_Share_PermStr -; _Net_Share_ResourceStr -; _Net_Share_SessionDel -; _Net_Share_SessionEnum -; _Net_Share_SessionGetInfo -; _Net_Share_ShareAdd -; _Net_Share_ShareCheck -; _Net_Share_ShareDel -; _Net_Share_ShareEnum -; _Net_Share_ShareGetInfo -; _Net_Share_ShareSetInfo -; _Net_Share_StatisticsGetSvr -; _Net_Share_StatisticsGetWrk -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagCONNECTION_INFO_1 -; $tagFILE_INFO_3 -; $tagSESSION_INFO_2 -; $tagSESSION_INFO_502 -; $tagSHARE_INFO_2 -; $tagSTAT_SERVER_0 -; $tagSTAT_WORKSTATION_0 -; __Net_Share_APIBufferFree -; __Str_Set_Char -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagCONNECTION_INFO_1 -; Description ...: tagCONNECTION_INFO_1 structure -; Fields ........: ID - Specifies a connection identification number -; Type - Specifies the type of connection made from the local device name to the shared resource: -; |$STYPE_DISKTREE - Print queue -; |$STYPE_PRINTQ - Disk drive -; |$STYPE_DEVICE - Communication device -; |$STYPE_IPC - IPC -; |$STYPE_SPECIAL - Special share reserved for IPC$ or remote administration of the server -; Opens - Specifies the number of files currently open as a result of the connection -; Users - Specifies the number of users on the connection -; Time - Specifies the number of seconds that the connection has been established -; Username - If the server sharing the resource is running with user-level security, this member describes which -; +user made the connection. If the server is running with share-level security, this member describes which -; +computer made the connection. -; Netname - Specifies either the share name of the server's shared resource or the computername of the client -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagCONNECTION_INFO_1 = "dword ID;dword Type;dword Opens;dword Users;dword Time;ptr Username;ptr NetName" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagFILE_INFO_3 -; Description ...: tagFILE_INFO_3 structure -; Fields ........: ID - The identification number assigned to the resource when it is opened -; Permissions - the access permissions associated with the opening application: -; |$PERM_FILE_READ - Permission to read a resource and, by default, execute the resource -; |$PERM_FILE_WRITE - Permission to write to a resource -; |$PERM_FILE_CREATE - Permission to create a resource -; Locks - Contains the number of file locks on the file, device, or pipe -; Pathname - Specifies the path of the opened resource -; Username - Specifies which user or which computer opened the resource -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagFILE_INFO_3 = "dword ID;dword Permissions;dword Locks;ptr Pathname;ptr Username" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagSESSION_INFO_2 -; Description ...: tagSESSION_INFO_2 structure -; Fields ........: CName - Unicode string specifying the name of the computer that established the session -; Username - Unicode string specifying the name of the user who established the session -; Opens - Specifies the number of files, devices, and pipes opened during the session -; Time - Specifies the number of seconds the session has been active -; Idle - Specifies the number of seconds the session has been idle -; Flags - Specifies a value that describes how the user established the session: -; |$SESS_GUEST - The user established the session using a guest account -; |$SESS_NOENCRYPTION - The user established the session without using password encryption -; TypeName - Unicode string that specifies the type of client that established the session -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagSESSION_INFO_2 = "ptr CName;ptr Username;dword Opens;dword Time;dword Idle;dword Flags;ptr TypeName" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagSESSION_INFO_502 -; Description ...: tagSESSION_INFO_502 structure -; Fields ........: CName - Unicode string specifying the name of the computer that established the session -; Username - Unicode string specifying the name of the user who established the session -; Opens - Specifies the number of files, devices, and pipes opened during the session -; Time - Specifies the number of seconds the session has been active -; Idle - Specifies the number of seconds the session has been idle -; Flags - Specifies a value that describes how the user established the session: -; |$SESS_GUEST - The user established the session using a guest account -; |$SESS_NOENCRYPTION - The user established the session without using password encryption -; TypeName - Unicode string that specifies the type of client that established the session -; Transport - Specifies the name of the transport that the client is using -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagSESSION_INFO_502 = "ptr CName;ptr Username;dword Opens;dword Time;dword Idle;dword Flags;ptr TypeName;ptr Transport" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagSHARE_INFO_2 -; Description ...: tagSHARE_INFO_2 structure -; Fields ........: NetName - Unicode string specifying the share name of a resource -; Type - Contains the type of the shared resource. Can be a combination of: -; |$STYPE_DISKTREE - Print queue -; |$STYPE_PRINTQ - Disk drive -; |$STYPE_DEVICE - Communication device -; |$STYPE_IPC - IPC -; |$STYPE_SPECIAL - Special share reserved for IPC$ or remote administration of the server -; |$STYPE_TEMPORARY - A temporary share -; Remark - Unicode string that contains an optional comment about the shared resource -; Permissions - Indicates the shared resource's permissions: -; |$ACCESS_READ - Permission to read data from a resource and, by default, to execute the resource -; |$ACCESS_WRITE - Permission to write data to the resource -; |$ACCESS_CREATE - Permission to create an instance of the resource -; |$ACCESS_EXEC - Permission to execute the resource -; |$ACCESS_DELETE - Permission to delete the resource -; |$ACCESS_ATRIB - Permission to modify the resource's attributes -; |$ACCESS_PERM - Permission to modify the permissions assigned to a resource -; |$ACCESS_ALL - Permission to read, write, create, execute, and delete resources -; MaxUses - The maximum number of concurrent connections that the shared resource can accommodate -; CurrentUses - Indicates the number of current connections to the resource -; Path - Unicode string specifying the local path for the shared resource -; Password - Unicode string that specifies the share's password -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagSHARE_INFO_2 = "ptr NetName;dword Type;ptr Remark;dword Permissions;dword MaxUses;dword CurrentUses;ptr Path;ptr Password" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagSTAT_SERVER_0 -; Description ...: tagSTAT_SERVER_0 -; Fields ........: Start - Indicates the time when statistics collection started. The value is stored as the number of -; +seconds that have elapsed since 00:00:00, January 1, 1970, GMT. -; FOpens - Indicates the number of times a file is opened on a server -; DevOpens - Indicates the number of times a server device is opened -; JobsQueued - Indicates the number of server print jobs spooled -; SOpens - Indicates the number of times the server session started -; STimeOut - Indicates the number of times the server session automatically disconnected -; SErrorOut - Indicates the number of times the server sessions failed with an error -; PWErrors - Indicates the number of server password violations -; PermErrors - Indicates the number of server access permission errors -; SysErrors - Indicates the number of server system errors -; ByteSent - Number of server bytes sent to the network -; ByteRecv - Number of server bytes received from the network -; AvResponse - Indicates the average server response time (in milliseconds) -; ReqBufNeed - Indicates the number of times the server required a request buffer but failed to allocate one -; BigBufNeed - Indicates the number of times the server required a big buffer but failed to allocate one -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagSTAT_SERVER_0 = "align 4;dword Start;dword FOpens;dword DevOpens;dword JobsQueued;dword SOpens;dword STimedOut;dword SErrorOut;" & _ - "dword PWErrors;dword PermErrors;dword SysErrors;uint64 ByteSent;uint64 ByteRecv;dword AvResponse;dword ReqBufNeed;dword BigBufNeed" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagSTAT_WORKSTATION_0 -; Description ...: tagSTAT_WORKSTATION_0 -; Fields ........: StartTime - Specifies the time statistics collection started. The value is stored as the number of -; +seconds elapsed since 00:00:00, January 1, 1970. -; BytesSent - Specifies the total number of bytes received by the workstation -; SMBSRecv - Specifies the total number of server message blocks (SMBs) received by the workstation -; PageRead - Specifies the total number of bytes that have been read by paging I/O requests -; NonPageRead - Specifies the total number of bytes that have been read by non-paging I/O requests -; CacheRead - Specifies the total number of bytes that have been read by cache I/O requests -; NetRead - Specifies the total amount of bytes that have been read by disk I/O requests -; BytesTran - Specifies the total number of bytes transmitted by the workstation -; SMBSTran - Specifies the total number of SMBs transmitted by the workstation -; PageWrite - Specifies the total number of bytes that have been written by paging I/O requests -; NonPageWrite - Specifies the total number of bytes that have been written by non-paging I/O requests -; CacheWrite - Specifies the total number of bytes that have been written by cache I/O requests -; NetWrite - Specifies the total number of bytes that have been written by disk I/O requests -; InitFailed - Specifies the total number of network operations that failed to begin -; FailedComp - Specifies the total number of network operations that failed to complete -; ReadOp - Specifies the total number of read operations initiated by the workstation -; RandomReadOp - Specifies the total number of random access reads initiated by the workstation -; ReadSMBS - Specifies the total number of read requests the workstation has sent to servers -; LargeReadSMBS - Specifies the total number of read requests the workstation has sent to servers that are -; +greater than twice the size of the server's negotiated buffer size. -; SmallReadSMBS - Specifies the total number of read requests the workstation has sent to servers that are -; +less than 1/4 of the size of the server's negotiated buffer size. -; WriteOp - Specifies the total number of write operations initiated by the workstation -; RandomWriteOp - Specifies the total number of random access writes initiated by the workstation -; WriteSMBS - Specifies the total number of write requests the workstation has sent to servers -; LargeWriteSMBS - Specifies the total number of write requests the workstation has sent to servers that are -; +greater than twice the size of the server's negotiated buffer size. -; SmallWriteSMBS - Specifies the total number of write requests the workstation has sent to servers that are -; +less than 1/4 of the size of the server's negotiated buffer size. -; RawReadsDenied - Specifies the total number of raw read requests made by the workstation that have been -; +denied. -; RawWritesDenied - Specifies the total number of raw write requests made by the workstation that have been -; +denied. -; NetworkErrors - Specifies the total number of network errors received by the workstation -; Sessions - Specifies the total number of workstation sessions that were established -; FailedSessions - Specifies the number of times the workstation attempted to create a session but failed -; Reconnects - Specifies the total number of connections that have failed -; CoreConnects - Specifies the total number of connections to servers supporting the PCNET dialect that -; +have succeeded. -; LM20Connects - Specifies the total number of connections to servers supporting the LanManager 2.0 dialect -; +that have succeeded. -; LM21Connects - Specifies the total number of connections to servers supporting the LanManager 2.1 dialect -; +that have succeeded. -; LMNTConnects - Specifies the total number of connections to servers supporting the Windows NT dialect -; +that have succeeded. -; ServerDisconnects - Specifies the number of times the workstation was disconnected by a network server -; HungSessions - Specifies the total number of sessions that have expired on the workstation -; UseCount - Specifies the total number of network connections established by the workstation -; FailedUseCount - Specifies the total number of failed network connections for the workstation -; CurrentCommands - Specifies the number of current requests that have not been completed -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagSTAT_WORKSTATION_0 = "int64 StartTime;int64 BytesRecv;int64 SMBSRecv;int64 PageRead;int64 NonPageRead;" & _ - "int64 CacheRead;int64 NetRead;int64 BytesTran;int64 SMBSTran;int64 PageWrite;int64 NonPageWrite;int64 CacheWrite;" & _ - "int64 NetWrite;dword InitFailed;dword FailedComp;dword ReadOp;dword RandomReadOp;dword ReadSMBS;dword LargeReadSMBS;" & _ - "dword SmallReadSMBS;dword WriteOp;dword RandomWriteOp;dword WriteSMBS;dword LargeWriteSMBS;dword SmallWriteSMBS;" & _ - "dword RawReadsDenied;dword RawWritesDenied;dword NetworkErrors;dword Sessions;dword FailedSessions;dword Reconnects;" & _ - "dword CoreConnects;dword LM20Connects;dword LM21Connects;dword LMNTConnects;dword ServerDisconnects;dword HungSessions;" & _ - "dword UseCount;dword FailedUseCount;dword CurrentCommands" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Net_Share_APIBufferFree -; Description ...: Frees the memory that network management functions return -; Syntax.........: __Net_Share_APIBufferFree ( $pBuffer ) -; Parameters ....: $pBuffer - Pointer to a buffer returned by another network management function -; Return values .: Success - True -; Failure - False -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally by the NetShare module to free network management buffers -; Related .......: -; Link ..........: @@MsdnLink@@ NetApiBufferFree -; Example .......: -; =============================================================================================================================== -Func __Net_Share_APIBufferFree($pBuffer) - Local $aResult = DllCall("netapi32.dll", "int", "NetApiBufferFree", "ptr", $pBuffer) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>__Net_Share_APIBufferFree - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_ConnectionEnum($sServer, $sQualifier) - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - - Local $aResult = DllCall("netapi32.dll", "int", "NetConnectionEnum", "wstr", $sServer, "wstr", $sQualifier, "dword", 1, _ - "ptr*", 0, "dword", -1, "dword*", 0, "dword*", 0, "ptr", 0) - If @error Then Return SetError(@error, @extended, 0) - - Local $iCount = $aResult[6] - Local $aInfo[$iCount + 1][7] - $aInfo[0][0] = $iCount - If $aResult[0] = 0 Then - Local $pInfo = $aResult[4] - Local $tInfo - For $iI = 1 To $iCount - $tInfo = DllStructCreate($tagCONNECTION_INFO_1, $pInfo) - $aInfo[$iI][0] = DllStructGetData($tInfo, "ID") - $aInfo[$iI][1] = DllStructGetData($tInfo, "Type") - $aInfo[$iI][2] = DllStructGetData($tInfo, "Opens") - $aInfo[$iI][3] = DllStructGetData($tInfo, "Users") - $aInfo[$iI][4] = DllStructGetData($tInfo, "Time") - $aInfo[$iI][5] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "UserName")) - $aInfo[$iI][6] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "NetName")) - $pInfo += DllStructGetSize($tInfo) - Next - EndIf - - __Net_Share_APIBufferFree($aResult[4]) - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_Net_Share_ConnectionEnum - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_FileClose($sServer, $iFileID) - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - - Local $aResult = DllCall("netapi32.dll", "int", "NetFileClose", "wstr", $sServer, "dword", $iFileID) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_Net_Share_FileClose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_FileEnum($sServer = "", $sBaseName = "", $sUserName = "") - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - - Local $aResult = DllCall("netapi32.dll", "int", "NetFileEnum", "wstr", $sServer, "wstr", $sBaseName, "wstr", $sUserName, "dword", 3, _ - "ptr*", 0, "INT", -1, "dword*", 0, "dword*", 0, "ptr", 0) - If @error Then Return SetError(@error, @extended, 0) - - Local $iCount = $aResult[7] - Local $aInfo[$iCount + 1][5] - $aInfo[0][0] = $iCount - If $aResult[0] = 0 Then - Local $pInfo = $aResult[5] - Local $tInfo - For $iI = 1 To $iCount - $tInfo = DllStructCreate($tagFILE_INFO_3, $pInfo) - $aInfo[$iI][0] = DllStructGetData($tInfo, "ID") - $aInfo[$iI][1] = DllStructGetData($tInfo, "Permissions") - $aInfo[$iI][2] = DllStructGetData($tInfo, "Locks") - $aInfo[$iI][3] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "PathName")) - $aInfo[$iI][4] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "UserName")) - $pInfo += DllStructGetSize($tInfo) - Next - EndIf - - __Net_Share_APIBufferFree($aResult[5]) - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_Net_Share_FileEnum - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_FileGetInfo($sServer, $iFileID) - Local $aInfo[5] - - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - - Local $aResult = DllCall("netapi32.dll", "int", "NetFileGetInfo", "wstr", $sServer, "dword", $iFileID, "dword", 3, "ptr*", 0) - If @error Then Return SetError(@error, @extended, 0) - - If $aResult[0] = 0 Then - Local $tInfo - $tInfo = DllStructCreate($tagFILE_INFO_3, $aResult[4]) - $aInfo[0] = DllStructGetData($tInfo, "ID") - $aInfo[1] = DllStructGetData($tInfo, "Permissions") - $aInfo[2] = DllStructGetData($tInfo, "Locks") - $aInfo[3] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "PathName")) - $aInfo[4] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "UserName")) - EndIf - - __Net_Share_APIBufferFree($aResult[4]) - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_Net_Share_FileGetInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost -; =============================================================================================================================== -Func _Net_Share_PermStr($iPerm) - Local $sType = "-------" - If BitAND($iPerm, 1) Then __Str_Set_Char($sType, 1, "R") - If BitAND($iPerm, 2) Then __Str_Set_Char($sType, 2, "W") - If BitAND($iPerm, 4) Then __Str_Set_Char($sType, 3, "C") - If BitAND($iPerm, 8) Then __Str_Set_Char($sType, 4, "E") - If BitAND($iPerm, 16) Then __Str_Set_Char($sType, 5, "D") - If BitAND($iPerm, 32) Then __Str_Set_Char($sType, 6, "A") - If BitAND($iPerm, 64) Then __Str_Set_Char($sType, 7, "P") - Return $sType -EndFunc ;==>_Net_Share_PermStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_ResourceStr($iResource) - Local $sResource = "Unknown" - - Switch BitAND($iResource, BitOR($STYPE_DISKTREE, $STYPE_PRINTQ, $STYPE_DEVICE, $STYPE_IPC)) - Case $STYPE_DISKTREE - $sResource = "Disk drive" - Case $STYPE_PRINTQ - $sResource = "Print queue" - Case $STYPE_DEVICE - $sResource = "Communication" - Case $STYPE_IPC - $sResource = "IPC" - EndSwitch - - Switch BitAND($iResource, BitOR($STYPE_TEMPORARY, $STYPE_SPECIAL)) - Case $STYPE_TEMPORARY - $sResource &= " (Temporary)" - Case $STYPE_SPECIAL - $sResource &= " (Special)" - EndSwitch - Return $sResource -EndFunc ;==>_Net_Share_ResourceStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_SessionDel($sServer = "", $sClientName = "", $sUserName = "") - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - If ($sClientName <> "") And (StringLeft($sClientName, 2) <> "\\") Then $sClientName = "\\" & $sClientName - - Local $aResult = DllCall("netapi32.dll", "int", "NetSessionDel", "wstr", $sServer, "wstr", $sClientName, "wstr", $sUserName) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_Net_Share_SessionDel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_SessionEnum($sServer = "", $sClientName = "", $sUserName = "") - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - If ($sClientName <> "") And StringLeft($sClientName, 2) <> "\\" Then $sClientName = "\\" & $sClientName - - Local $aResult = DllCall("netapi32.dll", "int", "NetSessionEnum", "wstr", $sServer, "wstr", $sClientName, "wstr", $sUserName, _ - "dword", 502, "ptr*", 0, "dword", -1, "dword*", 0, "dword*", 0, "ptr", 0) - If @error Then Return SetError(@error, @extended, 0) - - Local $iCount = $aResult[7] - Local $aInfo[$iCount + 1][8] - $aInfo[0][0] = $iCount - If $aResult[0] = 0 Then - Local $pInfo = $aResult[5] - Local $tInfo - For $iI = 1 To $iCount - $tInfo = DllStructCreate($tagSESSION_INFO_502, $pInfo) - $aInfo[$iI][0] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "CName")) - $aInfo[$iI][1] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "UserName")) - $aInfo[$iI][2] = DllStructGetData($tInfo, "Opens") - $aInfo[$iI][3] = DllStructGetData($tInfo, "Time") - $aInfo[$iI][4] = DllStructGetData($tInfo, "Idle") - $aInfo[$iI][5] = DllStructGetData($tInfo, "Flags") - $aInfo[$iI][6] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "TypeName")) - $aInfo[$iI][7] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "Transport")) - $pInfo += DllStructGetSize($tInfo) - Next - EndIf - - __Net_Share_APIBufferFree($aResult[5]) - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_Net_Share_SessionEnum - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_SessionGetInfo($sServer, $sClientName, $sUserName) - Local $aInfo[8] - - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - If StringLeft($sClientName, 2) <> "\\" Then $sClientName = "\\" & $sClientName - - Local $aResult = DllCall("netapi32.dll", "int", "NetSessionGetInfo", "wstr", $sServer, "wstr", $sClientName, "wstr", $sUserName, _ - "dword", 2, "ptr*", 0) - If @error Then Return SetError(@error, @extended, 0) - - If $aResult[0] = 0 Then - Local $tInfo - $tInfo = DllStructCreate($tagSESSION_INFO_2, $aResult[5]) - $aInfo[0] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "CName")) - $aInfo[1] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "UserName")) - $aInfo[2] = DllStructGetData($tInfo, "Opens") - $aInfo[3] = DllStructGetData($tInfo, "Time") - $aInfo[4] = DllStructGetData($tInfo, "Idle") - $aInfo[5] = DllStructGetData($tInfo, "Flags") - $aInfo[6] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "TypeName")) - EndIf - - __Net_Share_APIBufferFree($aResult[5]) - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_Net_Share_SessionGetInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_ShareAdd($sServer, $sShare, $iType, $sResourcePath, $sComment = "", $iMaxUses = -1) - Local $tData = DllStructCreate("char Share[512];char Path[512];char Comment[512]") - Local $pShare = DllStructGetPtr($tData, "Share") - Local $pPath = DllStructGetPtr($tData, "Path") - - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - _WinAPI_MultiByteToWideCharEx($sShare, DllStructGetPtr($tData, "Share")) - _WinAPI_MultiByteToWideCharEx($sResourcePath, DllStructGetPtr($tData, "Path")) - Local $pComment = 0 - If $sComment <> "" Then - _WinAPI_MultiByteToWideCharEx($sComment, DllStructGetPtr($tData, "Comment")) - $pComment = DllStructGetPtr($tData, "Comment") - EndIf - - Local $tInfo = DllStructCreate($tagSHARE_INFO_2) - DllStructSetData($tInfo, "NetName", $pShare) - DllStructSetData($tInfo, "Type", $iType) - DllStructSetData($tInfo, "Remark", $pComment) - DllStructSetData($tInfo, "Path", $pPath) - DllStructSetData($tInfo, "MaxUses", $iMaxUses) - - Local $aResult = DllCall("netapi32.dll", "int", "NetShareAdd", "wstr", $sServer, "dword", 2, "struct*", $tInfo, "dword*", 0) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_Net_Share_ShareAdd - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_ShareCheck($sServer, $sShare) - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - - Local $aResult = DllCall("netapi32.dll", "int", "NetShareCheck", "wstr", $sServer, "wstr", $sShare, "dword*", 0) - If @error Then Return SetError(@error, @extended, -1) - If $aResult[0] Then Return SetExtended($aResult[0], -1) - Return $aResult[3] -EndFunc ;==>_Net_Share_ShareCheck - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_ShareDel($sServer, $sShare) - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - - Local $aResult = DllCall("netapi32.dll", "int", "NetShareDel", "wstr", $sServer, "wstr", $sShare, "dword", 0) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_Net_Share_ShareDel - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_ShareEnum($sServer = "") - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - - Local $aResult = DllCall("netapi32.dll", "int", "NetShareEnum", "wstr", $sServer, "dword", 2, "ptr*", 0, "dword", -1, _ - "dword*", 0, "dword*", 0, "ptr", 0) - If @error Then Return SetError(@error, @extended, 0) - Local $iCount = $aResult[5] - Local $aInfo[$iCount + 1][8] - $aInfo[0][0] = $iCount - If $aResult[0] = 0 Then - Local $pInfo = $aResult[3] - Local $tInfo - For $iI = 1 To $iCount - $tInfo = DllStructCreate($tagSHARE_INFO_2, $pInfo) - $aInfo[$iI][0] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "NetName")) - $aInfo[$iI][1] = DllStructGetData($tInfo, "Type") - $aInfo[$iI][2] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "Remark")) - $aInfo[$iI][3] = DllStructGetData($tInfo, "Permissions") - $aInfo[$iI][4] = DllStructGetData($tInfo, "MaxUses") - $aInfo[$iI][5] = DllStructGetData($tInfo, "CurrentUses") - $aInfo[$iI][6] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "Path")) - $aInfo[$iI][7] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "Password")) - $pInfo += DllStructGetSize($tInfo) - Next - EndIf - - __Net_Share_APIBufferFree($aResult[3]) - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_Net_Share_ShareEnum - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_ShareGetInfo($sServer, $sShare) - Local $aInfo[8] - - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - - Local $aResult = DllCall("netapi32.dll", "int", "NetShareGetInfo", "wstr", $sServer, "wstr", $sShare, "dword", 2, "ptr*", 0) - If @error Then Return SetError(@error, @extended, 0) - - If $aResult[0] = 0 Then - Local $tInfo - $tInfo = DllStructCreate($tagSHARE_INFO_2, $aResult[4]) - $aInfo[0] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "NetName")) - $aInfo[1] = DllStructGetData($tInfo, "Type") - $aInfo[2] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "Remark")) - $aInfo[3] = DllStructGetData($tInfo, "Permissions") - $aInfo[4] = DllStructGetData($tInfo, "MaxUses") - $aInfo[5] = DllStructGetData($tInfo, "CurrentUses") - $aInfo[6] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "Path")) - $aInfo[7] = _WinAPI_WideCharToMultiByte(DllStructGetData($tInfo, "Password")) - EndIf - - __Net_Share_APIBufferFree($aResult[4]) - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_Net_Share_ShareGetInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_ShareSetInfo($sServer, $sShare, $sComment, $iMaxUses) - Local $tData = DllStructCreate("char Comment[512]") - Local $pComment = DllStructGetPtr($tData, "Comment") - - If $sServer = "" Then $sServer = "127.0.0.1" - If StringLeft($sServer, 2) <> "\\" Then $sServer = "\\" & $sServer - _WinAPI_MultiByteToWideCharEx($sComment, $pComment) - - Local $tInfo = DllStructCreate($tagSHARE_INFO_2) - DllStructSetData($tInfo, "Remark", $pComment) - DllStructSetData($tInfo, "MaxUses", $iMaxUses) - - Local $aResult = DllCall("netapi32.dll", "int", "NetShareSetInfo", "wstr", $sServer, "wstr", $sShare, "dword", 2, "struct*", $tInfo, "ptr", 0) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_Net_Share_ShareSetInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_StatisticsGetSvr($sServer = "") - Local $aStats[15] - - Local $tService = _WinAPI_MultiByteToWideChar("LanmanServer") - - Local $aResult = DllCall("netapi32.dll", "int", "NetStatisticsGet", "wstr", $sServer, "struct*", $tService, "dword", 0, "dword", 0, "ptr*", 0) - If @error Then Return SetError(@error, @extended, 0) - - If $aResult[0] = 0 Then - Local $tStatInfo = DllStructCreate($tagSTAT_SERVER_0, $aResult[5]) - $aStats[0] = DllStructGetData($tStatInfo, "Start") - $aStats[1] = DllStructGetData($tStatInfo, "FOpens") - $aStats[2] = DllStructGetData($tStatInfo, "DevOpens") - $aStats[3] = DllStructGetData($tStatInfo, "JobsQueued") - $aStats[4] = DllStructGetData($tStatInfo, "SOpens") - $aStats[5] = DllStructGetData($tStatInfo, "STimedOut") - $aStats[6] = DllStructGetData($tStatInfo, "SErrorOut") - $aStats[7] = DllStructGetData($tStatInfo, "PWErrors") - $aStats[8] = DllStructGetData($tStatInfo, "PermErrors") - $aStats[9] = DllStructGetData($tStatInfo, "SysErrors") - $aStats[10] = DllStructGetData($tStatInfo, "ByteSent") - $aStats[11] = DllStructGetData($tStatInfo, "ByteRecv") - $aStats[12] = DllStructGetData($tStatInfo, "AvResponse") - $aStats[13] = DllStructGetData($tStatInfo, "ReqBufNeed") - $aStats[14] = DllStructGetData($tStatInfo, "BigBufNeed") - EndIf - - __Net_Share_APIBufferFree($aResult[5]) - Return SetExtended($aResult[0], $aStats) -EndFunc ;==>_Net_Share_StatisticsGetSvr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Net_Share_StatisticsGetWrk($sWorkStation = "") - Local $aStats[40] - - Local $tService = _WinAPI_MultiByteToWideChar("LanmanWorkstation") - - Local $aResult = DllCall("netapi32.dll", "int", "NetStatisticsGet", "wstr", $sWorkStation, "struct*", $tService, "dword", 0, "dword", 0, "ptr*", 0) - If @error Then Return SetError(@error, @extended, 0) - - If $aResult[0] = 0 Then - Local $tStatInfo = DllStructCreate($tagSTAT_WORKSTATION_0, $aResult[5]) - $aStats[0] = DllStructGetData($tStatInfo, "StartTime") - $aStats[1] = DllStructGetData($tStatInfo, "BytesRecv") - $aStats[2] = DllStructGetData($tStatInfo, "SMBSRecv") - $aStats[3] = DllStructGetData($tStatInfo, "PageRead") - $aStats[4] = DllStructGetData($tStatInfo, "NonPageRead") - $aStats[5] = DllStructGetData($tStatInfo, "CacheRead") - $aStats[6] = DllStructGetData($tStatInfo, "NetRead") - $aStats[7] = DllStructGetData($tStatInfo, "BytesTran") - $aStats[8] = DllStructGetData($tStatInfo, "SMBSTran") - $aStats[9] = DllStructGetData($tStatInfo, "PageWrite") - $aStats[10] = DllStructGetData($tStatInfo, "NonPageWrite") - $aStats[11] = DllStructGetData($tStatInfo, "CacheWrite") - $aStats[12] = DllStructGetData($tStatInfo, "NetWrite") - $aStats[13] = DllStructGetData($tStatInfo, "InitFailed") - $aStats[14] = DllStructGetData($tStatInfo, "FailedComp") - $aStats[15] = DllStructGetData($tStatInfo, "ReadOp") - $aStats[16] = DllStructGetData($tStatInfo, "RandomReadOp") - $aStats[17] = DllStructGetData($tStatInfo, "ReadSMBS") - $aStats[18] = DllStructGetData($tStatInfo, "LargeReadSMBS") - $aStats[19] = DllStructGetData($tStatInfo, "SmallReadSMBS") - $aStats[20] = DllStructGetData($tStatInfo, "WriteOp") - $aStats[21] = DllStructGetData($tStatInfo, "RandomWriteOp") - $aStats[22] = DllStructGetData($tStatInfo, "WriteSMBS") - $aStats[23] = DllStructGetData($tStatInfo, "LargeWriteSMBS") - $aStats[24] = DllStructGetData($tStatInfo, "SmallWriteSMBS") - $aStats[25] = DllStructGetData($tStatInfo, "RawReadsDenied") - $aStats[26] = DllStructGetData($tStatInfo, "RawWritesDenied") - $aStats[27] = DllStructGetData($tStatInfo, "NetworkErrors") - $aStats[28] = DllStructGetData($tStatInfo, "Sessions") - $aStats[29] = DllStructGetData($tStatInfo, "FailedSessions") - $aStats[30] = DllStructGetData($tStatInfo, "Reconnects") - $aStats[31] = DllStructGetData($tStatInfo, "CoreConnects") - $aStats[32] = DllStructGetData($tStatInfo, "LM20Connects") - $aStats[33] = DllStructGetData($tStatInfo, "LM21Connects") - $aStats[34] = DllStructGetData($tStatInfo, "LMNTConnects") - $aStats[35] = DllStructGetData($tStatInfo, "ServerDisconnects") - $aStats[36] = DllStructGetData($tStatInfo, "HungSessions") - $aStats[37] = DllStructGetData($tStatInfo, "UseCount") - $aStats[38] = DllStructGetData($tStatInfo, "FailedUseCount") - $aStats[39] = DllStructGetData($tStatInfo, "CurrentCommands") - EndIf - - __Net_Share_APIBufferFree($aResult[5]) - Return SetExtended($aResult[0], $aStats) -EndFunc ;==>_Net_Share_StatisticsGetWrk - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Str_Set_Char -; Description ...: Sets a specified character in a string -; Syntax.........: __Str_Set_Char ( ByRef $sText, $iIndex, $sChar ) -; Parameters ....: $sText - Text to be changed -; $iIndex - Character position in string -; $sChar - Character to replace -; Return values .: -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Str_Set_Char(ByRef $sText, $iIndex, $sChar) - $sText = StringLeft($sText, $iIndex - 1) & $sChar & StringMid($sText, $iIndex + StringLen($sChar)) -EndFunc ;==>__Str_Set_Char diff --git a/build/Include/Process.au3 b/build/Include/Process.au3 deleted file mode 100644 index 5cb019d14..000000000 --- a/build/Include/Process.au3 +++ /dev/null @@ -1,94 +0,0 @@ -#include-once - -#include "ProcessConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Process -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Process management. -; Author(s) .....: Erifash, Wouter, Matthew Tucker, Jeremy Landes, Valik -; Dll ...........: kernel32.dll -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _ProcessGetName -; _ProcessGetPriority -; _RunDOS -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Erifash , Wouter van Kesteren. guinness - Removed ProcessExists for speed. -; =============================================================================================================================== -Func _ProcessGetName($iPID) - Local $aProcessList = ProcessList() - If Not @error Then - For $i = 1 To $aProcessList[0][0] - If $aProcessList[$i][1] = $iPID Then - Return $aProcessList[$i][0] - EndIf - Next - EndIf - Return SetError(1, 0, "") -EndFunc ;==>_ProcessGetName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Matthew Tucker -; =============================================================================================================================== -Func _ProcessGetPriority($vProcess) - Local $iError = 0, $iExtended = 0, $iReturn = -1 - Local $iPID = ProcessExists($vProcess) - If Not $iPID Then Return SetError(1, 0, -1) - Local $hDLL = DllOpen('kernel32.dll') - - Do ; Pseudo loop - Local $aProcessHandle = DllCall($hDLL, 'handle', 'OpenProcess', 'dword', $PROCESS_QUERY_INFORMATION, 'bool', False, 'dword', $iPID) - If @error Then - $iError = @error + 10 - $iExtended = @extended - ExitLoop - EndIf - If Not $aProcessHandle[0] Then ExitLoop - - Local $aPriority = DllCall($hDLL, 'dword', 'GetPriorityClass', 'handle', $aProcessHandle[0]) - If @error Then - $iError = @error - $iExtended = @extended - ; Fall-through so the handle is closed. - EndIf - - DllCall($hDLL, 'bool', 'CloseHandle', 'handle', $aProcessHandle[0]) - ; No need to test @error. - - If $iError Then ExitLoop - - Switch $aPriority[0] - Case 0x00000040 ; IDLE_PRIORITY_CLASS - $iReturn = 0 - Case 0x00004000 ; BELOW_NORMAL_PRIORITY_CLASS - $iReturn = 1 - Case 0x00000020 ; NORMAL_PRIORITY_CLASS - $iReturn = 2 - Case 0x00008000 ; ABOVE_NORMAL_PRIORITY_CLASS - $iReturn = 3 - Case 0x00000080 ; HIGH_PRIORITY_CLASS - $iReturn = 4 - Case 0x00000100 ; REALTIME_PRIORITY_CLASS - $iReturn = 5 - Case Else - $iError = 1 - $iExtended = $aPriority[0] - $iReturn = -1 - EndSwitch - Until True ; Executes once - DllClose($hDLL) - Return SetError($iError, $iExtended, $iReturn) -EndFunc ;==>_ProcessGetPriority - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jeremy Landes -; =============================================================================================================================== -Func _RunDos($sCommand) - Local $nResult = RunWait(@ComSpec & " /C " & $sCommand, "", @SW_HIDE) - Return SetError(@error, @extended, $nResult) -EndFunc ;==>_RunDos diff --git a/build/Include/ProcessConstants.au3 b/build/Include/ProcessConstants.au3 deleted file mode 100644 index cb0fcf4f5..000000000 --- a/build/Include/ProcessConstants.au3 +++ /dev/null @@ -1,26 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Process_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script when using Process functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $PROCESS_TERMINATE = 0x00000001 -Global Const $PROCESS_CREATE_THREAD = 0x00000002 -Global Const $PROCESS_SET_SESSIONID = 0x00000004 -Global Const $PROCESS_VM_OPERATION = 0x00000008 -Global Const $PROCESS_VM_READ = 0x00000010 -Global Const $PROCESS_VM_WRITE = 0x00000020 -Global Const $PROCESS_DUP_HANDLE = 0x00000040 -Global Const $PROCESS_CREATE_PROCESS = 0x00000080 -Global Const $PROCESS_SET_QUOTA = 0x00000100 -Global Const $PROCESS_SET_INFORMATION = 0x00000200 -Global Const $PROCESS_QUERY_INFORMATION = 0x00000400 -Global Const $PROCESS_QUERY_LIMITED_INFORMATION = 0x1000 -Global Const $PROCESS_SUSPEND_RESUME = 0x00000800 -Global Const $PROCESS_ALL_ACCESS = 0x001F0FFF -; =============================================================================================================================== diff --git a/build/Include/ProgressConstants.au3 b/build/Include/ProgressConstants.au3 deleted file mode 100644 index 668c9b836..000000000 --- a/build/Include/ProgressConstants.au3 +++ /dev/null @@ -1,39 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Progress_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control Progress styles and much more constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANT# ====================================================================================================================== -; Styles -Global Const $PBS_MARQUEE = 0x00000008 ; The progress bar moves like a marquee -Global Const $PBS_SMOOTH = 1 -Global Const $PBS_SMOOTHREVERSE = 0x10 ; Vista -Global Const $PBS_VERTICAL = 4 - -; Control default styles -Global Const $GUI_SS_DEFAULT_PROGRESS = 0 - -; Messages -Global Const $__PROGRESSBARCONSTANT_WM_USER = 0X400 -Global Const $PBM_DELTAPOS = $__PROGRESSBARCONSTANT_WM_USER + 3 -Global Const $PBM_GETBARCOLOR = 0x040F ; Vista -Global Const $PBM_GETBKCOLOR = 0x040E ; Vista -Global Const $PBM_GETPOS = $__PROGRESSBARCONSTANT_WM_USER + 8 -Global Const $PBM_GETRANGE = $__PROGRESSBARCONSTANT_WM_USER + 7 -Global Const $PBM_GETSTATE = 0x0411 ; Vista -Global Const $PBM_GETSTEP = 0x040D ; Vista -Global Const $PBM_SETBARCOLOR = $__PROGRESSBARCONSTANT_WM_USER + 9 -Global Const $PBM_SETBKCOLOR = 0x2000 + 1 -Global Const $PBM_SETMARQUEE = $__PROGRESSBARCONSTANT_WM_USER + 10 -Global Const $PBM_SETPOS = $__PROGRESSBARCONSTANT_WM_USER + 2 -Global Const $PBM_SETRANGE = $__PROGRESSBARCONSTANT_WM_USER + 1 -Global Const $PBM_SETRANGE32 = $__PROGRESSBARCONSTANT_WM_USER + 6 -Global Const $PBM_SETSTATE = 0x0410 ; Vista -Global Const $PBM_SETSTEP = $__PROGRESSBARCONSTANT_WM_USER + 4 -Global Const $PBM_STEPIT = $__PROGRESSBARCONSTANT_WM_USER + 5 -; =============================================================================================================================== diff --git a/build/Include/RebarConstants.au3 b/build/Include/RebarConstants.au3 deleted file mode 100644 index 03d69b04c..000000000 --- a/build/Include/RebarConstants.au3 +++ /dev/null @@ -1,125 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Rebar_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for Rebar functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Messages -Global Const $__REBARCONSTANT_WM_USER = 0X400 -Global Const $RB_BEGINDRAG = ($__REBARCONSTANT_WM_USER + 24) -Global Const $RB_DELETEBAND = ($__REBARCONSTANT_WM_USER + 2) -Global Const $RB_DRAGMOVE = ($__REBARCONSTANT_WM_USER + 26) -Global Const $RB_ENDDRAG = ($__REBARCONSTANT_WM_USER + 25) -Global Const $RB_GETBANDBORDERS = ($__REBARCONSTANT_WM_USER + 34) -Global Const $RB_GETBANDCOUNT = ($__REBARCONSTANT_WM_USER + 12) -Global Const $RB_GETBANDINFO = ($__REBARCONSTANT_WM_USER + 5) -Global Const $RB_GETBANDINFOA = ($__REBARCONSTANT_WM_USER + 29) -Global Const $RB_GETBANDINFOW = ($__REBARCONSTANT_WM_USER + 28) -Global Const $RB_GETBANDMARGINS = ($__REBARCONSTANT_WM_USER + 40) -Global Const $RB_GETBARHEIGHT = ($__REBARCONSTANT_WM_USER + 27) -Global Const $RB_GETBARINFO = ($__REBARCONSTANT_WM_USER + 3) -Global Const $RB_GETBKCOLOR = ($__REBARCONSTANT_WM_USER + 20) -Global Const $RB_GETCOLORSCHEME = 0x2000 + 3 -Global Const $RB_GETDROPTARGET = (0x2000 + 4) -Global Const $RB_GETPALETTE = ($__REBARCONSTANT_WM_USER + 38) -Global Const $RB_GETRECT = ($__REBARCONSTANT_WM_USER + 9) -Global Const $RB_GETROWCOUNT = ($__REBARCONSTANT_WM_USER + 13) -Global Const $RB_GETROWHEIGHT = ($__REBARCONSTANT_WM_USER + 14) -Global Const $RB_GETTEXTCOLOR = ($__REBARCONSTANT_WM_USER + 22) -Global Const $RB_GETTOOLTIPS = ($__REBARCONSTANT_WM_USER + 17) -Global Const $RB_GETUNICODEFORMAT = 0x2000 + 6 -Global Const $RB_HITTEST = ($__REBARCONSTANT_WM_USER + 8) -Global Const $RB_IDTOINDEX = ($__REBARCONSTANT_WM_USER + 16) -Global Const $RB_INSERTBANDA = ($__REBARCONSTANT_WM_USER + 1) -Global Const $RB_INSERTBANDW = ($__REBARCONSTANT_WM_USER + 10) -Global Const $RB_MAXIMIZEBAND = ($__REBARCONSTANT_WM_USER + 31) -Global Const $RB_MINIMIZEBAND = ($__REBARCONSTANT_WM_USER + 30) -Global Const $RB_MOVEBAND = ($__REBARCONSTANT_WM_USER + 39) -Global Const $RB_PUSHCHEVRON = ($__REBARCONSTANT_WM_USER + 43) -Global Const $RB_SETBANDINFOA = ($__REBARCONSTANT_WM_USER + 6) -Global Const $RB_SETBANDINFOW = ($__REBARCONSTANT_WM_USER + 11) -Global Const $RB_SETBARINFO = ($__REBARCONSTANT_WM_USER + 4) -Global Const $RB_SETBKCOLOR = ($__REBARCONSTANT_WM_USER + 19) -Global Const $RB_SETCOLORSCHEME = 0x2000 + 2 -Global Const $RB_SETPALETTE = ($__REBARCONSTANT_WM_USER + 37) -Global Const $RB_SETPARENT = ($__REBARCONSTANT_WM_USER + 7) -Global Const $RB_SETTEXTCOLOR = ($__REBARCONSTANT_WM_USER + 21) -Global Const $RB_SETTOOLTIPS = ($__REBARCONSTANT_WM_USER + 18) -Global Const $RB_SETUNICODEFORMAT = 0x2000 + 5 -Global Const $RB_SETWINDOWTHEME = 0x2000 + 11 -Global Const $RB_SHOWBAND = ($__REBARCONSTANT_WM_USER + 35) -Global Const $RB_SIZETORECT = ($__REBARCONSTANT_WM_USER + 23) - -; Notifications -Global Const $RBN_FIRST = (-831) -Global Const $RBN_AUTOBREAK = ($RBN_FIRST - 22) -Global Const $RBN_AUTOSIZE = ($RBN_FIRST - 3) -Global Const $RBN_BEGINDRAG = ($RBN_FIRST - 4) -Global Const $RBN_CHEVRONPUSHED = ($RBN_FIRST - 10) -Global Const $RBN_CHILDSIZE = ($RBN_FIRST - 8) -Global Const $RBN_DELETEDBAND = ($RBN_FIRST - 7) -Global Const $RBN_DELETINGBAND = ($RBN_FIRST - 6) -Global Const $RBN_ENDDRAG = ($RBN_FIRST - 5) -Global Const $RBN_GETOBJECT = ($RBN_FIRST - 1) -Global Const $RBN_HEIGHTCHANGE = ($RBN_FIRST - 0) -Global Const $RBN_LAYOUTCHANGED = ($RBN_FIRST - 2) -Global Const $RBN_MINMAX = ($RBN_FIRST - 21) - -; Styles -Global Const $RBS_AUTOSIZE = 0x2000 -Global Const $RBS_BANDBORDERS = 0X400 -Global Const $RBS_DBLCLKTOGGLE = 0x8000 -Global Const $RBS_FIXEDORDER = 0x800 -Global Const $RBS_REGISTERDROP = 0x1000 -Global Const $RBS_TOOLTIPS = 0x100 -Global Const $RBS_VARHEIGHT = 0X200 -Global Const $RBS_VERTICALGRIPPER = 0x4000 - -; $tagREBARBANDINFO constants for fmask -Global Const $RBBIM_STYLE = 0x1 -Global Const $RBBIM_COLORS = 0x2 -Global Const $RBBIM_TEXT = 0x4 -Global Const $RBBIM_IMAGE = 0x8 -Global Const $RBBIM_CHILD = 0x10 -Global Const $RBBIM_CHILDSIZE = 0x20 -Global Const $RBBIM_SIZE = 0x40 -Global Const $RBBIM_BACKGROUND = 0x80 -Global Const $RBBIM_ID = 0x100 -Global Const $RBBIM_IDEALSIZE = 0x200 -Global Const $RBBIM_LPARAM = 0x400 -Global Const $RBBIM_HEADERSIZE = 0x800 - -; $tagREBARINFO constants for fmask -Global Const $RBIM_IMAGELIST = 0x1 - -; $tagREBARBANDINFO constants for fstyle -Global Const $RBBS_BREAK = 0x1 ; The band is on a new line -Global Const $RBBS_CHILDEDGE = 0x4 ; The band has an edge at the top and bottom of the child window -Global Const $RBBS_FIXEDBMP = 0x20 ; The background bitmap does not move when the band is resized -Global Const $RBBS_FIXEDSIZE = 0x2 ; The band can't be sized. With this style, the sizing grip is not displayed on the band -Global Const $RBBS_GRIPPERALWAYS = 0x80 ; The band will always have a sizing grip, even if it is the only band in the rebar -Global Const $RBBS_HIDDEN = 0x8 ; The band will not be visible -Global Const $RBBS_HIDETITLE = 0x400 ; Keep band title hidden -Global Const $RBBS_NOGRIPPER = 0x100 ; The band will never have a sizing grip, even if there is more than one band in the rebar -Global Const $RBBS_NOVERT = 0x10 ; Don't show when vertical -Global Const $RBBS_TOPALIGN = 0x800 ; Keep band in top row -Global Const $RBBS_USECHEVRON = 0x200 ; Display drop-down button -Global Const $RBBS_VARIABLEHEIGHT = 0x40 ; The band can be resized by the rebar control; cyIntegral and cyMaxChild affect how the rebar will resize the band - -; $tagRBHITTESTINFO constants for flags -Global Const $RBHT_CAPTION = 0x2 -Global Const $RBHT_CHEVRON = 0x8 -Global Const $RBHT_CLIENT = 0x3 -Global Const $RBHT_GRABBER = 0x4 -Global Const $RBHT_NOWHERE = 0x1 - -; $tagNMREBAR constants for dwMask -Global Const $RBNM_ID = 0x1 -Global Const $RBNM_LPARAM = 0x4 -Global Const $RBNM_STYLE = 0x2 -; =============================================================================================================================== diff --git a/build/Include/RichEditConstants.au3 b/build/Include/RichEditConstants.au3 deleted file mode 100644 index a83cd8750..000000000 --- a/build/Include/RichEditConstants.au3 +++ /dev/null @@ -1,322 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: RichEdit_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control Edit/Input styles and much more constants. -; Author(s) .....: Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Messages -Global Const $__RICHEDITCONSTANT_WM_USER = 0x400 -Global Const $EM_AUTOURLDETECT = $__RICHEDITCONSTANT_WM_USER + 91 -Global Const $EM_CANPASTE = $__RICHEDITCONSTANT_WM_USER + 50 -Global Const $EM_CANREDO = $__RICHEDITCONSTANT_WM_USER + 85 -Global Const $EM_DISPLAYBAND = $__RICHEDITCONSTANT_WM_USER + 51 -Global Const $EM_EXGETSEL = $__RICHEDITCONSTANT_WM_USER + 52 -Global Const $EM_EXLIMITTEXT = $__RICHEDITCONSTANT_WM_USER + 53 -Global Const $EM_EXLINEFROMCHAR = $__RICHEDITCONSTANT_WM_USER + 54 -Global Const $EM_EXSETSEL = $__RICHEDITCONSTANT_WM_USER + 55 -Global Const $EM_FINDTEXT = $__RICHEDITCONSTANT_WM_USER + 56 -Global Const $EM_FINDTEXTEX = $__RICHEDITCONSTANT_WM_USER + 79 -Global Const $EM_FINDTEXTEXW = $__RICHEDITCONSTANT_WM_USER + 124 -Global Const $EM_FINDTEXTW = $__RICHEDITCONSTANT_WM_USER + 123 -Global Const $EM_FINDWORDBREAK = $__RICHEDITCONSTANT_WM_USER + 76 -Global Const $EM_FORMATRANGE = $__RICHEDITCONSTANT_WM_USER + 57 -Global Const $EM_GETAUTOURLDETECT = $__RICHEDITCONSTANT_WM_USER + 92 -Global Const $EM_GETBIDIOPTIONS = $__RICHEDITCONSTANT_WM_USER + 201 -Global Const $EM_GETCHARFORMAT = $__RICHEDITCONSTANT_WM_USER + 58 -Global Const $EM_GETEDITSTYLE = $__RICHEDITCONSTANT_WM_USER + 205 -Global Const $EM_GETEVENTMASK = $__RICHEDITCONSTANT_WM_USER + 59 -Global Const $EM_GETIMECOLOR = $__RICHEDITCONSTANT_WM_USER + 105 -Global Const $EM_GETIMECOMPMODE = $__RICHEDITCONSTANT_WM_USER + 122 -Global Const $EM_GETIMEMODEBIAS = $__RICHEDITCONSTANT_WM_USER + 127 -Global Const $EM_GETIMEOPTIONS = $__RICHEDITCONSTANT_WM_USER + 107 -Global Const $EM_GETLANGOPTIONS = $__RICHEDITCONSTANT_WM_USER + 121 -Global Const $EM_GETOPTIONS = $__RICHEDITCONSTANT_WM_USER + 78 -Global Const $EM_GETPARAFORMAT = $__RICHEDITCONSTANT_WM_USER + 61 -Global Const $EM_GETPUNCTUATION = $__RICHEDITCONSTANT_WM_USER + 101 -Global Const $EM_GETREDONAME = $__RICHEDITCONSTANT_WM_USER + 87 -Global Const $EM_GETSCROLLPOS = $__RICHEDITCONSTANT_WM_USER + 221 -Global Const $EM_GETSELTEXT = $__RICHEDITCONSTANT_WM_USER + 62 -Global Const $EM_GETTEXTEX = $__RICHEDITCONSTANT_WM_USER + 94 -Global Const $EM_GETTEXTLENGTHEX = $__RICHEDITCONSTANT_WM_USER + 95 -Global Const $EM_GETTEXTMODE = $__RICHEDITCONSTANT_WM_USER + 90 -Global Const $EM_GETTEXTRANGE = $__RICHEDITCONSTANT_WM_USER + 75 -Global Const $EM_GETTYPOGRAPHYOPTIONS = $__RICHEDITCONSTANT_WM_USER + 203 -Global Const $EM_GETUNDONAME = $__RICHEDITCONSTANT_WM_USER + 86 -Global Const $EM_GETWORDBREAKPROCEX = $__RICHEDITCONSTANT_WM_USER + 80 -Global Const $EM_GETWORDWRAPMODE = $__RICHEDITCONSTANT_WM_USER + 103 -Global Const $EM_GETZOOM = $__RICHEDITCONSTANT_WM_USER + 224 -Global Const $EM_HIDESELECTION = $__RICHEDITCONSTANT_WM_USER + 63 -Global Const $EM_PASTESPECIAL = $__RICHEDITCONSTANT_WM_USER + 64 -Global Const $EM_RECONVERSION = $__RICHEDITCONSTANT_WM_USER + 125 -Global Const $EM_REDO = $__RICHEDITCONSTANT_WM_USER + 84 -Global Const $EM_REQUESTRESIZE = $__RICHEDITCONSTANT_WM_USER + 65 -Global Const $EM_SELECTIONTYPE = $__RICHEDITCONSTANT_WM_USER + 66 -Global Const $EM_SETBIDIOPTIONS = $__RICHEDITCONSTANT_WM_USER + 200 -Global Const $EM_SETBKGNDCOLOR = $__RICHEDITCONSTANT_WM_USER + 67 -Global Const $EM_SETCHARFORMAT = $__RICHEDITCONSTANT_WM_USER + 68 -Global Const $EM_SETEDITSTYLE = $__RICHEDITCONSTANT_WM_USER + 204 -Global Const $EM_SETEVENTMASK = $__RICHEDITCONSTANT_WM_USER + 69 -Global Const $EM_SETFONTSIZE = $__RICHEDITCONSTANT_WM_USER + 223 -Global Const $EM_SETIMECOLOR = $__RICHEDITCONSTANT_WM_USER + 104 -Global Const $EM_SETIMEMODEBIAS = $__RICHEDITCONSTANT_WM_USER + 126 -Global Const $EM_SETIMEOPTIONS = $__RICHEDITCONSTANT_WM_USER + 106 -Global Const $EM_SETLANGOPTIONS = $__RICHEDITCONSTANT_WM_USER + 120 -Global Const $EM_SETOLECALLBACK = $__RICHEDITCONSTANT_WM_USER + 70 -Global Const $EM_SETOPTIONS = $__RICHEDITCONSTANT_WM_USER + 77 -Global Const $EM_SETPALETTE = $__RICHEDITCONSTANT_WM_USER + 93 -Global Const $EM_SETPARAFORMAT = $__RICHEDITCONSTANT_WM_USER + 71 -Global Const $EM_SETPUNCTUATION = $__RICHEDITCONSTANT_WM_USER + 100 -Global Const $EM_SETSCROLLPOS = $__RICHEDITCONSTANT_WM_USER + 222 -Global Const $EM_SETTARGETDEVICE = $__RICHEDITCONSTANT_WM_USER + 72 -Global Const $EM_SETTEXTEX = $__RICHEDITCONSTANT_WM_USER + 97 -Global Const $EM_SETTEXTMODE = $__RICHEDITCONSTANT_WM_USER + 89 -Global Const $EM_SETTYPOGRAPHYOPTIONS = $__RICHEDITCONSTANT_WM_USER + 202 -Global Const $EM_SETUNDOLIMIT = $__RICHEDITCONSTANT_WM_USER + 82 -Global Const $EM_SETWORDBREAKPROCEX = $__RICHEDITCONSTANT_WM_USER + 81 -Global Const $EM_SETWORDWRAPMODE = $__RICHEDITCONSTANT_WM_USER + 102 -Global Const $EM_SETZOOM = $__RICHEDITCONSTANT_WM_USER + 225 -Global Const $EM_SHOWSCROLLBAR = $__RICHEDITCONSTANT_WM_USER + 96 -Global Const $EM_STOPGROUPTYPING = $__RICHEDITCONSTANT_WM_USER + 88 -Global Const $EM_STREAMIN = $__RICHEDITCONSTANT_WM_USER + 73 -Global Const $EM_STREAMOUT = $__RICHEDITCONSTANT_WM_USER + 74 - -; Notifications -Global Const $EN_ALIGNLTR = 0X710 -Global Const $EN_ALIGNRTL = 0X711 -Global Const $EN_CORRECTTEXT = 0X705 -Global Const $EN_DRAGDROPDONE = 0X70c -Global Const $EN_DROPFILES = 0X703 -Global Const $EN_IMECHANGE = 0X707 -Global Const $EN_LINK = 0X70b -Global Const $EN_MSGFILTER = 0X700 -Global Const $EN_OBJECTPOSITIONS = 0X70a -Global Const $EN_OLEOPFAILED = 0X709 -Global Const $EN_PROTECTED = 0X704 -Global Const $EN_REQUESTRESIZE = 0X701 -Global Const $EN_SAVECLIPBOARD = 0X708 -Global Const $EN_SELCHANGE = 0X702 -Global Const $EN_STOPNOUNDO = 0X706 - -; Event Mask Flags -Global Const $ENM_CHANGE = 0x1 -Global Const $ENM_CORRECTTEXT = 0x400000 -Global Const $ENM_DRAGDROPDONE = 0x10 -Global Const $ENM_DROPFILES = 0x100000 -Global Const $ENM_IMECHANGE = 0x800000 -Global Const $ENM_KEYEVENTS = 0x10000 -Global Const $ENM_LINK = 0x4000000 -Global Const $ENM_MOUSEEVENTS = 0x20000 -Global Const $ENM_OBJECTPOSITIONS = 0x2000000 -Global Const $ENM_PROTECTED = 0x200000 -Global Const $ENM_REQUESTRESIZE = 0x40000 -Global Const $ENM_SCROLL = 0x4 -Global Const $ENM_SCROLLEVENTS = 0x8 -Global Const $ENM_SELCHANGE = 0x80000 -Global Const $ENM_UPDATE = 0x2 - -; wMask flags for $tagBIDIOPTIONS -Global Const $BOM_DEFPARADIR = 0x1 -Global Const $BOM_PLAINTEXT = 0x2 -Global Const $BOM_NEUTRALOVERRIDE = 0x4 -Global Const $BOM_CONTEXTREADING = 0x8 -Global Const $BOM_CONTEXTALIGNMENT = 0x10 -Global Const $BOM_LEGACYBIDICLASS = 0x0040 - -; wEffects flags for $tagBIDIOPTIONS -Global Const $BOE_RTLDIR = 0x1 -Global Const $BOE_PLAINTEXT = 0x2 -Global Const $BOE_NEUTRALOVERRIDE = 0x4 -Global Const $BOE_CONTEXTREADING = 0x8 -Global Const $BOE_CONTEXTALIGNMENT = 0x10 -Global Const $BOE_LEGACYBIDICLASS = 0x0040 - -Global Const $ST_DEFAULT = 0 -Global Const $ST_KEEPUNDO = 1 -Global Const $ST_SELECTION = 2 - -Global Const $GT_DEFAULT = 0 -Global Const $GT_SELECTION = 2 -Global Const $GT_USECRLF = 1 - -Global Const $GTL_CLOSE = 4 -Global Const $GTL_DEFAULT = 0 -Global Const $GTL_NUMBYTES = 16 -Global Const $GTL_NUMCHARS = 8 -Global Const $GTL_PRECISE = 2 -Global Const $GTL_USECRLF = 1 - -Global Const $CFU_UNDERLINENONE = 0 -Global Const $CFU_UNDERLINE = 1 -Global Const $CFU_UNDERLINEWORD = 2 -Global Const $CFU_UNDERLINEDOUBLE = 3 -Global Const $CFU_UNDERLINEDOTTED = 4 -; code pages -Global Const $CP_ACP = 0 ; use system default -Global Const $CP_UNICODE = 1200 - -Global Const $CFE_SUBSCRIPT = 0x00010000 -Global Const $CFE_SUPERSCRIPT = 0x00020000 - -Global Const $CFM_ALLCAPS = 0x80 -Global Const $CFM_ANIMATION = 0x40000 -Global Const $CFM_BACKCOLOR = 0x4000000 -Global Const $CFM_BOLD = 0x1 -Global Const $CFM_CHARSET = 0x8000000 -Global Const $CFM_COLOR = 0x40000000 -Global Const $CFM_DISABLED = 0x2000 -Global Const $CFM_EMBOSS = 0x800 -Global Const $CFM_FACE = 0x20000000 -Global Const $CFM_HIDDEN = 0x100 -Global Const $CFM_IMPRINT = 0x1000 -Global Const $CFM_ITALIC = 0x2 -Global Const $CFM_KERNING = 0x100000 -Global Const $CFM_LCID = 0x2000000 -Global Const $CFM_LINK = 0x20 -Global Const $CFM_OFFSET = 0x10000000 -Global Const $CFM_OUTLINE = 0x200 -Global Const $CFM_PROTECTED = 0x10 -Global Const $CFM_REVAUTHOR = 0x8000 -Global Const $CFM_REVISED = 0x4000 -Global Const $CFM_SHADOW = 0x400 -Global Const $CFM_SIZE = 0x80000000 -Global Const $CFM_SMALLCAPS = 0x40 -Global Const $CFM_SPACING = 0x200000 -Global Const $CFM_STRIKEOUT = 0x8 -Global Const $CFM_STYLE = 0x80000 -Global Const $CFM_SUBSCRIPT = BitOR($CFE_SUBSCRIPT, $CFE_SUPERSCRIPT) -Global Const $CFM_SUPERSCRIPT = $CFM_SUBSCRIPT -Global Const $CFM_UNDERLINE = 0x4 -Global Const $CFM_UNDERLINETYPE = 0x800000 -Global Const $CFM_WEIGHT = 0x400000 - -Global Const $CFE_ALLCAPS = $CFM_ALLCAPS -Global Const $CFE_AUTOBACKCOLOR = $CFM_BACKCOLOR -Global Const $CFE_AUTOCOLOR = $CFM_COLOR -Global Const $CFE_BOLD = $CFM_BOLD -Global Const $CFE_DISABLED = $CFM_DISABLED -Global Const $CFE_EMBOSS = $CFM_EMBOSS -Global Const $CFE_HIDDEN = $CFM_HIDDEN -Global Const $CFE_IMPRINT = $CFM_IMPRINT -Global Const $CFE_ITALIC = $CFM_ITALIC -Global Const $CFE_LINK = $CFM_LINK -Global Const $CFE_OUTLINE = $CFM_OUTLINE -Global Const $CFE_PROTECTED = $CFM_PROTECTED -Global Const $CFE_REVISED = $CFM_REVISED -Global Const $CFE_SHADOW = $CFM_SHADOW -Global Const $CFE_SMALLCAPS = $CFM_SMALLCAPS -Global Const $CFE_STRIKEOUT = $CFM_STRIKEOUT -Global Const $CFE_UNDERLINE = $CFM_UNDERLINE - -; Global Const $FR_DOWN = 0x1 -Global Const $FR_MATCHALEFHAMZA = 0x80000000 -; Global Const $FR_MATCHCASE = 0x4 -Global Const $FR_MATCHDIAC = 0x20000000 -Global Const $FR_MATCHKASHIDA = 0x40000000 - -; Global Const $FR_MATCHWHOLEWORD = 0x00000002 -; Global Const $FR_WHOLEWORD = $FR_MATCHWHOLEWORD -; Global Const $FR_FINDNEXT = 0x00000008 -; Global Const $FR_REPLACE = 0x00000010 -; Global Const $FR_REPLACEALL = 0x00000020 -; Global Const $FR_DIALOGTERM = 0x00000040 -; Global Const $FR_SHOWHELP = 0x00000080 -; Global Const $FR_ENABLEHOOK = 0x00000100 -; Global Const $FR_ENABLETEMPLATE = 0x00000200 -; Global Const $FR_DISABLEUPDOWN = 0x00000400 -; Global Const $FR_DISABLEMATCHCASE = 0x00000800 -; Global Const $FR_DISABLEWHOLEWORD = 0x00001000 -; Global Const $FR_ENABLETEMPLATEHANDLE = 0x00002000 -; Global Const $FR_HIDEUPDOWN = 0x00004000 -; Global Const $FR_HIDEMATCHCASE = 0x00008000 -; Global Const $FR_HIDEWHOLEWORD = 0x00010000 - -Global Const $SCF_DEFAULT = 0x0 -Global Const $SCF_SELECTION = 0x1 -Global Const $SCF_WORD = 0x2 -Global Const $SCF_ALL = 0x4 -Global Const $SCF_USEUIRULES = 0x8 -Global Const $SCF_ASSOCIATEFONT = 0x10 -Global Const $SCF_NOKBUPDATE = 0x20 -; Global Enum $UID_UNKNOWN = 0, _ -; $UID_TYPING = 1, _ -; $UID_DELETE = 2, _ -; $UID_DRAGDROP = 3, _ -; $UID_CUT = 4, _ -; $UID_PASTE = 5 - -Global Const $LF_FACESIZE = 32 -Global Const $MAX_TAB_STOPS = 32 - -Global Const $PFA_LEFT = 0x1 -Global Const $PFA_RIGHT = 0x2 -Global Const $PFA_CENTER = 0x3 -Global Const $PFA_JUSTIFY = 4 -Global Const $PFA_FULL_INTERWORD = 4 -Global Const $PFE_TABLE = 0x4000 - -Global Const $PFM_NUMBERING = 0x20 -Global Const $PFM_ALIGNMENT = 0x8 -Global Const $PFM_SPACEBEFORE = 0x40 -Global Const $PFM_NUMBERINGSTYLE = 0x2000 -Global Const $PFM_NUMBERINGSTART = 0x8000 -Global Const $PFM_BORDER = 0x800 -Global Const $PFM_RIGHTINDENT = 0x2 -Global Const $PFM_STARTINDENT = 0x1 -Global Const $PFM_OFFSET = 0x4 -; Global Const $PFM_OFFSETINDENT = 0x80000000 -Global Const $PFM_LINESPACING = 0x100 -Global Const $PFM_SPACEAFTER = 0x80 -Global Const $PFM_NUMBERINGTAB = 0x4000 -Global Const $PFM_TABLE = 0x40000000 -Global Const $PFM_TABSTOPS = 0x10 -Global Const $PFN_BULLET = 0x1 -; Source: http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/ablib/ver5lib/Include/api_richedit.sbp?revision=1.2 -Global Const $PFM_RTLPARA = 0x10000 -Global Const $PFM_KEEP = 0x20000 -Global Const $PFM_KEEPNEXT = 0x40000 -Global Const $PFM_PAGEBREAKBEFORE = 0x80000 -Global Const $PFM_NOLINENUMBER = 0x100000 -Global Const $PFM_NOWIDOWCONTROL = 0x200000 -Global Const $PFM_DONOTHYPHEN = 0x400000 -Global Const $PFM_SIDEBYSIDE = 0x800000 - -Global Const $PFE_RTLPARA = 0x00000001 ; BitShift($PFM_RTLPARA, 16) -Global Const $PFE_KEEP = 0x00000002 ; BitShift($PFM_KEEP, 16) -Global Const $PFE_KEEPNEXT = 0x00000004 ; BitShift($PFM_KEEPNEXT, 16) -Global Const $PFE_PAGEBREAKBEFORE = 0x00000008 ; BitShift($PFM_PAGEBREAKBEFORE, 16) -Global Const $PFE_NOLINENUMBER = 0x00000010 ; BitShift($PFM_NOLINENUMBER, 16) -Global Const $PFE_NOWIDOWCONTROL = 0x00000020 ; BitShift($PFM_NOWIDOWCONTROL, 16) -Global Const $PFE_DONOTHYPHEN = 0x00000040 ; BitShift($PFM_DONOTHYPHEN, 16) -Global Const $PFE_SIDEBYSIDE = 0x00000080 ; BitShift($PFM_SIDEBYSIDE, 16) -; end of source sourceforge -Global Const $PFM_SHADING = 0x1000 -Global Const $WB_CLASSIFY = 3 -Global Const $WB_ISDELIMITER = 2 -Global Const $WB_LEFT = 0 -Global Const $WB_LEFTBREAK = 6 -Global Const $WB_MOVEWORDLEFT = 4 -Global Const $WB_MOVEWORDNEXT = 5 -Global Const $WB_MOVEWORDPREV = 4 -Global Const $WB_MOVEWORDRIGHT = 5 -Global Const $WB_NEXTBREAK = 7 -Global Const $WB_PREVBREAK = 6 -Global Const $WB_RIGHT = 1 -Global Const $WB_RIGHTBREAK = 7 -Global Const $WBF_ISWHITE = 0x10 -Global Const $WBF_BREAKLINE = 0x20 -Global Const $WBF_BREAKAFTER = 0x40 -; For Stream Callbacks :) -Global Const $SF_TEXT = 0x1 -Global Const $SF_RTF = 0x2 -Global Const $SF_RTFNOOBJS = 0x3 -Global Const $SF_TEXTIZED = 0x4 -Global Const $SF_UNICODE = 0x0010 -Global Const $SF_USECODEPAGE = 0x20 -Global Const $SFF_PLAINRTF = 0x4000 -Global Const $SFF_SELECTION = 0x8000 -; =============================================================================================================================== diff --git a/build/Include/SQLite.au3 b/build/Include/SQLite.au3 deleted file mode 100644 index 629c085e5..000000000 --- a/build/Include/SQLite.au3 +++ /dev/null @@ -1,1127 +0,0 @@ -#include-once -#ignorefunc __SQLite_Inline_Version, __SQLite_Inline_Modified - -#include "FileConstants.au3" -#include "InetConstants.au3" -#include "Array.au3" ; Using: _ArrayAdd(),_ArrayDelete(),_ArraySearch() -#include "File.au3" ; Using: _TempFile() - -; #INDEX# ======================================================================================================================= -; Title .........: SQLite -; AutoIt Version : 3.3.15.1 -; Language ......: English -; Description ...: Functions that assist access to an SQLite database. -; Author(s) .....: Fida Florian (piccaso), jchd, jpm -; Dll ...........: sqlite3.dll -; =============================================================================================================================== - -; ------------------------------------------------------------------------------ -; This software is provided 'as-is', without any express or -; implied warranty. In no event will the authors be held liable for any -; damages arising from the use of this software. - -; #VARIABLES# =================================================================================================================== -Global $__g_hDll_SQLite = 0 -Global $__g_hDB_SQLite = 0 -Global $__g_bUTF8ErrorMsg_SQLite = False -Global $__g_hPrintCallback_SQLite = __SQLite_ConsoleWrite -Global $__g_bSafeModeState_SQLite = True ; Safemode State (boolean) -Global $__g_ahDBs_SQLite[1] = [''] ; Array of known $hDB handles -Global $__g_ahQuerys_SQLite[1] = [''] ; Array of known $hQuery handles -Global $__g_hMsvcrtDll_SQLite = 0 ; pseudo dll handle for 'msvcrt.dll' -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $SQLITE_OK = 0 ; /* Successful result */ -Global Const $SQLITE_ERROR = 1 ; /* SQL error or missing database */ -Global Const $SQLITE_INTERNAL = 2 ; /* An internal logic error in SQLite */ -Global Const $SQLITE_PERM = 3 ; /* Access permission denied */ -Global Const $SQLITE_ABORT = 4 ; /* Callback routine requested an abort */ -Global Const $SQLITE_BUSY = 5 ; /* The database file is locked */ -Global Const $SQLITE_LOCKED = 6 ; /* A table in the database is locked */ -Global Const $SQLITE_NOMEM = 7 ; /* A malloc() failed */ -Global Const $SQLITE_READONLY = 8 ; /* Attempt to write a readonly database */ -Global Const $SQLITE_INTERRUPT = 9 ; /* Operation terminated by sqlite_interrupt() */ -Global Const $SQLITE_IOERR = 10 ; /* Some kind of disk I/O error occurred */ -Global Const $SQLITE_CORRUPT = 11 ; /* The database disk image is malformed */ -Global Const $SQLITE_NOTFOUND = 12 ; /* (Internal Only) Table or record not found */ -Global Const $SQLITE_FULL = 13 ; /* Insertion failed because database is full */ -Global Const $SQLITE_CANTOPEN = 14 ; /* Unable to open the database file */ -Global Const $SQLITE_PROTOCOL = 15 ; /* Database lock protocol error */ -Global Const $SQLITE_EMPTY = 16 ; /* (Internal Only) Database table is empty */ -Global Const $SQLITE_SCHEMA = 17 ; /* The database schema changed */ -Global Const $SQLITE_TOOBIG = 18 ; /* Too much data for one row of a table */ -Global Const $SQLITE_CONSTRAINT = 19 ; /* Abort due to constraint violation */ -Global Const $SQLITE_MISMATCH = 20 ; /* Data type mismatch */ -Global Const $SQLITE_MISUSE = 21 ; /* Library used incorrectly */ -Global Const $SQLITE_NOLFS = 22 ; /* Uses OS features not supported on host */ -Global Const $SQLITE_AUTH = 23 ; /* Authorization denied */ -Global Const $SQLITE_ROW = 100 ; /* sqlite_step() has another row ready */ -Global Const $SQLITE_DONE = 101 ; /* sqlite_step() has finished executing */ - -Global Const $SQLITE_OPEN_READONLY = 0x01 ; /* Database opened as read-only */ -Global Const $SQLITE_OPEN_READWRITE = 0x02 ; /* Database opened as read-write */ -Global Const $SQLITE_OPEN_CREATE = 0x04 ; /* Database will be created if not exists */ - -Global Const $SQLITE_ENCODING_UTF8 = 0 ; /* Database will be created if not exists with UTF8 encoding (default) */ -Global Const $SQLITE_ENCODING_UTF16 = 1 ; /* Database will be created if not exists with UTF16le encoding */ -Global Const $SQLITE_ENCODING_UTF16be = 2 ; /* Database will be created if not exists with UTF16be encoding (special usage) */ - -Global Const $SQLITE_TYPE_INTEGER = 1 ; /* column types */ -Global Const $SQLITE_TYPE_FLOAT = 2 -Global Const $SQLITE_TYPE_TEXT = 3 -Global Const $SQLITE_TYPE_BLOB = 4 -Global Const $SQLITE_TYPE_NULL = 5 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _SQLite_Startup -; _SQLite_Shutdown -; _SQLite_Open -; _SQLite_Close -; _SQLite_GetTable -; _SQLite_Exec -; _SQLite_LibVersion -; _SQLite_LastInsertRowID -; _SQLite_GetTable2d -; _SQLite_Changes -; _SQLite_TotalChanges -; _SQLite_ErrCode -; _SQLite_ErrMsg -; _SQLite_Display2DResult -; _SQLite_FetchData -; _SQLite_Query -; _SQLite_SetTimeout -; _SQLite_SafeMode -; _SQLite_QueryFinalize -; _SQLite_QueryReset -; _SQLite_FetchNames -; _SQLite_QuerySingleRow -; _SQLite_SQLiteExe -; _SQLite_Encode -; _SQLite_Escape -; _SQLite_FastEncode -; _SQLite_FastEscape -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __SQLite_hChk -; __SQLite_hAdd -; __SQLite_hDel -; __SQLite_VersCmp -; __SQLite_hDbg -; __SQLite_ReportError -; __SQLite_szStringRead -; __SQLite_szFree -; __SQLite_StringToUtf8Struct -; __SQLite_Utf8StructToString -; __SQLite_ConsoleWrite -;~ ; __SQLite_Download_SQLite3File -;~ ; __SQLite_Download_Confirmation -; __SQLite_Print -; =============================================================================================================================== - -#comments-start - Changelog: - 26.11.05 Added _SQLite_QueryReset() - 26.11.05 Added _SQLite_QueryFinalize() - 26.11.05 Added _SQLite_SaveMode() - 26.11.05 Implemented SaveMode - 27.11.05 Renamed _SQLite_FetchArray() -> _SQLite_FetchData() - 27.11.05 Added _SQLite_FetchNames(), Example - 28.11.05 Removed _SQLite_Commit(), _SQLite_Close() handles $SQLITE_BUSY issues - 28.11.05 Added Function Headers - 28.11.05 Fixed Bug in _SQLite_Exec(), $sErrorMsg was set to 0 instead of 'Successful result' - 29.11.05 Changed _SQLite_Display2DResult(), Better Formating for Larger Tables & Ability to Return the Result - 30.11.05 Changed _SQLite_GetTable2d(), Ability to Switch Dimensions - 30.11.05 Fixed _SQLite_Display2DResult() $iCellWidth was ignored - 03.12.05 Added _SQLite_QuerySingleRow() - 04.12.05 Changed Standard $hDB Handling (Thank you jpm) - 04.12.05 Fixed Return Values of _SQLite_LibVersion(),_SQLite_LastInsertRowID(),_SQLite_Changes(),_SQLite_TotalChanges() - 04.12.05 Changed _SQLite_Open() now opens a ':memory:' database if no name specified - 05.12.05 Changed _SQLite_FetchData() NULL Values will be Skipped - 10.12.05 Changed _SQLite_QuerySingleResult() now uses 'sqlite3_get_table' API - 13.12.05 Added _SQLite_SQLiteExe() Wrapper for SQLite3.exe - 29.03.06 Removed _SQLite_SetGlobalTimeout() - 29.03.06 Added _SQLite_SetTimeout() - 17.05.06 :cdecl to support autoit debugging version - 18.05.06 _SQLite_SQLiteExe() now Creates nonexistent Directories - 18.05.06 Fixed SyntaxCheck Warnings (_SQLite_GetTable2d()) - 21.05.06 Added support for Default Keyword for all Optional parameters - 25.05.06 Added _SQLite_Encode() - 25.05.06 Changed _SQLite_QueryNoResult() -> _SQLite_Execute() - 25.05.06 Changed _SQLite_FetchData() Binary Mode - 26.05.06 Removed _SQLite_GlobalRecover() out-of-memory recovery is automatic since SQLite 3.3.0 - 26.05.06 Changed @error Values & Improved error catching (see Function headers) - 31.05.06 jpm's Nice @error values setting - 04.06.06 Inline SQLite3.dll - 08.06.06 Changed _SQLite_Exec(), _SQLite_GetTable2d(), _SQLite_GetTable() Removed '$sErrorMsg' parameter - 08.06.06 Removed _SQLite_Execute() because _SQLite_Exec() was the same - 08.06.06 Cleaning _SQLite_Startup(). (jpm) - 23.09.06 Fixed _SQLite_Exec() Memory Leak on SQL error - 23.09.06 Added SQL Error Reporting (only in interpreted mode) - 23.09.06 Added _SQLite_Escape() - 24.09.06 Changed _SQLite_Escape(), Changed _SQLite_GetTable*() New szString Reading method, Result will no longer be truncated - 25.09.06 Fixed Bug in szString read procedure (_SQLite_GetTable*, _SQLite_QuerySingleRow, _SQLite_Escape) - 29.09.06 Faster szString Reading, Function Header corrections - 29.09.06 Changed _SQLite_Exec() Callback - 12.03.07 Changed _SQLite_Query() to use 'sqlite3_prepare_v2' API - 16.03.07 Fixed _SQLite_Open() not setting @error, Missing DllClose() in _SQLite_Shutdown(), Stack corruption in szString reading procedure - 17.03.07 Improved Error handling/Reporting - 08.07.07 Fixed Bug in version comparison procedure - 26.10.07 Fixed _SQLite_SQLiteExe() referencing by default "Extras\SQLite\SQlite3.exe" - 23.06.08 Fixed _SQLite_* misuse if _SQLite_Startup() failed - 23.01.09 Fixed memory leak on error -> __SQLite_szFree() internal function - 01.05.09 Changed _SQLite_*() functions dealing with AutoIt Strings (Unicode string) for queries and results, without ANSI conversion. - Note: no point for a Unicode version of _SQLite_SQLiteExe() since the DOS console doesn't handle Unicode. (jchd) - 02.05.09 Added _SQLite_Open() accepts a second parameter for read/write/create access mode. (jchd) - 04.05.09 Added _SQLite_Open() accepts a third parameter for UTF8/UTF16 encoding mode (Only use at creation time). (jpm) - Warn: _SQLite_Open() is using now Filename that are Unicode as SQLite expects. Previous version was sending only Filenames with - ASCII characters so previously script can have create valid ASCII filenames no more unreachable. - 25.05.09 _SQLite_Startup extra parameter to force UTF8 char on SciTE console with output.code.page=65001. - 09.06.09 _SQLite_SaveMode renamed to _SQLite_SafeMode(). - 01.06.10 jchd updates ... _SQLite_FetchData, $iCharSize, _SQLite_QuerySingleRow, _SQLite_GetTable2d, _SQLite_Display2DResult. - 04.04.10 jchd Fixed _SQLite_Escape - 05.04.10 jchd Added _SQLite_FastEscape & _SQLite_FastEncode. - 06.04.10 jchd Updated _SQLite_GetTable.. optimization - 20.04.10 _SQLite_Startup() use FTP download instead of SQLite.dll.au3 - 05.06.10 jchd Fixed _SQLite_Fetch_Data by forcing binary retrieval of BLOB items. This fixes _SQLite_GetTable[2d] for blobs as well. - 05.08.10 Added _SQLite_Startup() can download maintenance version as 3.7.0.1. - 20.09.11 Valik Fixed SQLite library needs to support a user-defined callback for diagnostic messages instead of hard-coding ConsoleWrite(). - 06.02.12 Fixed _SQLite_Startup() download error checking. - 08.11.13 Fixed running in X64 mode - 08.11.13 Fixed _SQLite_Startup() parameter checking and doc - 30.12.13 Changed Now using first class objects instead of Call(). - 04.02.14 Added _SQLite_SQLiteExe() download sqlite3.exe if needed. - 05.04.14 Added __SQLite_Download_SQLite3File() download sqlite3.exe or sqlite3.dll if needed. - 08.04.14 Fixed __SQLite_Download_SQLite3File() when running in Admin mode. - 11.09.15 Fixed _SQLite_Startup() No Download, search dll in @LocalAppDataDir & "\AutoIt v3\SQLite" if needed. -#comments-end - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jpm -; =============================================================================================================================== -Func _SQLite_Startup($sDll_Filename = "", $bUTF8ErrorMsg = False, $iForceLocal = 0, $hPrintCallback = $__g_hPrintCallback_SQLite) - If $sDll_Filename = Default Or $sDll_Filename = -1 Then $sDll_Filename = "" - - ; The $hPrintCallback parameter may look strange to assign it to $__g_hPrintCallback_SQLite as - ; a default. This is done so that $__g_hPrintCallback_SQLite can be pre-initialized with the internal - ; callback in a single place in case that callback changes. If the user overrides it then - ; that value becomes the new default. An empty string will suppress any display. - If $hPrintCallback = Default Then $hPrintCallback = __SQLite_ConsoleWrite - $__g_hPrintCallback_SQLite = $hPrintCallback - - If $bUTF8ErrorMsg = Default Then $bUTF8ErrorMsg = False - $__g_bUTF8ErrorMsg_SQLite = $bUTF8ErrorMsg - - Local $sDll_Dirname = "" - If $sDll_Filename = "" Then $sDll_Filename = "sqlite3.dll" - If @AutoItX64 And (StringInStr($sDll_Filename, "_x64") = 0) Then $sDll_Filename = StringReplace($sDll_Filename, ".dll", "_x64.dll") - - Local $iExt = 0 - If $iForceLocal < 1 Then - Local $bDownloadDLL = True - Local $vInlineVersion = null ;Call('__SQLite_Inline_Version') - If @error Then $bDownloadDLL = False ; no valid SQLite version define so invalidate download - - If $iForceLocal = 0 Then - ; check SQLite version if local file exists - If __SQLite_VersCmp(@ScriptDir & "\" & $sDll_Filename, $vInlineVersion) = $SQLITE_OK Then - $sDll_Dirname = @ScriptDir & "\" - $bDownloadDLL = False - ElseIf __SQLite_VersCmp(@SystemDir & "\" & $sDll_Filename, $vInlineVersion) = $SQLITE_OK Then - $sDll_Dirname = @SystemDir & "\" - $bDownloadDLL = False - ElseIf __SQLite_VersCmp(@WindowsDir & "\" & $sDll_Filename, $vInlineVersion) = $SQLITE_OK Then - $sDll_Dirname = @WindowsDir & "\" - $bDownloadDLL = False - ElseIf __SQLite_VersCmp(@WorkingDir & "\" & $sDll_Filename, $vInlineVersion) = $SQLITE_OK Then - $sDll_Dirname = @WorkingDir & "\" - $bDownloadDLL = False - EndIf - EndIf - - If $bDownloadDLL Then - If Not FileExists($sDll_Dirname & $sDll_Filename) Then - ; Create in @LocalAppDataDir & "\AutoIt v3\" to avoid reloading (only valid for the current user) - $sDll_Dirname = @LocalAppDataDir & "\AutoIt v3\SQLite" - EndIf - If $iForceLocal Then - ; download the latest version. Usely related with internal testing. - $vInlineVersion = "" - Else - ; download the version related with the include version - $vInlineVersion = "_" & $vInlineVersion - $iExt = 1 - EndIf - $sDll_Filename = $sDll_Dirname & "\" & StringReplace($sDll_Filename, ".dll", "") & $vInlineVersion & ".dll" -;~ $sDll_Filename = __SQLite_Download_SQLite3File($sDll_Dirname, StringReplace($sDll_Filename, ".dll", ""), $vInlineVersion, ".dll") -;~ If @error Then Return SetError(@error, @extended, "") ; download not successful -;~ $iExt = @extended - EndIf - EndIf -;~ If Not FileExists($sDll_Filename) Then Then Return SetError(2, 0, "") ; File not found - - Local $hDll = DllOpen($sDll_Filename) - If $hDll = -1 Then - $__g_hDll_SQLite = 0 - Return SetError(1, $iExt, "") - Else - $__g_hDll_SQLite = $hDll - Return SetExtended($iExt, $sDll_Filename) - EndIf -EndFunc ;==>_SQLite_Startup - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_Shutdown() - If $__g_hDll_SQLite > 0 Then DllClose($__g_hDll_SQLite) - $__g_hDll_SQLite = 0 - If $__g_hMsvcrtDll_SQLite > 0 Then DllClose($__g_hMsvcrtDll_SQLite) - $__g_hMsvcrtDll_SQLite = 0 -EndFunc ;==>_SQLite_Shutdown - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd, jpm -; =============================================================================================================================== -Func _SQLite_Open($sDatabase_Filename = Default, $iAccessMode = Default, $iEncoding = Default) - If Not $__g_hDll_SQLite Then Return SetError(3, $SQLITE_MISUSE, 0) - If $sDatabase_Filename = Default Or Not IsString($sDatabase_Filename) Then $sDatabase_Filename = ":memory:" - Local $tFilename = __SQLite_StringToUtf8Struct($sDatabase_Filename) - If @error Then Return SetError(2, @error, 0) - If $iAccessMode = Default Then $iAccessMode = BitOR($SQLITE_OPEN_READWRITE, $SQLITE_OPEN_CREATE) - Local $bOldBase = FileExists($sDatabase_Filename) ; encoding cannot be changed if base already exists - If $iEncoding = Default Then - $iEncoding = $SQLITE_ENCODING_UTF8 - EndIf - Local $avRval = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_open_v2", "struct*", $tFilename, _ ; UTF-8 Database filename - "ptr*", 0, _ ; OUT: SQLite db handle - "int", $iAccessMode, _ ; database access mode - "ptr", 0) - If @error Then Return SetError(1, @error, 0) ; DllCall error - If $avRval[0] <> $SQLITE_OK Then - __SQLite_ReportError($avRval[2], "_SQLite_Open") - _SQLite_Close($avRval[2]) - Return SetError(-1, $avRval[0], 0) - EndIf - - $__g_hDB_SQLite = $avRval[2] - __SQLite_hAdd($__g_ahDBs_SQLite, $avRval[2]) - If Not $bOldBase Then - Local $aEncoding[3] = ["8", "16", "16be"] - _SQLite_Exec($avRval[2], 'PRAGMA encoding="UTF-' & $aEncoding[$iEncoding] & '";') - EndIf - Return SetExtended($avRval[0], $avRval[2]) -EndFunc ;==>_SQLite_Open - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_GetTable($hDB, $sSQL, ByRef $aResult, ByRef $iRows, ByRef $iColumns, $iCharSize = -1) - $aResult = '' - If __SQLite_hChk($hDB, 1) Then Return SetError(@error, 0, $SQLITE_MISUSE) - If $iCharSize = "" Or $iCharSize < 1 Or $iCharSize = Default Then $iCharSize = -1 - ; see comments in _SQLite_GetTable2d - Local $hQuery - Local $r = _SQLite_Query($hDB, $sSQL, $hQuery) - If @error Then Return SetError(2, @error, $r) - ; we need column count and names - Local $aDataRow - $r = _SQLite_FetchNames($hQuery, $aDataRow) - Local $iError = @error - If $iError Then - _SQLite_QueryFinalize($hQuery) - Return SetError(3, $iError, $r) - EndIf - $iColumns = UBound($aDataRow) - Local Const $iRowsIncr = 64 ; initially allocate 64 datarows then grow by 4/3 of row count - $iRows = 0 ; actual number of data rows - Local $iAllocRows = $iRowsIncr ; number of allocated data rows - Dim $aResult[($iAllocRows + 1) * $iColumns + 1] - For $idx = 0 To $iColumns - 1 - If $iCharSize > 0 Then - $aDataRow[$idx] = StringLeft($aDataRow[$idx], $iCharSize) - EndIf - $aResult[$idx + 1] = $aDataRow[$idx] - Next - While 1 - $r = _SQLite_FetchData($hQuery, $aDataRow, 0, 0, $iColumns) - $iError = @error - Switch $r - Case $SQLITE_OK - $iRows += 1 - If $iRows = $iAllocRows Then - $iAllocRows = Round($iAllocRows * 4 / 3) - ReDim $aResult[($iAllocRows + 1) * $iColumns + 1] - EndIf - For $j = 0 To $iColumns - 1 - If $iCharSize > 0 Then - $aDataRow[$j] = StringLeft($aDataRow[$j], $iCharSize) - EndIf - $idx += 1 - $aResult[$idx] = $aDataRow[$j] - Next - Case $SQLITE_DONE - ExitLoop - Case Else - $aResult = '' - _SQLite_QueryFinalize($hQuery) - Return SetError(4, $iError, $r) - EndSwitch - WEnd - $aResult[0] = ($iRows + 1) * $iColumns - ReDim $aResult[$aResult[0] + 1] - Return ($SQLITE_OK) -EndFunc ;==>_SQLite_GetTable - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_Exec($hDB, $sSQL, $sCallBack = "") - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, 0, $SQLITE_MISUSE) - If $sCallBack <> "" Then - Local $iRows, $iColumns - Local $aResult = "SQLITE_CALLBACK:" & $sCallBack - Local $iRval = _SQLite_GetTable2d($hDB, $sSQL, $aResult, $iRows, $iColumns) - If @error Then Return SetError(3, @error, $iRval) - Return $iRval - EndIf - Local $tSQL8 = __SQLite_StringToUtf8Struct($sSQL) - If @error Then Return SetError(4, @error, 0) - Local $avRval = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_exec", _ - "ptr", $hDB, _ ; An open database - "struct*", $tSQL8, _ ; SQL to be executed - "ptr", 0, _ ; Callback function - "ptr", 0, _ ; 1st argument to callback function - "ptr*", 0) ; Error msg written here - If @error Then Return SetError(1, @error, $SQLITE_MISUSE) ; DllCall error - __SQLite_szFree($avRval[5]) ; free error message - If $avRval[0] <> $SQLITE_OK Then - __SQLite_ReportError($hDB, "_SQLite_Exec", $sSQL) - SetError(-1) - EndIf - Return $avRval[0] -EndFunc ;==>_SQLite_Exec - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_LibVersion() - If $__g_hDll_SQLite = 0 Then Return SetError(1, $SQLITE_MISUSE, 0) - Local $r = DllCall($__g_hDll_SQLite, "str:cdecl", "sqlite3_libversion") - If @error Then Return SetError(1, @error, 0) ; DllCall error - Return $r[0] -EndFunc ;==>_SQLite_LibVersion - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_LastInsertRowID($hDB = -1) - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, @extended, 0) - Local $r = DllCall($__g_hDll_SQLite, "long:cdecl", "sqlite3_last_insert_rowid", "ptr", $hDB) - If @error Then Return SetError(1, @error, 0) ; DllCall error - Return $r[0] -EndFunc ;==>_SQLite_LastInsertRowID - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_Changes($hDB = -1) - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, @extended, 0) - Local $r = DllCall($__g_hDll_SQLite, "long:cdecl", "sqlite3_changes", "ptr", $hDB) - If @error Then Return SetError(1, @error, 0) ; DllCall error - Return $r[0] -EndFunc ;==>_SQLite_Changes - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_TotalChanges($hDB = -1) - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, @extended, 0) - Local $r = DllCall($__g_hDll_SQLite, "long:cdecl", "sqlite3_total_changes", "ptr", $hDB) - If @error Then Return SetError(1, @error, 0) ; DllCall error - Return $r[0] -EndFunc ;==>_SQLite_TotalChanges - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_ErrCode($hDB = -1) - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, 0, $SQLITE_MISUSE) - Local $r = DllCall($__g_hDll_SQLite, "long:cdecl", "sqlite3_errcode", "ptr", $hDB) - If @error Then Return SetError(1, @error, $SQLITE_MISUSE) ; DllCall error - Return $r[0] -EndFunc ;==>_SQLite_ErrCode - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_ErrMsg($hDB = -1) - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, @extended, "Library used incorrectly") - Local $r = DllCall($__g_hDll_SQLite, "wstr:cdecl", "sqlite3_errmsg16", "ptr", $hDB) - If @error Then - __SQLite_ReportError($hDB, "_SQLite_ErrMsg", Default, "Call Failed") - Return SetError(1, @error, "Library used incorrectly") ; DllCall error - EndIf - Return $r[0] -EndFunc ;==>_SQLite_ErrMsg - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_Display2DResult($aResult, $iCellWidth = 0, $bReturn = False) - If Not IsArray($aResult) Or UBound($aResult, $UBOUND_DIMENSIONS) <> 2 Or $iCellWidth < 0 Then Return SetError(1, 0, "") - Local $aiCellWidth - If $iCellWidth = 0 Or $iCellWidth = Default Then - Local $iCellWidthMax - Dim $aiCellWidth[UBound($aResult, $UBOUND_COLUMNS)] - For $iRow = 0 To UBound($aResult, $UBOUND_ROWS) - 1 - For $iCol = 0 To UBound($aResult, $UBOUND_COLUMNS) - 1 - $iCellWidthMax = StringLen($aResult[$iRow][$iCol]) - If $iCellWidthMax > $aiCellWidth[$iCol] Then - $aiCellWidth[$iCol] = $iCellWidthMax - EndIf - Next - Next - EndIf - Local $sOut = "", $iCellWidthUsed - For $iRow = 0 To UBound($aResult, $UBOUND_ROWS) - 1 - For $iCol = 0 To UBound($aResult, $UBOUND_COLUMNS) - 1 - If $iCellWidth = 0 Then - $iCellWidthUsed = $aiCellWidth[$iCol] - Else - $iCellWidthUsed = $iCellWidth - EndIf - $sOut &= StringFormat(" %-" & $iCellWidthUsed & "." & $iCellWidthUsed & "s ", $aResult[$iRow][$iCol]) - Next - $sOut &= @CRLF - If Not $bReturn Then - __SQLite_Print($sOut) - $sOut = "" - EndIf - Next - If $bReturn Then Return $sOut -EndFunc ;==>_SQLite_Display2DResult - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian), blink314 -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_GetTable2d($hDB, $sSQL, ByRef $aResult, ByRef $iRows, ByRef $iColumns, $iCharSize = -1, $bSwichDimensions = False) - If __SQLite_hChk($hDB, 1) Then Return SetError(@error, 0, $SQLITE_MISUSE) - If $iCharSize = "" Or $iCharSize < 1 Or $iCharSize = Default Then $iCharSize = -1 - Local $sCallBack = "", $bCallBack = False - If IsString($aResult) Then - If StringLeft($aResult, 16) = "SQLITE_CALLBACK:" Then - $sCallBack = StringTrimLeft($aResult, 16) - $bCallBack = True - EndIf - EndIf - $aResult = '' - If $bSwichDimensions = Default Then $bSwichDimensions = False - Local $hQuery - Local $r = _SQLite_Query($hDB, $sSQL, $hQuery) - If @error Then Return SetError(2, @error, $r) - If $r <> $SQLITE_OK Then - __SQLite_ReportError($hDB, "_SQLite_GetTable2d", $sSQL) - _SQLite_QueryFinalize($hQuery) - Return SetError(-1, 0, $r) - EndIf - $iRows = 0 - Local $iRval_Step, $iError - While True - $iRval_Step = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_step", "ptr", $hQuery) - If @error Then - $iError = @error - _SQLite_QueryFinalize($hQuery) - Return SetError(3, $iError, $SQLITE_MISUSE) ; DllCall error - EndIf - Switch $iRval_Step[0] - Case $SQLITE_ROW - $iRows += 1 - Case $SQLITE_DONE - ExitLoop - Case Else - _SQLite_QueryFinalize($hQuery) - Return SetError(3, $iError, $iRval_Step[0]) - EndSwitch - WEnd - Local $iRet = _SQLite_QueryReset($hQuery) - If @error Then - $iError = @error - _SQLite_QueryFinalize($hQuery) - Return SetError(4, $iError, $iRet) - EndIf - Local $aDataRow - $r = _SQLite_FetchNames($hQuery, $aDataRow) - If @error Then - $iError = @error - _SQLite_QueryFinalize($hQuery) - Return SetError(5, $iError, $r) - EndIf - $iColumns = UBound($aDataRow) - If $iColumns <= 0 Then - _SQLite_QueryFinalize($hQuery) - Return SetError(-1, 0, $SQLITE_DONE) - EndIf - If Not $bCallBack Then - If $bSwichDimensions Then - Dim $aResult[$iColumns][$iRows + 1] - For $i = 0 To $iColumns - 1 - If $iCharSize > 0 Then - $aDataRow[$i] = StringLeft($aDataRow[$i], $iCharSize) - EndIf - $aResult[$i][0] = $aDataRow[$i] - Next - Else - Dim $aResult[$iRows + 1][$iColumns] - For $i = 0 To $iColumns - 1 - If $iCharSize > 0 Then - $aDataRow[$i] = StringLeft($aDataRow[$i], $iCharSize) - EndIf - $aResult[0][$i] = $aDataRow[$i] - Next - EndIf - Else - Local $iCbRval - #Au3Stripper_Off - $iCbRval = Call($sCallBack, $aDataRow) - #Au3Stripper_On - If $iCbRval = $SQLITE_ABORT Or $iCbRval = $SQLITE_INTERRUPT Or @error Then - $iError = @error - _SQLite_QueryFinalize($hQuery) - Return SetError(7, $iError, $iCbRval) - EndIf - EndIf - If $iRows > 0 Then - For $i = 1 To $iRows - $r = _SQLite_FetchData($hQuery, $aDataRow, 0, 0, $iColumns) - If @error Then - $iError = @error - _SQLite_QueryFinalize($hQuery) - Return SetError(6, $iError, $r) - EndIf - If $bCallBack Then - #Au3Stripper_Off - $iCbRval = Call($sCallBack, $aDataRow) - #Au3Stripper_On - If $iCbRval = $SQLITE_ABORT Or $iCbRval = $SQLITE_INTERRUPT Or @error Then - $iError = @error - _SQLite_QueryFinalize($hQuery) - Return SetError(7, $iError, $iCbRval) - EndIf - Else - For $j = 0 To $iColumns - 1 - If $iCharSize > 0 Then - $aDataRow[$j] = StringLeft($aDataRow[$j], $iCharSize) - EndIf - If $bSwichDimensions Then - $aResult[$j][$i] = $aDataRow[$j] - Else - $aResult[$i][$j] = $aDataRow[$j] - EndIf - Next - EndIf - Next - EndIf - Return (_SQLite_QueryFinalize($hQuery)) -EndFunc ;==>_SQLite_GetTable2d - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_SetTimeout($hDB = -1, $iTimeout = 1000) - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, 0, $SQLITE_MISUSE) - If $iTimeout = Default Then $iTimeout = 1000 - Local $avRval = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_busy_timeout", "ptr", $hDB, "int", $iTimeout) - If @error Then Return SetError(1, @error, $SQLITE_MISUSE) ; DllCall error - If $avRval[0] <> $SQLITE_OK Then SetError(-1) - Return $avRval[0] -EndFunc ;==>_SQLite_SetTimeout - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_Query($hDB, $sSQL, ByRef $hQuery) - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, 0, $SQLITE_MISUSE) - Local $iRval = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_prepare16_v2", _ - "ptr", $hDB, _ - "wstr", $sSQL, _ - "int", -1, _ - "ptr*", 0, _ ; OUT: Statement handle - "ptr*", 0) ; OUT: Pointer to unused portion of zSql - If @error Then Return SetError(1, @error, $SQLITE_MISUSE) ; DllCall error - If $iRval[0] <> $SQLITE_OK Then - __SQLite_ReportError($hDB, "_SQLite_Query", $sSQL) - Return SetError(-1, 0, $iRval[0]) - EndIf - $hQuery = $iRval[4] - __SQLite_hAdd($__g_ahQuerys_SQLite, $iRval[4]) - Return $iRval[0] -EndFunc ;==>_SQLite_Query - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_FetchData($hQuery, ByRef $aRow, $bBinary = False, $bDoNotFinalize = False, $iColumns = 0) - Dim $aRow[1] - If __SQLite_hChk($hQuery, 7, False) Then Return SetError(@error, 0, $SQLITE_MISUSE) - If $bBinary = Default Then $bBinary = False - If $bDoNotFinalize = Default Then $bDoNotFinalize = False - Local $iRval_Step = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_step", "ptr", $hQuery) - If @error Then Return SetError(1, @error, $SQLITE_MISUSE) ; DllCall error - If $iRval_Step[0] <> $SQLITE_ROW Then - If $bDoNotFinalize = False And $iRval_Step[0] = $SQLITE_DONE Then - _SQLite_QueryFinalize($hQuery) - EndIf - Return SetError(-1, 0, $iRval_Step[0]) - EndIf - If Not $iColumns Then - Local $iRval_ColCnt = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_data_count", "ptr", $hQuery) - If @error Then Return SetError(2, @error, $SQLITE_MISUSE) ; DllCall error - If $iRval_ColCnt[0] <= 0 Then Return SetError(-1, 0, $SQLITE_DONE) - $iColumns = $iRval_ColCnt[0] - EndIf - ReDim $aRow[$iColumns] - For $i = 0 To $iColumns - 1 - Local $iRval_coltype = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_column_type", "ptr", $hQuery, "int", $i) - If @error Then Return SetError(4, @error, $SQLITE_MISUSE) ; DllCall error - If $iRval_coltype[0] = $SQLITE_TYPE_NULL Then - $aRow[$i] = "" - ContinueLoop - EndIf - If (Not $bBinary) And ($iRval_coltype[0] <> $SQLITE_TYPE_BLOB) Then - Local $sRval = DllCall($__g_hDll_SQLite, "wstr:cdecl", "sqlite3_column_text16", "ptr", $hQuery, "int", $i) - If @error Then Return SetError(3, @error, $SQLITE_MISUSE) ; DllCall error - $aRow[$i] = $sRval[0] - Else - Local $vResult = DllCall($__g_hDll_SQLite, "ptr:cdecl", "sqlite3_column_blob", "ptr", $hQuery, "int", $i) - If @error Then Return SetError(6, @error, $SQLITE_MISUSE) ; DllCall error - Local $iColBytes = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_column_bytes", "ptr", $hQuery, "int", $i) - If @error Then Return SetError(5, @error, $SQLITE_MISUSE) ; DllCall error - Local $tResultStruct = DllStructCreate("byte[" & $iColBytes[0] & "]", $vResult[0]) - $aRow[$i] = Binary(DllStructGetData($tResultStruct, 1)) - EndIf - Next - Return $SQLITE_OK -EndFunc ;==>_SQLite_FetchData - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_Close($hDB = -1) - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, 0, $SQLITE_MISUSE) - Local $iRval = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_close", "ptr", $hDB) ; An open database - If @error Then Return SetError(1, @error, $SQLITE_MISUSE) ; DllCall error - If $iRval[0] <> $SQLITE_OK Then - __SQLite_ReportError($hDB, "_SQLite_Close") - Return SetError(-1, 0, $iRval[0]) - EndIf - $__g_hDB_SQLite = 0 - __SQLite_hDel($__g_ahDBs_SQLite, $hDB) - Return $iRval[0] -EndFunc ;==>_SQLite_Close - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_SafeMode($bSafeModeState) - $__g_bSafeModeState_SQLite = ($bSafeModeState = True) - Return $SQLITE_OK -EndFunc ;==>_SQLite_SafeMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_QueryFinalize($hQuery) - If __SQLite_hChk($hQuery, 2, False) Then Return SetError(@error, 0, $SQLITE_MISUSE) - Local $avRval = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_finalize", "ptr", $hQuery) - If @error Then Return SetError(1, @error, $SQLITE_MISUSE) ; DllCall error - __SQLite_hDel($__g_ahQuerys_SQLite, $hQuery) - If $avRval[0] <> $SQLITE_OK Then SetError(-1) - Return $avRval[0] -EndFunc ;==>_SQLite_QueryFinalize - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_QueryReset($hQuery) - If __SQLite_hChk($hQuery, 2, False) Then Return SetError(@error, 0, $SQLITE_MISUSE) - Local $avRval = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_reset", "ptr", $hQuery) - If @error Then Return SetError(1, @error, $SQLITE_MISUSE) ; DllCall error - If $avRval[0] <> $SQLITE_OK Then SetError(-1) - Return $avRval[0] -EndFunc ;==>_SQLite_QueryReset - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_FetchNames($hQuery, ByRef $aNames) - Dim $aNames[1] - If __SQLite_hChk($hQuery, 3, False) Then Return SetError(@error, 0, $SQLITE_MISUSE) - Local $avDataCnt = DllCall($__g_hDll_SQLite, "int:cdecl", "sqlite3_column_count", "ptr", $hQuery) - If @error Then Return SetError(1, @error, $SQLITE_MISUSE) ; DllCall error - If $avDataCnt[0] <= 0 Then Return SetError(-1, 0, $SQLITE_DONE) - ReDim $aNames[$avDataCnt[0]] - Local $avColName - For $iCnt = 0 To $avDataCnt[0] - 1 - $avColName = DllCall($__g_hDll_SQLite, "wstr:cdecl", "sqlite3_column_name16", "ptr", $hQuery, "int", $iCnt) - If @error Then Return SetError(2, @error, $SQLITE_MISUSE) ; DllCall error - $aNames[$iCnt] = $avColName[0] - Next - Return $SQLITE_OK -EndFunc ;==>_SQLite_FetchNames - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian), jchd -; =============================================================================================================================== -Func _SQLite_QuerySingleRow($hDB, $sSQL, ByRef $aRow) - $aRow = '' - If __SQLite_hChk($hDB, 2) Then Return SetError(@error, 0, $SQLITE_MISUSE) - Local $hQuery - Local $iRval = _SQLite_Query($hDB, $sSQL, $hQuery) - If @error Then - _SQLite_QueryFinalize($hQuery) - Return SetError(1, 0, $iRval) - Else - $iRval = _SQLite_FetchData($hQuery, $aRow) - If $iRval = $SQLITE_OK Then - _SQLite_QueryFinalize($hQuery) - If @error Then - Return SetError(4, 0, $iRval) - Else - Return $SQLITE_OK - EndIf - Else - _SQLite_QueryFinalize($hQuery) - Return SetError(3, 0, $iRval) - EndIf - EndIf -EndFunc ;==>_SQLite_QuerySingleRow - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func _SQLite_SQLiteExe($sDatabaseFile, $sInput, ByRef $sOutput, $sSQLiteExeFilename = "sqlite3.exe", $bDebug = False) - If $sSQLiteExeFilename = -1 Or $sSQLiteExeFilename = Default Then - $sSQLiteExeFilename = "sqlite3.exe" - If Not FileExists($sSQLiteExeFilename) Then - Local $sInlineVersion = "_" & ""; Call('__SQLite_Inline_Version') - If @error Then $sInlineVersion = "" ; no valid SQLite version define so use any version - $sSQLiteExeFilename = StringReplace($sSQLiteExeFilename, ".exe", "") & $sInlineVersion & ".exe" - If Not FileExists($sSQLiteExeFilename) Then Return SetError(2, 0, $SQLITE_MISUSE) ; Can't Found sqlite3.exe -;~ $sSQLiteExeFilename = __SQLite_Download_SQLite3File($sSQLiteExe_FilePath, "sqlite3", $sInlineVersion, ".exe") -;~ If @error Then Return SetError(2, 0, $SQLITE_MISUSE) ; Can't Found sqlite3.exe -;~ If StringInStr($sSQLiteExeFilename, "\") = 0 Then $sSQLiteExeFilename = $sSQLiteExe_FilePath & $sSQLiteExeFilename - EndIf - EndIf - If Not FileExists($sDatabaseFile) Then - Local $hNewFile = FileOpen($sDatabaseFile, $FO_OVERWRITE + $FO_CREATEPATH) - If $hNewFile = -1 Then - Return SetError(1, 0, $SQLITE_CANTOPEN) ; Can't Create new Database - EndIf - FileClose($hNewFile) - EndIf - Local $sInputFile = _TempFile(), $sOutputFile = _TempFile(), $iRval = $SQLITE_OK - Local $hInputFile = FileOpen($sInputFile, $FO_OVERWRITE) - If $hInputFile > -1 Then - $sInput = ".output stdout" & @CRLF & $sInput - FileWrite($hInputFile, $sInput) - FileClose($hInputFile) - Local $sCmd = @ComSpec & " /c " & FileGetShortName($sSQLiteExeFilename) & ' "' _ - & FileGetShortName($sDatabaseFile) _ - & '" > "' & FileGetShortName($sOutputFile) _ - & '" < "' & FileGetShortName($sInputFile) & '"' - Local $nErrorLevel = RunWait($sCmd, @WorkingDir, @SW_HIDE) - If $bDebug = True Then - Local $nErrorTemp = @error - If @error Then __SQLite_Print('@@ Debug(_SQLite_SQLiteExe) : $sCmd = ' & $sCmd & @CRLF & '>ErrorLevel: ' & $nErrorLevel & @CRLF) - SetError($nErrorTemp) - EndIf - If @error = 1 Or $nErrorLevel = 1 Then - $iRval = $SQLITE_MISUSE ; SQLite.exe not found - Else - $sOutput = FileRead($sOutputFile, FileGetSize($sOutputFile)) - If StringInStr($sOutput, "SQL error:", 1) > 0 Or StringInStr($sOutput, "Incomplete SQL:", 1) > 0 Then $iRval = $SQLITE_ERROR ; SQL error / Incomplete SQL - EndIf - Else - $iRval = $SQLITE_CANTOPEN ; Can't open Input File - EndIf - If FileExists($sInputFile) Then FileDelete($sInputFile) - Switch $iRval - Case $SQLITE_MISUSE - SetError(2) - Case $SQLITE_ERROR - SetError(3) - Case $SQLITE_CANTOPEN - SetError(4) - EndSwitch - Return $iRval -EndFunc ;==>_SQLite_SQLiteExe - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_Encode($vData) - If IsNumber($vData) Then $vData = String($vData) - If Not IsString($vData) And Not IsBinary($vData) Then Return SetError(1, 0, "") - Local $vRval = "X'" - If StringLower(StringLeft($vData, 2)) = "0x" And Not IsBinary($vData) Then - ; BinaryString would mess this up... - For $iCnt = 1 To StringLen($vData) - $vRval &= Hex(Asc(StringMid($vData, $iCnt, 1)), 2) - Next - Else - ; BinaryString is Faster - If Not IsBinary($vData) Then $vData = StringToBinary($vData, 4) - $vRval &= Hex($vData) - EndIf - $vRval &= "'" - Return $vRval -EndFunc ;==>_SQLite_Encode - -; #FUNCTION# ==================================================================================================================== -; Author ........: piccaso (Fida Florian) -; Modified.......: jchd -; =============================================================================================================================== -Func _SQLite_Escape($sString, $iBuffSize = Default) - If $__g_hDll_SQLite = 0 Then Return SetError(1, $SQLITE_MISUSE, "") - If IsNumber($sString) Then $sString = String($sString) ; to help number passing common error - Local $tSQL8 = __SQLite_StringToUtf8Struct($sString) - If @error Then Return SetError(2, @error, 0) - Local $aRval = DllCall($__g_hDll_SQLite, "ptr:cdecl", "sqlite3_mprintf", "str", "'%q'", "struct*", $tSQL8) - If @error Then Return SetError(1, @error, "") ; DllCall error - If $iBuffSize = Default Or $iBuffSize < 1 Then $iBuffSize = -1 - Local $sResult = __SQLite_szStringRead($aRval[0], $iBuffSize) - If @error Then Return SetError(3, @error, "") ; DllCall error - DllCall($__g_hDll_SQLite, "none:cdecl", "sqlite3_free", "ptr", $aRval[0]) - Return $sResult -EndFunc ;==>_SQLite_Escape - -; #FUNCTION# ==================================================================================================================== -; Author ........: jchd -; =============================================================================================================================== -Func _SQLite_FastEncode($vData) - If Not IsBinary($vData) Then Return SetError(1, 0, "") - Return "X'" & Hex($vData) & "'" -EndFunc ;==>_SQLite_FastEncode - -; #FUNCTION# ==================================================================================================================== -; Author ........: jchd -; =============================================================================================================================== -Func _SQLite_FastEscape($sString) - If IsNumber($sString) Then $sString = String($sString) ; don't raise error if passing a numeric parameter - If Not IsString($sString) Then Return SetError(1, 0, "") - Return ("'" & StringReplace($sString, "'", "''", 0, $STR_CASESENSE) & "'") -EndFunc ;==>_SQLite_FastEscape - -#Region SQLite.au3 Internal Functions -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __xxx -; Author ........: piccaso (Fida Florian) -; =============================================================================================================================== -Func __SQLite_hChk(ByRef $hGeneric, $nError, $bDB = True) - If $__g_hDll_SQLite = 0 Then Return SetError(1, $SQLITE_MISUSE, $SQLITE_MISUSE) - If $hGeneric = -1 Or $hGeneric = "" Or $hGeneric = Default Then - If Not $bDB Then Return SetError($nError, 0, $SQLITE_ERROR) - $hGeneric = $__g_hDB_SQLite - EndIf - If Not $__g_bSafeModeState_SQLite Then Return $SQLITE_OK - If $bDB Then - If _ArraySearch($__g_ahDBs_SQLite, $hGeneric) > 0 Then Return $SQLITE_OK - Else - If _ArraySearch($__g_ahQuerys_SQLite, $hGeneric) > 0 Then Return $SQLITE_OK - EndIf - Return SetError($nError, 0, $SQLITE_ERROR) -EndFunc ;==>__SQLite_hChk - -Func __SQLite_hAdd(ByRef $ahLists, $hGeneric) - _ArrayAdd($ahLists, $hGeneric) -EndFunc ;==>__SQLite_hAdd - -Func __SQLite_hDel(ByRef $ahLists, $hGeneric) - Local $iElement = _ArraySearch($ahLists, $hGeneric) - If $iElement > 0 Then _ArrayDelete($ahLists, $iElement) -EndFunc ;==>__SQLite_hDel - -Func __SQLite_VersCmp($sFile, $sVersion) - ; sqlite3_libversion_number cannot be used as it does not contain maintenance number as X.Y.Z.M - Local $avRval = DllCall($sFile, "str:cdecl", "sqlite3_libversion") - If @error Then Return $SQLITE_CORRUPT ; Not SQLite3.dll or Not found - - Local $sFileVersion = StringSplit($avRval[0], ".") - Local $iMaintVersion = 0 - If $sFileVersion[0] = 4 Then $iMaintVersion = $sFileVersion[4] - $sFileVersion = (($sFileVersion[1] * 1000 + $sFileVersion[2]) * 1000 + $sFileVersion[3]) * 100 + $iMaintVersion - If $sVersion < 10000000 Then $sVersion = $sVersion * 100 ; SQLite.dll.au3::__SQLite_Inline_Version() before 3.7.0.1 does not contain maintenance number - - If $sFileVersion >= $sVersion Then Return $SQLITE_OK ; Version OK - Return $SQLITE_MISMATCH ; Version Older -EndFunc ;==>__SQLite_VersCmp - -Func __SQLite_hDbg() - __SQLite_Print("State : " & $__g_bSafeModeState_SQLite & @CRLF) - Local $aTmp = $__g_ahDBs_SQLite - For $i = 0 To UBound($aTmp) - 1 - __SQLite_Print("$__g_ahDBs_SQLite -> [" & $i & "]" & $aTmp[$i] & @CRLF) - Next - $aTmp = $__g_ahQuerys_SQLite - For $i = 0 To UBound($aTmp) - 1 - __SQLite_Print("$__g_ahQuerys_SQLite -> [" & $i & "]" & $aTmp[$i] & @CRLF) - Next -EndFunc ;==>__SQLite_hDbg - -Func __SQLite_ReportError($hDB, $sFunction, $sQuery = Default, $sError = Default, $vReturnValue = Default, $iCurErr = @error, $iCurExt = @extended) - If @Compiled Then Return SetError($iCurErr, $iCurExt) - If $sError = Default Then $sError = _SQLite_ErrMsg($hDB) - If $sQuery = Default Then $sQuery = "" - Local $sOut = "! SQLite.au3 Error" & @CRLF - $sOut &= "--> Function: " & $sFunction & @CRLF - If $sQuery <> "" Then $sOut &= "--> Query: " & $sQuery & @CRLF - $sOut &= "--> Error: " & $sError & @CRLF - __SQLite_Print($sOut & @CRLF) - If Not ($vReturnValue = Default) Then Return SetError($iCurErr, $iCurExt, $vReturnValue) - Return SetError($iCurErr, $iCurExt) -EndFunc ;==>__SQLite_ReportError - -Func __SQLite_szStringRead($pPtr, $iMaxLen = -1) - If $pPtr = 0 Then Return "" - If $__g_hMsvcrtDll_SQLite < 1 Then $__g_hMsvcrtDll_SQLite = DllOpen("msvcrt.dll") - Local $aStrLen = DllCall($__g_hMsvcrtDll_SQLite, "ulong_ptr:cdecl", "strlen", "ptr", $pPtr) - If @error Then Return SetError(1, @error, "") ; DllCall error - Local $iLen = $aStrLen[0] + 1 - Local $tString = DllStructCreate("byte[" & $iLen & "]", $pPtr) - If @error Then Return SetError(2, @error, "") - Local $iError = 0 - Local $sRtn = __SQLite_Utf8StructToString($tString) - If @error Then - $iError = 3 - EndIf - If $iMaxLen <= 0 Then - Return SetError($iError, @extended, $sRtn) - Else - Return SetError($iError, @extended, StringLeft($sRtn, $iMaxLen)) - EndIf -EndFunc ;==>__SQLite_szStringRead - -Func __SQLite_szFree($pPtr, $iCurErr = @error) - If $pPtr <> 0 Then DllCall($__g_hDll_SQLite, "none:cdecl", "sqlite3_free", "ptr", $pPtr) - SetError($iCurErr) -EndFunc ;==>__SQLite_szFree - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SQLite_StringToUtf8Struct -; Description ...: UTF-16 to UTF-8 (as struct) conversion -; Syntax.........: __SQLite_StringToUtf8Struct ( $sString ) -; Parameters ....: $sString - String to be converted -; Return values .: Success - Utf8 structure -; Failure - Set @error -; Author ........: jchd -; Modified.......: jpm -; =============================================================================================================================== -Func __SQLite_StringToUtf8Struct($sString) - Local $aResult = DllCall("kernel32.dll", "int", "WideCharToMultiByte", "uint", 65001, "dword", 0, "wstr", $sString, "int", -1, _ - "ptr", 0, "int", 0, "ptr", 0, "ptr", 0) - If @error Then Return SetError(1, @error, "") ; DllCall error - Local $tText = DllStructCreate("char[" & $aResult[0] & "]") - $aResult = DllCall("kernel32.dll", "int", "WideCharToMultiByte", "uint", 65001, "dword", 0, "wstr", $sString, "int", -1, _ - "struct*", $tText, "int", $aResult[0], "ptr", 0, "ptr", 0) - If @error Then Return SetError(2, @error, "") ; DllCall error - Return $tText -EndFunc ;==>__SQLite_StringToUtf8Struct - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SQLite_Utf8StructToString -; Description ...: UTF-8 (as struct) to UTF-16 conversion -; Syntax.........: __SQLite_Utf8StructToString ( $tText ) -; Parameters ....: $tText - Uft8 Structure -; Return values .: Success - String converted -; Failure - Set @error -; Author ........: jchd -; Modified.......: jpm -; =============================================================================================================================== -Func __SQLite_Utf8StructToString($tText) - Local $aResult = DllCall("kernel32.dll", "int", "MultiByteToWideChar", "uint", 65001, "dword", 0, "struct*", $tText, "int", -1, _ - "ptr", 0, "int", 0) - If @error Then Return SetError(1, @error, "") ; DllCall error - Local $tWstr = DllStructCreate("wchar[" & $aResult[0] & "]") - $aResult = DllCall("kernel32.dll", "int", "MultiByteToWideChar", "uint", 65001, "dword", 0, "struct*", $tText, "int", -1, _ - "struct*", $tWstr, "int", $aResult[0]) - If @error Then Return SetError(2, @error, "") ; DllCall error - Return DllStructGetData($tWstr, 1) -EndFunc ;==>__SQLite_Utf8StructToString - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SQLite_ConsoleWrite -; Description ...: write an ANSI or UNICODE String to Console -; Syntax.........: __SQLite_ConsoleWrite ( $sText ) -; Parameters ....: $sText - Unicode String -; Return values .: none -; Author ........: jchd -; Modified.......: jpm -; =============================================================================================================================== -Func __SQLite_ConsoleWrite($sText) - ConsoleWrite($sText) -EndFunc ;==>__SQLite_ConsoleWrite - -;~ Func __SQLite_Download_SQLite3File(ByRef $sFilePath, $sFileName, $sVersion, $sFileExt, $iScripLineNumber = @ScriptLineNumber) -;~ Local $sRetFile = $sFileName & $sVersion & $sFileExt -;~ Local $sTempfile = $sFilePath & $sRetFile -;~ If FileExists($sTempfile) Then Return $sTempfile - -;~ If Not __SQLite_Download_Confirmation("Sqlite File Download") Then Return SetError(-1, 0, "") - -;~ If Not FileExists($sFilePath) Then DirCreate($sFilePath) - -;~ Local $sURL = "http://www.autoitscript.com/autoit3/files/beta/autoit/archive/sqlite.new/" -;~ Local $iInetRet = InetGet($sURL & $sRetFile, $sTempfile, $INET_FORCERELOAD) -;~ Local $iError = @error -;~ If $iError Then __SQLite_Print('@@ Debug(' & $iScripLineNumber & ') : __SQLite_Download_SQLite3File : $URL = ' & $sURL & $sFileName & $sFileExt & @CRLF & @TAB & '$sTempfile = ' & $sTempfile & @CRLF & '>Error: ' & $iError & @CRLF) - -;~ Local $sModifiedTime = Call('__SQLite_Inline_Modified') -;~ If Not @error Then FileSetTime($sTempfile, $sModifiedTime, 0) ; update filetime if defined - -;~ Return SetError($iError, $iInetRet, $sRetFile) -;~ EndFunc ;==>__SQLite_Download_SQLite3File - -;~ Func __SQLite_Download_Confirmation($sTitle) -;~ Local $sTemp = _TempFile(@TempDir, "", "") -;~ Local $aArray = StringRegExp($sTemp, "^\h*((?:\\\\\?\\)*(\\\\[^\?\/\\]+|[A-Za-z]:)?(.*[\/\\]\h*)?((?:[^\.\/\\]|(?(?=\.[^\/\\]*\.)\.))*)?([^\/\\]*))$", $STR_REGEXPARRAYMATCH) -;~ Local $s = InputBox($sTitle, "Please confirm by typing :" & @lf & @lf & " " & $aArray[3] & @lf & @lf & "It will be dowloaded only on first use") -;~ If $s == $aArray[3] Then Return True -;~ Return False -;~ EndFunc ;==>__SQLite_Download_Confirmation - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SQLite_Print -; Description ...: Prints an ANSI or UNICODE String to the user-specified callback function. -; Syntax.........: __SQLite_Print ( $sText ) -; Parameters ....: $sText - Unicode String -; Return values .: none -; Author ........: Valik -; =============================================================================================================================== -Func __SQLite_Print($sText) - ; Don't do anything if there is no callback registered. - If IsFunc($__g_hPrintCallback_SQLite) Then - If $__g_bUTF8ErrorMsg_SQLite Then - ; can be used when sending to application such SciTE configured with output.code.page=65001 - Local $tStr8 = __SQLite_StringToUtf8Struct($sText) - $__g_hPrintCallback_SQLite(DllStructGetData($tStr8, 1)) - Else - $__g_hPrintCallback_SQLite($sText) - EndIf - EndIf -EndFunc ;==>__SQLite_Print - -#EndRegion SQLite.au3 Internal Functions diff --git a/build/Include/SQLite.dll.au3 b/build/Include/SQLite.dll.au3 deleted file mode 100644 index 8e97c37eb..000000000 --- a/build/Include/SQLite.dll.au3 +++ /dev/null @@ -1,8 +0,0 @@ -; Inline ..\..\bin\SQLite\sqlite3.dll, Creation Time: 2015/09/10 11:35:01 -#include-once -Func __SQLite_Inline_Modified() - Return "20150910113501" ; 2015/09/10 11:35:01 -EndFunc ;==>__SQLite_Inline_Modified -Func __SQLite_Inline_Version() - Return "300801101" ; 3.8.11.1 -EndFunc ;==>__SQLite_Inline_Version diff --git a/build/Include/ScreenCapture.au3 b/build/Include/ScreenCapture.au3 deleted file mode 100644 index 708d34d57..000000000 --- a/build/Include/ScreenCapture.au3 +++ /dev/null @@ -1,217 +0,0 @@ -#include-once - -#include "GDIPlus.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: ScreenCapture -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Screen Capture management. -; This module allows you to copy the screen or a region of the screen and save it to file. Depending on the type -; of image, you can set various image parameters such as pixel format, quality and compression. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_iBMPFormat = $GDIP_PXF24RGB -Global $__g_iJPGQuality = 100 -Global $__g_iTIFColorDepth = 24 -Global $__g_iTIFCompression = $GDIP_EVTCOMPRESSIONLZW -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__SCREENCAPTURECONSTANT_SM_CXSCREEN = 0 -Global Const $__SCREENCAPTURECONSTANT_SM_CYSCREEN = 1 -Global Const $__SCREENCAPTURECONSTANT_SRCCOPY = 0x00CC0020 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _ScreenCapture_Capture -; _ScreenCapture_CaptureWnd -; _ScreenCapture_SaveImage -; _ScreenCapture_SetBMPFormat -; _ScreenCapture_SetJPGQuality -; _ScreenCapture_SetTIFColorDepth -; _ScreenCapture_SetTIFCompression -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ScreenCapture_Capture($sFileName = "", $iLeft = 0, $iTop = 0, $iRight = -1, $iBottom = -1, $bCursor = True) - Local $bRet = False - If $iRight = -1 Then $iRight = _WinAPI_GetSystemMetrics($__SCREENCAPTURECONSTANT_SM_CXSCREEN) - 1 - If $iBottom = -1 Then $iBottom = _WinAPI_GetSystemMetrics($__SCREENCAPTURECONSTANT_SM_CYSCREEN) - 1 - If $iRight < $iLeft Then Return SetError(-1, 0, $bRet) - If $iBottom < $iTop Then Return SetError(-2, 0, $bRet) - - Local $iW = ($iRight - $iLeft) + 1 - Local $iH = ($iBottom - $iTop) + 1 - Local $hWnd = _WinAPI_GetDesktopWindow() - Local $hDDC = _WinAPI_GetDC($hWnd) - Local $hCDC = _WinAPI_CreateCompatibleDC($hDDC) - Local $hBMP = _WinAPI_CreateCompatibleBitmap($hDDC, $iW, $iH) - _WinAPI_SelectObject($hCDC, $hBMP) - _WinAPI_BitBlt($hCDC, 0, 0, $iW, $iH, $hDDC, $iLeft, $iTop, $__SCREENCAPTURECONSTANT_SRCCOPY) - - If $bCursor Then - Local $aCursor = _WinAPI_GetCursorInfo() - If Not @error And $aCursor[1] Then - $bCursor = True ; Cursor info was found. - Local $hIcon = _WinAPI_CopyIcon($aCursor[2]) - Local $aIcon = _WinAPI_GetIconInfo($hIcon) - If Not @error Then - _WinAPI_DeleteObject($aIcon[4]) ; delete bitmap mask return by _WinAPI_GetIconInfo() - If $aIcon[5] <> 0 Then _WinAPI_DeleteObject($aIcon[5]); delete bitmap hbmColor return by _WinAPI_GetIconInfo() - _WinAPI_DrawIcon($hCDC, $aCursor[3] - $aIcon[2] - $iLeft, $aCursor[4] - $aIcon[3] - $iTop, $hIcon) - EndIf - _WinAPI_DestroyIcon($hIcon) - EndIf - EndIf - - _WinAPI_ReleaseDC($hWnd, $hDDC) - _WinAPI_DeleteDC($hCDC) - If $sFileName = "" Then Return $hBMP - - $bRet = _ScreenCapture_SaveImage($sFileName, $hBMP, True) - Return SetError(@error, @extended, $bRet) -EndFunc ;==>_ScreenCapture_Capture - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm based on Kafu -; =============================================================================================================================== -Func _ScreenCapture_CaptureWnd($sFileName, $hWnd, $iLeft = 0, $iTop = 0, $iRight = -1, $iBottom = -1, $bCursor = True) - If Not IsHWnd($hWnd) Then $hWnd = WinGetHandle($hWnd) - Local $tRECT = DllStructCreate($tagRECT) - ; needed to get rect when Aero theme is active : Thanks Kafu, Zedna - Local Const $DWMWA_EXTENDED_FRAME_BOUNDS = 9 - Local $bRet = DllCall("dwmapi.dll", "long", "DwmGetWindowAttribute", "hwnd", $hWnd, "dword", $DWMWA_EXTENDED_FRAME_BOUNDS, "struct*", $tRECT, "dword", DllStructGetSize($tRECT)) - If (@error Or $bRet[0] Or (Abs(DllStructGetData($tRECT, "Left")) + Abs(DllStructGetData($tRECT, "Top")) + _ - Abs(DllStructGetData($tRECT, "Right")) + Abs(DllStructGetData($tRECT, "Bottom"))) = 0) Then - $tRECT = _WinAPI_GetWindowRect($hWnd) - If @error Then Return SetError(@error + 10, @extended, False) - EndIf - - $iLeft += DllStructGetData($tRECT, "Left") - $iTop += DllStructGetData($tRECT, "Top") - If $iRight = -1 Then $iRight = DllStructGetData($tRECT, "Right") - DllStructGetData($tRECT, "Left") - 1 - If $iBottom = -1 Then $iBottom = DllStructGetData($tRECT, "Bottom") - DllStructGetData($tRECT, "Top") - 1 - $iRight += DllStructGetData($tRECT, "Left") - $iBottom += DllStructGetData($tRECT, "Top") - If $iLeft > DllStructGetData($tRECT, "Right") Then $iLeft = DllStructGetData($tRECT, "Left") - If $iTop > DllStructGetData($tRECT, "Bottom") Then $iTop = DllStructGetData($tRECT, "Top") - If $iRight > DllStructGetData($tRECT, "Right") Then $iRight = DllStructGetData($tRECT, "Right") - 1 - If $iBottom > DllStructGetData($tRECT, "Bottom") Then $iBottom = DllStructGetData($tRECT, "Bottom") - 1 - $bRet = _ScreenCapture_Capture($sFileName, $iLeft, $iTop, $iRight, $iBottom, $bCursor) - Return SetError(@error, @extended, $bRet) -EndFunc ;==>_ScreenCapture_CaptureWnd - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ScreenCapture_SaveImage($sFileName, $hBitmap, $bFreeBmp = True) - _GDIPlus_Startup() - If @error Then Return SetError(-1, -1, False) - - Local $sExt = StringUpper(__GDIPlus_ExtractFileExt($sFileName)) - Local $sCLSID = _GDIPlus_EncodersGetCLSID($sExt) - If $sCLSID = "" Then Return SetError(-2, -2, False) - Local $hImage = _GDIPlus_BitmapCreateFromHBITMAP($hBitmap) - If @error Then Return SetError(-3, -3, False) - - Local $tData, $tParams - Switch $sExt - Case "BMP" - Local $iX = _GDIPlus_ImageGetWidth($hImage) - Local $iY = _GDIPlus_ImageGetHeight($hImage) - Local $hClone = _GDIPlus_BitmapCloneArea($hImage, 0, 0, $iX, $iY, $__g_iBMPFormat) - _GDIPlus_ImageDispose($hImage) - $hImage = $hClone - Case "JPG", "JPEG" - $tParams = _GDIPlus_ParamInit(1) - $tData = DllStructCreate("int Quality") - DllStructSetData($tData, "Quality", $__g_iJPGQuality) - _GDIPlus_ParamAdd($tParams, $GDIP_EPGQUALITY, 1, $GDIP_EPTLONG, DllStructGetPtr($tData)) - Case "TIF", "TIFF" - $tParams = _GDIPlus_ParamInit(2) - $tData = DllStructCreate("int ColorDepth;int Compression") - DllStructSetData($tData, "ColorDepth", $__g_iTIFColorDepth) - DllStructSetData($tData, "Compression", $__g_iTIFCompression) - _GDIPlus_ParamAdd($tParams, $GDIP_EPGCOLORDEPTH, 1, $GDIP_EPTLONG, DllStructGetPtr($tData, "ColorDepth")) - _GDIPlus_ParamAdd($tParams, $GDIP_EPGCOMPRESSION, 1, $GDIP_EPTLONG, DllStructGetPtr($tData, "Compression")) - EndSwitch - Local $pParams = 0 - If IsDllStruct($tParams) Then $pParams = $tParams - - Local $bRet = _GDIPlus_ImageSaveToFileEx($hImage, $sFileName, $sCLSID, $pParams) - _GDIPlus_ImageDispose($hImage) - If $bFreeBmp Then _WinAPI_DeleteObject($hBitmap) - _GDIPlus_Shutdown() - - Return SetError($bRet = False, 0, $bRet) -EndFunc ;==>_ScreenCapture_SaveImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ScreenCapture_SetBMPFormat($iFormat) - Switch $iFormat - Case 0 - $__g_iBMPFormat = $GDIP_PXF16RGB555 - Case 1 - $__g_iBMPFormat = $GDIP_PXF16RGB565 - Case 2 - $__g_iBMPFormat = $GDIP_PXF24RGB - Case 3 - $__g_iBMPFormat = $GDIP_PXF32RGB - Case 4 - $__g_iBMPFormat = $GDIP_PXF32ARGB - Case Else - $__g_iBMPFormat = $GDIP_PXF24RGB - EndSwitch -EndFunc ;==>_ScreenCapture_SetBMPFormat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ScreenCapture_SetJPGQuality($iQuality) - If $iQuality < 0 Then $iQuality = 0 - If $iQuality > 100 Then $iQuality = 100 - $__g_iJPGQuality = $iQuality -EndFunc ;==>_ScreenCapture_SetJPGQuality - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ScreenCapture_SetTIFColorDepth($iDepth) - Switch $iDepth - Case 24 - $__g_iTIFColorDepth = 24 - Case 32 - $__g_iTIFColorDepth = 32 - Case Else - $__g_iTIFColorDepth = 0 - EndSwitch -EndFunc ;==>_ScreenCapture_SetTIFColorDepth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _ScreenCapture_SetTIFCompression($iCompress) - Switch $iCompress - Case 1 - $__g_iTIFCompression = $GDIP_EVTCOMPRESSIONNONE - Case 2 - $__g_iTIFCompression = $GDIP_EVTCOMPRESSIONLZW - Case Else - $__g_iTIFCompression = 0 - EndSwitch -EndFunc ;==>_ScreenCapture_SetTIFCompression diff --git a/build/Include/ScrollBarConstants.au3 b/build/Include/ScrollBarConstants.au3 deleted file mode 100644 index dfaeee34a..000000000 --- a/build/Include/ScrollBarConstants.au3 +++ /dev/null @@ -1,11 +0,0 @@ -#include-once - -#include "ScrollbarsConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: ScrollBar_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Kept for compatibility with old naming. -; Author(s) .....: jpm -; =============================================================================================================================== diff --git a/build/Include/ScrollBarsConstants.au3 b/build/Include/ScrollBarsConstants.au3 deleted file mode 100644 index 309bf13ba..000000000 --- a/build/Include/ScrollBarsConstants.au3 +++ /dev/null @@ -1,51 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: ScrollBar_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for ScrollBar functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $SIF_POS = 0x04 -Global Const $SIF_PAGE = 0x02 -Global Const $SIF_RANGE = 0x01 -Global Const $SIF_TRACKPOS = 0x10 -Global Const $SIF_ALL = BitOR($SIF_RANGE, $SIF_PAGE, $SIF_POS, $SIF_TRACKPOS) - -Global Const $SB_HORZ = 0 -Global Const $SB_VERT = 1 -Global Const $SB_CTL = 2 -Global Const $SB_BOTH = 3 - -Global Const $SB_LINELEFT = 0 -Global Const $SB_LINERIGHT = 1 -Global Const $SB_PAGELEFT = 2 -Global Const $SB_PAGERIGHT = 3 - -Global Const $SB_THUMBPOSITION = 0x4 -Global Const $SB_THUMBTRACK = 0x5 -Global Const $SB_LINEDOWN = 1 -Global Const $SB_LINEUP = 0 -Global Const $SB_PAGEDOWN = 3 -Global Const $SB_PAGEUP = 2 -Global Const $SB_SCROLLCARET = 4 -Global Const $SB_TOP = 6 -Global Const $SB_BOTTOM = 7 - -Global Const $ESB_DISABLE_BOTH = 0x3 -Global Const $ESB_DISABLE_DOWN = 0x2 -Global Const $ESB_DISABLE_LEFT = 0x1 -Global Const $ESB_DISABLE_LTUP = $ESB_DISABLE_LEFT -Global Const $ESB_DISABLE_RIGHT = 0x2 -Global Const $ESB_DISABLE_RTDN = $ESB_DISABLE_RIGHT -Global Const $ESB_DISABLE_UP = 0x1 -Global Const $ESB_ENABLE_BOTH = 0x0 - -; Reserved IDs for System Objects -Global Const $OBJID_HSCROLL = 0xFFFFFFFA -Global Const $OBJID_VSCROLL = 0xFFFFFFFB -Global Const $OBJID_CLIENT = 0xFFFFFFFC -; =============================================================================================================================== diff --git a/build/Include/Security.au3 b/build/Include/Security.au3 deleted file mode 100644 index 5ee234280..000000000 --- a/build/Include/Security.au3 +++ /dev/null @@ -1,343 +0,0 @@ -#include-once - -#include "SecurityConstants.au3" -#include "WinAPIError.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Security -; AutoIt Version : 3.3.14.2 -; Description ...: Functions that assist with Security management. -; Author(s) .....: Paul Campbell (PaulIA), trancexx -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _Security__AdjustTokenPrivileges -; _Security__CreateProcessWithToken -; _Security__DuplicateTokenEx -; _Security__GetAccountSid -; _Security__GetLengthSid -; _Security__GetTokenInformation -; _Security__ImpersonateSelf -; _Security__IsValidSid -; _Security__LookupAccountName -; _Security__LookupAccountSid -; _Security__LookupPrivilegeValue -; _Security__OpenProcessToken -; _Security__OpenThreadToken -; _Security__OpenThreadTokenEx -; _Security__SetPrivilege -; _Security__SetTokenInformation -; _Security__SidToStringSid -; _Security__SidTypeStr -; _Security__StringSidToSid -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__AdjustTokenPrivileges($hToken, $bDisableAll, $tNewState, $iBufferLen, $tPrevState = 0, $pRequired = 0) - Local $aCall = DllCall("advapi32.dll", "bool", "AdjustTokenPrivileges", "handle", $hToken, "bool", $bDisableAll, "struct*", $tNewState, "dword", $iBufferLen, "struct*", $tPrevState, "struct*", $pRequired) - If @error Then Return SetError(@error, @extended, False) - - Return Not ($aCall[0] = 0) -EndFunc ;==>_Security__AdjustTokenPrivileges - -; #FUNCTION# ==================================================================================================================== -; Author ........: trancexx -; Modified.......: -; =============================================================================================================================== -Func _Security__CreateProcessWithToken($hToken, $iLogonFlags, $sCommandLine, $iCreationFlags, $sCurDir, $tSTARTUPINFO, $tPROCESS_INFORMATION) - Local $aCall = DllCall("advapi32.dll", "bool", "CreateProcessWithTokenW", "handle", $hToken, "dword", $iLogonFlags, "ptr", 0, "wstr", $sCommandLine, "dword", $iCreationFlags, "struct*", 0, "wstr", $sCurDir, "struct*", $tSTARTUPINFO, "struct*", $tPROCESS_INFORMATION) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, False) - - Return True -EndFunc ;==>_Security__CreateProcessWithToken - -; #FUNCTION# ==================================================================================================================== -; Author ........: trancexx -; Modified.......: -; =============================================================================================================================== -Func _Security__DuplicateTokenEx($hExistingToken, $iDesiredAccess, $iImpersonationLevel, $iTokenType) - Local $aCall = DllCall("advapi32.dll", "bool", "DuplicateTokenEx", "handle", $hExistingToken, "dword", $iDesiredAccess, "struct*", 0, "int", $iImpersonationLevel, "int", $iTokenType, "handle*", 0) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, 0) - - Return $aCall[6] -EndFunc ;==>_Security__DuplicateTokenEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Security__GetAccountSid($sAccount, $sSystem = "") - Local $aAcct = _Security__LookupAccountName($sAccount, $sSystem) - If @error Then Return SetError(@error, @extended, 0) - - If IsArray($aAcct) Then Return _Security__StringSidToSid($aAcct[0]) - Return '' -EndFunc ;==>_Security__GetAccountSid - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__GetLengthSid($pSID) - If Not _Security__IsValidSid($pSID) Then Return SetError(@error + 10, @extended, 0) - - Local $aCall = DllCall("advapi32.dll", "dword", "GetLengthSid", "struct*", $pSID) - If @error Then Return SetError(@error, @extended, 0) - - Return $aCall[0] -EndFunc ;==>_Security__GetLengthSid - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__GetTokenInformation($hToken, $iClass) - Local $aCall = DllCall("advapi32.dll", "bool", "GetTokenInformation", "handle", $hToken, "int", $iClass, "struct*", 0, "dword", 0, "dword*", 0) - If @error Or Not $aCall[5] Then Return SetError(@error + 10, @extended, 0) - Local $iLen = $aCall[5] - - Local $tBuffer = DllStructCreate("byte[" & $iLen & "]") - $aCall = DllCall("advapi32.dll", "bool", "GetTokenInformation", "handle", $hToken, "int", $iClass, "struct*", $tBuffer, "dword", DllStructGetSize($tBuffer), "dword*", 0) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, 0) - - Return $tBuffer -EndFunc ;==>_Security__GetTokenInformation - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__ImpersonateSelf($iLevel = $SECURITYIMPERSONATION) - Local $aCall = DllCall("advapi32.dll", "bool", "ImpersonateSelf", "int", $iLevel) - If @error Then Return SetError(@error, @extended, False) - - Return Not ($aCall[0] = 0) -EndFunc ;==>_Security__ImpersonateSelf - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__IsValidSid($pSID) - Local $aCall = DllCall("advapi32.dll", "bool", "IsValidSid", "struct*", $pSID) - If @error Then Return SetError(@error, @extended, False) - - Return Not ($aCall[0] = 0) -EndFunc ;==>_Security__IsValidSid - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__LookupAccountName($sAccount, $sSystem = "") - Local $tData = DllStructCreate("byte SID[256]") - Local $aCall = DllCall("advapi32.dll", "bool", "LookupAccountNameW", "wstr", $sSystem, "wstr", $sAccount, "struct*", $tData, "dword*", DllStructGetSize($tData), "wstr", "", "dword*", DllStructGetSize($tData), "int*", 0) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, 0) - - Local $aAcct[3] - $aAcct[0] = _Security__SidToStringSid(DllStructGetPtr($tData, "SID")) - $aAcct[1] = $aCall[5] ; Domain - $aAcct[2] = $aCall[7] ; SNU - - Return $aAcct -EndFunc ;==>_Security__LookupAccountName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__LookupAccountSid($vSID, $sSystem = "") - Local $pSID, $aAcct[3] - - If IsString($vSID) Then - $pSID = _Security__StringSidToSid($vSID) - Else - $pSID = $vSID - EndIf - If Not _Security__IsValidSid($pSID) Then Return SetError(@error + 10, @extended, 0) - - Local $sTypeSystem = "ptr" - If $sSystem Then $sTypeSystem = "wstr" ; remote system is requested - - Local $aCall = DllCall("advapi32.dll", "bool", "LookupAccountSidW", $sTypeSystem, $sSystem, "struct*", $pSID, "wstr", "", "dword*", 65536, "wstr", "", "dword*", 65536, "int*", 0) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, 0) - - Local $aAcct[3] - $aAcct[0] = $aCall[3] ; Name - $aAcct[1] = $aCall[5] ; Domain - $aAcct[2] = $aCall[7] ; SNU - - Return $aAcct -EndFunc ;==>_Security__LookupAccountSid - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__LookupPrivilegeValue($sSystem, $sName) - Local $aCall = DllCall("advapi32.dll", "bool", "LookupPrivilegeValueW", "wstr", $sSystem, "wstr", $sName, "int64*", 0) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, 0) - - Return $aCall[3] ; LUID -EndFunc ;==>_Security__LookupPrivilegeValue - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__OpenProcessToken($hProcess, $iAccess) - Local $aCall = DllCall("advapi32.dll", "bool", "OpenProcessToken", "handle", $hProcess, "dword", $iAccess, "handle*", 0) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, 0) - - Return $aCall[3] -EndFunc ;==>_Security__OpenProcessToken - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__OpenThreadToken($iAccess, $hThread = 0, $bOpenAsSelf = False) - If $hThread = 0 Then - Local $aResult = DllCall("kernel32.dll", "handle", "GetCurrentThread") - If @error Then Return SetError(@error + 10, @extended, 0) - $hThread = $aResult[0] - EndIf - - Local $aCall = DllCall("advapi32.dll", "bool", "OpenThreadToken", "handle", $hThread, "dword", $iAccess, "bool", $bOpenAsSelf, "handle*", 0) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, 0) - - Return $aCall[4] ; Token -EndFunc ;==>_Security__OpenThreadToken - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__OpenThreadTokenEx($iAccess, $hThread = 0, $bOpenAsSelf = False) - Local $hToken = _Security__OpenThreadToken($iAccess, $hThread, $bOpenAsSelf) - If $hToken = 0 Then - Local Const $ERROR_NO_TOKEN = 1008 - If _WinAPI_GetLastError() <> $ERROR_NO_TOKEN Then Return SetError(20, _WinAPI_GetLastError(), 0) - If Not _Security__ImpersonateSelf() Then Return SetError(@error + 10, _WinAPI_GetLastError(), 0) - $hToken = _Security__OpenThreadToken($iAccess, $hThread, $bOpenAsSelf) - If $hToken = 0 Then Return SetError(@error, _WinAPI_GetLastError(), 0) - EndIf - - Return $hToken -EndFunc ;==>_Security__OpenThreadTokenEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__SetPrivilege($hToken, $sPrivilege, $bEnable) - Local $iLUID = _Security__LookupPrivilegeValue("", $sPrivilege) - If $iLUID = 0 Then Return SetError(@error + 10, @extended, False) - - Local Const $tagTOKEN_PRIVILEGES = "dword Count;align 4;int64 LUID;dword Attributes" - Local $tCurrState = DllStructCreate($tagTOKEN_PRIVILEGES) - Local $iCurrState = DllStructGetSize($tCurrState) - Local $tPrevState = DllStructCreate($tagTOKEN_PRIVILEGES) - Local $iPrevState = DllStructGetSize($tPrevState) - Local $tRequired = DllStructCreate("int Data") - ; Get current privilege setting - DllStructSetData($tCurrState, "Count", 1) - DllStructSetData($tCurrState, "LUID", $iLUID) - If Not _Security__AdjustTokenPrivileges($hToken, False, $tCurrState, $iCurrState, $tPrevState, $tRequired) Then Return SetError(2, @error, False) - - ; Set privilege based on prior setting - DllStructSetData($tPrevState, "Count", 1) - DllStructSetData($tPrevState, "LUID", $iLUID) - Local $iAttributes = DllStructGetData($tPrevState, "Attributes") - If $bEnable Then - $iAttributes = BitOR($iAttributes, $SE_PRIVILEGE_ENABLED) - Else - $iAttributes = BitAND($iAttributes, BitNOT($SE_PRIVILEGE_ENABLED)) - EndIf - DllStructSetData($tPrevState, "Attributes", $iAttributes) - - If Not _Security__AdjustTokenPrivileges($hToken, False, $tPrevState, $iPrevState, $tCurrState, $tRequired) Then _ - Return SetError(3, @error, False) - - Return True -EndFunc ;==>_Security__SetPrivilege - -; #FUNCTION# ==================================================================================================================== -; Author ........: trancexx -; Modified.......: -; =============================================================================================================================== -Func _Security__SetTokenInformation($hToken, $iTokenInformation, $vTokenInformation, $iTokenInformationLength) - Local $aCall = DllCall("advapi32.dll", "bool", "SetTokenInformation", "handle", $hToken, "int", $iTokenInformation, "struct*", $vTokenInformation, "dword", $iTokenInformationLength) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, False) - - Return True -EndFunc ;==>_Security__SetTokenInformation - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__SidToStringSid($pSID) - If Not _Security__IsValidSid($pSID) Then Return SetError(@error + 10, 0, "") - - Local $aCall = DllCall("advapi32.dll", "bool", "ConvertSidToStringSidW", "struct*", $pSID, "ptr*", 0) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, "") - Local $pStringSid = $aCall[2] - - Local $aLen = DllCall("kernel32.dll", "int", "lstrlenW", "struct*", $pStringSid) - Local $sSID = DllStructGetData(DllStructCreate("wchar Text[" & $aLen[0] + 1 & "]", $pStringSid), "Text") - DllCall("kernel32.dll", "handle", "LocalFree", "handle", $pStringSid) - - Return $sSID -EndFunc ;==>_Security__SidToStringSid - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _Security__SidTypeStr($iType) - Switch $iType - Case $SIDTYPEUSER - Return "User" - Case $SIDTYPEGROUP - Return "Group" - Case $SIDTYPEDOMAIN - Return "Domain" - Case $SIDTYPEALIAS - Return "Alias" - Case $SIDTYPEWELLKNOWNGROUP - Return "Well Known Group" - Case $SIDTYPEDELETEDACCOUNT - Return "Deleted Account" - Case $SIDTYPEINVALID - Return "Invalid" - Case $SIDTYPEUNKNOWN - Return "Unknown Type" - Case $SIDTYPECOMPUTER - Return "Computer" - Case $SIDTYPELABEL - Return "A mandatory integrity label SID" - Case Else - Return "Unknown SID Type" - EndSwitch -EndFunc ;==>_Security__SidTypeStr - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _Security__StringSidToSid($sSID) - Local $aCall = DllCall("advapi32.dll", "bool", "ConvertStringSidToSidW", "wstr", $sSID, "ptr*", 0) - If @error Or Not $aCall[0] Then Return SetError(@error, @extended, 0) - Local $pSID = $aCall[2] - - Local $tBuffer = DllStructCreate("byte Data[" & _Security__GetLengthSid($pSID) & "]", $pSID) - Local $tSID = DllStructCreate("byte Data[" & DllStructGetSize($tBuffer) & "]") - DllStructSetData($tSID, "Data", DllStructGetData($tBuffer, "Data")) - DllCall("kernel32.dll", "handle", "LocalFree", "handle", $pSID) - - Return $tSID -EndFunc ;==>_Security__StringSidToSid diff --git a/build/Include/SecurityConstants.au3 b/build/Include/SecurityConstants.au3 deleted file mode 100644 index c2882183b..000000000 --- a/build/Include/SecurityConstants.au3 +++ /dev/null @@ -1,141 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Security_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for Security functions. -; Author(s) .....: Paul Campbell (PaulIA), trancexx -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $SE_ASSIGNPRIMARYTOKEN_NAME = "SeAssignPrimaryTokenPrivilege" -Global Const $SE_AUDIT_NAME = "SeAuditPrivilege" -Global Const $SE_BACKUP_NAME = "SeBackupPrivilege" -Global Const $SE_CHANGE_NOTIFY_NAME = "SeChangeNotifyPrivilege" -Global Const $SE_CREATE_GLOBAL_NAME = "SeCreateGlobalPrivilege" -Global Const $SE_CREATE_PAGEFILE_NAME = "SeCreatePagefilePrivilege" -Global Const $SE_CREATE_PERMANENT_NAME = "SeCreatePermanentPrivilege" -Global Const $SE_CREATE_SYMBOLIC_LINK_NAME = 'SeCreateSymbolicLinkPrivilege' -Global Const $SE_CREATE_TOKEN_NAME = "SeCreateTokenPrivilege" -Global Const $SE_DEBUG_NAME = "SeDebugPrivilege" -Global Const $SE_ENABLE_DELEGATION_NAME = "SeEnableDelegationPrivilege" -Global Const $SE_IMPERSONATE_NAME = "SeImpersonatePrivilege" -Global Const $SE_INC_BASE_PRIORITY_NAME = "SeIncreaseBasePriorityPrivilege" -Global Const $SE_INC_WORKING_SET_NAME = 'SeIncreaseWorkingSetPrivilege' -Global Const $SE_INCREASE_QUOTA_NAME = "SeIncreaseQuotaPrivilege" -Global Const $SE_LOAD_DRIVER_NAME = "SeLoadDriverPrivilege" -Global Const $SE_LOCK_MEMORY_NAME = "SeLockMemoryPrivilege" -Global Const $SE_MACHINE_ACCOUNT_NAME = "SeMachineAccountPrivilege" -Global Const $SE_MANAGE_VOLUME_NAME = "SeManageVolumePrivilege" -Global Const $SE_PROF_SINGLE_PROCESS_NAME = "SeProfileSingleProcessPrivilege" -Global Const $SE_RELABEL_NAME = 'SeRelabelPrivilege' -Global Const $SE_REMOTE_SHUTDOWN_NAME = "SeRemoteShutdownPrivilege" -Global Const $SE_RESTORE_NAME = "SeRestorePrivilege" -Global Const $SE_SECURITY_NAME = "SeSecurityPrivilege" -Global Const $SE_SHUTDOWN_NAME = "SeShutdownPrivilege" -Global Const $SE_SYNC_AGENT_NAME = "SeSyncAgentPrivilege" -Global Const $SE_SYSTEM_ENVIRONMENT_NAME = "SeSystemEnvironmentPrivilege" -Global Const $SE_SYSTEM_PROFILE_NAME = "SeSystemProfilePrivilege" -Global Const $SE_SYSTEMTIME_NAME = "SeSystemtimePrivilege" -Global Const $SE_TAKE_OWNERSHIP_NAME = "SeTakeOwnershipPrivilege" -Global Const $SE_TCB_NAME = "SeTcbPrivilege" -Global Const $SE_TIME_ZONE_NAME = 'SeTimeZonePrivilege' -Global Const $SE_TRUSTED_CREDMAN_ACCESS_NAME = 'SeTrustedCredManAccessPrivilege' -Global Const $SE_UNSOLICITED_INPUT_NAME = "SeUnsolicitedInputPrivilege" -Global Const $SE_UNDOCK_NAME = "SeUndockPrivilege" - -Global Const $SE_PRIVILEGE_ENABLED_BY_DEFAULT = 0x00000001 -Global Const $SE_PRIVILEGE_ENABLED = 0x00000002 -Global Const $SE_PRIVILEGE_REMOVED = 0x00000004 -Global Const $SE_PRIVILEGE_USED_FOR_ACCESS = 0x80000000 - -Global Const $SE_GROUP_MANDATORY = 0x00000001 -Global Const $SE_GROUP_ENABLED_BY_DEFAULT = 0x00000002 -Global Const $SE_GROUP_ENABLED = 0x00000004 -Global Const $SE_GROUP_OWNER = 0x00000008 -Global Const $SE_GROUP_USE_FOR_DENY_ONLY = 0x00000010 -Global Const $SE_GROUP_INTEGRITY = 0x00000020 -Global Const $SE_GROUP_INTEGRITY_ENABLED = 0x00000040 -Global Const $SE_GROUP_RESOURCE = 0x20000000 -Global Const $SE_GROUP_LOGON_ID = 0xC0000000 - -Global Enum $TOKENPRIMARY = 1, $TOKENIMPERSONATION -Global Enum $SECURITYANONYMOUS = 0, $SECURITYIDENTIFICATION, $SECURITYIMPERSONATION, $SECURITYDELEGATION -Global Enum $TOKENUSER = 1, $TOKENGROUPS, $TOKENPRIVILEGES, $TOKENOWNER, $TOKENPRIMARYGROUP, $TOKENDEFAULTDACL, $TOKENSOURCE, $TOKENTYPE, $TOKENIMPERSONATIONLEVEL, $TOKENSTATISTICS, $TOKENRESTRICTEDSIDS, $TOKENSESSIONID, $TOKENGROUPSANDPRIVILEGES, $TOKENSESSIONREFERENCE, $TOKENSANDBOXINERT, $TOKENAUDITPOLICY, $TOKENORIGIN, $TOKENELEVATIONTYPE, $TOKENLINKEDTOKEN, $TOKENELEVATION, $TOKENHASRESTRICTIONS, $TOKENACCESSINFORMATION, $TOKENVIRTUALIZATIONALLOWED, $TOKENVIRTUALIZATIONENABLED, $TOKENINTEGRITYLEVEL, $TOKENUIACCESS, $TOKENMANDATORYPOLICY, $TOKENLOGONSID - -Global Const $TOKEN_ASSIGN_PRIMARY = 0x00000001 -Global Const $TOKEN_DUPLICATE = 0x00000002 -Global Const $TOKEN_IMPERSONATE = 0x00000004 -Global Const $TOKEN_QUERY = 0x00000008 -Global Const $TOKEN_QUERY_SOURCE = 0x00000010 -Global Const $TOKEN_ADJUST_PRIVILEGES = 0x00000020 -Global Const $TOKEN_ADJUST_GROUPS = 0x00000040 -Global Const $TOKEN_ADJUST_DEFAULT = 0x00000080 -Global Const $TOKEN_ADJUST_SESSIONID = 0x00000100 -Global Const $TOKEN_ALL_ACCESS = 0x000F01FF - -Global Const $TOKEN_READ = 0x00020008 -Global Const $TOKEN_WRITE = 0x000200E0 -Global Const $TOKEN_EXECUTE = 0x00020000 - -Global Const $TOKEN_HAS_TRAVERSE_PRIVILEGE = 0x00000001 -Global Const $TOKEN_HAS_BACKUP_PRIVILEGE = 0x00000002 -Global Const $TOKEN_HAS_RESTORE_PRIVILEGE = 0x00000004 -Global Const $TOKEN_HAS_ADMIN_GROUP = 0x00000008 -Global Const $TOKEN_IS_RESTRICTED = 0x00000010 -Global Const $TOKEN_SESSION_NOT_REFERENCED = 0x00000020 -Global Const $TOKEN_SANDBOX_INERT = 0x00000040 -Global Const $TOKEN_HAS_IMPERSONATE_PRIVILEGE = 0x00000080 - -Global Const $RIGHTS_DELETE = 0x00010000 -Global Const $READ_CONTROL = 0x00020000 -Global Const $WRITE_DAC = 0x00040000 -Global Const $WRITE_OWNER = 0x00080000 -Global Const $SYNCHRONIZE = 0x00100000 -Global Const $ACCESS_SYSTEM_SECURITY = 0x01000000 -Global Const $STANDARD_RIGHTS_REQUIRED = 0x000f0000 -Global Const $STANDARD_RIGHTS_READ = $READ_CONTROL -Global Const $STANDARD_RIGHTS_WRITE = $READ_CONTROL -Global Const $STANDARD_RIGHTS_EXECUTE = $READ_CONTROL -Global Const $STANDARD_RIGHTS_ALL = 0x001F0000 -Global Const $SPECIFIC_RIGHTS_ALL = 0x0000FFFF - -Global Enum $NOT_USED_ACCESS = 0, $GRANT_ACCESS, $SET_ACCESS, $DENY_ACCESS, $REVOKE_ACCESS, $SET_AUDIT_SUCCESS, $SET_AUDIT_FAILURE -Global Enum $TRUSTEE_IS_UNKNOWN = 0, $TRUSTEE_IS_USER, $TRUSTEE_IS_GROUP, $TRUSTEE_IS_DOMAIN, $TRUSTEE_IS_ALIAS, $TRUSTEE_IS_WELL_KNOWN_GROUP, $TRUSTEE_IS_DELETED, $TRUSTEE_IS_INVALID, $TRUSTEE_IS_COMPUTER - -Global Const $LOGON_WITH_PROFILE = 0x00000001 -Global Const $LOGON_NETCREDENTIALS_ONLY = 0x00000002 - -Global Enum $SIDTYPEUSER = 1, $SIDTYPEGROUP, $SIDTYPEDOMAIN, $SIDTYPEALIAS, $SIDTYPEWELLKNOWNGROUP, $SIDTYPEDELETEDACCOUNT, $SIDTYPEINVALID, $SIDTYPEUNKNOWN, $SIDTYPECOMPUTER, $SIDTYPELABEL - -Global Const $SID_ADMINISTRATORS = "S-1-5-32-544" -Global Const $SID_USERS = "S-1-5-32-545" -Global Const $SID_GUESTS = "S-1-5-32-546" -Global Const $SID_ACCOUNT_OPERATORS = "S-1-5-32-548" -Global Const $SID_SERVER_OPERATORS = "S-1-5-32-549" -Global Const $SID_PRINT_OPERATORS = "S-1-5-32-550" -Global Const $SID_BACKUP_OPERATORS = "S-1-5-32-551" -Global Const $SID_REPLICATOR = "S-1-5-32-552" - -Global Const $SID_OWNER = "S-1-3-0" -Global Const $SID_EVERYONE = "S-1-1-0" -Global Const $SID_NETWORK = "S-1-5-2" -Global Const $SID_INTERACTIVE = "S-1-5-4" -Global Const $SID_SYSTEM = "S-1-5-18" -Global Const $SID_AUTHENTICATED_USERS = "S-1-5-11" - -Global Const $SID_SCHANNEL_AUTHENTICATION = "S-1-5-64-14" -Global Const $SID_DIGEST_AUTHENTICATION = "S-1-5-64-21" -Global Const $SID_NT_SERVICE = "S-1-5-80" -Global Const $SID_UNTRUSTED_MANDATORY_LEVEL = "S-1-16-0" - -Global Const $SID_LOW_MANDATORY_LEVEL = "S-1-16-4096" -Global Const $SID_MEDIUM_MANDATORY_LEVEL = "S-1-16-8192" -Global Const $SID_MEDIUM_PLUS_MANDATORY_LEVEL = "S-1-16-8448" -Global Const $SID_HIGH_MANDATORY_LEVEL = "S-1-16-12288" -Global Const $SID_SYSTEM_MANDATORY_LEVEL = "S-1-16-16384" -Global Const $SID_PROTECTED_PROCESS_MANDATORY_LEVEL = "S-1-16-20480" -Global Const $SID_SECURE_PROCESS_MANDATORY_LEVEL = "S-1-16-28672" -Global Const $SID_ALL_SERVICES = "S-1-5-80-0" -; =============================================================================================================================== diff --git a/build/Include/SendMessage.au3 b/build/Include/SendMessage.au3 deleted file mode 100644 index efb9f875f..000000000 --- a/build/Include/SendMessage.au3 +++ /dev/null @@ -1,36 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: SendMessage -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist SendMessage calls. -; Author(s) .....: Valik, Gary Frost -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _SendMessage -; _SendMessageA -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Valik -; Modified.......: Gary Frost (GaryFrost) aka gafrost -; =============================================================================================================================== -Func _SendMessage($hWnd, $iMsg, $wParam = 0, $lParam = 0, $iReturn = 0, $wParamType = "wparam", $lParamType = "lparam", $sReturnType = "lresult") - Local $aResult = DllCall("user32.dll", $sReturnType, "SendMessageW", "hwnd", $hWnd, "uint", $iMsg, $wParamType, $wParam, $lParamType, $lParam) - If @error Then Return SetError(@error, @extended, "") - If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn] - Return $aResult -EndFunc ;==>_SendMessage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Valik -; Modified.......: Gary Frost (GaryFrost) aka gafrost -; =============================================================================================================================== -Func _SendMessageA($hWnd, $iMsg, $wParam = 0, $lParam = 0, $iReturn = 0, $wParamType = "wparam", $lParamType = "lparam", $sReturnType = "lresult") - Local $aResult = DllCall("user32.dll", $sReturnType, "SendMessageA", "hwnd", $hWnd, "uint", $iMsg, $wParamType, $wParam, $lParamType, $lParam) - If @error Then Return SetError(@error, @extended, "") - If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn] - Return $aResult -EndFunc ;==>_SendMessageA diff --git a/build/Include/SliderConstants.au3 b/build/Include/SliderConstants.au3 deleted file mode 100644 index 71f42fd52..000000000 --- a/build/Include/SliderConstants.au3 +++ /dev/null @@ -1,80 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Slider_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control Slider styles and much more constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Custom Draw Values (Custom Draw values, for example, are specified in the dwItemSpec member of the NMCUSTOMDRAW structure) -Global Const $TBCD_CHANNEL = 0x3 ;Identifies the channel that the trackbar control's thumb marker slides along. -Global Const $TBCD_THUMB = 0x2 ;Identifies the trackbar control's thumb marker. This is the part of the control that the user moves -Global Const $TBCD_TICS = 0x1 ;Identifies the tick marks that are displayed along the trackbar control's edge - -; Messages -Global Const $__SLIDERCONSTANT_WM_USER = 0x400 -Global Const $TBM_CLEARSEL = $__SLIDERCONSTANT_WM_USER + 19 -Global Const $TBM_CLEARTICS = $__SLIDERCONSTANT_WM_USER + 9 -Global Const $TBM_GETBUDDY = $__SLIDERCONSTANT_WM_USER + 33 -Global Const $TBM_GETCHANNELRECT = $__SLIDERCONSTANT_WM_USER + 26 -Global Const $TBM_GETLINESIZE = $__SLIDERCONSTANT_WM_USER + 24 -Global Const $TBM_GETNUMTICS = $__SLIDERCONSTANT_WM_USER + 16 -Global Const $TBM_GETPAGESIZE = $__SLIDERCONSTANT_WM_USER + 22 -Global Const $TBM_GETPOS = $__SLIDERCONSTANT_WM_USER -Global Const $TBM_GETPTICS = $__SLIDERCONSTANT_WM_USER + 14 -Global Const $TBM_GETSELEND = $__SLIDERCONSTANT_WM_USER + 18 -Global Const $TBM_GETSELSTART = $__SLIDERCONSTANT_WM_USER + 17 -Global Const $TBM_GETRANGEMAX = $__SLIDERCONSTANT_WM_USER + 2 -Global Const $TBM_GETRANGEMIN = $__SLIDERCONSTANT_WM_USER + 1 -Global Const $TBM_GETTHUMBLENGTH = $__SLIDERCONSTANT_WM_USER + 28 -Global Const $TBM_GETTHUMBRECT = $__SLIDERCONSTANT_WM_USER + 25 -Global Const $TBM_GETTIC = $__SLIDERCONSTANT_WM_USER + 3 -Global Const $TBM_GETTICPOS = $__SLIDERCONSTANT_WM_USER + 15 -Global Const $TBM_GETTOOLTIPS = $__SLIDERCONSTANT_WM_USER + 30 -Global Const $TBM_GETUNICODEFORMAT = 0x2000 + 6 -Global Const $TBM_SETBUDDY = $__SLIDERCONSTANT_WM_USER + 32 -Global Const $TBM_SETLINESIZE = $__SLIDERCONSTANT_WM_USER + 23 -Global Const $TBM_SETPAGESIZE = $__SLIDERCONSTANT_WM_USER + 21 -Global Const $TBM_SETPOS = $__SLIDERCONSTANT_WM_USER + 5 -Global Const $TBM_SETRANGE = $__SLIDERCONSTANT_WM_USER + 6 -Global Const $TBM_SETRANGEMAX = $__SLIDERCONSTANT_WM_USER + 8 -Global Const $TBM_SETRANGEMIN = $__SLIDERCONSTANT_WM_USER + 7 -Global Const $TBM_SETSEL = $__SLIDERCONSTANT_WM_USER + 10 -Global Const $TBM_SETSELEND = $__SLIDERCONSTANT_WM_USER + 12 -Global Const $TBM_SETSELSTART = $__SLIDERCONSTANT_WM_USER + 11 -Global Const $TBM_SETTHUMBLENGTH = $__SLIDERCONSTANT_WM_USER + 27 -Global Const $TBM_SETTIC = $__SLIDERCONSTANT_WM_USER + 4 -Global Const $TBM_SETTICFREQ = $__SLIDERCONSTANT_WM_USER + 20 -Global Const $TBM_SETTIPSIDE = $__SLIDERCONSTANT_WM_USER + 31 -Global Const $TBM_SETTOOLTIPS = $__SLIDERCONSTANT_WM_USER + 29 -Global Const $TBM_SETUNICODEFORMAT = 0x2000 + 5 - -; Tip Side Params -Global Const $TBTS_BOTTOM = 2 -Global Const $TBTS_LEFT = 1 -Global Const $TBTS_RIGHT = 3 -Global Const $TBTS_TOP = 0 - -; Styles -Global Const $TBS_AUTOTICKS = 0x0001 -Global Const $TBS_BOTH = 0x0008 -Global Const $TBS_BOTTOM = 0x0000 -Global Const $TBS_DOWNISLEFT = 0x0400 -Global Const $TBS_ENABLESELRANGE = 0x20 -Global Const $TBS_FIXEDLENGTH = 0x40 -Global Const $TBS_HORZ = 0x0000 -Global Const $TBS_LEFT = 0x0004 -Global Const $TBS_NOTHUMB = 0x0080 -Global Const $TBS_NOTICKS = 0x0010 -Global Const $TBS_REVERSED = 0x200 -Global Const $TBS_RIGHT = 0x0000 -Global Const $TBS_TOP = 0x0004 -Global Const $TBS_TOOLTIPS = 0x100 -Global Const $TBS_VERT = 0x0002 - -; Control default styles -Global Const $GUI_SS_DEFAULT_SLIDER = $TBS_AUTOTICKS -; =============================================================================================================================== diff --git a/build/Include/Sound.au3 b/build/Include/Sound.au3 deleted file mode 100644 index a4fc86d87..000000000 --- a/build/Include/Sound.au3 +++ /dev/null @@ -1,582 +0,0 @@ -#include-once - -#include "FileConstants.au3" -#include "File.au3" ; Using: _PathSplit -#include "StringConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Sound -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Sound management. -; Author(s) .....: RazerM, Melba23, Simucal, PsaltyDS -; Dll ...........: winmm.dll -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__SOUNDCONSTANT_SNDID_MARKER = 0x49442d2d -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _SoundOpen -; _SoundClose -; _SoundPlay -; _SoundStop -; _SoundPause -; _SoundResume -; _SoundLength -; _SoundSeek -; _SoundStatus -; _SoundPos -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY#============================================================================================================ -; __SoundChkSndID -; __SoundMciSendString -; __SoundReadTLENFromMP3 -; __SoundReadXingFromMP3 -; __SoundTicksToTime -; __SoundTimeToTicks -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23, some code by Simucal, PsaltyDS -; Modified.......: -; =============================================================================================================================== -Func _SoundOpen($sFilePath) - ;check for file - If Not FileExists($sFilePath) Then Return SetError(2, 0, 0) - ;create random string for file ID - Local $aSndID[4] - For $i = 1 To 10 - $aSndID[0] &= Chr(Random(97, 122, 1)) - Next - - Local $sDrive, $sDir, $sFName, $sExt - _PathSplit($sFilePath, $sDrive, $sDir, $sFName, $sExt) - - Local $sSndDirName - If $sDrive = "" Then - $sSndDirName = @WorkingDir & "\" - Else - $sSndDirName = $sDrive & $sDir - EndIf - Local $sSndFileName = $sFName & $sExt - - Local $sSndDirShortName = FileGetShortName($sSndDirName, 1) - - ;open file - __SoundMciSendString("open """ & $sFilePath & """ alias " & $aSndID[0]) - If @error Then Return SetError(1, @error, 0) ; open failed - - Local $sTrackLength, $bTryNextMethod = False - Local $oShell = ObjCreate("shell.application") - If IsObj($oShell) Then - Local $oShellDir = $oShell.NameSpace($sSndDirShortName) - If IsObj($oShellDir) Then - Local $oShellDirFile = $oShellDir.Parsename($sSndFileName) - If IsObj($oShellDirFile) Then - Local $sRaw = $oShellDir.GetDetailsOf($oShellDirFile, -1) - Local $aInfo = StringRegExp($sRaw, ": ([0-9]{2}:[0-9]{2}:[0-9]{2})", $STR_REGEXPARRAYGLOBALMATCH) - If Not IsArray($aInfo) Then - $bTryNextMethod = True - Else - $sTrackLength = $aInfo[0] - EndIf - Else - $bTryNextMethod = True - EndIf - Else - $bTryNextMethod = True - EndIf - Else - $bTryNextMethod = True - EndIf - - Local $sTag - If $bTryNextMethod Then - $bTryNextMethod = False - If $sExt = ".mp3" Then - Local $hFile = FileOpen(FileGetShortName($sSndDirName & $sSndFileName), $FO_READ) - $sTag = FileRead($hFile, 5156) - FileClose($hFile) - $sTrackLength = __SoundReadXingFromMP3($sTag) - If @error Then $bTryNextMethod = True - Else - $bTryNextMethod = True - EndIf - EndIf - - If $bTryNextMethod Then - $bTryNextMethod = False - If $sExt = ".mp3" Then - $sTrackLength = __SoundReadTLENFromMP3($sTag) - If @error Then $bTryNextMethod = True - Else - $bTryNextMethod = True - EndIf - EndIf - - If $bTryNextMethod Then - $bTryNextMethod = False - ;tell mci to use time in milliseconds - __SoundMciSendString("set " & $aSndID[0] & " time format milliseconds") - ;receive length of sound - Local $iSndLenMs = __SoundMciSendString("status " & $aSndID[0] & " length", 255) - - ;assign modified data to variables - Local $iSndLenMin, $iSndLenHour, $iSndLenSecs - __SoundTicksToTime($iSndLenMs, $iSndLenHour, $iSndLenMin, $iSndLenSecs) - - ;assign formatted data to $sSndLenFormat - $sTrackLength = StringFormat("%02i:%02i:%02i", $iSndLenHour, $iSndLenMin, $iSndLenSecs) - EndIf - - ; Convert Track_Length to mSec - Local $aiTime = StringSplit($sTrackLength, ":") - Local $iActualTicks = __SoundTimeToTicks($aiTime[1], $aiTime[2], $aiTime[3]) - - ;tell mci to use time in milliseconds - __SoundMciSendString("set " & $aSndID[0] & " time format milliseconds") - - ;;Get estimated length - Local $iSoundTicks = __SoundMciSendString("status " & $aSndID[0] & " length", 255) - - ;Compare to actual length - Local $iVBRRatio - If Abs($iSoundTicks - $iActualTicks) < 1000 Then ;Assume CBR, as our track length from shell.application is only accurate within 1000ms - $iVBRRatio = 0 - Else ;Set correction ratio for VBR operations - $iVBRRatio = $iSoundTicks / $iActualTicks - EndIf - - $aSndID[1] = $iVBRRatio - $aSndID[2] = 0 - $aSndID[3] = $__SOUNDCONSTANT_SNDID_MARKER - - Return $aSndID -EndFunc ;==>_SoundOpen - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23 -; Modified.......: -; =============================================================================================================================== -Func _SoundClose($aSndID) - If Not IsArray($aSndID) Or Not __SoundChkSndID($aSndID) Then Return SetError(3, 0, 0) ; invalid sound ID - - __SoundMciSendString("close " & $aSndID[0]) - If @error Then Return SetError(1, @error, 0) - Return 1 -EndFunc ;==>_SoundClose - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23 -; Modified.......: -; =============================================================================================================================== -Func _SoundPlay($aSndID, $iWait = 0) - ;validate $iWait - If $iWait <> 0 And $iWait <> 1 Then Return SetError(2, 0, 0) ; invalid $iWait parameter - If Not __SoundChkSndID($aSndID) Then Return SetError(3, 0, 0) ; invalid Sound ID or file name - - ;if sound has finished, seek to start - If _SoundPos($aSndID, 2) = _SoundLength($aSndID, 2) Then __SoundMciSendString("seek " & $aSndID[0] & " to start") - ;If $iWait = 1 then pass wait to mci - If $iWait = 1 Then - __SoundMciSendString("play " & $aSndID[0] & " wait") - Else - __SoundMciSendString("play " & $aSndID[0]) - EndIf - ;return - If @error Then Return SetError(1, @error, 0) - Return 1 -EndFunc ;==>_SoundPlay - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23 -; Modified.......: -; =============================================================================================================================== -Func _SoundStop(ByRef $aSndID) - ; create temp variable so file name variable is not changed ByRef - Local $vTemp = $aSndID - If Not __SoundChkSndID($vTemp) Then Return SetError(3, 0, 0) ; invalid Sound ID or file name - - ;reset VBR factor if used - If IsArray($aSndID) Then $aSndID[2] = 0 - - ;stop - __SoundMciSendString("stop " & $vTemp[0]) - If @error Then Return SetError(2, @error, 0) - ;seek to start - __SoundMciSendString("seek " & $vTemp[0] & " to start") - If @error Then Return SetError(1, @error, 0) - ;return - Return 1 -EndFunc ;==>_SoundStop - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23 -; Modified.......: -; =============================================================================================================================== -Func _SoundPause($aSndID) - If Not __SoundChkSndID($aSndID) Then Return SetError(3, 0, 0) ; invalid Sound ID or file name - - ;pause sound - __SoundMciSendString("pause " & $aSndID[0]) - ;return - If @error Then Return SetError(1, @error, 0) - Return 1 -EndFunc ;==>_SoundPause - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23 -; Modified.......: -; =============================================================================================================================== -Func _SoundResume($aSndID) - If Not __SoundChkSndID($aSndID) Then Return SetError(3, 0, 0) ; invalid Sound ID or file name - - ;resume sound - __SoundMciSendString("resume " & $aSndID[0]) - ;return - If @error Then Return SetError(1, @error, 0) - Return 1 -EndFunc ;==>_SoundResume - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23 -; Modified.......: jpm -; =============================================================================================================================== -Func _SoundLength($aSndID, $iMode = 1) - ;validate $iMode - If $iMode <> 1 And $iMode <> 2 Then Return SetError(1, 0, 0) - Local $bFile = False - If Not IsArray($aSndID) Then - If Not FileExists($aSndID) Then Return SetError(3, 0, 0) ; invalid file name - $bFile = True - $aSndID = _SoundOpen($aSndID) - Else - If Not __SoundChkSndID($aSndID) Then Return SetError(3, 0, 0) ; invalid Sound ID - EndIf - - ;tell mci to use time in milliseconds - __SoundMciSendString("set " & $aSndID[0] & " time format milliseconds") - ;receive length of sound - Local $iSndLenMs = Number(__SoundMciSendString("status " & $aSndID[0] & " length", 255)) - If $aSndID[1] <> 0 Then $iSndLenMs = Round($iSndLenMs / $aSndID[1]) - - If $bFile Then _SoundClose($aSndID) ;if user called _SoundLength with a filename - - If $iMode = 2 Then Return $iSndLenMs - - ; $iMode = 1 (hh:mm:ss) - - ;assign modified data to variables - Local $iSndLenMin, $iSndLenHour, $iSndLenSecs - __SoundTicksToTime($iSndLenMs, $iSndLenHour, $iSndLenMin, $iSndLenSecs) - - ;assign formatted data to $sSndLenFormat - Local $sSndLenFormat = StringFormat("%02i:%02i:%02i", $iSndLenHour, $iSndLenMin, $iSndLenSecs) - - ;return correct variable - Return $sSndLenFormat -EndFunc ;==>_SoundLength - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23 -; Modified.......: -; =============================================================================================================================== -Func _SoundSeek(ByRef $aSndID, $iHour, $iMin, $iSec) - If Not IsArray($aSndID) Or Not __SoundChkSndID($aSndID) Then Return SetError(3, 0, 0) ; invalid Sound ID - - ;prepare mci to receive time in milliseconds - __SoundMciSendString("set " & $aSndID[0] & " time format milliseconds") - ;modify the $iHour, $iMin and $iSec parameters to be in milliseconds - ;and add to $iMs - Local $iMs = $iSec * 1000 - $iMs += $iMin * 60 * 1000 - $iMs += $iHour * 60 * 60 * 1000 - If $aSndID[1] <> 0 Then - $aSndID[2] = Round($iMs * $aSndID[1]) - $iMs - $iMs = Round($iMs * $aSndID[1]) - EndIf - ; seek sound to time ($iMs) - __SoundMciSendString("seek " & $aSndID[0] & " to " & $iMs) - Local $iError = @error - If _SoundPos($aSndID, 2) < 0 Then $aSndID[2] = 0 - ;return - If $iError Then Return SetError(1, $iError, 0) - Return 1 -EndFunc ;==>_SoundSeek - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23 -; Modified.......: -; =============================================================================================================================== -Func _SoundStatus($aSndID) - If Not __SoundChkSndID($aSndID) Then Return SetError(3, 0, 0) ; invalid Sound ID or file name - - ;return status - Return __SoundMciSendString("status " & $aSndID[0] & " mode", 255) -EndFunc ;==>_SoundStatus - -; #FUNCTION# ==================================================================================================================== -; Author ........: RazerM, Melba23 -; Modified.......: -; =============================================================================================================================== -Func _SoundPos($aSndID, $iMode = 1) - ;validate $iMode - If $iMode <> 1 And $iMode <> 2 Then Return SetError(1, 0, 0) - If Not __SoundChkSndID($aSndID) Then Return SetError(3, 0, 0) ; invalid Sound ID or file name - - ;tell mci to use time in milliseconds - __SoundMciSendString("set " & $aSndID[0] & " time format milliseconds") - ;receive position of sound - Local $iSndPosMs = Number(__SoundMciSendString("status " & $aSndID[0] & " position", 255)) - If $aSndID[1] <> 0 Then - $iSndPosMs -= $aSndID[2] - EndIf - - If $iMode = 2 Then Return $iSndPosMs - - ;$iMode = 1 (hh:mm:ss) - - ;modify data and assign to variables - Local $iSndPosMin, $iSndPosHour, $iSndPosSecs - __SoundTicksToTime($iSndPosMs, $iSndPosHour, $iSndPosMin, $iSndPosSecs) - - ;assign formatted data to $sSndPosFormat - Local $sSndPosHMS = StringFormat("%02i:%02i:%02i", $iSndPosHour, $iSndPosMin, $iSndPosSecs) - - ;return correct variable - Return $sSndPosHMS -EndFunc ;==>_SoundPos - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SoundChkSndID -; Description ...: Used internally within this file, not for general use -; Syntax.........: __SoundChkSndID ( ByRef $aSndID ) -; Author ........: jpm -; Modified.......: Melba23 -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __SoundChkSndID(ByRef $aSndID) - If Not IsArray($aSndID) Then - If Not FileExists($aSndID) Then Return 0 ; invalid Sound file - Local $vTemp = FileGetShortName($aSndID) - Dim $aSndID[4] = [$vTemp, 0, 0, $__SOUNDCONSTANT_SNDID_MARKER] ; create valid Sound ID array for use in UDF - Else - If UBound($aSndID) <> 4 And $aSndID[3] <> $__SOUNDCONSTANT_SNDID_MARKER Then Return 0 ; invalid Sound ID - EndIf - - Return 1 -EndFunc ;==>__SoundChkSndID - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SoundMciSendString -; Description ...: Used internally within this file, not for general use -; Syntax.........: __SoundMciSendString ( $sString [, $iLen = 0] ) -; Author ........: RazerM, Melba23 -; Modified.......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __SoundMciSendString($sString, $iLen = 0) - Local $aRet = DllCall("winmm.dll", "dword", "mciSendStringW", "wstr", $sString, "wstr", "", "uint", $iLen, "ptr", 0) - If @error Then Return SetError(@error, @extended, "") - If $aRet[0] Then Return SetError(10, $aRet[0], $aRet[2]) - Return $aRet[2] -EndFunc ;==>__SoundMciSendString - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SoundReadTLENFromMP3 -; Description ...: Used internally within this file, not for general use -; Syntax.........: __SoundReadTLENFromMP3 ( $sTag ) -; Parameters ....: $sTag - >= 1024 bytes from 'read raw' mode. -; Return values .: Success - Sound length (hh:mm:ss) -; Failure - 0 and @error = 1 -; Author ........: Melba23 -; Modified.......: RazerM -; Remarks .......: File must be an mp3 AFAIK -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __SoundReadTLENFromMP3($sTag) - ; Check that an ID3v2.3 tag is present - If StringLeft($sTag, 10) <> "0x49443303" Then Return SetError(1, 0, 0) ; ID3 - - Local $iTemp = StringInStr($sTag, "544C454E") + 21 ; TLEN - $sTag = StringTrimLeft($sTag, $iTemp) - Local $sTemp = "" - - For $i = 1 To 32 Step 2 - If StringMid($sTag, $i, 2) = "00" Then - ExitLoop - Else - $sTemp &= StringMid($sTag, $i, 2) - EndIf - Next - - Local $iLengthMs = Number(BinaryToString("0x" & $sTemp)) ; Number( HexToString($sTemp) ) - - If $iLengthMs <= 0 Then Return SetError(1, 0, 0) - Local $iLengthHour, $iLengthMin, $iLengthSecs - __SoundTicksToTime($iLengthMs, $iLengthHour, $iLengthMin, $iLengthSecs) - - ;Convert to hh:mm:ss and return - Return StringFormat("%02i:%02i:%02i", $iLengthHour, $iLengthMin, $iLengthSecs) -EndFunc ;==>__SoundReadTLENFromMP3 - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __SoundReadXingFromMP3 -; Syntax.........: __SoundReadXingFromMP3 ( $sTag ) -; Parameters ....: $sTag - first 5156 bytes from 'read raw' mode. -; Return values .: Success - Sound length (hh:mm:ss) -; Failure - 0 and @error = 1 -; Author ........: Melba23 -; Modified.......: RazerM -; Remarks .......: File must be an mp3 AFAIK -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __SoundReadXingFromMP3($sTag) - Local $iXingPos = StringInStr($sTag, "58696E67") ; Xing - If $iXingPos = 0 Then Return SetError(1, 0, 0) - - ; Read fields flag - Local $iFrames, $iFlags = Number("0x" & StringMid($sTag, $iXingPos + 14, 2)) - If BitAND($iFlags, 1) = 1 Then - $iFrames = Number("0x" & StringMid($sTag, $iXingPos + 16, 8)) - Else - Return SetError(1, 0, 0); No frames field - EndIf - - ; Now to find Samples per frame & Sampling rate - ; Go back to the frame header start - Local $sHeader = StringMid($sTag, $iXingPos - 72, 8) - - ; Read the relevant bytes - Local $iMPEGByte = Number("0x" & StringMid($sHeader, 4, 1)) - Local $iFreqByte = Number("0x" & StringMid($sHeader, 6, 1)) - - ; Decode them - ; 8 = MPEG-1, 0 = MPEG-2 - Local $iMPEGVer = BitAND($iMPEGByte, 8) - - ; 2 = Layer III, 4 = Layer II, 6 = Layer I - Local $iLayerNum = BitAND($iMPEGByte, 6) - - Local $iSamples - Switch $iLayerNum - Case 6 - $iSamples = 384 - Case 4 - $iSamples = 1152 - Case 2 - Switch $iMPEGVer - Case 8 - $iSamples = 1152 - Case 0 - $iSamples = 576 - Case Else - $iSamples = 0 - EndSwitch - Case Else - $iSamples = 0 - EndSwitch - - ; If not valid return - If $iSamples = 0 Then Return SetError(1, 0, 0) - - ; 0 = bit 00, 4 = Bit 01, 8 = Bit 10 - Local $iFrequency, $iFreqNum = BitAND($iFreqByte, 12) - Switch $iFreqNum - Case 0 - $iFrequency = 44100 - Case 4 - $iFrequency = 48000 - Case 8 - $iFrequency = 32000 - Case Else - $iFrequency = 0 - EndSwitch - - ; If not valid return - If $iFrequency = 0 Then Return SetError(1, 0, 0) - - ; MPEG-2 halves the value - If $iMPEGVer = 0 Then $iFrequency = $iFrequency / 2 - - ; Duration in secs = No of frames * Samples per frame / Sampling freq - Local $iLengthMs = Int(($iFrames * $iSamples / $iFrequency) * 1000) - - ; Convert to hh:mm:ss and return - Local $iLengthHours, $iLengthMins, $iLengthSecs - __SoundTicksToTime($iLengthMs, $iLengthHours, $iLengthMins, $iLengthSecs) - - Return StringFormat("%02i:%02i:%02i", $iLengthHours, $iLengthMins, $iLengthSecs) -EndFunc ;==>__SoundReadXingFromMP3 - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: _TicksToTime -; Description ...: Converts the specified tick amount to hours, minutes and seconds. -; Syntax.........: _TicksToTime ( $iTicks, ByRef $iHours, ByRef $iMins, ByRef $iSecs ) -; Parameters ....: $iTicks - Tick amount. -; $iHours - Variable to store the hours. -; $iMins - Variable to store the minutes. -; $iSecs - Variable to store the seconds. -; Return values .: Success - 1 -; Failure - 0 -; @error - 0 - No error. -; |1 - $iTicks isn't an integer. -; Author ........: Marc -; Modified.......: -; Remarks .......: -; Related .......: __SoundTimeToTicks -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func __SoundTicksToTime($iTicks, ByRef $iHours, ByRef $iMins, ByRef $iSecs) - If Number($iTicks) < 0 Then Return SetError(1, 0, 0) - If Number($iTicks) = 0 Then - $iHours = 0 - $iTicks = 0 - $iMins = 0 - $iSecs = 0 - Return 1 - EndIf - $iTicks = Round($iTicks / 1000) - $iHours = Int($iTicks / 3600) - $iTicks = Mod($iTicks, 3600) - $iMins = Int($iTicks / 60) - $iSecs = Round(Mod($iTicks, 60)) - ; If $iHours = 0 then $iHours = 24 - Return 1 -EndFunc ;==>__SoundTicksToTime - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: _TimeToTicks -; Description ...: Converts the specified hours, minutes, and seconds to ticks. -; Syntax.........: _TimeToTicks ( [$iHours = @HOUR [, $iMins = @MIN [, $iSecs = @SEC]]] ) -; Parameters ....: $iHours - The hours. -; $iMins - The minutes. -; $iSecs - The seconds. -; Return values .: Success - Returns the number of ticks. -; Failure - 0 -; @error - 0 - No error. -; |1 - The specified hours, minutes, or seconds are not valid. -; Author ........: Marc -; Modified.......: SlimShady: added the default time and made parameters optional -; Remarks .......: -; Related .......: _TicksToTime -; Link ..........: -; Example .......: Yes -; =============================================================================================================================== -Func __SoundTimeToTicks($iHours = @HOUR, $iMins = @MIN, $iSecs = @SEC) - If Not (StringIsInt($iHours) And StringIsInt($iMins) And StringIsInt($iSecs)) Then Return SetError(1, 0, 0) - Return 1000 * ((3600 * $iHours) + (60 * $iMins) + $iSecs) -EndFunc ;==>__SoundTimeToTicks diff --git a/build/Include/StaticConstants.au3 b/build/Include/StaticConstants.au3 deleted file mode 100644 index 12cb80262..000000000 --- a/build/Include/StaticConstants.au3 +++ /dev/null @@ -1,48 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Static_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control Label/Static styles and Pic, Icon constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Label/Pic/Icon -Global Const $SS_LEFT = 0x0 -Global Const $SS_CENTER = 0x1 -Global Const $SS_RIGHT = 0x2 -Global Const $SS_ICON = 0x3 -Global Const $SS_BLACKRECT = 0x4 -Global Const $SS_GRAYRECT = 0x5 -Global Const $SS_WHITERECT = 0x6 -Global Const $SS_BLACKFRAME = 0x7 -Global Const $SS_GRAYFRAME = 0x8 -Global Const $SS_WHITEFRAME = 0x9 -Global Const $SS_SIMPLE = 0xB -Global Const $SS_LEFTNOWORDWRAP = 0xC -Global Const $SS_BITMAP = 0xE -Global Const $SS_ENHMETAFILE = 0xF -Global Const $SS_ETCHEDHORZ = 0x10 -Global Const $SS_ETCHEDVERT = 0x11 -Global Const $SS_ETCHEDFRAME = 0x12 -Global Const $SS_REALSIZECONTROL = 0x40 -Global Const $SS_NOPREFIX = 0x0080 -Global Const $SS_NOTIFY = 0x0100 -Global Const $SS_CENTERIMAGE = 0x0200 -Global Const $SS_RIGHTJUST = 0x0400 -Global Const $SS_SUNKEN = 0x1000 - -; Control default styles -Global Const $GUI_SS_DEFAULT_LABEL = 0 -Global Const $GUI_SS_DEFAULT_GRAPHIC = 0 -Global Const $GUI_SS_DEFAULT_ICON = $SS_NOTIFY -Global Const $GUI_SS_DEFAULT_PIC = $SS_NOTIFY - -; Messages -Global Const $STM_SETICON = 0x0170 -Global Const $STM_GETICON = 0x0171 -Global Const $STM_SETIMAGE = 0x0172 -Global Const $STM_GETIMAGE = 0x0173 -; =============================================================================================================================== diff --git a/build/Include/StatusBarConstants.au3 b/build/Include/StatusBarConstants.au3 deleted file mode 100644 index ff0733090..000000000 --- a/build/Include/StatusBarConstants.au3 +++ /dev/null @@ -1,60 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: StatusBar_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for StatusBar functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Styles -Global Const $SBARS_SIZEGRIP = 0x100 -Global Const $SBT_TOOLTIPS = 0x800 -Global Const $SBARS_TOOLTIPS = 0x800 - -; uFlags -Global Const $SBT_SUNKEN = 0x0 ;Default -Global Const $SBT_NOBORDERS = 0x100 ;The text is drawn without borders. -Global Const $SBT_POPOUT = 0x200 ; The text is drawn with a border to appear higher than the plane of the window. -Global Const $SBT_RTLREADING = 0x400 ;SB_SETTEXT, SB_SETTEXT, SB_GETTEXTLENGTH flags only: Displays text using right-to-left reading order on Hebrew or Arabic systems. -Global Const $SBT_NOTABPARSING = 0x800 ;Tab characters are ignored. -Global Const $SBT_OWNERDRAW = 0x1000 ;The text is drawn by the parent window. - -; Messages -Global Const $__STATUSBARCONSTANT_WM_USER = 0X400 -Global Const $SB_GETBORDERS = ($__STATUSBARCONSTANT_WM_USER + 7) -Global Const $SB_GETICON = ($__STATUSBARCONSTANT_WM_USER + 20) -Global Const $SB_GETPARTS = ($__STATUSBARCONSTANT_WM_USER + 6) -Global Const $SB_GETRECT = ($__STATUSBARCONSTANT_WM_USER + 10) -Global Const $SB_GETTEXTA = ($__STATUSBARCONSTANT_WM_USER + 2) -Global Const $SB_GETTEXTW = ($__STATUSBARCONSTANT_WM_USER + 13) -Global Const $SB_GETTEXT = $SB_GETTEXTA -Global Const $SB_GETTEXTLENGTHA = ($__STATUSBARCONSTANT_WM_USER + 3) -Global Const $SB_GETTEXTLENGTHW = ($__STATUSBARCONSTANT_WM_USER + 12) -Global Const $SB_GETTEXTLENGTH = $SB_GETTEXTLENGTHA -Global Const $SB_GETTIPTEXTA = ($__STATUSBARCONSTANT_WM_USER + 18) -Global Const $SB_GETTIPTEXTW = ($__STATUSBARCONSTANT_WM_USER + 19) -Global Const $SB_GETUNICODEFORMAT = 0x2000 + 6 - -Global Const $SB_ISSIMPLE = ($__STATUSBARCONSTANT_WM_USER + 14) - -Global Const $SB_SETBKCOLOR = 0x2000 + 1 -Global Const $SB_SETICON = ($__STATUSBARCONSTANT_WM_USER + 15) -Global Const $SB_SETMINHEIGHT = ($__STATUSBARCONSTANT_WM_USER + 8) -Global Const $SB_SETPARTS = ($__STATUSBARCONSTANT_WM_USER + 4) -Global Const $SB_SETTEXTA = ($__STATUSBARCONSTANT_WM_USER + 1) -Global Const $SB_SETTEXTW = ($__STATUSBARCONSTANT_WM_USER + 11) -Global Const $SB_SETTEXT = $SB_SETTEXTA -Global Const $SB_SETTIPTEXTA = ($__STATUSBARCONSTANT_WM_USER + 16) -Global Const $SB_SETTIPTEXTW = ($__STATUSBARCONSTANT_WM_USER + 17) -Global Const $SB_SETUNICODEFORMAT = 0x2000 + 5 -Global Const $SB_SIMPLE = ($__STATUSBARCONSTANT_WM_USER + 9) - -Global Const $SB_SIMPLEID = 0xff - -; Notifications -Global Const $SBN_FIRST = -880 -Global Const $SBN_SIMPLEMODECHANGE = $SBN_FIRST - 0 ; Sent when the simple mode changes due to a $SB_SIMPLE message -; =============================================================================================================================== diff --git a/build/Include/String.au3 b/build/Include/String.au3 deleted file mode 100644 index 4ddaceb39..000000000 --- a/build/Include/String.au3 +++ /dev/null @@ -1,178 +0,0 @@ -#include-once - -#include "StringConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: String -; AutoIt Version : 3.3.14.2 -; Description ...: Functions that assist with String management. -; Author(s) .....: Jarvis Stubblefield, SmOke_N, Valik, Wes Wolfe-Wolvereness, WeaponX, Louis Horvath, JdeB, Jeremy Landes, Jon, jchd, BrewManNH, guinness -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _HexToString -; _StringBetween -; _StringExplode -; _StringInsert -; _StringProper -; _StringRepeat -; _StringTitleCase -; _StringToHex -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jarvis Stubblefield -; Modified.......: SmOke_N - (Re-write using BinaryToString for speed) -; =============================================================================================================================== -Func _HexToString($sHex) - If Not (StringLeft($sHex, 2) == "0x") Then $sHex = "0x" & $sHex - Return BinaryToString($sHex, $SB_UTF8) -EndFunc ;==>_HexToString - -; #FUNCTION# ==================================================================================================================== -; Author ........: SmOke_N (Thanks to Valik for helping with the new StringRegExp (?s)(?i) issue) -; Modified.......: SmOke_N - (Re-write for speed and accuracy), jchd, Melba23 (added mode) -; =============================================================================================================================== -Func _StringBetween($sString, $sStart, $sEnd, $iMode = $STR_ENDISSTART, $bCase = False) - ; If starting from beginning of string - $sStart = $sStart ? "\Q" & $sStart & "\E" : "\A" - - ; Set mode - If $iMode <> $STR_ENDNOTSTART Then $iMode = $STR_ENDISSTART - - ; If ending at end of string - If $iMode = $STR_ENDISSTART Then - ; Use lookahead - $sEnd = $sEnd ? "(?=\Q" & $sEnd & "\E)" : "\z" - Else - ; Capture end string - $sEnd = $sEnd ? "\Q" & $sEnd & "\E" : "\z" - EndIf - - ; Set correct case sensitivity - If $bCase = Default Then - $bCase = False - EndIf - - Local $aReturn = StringRegExp($sString, "(?s" & (Not $bCase ? "i" : "") & ")" & $sStart & "(.*?)" & $sEnd, $STR_REGEXPARRAYGLOBALMATCH) - If @error Then Return SetError(1, 0, 0) - Return $aReturn -EndFunc ;==>_StringBetween - -; #FUNCTION# ==================================================================================================================== -; Author ........: WeaponX -; Modified.......: -; =============================================================================================================================== -Func _StringExplode($sString, $sDelimiter, $iLimit = 0) - If $iLimit = Default Then $iLimit = 0 - If $iLimit > 0 Then - Local Const $NULL = Chr(0) ; Different from the Null keyword. - - ; Replace delimiter with NULL character using given limit - $sString = StringReplace($sString, $sDelimiter, $NULL, $iLimit) - - ; Split on NULL character, this will leave the remainder in the last element - $sDelimiter = $NULL - ElseIf $iLimit < 0 Then - ; Find delimiter occurence from right-to-left - Local $iIndex = StringInStr($sString, $sDelimiter, 0, $iLimit) - If $iIndex Then - ; Split on left side of string only - $sString = StringLeft($sString, $iIndex - 1) - EndIf - EndIf - - Return StringSplit($sString, $sDelimiter, $STR_ENTIRESPLIT + $STR_NOCOUNT) -EndFunc ;==>_StringExplode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Louis Horvath -; Modified.......: jchd - Removed explicitly checking if the source and insert strings were strings and forcing an @error return value, czardas - re-write for optimization -; =============================================================================================================================== -Func _StringInsert($sString, $sInsertString, $iPosition) - ; Retrieve the length of the source string - Local $iLength = StringLen($sString) - ; Casting Int() takes care of String/Int, Numbers - $iPosition = Int($iPosition) - ; Adjust the position to accomodate negative values (insertion from the right) - If $iPosition < 0 Then $iPosition = $iLength + $iPosition - ; Check the insert position is within bounds - If $iLength < $iPosition Or $iPosition < 0 Then Return SetError(1, 0, $sString) - ; Insert the string - Return StringLeft($sString, $iPosition) & $sInsertString & StringRight($sString, $iLength - $iPosition) -EndFunc ;==>_StringInsert - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jos van der Zande -; Modified.......: -; =============================================================================================================================== -Func _StringProper($sString) - Local $bCapNext = True, $sChr = "", $sReturn = "" - For $i = 1 To StringLen($sString) - $sChr = StringMid($sString, $i, 1) - Select - Case $bCapNext = True - If StringRegExp($sChr, '[a-zA-ZÀ-ÿšœžŸ]') Then - $sChr = StringUpper($sChr) - $bCapNext = False - EndIf - Case Not StringRegExp($sChr, '[a-zA-ZÀ-ÿšœžŸ]') - $bCapNext = True - Case Else - $sChr = StringLower($sChr) - EndSelect - $sReturn &= $sChr - Next - Return $sReturn -EndFunc ;==>_StringProper - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jeremy Landes -; Modified.......: guinness - Removed Select...EndSelect statement and replaced with an If...EndIf as well as optimised the code. -; =============================================================================================================================== -Func _StringRepeat($sString, $iRepeatCount) - ; Casting Int() takes care of String/Int, Numbers. - $iRepeatCount = Int($iRepeatCount) - If $iRepeatCount = 0 Then Return "" ; Return a blank string if the repeat count is zero. - ; Zero is a valid repeat integer. - If StringLen($sString) < 1 Or $iRepeatCount < 0 Then Return SetError(1, 0, "") - Local $sResult = "" - While $iRepeatCount > 1 - If BitAND($iRepeatCount, 1) Then $sResult &= $sString - $sString &= $sString - $iRepeatCount = BitShift($iRepeatCount, 1) - WEnd - Return $sString & $sResult -EndFunc ;==>_StringRepeat - -; #FUNCTION# ==================================================================================================================== -; Author ........: BrewManNH -; Modified ......: -; =============================================================================================================================== -Func _StringTitleCase($sString) - Local $bCapNext = True, $sChr = "", $sReturn = "" - For $i = 1 To StringLen($sString) - $sChr = StringMid($sString, $i, 1) - Select - Case $bCapNext = True - If StringRegExp($sChr, "[a-zA-Z\xC0-\xFF0-9]") Then - $sChr = StringUpper($sChr) - $bCapNext = False - EndIf - Case Not StringRegExp($sChr, "[a-zA-Z\xC0-\xFF'0-9]") - $bCapNext = True - Case Else - $sChr = StringLower($sChr) - EndSelect - $sReturn &= $sChr - Next - Return $sReturn -EndFunc ;==>_StringTitleCase - -; #FUNCTION# ==================================================================================================================== -; Author ........: Jarvis Stubblefield -; Modified.......: SmOke_N - (Re-write using StringToBinary for speed) -; =============================================================================================================================== -Func _StringToHex($sString) - Return Hex(StringToBinary($sString, $SB_UTF8)) -EndFunc ;==>_StringToHex diff --git a/build/Include/StringConstants.au3 b/build/Include/StringConstants.au3 deleted file mode 100644 index 022c7a63e..000000000 --- a/build/Include/StringConstants.au3 +++ /dev/null @@ -1,55 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: String_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script when using String functions. -; Author(s) .....: guinness, jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; StringCompare, StringInStr, StringReplace constants -; Indicates if string operations should be case sensitive -Global Const $STR_NOCASESENSE = 0 ; Not case sensitive (default) -Global Const $STR_CASESENSE = 1 ; Case sensitive -Global Const $STR_NOCASESENSEBASIC = 2 ; Not case sensitive, using a basic comparison - -; StringStripWS Constants -; Indicates the type of stripping that should be performed -Global Const $STR_STRIPLEADING = 1 ; Strip leading whitespace -Global Const $STR_STRIPTRAILING = 2 ; Strip trailing whitespace -Global Const $STR_STRIPSPACES = 4 ; Strip double (or more) spaces between words -Global Const $STR_STRIPALL = 8 ; Strip all spaces (over-rides all other flags) - -; StringSplit Constants -Global Const $STR_CHRSPLIT = 0 ; Each character in the delimiter string will mark the split -Global Const $STR_ENTIRESPLIT = 1 ; Entire delimiter marks the split -Global Const $STR_NOCOUNT = 2 ; Disable the return count - -; StringRegExp Constants -Global Const $STR_REGEXPMATCH = 0 ; Return 1 if match. -Global Const $STR_REGEXPARRAYMATCH = 1 ; Return array of matches. -Global Const $STR_REGEXPARRAYFULLMATCH = 2 ; Return array of matches including the full match (Perl / PHP style). -Global Const $STR_REGEXPARRAYGLOBALMATCH = 3 ; Return array of global matches. -Global Const $STR_REGEXPARRAYGLOBALFULLMATCH = 4 ; Return an array of arrays containing global matches including the full match (Perl / PHP style).Global Const $STR_REGEXPMATCH = 0 ; Each character in the delimiter string will mark the split - -; _StringBetween Constants -Global Const $STR_ENDISSTART = 0 ; End acts as next start when end = start -Global Const $STR_ENDNOTSTART = 1 ; End does not act as new start when end = start - -; BinaryToString, StringToBinary constants -Global Const $SB_ANSI = 1 -Global Const $SB_UTF16LE = 2 -Global Const $SB_UTF16BE = 3 -Global Const $SB_UTF8 = 4 - -; StringFromASCIIArray constants -Global Const $SE_UTF16 = 0 -Global Const $SE_ANSI = 1 -Global Const $SE_UTF8 = 2 - -; StringReverse Constants -Global Const $STR_UTF16 = 0 -Global Const $STR_UCS2 = 1 -; =============================================================================================================================== diff --git a/build/Include/StructureConstants.au3 b/build/Include/StructureConstants.au3 deleted file mode 100644 index 960bfb294..000000000 --- a/build/Include/StructureConstants.au3 +++ /dev/null @@ -1,844 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Structures_Constants -; AutoIt Version : 3.3.14.2 -; Description ...: Constants for Windows API functions. -; Author(s) .....: Paul Campbell (PaulIA), Gary Frost, Jpm, UEZ -; =============================================================================================================================== - -; #LISTING# ===================================================================================================================== -; $tagPOINT -; $tagRECT -; $tagMARGINS -; $tagSIZE -; $tagFILETIME -; $tagSYSTEMTIME -; $tagTIME_ZONE_INFORMATION -; $tagNMHDR -; $tagCOMBOBOXEXITEM -; $tagNMCBEDRAGBEGIN -; $tagNMCBEENDEDIT -; $tagNMCOMBOBOXEX -; $tagDTPRANGE -; $tagNMDATETIMECHANGE -; $tagNMDATETIMEFORMAT -; $tagNMDATETIMEFORMATQUERY -; $tagNMDATETIMEKEYDOWN -; $tagNMDATETIMESTRING -; $tagEVENTLOGRECORD -; $tagGDIP_EFFECTPARAMS_Blur -; $tagGDIP_EFFECTPARAMS_BrightnessContrast -; $tagGDIP_EFFECTPARAMS_ColorBalance -; $tagGDIP_EFFECTPARAMS_ColorCurve -; $tagGDIP_EFFECTPARAMS_ColorLUT -; $tagGDIP_EFFECTPARAMS_HueSaturationLightness -; $tagGDIP_EFFECTPARAMS_Levels -; $tagGDIP_EFFECTPARAMS_RedEyeCorrection -; $tagGDIP_EFFECTPARAMS_Sharpen -; $tagGDIP_EFFECTPARAMS_Tint -; $tagGDIPBITMAPDATA -; $tagGDIPCOLORMATRIX -; $tagGDIPENCODERPARAM -; $tagGDIPENCODERPARAMS -; $tagGDIPRECTF -; $tagGDIPSTARTUPINPUT -; $tagGDIPSTARTUPOUTPUT -; $tagGDIPIMAGECODECINFO -; $tagGDIPPENCODERPARAMS -; $tagHDITEM -; $tagNMHDDISPINFO -; $tagNMHDFILTERBTNCLICK -; $tagNMHEADER -; $tagGETIPAddress -; $tagNMIPADDRESS -; $tagLVFINDINFO -; $tagLVHITTESTINFO -; $tagLVITEM -; $tagNMLISTVIEW -; $tagNMLVCUSTOMDRAW -; $tagNMLVDISPINFO -; $tagNMLVFINDITEM -; $tagNMLVGETINFOTIP -; $tagNMITEMACTIVATE -; $tagNMLVKEYDOWN -; $tagNMLVSCROLL -; $tagMCHITTESTINFO -; $tagMCMONTHRANGE -; $tagMCRANGE -; $tagMCSELRANGE -; $tagNMDAYSTATE -; $tagNMSELCHANGE -; $tagNMOBJECTNOTIFY -; $tagNMTCKEYDOWN -; $tagTVITEMEX -; $tagNMTREEVIEW -; $tagNMTVCUSTOMDRAW -; $tagNMTVDISPINFO -; $tagNMTVGETINFOTIP -; $tagTVHITTESTINFO -; $tagNMTVKEYDOWN -; $tagNMMOUSE -; $tagTOKEN_PRIVILEGES -; $tagIMAGEINFO -; $tagMENUINFO -; $tagMENUITEMINFO -; $tagREBARBANDINFO -; $tagNMREBARAUTOBREAK -; $tagNMRBAUTOSIZE -; $tagNMREBAR -; $tagNMREBARCHEVRON -; $tagNMREBARCHILDSIZE -; $tagCOLORSCHEME -; $tagNMTOOLBAR -; $tagNMTBHOTITEM -; $tagTBBUTTON -; $tagTBBUTTONINFO -; $tagNETRESOURCE -; $tagOVERLAPPED -; $tagOPENFILENAME -; $tagBITMAPINFO -; $tagBLENDFUNCTION -; $tagGUID -; $tagWINDOWPLACEMENT -; $tagWINDOWPOS -; $tagSCROLLINFO -; $tagSCROLLBARINFO -; $tagLOGFONT -; $tagKBDLLHOOKSTRUCT -; $tagPROCESS_INFORMATION -; $tagSTARTUPINFO -; $tagSECURITY_ATTRIBUTES -; $tagWIN32_FIND_DATA -; $tagTEXTMETRIC -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagTVITEM -; =============================================================================================================================== - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagPOINT = "struct;long X;long Y;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagRECT = "struct;long Left;long Top;long Right;long Bottom;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagSIZE = "struct;long X;long Y;endstruct" - -; #STRUCTURE# ===================================================================================================================e -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagMARGINS = "int cxLeftWidth;int cxRightWidth;int cyTopHeight;int cyBottomHeight" - -; ******************************************************************************************************************************* -; Time Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagFILETIME = "struct;dword Lo;dword Hi;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagSYSTEMTIME = "struct;word Year;word Month;word Dow;word Day;word Hour;word Minute;word Second;word MSeconds;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagTIME_ZONE_INFORMATION = "struct;long Bias;wchar StdName[32];word StdDate[8];long StdBias;wchar DayName[32];word DayDate[8];long DayBias;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMHDR = "struct;hwnd hWndFrom;uint_ptr IDFrom;INT Code;endstruct" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; ComboBoxEx Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagCOMBOBOXEXITEM = "uint Mask;int_ptr Item;ptr Text;int TextMax;int Image;int SelectedImage;int OverlayImage;" & _ - "int Indent;lparam Param" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagNMCBEDRAGBEGIN = $tagNMHDR & ";int ItemID;wchar szText[260]" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagNMCBEENDEDIT = $tagNMHDR & ";bool fChanged;int NewSelection;wchar szText[260];int Why" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMCOMBOBOXEX = $tagNMHDR & ";uint Mask;int_ptr Item;ptr Text;int TextMax;int Image;" & _ - "int SelectedImage;int OverlayImage;int Indent;lparam Param" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Date/Time Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagDTPRANGE = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;" & _ - "word MinSecond;word MinMSecond;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;" & _ - "word MaxMinute;word MaxSecond;word MaxMSecond;bool MinValid;bool MaxValid" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMDATETIMECHANGE = $tagNMHDR & ";dword Flag;" & $tagSYSTEMTIME - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMDATETIMEFORMAT = $tagNMHDR & ";ptr Format;" & $tagSYSTEMTIME & ";ptr pDisplay;wchar Display[64]" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMDATETIMEFORMATQUERY = $tagNMHDR & ";ptr Format;struct;long SizeX;long SizeY;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMDATETIMEKEYDOWN = $tagNMHDR & ";int VirtKey;ptr Format;" & $tagSYSTEMTIME - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMDATETIMESTRING = $tagNMHDR & ";ptr UserString;" & $tagSYSTEMTIME & ";dword Flags" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Event Log Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagEVENTLOGRECORD = "dword Length;dword Reserved;dword RecordNumber;dword TimeGenerated;dword TimeWritten;dword EventID;" & _ - "word EventType;word NumStrings;word EventCategory;word ReservedFlags;dword ClosingRecordNumber;dword StringOffset;" & _ - "dword UserSidLength;dword UserSidOffset;dword DataLength;dword DataOffset" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; GDI+ Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_Blur = "float Radius; bool ExpandEdge" - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_BrightnessContrast = "int BrightnessLevel; int ContrastLevel" - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_ColorBalance = "int CyanRed; int MagentaGreen; int YellowBlue" - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_ColorCurve = "int Adjustment; int Channel; int AdjustValue" - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_ColorLUT = "byte LutB[256]; byte LutG[256]; byte LutR[256]; byte LutA[256]" ;look up tables for each color channel. - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_HueSaturationLightness = "int HueLevel; int SaturationLevel; int LightnessLevel" - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_Levels = "int Highlight; int Midtone; int Shadow" - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_RedEyeCorrection = "uint NumberOfAreas; ptr Areas" - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_Sharpen = "float Radius; float Amount" - -; #STRUCTURE# =================================================================================================================== -; Author ........: UEZ -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIP_EFFECTPARAMS_Tint = "int Hue; int Amount" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagGDIPBITMAPDATA = "uint Width;uint Height;int Stride;int Format;ptr Scan0;uint_ptr Reserved" - -; #STRUCTURE# =================================================================================================================== -; Author ........: FireFox, UEZ -; =============================================================================================================================== -Global Const $tagGDIPCOLORMATRIX = "float m[25]" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagGDIPENCODERPARAM = "struct;byte GUID[16];ulong NumberOfValues;ulong Type;ptr Values;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIPENCODERPARAMS = "uint Count;" & $tagGDIPENCODERPARAM - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagGDIPRECTF = "struct;float X;float Y;float Width;float Height;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagGDIPSTARTUPINPUT = "uint Version;ptr Callback;bool NoThread;bool NoCodecs" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagGDIPSTARTUPOUTPUT = "ptr HookProc;ptr UnhookProc" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagGDIPIMAGECODECINFO = "byte CLSID[16];byte FormatID[16];ptr CodecName;ptr DllName;ptr FormatDesc;ptr FileExt;" & _ - "ptr MimeType;dword Flags;dword Version;dword SigCount;dword SigSize;ptr SigPattern;ptr SigMask" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagGDIPPENCODERPARAMS = "uint Count;byte Params[1]" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Header Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagHDITEM = "uint Mask;int XY;ptr Text;handle hBMP;int TextMax;int Fmt;lparam Param;int Image;int Order;uint Type;ptr pFilter;uint State" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMHDDISPINFO = $tagNMHDR & ";int Item;uint Mask;ptr Text;int TextMax;int Image;lparam lParam" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMHDFILTERBTNCLICK = $tagNMHDR & ";int Item;" & $tagRECT - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMHEADER = $tagNMHDR & ";int Item;int Button;ptr pItem" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; IPAddress Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagGETIPAddress = "byte Field4;byte Field3;byte Field2;byte Field1" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMIPADDRESS = $tagNMHDR & ";int Field;int Value" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; ListView Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagLVFINDINFO = "struct;uint Flags;ptr Text;lparam Param;" & $tagPOINT & ";uint Direction;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagLVHITTESTINFO = $tagPOINT & ";uint Flags;int Item;int SubItem;int iGroup" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagLVITEM = "struct;uint Mask;int Item;int SubItem;uint State;uint StateMask;ptr Text;int TextMax;int Image;lparam Param;" & _ - "int Indent;int GroupID;uint Columns;ptr pColumns;ptr piColFmt;int iGroup;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMLISTVIEW = $tagNMHDR & ";int Item;int SubItem;uint NewState;uint OldState;uint Changed;" & _ - "struct;long ActionX;long ActionY;endstruct;lparam Param" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagNMLVCUSTOMDRAW = "struct;" & $tagNMHDR & ";dword dwDrawStage;handle hdc;" & $tagRECT & _ - ";dword_ptr dwItemSpec;uint uItemState;lparam lItemlParam;endstruct" & _ - ";dword clrText;dword clrTextBk;int iSubItem;dword dwItemType;dword clrFace;int iIconEffect;" & _ - "int iIconPhase;int iPartID;int iStateID;struct;long TextLeft;long TextTop;long TextRight;long TextBottom;endstruct;uint uAlign" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMLVDISPINFO = $tagNMHDR & ";" & $tagLVITEM - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagNMLVFINDITEM = $tagNMHDR & ";int Start;" & $tagLVFINDINFO - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMLVGETINFOTIP = $tagNMHDR & ";dword Flags;ptr Text;int TextMax;int Item;int SubItem;lparam lParam" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMITEMACTIVATE = $tagNMHDR & ";int Index;int SubItem;uint NewState;uint OldState;uint Changed;" & _ - $tagPOINT & ";lparam lParam;uint KeyFlags" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMLVKEYDOWN = "align 1;" & $tagNMHDR & ";word VKey;uint Flags" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMLVSCROLL = $tagNMHDR & ";int DX;int DY" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Month Calendar Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagMCHITTESTINFO = "uint Size;" & $tagPOINT & ";uint Hit;" & $tagSYSTEMTIME & _ - ";" & $tagRECT & ";int iOffset;int iRow;int iCol" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagMCMONTHRANGE = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & _ - "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & _ - "word MaxMSeconds;short Span" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagMCRANGE = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & _ - "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & _ - "word MaxMSeconds;short MinSet;short MaxSet" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagMCSELRANGE = "word MinYear;word MinMonth;word MinDOW;word MinDay;word MinHour;word MinMinute;word MinSecond;" & _ - "word MinMSeconds;word MaxYear;word MaxMonth;word MaxDOW;word MaxDay;word MaxHour;word MaxMinute;word MaxSecond;" & _ - "word MaxMSeconds" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMDAYSTATE = $tagNMHDR & ";" & $tagSYSTEMTIME & ";int DayState;ptr pDayState" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMSELCHANGE = $tagNMHDR & _ - ";struct;word BegYear;word BegMonth;word BegDOW;word BegDay;word BegHour;word BegMinute;word BegSecond;word BegMSeconds;endstruct;" & _ - "struct;word EndYear;word EndMonth;word EndDOW;word EndDay;word EndHour;word EndMinute;word EndSecond;word EndMSeconds;endstruct" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Tab Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagNMOBJECTNOTIFY = $tagNMHDR & ";int Item;ptr piid;ptr pObject;long Result;dword dwFlags" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMTCKEYDOWN = "align 1;" & $tagNMHDR & ";word VKey;uint Flags" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; TreeView Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagTVITEM -; Description ...: Specifies or receives attributes of a tree-view item -; Fields ........: Mask - Flags that indicate which of the other structure members contain valid data: -; ... -; Param - A value to associate with the item -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagTVITEM = "struct;uint Mask;handle hItem;uint State;uint StateMask;ptr Text;int TextMax;int Image;int SelectedImage;" & _ - "int Children;lparam Param;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagTVITEMEX = "struct;" & $tagTVITEM & ";int Integral;uint uStateEx;hwnd hwnd;int iExpandedImage;int iReserved;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMTREEVIEW = $tagNMHDR & ";uint Action;" & _ - "struct;uint OldMask;handle OldhItem;uint OldState;uint OldStateMask;" & _ - "ptr OldText;int OldTextMax;int OldImage;int OldSelectedImage;int OldChildren;lparam OldParam;endstruct;" & _ - "struct;uint NewMask;handle NewhItem;uint NewState;uint NewStateMask;" & _ - "ptr NewText;int NewTextMax;int NewImage;int NewSelectedImage;int NewChildren;lparam NewParam;endstruct;" & _ - "struct;long PointX;long PointY;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNMTVCUSTOMDRAW = "struct;" & $tagNMHDR & ";dword DrawStage;handle HDC;" & $tagRECT & _ - ";dword_ptr ItemSpec;uint ItemState;lparam ItemParam;endstruct" & _ - ";dword ClrText;dword ClrTextBk;int Level" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMTVDISPINFO = $tagNMHDR & ";" & $tagTVITEM - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMTVGETINFOTIP = $tagNMHDR & ";ptr Text;int TextMax;handle hItem;lparam lParam" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Matt Diesel (Mat) -; =============================================================================================================================== -Global Const $tagNMTVITEMCHANGE = $tagNMHDR & ";uint Changed;handle hItem;uint StateNew;uint StateOld;lparam lParam;" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagTVHITTESTINFO = $tagPOINT & ";uint Flags;handle Item" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMTVKEYDOWN = "align 1;" & $tagNMHDR & ";word VKey;uint Flags" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; ToolTip Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagNMMOUSE = $tagNMHDR & ";dword_ptr ItemSpec;dword_ptr ItemData;" & $tagPOINT & ";lparam HitInfo" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Security Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagTOKEN_PRIVILEGES = "dword Count;align 4;int64 LUID;dword Attributes" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; ImageList Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagIMAGEINFO = "handle hBitmap;handle hMask;int Unused1;int Unused2;" & $tagRECT - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Menu Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagMENUINFO = "dword Size;INT Mask;dword Style;uint YMax;handle hBack;dword ContextHelpID;ulong_ptr MenuData" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagMENUITEMINFO = "uint Size;uint Mask;uint Type;uint State;uint ID;handle SubMenu;handle BmpChecked;handle BmpUnchecked;" & _ - "ulong_ptr ItemData;ptr TypeData;uint CCH;handle BmpItem" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Rebar Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; Modified ......: jpm -; =============================================================================================================================== -Global Const $tagREBARBANDINFO = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & _ - "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & _ - "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader" & ((@OSVersion = "WIN_XP") ? "" : ";" & $tagRECT & ";uint uChevronState") - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagNMREBARAUTOBREAK = $tagNMHDR & ";uint uBand;uint wID;lparam lParam;uint uMsg;uint fStyleCurrent;bool fAutoBreak" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagNMRBAUTOSIZE = $tagNMHDR & ";bool fChanged;" & _ - "struct;long TargetLeft;long TargetTop;long TargetRight;long TargetBottom;endstruct;" & _ - "struct;long ActualLeft;long ActualTop;long ActualRight;long ActualBottom;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagNMREBAR = $tagNMHDR & ";dword dwMask;uint uBand;uint fStyle;uint wID;lparam lParam" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagNMREBARCHEVRON = $tagNMHDR & ";uint uBand;uint wID;lparam lParam;" & $tagRECT & ";lparam lParamNM" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagNMREBARCHILDSIZE = $tagNMHDR & ";uint uBand;uint wID;" & _ - "struct;long CLeft;long CTop;long CRight;long CBottom;endstruct;" & _ - "struct;long BLeft;long BTop;long BRight;long BBottom;endstruct" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; ToolBar Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagCOLORSCHEME = "dword Size;dword BtnHighlight;dword BtnShadow" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagNMTOOLBAR = $tagNMHDR & ";int iItem;" & _ - "struct;int iBitmap;int idCommand;byte fsState;byte fsStyle;dword_ptr dwData;int_ptr iString;endstruct" & _ - ";int cchText;ptr pszText;" & $tagRECT - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagNMTBHOTITEM = $tagNMHDR & ";int idOld;int idNew;dword dwFlags" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagTBBUTTON = "int Bitmap;int Command;byte State;byte Style;dword_ptr Param;int_ptr String" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagTBBUTTONINFO = "uint Size;dword Mask;int Command;int Image;byte State;byte Style;word CX;dword_ptr Param;ptr Text;int TextMax" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Windows Networking Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagNETRESOURCE = "dword Scope;dword Type;dword DisplayType;dword Usage;ptr LocalName;ptr RemoteName;ptr Comment;ptr Provider" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Odds and Ends Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagOVERLAPPED = "ulong_ptr Internal;ulong_ptr InternalHigh;struct;dword Offset;dword OffsetHigh;endstruct;handle hEvent" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagOPENFILENAME = "dword StructSize;hwnd hwndOwner;handle hInstance;ptr lpstrFilter;ptr lpstrCustomFilter;" & _ - "dword nMaxCustFilter;dword nFilterIndex;ptr lpstrFile;dword nMaxFile;ptr lpstrFileTitle;dword nMaxFileTitle;" & _ - "ptr lpstrInitialDir;ptr lpstrTitle;dword Flags;word nFileOffset;word nFileExtension;ptr lpstrDefExt;lparam lCustData;" & _ - "ptr lpfnHook;ptr lpTemplateName;ptr pvReserved;dword dwReserved;dword FlagsEx" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagBITMAPINFOHEADER = "struct;dword biSize;long biWidth;long biHeight;word biPlanes;word biBitCount;" & _ - "dword biCompression;dword biSizeImage;long biXPelsPerMeter;long biYPelsPerMeter;dword biClrUsed;dword biClrImportant;endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagBITMAPINFO = $tagBITMAPINFOHEADER & ";dword biRGBQuad[1]" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagBLENDFUNCTION = "byte Op;byte Flags;byte Alpha;byte Format" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagGUID = "struct;ulong Data1;ushort Data2;ushort Data3;byte Data4[8];endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: PsaltyDS -; =============================================================================================================================== -Global Const $tagWINDOWPLACEMENT = "uint length;uint flags;uint showCmd;long ptMinPosition[2];long ptMaxPosition[2];long rcNormalPosition[4]" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagWINDOWPOS = "hwnd hWnd;hwnd InsertAfter;int X;int Y;int CX;int CY;uint Flags" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagSCROLLINFO = "uint cbSize;uint fMask;int nMin;int nMax;uint nPage;int nPos;int nTrackPos" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagSCROLLBARINFO = "dword cbSize;" & $tagRECT & ";int dxyLineButton;int xyThumbTop;" & _ - "int xyThumbBottom;int reserved;dword rgstate[6]" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagLOGFONT = "struct;long Height;long Width;long Escapement;long Orientation;long Weight;byte Italic;byte Underline;" & _ - "byte Strikeout;byte CharSet;byte OutPrecision;byte ClipPrecision;byte Quality;byte PitchAndFamily;wchar FaceName[32];endstruct" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost (gafrost) -; =============================================================================================================================== -Global Const $tagKBDLLHOOKSTRUCT = "dword vkCode;dword scanCode;dword flags;dword time;ulong_ptr dwExtraInfo" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Process and Thread Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagPROCESS_INFORMATION = "handle hProcess;handle hThread;dword ProcessID;dword ThreadID" - -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagSTARTUPINFO = "dword Size;ptr Reserved1;ptr Desktop;ptr Title;dword X;dword Y;dword XSize;dword YSize;dword XCountChars;" & _ - "dword YCountChars;dword FillAttribute;dword Flags;word ShowWindow;word Reserved2;ptr Reserved3;handle StdInput;" & _ - "handle StdOutput;handle StdError" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; Authorization Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; =============================================================================================================================== -Global Const $tagSECURITY_ATTRIBUTES = "dword Length;ptr Descriptor;bool InheritHandle" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; FileFind Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Jpm -; =============================================================================================================================== -Global Const $tagWIN32_FIND_DATA = "dword dwFileAttributes;dword ftCreationTime[2];dword ftLastAccessTime[2];dword ftLastWriteTime[2];dword nFileSizeHigh;dword nFileSizeLow;dword dwReserved0;dword dwReserved1;wchar cFileName[260];wchar cAlternateFileName[14]" - -; =============================================================================================================================== -; ******************************************************************************************************************************* -; GetTextMetrics Structures -; ******************************************************************************************************************************* -; =============================================================================================================================== -; #STRUCTURE# =================================================================================================================== -; Author ........: Gary Frost -; =============================================================================================================================== -Global Const $tagTEXTMETRIC = "long tmHeight;long tmAscent;long tmDescent;long tmInternalLeading;long tmExternalLeading;" & _ - "long tmAveCharWidth;long tmMaxCharWidth;long tmWeight;long tmOverhang;long tmDigitizedAspectX;long tmDigitizedAspectY;" & _ - "wchar tmFirstChar;wchar tmLastChar;wchar tmDefaultChar;wchar tmBreakChar;byte tmItalic;byte tmUnderlined;byte tmStruckOut;" & _ - "byte tmPitchAndFamily;byte tmCharSet" - -; =============================================================================================================================== Leave this line at the end of the file ===================================================================================== diff --git a/build/Include/TabConstants.au3 b/build/Include/TabConstants.au3 deleted file mode 100644 index 78b03f677..000000000 --- a/build/Include/TabConstants.au3 +++ /dev/null @@ -1,108 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Tab_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control Tab styles and much more constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; =============================================================================================================================== - -; #EXTSTYLES# =================================================================================================================== -Global Const $TCS_EX_FLATSEPARATORS = 0x00000001 ; The tab control will draw separators between the tab items -Global Const $TCS_EX_REGISTERDROP = 0x00000002 ; The tab control generates TCN_GETOBJECT notification messages -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $TCHT_NOWHERE = 0x00000001 -Global Const $TCHT_ONITEMICON = 0x00000002 -Global Const $TCHT_ONITEMLABEL = 0x00000004 -Global Const $TCHT_ONITEM = 0x00000006 - -Global Const $TCIF_TEXT = 0x00000001 -Global Const $TCIF_IMAGE = 0x00000002 -Global Const $TCIF_RTLREADING = 0x00000004 -Global Const $TCIF_PARAM = 0x00000008 -Global Const $TCIF_STATE = 0x00000010 -Global Const $TCIF_ALLDATA = 0x0000001B - -; item states -Global Const $TCIS_BUTTONPRESSED = 0x00000001 -Global Const $TCIS_HIGHLIGHTED = 0x00000002 - -; Error checking -Global Const $TC_ERR = -1 - -; Styles -Global Const $TCS_BOTTOM = 0x00000002 ; Tabs appear at the bottom of the control -Global Const $TCS_BUTTONS = 0x00000100 ; Tabs appear as buttons, and no border is drawn around the display area -Global Const $TCS_FIXEDWIDTH = 0x00000400 ; All tabs are the same width -Global Const $TCS_FLATBUTTONS = 0x00000008 ; Selected tabs appear as being indented into the background -Global Const $TCS_FOCUSNEVER = 0x00008000 ; The tab control does not receive the input focus when clicked -Global Const $TCS_FOCUSONBUTTONDOWN = 0x00001000 ; The tab control receives the input focus when clicked -Global Const $TCS_FORCEICONLEFT = 0x00000010 ; Icons are aligned with the left edge of each fixed-width tab -Global Const $TCS_FORCELABELLEFT = 0x00000020 ; Labels are aligned with the left edge of each fixed-width tab -Global Const $TCS_HOTTRACK = 0x00000040 ; Items under the pointer are automatically highlighted -Global Const $TCS_MULTILINE = 0x00000200 ; Multiple rows of tabs are displayed if necessary -Global Const $TCS_MULTISELECT = 0x00000004 ; Multiple tabs can be selected with the CTRL key when clicking -Global Const $TCS_OWNERDRAWFIXED = 0x00002000 ; The parent window is responsible for drawing tabs -Global Const $TCS_RAGGEDRIGHT = 0x00000800 ; Rows of tabs will not be stretched to fill the control width -Global Const $TCS_RIGHT = 0x00000002 ; Tabs appear vertically on the right side of controls -Global Const $TCS_RIGHTJUSTIFY = 0x00000000 ; The width of each tab is increased to fill the control width -Global Const $TCS_SCROLLOPPOSITE = 0x00000001 ; Unneeded tabs scroll to the opposite side of the control -Global Const $TCS_SINGLELINE = 0x00000000 ; Only one row of tabs is displayed -Global Const $TCS_TABS = 0x00000000 ; Tabs appear as tabs, and a border is drawn around the display area -Global Const $TCS_TOOLTIPS = 0x00004000 ; The tab control has a ToolTip control associated with -Global Const $TCS_VERTICAL = 0x00000080 ; Tabs appear at the left side of the control - -; Control default styles -Global Const $GUI_SS_DEFAULT_TAB = 0 - -; Messages to send to Tab control -Global Const $TCM_FIRST = 0x1300 -Global Const $TCCM_FIRST = 0X2000 -Global Const $TCM_ADJUSTRECT = ($TCM_FIRST + 40) -Global Const $TCM_DELETEALLITEMS = ($TCM_FIRST + 9) -Global Const $TCM_DELETEITEM = ($TCM_FIRST + 8) -Global Const $TCM_DESELECTALL = ($TCM_FIRST + 50) -Global Const $TCM_GETCURFOCUS = ($TCM_FIRST + 47) -Global Const $TCM_GETCURSEL = ($TCM_FIRST + 11) -Global Const $TCM_GETEXTENDEDSTYLE = ($TCM_FIRST + 53) -Global Const $TCM_GETIMAGELIST = ($TCM_FIRST + 2) -Global Const $TCM_GETITEMA = ($TCM_FIRST + 5) -Global Const $TCM_GETITEMW = ($TCM_FIRST + 60) -Global Const $TCM_GETITEMCOUNT = ($TCM_FIRST + 4) -Global Const $TCM_GETITEMRECT = ($TCM_FIRST + 10) -Global Const $TCM_GETROWCOUNT = ($TCM_FIRST + 44) -Global Const $TCM_GETTOOLTIPS = ($TCM_FIRST + 45) -Global Const $TCCM_GETUNICODEFORMAT = ($TCCM_FIRST + 6) -Global Const $TCM_GETUNICODEFORMAT = $TCCM_GETUNICODEFORMAT -Global Const $TCM_HIGHLIGHTITEM = ($TCM_FIRST + 51) -Global Const $TCM_HITTEST = ($TCM_FIRST + 13) -Global Const $TCM_INSERTITEMA = ($TCM_FIRST + 7) -Global Const $TCM_INSERTITEMW = ($TCM_FIRST + 62) -Global Const $TCM_REMOVEIMAGE = ($TCM_FIRST + 42) -Global Const $TCM_SETITEMA = ($TCM_FIRST + 6) -Global Const $TCM_SETITEMW = ($TCM_FIRST + 61) -Global Const $TCM_SETITEMEXTRA = ($TCM_FIRST + 14) -Global Const $TCM_SETITEMSIZE = $TCM_FIRST + 41 -Global Const $TCM_SETCURFOCUS = ($TCM_FIRST + 48) -Global Const $TCM_SETCURSEL = ($TCM_FIRST + 12) -Global Const $TCM_SETEXTENDEDSTYLE = ($TCM_FIRST + 52) -Global Const $TCM_SETIMAGELIST = $TCM_FIRST + 3 -Global Const $TCM_SETMINTABWIDTH = ($TCM_FIRST + 49) -Global Const $TCM_SETPADDING = ($TCM_FIRST + 43) -Global Const $TCM_SETTOOLTIPS = ($TCM_FIRST + 46) -Global Const $TCCM_SETUNICODEFORMAT = ($TCCM_FIRST + 5) -Global Const $TCM_SETUNICODEFORMAT = $TCCM_SETUNICODEFORMAT - -; Notifications -Global Const $TCN_FIRST = -550 -Global Const $TCN_FOCUSCHANGE = ($TCN_FIRST - 4) -Global Const $TCN_GETOBJECT = ($TCN_FIRST - 3) -Global Const $TCN_KEYDOWN = ($TCN_FIRST - 0) -Global Const $TCN_SELCHANGE = ($TCN_FIRST - 1) -Global Const $TCN_SELCHANGING = ($TCN_FIRST - 2) -; =============================================================================================================================== diff --git a/build/Include/Timers.au3 b/build/Include/Timers.au3 deleted file mode 100644 index 5a2b3bb84..000000000 --- a/build/Include/Timers.au3 +++ /dev/null @@ -1,219 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Timers -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Timers management. -; An application uses a timer to schedule an event for a window after a specified time has elapsed. -; Each time the specified interval (or time-out value) for a timer elapses, the system notifies the window -; associated with the timer. Because a timer's accuracy depends on the system clock rate and how often the -; application retrieves messages from the message queue, the time-out value is only approximate. -; Author(s) .....: Gary Frost -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_aTimers_aTimerIDs[1][3] -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _Timer_Diff -; _Timer_GetIdleTime -; _Timer_GetTimerID -; _Timer_Init -; _Timer_KillAllTimers -; _Timer_KillTimer -; _Timer_SetTimer -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __Timer_QueryPerformanceCounter -; __Timer_QueryPerformanceFrequency -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost, original by Toady -; Modified.......: -; =============================================================================================================================== -Func _Timer_Diff($iTimeStamp) - Return 1000 * (__Timer_QueryPerformanceCounter() - $iTimeStamp) / __Timer_QueryPerformanceFrequency() -EndFunc ;==>_Timer_Diff - -; #FUNCTION# ==================================================================================================================== -; Author ........: PsaltyDS at http://www.autoitscript.com/forum -; Modified.......: -; =============================================================================================================================== -Func _Timer_GetIdleTime() - ; Get ticks at last activity - Local $tStruct = DllStructCreate("uint;dword"); - DllStructSetData($tStruct, 1, DllStructGetSize($tStruct)); - Local $aResult = DllCall("user32.dll", "bool", "GetLastInputInfo", "struct*", $tStruct) - If @error Or $aResult[0] = 0 Then Return SetError(@error, @extended, 0) - - ; Get current ticks since last restart - Local $avTicks = DllCall("kernel32.dll", "dword", "GetTickCount") - If @error Or Not $aResult[0] Then Return SetError(@error, @extended, 0) - - ; Return time since last activity, in ticks (approx milliseconds) - Local $iDiff = $avTicks[0] - DllStructGetData($tStruct, 2) - If $iDiff < 0 Then Return SetExtended(1, $avTicks[0]) ; Rollover of ticks counter has occured - ; Normal return - Return $iDiff -EndFunc ;==>_Timer_GetIdleTime - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _Timer_GetTimerID($wParam) - Local $_iTimerID = Dec(Hex($wParam, 8)), $iMax = UBound($__g_aTimers_aTimerIDs) - 1 - For $x = 1 To $iMax - If $_iTimerID = $__g_aTimers_aTimerIDs[$x][1] Then Return $__g_aTimers_aTimerIDs[$x][0] - Next - Return 0 -EndFunc ;==>_Timer_GetTimerID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost, original by Toady -; Modified.......: -; =============================================================================================================================== -Func _Timer_Init() - Return __Timer_QueryPerformanceCounter() -EndFunc ;==>_Timer_Init - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: Squirrely1 -; =============================================================================================================================== -Func _Timer_KillAllTimers($hWnd) - Local $iNumTimers = $__g_aTimers_aTimerIDs[0][0] - If $iNumTimers = 0 Then Return False - Local $aResult, $hCallBack = 0 - For $x = $iNumTimers To 1 Step -1 - If IsHWnd($hWnd) Then - $aResult = DllCall("user32.dll", "bool", "KillTimer", "hwnd", $hWnd, "uint_ptr", $__g_aTimers_aTimerIDs[$x][1]) - Else - $aResult = DllCall("user32.dll", "bool", "KillTimer", "hwnd", $hWnd, "uint_ptr", $__g_aTimers_aTimerIDs[$x][0]) - EndIf - If @error Or $aResult[0] = 0 Then Return SetError(@error, @extended, False) - $hCallBack = $__g_aTimers_aTimerIDs[$x][2] - If $hCallBack <> 0 Then DllCallbackFree($hCallBack) - $__g_aTimers_aTimerIDs[0][0] -= 1 - Next - ReDim $__g_aTimers_aTimerIDs[1][3] - Return True -EndFunc ;==>_Timer_KillAllTimers - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: Squirrely1 -; =============================================================================================================================== -Func _Timer_KillTimer($hWnd, $iTimerID) - Local $aResult[1] = [0], $hCallBack = 0, $iUBound = UBound($__g_aTimers_aTimerIDs) - 1 - For $x = 1 To $iUBound - If $__g_aTimers_aTimerIDs[$x][0] = $iTimerID Then - If IsHWnd($hWnd) Then - $aResult = DllCall("user32.dll", "bool", "KillTimer", "hwnd", $hWnd, "uint_ptr", $__g_aTimers_aTimerIDs[$x][1]) - Else - $aResult = DllCall("user32.dll", "bool", "KillTimer", "hwnd", $hWnd, "uint_ptr", $__g_aTimers_aTimerIDs[$x][0]) - EndIf - If @error Or $aResult[0] = 0 Then Return SetError(@error, @extended, False) - $hCallBack = $__g_aTimers_aTimerIDs[$x][2] - If $hCallBack <> 0 Then DllCallbackFree($hCallBack) - For $i = $x To $iUBound - 1 - $__g_aTimers_aTimerIDs[$i][0] = $__g_aTimers_aTimerIDs[$i + 1][0] - $__g_aTimers_aTimerIDs[$i][1] = $__g_aTimers_aTimerIDs[$i + 1][1] - $__g_aTimers_aTimerIDs[$i][2] = $__g_aTimers_aTimerIDs[$i + 1][2] - Next - ReDim $__g_aTimers_aTimerIDs[UBound($__g_aTimers_aTimerIDs - 1)][3] - $__g_aTimers_aTimerIDs[0][0] -= 1 - ExitLoop - EndIf - Next - Return $aResult[0] <> 0 -EndFunc ;==>_Timer_KillTimer - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Timer_QueryPerformanceCounter -; Description ...: Retrieves the current value of the high-resolution performance counter -; Syntax.........: __Timer_QueryPerformanceCounter ( ) -; Parameters ....: -; Return values .: Success - Current performance-counter value, in counts -; Failure - -1 -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: -; Related .......: __Timer_QueryPerformanceFrequency -; Link ..........: @@MsdnLink@@ QueryPerformanceCounter -; Example .......: -; =============================================================================================================================== -Func __Timer_QueryPerformanceCounter() - Local $aResult = DllCall("kernel32.dll", "bool", "QueryPerformanceCounter", "int64*", 0) - If @error Then Return SetError(@error, @extended, -1) - Return SetExtended($aResult[0], $aResult[1]) -EndFunc ;==>__Timer_QueryPerformanceCounter - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __Timer_QueryPerformanceFrequency -; Description ...: Retrieves the current value of the high-resolution performance counter -; Syntax.........: __Timer_QueryPerformanceFrequency ( ) -; Parameters ....: -; Return values .: Success - Current performance-counter frequency, in counts per second -; Failure - 0 -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: If the installed hardware does not support a high-resolution performance counter, the return can be zero. -; Related .......: __Timer_QueryPerformanceCounter -; Link ..........: @@MsdnLink@@ QueryPerformanceCounter -; Example .......: -; =============================================================================================================================== -Func __Timer_QueryPerformanceFrequency() - Local $aResult = DllCall("kernel32.dll", "bool", "QueryPerformanceFrequency", "int64*", 0) - If @error Then Return SetError(@error, @extended, 0) - Return SetExtended($aResult[0], $aResult[1]) -EndFunc ;==>__Timer_QueryPerformanceFrequency - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: Squirrely1 -; =============================================================================================================================== -Func _Timer_SetTimer($hWnd, $iElapse = 250, $sTimerFunc = "", $iTimerID = -1) - Local $aResult[1] = [0], $pTimerFunc = 0, $hCallBack = 0, $iIndex = $__g_aTimers_aTimerIDs[0][0] + 1 - If $iTimerID = -1 Then ; create a new timer - ReDim $__g_aTimers_aTimerIDs[$iIndex + 1][3] - $__g_aTimers_aTimerIDs[0][0] = $iIndex - $iTimerID = $iIndex + 1000 - For $x = 1 To $iIndex - If $__g_aTimers_aTimerIDs[$x][0] = $iTimerID Then - $iTimerID = $iTimerID + 1 - $x = 0 - EndIf - Next - If $sTimerFunc <> "" Then ; using callbacks, if $sTimerFunc = "" then using WM_TIMER events - $hCallBack = DllCallbackRegister($sTimerFunc, "none", "hwnd;uint;uint_ptr;dword") - If $hCallBack = 0 Then Return SetError(-1, -1, 0) - $pTimerFunc = DllCallbackGetPtr($hCallBack) - If $pTimerFunc = 0 Then Return SetError(-1, -1, 0) - EndIf - $aResult = DllCall("user32.dll", "uint_ptr", "SetTimer", "hwnd", $hWnd, "uint_ptr", $iTimerID, "uint", $iElapse, "ptr", $pTimerFunc) - If @error Or $aResult[0] = 0 Then Return SetError(@error, @extended, 0) - $__g_aTimers_aTimerIDs[$iIndex][0] = $aResult[0] ; integer identifier - $__g_aTimers_aTimerIDs[$iIndex][1] = $iTimerID ; timer id - $__g_aTimers_aTimerIDs[$iIndex][2] = $hCallBack ; callback identifier, need this for the Kill Timer - Else ; reuse timer - For $x = 1 To $iIndex - 1 - If $__g_aTimers_aTimerIDs[$x][0] = $iTimerID Then - If IsHWnd($hWnd) Then $iTimerID = $__g_aTimers_aTimerIDs[$x][1] - $hCallBack = $__g_aTimers_aTimerIDs[$x][2] - If $hCallBack <> 0 Then ; call back was used to create the timer - $pTimerFunc = DllCallbackGetPtr($hCallBack) - If $pTimerFunc = 0 Then Return SetError(-1, -1, 0) - EndIf - $aResult = DllCall("user32.dll", "uint_ptr", "SetTimer", "hwnd", $hWnd, "uint_ptr", $iTimerID, "uint", $iElapse, "ptr", $pTimerFunc) - If @error Or $aResult[0] = 0 Then Return SetError(@error, @extended, 0) - ExitLoop - EndIf - Next - EndIf - Return $aResult[0] -EndFunc ;==>_Timer_SetTimer diff --git a/build/Include/ToolTipConstants.au3 b/build/Include/ToolTipConstants.au3 deleted file mode 100644 index c3895c1a2..000000000 --- a/build/Include/ToolTipConstants.au3 +++ /dev/null @@ -1,94 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: ToolTip_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for ToolTip functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $TTF_IDISHWND = 0x00000001 -Global Const $TTF_CENTERTIP = 0x00000002 -Global Const $TTF_RTLREADING = 0x00000004 -Global Const $TTF_SUBCLASS = 0x00000010 -Global Const $TTF_TRACK = 0x00000020 -Global Const $TTF_ABSOLUTE = 0x00000080 -Global Const $TTF_TRANSPARENT = 0x00000100 -Global Const $TTF_PARSELINKS = 0x00001000 -Global Const $TTF_DI_SETITEM = 0x00008000 - -; Messages -Global Const $__TOOLTIPCONSTANTS_WM_USER = 0X400 -Global Const $TTM_ACTIVATE = $__TOOLTIPCONSTANTS_WM_USER + 1 -Global Const $TTM_SETDELAYTIME = $__TOOLTIPCONSTANTS_WM_USER + 3 -Global Const $TTM_ADDTOOL = $__TOOLTIPCONSTANTS_WM_USER + 4 -Global Const $TTM_DELTOOL = $__TOOLTIPCONSTANTS_WM_USER + 5 -Global Const $TTM_NEWTOOLRECT = $__TOOLTIPCONSTANTS_WM_USER + 6 -Global Const $TTM_GETTOOLINFO = $__TOOLTIPCONSTANTS_WM_USER + 8 -Global Const $TTM_SETTOOLINFO = $__TOOLTIPCONSTANTS_WM_USER + 9 -Global Const $TTM_HITTEST = $__TOOLTIPCONSTANTS_WM_USER + 10 -Global Const $TTM_GETTEXT = $__TOOLTIPCONSTANTS_WM_USER + 11 -Global Const $TTM_UPDATETIPTEXT = $__TOOLTIPCONSTANTS_WM_USER + 12 -Global Const $TTM_GETTOOLCOUNT = $__TOOLTIPCONSTANTS_WM_USER + 13 -Global Const $TTM_ENUMTOOLS = $__TOOLTIPCONSTANTS_WM_USER + 14 -Global Const $TTM_GETCURRENTTOOL = $__TOOLTIPCONSTANTS_WM_USER + 15 -Global Const $TTM_WINDOWFROMPOINT = $__TOOLTIPCONSTANTS_WM_USER + 16 -Global Const $TTM_TRACKACTIVATE = $__TOOLTIPCONSTANTS_WM_USER + 17 -Global Const $TTM_TRACKPOSITION = $__TOOLTIPCONSTANTS_WM_USER + 18 -Global Const $TTM_SETTIPBKCOLOR = $__TOOLTIPCONSTANTS_WM_USER + 19 -Global Const $TTM_SETTIPTEXTCOLOR = $__TOOLTIPCONSTANTS_WM_USER + 20 -Global Const $TTM_GETDELAYTIME = $__TOOLTIPCONSTANTS_WM_USER + 21 -Global Const $TTM_GETTIPBKCOLOR = $__TOOLTIPCONSTANTS_WM_USER + 22 -Global Const $TTM_GETTIPTEXTCOLOR = $__TOOLTIPCONSTANTS_WM_USER + 23 -Global Const $TTM_SETMAXTIPWIDTH = $__TOOLTIPCONSTANTS_WM_USER + 24 -Global Const $TTM_GETMAXTIPWIDTH = $__TOOLTIPCONSTANTS_WM_USER + 25 -Global Const $TTM_SETMARGIN = $__TOOLTIPCONSTANTS_WM_USER + 26 -Global Const $TTM_GETMARGIN = $__TOOLTIPCONSTANTS_WM_USER + 27 -Global Const $TTM_POP = $__TOOLTIPCONSTANTS_WM_USER + 28 -Global Const $TTM_UPDATE = $__TOOLTIPCONSTANTS_WM_USER + 29 -Global Const $TTM_GETBUBBLESIZE = $__TOOLTIPCONSTANTS_WM_USER + 30 -Global Const $TTM_ADJUSTRECT = $__TOOLTIPCONSTANTS_WM_USER + 31 -Global Const $TTM_SETTITLE = $__TOOLTIPCONSTANTS_WM_USER + 32 -Global Const $TTM_SETTITLEW = $__TOOLTIPCONSTANTS_WM_USER + 33 -Global Const $TTM_POPUP = $__TOOLTIPCONSTANTS_WM_USER + 34 -Global Const $TTM_GETTITLE = $__TOOLTIPCONSTANTS_WM_USER + 35 -Global Const $TTM_ADDTOOLW = $__TOOLTIPCONSTANTS_WM_USER + 50 -Global Const $TTM_DELTOOLW = $__TOOLTIPCONSTANTS_WM_USER + 51 -Global Const $TTM_NEWTOOLRECTW = $__TOOLTIPCONSTANTS_WM_USER + 52 -Global Const $TTM_GETTOOLINFOW = $__TOOLTIPCONSTANTS_WM_USER + 53 -Global Const $TTM_SETTOOLINFOW = $__TOOLTIPCONSTANTS_WM_USER + 54 -Global Const $TTM_HITTESTW = $__TOOLTIPCONSTANTS_WM_USER + 55 -Global Const $TTM_GETTEXTW = $__TOOLTIPCONSTANTS_WM_USER + 56 -Global Const $TTM_UPDATETIPTEXTW = $__TOOLTIPCONSTANTS_WM_USER + 57 -Global Const $TTM_ENUMTOOLSW = $__TOOLTIPCONSTANTS_WM_USER + 58 -Global Const $TTM_GETCURRENTTOOLW = $__TOOLTIPCONSTANTS_WM_USER + 59 -Global Const $TTM_SETWINDOWTHEME = 0x2000 + 11 - -; Notifications -Global Const $TTN_FIRST = -520 -Global Const $TTN_GETDISPINFO = $TTN_FIRST - 0 ; Sent to retrieve information needed to display a ToolTip -Global Const $TTN_SHOW = $TTN_FIRST - 1 ; Notifies the owner window that a ToolTip control is about to be displayed -Global Const $TTN_POP = $TTN_FIRST - 2 ; Notifies the owner window that a ToolTip is about to be hidden -Global Const $TTN_LINKCLICK = $TTN_FIRST - 3 ; Sent when a text link inside a balloon ToolTip is clicked -Global Const $TTN_GETDISPINFOW = $TTN_FIRST - 10 ; [Unicode] Sent to retrieve information needed to display a ToolTip - -; Styles -Global Const $TTS_ALWAYSTIP = 0x00000001 ; The control appears when the cursor is on a tool -Global Const $TTS_NOPREFIX = 0x00000002 ; Prevents the stripping of the ampersand character from a string -Global Const $TTS_NOANIMATE = 0x00000010 ; Disables sliding ToolTip animation -Global Const $TTS_NOFADE = 0x00000020 ; Disables fading ToolTip animation -Global Const $TTS_BALLOON = 0x00000040 ; The control has the appearance of a cartoon balloon -Global Const $TTS_CLOSE = 0x00000080 ; Displays a close box in the ToolTip corner -Global Const $TTS_USEVISUALSTYLE = 0x00000100 ; need $TTF_PARSELINKS style - -; Duration -Global Const $TTDT_AUTOMATIC = 0 -Global Const $TTDT_RESHOW = 1 -Global Const $TTDT_AUTOPOP = 2 -Global Const $TTDT_INITIAL = 3 - -; HIcon -Global Enum $TTI_NONE, $TTI_INFO, $TTI_WARNING, $TTI_ERROR, $TTI_INFO_LARGE, $TTI_WARNING_LARGE, $TTI_ERROR_LARGE -; =============================================================================================================================== diff --git a/build/Include/ToolbarConstants.au3 b/build/Include/ToolbarConstants.au3 deleted file mode 100644 index 9257d04e0..000000000 --- a/build/Include/ToolbarConstants.au3 +++ /dev/null @@ -1,193 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Toolbar_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for Toolbar functions. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $TBIF_IMAGE = 0x00000001 -Global Const $TBIF_TEXT = 0x00000002 -Global Const $TBIF_STATE = 0x00000004 -Global Const $TBIF_STYLE = 0x00000008 -Global Const $TBIF_LPARAM = 0x00000010 -Global Const $TBIF_COMMAND = 0x00000020 -Global Const $TBIF_SIZE = 0x00000040 -Global Const $TBIF_BYINDEX = 0x80000000 - -Global Const $TBMF_PAD = 0x00000001 -Global Const $TBMF_BARPAD = 0x00000002 -Global Const $TBMF_BUTTONSPACING = 0x00000004 - -Global Const $TBSTATE_CHECKED = 0x00000001 ; The button has the $TBSTYLE_CHECK style and is being clicked -Global Const $TBSTATE_PRESSED = 0x00000002 ; The button is being clicked -Global Const $TBSTATE_ENABLED = 0x00000004 ; The button accepts user input -Global Const $TBSTATE_HIDDEN = 0x00000008 ; The button is not visible and cannot receive user input -Global Const $TBSTATE_INDETERMINATE = 0x00000010 ; The button is grayed -Global Const $TBSTATE_WRAP = 0x00000020 ; The button is followed by a line break -Global Const $TBSTATE_ELLIPSES = 0x00000040 ; The button's text is cut off and an ellipsis is displayed -Global Const $TBSTATE_MARKED = 0x00000080 ; The button is marked - -; Messages -Global Const $__TOOLBARCONSTANTS_WM_USER = 0X400 -Global Const $TB_ENABLEBUTTON = $__TOOLBARCONSTANTS_WM_USER + 1 -Global Const $TB_CHECKBUTTON = $__TOOLBARCONSTANTS_WM_USER + 2 -Global Const $TB_PRESSBUTTON = $__TOOLBARCONSTANTS_WM_USER + 3 -Global Const $TB_HIDEBUTTON = $__TOOLBARCONSTANTS_WM_USER + 4 -Global Const $TB_INDETERMINATE = $__TOOLBARCONSTANTS_WM_USER + 5 -Global Const $TB_MARKBUTTON = $__TOOLBARCONSTANTS_WM_USER + 6 -Global Const $TB_ISBUTTONENABLED = $__TOOLBARCONSTANTS_WM_USER + 9 -Global Const $TB_ISBUTTONCHECKED = $__TOOLBARCONSTANTS_WM_USER + 10 -Global Const $TB_ISBUTTONPRESSED = $__TOOLBARCONSTANTS_WM_USER + 11 -Global Const $TB_ISBUTTONHIDDEN = $__TOOLBARCONSTANTS_WM_USER + 12 -Global Const $TB_ISBUTTONINDETERMINATE = $__TOOLBARCONSTANTS_WM_USER + 13 -Global Const $TB_ISBUTTONHIGHLIGHTED = $__TOOLBARCONSTANTS_WM_USER + 14 -Global Const $TB_SETSTATE = $__TOOLBARCONSTANTS_WM_USER + 17 -Global Const $TB_GETSTATE = $__TOOLBARCONSTANTS_WM_USER + 18 -Global Const $TB_ADDBITMAP = $__TOOLBARCONSTANTS_WM_USER + 19 -Global Const $TB_ADDBUTTONSA = $__TOOLBARCONSTANTS_WM_USER + 20 -Global Const $TB_INSERTBUTTONA = $__TOOLBARCONSTANTS_WM_USER + 21 -Global Const $TB_DELETEBUTTON = $__TOOLBARCONSTANTS_WM_USER + 22 -Global Const $TB_GETBUTTON = $__TOOLBARCONSTANTS_WM_USER + 23 -Global Const $TB_BUTTONCOUNT = $__TOOLBARCONSTANTS_WM_USER + 24 -Global Const $TB_COMMANDTOINDEX = $__TOOLBARCONSTANTS_WM_USER + 25 -Global Const $TB_SAVERESTOREA = $__TOOLBARCONSTANTS_WM_USER + 26 -Global Const $TB_SAVERESTOREW = $__TOOLBARCONSTANTS_WM_USER + 76 -Global Const $TB_CUSTOMIZE = $__TOOLBARCONSTANTS_WM_USER + 27 -Global Const $TB_ADDSTRINGA = $__TOOLBARCONSTANTS_WM_USER + 28 -Global Const $TB_ADDSTRINGW = $__TOOLBARCONSTANTS_WM_USER + 77 -Global Const $TB_GETITEMRECT = $__TOOLBARCONSTANTS_WM_USER + 29 -Global Const $TB_BUTTONSTRUCTSIZE = $__TOOLBARCONSTANTS_WM_USER + 30 -Global Const $TB_SETBUTTONSIZE = $__TOOLBARCONSTANTS_WM_USER + 31 -Global Const $TB_SETBITMAPSIZE = $__TOOLBARCONSTANTS_WM_USER + 32 -Global Const $TB_AUTOSIZE = $__TOOLBARCONSTANTS_WM_USER + 33 -Global Const $TB_GETTOOLTIPS = $__TOOLBARCONSTANTS_WM_USER + 35 -Global Const $TB_SETTOOLTIPS = $__TOOLBARCONSTANTS_WM_USER + 36 -Global Const $TB_SETPARENT = $__TOOLBARCONSTANTS_WM_USER + 37 -Global Const $TB_SETROWS = $__TOOLBARCONSTANTS_WM_USER + 39 -Global Const $TB_GETROWS = $__TOOLBARCONSTANTS_WM_USER + 40 -Global Const $TB_GETBITMAPFLAGS = $__TOOLBARCONSTANTS_WM_USER + 41 -Global Const $TB_SETCMDID = $__TOOLBARCONSTANTS_WM_USER + 42 -Global Const $TB_CHANGEBITMAP = $__TOOLBARCONSTANTS_WM_USER + 43 -Global Const $TB_GETBITMAP = $__TOOLBARCONSTANTS_WM_USER + 44 -Global Const $TB_GETBUTTONTEXTA = $__TOOLBARCONSTANTS_WM_USER + 45 -Global Const $TB_GETBUTTONTEXTW = $__TOOLBARCONSTANTS_WM_USER + 75 -Global Const $TB_REPLACEBITMAP = $__TOOLBARCONSTANTS_WM_USER + 46 -Global Const $TB_SETINDENT = $__TOOLBARCONSTANTS_WM_USER + 47 -Global Const $TB_SETIMAGELIST = $__TOOLBARCONSTANTS_WM_USER + 48 -Global Const $TB_GETIMAGELIST = $__TOOLBARCONSTANTS_WM_USER + 49 -Global Const $TB_LOADIMAGES = $__TOOLBARCONSTANTS_WM_USER + 50 -Global Const $TB_GETRECT = $__TOOLBARCONSTANTS_WM_USER + 51 -Global Const $TB_SETHOTIMAGELIST = $__TOOLBARCONSTANTS_WM_USER + 52 -Global Const $TB_GETHOTIMAGELIST = $__TOOLBARCONSTANTS_WM_USER + 53 -Global Const $TB_SETDISABLEDIMAGELIST = $__TOOLBARCONSTANTS_WM_USER + 54 -Global Const $TB_GETDISABLEDIMAGELIST = $__TOOLBARCONSTANTS_WM_USER + 55 -Global Const $TB_SETSTYLE = $__TOOLBARCONSTANTS_WM_USER + 56 -Global Const $TB_GETSTYLE = $__TOOLBARCONSTANTS_WM_USER + 57 -Global Const $TB_GETBUTTONSIZE = $__TOOLBARCONSTANTS_WM_USER + 58 -Global Const $TB_SETBUTTONWIDTH = $__TOOLBARCONSTANTS_WM_USER + 59 -Global Const $TB_SETMAXTEXTROWS = $__TOOLBARCONSTANTS_WM_USER + 60 -Global Const $TB_GETTEXTROWS = $__TOOLBARCONSTANTS_WM_USER + 61 -Global Const $TB_GETOBJECT = $__TOOLBARCONSTANTS_WM_USER + 62 -Global Const $TB_GETBUTTONINFOW = $__TOOLBARCONSTANTS_WM_USER + 63 -Global Const $TB_SETBUTTONINFOW = $__TOOLBARCONSTANTS_WM_USER + 64 -Global Const $TB_GETBUTTONINFOA = $__TOOLBARCONSTANTS_WM_USER + 65 -Global Const $TB_SETBUTTONINFOA = $__TOOLBARCONSTANTS_WM_USER + 66 -Global Const $TB_INSERTBUTTONW = $__TOOLBARCONSTANTS_WM_USER + 67 -Global Const $TB_ADDBUTTONSW = $__TOOLBARCONSTANTS_WM_USER + 68 -Global Const $TB_HITTEST = $__TOOLBARCONSTANTS_WM_USER + 69 -Global Const $TB_SETDRAWTEXTFLAGS = $__TOOLBARCONSTANTS_WM_USER + 70 -Global Const $TB_GETHOTITEM = $__TOOLBARCONSTANTS_WM_USER + 71 -Global Const $TB_SETHOTITEM = $__TOOLBARCONSTANTS_WM_USER + 72 -Global Const $TB_SETANCHORHIGHLIGHT = $__TOOLBARCONSTANTS_WM_USER + 73 -Global Const $TB_GETANCHORHIGHLIGHT = $__TOOLBARCONSTANTS_WM_USER + 74 -Global Const $TB_MAPACCELERATOR = $__TOOLBARCONSTANTS_WM_USER + 78 -Global Const $TB_GETINSERTMARK = $__TOOLBARCONSTANTS_WM_USER + 79 -Global Const $TB_SETINSERTMARK = $__TOOLBARCONSTANTS_WM_USER + 80 -Global Const $TB_INSERTMARKHITTEST = $__TOOLBARCONSTANTS_WM_USER + 81 -Global Const $TB_MOVEBUTTON = $__TOOLBARCONSTANTS_WM_USER + 82 -Global Const $TB_GETMAXSIZE = $__TOOLBARCONSTANTS_WM_USER + 83 -Global Const $TB_SETEXTENDEDSTYLE = $__TOOLBARCONSTANTS_WM_USER + 84 -Global Const $TB_GETEXTENDEDSTYLE = $__TOOLBARCONSTANTS_WM_USER + 85 -Global Const $TB_GETPADDING = $__TOOLBARCONSTANTS_WM_USER + 86 -Global Const $TB_SETPADDING = $__TOOLBARCONSTANTS_WM_USER + 87 -Global Const $TB_SETINSERTMARKCOLOR = $__TOOLBARCONSTANTS_WM_USER + 88 -Global Const $TB_GETINSERTMARKCOLOR = $__TOOLBARCONSTANTS_WM_USER + 89 -Global Const $TB_MAPACCELERATORW = $__TOOLBARCONSTANTS_WM_USER + 90 -Global Const $TB_GETSTRINGW = $__TOOLBARCONSTANTS_WM_USER + 91 -Global Const $TB_GETSTRINGA = $__TOOLBARCONSTANTS_WM_USER + 92 -Global Const $TB_GETMETRICS = $__TOOLBARCONSTANTS_WM_USER + 101 -Global Const $TB_SETMETRICS = $__TOOLBARCONSTANTS_WM_USER + 102 -Global Const $TB_GETCOLORSCHEME = 0x2000 + 3 -Global Const $TB_SETCOLORSCHEME = 0x2000 + 2 -Global Const $TB_SETUNICODEFORMAT = 0x2000 + 5 -Global Const $TB_GETUNICODEFORMAT = 0x2000 + 6 -Global Const $TB_SETWINDOWTHEME = 0x2000 + 11 - -; Notifications -Global Const $TBN_FIRST = -700 -Global Const $TBN_GETBUTTONINFOA = $TBN_FIRST - 0 ; Retrieves toolbar customization information -Global Const $TBN_BEGINDRAG = $TBN_FIRST - 1 ; The user has begun dragging a button in a toolbar -Global Const $TBN_ENDDRAG = $TBN_FIRST - 2 ; The user has stopped dragging a button in a toolbar -Global Const $TBN_BEGINADJUST = $TBN_FIRST - 3 ; The user has begun customizing a toolbar -Global Const $TBN_ENDADJUST = $TBN_FIRST - 4 ; The user has stopped customizing a toolbar -Global Const $TBN_RESET = $TBN_FIRST - 5 ; The user has reset the content of the Customize Toolbar dialog box -Global Const $TBN_QUERYINSERT = $TBN_FIRST - 6 ; Determines whether a button may be inserted during customization -Global Const $TBN_QUERYDELETE = $TBN_FIRST - 7 ; Determines whether a button may be deleted during customization -Global Const $TBN_TOOLBARCHANGE = $TBN_FIRST - 8 ; The user has customized a toolbar -Global Const $TBN_CUSTHELP = $TBN_FIRST - 9 ; The user has chosen the Help button in the Customize Toolbar dialog box -Global Const $TBN_DROPDOWN = $TBN_FIRST - 10 ; The user clicked a dropdown button -Global Const $TBN_GETOBJECT = $TBN_FIRST - 12 ; Sent to request a drop target object -Global Const $TBN_HOTITEMCHANGE = $TBN_FIRST - 13 ; The hot (highlighted) item has changed -Global Const $TBN_DRAGOUT = $TBN_FIRST - 14 ; The user clicked a button and then moveed the cursor off the button -Global Const $TBN_DELETINGBUTTON = $TBN_FIRST - 15 ; A button is about to be deleted -Global Const $TBN_GETDISPINFOA = $TBN_FIRST - 16 ; Retrieves display information for a toolbar item -Global Const $TBN_GETDISPINFOW = $TBN_FIRST - 17 ; [Unicode] Retrieves display information for a toolbar item -Global Const $TBN_GETINFOTIPA = $TBN_FIRST - 18 ; Retrieves infotip information for a toolbar item -Global Const $TBN_GETINFOTIPW = $TBN_FIRST - 19 ; [Unicode] Retrieves infotip information for a toolbar item -Global Const $TBN_GETBUTTONINFOW = $TBN_FIRST - 20 ; [Unicode] Retrieves toolbar customization information -Global Const $TBN_RESTORE = $TBN_FIRST - 21 ; A toolbar is in the process of being restored -Global Const $TBN_SAVE = $TBN_FIRST - 22 ; A toolbar is in the process of being saved -Global Const $TBN_INITCUSTOMIZE = $TBN_FIRST - 23 ; Customizing has started - -; Toolbar Notifications -Global Const $HICF_ACCELERATOR = 0x4 ;The change in the hot item was caused by a shortcut key -Global Const $HICF_ARROWKEYS = 0x2 ;The change in the hot item was caused by an arrow key -Global Const $HICF_DUPACCEL = 0x8 ;Modifies HICF_ACCELERATOR. If this flag is set, more than one item has the same shortcut key character -Global Const $HICF_ENTERING = 0x10 ;Modifies the other reason flags. If this flag is set, there is no previous hot item and idOld does not contain valid information -Global Const $HICF_LEAVING = 0x20 ;Modifies the other reason flags. If this flag is set, there is no new hot item and idNew does not contain valid information -Global Const $HICF_LMOUSE = 0x80 ;The change in the hot item resulted from a left-click mouse event -Global Const $HICF_MOUSE = 0x1 ;The change in the hot item resulted from a mouse event -Global Const $HICF_OTHER = 0x0 ;The change in the hot item resulted from an event that could not be determined. This will most often be due to a change in focus or the TB_SETHOTITEM message -Global Const $HICF_RESELECT = 0x40 ;The change in the hot item resulted from the user entering the shortcut key for an item that was already hot -Global Const $HICF_TOGGLEDROPDOWN = 0x100 ;Version 5.80. Causes the button to switch states - -; Styles -Global Const $BTNS_BUTTON = 0x00000000 ; Standard button -Global Const $BTNS_SEP = 0x00000001 ; Creates a separator -Global Const $BTNS_CHECK = 0x00000002 ; Toggles between the pressed and nonpressed -Global Const $BTNS_GROUP = 0x00000004 ; Button that stays pressed until another button in the group is pressed -Global Const $BTNS_CHECKGROUP = 0x00000006 ; Button that stays pressed until another button in the group is pressed -Global Const $BTNS_DROPDOWN = 0x00000008 ; Creates a drop-down style button that can display a list -Global Const $BTNS_AUTOSIZE = 0x00000010 ; The toolbar control should not assign the standard width to the button -Global Const $BTNS_NOPREFIX = 0x00000020 ; The button text will not have an accelerator prefix -Global Const $BTNS_SHOWTEXT = 0x00000040 ; Specifies that button text should be displayed -Global Const $BTNS_WHOLEDROPDOWN = 0x00000080 ; Specifies that the button will have a drop-down arrow -Global Const $TBSTYLE_TOOLTIPS = 0x00000100 ; Creates a ToolTip control -Global Const $TBSTYLE_WRAPABLE = 0x00000200 ; Creates a toolbar that can have multiple lines of buttons -Global Const $TBSTYLE_ALTDRAG = 0x00000400 ; Allows users to change a toolbar button's position by dragging it -Global Const $TBSTYLE_FLAT = 0x00000800 ; Creates a flat toolbar -Global Const $TBSTYLE_LIST = 0x00001000 ; Creates a flat toolbar with button text to the right of the bitmap -Global Const $TBSTYLE_CUSTOMERASE = 0x00002000 ; Sends $NM_CUSTOMDRAW messages when processing $WM_ERASEBKGND messages -Global Const $TBSTYLE_REGISTERDROP = 0x00004000 ; Sends $TBN_GETOBJECT messages to request drop target objects -Global Const $TBSTYLE_TRANSPARENT = 0x00008000 ; Creates a transparent toolbar - -; ExStyles -Global Const $TBSTYLE_EX_DRAWDDARROWS = 0x00000001 ; Allows buttons to have a separate dropdown arrow -Global Const $TBSTYLE_EX_MIXEDBUTTONS = 0x00000008 ; Allows mixing buttons with text and images -Global Const $TBSTYLE_EX_HIDECLIPPEDBUTTONS = 0x00000010 ; Hides partially clipped buttons -Global Const $TBSTYLE_EX_DOUBLEBUFFER = 0x00000080 ; Requires the toolbar to be double buffered -; =============================================================================================================================== diff --git a/build/Include/TrayConstants.au3 b/build/Include/TrayConstants.au3 deleted file mode 100644 index 52ae15d04..000000000 --- a/build/Include/TrayConstants.au3 +++ /dev/null @@ -1,68 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt v3 script. -; Author(s) .....: JLandes, Nutster, CyberSlug, Holger, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; Tray predefined ID's -Global Const $TRAY_ITEM_EXIT = 3 -Global Const $TRAY_ITEM_PAUSE = 4 -Global Const $TRAY_ITEM_FIRST = 7 - -; Tray menu/item state values -Global Const $TRAY_CHECKED = 1 -Global Const $TRAY_UNCHECKED = 4 -Global Const $TRAY_ENABLE = 64 -Global Const $TRAY_DISABLE = 128 -Global Const $TRAY_FOCUS = 256 -Global Const $TRAY_DEFAULT = 512 - -; Tray event values -Global Const $TRAY_EVENT_NONE = 0 -Global Const $TRAY_EVENT_SHOWICON = -3 -Global Const $TRAY_EVENT_HIDEICON = -4 -Global Const $TRAY_EVENT_FLASHICON = -5 -Global Const $TRAY_EVENT_NOFLASHICON = -6 -Global Const $TRAY_EVENT_PRIMARYDOWN = -7 -Global Const $TRAY_EVENT_PRIMARYUP = -8 -Global Const $TRAY_EVENT_SECONDARYDOWN = -9 -Global Const $TRAY_EVENT_SECONDARYUP = -10 -Global Const $TRAY_EVENT_MOUSEOVER = -11 -Global Const $TRAY_EVENT_MOUSEOUT = -12 -Global Const $TRAY_EVENT_PRIMARYDOUBLE = -13 -Global Const $TRAY_EVENT_SECONDARYDOUBLE = -14 - -; Indicates the type of Balloon Tip to display -Global Const $TIP_ICONNONE = 0 ; No icon (default) -Global Const $TIP_ICONASTERISK = 1 ; Info icon -Global Const $TIP_ICONEXCLAMATION = 2 ; Warning icon -Global Const $TIP_ICONHAND = 3 ; Error icon -Global Const $TIP_NOSOUND = 16 ; No sound - -; TrayCreateItem values -Global Const $TRAY_ITEM_NORMAL = 0 -Global Const $TRAY_ITEM_RADIO = 1 - -; TraySetClick values -Global Const $TRAY_CLICK_SHOW = 0 -Global Const $TRAY_CLICK_PRIMARYDOWN = 1 -Global Const $TRAY_CLICK_PRIMARYUP = 2 -Global Const $TRAY_DBLCLICK_PRIMARY= 4 -Global Const $TRAY_CLICK_SECONDARYDOWN = 8 -Global Const $TRAY_CLICK_SECONDARYUP = 16 -Global Const $TRAY_DBLCLICK_SECONDARY= 32 -Global Const $TRAY_CLICK_HOVERING= 64 - -; TraySetState values -Global Const $TRAY_ICONSTATE_SHOW = 1 -Global Const $TRAY_ICONSTATE_HIDE = 2 -Global Const $TRAY_ICONSTATE_FLASH = 4 -Global Const $TRAY_ICONSTATE_STOPFLASH = 8 -Global Const $TRAY_ICONSTATE_RESET = 16 -; =============================================================================================================================== diff --git a/build/Include/TreeViewConstants.au3 b/build/Include/TreeViewConstants.au3 deleted file mode 100644 index 7478a475c..000000000 --- a/build/Include/TreeViewConstants.au3 +++ /dev/null @@ -1,204 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: TreeView_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control TreeView styles and much more constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Styles -Global Const $TVS_HASBUTTONS = 0x00000001 ; Displays plus (+) and minus (-) buttons next to parent items -Global Const $TVS_HASLINES = 0x00000002 ; Uses lines to show the hierarchy of items -Global Const $TVS_LINESATROOT = 0x00000004 ; Uses lines to link items at the root of the control -Global Const $TVS_EDITLABELS = 0x00000008 ; Allows the user to edit item labels -Global Const $TVS_DISABLEDRAGDROP = 0x00000010 ; Prevents the from sending $TVN_BEGINDRAG notification messages -Global Const $TVS_SHOWSELALWAYS = 0x00000020 ; Causes a selected item to remain selected when the control loses focus -Global Const $TVS_RTLREADING = 0x00000040 ; Causes text to be displayed from right-to-left -Global Const $TVS_NOTOOLTIPS = 0x00000080 ; Disables ToolTips -Global Const $TVS_CHECKBOXES = 0x00000100 ; Enables check boxes for items -Global Const $TVS_TRACKSELECT = 0x00000200 ; Enables hot tracking -Global Const $TVS_SINGLEEXPAND = 0x00000400 ; Causes items to automatically expand and collapse upon selection -Global Const $TVS_INFOTIP = 0x00000800 ; Obtains ToolTip information by sending the $TVN_GETINFOTIP notification -Global Const $TVS_FULLROWSELECT = 0x00001000 ; Enables full row selection -Global Const $TVS_NOSCROLL = 0x00002000 ; Disables both horizontal and vertical scrolling in the control -Global Const $TVS_NONEVENHEIGHT = 0x00004000 ; Sets item height with the $TVM_SETITEMHEIGHT message -Global Const $TVS_NOHSCROLL = 0x00008000 ; Disables horizontal scrolling in the control -Global Const $TVS_DEFAULT = 0x00000037 ; Default control style - -; Control default styles -Global Const $GUI_SS_DEFAULT_TREEVIEW = BitOR($TVS_HASBUTTONS, $TVS_HASLINES, $TVS_LINESATROOT, $TVS_DISABLEDRAGDROP, $TVS_SHOWSELALWAYS) - -; Expand flags -Global Const $TVE_COLLAPSE = 0x0001 -Global Const $TVE_EXPAND = 0x0002 -Global Const $TVE_TOGGLE = 0x0003 -Global Const $TVE_EXPANDPARTIAL = 0x4000 -Global Const $TVE_COLLAPSERESET = 0x8000 - -; GetNext flags -Global Const $TVGN_ROOT = 0x00000000 -Global Const $TVGN_NEXT = 0x00000001 -Global Const $TVGN_PREVIOUS = 0x00000002 -Global Const $TVGN_PARENT = 0x00000003 -Global Const $TVGN_CHILD = 0x00000004 -Global Const $TVGN_FIRSTVISIBLE = 0x00000005 -Global Const $TVGN_NEXTVISIBLE = 0x00000006 -Global Const $TVGN_PREVIOUSVISIBLE = 0x00000007 -Global Const $TVGN_DROPHILITE = 0x00000008 -Global Const $TVGN_CARET = 0x00000009 -Global Const $TVGN_LASTVISIBLE = 0x0000000A - -; HitTest flags -Global Const $TVHT_NOWHERE = 0x00000001 -Global Const $TVHT_ONITEMICON = 0x00000002 -Global Const $TVHT_ONITEMLABEL = 0x00000004 -Global Const $TVHT_ONITEMINDENT = 0x00000008 -Global Const $TVHT_ONITEMBUTTON = 0x00000010 -Global Const $TVHT_ONITEMRIGHT = 0x00000020 -Global Const $TVHT_ONITEMSTATEICON = 0x00000040 -Global Const $TVHT_ONITEM = 0x00000046 -Global Const $TVHT_ABOVE = 0x00000100 -Global Const $TVHT_BELOW = 0x00000200 -Global Const $TVHT_TORIGHT = 0x00000400 -Global Const $TVHT_TOLEFT = 0x00000800 - -; Insert flags -Global Const $TVI_ROOT = 0xFFFF0000 -Global Const $TVI_FIRST = 0xFFFF0001 -Global Const $TVI_LAST = 0xFFFF0002 -Global Const $TVI_SORT = 0xFFFF0003 - -; item/itemex mask flags -Global Const $TVIF_TEXT = 0x00000001 -Global Const $TVIF_IMAGE = 0x00000002 -Global Const $TVIF_PARAM = 0x00000004 -Global Const $TVIF_STATE = 0x00000008 -Global Const $TVIF_HANDLE = 0x00000010 -Global Const $TVIF_SELECTEDIMAGE = 0x00000020 -Global Const $TVIF_CHILDREN = 0x00000040 -Global Const $TVIF_INTEGRAL = 0x00000080 -Global Const $TVIF_EXPANDEDIMAGE = 0x00000100 -Global Const $TVIF_STATEEX = 0x00000200 -Global Const $TVIF_DI_SETITEM = 0x00001000 - -; image list params -Global Const $TVSIL_NORMAL = 0 -Global Const $TVSIL_STATE = 2 - -; type of action -Global Const $TVC_BYKEYBOARD = 0x2 -Global Const $TVC_BYMOUSE = 0x1 -Global Const $TVC_UNKNOWN = 0x0 - -; item states -Global Const $TVIS_FOCUSED = 0x00000001 -Global Const $TVIS_SELECTED = 0x00000002 -Global Const $TVIS_CUT = 0x00000004 -Global Const $TVIS_DROPHILITED = 0x00000008 -Global Const $TVIS_BOLD = 0x00000010 -Global Const $TVIS_EXPANDED = 0x00000020 -Global Const $TVIS_EXPANDEDONCE = 0x00000040 -Global Const $TVIS_EXPANDPARTIAL = 0x00000080 -Global Const $TVIS_OVERLAYMASK = 0x00000F00 -Global Const $TVIS_STATEIMAGEMASK = 0x0000F000 -Global Const $TVIS_USERMASK = 0x0000F000 -Global Const $TVIS_UNCHECKED = 4096 -Global Const $TVIS_CHECKED = 8192 - -Global Const $TVNA_ADD = 1 -Global Const $TVNA_ADDFIRST = 2 -Global Const $TVNA_ADDCHILD = 3 -Global Const $TVNA_ADDCHILDFIRST = 4 -Global Const $TVNA_INSERT = 5 - -Global Const $TVTA_ADDFIRST = 1 -Global Const $TVTA_ADD = 2 -Global Const $TVTA_INSERT = 3 - -; Messages to send to TreeView -Global Const $TV_FIRST = 0x1100 -Global Const $TVM_INSERTITEMA = $TV_FIRST + 0 -Global Const $TVM_DELETEITEM = $TV_FIRST + 1 -Global Const $TVM_EXPAND = $TV_FIRST + 2 -Global Const $TVM_GETITEMRECT = $TV_FIRST + 4 -Global Const $TVM_GETCOUNT = $TV_FIRST + 5 -Global Const $TVM_GETINDENT = $TV_FIRST + 6 -Global Const $TVM_SETINDENT = $TV_FIRST + 7 -Global Const $TVM_GETIMAGELIST = $TV_FIRST + 8 -Global Const $TVM_SETIMAGELIST = $TV_FIRST + 9 -Global Const $TVM_GETNEXTITEM = $TV_FIRST + 10 -Global Const $TVM_SELECTITEM = $TV_FIRST + 11 -Global Const $TVM_GETITEMA = $TV_FIRST + 12 -Global Const $TVM_SETITEMA = $TV_FIRST + 13 -Global Const $TVM_EDITLABELA = $TV_FIRST + 14 -Global Const $TVM_GETEDITCONTROL = $TV_FIRST + 15 -Global Const $TVM_GETVISIBLECOUNT = $TV_FIRST + 16 -Global Const $TVM_HITTEST = $TV_FIRST + 17 -Global Const $TVM_CREATEDRAGIMAGE = $TV_FIRST + 18 -Global Const $TVM_SORTCHILDREN = $TV_FIRST + 19 -Global Const $TVM_ENSUREVISIBLE = $TV_FIRST + 20 -Global Const $TVM_SORTCHILDRENCB = $TV_FIRST + 21 -Global Const $TVM_ENDEDITLABELNOW = $TV_FIRST + 22 -Global Const $TVM_GETISEARCHSTRINGA = $TV_FIRST + 23 -Global Const $TVM_SETTOOLTIPS = $TV_FIRST + 24 -Global Const $TVM_GETTOOLTIPS = $TV_FIRST + 25 -Global Const $TVM_SETINSERTMARK = $TV_FIRST + 26 -Global Const $TVM_SETITEMHEIGHT = $TV_FIRST + 27 -Global Const $TVM_GETITEMHEIGHT = $TV_FIRST + 28 -Global Const $TVM_SETBKCOLOR = $TV_FIRST + 29 -Global Const $TVM_SETTEXTCOLOR = $TV_FIRST + 30 -Global Const $TVM_GETBKCOLOR = $TV_FIRST + 31 -Global Const $TVM_GETTEXTCOLOR = $TV_FIRST + 32 -Global Const $TVM_SETSCROLLTIME = $TV_FIRST + 33 -Global Const $TVM_GETSCROLLTIME = $TV_FIRST + 34 -Global Const $TVM_SETINSERTMARKCOLOR = $TV_FIRST + 37 -Global Const $TVM_GETINSERTMARKCOLOR = $TV_FIRST + 38 -Global Const $TVM_GETITEMSTATE = $TV_FIRST + 39 -Global Const $TVM_SETLINECOLOR = $TV_FIRST + 40 -Global Const $TVM_GETLINECOLOR = $TV_FIRST + 41 -Global Const $TVM_MAPACCIDTOHTREEITEM = $TV_FIRST + 42 -Global Const $TVM_MAPHTREEITEMTOACCID = $TV_FIRST + 43 -Global Const $TVM_INSERTITEMW = $TV_FIRST + 50 -Global Const $TVM_GETITEMW = $TV_FIRST + 62 -Global Const $TVM_SETITEMW = $TV_FIRST + 63 -Global Const $TVM_GETISEARCHSTRINGW = $TV_FIRST + 64 -Global Const $TVM_EDITLABELW = $TV_FIRST + 65 -Global Const $TVM_GETUNICODEFORMAT = 0x2000 + 6 -Global Const $TVM_SETUNICODEFORMAT = 0x2000 + 5 - -; Notifications -Global Const $TVN_FIRST = -400 -Global Const $TVN_SELCHANGINGA = $TVN_FIRST - 1 -Global Const $TVN_SELCHANGEDA = $TVN_FIRST - 2 -Global Const $TVN_GETDISPINFOA = $TVN_FIRST - 3 -Global Const $TVN_SETDISPINFOA = $TVN_FIRST - 4 -Global Const $TVN_ITEMEXPANDINGA = $TVN_FIRST - 5 -Global Const $TVN_ITEMEXPANDEDA = $TVN_FIRST - 6 -Global Const $TVN_BEGINDRAGA = $TVN_FIRST - 7 -Global Const $TVN_BEGINRDRAGA = $TVN_FIRST - 8 -Global Const $TVN_DELETEITEMA = $TVN_FIRST - 9 -Global Const $TVN_BEGINLABELEDITA = $TVN_FIRST - 10 -Global Const $TVN_ENDLABELEDITA = $TVN_FIRST - 11 -Global Const $TVN_KEYDOWN = $TVN_FIRST - 12 -Global Const $TVN_GETINFOTIPA = $TVN_FIRST - 13 -Global Const $TVN_GETINFOTIPW = $TVN_FIRST - 14 -Global Const $TVN_SINGLEEXPAND = $TVN_FIRST - 15 -Global Const $TVN_ITEMCHANGINGA = $TVN_FIRST - 16 -Global Const $TVN_ITEMCHANGINGW = $TVN_FIRST - 17 -Global Const $TVN_ITEMCHANGEDA = $TVN_FIRST - 18 -Global Const $TVN_ITEMCHANGEDW = $TVN_FIRST - 19 -Global Const $TVN_SELCHANGINGW = $TVN_FIRST - 50 -Global Const $TVN_SELCHANGEDW = $TVN_FIRST - 51 -Global Const $TVN_GETDISPINFOW = $TVN_FIRST - 52 -Global Const $TVN_SETDISPINFOW = $TVN_FIRST - 53 -Global Const $TVN_ITEMEXPANDINGW = $TVN_FIRST - 54 -Global Const $TVN_ITEMEXPANDEDW = $TVN_FIRST - 55 -Global Const $TVN_BEGINDRAGW = $TVN_FIRST - 56 -Global Const $TVN_BEGINRDRAGW = $TVN_FIRST - 57 -Global Const $TVN_DELETEITEMW = $TVN_FIRST - 58 -Global Const $TVN_BEGINLABELEDITW = $TVN_FIRST - 59 -Global Const $TVN_ENDLABELEDITW = $TVN_FIRST - 60 -; =============================================================================================================================== diff --git a/build/Include/UDFGlobalID.au3 b/build/Include/UDFGlobalID.au3 deleted file mode 100644 index 9ab3f3f57..000000000 --- a/build/Include/UDFGlobalID.au3 +++ /dev/null @@ -1,143 +0,0 @@ -#include-once - -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: UDF Global ID -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Global ID Generation for UDFs. -; Author(s) .....: Gary Frost -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $_UDF_GlobalIDs_OFFSET = 2 -Global Const $_UDF_GlobalID_MAX_WIN = 16 -Global Const $_UDF_STARTID = 10000 -Global Const $_UDF_GlobalID_MAX_IDS = 55535 - -Global Const $__UDFGUICONSTANT_WS_TABSTOP = 0x00010000 -Global Const $__UDFGUICONSTANT_WS_VISIBLE = 0x10000000 -Global Const $__UDFGUICONSTANT_WS_CHILD = 0x40000000 -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_aUDF_GlobalIDs_Used[$_UDF_GlobalID_MAX_WIN][$_UDF_GlobalID_MAX_IDS + $_UDF_GlobalIDs_OFFSET + 1] ; [index][0] = HWND, [index][1] = NEXT ID -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __UDF_GetNextGlobalID -; __UDF_FreeGlobalID -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __UDF_GetNextGlobalID -; Description ...: Used for setting controlID to UDF controls -; Syntax.........: __UDF_GetNextGlobalID($hWnd) -; Parameters ....: $hWnd - handle to Main Window -; Return values .: Success - Control ID -; Failure - 0 and @error is set, @extended may be set -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __UDF_GetNextGlobalID($hWnd) - Local $nCtrlID, $iUsedIndex = -1, $bAllUsed = True - - ; check if window still exists - If Not WinExists($hWnd) Then Return SetError(-1, -1, 0) - - ; check that all slots still hold valid window handles - For $iIndex = 0 To $_UDF_GlobalID_MAX_WIN - 1 - If $__g_aUDF_GlobalIDs_Used[$iIndex][0] <> 0 Then - ; window no longer exist, free up the slot and reset the control id counter - If Not WinExists($__g_aUDF_GlobalIDs_Used[$iIndex][0]) Then - For $x = 0 To UBound($__g_aUDF_GlobalIDs_Used, $UBOUND_COLUMNS) - 1 - $__g_aUDF_GlobalIDs_Used[$iIndex][$x] = 0 - Next - $__g_aUDF_GlobalIDs_Used[$iIndex][1] = $_UDF_STARTID - $bAllUsed = False - EndIf - EndIf - Next - - ; check if window has been used before with this function - For $iIndex = 0 To $_UDF_GlobalID_MAX_WIN - 1 - If $__g_aUDF_GlobalIDs_Used[$iIndex][0] = $hWnd Then - $iUsedIndex = $iIndex - ExitLoop ; $hWnd has been used before - EndIf - Next - - ; window hasn't been used before, get 1st un-used index - If $iUsedIndex = -1 Then - For $iIndex = 0 To $_UDF_GlobalID_MAX_WIN - 1 - If $__g_aUDF_GlobalIDs_Used[$iIndex][0] = 0 Then - $__g_aUDF_GlobalIDs_Used[$iIndex][0] = $hWnd - $__g_aUDF_GlobalIDs_Used[$iIndex][1] = $_UDF_STARTID - $bAllUsed = False - $iUsedIndex = $iIndex - ExitLoop - EndIf - Next - EndIf - - If $iUsedIndex = -1 And $bAllUsed Then Return SetError(16, 0, 0) ; used up all 16 window slots - - ; used all control ids - If $__g_aUDF_GlobalIDs_Used[$iUsedIndex][1] = $_UDF_STARTID + $_UDF_GlobalID_MAX_IDS Then - ; check if control has been deleted, if so use that index in array - For $iIDIndex = $_UDF_GlobalIDs_OFFSET To UBound($__g_aUDF_GlobalIDs_Used, $UBOUND_COLUMNS) - 1 - If $__g_aUDF_GlobalIDs_Used[$iUsedIndex][$iIDIndex] = 0 Then - $nCtrlID = ($iIDIndex - $_UDF_GlobalIDs_OFFSET) + 10000 - $__g_aUDF_GlobalIDs_Used[$iUsedIndex][$iIDIndex] = $nCtrlID - Return $nCtrlID - EndIf - Next - Return SetError(-1, $_UDF_GlobalID_MAX_IDS, 0) ; we have used up all available control ids - EndIf - - ; new control id - $nCtrlID = $__g_aUDF_GlobalIDs_Used[$iUsedIndex][1] - $__g_aUDF_GlobalIDs_Used[$iUsedIndex][1] += 1 - $__g_aUDF_GlobalIDs_Used[$iUsedIndex][($nCtrlID - 10000) + $_UDF_GlobalIDs_OFFSET] = $nCtrlID - Return $nCtrlID -EndFunc ;==>__UDF_GetNextGlobalID - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __UDF_FreeGlobalID -; Description ...: Used for freeing controlID used for UDF controls -; Syntax.........: __UDF_FreeGlobalID($hWnd, $iGlobalID) -; Parameters ....: $hWnd - handle to Main Window -; $iGlobalID - Control ID to free up for re-use if needed -; Return values .: None -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __UDF_FreeGlobalID($hWnd, $iGlobalID) - ; invalid udf global id passed in - If $iGlobalID - $_UDF_STARTID < 0 Or $iGlobalID - $_UDF_STARTID > $_UDF_GlobalID_MAX_IDS Then Return SetError(-1, 0, False) - - For $iIndex = 0 To $_UDF_GlobalID_MAX_WIN - 1 - If $__g_aUDF_GlobalIDs_Used[$iIndex][0] = $hWnd Then - For $x = $_UDF_GlobalIDs_OFFSET To UBound($__g_aUDF_GlobalIDs_Used, $UBOUND_COLUMNS) - 1 - If $__g_aUDF_GlobalIDs_Used[$iIndex][$x] = $iGlobalID Then - ; free up control id - $__g_aUDF_GlobalIDs_Used[$iIndex][$x] = 0 - Return True - EndIf - Next - ; $iGlobalID wasn't found in the used list - Return SetError(-3, 0, False) - EndIf - Next - ; $hWnd wasn't found in the used list - Return SetError(-2, 0, False) -EndFunc ;==>__UDF_FreeGlobalID diff --git a/build/Include/UpDownConstants.au3 b/build/Include/UpDownConstants.au3 deleted file mode 100644 index 38801be5f..000000000 --- a/build/Include/UpDownConstants.au3 +++ /dev/null @@ -1,23 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: UpDown_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control UpDown styles and much more constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; Styles -Global Const $UDS_WRAP = 0x0001 -Global Const $UDS_SETBUDDYINT = 0x0002 -Global Const $UDS_ALIGNRIGHT = 0x0004 -Global Const $UDS_ALIGNLEFT = 0x0008 -Global Const $UDS_ARROWKEYS = 0x0020 -Global Const $UDS_HORZ = 0x0040 -Global Const $UDS_NOTHOUSANDS = 0x0080 - -; Control default styles -Global Const $GUI_SS_DEFAULT_UPDOWN = $UDS_ALIGNLEFT -; =============================================================================================================================== diff --git a/build/Include/Visa.au3 b/build/Include/Visa.au3 deleted file mode 100644 index 3f6c47ad8..000000000 --- a/build/Include/Visa.au3 +++ /dev/null @@ -1,804 +0,0 @@ -#include - -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Visa -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: VISA (GPIB & TCP) library for AutoIt. -; Functions that allow controlling instruments (e.g. oscilloscopes, -; signal generators, spectrum analyzers, power supplies, etc) -; that have a GPIB or Ethernet port through the VISA interface -; (GPIB, TCP or Serial Interface) -; Author(s) .....: Angel Ezquerra -; Dll ...........: visa32.dll -; =============================================================================================================================== - -; ------------------------------------------------------------------------------ -; -; visa32.dll is in {WINDOWS}\system32) -; For GPIB communication a GPIB card (such as a National Instruments -; NI PCI-GPIB card or an Agilent 82350B PCI High-Performance GPIB card -; Limitations: The VISA queries only return the 1st line of the device answer -; This is not a problem in most cases, as most devices will always -; answer with a single line. -; Notes: -; If you are interested in this library you probably already know -; what is VISA and GPIB, but here there is a short description -; for those that don't know about it: -; -; Basically GPIB allows you to control instruments like Power -; Supplies, Signal Generators, Oscilloscopes, Signal Generators, etc. -; You need to install or connect a GPIB interface card (PCI, PCMCIA -; or USB) to your PC and install the corresponding GPIB driver. -; -; VISA is a standard API that sits on top of the GPIB driver and -; it allows you to use the same programs to control your -; instruments regardless of the type of GPIB card that you have -; installed in your PC (most cards are made either by National -; Instruments(R) or by Agilent/Hewlett-Packard(R)). -; -; This library is that it opens AutoIt to a different kind of -; automation (instrument automation). Normally you would need to -; use some expensive "instrumentation" environment like -; Labwindows/CVI (TM), LabView (TM) or Matlab (TM) to automate -; instruments but now you can do so with AutoIt. -; The only requirement is that you need a VISA compatible GPIB -; card (all cards that I know are) and the corresponding VISA -; driver must be installed (look for visa32.dll in the -; windows\system32 folder). -; -; Basically you have 4 main functions: -; _viExecCommand - Executes commands and queries through GPIB -; _viOpen, _viClose - Open/Close a connection to a GPIB instrument. -; _viFindGpib - Find all the instruments in the GPIB bus -; -; There are other less important functions, like: -; _viGTL - Go to local mode (exeit the "remote control mode") -; _viGpibBusReset - Reset the GPIB bus if it is in a bad state -; _viSetTimeout - Sets the GPIB Query timeout -; _viSetAttribute - Set any VISA attribute -; -; There is one known limitation of this library: -; - The GPIB queries do not support binary transfer. -; -; It is recommended that you try first to execute the _viFindGpib -; function (as shown in the example in the _viFindGpib header) -; and see if you can find any instruments. You can also have a -; look at the examples in the _viExecCommand function description. -; -; ------------------------------------------------------------------------------ -; VERSION DATE DESCRIPTION -; ------- ---------- ----------------------------------------------------- -; v1.0.00 02/01/2005 Initial release -; v1.0.01 02/06/2005 Formatted according to Standard UDF rules -; Fixed _viGpibBusReset -; Renamed _viFindGpib to _viFindGpib -; Removed unnecessary MsgBox calls -; More detailed function headers -; Added Serial Interface related Attribute/Value Constants -; v1.0.02 02/11/2005 Fixed _viQueryf only executing "*IDN?" queries -; Fixed _viQueryf only returning characters up to the first space -; Fixed _viQuertf returning only first line of answer -; Added _viInterativeControl for interactive VISA control -; Added GPIB message termination attributes -; ------------------------------------------------------------------------------ - -; #VARIABLES# =================================================================================================================== -; The VISA Resource Manager is used by the _viOpen functions (see below) -; This is the only (non constant) Global required by this library -Global $__g_hVISA_DEFAULT_RM = -1 -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; NOTE: There are more attribute values. Please refer to the VISA Programmer's Guide -Global Const $VI_SUCCESS = 0 ; (0L) -Global Const $VI_NULL = 0 - -Global Const $VI_TRUE = 1 -Global Const $VI_FALSE = 0 - -; - VISA GPIB BUS control macros (for __viGpibControlREN, see below) ------------- -Global Const $VI_GPIB_REN_DEASSERT = 0 -Global Const $VI_GPIB_REN_ASSERT = 1 -Global Const $VI_GPIB_REN_DEASSERT_GTL = 2 -Global Const $VI_GPIB_REN_ASSERT_ADDRESS = 3 -Global Const $VI_GPIB_REN_ASSERT_LLO = 4 -Global Const $VI_GPIB_REN_ASSERT_ADDRESS_LLO = 5 -Global Const $VI_GPIB_REN_ADDRESS_GTL = 6 - -; - VISA interface ATTRIBUTE NAMES ---------------------------------------------- -; General Attributes -Global Const $VI_ATTR_TMO_VALUE = 0x3FFF001A - -; Serial Interface related Attributes -Global Const $VI_ATTR_ASRL_BAUD = 0x3FFF0021 -Global Const $VI_ATTR_ASRL_DATA_BITS = 0x3FFF0022 -Global Const $VI_ATTR_ASRL_PARITY = 0x3FFF0023 -Global Const $VI_ATTR_ASRL_STOP_BITS = 0x3FFF0024 -Global Const $VI_ATTR_ASRL_FLOW_CNTRL = 0x3FFF0025 - -; GPIB message termination attributes -Global Const $VI_ATTR_TERMCHAR = 0x3FFF0018 -Global Const $VI_ATTR_TERMCHAR_EN = 0x3FFF0038 -Global Const $VI_ATTR_SEND_END_EN = 0x3FFF0016 - -; - VISA interface ATTRIBUTE VALUES --------------------------------------------- -; * TIMEOUT VALUES: -Global Const $VI_TMO_IMMEDIATE = 0 -Global Const $VI_TMO_INFINITE = 0xFFFFFFF - -; Serial Interface related Attribute Values -Global Const $VI_ASRL_PAR_NONE = 0 -Global Const $VI_ASRL_PAR_ODD = 1 -Global Const $VI_ASRL_PAR_EVEN = 2 -Global Const $VI_ASRL_PAR_MARK = 3 -Global Const $VI_ASRL_PAR_SPACE = 4 - -Global Const $VI_ASRL_STOP_ONE = 10 -Global Const $VI_ASRL_STOP_ONE5 = 15 -Global Const $VI_ASRL_STOP_TWO = 20 - -Global Const $VI_ASRL_FLOW_NONE = 0 -Global Const $VI_ASRL_FLOW_XON_XOFF = 1 -Global Const $VI_ASRL_FLOW_RTS_CTS = 2 -Global Const $VI_ASRL_FLOW_DTR_DSR = 4 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _viClose -; _viExecCommand -; _viFindGpib -; _viGpibBusReset -; _viGTL -; _viInteractiveControl -; _viOpen -; _viSetAttribute -; _viSetTimeout -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __viOpenDefaultRM -; __viPrintf -; __viQueryf -; __viGpibControlREN -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Angel Ezquerra -; =============================================================================================================================== -Func _viExecCommand($hSession, $sCommand, $iTimeoutMS = -1, $sMode = @LF) - If StringInStr($sCommand, "?") = 0 Then - ; The Command is NOT a QUERY - Return __viPrintf($hSession, $sCommand, $iTimeoutMS, $sMode) - Else - ; The Command is a QUERY - Return __viQueryf($hSession, $sCommand, $iTimeoutMS) - EndIf -EndFunc ;==>_viExecCommand - -; #FUNCTION# ==================================================================================================================== -; Author ........: Angel Ezquerra -; =============================================================================================================================== -Func _viOpen($sVisa_Address, $sVisa_Secondary_Address = 0) - Local $hSession = -1 ; The session handle by default is invalid (-1) - - If IsNumber($sVisa_Address) Or StringInStr($sVisa_Address, "::") = 0 Then - ; We passed a number => Create the VISA string: - $sVisa_Address = "GPIB0::" & $sVisa_Address & "::" & $sVisa_Secondary_Address - EndIf - - ;- Do not open an instrument connection twice - ; TODO - - ;- Make sure that there is a Resource Manager open (Note: this will NOT open it twice!) - __viOpenDefaultRM() - - ;- Open the INSTRUMENT CONNECTION - ; errStatus = viOpen (VISA_DEFAULT_RM, "GPIB0::20::0", VI_NULL, VI_NULL, &h_session); - ; signed int viOpen(unsigned long, char*, unsigned long, unsigned long, *unsigned long) - Local $a_Results - $a_Results = DllCall("visa32.dll", "long", "viOpen", "long", $__g_hVISA_DEFAULT_RM, "str", $sVisa_Address, "long", $VI_NULL, "long", $VI_NULL, "long*", -1) - If @error Then Return SetError(@error, @extended, -1) - Local $iErrStatus = $a_Results[0] - If $iErrStatus <> 0 Then - ; Could not open VISA instrument/resource - Return SetError(1, 0, -2) - - EndIf - ; Make sure that the DllCall returned enough values - If UBound($a_Results) < 6 Then - Return SetError(1, 0, -3) - EndIf - - $hSession = $a_Results[5] - If $hSession <= 0 Then - ; viOpen did not return a valid handle - Return SetError(1, 0, -4) - EndIf - - ; We have a valid handle for the device - Return $hSession -EndFunc ;==>_viOpen - -; #FUNCTION# ==================================================================================================================== -; Author ........: Angel Ezquerra -; =============================================================================================================================== -Func _viClose($hSession) - ;- Close INSTRUMENT Connection - ; viClose(h_session); - Local $a_Results - $a_Results = DllCall("visa32.dll", "int", "viClose", "int", $hSession) - If @error Then Return SetError(@error, @extended, -1) - Local $iErrStatus = $a_Results[0] - If $iErrStatus <> 0 Then - ; Could not close VISA instrument/resource - Return SetError(1, 0, $iErrStatus) - EndIf - - Return 0 -EndFunc ;==>_viClose - -; #FUNCTION# ==================================================================================================================== -; Author ........: Angel Ezquerra -; =============================================================================================================================== -Func _viFindGpib(ByRef $aDescriptorList, ByRef $aIDNList, $iShow_Search_Results = 0) - ;- Make sure that there is a Resource Manager open (Note: this will NOT open it twice!) - __viOpenDefaultRM() - - ; Create the GPIB instrument list and return the 1st instrument descriptor - ; viStatus viFindRsrc (viSession, char*, *ViFindList, *ViUInt32, char*); - ; errStatus = viFindRsrc (VISA_DEFAULT_RM, "GPIB?*INSTR", &h_current_instr, &num_matches, s_found_instr_descriptor); - Local $a_Results = DllCall("visa32.dll", "long", "viFindRsrc", _ - "long", $__g_hVISA_DEFAULT_RM, "str", "GPIB?*INSTR", "long*", -1, _ - "int*", -1, "str", "") - If @error Then Return SetError(@error, @extended, -1) - Local $iErrStatus = $a_Results[0] - If $iErrStatus <> 0 Then - ; Could not perform GPIB FIND operation - Return SetError(1, 0, -2) - EndIf - ; Make sure that the DllCall returned enough values - If UBound($a_Results) < 5 Then - Return SetError(1, 0, -3) - EndIf - - ; Assign the outputs of the DllCall - Local $h_List_pointer = $a_Results[3] ; The pointer to the list of found instruments - Local $i_Num_instr = $a_Results[4] ; The number of instruments that were found - Local $s_First_descriptor = $a_Results[5] ; The descriptor of the first instrument found - If $i_Num_instr < 1 Then ; No insturments were found - If $iShow_Search_Results = 1 Then - MsgBox($MB_SYSTEMMODAL, "GPIB search results", "NO INSTRUMENTS FOUND in the GPIB bus") - EndIf - - Return $i_Num_instr - EndIf - - ; At least 1 instrument was found - ReDim $aDescriptorList[$i_Num_instr], $aIDNList[$i_Num_instr] - $aDescriptorList[0] = $s_First_descriptor - ; Get the IDN of the 1st instrument - $aIDNList[0] = _viExecCommand($s_First_descriptor, "*IDN?") - - ; Get the IDN of all the remaining instruments - For $n = 1 To $i_Num_instr - 1 - ; If more than 1 instrument was found, get the handle of the next instrument - ; and get its IDN - - ;- Get the handle and descriptor of the next instrument in the GPIB bus - ; We do this by calling "viFindNext" - ; viFindNext (*ViFindList, char*); - ; viFindNext (h_current_instr,s_found_instr_descriptor); - $a_Results = DllCall("visa32.dll", "long", "viFindNext", "long", $h_List_pointer, "str", "") - If @error Then Return SetError(@error, @extended, -1) - $iErrStatus = $a_Results[0] - If $iErrStatus <> 0 Then - ; Could not perform GPIB FIND NEXT operation - Return SetError(1, 0, -2) - EndIf - ; Make sure that the DllCall returned enough values - If UBound($a_Results) < 3 Then - Return SetError(1, 0, -3) - EndIf - $aDescriptorList[$n] = $a_Results[2] - $aIDNList[$n] = _viExecCommand($aDescriptorList[$n], "*IDN?") - Next - - If $iShow_Search_Results = 1 Then - ; Create the GPIB instrument list and show it in a MsgBox - Local $s_Search_results = "" - For $n = 0 To $i_Num_instr - 1 - $s_Search_results = $s_Search_results & $aDescriptorList[$n] & " - " & $aIDNList[$n] & @CR - Next - MsgBox($MB_SYSTEMMODAL, "GPIB search results", $s_Search_results) - EndIf - - Return $i_Num_instr -EndFunc ;==>_viFindGpib - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; -; Description ...: Open the VISA Resource Manager -; Syntax.........: __viOpenDefaultRM ( ) -; Parameters ....: None -; Return values .: On Success - The Default Resource Manager Handle (also stored -; in the $__g_hVISA_DEFAULT_RM global) -; On Failure - Returns -1 if the VISA DLL could not be open -; Returns -2 if there was an error opening the -; Default Resource Manager -; Returns -3 if the returned Resource Manager is -; invalid -; This function always sets @error to 1 in case of error -; Author ........: Angel Ezquerra -; Notes .........: You should not need to directly call this function under -; normal use as _viOpen calls it when necessary -; -; =============================================================================================================================== -Func __viOpenDefaultRM() - Local $h_Visa_rm = $__g_hVISA_DEFAULT_RM - If $__g_hVISA_DEFAULT_RM < 0 Then - ; Only open the Resource Manager once (i.e. when $__g_hVISA_DEFAULT_RM is still -1) - $h_Visa_rm = $__g_hVISA_DEFAULT_RM ; Initialize the output result with the default value (-1) - - ; errStatus = viOpenDefaultRM (&VISA_DEFAULT_RM); - ; signed int viOpenDefaultRM(*unsigned long) - Local $a_Results - $a_Results = DllCall("visa32.dll", "int", "viOpenDefaultRM", "int*", $__g_hVISA_DEFAULT_RM) - If @error Then Return SetError(@error, @extended, -1) - Local $iErrStatus = $a_Results[0] - If $iErrStatus <> 0 Then - ; Could not create VISA Resource Manager - Return SetError(1, 0, -2) - EndIf - ; Everything went fine => Set the Resource Manager global - $__g_hVISA_DEFAULT_RM = $a_Results[1] - If $__g_hVISA_DEFAULT_RM <= 0 Then - ; There was an error, reset the $__g_hVISA_DEFAULT_RM - $__g_hVISA_DEFAULT_RM = -1 ; Default value - SetError(1) - Return -3 - EndIf - $h_Visa_rm = $__g_hVISA_DEFAULT_RM - EndIf - - Return $h_Visa_rm -EndFunc ;==>__viOpenDefaultRM - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; -; Description ...: Send a COMMAND (NOT a QUERY) to an Instrument/Device -; Syntax.........: __viPrintf ( $hSession, $sCommand [, $iTimeout_ms = -1] ) -; Parameters ....: $hSession - A VISA descriptor (STRING) OR a VISA session handle (INTEGER) -; Look at the _viExecCommand function for more -; details -; $sCommand - Command/Query to execute. -; A query MUST contain a QUESTION MARK (?) -; When the command is a QUERY the function will -; automatically wait for the instrument's answer -; (or until the operation times out) -; $iTimeout_ms - The operation timeout in MILISECONDS -; This is mostly important for QUERIES only -; This is an OPTIONAL PARAMETER. -; If it is not specified the last set timeout will -; be used. If it was never set before the default -; timeout (which depends on the VISA implementation) -; will be used. Timeouts can also be set separatelly -; with the _viSetTimeout function (see below). -; Depending on the bus type (GPIB, TCP, etc) the -; timeout might not be set to the exact value that -; you request. Instead the closest valid timeout -; bigger than the one that you requested will be used. -; $sOption - Control the mode in which the VISA viPrintf is called -; This is an OPTIONAL PARAMETER -; The DEFAULT VALUE is @LF, which means "attach @LF mode". -; Some instruments and in particular many GPIB cards -; Do not honor the terminator character attribute -; In those cases an @LF terminator needs to be added. -; As this is the most common case, by default the mode -; is set to @LF, which appends @LF to the SCPI command -; You can also set this mode to @CR and @CRLF if your card -; uses those terminators. -; If you do not want to use a terminator, set this parameter -; to an empty string ("") -; Also, some cards support the execution of a "sprintf" on the -; SCPI string prior to sending it through the VISA interface. -; For those who do, it is possible, by setting this -; parameter to "str" to "protect" the VISa interface from -; accidentally applying an escape sequence when a "/" is -; found within the VISA command string. -; This is normally NOT necessary and should only be set -; if your GPIB card or instrument require it. -; Return values .: On Success - Returns ZERO -; On Failure - Returns -1 if the VISA DLL could not be open -; or a NON ZERO value representing the VISA -; error code (see the VISA programmer's guide) -; This function always sets @error to 1 in case of error -; Author ........: Angel Ezquerra -; Notes .........: -; Normally you do not need to use this function, -; as _viExecCommand automatically choses between _viPrintf and -; __viQueryf depending on the command type. -; -; If you need to use it anyway, it is recommended that you do -; not use this command for sending QUERIES, only for GPIB -; commands that DO NOT RETURN AN ANSWER -; -; Also, this is not really a "PRINTF-like" function, as it -; does not allow you to pass multiple parameters. This is only -; called _viPrintf because it uses the VISA function viPrintf -; -; See _viExecCommand for more details -; -; =============================================================================================================================== -Func __viPrintf($hSession, $sCommand, $iTimeout_ms = -1, $sOption = @LF) - Local $b_Close_session_before_return = 0 ; By default do not close the session at the end - If IsString($hSession) Then - ; When we pass a string, i.e. a VISA ID (like GPIB::20::0, for instance) instead - ; of a VISA session handler, we will automatically OPEN and CLOSE the instrument - ; session for the user. - ; This is of course slower if you need to do more than one GPIB call but much - ; more convenient for short tests - $b_Close_session_before_return = 1 - $hSession = _viOpen($hSession) - EndIf - - ;- Set the VISA timeout if necessary - If $iTimeout_ms >= 0 Then - _viSetTimeout($hSession, $iTimeout_ms) - EndIf - - ;- Send Command to instrument (using viPrintf VISA function) - ; The syntax of the viPrintf VISA function is: - ; errStatus = viPrintf (h_session, "%s", "*RST"); - ; signed int viPrintf (unsigned long, char*, char*); - - ; For symmetry with the viQueryf function, and to solve compatibility issues - ; with some instruments, call viPrintf WITHOUT protecting from escape sequences - ; The user MUST thus be careful when passing commands containing the '/' character - Local $a_Results - Select - Case $sOption = "str" - ; Use the "str" mode to pass the SCPI command to the VISA interface - $a_Results = DllCall("visa32.dll", "int:cdecl", "viPrintf", "int", $hSession, "str", "%s", "str", $sCommand) ; Call viPrintf with escape sequence protection - Case ($sOption = @CR Or $sOption = @LF Or $sOption = @CRLF) - ; Append the selected terminator to the SCPI command - $a_Results = DllCall("visa32.dll", "int:cdecl", "viPrintf", "int", $hSession, "str", $sCommand & $sOption) - Case Else ; In all other cases, ignore the "mode" and do not use any terminator string - $a_Results = DllCall("visa32.dll", "int:cdecl", "viPrintf", "int", $hSession, "str", $sCommand) ; Call viPrintf without escape sequence protection - EndSelect - - If @error Then Return SetError(@error, @extended, -1) - Local $iErrStatus = $a_Results[0] - If $iErrStatus <> 0 Then - ; Could not send command to VISA instrument/resource - Return SetError(1, 0, $iErrStatus) - EndIf - - If $b_Close_session_before_return = 1 Then - _viClose($hSession) - EndIf -EndFunc ;==>__viPrintf - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; -; Description ...: Send a QUERY (a Command that returns an answer) to an Instrument/Device -; Syntax.........: __viQueryf ( $hSession, $sQuery [, $iTimeout_ms = -1] ) -; Parameters ....: $hSession - A VISA descriptor (STRING) OR a VISA session handle (INTEGER) -; Look at the _viExecCommand function for more -; details -; $sCommand - The query to execute (e.g. "*IDN?"). -; A query MUST contain a QUESTION MARK (?) -; The function willautomatically wait for the -; instrument's answer (or until the operation -; times out) -; $iTimeout_ms - The operation timeout in MILISECONDS -; This is mostly important for QUERIES only -; This is an OPTIONAL PARAMETER. -; If it is not specified the last set timeout will -; be used. If it was never set before the default -; timeout (which depends on the VISA implementation) -; will be used. Timeouts can also be set separatelly -; with the _viSetTimeout function (see below) -; Return values .: On Success - Returns a STRING containing the answer of the -; instrument to the QUERY -; On Failure - Returns -1 if the VISA DLL could not be open -; Returns -3 if the VISA DLL returned an unexpected -; number of results -; or returns a NON ZERO value representing the VISA -; error code (see the VISA programmer's guide) -; This function always sets @error to 1 in case of error -; Author ........: Angel Ezquerra -; Notes .........: -; Normally you do not need to use this function, -; as _viExecCommand automatically choses between _viPrintf and -; __viQueryf depending on the command type. -; -; If you need to use it anyway, make sure that you use it for -; a command that RETURNS an ANSWER or you will be stuck until -; the Timeout expires, which could never happen if the Timeout -; is infinite ("INF")! -; -; Also, this is not really a "SCANF-like" function, as it -; does not allow you to specify the format of the output -; -; There are two known limitations of this function: -; - The GPIB queries only return the 1st line of the device -; answer. This is normally not a problem as most devices -; always return a single line answer. -; - The GPIB queries do not support binary transfer. -; -; See _viExecCommand for more details -; -; =============================================================================================================================== -Func __viQueryf($hSession, $sQuery, $iTimeout_ms = -1) - Local $b_Close_session_before_return = 0 ; By default do not close the session at the end - If IsString($hSession) Then - ; When we pass a string, i.e. a VISA ID (like GPIB::20::0, for instance) instead - ; of a VISA session handler, we will automatically OPEN and CLOSE the instrument - ; session for the user. - ; This is of course slower if you need to do more than one GPIB call but much - ; more convenient for short tests - $b_Close_session_before_return = 1 - $hSession = _viOpen($hSession) - EndIf - - ;- Set the VISA timeout if necessary - If $iTimeout_ms >= 0 Then - _viSetTimeout($hSession, $iTimeout_ms) - EndIf - - ;- Send QUERY to instrument and get ANSWER - ; errStatus = viQueryf (h_session, "*IDN?\n", "%s", s_answer); - ; signed int viQueryf (unsigned long, char*, char*, char*); - ;errStatus = viQueryf (h_instr, s_command, "%s", string); - Local $a_Results, $s_Answer = "" - $a_Results = DllCall("visa32.dll", "int:cdecl", "viQueryf", "int", $hSession, "str", $sQuery, "str", "%t", "str", $s_Answer) - If @error Then Return SetError(@error, @extended, -1) - Local $iErrStatus = $a_Results[0] - If $iErrStatus <> 0 Then - ; Could not query VISA instrument/resource - Return SetError(1, 0, $iErrStatus) - EndIf - ; Make sure that the DllCall returned enough values - If UBound($a_Results) < 5 Then - ; Call to viQuery did not return the right number of values - Return SetError(1, 0, -3) - EndIf - $s_Answer = $a_Results[4] - - If $b_Close_session_before_return = 1 Then - _viClose($hSession) - EndIf - - Return $s_Answer -EndFunc ;==>__viQueryf - -; #FUNCTION# ==================================================================================================================== -; Author ........: Angel Ezquerra -; =============================================================================================================================== -Func _viSetTimeout($hSession, $iTimeoutMS) - If String($iTimeoutMS) = "INF" Then - $iTimeoutMS = $VI_TMO_INFINITE - EndIf - Return _viSetAttribute($hSession, $VI_ATTR_TMO_VALUE, $iTimeoutMS) -EndFunc ;==>_viSetTimeout - -; #FUNCTION# ==================================================================================================================== -; Author ........: Angel Ezquerra -; =============================================================================================================================== -Func _viSetAttribute($hSession, $iAttribute, $iValue) - Local $b_Close_session_before_return = 0 ; By default do not close the session at the end - If IsString($hSession) Then - ; When we pass a string, i.e. a VISA ID (like GPIB::20::0, for instance) instead - ; of a VISA session handler, we will automatically OPEN and CLOSE the instrument - ; session for the user. - ; This is of course slower if you need to do more than one GPIB call but much - ; more convenient for short tests - $b_Close_session_before_return = 1 - $hSession = _viOpen($hSession) - EndIf - - ; errStatus = _viSetAttribute ($hSession, $VI_ATTR_TMO_VALUE, $timeout_value); - ; signed int viGpibControlREN (unsigned long, int, int); - Local $a_Results - $a_Results = DllCall("visa32.dll", "int", "viSetAttribute", "int", $hSession, "int", $iAttribute, "int", $iValue) - If @error Then Return SetError(@error, @extended, -1) - Local $iErrStatus = $a_Results[0] - If $iErrStatus <> 0 Then - ; Could not set attribute of VISA instrument/resource - Return SetError(1, 0, $iErrStatus) - EndIf - - If $b_Close_session_before_return = 1 Then - _viClose($hSession) - EndIf - - Return 0 -EndFunc ;==>_viSetAttribute - -; #FUNCTION# ==================================================================================================================== -; Author ........: Angel Ezquerra -; =============================================================================================================================== -Func _viGTL($hSession) - Return __viGpibControlREN($hSession, $VI_GPIB_REN_ADDRESS_GTL) -EndFunc ;==>_viGTL - -; #FUNCTION# ==================================================================================================================== -; Author ........: Angel Ezquerra -; =============================================================================================================================== -Func _viGpibBusReset() - Return __viGpibControlREN("GPIB0::INTFC", $VI_GPIB_REN_DEASSERT) -EndFunc ;==>_viGpibBusReset - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; -; Description ...: Control the VISA REN bus line -; Syntax.........: __viGpibControlREN ( $hSession, $iMode ) -; Parameters ....: $hSession - A VISA descriptor (STRING) OR a VISA session -; handle (INTEGER). Look the explanation in _viExecCommand -; (you can find it above) -; $iMode - The mode into which the REN line of the GPIB bus -; will be set. -; Modes are defined in the VISA library. Look at the top of -; this file for valid modes -; Return values .: On Success - Returns 0 -; On Failure - Returns -1 if the VISA DLL could not be open -; or a NON ZERO value representing the VISA -; error code (see the VISA programmer's guide) -; This function always sets @error to 1 in case of error -; Author ........: Angel Ezquerra -; Notes .........: This function is used by _viGTL and _viGpibBusReset -; -; =============================================================================================================================== -Func __viGpibControlREN($hSession, $iMode) - Local $b_Close_session_before_return = 0 ; By default do not close the session at the end - If IsString($hSession) Then - ; When we pass a string, i.e. a VISA ID (like GPIB::20::0, for instance) instead - ; of a VISA session handler, we will automatically OPEN and CLOSE the instrument - ; session for the user. - ; This is of course slower if you need to do more than one GPIB call but much - ; more convenient for short tests - $b_Close_session_before_return = 1 - $hSession = _viOpen($hSession) - EndIf - - ; errStatus = viGpibControlREN ($hSession, VI_GPIB_REN_ASSERT); - ; signed int viGpibControlREN (unsigned long, int); - Local $a_Results - $a_Results = DllCall("visa32.dll", "int", "viGpibControlREN", "int", $hSession, "int", $iMode) - If @error Then Return SetError(@error, @extended, -1) - Local $iErrStatus = $a_Results[0] - If $iErrStatus <> 0 Then - ; Could not send to Local VISA instrument/resource - Return SetError(1, 0, $iErrStatus) - EndIf - - If $b_Close_session_before_return = 1 Then - _viClose($hSession) - EndIf - - Return 0 -EndFunc ;==>__viGpibControlREN - -; #FUNCTION# ==================================================================================================================== -; Author ........: Angel Ezquerra -; =============================================================================================================================== -Func _viInteractiveControl($sCommand_Save_FilePath = "") - ;- Define variables, set their default values - Local $s_Vi_id = "FIND" ; "GPIB::1::0" ; Default values - Local $sCommand = "*IDN?" - Local $iTimeout_ms = 10000 ; ms - Local $s_Answer = "" - Local $aDescriptor_list[1], $aIdn_list[1] ; The results of the GPIB search - ; The variables used to save the commands to a file - Local $s_Empty_command_list = "#include " & @CR & @CR & "Local $s_Answer" & @CR & @CR - Local $s_New_command = "" - Local $sCommand_list = $s_Empty_command_list - - ;- Loop until the user Cancles the Instrument Device Descriptor request - While 1 - ;- Request the Instrument Descriptor (reuse the previous descriptor) - $s_Vi_id = InputBox("Instrument Device Descriptor", _ - "- Type the Instrument Device Descriptor (e.g. 'GPIB::1::0' or 'GPIB::1::INSTR')" & _ - @CR & @CR & _ - "- Type FIND to perform a GPIB search" & _ - @CR & @CR & _ - "- Click CANCEL to STOP the VISA interactive tool", $s_Vi_id, "", 500, 250) - If @error = 1 Then - ; The Cancel button was pushed -> Exit the loop - ExitLoop - EndIf - If $s_Vi_id = "FIND" Then - ; Perform a GPIB search - $sCommand_list = $sCommand_list & _ - "Local $aDescriptor_list[1], $aIdn_list[1]" & @CR & @CR & _ - "_viFindGpib($aDescriptor_list, $aIdn_list, 1)" & @CR & @CR - _viFindGpib($aDescriptor_list, $aIdn_list, 1) - If UBound($aDescriptor_list) >= 1 Then - ; If an instrument was found, use the 1st found instrument as the default - ; for the next query - $s_Vi_id = $aDescriptor_list[0] - EndIf - ContinueLoop - EndIf - - ;- Request the command that must be executed (reuse the previous command) - $s_Answer = InputBox("SCPI command", "Type the SCPI command", $sCommand) - If @error = 1 Then - ; The Cancel button was pushed -> Restart the process - ContinueLoop - EndIf - $sCommand = $s_Answer ; We got a valid command - - ;- Request the timeout (reuse the previous timout) - $s_Answer = InputBox("Command Timeout (ms)", _ - "Type the command timeout (in milliseconds)", $iTimeout_ms) - If @error = 1 Then - ; The Cancel button was pushed -> Restart the process - ContinueLoop - EndIf - $iTimeout_ms = 0 + $s_Answer ; We got a valid timeout - - ;- Add the command to the command list - $s_New_command = '$s_Answer = _viExecCommand("' & $s_Vi_id & '", "' & _ - $sCommand & '", ' & $iTimeout_ms & ')' - $sCommand_list = $sCommand_list & $s_New_command & @CR - - ;- Execute the requested command - $s_Answer = _viExecCommand($s_Vi_id, $sCommand, $iTimeout_ms) - - If IsString($s_Answer) Then - ;- The command was a query and the instrument answered it - ; Show the query results - MsgBox($MB_SYSTEMMODAL, "Query results", "[" & $s_Vi_id & "] " & $sCommand & " -> " & $s_Answer) - ElseIf $s_Answer = 0 Then - ;- The command was not a query but it was exuced successfully - MsgBox($MB_SYSTEMMODAL, "Command result", "The command:" & @CR & @CR & _ - " '" & $sCommand & "'" & @CR & @CR & _ - "was SUCCESSFULLY executed on the device: " & @CR & @CR & _ - " '" & $s_Vi_id & "'") - ElseIf $s_Answer < 0 Then - ;- There was an error -> Show an error message - $s_Answer = MsgBox($MB_SYSTEMMODAL, "VISA Error", _ - "There was a VISA error when executing the command:" & @CR & @CR & _ - "'" & $sCommand & "'" & @CR & @CR & "on the Device '" & $s_Vi_id & "'" & _ - @CR & @CR & _ - "Do you want to RESET the GPIB bus before continuing?") - If $s_Answer = 6 Then ; Yes - _viGpibBusReset() - MsgBox($MB_SYSTEMMODAL, "VISA", "The GPIB bus was RESET!") - EndIf - EndIf - WEnd - - If $sCommand_list <> $s_Empty_command_list Then - ; If at least one command was issued we might want to save the file - - If $sCommand_Save_FilePath = "" Then - ; The user did not pass an explicit file name in which to save the commands - ; Ask him if he wants to save the m now - $s_Answer = MsgBox(64 + 4, "Save commands to AutoIt3 script?", _ - "Do you want to save the commands that you issued into an AutoIt3 script?") - If $s_Answer = 6 Then ; Yes - $sCommand_Save_FilePath = FileSaveDialog("Save as...", @ScriptDir, _ - "AutoIt3 scripts (*.au3)", 16, "visa_log.au3") - If @error Then - $sCommand_Save_FilePath = "" - EndIf - EndIf - EndIf - - If $sCommand_Save_FilePath <> "" Then - ;- Save the SCPI commands into a file - If FileExists($sCommand_Save_FilePath) Then - ; Delete the save file if it already exists - FileDelete($sCommand_Save_FilePath) - EndIf - FileWrite($sCommand_Save_FilePath, $sCommand_list) - EndIf - EndIf - - Return $sCommand_list ; Return the list of executed commands -EndFunc ;==>_viInteractiveControl diff --git a/build/Include/WinAPI.au3 b/build/Include/WinAPI.au3 deleted file mode 100644 index 1436110a9..000000000 --- a/build/Include/WinAPI.au3 +++ /dev/null @@ -1,3216 +0,0 @@ -#include-once - -#include "AutoItConstants.au3" -#include "FileConstants.au3" -#include "MsgBoxConstants.au3" -#include "Security.au3" -#include "SendMessage.au3" -#include "StringConstants.au3" -#include "StructureConstants.au3" -#include "WinAPIConstants.au3" -#include "WinAPIError.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Windows API -; AutoIt Version : 3.3.14.2 -; Description ...: Windows API calls that have been translated to AutoIt functions. -; Author(s) .....: Paul Campbell (PaulIA), gafrost, Siao, Zedna, arcker, Prog@ndy, PsaltyDS, Raik, jpm -; Dll ...........: kernel32.dll, user32.dll, gdi32.dll, comdlg32.dll, shell32.dll, ole32.dll, winspool.drv -; =============================================================================================================================== - -; #VARIABLES# =================================================================================================================== -Global $__g_aInProcess_WinAPI[64][2] = [[0, 0]] -Global $__g_aWinList_WinAPI[64][2] = [[0, 0]] -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__WINAPICONSTANT_WM_SETFONT = 0x0030 -Global Const $__WINAPICONSTANT_FW_NORMAL = 400 -Global Const $__WINAPICONSTANT_DEFAULT_CHARSET = 1 -Global Const $__WINAPICONSTANT_OUT_DEFAULT_PRECIS = 0 -Global Const $__WINAPICONSTANT_CLIP_DEFAULT_PRECIS = 0 -Global Const $__WINAPICONSTANT_DEFAULT_QUALITY = 0 - -Global Const $__WINAPICONSTANT_LOGPIXELSX = 88 -Global Const $__WINAPICONSTANT_LOGPIXELSY = 90 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _WinAPI_AttachConsole -; _WinAPI_AttachThreadInput -; _WinAPI_Beep -; _WinAPI_BitBlt -; _WinAPI_CallNextHookEx -; _WinAPI_CallWindowProc -; _WinAPI_ClientToScreen -; _WinAPI_CloseHandle -; _WinAPI_CombineRgn -; _WinAPI_CommDlgExtendedError -; _WinAPI_CopyIcon -; _WinAPI_CreateBitmap -; _WinAPI_CreateCompatibleBitmap -; _WinAPI_CreateCompatibleDC -; _WinAPI_CreateEvent -; _WinAPI_CreateFile -; _WinAPI_CreateFont -; _WinAPI_CreateFontIndirect -; _WinAPI_CreatePen -; _WinAPI_CreateProcess -; _WinAPI_CreateRectRgn -; _WinAPI_CreateRoundRectRgn -; _WinAPI_CreateSolidBitmap -; _WinAPI_CreateSolidBrush -; _WinAPI_CreateWindowEx -; _WinAPI_DefWindowProc -; _WinAPI_DeleteDC -; _WinAPI_DeleteObject -; _WinAPI_DestroyIcon -; _WinAPI_DestroyWindow -; _WinAPI_DrawEdge -; _WinAPI_DrawFrameControl -; _WinAPI_DrawIcon -; _WinAPI_DrawIconEx -; _WinAPI_DrawLine -; _WinAPI_DrawText -; _WinAPI_DuplicateHandle -; _WinAPI_EnableWindow -; _WinAPI_EnumDisplayDevices -; _WinAPI_EnumWindows -; _WinAPI_EnumWindowsPopup -; _WinAPI_EnumWindowsTop -; _WinAPI_ExpandEnvironmentStrings -; _WinAPI_ExtractIconEx -; _WinAPI_FatalAppExit -; _WinAPI_FillRect -; _WinAPI_FindExecutable -; _WinAPI_FindWindow -; _WinAPI_FlashWindow -; _WinAPI_FlashWindowEx -; _WinAPI_FloatToInt -; _WinAPI_FlushFileBuffers -; _WinAPI_FormatMessage -; _WinAPI_FrameRect -; _WinAPI_FreeLibrary -; _WinAPI_GetAncestor -; _WinAPI_GetAsyncKeyState -; _WinAPI_GetBkMode -; _WinAPI_GetClassName -; _WinAPI_GetClientHeight -; _WinAPI_GetClientWidth -; _WinAPI_GetClientRect -; _WinAPI_GetCurrentProcess -; _WinAPI_GetCurrentProcessID -; _WinAPI_GetCurrentThread -; _WinAPI_GetCurrentThreadId -; _WinAPI_GetCursorInfo -; _WinAPI_GetDC -; _WinAPI_GetDesktopWindow -; _WinAPI_GetDeviceCaps -; _WinAPI_GetDIBits -; _WinAPI_GetDlgCtrlID -; _WinAPI_GetDlgItem -; _WinAPI_GetFocus -; _WinAPI_GetForegroundWindow -; _WinAPI_GetGuiResources -; _WinAPI_GetIconInfo -; _WinAPI_GetFileSizeEx -; _WinAPI_GetLastErrorMessage -; _WinAPI_GetLayeredWindowAttributes -; _WinAPI_GetModuleHandle -; _WinAPI_GetMousePos -; _WinAPI_GetMousePosX -; _WinAPI_GetMousePosY -; _WinAPI_GetObject -; _WinAPI_GetOpenFileName -; _WinAPI_GetOverlappedResult -; _WinAPI_GetParent -; _WinAPI_GetProcAddress -; _WinAPI_GetProcessAffinityMask -; _WinAPI_GetSaveFileName -; _WinAPI_GetStockObject -; _WinAPI_GetStdHandle -; _WinAPI_GetSysColor -; _WinAPI_GetSysColorBrush -; _WinAPI_GetSystemMetrics -; _WinAPI_GetTextExtentPoint32 -; _WinAPI_GetTextMetrics -; _WinAPI_GetWindow -; _WinAPI_GetWindowDC -; _WinAPI_GetWindowHeight -; _WinAPI_GetWindowLong -; _WinAPI_GetWindowPlacement -; _WinAPI_GetWindowRect -; _WinAPI_GetWindowRgn -; _WinAPI_GetWindowText -; _WinAPI_GetWindowThreadProcessId -; _WinAPI_GetWindowWidth -; _WinAPI_GetXYFromPoint -; _WinAPI_GlobalMemStatus -; _WinAPI_GUIDFromString -; _WinAPI_GUIDFromStringEx -; _WinAPI_HiWord -; _WinAPI_InProcess -; _WinAPI_IntToFloat -; _WinAPI_IsClassName -; _WinAPI_IsWindow -; _WinAPI_IsWindowVisible -; _WinAPI_InvalidateRect -; _WinAPI_LineTo -; _WinAPI_LoadBitmap -; _WinAPI_LoadImage -; _WinAPI_LoadLibrary -; _WinAPI_LoadLibraryEx -; _WinAPI_LoadShell32Icon -; _WinAPI_LoadString -; _WinAPI_LocalFree -; _WinAPI_LoWord -; _WinAPI_MAKELANGID -; _WinAPI_MAKELCID -; _WinAPI_MakeLong -; _WinAPI_MakeQWord -; _WinAPI_MessageBeep -; _WinAPI_Mouse_Event -; _WinAPI_MoveTo -; _WinAPI_MoveWindow -; _WinAPI_MsgBox -; _WinAPI_MulDiv -; _WinAPI_MultiByteToWideChar -; _WinAPI_MultiByteToWideCharEx -; _WinAPI_OpenProcess -; _WinAPI_PathFindOnPath -; _WinAPI_PointFromRect -; _WinAPI_PostMessage -; _WinAPI_PrimaryLangId -; _WinAPI_PtInRect -; _WinAPI_ReadFile -; _WinAPI_ReadProcessMemory -; _WinAPI_RectIsEmpty -; _WinAPI_RedrawWindow -; _WinAPI_RegisterWindowMessage -; _WinAPI_ReleaseCapture -; _WinAPI_ReleaseDC -; _WinAPI_ScreenToClient -; _WinAPI_SelectObject -; _WinAPI_SetBkColor -; _WinAPI_SetBkMode -; _WinAPI_SetCapture -; _WinAPI_SetCursor -; _WinAPI_SetDefaultPrinter -; _WinAPI_SetDIBits -; _WinAPI_SetEndOfFile -; _WinAPI_SetEvent -; _WinAPI_SetFilePointer -; _WinAPI_SetFocus -; _WinAPI_SetFont -; _WinAPI_SetHandleInformation -; _WinAPI_SetLayeredWindowAttributes -; _WinAPI_SetParent -; _WinAPI_SetProcessAffinityMask -; _WinAPI_SetSysColors -; _WinAPI_SetTextColor -; _WinAPI_SetWindowLong -; _WinAPI_SetWindowPlacement -; _WinAPI_SetWindowPos -; _WinAPI_SetWindowRgn -; _WinAPI_SetWindowsHookEx -; _WinAPI_SetWindowText -; _WinAPI_ShowCursor -; _WinAPI_ShowError -; _WinAPI_ShowMsg -; _WinAPI_ShowWindow -; _WinAPI_StringFromGUID -; _WinAPI_StringLenA -; _WinAPI_StringLenW -; _WinAPI_SubLangId -; _WinAPI_SystemParametersInfo -; _WinAPI_TwipsPerPixelX -; _WinAPI_TwipsPerPixelY -; _WinAPI_UnhookWindowsHookEx -; _WinAPI_UpdateLayeredWindow -; _WinAPI_UpdateWindow -; _WinAPI_WaitForInputIdle -; _WinAPI_WaitForMultipleObjects -; _WinAPI_WaitForSingleObject -; _WinAPI_WideCharToMultiByte -; _WinAPI_WindowFromPoint -; _WinAPI_WriteConsole -; _WinAPI_WriteFile -; _WinAPI_WriteProcessMemory -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagCURSORINFO -; $tagDISPLAY_DEVICE -; $tagFLASHWINFO -; $tagICONINFO -; $tagMEMORYSTATUSEX -; __WinAPI_EnumWindowsAdd -; __WinAPI_EnumWindowsChild -; __WinAPI_EnumWindowsInit -; __WinAPI_ParseFileDialogPath -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagCURSORINFO -; Description ...: Contains global cursor information -; Fields ........: Size - Specifies the size, in bytes, of the structure -; Flags - Specifies the cursor state. This parameter can be one of the following values: -; |0 - The cursor is hidden -; |$CURSOR_SHOWING - The cursor is showing -; hCursor - Handle to the cursor -; X - X position of the cursor, in screen coordinates -; Y - Y position of the cursor, in screen coordinates -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagCURSORINFO = "dword Size;dword Flags;handle hCursor;" & $tagPOINT - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagDISPLAY_DEVICE -; Description ...: Receives information about the display device -; Fields ........: Size - Specifies the size, in bytes, of the structure -; Name - Either the adapter device or the monitor device -; String - Either a description of the display adapter or of the display monitor -; Flags - Device state flags: -; |$DISPLAY_DEVICE_ATTACHED_TO_DESKTOP - The device is part of the desktop -; |$DISPLAY_DEVICE_MIRRORING_DRIVER - Represents a pseudo device used to mirror drawing for remoting or other -; +purposes. An invisible pseudo monitor is associated with this device. -; |$DISPLAY_DEVICE_MODESPRUNED - The device has more display modes than its output devices support -; |$DISPLAY_DEVICE_PRIMARY_DEVICE - The primary desktop is on the device -; |$DISPLAY_DEVICE_REMOVABLE - The device is removable; it cannot be the primary display -; |$DISPLAY_DEVICE_VGA_COMPATIBLE - The device is VGA compatible. -; ID - This is the Plug and Play identifier -; Key - Reserved -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagDISPLAY_DEVICE = "dword Size;wchar Name[32];wchar String[128];dword Flags;wchar ID[128];wchar Key[128]" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagFLASHWINFO -; Description ...: Contains the flash status for a window and the number of times the system should flash the window -; Fields ........: Size - The size of the structure, in bytes -; hWnd - A handle to the window to be flashed. The window can be either opened or minimized. -; Flags - The flash status. This parameter can be one or more of the following values: -; |$FLASHW_ALL - Flash both the window caption and taskbar button -; |$FLASHW_CAPTION - Flash the window caption -; |$FLASHW_STOP - Stop flashing -; |$FLASHW_TIMER - Flash continuously, until the $FLASHW_STOP flag is set -; |$FLASHW_TIMERNOFG - Flash continuously until the window comes to the foreground -; |$FLASHW_TRAY - Flash the taskbar button -; Count - The number of times to flash the window -; Timeout - The rate at which the window is to be flashed, in milliseconds -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: Needs Constants.au3 for pre-defined constants -; =============================================================================================================================== -Global Const $tagFLASHWINFO = "uint Size;hwnd hWnd;dword Flags;uint Count;dword TimeOut" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagICONINFO -; Description ...: Contains information about an icon or a cursor -; Fields ........: Icon - Specifies the contents of the structure: -; |True - Icon -; |False - Cursor -; XHotSpot - Specifies the x-coordinate of a cursor's hot spot -; YHotSpot - Specifies the y-coordinate of the cursor's hot spot -; hMask - Specifies the icon bitmask bitmap -; hColor - Handle to the icon color bitmap -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagICONINFO = "bool Icon;dword XHotSpot;dword YHotSpot;handle hMask;handle hColor" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagMEMORYSTATUSEX -; Description ...: Contains information memory usage -; Fields ........: Length - size of the structure, must be set before calling GlobalMemoryStatusEx -; MemoryLoad - -; TotalPhys - -; AvailPhys - -; TotalPageFile - -; AvailPageFile - -; TotalVirtual - -; AvailVirtual - -; AvailExtendedVirtual - Reserved -; Author ........: jpm -; Remarks .......: -; =============================================================================================================================== -Global Const $tagMEMORYSTATUSEX = "dword Length;dword MemoryLoad;" & _ - "uint64 TotalPhys;uint64 AvailPhys;uint64 TotalPageFile;uint64 AvailPageFile;" & _ - "uint64 TotalVirtual;uint64 AvailVirtual;uint64 AvailExtendedVirtual" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_AttachConsole($iPID = -1) - Local $aResult = DllCall("kernel32.dll", "bool", "AttachConsole", "dword", $iPID) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_WinAPI_AttachConsole - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_AttachThreadInput($iAttach, $iAttachTo, $bAttach) - Local $aResult = DllCall("user32.dll", "bool", "AttachThreadInput", "dword", $iAttach, "dword", $iAttachTo, "bool", $bAttach) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_AttachThreadInput - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_Beep($iFreq = 500, $iDuration = 1000) - Local $aResult = DllCall("kernel32.dll", "bool", "Beep", "dword", $iFreq, "dword", $iDuration) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_Beep - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_BitBlt($hDestDC, $iXDest, $iYDest, $iWidth, $iHeight, $hSrcDC, $iXSrc, $iYSrc, $iROP) - Local $aResult = DllCall("gdi32.dll", "bool", "BitBlt", "handle", $hDestDC, "int", $iXDest, "int", $iYDest, "int", $iWidth, _ - "int", $iHeight, "handle", $hSrcDC, "int", $iXSrc, "int", $iYSrc, "dword", $iROP) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_BitBlt - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CallNextHookEx($hHook, $iCode, $wParam, $lParam) - Local $aResult = DllCall("user32.dll", "lresult", "CallNextHookEx", "handle", $hHook, "int", $iCode, "wparam", $wParam, "lparam", $lParam) - If @error Then Return SetError(@error, @extended, -1) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CallNextHookEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Siao -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CallWindowProc($pPrevWndFunc, $hWnd, $iMsg, $wParam, $lParam) - Local $aResult = DllCall("user32.dll", "lresult", "CallWindowProc", "ptr", $pPrevWndFunc, "hwnd", $hWnd, "uint", $iMsg, _ - "wparam", $wParam, "lparam", $lParam) - If @error Then Return SetError(@error, @extended, -1) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CallWindowProc - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_ClientToScreen($hWnd, ByRef $tPoint) - Local $aRet = DllCall("user32.dll", "bool", "ClientToScreen", "hwnd", $hWnd, "struct*", $tPoint) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tPoint -EndFunc ;==>_WinAPI_ClientToScreen - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CloseHandle($hObject) - Local $aResult = DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hObject) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CloseHandle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CombineRgn($hRgnDest, $hRgnSrc1, $hRgnSrc2, $iCombineMode) - Local $aResult = DllCall("gdi32.dll", "int", "CombineRgn", "handle", $hRgnDest, "handle", $hRgnSrc1, "handle", $hRgnSrc2, _ - "int", $iCombineMode) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CombineRgn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_CommDlgExtendedError() - Local Const $CDERR_DIALOGFAILURE = 0xFFFF - Local Const $CDERR_FINDRESFAILURE = 0x06 - Local Const $CDERR_INITIALIZATION = 0x02 - Local Const $CDERR_LOADRESFAILURE = 0x07 - Local Const $CDERR_LOADSTRFAILURE = 0x05 - Local Const $CDERR_LOCKRESFAILURE = 0x08 - Local Const $CDERR_MEMALLOCFAILURE = 0x09 - Local Const $CDERR_MEMLOCKFAILURE = 0x0A - Local Const $CDERR_NOHINSTANCE = 0x04 - Local Const $CDERR_NOHOOK = 0x0B - Local Const $CDERR_NOTEMPLATE = 0x03 - Local Const $CDERR_REGISTERMSGFAIL = 0x0C - Local Const $CDERR_STRUCTSIZE = 0x01 - Local Const $FNERR_BUFFERTOOSMALL = 0x3003 - Local Const $FNERR_INVALIDFILENAME = 0x3002 - Local Const $FNERR_SUBCLASSFAILURE = 0x3001 - Local $aResult = DllCall("comdlg32.dll", "dword", "CommDlgExtendedError") - If Not @error Then - Switch $aResult[0] - Case $CDERR_DIALOGFAILURE - Return SetError($aResult[0], 0, "The dialog box could not be created." & @LF & _ - "The common dialog box function's call to the DialogBox function failed." & @LF & _ - "For example, this error occurs if the common dialog box call specifies an invalid window handle.") - Case $CDERR_FINDRESFAILURE - Return SetError($aResult[0], 0, "The common dialog box function failed to find a specified resource.") - Case $CDERR_INITIALIZATION - Return SetError($aResult[0], 0, "The common dialog box function failed during initialization." & @LF & "This error often occurs when sufficient memory is not available.") - Case $CDERR_LOADRESFAILURE - Return SetError($aResult[0], 0, "The common dialog box function failed to load a specified resource.") - Case $CDERR_LOADSTRFAILURE - Return SetError($aResult[0], 0, "The common dialog box function failed to load a specified string.") - Case $CDERR_LOCKRESFAILURE - Return SetError($aResult[0], 0, "The common dialog box function failed to lock a specified resource.") - Case $CDERR_MEMALLOCFAILURE - Return SetError($aResult[0], 0, "The common dialog box function was unable to allocate memory for internal structures.") - Case $CDERR_MEMLOCKFAILURE - Return SetError($aResult[0], 0, "The common dialog box function was unable to lock the memory associated with a handle.") - Case $CDERR_NOHINSTANCE - Return SetError($aResult[0], 0, "The ENABLETEMPLATE flag was set in the Flags member of the initialization structure for the corresponding common dialog box," & @LF & _ - "but you failed to provide a corresponding instance handle.") - Case $CDERR_NOHOOK - Return SetError($aResult[0], 0, "The ENABLEHOOK flag was set in the Flags member of the initialization structure for the corresponding common dialog box," & @LF & _ - "but you failed to provide a pointer to a corresponding hook procedure.") - Case $CDERR_NOTEMPLATE - Return SetError($aResult[0], 0, "The ENABLETEMPLATE flag was set in the Flags member of the initialization structure for the corresponding common dialog box," & @LF & _ - "but you failed to provide a corresponding template.") - Case $CDERR_REGISTERMSGFAIL - Return SetError($aResult[0], 0, "The RegisterWindowMessage function returned an error code when it was called by the common dialog box function.") - Case $CDERR_STRUCTSIZE - Return SetError($aResult[0], 0, "The lStructSize member of the initialization structure for the corresponding common dialog box is invalid") - Case $FNERR_BUFFERTOOSMALL - Return SetError($aResult[0], 0, "The buffer pointed to by the lpstrFile member of the OPENFILENAME structure is too small for the file name specified by the user." & @LF & _ - "The first two bytes of the lpstrFile buffer contain an integer value specifying the size, in TCHARs, required to receive the full name.") - Case $FNERR_INVALIDFILENAME - Return SetError($aResult[0], 0, "A file name is invalid.") - Case $FNERR_SUBCLASSFAILURE - Return SetError($aResult[0], 0, "An attempt to subclass a list box failed because sufficient memory was not available.") - EndSwitch - EndIf - Return SetError(@error, @extended, '0x' & Hex($aResult[0])) -EndFunc ;==>_WinAPI_CommDlgExtendedError - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CopyIcon($hIcon) - Local $aResult = DllCall("user32.dll", "handle", "CopyIcon", "handle", $hIcon) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CopyIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateBitmap($iWidth, $iHeight, $iPlanes = 1, $iBitsPerPel = 1, $pBits = 0) - Local $aResult = DllCall("gdi32.dll", "handle", "CreateBitmap", "int", $iWidth, "int", $iHeight, "uint", $iPlanes, _ - "uint", $iBitsPerPel, "struct*", $pBits) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateCompatibleBitmap($hDC, $iWidth, $iHeight) - Local $aResult = DllCall("gdi32.dll", "handle", "CreateCompatibleBitmap", "handle", $hDC, "int", $iWidth, "int", $iHeight) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateCompatibleBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateCompatibleDC($hDC) - Local $aResult = DllCall("gdi32.dll", "handle", "CreateCompatibleDC", "handle", $hDC) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateCompatibleDC - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateEvent($tAttributes = 0, $bManualReset = True, $bInitialState = True, $sName = "") - Local $sNameType = "wstr" - If $sName = "" Then - $sName = 0 - $sNameType = "ptr" - EndIf - - Local $aResult = DllCall("kernel32.dll", "handle", "CreateEventW", "struct*", $tAttributes, "bool", $bManualReset, _ - "bool", $bInitialState, $sNameType, $sName) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateEvent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateFile($sFileName, $iCreation, $iAccess = 4, $iShare = 0, $iAttributes = 0, $tSecurity = 0) - Local $iDA = 0, $iSM = 0, $iCD = 0, $iFA = 0 - - If BitAND($iAccess, 1) <> 0 Then $iDA = BitOR($iDA, $GENERIC_EXECUTE) - If BitAND($iAccess, 2) <> 0 Then $iDA = BitOR($iDA, $GENERIC_READ) - If BitAND($iAccess, 4) <> 0 Then $iDA = BitOR($iDA, $GENERIC_WRITE) - - If BitAND($iShare, 1) <> 0 Then $iSM = BitOR($iSM, $FILE_SHARE_DELETE) - If BitAND($iShare, 2) <> 0 Then $iSM = BitOR($iSM, $FILE_SHARE_READ) - If BitAND($iShare, 4) <> 0 Then $iSM = BitOR($iSM, $FILE_SHARE_WRITE) - - Switch $iCreation - Case 0 - $iCD = $CREATE_NEW - Case 1 - $iCD = $CREATE_ALWAYS - Case 2 - $iCD = $OPEN_EXISTING - Case 3 - $iCD = $OPEN_ALWAYS - Case 4 - $iCD = $TRUNCATE_EXISTING - EndSwitch - - If BitAND($iAttributes, 1) <> 0 Then $iFA = BitOR($iFA, $FILE_ATTRIBUTE_ARCHIVE) - If BitAND($iAttributes, 2) <> 0 Then $iFA = BitOR($iFA, $FILE_ATTRIBUTE_HIDDEN) - If BitAND($iAttributes, 4) <> 0 Then $iFA = BitOR($iFA, $FILE_ATTRIBUTE_READONLY) - If BitAND($iAttributes, 8) <> 0 Then $iFA = BitOR($iFA, $FILE_ATTRIBUTE_SYSTEM) - - Local $aResult = DllCall("kernel32.dll", "handle", "CreateFileW", "wstr", $sFileName, "dword", $iDA, "dword", $iSM, _ - "struct*", $tSecurity, "dword", $iCD, "dword", $iFA, "ptr", 0) - If @error Or ($aResult[0] = $INVALID_HANDLE_VALUE) Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateFont($iHeight, $iWidth, $iEscape = 0, $iOrientn = 0, $iWeight = $__WINAPICONSTANT_FW_NORMAL, $bItalic = False, $bUnderline = False, $bStrikeout = False, $iCharset = $__WINAPICONSTANT_DEFAULT_CHARSET, $iOutputPrec = $__WINAPICONSTANT_OUT_DEFAULT_PRECIS, $iClipPrec = $__WINAPICONSTANT_CLIP_DEFAULT_PRECIS, $iQuality = $__WINAPICONSTANT_DEFAULT_QUALITY, $iPitch = 0, $sFace = 'Arial') - Local $aResult = DllCall("gdi32.dll", "handle", "CreateFontW", "int", $iHeight, "int", $iWidth, "int", $iEscape, _ - "int", $iOrientn, "int", $iWeight, "dword", $bItalic, "dword", $bUnderline, "dword", $bStrikeout, _ - "dword", $iCharset, "dword", $iOutputPrec, "dword", $iClipPrec, "dword", $iQuality, "dword", $iPitch, "wstr", $sFace) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateFontIndirect($tLogFont) - Local $aResult = DllCall("gdi32.dll", "handle", "CreateFontIndirectW", "struct*", $tLogFont) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateFontIndirect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreatePen($iPenStyle, $iWidth, $iColor) - Local $aResult = DllCall("gdi32.dll", "handle", "CreatePen", "int", $iPenStyle, "int", $iWidth, "INT", $iColor) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreatePen - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateProcess($sAppName, $sCommand, $tSecurity, $tThread, $bInherit, $iFlags, $pEnviron, $sDir, $tStartupInfo, $tProcess) - Local $tCommand = 0 - Local $sAppNameType = "wstr", $sDirType = "wstr" - If $sAppName = "" Then - $sAppNameType = "ptr" - $sAppName = 0 - EndIf - If $sCommand <> "" Then - ; must be MAX_PATH characters, can be updated by CreateProcessW - $tCommand = DllStructCreate("wchar Text[" & 260 + 1 & "]") - DllStructSetData($tCommand, "Text", $sCommand) - EndIf - If $sDir = "" Then - $sDirType = "ptr" - $sDir = 0 - EndIf - - Local $aResult = DllCall("kernel32.dll", "bool", "CreateProcessW", $sAppNameType, $sAppName, "struct*", $tCommand, _ - "struct*", $tSecurity, "struct*", $tThread, "bool", $bInherit, "dword", $iFlags, "struct*", $pEnviron, $sDirType, $sDir, _ - "struct*", $tStartupInfo, "struct*", $tProcess) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateProcess - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateRectRgn($iLeftRect, $iTopRect, $iRightRect, $iBottomRect) - Local $aResult = DllCall("gdi32.dll", "handle", "CreateRectRgn", "int", $iLeftRect, "int", $iTopRect, "int", $iRightRect, _ - "int", $iBottomRect) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateRectRgn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateRoundRectRgn($iLeftRect, $iTopRect, $iRightRect, $iBottomRect, $iWidthEllipse, $iHeightEllipse) - Local $aResult = DllCall("gdi32.dll", "handle", "CreateRoundRectRgn", "int", $iLeftRect, "int", $iTopRect, _ - "int", $iRightRect, "int", $iBottomRect, "int", $iWidthEllipse, "int", $iHeightEllipse) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateRoundRectRgn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost (Release DC), Yashied (rewritten) -; =============================================================================================================================== -Func _WinAPI_CreateSolidBitmap($hWnd, $iColor, $iWidth, $iHeight, $bRGB = 1) - Local $hDC = _WinAPI_GetDC($hWnd) - Local $hDestDC = _WinAPI_CreateCompatibleDC($hDC) - Local $hBitmap = _WinAPI_CreateCompatibleBitmap($hDC, $iWidth, $iHeight) - Local $hOld = _WinAPI_SelectObject($hDestDC, $hBitmap) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, 1, 0) - DllStructSetData($tRECT, 2, 0) - DllStructSetData($tRECT, 3, $iWidth) - DllStructSetData($tRECT, 4, $iHeight) - If $bRGB Then - $iColor = BitOR(BitAND($iColor, 0x00FF00), BitShift(BitAND($iColor, 0x0000FF), -16), BitShift(BitAND($iColor, 0xFF0000), 16)) - EndIf - Local $hBrush = _WinAPI_CreateSolidBrush($iColor) - If Not _WinAPI_FillRect($hDestDC, $tRECT, $hBrush) Then - _WinAPI_DeleteObject($hBitmap) - $hBitmap = 0 - EndIf - _WinAPI_DeleteObject($hBrush) - _WinAPI_ReleaseDC($hWnd, $hDC) - _WinAPI_SelectObject($hDestDC, $hOld) - _WinAPI_DeleteDC($hDestDC) - If Not $hBitmap Then Return SetError(1, 0, 0) - Return $hBitmap -EndFunc ;==>_WinAPI_CreateSolidBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateSolidBrush($iColor) - Local $aResult = DllCall("gdi32.dll", "handle", "CreateSolidBrush", "INT", $iColor) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateSolidBrush - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateWindowEx($iExStyle, $sClass, $sName, $iStyle, $iX, $iY, $iWidth, $iHeight, $hParent, $hMenu = 0, $hInstance = 0, $pParam = 0) - If $hInstance = 0 Then $hInstance = _WinAPI_GetModuleHandle("") - Local $aResult = DllCall("user32.dll", "hwnd", "CreateWindowExW", "dword", $iExStyle, "wstr", $sClass, "wstr", $sName, _ - "dword", $iStyle, "int", $iX, "int", $iY, "int", $iWidth, "int", $iHeight, "hwnd", $hParent, "handle", $hMenu, _ - "handle", $hInstance, "struct*", $pParam) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_CreateWindowEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DefWindowProc($hWnd, $iMsg, $wParam, $lParam) - Local $aResult = DllCall("user32.dll", "lresult", "DefWindowProc", "hwnd", $hWnd, "uint", $iMsg, "wparam", $wParam, _ - "lparam", $lParam) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DefWindowProc - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DeleteDC($hDC) - Local $aResult = DllCall("gdi32.dll", "bool", "DeleteDC", "handle", $hDC) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DeleteDC - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DeleteObject($hObject) - Local $aResult = DllCall("gdi32.dll", "bool", "DeleteObject", "handle", $hObject) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DeleteObject - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DestroyIcon($hIcon) - Local $aResult = DllCall("user32.dll", "bool", "DestroyIcon", "handle", $hIcon) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DestroyIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DestroyWindow($hWnd) - Local $aResult = DllCall("user32.dll", "bool", "DestroyWindow", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DestroyWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawEdge($hDC, $tRECT, $iEdgeType, $iFlags) - Local $aResult = DllCall("user32.dll", "bool", "DrawEdge", "handle", $hDC, "struct*", $tRECT, "uint", $iEdgeType, _ - "uint", $iFlags) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DrawEdge - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawFrameControl($hDC, $tRECT, $iType, $iState) - Local $aResult = DllCall("user32.dll", "bool", "DrawFrameControl", "handle", $hDC, "struct*", $tRECT, "uint", $iType, _ - "uint", $iState) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DrawFrameControl - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DrawIcon($hDC, $iX, $iY, $hIcon) - Local $aResult = DllCall("user32.dll", "bool", "DrawIcon", "handle", $hDC, "int", $iX, "int", $iY, "handle", $hIcon) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DrawIcon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DrawIconEx($hDC, $iX, $iY, $hIcon, $iWidth = 0, $iHeight = 0, $iStep = 0, $hBrush = 0, $iFlags = 3) - Local $iOptions - Switch $iFlags - Case 1 - $iOptions = $DI_MASK - Case 2 - $iOptions = $DI_IMAGE - Case 3 - $iOptions = $DI_NORMAL - Case 4 - $iOptions = $DI_COMPAT - Case 5 - $iOptions = $DI_DEFAULTSIZE - Case Else - $iOptions = $DI_NOMIRROR - EndSwitch - - Local $aResult = DllCall("user32.dll", "bool", "DrawIconEx", "handle", $hDC, "int", $iX, "int", $iY, "handle", $hIcon, _ - "int", $iWidth, "int", $iHeight, "uint", $iStep, "handle", $hBrush, "uint", $iOptions) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DrawIconEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DrawLine($hDC, $iX1, $iY1, $iX2, $iY2) - _WinAPI_MoveTo($hDC, $iX1, $iY1) - If @error Then Return SetError(@error, @extended, False) - _WinAPI_LineTo($hDC, $iX2, $iY2) - If @error Then Return SetError(@error + 10, @extended, False) - Return True -EndFunc ;==>_WinAPI_DrawLine - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawText($hDC, $sText, ByRef $tRECT, $iFlags) - Local $aResult = DllCall("user32.dll", "int", "DrawTextW", "handle", $hDC, "wstr", $sText, "int", -1, "struct*", $tRECT, _ - "uint", $iFlags) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_DrawText - -; #FUNCTION# ==================================================================================================================== -; Author ........: trancexx -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DuplicateHandle($hSourceProcessHandle, $hSourceHandle, $hTargetProcessHandle, $iDesiredAccess, $iInheritHandle, $iOptions) - Local $aResult = DllCall("kernel32.dll", "bool", "DuplicateHandle", _ - "handle", $hSourceProcessHandle, _ - "handle", $hSourceHandle, _ - "handle", $hTargetProcessHandle, _ - "handle*", 0, _ - "dword", $iDesiredAccess, _ - "bool", $iInheritHandle, _ - "dword", $iOptions) - If @error Or Not $aResult[0] Then Return SetError(@error, @extended, 0) - - Return $aResult[4] -EndFunc ;==>_WinAPI_DuplicateHandle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_EnableWindow($hWnd, $bEnable = True) - Local $aResult = DllCall("user32.dll", "bool", "EnableWindow", "hwnd", $hWnd, "bool", $bEnable) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_EnableWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_EnumDisplayDevices($sDevice, $iDevNum) - Local $tName = 0, $iFlags = 0, $aDevice[5] - - If $sDevice <> "" Then - $tName = DllStructCreate("wchar Text[" & StringLen($sDevice) + 1 & "]") - DllStructSetData($tName, "Text", $sDevice) - EndIf - Local $tDevice = DllStructCreate($tagDISPLAY_DEVICE) - Local $iDevice = DllStructGetSize($tDevice) - DllStructSetData($tDevice, "Size", $iDevice) - Local $aRet = DllCall("user32.dll", "bool", "EnumDisplayDevicesW", "struct*", $tName, "dword", $iDevNum, "struct*", $tDevice, "dword", 1) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $iN = DllStructGetData($tDevice, "Flags") - If BitAND($iN, $DISPLAY_DEVICE_ATTACHED_TO_DESKTOP) <> 0 Then $iFlags = BitOR($iFlags, 1) - If BitAND($iN, $DISPLAY_DEVICE_PRIMARY_DEVICE) <> 0 Then $iFlags = BitOR($iFlags, 2) - If BitAND($iN, $DISPLAY_DEVICE_MIRRORING_DRIVER) <> 0 Then $iFlags = BitOR($iFlags, 4) - If BitAND($iN, $DISPLAY_DEVICE_VGA_COMPATIBLE) <> 0 Then $iFlags = BitOR($iFlags, 8) - If BitAND($iN, $DISPLAY_DEVICE_REMOVABLE) <> 0 Then $iFlags = BitOR($iFlags, 16) - If BitAND($iN, $DISPLAY_DEVICE_MODESPRUNED) <> 0 Then $iFlags = BitOR($iFlags, 32) - $aDevice[0] = True - $aDevice[1] = DllStructGetData($tDevice, "Name") - $aDevice[2] = DllStructGetData($tDevice, "String") - $aDevice[3] = $iFlags - $aDevice[4] = DllStructGetData($tDevice, "ID") - Return $aDevice -EndFunc ;==>_WinAPI_EnumDisplayDevices - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumWindows($bVisible = True, $hWnd = Default) - __WinAPI_EnumWindowsInit() - If $hWnd = Default Then $hWnd = _WinAPI_GetDesktopWindow() - __WinAPI_EnumWindowsChild($hWnd, $bVisible) - Return $__g_aWinList_WinAPI -EndFunc ;==>_WinAPI_EnumWindows - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __WinAPI_EnumWindowsAdd -; Description ...: Adds window information to the windows enumeration list -; Syntax.........: __WinAPI_EnumWindowsAdd ( $hWnd [, $sClass = ""] ) -; Parameters ....: $hWnd - Handle to the window -; $sClass - Window class name -; Return values .: -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally by the windows enumeration functions -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __WinAPI_EnumWindowsAdd($hWnd, $sClass = "") - If $sClass = "" Then $sClass = _WinAPI_GetClassName($hWnd) - $__g_aWinList_WinAPI[0][0] += 1 - Local $iCount = $__g_aWinList_WinAPI[0][0] - If $iCount >= $__g_aWinList_WinAPI[0][1] Then - ReDim $__g_aWinList_WinAPI[$iCount + 64][2] - $__g_aWinList_WinAPI[0][1] += 64 - EndIf - $__g_aWinList_WinAPI[$iCount][0] = $hWnd - $__g_aWinList_WinAPI[$iCount][1] = $sClass -EndFunc ;==>__WinAPI_EnumWindowsAdd - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __WinAPI_EnumWindowsChild -; Description ...: Enumerates child windows of a specific window -; Syntax.........: __WinAPI_EnumWindowsChild ( $hWnd [, $bVisible = True] ) -; Parameters ....: $hWnd - Handle of parent window -; $bVisible - Window selection flag: -; | True - Returns only visible windows -; |False - Returns all windows -; Return values .: -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; Remarks .......: This function is used internally by the windows enumeration functions -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __WinAPI_EnumWindowsChild($hWnd, $bVisible = True) - $hWnd = _WinAPI_GetWindow($hWnd, $GW_CHILD) - While $hWnd <> 0 - If (Not $bVisible) Or _WinAPI_IsWindowVisible($hWnd) Then - __WinAPI_EnumWindowsAdd($hWnd) - __WinAPI_EnumWindowsChild($hWnd, $bVisible) - EndIf - $hWnd = _WinAPI_GetWindow($hWnd, $GW_HWNDNEXT) - WEnd -EndFunc ;==>__WinAPI_EnumWindowsChild - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __WinAPI_EnumWindowsInit -; Description ...: Initializes the windows enumeration list -; Syntax.........: __WinAPI_EnumWindowsInit ( ) -; Parameters ....: -; Return values .: -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally by the windows enumeration functions -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __WinAPI_EnumWindowsInit() - ReDim $__g_aWinList_WinAPI[64][2] - $__g_aWinList_WinAPI[0][0] = 0 - $__g_aWinList_WinAPI[0][1] = 64 -EndFunc ;==>__WinAPI_EnumWindowsInit - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_EnumWindowsPopup() - __WinAPI_EnumWindowsInit() - Local $hWnd = _WinAPI_GetWindow(_WinAPI_GetDesktopWindow(), $GW_CHILD) - Local $sClass - While $hWnd <> 0 - If _WinAPI_IsWindowVisible($hWnd) Then - $sClass = _WinAPI_GetClassName($hWnd) - If $sClass = "#32768" Then - __WinAPI_EnumWindowsAdd($hWnd) - ElseIf $sClass = "ToolbarWindow32" Then - __WinAPI_EnumWindowsAdd($hWnd) - ElseIf $sClass = "ToolTips_Class32" Then - __WinAPI_EnumWindowsAdd($hWnd) - ElseIf $sClass = "BaseBar" Then - __WinAPI_EnumWindowsChild($hWnd) - EndIf - EndIf - $hWnd = _WinAPI_GetWindow($hWnd, $GW_HWNDNEXT) - WEnd - Return $__g_aWinList_WinAPI -EndFunc ;==>_WinAPI_EnumWindowsPopup - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_EnumWindowsTop() - __WinAPI_EnumWindowsInit() - Local $hWnd = _WinAPI_GetWindow(_WinAPI_GetDesktopWindow(), $GW_CHILD) - While $hWnd <> 0 - If _WinAPI_IsWindowVisible($hWnd) Then __WinAPI_EnumWindowsAdd($hWnd) - $hWnd = _WinAPI_GetWindow($hWnd, $GW_HWNDNEXT) - WEnd - Return $__g_aWinList_WinAPI -EndFunc ;==>_WinAPI_EnumWindowsTop - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_ExpandEnvironmentStrings($sString) - Local $aResult = DllCall("kernel32.dll", "dword", "ExpandEnvironmentStringsW", "wstr", $sString, "wstr", "", "dword", 4096) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, "") - - Return $aResult[2] -EndFunc ;==>_WinAPI_ExpandEnvironmentStrings - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ExtractIconEx($sFilePath, $iIndex, $paLarge, $paSmall, $iIcons) - Local $aResult = DllCall("shell32.dll", "uint", "ExtractIconExW", "wstr", $sFilePath, "int", $iIndex, "struct*", $paLarge, _ - "struct*", $paSmall, "uint", $iIcons) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_ExtractIconEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FatalAppExit($sMessage) - DllCall("kernel32.dll", "none", "FatalAppExitW", "uint", 0, "wstr", $sMessage) - If @error Then Return SetError(@error, @extended) -EndFunc ;==>_WinAPI_FatalAppExit - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FillRect($hDC, $tRECT, $hBrush) - Local $aResult - If IsPtr($hBrush) Then - $aResult = DllCall("user32.dll", "int", "FillRect", "handle", $hDC, "struct*", $tRECT, "handle", $hBrush) - Else - $aResult = DllCall("user32.dll", "int", "FillRect", "handle", $hDC, "struct*", $tRECT, "dword_ptr", $hBrush) - EndIf - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_FillRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_FindExecutable($sFileName, $sDirectory = "") - Local $aResult = DllCall("shell32.dll", "INT", "FindExecutableW", "wstr", $sFileName, "wstr", $sDirectory, "wstr", "") - If @error Then Return SetError(@error, @extended, '') - If $aResult[0] <= 32 Then Return SetError(10, $aResult[0], '') - - Return SetExtended($aResult[0], $aResult[3]) -EndFunc ;==>_WinAPI_FindExecutable - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FindWindow($sClassName, $sWindowName) - Local $aResult = DllCall("user32.dll", "hwnd", "FindWindowW", "wstr", $sClassName, "wstr", $sWindowName) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_FindWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_FlashWindow($hWnd, $bInvert = True) - Local $aResult = DllCall("user32.dll", "bool", "FlashWindow", "hwnd", $hWnd, "bool", $bInvert) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_FlashWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Yoan Roblet (arcker) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_FlashWindowEx($hWnd, $iFlags = 3, $iCount = 3, $iTimeout = 0) - Local $tFlash = DllStructCreate($tagFLASHWINFO) - Local $iFlash = DllStructGetSize($tFlash) - Local $iMode = 0 - If BitAND($iFlags, 1) <> 0 Then $iMode = BitOR($iMode, $FLASHW_CAPTION) - If BitAND($iFlags, 2) <> 0 Then $iMode = BitOR($iMode, $FLASHW_TRAY) - If BitAND($iFlags, 4) <> 0 Then $iMode = BitOR($iMode, $FLASHW_TIMER) - If BitAND($iFlags, 8) <> 0 Then $iMode = BitOR($iMode, $FLASHW_TIMERNOFG) - DllStructSetData($tFlash, "Size", $iFlash) - DllStructSetData($tFlash, "hWnd", $hWnd) - DllStructSetData($tFlash, "Flags", $iMode) - DllStructSetData($tFlash, "Count", $iCount) - DllStructSetData($tFlash, "Timeout", $iTimeout) - Local $aResult = DllCall("user32.dll", "bool", "FlashWindowEx", "struct*", $tFlash) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_FlashWindowEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_FloatToInt($nFloat) - Local $tFloat = DllStructCreate("float") - Local $tInt = DllStructCreate("int", DllStructGetPtr($tFloat)) - DllStructSetData($tFloat, 1, $nFloat) - - Return DllStructGetData($tInt, 1) -EndFunc ;==>_WinAPI_FloatToInt - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_FlushFileBuffers($hFile) - Local $aResult = DllCall("kernel32.dll", "bool", "FlushFileBuffers", "handle", $hFile) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_FlushFileBuffers - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_FormatMessage($iFlags, $pSource, $iMessageID, $iLanguageID, ByRef $pBuffer, $iSize, $vArguments) - Local $sBufferType = "struct*" - If IsString($pBuffer) Then $sBufferType = "wstr" - Local $aResult = DllCall("kernel32.dll", "dword", "FormatMessageW", "dword", $iFlags, "struct*", $pSource, "dword", $iMessageID, _ - "dword", $iLanguageID, $sBufferType, $pBuffer, "dword", $iSize, "ptr", $vArguments) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, 0) - - If $sBufferType = "wstr" Then $pBuffer = $aResult[5] - Return $aResult[0] -EndFunc ;==>_WinAPI_FormatMessage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FrameRect($hDC, $tRECT, $hBrush) - Local $aResult = DllCall("user32.dll", "int", "FrameRect", "handle", $hDC, "struct*", $tRECT, "handle", $hBrush) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_FrameRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FreeLibrary($hModule) - Local $aResult = DllCall("kernel32.dll", "bool", "FreeLibrary", "handle", $hModule) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_FreeLibrary - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetAncestor($hWnd, $iFlags = 1) - Local $aResult = DllCall("user32.dll", "hwnd", "GetAncestor", "hwnd", $hWnd, "uint", $iFlags) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetAncestor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetAsyncKeyState($iKey) - Local $aResult = DllCall("user32.dll", "short", "GetAsyncKeyState", "int", $iKey) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetAsyncKeyState - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetBkMode($hDC) - Local $aResult = DllCall("gdi32.dll", "int", "GetBkMode", "handle", $hDC) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetBkMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetClassName($hWnd) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Local $aResult = DllCall("user32.dll", "int", "GetClassNameW", "hwnd", $hWnd, "wstr", "", "int", 4096) - If @error Or Not $aResult[0] Then Return SetError(@error, @extended, '') - - Return SetExtended($aResult[0], $aResult[2]) -EndFunc ;==>_WinAPI_GetClassName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetClientHeight($hWnd) - Local $tRECT = _WinAPI_GetClientRect($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return DllStructGetData($tRECT, "Bottom") - DllStructGetData($tRECT, "Top") -EndFunc ;==>_WinAPI_GetClientHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetClientWidth($hWnd) - Local $tRECT = _WinAPI_GetClientRect($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return DllStructGetData($tRECT, "Right") - DllStructGetData($tRECT, "Left") -EndFunc ;==>_WinAPI_GetClientWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetClientRect($hWnd) - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall("user32.dll", "bool", "GetClientRect", "hwnd", $hWnd, "struct*", $tRECT) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tRECT -EndFunc ;==>_WinAPI_GetClientRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetCurrentProcess() - Local $aResult = DllCall("kernel32.dll", "handle", "GetCurrentProcess") - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetCurrentProcess - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetCurrentProcessID() - Local $aResult = DllCall("kernel32.dll", "dword", "GetCurrentProcessId") - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetCurrentProcessID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetCurrentThread() - Local $aResult = DllCall("kernel32.dll", "handle", "GetCurrentThread") - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetCurrentThread - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetCurrentThreadId() - Local $aResult = DllCall("kernel32.dll", "dword", "GetCurrentThreadId") - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetCurrentThreadId - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetCursorInfo() - Local $tCursor = DllStructCreate($tagCURSORINFO) - Local $iCursor = DllStructGetSize($tCursor) - DllStructSetData($tCursor, "Size", $iCursor) - Local $aRet = DllCall("user32.dll", "bool", "GetCursorInfo", "struct*", $tCursor) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aCursor[5] - $aCursor[0] = True - $aCursor[1] = DllStructGetData($tCursor, "Flags") <> 0 - $aCursor[2] = DllStructGetData($tCursor, "hCursor") - $aCursor[3] = DllStructGetData($tCursor, "X") - $aCursor[4] = DllStructGetData($tCursor, "Y") - Return $aCursor -EndFunc ;==>_WinAPI_GetCursorInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetDC($hWnd) - Local $aResult = DllCall("user32.dll", "handle", "GetDC", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetDC - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetDesktopWindow() - Local $aResult = DllCall("user32.dll", "hwnd", "GetDesktopWindow") - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetDesktopWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetDeviceCaps($hDC, $iIndex) - Local $aResult = DllCall("gdi32.dll", "int", "GetDeviceCaps", "handle", $hDC, "int", $iIndex) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetDeviceCaps - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetDIBits($hDC, $hBitmap, $iStartScan, $iScanLines, $pBits, $tBI, $iUsage) - Local $aResult = DllCall("gdi32.dll", "int", "GetDIBits", "handle", $hDC, "handle", $hBitmap, "uint", $iStartScan, _ - "uint", $iScanLines, "struct*", $pBits, "struct*", $tBI, "uint", $iUsage) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetDIBits - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetDlgCtrlID($hWnd) - Local $aResult = DllCall("user32.dll", "int", "GetDlgCtrlID", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetDlgCtrlID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetDlgItem($hWnd, $iItemID) - Local $aResult = DllCall("user32.dll", "hwnd", "GetDlgItem", "hwnd", $hWnd, "int", $iItemID) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetDlgItem - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetFileSizeEx($hFile) - Local $aResult = DllCall("kernel32.dll", "bool", "GetFileSizeEx", "handle", $hFile, "int64*", 0) - If @error Or Not $aResult[0] Then Return SetError(@error, @extended, -1) - - Return $aResult[2] -EndFunc ;==>_WinAPI_GetFileSizeEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetFocus() - Local $aResult = DllCall("user32.dll", "hwnd", "GetFocus") - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetFocus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetForegroundWindow() - Local $aResult = DllCall("user32.dll", "hwnd", "GetForegroundWindow") - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetForegroundWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetGuiResources($iFlag = 0, $hProcess = -1) - If $hProcess = -1 Then $hProcess = _WinAPI_GetCurrentProcess() - Local $aResult = DllCall("user32.dll", "dword", "GetGuiResources", "handle", $hProcess, "dword", $iFlag) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetGuiResources - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetIconInfo($hIcon) - Local $tInfo = DllStructCreate($tagICONINFO) - Local $aRet = DllCall("user32.dll", "bool", "GetIconInfo", "handle", $hIcon, "struct*", $tInfo) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aIcon[6] - $aIcon[0] = True - $aIcon[1] = DllStructGetData($tInfo, "Icon") <> 0 - $aIcon[2] = DllStructGetData($tInfo, "XHotSpot") - $aIcon[3] = DllStructGetData($tInfo, "YHotSpot") - $aIcon[4] = DllStructGetData($tInfo, "hMask") - $aIcon[5] = DllStructGetData($tInfo, "hColor") - Return $aIcon -EndFunc ;==>_WinAPI_GetIconInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm, danielkza, Valik -; =============================================================================================================================== -Func _WinAPI_GetLastErrorMessage() - Local $iLastError = _WinAPI_GetLastError() - Local $tBufferPtr = DllStructCreate("ptr") - - Local $nCount = _WinAPI_FormatMessage(BitOR($FORMAT_MESSAGE_ALLOCATE_BUFFER, $FORMAT_MESSAGE_FROM_SYSTEM), _ - 0, $iLastError, 0, $tBufferPtr, 0, 0) - If @error Then Return SetError(@error, 0, "") - - Local $sText = "" - Local $pBuffer = DllStructGetData($tBufferPtr, 1) - If $pBuffer Then - If $nCount > 0 Then - Local $tBuffer = DllStructCreate("wchar[" & ($nCount + 1) & "]", $pBuffer) - $sText = DllStructGetData($tBuffer, 1) - If StringRight($sText, 2) = @CRLF Then $sText = StringTrimRight($sText, 2) - EndIf - _WinAPI_LocalFree($pBuffer) - EndIf - - Return $sText -EndFunc ;==>_WinAPI_GetLastErrorMessage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetLayeredWindowAttributes($hWnd, ByRef $iTransColor, ByRef $iTransGUI, $bColorRef = False) - $iTransColor = -1 - $iTransGUI = -1 - Local $aResult = DllCall("user32.dll", "bool", "GetLayeredWindowAttributes", "hwnd", $hWnd, "INT*", $iTransColor, _ - "byte*", $iTransGUI, "dword*", 0) - If @error Or Not $aResult[0] Then Return SetError(@error, @extended, 0) - - If Not $bColorRef Then - $aResult[2] = Int(BinaryMid($aResult[2], 3, 1) & BinaryMid($aResult[2], 2, 1) & BinaryMid($aResult[2], 1, 1)) - EndIf - $iTransColor = $aResult[2] - $iTransGUI = $aResult[3] - Return $aResult[4] -EndFunc ;==>_WinAPI_GetLayeredWindowAttributes - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetModuleHandle($sModuleName) - Local $sModuleNameType = "wstr" - If $sModuleName = "" Then - $sModuleName = 0 - $sModuleNameType = "ptr" - EndIf - - Local $aResult = DllCall("kernel32.dll", "handle", "GetModuleHandleW", $sModuleNameType, $sModuleName) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetModuleHandle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetMousePos($bToClient = False, $hWnd = 0) - Local $iMode = Opt("MouseCoordMode", 1) - Local $aPos = MouseGetPos() - Opt("MouseCoordMode", $iMode) - - Local $tPoint = DllStructCreate($tagPOINT) - DllStructSetData($tPoint, "X", $aPos[0]) - DllStructSetData($tPoint, "Y", $aPos[1]) - If $bToClient And Not _WinAPI_ScreenToClient($hWnd, $tPoint) Then Return SetError(@error + 20, @extended, 0) - - Return $tPoint -EndFunc ;==>_WinAPI_GetMousePos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetMousePosX($bToClient = False, $hWnd = 0) - Local $tPoint = _WinAPI_GetMousePos($bToClient, $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return DllStructGetData($tPoint, "X") -EndFunc ;==>_WinAPI_GetMousePosX - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetMousePosY($bToClient = False, $hWnd = 0) - Local $tPoint = _WinAPI_GetMousePos($bToClient, $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return DllStructGetData($tPoint, "Y") -EndFunc ;==>_WinAPI_GetMousePosY - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetObject($hObject, $iSize, $pObject) - Local $aResult = DllCall("gdi32.dll", "int", "GetObjectW", "handle", $hObject, "int", $iSize, "struct*", $pObject) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetObject - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetOpenFileName($sTitle = "", $sFilter = "All files (*.*)", $sInitalDir = ".", $sDefaultFile = "", $sDefaultExt = "", $iFilterIndex = 1, $iFlags = 0, $iFlagsEx = 0, $hWndOwner = 0) - Local $iPathLen = 4096 ; Max chars in returned string - Local $iNulls = 0 - Local $tOFN = DllStructCreate($tagOPENFILENAME) - Local $aFiles[1] = [0] - - Local $iFlag = $iFlags - - ; Filter string to array conversion - Local $asFLines = StringSplit($sFilter, "|") - Local $asFilter[$asFLines[0] * 2 + 1] - Local $iStart, $iFinal, $tagFilter - $asFilter[0] = $asFLines[0] * 2 - For $i = 1 To $asFLines[0] - $iStart = StringInStr($asFLines[$i], "(", 0, 1) - $iFinal = StringInStr($asFLines[$i], ")", 0, -1) - $asFilter[$i * 2 - 1] = StringStripWS(StringLeft($asFLines[$i], $iStart - 1), $STR_STRIPLEADING + $STR_STRIPTRAILING) - $asFilter[$i * 2] = StringStripWS(StringTrimRight(StringTrimLeft($asFLines[$i], $iStart), StringLen($asFLines[$i]) - $iFinal + 1), $STR_STRIPLEADING + $STR_STRIPTRAILING) - $tagFilter &= "wchar[" & StringLen($asFilter[$i * 2 - 1]) + 1 & "];wchar[" & StringLen($asFilter[$i * 2]) + 1 & "];" - Next - - Local $tTitle = DllStructCreate("wchar Title[" & StringLen($sTitle) + 1 & "]") - Local $tInitialDir = DllStructCreate("wchar InitDir[" & StringLen($sInitalDir) + 1 & "]") - Local $tFilter = DllStructCreate($tagFilter & "wchar") - Local $tPath = DllStructCreate("wchar Path[" & $iPathLen & "]") - Local $tExtn = DllStructCreate("wchar Extension[" & StringLen($sDefaultExt) + 1 & "]") - For $i = 1 To $asFilter[0] - DllStructSetData($tFilter, $i, $asFilter[$i]) - Next - - ; Set Data of API structures - DllStructSetData($tTitle, "Title", $sTitle) - DllStructSetData($tInitialDir, "InitDir", $sInitalDir) - DllStructSetData($tPath, "Path", $sDefaultFile) - DllStructSetData($tExtn, "Extension", $sDefaultExt) - - DllStructSetData($tOFN, "StructSize", DllStructGetSize($tOFN)) - DllStructSetData($tOFN, "hwndOwner", $hWndOwner) - DllStructSetData($tOFN, "lpstrFilter", DllStructGetPtr($tFilter)) - DllStructSetData($tOFN, "nFilterIndex", $iFilterIndex) - DllStructSetData($tOFN, "lpstrFile", DllStructGetPtr($tPath)) - DllStructSetData($tOFN, "nMaxFile", $iPathLen) - DllStructSetData($tOFN, "lpstrInitialDir", DllStructGetPtr($tInitialDir)) - DllStructSetData($tOFN, "lpstrTitle", DllStructGetPtr($tTitle)) - DllStructSetData($tOFN, "Flags", $iFlag) - DllStructSetData($tOFN, "lpstrDefExt", DllStructGetPtr($tExtn)) - DllStructSetData($tOFN, "FlagsEx", $iFlagsEx) - Local $aRes = DllCall("comdlg32.dll", "bool", "GetOpenFileNameW", "struct*", $tOFN) - If @error Or Not $aRes[0] Then Return SetError(@error + 10, @extended, $aFiles) - - If BitAND($iFlags, $OFN_ALLOWMULTISELECT) = $OFN_ALLOWMULTISELECT And BitAND($iFlags, $OFN_EXPLORER) = $OFN_EXPLORER Then - For $x = 1 To $iPathLen - If DllStructGetData($tPath, "Path", $x) = Chr(0) Then - DllStructSetData($tPath, "Path", "|", $x) - $iNulls += 1 - Else - $iNulls = 0 - EndIf - If $iNulls = 2 Then ExitLoop - Next - DllStructSetData($tPath, "Path", Chr(0), $x - 1) - $aFiles = StringSplit(DllStructGetData($tPath, "Path"), "|") - If $aFiles[0] = 1 Then Return __WinAPI_ParseFileDialogPath(DllStructGetData($tPath, "Path")) - Return StringSplit(DllStructGetData($tPath, "Path"), "|") - ElseIf BitAND($iFlags, $OFN_ALLOWMULTISELECT) = $OFN_ALLOWMULTISELECT Then - $aFiles = StringSplit(DllStructGetData($tPath, "Path"), " ") - If $aFiles[0] = 1 Then Return __WinAPI_ParseFileDialogPath(DllStructGetData($tPath, "Path")) - Return StringSplit(StringReplace(DllStructGetData($tPath, "Path"), " ", "|"), "|") - Else - Return __WinAPI_ParseFileDialogPath(DllStructGetData($tPath, "Path")) - EndIf -EndFunc ;==>_WinAPI_GetOpenFileName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetOverlappedResult($hFile, $tOverlapped, ByRef $iBytes, $bWait = False) - Local $aResult = DllCall("kernel32.dll", "bool", "GetOverlappedResult", "handle", $hFile, "struct*", $tOverlapped, "dword*", 0, _ - "bool", $bWait) - If @error Or Not $aResult[0] Then Return SetError(@error, @extended, False) - - $iBytes = $aResult[3] - Return $aResult[0] -EndFunc ;==>_WinAPI_GetOverlappedResult - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetParent($hWnd) - Local $aResult = DllCall("user32.dll", "hwnd", "GetParent", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetParent - -; #FUNCTION# ==================================================================================================================== -; Author ........: trancexx -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetProcAddress($hModule, $vName) - Local $sType = "str" - If IsNumber($vName) Then $sType = "word" ; if ordinal value passed - Local $aResult = DllCall("kernel32.dll", "ptr", "GetProcAddress", "handle", $hModule, $sType, $vName) - If @error Or Not $aResult[0] Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetProcAddress - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetProcessAffinityMask($hProcess) - Local $aResult = DllCall("kernel32.dll", "bool", "GetProcessAffinityMask", "handle", $hProcess, "dword_ptr*", 0, "dword_ptr*", 0) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aMask[3] - $aMask[0] = True - $aMask[1] = $aResult[2] - $aMask[2] = $aResult[3] - Return $aMask -EndFunc ;==>_WinAPI_GetProcessAffinityMask - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetSaveFileName($sTitle = "", $sFilter = "All files (*.*)", $sInitalDir = ".", $sDefaultFile = "", $sDefaultExt = "", $iFilterIndex = 1, $iFlags = 0, $iFlagsEx = 0, $hWndOwner = 0) - Local $iPathLen = 4096 ; Max chars in returned string - Local $tOFN = DllStructCreate($tagOPENFILENAME) - Local $aFiles[1] = [0] - - Local $iFlag = $iFlags - - ; Filter string to array conversion - Local $asFLines = StringSplit($sFilter, "|") - Local $asFilter[$asFLines[0] * 2 + 1] - Local $iStart, $iFinal, $tagFilter - $asFilter[0] = $asFLines[0] * 2 - For $i = 1 To $asFLines[0] - $iStart = StringInStr($asFLines[$i], "(", 0, 1) - $iFinal = StringInStr($asFLines[$i], ")", 0, -1) - $asFilter[$i * 2 - 1] = StringStripWS(StringLeft($asFLines[$i], $iStart - 1), $STR_STRIPLEADING + $STR_STRIPTRAILING) - $asFilter[$i * 2] = StringStripWS(StringTrimRight(StringTrimLeft($asFLines[$i], $iStart), StringLen($asFLines[$i]) - $iFinal + 1), $STR_STRIPLEADING + $STR_STRIPTRAILING) - $tagFilter &= "wchar[" & StringLen($asFilter[$i * 2 - 1]) + 1 & "];wchar[" & StringLen($asFilter[$i * 2]) + 1 & "];" - Next - - Local $tTitle = DllStructCreate("wchar Title[" & StringLen($sTitle) + 1 & "]") - Local $tInitialDir = DllStructCreate("wchar InitDir[" & StringLen($sInitalDir) + 1 & "]") - Local $tFilter = DllStructCreate($tagFilter & "wchar") - Local $tPath = DllStructCreate("wchar Path[" & $iPathLen & "]") - Local $tExtn = DllStructCreate("wchar Extension[" & StringLen($sDefaultExt) + 1 & "]") - For $i = 1 To $asFilter[0] - DllStructSetData($tFilter, $i, $asFilter[$i]) - Next - - ; Set Data of API structures - DllStructSetData($tTitle, "Title", $sTitle) - DllStructSetData($tInitialDir, "InitDir", $sInitalDir) - DllStructSetData($tPath, "Path", $sDefaultFile) - DllStructSetData($tExtn, "Extension", $sDefaultExt) - - DllStructSetData($tOFN, "StructSize", DllStructGetSize($tOFN)) - DllStructSetData($tOFN, "hwndOwner", $hWndOwner) - DllStructSetData($tOFN, "lpstrFilter", DllStructGetPtr($tFilter)) - DllStructSetData($tOFN, "nFilterIndex", $iFilterIndex) - DllStructSetData($tOFN, "lpstrFile", DllStructGetPtr($tPath)) - DllStructSetData($tOFN, "nMaxFile", $iPathLen) - DllStructSetData($tOFN, "lpstrInitialDir", DllStructGetPtr($tInitialDir)) - DllStructSetData($tOFN, "lpstrTitle", DllStructGetPtr($tTitle)) - DllStructSetData($tOFN, "Flags", $iFlag) - DllStructSetData($tOFN, "lpstrDefExt", DllStructGetPtr($tExtn)) - DllStructSetData($tOFN, "FlagsEx", $iFlagsEx) - Local $aRes = DllCall("comdlg32.dll", "bool", "GetSaveFileNameW", "struct*", $tOFN) - If @error Or Not $aRes[0] Then Return SetError(@error + 10, @extended, $aFiles) - - Return __WinAPI_ParseFileDialogPath(DllStructGetData($tPath, "Path")) -EndFunc ;==>_WinAPI_GetSaveFileName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetStockObject($iObject) - Local $aResult = DllCall("gdi32.dll", "handle", "GetStockObject", "int", $iObject) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetStockObject - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetStdHandle($iStdHandle) - If $iStdHandle < 0 Or $iStdHandle > 2 Then Return SetError(2, 0, -1) - Local Const $aHandle[3] = [-10, -11, -12] - - Local $aResult = DllCall("kernel32.dll", "handle", "GetStdHandle", "dword", $aHandle[$iStdHandle]) - If @error Then Return SetError(@error, @extended, -1) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetStdHandle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetSysColor($iIndex) - Local $aResult = DllCall("user32.dll", "INT", "GetSysColor", "int", $iIndex) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetSysColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetSysColorBrush($iIndex) - Local $aResult = DllCall("user32.dll", "handle", "GetSysColorBrush", "int", $iIndex) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetSysColorBrush - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetSystemMetrics($iIndex) - Local $aResult = DllCall("user32.dll", "int", "GetSystemMetrics", "int", $iIndex) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetSystemMetrics - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetTextExtentPoint32($hDC, $sText) - Local $tSize = DllStructCreate($tagSIZE) - Local $iSize = StringLen($sText) - Local $aRet = DllCall("gdi32.dll", "bool", "GetTextExtentPoint32W", "handle", $hDC, "wstr", $sText, "int", $iSize, "struct*", $tSize) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tSize -EndFunc ;==>_WinAPI_GetTextExtentPoint32 - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetTextMetrics($hDC) - Local $tTEXTMETRIC = DllStructCreate($tagTEXTMETRIC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GetTextMetricsW', 'handle', $hDC, 'struct*', $tTEXTMETRIC) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tTEXTMETRIC -EndFunc ;==>_WinAPI_GetTextMetrics - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetWindow($hWnd, $iCmd) - Local $aResult = DllCall("user32.dll", "hwnd", "GetWindow", "hwnd", $hWnd, "uint", $iCmd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetWindowDC($hWnd) - Local $aResult = DllCall("user32.dll", "handle", "GetWindowDC", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetWindowDC - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetWindowHeight($hWnd) - Local $tRECT = _WinAPI_GetWindowRect($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return DllStructGetData($tRECT, "Bottom") - DllStructGetData($tRECT, "Top") -EndFunc ;==>_WinAPI_GetWindowHeight - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetWindowLong($hWnd, $iIndex) - Local $sFuncName = "GetWindowLongW" - If @AutoItX64 Then $sFuncName = "GetWindowLongPtrW" - Local $aResult = DllCall("user32.dll", "long_ptr", $sFuncName, "hwnd", $hWnd, "int", $iIndex) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetWindowLong - -; #FUNCTION# ==================================================================================================================== -; Author ........: PsaltyDS, with help from Siao and SmOke_N, at www.autoitscript.com/forum -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetWindowPlacement($hWnd) - ; Create struct to receive data - Local $tWindowPlacement = DllStructCreate($tagWINDOWPLACEMENT) - DllStructSetData($tWindowPlacement, "length", DllStructGetSize($tWindowPlacement)) - Local $aRet = DllCall("user32.dll", "bool", "GetWindowPlacement", "hwnd", $hWnd, "struct*", $tWindowPlacement) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tWindowPlacement -EndFunc ;==>_WinAPI_GetWindowPlacement - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetWindowRect($hWnd) - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall("user32.dll", "bool", "GetWindowRect", "hwnd", $hWnd, "struct*", $tRECT) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tRECT -EndFunc ;==>_WinAPI_GetWindowRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetWindowRgn($hWnd, $hRgn) - Local $aResult = DllCall("user32.dll", "int", "GetWindowRgn", "hwnd", $hWnd, "handle", $hRgn) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GetWindowRgn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetWindowText($hWnd) - Local $aResult = DllCall("user32.dll", "int", "GetWindowTextW", "hwnd", $hWnd, "wstr", "", "int", 4096) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, "") - - Return SetExtended($aResult[0], $aResult[2]) -EndFunc ;==>_WinAPI_GetWindowText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetWindowThreadProcessId($hWnd, ByRef $iPID) - Local $aResult = DllCall("user32.dll", "dword", "GetWindowThreadProcessId", "hwnd", $hWnd, "dword*", 0) - If @error Then Return SetError(@error, @extended, 0) - - $iPID = $aResult[2] - Return $aResult[0] -EndFunc ;==>_WinAPI_GetWindowThreadProcessId - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetWindowWidth($hWnd) - Local $tRECT = _WinAPI_GetWindowRect($hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return DllStructGetData($tRECT, "Right") - DllStructGetData($tRECT, "Left") -EndFunc ;==>_WinAPI_GetWindowWidth - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetXYFromPoint(ByRef $tPoint, ByRef $iX, ByRef $iY) - $iX = DllStructGetData($tPoint, "X") - $iY = DllStructGetData($tPoint, "Y") -EndFunc ;==>_WinAPI_GetXYFromPoint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GlobalMemoryStatus() - Local $tMem = DllStructCreate($tagMEMORYSTATUSEX) - DllStructSetData($tMem, 1, DllStructGetSize($tMem)) - Local $aRet = DllCall("kernel32.dll", "bool", "GlobalMemoryStatusEx", "struct*", $tMem) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aMem[7] - $aMem[0] = DllStructGetData($tMem, 2) - $aMem[1] = DllStructGetData($tMem, 3) - $aMem[2] = DllStructGetData($tMem, 4) - $aMem[3] = DllStructGetData($tMem, 5) - $aMem[4] = DllStructGetData($tMem, 6) - $aMem[5] = DllStructGetData($tMem, 7) - $aMem[6] = DllStructGetData($tMem, 8) - Return $aMem -EndFunc ;==>_WinAPI_GlobalMemoryStatus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM, guinness -; =============================================================================================================================== -Func _WinAPI_GUIDFromString($sGUID) - Local $tGUID = DllStructCreate($tagGUID) - _WinAPI_GUIDFromStringEx($sGUID, $tGUID) - If @error Then Return SetError(@error + 10, @extended, 0) - ; If Not _WinAPI_GUIDFromStringEx($sGUID, $tGUID) Then Return SetError(@error + 10, @extended, 0) - - Return $tGUID -EndFunc ;==>_WinAPI_GUIDFromString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GUIDFromStringEx($sGUID, $tGUID) - Local $aResult = DllCall("ole32.dll", "long", "CLSIDFromString", "wstr", $sGUID, "struct*", $tGUID) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_GUIDFromStringEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_HiWord($iLong) - Return BitShift($iLong, 16) -EndFunc ;==>_WinAPI_HiWord - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_InProcess($hWnd, ByRef $hLastWnd) - If $hWnd = $hLastWnd Then Return True - For $iI = $__g_aInProcess_WinAPI[0][0] To 1 Step -1 - If $hWnd = $__g_aInProcess_WinAPI[$iI][0] Then - If $__g_aInProcess_WinAPI[$iI][1] Then - $hLastWnd = $hWnd - Return True - Else - Return False - EndIf - EndIf - Next - Local $iPID - _WinAPI_GetWindowThreadProcessId($hWnd, $iPID) - Local $iCount = $__g_aInProcess_WinAPI[0][0] + 1 - If $iCount >= 64 Then $iCount = 1 - $__g_aInProcess_WinAPI[0][0] = $iCount - $__g_aInProcess_WinAPI[$iCount][0] = $hWnd - $__g_aInProcess_WinAPI[$iCount][1] = ($iPID = @AutoItPID) - Return $__g_aInProcess_WinAPI[$iCount][1] -EndFunc ;==>_WinAPI_InProcess - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_IntToFloat($iInt) - Local $tInt = DllStructCreate("int") - Local $tFloat = DllStructCreate("float", DllStructGetPtr($tInt)) - DllStructSetData($tInt, 1, $iInt) - - Return DllStructGetData($tFloat, 1) -EndFunc ;==>_WinAPI_IntToFloat - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_IsClassName($hWnd, $sClassName) - Local $sSeparator = Opt("GUIDataSeparatorChar") - Local $aClassName = StringSplit($sClassName, $sSeparator) - If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) - Local $sClassCheck = _WinAPI_GetClassName($hWnd) ; ClassName from Handle - ; check array of ClassNames against ClassName Returned - For $x = 1 To UBound($aClassName) - 1 - If StringUpper(StringMid($sClassCheck, 1, StringLen($aClassName[$x]))) = StringUpper($aClassName[$x]) Then Return True - Next - Return False -EndFunc ;==>_WinAPI_IsClassName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_IsWindow($hWnd) - Local $aResult = DllCall("user32.dll", "bool", "IsWindow", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_IsWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_IsWindowVisible($hWnd) - Local $aResult = DllCall("user32.dll", "bool", "IsWindowVisible", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_IsWindowVisible - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_InvalidateRect($hWnd, $tRECT = 0, $bErase = True) - Local $aResult = DllCall("user32.dll", "bool", "InvalidateRect", "hwnd", $hWnd, "struct*", $tRECT, "bool", $bErase) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_InvalidateRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_LineTo($hDC, $iX, $iY) - Local $aResult = DllCall("gdi32.dll", "bool", "LineTo", "handle", $hDC, "int", $iX, "int", $iY) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_LineTo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_LoadBitmap($hInstance, $sBitmap) - Local $sBitmapType = "int" - If IsString($sBitmap) Then $sBitmapType = "wstr" - Local $aResult = DllCall("user32.dll", "handle", "LoadBitmapW", "handle", $hInstance, $sBitmapType, $sBitmap) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_LoadBitmap - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_LoadImage($hInstance, $sImage, $iType, $iXDesired, $iYDesired, $iLoad) - Local $aResult, $sImageType = "int" - If IsString($sImage) Then $sImageType = "wstr" - $aResult = DllCall("user32.dll", "handle", "LoadImageW", "handle", $hInstance, $sImageType, $sImage, "uint", $iType, _ - "int", $iXDesired, "int", $iYDesired, "uint", $iLoad) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_LoadImage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_LoadLibrary($sFileName) - Local $aResult = DllCall("kernel32.dll", "handle", "LoadLibraryW", "wstr", $sFileName) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_LoadLibrary - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_LoadLibraryEx($sFileName, $iFlags = 0) - Local $aResult = DllCall("kernel32.dll", "handle", "LoadLibraryExW", "wstr", $sFileName, "ptr", 0, "dword", $iFlags) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_LoadLibraryEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_LoadShell32Icon($iIconID) - Local $tIcons = DllStructCreate("ptr Data") - Local $iIcons = _WinAPI_ExtractIconEx("shell32.dll", $iIconID, 0, $tIcons, 1) - If @error Then Return SetError(@error, @extended, 0) - If $iIcons <= 0 Then Return SetError(10, 0, 0) - - Return DllStructGetData($tIcons, "Data") -EndFunc ;==>_WinAPI_LoadShell32Icon - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost used correct syntax, Original concept Raik -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_LoadString($hInstance, $iStringID) - Local $aResult = DllCall("user32.dll", "int", "LoadStringW", "handle", $hInstance, "uint", $iStringID, "wstr", "", "int", 4096) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, "") - - Return SetExtended($aResult[0], $aResult[3]) -EndFunc ;==>_WinAPI_LoadString - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_LocalFree($hMemory) - Local $aResult = DllCall("kernel32.dll", "handle", "LocalFree", "handle", $hMemory) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_LocalFree - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_LoWord($iLong) - Return BitAND($iLong, 0xFFFF) -EndFunc ;==>_WinAPI_LoWord - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MAKELANGID($iLngIDPrimary, $iLngIDSub) - Return BitOR(BitShift($iLngIDSub, -10), $iLngIDPrimary) -EndFunc ;==>_WinAPI_MAKELANGID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MAKELCID($iLngID, $iSortID) - Return BitOR(BitShift($iSortID, -16), $iLngID) -EndFunc ;==>_WinAPI_MAKELCID - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MakeLong($iLo, $iHi) - Return BitOR(BitShift($iHi, -16), BitAND($iLo, 0xFFFF)) -EndFunc ;==>_WinAPI_MakeLong - -; #FUNCTION# ==================================================================================================================== -; Author ........: jpm -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MakeQWord($iLoDWORD, $iHiDWORD) - Local $tInt64 = DllStructCreate("uint64") - Local $tDwords = DllStructCreate("dword;dword", DllStructGetPtr($tInt64)) - DllStructSetData($tDwords, 1, $iLoDWORD) - DllStructSetData($tDwords, 2, $iHiDWORD) - - Return DllStructGetData($tInt64, 1) -EndFunc ;==>_WinAPI_MakeQWord - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MessageBeep($iType = 1) - Local $iSound - Switch $iType - Case 1 - $iSound = 0 - Case 2 - $iSound = 16 - Case 3 - $iSound = 32 - Case 4 - $iSound = 48 - Case 5 - $iSound = 64 - Case Else - $iSound = -1 - EndSwitch - - Local $aResult = DllCall("user32.dll", "bool", "MessageBeep", "uint", $iSound) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_MessageBeep - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MsgBox($iFlags, $sTitle, $sText) - BlockInput(0) - MsgBox($iFlags, $sTitle, $sText & " ") -EndFunc ;==>_WinAPI_MsgBox - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_Mouse_Event($iFlags, $iX = 0, $iY = 0, $iData = 0, $iExtraInfo = 0) - DllCall("user32.dll", "none", "mouse_event", "dword", $iFlags, "dword", $iX, "dword", $iY, "dword", $iData, _ - "ulong_ptr", $iExtraInfo) - If @error Then Return SetError(@error, @extended) -EndFunc ;==>_WinAPI_Mouse_Event - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MoveTo($hDC, $iX, $iY) - Local $aResult = DllCall("gdi32.dll", "bool", "MoveToEx", "handle", $hDC, "int", $iX, "int", $iY, "ptr", 0) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_MoveTo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MoveWindow($hWnd, $iX, $iY, $iWidth, $iHeight, $bRepaint = True) - Local $aResult = DllCall("user32.dll", "bool", "MoveWindow", "hwnd", $hWnd, "int", $iX, "int", $iY, "int", $iWidth, _ - "int", $iHeight, "bool", $bRepaint) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_MoveWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MulDiv($iNumber, $iNumerator, $iDenominator) - Local $aResult = DllCall("kernel32.dll", "int", "MulDiv", "int", $iNumber, "int", $iNumerator, "int", $iDenominator) - If @error Then Return SetError(@error, @extended, -1) - - Return $aResult[0] -EndFunc ;==>_WinAPI_MulDiv - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM, Alexander Samuelsson (AdmiralAlkex) -; =============================================================================================================================== -Func _WinAPI_MultiByteToWideChar($vText, $iCodePage = 0, $iFlags = 0, $bRetString = False) - Local $sTextType = "str" - If Not IsString($vText) Then $sTextType = "struct*" - - ; compute size for the output WideChar - Local $aResult = DllCall("kernel32.dll", "int", "MultiByteToWideChar", "uint", $iCodePage, "dword", $iFlags, _ - $sTextType, $vText, "int", -1, "ptr", 0, "int", 0) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, 0) - - ; allocate space for output WideChar - Local $iOut = $aResult[0] - Local $tOut = DllStructCreate("wchar[" & $iOut & "]") - - $aResult = DllCall("kernel32.dll", "int", "MultiByteToWideChar", "uint", $iCodePage, "dword", $iFlags, $sTextType, $vText, _ - "int", -1, "struct*", $tOut, "int", $iOut) - If @error Or Not $aResult[0] Then Return SetError(@error + 20, @extended, 0) - - If $bRetString Then Return DllStructGetData($tOut, 1) - Return $tOut -EndFunc ;==>_WinAPI_MultiByteToWideChar - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MultiByteToWideCharEx($sText, $pText, $iCodePage = 0, $iFlags = 0) - Local $aResult = DllCall("kernel32.dll", "int", "MultiByteToWideChar", "uint", $iCodePage, "dword", $iFlags, "STR", $sText, _ - "int", -1, "struct*", $pText, "int", (StringLen($sText) + 1) * 2) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_MultiByteToWideCharEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_OpenProcess($iAccess, $bInherit, $iPID, $bDebugPriv = False) - ; Attempt to open process with standard security priviliges - Local $aResult = DllCall("kernel32.dll", "handle", "OpenProcess", "dword", $iAccess, "bool", $bInherit, "dword", $iPID) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] Then Return $aResult[0] - If Not $bDebugPriv Then Return SetError(100, 0, 0) - - ; Enable debug privileged mode - Local $hToken = _Security__OpenThreadTokenEx(BitOR($TOKEN_ADJUST_PRIVILEGES, $TOKEN_QUERY)) - If @error Then Return SetError(@error + 10, @extended, 0) - _Security__SetPrivilege($hToken, "SeDebugPrivilege", True) - Local $iError = @error - Local $iExtended = @extended - Local $iRet = 0 - If Not @error Then - ; Attempt to open process with debug privileges - $aResult = DllCall("kernel32.dll", "handle", "OpenProcess", "dword", $iAccess, "bool", $bInherit, "dword", $iPID) - $iError = @error - $iExtended = @extended - If $aResult[0] Then $iRet = $aResult[0] - - ; Disable debug privileged mode - _Security__SetPrivilege($hToken, "SeDebugPrivilege", False) - If @error Then - $iError = @error + 20 - $iExtended = @extended - EndIf - Else - $iError = @error + 30 ; SeDebugPrivilege=True error - EndIf - _WinAPI_CloseHandle($hToken) - - Return SetError($iError, $iExtended, $iRet) -EndFunc ;==>_WinAPI_OpenProcess - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __WinAPI_ParseFileDialogPath -; Description ...: Returns array from the path string -; Syntax.........: __WinAPI_ParseFileDialogPath ( $sPath ) -; Parameters ....: $sPath - string conataining the path and file(s) -; Return values .: Success - array containing path and file(s) -; Author ........: Gary Frost -; Modified.......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __WinAPI_ParseFileDialogPath($sPath) - Local $aFiles[3] - $aFiles[0] = 2 - Local $sTemp = StringMid($sPath, 1, StringInStr($sPath, "\", 0, -1) - 1) - $aFiles[1] = $sTemp - $aFiles[2] = StringMid($sPath, StringInStr($sPath, "\", 0, -1) + 1) - Return $aFiles -EndFunc ;==>__WinAPI_ParseFileDialogPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Daniel Miranda (danielkza) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_PathFindOnPath(Const $sFilePath, $aExtraPaths = "", Const $sPathDelimiter = @LF) - Local $iExtraCount = 0 - If IsString($aExtraPaths) Then - If StringLen($aExtraPaths) Then - $aExtraPaths = StringSplit($aExtraPaths, $sPathDelimiter, $STR_ENTIRESPLIT + $STR_NOCOUNT) - $iExtraCount = UBound($aExtraPaths, $UBOUND_ROWS) - EndIf - ElseIf IsArray($aExtraPaths) Then - $iExtraCount = UBound($aExtraPaths) - EndIf - - Local $tPaths, $tPathPtrs - If $iExtraCount Then - Local $tagStruct = "" - For $path In $aExtraPaths - $tagStruct &= "wchar[" & StringLen($path) + 1 & "];" - Next - - $tPaths = DllStructCreate($tagStruct) - $tPathPtrs = DllStructCreate("ptr[" & $iExtraCount + 1 & "]") - - For $i = 1 To $iExtraCount - DllStructSetData($tPaths, $i, $aExtraPaths[$i - 1]) - DllStructSetData($tPathPtrs, 1, DllStructGetPtr($tPaths, $i), $i) - Next - DllStructSetData($tPathPtrs, 1, Ptr(0), $iExtraCount + 1) - EndIf - - Local $aResult = DllCall("shlwapi.dll", "bool", "PathFindOnPathW", "wstr", $sFilePath, "struct*", $tPathPtrs) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, $sFilePath) - - Return $aResult[1] -EndFunc ;==>_WinAPI_PathFindOnPath - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_PointFromRect(ByRef $tRECT, $bCenter = True) - Local $iX1 = DllStructGetData($tRECT, "Left") - Local $iY1 = DllStructGetData($tRECT, "Top") - Local $iX2 = DllStructGetData($tRECT, "Right") - Local $iY2 = DllStructGetData($tRECT, "Bottom") - If $bCenter Then - $iX1 = $iX1 + (($iX2 - $iX1) / 2) - $iY1 = $iY1 + (($iY2 - $iY1) / 2) - EndIf - Local $tPoint = DllStructCreate($tagPOINT) - DllStructSetData($tPoint, "X", $iX1) - DllStructSetData($tPoint, "Y", $iY1) - Return $tPoint -EndFunc ;==>_WinAPI_PointFromRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PostMessage($hWnd, $iMsg, $wParam, $lParam) - Local $aResult = DllCall("user32.dll", "bool", "PostMessage", "hwnd", $hWnd, "uint", $iMsg, "wparam", $wParam, _ - "lparam", $lParam) - If @error Then Return SetError(@error, @extended, False) - Return $aResult[0] -EndFunc ;==>_WinAPI_PostMessage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_PrimaryLangId($iLngID) - Return BitAND($iLngID, 0x3FF) -EndFunc ;==>_WinAPI_PrimaryLangId - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: trancexx -; =============================================================================================================================== -Func _WinAPI_PtInRect(ByRef $tRECT, ByRef $tPoint) - Local $aResult = DllCall("user32.dll", "bool", "PtInRect", "struct*", $tRECT, "struct", $tPoint) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_PtInRect - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ReadFile($hFile, $pBuffer, $iToRead, ByRef $iRead, $tOverlapped = 0) - Local $aResult = DllCall("kernel32.dll", "bool", "ReadFile", "handle", $hFile, "struct*", $pBuffer, "dword", $iToRead, _ - "dword*", 0, "struct*", $tOverlapped) - If @error Then Return SetError(@error, @extended, False) - - $iRead = $aResult[4] - Return $aResult[0] -EndFunc ;==>_WinAPI_ReadFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ReadProcessMemory($hProcess, $pBaseAddress, $pBuffer, $iSize, ByRef $iRead) - Local $aResult = DllCall("kernel32.dll", "bool", "ReadProcessMemory", "handle", $hProcess, _ - "ptr", $pBaseAddress, "struct*", $pBuffer, "ulong_ptr", $iSize, "ulong_ptr*", 0) - If @error Then Return SetError(@error, @extended, False) - - $iRead = $aResult[5] - Return $aResult[0] -EndFunc ;==>_WinAPI_ReadProcessMemory - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_RectIsEmpty(ByRef $tRECT) - Return (DllStructGetData($tRECT, "Left") = 0) And (DllStructGetData($tRECT, "Top") = 0) And _ - (DllStructGetData($tRECT, "Right") = 0) And (DllStructGetData($tRECT, "Bottom") = 0) -EndFunc ;==>_WinAPI_RectIsEmpty - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_RedrawWindow($hWnd, $tRECT = 0, $hRegion = 0, $iFlags = 5) - Local $aResult = DllCall("user32.dll", "bool", "RedrawWindow", "hwnd", $hWnd, "struct*", $tRECT, "handle", $hRegion, _ - "uint", $iFlags) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_RedrawWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_RegisterWindowMessage($sMessage) - Local $aResult = DllCall("user32.dll", "uint", "RegisterWindowMessageW", "wstr", $sMessage) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_RegisterWindowMessage - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_ReleaseCapture() - Local $aResult = DllCall("user32.dll", "bool", "ReleaseCapture") - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_ReleaseCapture - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_ReleaseDC($hWnd, $hDC) - Local $aResult = DllCall("user32.dll", "int", "ReleaseDC", "hwnd", $hWnd, "handle", $hDC) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_ReleaseDC - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_ScreenToClient($hWnd, ByRef $tPoint) - Local $aResult = DllCall("user32.dll", "bool", "ScreenToClient", "hwnd", $hWnd, "struct*", $tPoint) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_ScreenToClient - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SelectObject($hDC, $hGDIObj) - Local $aResult = DllCall("gdi32.dll", "handle", "SelectObject", "handle", $hDC, "handle", $hGDIObj) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SelectObject - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetBkColor($hDC, $iColor) - Local $aResult = DllCall("gdi32.dll", "INT", "SetBkColor", "handle", $hDC, "INT", $iColor) - If @error Then Return SetError(@error, @extended, -1) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetBkColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetBkMode($hDC, $iBkMode) - Local $aResult = DllCall("gdi32.dll", "int", "SetBkMode", "handle", $hDC, "int", $iBkMode) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetBkMode - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetCapture($hWnd) - Local $aResult = DllCall("user32.dll", "hwnd", "SetCapture", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetCapture - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetCursor($hCursor) - Local $aResult = DllCall("user32.dll", "handle", "SetCursor", "handle", $hCursor) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetCursor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetDefaultPrinter($sPrinter) - Local $aResult = DllCall("winspool.drv", "bool", "SetDefaultPrinterW", "wstr", $sPrinter) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetDefaultPrinter - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetDIBits($hDC, $hBitmap, $iStartScan, $iScanLines, $pBits, $tBMI, $iColorUse = 0) - Local $aResult = DllCall("gdi32.dll", "int", "SetDIBits", "handle", $hDC, "handle", $hBitmap, "uint", $iStartScan, _ - "uint", $iScanLines, "struct*", $pBits, "struct*", $tBMI, "INT", $iColorUse) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetDIBits - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetEndOfFile($hFile) - Local $aResult = DllCall("kernel32.dll", "bool", "SetEndOfFile", "handle", $hFile) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetEndOfFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetEvent($hEvent) - Local $aResult = DllCall("kernel32.dll", "bool", "SetEvent", "handle", $hEvent) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetEvent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetFilePointer($hFile, $iPos, $iMethod = 0) - Local $aResult = DllCall("kernel32.dll", "INT", "SetFilePointer", "handle", $hFile, "long", $iPos, "ptr", 0, "long", $iMethod) - If @error Then Return SetError(@error, @extended, -1) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetFilePointer - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetFocus($hWnd) - Local $aResult = DllCall("user32.dll", "hwnd", "SetFocus", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetFocus - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetFont($hWnd, $hFont, $bRedraw = True) - _SendMessage($hWnd, $__WINAPICONSTANT_WM_SETFONT, $hFont, $bRedraw, 0, "hwnd") -EndFunc ;==>_WinAPI_SetFont - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetHandleInformation($hObject, $iMask, $iFlags) - Local $aResult = DllCall("kernel32.dll", "bool", "SetHandleInformation", "handle", $hObject, "dword", $iMask, "dword", $iFlags) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetHandleInformation - -; #FUNCTION# ==================================================================================================================== -; Author ........: Prog@ndy -; Modified.......: PsaltyDS -; =============================================================================================================================== -Func _WinAPI_SetLayeredWindowAttributes($hWnd, $iTransColor, $iTransGUI = 255, $iFlags = 0x03, $bColorRef = False) - If $iFlags = Default Or $iFlags = "" Or $iFlags < 0 Then $iFlags = 0x03 - If Not $bColorRef Then - $iTransColor = Int(BinaryMid($iTransColor, 3, 1) & BinaryMid($iTransColor, 2, 1) & BinaryMid($iTransColor, 1, 1)) - EndIf - Local $aResult = DllCall("user32.dll", "bool", "SetLayeredWindowAttributes", "hwnd", $hWnd, "INT", $iTransColor, _ - "byte", $iTransGUI, "dword", $iFlags) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetLayeredWindowAttributes - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetParent($hWndChild, $hWndParent) - Local $aResult = DllCall("user32.dll", "hwnd", "SetParent", "hwnd", $hWndChild, "hwnd", $hWndParent) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetParent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetProcessAffinityMask($hProcess, $iMask) - Local $aResult = DllCall("kernel32.dll", "bool", "SetProcessAffinityMask", "handle", $hProcess, "ulong_ptr", $iMask) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetProcessAffinityMask - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetSysColors($vElements, $vColors) - Local $bIsEArray = IsArray($vElements), $bIsCArray = IsArray($vColors) - Local $iElementNum - - If Not $bIsCArray And Not $bIsEArray Then - $iElementNum = 1 - ElseIf $bIsCArray Or $bIsEArray Then - If Not $bIsCArray Or Not $bIsEArray Then Return SetError(-1, -1, False) - If UBound($vElements) <> UBound($vColors) Then Return SetError(-1, -1, False) - $iElementNum = UBound($vElements) - EndIf - - Local $tElements = DllStructCreate("int Element[" & $iElementNum & "]") - Local $tColors = DllStructCreate("INT NewColor[" & $iElementNum & "]") - - If Not $bIsEArray Then - DllStructSetData($tElements, "Element", $vElements, 1) - Else - For $x = 0 To $iElementNum - 1 - DllStructSetData($tElements, "Element", $vElements[$x], $x + 1) - Next - EndIf - - If Not $bIsCArray Then - DllStructSetData($tColors, "NewColor", $vColors, 1) - Else - For $x = 0 To $iElementNum - 1 - DllStructSetData($tColors, "NewColor", $vColors[$x], $x + 1) - Next - EndIf - Local $aResult = DllCall("user32.dll", "bool", "SetSysColors", "int", $iElementNum, "struct*", $tElements, "struct*", $tColors) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetSysColors - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetTextColor($hDC, $iColor) - Local $aResult = DllCall("gdi32.dll", "INT", "SetTextColor", "handle", $hDC, "INT", $iColor) - If @error Then Return SetError(@error, @extended, -1) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetTextColor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetWindowLong($hWnd, $iIndex, $iValue) - _WinAPI_SetLastError(0) ; as suggested in MSDN - Local $sFuncName = "SetWindowLongW" - If @AutoItX64 Then $sFuncName = "SetWindowLongPtrW" - Local $aResult = DllCall("user32.dll", "long_ptr", $sFuncName, "hwnd", $hWnd, "int", $iIndex, "long_ptr", $iValue) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetWindowLong - -; #FUNCTION# ==================================================================================================================== -; Author ........: PsaltyDS -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetWindowPlacement($hWnd, $tWindowPlacement) - Local $aResult = DllCall("user32.dll", "bool", "SetWindowPlacement", "hwnd", $hWnd, "struct*", $tWindowPlacement) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetWindowPlacement - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetWindowPos($hWnd, $hAfter, $iX, $iY, $iCX, $iCY, $iFlags) - Local $aResult = DllCall("user32.dll", "bool", "SetWindowPos", "hwnd", $hWnd, "hwnd", $hAfter, "int", $iX, "int", $iY, _ - "int", $iCX, "int", $iCY, "uint", $iFlags) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetWindowPos - -; #FUNCTION# ==================================================================================================================== -; Author ........: Zedna -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetWindowRgn($hWnd, $hRgn, $bRedraw = True) - Local $aResult = DllCall("user32.dll", "int", "SetWindowRgn", "hwnd", $hWnd, "handle", $hRgn, "bool", $bRedraw) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetWindowRgn - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetWindowsHookEx($iHook, $pProc, $hDll, $iThreadId = 0) - Local $aResult = DllCall("user32.dll", "handle", "SetWindowsHookEx", "int", $iHook, "ptr", $pProc, "handle", $hDll, _ - "dword", $iThreadId) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetWindowsHookEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetWindowText($hWnd, $sText) - Local $aResult = DllCall("user32.dll", "bool", "SetWindowTextW", "hwnd", $hWnd, "wstr", $sText) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SetWindowText - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_ShowCursor($bShow) - Local $aResult = DllCall("user32.dll", "int", "ShowCursor", "bool", $bShow) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_ShowCursor - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_ShowError($sText, $bExit = True) - _WinAPI_MsgBox($MB_SYSTEMMODAL, "Error", $sText) - If $bExit Then Exit -EndFunc ;==>_WinAPI_ShowError - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_ShowMsg($sText) - _WinAPI_MsgBox($MB_SYSTEMMODAL, "Information", $sText) -EndFunc ;==>_WinAPI_ShowMsg - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_ShowWindow($hWnd, $iCmdShow = 5) - Local $aResult = DllCall("user32.dll", "bool", "ShowWindow", "hwnd", $hWnd, "int", $iCmdShow) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_ShowWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_StringFromGUID($tGUID) - Local $aResult = DllCall("ole32.dll", "int", "StringFromGUID2", "struct*", $tGUID, "wstr", "", "int", 40) - If @error Or Not $aResult[0] Then Return SetError(@error, @extended, "") - - Return SetExtended($aResult[0], $aResult[2]) -EndFunc ;==>_WinAPI_StringFromGUID - -; #FUNCTION# ==================================================================================================================== -; Author ........: trancexx -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_StringLenA(Const ByRef $tString) - Local $aResult = DllCall("kernel32.dll", "int", "lstrlenA", "struct*", $tString) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_StringLenA - -; #FUNCTION# ==================================================================================================================== -; Author ........: trancexx -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_StringLenW(Const ByRef $tString) - Local $aResult = DllCall("kernel32.dll", "int", "lstrlenW", "struct*", $tString) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_StringLenW - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SubLangId($iLngID) - Return BitShift($iLngID, 10) -EndFunc ;==>_WinAPI_SubLangId - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SystemParametersInfo($iAction, $iParam = 0, $vParam = 0, $iWinIni = 0) - Local $aResult = DllCall("user32.dll", "bool", "SystemParametersInfoW", "uint", $iAction, "uint", $iParam, "struct*", $vParam, _ - "uint", $iWinIni) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_SystemParametersInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_TwipsPerPixelX() - Local $hDC, $iTwipsPerPixelX - $hDC = _WinAPI_GetDC(0) - $iTwipsPerPixelX = 1440 / _WinAPI_GetDeviceCaps($hDC, $__WINAPICONSTANT_LOGPIXELSX) - _WinAPI_ReleaseDC(0, $hDC) - Return $iTwipsPerPixelX -EndFunc ;==>_WinAPI_TwipsPerPixelX - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost (gafrost) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_TwipsPerPixelY() - Local $hDC, $iTwipsPerPixelY - $hDC = _WinAPI_GetDC(0) - $iTwipsPerPixelY = 1440 / _WinAPI_GetDeviceCaps($hDC, $__WINAPICONSTANT_LOGPIXELSY) - _WinAPI_ReleaseDC(0, $hDC) - Return $iTwipsPerPixelY -EndFunc ;==>_WinAPI_TwipsPerPixelY - -; #FUNCTION# ==================================================================================================================== -; Author ........: Gary Frost -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_UnhookWindowsHookEx($hHook) - Local $aResult = DllCall("user32.dll", "bool", "UnhookWindowsHookEx", "handle", $hHook) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_UnhookWindowsHookEx - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UpdateLayeredWindow($hWnd, $hDestDC, $tPTDest, $tSize, $hSrcDC, $tPTSrce, $iRGB, $tBlend, $iFlags) - Local $aResult = DllCall("user32.dll", "bool", "UpdateLayeredWindow", "hwnd", $hWnd, "handle", $hDestDC, "struct*", $tPTDest, _ - "struct*", $tSize, "handle", $hSrcDC, "struct*", $tPTSrce, "dword", $iRGB, "struct*", $tBlend, "dword", $iFlags) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_UpdateLayeredWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_UpdateWindow($hWnd) - Local $aResult = DllCall("user32.dll", "bool", "UpdateWindow", "hwnd", $hWnd) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_UpdateWindow - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_WaitForInputIdle($hProcess, $iTimeout = -1) - Local $aResult = DllCall("user32.dll", "dword", "WaitForInputIdle", "handle", $hProcess, "dword", $iTimeout) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_WaitForInputIdle - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_WaitForMultipleObjects($iCount, $paHandles, $bWaitAll = False, $iTimeout = -1) - Local $aResult = DllCall("kernel32.dll", "INT", "WaitForMultipleObjects", "dword", $iCount, "struct*", $paHandles, "bool", $bWaitAll, "dword", $iTimeout) - If @error Then Return SetError(@error, @extended, -1) - - Return $aResult[0] -EndFunc ;==>_WinAPI_WaitForMultipleObjects - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_WaitForSingleObject($hHandle, $iTimeout = -1) - Local $aResult = DllCall("kernel32.dll", "INT", "WaitForSingleObject", "handle", $hHandle, "dword", $iTimeout) - If @error Then Return SetError(@error, @extended, -1) - - Return $aResult[0] -EndFunc ;==>_WinAPI_WaitForSingleObject - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: JPM, Alexander Samuelsson (AdmiralAlkex) -; =============================================================================================================================== -Func _WinAPI_WideCharToMultiByte($vUnicode, $iCodePage = 0, $bRetString = True) - Local $sUnicodeType = "wstr" - If Not IsString($vUnicode) Then $sUnicodeType = "struct*" - Local $aResult = DllCall("kernel32.dll", "int", "WideCharToMultiByte", "uint", $iCodePage, "dword", 0, $sUnicodeType, $vUnicode, "int", -1, _ - "ptr", 0, "int", 0, "ptr", 0, "ptr", 0) - If @error Or Not $aResult[0] Then Return SetError(@error + 20, @extended, "") - - Local $tMultiByte = DllStructCreate("char[" & $aResult[0] & "]") - - $aResult = DllCall("kernel32.dll", "int", "WideCharToMultiByte", "uint", $iCodePage, "dword", 0, $sUnicodeType, $vUnicode, _ - "int", -1, "struct*", $tMultiByte, "int", $aResult[0], "ptr", 0, "ptr", 0) - If @error Or Not $aResult[0] Then Return SetError(@error + 10, @extended, "") - - If $bRetString Then Return DllStructGetData($tMultiByte, 1) - Return $tMultiByte -EndFunc ;==>_WinAPI_WideCharToMultiByte - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: Gary Frost, trancexx -; =============================================================================================================================== -Func _WinAPI_WindowFromPoint(ByRef $tPoint) - Local $aResult = DllCall("user32.dll", "hwnd", "WindowFromPoint", "struct", $tPoint) - If @error Then Return SetError(@error, @extended, 0) - - Return $aResult[0] -EndFunc ;==>_WinAPI_WindowFromPoint - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_WriteConsole($hConsole, $sText) - Local $aResult = DllCall("kernel32.dll", "bool", "WriteConsoleW", "handle", $hConsole, "wstr", $sText, _ - "dword", StringLen($sText), "dword*", 0, "ptr", 0) - If @error Then Return SetError(@error, @extended, False) - - Return $aResult[0] -EndFunc ;==>_WinAPI_WriteConsole - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_WriteFile($hFile, $pBuffer, $iToWrite, ByRef $iWritten, $tOverlapped = 0) - Local $aResult = DllCall("kernel32.dll", "bool", "WriteFile", "handle", $hFile, "struct*", $pBuffer, "dword", $iToWrite, _ - "dword*", 0, "struct*", $tOverlapped) - If @error Then Return SetError(@error, @extended, False) - - $iWritten = $aResult[4] - Return $aResult[0] -EndFunc ;==>_WinAPI_WriteFile - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_WriteProcessMemory($hProcess, $pBaseAddress, $pBuffer, $iSize, ByRef $iWritten, $sBuffer = "ptr") - Local $aResult = DllCall("kernel32.dll", "bool", "WriteProcessMemory", "handle", $hProcess, "ptr", $pBaseAddress, _ - $sBuffer, $pBuffer, "ulong_ptr", $iSize, "ulong_ptr*", 0) - If @error Then Return SetError(@error, @extended, False) - - $iWritten = $aResult[5] - Return $aResult[0] -EndFunc ;==>_WinAPI_WriteProcessMemory diff --git a/build/Include/WinAPICom.au3 b/build/Include/WinAPICom.au3 deleted file mode 100644 index 5bdf20cb2..000000000 --- a/build/Include/WinAPICom.au3 +++ /dev/null @@ -1,186 +0,0 @@ -#include-once - -#include "APIComConstants.au3" -#include "WinAPIInternals.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPICom.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $__tagWinAPICom_GUID = "struct;ulong Data1;ushort Data2;ushort Data3;byte Data4[8];endstruct" -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_CLSIDFromProgID -; _WinAPI_CoInitialize -; _WinAPI_CoTaskMemAlloc -; _WinAPI_CoTaskMemFree -; _WinAPI_CoTaskMemRealloc -; _WinAPI_CoUninitialize -; _WinAPI_CreateGUID -; _WinAPI_CreateStreamOnHGlobal -; _WinAPI_GetHGlobalFromStream -; _WinAPI_ProgIDFromCLSID -; _WinAPI_ReleaseStream -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CLSIDFromProgID($sProgID) - Local $tGUID = DllStructCreate($__tagWinAPICom_GUID) - Local $aReturn = DllCall('ole32.dll', 'long', 'CLSIDFromProgID', 'wstr', $sProgID, 'struct*', $tGUID) - If @error Then Return SetError(@error, @extended, '') - If $aReturn[0] Then Return SetError(10, $aReturn[0], '') - - $aReturn = DllCall('ole32.dll', 'int', 'StringFromGUID2', 'struct*', $tGUID, 'wstr', '', 'int', 39) - If @error Or Not $aReturn[0] Then Return SetError(@error + 20, @extended, '') - - Return $aReturn[2] -EndFunc ;==>_WinAPI_CLSIDFromProgID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CoInitialize($iFlags = 0) - Local $aReturn = DllCall('ole32.dll', 'long', 'CoInitializeEx', 'ptr', 0, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - If $aReturn[0] Then Return SetError(10, $aReturn[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_CoInitialize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CoTaskMemAlloc($iSize) - Local $aReturn = DllCall('ole32.dll', 'ptr', 'CoTaskMemAlloc', 'uint_ptr', $iSize) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aReturn[0] Then Return SetError(1000, 0, 0) - - Return $aReturn[0] -EndFunc ;==>_WinAPI_CoTaskMemAlloc - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CoTaskMemFree($pMemory) - DllCall('ole32.dll', 'none', 'CoTaskMemFree', 'ptr', $pMemory) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_CoTaskMemFree - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CoTaskMemRealloc($pMemory, $iSize) - Local $aReturn = DllCall('ole32.dll', 'ptr', 'CoTaskMemRealloc', 'ptr', $pMemory, 'ulong_ptr', $iSize) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aReturn[0] Then Return SetError(1000, 0, 0) - - Return $aReturn[0] -EndFunc ;==>_WinAPI_CoTaskMemRealloc - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CoUninitialize() - DllCall('ole32.dll', 'none', 'CoUninitialize') - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_CoUninitialize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateGUID() - Local $tGUID = DllStructCreate($__tagWinAPICom_GUID) - Local $aReturn = DllCall('ole32.dll', 'long', 'CoCreateGuid', 'struct*', $tGUID) - If @error Then Return SetError(@error, @extended, '') - If $aReturn[0] Then Return SetError(10, $aReturn[0], '') - - $aReturn = DllCall('ole32.dll', 'int', 'StringFromGUID2', 'struct*', $tGUID, 'wstr', '', 'int', 65536) - If @error Or Not $aReturn[0] Then Return SetError(@error + 20, @extended, '') - - Return $aReturn[2] -EndFunc ;==>_WinAPI_CreateGUID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateStreamOnHGlobal($hGlobal = 0, $bDeleteOnRelease = True) - Local $aReturn = DllCall('ole32.dll', 'long', 'CreateStreamOnHGlobal', 'handle', $hGlobal, 'bool', $bDeleteOnRelease, 'ptr*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aReturn[0] Then Return SetError(10, $aReturn[0], 0) - - Return $aReturn[3] -EndFunc ;==>_WinAPI_CreateStreamOnHGlobal - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetHGlobalFromStream($pStream) - Local $aReturn = DllCall('ole32.dll', 'uint', 'GetHGlobalFromStream', 'ptr', $pStream, 'ptr*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aReturn[0] Then Return SetError(10, $aReturn[0], 0) - - Return $aReturn[2] -EndFunc ;==>_WinAPI_GetHGlobalFromStream - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ProgIDFromCLSID($sCLSID) - Local $tGUID = DllStructCreate($__tagWinAPICom_GUID) - Local $aReturn = DllCall('ole32.dll', 'uint', 'CLSIDFromString', 'wstr', $sCLSID, 'struct*', $tGUID) - If @error Or $aReturn[0] Then Return SetError(@error + 20, @extended, '') - $aReturn = DllCall('ole32.dll', 'uint', 'ProgIDFromCLSID', 'struct*', $tGUID, 'ptr*', 0) - If @error Then Return SetError(@error, @extended, '') - If $aReturn[0] Then Return SetError(10, $aReturn[0], '') - - Local $sID = _WinAPI_GetString($aReturn[2]) - _WinAPI_CoTaskMemFree($aReturn[2]) - Return $sID -EndFunc ;==>_WinAPI_ProgIDFromCLSID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Progandy -; Modified.......: Yashied, jpm -; =============================================================================================================================== -Func _WinAPI_ReleaseStream($pStream) - Local $aReturn = DllCall('oleaut32.dll', 'long', 'DispCallFunc', 'ptr', $pStream, 'ulong_ptr', 8 * (1 + @AutoItX64), 'uint', 4, _ - 'ushort', 23, 'uint', 0, 'ptr', 0, 'ptr', 0, 'str', '') - If @error Then Return SetError(@error, @extended, 0) - If $aReturn[0] Then Return SetError(10, $aReturn[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_ReleaseStream - -#EndRegion Public Functions diff --git a/build/Include/WinAPIConstants.au3 b/build/Include/WinAPIConstants.au3 deleted file mode 100644 index 112cbc255..000000000 --- a/build/Include/WinAPIConstants.au3 +++ /dev/null @@ -1,294 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: API Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -Global Const $HGDI_ERROR = Ptr(-1) -Global Const $INVALID_HANDLE_VALUE = Ptr(-1) -Global Const $CLR_INVALID = -1 - -; Stock Object Constants -Global Const $NULL_BRUSH = 5 ; Null brush (equivalent to HOLLOW_BRUSH) -Global Const $NULL_PEN = 8 ; NULL pen. The null pen draws nothing -Global Const $BLACK_BRUSH = 4 ; Black brush -Global Const $DKGRAY_BRUSH = 3 ; Dark gray brush -Global Const $DC_BRUSH = 18 ; Solid color brush. The default color is white -Global Const $GRAY_BRUSH = 2 ; Gray brush -Global Const $HOLLOW_BRUSH = $NULL_BRUSH ; Hollow brush (equivalent to NULL_BRUSH) -Global Const $LTGRAY_BRUSH = 1 ; Light gray brush -Global Const $WHITE_BRUSH = 0 ; White brush -Global Const $BLACK_PEN = 7 ; Black pen -Global Const $DC_PEN = 19 ; Solid pen color. The default color is white -Global Const $WHITE_PEN = 6 ; White pen -Global Const $ANSI_FIXED_FONT = 11 ; Windows fixed-pitch (monospace) system font -Global Const $ANSI_VAR_FONT = 12 ; Windows variable-pitch (proportional space) system font -Global Const $DEVICE_DEFAULT_FONT = 14 ; Windows Device-dependent font -Global Const $DEFAULT_GUI_FONT = 17 ; Default font for user interface objects such as menus and dialog boxes -Global Const $OEM_FIXED_FONT = 10 ; Original equipment manufacturer (OEM) dependent fixed-pitch (monospace) font -Global Const $SYSTEM_FONT = 13 ; System font. By default, the system uses the system font to draw menus, dialog box controls, and text -Global Const $SYSTEM_FIXED_FONT = 16 ; Fixed-pitch (monospace) system font. This stock object is provided only for compatibility with 16-bit Windows versions earlier than 3.0 -Global Const $DEFAULT_PALETTE = 15 ; Default palette. This palette consists of the static colors in the system palette - -; conversion type -Global Const $MB_PRECOMPOSED = 0x01 -Global Const $MB_COMPOSITE = 0x02 -Global Const $MB_USEGLYPHCHARS = 0x04 - -; translucency flags -Global Const $ULW_ALPHA = 0x02 -Global Const $ULW_COLORKEY = 0x01 -Global Const $ULW_OPAQUE = 0x04 - -Global Const $ULW_EX_NORESIZE = 0x08 - -; Window Hooks -Global Const $WH_CALLWNDPROC = 4 -Global Const $WH_CALLWNDPROCRET = 12 -Global Const $WH_CBT = 5 -Global Const $WH_DEBUG = 9 -Global Const $WH_FOREGROUNDIDLE = 11 -Global Const $WH_GETMESSAGE = 3 -Global Const $WH_JOURNALPLAYBACK = 1 -Global Const $WH_JOURNALRECORD = 0 -Global Const $WH_KEYBOARD = 2 -Global Const $WH_KEYBOARD_LL = 13 -Global Const $WH_MOUSE = 7 -Global Const $WH_MOUSE_LL = 14 -Global Const $WH_MSGFILTER = -1 -Global Const $WH_SHELL = 10 -Global Const $WH_SYSMSGFILTER = 6 - -; Window Placement -Global Const $WPF_ASYNCWINDOWPLACEMENT = 0x04 -Global Const $WPF_RESTORETOMAXIMIZED = 0x02 -Global Const $WPF_SETMINPOSITION = 0x01 - -; flags for $tagKBDLLHOOKSTRUCT -Global Const $KF_EXTENDED = 0x0100 -Global Const $KF_ALTDOWN = 0x2000 -Global Const $KF_UP = 0x8000 -Global Const $LLKHF_EXTENDED = BitShift($KF_EXTENDED, 8) -Global Const $LLKHF_INJECTED = 0x10 -Global Const $LLKHF_ALTDOWN = BitShift($KF_ALTDOWN, 8) -Global Const $LLKHF_UP = BitShift($KF_UP, 8) - -; flags for $tagOPENFILENAME -Global Const $OFN_ALLOWMULTISELECT = 0x00000200 -Global Const $OFN_CREATEPROMPT = 0x00002000 -Global Const $OFN_DONTADDTORECENT = 0x02000000 -Global Const $OFN_ENABLEHOOK = 0x00000020 -Global Const $OFN_ENABLEINCLUDENOTIFY = 0x00400000 -Global Const $OFN_ENABLESIZING = 0x00800000 -Global Const $OFN_ENABLETEMPLATE = 0x00000040 -Global Const $OFN_ENABLETEMPLATEHANDLE = 0x00000080 -Global Const $OFN_EXPLORER = 0x00080000 -Global Const $OFN_EXTENSIONDIFFERENT = 0x00000400 -Global Const $OFN_FILEMUSTEXIST = 0x00001000 -Global Const $OFN_FORCESHOWHIDDEN = 0x10000000 -Global Const $OFN_HIDEREADONLY = 0x00000004 -Global Const $OFN_LONGNAMES = 0x00200000 -Global Const $OFN_NOCHANGEDIR = 0x00000008 -Global Const $OFN_NODEREFERENCELINKS = 0x00100000 -Global Const $OFN_NOLONGNAMES = 0x00040000 -Global Const $OFN_NONETWORKBUTTON = 0x00020000 -Global Const $OFN_NOREADONLYRETURN = 0x00008000 -Global Const $OFN_NOTESTFILECREATE = 0x00010000 -Global Const $OFN_NOVALIDATE = 0x00000100 -Global Const $OFN_OVERWRITEPROMPT = 0x00000002 -Global Const $OFN_PATHMUSTEXIST = 0x00000800 -Global Const $OFN_READONLY = 0x00000001 -Global Const $OFN_SHAREAWARE = 0x00004000 -Global Const $OFN_SHOWHELP = 0x00000010 -Global Const $OFN_EX_NOPLACESBAR = 0x00000001 - -; GetTextMetrics flags -Global Const $TMPF_FIXED_PITCH = 0x01 -Global Const $TMPF_VECTOR = 0x02 -Global Const $TMPF_TRUETYPE = 0x04 -Global Const $TMPF_DEVICE = 0x08 - -; DuplicateHandle options -Global Const $DUPLICATE_CLOSE_SOURCE = 0x00000001 -Global Const $DUPLICATE_SAME_ACCESS = 0x00000002 - -; DrawIconEx Constants -Global Const $DI_MASK = 0x0001 -Global Const $DI_IMAGE = 0x0002 -Global Const $DI_NORMAL = 0x0003 -Global Const $DI_COMPAT = 0x0004 -Global Const $DI_DEFAULTSIZE = 0x0008 -Global Const $DI_NOMIRROR = 0x0010 - -; EnumDisplayDevice Constants -Global Const $DISPLAY_DEVICE_ATTACHED_TO_DESKTOP = 0x00000001 -Global Const $DISPLAY_DEVICE_MULTI_DRIVER = 0x00000002 -Global Const $DISPLAY_DEVICE_PRIMARY_DEVICE = 0x00000004 -Global Const $DISPLAY_DEVICE_MIRRORING_DRIVER = 0x00000008 -Global Const $DISPLAY_DEVICE_VGA_COMPATIBLE = 0x00000010 -Global Const $DISPLAY_DEVICE_REMOVABLE = 0x00000020 -Global Const $DISPLAY_DEVICE_DISCONNECT = 0x02000000 -Global Const $DISPLAY_DEVICE_REMOTE = 0x04000000 -Global Const $DISPLAY_DEVICE_MODESPRUNED = 0x08000000 - -; FlashWindowEx Constants -Global Const $FLASHW_CAPTION = 0x00000001 -Global Const $FLASHW_TRAY = 0x00000002 -Global Const $FLASHW_TIMER = 0x00000004 -Global Const $FLASHW_TIMERNOFG = 0x0000000C - -; FormatMessage Constants -Global Const $FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100 -Global Const $FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200 -Global Const $FORMAT_MESSAGE_FROM_STRING = 0x00000400 -Global Const $FORMAT_MESSAGE_FROM_HMODULE = 0x00000800 -Global Const $FORMAT_MESSAGE_FROM_SYSTEM = 0x00001000 -Global Const $FORMAT_MESSAGE_ARGUMENT_ARRAY = 0x00002000 - -; GetWindows Constants -Global Const $GW_HWNDFIRST = 0 -Global Const $GW_HWNDLAST = 1 -Global Const $GW_HWNDNEXT = 2 -Global Const $GW_HWNDPREV = 3 -Global Const $GW_OWNER = 4 -Global Const $GW_CHILD = 5 -Global Const $GW_ENABLEDPOPUP = 6 - -; GetWindowLong Constants -Global Const $GWL_WNDPROC = 0xFFFFFFFC -Global Const $GWL_HINSTANCE = 0xFFFFFFFA -Global Const $GWL_HWNDPARENT = 0xFFFFFFF8 -Global Const $GWL_ID = 0xFFFFFFF4 -Global Const $GWL_STYLE = 0xFFFFFFF0 -Global Const $GWL_EXSTYLE = 0xFFFFFFEC -Global Const $GWL_USERDATA = 0xFFFFFFEB - -; Standard Icon Index Constants -Global Const $STD_CUT = 0 -Global Const $STD_COPY = 1 -Global Const $STD_PASTE = 2 -Global Const $STD_UNDO = 3 -Global Const $STD_REDOW = 4 -Global Const $STD_DELETE = 5 -Global Const $STD_FILENEW = 6 -Global Const $STD_FILEOPEN = 7 -Global Const $STD_FILESAVE = 8 -Global Const $STD_PRINTPRE = 9 -Global Const $STD_PROPERTIES = 10 -Global Const $STD_HELP = 11 -Global Const $STD_FIND = 12 -Global Const $STD_REPLACE = 13 -Global Const $STD_PRINT = 14 - -; Image Type Constants -Global Const $IMAGE_BITMAP = 0 -Global Const $IMAGE_ICON = 1 -Global Const $IMAGE_CURSOR = 2 -Global Const $IMAGE_ENHMETAFILE = 3 - -; Keyboard Constants -; Changes how keys are processed -Global Const $KB_SENDSPECIAL = 0 ; Special characters indicate key presses (default) -Global Const $KB_SENDRAW = 1 ; Keys are sent raw - -; Sets the state of the Caps Lock key -Global Const $KB_CAPSOFF = 0 ; Caps Lock is off -Global Const $KB_CAPSON = 1 ; Caps Lock is on - -; LoadLibraryEx Constants -Global Const $DONT_RESOLVE_DLL_REFERENCES = 0x01 -Global Const $LOAD_LIBRARY_AS_DATAFILE = 0x02 -Global Const $LOAD_WITH_ALTERED_SEARCH_PATH = 0x08 -Global Const $LOAD_IGNORE_CODE_AUTHZ_LEVEL = 0x00000010 -Global Const $LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = 0x00000040 -Global Const $LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020 -Global Const $LOAD_LIBRARY_SEARCH_APPLICATION_DIR = 0x00000200 -Global Const $LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x00001000 -Global Const $LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = 0x00000100 -Global Const $LOAD_LIBRARY_SEARCH_SYSTEM32 = 0x00000800 -Global Const $LOAD_LIBRARY_SEARCH_USER_DIRS = 0x00000400 - -; Common HRESULT errors -Global Const $S_OK = 0x00000000 -Global Const $E_ABORT = 0x80004004 -Global Const $E_ACCESSDENIED = 0x80070005 -Global Const $E_FAIL = 0x80004005 -Global Const $E_HANDLE = 0x80070006 -Global Const $E_INVALIDARG = 0x80070057 -Global Const $E_NOINTERFACE = 0x80004002 -Global Const $E_NOTIMPL = 0x80004001 -Global Const $E_OUTOFMEMORY = 0x8007000E -Global Const $E_POINTER = 0x80004003 -Global Const $E_UNEXPECTED = 0x8000FFFF - -; DEVMODE structure -; in APIGdiConstants.au3 - -; _WinAPI_LoadImage(), _WinAPI_CopyImage() -Global Const $LR_DEFAULTCOLOR = 0x0000 -Global Const $LR_MONOCHROME = 0x0001 -Global Const $LR_COLOR = 0x0002 -Global Const $LR_COPYRETURNORG = 0x0004 -Global Const $LR_COPYDELETEORG = 0x0008 -Global Const $LR_LOADFROMFILE = 0x0010 -Global Const $LR_LOADTRANSPARENT = 0x0020 -Global Const $LR_DEFAULTSIZE = 0x0040 -Global Const $LR_VGACOLOR = 0x0080 -Global Const $LR_LOADMAP3DCOLORS = 0x1000 -Global Const $LR_CREATEDIBSECTION = 0x2000 -Global Const $LR_COPYFROMRESOURCE = 0x4000 -Global Const $LR_SHARED = 0x8000 - -; _WinAPI_LoadImage() -Global Const $OBM_TRTYPE = 32732 -Global Const $OBM_LFARROWI = 32734 -Global Const $OBM_RGARROWI = 32735 -Global Const $OBM_DNARROWI = 32736 -Global Const $OBM_UPARROWI = 32737 -Global Const $OBM_COMBO = 32738 -Global Const $OBM_MNARROW = 32739 -Global Const $OBM_LFARROWD = 32740 -Global Const $OBM_RGARROWD = 32741 -Global Const $OBM_DNARROWD = 32742 -Global Const $OBM_UPARROWD = 32743 -Global Const $OBM_RESTORED = 32744 -Global Const $OBM_ZOOMD = 32745 -Global Const $OBM_REDUCED = 32746 -Global Const $OBM_RESTORE = 32747 -Global Const $OBM_ZOOM = 32748 -Global Const $OBM_REDUCE = 32749 -Global Const $OBM_LFARROW = 32750 -Global Const $OBM_RGARROW = 32751 -Global Const $OBM_DNARROW = 32752 -Global Const $OBM_UPARROW = 32753 -Global Const $OBM_CLOSE = 32754 -Global Const $OBM_OLD_RESTORE = 32755 -Global Const $OBM_OLD_ZOOM = 32756 -Global Const $OBM_OLD_REDUCE = 32757 -Global Const $OBM_BTNCORNERS = 32758 -Global Const $OBM_CHECKBOXES = 32759 -Global Const $OBM_CHECK = 32760 -Global Const $OBM_BTSIZE = 32761 -Global Const $OBM_OLD_LFARROW = 32762 -Global Const $OBM_OLD_RGARROW = 32763 -Global Const $OBM_OLD_DNARROW = 32764 -Global Const $OBM_OLD_UPARROW = 32765 -Global Const $OBM_SIZE = 32766 -Global Const $OBM_OLD_CLOSE = 32767 - -Global Const $OIC_SAMPLE = 32512 -Global Const $OIC_HAND = 32513 -Global Const $OIC_QUES = 32514 -Global Const $OIC_BANG = 32515 -Global Const $OIC_NOTE = 32516 -Global Const $OIC_WINLOGO = 32517 -Global Const $OIC_WARNING = $OIC_BANG -Global Const $OIC_ERROR = $OIC_HAND -Global Const $OIC_INFORMATION = $OIC_NOTE -; =============================================================================================================================== diff --git a/build/Include/WinAPIDiag.au3 b/build/Include/WinAPIDiag.au3 deleted file mode 100644 index ae68925ad..000000000 --- a/build/Include/WinAPIDiag.au3 +++ /dev/null @@ -1,944 +0,0 @@ -#include-once - -#include "APIDiagConstants.au3" -#include "StringConstants.au3" -#include "WinAPI.au3" -#include "WinAPIFiles.au3" -#include "WinAPIInternals.au3" -#include "WinAPIProc.au3" -#include "WinAPIShellEx.au3" -#include "WinAPITheme.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIDiag.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -Global $__g_hFRDlg = 0, $__g_hFRDll = 0 -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_DisplayStruct -; _WinAPI_EnumDllProc -; _WinAPI_FatalExit -; _WinAPI_GetApplicationRestartSettings -; _WinAPI_GetErrorMessage -; _WinAPI_GetErrorMode -; _WinAPI_IsInternetConnected -; _WinAPI_IsNetworkAlive -; _WinAPI_NtStatusToDosError -; _WinAPI_RegisterApplicationRestart -; _WinAPI_SetErrorMode -; _WinAPI_ShowLastError -; _WinAPI_UniqueHardwareID -; _WinAPI_UnregisterApplicationRestart -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DisplayStruct($tStruct, $sStruct = '', $sTitle = '', $iItem = 0, $iSubItem = 0, $iFlags = 0, $bTop = True, $hParent = 0) - If Not StringStripWS($sTitle, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTitle = 'Structure: ListView Display' - EndIf - $sStruct = StringRegExpReplace(StringStripWS($sStruct, $STR_STRIPLEADING + $STR_STRIPTRAILING + $STR_STRIPSPACES), ';+\Z', '') - Local $pData - If IsDllStruct($tStruct) Then - $pData = DllStructGetPtr($tStruct) - If Not $sStruct Then - $sStruct = 'byte[' & DllStructGetSize($tStruct) & ']' - $iFlags = BitOR($iFlags, 64) - EndIf - Else - $pData = $tStruct - If Not $sStruct Then Return SetError(10, 0, 0) - EndIf - Local $tData = DllStructCreate($sStruct, $pData) - - Local $iData = DllStructGetSize($tData) - If (Not BitAND($iFlags, 512)) And (_WinAPI_IsBadReadPtr($pData, $iData)) Then - If Not BitAND($iFlags, 256) Then - MsgBox($MB_SYSTEMMODAL, $sTitle, 'The memory range allocated to a given structure could not be read.' & _ - @CRLF & @CRLF & Ptr($pData) & ' - ' & Ptr($pData + $iData - 1) & _ - @CRLF & @CRLF & 'Press OK to exit.') - Exit -1073741819 - EndIf - Return SetError(15, 0, 0) - EndIf - - Local $sOpt1 = Opt('GUIDataSeparatorChar', '|') - Local $iOpt2 = Opt('GUIOnEventMode', 0) - Local $iOpt3 = Opt('GUICloseOnESC', 1) - - If $hParent Then - GUISetState(@SW_DISABLE, $hParent) - EndIf - Local $iStyle = 0x00000001 - If $bTop Then - $iStyle = BitOR($iStyle, 0x00000008) - EndIf - $__g_hFRDlg = GUICreate($sTitle, 570, 620, -1, -1, 0x80C70000, $iStyle, $hParent) - Local $idLV = GUICtrlCreateListView('#|Member|Offset|Type|Size|Value', 0, 0, 570, 620, 0x0000800D, __Iif($__WINVER < 0x0600, 0x00010031, 0x00010030)) - Local $hLV = GUICtrlGetHandle($idLV) - If $__WINVER >= 0x0600 Then - _WinAPI_SetWindowTheme($hLV, 'Explorer') - EndIf - GUICtrlSetResizing(-1, 0x0066) - GUICtrlSetFont(-1, 8.5, 400, 0, 'Tahoma') - GUICtrlSetState(-1, 0x0100) - Local $aVal[101] = [0] - If Not BitAND($iFlags, 1) Then - __Inc($aVal) - $aVal[$aVal[0]] = '' - GUICtrlCreateListViewItem('-|-|' & $pData & '||0|-', $idLV) - GUICtrlSetColor(-1, 0x9C9C9C) - EndIf - Local $aData = StringSplit($sStruct, ';') - Local $aItem, $vItem, $sItem, $iMode, $iIndex, $iCount = 0, $iPrev = 0 - Local $aSel[2] = [0, 0] - Local $aType[28][2] = _ - [['BYTE', 1], _ - ['BOOLEAN', 1], _ - ['CHAR', 1], _ - ['WCHAR', 2], _ - ['short', 2], _ - ['USHORT', 2], _ - ['WORD', 2], _ - ['int', 4], _ - ['long', 4], _ - ['BOOL', 4], _ - ['UINT', 4], _ - ['ULONG', 4], _ - ['DWORD', 4], _ - ['INT64', 8], _ - ['UINT64', 8], _ - ['ptr', __Iif(@AutoItX64, 8, 4)], _ - ['HWND', __Iif(@AutoItX64, 8, 4)], _ - ['HANDLE', __Iif(@AutoItX64, 8, 4)], _ - ['float', 4], _ - ['double', 8], _ - ['INT_PTR', __Iif(@AutoItX64, 8, 4)], _ - ['LONG_PTR', __Iif(@AutoItX64, 8, 4)], _ - ['LRESULT', __Iif(@AutoItX64, 8, 4)], _ - ['LPARAM', __Iif(@AutoItX64, 8, 4)], _ - ['UINT_PTR', __Iif(@AutoItX64, 8, 4)], _ - ['ULONG_PTR', __Iif(@AutoItX64, 8, 4)], _ - ['DWORD_PTR', __Iif(@AutoItX64, 8, 4)], _ - ['WPARAM', __Iif(@AutoItX64, 8, 4)]] - - For $i = 1 To $aData[0] - $aItem = StringSplit(StringStripWS($aData[$i], $STR_STRIPLEADING + $STR_STRIPTRAILING), ' ') - Switch $aItem[1] - Case 'ALIGN', 'STRUCT', 'ENDSTRUCT' - ContinueLoop - Case Else - - EndSwitch - $iCount += 1 - $iMode = 1 - $sItem = $iCount & '|' - If $aItem[0] > 1 Then - $vItem = StringRegExpReplace($aItem[2], '\[.*\Z', '') - $sItem &= $vItem & '|' - If (Not BitAND($iFlags, 16)) And (Not StringCompare(StringRegExpReplace($vItem, '[0-9]+\Z', ''), 'RESERVED')) Then - $iMode = 0 - EndIf - If Not IsString($iItem) Then - $vItem = $iCount - EndIf - $iIndex = 2 - Else - If Not BitAND($iFlags, 4) Then - $sItem &= '|' - Else - $sItem &= '|' - EndIf - If Not IsString($iItem) Then - $vItem = $iCount - Else - $vItem = 0 - EndIf - $iIndex = 1 - EndIf - If (Not $aSel[0]) And ($vItem) And ($iItem) And ($vItem = $iItem) Then - $aSel[0] = $iCount - EndIf - Local $iOffset = Number(DllStructGetPtr($tData, $iCount) - $pData) - $iIndex = StringRegExp($aItem[$iIndex], '\[(\d+)\]', $STR_REGEXPARRAYGLOBALMATCH) - Local $iSize - Do - ReDim $aItem[3] - $vItem = StringRegExpReplace($aItem[1], '\[.*\Z', '') - For $j = 0 To UBound($aType) - 1 - If Not StringCompare($aType[$j][0], $vItem) Then - $aItem[1] = $aType[$j][0] - $aItem[2] = $aType[$j][1] - $iSize = $aItem[2] - ExitLoop 2 - EndIf - Next - $aItem[1] = '?' - $aItem[2] = '?' - $iSize = 0 - Until 1 - $sItem &= $iOffset & '|' - If (IsArray($iIndex)) And ($iIndex[0] > '1') Then - If $iSize Then - $aItem[2] = $aItem[2] * $iIndex[0] - EndIf - Do - Switch $aItem[1] - Case 'BYTE', 'BOOLEAN' - If Not BitAND($iFlags, 64) Then - ContinueCase - EndIf - Case 'CHAR', 'WCHAR' - $sItem &= $aItem[1] & '[' & $iIndex[0] & ']|' & $aItem[2] & '|' - $iIndex = 0 - ExitLoop - Case Else - - EndSwitch - If ($iSize) And ($iMode) Then - $sItem &= $aItem[1] & '[' & $iIndex[0] & ']|' & $aItem[2] & ' (' & $iSize & ')' & '|' - Else - $sItem &= $aItem[1] & '[' & $iIndex[0] & ']|' & $aItem[2] & '|' - EndIf - If $iMode Then - $iIndex = $iIndex[0] - Else - $iIndex = 0 - EndIf - Until 1 - Else - $sItem &= $aItem[1] & '|' & $aItem[2] & '|' - $iIndex = 0 - EndIf - If (Not BitAND($iFlags, 2)) And ($iPrev) And ($iOffset > $iPrev) Then - __Inc($aVal) - $aVal[$aVal[0]] = '' - GUICtrlCreateListViewItem('-|-|-||' & ($iOffset - $iPrev) & '|-', $idLV) - GUICtrlSetColor(-1, 0xFF0000) - EndIf - If $iSize Then - $iPrev = $iOffset + $aItem[2] - Else - $iPrev = 0 - EndIf - Local $idLVItem, $idInit - If $iIndex Then - Local $sPattern = '[%0' & StringLen($iIndex) & 'd] ' - For $j = 1 To $iIndex - __Inc($aVal) - $aVal[$aVal[0]] = DllStructGetData($tData, $iCount, $j) - If BitAND($iFlags, 128) Then - $aVal[$aVal[0]] = __Hex($aVal[$aVal[0]], $aItem[1]) - EndIf - $idLVItem = GUICtrlCreateListViewItem($sItem & StringFormat($sPattern, $j) & $aVal[$aVal[0]], $idLV) - If ($aSel[0] = $iCount) And (Not $aSel[1]) Then - If ($iSubItem < 1) Or ($iSubItem > $iIndex) Or ($iSubItem = $j) Then - $aSel[1] = $idLVItem - EndIf - EndIf - If (Not $idInit) And ($iCount = 1) Then - $idInit = $idLVItem - EndIf - If Not BitAND($iFlags, 8) Then - GUICtrlSetBkColor(-1, 0xF5F5F5) - EndIf - If $iSize Then - $sItem = '-|-|' & ($iOffset + $j * $iSize) & '|-|-|' - Else - GUICtrlSetColor(-1, 0xFF8800) - $sItem = '-|-|-|-|-|' - EndIf - Next - Else - __Inc($aVal) - If $iMode Then - $aVal[$aVal[0]] = DllStructGetData($tData, $iCount) - If BitAND($iFlags, 128) Then - $aVal[$aVal[0]] = __Hex($aVal[$aVal[0]], $aItem[1]) - EndIf - $idLVItem = GUICtrlCreateListViewItem($sItem & $aVal[$aVal[0]], $idLV) - Else - $aVal[$aVal[0]] = '' - $idLVItem = GUICtrlCreateListViewItem($sItem & '-', $idLV) - EndIf - If ($aSel[0] = $iCount) And (Not $aSel[1]) Then - $aSel[1] = $idLVItem - EndIf - If (Not $idInit) And ($iCount = 1) Then - $idInit = $idLVItem - EndIf - If Not $iSize Then - GUICtrlSetColor(-1, 0xFF8800) - EndIf - EndIf - If (Not BitAND($iFlags, 2)) And (Not $iSize) Then - __Inc($aVal) - $aVal[$aVal[0]] = '' - GUICtrlCreateListViewItem('-|-|-||?|-', $idLV) - GUICtrlSetColor(-1, 0xFF8800) - EndIf - Next - If (Not BitAND($iFlags, 2)) And ($iPrev) And ($iData > $iPrev) Then - __Inc($aVal) - $aVal[$aVal[0]] = '' - GUICtrlCreateListViewItem('-|-|-||' & ($iData - $iPrev) & '|-', $idLV) - GUICtrlSetColor(-1, 0xFF0000) - EndIf - If Not BitAND($iFlags, 1) Then - __Inc($aVal) - $aVal[$aVal[0]] = '' - GUICtrlCreateListViewItem('-|-|' & ($pData + $iData - 0) & '||' & $iData & '|-', $idLV) - GUICtrlSetColor(-1, 0x9C9C9C) - EndIf - If $aSel[1] Then - GUICtrlSetState($aSel[1], 0x0100) - Else - GUICtrlSetState($idInit, 0x0100) - EndIf - Local $idDummy = GUICtrlCreateDummy() - Local $aWidth[6] = [30, 130, 76, 100, 50, 167] - For $i = 0 To UBound($aWidth) - 1 - GUICtrlSendMsg($idLV, 0x101E, $i, $aWidth[$i]) - Next - Local $tParam = DllStructCreate('ptr;uint') - DllStructSetData($tParam, 1, $hLV) - If Not BitAND($iFlags, 32) Then - DllStructSetData($tParam, 2, $idDummy) - Else - DllStructSetData($tParam, 2, 0) - EndIf - $__g_hFRDll = DllCallbackRegister('__DlgSubclassProc', 'lresult', 'hwnd;uint;wparam;lparam;uint;ptr') - Local $pDll = DllCallbackGetPtr($__g_hFRDll) - If _WinAPI_SetWindowSubclass($__g_hFRDlg, $pDll, 1000, DllStructGetPtr($tParam)) Then - OnAutoItExitRegister('__Quit') - Else - DllCallbackFree($__g_hFRDll) - $__g_hFRDll = 0 - EndIf - GUISetState() - While 1 - Switch GUIGetMsg() - Case 0 - ContinueLoop - Case -3 - ExitLoop - Case $idDummy - $iIndex = GUICtrlRead($idDummy) - If ($iIndex >= 0) And ($iIndex < $aVal[0]) Then - ClipPut($aVal[$iIndex + 1]) - EndIf - EndSwitch - WEnd - If $__g_hFRDll Then - OnAutoItExitUnRegister('__Quit') - EndIf - __Quit() - If $hParent Then - GUISetState(@SW_ENABLE, $hParent) - EndIf - GUIDelete($__g_hFRDlg) - Opt('GUIDataSeparatorChar', $sOpt1) - Opt('GUIOnEventMode', $iOpt2) - Opt('GUICloseOnESC', $iOpt3) - - Return 1 -EndFunc ;==>_WinAPI_DisplayStruct - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumDllProc($sFilePath, $sMask = '', $iFlags = 0) - If Not __DLL('dbghelp.dll') Then Return SetError(103, 0, 0) - - Local $vVer = __Ver('dbghelp.dll') - If $vVer < 0x0501 Then Return SetError(2, 0, 0) - - $__g_vEnum = 0 - - Local $iPE, $aRet, $iError = 0, $hLibrary = 0, $vWOW64 = Default - If _WinAPI_IsWow64Process() Then - $aRet = DllCall('kernel32.dll', 'bool', 'Wow64DisableWow64FsRedirection', 'ptr*', 0) - If Not @error And $aRet[0] Then $vWOW64 = $aRet[1] - EndIf - Do - $aRet = DllCall('kernel32.dll', 'dword', 'SearchPathW', 'ptr', 0, 'wstr', $sFilePath, 'ptr', 0, 'dword', 4096, 'wstr', '', 'ptr', 0) - If @error Or Not $aRet[0] Then - $iError = @error + 10 - ExitLoop - EndIf - $__g_vExt = $aRet[5] - $iPE = _WinAPI_GetPEType($__g_vExt) - Switch $iPE - Case 0x014C - ; (x86): IMAGE_FILE_MACHINE_I386 - Case 0x0200, 0x8664 - ; (x64): IMAGE_FILE_MACHINE_IA64, IMAGE_FILE_MACHINE_AMD64 - Case Else - $iError = @error + 20 - ExitLoop - EndSwitch - $hLibrary = _WinAPI_LoadLibraryEx($__g_vExt, 0x00000003) - If Not $hLibrary Then - $iError = @error + 30 - ExitLoop - EndIf - If $vVer >= 0x0600 Then - __EnumDllProcW($hLibrary, $sMask, $iFlags) - Else - __EnumDllProcA($hLibrary, $sMask, $iFlags) - EndIf - If @error Then - $iError = @error + 40 - ExitLoop - EndIf - Until 1 - If $hLibrary Then - _WinAPI_FreeLibrary($hLibrary) - EndIf - If Not ($vWOW64 = Default) Then - DllCall('kernel32.dll', 'bool', 'Wow64RevertWow64FsRedirection', 'ptr*', $vWOW64) - EndIf - - Return SetError($iError, $iPE, $__g_vEnum) -EndFunc ;==>_WinAPI_EnumDllProc - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetApplicationRestartSettings($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000410, 0x00001010), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'uint', 'GetApplicationRestartSettings', 'handle', $hProcess[0], 'wstr', '', _ - 'dword*', 4096, 'dword*', 0) - Local $iError, $iExtended = @extended - If @error Then - $iError = @error - ElseIf $aRet[0] Then - $iError = 10 - $iExtended = $aRet[0] - EndIf - _WinAPI_CloseHandle($hProcess[0]) - If $iError Then Return SetError($iError, $iExtended, 0) - - Local $aResult[2] - $aResult[0] = $aRet[2] - $aResult[1] = $aRet[4] - Return $aResult -EndFunc ;==>_WinAPI_GetApplicationRestartSettings - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetErrorMessage($iCode, $iLanguage = 0) - Local $aRet = DllCall('kernel32.dll', 'dword', 'FormatMessageW', 'dword', 0x1000, 'ptr', 0, 'dword', $iCode, _ - 'dword', $iLanguage, 'wstr', '', 'dword', 4096, 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, '') - - Return StringRegExpReplace($aRet[5], '[' & @LF & ',' & @CR & ']*\Z', '') -EndFunc ;==>_WinAPI_GetErrorMessage - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetErrorMode() - Local $aRet = DllCall('kernel32.dll', 'uint', 'GetErrorMode') - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetErrorMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsInternetConnected() - If Not __DLL('connect.dll') Then Return SetError(103, 0, 0) - - Local $aRet = DllCall('connect.dll', 'long', 'IsInternetConnected') - If @error Then Return SetError(@error, @extended, 0) - If Not ($aRet[0] = 0 Or $aRet[0] = 1) Then ; not S_OK nor S_FALSE - Return SetError(10, $aRet[0], False) - EndIf - - Return Not $aRet[0] -EndFunc ;==>_WinAPI_IsInternetConnected - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsNetworkAlive() - If Not __DLL('sensapi.dll') Then Return SetError(103, 0, 0) - - Local $aRet = DllCall('sensapi.dll', 'bool', 'IsNetworkAlive', 'int*', 0) - Local $iLastError = _WinAPI_GetLastError() - If $iLastError Then Return SetError(1, $iLastError, 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, $iLastError, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[1] -EndFunc ;==>_WinAPI_IsNetworkAlive - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_NtStatusToDosError($iStatus) - Local $aRet = DllCall('ntdll.dll', 'ulong', 'RtlNtStatusToDosError', 'long', $iStatus) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_NtStatusToDosError - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegisterApplicationRestart($iFlags = 0, $sCmd = '') - Local $aRet = DllCall('kernel32.dll', 'long', 'RegisterApplicationRestart', 'wstr', $sCmd, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegisterApplicationRestart - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetErrorMode($iMode) - Local $aRet = DllCall('kernel32.dll', 'uint', 'SetErrorMode', 'uint', $iMode) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetErrorMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShowLastError($sText = '', $bAbort = False, $iLanguage = 0, Const $_iCurrentError = @error, Const $_iCurrentExtended = @extended) - Local $sError - - Local $iLastError = _WinAPI_GetLastError() - While 1 - $sError = _WinAPI_GetErrorMessage($iLastError, $iLanguage) - If @error And $iLanguage Then - $iLanguage = 0 - Else - ExitLoop - EndIf - WEnd - If StringStripWS($sText, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sText &= @CRLF & @CRLF - Else - $sText = '' - EndIf - _WinAPI_MsgBox(BitOR(0x00040000, BitShift(0x00000010, -2 * (Not $iLastError))), $iLastError, $sText & $sError) - If $iLastError Then - _WinAPI_SetLastError($iLastError) - If $bAbort Then - Exit $iLastError - EndIf - EndIf - - Return SetError($_iCurrentError, $_iCurrentExtended, 1) -EndFunc ;==>_WinAPI_ShowLastError - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UniqueHardwareID($iFlags = 0) - Local $oService = ObjGet('winmgmts:\\.\root\cimv2') - If Not IsObj($oService) Then Return SetError(1, 0, '') - - Local $oItems = $oService.ExecQuery('SELECT * FROM Win32_ComputerSystemProduct') - If Not IsObj($oItems) Then Return SetError(2, 0, '') - - Local $sHw = '', $iExtended = 0 - For $oProperty In $oItems - $sHw &= $oProperty.IdentifyingNumber - $sHw &= $oProperty.Name - $sHw &= $oProperty.SKUNumber - $sHw &= $oProperty.UUID - $sHw &= $oProperty.Vendor - $sHw &= $oProperty.Version - Next - $sHw = StringStripWS($sHw, $STR_STRIPALL) - If Not $sHw Then Return SetError(3, 0, '') - - Local $sText - If BitAND($iFlags, 0x0001) Then - $oItems = $oService.ExecQuery('SELECT * FROM Win32_BIOS') - If Not IsObj($oItems) Then Return SetError(3, 0, '') - - $sText = '' - For $oProperty In $oItems - $sText &= $oProperty.IdentificationCode - $sText &= $oProperty.Manufacturer - $sText &= $oProperty.Name - $sText &= $oProperty.SerialNumber - $sText &= $oProperty.SMBIOSMajorVersion - $sText &= $oProperty.SMBIOSMinorVersion - ; $sText &= $oProperty.Version - Next - $sText = StringStripWS($sText, $STR_STRIPALL) - If $sText Then - $iExtended += 0x0001 - $sHw &= $sText - EndIf - EndIf - If BitAND($iFlags, 0x0002) Then - $oItems = $oService.ExecQuery('SELECT * FROM Win32_Processor') - If Not IsObj($oItems) Then Return SetError(4, 0, '') - - $sText = '' - For $oProperty In $oItems - $sText &= $oProperty.Architecture - $sText &= $oProperty.Family - $sText &= $oProperty.Level - $sText &= $oProperty.Manufacturer - $sText &= $oProperty.Name - $sText &= $oProperty.ProcessorId - $sText &= $oProperty.Revision - $sText &= $oProperty.Version - Next - $sText = StringStripWS($sText, $STR_STRIPALL) - If $sText Then - $iExtended += 0x0002 - $sHw &= $sText - EndIf - EndIf - If BitAND($iFlags, 0x0004) Then - $oItems = $oService.ExecQuery('SELECT * FROM Win32_PhysicalMedia') - If Not IsObj($oItems) Then Return SetError(5, 0, '') - - $sText = '' - For $oProperty In $oItems - Switch _WinAPI_GetDriveBusType($oProperty.Tag) - Case 0x03, 0x0B - $sText &= $oProperty.SerialNumber - Case Else - - EndSwitch - Next - $sText = StringStripWS($sText, $STR_STRIPALL) - If $sText Then - $iExtended += 0x0004 - $sHw &= $sText - EndIf - EndIf - Local $sHash = __MD5($sHw) - If Not $sHash Then Return SetError(6, 0, '') - - Return SetExtended($iExtended, '{' & StringMid($sHash, 1, 8) & '-' & StringMid($sHash, 9, 4) & '-' & StringMid($sHash, 13, 4) & '-' & StringMid($sHash, 17, 4) & '-' & StringMid($sHash, 21, 12) & '}') -EndFunc ;==>_WinAPI_UniqueHardwareID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UnregisterApplicationRestart() - Local $aRet = DllCall('kernel32.dll', 'long', 'UnregisterApplicationRestart') - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_UnregisterApplicationRestart - -#EndRegion Public Functions - -#Region Internal Functions - -Func __DlgSubclassProc($sHwnd, $iMsg, $wParam, $lParam, $idLV, $pData) - #forceref $idLV - - Switch $iMsg - Case 0x004E ; WM_NOTIFY - - Local $tNMIA = DllStructCreate('hwnd;uint_ptr;' & __Iif(@AutoItX64, 'int;int', 'int') & ';int Item;int;uint;uint;uint;long;long;lparam;uint', $lParam) - Local $hListView = DllStructGetData($tNMIA, 1) - Local $nMsg = DllStructGetData($tNMIA, 3) - Local $tParam = DllStructCreate('ptr;uint', $pData) - Local $iDummy = DllStructGetData($tParam, 2) - Local $hLV = DllStructGetData($tParam, 1) - - Switch $hListView - Case $hLV - Switch $nMsg - Case -109 ; LVN_BEGINDRAG - Return 0 - Case -114 ; LVN_ITEMACTIVATE - If $iDummy Then - GUICtrlSendToDummy($iDummy, DllStructGetData($tNMIA, 'Item')) - EndIf - Return 0 - EndSwitch - EndSwitch - EndSwitch - Return _WinAPI_DefSubclassProc($sHwnd, $iMsg, $wParam, $lParam) -EndFunc ;==>__DlgSubclassProc - -Func __EnumDllProcA($hLibrary, $sMask, $iFlags) - Local $hProcess, $pAddress = 0, $iInit = 0, $vOpts = Default, $iError = 0 - Local $sTypeOfMask = 'str' - $__g_vEnum = 0 - Do - Local $aRet = DllCall('dbghelp.dll', 'dword', 'SymGetOptions') - If @error Then - $iError = @error + 10 - ExitLoop - EndIf - $vOpts = $aRet[0] - $aRet = DllCall('dbghelp.dll', 'dword', 'SymSetOptions', 'dword', BitOR(BitAND($iFlags, 0x00000003), 0x00000204)) - If @error Or Not $aRet[0] Then - $iError = @error + 20 - ExitLoop - EndIf - $hProcess = _WinAPI_GetCurrentProcess() - $aRet = DllCall('dbghelp.dll', 'int', 'SymInitialize', 'handle', $hProcess, 'ptr', 0, 'int', 1) - If @error Or Not $aRet[0] Then - $iError = @error + 30 - ExitLoop - EndIf - $iInit = 1 - $aRet = DllCall('dbghelp.dll', 'uint64', 'SymLoadModule64', 'handle', $hProcess, 'ptr', 0, 'str', $__g_vExt, 'ptr', 0, 'uint64', $hLibrary, 'dword', 0) - If @error Or Not $aRet[0] Then - $iError = @error + 40 - ExitLoop - EndIf - $pAddress = $aRet[0] - Dim $__g_vEnum[501][2] = [[0]] - Local $hEnumProc = DllCallbackRegister('__EnumSymbolsProcA', 'int', 'ptr;ulong;lparam') - Local $pEnumProc = DllCallbackGetPtr($hEnumProc) - If Not StringStripWS($sMask, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfMask = 'ptr' - $sMask = 0 - EndIf - $aRet = DllCall('dbghelp.dll', 'int', 'SymEnumSymbols', 'handle', $hProcess, 'uint64', $pAddress, $sTypeOfMask, $sMask, 'ptr', $pEnumProc, 'lparam', 0) - If @error Or Not $aRet[0] Or (Not $__g_vEnum[0][0]) Then - $iError = @error + 50 - $__g_vEnum = 0 - EndIf - DllCallbackFree($hEnumProc) - If IsArray($__g_vEnum) Then - __Inc($__g_vEnum, -1) - EndIf - Until 1 - If $pAddress Then - DllCall('dbghelp.dll', 'int', 'SymUnloadModule64', 'handle', $hProcess, 'uint64', $pAddress) - EndIf - If $iInit Then - DllCall('dbghelp.dll', 'int', 'SymCleanup', 'handle', $hProcess) - EndIf - If Not ($vOpts = Default) Then - DllCall('dbghelp.dll', 'dword', 'SymSetOptions', 'dword', $vOpts) - EndIf - If $iError Then Return SetError($iError, 0, 0) - - Return 1 -EndFunc ;==>__EnumDllProcA - -Func __EnumDllProcW($hLibrary, $sMask, $iFlags) - Local $hProcess, $pAddress = 0, $iInit = 0, $vOpts = Default, $iError = 0 - Local $sTypeOfMask = 'wstr' - $__g_vEnum = 0 - Do - Local $aRet = DllCall('dbghelp.dll', 'dword', 'SymGetOptions') - If @error Then - $iError = @error + 10 - ExitLoop - EndIf - $vOpts = $aRet[0] - $aRet = DllCall('dbghelp.dll', 'dword', 'SymSetOptions', 'dword', BitOR(BitAND($iFlags, 0x00000003), 0x00000204)) - If @error Or Not $aRet[0] Then - $iError = @error + 20 - ExitLoop - EndIf - $hProcess = _WinAPI_GetCurrentProcess() - $aRet = DllCall('dbghelp.dll', 'int', 'SymInitializeW', 'handle', $hProcess, 'ptr', 0, 'int', 1) - If @error Or Not $aRet[0] Then - $iError = @error + 30 - ExitLoop - EndIf - $iInit = 1 - $aRet = DllCall('dbghelp.dll', 'uint64', 'SymLoadModuleExW', 'handle', $hProcess, 'ptr', 0, 'wstr', $__g_vExt, 'ptr', 0, 'uint64', $hLibrary, 'dword', 0, 'ptr', 0, 'dword', 0) - If @error Or Not $aRet[0] Then - $iError = @error + 40 - ExitLoop - EndIf - $pAddress = $aRet[0] - Dim $__g_vEnum[501][2] = [[0]] - Local $hEnumProc = DllCallbackRegister('__EnumSymbolsProcW', 'int', 'ptr;ulong;lparam') - Local $pEnumProc = DllCallbackGetPtr($hEnumProc) - If Not StringStripWS($sMask, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfMask = 'ptr' - $sMask = 0 - EndIf - $aRet = DllCall('dbghelp.dll', 'int', 'SymEnumSymbolsW', 'handle', $hProcess, 'uint64', $pAddress, $sTypeOfMask, $sMask, 'ptr', $pEnumProc, 'lparam', 0) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0][0] Then - $iError = @error + 50 - $__g_vEnum = 0 - EndIf - DllCallbackFree($hEnumProc) - If IsArray($__g_vEnum) Then - __Inc($__g_vEnum, -1) - EndIf - Until 1 - If $pAddress Then - DllCall('dbghelp.dll', 'int', 'SymUnloadModule64', 'handle', $hProcess, 'uint64', $pAddress) - EndIf - If $iInit Then - DllCall('dbghelp.dll', 'int', 'SymCleanup', 'handle', $hProcess) - EndIf - If Not ($vOpts = Default) Then - DllCall('dbghelp.dll', 'dword', 'SymSetOptions', 'dword', $vOpts) - EndIf - If $iError Then Return SetError($iError, 0, 0) - - Return 1 -EndFunc ;==>__EnumDllProcW - -Func __EnumSymbolsProcA($pSymInfo, $iSymSize, $lParam) - #forceref $iSymSize, $lParam - - Local $tagSYMBOL_INFO = 'uint SizeOfStruct;uint TypeIndex;uint64 Reserved[2];uint Index;uint Size;uint64 ModBase;uint Flags;uint64 Value;uint64 Address;uint Register;uint Scope;uint Tag;uint NameLen;uint MaxNameLen;wchar Name[1]' - Local $tSYMINFO = DllStructCreate($tagSYMBOL_INFO, $pSymInfo) - Local $iLength = DllStructGetData($tSYMINFO, 'NameLen') - - If $iLength And BitAND(DllStructGetData($tSYMINFO, 'Flags'), 0x00000600) Then - __Inc($__g_vEnum, 500) - $__g_vEnum[$__g_vEnum[0][0]][0] = DllStructGetData($tSYMINFO, 'Address') - DllStructGetData($tSYMINFO, 'ModBase') - $__g_vEnum[$__g_vEnum[0][0]][1] = DllStructGetData(DllStructCreate('char[' & ($iLength + 1) & ']', DllStructGetPtr($tSYMINFO, 'Name')), 1) - EndIf - Return 1 -EndFunc ;==>__EnumSymbolsProcA - -Func __EnumSymbolsProcW($pSymInfo, $iSymSize, $lParam) - #forceref $iSymSize, $lParam - - Local $tagSYMBOL_INFO = 'uint SizeOfStruct;uint TypeIndex;uint64 Reserved[2];uint Index;uint Size;uint64 ModBase;uint Flags;uint64 Value;uint64 Address;uint Register;uint Scope;uint Tag;uint NameLen;uint MaxNameLen;wchar Name[1]' - Local $tSYMINFO = DllStructCreate($tagSYMBOL_INFO, $pSymInfo) - Local $iLength = DllStructGetData($tSYMINFO, 'NameLen') - - If $iLength And BitAND(DllStructGetData($tSYMINFO, 'Flags'), 0x00000600) Then - __Inc($__g_vEnum, 500) - $__g_vEnum[$__g_vEnum[0][0]][0] = DllStructGetData($tSYMINFO, 'Address') - DllStructGetData($tSYMINFO, 'ModBase') - $__g_vEnum[$__g_vEnum[0][0]][1] = DllStructGetData(DllStructCreate('wchar[' & ($iLength + 1) & ']', DllStructGetPtr($tSYMINFO, 'Name')), 1) - EndIf - Return 1 -EndFunc ;==>__EnumSymbolsProcW - -Func __Hex($iValue, $sType) - Local $iLength - - Switch $sType - Case 'BYTE', 'BOOLEAN' - $iLength = 2 - Case 'WORD', 'USHORT', 'short' - $iLength = 4 - Case 'BOOL', 'UINT', 'ULONG', 'DWORD', 'int', 'long' - $iLength = 8 - Case 'INT64', 'UINT64' - $iLength = 16 - Case 'INT_PTR', 'UINT_PTR', 'LONG_PTR', 'ULONG_PTR', 'DWORD_PTR', 'WPARAM', 'LPARAM', 'LRESULT' - $iLength = __Iif(@AutoItX64, 16, 8) - Case Else - $iLength = 0 - EndSwitch - If $iLength Then - Return '0x' & Hex($iValue, $iLength) - Else - Return $iValue - EndIf -EndFunc ;==>__Hex - -Func __MD5($sData) - Local $hHash, $iError = 0 - - Local $hProv = DllCall('advapi32.dll', 'int', 'CryptAcquireContextW', 'ptr*', 0, 'ptr', 0, 'ptr', 0, 'dword', 3, 'dword', 0xF0000000) - If @error Or Not $hProv[0] Then Return SetError(@error + 10, @extended, '') - Do - $hHash = DllCall('advapi32.dll', 'int', 'CryptCreateHash', 'handle', $hProv[1], 'uint', 0x00008003, 'ptr', 0, 'dword', 0, _ - 'ptr*', 0) - If @error Or Not $hHash[0] Then - $iError = @error + 20 - $hHash = 0 - ExitLoop - EndIf - $hHash = $hHash[5] - Local $tData = DllStructCreate('byte[' & BinaryLen($sData) & ']') - DllStructSetData($tData, 1, $sData) - Local $aRet = DllCall('advapi32.dll', 'int', 'CryptHashData', 'handle', $hHash, 'struct*', $tData, _ - 'dword', DllStructGetSize($tData), 'dword', 1) - If @error Or Not $aRet[0] Then - $iError = @error + 30 - ExitLoop - EndIf - $tData = DllStructCreate('byte[16]') - $aRet = DllCall('advapi32.dll', 'int', 'CryptGetHashParam', 'handle', $hHash, 'dword', 2, 'struct*', $tData, 'dword*', 16, _ - 'dword', 0) - If @error Or Not $aRet[0] Then - $iError = @error + 40 - ExitLoop - EndIf - Until 1 - If $hHash Then - DllCall('advapi32.dll', 'int', 'CryptDestroyHash', 'handle', $hHash) - EndIf - If $iError Then Return SetError($iError, 0, '') - Return StringTrimLeft(DllStructGetData($tData, 1), 2) -EndFunc ;==>__MD5 - -Func __Quit() - Local $pDll = DllCallbackGetPtr($__g_hFRDll) - If $pDll Then - _WinAPI_RemoveWindowSubclass($__g_hFRDlg, $pDll, 1000) - DllCallbackFree($__g_hFRDll) - EndIf - $__g_hFRDll = 0 -EndFunc ;==>__Quit - -Func __Ver($sPath) - Local $hLibrary = _WinAPI_GetModuleHandle($sPath) - If Not $hLibrary Then Return SetError(@error + 10, @extended, 0) - $sPath = _WinAPI_GetModuleFileNameEx(_WinAPI_GetCurrentProcess(), $hLibrary) - If Not $sPath Then Return SetError(@error + 20, @extended, 0) - Local $vVer = FileGetVersion($sPath) - If @error Then Return SetError(1, 0, 0) - $vVer = StringSplit($vVer, '.', $STR_NOCOUNT) - If UBound($vVer) < 2 Then Return SetError(2, 0, 0) - Return BitOR(BitShift(Number($vVer[0]), -8), Number($vVer[1])) -EndFunc ;==>__Ver - -#EndRegion Internal Functions diff --git a/build/Include/WinAPIDlg.au3 b/build/Include/WinAPIDlg.au3 deleted file mode 100644 index b5ba94874..000000000 --- a/build/Include/WinAPIDlg.au3 +++ /dev/null @@ -1,642 +0,0 @@ -#include-once - -#include "APIDlgConstants.au3" -#include "StringConstants.au3" -#include "WinAPIShellEx.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIDlg.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -Global $__g_pFRBuffer = 0, $__g_iFRBufferSize = 16385 -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $tagFINDREPLACE = 'dword Size;hwnd hOwner;ptr hInstance;dword Flags;ptr FindWhat;ptr ReplaceWith;ushort FindWhatLen;ushort ReplaceWithLen;lparam lParam;ptr Hook;ptr TemplateName' -Global Const $tagMSGBOXPARAMS = 'uint Size;hwnd hOwner;ptr hInstance;int_ptr Text;int_ptr Caption;dword Style;int_ptr Icon;dword_ptr ContextHelpId;ptr MsgBoxCallback;dword LanguageId' -Global Const $tagPAGESETUPDLG = 'dword Size;hwnd hOwner;ptr hDevMode;ptr hDevNames;dword Flags;long PaperWidth;long PaperHeight;long MarginMinLeft;long MarginMinTop;long MarginMinRight;long MarginMinBottom;long MarginLeft;long MarginTop;long MarginRight;long MarginBottom;ptr hInstance;lparam lParam;ptr PageSetupHook;ptr PagePaintHook;ptr PageSetupTemplateName;ptr hPageSetupTemplate' -Global Const $tagPRINTDLG = __Iif(@AutoItX64, '', 'align 2;') & 'dword Size;hwnd hOwner;handle hDevMode;handle hDevNames;handle hDC;dword Flags;word FromPage;word ToPage;word MinPage;word MaxPage;word Copies;handle hInstance;lparam lParam;ptr PrintHook;ptr SetupHook;ptr PrintTemplateName;ptr SetupTemplateName;handle hPrintTemplate;handle hSetupTemplate' -Global Const $tagPRINTDLGEX = 'dword Size;hwnd hOwner;handle hDevMode;handle hDevNames;handle hDC;dword Flags;dword Flags2;dword ExclusionFlags;dword NumPageRanges;dword MaxPageRanges;ptr PageRanges;dword MinPage;dword MaxPage;dword Copies;handle hInstance;ptr PrintTemplateName;lparam lParam;dword NumPropertyPages;ptr hPropertyPages;dword StartPage;dword ResultAction' -Global Const $tagPRINTPAGERANGE = 'dword FromPage;dword ToPage' -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_BrowseForFolderDlg -; _WinAPI_CommDlgExtendedErrorEx -; _WinAPI_ConfirmCredentials -; _WinAPI_FindTextDlg -; _WinAPI_FlushFRBuffer -; _WinAPI_FormatDriveDlg -; _WinAPI_GetConnectedDlg -; _WinAPI_GetFRBuffer -; _WinAPI_MessageBoxCheck -; _WinAPI_MessageBoxIndirect -; _WinAPI_OpenFileDlg -; _WinAPI_PageSetupDlg -; _WinAPI_PickIconDlg -; _WinAPI_PrintDlg -; _WinAPI_PrintDlgEx -; _WinAPI_ReplaceTextDlg -; _WinAPI_RestartDlg -; _WinAPI_SaveFileDlg -; _WinAPI_SetFRBuffer -; _WinAPI_ShellAboutDlg -; _WinAPI_ShellOpenWithDlg -; _WinAPI_ShellStartNetConnectionDlg -; _WinAPI_ShellUserAuthenticationDlg -; _WinAPI_ShellUserAuthenticationDlgEx -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BrowseForFolderDlg($sRoot = '', $sText = '', $iFlags = 0, $pBrowseProc = 0, $lParam = 0, $hParent = 0) - Local Const $tagBROWSEINFO = 'hwnd hwndOwner;ptr pidlRoot;ptr pszDisplayName; ptr lpszTitle;uint ulFlags;ptr lpfn;lparam lParam;int iImage' - Local $tBROWSEINFO = DllStructCreate($tagBROWSEINFO & ';wchar[' & (StringLen($sText) + 1) & '];wchar[260]') - Local $pPIDL = 0, $sResult = '' - - If StringStripWS($sRoot, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - Local $sPath = _WinAPI_PathSearchAndQualify($sRoot, 1) - If @error Then - $sPath = $sRoot - EndIf - $pPIDL = _WinAPI_ShellILCreateFromPath($sPath) - If @error Then - ; Nothing - EndIf - EndIf - - DllStructSetData($tBROWSEINFO, 1, $hParent) - DllStructSetData($tBROWSEINFO, 2, $pPIDL) - DllStructSetData($tBROWSEINFO, 3, DllStructGetPtr($tBROWSEINFO, 10)) - DllStructSetData($tBROWSEINFO, 4, DllStructGetPtr($tBROWSEINFO, 9)) - DllStructSetData($tBROWSEINFO, 5, $iFlags) - DllStructSetData($tBROWSEINFO, 6, $pBrowseProc) - DllStructSetData($tBROWSEINFO, 7, $lParam) - DllStructSetData($tBROWSEINFO, 8, 0) - DllStructSetData($tBROWSEINFO, 9, $sText) - - Local $aRet = DllCall('shell32.dll', 'ptr', 'SHBrowseForFolderW', 'struct*', $tBROWSEINFO) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, '') - - $sResult = _WinAPI_ShellGetPathFromIDList($aRet[0]) - _WinAPI_CoTaskMemFree($aRet[0]) - If $pPIDL Then - _WinAPI_CoTaskMemFree($pPIDL) - EndIf - If Not $sResult Then Return SetError(10, 0, '') - - Return $sResult -EndFunc ;==>_WinAPI_BrowseForFolderDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CommDlgExtendedErrorEx() - Local $aRet = DllCall('comdlg32.dll', 'dword', 'CommDlgExtendedError') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CommDlgExtendedErrorEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ConfirmCredentials($sTarget, $bConfirm) - If Not __DLL('credui.dll') Then Return SetError(103, 0, 0) - - Local $aRet = DllCall('credui.dll', 'dword', 'CredUIConfirmCredentialsW', 'wstr', $sTarget, 'bool', $bConfirm) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_ConfirmCredentials - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FindTextDlg($hOwner, $sFindWhat = '', $iFlags = 0, $pFindProc = 0, $lParam = 0) - $__g_pFRBuffer = __HeapReAlloc($__g_pFRBuffer, 2 * $__g_iFRBufferSize) - If @error Then Return SetError(@error + 20, @extended, 0) - - DllStructSetData(DllStructCreate('wchar[' & $__g_iFRBufferSize & ']', $__g_pFRBuffer), 1, StringLeft($sFindWhat, $__g_iFRBufferSize - 1)) - Local $tFR = DllStructCreate($tagFINDREPLACE) - DllStructSetData($tFR, 'Size', DllStructGetSize($tFR)) - DllStructSetData($tFR, 'hOwner', $hOwner) - DllStructSetData($tFR, 'hInstance', 0) - DllStructSetData($tFR, 'Flags', $iFlags) - DllStructSetData($tFR, 'FindWhat', $__g_pFRBuffer) - DllStructSetData($tFR, 'ReplaceWith', 0) - DllStructSetData($tFR, 'FindWhatLen', $__g_iFRBufferSize * 2) - DllStructSetData($tFR, 'ReplaceWithLen', 0) - DllStructSetData($tFR, 'lParam', $lParam) - DllStructSetData($tFR, 'Hook', $pFindProc) - DllStructSetData($tFR, 'TemplateName', 0) - - Local $aRet = DllCall('comdlg32.dll', 'hwnd', 'FindTextW', 'struct*', $tFR) - If @error Or Not $aRet[0] Then - Local $iError = @error + 30 - __HeapFree($__g_pFRBuffer) - If IsArray($aRet) Then - Return SetError(10, _WinAPI_CommDlgExtendedErrorEx(), 0) - Else - Return SetError($iError, @extended, 0) - EndIf - EndIf - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindTextDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FlushFRBuffer() - If Not __HeapFree($__g_pFRBuffer, 1) Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_FlushFRBuffer - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FormatDriveDlg($sDrive, $iOption = 0, $hParent = 0) - If Not IsString($sDrive) Then Return SetError(10, 0, 0) - - $sDrive = StringLeft(StringUpper(StringStripWS($sDrive, $STR_STRIPLEADING)), 1) - If Not $sDrive Then Return SetError(11, 0, 0) - - $sDrive = Asc($sDrive) - 65 - If ($sDrive < 0) Or ($sDrive > 25) Then Return SetError(12, 0, 0) - - Local $aRet = DllCall('shell32.dll', 'dword', 'SHFormatDrive', 'hwnd', $hParent, 'uint', $sDrive, 'uint', 0xFFFF, _ - 'uint', $iOption) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] < 0 Then Return SetError($aRet[0], 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FormatDriveDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetConnectedDlg($iDlg, $iFlags = 0, $hParent = 0) - If Not __DLL('connect.dll') Then Return SetError(103, 0, 0) - - Switch $iDlg - Case 0 - $iDlg = 'GetNetworkConnected' - Case 1 - $iDlg = 'GetInternetConnected' - Case 2 - $iDlg = 'GetVPNConnected' - Case Else - Return SetError(1, 0, 0) - EndSwitch - - Local $sStr = '' - - If BitAND($iFlags, 1) Then - $sStr &= '-SkipInternetDetection ' - EndIf - If BitAND($iFlags, 2) Then - $sStr &= '-SkipExistingConnections ' - EndIf - If BitAND($iFlags, 4) Then - $sStr &= '-HideFinishPage ' - EndIf - - Local $aRet = DllCall('connect.dll', 'long', $iDlg, 'hwnd', $hParent, 'dword', 0, 'dword', 0, 'dword', 0, 'handle', 0, _ - 'wstr', StringStripWS($sStr, $STR_STRIPTRAILING)) - If @error Then Return SetError(@error, @extended, 0) - If Not ($aRet[0] = 0 Or $aRet[0] = 1) Then Return SetError(10, $aRet[0], 0) ; not S_OK nor S_FALSE - - Return Number(Not $aRet[0]) -EndFunc ;==>_WinAPI_GetConnectedDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetFRBuffer() - Return $__g_iFRBufferSize - 1 -EndFunc ;==>_WinAPI_GetFRBuffer - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_MessageBoxCheck($iType, $sTitle, $sText, $sRegVal, $iDefault = -1, $hParent = 0) - Local $aRet = DllCall('shlwapi.dll', 'int', 'SHMessageBoxCheckW', 'hwnd', $hParent, 'wstr', $sText, 'wstr', $sTitle, _ - 'uint', $iType, 'int', $iDefault, 'wstr', $sRegVal) - If @error Then Return SetError(@error, @extended, -1) - - Return $aRet[0] -EndFunc ;==>_WinAPI_MessageBoxCheck - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_MessageBoxIndirect($tMSGBOXPARAMS) - Local $aRet = DllCall('user32.dll', 'int', 'MessageBoxIndirectW', 'struct*', $tMSGBOXPARAMS) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_MessageBoxIndirect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_OpenFileDlg($sTitle = '', $sInitDir = '', $sFilters = '', $iDefaultFilter = 0, $sDefaultFilePath = '', $sDefaultExt = '', $iFlags = 0, $iFlagsEx = 0, $pOFNProc = 0, $pData = 0, $hParent = 0) - Local $sResult = __OFNDlg(0, $sTitle, $sInitDir, $sFilters, $iDefaultFilter, $sDefaultFilePath, $sDefaultExt, $iFlags, $iFlagsEx, $pOFNProc, $pData, $hParent) - If @error Then Return SetError(@error, @extended, '') - - Return $sResult -EndFunc ;==>_WinAPI_OpenFileDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PageSetupDlg(ByRef $tPAGESETUPDLG) - Local $aRet = DllCall('comdlg32.dll', 'int', 'PageSetupDlgW', 'struct*', $tPAGESETUPDLG) - If @error Then Return SetError(@error, @extended, 0) - If Not $aRet[0] Then Return SetError(10, _WinAPI_CommDlgExtendedErrorEx(), 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PageSetupDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PickIconDlg($sIcon = '', $iIndex = 0, $hParent = 0) - Local $aRet = DllCall('shell32.dll', 'int', 'PickIconDlg', 'hwnd', $hParent, 'wstr', $sIcon, 'int', 4096, 'int*', $iIndex) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Local $aResult[2] - ; $aResult[0] = _WinAPI_ExpandEnvironmentStrings($aRet[2]) - Local $aRes = DllCall("kernel32.dll", "dword", "ExpandEnvironmentStringsW", "wstr", $aRet[2], "wstr", "", "dword", 4096) - $aResult[0] = $aRes[2] - - $aResult[1] = $aRet[4] - Return $aResult -EndFunc ;==>_WinAPI_PickIconDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PrintDlg(ByRef $tPRINTDLG) - Local $aRet = DllCall('comdlg32.dll', 'long', 'PrintDlgW', 'struct*', $tPRINTDLG) - If @error Then Return SetError(@error, @extended, 0) - If Not $aRet[0] Then Return SetError(10, _WinAPI_CommDlgExtendedErrorEx(), 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PrintDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PrintDlgEx(ByRef $tPRINTDLGEX) - Local $tPDEX = DllStructCreate($tagPRINTDLGEX, DllStructGetPtr($tPRINTDLGEX)) - Local $aRet = DllCall('comdlg32.dll', 'long', 'PrintDlgExW', 'struct*', $tPDEX) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return SetExtended(DllStructGetData($tPDEX, 'ResultAction'), 1) -EndFunc ;==>_WinAPI_PrintDlgEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ReplaceTextDlg($hOwner, $sFindWhat = '', $sReplaceWith = '', $iFlags = 0, $pReplaceProc = 0, $lParam = 0) - $__g_pFRBuffer = __HeapReAlloc($__g_pFRBuffer, 4 * $__g_iFRBufferSize) - If @error Then Return SetError(@error + 100, @extended, 0) - Local $tBuff = DllStructCreate('wchar[' & $__g_iFRBufferSize & '];wchar[' & $__g_iFRBufferSize & ']', $__g_pFRBuffer) - DllStructSetData($tBuff, 1, StringLeft($sFindWhat, $__g_iFRBufferSize - 1)) - DllStructSetData($tBuff, 2, StringLeft($sReplaceWith, $__g_iFRBufferSize - 1)) - Local $tFR = DllStructCreate($tagFINDREPLACE) - DllStructSetData($tFR, 'Size', DllStructGetSize($tFR)) - DllStructSetData($tFR, 'hOwner', $hOwner) - DllStructSetData($tFR, 'hInstance', 0) - DllStructSetData($tFR, 'Flags', $iFlags) - DllStructSetData($tFR, 'FindWhat', DllStructGetPtr($tBuff, 1)) - DllStructSetData($tFR, 'ReplaceWith', DllStructGetPtr($tBuff, 2)) - DllStructSetData($tFR, 'FindWhatLen', $__g_iFRBufferSize * 2) - DllStructSetData($tFR, 'ReplaceWithLen', $__g_iFRBufferSize * 2) - DllStructSetData($tFR, 'lParam', $lParam) - DllStructSetData($tFR, 'Hook', $pReplaceProc) - DllStructSetData($tFR, 'TemplateName', 0) - - Local $aRet = DllCall('comdlg32.dll', 'hwnd', 'ReplaceTextW', 'struct*', $tFR) - If @error Or Not $aRet[0] Then - Local $iError = @error - __HeapFree($__g_pFRBuffer) - If IsArray($aRet) Then - Return SetError(10, _WinAPI_CommDlgExtendedErrorEx(), 0) - Else - Return SetError($iError, 0, 0) - EndIf - EndIf - - Return $aRet[0] -EndFunc ;==>_WinAPI_ReplaceTextDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RestartDlg($sText = '', $iFlags = 2, $hParent = 0) - Local $aRet = DllCall('shell32.dll', 'int', 'RestartDialog', 'hwnd', $hParent, 'wstr', $sText, 'int', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RestartDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SaveFileDlg($sTitle = "", $sInitDir = "", $sFilters = "", $iDefaultFilter = 0, $sDefaultFilePath = "", $sDefaultExt = "", $iFlags = 0, $iFlagsEx = 0, $pOFNProc = 0, $pData = 0, $hParent = 0) - Local $sResult = __OFNDlg(1, $sTitle, $sInitDir, $sFilters, $iDefaultFilter, $sDefaultFilePath, $sDefaultExt, $iFlags, $iFlagsEx, $pOFNProc, $pData, $hParent) - If @error Then Return SetError(@error, @extended, "") - - Return $sResult -EndFunc ;==>_WinAPI_SaveFileDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetFRBuffer($iChars) - $iChars = Number($iChars) - If $iChars < 80 Then - $iChars = 80 - EndIf - $__g_iFRBufferSize = $iChars + 1 - Return 1 -EndFunc ;==>_WinAPI_SetFRBuffer - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellAboutDlg($sTitle, $sName, $sText, $hIcon = 0, $hParent = 0) - Local $aRet = DllCall('shell32.dll', 'int', 'ShellAboutW', 'hwnd', $hParent, 'wstr', $sTitle & '#' & $sName, 'wstr', $sText, _ - 'handle', $hIcon) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShellAboutDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellOpenWithDlg($sFilePath, $iFlags = 0, $hParent = 0) - Local $tOPENASINFO = DllStructCreate('ptr;ptr;dword;wchar[' & (StringLen($sFilePath) + 1) & ']') - DllStructSetData($tOPENASINFO, 1, DllStructGetPtr($tOPENASINFO, 4)) - DllStructSetData($tOPENASINFO, 2, 0) - DllStructSetData($tOPENASINFO, 3, $iFlags) - DllStructSetData($tOPENASINFO, 4, $sFilePath) - - Local $aRet = DllCall('shell32.dll', 'long', 'SHOpenWithDialog', 'hwnd', $hParent, 'struct*', $tOPENASINFO) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellOpenWithDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellStartNetConnectionDlg($sRemote = '', $iFlags = 0, $hParent = 0) - Local $sTypeOfRemote = 'wstr' - If Not StringStripWS($sRemote, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfRemote = 'ptr' - $sRemote = 0 - EndIf - DllCall('shell32.dll', 'long', 'SHStartNetConnectionDialogW', 'hwnd', $hParent, $sTypeOfRemote, $sRemote, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellStartNetConnectionDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellUserAuthenticationDlg($sCaption, $sMessage, $sUser, $sPassword, $sTarget, $iFlags = 0, $iError = 0, $bSave = False, $hBitmap = 0, $hParent = 0) - If Not __DLL('credui.dll') Then Return SetError(103, 0, 0) - - Local $tInfo = DllStructCreate('dword;hwnd;ptr;ptr;ptr;wchar[' & (StringLen($sMessage) + 1) & '];wchar[' & (StringLen($sCaption) + 1) & ']') - DllStructSetData($tInfo, 1, DllStructGetPtr($tInfo, 6) - DllStructGetPtr($tInfo)) - DllStructSetData($tInfo, 2, $hParent) - DllStructSetData($tInfo, 3, DllStructGetPtr($tInfo, 6)) - DllStructSetData($tInfo, 4, DllStructGetPtr($tInfo, 7)) - DllStructSetData($tInfo, 5, $hBitmap) - DllStructSetData($tInfo, 6, $sMessage) - DllStructSetData($tInfo, 7, $sCaption) - - Local $aRet = DllCall('credui.dll', 'dword', 'CredUIPromptForCredentialsW', 'struct*', $tInfo, 'wstr', $sTarget, 'ptr', 0, _ - 'dword', $iError, 'wstr', $sUser, 'ulong', 4096, 'wstr', $sPassword, 'ulong', 4096, 'bool*', $bSave, _ - 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $aResult[3] - $aResult[0] = $aRet[5] - $aResult[1] = $aRet[7] - $aResult[2] = $aRet[9] - Return $aResult -EndFunc ;==>_WinAPI_ShellUserAuthenticationDlg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellUserAuthenticationDlgEx($sCaption, $sMessage, $sUser, $sPassword, $iFlags = 0, $iAuthError = 0, $bSave = False, $iPackage = 0, $hParent = 0) - If Not __DLL('credui.dll') Then Return SetError(103, 0, 0) - - Local $tBLOB = 0, $aRet - If StringLen($sUser) Then - $aRet = DllCall('credui.dll', 'bool', 'CredPackAuthenticationBufferW', 'dword', 1, 'wstr', $sUser, 'wstr', $sPassword, _ - 'ptr', 0, 'dword*', 0) - If @error Or Not $aRet[5] Then Return SetError(@error + 10, @extended, 0) - $tBLOB = DllStructCreate('byte[' & $aRet[5] & ']') - $aRet = DllCall('credui.dll', 'bool', 'CredPackAuthenticationBufferW', 'dword', 1, 'wstr', $sUser, 'wstr', $sPassword, _ - 'struct*', $tBLOB, 'dword*', $aRet[5]) - If @error Or Not $aRet[0] Then Return SetError(@error + 20, @extended, 0) - EndIf - Local $tInfo = DllStructCreate('dword;hwnd;ptr;ptr;ptr;wchar[' & (StringLen($sMessage) + 1) & '];wchar[' & (StringLen($sCaption) + 1) & ']') - DllStructSetData($tInfo, 1, DllStructGetPtr($tInfo, 6) - DllStructGetPtr($tInfo)) - DllStructSetData($tInfo, 2, $hParent) - DllStructSetData($tInfo, 3, DllStructGetPtr($tInfo, 6)) - DllStructSetData($tInfo, 4, DllStructGetPtr($tInfo, 7)) - DllStructSetData($tInfo, 5, 0) - DllStructSetData($tInfo, 6, $sMessage) - DllStructSetData($tInfo, 7, $sCaption) - $aRet = DllCall('credui.dll', 'dword', 'CredUIPromptForWindowsCredentialsW', 'struct*', $tInfo, 'dword', $iAuthError, _ - 'ulong*', $iPackage, 'struct*', $tBLOB, 'ulong', DllStructGetSize($tBLOB), 'ptr*', 0, 'ulong*', 0, _ - 'bool*', $bSave, 'dword', $iFlags) - If @error Then Return SetError(@error + 30, @extended, 0) - If $aRet[0] Then Return SetError(30, $aRet[0], 0) - - Local $aResult[4], $iError = 0 - $aResult[2] = $aRet[8] - $aResult[3] = $aRet[3] - Local $pBLOB = $aRet[6] - Local $iSize = $aRet[7] - $aRet = DllCall('credui.dll', 'bool', 'CredUnPackAuthenticationBufferW', 'dword', 1, 'ptr', $pBLOB, 'dword', $iSize, _ - 'wstr', '', 'dword*', 4096, 'wstr', '', 'dword*', 4096, 'wstr', '', 'dword*', 4096) - If Not @error And $aRet[0] Then - $aResult[0] = $aRet[4] - $aResult[1] = $aRet[8] - Else - $iError = @error + 40 - EndIf - If Not _WinAPI_ZeroMemory($pBLOB, $iSize) Then - ; Nothing - EndIf - _WinAPI_CoTaskMemFree($pBLOB) - If $iError Then Return SetError($iError, 0, 0) - - Return $aResult -EndFunc ;==>_WinAPI_ShellUserAuthenticationDlgEx - -#EndRegion Public Functions - -#Region Internal Functions - -Func __OFNDlg($iDlg, $sTitle, $sInitDir, $sFilters, $iDefFilter, $sDefFile, $sDefExt, $iFlags, $iFlagsEx, $pOFNProc, $pData, $hParent) - Local $tBuffer = DllStructCreate('wchar[32768]') - Local $tFilters = 0, $tDefExt = 0, $tInitDir = 0, $tTitle = 0 - - Local $tOFN = DllStructCreate($tagOPENFILENAME) - DllStructSetData($tOFN, 1, DllStructGetSize($tOFN)) - DllStructSetData($tOFN, 2, $hParent) - DllStructSetData($tOFN, 3, 0) - Local $aData = StringSplit($sFilters, '|') - Local $aFilters[$aData[0] * 2] - Local $iCount = 0 - For $i = 1 To $aData[0] - $aFilters[$iCount + 0] = StringStripWS($aData[$i], $STR_STRIPLEADING + $STR_STRIPTRAILING) - $aFilters[$iCount + 1] = StringStripWS(StringRegExpReplace($aData[$i], '.*\((.*)\)', '\1'), $STR_STRIPALL) - If $aFilters[$iCount + 1] Then - $iCount += 2 - EndIf - Next - If $iCount Then - $tFilters = _WinAPI_ArrayToStruct($aFilters, 0, $iCount - 1) - If @error Then - ; Nothing - EndIf - EndIf - DllStructSetData($tOFN, 4, DllStructGetPtr($tFilters)) - DllStructSetData($tOFN, 5, 0) - DllStructSetData($tOFN, 6, 0) - DllStructSetData($tOFN, 7, $iDefFilter) - $sDefFile = StringStripWS($sDefFile, $STR_STRIPLEADING + $STR_STRIPTRAILING) - If $sDefFile Then - DllStructSetData($tBuffer, 1, $sDefFile) - EndIf - DllStructSetData($tOFN, 8, DllStructGetPtr($tBuffer)) - DllStructSetData($tOFN, 9, 32768) - DllStructSetData($tOFN, 10, 0) - DllStructSetData($tOFN, 11, 0) - $sInitDir = StringStripWS($sInitDir, $STR_STRIPLEADING + $STR_STRIPTRAILING) - If $sInitDir Then - $tInitDir = DllStructCreate('wchar[' & (StringLen($sInitDir) + 1) & ']') - EndIf - DllStructSetData($tInitDir, 1, $sInitDir) - DllStructSetData($tOFN, 12, DllStructGetPtr($tInitDir)) - $sTitle = StringStripWS($sTitle, $STR_STRIPLEADING + $STR_STRIPTRAILING) - If $sTitle Then - $tTitle = DllStructCreate('wchar[' & (StringLen($sTitle) + 1) & ']') - EndIf - DllStructSetData($tTitle, 1, $sTitle) - DllStructSetData($tOFN, 13, DllStructGetPtr($tTitle)) - DllStructSetData($tOFN, 14, $iFlags) - DllStructSetData($tOFN, 15, 0) - DllStructSetData($tOFN, 16, 0) - $sDefExt = StringStripWS($sDefExt, $STR_STRIPLEADING + $STR_STRIPTRAILING) - If $sDefExt Then - $tDefExt = DllStructCreate('wchar[' & (StringLen($tDefExt) + 1) & ']') - EndIf - DllStructSetData($tDefExt, 1, StringReplace($sDefExt, '.', '')) - DllStructSetData($tOFN, 17, DllStructGetPtr($tDefExt)) - DllStructSetData($tOFN, 18, $pData) - DllStructSetData($tOFN, 19, $pOFNProc) - DllStructSetData($tOFN, 20, 0) - DllStructSetData($tOFN, 21, 0) - DllStructSetData($tOFN, 22, 0) - DllStructSetData($tOFN, 23, $iFlagsEx) - Local $aRet - Switch $iDlg - Case 0 - $aRet = DllCall('comdlg32.dll', 'int', 'GetOpenFileNameW', 'struct*', $tOFN) - Case 1 - $aRet = DllCall('comdlg32.dll', 'int', 'GetSaveFileNameW', 'struct*', $tOFN) - Case Else - - EndSwitch - If @error Then Return SetError(@error, @extended, '') - If Not $aRet[0] Then Return SetError(10, _WinAPI_CommDlgExtendedErrorEx(), '') - If BitAND($iFlags, 0x00000200) Then - If BitAND($iFlags, 0x00080000) Then - $aData = _WinAPI_StructToArray($tBuffer) - If @error Then - Return SetError(11, 0, '') - EndIf - Else - $aData = StringSplit(DllStructGetData($tBuffer, 1), ' ') - EndIf - Switch $aData[0] - Case 0 - Return SetError(12, 0, '') - Case 1 - - Case Else - Local $sPath = $aData[1] - For $i = 2 To $aData[0] - $aData[$i - 1] = _WinAPI_PathAppend($sPath, $aData[$i]) - Next - ReDim $aData[$aData[0]] - $aData[0] -= 1 - EndSwitch - Else - $aData = DllStructGetData($tBuffer, 1) - EndIf - $__g_vExt = $tOFN - Return $aData -EndFunc ;==>__OFNDlg - -#EndRegion Internal Functions diff --git a/build/Include/WinAPIError.au3 b/build/Include/WinAPIError.au3 deleted file mode 100644 index d60dfb5a9..000000000 --- a/build/Include/WinAPIError.au3 +++ /dev/null @@ -1,61 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Windows API -; AutoIt Version : 3.3.14.2 -; Description ...: Windows API calls that have been translated to AutoIt functions. -; Author(s) .....: Paul Campbell (PaulIA) -; Dll ...........: kernel32.dll -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _WinAPI_GetLastError -; _WinAPI_SetLastError -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetLastError(Const $_iCurrentError = @error, Const $_iCurrentExtended = @extended) - Local $aResult = DllCall("kernel32.dll", "dword", "GetLastError") - Return SetError($_iCurrentError, $_iCurrentExtended, $aResult[0]) -EndFunc ;==>_WinAPI_GetLastError - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetLastError($iErrorCode, Const $_iCurrentError = @error, Const $_iCurrentExtended = @extended) - DllCall("kernel32.dll", "none", "SetLastError", "dword", $iErrorCode) - Return SetError($_iCurrentError, $_iCurrentExtended, Null) -EndFunc ;==>_WinAPI_SetLastError - -; #INTERNAL_USE_ONLY#============================================================================================================ -; Name ..........: __COMErrorFormating -; Description ...: Called when a COM error occurs and writes the error message with _DebugOut(). -; Syntax.........: __COMErrorFormating ( $oCOMError, $sLeading ) -; Parameters ....: $oCOMError - Error object -; $sPrefix - string to prefix each line -; Return values .: None -; Author ........: water -; Modified ......: jpm -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __COMErrorFormating($oCOMError, $sPrefix = @TAB) - Local Const $STR_STRIPTRAILING = 2 ; to avoid include just for one constant - Local $sError = "COM Error encountered in " & @ScriptName & " (" & $oCOMError.Scriptline & ") :" & @CRLF & _ - $sPrefix & "Number " & @TAB & "= 0x" & Hex($oCOMError.Number, 8) & " (" & $oCOMError.Number & ")" & @CRLF & _ - $sPrefix & "WinDescription" & @TAB & "= " & StringStripWS($oCOMError.WinDescription, $STR_STRIPTRAILING) & @CRLF & _ - $sPrefix & "Description " & @TAB & "= " & StringStripWS($oCOMError.Description, $STR_STRIPTRAILING) & @CRLF & _ - $sPrefix & "Source " & @TAB & "= " & $oCOMError.Source & @CRLF & _ - $sPrefix & "HelpFile " & @TAB & "= " & $oCOMError.HelpFile & @CRLF & _ - $sPrefix & "HelpContext " & @TAB & "= " & $oCOMError.HelpContext & @CRLF & _ - $sPrefix & "LastDllError " & @TAB & "= " & $oCOMError.LastDllError & @CRLF & _ - $sPrefix & "Retcode " & @TAB & "= 0x" & Hex($oCOMError.retcode) - - Return $sError -EndFunc ;==>__COMErrorFormating diff --git a/build/Include/WinAPIEx.au3 b/build/Include/WinAPIEx.au3 deleted file mode 100644 index 796ac4c8d..000000000 --- a/build/Include/WinAPIEx.au3 +++ /dev/null @@ -1,28 +0,0 @@ -#include-once - -#include "WinAPICom.au3" -#include "WinAPIDiag.au3" -#include "WinAPIDlg.au3" -#include "WinAPIFiles.au3" -#include "WinAPIGdi.au3" -#include "WinAPILocale.au3" -#include "WinAPIMisc.au3" -#include "WinAPIProc.au3" -#include "WinAPIReg.au3" -#include "WinAPIRes.au3" -#include "WinAPIShellEx.au3" -#include "WinAPIShPath.au3" -#include "WinAPISys.au3" -#include "WinAPITheme.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Additional variables, constants and functions for WinAPI.au3 -; Author(s) .....: Yashied -; Modified ......: Jpm (Splitted, invidivual include lead to less unused functions) -; Dwmapi.dll, Gdi32.dll, Gdiplus.dll, Kernel32.dll, Ntdll.dll, Ole32.dll, Oleaut32.dll -; Powrprof.dll, Psapi.dll, Sensapi.dll, Sfc.dll, Shell32.dll, Shlwapi.dll, User32.dll -; Userenv.dll, Uxtheme.dll, Version.dll, Winmm.dll, Winspool.drv -; =============================================================================================================================== diff --git a/build/Include/WinAPIFiles.au3 b/build/Include/WinAPIFiles.au3 deleted file mode 100644 index 20627ae4f..000000000 --- a/build/Include/WinAPIFiles.au3 +++ /dev/null @@ -1,1856 +0,0 @@ -#include-once - -#include "APIFilesConstants.au3" -#include "FileConstants.au3" -#include "WinAPIMisc.au3" -#include "WinAPIShPath.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIFiles.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -Global $__g_iHeapSize = 8388608 -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $tagDEVMODE = 'wchar DeviceName[32];ushort SpecVersion;ushort DriverVersion;ushort Size;ushort DriverExtra;dword Fields;short Orientation;short PaperSize;short PaperLength;short PaperWidth;short Scale;short Copies;short DefaultSource;short PrintQuality;short Color;short Duplex;short YResolution;short TTOption;short Collate;wchar FormName[32];ushort Unused1;dword Unused2[3];dword Nup;dword Unused3;dword ICMMethod;dword ICMIntent;dword MediaType;dword DitherType;dword Reserved1;dword Reserved2;dword PanningWidth;dword PanningHeight' -Global Const $tagDEVNAMES = 'ushort DriverOffset;ushort DeviceOffset;ushort OutputOffset;ushort Default' -Global Const $tagFILEINFO = 'uint64 CreationTime;uint64 LastAccessTime;uint64 LastWriteTime;uint64 ChangeTime;dword Attributes' -Global Const $tagFILE_ID_DESCRIPTOR = 'dword Size;uint Type;' & $tagGUID -Global Const $tagWIN32_FIND_STREAM_DATA = 'int64 StreamSize;wchar StreamName[296]' -Global Const $tagWIN32_STREAM_ID = 'dword StreamId;dword StreamAttributes;int64 Size;dword StreamNameSize;wchar StreamName[1]' -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_BackupRead -; _WinAPI_BackupReadAbort -; _WinAPI_BackupSeek -; _WinAPI_BackupWrite -; _WinAPI_BackupWriteAbort -; _WinAPI_CopyFileEx -; _WinAPI_CreateDirectory -; _WinAPI_CreateDirectoryEx -; _WinAPI_CreateFileEx -; _WinAPI_CreateFileMapping -; _WinAPI_CreateHardLink -; _WinAPI_CreateObjectID -; _WinAPI_CreateSymbolicLink -; _WinAPI_DecryptFile -; _WinAPI_DefineDosDevice -; _WinAPI_DeleteFile -; _WinAPI_DeleteObjectID -; _WinAPI_DeleteVolumeMountPoint -; _WinAPI_DeviceIoControl -; _WinAPI_DuplicateEncryptionInfoFile -; _WinAPI_EjectMedia -; _WinAPI_EncryptFile -; _WinAPI_EncryptionDisable -; _WinAPI_EnumFiles -; _WinAPI_EnumFileStreams -; _WinAPI_EnumHardLinks -; _WinAPI_FileEncryptionStatus -; _WinAPI_FileExists -; _WinAPI_FileInUse -; _WinAPI_FindClose -; _WinAPI_FindCloseChangeNotification -; _WinAPI_FindFirstChangeNotification -; _WinAPI_FindFirstFile -; _WinAPI_FindFirstFileName -; _WinAPI_FindFirstStream -; _WinAPI_FindNextChangeNotification -; _WinAPI_FindNextFile -; _WinAPI_FindNextFileName -; _WinAPI_FindNextStream -; _WinAPI_FlushViewOfFile -; _WinAPI_GetBinaryType -; _WinAPI_GetCDType -; _WinAPI_GetCompressedFileSize -; _WinAPI_GetCompression -; _WinAPI_GetCurrentDirectory -; _WinAPI_GetDiskFreeSpaceEx -; _WinAPI_GetDriveBusType -; _WinAPI_GetDriveGeometryEx -; _WinAPI_GetDriveNumber -; _WinAPI_GetDriveType -; _WinAPI_GetFileAttributes -; _WinAPI_GetFileID -; _WinAPI_GetFileInformationByHandle -; _WinAPI_GetFileInformationByHandleEx -; _WinAPI_GetFilePointerEx -; _WinAPI_GetFileSizeOnDisk -; _WinAPI_GetFileTitle -; _WinAPI_GetFileType -; _WinAPI_GetFinalPathNameByHandle -; _WinAPI_GetFinalPathNameByHandleEx -; _WinAPI_GetFullPathName -; _WinAPI_GetLogicalDrives -; _WinAPI_GetObjectID -; _WinAPI_GetPEType -; _WinAPI_GetProfilesDirectory -; _WinAPI_GetTempFileName -; _WinAPI_GetVolumeInformation -; _WinAPI_GetVolumeInformationByHandle -; _WinAPI_GetVolumeNameForVolumeMountPoint -; _WinAPI_IOCTL -; _WinAPI_IsDoorOpen -; _WinAPI_IsPathShared -; _WinAPI_IsWritable -; _WinAPI_LoadMedia -; _WinAPI_LockDevice -; _WinAPI_LockFile -; _WinAPI_MapViewOfFile -; _WinAPI_MoveFileEx -; _WinAPI_OpenFileById -; _WinAPI_OpenFileMapping -; _WinAPI_PathIsDirectory -; _WinAPI_PathIsDirectoryEmpty -; _WinAPI_QueryDosDevice -; _WinAPI_ReadDirectoryChanges -; _WinAPI_RemoveDirectory -; _WinAPI_ReOpenFile -; _WinAPI_ReplaceFile -; _WinAPI_SearchPath -; _WinAPI_SetCompression -; _WinAPI_SetCurrentDirectory -; _WinAPI_SetFileAttributes -; _WinAPI_SetFileInformationByHandleEx -; _WinAPI_SetFilePointerEx -; _WinAPI_SetFileShortName -; _WinAPI_SetFileValidData -; _WinAPI_SetSearchPathMode -; _WinAPI_SetVolumeMountPoint -; _WinAPI_SfcIsFileProtected -; _WinAPI_UnlockFile -; _WinAPI_UnmapViewOfFile -; _WinAPI_Wow64EnableWow64FsRedirection -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BackupRead($hFile, $pBuffer, $iLength, ByRef $iBytes, ByRef $pContext, $bSecurity = False) - $iBytes = 0 - - Local $aRet = DllCall('kernel32.dll', 'bool', 'BackupRead', 'handle', $hFile, 'struct*', $pBuffer, 'dword', $iLength, _ - 'dword*', 0, 'bool', 0, 'bool', $bSecurity, 'ptr*', $pContext) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - $iBytes = $aRet[4] - $pContext = $aRet[7] - Return $aRet[0] -EndFunc ;==>_WinAPI_BackupRead - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BackupReadAbort(ByRef $pContext) - Local $aRet = DllCall('kernel32.dll', 'bool', 'BackupRead', 'handle', 0, 'ptr', 0, 'dword', 0, 'dword*', 0, 'bool', 1, _ - 'bool', 0, 'ptr*', $pContext) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - $pContext = $aRet[7] - Return $aRet[0] -EndFunc ;==>_WinAPI_BackupReadAbort - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BackupSeek($hFile, $iSeek, ByRef $iBytes, ByRef $pContext) - $iBytes = 0 - - Local $aRet = DllCall('kernel32.dll', 'bool', 'BackupSeek', 'handle', $hFile, 'dword', _WinAPI_LoDWord($iSeek), _ - 'dword', _WinAPI_HiDWord($iSeek), 'dword*', 0, 'dword*', 0, 'ptr*', $pContext) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - $iBytes = __WinAPI_MakeQWord($aRet[4], $aRet[5]) - $pContext = $aRet[6] - Return $aRet[0] -EndFunc ;==>_WinAPI_BackupSeek - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BackupWrite($hFile, $pBuffer, $iLength, ByRef $iBytes, ByRef $pContext, $bSecurity = False) - $iBytes = 0 - - Local $aRet = DllCall('kernel32.dll', 'bool', 'BackupWrite', 'handle', $hFile, 'struct*', $pBuffer, 'dword', $iLength, _ - 'dword*', 0, 'bool', 0, 'bool', $bSecurity, 'ptr*', $pContext) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - $iBytes = $aRet[4] - $pContext = $aRet[7] - Return $aRet[0] -EndFunc ;==>_WinAPI_BackupWrite - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BackupWriteAbort(ByRef $pContext) - Local $aRet = DllCall('kernel32.dll', 'bool', 'BackupWrite', 'handle', 0, 'ptr', 0, 'dword', 0, 'dword*', 0, 'bool', 1, _ - 'bool', 0, 'ptr*', $pContext) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - $pContext = $aRet[7] - Return $aRet[0] -EndFunc ;==>_WinAPI_BackupWriteAbort - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CopyFileEx($sExistingFile, $sNewFile, $iFlags = 0, $pProgressProc = 0, $pData = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'CopyFileExW', 'wstr', $sExistingFile, 'wstr', $sNewFile, _ - 'ptr', $pProgressProc, 'struct*', $pData, 'bool*', 0, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CopyFileEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateDirectory($sDir, $tSecurity = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'CreateDirectoryW', 'wstr', $sDir, 'struct*', $tSecurity) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateDirectoryEx($sNewDir, $sTemplateDir, $tSecurity = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'CreateDirectoryExW', 'wstr', $sTemplateDir, 'wstr', $sNewDir, 'struct*', $tSecurity) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateDirectoryEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateFileEx($sFilePath, $iCreation, $iAccess = 0, $iShare = 0, $iFlagsAndAttributes = 0, $tSecurity = 0, $hTemplate = 0) - Local $aRet = DllCall('kernel32.dll', 'handle', 'CreateFileW', 'wstr', $sFilePath, 'dword', $iAccess, 'dword', $iShare, _ - 'struct*', $tSecurity, 'dword', $iCreation, 'dword', $iFlagsAndAttributes, 'handle', $hTemplate) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = Ptr(-1) Then Return SetError(10, _WinAPI_GetLastError(), 0) ; $INVALID_HANDLE_VALUE - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateFileEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_CreateFileMapping($hFile, $iSize = 0, $sName = '', $iProtect = 0x0004, $tSecurity = 0) - Local $sTypeOfName = 'wstr' - If Not StringStripWS($sName, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfName = 'ptr' - $sName = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'handle', 'CreateFileMappingW', 'handle', $hFile, 'struct*', $tSecurity, _ - 'dword', $iProtect, 'dword', _WinAPI_HiDWord($iSize), 'dword', _WinAPI_LoDWord($iSize), _ - $sTypeOfName, $sName) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return SetExtended(_WinAPI_GetLastError(), $aRet[0]) ; ERROR_ALREADY_EXISTS -EndFunc ;==>_WinAPI_CreateFileMapping - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateHardLink($sNewFile, $sExistingFile) - Local $aRet = DllCall('kernel32.dll', 'bool', 'CreateHardLinkW', 'wstr', $sNewFile, 'wstr', $sExistingFile, 'ptr', 0) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateHardLink - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateObjectID($sFilePath) - ; Local Const $FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 - Local $hFile = _WinAPI_CreateFileEx($sFilePath, $OPEN_EXISTING, 0, $FILE_SHARE_READWRITE, $FILE_FLAG_BACKUP_SEMANTICS) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $tFOID = DllStructCreate('byte[16];byte[48]') - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x000900C0, 'ptr', 0, _ - 'dword', 0, 'struct*', $tFOID, 'dword', DllStructGetSize($tFOID), 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, 0) - - Local $tGUID = DllStructCreate($tagGUID) - _WinAPI_MoveMemory($tGUID, $tFOID, 16) - ; Return SetError(3, 0, 0) ; cannot really occur - ; EndIf - Return $tGUID -EndFunc ;==>_WinAPI_CreateObjectID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_CreateSymbolicLink($sSymlink, $sTarget, $bDirectory = False) - If $bDirectory Then - $bDirectory = 1 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'boolean', 'CreateSymbolicLinkW', 'wstr', $sSymlink, 'wstr', $sTarget, 'dword', $bDirectory) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateSymbolicLink - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DecryptFile($sFilePath) - Local $aRet = DllCall('advapi32.dll', 'bool', 'DecryptFileW', 'wstr', $sFilePath, 'dword', 0) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DecryptFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DefineDosDevice($sDevice, $iFlags, $sFilePath = '') - Local $sTypeOfPath = 'wstr' - If Not StringStripWS($sFilePath, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfPath = 'ptr' - $sFilePath = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DefineDosDeviceW', 'dword', $iFlags, 'wstr', $sDevice, $sTypeOfPath, $sFilePath) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DefineDosDevice - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DeleteFile($sFilePath) - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeleteFileW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DeleteFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DeleteObjectID($sFilePath) - ; Local Const $FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 - Local $hFile = _WinAPI_CreateFileEx($sFilePath, $OPEN_EXISTING, $GENERIC_WRITE, $FILE_SHARE_READWRITE, $FILE_FLAG_BACKUP_SEMANTICS) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x000900A0, 'ptr', 0, _ - 'dword', 0, 'ptr', 0, 'dword', 0, 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_DeleteObjectID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DeleteVolumeMountPoint($sMountedPath) - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeleteVolumeMountPointW', 'wstr', $sMountedPath) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DeleteVolumeMountPoint - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DeviceIoControl($hDevice, $iControlCode, $pInBuffer = 0, $iInBufferSize = 0, $pOutBuffer = 0, $iOutBufferSize = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hDevice, 'dword', $iControlCode, _ - 'struct*', $pInBuffer, 'dword', $iInBufferSize, 'struct*', $pOutBuffer, 'dword', $iOutBufferSize, _ - 'dword*', 0, 'ptr', 0) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return SetExtended($aRet[7], $aRet[0]) -EndFunc ;==>_WinAPI_DeviceIoControl - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DuplicateEncryptionInfoFile($sSrcFilePath, $sDestFilePath, $iCreation = 2, $iAttributes = 0, $tSecurity = 0) - Local $aRet = DllCall('advapi32.dll', 'dword', 'DuplicateEncryptionInfoFile', 'wstr', $sSrcFilePath, 'wstr', $sDestFilePath, _ - 'dword', $iCreation, 'dword', $iAttributes, 'struct*', $tSecurity) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DuplicateEncryptionInfoFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EjectMedia($sDrive) - Local $hFile = _WinAPI_CreateFileEx('\\.\' & $sDrive, $OPEN_EXISTING, $GENERIC_READ, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x002D4808, 'ptr', 0, _ - 'dword', 0, 'ptr', 0, 'dword', 0, 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_EjectMedia - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_EncryptFile($sFilePath) - Local $aRet = DllCall('advapi32.dll', 'bool', 'EncryptFileW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_EncryptFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_EncryptionDisable($sDir, $bDisable) - Local $aRet = DllCall('advapi32.dll', 'bool', 'EncryptionDisable', 'wstr', $sDir, 'bool', $bDisable) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_EncryptionDisable - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumFiles($sDir, $iFlag = 0, $sTemplate = '', $bExclude = False) - Local $aRet = 0, $iError = 0 - Local $aData[501][7] = [[0]] - - ; Local Const $FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 - Local $hDir = _WinAPI_CreateFileEx($sDir, $OPEN_EXISTING, 0x00000001, $FILE_SHARE_ANY, $FILE_FLAG_BACKUP_SEMANTICS) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $pBuffer = __HeapAlloc($__g_iHeapSize) - If @error Then - $iError = @error - Else - Local $tIOSB = DllStructCreate('ptr;ulong_ptr') - $aRet = DllCall('ntdll.dll', 'uint', 'ZwQueryDirectoryFile', 'handle', $hDir, 'ptr', 0, 'ptr', 0, 'ptr', 0, _ - 'struct*', $tIOSB, 'struct*', $pBuffer, 'ulong', 8388608, 'uint', 1, 'boolean', 0, 'ptr', 0, 'boolean', 1) - If @error Or $aRet[0] Then - $iError = @error + 40 - EndIf - EndIf - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hDir) - If $iError Then - __HeapFree($pBuffer, 1) - If IsArray($aRet) Then - Return SetError(10, $aRet[0], 0) - Else - Return SetError($iError, 0, 0) - EndIf - EndIf - - Local $tFDI, $iAttrib, $sTarget, $iLength = 0, $iOffset = 0 - Do - $iLength += $iOffset - $tFDI = DllStructCreate('ulong;ulong;int64;int64;int64;int64;int64;int64;ulong;ulong;wchar[' & (DllStructGetData(DllStructCreate('ulong', $pBuffer + $iLength + 60), 1) / 2) & ']', $pBuffer + $iLength) - $sTarget = DllStructGetData($tFDI, 11) - $iAttrib = DllStructGetData($tFDI, 9) - $iOffset = DllStructGetData($tFDI, 1) - Switch $sTarget - Case '.', '..' - ContinueLoop - Case Else - Switch $iFlag - Case 1, 2 - If BitAND($iAttrib, 0x00000010) Then - If $iFlag = 1 Then - ContinueLoop - EndIf - Else - If $iFlag = 2 Then - ContinueLoop - EndIf - EndIf - EndSwitch - If $sTemplate Then - $aRet = DllCall('shlwapi.dll', 'int', 'PathMatchSpecW', 'wstr', $sTarget, 'wstr', $sTemplate) - If @error Or ($aRet[0] And $bExclude) Or (Not $aRet[0] And Not $bExclude) Then - ContinueLoop - EndIf - EndIf - EndSwitch - __Inc($aData, 500) - $aData[$aData[0][0]][0] = $sTarget - $aData[$aData[0][0]][1] = DllStructGetData($tFDI, 3) - $aData[$aData[0][0]][2] = DllStructGetData($tFDI, 4) - $aData[$aData[0][0]][3] = DllStructGetData($tFDI, 5) - $aData[$aData[0][0]][4] = DllStructGetData($tFDI, 7) - $aData[$aData[0][0]][5] = DllStructGetData($tFDI, 8) - $aData[$aData[0][0]][6] = $iAttrib - Until Not $iOffset - __HeapFree($pBuffer) - __Inc($aData, -1) - Return $aData -EndFunc ;==>_WinAPI_EnumFiles - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumFileStreams($sFilePath) - Local $tData = DllStructCreate('byte[32768]') - Local $pData = DllStructGetPtr($tData) - Local $aData[101][2] = [[0]] - - ; Local Const $FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 - Local $hFile = _WinAPI_CreateFileEx($sFilePath, $OPEN_EXISTING, 0, $FILE_SHARE_READWRITE, $FILE_FLAG_BACKUP_SEMANTICS) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $iError = 0; JPM: ???? - Local $tIOSB = DllStructCreate('ptr;ulong_ptr') - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQueryInformationFile', 'handle', $hFile, 'struct*', $tIOSB, 'ptr', $pData, _ - 'ulong', 32768, 'uint', 22) - If @error Then $iError = @error - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hFile) - If $iError Then Return SetError($iError, 0, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $tFSI, $iLength = 0, $iOffset = 0 - Do - $iLength += $iOffset - $tFSI = DllStructCreate('ulong;ulong;int64;int64;wchar[' & (DllStructGetData(DllStructCreate('ulong', $pData + $iLength + 4), 1) / 2) & ']', $pData + $iLength) - __Inc($aData) - $aData[$aData[0][0]][0] = DllStructGetData($tFSI, 5) - $aData[$aData[0][0]][1] = DllStructGetData($tFSI, 3) - $iOffset = DllStructGetData($tFSI, 1) - Until Not $iOffset - __Inc($aData, -1) - Return $aData -EndFunc ;==>_WinAPI_EnumFileStreams - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumHardLinks($sFilePath) - Local $tData = DllStructCreate('byte[32768]') - Local $pData = DllStructGetPtr($tData) - - Local $hFile = _WinAPI_CreateFileEx($sFilePath, $OPEN_EXISTING, 0, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $iError = 0 - Local $tIOSB = DllStructCreate('ptr;ulong_ptr') - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQueryInformationFile', 'handle', $hFile, 'struct*', $tIOSB, 'ptr', $pData, _ - 'ulong', 32768, 'uint', 46) - If @error Or $aRet[0] Then - $iError = @error + 10 - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hFile) - If $aRet Then Return SetError($iError, 0, 0) - If $aRet[0] Then Return SetError(10, $iError, 0) - EndIf - - Local $iCount = DllStructGetData(DllStructCreate('ulong;ulong', $pData), 2) - Local $aData[$iCount + 1] = [$iCount] - Local $tFLEI, $hPath, $sPath, $iLength = 8 - For $i = 1 To $iCount - $tFLEI = DllStructCreate('ulong;int64;ulong;wchar[' & (DllStructGetData(DllStructCreate('ulong', $pData + $iLength + 16), 1)) & ']', $pData + $iLength) - $iError = 0 - Do - $hPath = _WinAPI_OpenFileById($hFile, DllStructGetData($tFLEI, 2), 0x00100080, $FILE_SHARE_READWRITE, $FILE_FLAG_BACKUP_SEMANTICS) - If @error Then - $iError = @error + 100 - ExitLoop - EndIf - $sPath = _WinAPI_GetFinalPathNameByHandleEx($hPath) - If @error Then - $iError = @error + 200 - ExitLoop - EndIf - Until 1 - If $hPath Then - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hPath) - EndIf - If $iError Then ExitLoop - - $aData[$i] = _WinAPI_PathAppend($sPath, DllStructGetData($tFLEI, 4)) - $iLength += DllStructGetData($tFLEI, 1) - Next - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hFile) - If $iError Then Return SetError($iError, 0, 0) - - Return $aData -EndFunc ;==>_WinAPI_EnumHardLinks - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FileEncryptionStatus($sFilePath) - Local $aRet = DllCall('advapi32.dll', 'bool', 'FileEncryptionStatusW', 'wstr', $sFilePath, 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, -1) - - Return $aRet[2] -EndFunc ;==>_WinAPI_FileEncryptionStatus - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FileExists($sFilePath) - If Not FileExists($sFilePath) Then Return 0 - If _WinAPI_PathIsDirectory($sFilePath) Then Return SetExtended(1, 0) - - Return 1 -EndFunc ;==>_WinAPI_FileExists - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FileInUse($sFilePath) - Local $hFile = _WinAPI_CreateFileEx($sFilePath, $OPEN_EXISTING, $GENERIC_READ) - If @error Then - If @extended = 32 Then Return 1 ; ERROR_SHARING_VIOLATION - Return SetError(@error, @extended, 0) - EndIf - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hFile) - Return 0 -EndFunc ;==>_WinAPI_FileInUse - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FindClose($hSearch) - Local $aRet = DllCall('kernel32.dll', 'bool', 'FindClose', 'handle', $hSearch) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindClose - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FindCloseChangeNotification($hChange) - Local $aRet = DllCall('kernel32.dll', 'bool', 'FindCloseChangeNotification', 'handle', $hChange) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindCloseChangeNotification - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FindFirstChangeNotification($sDirectory, $iFlags, $bSubtree = False) - Local $aRet = DllCall('kernel32.dll', 'handle', 'FindFirstChangeNotificationW', 'wstr', $sDirectory, 'bool', $bSubtree, _ - 'dword', $iFlags) - If @error Or ($aRet[0] = Ptr(-1)) Then Return SetError(@error + 10, @extended, 0) ; $INVALID_HANDLE_VALUE - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindFirstChangeNotification - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FindFirstFile($sFilePath, $tData) - Local $aRet = DllCall('kernel32.dll', 'handle', 'FindFirstFileW', 'wstr', $sFilePath, 'struct*', $tData) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = Ptr(-1) Then Return SetError(10, _WinAPI_GetLastError(), 0); $INVALID_HANDLE_VALUE - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindFirstFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FindFirstFileName($sFilePath, ByRef $sLink) - $sLink = '' - - Local $aRet = DllCall('kernel32.dll', 'handle', 'FindFirstFileNameW', 'wstr', $sFilePath, 'dword', 0, 'dword*', 4096, 'wstr', '') - If @error Or ($aRet[0] = Ptr(-1)) Then Return SetError(@error + 10, @extended, 0) ; $INVALID_HANDLE_VALUE - - $sLink = $aRet[4] - Return $aRet[0] -EndFunc ;==>_WinAPI_FindFirstFileName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FindFirstStream($sFilePath, $tData) - Local $aRet = DllCall('kernel32.dll', 'handle', 'FindFirstStreamW', 'wstr', $sFilePath, 'uint', 0, 'struct*', $tData, 'dword', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = Ptr(-1) Then Return SetError(10, _WinAPI_GetLastError(), 0) ; $INVALID_HANDLE_VALUE - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindFirstStream - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FindNextChangeNotification($hChange) - Local $aRet = DllCall('kernel32.dll', 'bool', 'FindNextChangeNotification', 'handle', $hChange) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindNextChangeNotification - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FindNextFile($hSearch, $tData) - Local $aRet = DllCall('kernel32.dll', 'bool', 'FindNextFileW', 'handle', $hSearch, 'struct*', $tData) - If @error Then Return SetError(@error, @extended, False) - If Not $aRet[0] Then Return SetError(10, _WinAPI_GetLastError(), 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindNextFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FindNextFileName($hSearch, ByRef $sLink) - $sLink = '' - - Local $aRet = DllCall('kernel32.dll', 'bool', 'FindNextFileNameW', 'handle', $hSearch, 'dword*', 4096, 'wstr', '') - If @error Then Return SetError(@error, @extended, False) - If Not $aRet[0] Then Return SetError(10, _WinAPI_GetLastError(), 0) - - $sLink = $aRet[3] - Return $aRet[0] -EndFunc ;==>_WinAPI_FindNextFileName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FindNextStream($hSearch, $tData) - Local $aRet = DllCall('kernel32.dll', 'bool', 'FindNextStreamW', 'handle', $hSearch, 'struct*', $tData) - If @error Then Return SetError(@error, @extended, False) - If Not $aRet[0] Then Return SetError(10, _WinAPI_GetLastError(), 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindNextStream - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FlushViewOfFile($pAddress, $iBytes = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'FlushViewOfFile', 'struct*', $pAddress, 'dword', $iBytes) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FlushViewOfFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetBinaryType($sFilePath) - Local $aRet = DllCall('kernel32.dll', 'int', 'GetBinaryTypeW', 'wstr', $sFilePath, 'dword*', 0) - If @error Then Return SetError(@error, @extended, 0) - If Not $aRet[0] Then $aRet[2] = 0 - - Return SetExtended($aRet[2], $aRet[0]) -EndFunc ;==>_WinAPI_GetBinaryType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetCDType($sDrive) - Local $hFile = _WinAPI_CreateFileEx('\\.\' & $sDrive, $OPEN_EXISTING, $GENERIC_READWRITE, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $tagSCSI_PASS_THROUGH = 'struct;ushort Length;byte ScsiStatus;byte PathId;byte TargetId;byte Lun;byte CdbLength;byte SenseInfoLength;byte DataIn;ulong DataTransferLength;ulong TimeOutValue;ulong_ptr DataBufferOffset;ulong SenseInfoOffset;byte Cdb[16];endstruct' - Local $tSPT = DllStructCreate($tagSCSI_PASS_THROUGH & ';byte Hdr[8]') - Local $tCDB = DllStructCreate('byte;byte;byte[2];byte[3];byte[2];byte;byte[2];byte[4]', DllStructGetPtr($tSPT, 'Cdb')) - Local $tHDR = DllStructCreate('byte[4];byte;byte;byte[2]', DllStructGetPtr($tSPT, 'Hdr')) - Local $iSize = DllStructGetPtr($tSPT, 'Hdr') - DllStructGetPtr($tSPT) - - DllStructSetData($tSPT, 'Length', $iSize) - DllStructSetData($tSPT, 'ScsiStatus', 0) - DllStructSetData($tSPT, 'PathId', 0) - DllStructSetData($tSPT, 'TargetId', 0) - DllStructSetData($tSPT, 'Lun', 0) - DllStructSetData($tSPT, 'CdbLength', 12) - DllStructSetData($tSPT, 'SenseInfoLength', 0) - DllStructSetData($tSPT, 'DataIn', 1) - DllStructSetData($tSPT, 'DataTransferLength', 8) - DllStructSetData($tSPT, 'TimeOutValue', 86400) - DllStructSetData($tSPT, 'DataBufferOffset', $iSize) - DllStructSetData($tSPT, 'SenseInfoOffset', 0) - - DllStructSetData($tCDB, 1, 0x46) - DllStructSetData($tCDB, 2, 0) - DllStructSetData($tCDB, 3, 0, 1) - DllStructSetData($tCDB, 3, 0, 2) - DllStructSetData($tCDB, 5, 0, 1) - DllStructSetData($tCDB, 5, 8, 2) - DllStructSetData($tCDB, 6, 0) - DllStructSetData($tCDB, 7, 0, 1) - DllStructSetData($tCDB, 7, 0, 2) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x0004D004, 'struct*', $tSPT, _ - 'dword', $iSize, 'struct*', $tSPT, 'dword', DllStructGetSize($tSPT), 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, 0) - - Return BitOR(BitShift(DllStructGetData($tHDR, 4, 1), -8), DllStructGetData($tHDR, 4, 2)) -EndFunc ;==>_WinAPI_GetCDType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetCompressedFileSize($sFilePath) - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetCompressedFileSizeW', 'wstr', $sFilePath, 'dword*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = -1 Then - Local $iLastError = _WinAPI_GetLastError() - If $aRet[2] = 0 Then Return SetError(10, $iLastError, 0) - If $iLastError Then Return SetError(11, $iLastError, 0) - EndIf - - Return __WinAPI_MakeQWord($aRet[0], $aRet[2]) -EndFunc ;==>_WinAPI_GetCompressedFileSize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetCompression($sFilePath) - ; Local Const $FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 - Local $hFile = _WinAPI_CreateFileEx($sFilePath, $OPEN_EXISTING, $GENERIC_READ, $FILE_SHARE_READWRITE, $FILE_FLAG_BACKUP_SEMANTICS) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x0009003C, 'ptr', 0, 'dword', 0, _ - 'ushort*', 0, 'dword', 2, 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, -1) - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetCompression - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetCurrentDirectory() - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetCurrentDirectoryW', 'dword', 4096, 'wstr', '') - If @error Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0,'') - - Return SetExtended($aRet[0], $aRet[2]) -EndFunc ;==>_WinAPI_GetCurrentDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetDiskFreeSpaceEx($sDrive) - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetDiskFreeSpaceEx', 'str', $sDrive, 'int64*', 0, 'int64*', 0, 'int64*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[3] - For $i = 0 To 2 - $aResult[$i] = $aRet[$i + 2] - Next - Return $aResult -EndFunc ;==>_WinAPI_GetDiskFreeSpaceEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetDriveBusType($sDrive) - Local $hFile = _WinAPI_CreateFileEx('\\.\' & $sDrive, $OPEN_EXISTING, 0, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, -1) - - Local $tagSTORAGE_PROPERTY_QUERY = 'ulong PropertyId;ulong QueryType;byte AdditionalParameters[1]' - Local $tSPQ = DllStructCreate($tagSTORAGE_PROPERTY_QUERY) - Local $tSDD = DllStructCreate('ulong Version;ulong Size;byte DeviceType;byte DeviceTypeModifier;byte RemovableMedia;byte CommandQueueing;ulong VendorIdOffset;ulong ProductIdOffset;ulong ProductRevisionOffset;ulong SerialNumberOffset;ulong BusType;ulong RawPropertiesLength;byte RawDeviceProperties[1]') - - DllStructSetData($tSPQ, 'PropertyId', 0) - DllStructSetData($tSPQ, 'QueryType', 0) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x002D1400, 'struct*', $tSPQ, _ - 'dword', DllStructGetSize($tSPQ), 'struct*', $tSDD, 'dword', DllStructGetSize($tSDD), _ - 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, -1) - - Return DllStructGetData($tSDD, 'BusType') -EndFunc ;==>_WinAPI_GetDriveBusType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetDriveGeometryEx($iDrive) - Local $hFile = _WinAPI_CreateFileEx('\\.\PhysicalDrive' & $iDrive, $OPEN_EXISTING, 0, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $tDGEX = DllStructCreate('uint64;dword;dword;dword;dword;uint64') - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x000700A0, 'ptr', 0, _ - 'dword', 0, 'struct*', $tDGEX, 'dword', DllStructGetSize($tDGEX), 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, 0) - - Local $aResult[6] - For $i = 0 To 5 - $aResult[$i] = DllStructGetData($tDGEX, $i + 1) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetDriveGeometryEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetDriveNumber($sDrive) - Local $hFile = _WinAPI_CreateFileEx('\\.\' & $sDrive, $OPEN_EXISTING, 0, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $tSDN = DllStructCreate('dword;ulong;ulong') - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x002D1080, 'ptr', 0, _ - 'dword', 0, 'struct*', $tSDN, 'dword', DllStructGetSize($tSDN), 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, 0) - - Local $aResult[3] - For $i = 0 To 2 - $aResult[$i] = DllStructGetData($tSDN, $i + 1) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetDriveNumber - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetDriveType($sDrive = '') - Local $iTypeOfDrive = 'str' - If Not StringStripWS($sDrive, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $iTypeOfDrive = 'ptr' - $sDrive = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'uint', 'GetDriveType', $iTypeOfDrive, $sDrive) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetDriveType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetFileAttributes($sFilePath) - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetFileAttributesW', 'wstr', $sFilePath) - If @error Or ($aRet[0] = 4294967295) Then Return SetError(@error, @extended, 0) - ; If $aRet[0] = 4294967295Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetFileAttributes - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetFileID($hFile) - Local $tIOSB = DllStructCreate('ptr;ulong_ptr') - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQueryInformationFile', 'handle', $hFile, 'struct*', $tIOSB, 'int64*', 0, _ - 'ulong', 8, 'uint', 6) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetFileID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetFileInformationByHandle($hFile) - Local $tBHFI = DllStructCreate('dword;dword[2];dword[2];dword[2];dword;dword;dword;dword;dword;dword') - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetFileInformationByHandle', 'handle', $hFile, 'struct*', $tBHFI) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[8] - $aResult[0] = DllStructGetData($tBHFI, 1) - For $i = 1 To 3 - If DllStructGetData($tBHFI, $i + 1) Then - $aResult[$i] = DllStructCreate($tagFILETIME) - _WinAPI_MoveMemory($aResult[$i], DllStructGetPtr($tBHFI, $i + 1), 8) - ; Return SetError(@error + 10, @extended, 0) ; cannot really occur - ; EndIf - Else - $aResult[$i] = 0 - EndIf - Next - $aResult[4] = DllStructGetData($tBHFI, 5) - $aResult[5] = __WinAPI_MakeQWord(DllStructGetData($tBHFI, 7), DllStructGetData($tBHFI, 6)) - $aResult[6] = DllStructGetData($tBHFI, 8) - $aResult[7] = __WinAPI_MakeQWord(DllStructGetData($tBHFI, 9), DllStructGetData($tBHFI, 10)) - Return $aResult -EndFunc ;==>_WinAPI_GetFileInformationByHandle - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetFileInformationByHandleEx($hFile) - Local $tFI = DllStructCreate($tagFILEINFO) - Local $tIOSB = DllStructCreate('ptr;ulong_ptr') - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQueryInformationFile', 'handle', $hFile, 'struct*', $tIOSB, 'struct*', $tFI, _ - 'ulong', DllStructGetSize($tFI), 'uint', 4) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tFI -EndFunc ;==>_WinAPI_GetFileInformationByHandleEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetFilePointerEx($hFile) - Local $tIOSB = DllStructCreate('ptr;ulong_ptr') - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQueryInformationFile', 'handle', $hFile, 'struct*', $tIOSB, 'int64*', 0, _ - 'ulong', 8, 'uint', 14) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetFilePointerEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetFileSizeOnDisk($sFilePath) - Local $iSize = FileGetSize($sFilePath) - If @error Then Return SetError(@error + 10, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetDiskFreeSpaceW', _ - 'wstr', _WinAPI_PathStripToRoot(_WinAPI_GetFullPathName($sFilePath)), 'dword*', 0, 'dword*', 0, _ - 'dword*', 0, 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return Ceiling($iSize / ($aRet[2] * $aRet[3])) * ($aRet[2] * $aRet[3]) -EndFunc ;==>_WinAPI_GetFileSizeOnDisk - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetFileTitle($sFilePath) - Local $aRet = DllCall('comdlg32.dll', 'short', 'GetFileTitleW', 'wstr', $sFilePath, 'wstr', '', 'word', 4096) - If @error Or $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetFileTitle - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetFileType($hFile) - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetFileType', 'handle', $hFile) - If @error Then Return SetError(@error, @extended, -1) - Local $iLastError = _WinAPI_GetLastError() - If Not $aRet[0] And $iLastError Then Return SetError(10, $iLastError, -1) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetFileType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetFinalPathNameByHandle($hFile) - Local $tFNI = DllStructCreate('ulong;wchar[4096]') - Local $tIOSB = DllStructCreate('ptr;ulong_ptr') - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQueryInformationFile', 'handle', $hFile, 'struct*', $tIOSB, 'struct*', $tFNI, _ - 'ulong', DllStructGetSize($tFNI), 'uint', 9) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - Local $iLength = DllStructGetData($tFNI, 1) - If Not $iLength Then Return SetError(12, 0, '') - - Return DllStructGetData(DllStructCreate('wchar[' & ($iLength / 2) & ']', DllStructGetPtr($tFNI, 2)), 1) -EndFunc ;==>_WinAPI_GetFinalPathNameByHandle - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetFinalPathNameByHandleEx($hFile, $iFlags = 0) - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetFinalPathNameByHandleW', 'handle', $hFile, 'wstr', '', 'dword', 4096, _ - 'dword', $iFlags) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetFinalPathNameByHandleEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetFullPathName($sFilePath) - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetFullPathNameW', 'wstr', $sFilePath, 'dword', 4096, 'wstr', '', 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetFullPathName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetLogicalDrives() - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetLogicalDrives') - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetLogicalDrives - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetObjectID($sFilePath) - ; Local Const $FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 - Local $hFile = _WinAPI_CreateFileEx($sFilePath, $OPEN_EXISTING, 0, $FILE_SHARE_READWRITE, $FILE_FLAG_BACKUP_SEMANTICS) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $tFOID = DllStructCreate('byte[16];byte[48]') - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x0009009C, 'ptr', 0, _ - 'dword', 0, 'struct*', $tFOID, 'dword', DllStructGetSize($tFOID), 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, 0) - - Local $tGUID = DllStructCreate($tagGUID) - _WinAPI_MoveMemory($tGUID, $tFOID, 16) - ; Return SetError(3, 0, 0) ; cannot really occur - ; EndIf - Return $tGUID -EndFunc ;==>_WinAPI_GetObjectID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetPEType($sFilePath) - Local $tData = DllStructCreate('ushort[2]') - Local $tUInt = DllStructCreate('uint', DllStructGetPtr($tData)) - - Local $hFile = _WinAPI_CreateFileEx($sFilePath, $OPEN_EXISTING, $GENERIC_READ, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $iError = 0, $iVal - Do - Local $aRet = DllCall('kernel32.dll', 'bool', 'ReadFile', 'handle', $hFile, 'struct*', $tData, 'dword', 2, 'dword*', 0, 'ptr', 0) - If @error Or (Not $aRet[0]) Or ($aRet[4] <> 2) Then - $iError = @error + 30 - ExitLoop - EndIf - $iVal = DllStructGetData($tData, 1, 1) - If $iVal <> 0x00005A4D Then - $iError = 3 - ExitLoop - EndIf - If Not _WinAPI_SetFilePointerEx($hFile, 0x0000003C) Then - $iError = @error + 40 - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'ReadFile', 'handle', $hFile, 'struct*', $tData, 'dword', 4, 'dword*', 0, 'ptr', 0) - If @error Or (Not $aRet[0]) Or ($aRet[4] <> 4) Then - $iError = @error + 50 - ExitLoop - EndIf - If Not _WinAPI_SetFilePointerEx($hFile, DllStructGetData($tUInt, 1)) Then - $iError = @error + 60 - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'ReadFile', 'handle', $hFile, 'struct*', $tData, 'dword', 4, 'dword*', 0, 'ptr', 0) - If @error Or (Not $aRet[0]) Or ($aRet[4] <> 4) Then - $iError = @error + 70 - ExitLoop - EndIf - $iVal = DllStructGetData($tUInt, 1) - If $iVal <> 0x00004550 Then - $iError = 4 - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'ReadFile', 'handle', $hFile, 'struct*', $tData, 'dword', 2, 'dword*', 0, 'ptr', 0) - If @error Or (Not $aRet[0]) Or ($aRet[4] <> 2) Then - $iError = @error + 80 - ExitLoop - EndIf - $iVal = DllStructGetData($tData, 1, 1) - Until 1 - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hFile) - If $iError Then Return SetError($iError, 0, 0) - - Return $iVal -EndFunc ;==>_WinAPI_GetPEType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProfilesDirectory() - Local $aRet = DllCall('userenv.dll', 'bool', 'GetProfilesDirectoryW', 'wstr', '', 'dword*', 4096) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_GetProfilesDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetTempFileName($sFilePath, $sPrefix = '') - Local $aRet = DllCall('kernel32.dll', 'uint', 'GetTempFileNameW', 'wstr', $sFilePath, 'wstr', $sPrefix, 'uint', 0, 'wstr', '') - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[4] -EndFunc ;==>_WinAPI_GetTempFileName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetVolumeInformation($sRoot = '') - Local $sTypeOfRoot = 'wstr' - If Not StringStripWS($sRoot, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfRoot = 'ptr' - $sRoot = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetVolumeInformationW', $sTypeOfRoot, $sRoot, 'wstr', '', 'dword', 4096, _ - 'dword*', 0, 'dword*', 0, 'dword*', 0, 'wstr', '', 'dword', 4096) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[5] - For $i = 0 To 4 - Switch $i - Case 0 - $aResult[$i] = $aRet[2] - Case Else - $aResult[$i] = $aRet[$i + 3] - EndSwitch - Next - Return $aResult -EndFunc ;==>_WinAPI_GetVolumeInformation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetVolumeInformationByHandle($hFile) - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetVolumeInformationByHandleW', 'handle', $hFile, 'wstr', '', 'dword', 4096, _ - 'dword*', 0, 'dword*', 0, 'dword*', 0, 'wstr', '', 'dword', 4096) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[5] - For $i = 0 To 4 - Switch $i - Case 0 - $aResult[$i] = $aRet[2] - Case Else - $aResult[$i] = $aRet[$i + 3] - EndSwitch - Next - Return $aResult -EndFunc ;==>_WinAPI_GetVolumeInformationByHandle - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetVolumeNameForVolumeMountPoint($sMountedPath) - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetVolumeNameForVolumeMountPointW', 'wstr', $sMountedPath, 'wstr', '', 'dword', 80) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetVolumeNameForVolumeMountPoint - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_IOCTL($iDeviceType, $iFunction, $iMethod, $iAccess) - Return BitOR(BitShift($iDeviceType, -16), BitShift($iAccess, -14), BitShift($iFunction, -2), $iMethod) -EndFunc ;==>_WinAPI_IOCTL - -; #FUNCTION# ==================================================================================================================== -; Author.........: G.Sandler (CreatoR) -; Modified.......: Yashied, jpm -; =============================================================================================================================== -Func _WinAPI_IsDoorOpen($sDrive) - Local $hFile = _WinAPI_CreateFileEx('\\.\' & $sDrive, $OPEN_EXISTING, $GENERIC_READWRITE, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, False) - - Local $tSPT = DllStructCreate('ushort Length;byte ScsiStatus;byte PathId;byte TargetId;byte Lun;byte CdbLength;byte SenseInfoLength;byte DataIn;byte Alignment[3];ulong DataTransferLength;ulong TimeOutValue;ulong_ptr DataBufferOffset;ulong SenseInfoOffset;byte Cdb[16]' & __Iif(@AutoItX64, ';byte[4]', '') & ';byte Hdr[8]') - Local $tCDB = DllStructCreate('byte;byte;byte[6];byte[2];byte;byte;byte[4]', DllStructGetPtr($tSPT, 'Cdb')) - Local $tHDR = DllStructCreate('byte;byte;byte[3];byte;byte[2]', DllStructGetPtr($tSPT, 'Hdr')) - Local $iSize = DllStructGetPtr($tSPT, 'Hdr') - DllStructGetPtr($tSPT) - - DllStructSetData($tSPT, 'Length', $iSize) - DllStructSetData($tSPT, 'ScsiStatus', 0) - DllStructSetData($tSPT, 'PathId', 0) - DllStructSetData($tSPT, 'TargetId', 0) - DllStructSetData($tSPT, 'Lun', 0) - DllStructSetData($tSPT, 'CdbLength', 12) - DllStructSetData($tSPT, 'SenseInfoLength', 0) - DllStructSetData($tSPT, 'DataIn', 1) - DllStructSetData($tSPT, 'DataTransferLength', 8) - DllStructSetData($tSPT, 'TimeOutValue', 86400) - DllStructSetData($tSPT, 'DataBufferOffset', $iSize) - DllStructSetData($tSPT, 'SenseInfoOffset', 0) - - DllStructSetData($tCDB, 1, 0xBD) - DllStructSetData($tCDB, 2, 0) - DllStructSetData($tCDB, 4, 0, 1) - DllStructSetData($tCDB, 4, 8, 2) - DllStructSetData($tCDB, 5, 0) - DllStructSetData($tCDB, 6, 0) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x0004D004, 'struct*', $tSPT, _ - 'dword', $iSize, 'struct*', $tSPT, 'dword', DllStructGetSize($tSPT), 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, False) - - Return (BitAND(DllStructGetData($tHDR, 2), 0x10) = 0x10) -EndFunc ;==>_WinAPI_IsDoorOpen - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsPathShared($sFilePath) - If Not __DLL('ntshrui.dll') Then Return SetError(103, 0, 0) - - Local $aRet = DllCall('ntshrui.dll', 'bool', 'IsPathSharedW', 'wstr', _WinAPI_PathRemoveBackslash($sFilePath), 'int', 1) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsPathShared - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_IsWritable($sDrive) - ; to check if the Drive is Ready - DriveGetFileSystem($sDrive) - If @error Then Return SetError(40 + @error, _WinAPI_GetLastError(), 0) - - Local $hFile = _WinAPI_CreateFileEx('\\.\' & $sDrive, $OPEN_EXISTING, 0, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x00070024, 'ptr', 0, 'dword', 0, _ - 'ptr', 0, 'dword', 0, 'dword*', 0, 'ptr', 0) - Local Const $ERROR_WRITE_PROTECT = 19 ; The media is write protected. - If __CheckErrorCloseHandle($aRet, $hFile, 1) <> 10 And @extended = $ERROR_WRITE_PROTECT Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsWritable - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_LoadMedia($sDrive) - Local $hFile = _WinAPI_CreateFileEx('\\.\' & $sDrive, $OPEN_EXISTING, $GENERIC_READ, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, False) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x002D480C, 'ptr', 0, 'dword', 0, _ - 'ptr', 0, 'dword', 0, 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LoadMedia - -; #FUNCTION# ==================================================================================================================== -; Author.........: Psandu.ro -; Modified.......: Yashied, jpm -; =============================================================================================================================== -Func _WinAPI_LockDevice($sDrive, $bLock) - Local $hFile = _WinAPI_CreateFileEx('\\.\' & $sDrive, $OPEN_EXISTING, $GENERIC_READWRITE, $FILE_SHARE_READWRITE) - If @error Then Return SetError(@error + 20, @extended, False) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x002D4804, 'boolean*', $bLock, _ - 'dword', 1, 'ptr', 0, 'dword', 0, 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LockDevice - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LockFile($hFile, $iOffset, $iLength) - Local $aRet = DllCall('kernel32.dll', 'bool', 'LockFile', 'handle', $hFile, _ - 'dword', _WinAPI_LoDWord($iOffset), 'dword', _WinAPI_HiDWord($iOffset), _ - 'dword', _WinAPI_LoDWord($iLength), 'dword', _WinAPI_HiDWord($iLength)) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LockFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_MapViewOfFile($hMapping, $iOffset = 0, $iBytes = 0, $iAccess = 0x0006) - Local $aRet = DllCall('kernel32.dll', 'ptr', 'MapViewOfFile', 'handle', $hMapping, 'dword', $iAccess, _ - 'dword', _WinAPI_HiDWord($iOffset), 'dword', _WinAPI_LoDWord($iOffset), 'ulong_ptr', $iBytes) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_MapViewOfFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_MoveFileEx($sExistingFile, $sNewFile, $iFlags = 0, $pProgressProc = 0, $pData = 0) - Local $sTypeOfNewFile = 'wstr' - If Not StringStripWS($sNewFile, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfNewFile = 'ptr' - $sNewFile = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'bool', 'MoveFileWithProgressW', 'wstr', $sExistingFile, $sTypeOfNewFile, $sNewFile, _ - 'ptr', $pProgressProc, 'ptr', $pData, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_MoveFileEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_OpenFileById($hFile, $vID, $iAccess = 0, $iShare = 0, $iFlags = 0) - Local $tFIDD = DllStructCreate('dword;uint;int64;int64') - Local $hObj, $aRet, $iType, $iError = 0 - - Select - Case IsString($vID) - $aRet = DllCall('ole32.dll', 'long', 'CLSIDFromString', 'wstr', $vID, 'ptr', DllStructGetPtr($tFIDD, 3)) - If @error Or $aRet[0] Then - Return SetError(@error + 30, 0, 0) - EndIf - $iType = 1 - Case IsDllStruct($vID) - If Not _WinAPI_MoveMemory(DllStructGetPtr($tFIDD, 3), DllStructGetPtr($vID), 16) Then - Return SetError(@error + 40, 0, 0) - EndIf - $iType = 1 - Case Else - DllStructSetData($tFIDD, 3, $vID) - $iType = 0 - EndSelect - DllStructSetData($tFIDD, 1, DllStructGetSize($tFIDD)) - DllStructSetData($tFIDD, 2, $iType) - If IsString($hFile) Then - ; Local Const $FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 - $hObj = _WinAPI_CreateFileEx($hFile, $OPEN_EXISTING, 0, $FILE_SHARE_READWRITE, $FILE_FLAG_BACKUP_SEMANTICS) - If @error Then Return SetError(@error + 20, @extended, 0) - Else - $hObj = $hFile - EndIf - $aRet = DllCall('kernel32.dll', 'handle', 'OpenFileById', 'handle', $hObj, 'struct*', $tFIDD, 'dword', $iAccess, _ - 'dword', $iShare, 'ptr', 0, 'dword', $iFlags) - If @error Or ($aRet[0] = Ptr(-1)) Then $iError = @error + 10 ; $INVALID_HANDLE_VALUE - If IsString($hFile) Then - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hObj) - EndIf - If $iError Then Return SetError($iError, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenFileById - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenFileMapping($sName, $iAccess = 0x0006, $bInherit = False) - Local $aRet = DllCall('kernel32.dll', 'handle', 'OpenFileMappingW', 'dword', $iAccess, 'bool', $bInherit, 'wstr', $sName) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenFileMapping - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsDirectoryEmpty($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsDirectoryEmptyW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsDirectoryEmpty - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_QueryDosDevice($sDevice) - Local $sTypeOfDevice = 'wstr' - If Not StringStripWS($sDevice, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfDevice = 'ptr' - $sDevice = 0 - EndIf - - Local $tData = DllStructCreate('wchar[16384]') - Local $aRet = DllCall('kernel32.dll', 'dword', 'QueryDosDeviceW', $sTypeOfDevice, $sDevice, 'struct*', $tData, 'dword', 16384) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Local $aResult = _WinAPI_StructToArray($tData) - If IsString($sDevice) Then - $aResult = $aResult[1] - EndIf - Return $aResult -EndFunc ;==>_WinAPI_QueryDosDevice - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ReadDirectoryChanges($hDirectory, $iFilter, $pBuffer, $iLength, $bSubtree = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'ReadDirectoryChangesW', 'handle', $hDirectory, 'struct*', $pBuffer, _ - 'dword', $iLength - Mod($iLength, 4), 'bool', $bSubtree, 'dword', $iFilter, 'dword*', 0, 'ptr', 0, 'ptr', 0) - If @error Or Not $aRet[0] Or (Not $aRet[6]) Then Return SetError(@error + 10, @extended, 0) - - $pBuffer = $aRet[2] ; if updated by the DllCall in case of not word align - Local $aData[101][2] = [[0]] - Local $tFNI, $iBuffer = 0, $iOffset = 0 - - Do - $iBuffer += $iOffset - $tFNI = DllStructCreate('dword NextEntryOffset;dword Action;dword FileNameLength;wchar FileName[' & (DllStructGetData(DllStructCreate('dword FileNameLength', $pBuffer + $iBuffer + 8), 1) / 2) & ']', $pBuffer + $iBuffer) - __Inc($aData) - $aData[$aData[0][0]][0] = DllStructGetData($tFNI, "FileName") - $aData[$aData[0][0]][1] = DllStructGetData($tFNI, "Action") - $iOffset = DllStructGetData($tFNI, "NextEntryOffset") - Until Not $iOffset - __Inc($aData, -1) - Return $aData -EndFunc ;==>_WinAPI_ReadDirectoryChanges - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RemoveDirectory($sDirPath) - Local $aRet = DllCall('kernel32.dll', 'bool', 'RemoveDirectoryW', 'wstr', $sDirPath) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RemoveDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ReOpenFile($hFile, $iAccess, $iShare, $iFlags = 0) - Local $aRet = DllCall('kernel32.dll', 'handle', 'ReOpenFile', 'handle', $hFile, 'dword', $iAccess, 'dword', $iShare, 'dword', $iFlags) - If @error Or ($aRet[0] = Ptr(-1)) Then Return SetError(@error, @extended, 0) ; $INVALID_HANDLE_VALUE - ; If $aRet[0] = Ptr(-1) Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ReOpenFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ReplaceFile($sReplacedFile, $sReplacementFile, $sBackupFile = '', $iFlags = 0) - Local $sTypeOfBackupFile = 'wstr' - If Not StringStripWS($sBackupFile, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfBackupFile = 'ptr' - $sBackupFile = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'bool', 'ReplaceFileW', 'wstr', $sReplacedFile, 'wstr', $sReplacementFile, _ - $sTypeOfBackupFile, $sBackupFile, 'dword', $iFlags, 'ptr', 0, 'ptr', 0) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ReplaceFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SearchPath($sFilePath, $sSearchPath = '') - Local $sTypeOfPath = 'wstr' - If Not StringStripWS($sSearchPath, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfPath = 'ptr' - $sSearchPath = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'dword', 'SearchPathW', $sTypeOfPath, $sSearchPath, 'wstr', $sFilePath, 'ptr', 0, 'dword', 4096, 'wstr', '', 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, '') - - Return $aRet[5] -EndFunc ;==>_WinAPI_SearchPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetCompression($sFilePath, $iCompression) - ; Local Const $FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 - Local $hFile = _WinAPI_CreateFileEx($sFilePath, $OPEN_EXISTING, $GENERIC_READWRITE, $FILE_SHARE_READWRITE, $FILE_FLAG_BACKUP_SEMANTICS) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'DeviceIoControl', 'handle', $hFile, 'dword', 0x0009C040, _ - 'ushort*', $iCompression, 'dword', 2, 'ptr', 0, 'dword', 0, 'dword*', 0, 'ptr', 0) - If __CheckErrorCloseHandle($aRet, $hFile) Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_SetCompression - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetCurrentDirectory($sDir) - Local $aRet = DllCall('kernel32.dll', 'int', 'SetCurrentDirectoryW', 'wstr', $sDir) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetCurrentDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetFileAttributes($sFilePath, $iAttributes) - Local $aRet = DllCall('kernel32.dll', 'int', 'SetFileAttributesW', 'wstr', $sFilePath, 'dword', $iAttributes) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetFileAttributes - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetFileInformationByHandleEx($hFile, $tFILEINFO) - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwSetInformationFile', 'handle', $hFile, 'struct*', $tFILEINFO, _ - 'struct*', $tFILEINFO, 'ulong', DllStructGetSize($tFILEINFO), 'uint', 4) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_SetFileInformationByHandleEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetFilePointerEx($hFile, $iPos, $iMethod = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetFilePointerEx', 'handle', $hFile, 'int64', $iPos, 'int64*', 0, 'dword', $iMethod) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetFilePointerEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetFileShortName($hFile, $sShortName) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetFileShortNameW', 'handle', $hFile, 'wstr', $sShortName) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetFileShortName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetFileValidData($hFile, $iLength) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetFileValidData', 'handle', $hFile, 'int64', $iLength) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetFileValidData - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetSearchPathMode($iFlags) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetSearchPathMode', 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetSearchPathMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetVolumeMountPoint($sFilePath, $sGUID) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetVolumeMountPointW', 'wstr', $sFilePath, 'wstr', $sGUID) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetVolumeMountPoint - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SfcIsFileProtected($sFilePath) - If Not __DLL('sfc.dll') Then Return SetError(103, 0, False) - - Local $aRet = DllCall('sfc.dll', 'bool', 'SfcIsFileProtected', 'handle', 0, 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SfcIsFileProtected - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UnlockFile($hFile, $iOffset, $iLength) - Local $aRet = DllCall('kernel32.dll', 'bool', 'UnlockFile', 'handle', $hFile, _ - 'dword', _WinAPI_LoDWord($iOffset), 'dword', _WinAPI_HiDWord($iOffset), _ - 'dword', _WinAPI_LoDWord($iLength), 'dword', _WinAPI_HiDWord($iLength)) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UnlockFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UnmapViewOfFile($pAddress) - Local $aRet = DllCall('kernel32.dll', 'bool', 'UnmapViewOfFile', 'ptr', $pAddress) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UnmapViewOfFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_Wow64EnableWow64FsRedirection($bEnable) - Local $aRet = DllCall('kernel32.dll', 'boolean', 'Wow64EnableWow64FsRedirection', 'boolean', $bEnable) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_Wow64EnableWow64FsRedirection - -#EndRegion Public Functions - -#Region Internal Functions - -Func __WinAPI_MakeQWord($iLoDWORD, $iHiDWORD) - Local $tInt64 = DllStructCreate("uint64") - Local $tDwords = DllStructCreate("dword;dword", DllStructGetPtr($tInt64)) - DllStructSetData($tDwords, 1, $iLoDWORD) - DllStructSetData($tDwords, 2, $iHiDWORD) - - Return DllStructGetData($tInt64, 1) -EndFunc ;==>__WinAPI_MakeQWord - -#EndRegion Internal Functions diff --git a/build/Include/WinAPIGdi.au3 b/build/Include/WinAPIGdi.au3 deleted file mode 100644 index 572af33e9..000000000 --- a/build/Include/WinAPIGdi.au3 +++ /dev/null @@ -1,4736 +0,0 @@ -#include-once - -#include "APIGdiConstants.au3" -#include "WinAPI.au3" -#include "WinAPICom.au3" -#include "WinAPIInternals.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIGdi.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #CONSTANTS# =================================================================================================================== -Global Const $tagBITMAP = 'struct;long bmType;long bmWidth;long bmHeight;long bmWidthBytes;ushort bmPlanes;ushort bmBitsPixel;ptr bmBits;endstruct' -Global Const $tagBITMAPV4HEADER = 'struct;dword bV4Size;long bV4Width;long bV4Height;ushort bV4Planes;ushort bV4BitCount;dword bV4Compression;dword bV4SizeImage;long bV4XPelsPerMeter;long bV4YPelsPerMeter;dword bV4ClrUsed;dword bV4ClrImportant;dword bV4RedMask;dword bV4GreenMask;dword bV4BlueMask;dword bV4AlphaMask;dword bV4CSType;int bV4Endpoints[9];dword bV4GammaRed;dword bV4GammaGreen;dword bV4GammaBlue;endstruct' -Global Const $tagBITMAPV5HEADER = 'struct;dword bV5Size;long bV5Width;long bV5Height;ushort bV5Planes;ushort bV5BitCount;dword bV5Compression;dword bV5SizeImage;long bV5XPelsPerMeter;long bV5YPelsPerMeter;dword bV5ClrUsed;dword bV5ClrImportant;dword bV5RedMask;dword bV5GreenMask;dword bV5BlueMask;dword bV5AlphaMask;dword bV5CSType;int bV5Endpoints[9];dword bV5GammaRed;dword bV5GammaGreen;dword bV5GammaBlue;dword bV5Intent;dword bV5ProfileData;dword bV5ProfileSize;dword bV5Reserved;endstruct' -Global Const $tagCOLORADJUSTMENT = 'ushort Size;ushort Flags;ushort IlluminantIndex;ushort RedGamma;ushort GreenGamma;ushort BlueGamma;ushort ReferenceBlack;ushort ReferenceWhite;short Contrast;short Brightness;short Colorfulness;short RedGreenTint' -Global Const $tagDEVMODE_DISPLAY = 'wchar DeviceName[32];ushort SpecVersion;ushort DriverVersion;ushort Size;ushort DriverExtra;dword Fields;' & $tagPOINT & ';dword DisplayOrientation;dword DisplayFixedOutput;short Unused1[5];wchar Unused2[32];ushort LogPixels;dword BitsPerPel;dword PelsWidth;dword PelsHeight;dword DisplayFlags;dword DisplayFrequency' -Global Const $tagDIBSECTION = $tagBITMAP & ';' & $tagBITMAPINFOHEADER & ';dword dsBitfields[3];ptr dshSection;dword dsOffset' -Global Const $tagDWM_COLORIZATION_PARAMETERS = 'dword Color;dword AfterGlow;uint ColorBalance;uint AfterGlowBalance;uint BlurBalance;uint GlassReflectionIntensity; uint OpaqueBlend' -Global Const $tagENHMETAHEADER = 'struct;dword Type;dword Size;long rcBounds[4];long rcFrame[4];dword Signature;dword Version;dword Bytes;dword Records;ushort Handles;ushort Reserved;dword Description;dword OffDescription;dword PalEntries;long Device[2];long Millimeters[2];dword PixelFormat;dword OffPixelFormat;dword OpenGL;long Micrometers[2];endstruct' -Global Const $tagEXTLOGPEN = 'dword PenStyle;dword Width;uint BrushStyle;dword Color;ulong_ptr Hatch;dword NumEntries' ; & ';dword StyleEntry[n];' -Global Const $tagFONTSIGNATURE = 'dword fsUsb[4];dword fsCsb[2]' -Global Const $tagGLYPHMETRICS = 'uint BlackBoxX;uint BlackBoxY;' & $tagPOINT & ';short CellIncX;short CellIncY' -Global Const $tagLOGBRUSH = 'uint Style;dword Color;ulong_ptr Hatch' -Global Const $tagLOGPEN = 'uint Style;dword Width;dword Color' -Global Const $tagMAT2 = 'short eM11[2];short eM12[2];short eM21[2];short eM22[2]' -Global Const $tagNEWTEXTMETRIC = $tagTEXTMETRIC & ';dword ntmFlags;uint ntmSizeEM;uint ntmCellHeight;uint ntmAvgWidth' -Global Const $tagNEWTEXTMETRICEX = $tagNEWTEXTMETRIC & ';' & $tagFONTSIGNATURE -Global Const $tagPANOSE = 'struct;byte bFamilyType;byte bSerifStyle;byte bWeight;byte bProportion;byte bContrast;byte bStrokeVariation;byte bArmStyle;byte bLetterform;byte bMidline;byte bXHeight;endstruct' -Global Const $tagOUTLINETEXTMETRIC = 'struct;uint otmSize;' & $tagTEXTMETRIC & ';byte otmFiller;' & $tagPANOSE & ';byte bugFiller[3];uint otmSelection;uint otmType;int otmCharSlopeRise;int otmCharSlopeRun;int otmItalicAngle;uint otmEMSquare;int otmAscent;int otmDescent;uint otmLineGap;uint otmCapEmHeight;uint otmXHeight;long otmFontBox[4];int otmMacAscent;int otmMacDescent;uint otmMacLineGap;uint otmMinimumPPEM;long otmSubscriptSize[2];long otmSubscriptOffset[2];long otmSuperscriptSize[2];long otmSuperscriptOffse[2];uint otmStrikeoutSize;int otmStrikeoutPosition;int otmUnderscoreSize;int otmUnderscorePosition;uint_ptr otmFamilyName;uint_ptr otmFaceName;uint_ptr otmStyleName;uint_ptr otmFullName;endstruct' -Global Const $tagPAINTSTRUCT = 'hwnd hDC;int fErase;dword rPaint[4];int fRestore;int fIncUpdate;byte rgbReserved[32]' -Global Const $tagRGNDATAHEADER = 'struct;dword Size;dword Type;dword Count;dword RgnSize;' & $tagRECT & ';endstruct' -; Global Const $tagRGNDATA = $tagRGNDATAHEADER ; & $tagRECT[n] & ';' -Global Const $tagXFORM = 'float eM11;float eM12;float eM21;float eM22;float eDx;float eDy' -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_AbortPath -; _WinAPI_AddFontMemResourceEx -; _WinAPI_AddFontResourceEx -; _WinAPI_AddIconOverlay -; _WinAPI_AdjustBitmap -; _WinAPI_AlphaBlend -; _WinAPI_AngleArc -; _WinAPI_Arc -; _WinAPI_ArcTo -; _WinAPI_BeginPaint -; _WinAPI_BeginPath -; _WinAPI_CloseEnhMetaFile -; _WinAPI_CloseFigure -; _WinAPI_ColorAdjustLuma -; _WinAPI_ColorHLSToRGB -; _WinAPI_ColorRGBToHLS -; _WinAPI_CombineTransform -; _WinAPI_CompressBitmapBits -; _WinAPI_CopyBitmap -; _WinAPI_CopyEnhMetaFile -; _WinAPI_CopyImage -; _WinAPI_CopyRect -; _WinAPI_Create32BitHBITMAP -; _WinAPI_Create32BitHICON -; _WinAPI_CreateANDBitmap -; _WinAPI_CreateBitmapIndirect -; _WinAPI_CreateBrushIndirect -; _WinAPI_CreateColorAdjustment -; _WinAPI_CreateCompatibleBitmapEx -; _WinAPI_CreateDIB -; _WinAPI_CreateDIBColorTable -; _WinAPI_CreateDIBitmap -; _WinAPI_CreateDIBSection -; _WinAPI_CreateEllipticRgn -; _WinAPI_CreateEmptyIcon -; _WinAPI_CreateEnhMetaFile -; _WinAPI_CreateFontEx -; _WinAPI_CreateIconIndirect -; _WinAPI_CreateNullRgn -; _WinAPI_CreatePolygonRgn -; _WinAPI_CreateRectRgnIndirect -; _WinAPI_CreateTransform -; _WinAPI_DeleteEnhMetaFile -; _WinAPI_DPtoLP -; _WinAPI_DrawAnimatedRects -; _WinAPI_DrawBitmap -; _WinAPI_DrawFocusRect -; _WinAPI_DrawShadowText -; _WinAPI_DwmDefWindowProc -; _WinAPI_DwmEnableBlurBehindWindow -; _WinAPI_DwmEnableComposition -; _WinAPI_DwmExtendFrameIntoClientArea -; _WinAPI_DwmGetColorizationColor -; _WinAPI_DwmGetColorizationParameters -; _WinAPI_DwmGetWindowAttribute -; _WinAPI_DwmInvalidateIconicBitmaps -; _WinAPI_DwmIsCompositionEnabled -; _WinAPI_DwmQueryThumbnailSourceSize -; _WinAPI_DwmRegisterThumbnail -; _WinAPI_DwmSetColorizationParameters -; _WinAPI_DwmSetIconicLivePreviewBitmap -; _WinAPI_DwmSetIconicThumbnail -; _WinAPI_DwmSetWindowAttribute -; _WinAPI_DwmUnregisterThumbnail -; _WinAPI_DwmUpdateThumbnailProperties -; _WinAPI_Ellipse -; _WinAPI_EndPaint -; _WinAPI_EndPath -; _WinAPI_EnumDisplayMonitors -; _WinAPI_EnumDisplaySettings -; _WinAPI_EnumFontFamilies -; _WinAPI_EqualRect -; _WinAPI_EqualRgn -; _WinAPI_ExcludeClipRect -; _WinAPI_ExtCreatePen -; _WinAPI_ExtCreateRegion -; _WinAPI_ExtFloodFill -; _WinAPI_ExtSelectClipRgn -; _WinAPI_FillPath -; _WinAPI_FillRgn -; _WinAPI_FlattenPath -; _WinAPI_FrameRgn -; _WinAPI_GdiComment -; _WinAPI_GetArcDirection -; _WinAPI_GetBitmapBits -; _WinAPI_GetBitmapDimension -; _WinAPI_GetBitmapDimensionEx -; _WinAPI_GetBkColor -; _WinAPI_GetBoundsRect -; _WinAPI_GetBrushOrg -; _WinAPI_GetBValue -; _WinAPI_GetClipBox -; _WinAPI_GetClipRgn -; _WinAPI_GetColorAdjustment -; _WinAPI_GetCurrentObject -; _WinAPI_GetCurrentPosition -; _WinAPI_GetDCEx -; _WinAPI_GetDeviceGammaRamp -; _WinAPI_GetDIBColorTable -; _WinAPI_GetEnhMetaFile -; _WinAPI_GetEnhMetaFileBits -; _WinAPI_GetEnhMetaFileDescription -; _WinAPI_GetEnhMetaFileDimension -; _WinAPI_GetEnhMetaFileHeader -; _WinAPI_GetFontName -; _WinAPI_GetFontResourceInfo -; _WinAPI_GetFontMemoryResourceInfo -; _WinAPI_GetGlyphOutline -; _WinAPI_GetGraphicsMode -; _WinAPI_GetGValue -; _WinAPI_GetIconDimension -; _WinAPI_GetMapMode -; _WinAPI_GetObjectType -; _WinAPI_GetOutlineTextMetrics -; _WinAPI_GetPixel -; _WinAPI_GetPolyFillMode -; _WinAPI_GetPosFromRect -; _WinAPI_GetRegionData -; _WinAPI_GetRgnBox -; _WinAPI_GetROP2 -; _WinAPI_GetRValue -; _WinAPI_GetStretchBltMode -; _WinAPI_GetTabbedTextExtent -; _WinAPI_GetTextAlign -; _WinAPI_GetTextCharacterExtra -; _WinAPI_GetTextColor -; _WinAPI_GetTextFace -; _WinAPI_GetUDFColorMode -; _WinAPI_GetUpdateRect -; _WinAPI_GetUpdateRgn -; _WinAPI_GetWindowExt -; _WinAPI_GetWindowOrg -; _WinAPI_GetWindowRgnBox -; _WinAPI_GetWorldTransform -; _WinAPI_GradientFill -; _WinAPI_InflateRect -; _WinAPI_IntersectClipRect -; _WinAPI_IntersectRect -; _WinAPI_InvalidateRgn -; _WinAPI_InvertANDBitmap -; _WinAPI_InvertColor -; _WinAPI_InvertRect -; _WinAPI_InvertRgn -; _WinAPI_IsAlphaBitmap -; _WinAPI_IsRectEmpty -; _WinAPI_LineDDA -; _WinAPI_LockWindowUpdate -; _WinAPI_LPtoDP -; _WinAPI_MaskBlt -; _WinAPI_ModifyWorldTransform -; _WinAPI_MonitorFromPoint -; _WinAPI_MonitorFromRect -; _WinAPI_MonitorFromWindow -; _WinAPI_MoveToEx -; _WinAPI_OffsetClipRgn -; _WinAPI_OffsetPoints -; _WinAPI_OffsetRect -; _WinAPI_OffsetRgn -; _WinAPI_OffsetWindowOrg -; _WinAPI_PaintDesktop -; _WinAPI_PaintRgn -; _WinAPI_PatBlt -; _WinAPI_PathToRegion -; _WinAPI_PlayEnhMetaFile -; _WinAPI_PlgBlt -; _WinAPI_PolyBezier -; _WinAPI_PolyBezierTo -; _WinAPI_PolyDraw -; _WinAPI_Polygon -; _WinAPI_PrintWindow -; _WinAPI_PtInRectEx -; _WinAPI_PtInRegion -; _WinAPI_PtVisible -; _WinAPI_RadialGradientFill -; _WinAPI_Rectangle -; _WinAPI_RectInRegion -; _WinAPI_RectVisible -; _WinAPI_RemoveFontMemResourceEx -; _WinAPI_RemoveFontResourceEx -; _WinAPI_RestoreDC -; _WinAPI_RGB -; _WinAPI_RotatePoints -; _WinAPI_RoundRect -; _WinAPI_SaveDC -; _WinAPI_SaveHBITMAPToFile -; _WinAPI_SaveHICONToFile -; _WinAPI_ScaleWindowExt -; _WinAPI_SelectClipPath -; _WinAPI_SelectClipRgn -; _WinAPI_SetArcDirection -; _WinAPI_SetBitmapBits -; _WinAPI_SetBitmapDimensionEx -; _WinAPI_SetBoundsRect -; _WinAPI_SetBrushOrg -; _WinAPI_SetColorAdjustment -; _WinAPI_SetDCBrushColor -; _WinAPI_SetDCPenColor -; _WinAPI_SetDeviceGammaRamp -; _WinAPI_SetDIBColorTable -; _WinAPI_SetDIBitsToDevice -; _WinAPI_SetEnhMetaFileBits -; _WinAPI_SetGraphicsMode -; _WinAPI_SetMapMode -; _WinAPI_SetPixel -; _WinAPI_SetPolyFillMode -; _WinAPI_SetRectRgn -; _WinAPI_SetROP2 -; _WinAPI_SetStretchBltMode -; _WinAPI_SetTextAlign -; _WinAPI_SetTextCharacterExtra -; _WinAPI_SetTextJustification -; _WinAPI_SetUDFColorMode -; _WinAPI_SetWindowExt -; _WinAPI_SetWindowOrg -; _WinAPI_SetWorldTransform -; _WinAPI_StretchBlt -; _WinAPI_StretchDIBits -; _WinAPI_StrokeAndFillPath -; _WinAPI_StrokePath -; _WinAPI_SubtractRect -; _WinAPI_SwitchColor -; _WinAPI_TabbedTextOut -; _WinAPI_TextOut -; _WinAPI_TransparentBlt -; _WinAPI_UnionRect -; _WinAPI_ValidateRect -; _WinAPI_ValidateRgn -; _WinAPI_WidenPath -; _WinAPI_WindowFromDC -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AbortPath($hDC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'AbortPath', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_AbortPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AddFontMemResourceEx($pData, $iSize) - Local $aRet = DllCall('gdi32.dll', 'handle', 'AddFontMemResourceEx', 'ptr', $pData, 'dword', $iSize, 'ptr', 0, 'dword*', 0) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return SetExtended($aRet[4], $aRet[0]) -EndFunc ;==>_WinAPI_AddFontMemResourceEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AddFontResourceEx($sFont, $iFlag = 0, $bNotify = False) - Local $aRet = DllCall('gdi32.dll', 'int', 'AddFontResourceExW', 'wstr', $sFont, 'dword', $iFlag, 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - If $bNotify Then - Local Const $WM_FONTCHANGE = 0x001D - Local Const $HWND_BROADCAST = 0xFFFF - DllCall('user32.dll', 'lresult', 'SendMessage', 'hwnd', $HWND_BROADCAST, 'uint', $WM_FONTCHANGE, 'wparam', 0, _ - 'lparam', 0) - EndIf - - Return $aRet[0] -EndFunc ;==>_WinAPI_AddFontResourceEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_AddIconOverlay($hIcon, $hOverlay) - Local $aRet, $hResult = 0, $iError = 0 - Local $ahDev[2] = [0, 0] - - Local $tSIZE = _WinAPI_GetIconDimension($hIcon) - Local $hIL = DllCall('comctl32.dll', 'handle', 'ImageList_Create', 'int', DllStructGetData($tSIZE, 1), _ - 'int', DllStructGetData($tSIZE, 2), 'uint', 0x0021, 'int', 2, 'int', 2) - If @error Or Not $hIL[0] Then Return SetError(@error + 10, @extended, 0) - - Do - $ahDev[0] = _WinAPI_Create32BitHICON($hIcon) - If @error Then - $iError = @error + 100 - ExitLoop - EndIf - $aRet = DllCall('comctl32.dll', 'int', 'ImageList_ReplaceIcon', 'handle', $hIL[0], 'int', -1, 'handle', $ahDev[0]) - If @error Or ($aRet[0] = -1) Then - $iError = @error + 200 - ExitLoop - EndIf - $ahDev[1] = _WinAPI_Create32BitHICON($hOverlay) - If @error Then - $iError = @error + 300 - ExitLoop - EndIf - $aRet = DllCall('comctl32.dll', 'int', 'ImageList_ReplaceIcon', 'handle', $hIL[0], 'int', -1, 'handle', $ahDev[1]) - If @error Or ($aRet[0] = -1) Then - $iError = @error + 400 - ExitLoop - EndIf - $aRet = DllCall('comctl32.dll', 'bool', 'ImageList_SetOverlayImage', 'handle', $hIL[0], 'int', 1, 'int', 1) - If @error Or Not $aRet[0] Then - $iError = @error + 500 - ExitLoop - EndIf - $aRet = DllCall('comctl32.dll', 'handle', 'ImageList_GetIcon', 'handle', $hIL[0], 'int', 0, 'uint', 0x00000100) - If @error Or Not $aRet[0] Then - $iError = @error + 600 - ExitLoop - EndIf - $hResult = $aRet[0] - Until 1 - DllCall('comctl32.dll', 'bool', 'ImageList_Destroy', 'handle', $hIL[0]) - For $i = 0 To 1 - If $ahDev[$i] Then - _WinAPI_DestroyIcon($ahDev[$i]) - - EndIf - Next - If Not $hResult Then Return SetError($iError, 0, 0) - - Return $hResult -EndFunc ;==>_WinAPI_AddIconOverlay - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AdjustBitmap($hBitmap, $iWidth, $iHeight, $iMode = 3, $tAdjustment = 0) - Local $tObj = DllStructCreate($tagBITMAP) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetObject', 'handle', $hBitmap, 'int', DllStructGetSize($tObj), 'struct*', $tObj) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - If $iWidth = -1 Then - $iWidth = DllStructGetData($tObj, 'bmWidth') - EndIf - If $iHeight = -1 Then - $iHeight = DllStructGetData($tObj, 'bmHeight') - EndIf - $aRet = DllCall('user32.dll', 'handle', 'GetDC', 'hwnd', 0) - Local $hDC = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'CreateCompatibleDC', 'handle', $hDC) - Local $hDestDC = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'CreateCompatibleBitmap', 'handle', $hDC, 'int', $iWidth, 'int', $iHeight) - Local $hBmp = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hDestDC, 'handle', $hBmp) - Local $hDestSv = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'CreateCompatibleDC', 'handle', $hDC) - Local $hSrcDC = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hSrcDC, 'handle', $hBitmap) - Local $hSrcSv = $aRet[0] - If _WinAPI_SetStretchBltMode($hDestDC, $iMode) Then - Switch $iMode - Case 4 ; HALFTONE - If IsDllStruct($tAdjustment) Then - If Not _WinAPI_SetColorAdjustment($hDestDC, $tAdjustment) Then - ; Nothing - EndIf - EndIf - Case Else - - EndSwitch - EndIf - $aRet = _WinAPI_StretchBlt($hDestDC, 0, 0, $iWidth, $iHeight, $hSrcDC, 0, 0, DllStructGetData($tObj, 'bmWidth'), DllStructGetData($tObj, 'bmHeight'), 0x00CC0020) - DllCall('user32.dll', 'int', 'ReleaseDC', 'hwnd', 0, 'handle', $hDC) - DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hDestDC, 'handle', $hDestSv) - DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hSrcDC, 'handle', $hSrcSv) - DllCall('gdi32.dll', 'bool', 'DeleteDC', 'handle', $hDestDC) - DllCall('gdi32.dll', 'bool', 'DeleteDC', 'handle', $hSrcDC) - If Not $aRet Then Return SetError(10, 0, 0) - - Return $hBmp -EndFunc ;==>_WinAPI_AdjustBitmap - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AlphaBlend($hDestDC, $iXDest, $iYDest, $iWidthDest, $iHeightDest, $hSrcDC, $iXSrc, $iYSrc, $iWidthSrc, $iHeightSrc, $iAlpha, $bAlpha = False) - Local $iBlend = BitOR(BitShift(Not ($bAlpha = False), -24), BitShift(BitAND($iAlpha, 0xFF), -16)) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GdiAlphaBlend', 'handle', $hDestDC, 'int', $iXDest, 'int', $iYDest, _ - 'int', $iWidthDest, 'int', $iHeightDest, 'handle', $hSrcDC, 'int', $iXSrc, 'int', $iYSrc, _ - 'int', $iWidthSrc, 'int', $iHeightSrc, 'dword', $iBlend) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_AlphaBlend - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AngleArc($hDC, $iX, $iY, $iRadius, $nStartAngle, $nSweepAngle) - Local $aRet = DllCall('gdi32.dll', 'bool', 'AngleArc', 'handle', $hDC, 'int', $iX, 'int', $iY, 'dword', $iRadius, _ - 'float', $nStartAngle, 'float', $nSweepAngle) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_AngleArc - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_Arc($hDC, $tRECT, $iXStartArc, $iYStartArc, $iXEndArc, $iYEndArc) - Local $aRet = DllCall('gdi32.dll', 'bool', 'Arc', 'handle', $hDC, 'int', DllStructGetData($tRECT, 1), _ - 'int', DllStructGetData($tRECT, 2), 'int', DllStructGetData($tRECT, 3), 'int', DllStructGetData($tRECT, 4), _ - 'int', $iXStartArc, 'int', $iYStartArc, 'int', $iXEndArc, 'int', $iYEndArc) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_Arc - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ArcTo($hDC, $tRECT, $iXRadial1, $iYRadial1, $iXRadial2, $iYRadial2) - Local $aRet = DllCall('gdi32.dll', 'bool', 'ArcTo', 'handle', $hDC, 'int', DllStructGetData($tRECT, 1), _ - 'int', DllStructGetData($tRECT, 2), 'int', DllStructGetData($tRECT, 3), 'int', DllStructGetData($tRECT, 4), _ - 'int', $iXRadial1, 'int', $iYRadial1, 'int', $iXRadial2, 'int', $iYRadial2) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ArcTo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BeginPaint($hWnd, ByRef $tPAINTSTRUCT) - $tPAINTSTRUCT = DllStructCreate($tagPAINTSTRUCT) - Local $aRet = DllCall('user32.dll', 'handle', 'BeginPaint', 'hwnd', $hWnd, 'struct*', $tPAINTSTRUCT) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_BeginPaint - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BeginPath($hDC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'BeginPath', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_BeginPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CloseEnhMetaFile($hDC) - Local $aRet = DllCall('gdi32.dll', 'handle', 'CloseEnhMetaFile', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CloseEnhMetaFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CloseFigure($hDC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'CloseFigure', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CloseFigure - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ColorAdjustLuma($iRGB, $iPercent, $bScale = True) - If $iRGB = -1 Then Return SetError(10, 0, -1) - - If $bScale Then - $iPercent = Floor($iPercent * 10) - EndIf - - Local $aRet = DllCall('shlwapi.dll', 'dword', 'ColorAdjustLuma', 'dword', __RGB($iRGB), 'int', $iPercent, 'bool', $bScale) - If @error Then Return SetError(@error, @extended, -1) - - Return __RGB($aRet[0]) -EndFunc ;==>_WinAPI_ColorAdjustLuma - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ColorHLSToRGB($iHue, $iLuminance, $iSaturation) - If Not $iSaturation Then $iHue = 160 - - Local $aRet = DllCall('shlwapi.dll', 'dword', 'ColorHLSToRGB', 'word', $iHue, 'word', $iLuminance, 'word', $iSaturation) - If @error Then Return SetError(@error, @extended, -1) - - Return __RGB($aRet[0]) -EndFunc ;==>_WinAPI_ColorHLSToRGB - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ColorRGBToHLS($iRGB, ByRef $iHue, ByRef $iLuminance, ByRef $iSaturation) - Local $aRet = DllCall('shlwapi.dll', 'none', 'ColorRGBToHLS', 'dword', __RGB($iRGB), 'word*', 0, 'word*', 0, 'word*', 0) - If @error Then Return SetError(@error, @extended, 0) - - $iHue = $aRet[2] - $iLuminance = $aRet[3] - $iSaturation = $aRet[4] - Return 1 -EndFunc ;==>_WinAPI_ColorRGBToHLS - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CombineTransform($tXFORM1, $tXFORM2) - Local $tXFORM = DllStructCreate($tagXFORM) - Local $aRet = DllCall('gdi32.dll', 'bool', 'CombineTransform', 'struct*', $tXFORM, 'struct*', $tXFORM1, 'struct*', $tXFORM2) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tXFORM -EndFunc ;==>_WinAPI_CombineTransform - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CompressBitmapBits($hBitmap, ByRef $pBuffer, $iCompression = 0, $iQuality = 100) - If Not __DLL('gdiplus.dll') Then Return SetError(103, 0, 0) - - Local $aSize[2], $iCount, $iFormat, $iLength, $sMime, $aRet, $hDC, $hSv, $hMem, $tBits, $tData, $pData, $iError = 1 ; JPM: 1???? - Local $hSource = 0, $hImage = 0, $hToken = 0, $pStream = 0, $tParam = 0 - Local $tDIB = DllStructCreate($tagDIBSECTION) - - Do - Switch $iCompression - Case 0 - $sMime = 'image/png' - Case 1 - $sMime = 'image/jpeg' -;~ Case 2 -;~ $sMime = 'image/bmp' - Case Else - $iError = 10 - ExitLoop - EndSwitch - While $hBitmap - If Not _WinAPI_GetObject($hBitmap, DllStructGetSize($tDIB), $tDIB) Then - $iError = 11 - ExitLoop 2 - EndIf - If (DllStructGetData($tDIB, 'bmBitsPixel') = 32) And (Not DllStructGetData($tDIB, 'biCompression')) Then - $iError = 12 - ExitLoop - EndIf - If $hSource Then - $iError = 13 - ExitLoop 2 - EndIf - $hSource = _WinAPI_CreateDIB(DllStructGetData($tDIB, 'bmWidth'), DllStructGetData($tDIB, 'bmHeight')) - If Not $hSource Then - $iError = @error + 100 - ExitLoop 2 - EndIf - $hDC = _WinAPI_CreateCompatibleDC(0) - $hSv = _WinAPI_SelectObject($hDC, $hSource) - If _WinAPI_DrawBitmap($hDC, 0, 0, $hBitmap) Then - $hBitmap = $hSource - Else - $iError = @error + 200 - $hBitmap = 0 - EndIf - _WinAPI_SelectObject($hDC, $hSv) - _WinAPI_DeleteDC($hDC) - WEnd - If Not $hBitmap Then - ExitLoop - EndIf - For $i = 0 To 1 - $aSize[$i] = DllStructGetData($tDIB, $i + 2) - Next - $tBits = DllStructCreate('byte[' & ($aSize[0] * $aSize[1] * 4) & ']') - If Not _WinAPI_GetBitmapBits($hBitmap, DllStructGetSize($tBits), $tBits) Then - $iError = @error + 300 - ExitLoop - EndIf - $tData = DllStructCreate($tagGDIPSTARTUPINPUT) - DllStructSetData($tData, "Version", 1) - $aRet = DllCall('gdiplus.dll', 'int', 'GdiplusStartup', 'ulong_ptr*', 0, 'struct*', $tData, 'ptr', 0) - If @error Or $aRet[0] Then - $iError = @error + 400 - ExitLoop - EndIf - If _WinAPI_IsAlphaBitmap($hBitmap) Then - $iFormat = 0x0026200A - Else - $iFormat = 0x00022009 - EndIf - $hToken = $aRet[1] - $aRet = DllCall('gdiplus.dll', 'int', 'GdipCreateBitmapFromScan0', 'int', $aSize[0], 'int', $aSize[1], _ - 'uint', $aSize[0] * 4, 'int', $iFormat, 'struct*', $tBits, 'ptr*', 0) - If @error Or $aRet[0] Then - $iError = @error + 500 - ExitLoop - EndIf - $hImage = $aRet[6] - $aRet = DllCall('gdiplus.dll', 'int', 'GdipGetImageEncodersSize', 'uint*', 0, 'uint*', 0) - If @error Or $aRet[0] Then - $iError = @error + 600 - ExitLoop - EndIf - $iCount = $aRet[1] - $tData = DllStructCreate('byte[' & $aRet[2] & ']') - If @error Then - $iError = @error + 700 - ExitLoop - EndIf - $pData = DllStructGetPtr($tData) - $aRet = DllCall('gdiplus.dll', 'int', 'GdipGetImageEncoders', 'uint', $iCount, 'uint', $aRet[2], 'struct*', $tData) - If @error Or $aRet[0] Then - $iError = @error + 800 - ExitLoop - EndIf - Local $tCodec, $pEncoder = 0 - For $i = 1 To $iCount - $tCodec = DllStructCreate($tagGDIPIMAGECODECINFO, $pData) - If Not StringInStr(_WinAPI_WideCharToMultiByte(DllStructGetData($tCodec, 'MimeType')), $sMime) Then - $pData += DllStructGetSize($tagGDIPIMAGECODECINFO) - Else - $pEncoder = $pData - $iError = 0 - ExitLoop - EndIf - Next - If Not $pEncoder Then - $iError = 15 - ExitLoop - EndIf - Switch $iCompression - Case 0 - ; Nothing - Case 1 - Local Const $tagENCODERPARAMETER = 'byte[16] GUID;ulong NumberOfValues;dword Type;ptr pValue' - $tParam = DllStructCreate('dword Count;' & $tagENCODERPARAMETER & ';ulong Quality') - DllStructSetData($tParam, 'Count', 1) - DllStructSetData($tParam, 'NumberOfValues', 1) - DllStructSetData($tParam, 'Type', 4) - DllStructSetData($tParam, 'pValue', DllStructGetPtr($tParam, 'Quality')) - DllStructSetData($tParam, 'Quality', $iQuality) - $aRet = DllCall('ole32.dll', 'long', 'CLSIDFromString', 'wstr', '{1D5BE4B5-FA4A-452D-9CDD-5DB35105E7EB}', _ - 'ptr', DllStructGetPtr($tParam, 2)) - If @error Or $aRet[0] Then - $tParam = 0 - EndIf -;~ Case 2 -;~ ; bmp Compression -;~ ; JPM: something to do ??? - EndSwitch - $pStream = _WinAPI_CreateStreamOnHGlobal() - $aRet = DllCall('gdiplus.dll', 'int', 'GdipSaveImageToStream', 'handle', $hImage, 'ptr', $pStream, _ - 'ptr', $pEncoder, 'struct*', $tParam) - If @error Or $aRet[0] Then - $iError = @error + 900 - ExitLoop - EndIf - $hMem = _WinAPI_GetHGlobalFromStream($pStream) - $aRet = DllCall('kernel32.dll', 'ulong_ptr', 'GlobalSize', 'handle', $hMem) - If @error Or Not $aRet[0] Then - $iError = @error + 1000 - ExitLoop - EndIf - $iLength = $aRet[0] - $aRet = DllCall('kernel32.dll', 'ptr', 'GlobalLock', 'handle', $hMem) - If @error Or Not $aRet[0] Then - $iError = @error + 1100 - ExitLoop - EndIf - $pBuffer = __HeapReAlloc($pBuffer, $iLength, 1) - If Not @error Then - _WinAPI_MoveMemory($pBuffer, $aRet[0], $iLength) - ; $iError = @error +1200 ; cannot really occur - ; EndIf - Else - $iError = @error + 1300 - EndIf - Until 1 - If $pStream Then - _WinAPI_ReleaseStream($pStream) - EndIf - If $hImage Then - DllCall('gdiplus.dll', 'int', 'GdipDisposeImage', 'handle', $hImage) - EndIf - If $hToken Then - DllCall('gdiplus.dll', 'none', 'GdiplusShutdown', 'ulong_ptr', $hToken) - EndIf - If $hSource Then - _WinAPI_DeleteObject($hSource) - EndIf - If $iError Then Return SetError($iError, 0, 0) - - Return $iLength -EndFunc ;==>_WinAPI_CompressBitmapBits - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CopyBitmap($hBitmap) - $hBitmap = _WinAPI_CopyImage($hBitmap, 0, 0, 0, 0x2000) ;$LR_CREATEDIBSECTION - Return SetError(@error, @extended, $hBitmap) -EndFunc ;==>_WinAPI_CopyBitmap - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CopyEnhMetaFile($hEmf, $sFilePath = '') - Local $sTypeOfFile = 'wstr' - If Not StringStripWS($sFilePath, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfFile = 'ptr' - $sFilePath = 0 - EndIf - - Local $aRet = DllCall('gdi32.dll', 'handle', 'CopyEnhMetaFileW', 'handle', $hEmf, $sTypeOfFile, $sFilePath) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CopyEnhMetaFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CopyImage($hImage, $iType = 0, $iXDesiredPixels = 0, $iYDesiredPixels = 0, $iFlags = 0) - Local $aRet = DllCall('user32.dll', 'handle', 'CopyImage', 'handle', $hImage, 'uint', $iType, _ - 'int', $iXDesiredPixels, 'int', $iYDesiredPixels, 'uint', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CopyImage - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CopyRect($tRECT) - Local $tData = DllStructCreate($tagRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'CopyRect', 'struct*', $tData, 'struct*', $tRECT) - If @error Or Not $aRet[0] Then SetError(@error + 10, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $tData -EndFunc ;==>_WinAPI_CopyRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_Create32BitHBITMAP($hIcon, $bDib = False, $bDelete = False) - Local $hBitmap = 0 - Local $aDIB[2] = [0, 0] - - Local $hTemp = _WinAPI_Create32BitHICON($hIcon) - If @error Then Return SetError(@error, @extended, 0) - - Local $iError = 0 - Do - Local $tICONINFO = DllStructCreate($tagICONINFO) - Local $aRet = DllCall('user32.dll', 'bool', 'GetIconInfo', 'handle', $hTemp, 'struct*', $tICONINFO) - If @error Or Not $aRet[0] Then - $iError = @error + 10 - ExitLoop - EndIf - For $i = 0 To 1 - $aDIB[$i] = DllStructGetData($tICONINFO, $i + 4) - Next - Local $tBITMAP = DllStructCreate($tagBITMAP) - If Not _WinAPI_GetObject($aDIB[0], DllStructGetSize($tBITMAP), $tBITMAP) Then - $iError = @error + 20 - ExitLoop - EndIf - If $bDib Then - $hBitmap = _WinAPI_CreateDIB(DllStructGetData($tBITMAP, 'bmWidth'), DllStructGetData($tBITMAP, 'bmHeight')) - Local $hDC = _WinAPI_CreateCompatibleDC(0) - Local $hSv = _WinAPI_SelectObject($hDC, $hBitmap) - _WinAPI_DrawIconEx($hDC, 0, 0, $hTemp) - _WinAPI_SelectObject($hDC, $hSv) - _WinAPI_DeleteDC($hDC) - Else - $hBitmap = $aDIB[1] - $aDIB[1] = 0 - EndIf - Until 1 - For $i = 0 To 1 - If $aDIB[$i] Then - _WinAPI_DeleteObject($aDIB[$i]) - EndIf - Next - _WinAPI_DestroyIcon($hTemp) - If $iError Then Return SetError($iError, 0, 0) - If Not $hBitmap Then Return SetError(12, 0, 0) - - If $bDelete Then - _WinAPI_DestroyIcon($hIcon) - EndIf - - Return $hBitmap -EndFunc ;==>_WinAPI_Create32BitHBITMAP - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_Create32BitHICON($hIcon, $bDelete = False) - Local $ahBitmap[2], $hResult = 0 - Local $aDIB[2][2] = [[0, 0], [0, 0]] - - Local $tICONINFO = DllStructCreate($tagICONINFO) - Local $aRet = DllCall('user32.dll', 'bool', 'GetIconInfo', 'handle', $hIcon, 'struct*', $tICONINFO) - If @error Then Return SetError(@error, @extended, 0) - If Not $aRet[0] Then Return SetError(10, 0, 0) - - For $i = 0 To 1 - $ahBitmap[$i] = DllStructGetData($tICONINFO, $i + 4) - Next - If _WinAPI_IsAlphaBitmap($ahBitmap[1]) Then - $aDIB[0][0] = _WinAPI_CreateANDBitmap($ahBitmap[1]) - If Not @error Then - $hResult = _WinAPI_CreateIconIndirect($ahBitmap[1], $aDIB[0][0]) - EndIf - Else - Local $tSIZE = _WinAPI_GetBitmapDimension($ahBitmap[1]) - Local $aSize[2] - For $i = 0 To 1 - $aSize[$i] = DllStructGetData($tSIZE, $i + 1) - Next - Local $hSrcDC = _WinAPI_CreateCompatibleDC(0) - Local $hDstDC = _WinAPI_CreateCompatibleDC(0) - Local $hSrcSv, $hDstSv - For $i = 0 To 1 - $aDIB[$i][0] = _WinAPI_CreateDIB($aSize[0], $aSize[1]) - $aDIB[$i][1] = $__g_vExt - $hSrcSv = _WinAPI_SelectObject($hSrcDC, $ahBitmap[$i]) - $hDstSv = _WinAPI_SelectObject($hDstDC, $aDIB[$i][0]) - _WinAPI_BitBlt($hDstDC, 0, 0, $aSize[0], $aSize[1], $hSrcDC, 0, 0, 0x00C000CA) - _WinAPI_SelectObject($hSrcDC, $hSrcSv) - _WinAPI_SelectObject($hDstDC, $hDstSv) - Next - _WinAPI_DeleteDC($hSrcDC) - _WinAPI_DeleteDC($hDstDC) - $aRet = DllCall('user32.dll', 'lresult', 'CallWindowProc', 'ptr', __XORProc(), 'ptr', 0, _ - 'uint', $aSize[0] * $aSize[1] * 4, 'wparam', $aDIB[0][1], 'lparam', $aDIB[1][1]) - If Not @error And $aRet[0] Then - $hResult = _WinAPI_CreateIconIndirect($aDIB[1][0], $ahBitmap[0]) - EndIf - EndIf - For $i = 0 To 1 - _WinAPI_DeleteObject($ahBitmap[$i]) - If $aDIB[$i][0] Then - _WinAPI_DeleteObject($aDIB[$i][0]) - EndIf - Next - If Not $hResult Then Return SetError(11, 0, 0) - - If $bDelete Then - _WinAPI_DestroyIcon($hIcon) - EndIf - - Return $hResult -EndFunc ;==>_WinAPI_Create32BitHICON - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateANDBitmap($hBitmap) - Local $iError = 0, $hDib = 0 - - $hBitmap = _WinAPI_CopyBitmap($hBitmap) - If Not $hBitmap Then Return SetError(@error + 20, @extended, 0) - - Do - Local $atDIB[2] - $atDIB[0] = DllStructCreate($tagDIBSECTION) - If (Not _WinAPI_GetObject($hBitmap, DllStructGetSize($atDIB[0]), $atDIB[0])) _ - Or (DllStructGetData($atDIB[0], 'bmBitsPixel') <> 32) Or (DllStructGetData($atDIB[0], 'biCompression')) Then - $iError = 10 - ExitLoop - EndIf - $atDIB[1] = DllStructCreate($tagBITMAP) - $hDib = _WinAPI_CreateDIB(DllStructGetData($atDIB[0], 'bmWidth'), DllStructGetData($atDIB[0], 'bmHeight'), 1) - If Not _WinAPI_GetObject($hDib, DllStructGetSize($atDIB[1]), $atDIB[1]) Then - $iError = 11 - ExitLoop - EndIf - Local $aRet = DllCall('user32.dll', 'lresult', 'CallWindowProc', 'ptr', __ANDProc(), 'ptr', 0, 'uint', 0, _ - 'wparam', DllStructGetPtr($atDIB[0]), 'lparam', DllStructGetPtr($atDIB[1])) - If @error Then - $iError = @error - ExitLoop - EndIf - If Not $aRet[0] Then - $iError = 12 - ExitLoop - EndIf - $iError = 0 - Until 1 - _WinAPI_DeleteObject($hBitmap) - If $iError Then - If $hDib Then - _WinAPI_DeleteObject($hDib) - EndIf - $hDib = 0 - EndIf - - Return SetError($iError, 0, $hDib) -EndFunc ;==>_WinAPI_CreateANDBitmap - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateBitmapIndirect(ByRef $tBITMAP) - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateBitmapIndirect', 'struct*', $tBITMAP) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateBitmapIndirect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateBrushIndirect($iStyle, $iRGB, $iHatch = 0) - Local $tLOGBRUSH = DllStructCreate($tagLOGBRUSH) - DllStructSetData($tLOGBRUSH, 1, $iStyle) - DllStructSetData($tLOGBRUSH, 2, __RGB($iRGB)) - DllStructSetData($tLOGBRUSH, 3, $iHatch) - - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateBrushIndirect', 'struct*', $tLOGBRUSH) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateBrushIndirect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateColorAdjustment($iFlags = 0, $iIlluminant = 0, $iGammaR = 10000, $iGammaG = 10000, $iGammaB = 10000, $iBlack = 0, $iWhite = 10000, $iContrast = 0, $iBrightness = 0, $iColorfulness = 0, $iTint = 0) - Local $tCA = DllStructCreate($tagCOLORADJUSTMENT) - DllStructSetData($tCA, 1, DllStructGetSize($tCA)) - DllStructSetData($tCA, 2, $iFlags) - DllStructSetData($tCA, 3, $iIlluminant) - DllStructSetData($tCA, 4, $iGammaR) - DllStructSetData($tCA, 5, $iGammaG) - DllStructSetData($tCA, 6, $iGammaB) - DllStructSetData($tCA, 7, $iBlack) - DllStructSetData($tCA, 8, $iWhite) - DllStructSetData($tCA, 9, $iContrast) - DllStructSetData($tCA, 10, $iBrightness) - DllStructSetData($tCA, 11, $iColorfulness) - DllStructSetData($tCA, 12, $iTint) - - Return $tCA -EndFunc ;==>_WinAPI_CreateColorAdjustment - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateCompatibleBitmapEx($hDC, $iWidth, $iHeight, $iRGB) - Local $hBrush = _WinAPI_CreateBrushIndirect(0, $iRGB) - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateCompatibleDC', 'handle', $hDC) - Local $hDestDC = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'CreateCompatibleBitmap', 'handle', $hDC, 'int', $iWidth, 'int', $iHeight) - Local $hBmp = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hDestDC, 'handle', $hBmp) - Local $hDestSv = $aRet[0] - Local $tRECT = _WinAPI_CreateRectEx(0, 0, $iWidth, $iHeight) - Local $iError = 0 - $aRet = DllCall('user32.dll', 'int', 'FillRect', 'handle', $hDestDC, 'struct*', $tRECT, 'handle', $hBrush) - If @error Or Not $aRet[0] Then - $iError = @error + 10 - _WinAPI_DeleteObject($hBmp) - EndIf - _WinAPI_DeleteObject($hBrush) - DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hDestDC, 'handle', $hDestSv) - DllCall('gdi32.dll', 'bool', 'DeleteDC', 'handle', $hDestDC) - If $iError Then Return SetError($iError, 0, 0) - - Return $hBmp -EndFunc ;==>_WinAPI_CreateCompatibleBitmapEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateDIB($iWidth, $iHeight, $iBitsPerPel = 32, $tColorTable = 0, $iColorCount = 0) - Local $aRGBQ[2], $iColors, $tagRGBQ - Switch $iBitsPerPel - Case 1 - $iColors = 2 - Case 4 - $iColors = 16 - Case 8 - $iColors = 256 - Case Else - $iColors = 0 - EndSwitch - If $iColors Then - If Not IsDllStruct($tColorTable) Then - Switch $iBitsPerPel - Case 1 - $aRGBQ[0] = 0 - $aRGBQ[1] = 0xFFFFFF - $tColorTable = _WinAPI_CreateDIBColorTable($aRGBQ) - Case Else - - EndSwitch - Else - If $iColors > $iColorCount Then - $iColors = $iColorCount - EndIf - If (Not $iColors) Or ((4 * $iColors) > DllStructGetSize($tColorTable)) Then - Return SetError(20, 0, 0) - EndIf - EndIf - $tagRGBQ = ';dword aRGBQuad[' & $iColors & ']' - Else - $tagRGBQ = '' - EndIf - Local $tBITMAPINFO = DllStructCreate($tagBITMAPINFOHEADER & $tagRGBQ) - - DllStructSetData($tBITMAPINFO, 'biSize', 40) - DllStructSetData($tBITMAPINFO, 'biWidth', $iWidth) - DllStructSetData($tBITMAPINFO, 'biHeight', $iHeight) - DllStructSetData($tBITMAPINFO, 'biPlanes', 1) - DllStructSetData($tBITMAPINFO, 'biBitCount', $iBitsPerPel) - DllStructSetData($tBITMAPINFO, 'biCompression', 0) - DllStructSetData($tBITMAPINFO, 'biSizeImage', 0) - DllStructSetData($tBITMAPINFO, 'biXPelsPerMeter', 0) - DllStructSetData($tBITMAPINFO, 'biYPelsPerMeter', 0) - DllStructSetData($tBITMAPINFO, 'biClrUsed', $iColors) - DllStructSetData($tBITMAPINFO, 'biClrImportant', 0) - If $iColors Then - If IsDllStruct($tColorTable) Then - _WinAPI_MoveMemory(DllStructGetPtr($tBITMAPINFO, 'aRGBQuad'), $tColorTable, 4 * $iColors) - Else - _WinAPI_ZeroMemory(DllStructGetPtr($tBITMAPINFO, 'aRGBQuad'), 4 * $iColors) - EndIf - EndIf - Local $hBitmap = _WinAPI_CreateDIBSection(0, $tBITMAPINFO, 0, $__g_vExt) - If Not $hBitmap Then Return SetError(@error, @extended, 0) - - Return $hBitmap -EndFunc ;==>_WinAPI_CreateDIB - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateDIBColorTable(Const ByRef $aColorTable, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aColorTable, $iStart, $iEnd) Then Return SetError(@error + 10, @extended, 0) - - Local $tColorTable = DllStructCreate('dword[' & ($iEnd - $iStart + 1) & ']') - - Local $iCount = 1 - For $i = $iStart To $iEnd - DllStructSetData($tColorTable, 1, _WinAPI_SwitchColor(__RGB($aColorTable[$i])), $iCount) - $iCount += 1 - Next - Return $tColorTable -EndFunc ;==>_WinAPI_CreateDIBColorTable - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateDIBitmap($hDC, ByRef $tBITMAPINFO, $iUsage, $pBits = 0) - Local $iInit = 0 - If $pBits Then - $iInit = 0x04 - EndIf - - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateDIBitmap', 'handle', $hDC, 'struct*', $tBITMAPINFO, 'dword', $iInit, 'struct*', $pBits, _ - 'struct*', $tBITMAPINFO, 'uint', $iUsage) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateDIBitmap - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateDIBSection($hDC, $tBITMAPINFO, $iUsage, ByRef $pBits, $hSection = 0, $iOffset = 0) - $pBits = 0 - - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateDIBSection', 'handle', $hDC, 'struct*', $tBITMAPINFO, 'uint', $iUsage, _ - 'ptr*', 0, 'handle', $hSection, 'dword', $iOffset) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - $pBits = $aRet[4] - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateDIBSection - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateEllipticRgn($tRECT) - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateEllipticRgnIndirect', 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateEllipticRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateEmptyIcon($iWidth, $iHeight, $iBitsPerPel = 32) - Local $hXOR = _WinAPI_CreateDIB($iWidth, $iHeight, $iBitsPerPel) - Local $hAND = _WinAPI_CreateDIB($iWidth, $iHeight, 1) - Local $hDC = _WinAPI_CreateCompatibleDC(0) - Local $hSv = _WinAPI_SelectObject($hDC, $hAND) - Local $hBrush = _WinAPI_CreateSolidBrush(0xFFFFFF) - Local $tRECT = _WinAPI_CreateRect(0, 0, $iWidth, $iHeight) - _WinAPI_FillRect($hDC, $tRECT, $hBrush) - _WinAPI_DeleteObject($hBrush) - _WinAPI_SelectObject($hDC, $hSv) - _WinAPI_DeleteDC($hDC) - Local $hIcon = _WinAPI_CreateIconIndirect($hXOR, $hAND) - Local $iError = @error - If $hXOR Then - _WinAPI_DeleteObject($hXOR) - EndIf - If $hAND Then - _WinAPI_DeleteObject($hAND) - EndIf - If Not $hIcon Then Return SetError($iError + 10, 0, 0) - - Return $hIcon -EndFunc ;==>_WinAPI_CreateEmptyIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateEnhMetaFile($hDC = 0, $tRECT = 0, $bPixels = False, $sFilePath = '', $sDescription = '') - Local $sTypeOfFile = 'wstr' - If Not StringStripWS($sFilePath, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfFile = 'ptr' - $sFilePath = 0 - EndIf - - Local $tData = 0, $aData = StringSplit($sDescription, '|', $STR_NOCOUNT) - If UBound($aData) < 2 Then - ReDim $aData[2] - $aData[1] = '' - EndIf - For $i = 0 To 1 - $aData[$i] = StringStripWS($aData[$i], $STR_STRIPLEADING + $STR_STRIPTRAILING) - Next - If ($aData[0]) Or ($aData[1]) Then - $tData = _WinAPI_ArrayToStruct($aData) - EndIf - - Local $iXp, $iYp, $iXm, $iYm, $hRef = 0 - If $bPixels And (IsDllStruct($tRECT)) Then - If Not $hDC Then - $hRef = _WinAPI_GetDC(0) - EndIf - $iXp = _WinAPI_GetDeviceCaps($hRef, 8) - $iYp = _WinAPI_GetDeviceCaps($hRef, 10) - $iXm = _WinAPI_GetDeviceCaps($hRef, 4) - $iYm = _WinAPI_GetDeviceCaps($hRef, 6) - If $hRef Then - _WinAPI_ReleaseDC(0, $hRef) - EndIf - For $i = 1 To 3 Step 2 - DllStructSetData($tRECT, $i, Round(DllStructGetData($tRECT, $i) * $iXm / $iXp * 100)) - Next - For $i = 2 To 4 Step 2 - DllStructSetData($tRECT, $i, Round(DllStructGetData($tRECT, $i) * $iYm / $iYp * 100)) - Next - EndIf - - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateEnhMetaFileW', 'handle', $hDC, $sTypeOfFile, $sFilePath, 'struct*', $tRECT, _ - 'struct*', $tData) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateEnhMetaFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateFontEx($iHeight, $iWidth = 0, $iEscapement = 0, $iOrientation = 0, $iWeight = 400, $bItalic = False, $bUnderline = False, $bStrikeOut = False, $iCharSet = 1, $iOutPrecision = 0, $iClipPrecision = 0, $iQuality = 0, $iPitchAndFamily = 0, $sFaceName = '', $iStyle = 0) - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateFontW', 'int', $iHeight, 'int', $iWidth, 'int', $iEscapement, _ - 'int', $iOrientation, 'int', $iWeight, 'dword', $bItalic, 'dword', $bUnderline, 'dword', $bStrikeOut, _ - 'dword', $iCharSet, 'dword', $iOutPrecision, 'dword', $iClipPrecision, 'dword', $iQuality, _ - 'dword', $iPitchAndFamily, 'wstr', _WinAPI_GetFontName($sFaceName, $iStyle, $iCharSet)) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateFontEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateIconIndirect($hBitmap, $hMask, $iXHotspot = 0, $iYHotspot = 0, $bIcon = True) - Local $tICONINFO = DllStructCreate($tagICONINFO) - DllStructSetData($tICONINFO, 1, $bIcon) - DllStructSetData($tICONINFO, 2, $iXHotspot) - DllStructSetData($tICONINFO, 3, $iYHotspot) - DllStructSetData($tICONINFO, 4, $hMask) - DllStructSetData($tICONINFO, 5, $hBitmap) - - Local $aRet = DllCall('user32.dll', 'handle', 'CreateIconIndirect', 'struct*', $tICONINFO) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateIconIndirect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateNullRgn() - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateRectRgn', 'int', 0, 'int', 0, 'int', 0, 'int', 0) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateNullRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreatePolygonRgn(Const ByRef $aPoint, $iStart = 0, $iEnd = -1, $iMode = 1) - If __CheckErrorArrayBounds($aPoint, $iStart, $iEnd, 2, 2) Then Return SetError(@error + 10, @extended, 0) - - Local $tagStruct = '' - For $i = $iStart To $iEnd - $tagStruct &= 'int[2];' - Next - Local $tData = DllStructCreate($tagStruct) - - Local $iCount = 1 - For $i = $iStart To $iEnd - For $j = 0 To 1 - DllStructSetData($tData, $iCount, $aPoint[$i][$j], $j + 1) - Next - $iCount += 1 - Next - - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreatePolygonRgn', 'struct*', $tData, 'int', $iCount - 1, 'int', $iMode) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreatePolygonRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateRectRgnIndirect($tRECT) - Local $aRet = DllCall('gdi32.dll', 'handle', 'CreateRectRgnIndirect', 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateRectRgnIndirect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateTransform($nM11 = 1, $nM12 = 0, $nM21 = 0, $nM22 = 1, $nDX = 0, $nDY = 0) - Local $tXFORM = DllStructCreate($tagXFORM) - DllStructSetData($tXFORM, 1, $nM11) - DllStructSetData($tXFORM, 2, $nM12) - DllStructSetData($tXFORM, 3, $nM21) - DllStructSetData($tXFORM, 4, $nM22) - DllStructSetData($tXFORM, 5, $nDX) - DllStructSetData($tXFORM, 6, $nDY) - - Return $tXFORM -EndFunc ;==>_WinAPI_CreateTransform - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DeleteEnhMetaFile($hEmf) - Local $aRet = DllCall('gdi32.dll', 'bool', 'DeleteEnhMetaFile', 'handle', $hEmf) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DeleteEnhMetaFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DPtoLP($hDC, ByRef $tPOINT, $iCount = 1) - Local $aRet = DllCall('gdi32.dll', 'bool', 'DPtoLP', 'handle', $hDC, 'struct*', $tPOINT, 'int', $iCount) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DPtoLP - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DrawAnimatedRects($hWnd, $tRectFrom, $tRectTo) - Local $aRet = DllCall('user32.dll', 'bool', 'DrawAnimatedRects', 'hwnd', $hWnd, 'int', 3, 'struct*', $tRectFrom, _ - 'struct*', $tRectTo) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DrawAnimatedRects - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawBitmap($hDC, $iX, $iY, $hBitmap, $iRop = 0x00CC0020) - Local $tObj = DllStructCreate($tagBITMAP) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetObject', 'handle', $hBitmap, 'int', DllStructGetSize($tObj), 'struct*', $tObj) - If @error Or Not $aRet[0] Then Return SetError(@error + 20, @extended, 0) - - $aRet = DllCall('user32.dll', 'handle', 'GetDC', 'hwnd', 0) - Local $_hDC = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'CreateCompatibleDC', 'handle', $_hDC) - Local $hSrcDC = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hSrcDC, 'handle', $hBitmap) - Local $hSrcSv = $aRet[0] - Local $iError = 0 - $aRet = DllCall('gdi32.dll', 'int', 'BitBlt', 'hwnd', $hDC, 'int', $iX, 'int', $iY, 'int', DllStructGetData($tObj, 'bmWidth'), 'int', DllStructGetData($tObj, 'bmHeight'), 'hwnd', $hSrcDC, 'int', 0, 'int', 0, 'int', $iRop) - If @error Or Not $aRet[0] Then - $iError = @error + 1 - EndIf - DllCall('user32.dll', 'int', 'ReleaseDC', 'hwnd', 0, 'handle', $_hDC) - DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hSrcDC, 'handle', $hSrcSv) - DllCall('gdi32.dll', 'bool', 'DeleteDC', 'handle', $hSrcDC) - If $iError Then Return SetError(10, 0, 0) - - Return 1 -EndFunc ;==>_WinAPI_DrawBitmap - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DrawFocusRect($hDC, $tRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'DrawFocusRect', 'handle', $hDC, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DrawFocusRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Rover -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_DrawShadowText($hDC, $sText, $iRGBText, $iRGBShadow, $iXOffset = 0, $iYOffset = 0, $tRECT = 0, $iFlags = 0) - Local $aRet - - If Not IsDllStruct($tRECT) Then - $tRECT = DllStructCreate($tagRECT) - $aRet = DllCall('user32.dll', 'bool', 'GetClientRect', 'hwnd', _WinAPI_WindowFromDC($hDC), 'struct*', $tRECT) - If @error Then Return SetError(@error + 10, @extended, 0) - If Not $aRet[0] Then Return SetError(10, 0, 0) - EndIf - $aRet = DllCall('comctl32.dll', 'int', 'DrawShadowText', 'handle', $hDC, 'wstr', $sText, 'uint', -1, 'struct*', $tRECT, _ - 'dword', $iFlags, 'int', __RGB($iRGBText), 'int', __RGB($iRGBShadow), 'int', $iXOffset, 'int', $iYOffset) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DrawShadowText - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmDefWindowProc($hWnd, $iMsg, $wParam, $lParam) - Local $aRet = DllCall('dwmapi.dll', 'bool', 'DwmDefWindowProc', 'hwnd', $hWnd, 'uint', $iMsg, 'wparam', $wParam, 'lparam', $lParam, 'lresult*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_DwmDefWindowProc - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmEnableBlurBehindWindow($hWnd, $bEnable = True, $bTransition = False, $hRgn = 0) - Local $tBLURBEHIND = DllStructCreate('dword;bool;handle;bool') - Local $iFlags = 0 - - If $hRgn Then - $iFlags += 2 - DllStructSetData($tBLURBEHIND, 3, $hRgn) - EndIf - - DllStructSetData($tBLURBEHIND, 1, BitOR($iFlags, 0x05)) - DllStructSetData($tBLURBEHIND, 2, $bEnable) - DllStructSetData($tBLURBEHIND, 4, $bTransition) - - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmEnableBlurBehindWindow', 'hwnd', $hWnd, 'struct*', $tBLURBEHIND) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmEnableBlurBehindWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmEnableComposition($bEnable) - If $bEnable Then $bEnable = 1 - - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmEnableComposition', 'uint', $bEnable) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmEnableComposition - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmExtendFrameIntoClientArea($hWnd, $tMARGINS = 0) - If Not IsDllStruct($tMARGINS) Then - $tMARGINS = _WinAPI_CreateMargins(-1, -1, -1, -1) - EndIf - - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmExtendFrameIntoClientArea', 'hwnd', $hWnd, 'struct*', $tMARGINS) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmExtendFrameIntoClientArea - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmGetColorizationColor() - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmGetColorizationColor', 'dword*', 0, 'bool*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return SetExtended($aRet[2], $aRet[1]) -EndFunc ;==>_WinAPI_DwmGetColorizationColor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmGetColorizationParameters() - Local $tDWMCP = DllStructCreate($tagDWM_COLORIZATION_PARAMETERS) - Local $aRet = DllCall('dwmapi.dll', 'uint', 127, 'struct*', $tDWMCP) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tDWMCP -EndFunc ;==>_WinAPI_DwmGetColorizationParameters - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmGetWindowAttribute($hWnd, $iAttribute) - Local $tagStruct - Switch $iAttribute - Case 5, 9 - $tagStruct = $tagRECT - Case 1 - $tagStruct = 'uint' - Case Else - Return SetError(11, 0, 0) - EndSwitch - - Local $tData = DllStructCreate($tagStruct) - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmGetWindowAttribute', 'hwnd', $hWnd, 'dword', $iAttribute, _ - 'struct*', $tData, 'dword', DllStructGetSize($tData)) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Switch $iAttribute - Case 1 - Return DllStructGetData($tData, 1) - Case Else - Return $tData - EndSwitch -EndFunc ;==>_WinAPI_DwmGetWindowAttribute - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmInvalidateIconicBitmaps($hWnd) - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmInvalidateIconicBitmaps', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmInvalidateIconicBitmaps - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmIsCompositionEnabled() - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmIsCompositionEnabled', 'bool*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[1] -EndFunc ;==>_WinAPI_DwmIsCompositionEnabled - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmQueryThumbnailSourceSize($hThumbnail) - Local $tSIZE = DllStructCreate($tagSIZE) - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmQueryThumbnailSourceSize', 'handle', $hThumbnail, 'struct*', $tSIZE) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tSIZE -EndFunc ;==>_WinAPI_DwmQueryThumbnailSourceSize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmRegisterThumbnail($hDestination, $hSource) - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmRegisterThumbnail', 'hwnd', $hDestination, 'hwnd', $hSource, 'handle*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_DwmRegisterThumbnail - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DwmSetColorizationParameters($tDWMCP) - Local $aRet = DllCall('dwmapi.dll', 'uint', 131, 'struct*', $tDWMCP, 'uint', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmSetColorizationParameters - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmSetIconicLivePreviewBitmap($hWnd, $hBitmap, $bFrame = False, $tClient = 0) - Local $iFlags - If $bFrame Then - $iFlags = 0x00000001 - Else - $iFlags = 0 - EndIf - - Local $aRet = DllCall('dwmapi.dll', 'uint', 'DwmSetIconicLivePreviewBitmap', 'hwnd', $hWnd, 'handle', $hBitmap, _ - 'struct*', $tClient, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmSetIconicLivePreviewBitmap - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmSetIconicThumbnail($hWnd, $hBitmap, $bFrame = False) - Local $iFlags - If $bFrame Then - $iFlags = 0x00000001 - Else - $iFlags = 0 - EndIf - - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmSetIconicThumbnail', 'hwnd', $hWnd, 'handle', $hBitmap, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmSetIconicThumbnail - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmSetWindowAttribute($hWnd, $iAttribute, $iData) - Switch $iAttribute - Case 2, 3, 4, 6, 7, 8, 10, 11, 12 - - Case Else - Return SetError(1, 0, 0) - EndSwitch - - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmSetWindowAttribute', 'hwnd', $hWnd, 'dword', $iAttribute, _ - 'dword*', $iData, 'dword', 4) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmSetWindowAttribute - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmUnregisterThumbnail($hThumbnail) - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmUnregisterThumbnail', 'handle', $hThumbnail) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmUnregisterThumbnail - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DwmUpdateThumbnailProperties($hThumbnail, $bVisible = True, $bClientAreaOnly = False, $iOpacity = 255, $tRectDest = 0, $tRectSrc = 0) - Local Const $tagDWM_THUMBNAIL_PROPERTIES = 'struct;dword dwFlags;int rcDestination[4];int rcSource[4];byte opacity;bool opacity;bool fSourceClientAreaOnly;endstruct' - Local $tTHUMBNAILPROPERTIES = DllStructCreate($tagDWM_THUMBNAIL_PROPERTIES) - Local $tSIZE, $iFlags = 0 - If Not IsDllStruct($tRectDest) Then - $tSIZE = _WinAPI_DwmQueryThumbnailSourceSize($hThumbnail) - If @error Then - Return SetError(@error + 10, @extended, 0) - EndIf - $tRectDest = _WinAPI_CreateRectEx(0, 0, DllStructGetData($tSIZE, 1), DllStructGetData($tSIZE, 2)) - EndIf - For $i = 1 To 4 - DllStructSetData($tTHUMBNAILPROPERTIES, 2, DllStructGetData($tRectDest, $i), $i) - Next - If IsDllStruct($tRectSrc) Then - $iFlags += 2 - For $i = 1 To 4 - DllStructSetData($tTHUMBNAILPROPERTIES, 3, DllStructGetData($tRectSrc, $i), $i) - Next - EndIf - - DllStructSetData($tTHUMBNAILPROPERTIES, 1, BitOR($iFlags, 0x1D)) - DllStructSetData($tTHUMBNAILPROPERTIES, 4, $iOpacity) - DllStructSetData($tTHUMBNAILPROPERTIES, 5, $bVisible) - DllStructSetData($tTHUMBNAILPROPERTIES, 6, $bClientAreaOnly) - - Local $aRet = DllCall('dwmapi.dll', 'long', 'DwmUpdateThumbnailProperties', 'handle', $hThumbnail, _ - 'struct*', $tTHUMBNAILPROPERTIES) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DwmUpdateThumbnailProperties - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_Ellipse($hDC, $tRECT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'Ellipse', 'handle', $hDC, 'int', DllStructGetData($tRECT, 1), _ - 'int', DllStructGetData($tRECT, 2), 'int', DllStructGetData($tRECT, 3), 'int', DllStructGetData($tRECT, 4)) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_Ellipse - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EndPaint($hWnd, ByRef $tPAINTSTRUCT) - Local $aRet = DllCall('user32.dll', 'bool', 'EndPaint', 'hwnd', $hWnd, 'struct*', $tPAINTSTRUCT) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_EndPaint - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_EndPath($hDC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'EndPath', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_EndPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumDisplayMonitors($hDC = 0, $tRECT = 0) - Local $hEnumProc = DllCallbackRegister('__EnumDisplayMonitorsProc', 'bool', 'handle;handle;ptr;lparam') - - Dim $__g_vEnum[101][2] = [[0]] - Local $aRet = DllCall('user32.dll', 'bool', 'EnumDisplayMonitors', 'handle', $hDC, 'struct*', $tRECT, _ - 'ptr', DllCallbackGetPtr($hEnumProc), 'lparam', 0) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0][0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumDisplayMonitors - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumDisplaySettings($sDevice, $iMode) - Local $sTypeOfDevice = 'wstr' - If Not StringStripWS($sDevice, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfDevice = 'ptr' - $sDevice = 0 - EndIf - - Local $tDEVMODE = DllStructCreate($tagDEVMODE_DISPLAY) - DllStructSetData($tDEVMODE, 'Size', DllStructGetSize($tDEVMODE)) - DllStructSetData($tDEVMODE, 'DriverExtra', 0) - - Local $aRet = DllCall('user32.dll', 'bool', 'EnumDisplaySettingsW', $sTypeOfDevice, $sDevice, 'dword', $iMode, _ - 'struct*', $tDEVMODE) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[5] - $aResult[0] = DllStructGetData($tDEVMODE, 'PelsWidth') - $aResult[1] = DllStructGetData($tDEVMODE, 'PelsHeight') - $aResult[2] = DllStructGetData($tDEVMODE, 'BitsPerPel') - $aResult[3] = DllStructGetData($tDEVMODE, 'DisplayFrequency') - $aResult[4] = DllStructGetData($tDEVMODE, 'DisplayFlags') - Return $aResult -EndFunc ;==>_WinAPI_EnumDisplaySettings - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumFontFamilies($hDC = 0, $sFaceName = '', $iCharSet = 1, $iFontType = 0x07, $sPattern = '', $bExclude = False) - Local $tLOGFONT = DllStructCreate($tagLOGFONT) - Local $tPattern = DllStructCreate('uint;uint;ptr;wchar[' & (StringLen($sPattern) + 1) & ']') - - DllStructSetData($tPattern, 1, $iFontType) - If Not $sPattern Then - DllStructSetData($tPattern, 2, 0) - DllStructSetData($tPattern, 3, 0) - Else - DllStructSetData($tPattern, 2, $bExclude) - DllStructSetData($tPattern, 3, DllStructGetPtr($tPattern, 4)) - DllStructSetData($tPattern, 4, $sPattern) - EndIf - DllStructSetData($tLOGFONT, 9, $iCharSet) - DllStructSetData($tLOGFONT, 13, 0) - DllStructSetData($tLOGFONT, 14, StringLeft($sFaceName, 31)) - Local $hCDC - If Not $hDC Then - $hCDC = _WinAPI_CreateCompatibleDC(0) - Else - $hCDC = $hDC - EndIf - Dim $__g_vEnum[101][8] = [[0]] - Local $hEnumProc = DllCallbackRegister('__EnumFontFamiliesProc', 'int', 'ptr;ptr;dword;PTR') - Local $aRet = DllCall('gdi32.dll', 'int', 'EnumFontFamiliesExW', 'handle', $hCDC, 'struct*', $tLOGFONT, _ - 'ptr', DllCallbackGetPtr($hEnumProc), 'struct*', $tPattern, 'dword', 0) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0][0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If Not $hDC Then - _WinAPI_DeleteDC($hCDC) - EndIf - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumFontFamilies - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EqualRect($tRECT1, $tRECT2) - Local $aRet = DllCall('user32.dll', 'bool', 'EqualRect', 'struct*', $tRECT1, 'struct*', $tRECT2) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_EqualRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EqualRgn($hRgn1, $hRgn2) - Local $aRet = DllCall('gdi32.dll', 'bool', 'EqualRgn', 'handle', $hRgn1, 'handle', $hRgn2) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_EqualRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ExcludeClipRect($hDC, $tRECT) - Local $aRet = DllCall('gdi32.dll', 'int', 'ExcludeClipRect', 'handle', $hDC, 'int', DllStructGetData($tRECT, 1), _ - 'int', DllStructGetData($tRECT, 2), 'int', DllStructGetData($tRECT, 3), 'int', DllStructGetData($tRECT, 4)) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ExcludeClipRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ExtCreatePen($iPenStyle, $iWidth, $iBrushStyle, $iRGB, $iHatch = 0, $aUserStyle = 0, $iStart = 0, $iEnd = -1) - Local $iCount = 0, $tStyle = 0 - - If BitAND($iPenStyle, 0xFF) = 7 Then - If __CheckErrorArrayBounds($aUserStyle, $iStart, $iEnd) Then Return SetError(@error + 10, @extended, 0) - $tStyle = DllStructCreate('dword[' & ($iEnd - $iStart + 1) & ']') - - For $i = $iStart To $iEnd - DllStructSetData($tStyle, 1, $aUserStyle[$i], $iCount + 1) - $iCount += 1 - Next - EndIf - - Local $tLOGBRUSH = DllStructCreate($tagLOGBRUSH) - DllStructSetData($tLOGBRUSH, 1, $iBrushStyle) - DllStructSetData($tLOGBRUSH, 2, __RGB($iRGB)) - DllStructSetData($tLOGBRUSH, 3, $iHatch) - - Local $aRet = DllCall('gdi32.dll', 'handle', 'ExtCreatePen', 'dword', $iPenStyle, 'dword', $iWidth, 'struct*', $tLOGBRUSH, _ - 'dword', $iCount, 'struct*', $tStyle) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ExtCreatePen - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ExtCreateRegion($tRGNDATA, $tXFORM = 0) - Local $aRet = DllCall('gdi32.dll', 'handle', 'ExtCreateRegion', 'struct*', $tXFORM, 'dword', DllStructGetSize($tRGNDATA), _ - 'struct*', $tRGNDATA) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ExtCreateRegion - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ExtFloodFill($hDC, $iX, $iY, $iRGB, $iType = 0) - Local $aRet = DllCall('gdi32.dll', 'bool', 'ExtFloodFill', 'handle', $hDC, 'int', $iX, 'int', $iY, 'dword', __RGB($iRGB), _ - 'uint', $iType) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ExtFloodFill - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ExtSelectClipRgn($hDC, $hRgn, $iMode = 5) - Local $aRet = DllCall('gdi32.dll', 'int', 'ExtSelectClipRgn', 'handle', $hDC, 'handle', $hRgn, 'int', $iMode) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ExtSelectClipRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FillPath($hDC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'FillPath', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FillPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FillRgn($hDC, $hRgn, $hBrush) - Local $aRet = DllCall('gdi32.dll', 'bool', 'FillRgn', 'handle', $hDC, 'handle', $hRgn, 'handle', $hBrush) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FillRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FlattenPath($hDC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'FlattenPath', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FlattenPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FrameRgn($hDC, $hRgn, $hBrush, $iWidth, $iHeight) - Local $aRet = DllCall('gdi32.dll', 'bool', 'FrameRgn', 'handle', $hDC, 'handle', $hRgn, 'handle', $hBrush, 'int', $iWidth, 'int', $iHeight) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FrameRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GdiComment($hDC, $pBuffer, $iSize) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GdiComment', 'handle', $hDC, 'uint', $iSize, 'struct*', $pBuffer) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GdiComment - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetArcDirection($hDC) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetArcDirection', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - If ($aRet[0] < 1) Or ($aRet[0] > 2) Then Return SetError(10, $aRet[0], 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetArcDirection - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetBitmapBits($hBitmap, $iSize, $pBits) - Local $aRet = DllCall('gdi32.dll', 'long', 'GetBitmapBits', 'handle', $hBitmap, 'long', $iSize, 'struct*', $pBits) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetBitmapBits - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetBitmapDimensionEx($hBitmap) - Local $tSIZE = DllStructCreate($tagSIZE) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GetBitmapDimensionEx', 'handle', $hBitmap, 'struct*', $tSIZE) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $tSIZE -EndFunc ;==>_WinAPI_GetBitmapDimensionEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetBkColor($hDC) - Local $aRet = DllCall('gdi32.dll', 'dword', 'GetBkColor', 'handle', $hDC) - If @error Or ($aRet[0] = -1) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = -1 Then Return SetError(1000, 0, 0) - - Return __RGB($aRet[0]) -EndFunc ;==>_WinAPI_GetBkColor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetBoundsRect($hDC, $iFlags = 0) - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('gdi32.dll', 'uint', 'GetBoundsRect', 'handle', $hDC, 'struct*', $tRECT, 'uint', $iFlags) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return SetExtended($aRet[0], $tRECT) -EndFunc ;==>_WinAPI_GetBoundsRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetBrushOrg($hDC) - Local $tPOINT = DllStructCreate($tagPOINT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GetBrushOrgEx', 'handle', $hDC, 'struct*', $tPOINT) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tPOINT -EndFunc ;==>_WinAPI_GetBrushOrg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetBValue($iRGB) - Return BitShift(BitAND(__RGB($iRGB), 0xFF0000), 16) -EndFunc ;==>_WinAPI_GetBValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetClipBox($hDC, ByRef $tRECT) - $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetClipBox', 'handle', $hDC, 'struct*', $tRECT) - If @error Or Not $aRet[0] Then - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - $tRECT = 0 - Return SetError(@error, @extended, 0) - EndIf - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetClipBox - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetClipRgn($hDC) - Local $hRgn = _WinAPI_CreateRectRgn(0, 0, 0, 0) - Local $iError = 0 - Local $aRet = DllCall('gdi32.dll', 'int', 'GetClipRgn', 'handle', $hDC, 'handle', $hRgn) - If @error Or ($aRet[0] = -1) Then $iError = @error + 10 - If $iError Or Not $aRet[0] Then - _WinAPI_DeleteObject($hRgn) - $hRgn = 0 - EndIf - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - Return SetError($iError, 0, $hRgn) -EndFunc ;==>_WinAPI_GetClipRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetColorAdjustment($hDC) - Local $tAdjustment = DllStructCreate($tagCOLORADJUSTMENT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GetColorAdjustment', 'handle', $hDC, 'struct*', $tAdjustment) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tAdjustment -EndFunc ;==>_WinAPI_GetColorAdjustment - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetCurrentObject($hDC, $iType) - Local $aRet = DllCall('gdi32.dll', 'handle', 'GetCurrentObject', 'handle', $hDC, 'uint', $iType) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetCurrentObject - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetCurrentPosition($hDC) - Local $tPOINT = DllStructCreate($tagPOINT) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetCurrentPositionEx', 'handle', $hDC, 'struct*', $tPOINT) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $tPOINT -EndFunc ;==>_WinAPI_GetCurrentPosition - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetDCEx($hWnd, $hRgn, $iFlags) - Local $aRet = DllCall('user32.dll', 'handle', 'GetDCEx', 'hwnd', $hWnd, 'handle', $hRgn, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetDCEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetDeviceGammaRamp($hDC, ByRef $aRamp) - $aRamp = 0 - - Local $tData = DllStructCreate('word[256];word[256];word[256]') - Local $aRet = DllCall('gdi32.dll', 'bool', 'GetDeviceGammaRamp', 'handle', $hDC, 'struct*', $tData) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Dim $aRamp[256][3] - For $i = 0 To 2 - For $j = 0 To 255 - $aRamp[$j][$i] = DllStructGetData($tData, $i + 1, $j + 1) - Next - Next - Return 1 -EndFunc ;==>_WinAPI_GetDeviceGammaRamp - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetDIBColorTable($hBitmap) - Local $hDC = _WinAPI_CreateCompatibleDC(0) - Local $hSv = _WinAPI_SelectObject($hDC, $hBitmap) - Local $tPeak = DllStructCreate('dword[256]') - Local $iError = 0 - Local $aRet = DllCall('gdi32.dll', 'uint', 'GetDIBColorTable', 'handle', $hDC, 'uint', 0, 'uint', 256, 'struct*', $tPeak) - If @error Or Not $aRet[0] Then $iError = @error + 10 - - _WinAPI_SelectObject($hDC, $hSv) - _WinAPI_DeleteDC($hDC) - If $iError Then Return SetError($iError, 0, 0) - - Local $tData = DllStructCreate('dword[' & $aRet[0] & ']') - If @error Then Return SetError(@error + 20, @extended, 0) - - _WinAPI_MoveMemory($tData, $aRet[4], 4 * $aRet[0]) - ; Return SetError(@error, @extended, 0) ; cannot really occur - ; EndIf - - Return SetExtended($aRet[0], $tData) -EndFunc ;==>_WinAPI_GetDIBColorTable - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetEnhMetaFile($sFilePath) - Local $aRet = DllCall('gdi32.dll', 'handle', 'GetEnhMetaFileW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetEnhMetaFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetEnhMetaFileBits($hEmf, ByRef $pBuffer) - Local $aRet = DllCall('gdi32.dll', 'uint', 'GetEnhMetaFileBits', 'handle', $hEmf, 'uint', 0, 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 50, @extended, 0) - $pBuffer = __HeapReAlloc($pBuffer, $aRet[0], 1) - If @error Then Return SetError(@error, @extended, 0) - - $aRet = DllCall('gdi32.dll', 'uint', 'GetEnhMetaFileBits', 'handle', $hEmf, 'uint', $aRet[0], 'ptr', $pBuffer) - If Not $aRet[0] Then Return SetError(60, 0, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetEnhMetaFileBits - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetEnhMetaFileDescription($hEmf) - Local $tData = DllStructCreate('wchar[4096]') - Local $aRet = DllCall('gdi32.dll', 'uint', 'GetEnhMetaFileDescriptionW', 'handle', $hEmf, 'uint', 4096, 'struct*', $tData) - If @error Or ($aRet[0] = 4294967295) Then Return SetError(@error + 20, $aRet[0], 0) ; GDI_ERROR - If Not $aRet[0] Then Return 0 - - Local $aData = _WinAPI_StructToArray($tData) - If @error Then Return SetError(@error, @extended, 0) - - Local $aResult[2] - For $i = 0 To 1 - If $aData[0] > $i Then - $aResult[$i] = $aData[$i + 1] - Else - $aResult[$i] = '' - EndIf - Next - Return $aResult -EndFunc ;==>_WinAPI_GetEnhMetaFileDescription - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetEnhMetaFileDimension($hEmf) - Local $tENHMETAHEADER = _WinAPI_GetEnhMetaFileHeader($hEmf) - If @error Then Return SetError(@error, @extended, 0) - - Local $tSIZE = DllStructCreate($tagSIZE) - DllStructSetData($tSIZE, 1, Round((DllStructGetData($tENHMETAHEADER, 'rcFrame', 3) - DllStructGetData($tENHMETAHEADER, 'rcFrame', 1)) * DllStructGetData($tENHMETAHEADER, 'Device', 1) / DllStructGetData($tENHMETAHEADER, 'Millimeters', 1) / 100)) - DllStructSetData($tSIZE, 2, Round((DllStructGetData($tENHMETAHEADER, 'rcFrame', 4) - DllStructGetData($tENHMETAHEADER, 'rcFrame', 2)) * DllStructGetData($tENHMETAHEADER, 'Device', 2) / DllStructGetData($tENHMETAHEADER, 'Millimeters', 2) / 100)) - - Return $tSIZE -EndFunc ;==>_WinAPI_GetEnhMetaFileDimension - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetEnhMetaFileHeader($hEmf) - Local $tENHMETAHEADER = DllStructCreate($tagENHMETAHEADER) - Local $aRet = DllCall('gdi32.dll', 'uint', 'GetEnhMetaFileHeader', 'handle', $hEmf, _ - 'uint', DllStructGetSize($tENHMETAHEADER), 'struct*', $tENHMETAHEADER) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return SetExtended($aRet[0], $tENHMETAHEADER) -EndFunc ;==>_WinAPI_GetEnhMetaFileHeader - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetFontName($sFaceName, $iStyle = 0, $iCharSet = 1) - If Not $sFaceName Then Return SetError(1, 0, '') - - Local $iFlags = 0 - If BitAND($iStyle, 0x01) Then - $iFlags += 0x00000020 - EndIf - If BitAND($iStyle, 0x02) Then - $iFlags += 0x00000001 - EndIf - If Not $iFlags Then - $iFlags = 0x00000040 - EndIf - Local $tLOGFONT = DllStructCreate($tagLOGFONT) - DllStructSetData($tLOGFONT, 9, $iCharSet) - DllStructSetData($tLOGFONT, 13, 0) - DllStructSetData($tLOGFONT, 14, StringLeft($sFaceName, 31)) - Local $tFN = DllStructCreate('dword;wchar[64]') - DllStructSetData($tFN, 1, $iFlags) - DllStructSetData($tFN, 2, '') - Local $hDC = _WinAPI_CreateCompatibleDC(0) - Local $hEnumProc = DllCallbackRegister('__EnumFontStylesProc', 'int', 'ptr;ptr;dword;lparam') - Local $sRet = '' - Local $aRet = DllCall('gdi32.dll', 'int', 'EnumFontFamiliesExW', 'handle', $hDC, 'struct*', $tLOGFONT, _ - 'ptr', DllCallbackGetPtr($hEnumProc), 'struct*', $tFN, 'dword', 0) - If Not @error And Not $aRet[0] Then $sRet = DllStructGetData($tFN, 2) - DllCallbackFree($hEnumProc) - _WinAPI_DeleteDC($hDC) - If Not $sRet Then Return SetError(2, 0, '') - - Return $sRet -EndFunc ;==>_WinAPI_GetFontName - -; #FUNCTION# ==================================================================================================================== -; Author ........: funkey -; Modified ......: UEZ -; =============================================================================================================================== -Func _WinAPI_GetFontResourceInfo($sFont, $bForce = False, $iFlag = Default) - If $iFlag = Default Then - If $bForce Then - If Not _WinAPI_AddFontResourceEx($sFont, $FR_NOT_ENUM) Then Return SetError(@error + 20, @extended, '') - EndIf - - Local $iError = 0 - Local $aRet = DllCall('gdi32.dll', 'bool', 'GetFontResourceInfoW', 'wstr', $sFont, 'dword*', 4096, 'wstr', '', 'dword', 0x01) - If @error Or Not $aRet[0] Then $iError = @error + 10 - - If $bForce Then - _WinAPI_RemoveFontResourceEx($sFont, $FR_NOT_ENUM) - EndIf - If $iError Then Return SetError($iError, 0, '') - - Return $aRet[3] - Else - If Not FileExists($sFont) Then - $sFont = RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "Fonts") & "\" & $sFont - If Not FileExists($sFont) Then Return SetError(31, 0, "") - EndIf - Local Const $hFile = _WinAPI_CreateFile($sFont, 2, 2, 2) - If Not $hFile Then Return SetError(32, _WinAPI_GetLastError(), "") - Local Const $iFile = FileGetSize($sFont) - Local Const $tBuffer = DllStructCreate("byte[" & $iFile + 1 & "]") - Local Const $pFile = DllStructGetPtr($tBuffer) - Local $iRead - _WinAPI_ReadFile($hFile, $pFile, $iFile, $iRead) - _WinAPI_CloseHandle($hFile) - Local $sTTFName = _WinAPI_GetFontMemoryResourceInfo($pFile, $iFlag) - If @error Then - If @error = 1 And $iFlag = 4 Then - $sTTFName = _WinAPI_GetFontResourceInfo($sFont, True) - Return SetError(@error, @extended, $sTTFName) - EndIf - Return SetError(33, @error, "") - EndIf - Return $sTTFName - EndIf -EndFunc ;==>_WinAPI_GetFontResourceInfo - -; #FUNCTION# ==================================================================================================================== -; Author ........: funkey -; Modified ......: UEZ, jpm -; =============================================================================================================================== -Func _WinAPI_GetFontMemoryResourceInfo($pMemory, $iFlag = 1) - Local Const $tagTT_OFFSET_TABLE = "USHORT uMajorVersion;USHORT uMinorVersion;USHORT uNumOfTables;USHORT uSearchRange;USHORT uEntrySelector;USHORT uRangeShift" - Local Const $tagTT_TABLE_DIRECTORY = "char szTag[4];ULONG uCheckSum;ULONG uOffset;ULONG uLength" - Local Const $tagTT_NAME_TABLE_HEADER = "USHORT uFSelector;USHORT uNRCount;USHORT uStorageOffset" - Local Const $tagTT_NAME_RECORD = "USHORT uPlatformID;USHORT uEncodingID;USHORT uLanguageID;USHORT uNameID;USHORT uStringLength;USHORT uStringOffset" - - Local $tTTOffsetTable = DllStructCreate($tagTT_OFFSET_TABLE, $pMemory) - Local $iNumOfTables = _WinAPI_SwapWord(DllStructGetData($tTTOffsetTable, "uNumOfTables")) - - ;check is this is a true type font and the version is 1.0 - If Not (_WinAPI_SwapWord(DllStructGetData($tTTOffsetTable, "uMajorVersion")) = 1 And _WinAPI_SwapWord(DllStructGetData($tTTOffsetTable, "uMinorVersion")) = 0) Then Return SetError(1, 0, "") - - Local $iTblDirSize = DllStructGetSize(DllStructCreate($tagTT_TABLE_DIRECTORY)) - Local $bFound = False, $iOffset, $tTblDir - For $i = 0 To $iNumOfTables - 1 - $tTblDir = DllStructCreate($tagTT_TABLE_DIRECTORY, $pMemory + DllStructGetSize($tTTOffsetTable) + $i * $iTblDirSize) - If StringLeft(DllStructGetData($tTblDir, "szTag"), 4) = "name" Then - $bFound = True - $iOffset = _WinAPI_SwapDWord(DllStructGetData($tTblDir, "uOffset")) - ExitLoop - EndIf - Next - - If Not $bFound Then Return SetError(2, 0, "") - - Local $tNTHeader = DllStructCreate($tagTT_NAME_TABLE_HEADER, $pMemory + $iOffset) - Local $iNTHeaderSize = DllStructGetSize($tNTHeader) - Local $iNRCount = _WinAPI_SwapWord(DllStructGetData($tNTHeader, "uNRCount")) - Local $iStorageOffset = _WinAPI_SwapWord(DllStructGetData($tNTHeader, "uStorageOffset")) - - Local $iTTRecordSize = DllStructGetSize(DllStructCreate($tagTT_NAME_RECORD)) - Local $tResult, $sResult, $iStringLength, $iStringOffset, $iEncodingID, $tTTRecord - For $i = 0 To $iNRCount - 1 - $tTTRecord = DllStructCreate($tagTT_NAME_RECORD, $pMemory + $iOffset + $iNTHeaderSize + $i * $iTTRecordSize) - - If _WinAPI_SwapWord($tTTRecord.uNameID) = $iFlag Then ;1 says that this is font name. 0 for example determines copyright info - $iStringLength = _WinAPI_SwapWord(DllStructGetData($tTTRecord, "uStringLength")) - $iStringOffset = _WinAPI_SwapWord(DllStructGetData($tTTRecord, "uStringOffset")) - $iEncodingID = _WinAPI_SwapWord(DllStructGetData($tTTRecord, "uEncodingID")) - - Local $sWchar = "char" - If $iEncodingID = 1 Then - $sWchar = "word" - $iStringLength = $iStringLength / 2 - EndIf - $tResult = DllStructCreate($sWchar & " szTTFName[" & $iStringLength & "]", $pMemory + $iOffset + $iStringOffset + $iStorageOffset) - - If $iEncodingID = 1 Then - $sResult = "" - For $j = 1 To $iStringLength - $sResult &= ChrW(_WinAPI_SwapWord(DllStructGetData($tResult, 1, $j))) - Next - Else - $sResult = $tResult.szTTFName - EndIf - - If StringLen($sResult) > 0 Then ExitLoop - EndIf - Next - - Return $sResult -EndFunc ;==>_WinAPI_GetFontMemoryResourceInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetGlyphOutline($hDC, $sChar, $iFormat, ByRef $pBuffer, $tMAT2 = 0) - Local $tGM = DllStructCreate($tagGLYPHMETRICS) - Local $aRet, $iLength = 0 - - If Not IsDllStruct($tMAT2) Then - $tMAT2 = DllStructCreate('short[8]') - DllStructSetData($tMAT2, 1, 1, 2) - DllStructSetData($tMAT2, 1, 1, 8) - EndIf - If $iFormat Then - $aRet = DllCall('gdi32.dll', 'dword', 'GetGlyphOutlineW', 'handle', $hDC, 'uint', AscW($sChar), 'uint', $iFormat, _ - 'struct*', $tGM, 'dword', 0, 'ptr', 0, 'struct*', $tMAT2) - If @error Or ($aRet[0] = 4294967295) Then Return SetError(@error + 10, @extended, 0) - $iLength = $aRet[0] - $pBuffer = __HeapReAlloc($pBuffer, $iLength, 1) - If @error Then Return SetError(@error + 20, @extended, 0) - EndIf - $aRet = DllCall('gdi32.dll', 'dword', 'GetGlyphOutlineW', 'handle', $hDC, 'uint', AscW($sChar), 'uint', $iFormat, _ - 'struct*', $tGM, 'dword', $iLength, 'ptr', $pBuffer, 'struct*', $tMAT2) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = 4294967295 Then Return SetError(10, -1, 0) - - Return SetExtended($iLength, $tGM) -EndFunc ;==>_WinAPI_GetGlyphOutline - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetGraphicsMode($hDC) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetGraphicsMode', 'handle', $hDC) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetGraphicsMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetGValue($iRGB) - Return BitShift(BitAND(__RGB($iRGB), 0x00FF00), 8) -EndFunc ;==>_WinAPI_GetGValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetIconDimension($hIcon) - Local $tICONINFO = DllStructCreate($tagICONINFO) - Local $aRet = DllCall('user32.dll', 'bool', 'GetIconInfo', 'handle', $hIcon, 'struct*', $tICONINFO) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $tSIZE = _WinAPI_GetBitmapDimension(DllStructGetData($tICONINFO, 5)) - For $i = 4 To 5 - _WinAPI_DeleteObject(DllStructGetData($tICONINFO, $i)) - Next - If Not IsDllStruct($tSIZE) Then Return SetError(20, 0, 0) - - Return $tSIZE -EndFunc ;==>_WinAPI_GetIconDimension - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetMapMode($hDC) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetMapMode', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetMapMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetObjectType($hObject) - Local $aRet = DllCall('gdi32.dll', 'dword', 'GetObjectType', 'handle', $hObject) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetObjectType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetOutlineTextMetrics($hDC) - Local $aRet = DllCall('gdi32.dll', 'uint', 'GetOutlineTextMetricsW', 'handle', $hDC, 'uint', 0, 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - Local $tData = DllStructCreate('byte[' & $aRet[0] & ']') - Local $tOLTM = DllStructCreate($tagOUTLINETEXTMETRIC, DllStructGetPtr($tData)) - $aRet = DllCall('gdi32.dll', 'uint', 'GetOutlineTextMetricsW', 'handle', $hDC, 'uint', $aRet[0], 'struct*', $tData) - If Not $aRet[0] Then Return SetError(20, 0, 0) - - Return $tOLTM -EndFunc ;==>_WinAPI_GetOutlineTextMetrics - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetPixel($hDC, $iX, $iY) - Local $aRet = DllCall('gdi32.dll', 'dword', 'GetPixel', 'handle', $hDC, 'int', $iX, 'int', $iY) - If @error Or ($aRet[0] = 4294967295) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = 4294967295 Then Return SetError(1000, 0, -1) - - Return __RGB($aRet[0]) -EndFunc ;==>_WinAPI_GetPixel - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetPolyFillMode($hDC) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetPolyFillMode', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetPolyFillMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetPosFromRect($tRECT) - Local $aResult[4] - For $i = 0 To 3 - $aResult[$i] = DllStructGetData($tRECT, $i + 1) - If @error Then Return SetError(@error, @extended, 0) - Next - - For $i = 2 To 3 - $aResult[$i] -= $aResult[$i - 2] - Next - Return $aResult -EndFunc ;==>_WinAPI_GetPosFromRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetRegionData($hRgn, ByRef $tRGNDATA) - Local $aRet = DllCall('gdi32.dll', 'dword', 'GetRegionData', 'handle', $hRgn, 'dword', 0, 'ptr', 0) - If @error Or Not $aRet[0] Then - $tRGNDATA = 0 - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - Return SetError(@error, @extended, False) - EndIf - $tRGNDATA = DllStructCreate($tagRGNDATAHEADER) - Local $iRectSize = $aRet[0] - DllStructGetSize($tRGNDATA) - If $iRectSize > 0 Then $tRGNDATA = DllStructCreate($tagRGNDATAHEADER & ';byte[' & $iRectSize & ']') - $aRet = DllCall('gdi32.dll', 'dword', 'GetRegionData', 'handle', $hRgn, 'dword', $aRet[0], 'struct*', $tRGNDATA) - If Not $aRet[0] Then $tRGNDATA = 0 - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetRegionData - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetRgnBox($hRgn, ByRef $tRECT) - $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetRgnBox', 'handle', $hRgn, 'struct*', $tRECT) - If @error Or Not $aRet[0] Then - $tRECT = 0 - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - Return SetError(@error, @extended, 0) - EndIf - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetRgnBox - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetROP2($hDC) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetROP2', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetROP2 - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetRValue($iRGB) - Return BitAND(__RGB($iRGB), 0x0000FF) -EndFunc ;==>_WinAPI_GetRValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetStretchBltMode($hDC) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetStretchBltMode', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetStretchBltMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetTabbedTextExtent($hDC, $sText, $aTab = 0, $iStart = 0, $iEnd = -1) - Local $iTab, $iCount - If Not IsArray($aTab) Then - If $aTab Then - $iTab = $aTab - Dim $aTab[1] = [$iTab] - $iStart = 0 - $iEnd = 0 - $iCount = 1 - Else - $iCount = 0 - EndIf - Else - $iCount = 1 - EndIf - - Local $tTab = 0 - If $iCount Then - If __CheckErrorArrayBounds($aTab, $iStart, $iEnd) Then Return SetError(@error + 10, @extended, 0) - - $iCount = $iEnd - $iStart + 1 - $tTab = DllStructCreate('uint[' & $iCount & ']') - $iTab = 1 - For $i = $iStart To $iEnd - DllStructSetData($tTab, 1, $aTab[$i], $iTab) - $iTab += 1 - Next - EndIf - Local $aRet = DllCall('user32.dll', 'dword', 'GetTabbedTextExtentW', 'handle', $hDC, 'wstr', $sText, 'int', StringLen($sText), 'int', $iCount, 'struct*', $tTab) - If @error Or Not $aRet[0] Then Return SetError(@error + 20, @extended, 0) - - Return _WinAPI_CreateSize(_WinAPI_LoWord($aRet[0]), _WinAPI_HiWord($aRet[0])) -EndFunc ;==>_WinAPI_GetTabbedTextExtent - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetTextAlign($hDC) - Local $aRet = DllCall('gdi32.dll', 'uint', 'GetTextAlign', 'handle', $hDC) - If @error Or ($aRet[0] = 4294967295) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = 4294967295 Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetTextAlign - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetTextCharacterExtra($hDC) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetTextCharacterExtra', 'handle', $hDC) - If @error Or ($aRet[0] = 0x8000000) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = 0x8000000 Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetTextCharacterExtra - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetTextColor($hDC) - Local $aRet = DllCall('gdi32.dll', 'dword', 'GetTextColor', 'handle', $hDC) - If @error Or ($aRet[0] = 4294967295) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = 4294967295 Then Return SetError(1000, 0, -1) - - Return __RGB($aRet[0]) -EndFunc ;==>_WinAPI_GetTextColor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetTextFace($hDC) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetTextFaceW', 'handle', $hDC, 'int', 2048, 'wstr', '') - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetTextFace - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetUDFColorMode() - Return Number($__g_iRGBMode) -EndFunc ;==>_WinAPI_GetUDFColorMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetUpdateRect($hWnd, $bErase = True) - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'GetUpdateRect', 'hwnd', $hWnd, 'struct*', $tRECT, 'bool', $bErase) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tRECT -EndFunc ;==>_WinAPI_GetUpdateRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetUpdateRgn($hWnd, $hRgn, $bErase = True) - Local $aRet = DllCall('user32.dll', 'int', 'GetUpdateRgn', 'hwnd', $hWnd, 'handle', $hRgn, 'bool', $bErase) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetUpdateRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetWindowExt($hDC) - Local $tSIZE = DllStructCreate($tagSIZE) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GetWindowExtEx', 'handle', $hDC, 'struct*', $tSIZE) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tSIZE -EndFunc ;==>_WinAPI_GetWindowExt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetWindowOrg($hDC) - Local $tPOINT = DllStructCreate($tagPOINT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GetWindowOrgEx', 'handle', $hDC, 'struct*', $tPOINT) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tPOINT -EndFunc ;==>_WinAPI_GetWindowOrg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetWindowRgnBox($hWnd, ByRef $tRECT) - $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetWindowRgnBox', 'hwnd', $hWnd, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetWindowRgnBox - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetWorldTransform($hDC) - Local $tXFORM = DllStructCreate($tagXFORM) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GetWorldTransform', 'handle', $hDC, 'struct*', $tXFORM) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tXFORM -EndFunc ;==>_WinAPI_GetWorldTransform - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GradientFill($hDC, Const ByRef $aVertex, $iStart = 0, $iEnd = -1, $bRotate = False) - If __CheckErrorArrayBounds($aVertex, $iStart, $iEnd, 2) Then Return SetError(@error + 10, @extended, 0) - If UBound($aVertex, $UBOUND_COLUMNS) < 3 Then Return SetError(13, 0, 0) - - Local $iPoint = $iEnd - $iStart + 1 - If $iPoint > 3 Then - $iEnd = $iStart + 2 - $iPoint = 3 - EndIf - Local $iMode - Switch $iPoint - Case 2 - $iMode = Number(Not $bRotate) - Case 3 - $iMode = 2 - Case Else - Return SetError(15, 0, 0) - EndSwitch - Local $tagStruct = '' - For $i = $iStart To $iEnd - $tagStruct &= 'ushort[8];' - Next - Local $tVertex = DllStructCreate($tagStruct) - - Local $iCount = 1 - Local $tGradient = DllStructCreate('ulong[' & $iPoint & ']') - For $i = $iStart To $iEnd - DllStructSetData($tGradient, 1, $iCount - 1, $iCount) - DllStructSetData($tVertex, $iCount, _WinAPI_LoWord($aVertex[$i][0]), 1) - DllStructSetData($tVertex, $iCount, _WinAPI_HiWord($aVertex[$i][0]), 2) - DllStructSetData($tVertex, $iCount, _WinAPI_LoWord($aVertex[$i][1]), 3) - DllStructSetData($tVertex, $iCount, _WinAPI_HiWord($aVertex[$i][1]), 4) - DllStructSetData($tVertex, $iCount, BitShift(_WinAPI_GetRValue($aVertex[$i][2]), -8), 5) - DllStructSetData($tVertex, $iCount, BitShift(_WinAPI_GetGValue($aVertex[$i][2]), -8), 6) - DllStructSetData($tVertex, $iCount, BitShift(_WinAPI_GetBValue($aVertex[$i][2]), -8), 7) - DllStructSetData($tVertex, $iCount, 0, 8) - $iCount += 1 - Next - - Local $aRet = DllCall('gdi32.dll', 'bool', 'GdiGradientFill', 'handle', $hDC, 'struct*', $tVertex, 'ulong', $iPoint, _ - 'struct*', $tGradient, 'ulong', 1, 'ulong', $iMode) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GradientFill - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_InflateRect(ByRef $tRECT, $iDX, $iDY) - Local $aRet = DllCall('user32.dll', 'bool', 'InflateRect', 'struct*', $tRECT, 'int', $iDX, 'int', $iDY) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_InflateRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_IntersectClipRect($hDC, $tRECT) - Local $aRet = DllCall('gdi32.dll', 'int', 'IntersectClipRect', 'handle', $hDC, 'int', DllStructGetData($tRECT, 1), _ - 'int', DllStructGetData($tRECT, 2), 'int', DllStructGetData($tRECT, 3), _ - 'int', DllStructGetData($tRECT, 4)) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - Return $aRet[0] -EndFunc ;==>_WinAPI_IntersectClipRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IntersectRect($tRECT1, $tRECT2) - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'IntersectRect', 'struct*', $tRECT, 'struct*', $tRECT1, 'struct*', $tRECT2) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tRECT -EndFunc ;==>_WinAPI_IntersectRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_InvalidateRgn($hWnd, $hRgn = 0, $bErase = True) - Local $aRet = DllCall('user32.dll', 'bool', 'InvalidateRgn', 'hwnd', $hWnd, 'handle', $hRgn, 'bool', $bErase) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_InvalidateRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_InvertANDBitmap($hBitmap, $bDelete = False) - Local $tBITMAP = DllStructCreate($tagBITMAP) - If Not _WinAPI_GetObject($hBitmap, DllStructGetSize($tBITMAP), $tBITMAP) Or (DllStructGetData($tBITMAP, 'bmBitsPixel') <> 1) Then - Return SetError(@error + 10, @extended, 0) - EndIf - Local $hResult = _WinAPI_CreateDIB(DllStructGetData($tBITMAP, 'bmWidth'), DllStructGetData($tBITMAP, 'bmHeight'), 1) - If Not $hResult Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Local $hSrcDC = _WinAPI_CreateCompatibleDC(0) - Local $hSrcSv = _WinAPI_SelectObject($hSrcDC, $hBitmap) - Local $hDstDC = _WinAPI_CreateCompatibleDC(0) - Local $hDstSv = _WinAPI_SelectObject($hDstDC, $hResult) - _WinAPI_BitBlt($hDstDC, 0, 0, DllStructGetData($tBITMAP, 'bmWidth'), DllStructGetData($tBITMAP, 'bmHeight'), $hSrcDC, 0, 0, 0x00330008) - _WinAPI_SelectObject($hSrcDC, $hSrcSv) - _WinAPI_DeleteDC($hSrcDC) - _WinAPI_SelectObject($hDstDC, $hDstSv) - _WinAPI_DeleteDC($hDstDC) - If $bDelete Then - _WinAPI_DeleteObject($hBitmap) - EndIf - Return $hResult -EndFunc ;==>_WinAPI_InvertANDBitmap - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_InvertColor($iColor) - If $iColor = -1 Then Return 0 - Return 0xFFFFFF - BitAND($iColor, 0xFFFFFF) -EndFunc ;==>_WinAPI_InvertColor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_InvertRect($hDC, ByRef $tRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'InvertRect', 'handle', $hDC, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_InvertRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_InvertRgn($hDC, $hRgn) - Local $aRet = DllCall('gdi32.dll', 'bool', 'InvertRgn', 'handle', $hDC, 'handle', $hRgn) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_InvertRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsAlphaBitmap($hBitmap) - $hBitmap = _WinAPI_CopyBitmap($hBitmap) - If Not $hBitmap Then Return SetError(@error + 20, @extended, 0) - - Local $aRet, $iError = 0 - Do - Local $tDIB = DllStructCreate($tagDIBSECTION) - If (Not _WinAPI_GetObject($hBitmap, DllStructGetSize($tDIB), $tDIB)) Or (DllStructGetData($tDIB, 'bmBitsPixel') <> 32) Or (DllStructGetData($tDIB, 'biCompression')) Then - $iError = 1 - ExitLoop - EndIf - $aRet = DllCall('user32.dll', 'int', 'CallWindowProc', 'ptr', __AlphaProc(), 'ptr', 0, 'uint', 0, 'struct*', $tDIB, 'ptr', 0) - If @error Or ($aRet[0] = -1) Then - $iError = @error + 10 - ExitLoop - EndIf - Until 1 - _WinAPI_DeleteObject($hBitmap) - If $iError Then Return SetError($iError, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsAlphaBitmap - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsRectEmpty(ByRef $tRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'IsRectEmpty', 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsRectEmpty - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LineDDA($iX1, $iY1, $iX2, $iY2, $pLineProc, $pData = 0) - Local $aRet = DllCall('gdi32.dll', 'bool', 'LineDDA', 'int', $iX1, 'int', $iY1, 'int', $iX2, 'int', $iY2, 'ptr', $pLineProc, _ - 'lparam', $pData) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LineDDA - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LockWindowUpdate($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'LockWindowUpdate', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LockWindowUpdate - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LPtoDP($hDC, ByRef $tPOINT, $iCount = 1) - Local $aRet = DllCall('gdi32.dll', 'bool', 'LPtoDP', 'handle', $hDC, 'struct*', $tPOINT, 'int', $iCount) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LPtoDP - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_MaskBlt($hDestDC, $iXDest, $iYDest, $iWidth, $iHeight, $hSrcDC, $iXSrc, $iYSrc, $hMask, $iXMask, $iYMask, $iRop) - Local $aRet = DllCall('gdi32.dll', 'bool', 'MaskBlt', 'handle', $hDestDC, 'int', $iXDest, 'int', $iYDest, _ - 'int', $iWidth, 'int', $iHeight, 'hwnd', $hSrcDC, 'int', $iXSrc, 'int', $iYSrc, 'handle', $hMask, _ - 'int', $iXMask, 'int', $iYMask, 'dword', $iRop) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_MaskBlt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ModifyWorldTransform($hDC, ByRef $tXFORM, $iMode) - Local $aRet = DllCall('gdi32.dll', 'bool', 'ModifyWorldTransform', 'handle', $hDC, 'struct*', $tXFORM, 'dword', $iMode) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ModifyWorldTransform - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_MonitorFromPoint(ByRef $tPOINT, $iFlag = 1) - If DllStructGetSize($tPOINT) <> 8 Then Return SetError(@error + 10, @extended, 0) - - Local $aRet = DllCall('user32.dll', 'handle', 'MonitorFromPoint', 'struct', $tPOINT, 'dword', $iFlag) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_MonitorFromPoint - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_MonitorFromRect(ByRef $tRECT, $iFlag = 1) - Local $aRet = DllCall('user32.dll', 'ptr', 'MonitorFromRect', 'struct*', $tRECT, 'dword', $iFlag) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_MonitorFromRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_MonitorFromWindow($hWnd, $iFlag = 1) - Local $aRet = DllCall('user32.dll', 'handle', 'MonitorFromWindow', 'hwnd', $hWnd, 'dword', $iFlag) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_MonitorFromWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_MoveToEx($hDC, $iX, $iY) - Local $tPOINT = DllStructCreate($tagPOINT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'MoveToEx', 'handle', $hDC, 'int', $iX, 'int', $iY, 'struct*', $tPOINT) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tPOINT -EndFunc ;==>_WinAPI_MoveToEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OffsetClipRgn($hDC, $iXOffset, $iYOffset) - Local $aRet = DllCall('gdi32.dll', 'int', 'OffsetClipRgn', 'handle', $hDC, 'int', $iXOffset, 'int', $iYOffset) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OffsetClipRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_OffsetPoints(ByRef $aPoint, $iXOffset, $iYOffset, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aPoint, $iStart, $iEnd, 2) Then Return SetError(@error + 10, @extended, 0) - If UBound($aPoint, $UBOUND_COLUMNS) < 2 Then Return SetError(13, 0, 0) - - For $i = $iStart To $iEnd - $aPoint[$i][0] += $iXOffset - $aPoint[$i][1] += $iYOffset - Next - Return 1 -EndFunc ;==>_WinAPI_OffsetPoints - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OffsetRect(ByRef $tRECT, $iDX, $iDY) - Local $aRet = DllCall('user32.dll', 'bool', 'OffsetRect', 'struct*', $tRECT, 'int', $iDX, 'int', $iDY) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OffsetRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OffsetRgn($hRgn, $iXOffset, $iYOffset) - Local $aRet = DllCall('gdi32.dll', 'int', 'OffsetRgn', 'handle', $hRgn, 'int', $iXOffset, 'int', $iYOffset) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OffsetRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OffsetWindowOrg($hDC, $iXOffset, $iYOffset) - $__g_vExt = DllStructCreate($tagPOINT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'OffsetWindowOrgEx', 'handle', $hDC, 'int', $iXOffset, 'int', $iYOffset, _ - 'struct*', $__g_vExt) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OffsetWindowOrg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PaintDesktop($hDC) - Local $aRet = DllCall('user32.dll', 'bool', 'PaintDesktop', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PaintDesktop - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PaintRgn($hDC, $hRgn) - Local $aRet = DllCall('gdi32.dll', 'bool', 'PaintRgn', 'handle', $hDC, 'handle', $hRgn) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PaintRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PatBlt($hDC, $iX, $iY, $iWidth, $iHeight, $iRop) - Local $aRet = DllCall('gdi32.dll', 'bool', 'PatBlt', 'handle', $hDC, 'int', $iX, 'int', $iY, 'int', $iWidth, 'int', $iHeight, _ - 'dword', $iRop) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PatBlt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathToRegion($hDC) - Local $aRet = DllCall('gdi32.dll', 'handle', 'PathToRegion', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathToRegion - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PlayEnhMetaFile($hDC, $hEmf, ByRef $tRECT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'PlayEnhMetaFile', 'handle', $hDC, 'handle', $hEmf, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PlayEnhMetaFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PlgBlt($hDestDC, Const ByRef $aPoint, $hSrcDC, $iXSrc, $iYSrc, $iWidth, $iHeight, $hMask = 0, $iXMask = 0, $iYMask = 0) - If (UBound($aPoint) < 3) Or (UBound($aPoint, $UBOUND_COLUMNS) < 2) Then Return SetError(12, 0, False) - - Local $tPoints = DllStructCreate('long[2];long[2];long[2]') - For $i = 0 To 2 - For $j = 0 To 1 - DllStructSetData($tPoints, $i + 1, $aPoint[$i][$j], $j + 1) - Next - Next - - Local $aRet = DllCall('gdi32.dll', 'bool', 'PlgBlt', 'handle', $hDestDC, 'struct*', $tPoints, 'handle', $hSrcDC, _ - 'int', $iXSrc, 'int', $iYSrc, 'int', $iWidth, 'int', $iHeight, 'handle', $hMask, _ - 'int', $iXMask, 'int', $iYMask) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PlgBlt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PolyBezier($hDC, Const ByRef $aPoint, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aPoint, $iStart, $iEnd, 2, 2) Then Return SetError(@error + 10, @extended, False) - - Local $iPoint = 1 + 3 * Floor(($iEnd - $iStart) / 3) - If $iPoint < 1 Then Return SetError(15, 0, False) - - $iEnd = $iStart + $iPoint - 1 - Local $tagStruct = '' - For $i = $iStart To $iEnd - $tagStruct &= 'long[2];' - Next - Local $tPOINT = DllStructCreate($tagStruct) - - Local $iCount = 0 - For $i = $iStart To $iEnd - $iCount += 1 - For $j = 0 To 1 - DllStructSetData($tPOINT, $iCount, $aPoint[$i][$j], $j + 1) - Next - Next - - Local $aRet = DllCall('gdi32.dll', 'bool', 'PolyBezier', 'handle', $hDC, 'struct*', $tPOINT, 'dword', $iPoint) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PolyBezier - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PolyBezierTo($hDC, Const ByRef $aPoint, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aPoint, $iStart, $iEnd, 2, 2) Then Return SetError(@error + 10, @extended, False) - - Local $iPoint = 3 * Floor(($iEnd - $iStart + 1) / 3) - If $iPoint < 3 Then Return SetError(15, 0, False) - - $iEnd = $iStart + $iPoint - 1 - Local $tagStruct = '' - For $i = $iStart To $iEnd - $tagStruct &= 'long[2];' - Next - Local $tPOINT = DllStructCreate($tagStruct) - - Local $iCount = 0 - For $i = $iStart To $iEnd - $iCount += 1 - For $j = 0 To 1 - DllStructSetData($tPOINT, $iCount, $aPoint[$i][$j], $j + 1) - Next - Next - - Local $aRet = DllCall('gdi32.dll', 'bool', 'PolyBezierTo', 'handle', $hDC, 'struct*', $tPOINT, 'dword', $iPoint) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PolyBezierTo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PolyDraw($hDC, Const ByRef $aPoint, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aPoint, $iStart, $iEnd, 2) Then Return SetError(@error + 10, @extended, 0) - If UBound($aPoint, $UBOUND_COLUMNS) < 3 Then Return SetError(13, 0, False) - - Local $iPoint = $iEnd - $iStart + 1 - Local $tagStruct = '' - For $i = $iStart To $iEnd - $tagStruct &= 'long[2];' - Next - Local $tPOINT = DllStructCreate($tagStruct) - Local $tTypes = DllStructCreate('byte[' & $iPoint & ']') - Local $iCount = 0 - For $i = $iStart To $iEnd - $iCount += 1 - For $j = 0 To 1 - DllStructSetData($tPOINT, $iCount, $aPoint[$i][$j], $j + 1) - Next - DllStructSetData($tTypes, 1, $aPoint[$i][2], $iCount) - Next - - Local $aRet = DllCall('gdi32.dll', 'bool', 'PolyDraw', 'handle', $hDC, 'struct*', $tPOINT, 'struct*', $tTypes, 'dword', $iPoint) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PolyDraw - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_Polygon($hDC, Const ByRef $aPoint, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aPoint, $iStart, $iEnd, 2, 2) Then Return SetError(@error + 10, @extended, False) - - Local $tagStruct = '' - For $i = $iStart To $iEnd - $tagStruct &= 'int[2];' - Next - Local $tData = DllStructCreate($tagStruct) - Local $iCount = 1 - For $i = $iStart To $iEnd - For $j = 0 To 1 - DllStructSetData($tData, $iCount, $aPoint[$i][$j], $j + 1) - Next - $iCount += 1 - Next - - Local $aRet = DllCall('gdi32.dll', 'bool', 'Polygon', 'handle', $hDC, 'struct*', $tData, 'int', $iCount - 1) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_Polygon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PrintWindow($hWnd, $hDC, $bClient = False) - Local $aRet = DllCall('user32.dll', 'bool', 'PrintWindow', 'hwnd', $hWnd, 'handle', $hDC, 'uint', $bClient) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PrintWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_PtInRectEx($iX, $iY, $iLeft, $iTop, $iRight, $iBottom) - Local $tRECT = _WinAPI_CreateRect($iLeft, $iTop, $iRight, $iBottom) - Local $tPOINT = _WinAPI_CreatePoint($iX, $iY) - Local $aRet = DllCall('user32.dll', 'bool', 'PtInRect', 'struct*', $tRECT, 'struct', $tPOINT) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PtInRectEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PtInRegion($hRgn, $iX, $iY) - Local $aRet = DllCall('gdi32.dll', 'bool', 'PtInRegion', 'handle', $hRgn, 'int', $iX, 'int', $iY) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PtInRegion - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_PtVisible($hDC, $iX, $iY) - Local $aRet = DllCall('gdi32.dll', 'bool', 'PtVisible', 'handle', $hDC, 'int', $iX, 'int', $iY) - If @error Then Return SetError(@error + 10, @extended, 0) - If $aRet[0] = -1 Then Return SetError(10, $aRet[0], 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PtVisible - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RadialGradientFill($hDC, $iX, $iY, $iRadius, $iRGB1, $iRGB2, $fAngleStart = 0, $fAngleEnd = 360, $fStep = 5) - If Abs($fAngleStart) > 360 Then - $fAngleStart = Mod($fAngleStart, 360) - EndIf - If Abs($fAngleEnd) > 360 Then - $fAngleEnd = Mod($fAngleEnd, 360) - EndIf - If ($fAngleStart < 0) Or ($fAngleEnd < 0) Then - $fAngleStart += 360 - $fAngleEnd += 360 - EndIf - If $fAngleStart > $fAngleEnd Then - Local $fVal = $fAngleStart - $fAngleStart = $fAngleEnd - $fAngleEnd = $fVal - EndIf - If $fStep < 1 Then - $fStep = 1 - EndIf - - Local $fKi = ATan(1) / 45 - Local $iXp = Round($iX + $iRadius * Cos($fKi * $fAngleStart)) - Local $iYp = Round($iY + $iRadius * Sin($fKi * $fAngleStart)) - Local $iXn, $iYn, $fAn = $fAngleStart - Local $aVertex[3][3] - - While $fAn < $fAngleEnd - $fAn += $fStep - If $fAn > $fAngleEnd Then - $fAn = $fAngleEnd - EndIf - $iXn = Round($iX + $iRadius * Cos($fKi * $fAn)) - $iYn = Round($iY + $iRadius * Sin($fKi * $fAn)) - $aVertex[0][0] = $iX - $aVertex[0][1] = $iY - $aVertex[0][2] = $iRGB1 - $aVertex[1][0] = $iXp - $aVertex[1][1] = $iYp - $aVertex[1][2] = $iRGB2 - $aVertex[2][0] = $iXn - $aVertex[2][1] = $iYn - $aVertex[2][2] = $iRGB2 - If Not _WinAPI_GradientFill($hDC, $aVertex, 0, 2) Then - Return SetError(@error, @extended, 0) - EndIf - $iXp = $iXn - $iYp = $iYn - WEnd - - Return 1 -EndFunc ;==>_WinAPI_RadialGradientFill - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_Rectangle($hDC, $tRECT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'Rectangle', 'handle', $hDC, 'int', DllStructGetData($tRECT, 1), _ - 'int', DllStructGetData($tRECT, 2), 'int', DllStructGetData($tRECT, 3), 'int', DllStructGetData($tRECT, 4)) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_Rectangle - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RectInRegion($hRgn, $tRECT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'RectInRegion', 'handle', $hRgn, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RectInRegion - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RectVisible($hDC, $tRECT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'RectVisible', 'handle', $hDC, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - Switch $aRet[0] - Case 0, 1, 2 - - Case Else - Return SetError(10, $aRet[0], 0) - EndSwitch - - Return $aRet[0] -EndFunc ;==>_WinAPI_RectVisible - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RemoveFontMemResourceEx($hFont) - Local $aRet = DllCall('gdi32.dll', 'bool', 'RemoveFontMemResourceEx', 'handle', $hFont) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RemoveFontMemResourceEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RemoveFontResourceEx($sFont, $iFlag = 0, $bNotify = False) - Local $aRet = DllCall('gdi32.dll', 'bool', 'RemoveFontResourceExW', 'wstr', $sFont, 'dword', $iFlag, 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - If $bNotify Then - Local Const $WM_FONTCHANGE = 0x001D - Local Const $HWND_BROADCAST = 0xFFFF - DllCall('user32.dll', 'none', 'SendMessage', 'hwnd', $HWND_BROADCAST, 'uint', $WM_FONTCHANGE, 'wparam', 0, 'lparam', 0) - EndIf - Return $aRet[0] -EndFunc ;==>_WinAPI_RemoveFontResourceEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RestoreDC($hDC, $iID) - Local $aRet = DllCall('gdi32.dll', 'bool', 'RestoreDC', 'handle', $hDC, 'int', $iID) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RestoreDC - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_RGB($iRed, $iGreen, $iBlue) - Return __RGB(BitOR(BitShift($iBlue, -16), BitShift($iGreen, -8), $iRed)) -EndFunc ;==>_WinAPI_RGB - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RotatePoints(ByRef $aPoint, $iXC, $iYC, $fAngle, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aPoint, $iStart, $iEnd, 2) Then Return SetError(@error + 10, @extended, 0) - If UBound($aPoint, $UBOUND_COLUMNS) < 2 Then Return SetError(13, 0, 0) - - Local $fCos = Cos(ATan(1) / 45 * $fAngle) - Local $fSin = Sin(ATan(1) / 45 * $fAngle) - Local $iXn, $iYn - - For $i = $iStart To $iEnd - $iXn = $aPoint[$i][0] - $iXC - $iYn = $aPoint[$i][1] - $iYC - $aPoint[$i][0] = $iXC + Round($iXn * $fCos - $iYn * $fSin) - $aPoint[$i][1] = $iYC + Round($iXn * $fSin + $iYn * $fCos) - Next - Return 1 -EndFunc ;==>_WinAPI_RotatePoints - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RoundRect($hDC, $tRECT, $iWidth, $iHeight) - Local $aRet = DllCall('gdi32.dll', 'bool', 'RoundRect', 'handle', $hDC, 'int', DllStructGetData($tRECT, 1), _ - 'int', DllStructGetData($tRECT, 2), 'int', DllStructGetData($tRECT, 3), _ - 'int', DllStructGetData($tRECT, 4), 'int', $iWidth, 'int', $iHeight) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RoundRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SaveDC($hDC) - Local $aRet = DllCall('gdi32.dll', 'int', 'SaveDC', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SaveDC - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SaveHBITMAPToFile($sFilePath, $hBitmap, $iXPelsPerMeter = Default, $iYPelsPerMeter = Default) - Local $tBMP = DllStructCreate('align 1;ushort bfType;dword bfSize;ushort bfReserved1;ushort bfReserved2;dword bfOffset') - Local $tDIB = DllStructCreate($tagDIBSECTION) - - Local $hDC, $hSv, $hSource = 0 - While $hBitmap - If (Not _WinAPI_GetObject($hBitmap, DllStructGetSize($tDIB), $tDIB)) Or (DllStructGetData($tDIB, 'biCompression')) Then - $hBitmap = 0 - Else - Switch DllStructGetData($tDIB, 'bmBitsPixel') - Case 32 - If Not _WinAPI_IsAlphaBitmap($hBitmap) Then - If Not $hSource Then - $hSource = _WinAPI_CreateDIB(DllStructGetData($tDIB, 'bmWidth'), DllStructGetData($tDIB, 'bmHeight'), 24) - If Not $hSource Then - $hBitmap = 0 - EndIf - $hDC = _WinAPI_CreateCompatibleDC(0) - $hSv = _WinAPI_SelectObject($hDC, $hSource) - If _WinAPI_DrawBitmap($hDC, 0, 0, $hBitmap) Then - $hBitmap = $hSource - Else - $hBitmap = 0 - EndIf - _WinAPI_SelectObject($hDC, $hSv) - _WinAPI_DeleteDC($hDC) - Else - $hBitmap = 0 - EndIf - ContinueLoop - EndIf - Case Else - - EndSwitch - If (Not DllStructGetData($tDIB, 'bmBits')) Or (Not DllStructGetData($tDIB, 'biSizeImage')) Then - If Not $hSource Then - $hBitmap = _WinAPI_CopyBitmap($hBitmap) - $hSource = $hBitmap - Else - $hBitmap = 0 - EndIf - Else - ExitLoop - EndIf - EndIf - WEnd - - Local $hFile = 0, $iError = 0, $iResult = 0 - Do - If Not $hBitmap Then - $iError = 1 - ExitLoop - EndIf - Local $aData[4][2] - $aData[0][0] = DllStructGetPtr($tBMP) - $aData[0][1] = DllStructGetSize($tBMP) - $aData[1][0] = DllStructGetPtr($tDIB, 'biSize') - $aData[1][1] = 40 - $aData[2][1] = DllStructGetData($tDIB, 'biClrUsed') * 4 - Local $tTable = 0 - If $aData[2][1] Then - $tTable = _WinAPI_GetDIBColorTable($hBitmap) - If @error Or (@extended <> $aData[2][1] / 4) Then - $iError = @error + 10 - ExitLoop - EndIf - EndIf - $aData[2][0] = DllStructGetPtr($tTable) - $aData[3][0] = DllStructGetData($tDIB, 'bmBits') - $aData[3][1] = DllStructGetData($tDIB, 'biSizeImage') - DllStructSetData($tBMP, 'bfType', 0x4D42) - DllStructSetData($tBMP, 'bfSize', $aData[0][1] + $aData[1][1] + $aData[2][1] + $aData[3][1]) - DllStructSetData($tBMP, 'bfReserved1', 0) - DllStructSetData($tBMP, 'bfReserved2', 0) - DllStructSetData($tBMP, 'bfOffset', $aData[0][1] + $aData[1][1] + $aData[2][1]) - $hDC = _WinAPI_GetDC(0) - If $iXPelsPerMeter = Default Then - If Not DllStructGetData($tDIB, 'biXPelsPerMeter') Then - DllStructSetData($tDIB, 'biXPelsPerMeter', _WinAPI_GetDeviceCaps($hDC, 8) / _WinAPI_GetDeviceCaps($hDC, 4) * 1000) - EndIf - Else - DllStructSetData($tDIB, 'biXPelsPerMeter', $iXPelsPerMeter) - EndIf - If $iYPelsPerMeter = Default Then - If Not DllStructGetData($tDIB, 'biYPelsPerMeter') Then - DllStructSetData($tDIB, 'biYPelsPerMeter', _WinAPI_GetDeviceCaps($hDC, 10) / _WinAPI_GetDeviceCaps($hDC, 6) * 1000) - EndIf - Else - DllStructSetData($tDIB, 'biYPelsPerMeter', $iYPelsPerMeter) - EndIf - _WinAPI_ReleaseDC(0, $hDC) - $hFile = _WinAPI_CreateFile($sFilePath, 1, 4) - If @error Then - $iError = @error + 20 - ExitLoop - EndIf - Local $iBytes - For $i = 0 To 3 - If $aData[$i][1] Then - If Not _WinAPI_WriteFile($hFile, $aData[$i][0], $aData[$i][1], $iBytes) Then - $iError = @error + 30 - ExitLoop 2 - EndIf - EndIf - Next - $iResult = 1 - Until 1 - If $hSource Then - _WinAPI_DeleteObject($hSource) - EndIf - _WinAPI_CloseHandle($hFile) - If Not $iResult Then - FileDelete($sFilePath) - EndIf - - Return SetError($iError, 0, $iResult) -EndFunc ;==>_WinAPI_SaveHBITMAPToFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SaveHICONToFile($sFilePath, Const ByRef $vIcon, $bCompress = 0, $iStart = 0, $iEnd = -1) - Local $aIcon, $aTemp, $iCount = 1 - If Not IsArray($vIcon) Then - Dim $aIcon[1] = [$vIcon] - Dim $aTemp[1] = [0] - Else - If __CheckErrorArrayBounds($vIcon, $iStart, $iEnd) Then Return SetError(@error + 10, @extended, 0) - - $iCount = $iEnd - $iStart + 1 - If $iCount Then - Dim $aIcon[$iCount] - Dim $aTemp[$iCount] - For $i = 0 To $iCount - 1 - $aIcon[$i] = $vIcon[$iStart + $i] - $aTemp[$i] = 0 - Next - EndIf - EndIf - - Local $hFile = _WinAPI_CreateFile($sFilePath, 1, 4) - If @error Then Return SetError(@error + 20, @extended, 0) - - Local $tIco = DllStructCreate('align 1;ushort Reserved;ushort Type;ushort Count;byte Data[' & (16 * $iCount) & ']') - Local $iLength = DllStructGetSize($tIco) - Local $tBI = DllStructCreate($tagBITMAPINFOHEADER) - Local $tII = DllStructCreate($tagICONINFO) - Local $tDIB = DllStructCreate($tagDIBSECTION) - Local $iDIB = DllStructGetSize($tDIB) - Local $pDIB = DllStructGetPtr($tDIB) - Local $iOffset = $iLength - - DllStructSetData($tBI, 'biSize', 40) - DllStructSetData($tBI, 'biPlanes', 1) - DllStructSetData($tBI, 'biXPelsPerMeter', 0) - DllStructSetData($tBI, 'biYPelsPerMeter', 0) - DllStructSetData($tBI, 'biClrUsed', 0) - DllStructSetData($tBI, 'biClrImportant', 0) - - DllStructSetData($tIco, 'Reserved', 0) - DllStructSetData($tIco, 'Type', 1) - DllStructSetData($tIco, 'Count', $iCount) - - Local $iResult = 0, $iError = 0 - Do - Local $iBytes - If Not _WinAPI_WriteFile($hFile, $tIco, $iLength, $iBytes) Then - $iError = @error + 30 - ExitLoop - EndIf - Local $aInfo[8], $aRet, $pData = 0, $iIndex = 0 - While $iCount > $iIndex - $aRet = DllCall('user32.dll', 'bool', 'GetIconInfo', 'handle', $aIcon[$iIndex], 'struct*', $tII) - If @error Or Not $aRet[0] Then - $iError = @error + 40 - ExitLoop 2 - EndIf - For $i = 4 To 5 - $aInfo[$i] = _WinAPI_CopyImage(DllStructGetData($tII, $i), 0, 0, 0, 0x2008) - If _WinAPI_GetObject($aInfo[$i], $iDIB, $pDIB) Then - $aInfo[$i - 4] = DllStructGetData($tDIB, 'biSizeImage') - $aInfo[$i - 2] = DllStructGetData($tDIB, 'bmBits') - Else - $iError = @error + 50 - EndIf - Next - $aInfo[6] = 40 - $aInfo[7] = DllStructGetData($tDIB, 'bmBitsPixel') - Switch $aInfo[7] - Case 16, 24 - - Case 32 - If Not _WinAPI_IsAlphaBitmap($aInfo[5]) Then - If Not $aTemp[$iIndex] Then - $aIcon[$iIndex] = _WinAPI_Create32BitHICON($aIcon[$iIndex]) - $aTemp[$iIndex] = $aIcon[$iIndex] - If Not @error Then - ContinueLoop - Else - ContinueCase - EndIf - EndIf - Else - If ($aInfo[1] >= 256 * 256 * 4) And ($bCompress) Then - $iBytes = _WinAPI_CompressBitmapBits($aInfo[5], $pData) - If Not @error Then - $aInfo[0] = 0 - $aInfo[1] = $iBytes - $aInfo[2] = 0 - $aInfo[3] = $pData - $aInfo[6] = 0 - EndIf - EndIf - EndIf - Case Else - $iError = 60 - EndSwitch - If $iError Then - ; Nothing - Else - Local $aSize[2] - Local $tData = DllStructCreate('byte Width;byte Height;byte ColorCount;byte Reserved;ushort Planes;ushort BitCount;long Size;long Offset', DllStructGetPtr($tIco) + 6 + 16 * $iIndex) - DllStructSetData($tData, 'ColorCount', 0) - DllStructSetData($tData, 'Reserved', 0) - DllStructSetData($tData, 'Planes', 1) - DllStructSetData($tData, 'BitCount', $aInfo[7]) - DllStructSetData($tData, 'Size', $aInfo[0] + $aInfo[1] + $aInfo[6]) - DllStructSetData($tData, 'Offset', $iOffset) - For $i = 0 To 1 - $aSize[$i] = DllStructGetData($tDIB, $i + 2) - If $aSize[$i] < 256 Then - DllStructSetData($tData, $i + 1, $aSize[$i]) - Else - DllStructSetData($tData, $i + 1, 0) - EndIf - Next - DllStructSetData($tBI, 'biWidth', $aSize[0]) - DllStructSetData($tBI, 'biHeight', 2 * $aSize[1]) - DllStructSetData($tBI, 'biBitCount', $aInfo[7]) - DllStructSetData($tBI, 'biCompression', 0) - DllStructSetData($tBI, 'biSizeImage', $aInfo[0] + $aInfo[1]) - $iOffset += $aInfo[0] + $aInfo[1] + $aInfo[6] - Do - If $aInfo[6] Then - If Not _WinAPI_WriteFile($hFile, $tBI, $aInfo[6], $iBytes) Then - $iError = @error + 70 - ExitLoop - EndIf - For $i = 1 To 0 Step -1 - If Not _WinAPI_WriteFile($hFile, $aInfo[$i + 2], $aInfo[$i], $iBytes) Then - $iError = @error + 80 - ExitLoop 2 - EndIf - Next - Else - If Not _WinAPI_WriteFile($hFile, $aInfo[3], $aInfo[1], $iBytes) Then - $iError = @error + 90 - ExitLoop - EndIf - EndIf - Until 1 - EndIf - For $i = 4 To 5 - _WinAPI_DeleteObject($aInfo[$i]) - Next - If $iError Then - ExitLoop 2 - EndIf - $iIndex += 1 - WEnd - $aRet = DllCall('kernel32.dll', 'bool', 'SetFilePointerEx', 'handle', $hFile, 'int64', 0, 'int64*', 0, 'dword', 0) - If @error Or Not $aRet[0] Then - $iError = @error + 100 - ExitLoop - EndIf - If Not _WinAPI_WriteFile($hFile, $tIco, $iLength, $iBytes) Then - $iError = @error + 110 - ExitLoop - EndIf - $iResult = 1 - Until 1 - For $i = 0 To $iCount - 1 - If $aTemp[$i] Then - _WinAPI_DestroyIcon($aTemp[$i]) - EndIf - Next - If $pData Then - __HeapFree($pData) - EndIf - _WinAPI_CloseHandle($hFile) - If Not $iResult Then - FileDelete($sFilePath) - EndIf - - Return SetError($iError, 0, $iResult) -EndFunc ;==>_WinAPI_SaveHICONToFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ScaleWindowExt($hDC, $iXNum, $iXDenom, $iYNum, $iYDenom) - $__g_vExt = DllStructCreate($tagSIZE) - Local $aRet = DllCall('gdi32.dll', 'bool', 'ScaleWindowExtEx', 'handle', $hDC, 'int', $iXNum, 'int', $iXDenom, 'int', $iYNum, _ - 'int', $iYDenom, 'struct*', $__g_vExt) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ScaleWindowExt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SelectClipPath($hDC, $iMode = 5) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SelectClipPath', 'handle', $hDC, 'int', $iMode) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SelectClipPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SelectClipRgn($hDC, $hRgn) - Local $aRet = DllCall('gdi32.dll', 'int', 'SelectClipRgn', 'handle', $hDC, 'handle', $hRgn) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SelectClipRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetArcDirection($hDC, $iDirection) - Local $aRet = DllCall('gdi32.dll', 'int', 'SetArcDirection', 'handle', $hDC, 'int', $iDirection) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetArcDirection - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetBitmapBits($hBitmap, $iSize, $pBits) - Local $aRet = DllCall('gdi32.dll', 'long', 'SetBitmapBits', 'handle', $hBitmap, 'dword', $iSize, 'struct*', $pBits) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetBitmapBits - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetBitmapDimensionEx($hBitmap, $iWidth, $iHeight) - $__g_vExt = DllStructCreate($tagSIZE) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetBitmapDimensionEx', 'handle', $hBitmap, 'int', $iWidth, 'int', $iHeight, _ - 'struct*', $__g_vExt) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetBitmapDimensionEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetBoundsRect($hDC, $iFlags, $tRECT = 0) - Local $aRet = DllCall('gdi32.dll', 'uint', 'SetBoundsRect', 'handle', $hDC, 'struct*', $tRECT, 'uint', $iFlags) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetBoundsRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetBrushOrg($hDC, $iX, $iY) - $__g_vExt = DllStructCreate($tagPOINT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetBrushOrgEx', 'handle', $hDC, 'int', $iX, 'int', $iY, 'struct*', $__g_vExt) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetBrushOrg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetColorAdjustment($hDC, $tAdjustment) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetColorAdjustment', 'handle', $hDC, 'struct*', $tAdjustment) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetColorAdjustment - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetDCBrushColor($hDC, $iRGB) - Local $aRet = DllCall('gdi32.dll', 'dword', 'SetDCBrushColor', 'handle', $hDC, 'dword', __RGB($iRGB)) - If @error Or ($aRet[0] = 4294967295) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = 4294967295 Then Return SetError(1000, 0, -1) - - Return __RGB($aRet[0]) -EndFunc ;==>_WinAPI_SetDCBrushColor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetDCPenColor($hDC, $iRGB) - Local $aRet = DllCall('gdi32.dll', 'dword', 'SetDCPenColor', 'handle', $hDC, 'dword', __RGB($iRGB)) - If @error Or ($aRet[0] = 4294967295) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = 4294967295 Then Return SetError(1000, 0, -1) - - Return __RGB($aRet[0]) -EndFunc ;==>_WinAPI_SetDCPenColor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetDeviceGammaRamp($hDC, Const ByRef $aRamp) - If (UBound($aRamp, $UBOUND_DIMENSIONS) <> 2) Or (UBound($aRamp, $UBOUND_ROWS) <> 256) Or (UBound($aRamp, $UBOUND_COLUMNS) <> 3) Then - Return SetError(12, 0, 0) - EndIf - - Local $tData = DllStructCreate('ushort[256];ushort[256];ushort[256]') - For $i = 0 To 2 - For $j = 0 To 255 - DllStructSetData($tData, $i + 1, $aRamp[$j][$i], $j + 1) - Next - Next - - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetDeviceGammaRamp', 'handle', $hDC, 'struct*', $tData) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetDeviceGammaRamp - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetDIBColorTable($hBitmap, $tColorTable, $iColorCount) - If $iColorCount > DllStructGetSize($tColorTable) / 4 Then Return SetError(1, 0, 0) - - Local $hDC = _WinAPI_CreateCompatibleDC(0) - Local $hSv = _WinAPI_SelectObject($hDC, $hBitmap) - Local $iError = 0 - Local $aRet = DllCall('gdi32.dll', 'uint', 'SetDIBColorTable', 'handle', $hDC, 'uint', 0, 'uint', $iColorCount, 'struct*', $tColorTable) - If @error Then $iError = @error - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - _WinAPI_SelectObject($hDC, $hSv) - _WinAPI_DeleteDC($hDC) - If $iError Then Return SetError($iError, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetDIBColorTable - -; #FUNCTION# ==================================================================================================================== -; Author.........: Luke -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_SetDIBitsToDevice($hDC, $iXDest, $iYDest, $iWidth, $iHeight, $iXSrc, $iYSrc, $iStartScan, $iScanLines, $tBITMAPINFO, $iUsage, $pBits) - Local $aRet = DllCall('gdi32.dll', 'int', 'SetDIBitsToDevice', 'handle', $hDC, 'int', $iXDest, 'int', $iYDest, _ - 'dword', $iWidth, 'dword', $iHeight, 'int', $iXSrc, 'int', $iYSrc, 'uint', $iStartScan, _ - 'uint', $iScanLines, 'struct*', $pBits, 'struct*', $tBITMAPINFO, 'uint', $iUsage) - If @error Or ($aRet[0] = -1) Then Return SetError(@error + 10, $aRet[0], 0) ; GDI_ERROR - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetDIBitsToDevice - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetEnhMetaFileBits($pData, $iLength) - Local $aRet = DllCall('gdi32.dll', 'handle', 'SetEnhMetaFileBits', 'uint', $iLength, 'struct*', $pData) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetEnhMetaFileBits - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetGraphicsMode($hDC, $iMode) - Local $aRet = DllCall('gdi32.dll', 'int', 'SetGraphicsMode', 'handle', $hDC, 'int', $iMode) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetGraphicsMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetMapMode($hDC, $iMode) - Local $aRet = DllCall('gdi32.dll', 'int', 'SetMapMode', 'handle', $hDC, 'int', $iMode) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetMapMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetPixel($hDC, $iX, $iY, $iRGB) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetPixelV', 'handle', $hDC, 'int', $iX, 'int', $iY, 'dword', __RGB($iRGB)) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetPixel - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetPolyFillMode($hDC, $iMode = 1) - Local $aRet = DllCall('gdi32.dll', 'int', 'SetPolyFillMode', 'handle', $hDC, 'int', $iMode) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetPolyFillMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetRectRgn($hRgn, $tRECT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetRectRgn', 'handle', $hRgn, 'int', DllStructGetData($tRECT, 1), _ - 'int', DllStructGetData($tRECT, 2), 'int', DllStructGetData($tRECT, 3), 'int', DllStructGetData($tRECT, 4)) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetRectRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetROP2($hDC, $iMode) - Local $aRet = DllCall('gdi32.dll', 'int', 'SetROP2', 'handle', $hDC, 'int', $iMode) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetROP2 - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_SetStretchBltMode($hDC, $iMode) - Local $aRet = DllCall('gdi32.dll', 'int', 'SetStretchBltMode', 'handle', $hDC, 'int', $iMode) - If @error Or Not $aRet[0] Or ($aRet[0] = 87) Then Return SetError(@error + 10, $aRet[0], 0) ; ERROR_INVALID_PARAMETER - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetStretchBltMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetTextAlign($hDC, $iMode = 0) - Local $aRet = DllCall('gdi32.dll', 'uint', 'SetTextAlign', 'handle', $hDC, 'uint', $iMode) - If @error Or ($aRet[0] = 4294967295) Then Return SetError(@error, @extended, -1) ; GDI_ERROR - ; If $aRet[0] = 4294967295 Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetTextAlign - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetTextCharacterExtra($hDC, $iCharExtra) - Local $aRet = DllCall('gdi32.dll', 'int', 'SetTextCharacterExtra', 'handle', $hDC, 'int', $iCharExtra) - If @error Or ($aRet[0] = 0x80000000) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = 0x80000000 Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetTextCharacterExtra - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetTextJustification($hDC, $iBreakExtra, $iBreakCount) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetTextJustification', 'handle', $hDC, 'int', $iBreakExtra, 'int', $iBreakCount) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetTextJustification - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SetUDFColorMode($iMode) - $__g_iRGBMode = Not ($iMode = 0) -EndFunc ;==>_WinAPI_SetUDFColorMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetWindowExt($hDC, $iXExtent, $iYExtent) - $__g_vExt = DllStructCreate($tagSIZE) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetWindowExtEx', 'handle', $hDC, 'int', $iXExtent, 'int', $iYExtent, _ - 'struct*', $__g_vExt) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetWindowExt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetWindowOrg($hDC, $iX, $iY) - $__g_vExt = DllStructCreate($tagPOINT) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetWindowOrgEx', 'handle', $hDC, 'int', $iX, 'int', $iY, 'struct*', $__g_vExt) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetWindowOrg - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetWorldTransform($hDC, ByRef $tXFORM) - Local $aRet = DllCall('gdi32.dll', 'bool', 'SetWorldTransform', 'handle', $hDC, 'struct*', $tXFORM) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetWorldTransform - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_StretchBlt($hDestDC, $iXDest, $iYDest, $iWidthDest, $iHeightDest, $hSrcDC, $iXSrc, $iYSrc, $iWidthSrc, $iHeightSrc, $iRop) - Local $aRet = DllCall('gdi32.dll', 'bool', 'StretchBlt', 'handle', $hDestDC, 'int', $iXDest, 'int', $iYDest, 'int', $iWidthDest, _ - 'int', $iHeightDest, 'hwnd', $hSrcDC, 'int', $iXSrc, 'int', $iYSrc, _ - 'int', $iWidthSrc, 'int', $iHeightSrc, 'dword', $iRop) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_StretchBlt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Jscript -; Modified.......: Yashied, JPM -; =============================================================================================================================== -Func _WinAPI_StretchDIBits($hDestDC, $iXDest, $iYDest, $iWidthDest, $iHeightDest, $iXSrc, $iYSrc, $iWidthSrc, $iHeightSrc, $tBITMAPINFO, $iUsage, $pBits, $iRop) - Local $aRet = DllCall('gdi32.dll', 'int', 'StretchDIBits', 'handle', $hDestDC, 'int', $iXDest, 'int', $iYDest, _ - 'int', $iWidthDest, 'int', $iHeightDest, 'int', $iXSrc, 'int', $iYSrc, _ - 'int', $iWidthSrc, 'int', $iHeightSrc, 'struct*', $pBits, 'struct*', $tBITMAPINFO, 'uint', $iUsage, _ - 'dword', $iRop) - If @error Or ($aRet[0] = -1) Then Return SetError(@error + 10, $aRet[0], 0) ; GDI_ERROR - - Return $aRet[0] -EndFunc ;==>_WinAPI_StretchDIBits - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_StrokeAndFillPath($hDC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'StrokeAndFillPath', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_StrokeAndFillPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_StrokePath($hDC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'StrokePath', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_StrokePath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SubtractRect(ByRef $tRECT1, ByRef $tRECT2) - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'SubtractRect', 'struct*', $tRECT, 'struct*', $tRECT1, 'struct*', $tRECT2) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tRECT -EndFunc ;==>_WinAPI_SubtractRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_TabbedTextOut($hDC, $iX, $iY, $sText, $aTab = 0, $iStart = 0, $iEnd = -1, $iOrigin = 0) - Local $iTab, $iCount - If Not IsArray($aTab) Then - If $aTab Then - $iTab = $aTab - Dim $aTab[1] = [$iTab] - $iStart = 0 - $iEnd = 0 - $iCount = 1 - Else - $iCount = 0 - EndIf - Else - $iCount = 1 - EndIf - - Local $tTab = 0 - If $iCount Then - If __CheckErrorArrayBounds($aTab, $iStart, $iEnd) Then Return SetError(@error + 10, @extended, 0) - - $iCount = $iEnd - $iStart + 1 - $tTab = DllStructCreate('uint[' & $iCount & ']') - $iTab = 1 - For $i = $iStart To $iEnd - DllStructSetData($tTab, 1, $aTab[$i], $iTab) - $iTab += 1 - Next - EndIf - Local $aRet = DllCall('user32.dll', 'long', 'TabbedTextOutW', 'handle', $hDC, 'int', $iX, 'int', $iY, 'wstr', $sText, _ - 'int', StringLen($sText), 'int', $iCount, 'struct*', $tTab, 'int', $iOrigin) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - - $__g_vExt = _WinAPI_CreateSize(_WinAPI_LoWord($aRet[0]), _WinAPI_HiWord($aRet[0])) - Return 1 -EndFunc ;==>_WinAPI_TabbedTextOut - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_TextOut($hDC, $iX, $iY, $sText) - Local $aRet = DllCall('gdi32.dll', 'bool', 'TextOutW', 'handle', $hDC, 'int', $iX, 'int', $iY, 'wstr', $sText, _ - 'int', StringLen($sText)) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_TextOut - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_TransparentBlt($hDestDC, $iXDest, $iYDest, $iWidthDest, $iHeightDest, $hSrcDC, $iXSrc, $iYSrc, $iWidthSrc, $iHeightSrc, $iRGB) - Local $aRet = DllCall('gdi32.dll', 'bool', 'GdiTransparentBlt', 'handle', $hDestDC, 'int', $iXDest, 'int', $iYDest, _ - 'int', $iWidthDest, 'int', $iHeightDest, 'hwnd', $hSrcDC, 'int', $iXSrc, 'int', $iYSrc, _ - 'int', $iWidthSrc, 'int', $iHeightSrc, 'dword', __RGB($iRGB)) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_TransparentBlt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UnionRect(ByRef $tRECT1, ByRef $tRECT2) - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'UnionRect', 'struct*', $tRECT, 'struct*', $tRECT1, 'struct*', $tRECT2) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, 0, 0) - - Return $tRECT -EndFunc ;==>_WinAPI_UnionRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ValidateRect($hWnd, $tRECT = 0) - Local $aRet = DllCall('user32.dll', 'bool', 'ValidateRect', 'hwnd', $hWnd, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ValidateRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ValidateRgn($hWnd, $hRgn = 0) - Local $aRet = DllCall('user32.dll', 'bool', 'ValidateRgn', 'hwnd', $hWnd, 'handle', $hRgn) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ValidateRgn - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_WidenPath($hDC) - Local $aRet = DllCall('gdi32.dll', 'bool', 'WidenPath', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_WidenPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_WindowFromDC($hDC) - Local $aRet = DllCall('user32.dll', 'hwnd', 'WindowFromDC', 'handle', $hDC) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_WindowFromDC -#EndRegion Public Functions - -#Region Embedded DLL Functions - -Func __AlphaProc() - Static $pProc = 0 - - If Not $pProc Then - If @AutoItX64 Then - $pProc = __Init(Binary( _ - '0x48894C240848895424104C894424184C894C24205541574831C050504883EC28' & _ - '48837C24600074054831C0EB0748C7C0010000004821C0751F488B6C24604883' & _ - '7D180074054831C0EB0748C7C0010000004821C07502EB0948C7C001000000EB' & _ - '034831C04821C0740C48C7C0FFFFFFFF4863C0EB6F48C744242800000000488B' & _ - '6C24604C637D04488B6C2460486345084C0FAFF849C1E7024983C7FC4C3B7C24' & _ - '287C36488B6C24604C8B7D184C037C24284983C7034C897C2430488B6C243080' & _ - '7D0000740C48C7C0010000004863C0EB1348834424280471A54831C04863C0EB' & _ - '034831C04883C438415F5DC3')) - Else - $pProc = __Init(Binary( _ - '0x555331C05050837C241C00740431C0EB05B80100000021C075198B6C241C837D' & _ - '1400740431C0EB05B80100000021C07502EB07B801000000EB0231C021C07407' & _ - 'B8FFFFFFFFEB4FC70424000000008B6C241C8B5D048B6C241C0FAF5D08C1E302' & _ - '83C3FC3B1C247C288B6C241C8B5D14031C2483C303895C24048B6C2404807D00' & _ - '007407B801000000EB0C8304240471BE31C0EB0231C083C4085B5DC21000')) - EndIf - EndIf - Return $pProc -EndFunc ;==>__AlphaProc - -Func __ANDProc() - Static $pProc = 0 - - If Not $pProc Then - If @AutoItX64 Then - $pProc = __Init(Binary( _ - '0x48894C240848895424104C894424184C894C2420554157415648C7C009000000' & _ - '4883EC0848C704240000000048FFC875EF4883EC284883BC24A0000000007405' & _ - '4831C0EB0748C7C0010000004821C00F85840000004883BC24A8000000007405' & _ - '4831C0EB0748C7C0010000004821C07555488BAC24A000000048837D18007405' & _ - '4831C0EB0748C7C0010000004821C07522488BAC24A800000048837D18007405' & _ - '4831C0EB0748C7C0010000004821C07502EB0948C7C001000000EB034831C048' & _ - '21C07502EB0948C7C001000000EB034831C04821C07502EB0948C7C001000000' & _ - 'EB034831C04821C0740B4831C04863C0E9D701000048C74424280000000048C7' & _ - '44243000000000488BAC24A00000004C637D0849FFCF4C3B7C24300F8C9C0100' & _ - '0048C74424380000000048C74424400000000048C744244800000000488BAC24' & _ - 'A00000004C637D0449FFCF4C3B7C24480F8CDB000000488BAC24A00000004C8B' & _ - '7D184C037C24284983C7034C897C2450488B6C2450807D000074264C8B7C2440' & _ - '4C8B74243849F7DE4983C61F4C89F148C7C00100000048D3E04909C74C897C24' & _ - '4048FF4424384C8B7C24384983FF1F7E6F4C8B7C244049F7D74C897C244048C7' & _ - '442458180000004831C0483B4424587F3D488BAC24A80000004C8B7D184C037C' & _ - '24604C897C24504C8B7C2440488B4C245849D3FF4C89F850488B6C2458588845' & _ - '0048FF4424604883442458F871B948C74424380000000048C744244000000000' & _ - '48834424280448FF4424480F810BFFFFFF48837C24380074794C8B7C244049F7' & _ - 'D74C8B74243849F7DE4983C6204C89F148C7C0FFFFFFFF48D3E04921C74C897C' & _ - '244048C7442458180000004831C0483B4424587F3D488BAC24A80000004C8B7D' & _ - '184C037C24604C897C24504C8B7C2440488B4C245849D3FF4C89F850488B6C24' & _ - '585888450048FF4424604883442458F871B948FF4424300F814AFEFFFF48C7C0' & _ - '010000004863C0EB034831C04883C470415E415F5DC3')) - Else - $pProc = __Init(Binary( _ - '0x555357BA0800000083EC04C70424000000004A75F3837C243800740431C0EB05' & _ - 'B80100000021C07562837C243C00740431C0EB05B80100000021C0753F8B6C24' & _ - '38837D1400740431C0EB05B80100000021C075198B6C243C837D1400740431C0' & _ - 'EB05B80100000021C07502EB07B801000000EB0231C021C07502EB07B8010000' & _ - '00EB0231C021C07502EB07B801000000EB0231C021C0740731C0E969010000C7' & _ - '042400000000C7442404000000008B6C24388B5D084B3B5C24040F8C3F010000' & _ - 'C744240800000000C744240C00000000C7442410000000008B6C24388B5D044B' & _ - '3B5C24100F8CA90000008B6C24388B5D14031C2483C303895C24148B6C241480' & _ - '7D0000741C8B5C240C8B7C2408F7DF83C71F89F9B801000000D3E009C3895C24' & _ - '0CFF4424088B5C240883FB1F7E578B5C240CF7D3895C240CC744241818000000' & _ - '31C03B4424187F2D8B6C243C8B5D14035C241C895C24148B5C240C8B4C2418D3' & _ - 'FB538B6C241858884500FF44241C83442418F871CBC744240800000000C74424' & _ - '0C0000000083042404FF4424100F8145FFFFFF837C240800745B8B5C240CF7D3' & _ - '8B7C2408F7DF83C72089F9B8FFFFFFFFD3E021C3895C240CC744241818000000' & _ - '31C03B4424187F2D8B6C243C8B5D14035C241C895C24148B5C240C8B4C2418D3' & _ - 'FB538B6C241858884500FF44241C83442418F871CBFF4424040F81AFFEFFFFB8' & _ - '01000000EB0231C083C4205F5B5DC21000')) - EndIf - EndIf - Return $pProc -EndFunc ;==>__ANDProc - -Func __XORProc() - Static $pProc = 0 - - If Not $pProc Then - If @AutoItX64 Then - $pProc = __Init(Binary( _ - '0x48894C240848895424104C894424184C894C24205541574831C050504883EC28' & _ - '48837C24600074054831C0EB0748C7C0010000004821C0751B48837C24680074' & _ - '054831C0EB0748C7C0010000004821C07502EB0948C7C001000000EB034831C0' & _ - '4821C074084831C04863C0EB7748C7442428000000004C637C24584983C7FC4C' & _ - '3B7C24287C4F4C8B7C24604C037C24284C897C2430488B6C2430807D00007405' & _ - '4831C0EB0748C7C0010000004821C0741C4C8B7C24684C037C24284983C7034C' & _ - '897C2430488B6C2430C64500FF48834424280471A148C7C0010000004863C0EB' & _ - '034831C04883C438415F5DC3')) - Else - $pProc = __Init(Binary( _ - '0x555331C05050837C241C00740431C0EB05B80100000021C07516837C24200074' & _ - '0431C0EB05B80100000021C07502EB07B801000000EB0231C021C0740431C0EB' & _ - '5AC70424000000008B5C241883C3FC3B1C247C3E8B5C241C031C24895C24048B' & _ - '6C2404807D0000740431C0EB05B80100000021C074168B5C2420031C2483C303' & _ - '895C24048B6C2404C64500FF8304240471B6B801000000EB0231C083C4085B5D' & _ - 'C21000')) - EndIf - EndIf - Return $pProc -EndFunc ;==>__XORProc - -#EndRegion Embedded DLL Functions - -#Region Internal Functions - -Func __EnumDisplayMonitorsProc($hMonitor, $hDC, $pRECT, $lParam) - #forceref $hDC, $lParam - - __Inc($__g_vEnum) - $__g_vEnum[$__g_vEnum[0][0]][0] = $hMonitor - If Not $pRECT Then - $__g_vEnum[$__g_vEnum[0][0]][1] = 0 - Else - $__g_vEnum[$__g_vEnum[0][0]][1] = DllStructCreate($tagRECT) - If Not _WinAPI_MoveMemory(DllStructGetPtr($__g_vEnum[$__g_vEnum[0][0]][1]), $pRECT, 16) Then Return 0 - EndIf - Return 1 -EndFunc ;==>__EnumDisplayMonitorsProc - -Func __EnumFontFamiliesProc($pELFEX, $pNTMEX, $iFontType, $pPattern) - ; Local $tELFEX = DllStructCreate('long;long;long;long;long;byte;byte;byte;byte;byte;byte;byte;byte;wchar[32];wchar[64];wchar[32];wchar[32]', $pELFEX) - Local $tELFEX = DllStructCreate($tagLOGFONT & ';wchar FullName[64];wchar Style[32];wchar Script[32]', $pELFEX) - ; Local $tNTMEX = DllStructCreate('long;long;long;long;long;long;long;long;long;long;long;wchar;wchar;wchar;wchar;byte;byte;byte;byte;byte;dword;uint;uint;uint;dword[4];dword[2]', $pNTMEX) - Local $tNTMEX = DllStructCreate($tagNEWTEXTMETRICEX, $pNTMEX) - Local $tPattern = DllStructCreate('uint;uint;ptr', $pPattern) - - If $iFontType And Not BitAND($iFontType, DllStructGetData($tPattern, 1)) Then - Return 1 - EndIf - If DllStructGetData($tPattern, 3) Then - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathMatchSpecW', 'ptr', DllStructGetPtr($tELFEX, 14), 'ptr', DllStructGetData($tPattern, 3)) - If Not @error Then - If DllStructGetData($tPattern, 2) Then - If $aRet[0] Then - Return 1 - Else - - EndIf - Else - If $aRet[0] Then - - Else - Return 1 - EndIf - EndIf - EndIf - EndIf - __Inc($__g_vEnum) - $__g_vEnum[$__g_vEnum[0][0]][0] = DllStructGetData($tELFEX, 14) - $__g_vEnum[$__g_vEnum[0][0]][1] = DllStructGetData($tELFEX, 16) - $__g_vEnum[$__g_vEnum[0][0]][2] = DllStructGetData($tELFEX, 15) - $__g_vEnum[$__g_vEnum[0][0]][3] = DllStructGetData($tELFEX, 17) - $__g_vEnum[$__g_vEnum[0][0]][4] = $iFontType - $__g_vEnum[$__g_vEnum[0][0]][5] = DllStructGetData($tNTMEX, 19) - $__g_vEnum[$__g_vEnum[0][0]][6] = DllStructGetData($tNTMEX, 20) - $__g_vEnum[$__g_vEnum[0][0]][7] = DllStructGetData($tNTMEX, 21) - Return 1 -EndFunc ;==>__EnumFontFamiliesProc - -Func __EnumFontStylesProc($pELFEX, $pNTMEX, $iFontType, $pFN) - #forceref $iFontType - - ; Local $tELFEX = DllStructCreate('long;long;long;long;long;byte;byte;byte;byte;byte;byte;byte;byte;wchar[32];wchar[64];wchar[32];wchar[32]', $pELFEX) - Local $tELFEX = DllStructCreate($tagLOGFONT & ';wchar FullName[64];wchar Style[32];wchar Script[32]', $pELFEX) - ; Local $tNTMEX = DllStructCreate('long;long;long;long;long;long;long;long;long;long;long;wchar;wchar;wchar;wchar;byte;byte;byte;byte;byte;dword;uint;uint;uint;dword[4];dword[2]', $pNTMEX) - Local $tNTMEX = DllStructCreate($tagNEWTEXTMETRICEX, $pNTMEX) - Local $tFN = DllStructCreate('dword;wchar[64]', $pFN) - - If BitAND(DllStructGetData($tNTMEX, 'ntmFlags'), 0x0061) = DllStructGetData($tFN, 1) Then - DllStructSetData($tFN, 2, DllStructGetData($tELFEX, 'FullName')) - Return 0 - Else - Return 1 - EndIf -EndFunc ;==>__EnumFontStylesProc -#EndRegion Internal Functions diff --git a/build/Include/WinAPIInternals.au3 b/build/Include/WinAPIInternals.au3 deleted file mode 100644 index 5ebe7a287..000000000 --- a/build/Include/WinAPIInternals.au3 +++ /dev/null @@ -1,676 +0,0 @@ -#include-once - -#include "AutoItConstants.au3" -#include "MsgBoxConstants.au3" -#include "StructureConstants.au3" -#include "WinAPIError.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIxxx.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -Global $__g_vEnum, $__g_vExt = 0 -Global $__g_hHeap = 0, $__g_iRGBMode = 1 -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $tagOSVERSIONINFO = 'struct;dword OSVersionInfoSize;dword MajorVersion;dword MinorVersion;dword BuildNumber;dword PlatformId;wchar CSDVersion[128];endstruct' - -Global Const $__WINVER = __WINVER() -; =============================================================================================================================== - -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; Doc in WinAPIMisc -; _WinAPI_ArrayToStruct -; _WinAPI_CreateMargins -; _WinAPI_CreatePoint -; _WinAPI_CreateRect -; _WinAPI_CreateRectEx -; _WinAPI_CreateSize -; _WinAPI_GetString -; _WinAPI_StrLen -; _WinAPI_StructToArray -; -; Doc in WinAPIDiag -; _WinAPI_FatalExit -; -; Doc in WinAPIGdi -; _WinAPI_GetBitmapDimension -; _WinAPI_SwitchColor -; -; Doc in WinAPISys -; _WinAPI_IsBadReadPtr -; _WinAPI_IsBadWritePtr -; _WinAPI_MoveMemory -; _WinAPI_ZeroMemory -; -; Doc in WinAPIProc -; _WinAPI_IsWow64Process -; _WinAPI_PathIsDirectory - -; Doc in WinAPIMisc -; _WinAPI_SwapDWord -; _WinAPI_SwapQWord -; _WinAPI_SwapWord -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; __CheckErrorArrayBounds -; __CheckErrorCloseHandle -; __DLL -; __EnumWindowsProc -; __FatalExit -; __HeapAlloc -; __HeapFree -; __HeapReAlloc -; __HeapSize -; __HeapValidate -; __Iif -; __Inc -; __Init -; __RGB -; __WINVER() -; =============================================================================================================================== - -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ArrayToStruct(Const ByRef $aData, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aData, $iStart, $iEnd) Then Return SetError(@error + 10, @extended, 0) - - Local $tagStruct = '' - For $i = $iStart To $iEnd - $tagStruct &= 'wchar[' & (StringLen($aData[$i]) + 1) & '];' - Next - Local $tData = DllStructCreate($tagStruct & 'wchar[1]') - - Local $iCount = 1 - For $i = $iStart To $iEnd - DllStructSetData($tData, $iCount, $aData[$i]) - $iCount += 1 - Next - DllStructSetData($tData, $iCount, ChrW(0)) - Return $tData -EndFunc ;==>_WinAPI_ArrayToStruct - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateMargins($iLeftWidth, $iRightWidth, $iTopHeight, $iBottomHeight) - Local $tMARGINS = DllStructCreate($tagMARGINS) - - DllStructSetData($tMARGINS, 1, $iLeftWidth) - DllStructSetData($tMARGINS, 2, $iRightWidth) - DllStructSetData($tMARGINS, 3, $iTopHeight) - DllStructSetData($tMARGINS, 4, $iBottomHeight) - - Return $tMARGINS -EndFunc ;==>_WinAPI_CreateMargins - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreatePoint($iX, $iY) - Local $tPOINT = DllStructCreate($tagPOINT) - DllStructSetData($tPOINT, 1, $iX) - DllStructSetData($tPOINT, 2, $iY) - - Return $tPOINT -EndFunc ;==>_WinAPI_CreatePoint - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateRect($iLeft, $iTop, $iRight, $iBottom) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, 1, $iLeft) - DllStructSetData($tRECT, 2, $iTop) - DllStructSetData($tRECT, 3, $iRight) - DllStructSetData($tRECT, 4, $iBottom) - - Return $tRECT -EndFunc ;==>_WinAPI_CreateRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateRectEx($iX, $iY, $iWidth, $iHeight) - Local $tRECT = DllStructCreate($tagRECT) - DllStructSetData($tRECT, 1, $iX) - DllStructSetData($tRECT, 2, $iY) - DllStructSetData($tRECT, 3, $iX + $iWidth) - DllStructSetData($tRECT, 4, $iY + $iHeight) - - Return $tRECT -EndFunc ;==>_WinAPI_CreateRectEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateSize($iWidth, $iHeight) - Local $tSIZE = DllStructCreate($tagSIZE) - DllStructSetData($tSIZE, 1, $iWidth) - DllStructSetData($tSIZE, 2, $iHeight) - - Return $tSIZE -EndFunc ;==>_WinAPI_CreateSize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FatalExit($iCode) - DllCall('kernel32.dll', 'none', 'FatalExit', 'int', $iCode) - If @error Then Return SetError(@error, @extended) -EndFunc ;==>_WinAPI_FatalExit - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetBitmapDimension($hBitmap) - Local Const $tagBITMAP = 'struct;long bmType;long bmWidth;long bmHeight;long bmWidthBytes;ushort bmPlanes;ushort bmBitsPixel;ptr bmBits;endstruct' - Local $tObj = DllStructCreate($tagBITMAP) - Local $aRet = DllCall('gdi32.dll', 'int', 'GetObject', 'handle', $hBitmap, 'int', DllStructGetSize($tObj), 'struct*', $tObj) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return _WinAPI_CreateSize(DllStructGetData($tObj, 'bmWidth'), DllStructGetData($tObj, 'bmHeight')) -EndFunc ;==>_WinAPI_GetBitmapDimension - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetString($pString, $bUnicode = True) - Local $iLength = _WinAPI_StrLen($pString, $bUnicode) - If @error Or Not $iLength Then Return SetError(@error + 10, @extended, '') - - Local $tString = DllStructCreate(__Iif($bUnicode, 'wchar', 'char') & '[' & ($iLength + 1) & ']', $pString) - If @error Then Return SetError(@error, @extended, '') - - Return SetExtended($iLength, DllStructGetData($tString, 1)) -EndFunc ;==>_WinAPI_GetString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsBadReadPtr($pAddress, $iLength) - Local $aRet = DllCall('kernel32.dll', 'bool', 'IsBadReadPtr', 'struct*', $pAddress, 'uint_ptr', $iLength) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsBadReadPtr - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsBadWritePtr($pAddress, $iLength) - Local $aRet = DllCall('kernel32.dll', 'bool', 'IsBadWritePtr', 'struct*', $pAddress, 'uint_ptr', $iLength) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsBadWritePtr - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsWow64Process($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000400, 0x00001000), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, False) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'IsWow64Process', 'handle', $hProcess[0], 'bool*', 0) - If __CheckErrorCloseHandle($aRet, $hProcess[0]) Then Return SetError(@error, @extended, False) - - Return $aRet[2] -EndFunc ;==>_WinAPI_IsWow64Process - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_MoveMemory($pDestination, $pSource, $iLength) - If _WinAPI_IsBadReadPtr($pSource, $iLength) Then Return SetError(10, @extended, 0) - If _WinAPI_IsBadWritePtr($pDestination, $iLength) Then Return SetError(11, @extended, 0) - - DllCall('ntdll.dll', 'none', 'RtlMoveMemory', 'struct*', $pDestination, 'struct*', $pSource, 'ulong_ptr', $iLength) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_MoveMemory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsDirectory($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsDirectoryW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_StrLen($pString, $bUnicode = True) - Local $W = '' - If $bUnicode Then $W = 'W' - - Local $aRet = DllCall('kernel32.dll', 'int', 'lstrlen' & $W, 'struct*', $pString) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_StrLen - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_StructToArray(ByRef $tStruct, $iItems = 0) - Local $iSize = 2 * Floor(DllStructGetSize($tStruct) / 2) - Local $pStruct = DllStructGetPtr($tStruct) - - If Not $iSize Or Not $pStruct Then Return SetError(1, 0, 0) - - Local $tData, $iLength, $iOffset = 0 - Local $aResult[101] = [0] - - While 1 - $iLength = _WinAPI_StrLen($pStruct + $iOffset) - If Not $iLength Then - ExitLoop - EndIf - If 2 * (1 + $iLength) + $iOffset > $iSize Then Return SetError(3, 0, 0) - $tData = DllStructCreate('wchar[' & (1 + $iLength) & ']', $pStruct + $iOffset) - If @error Then Return SetError(@error + 10, 0, 0) - __Inc($aResult) - $aResult[$aResult[0]] = DllStructGetData($tData, 1) - If $aResult[0] = $iItems Then - ExitLoop - EndIf - $iOffset += 2 * (1 + $iLength) - If $iOffset >= $iSize Then Return SetError(3, 0, 0) - WEnd - If Not $aResult[0] Then Return SetError(2, 0, 0) - - __Inc($aResult, -1) - Return $aResult -EndFunc ;==>_WinAPI_StructToArray - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SwapDWord($iValue) - Local $tStruct1 = DllStructCreate('dword;dword') - Local $tStruct2 = DllStructCreate('byte[4];byte[4]', DllStructGetPtr($tStruct1)) - DllStructSetData($tStruct1, 1, $iValue) - For $i = 1 To 4 - DllStructSetData($tStruct2, 2, DllStructGetData($tStruct2, 1, 5 - $i), $i) - Next - - Return DllStructGetData($tStruct1, 2) -EndFunc ;==>_WinAPI_SwapDWord - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_SwapQWord($iValue) - Local $tStruct1 = DllStructCreate('int64;int64') - Local $tStruct2 = DllStructCreate('byte[8];byte[8]', DllStructGetPtr($tStruct1)) - DllStructSetData($tStruct1, 1, $iValue) - For $i = 1 To 8 - DllStructSetData($tStruct2, 2, DllStructGetData($tStruct2, 1, 9 - $i), $i) - Next - - Return DllStructGetData($tStruct1, 2) -EndFunc ;==>_WinAPI_SwapQWord - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SwapWord($iValue) - Local $tStruct1 = DllStructCreate('word;word') - Local $tStruct2 = DllStructCreate('byte[2];byte[2]', DllStructGetPtr($tStruct1)) - DllStructSetData($tStruct1, 1, $iValue) - For $i = 1 To 2 - DllStructSetData($tStruct2, 2, DllStructGetData($tStruct2, 1, 3 - $i), $i) - Next - - Return DllStructGetData($tStruct1, 2) -EndFunc ;==>_WinAPI_SwapWord - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_SwitchColor($iColor) - If $iColor = -1 Then Return $iColor - Return BitOR(BitAND($iColor, 0x00FF00), BitShift(BitAND($iColor, 0x0000FF), -16), BitShift(BitAND($iColor, 0xFF0000), 16)) -EndFunc ;==>_WinAPI_SwitchColor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_ZeroMemory($pMemory, $iLength) - If _WinAPI_IsBadWritePtr($pMemory, $iLength) Then Return SetError(11, @extended, 0) - - DllCall('ntdll.dll', 'none', 'RtlZeroMemory', 'struct*', $pMemory, 'ulong_ptr', $iLength) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_ZeroMemory - -#EndRegion Public Functions - -#Region Internal Functions - -Func __CheckErrorArrayBounds(Const ByRef $aData, ByRef $iStart, ByRef $iEnd, $nDim = 1, $iDim = $UBOUND_DIMENSIONS) - ; Bounds checking - If Not IsArray($aData) Then Return SetError(1, 0, 1) - If UBound($aData, $iDim) <> $nDim Then Return SetError(2, 0, 1) - - If $iStart < 0 Then $iStart = 0 - - Local $iUBound = UBound($aData) - 1 - If $iEnd < 1 Or $iEnd > $iUBound Then $iEnd = $iUBound - - If $iStart > $iEnd Then Return SetError(4, 0, 1) - - Return 0 -EndFunc ;==>__CheckErrorArrayBounds - -Func __CheckErrorCloseHandle($aRet, $hFile, $bLastError = 0, $iCurErr = @error, $iCurExt = @extended) - If Not $iCurErr And Not $aRet[0] Then $iCurErr = 10 - Local $iLastError = _WinAPI_GetLastError() - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hFile) - If $iCurErr Then _WinAPI_SetLastError($iLastError) - If $bLastError Then $iCurExt = $iLastError - Return SetError($iCurErr, $iCurExt, $iCurErr) -EndFunc ;==>__CheckErrorCloseHandle - -Func __DLL($sPath, $bPin = False) - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetModuleHandleExW', 'dword', __Iif($bPin, 0x0001, 0x0002), "wstr", $sPath, 'ptr*', 0) - If Not $aRet[3] Then - Local $aResult = DllCall("kernel32.dll", "handle", "LoadLibraryW", "wstr", $sPath) - If Not $aResult[0] Then Return 0 - EndIf - Return 1 -EndFunc ;==>__DLL - -Func __EnumWindowsProc($hWnd, $bVisible) - Local $aResult - If $bVisible Then - $aResult = DllCall("user32.dll", "bool", "IsWindowVisible", "hwnd", $hWnd) - If Not $aResult[0] Then - Return 1 - EndIf - EndIf - __Inc($__g_vEnum) - $__g_vEnum[$__g_vEnum[0][0]][0] = $hWnd - $aResult = DllCall("user32.dll", "int", "GetClassNameW", "hwnd", $hWnd, "wstr", "", "int", 4096) - $__g_vEnum[$__g_vEnum[0][0]][1] = $aResult[2] - Return 1 -EndFunc ;==>__EnumWindowsProc - -Func __FatalExit($iCode, $sText = '') - If $sText Then MsgBox($MB_SYSTEMMODAL, 'AutoIt', $sText) - _WinAPI_FatalExit($iCode) -EndFunc ;==>__FatalExit - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name ..........: __HeapAlloc -; Description ...: -; Syntax ........: __HeapAlloc($iSize[, $bAbort = False]) -; Parameters ....: $iSize - An integer value. -; $bAbort - [optional] Abort the script if error. Default is False. -; Return values .: Success - a pointer to the allocated memory block -; Failure - Set the @error flag to 30+ -; Author ........: Yashied -; Modified ......: jpm -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ HeapAlloc -; Example .......: -; =============================================================================================================================== -Func __HeapAlloc($iSize, $bAbort = False) - Local $aRet - If Not $__g_hHeap Then - $aRet = DllCall('kernel32.dll', 'handle', 'HeapCreate', 'dword', 0, 'ulong_ptr', 0, 'ulong_ptr', 0) - If @error Or Not $aRet[0] Then __FatalExit(1, 'Error allocating memory.') - $__g_hHeap = $aRet[0] - EndIf - - $aRet = DllCall('kernel32.dll', 'ptr', 'HeapAlloc', 'handle', $__g_hHeap, 'dword', 0x00000008, 'ulong_ptr', $iSize) ; HEAP_ZERO_MEMORY - If @error Or Not $aRet[0] Then - If $bAbort Then __FatalExit(1, 'Error allocating memory.') - Return SetError(@error + 30, @extended, 0) - EndIf - Return $aRet[0] -EndFunc ;==>__HeapAlloc - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name ..........: __HeapFree -; Description ...: -; Syntax ........: __HeapFree(Byref $pMemory[, $bCheck = False]) -; Parameters ....: $pMemory - [in/out] A pointer value. -; $bCheck - [optional] Check valid pointer. Default is False (see remarks). -; Return values .: Success - 1. -; Failure - Set the @error flag to 1 to 9 or 40+ -; Author ........: Yashied -; Modified ......: jpm -; Remarks .......: @error and @extended are preserved when return if no error -; Related .......: -; Link ..........: @@MsdnLink@@ HeapFree -; Example .......: No -; =============================================================================================================================== -Func __HeapFree(ByRef $pMemory, $bCheck = False, $iCurErr = @error, $iCurExt = @extended) - If $bCheck And (Not __HeapValidate($pMemory)) Then Return SetError(@error, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'int', 'HeapFree', 'handle', $__g_hHeap, 'dword', 0, 'ptr', $pMemory) - If @error Or Not $aRet[0] Then Return SetError(@error + 40, @extended, 0) - - $pMemory = 0 - Return SetError($iCurErr, $iCurExt, 1) -EndFunc ;==>__HeapFree - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name ..........: __HeapReAlloc -; Description ...: -; Syntax ........: __HeapReAlloc($pMemory, $iSize[, $bAmount = 0[, $bAbort = 0]]) -; Parameters ....: $pMemory - A pointer value. -; $iSize - An integer value. -; $bAmount - [optional] A boolean value. Default is False. -; $bAbort - [optional] A boolean value. Default is False. -; Return values .: Success - a pointer to the allocated memory bloc -; Failure - 0 and sets the @error flag to 1 to 20+ or 30+ if no previous allocation -; Author ........: Yashied -; Modified ......: jpm -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ HeapReAlloc -; Example .......: No -; =============================================================================================================================== -Func __HeapReAlloc($pMemory, $iSize, $bAmount = False, $bAbort = False) - Local $aRet, $pRet - If __HeapValidate($pMemory) Then - If $bAmount And (__HeapSize($pMemory) >= $iSize) Then Return SetExtended(1, Ptr($pMemory)) - - $aRet = DllCall('kernel32.dll', 'ptr', 'HeapReAlloc', 'handle', $__g_hHeap, 'dword', 0x00000008, 'ptr', $pMemory, _ - 'ulong_ptr', $iSize) ; HEAP_ZERO_MEMORY - If @error Or Not $aRet[0] Then - If $bAbort Then __FatalExit(1, 'Error allocating memory.') - Return SetError(@error + 20, @extended, Ptr($pMemory)) - EndIf - $pRet = $aRet[0] - Else - $pRet = __HeapAlloc($iSize, $bAbort) - If @error Then Return SetError(@error, @extended, 0) - EndIf - Return $pRet -EndFunc ;==>__HeapReAlloc - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name ..........: __HeapSize -; Description ...: -; Syntax ........: __HeapSize($pMemory[, $bCheck = False]) -; Parameters ....: $pMemory - A pointer value. -; $bCheck - [optional] A boolean value. Default is False. -; Return values .: Success - the requested size of the allocated memory block, in bytes. -; Failure - 0 and sets the @error flag to 1 to 9 or 50+ -; Modified ......: jpm -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ HeapSize -; Example .......: -; =============================================================================================================================== -Func __HeapSize($pMemory, $bCheck = False) - If $bCheck And (Not __HeapValidate($pMemory)) Then Return SetError(@error, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'ulong_ptr', 'HeapSize', 'handle', $__g_hHeap, 'dword', 0, 'ptr', $pMemory) - If @error Or ($aRet[0] = Ptr(-1)) Then Return SetError(@error + 50, @extended, 0) - Return $aRet[0] -EndFunc ;==>__HeapSize - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name ..........: __HeapValidate -; Description ...: -; Syntax ........: __HeapValidate($pMemory) -; Parameters ....: $pMemory - A pointer value. -; Return values .: Success - True. -; Failure - False and sets the @error flag to 1 to 9. -; Author ........: Yashied -; Modified ......: jpm -; Remarks .......: -; Related .......: -; Link ..........: @@MsdnLink@@ HeapValidate -; Example .......: -; =============================================================================================================================== -Func __HeapValidate($pMemory) - If (Not $__g_hHeap) Or (Not Ptr($pMemory)) Then Return SetError(9, 0, False) - - Local $aRet = DllCall('kernel32.dll', 'int', 'HeapValidate', 'handle', $__g_hHeap, 'dword', 0, 'ptr', $pMemory) - If @error Then Return SetError(@error, @extended, False) - Return $aRet[0] -EndFunc ;==>__HeapValidate - -Func __Inc(ByRef $aData, $iIncrement = 100) - Select - Case UBound($aData, $UBOUND_COLUMNS) - If $iIncrement < 0 Then - ReDim $aData[$aData[0][0] + 1][UBound($aData, $UBOUND_COLUMNS)] - Else - $aData[0][0] += 1 - If $aData[0][0] > UBound($aData) - 1 Then - ReDim $aData[$aData[0][0] + $iIncrement][UBound($aData, $UBOUND_COLUMNS)] - EndIf - EndIf - Case UBound($aData, $UBOUND_ROWS) - If $iIncrement < 0 Then - ReDim $aData[$aData[0] + 1] - Else - $aData[0] += 1 - If $aData[0] > UBound($aData) - 1 Then - ReDim $aData[$aData[0] + $iIncrement] - EndIf - EndIf - Case Else - Return 0 - EndSelect - Return 1 -EndFunc ;==>__Inc - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name ..........: __Iif -; Description ...: -; Syntax ........: __Iif($bTest, $iTrue, $iFalse) -; Parameters ....: $bTest - A boolean value. -; $vTrue - An integer value. -; $vFalse - An integer value. -; Return values .: depending $bTest : $vTrue if True Or $vFalse is False -; Author ........: Yashied -; Modified ......: Jpm -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: No -; =============================================================================================================================== -Func __Iif($bTest, $vTrue, $vFalse) - Return $bTest ? $vTrue : $vFalse -EndFunc ;==>__Iif - -Func __Init($dData) - Local $iLength = BinaryLen($dData) - Local $aRet = DllCall('kernel32.dll', 'ptr', 'VirtualAlloc', 'ptr', 0, 'ulong_ptr', $iLength, 'dword', 0x00001000, 'dword', 0x00000040) - If @error Or Not $aRet[0] Then __FatalExit(1, 'Error allocating memory.') - Local $tData = DllStructCreate('byte[' & $iLength & "]", $aRet[0]) - DllStructSetData($tData, 1, $dData) - Return $aRet[0] -EndFunc ;==>__Init - -Func __RGB($iColor) - If $__g_iRGBMode Then - $iColor = _WinAPI_SwitchColor($iColor) - EndIf - Return $iColor -EndFunc ;==>__RGB - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __WINVER -; Description ...: Retrieves version of the current operating system -; Syntax.........: __WINVER ( ) -; Parameters ....: none -; Return values .: Returns the binary version of the current OS. -; 0x0603 - Windows 8.1 -; 0x0602 - Windows 8 / Windows Server 2012 -; 0x0601 - Windows 7 / Windows Server 2008 R2 -; 0x0600 - Windows Vista / Windows Server 2008 -; 0x0502 - Windows XP 64-Bit Edition / Windows Server 2003 / Windows Server 2003 R2 -; 0x0501 - Windows XP -; Author ........: Yashield -; Modified.......: -; Remarks .......: For Internal Use Only -; Related .......: -; Link ..........: -; Example .......: No -; =============================================================================================================================== -Func __WINVER() - Local $tOSVI = DllStructCreate($tagOSVERSIONINFO) - DllStructSetData($tOSVI, 1, DllStructGetSize($tOSVI)) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetVersionExW', 'struct*', $tOSVI) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - Return BitOR(BitShift(DllStructGetData($tOSVI, 2), -8), DllStructGetData($tOSVI, 3)) -EndFunc ;==>__WINVER - -#EndRegion Internal Functions diff --git a/build/Include/WinAPILocale.au3 b/build/Include/WinAPILocale.au3 deleted file mode 100644 index 1bd252f9f..000000000 --- a/build/Include/WinAPILocale.au3 +++ /dev/null @@ -1,448 +0,0 @@ -#include-once - -#include "APILocaleConstants.au3" -#include "StringConstants.au3" -#include "WinAPIInternals.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPILocale.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $tagNUMBERFMT = 'uint NumDigits;uint LeadingZero;uint Grouping;ptr DecimalSep;ptr ThousandSep;uint NegativeOrder' ; & ';wchar DecimalSepChars[n];wchar ThousandSepChars[n]' -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_CompareString -; _WinAPI_CreateNumberFormatInfo -; _WinAPI_EnumSystemGeoID -; _WinAPI_EnumSystemLocales -; _WinAPI_EnumUILanguages -; _WinAPI_GetDateFormat -; _WinAPI_GetDurationFormat -; _WinAPI_GetGeoInfo -; _WinAPI_GetLocaleInfo -; _WinAPI_GetNumberFormat -; _WinAPI_GetSystemDefaultLangID -; _WinAPI_GetSystemDefaultLCID -; _WinAPI_GetSystemDefaultUILanguage -; _WinAPI_GetThreadLocale -; _WinAPI_GetThreadUILanguage -; _WinAPI_GetTimeFormat -; _WinAPI_GetUserDefaultLangID -; _WinAPI_GetUserDefaultLCID -; _WinAPI_GetUserDefaultUILanguage -; _WinAPI_GetUserGeoID -; _WinAPI_IsValidLocale -; _WinAPI_SetLocaleInfo -; _WinAPI_SetThreadLocale -; _WinAPI_SetThreadUILanguage -; _WinAPI_SetUserGeoID -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CompareString($iLCID, $sString1, $sString2, $iFlags = 0) - Local $aRet = DllCall('kernel32.dll', 'int', 'CompareStringW', 'dword', $iLCID, 'dword', $iFlags, 'wstr', $sString1, _ - 'int', -1, 'wstr', $sString2, 'int', -1) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CompareString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CreateNumberFormatInfo($iNumDigits, $iLeadingZero, $iGrouping, $sDecimalSep, $sThousandSep, $iNegativeOrder) - Local $tFMT = DllStructCreate($tagNUMBERFMT & ';wchar[' & (StringLen($sDecimalSep) + 1) & '];wchar[' & (StringLen($sThousandSep) + 1) & ']') - - DllStructSetData($tFMT, 1, $iNumDigits) - DllStructSetData($tFMT, 2, $iLeadingZero) - DllStructSetData($tFMT, 3, $iGrouping) - DllStructSetData($tFMT, 4, DllStructGetPtr($tFMT, 7)) - DllStructSetData($tFMT, 5, DllStructGetPtr($tFMT, 8)) - DllStructSetData($tFMT, 6, $iNegativeOrder) - DllStructSetData($tFMT, 7, $sDecimalSep) - DllStructSetData($tFMT, 8, $sThousandSep) - - Return $tFMT -EndFunc ;==>_WinAPI_CreateNumberFormatInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumSystemGeoID() - Local $hEnumProc = DllCallbackRegister('__EnumGeoIDProc', 'bool', 'long') - - Dim $__g_vEnum[101] = [0] - Local $aRet = DllCall('kernel32.dll', 'bool', 'EnumSystemGeoID', 'dword', 16, 'long', 0, 'ptr', DllCallbackGetPtr($hEnumProc)) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumSystemGeoID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumSystemLocales($iFlag) - Local $hEnumProc = DllCallbackRegister('__EnumLocalesProc', 'bool', 'ptr') - - Dim $__g_vEnum[101] = [0] - Local $aRet = DllCall('kernel32.dll', 'bool', 'EnumSystemLocalesW', 'ptr', DllCallbackGetPtr($hEnumProc), 'dword', $iFlag) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumSystemLocales - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumUILanguages($iFlag = 0) - Local $hEnumProc = DllCallbackRegister('__EnumUILanguagesProc', 'bool', 'ptr;long_ptr') - Local $iID = 1 - - If $__WINVER >= 0x0600 Then - If BitAND($iFlag, 0x0008) Then - $iID = 0 - EndIf - Else - $iFlag = 0 - EndIf - Dim $__g_vEnum[101] = [0] - Local $aRet = DllCall('kernel32.dll', 'bool', 'EnumUILanguagesW', 'ptr', DllCallbackGetPtr($hEnumProc), 'dword', $iFlag, _ - 'long_ptr', $iID) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumUILanguages - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetDateFormat($iLCID = 0, $tSYSTEMTIME = 0, $iFlags = 0, $sFormat = '') - If Not $iLCID Then $iLCID = 0x0400 - - Local $sTypeOfFormat = 'wstr' - If Not StringStripWS($sFormat, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfFormat = 'ptr' - $sFormat = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'int', 'GetDateFormatW', 'dword', $iLCID, 'dword', $iFlags, 'struct*', $tSYSTEMTIME, _ - $sTypeOfFormat, $sFormat, 'wstr', '', 'int', 2048) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetDateFormat - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetDurationFormat($iLCID, $iDuration, $sFormat = '') - If Not $iLCID Then $iLCID = 0x0400 - - Local $pST, $iVal - If IsDllStruct($iDuration) Then - $pST = DllStructGetPtr($iDuration) - $iVal = 0 - Else - $pST = 0 - $iVal = $iDuration - EndIf - Local $sTypeOfFormat = 'wstr' - If Not StringStripWS($sFormat, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfFormat = 'ptr' - $sFormat = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'int', 'GetDurationFormat', 'dword', $iLCID, 'dword', 0, 'ptr', $pST, 'uint64', $iVal, _ - $sTypeOfFormat, $sFormat, 'wstr', '', 'int', 2048) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[6] -EndFunc ;==>_WinAPI_GetDurationFormat - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetGeoInfo($iGEOID, $iType, $iLanguage = 0) - Local $aRet = DllCall('kernel32.dll', 'int', 'GetGeoInfoW', 'long', $iGEOID, 'dword', $iType, 'wstr', '', 'int', 4096, _ - 'word', $iLanguage) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetGeoInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: WideBoyDixon -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_GetLocaleInfo($iLCID, $iType) - Local $aRet = DllCall('kernel32.dll', 'int', 'GetLocaleInfoW', 'dword', $iLCID, 'dword', $iType, 'wstr', '', 'int', 2048) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetLocaleInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetNumberFormat($iLCID, $sNumber, $tNUMBERFMT = 0) - If Not $iLCID Then $iLCID = 0x0400 ; LOCALE_USER_DEFAULT - - Local $aRet = DllCall('kernel32.dll', 'int', 'GetNumberFormatW', 'dword', $iLCID, 'dword', 0, 'wstr', $sNumber, _ - 'struct*', $tNUMBERFMT, 'wstr', '', 'int', 2048) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0,'') - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetNumberFormat - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetSystemDefaultLangID() - Local $aRet = DllCall('kernel32.dll', 'word', 'GetSystemDefaultLangID') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetSystemDefaultLangID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetSystemDefaultLCID() - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetSystemDefaultLCID') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetSystemDefaultLCID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetSystemDefaultUILanguage() - Local $aRet = DllCall('kernel32.dll', 'word', 'GetSystemDefaultUILanguage') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetSystemDefaultUILanguage - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThreadLocale() - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetThreadLocale') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetThreadLocale - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThreadUILanguage() - Local $aRet = DllCall('kernel32.dll', 'word', 'GetThreadUILanguage') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetThreadUILanguage - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetTimeFormat($iLCID = 0, $tSYSTEMTIME = 0, $iFlags = 0, $sFormat = '') - If Not $iLCID Then $iLCID = 0x0400 - - Local $sTypeOfFormat = 'wstr' - If Not StringStripWS($sFormat, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfFormat = 'ptr' - $sFormat = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'int', 'GetTimeFormatW', 'dword', $iLCID, 'dword', $iFlags, 'struct*', $tSYSTEMTIME, _ - $sTypeOfFormat, $sFormat, 'wstr', '', 'int', 2048) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetTimeFormat - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetUserDefaultLangID() - Local $aRet = DllCall('kernel32.dll', 'word', 'GetUserDefaultLangID') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetUserDefaultLangID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetUserDefaultLCID() - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetUserDefaultLCID') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetUserDefaultLCID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetUserDefaultUILanguage() - Local $aRet = DllCall('kernel32.dll', 'word', 'GetUserDefaultUILanguage') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetUserDefaultUILanguage - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetUserGeoID() - Local $aRet = DllCall('kernel32.dll', 'long', 'GetUserGeoID', 'uint', 16) - If @error Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = -1 Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetUserGeoID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsValidLocale($iLCID, $iFlag = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'IsValidLocale', 'dword', $iLCID, 'dword', $iFlag) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsValidLocale - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetLocaleInfo($iLCID, $iType, $sData) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetLocaleInfoW', 'dword', $iLCID, 'dword', $iType, 'wstr', $sData) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetLocaleInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetThreadLocale($iLCID) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetThreadLocale', 'dword', $iLCID) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetThreadLocale - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_SetThreadUILanguage($iLanguage) - Local $aRet = DllCall('kernel32.dll', 'word', 'SetThreadUILanguage', 'word', $iLanguage) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return ($aRet[0] = $aRet[1]) -EndFunc ;==>_WinAPI_SetThreadUILanguage - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetUserGeoID($iGEOID) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetUserGeoID', 'long', $iGEOID) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetUserGeoID - -#EndRegion Public Functions - -#Region Internal Functions - -Func __EnumGeoIDProc($iID) - __Inc($__g_vEnum) - $__g_vEnum[$__g_vEnum[0]] = $iID - Return 1 -EndFunc ;==>__EnumGeoIDProc - -Func __EnumLocalesProc($pLocale) - __Inc($__g_vEnum) - $__g_vEnum[$__g_vEnum[0]] = Dec(DllStructGetData(DllStructCreate('wchar[' & (_WinAPI_StrLen($pLocale) + 1) & ']', $pLocale), 1)) - Return 1 -EndFunc ;==>__EnumLocalesProc - -Func __EnumUILanguagesProc($pLanguage, $iID) - __Inc($__g_vEnum) - $__g_vEnum[$__g_vEnum[0]] = DllStructGetData(DllStructCreate('wchar[' & (_WinAPI_StrLen($pLanguage) + 1) & ']', $pLanguage), 1) - If $iID Then - $__g_vEnum[$__g_vEnum[0]] = Dec($__g_vEnum[$__g_vEnum[0]]) - EndIf - Return 1 -EndFunc ;==>__EnumUILanguagesProc - -#EndRegion Internal Functions diff --git a/build/Include/WinAPIMisc.au3 b/build/Include/WinAPIMisc.au3 deleted file mode 100644 index 016ca10cf..000000000 --- a/build/Include/WinAPIMisc.au3 +++ /dev/null @@ -1,377 +0,0 @@ -#include-once - -#include "APIMiscConstants.au3" -#include "StringConstants.au3" -#include "WinAPIInternals.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIMisc.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_ArrayToStruct -; _WinAPI_CharToOem -; _WinAPI_CopyStruct -; _WinAPI_CreateMargins -; _WinAPI_CreatePoint -; _WinAPI_CreateRect -; _WinAPI_CreateRectEx -; _WinAPI_CreateSize -; _WinAPI_DWordToFloat -; _WinAPI_DWordToInt -; _WinAPI_FloatToDWord -; _WinAPI_GetExtended -; _WinAPI_GetString -; _WinAPI_GetUDFVersion -; _WinAPI_HashData -; _WinAPI_HashString -; _WinAPI_HiByte -; _WinAPI_HiDWord -; _WinAPI_IntToDWord -; _WinAPI_LoByte -; _WinAPI_LoDWord -; _WinAPI_LongMid -; _WinAPI_MakeWord -; _WinAPI_OemToChar -; _WinAPI_PlaySound -; _WinAPI_ShortToWord -; _WinAPI_StrFormatByteSize -; _WinAPI_StrFormatByteSizeEx -; _WinAPI_StrFormatKBSize -; _WinAPI_StrFromTimeInterval -; _WinAPI_StrLen -; _WinAPI_StructToArray -; _WinAPI_SwapDWord -; _WinAPI_SwapQWord -; _WinAPI_SwapWord -; _WinAPI_UnionStruct -; _WinAPI_WordToShort -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_CharToOem($sStr) - Local $aRet = DllCall('user32.dll', 'bool', 'CharToOemW', 'wstr', $sStr, 'wstr', '') - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_CharToOem - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CopyStruct($tStruct, $sStruct = '') - Local $iSize = DllStructGetSize($tStruct) - If Not $iSize Then Return SetError(1, 0, 0) - - Local $tResult - If Not StringStripWS($sStruct, $STR_STRIPLEADING + $STR_STRIPTRAILING + $STR_STRIPSPACES) Then - $tResult = DllStructCreate('byte[' & $iSize & ']') - Else - $tResult = DllStructCreate($sStruct) - EndIf - If DllStructGetSize($tResult) < $iSize Then Return SetError(2, 0, 0) - - _WinAPI_MoveMemory($tResult, $tStruct, $iSize) - ; Return SetError(3, 0, 0) ; cannot really occur - ; EndIf - Return $tResult -EndFunc ;==>_WinAPI_CopyStruct - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DWordToFloat($iValue) - Local $tDWord = DllStructCreate('dword') - Local $tFloat = DllStructCreate('float', DllStructGetPtr($tDWord)) - DllStructSetData($tDWord, 1, $iValue) - - Return DllStructGetData($tFloat, 1) -EndFunc ;==>_WinAPI_DWordToFloat - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_DWordToInt($iValue) - Local $tData = DllStructCreate('int') - DllStructSetData($tData, 1, $iValue) - - Return DllStructGetData($tData, 1) -EndFunc ;==>_WinAPI_DWordToInt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_FloatToDWord($iValue) - Local $tFloat = DllStructCreate('float') - Local $tDWord = DllStructCreate('dword', DllStructGetPtr($tFloat)) - DllStructSetData($tFloat, 1, $iValue) - - Return DllStructGetData($tDWord, 1) -EndFunc ;==>_WinAPI_FloatToDWord - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetExtended() - Return $__g_vExt -EndFunc ;==>_WinAPI_GetExtended - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_HashData($pMemory, $iSize, $iLength = 32) - If ($iLength <= 0) Or ($iLength > 256) Then Return SetError(11, 0, 0) - - Local $tData = DllStructCreate('byte[' & $iLength & ']') - - Local $aRet = DllCall('shlwapi.dll', 'uint', 'HashData', 'struct*', $pMemory, 'dword', $iSize, 'struct*', $tData, 'dword', $iLength) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return DllStructGetData($tData, 1) -EndFunc ;==>_WinAPI_HashData - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_HashString($sString, $bCaseSensitive = True, $iLength = 32) - Local $iLengthS = StringLen($sString) - If Not $iLengthS Or ($iLength > 256) Then Return SetError(12, 0, 0) - - Local $tString = DllStructCreate('wchar[' & ($iLengthS + 1) & ']') - If Not $bCaseSensitive Then - $sString = StringLower($sString) - EndIf - DllStructSetData($tString, 1, $sString) - Local $sHash = _WinAPI_HashData($tString, 2 * $iLengthS, $iLength) - If @error Then Return SetError(@error, @extended, 0) - - Return $sHash -EndFunc ;==>_WinAPI_HashString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_HiByte($iValue) - Return BitAND(BitShift($iValue, 8), 0xFF) -EndFunc ;==>_WinAPI_HiByte - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_HiDWord($iValue) - Local $tInt64 = DllStructCreate('int64') - Local $tQWord = DllStructCreate('dword;dword', DllStructGetPtr($tInt64)) - DllStructSetData($tInt64, 1, $iValue) - - Return DllStructGetData($tQWord, 2) -EndFunc ;==>_WinAPI_HiDWord - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_IntToDWord($iValue) - Local $tData = DllStructCreate('dword') - DllStructSetData($tData, 1, $iValue) - - Return DllStructGetData($tData, 1) -EndFunc ;==>_WinAPI_IntToDWord - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_LoByte($iValue) - Return BitAND($iValue, 0xFF) -EndFunc ;==>_WinAPI_LoByte - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_LoDWord($iValue) - Local $tInt64 = DllStructCreate('int64') - Local $tQWord = DllStructCreate('dword;dword', DllStructGetPtr($tInt64)) - DllStructSetData($tInt64, 1, $iValue) - - Return DllStructGetData($tQWord, 1) -EndFunc ;==>_WinAPI_LoDWord - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_LongMid($iValue, $iStart, $iCount) - Return BitAND(BitShift($iValue, $iStart), BitOR(BitShift(BitShift(0x7FFFFFFF, 32 - ($iCount + 1)), 1), BitShift(1, -($iCount - 1)))) -EndFunc ;==>_WinAPI_LongMid - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_MakeWord($iLo, $iHi) - Local $tWord = DllStructCreate('ushort') - Local $tByte = DllStructCreate('byte;byte', DllStructGetPtr($tWord)) - DllStructSetData($tByte, 1, $iHi) - DllStructSetData($tByte, 2, $iLo) - - Return DllStructGetData($tWord, 1) -EndFunc ;==>_WinAPI_MakeWord - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_OemToChar($sStr) - Local $aRet = DllCall('user32.dll', 'bool', 'OemToChar', 'str', $sStr, 'str', '') - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_OemToChar - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PlaySound($sSound, $iFlags = $SND_SYSTEM_NOSTOP, $hInstance = 0) - Local $sTypeOfSound = 'ptr' - If $sSound Then - If IsString($sSound) Then - $sTypeOfSound = 'wstr' - EndIf - Else - $sSound = 0 - $iFlags = 0 - EndIf - - Local $aRet = DllCall('winmm.dll', 'bool', 'PlaySoundW', $sTypeOfSound, $sSound, 'handle', $hInstance, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PlaySound - -; #FUNCTION# ==================================================================================================================== -; Author.........: Progandy -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_ShortToWord($iValue) - Return BitAND($iValue, 0x0000FFFF) -EndFunc ;==>_WinAPI_ShortToWord - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_StrFormatByteSize($iSize) - Local $aRet = DllCall('shlwapi.dll', 'ptr', 'StrFormatByteSizeW', 'int64', $iSize, 'wstr', '', 'uint', 1024) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_StrFormatByteSize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_StrFormatByteSizeEx($iSize) - Local $aSymbol = DllCall('kernel32.dll', 'int', 'GetLocaleInfoW', 'dword', 0x0400, 'dword', 0x000F, 'wstr', '', 'int', 2048) - If @error Then Return SetError(@error + 10, @extended, '') - - Local $sSize = _WinAPI_StrFormatByteSize(0) - If @error Then Return SetError(@error, @extended, '') - - Return StringReplace($sSize, '0', StringRegExpReplace(Number($iSize), '(?<=\d)(?=(\d{3})+\z)', $aSymbol[3])) -EndFunc ;==>_WinAPI_StrFormatByteSizeEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_StrFormatKBSize($iSize) - Local $aRet = DllCall('shlwapi.dll', 'ptr', 'StrFormatKBSizeW', 'int64', $iSize, 'wstr', '', 'uint', 1024) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_StrFormatKBSize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_StrFromTimeInterval($iTime, $iDigits = 7) - Local $aRet = DllCall('shlwapi.dll', 'int', 'StrFromTimeIntervalW', 'wstr', '', 'uint', 1024, 'dword', $iTime, _ - 'int', $iDigits) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return StringStripWS($aRet[1], $STR_STRIPLEADING + $STR_STRIPTRAILING) -EndFunc ;==>_WinAPI_StrFromTimeInterval - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UnionStruct($tStruct1, $tStruct2, $sStruct = '') - Local $aSize[2] = [DllStructGetSize($tStruct1), DllStructGetSize($tStruct2)] - - If Not $aSize[0] Or Not $aSize[1] Then Return SetError(1, 0, 0) - - Local $tResult - If Not StringStripWS($sStruct, $STR_STRIPLEADING + $STR_STRIPTRAILING + $STR_STRIPSPACES) Then - $tResult = DllStructCreate('byte[' & ($aSize[0] + $aSize[1]) & ']') - Else - $tResult = DllStructCreate($sStruct) - EndIf - If DllStructGetSize($tResult) < ($aSize[0] + $aSize[1]) Then Return SetError(2, 0, 0) - - _WinAPI_MoveMemory($tResult, $tStruct1, $aSize[0]) - _WinAPI_MoveMemory(DllStructGetPtr($tResult) + $aSize[0], $tStruct2, $aSize[1]) - ; If (Not _WinAPI_MoveMemory($tResult, $tStruct1, $aSize[0])) Or (Not _WinAPI_MoveMemory($pResult + $aSize[0], $tStruct2, $aSize[1])) Then - ; Return SetError(3, 0, 0) ; cannot really occur - ; EndIf - - Return $tResult -EndFunc ;==>_WinAPI_UnionStruct - -; #FUNCTION# ==================================================================================================================== -; Author.........: Progandy -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_WordToShort($iValue) - If BitAND($iValue, 0x00008000) Then - Return BitOR($iValue, 0xFFFF8000) - EndIf - Return BitAND($iValue, 0x00007FFF) -EndFunc ;==>_WinAPI_WordToShort - -#EndRegion Public Functions diff --git a/build/Include/WinAPIProc.au3 b/build/Include/WinAPIProc.au3 deleted file mode 100644 index 1f5526ec7..000000000 --- a/build/Include/WinAPIProc.au3 +++ /dev/null @@ -1,1231 +0,0 @@ -#include-once - -#include "APIProcConstants.au3" -#include "WinAPICom.au3" -#include "WinAPIInternals.au3" -#include "WinAPIShPath.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIProc.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #CONSTANTS# =================================================================================================================== -Global Const $tagIO_COUNTERS = 'struct;uint64 ReadOperationCount;uint64 WriteOperationCount;uint64 OtherOperationCount;uint64 ReadTransferCount;uint64 WriteTransferCount;uint64 OtherTransferCount;endstruct' -Global Const $tagJOBOBJECT_ASSOCIATE_COMPLETION_PORT = 'ulong_ptr CompletionKey;ptr CompletionPort' -Global Const $tagJOBOBJECT_BASIC_ACCOUNTING_INFORMATION = 'struct;int64 TotalUserTime;int64 TotalKernelTime;int64 ThisPeriodTotalUserTime;int64 ThisPeriodTotalKernelTime;dword TotalPageFaultCount;dword TotalProcesses;dword ActiveProcesses;dword TotalTerminatedProcesses;endstruct' -Global Const $tagJOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION = $tagJOBOBJECT_BASIC_ACCOUNTING_INFORMATION & ';' & $tagIO_COUNTERS -Global Const $tagJOBOBJECT_BASIC_LIMIT_INFORMATION = 'struct;int64 PerProcessUserTimeLimit;int64 PerJobUserTimeLimit;dword LimitFlags;ulong_ptr MinimumWorkingSetSize;ulong_ptr MaximumWorkingSetSize;dword ActiveProcessLimit;ulong_ptr Affinity;dword PriorityClass;dword SchedulingClass;endstruct' -Global Const $tagJOBOBJECT_BASIC_PROCESS_ID_LIST = 'dword NumberOfAssignedProcesses;dword NumberOfProcessIdsInList' ; & ';ulong_ptr ProcessIdList[n]' -Global Const $tagJOBOBJECT_BASIC_UI_RESTRICTIONS = 'dword UIRestrictionsClass' -Global Const $tagJOBOBJECT_END_OF_JOB_TIME_INFORMATION = 'dword EndOfJobTimeAction' -Global Const $tagJOBOBJECT_EXTENDED_LIMIT_INFORMATION = $tagJOBOBJECT_BASIC_LIMIT_INFORMATION & ';' & $tagIO_COUNTERS & ';ulong_ptr ProcessMemoryLimit;ulong_ptr JobMemoryLimit;ulong_ptr PeakProcessMemoryUsed;ulong_ptr PeakJobMemoryUsed' -Global Const $tagJOBOBJECT_GROUP_INFORMATION = '' ; & 'ushort ProcessorGroup[n]' -Global Const $tagJOBOBJECT_SECURITY_LIMIT_INFORMATION = 'dword SecurityLimitFlags;ptr JobToken;ptr SidsToDisable;ptr PrivilegesToDelete;ptr RestrictedSids' -Global Const $tagMODULEINFO = 'ptr BaseOfDll;dword SizeOfImage;ptr EntryPoint' -Global Const $tagPROCESSENTRY32 = 'dword Size;dword Usage;dword ProcessID;ulong_ptr DefaultHeapID;dword ModuleID;dword Threads;dword ParentProcessID;long PriClassBase;dword Flags;wchar ExeFile[260]' -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_AdjustTokenPrivileges -; _WinAPI_AssignProcessToJobObject -; _WinAPI_CreateJobObject -; _WinAPI_CreateMutex -; _WinAPI_CreateProcessWithToken -; _WinAPI_CreateSemaphore -; _WinAPI_DuplicateTokenEx -; _WinAPI_EmptyWorkingSet -; _WinAPI_EnumChildProcess -; _WinAPI_EnumDeviceDrivers -; _WinAPI_EnumProcessHandles -; _WinAPI_EnumProcessModules -; _WinAPI_EnumProcessThreads -; _WinAPI_EnumProcessWindows -; _WinAPI_GetCurrentProcessExplicitAppUserModelID -; _WinAPI_GetDeviceDriverBaseName -; _WinAPI_GetDeviceDriverFileName -; _WinAPI_GetExitCodeProcess -; _WinAPI_GetModuleFileNameEx -; _WinAPI_GetModuleInformation -; _WinAPI_GetParentProcess -; _WinAPI_GetPriorityClass -; _WinAPI_GetProcessCommandLine -; _WinAPI_GetProcessFileName -; _WinAPI_GetProcessHandleCount -; _WinAPI_GetProcessID -; _WinAPI_GetProcessIoCounters -; _WinAPI_GetProcessMemoryInfo -; _WinAPI_GetProcessName -; _WinAPI_GetProcessTimes -; _WinAPI_GetProcessUser -; _WinAPI_GetProcessWorkingDirectory -; _WinAPI_GetThreadDesktop -; _WinAPI_GetThreadErrorMode -; _WinAPI_GetWindowFileName -; _WinAPI_IsElevated -; _WinAPI_IsProcessInJob -; _WinAPI_IsWow64Process -; _WinAPI_OpenJobObject -; _WinAPI_OpenMutex -; _WinAPI_OpenProcessToken -; _WinAPI_OpenSemaphore -; _WinAPI_QueryInformationJobObject -; _WinAPI_ReleaseMutex -; _WinAPI_ReleaseSemaphore -; _WinAPI_ResetEvent -; _WinAPI_SetInformationJobObject -; _WinAPI_SetPriorityClass -; _WinAPI_SetThreadDesktop -; _WinAPI_SetThreadErrorMode -; _WinAPI_SetThreadExecutionState -; _WinAPI_TerminateJobObject -; _WinAPI_TerminateProcess -; _WinAPI_UserHandleGrantAccess -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_AdjustTokenPrivileges($hToken, $aPrivileges, $iAttributes, ByRef $aAdjust) - $aAdjust = 0 - If Not $aPrivileges And IsNumber($aPrivileges) Then Return 0 - - Local $tTP1 = 0, $tTP2, $iCount, $aRet, $bDisable = False - If $aPrivileges = -1 Then - $tTP2 = DllStructCreate('dword') - $aRet = DllCall('advapi32.dll', 'bool', 'AdjustTokenPrivileges', 'handle', $hToken, 'bool', 1, 'ptr', 0, _ - 'dword', 0, 'struct*', $tTP2, 'dword*', 0) - If @error Then Return SetError(@error, @extended, 0) - Local $iLastError = _WinAPI_GetLastError() - Switch $iLastError - Case 122 ; ERROR_INSUFFICIENT_BUFFER - $tTP2 = DllStructCreate('dword;dword[' & ($aRet[6] / 4 - 1) & ']') - If @error Then - ContinueCase - EndIf - Case Else - Return SetError(10, $iLastError, 0) - EndSwitch - $bDisable = True - Else - Local $aPrev = 0 - If Not IsArray($aPrivileges) Then - Dim $aPrev[1][2] - $aPrev[0][0] = $aPrivileges - $aPrev[0][1] = $iAttributes - Else - If Not UBound($aPrivileges, $UBOUND_COLUMNS) Then - $iCount = UBound($aPrivileges) - Dim $aPrev[$iCount][2] - For $i = 0 To $iCount - 1 - $aPrev[$i][0] = $aPrivileges[$i] - $aPrev[$i][1] = $iAttributes - Next - EndIf - EndIf - If IsArray($aPrev) Then - $aPrivileges = $aPrev - EndIf - Local $tagStruct = 'dword;dword[' & (3 * UBound($aPrivileges)) & ']' - $tTP1 = DllStructCreate($tagStruct) - $tTP2 = DllStructCreate($tagStruct) - If @error Then Return SetError(@error + 20, 0, 0) - - DllStructSetData($tTP1, 1, UBound($aPrivileges)) - For $i = 0 To UBound($aPrivileges) - 1 - DllStructSetData($tTP1, 2, $aPrivileges[$i][1], 3 * $i + 3) - $aRet = DllCall('advapi32.dll', 'bool', 'LookupPrivilegeValueW', 'ptr', 0, 'wstr', $aPrivileges[$i][0], _ - 'ptr', DllStructGetPtr($tTP1, 2) + 12 * $i) - If @error Or Not $aRet[0] Then Return SetError(@error + 100, @extended, 0) - Next - EndIf - $aRet = DllCall('advapi32.dll', 'bool', 'AdjustTokenPrivileges', 'handle', $hToken, 'bool', $bDisable, _ - 'struct*', $tTP1, 'dword', DllStructGetSize($tTP2), 'struct*', $tTP2, 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 200, @extended, 0) - - Local $iResult - Switch _WinAPI_GetLastError() - Case 1300 ; ERROR_NOT_ALL_ASSIGNED - $iResult = 1 - Case Else - $iResult = 0 - EndSwitch - $iCount = DllStructGetData($tTP2, 1) - If $iCount Then - Local $tData = DllStructCreate('wchar[128]') - Dim $aPrivileges[$iCount][2] - For $i = 0 To $iCount - 1 - $aRet = DllCall('advapi32.dll', 'bool', 'LookupPrivilegeNameW', 'ptr', 0, _ - 'ptr', DllStructGetPtr($tTP2, 2) + 12 * $i, 'struct*', $tData, 'dword*', 128) - If @error Or Not $aRet[0] Then Return SetError(@error + 300, @extended, 0) - - $aPrivileges[$i][1] = DllStructGetData($tTP2, 2, 3 * $i + 3) - $aPrivileges[$i][0] = DllStructGetData($tData, 1) - Next - $aAdjust = $aPrivileges - EndIf - - Return SetExtended($iResult, 1) -EndFunc ;==>_WinAPI_AdjustTokenPrivileges - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AssignProcessToJobObject($hJob, $hProcess) - Local $aRet = DllCall('kernel32.dll', 'bool', 'AssignProcessToJobObject', 'handle', $hJob, 'handle', $hProcess) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_AssignProcessToJobObject - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateJobObject($sName = '', $tSecurity = 0) - Local $sTypeOfName = 'wstr' - If Not StringStripWS($sName, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfName = 'ptr' - $sName = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'handle', 'CreateJobObjectW', 'struct*', $tSecurity, $sTypeOfName, $sName) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateJobObject - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateMutex($sMutex, $bInitial = True, $tSecurity = 0) - Local $aRet = DllCall('kernel32.dll', 'handle', 'CreateMutexW', 'struct*', $tSecurity, 'bool', $bInitial, 'wstr', $sMutex) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateMutex - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateProcessWithToken($sApp, $sCmd, $iFlags, $tStartupInfo, $tProcessInfo, $hToken, $iLogon = 0, $pEnvironment = 0, $sDir = '') - Local $sTypeOfApp = 'wstr', $sTypeOfCmd = 'wstr', $sTypeOfDir = 'wstr' - If Not StringStripWS($sApp, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfApp = 'ptr' - $sApp = 0 - EndIf - If Not StringStripWS($sCmd, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfCmd = 'ptr' - $sCmd = 0 - EndIf - If Not StringStripWS($sDir, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfDir = 'ptr' - $sDir = 0 - EndIf - - Local $aRet = DllCall('advapi32.dll', 'bool', 'CreateProcessWithTokenW', 'handle', $hToken, 'dword', $iLogon, _ - $sTypeOfApp, $sApp, $sTypeOfCmd, $sCmd, 'dword', $iFlags, 'struct*', $pEnvironment, _ - $sTypeOfDir, $sDir, 'struct*', $tStartupInfo, 'struct*', $tProcessInfo) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateProcessWithToken - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateSemaphore($sSemaphore, $iInitial, $iMaximum, $tSecurity = 0) - Local $aRet = DllCall('kernel32.dll', 'handle', 'CreateSemaphoreW', 'struct*', $tSecurity, 'long', $iInitial, _ - 'long', $iMaximum, 'wstr', $sSemaphore) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateSemaphore - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DuplicateTokenEx($hToken, $iAccess, $iLevel, $iType = 1, $tSecurity = 0) - Local $aRet = DllCall('advapi32.dll', 'bool', 'DuplicateTokenEx', 'handle', $hToken, 'dword', $iAccess, _ - 'struct*', $tSecurity, 'int', $iLevel, 'int', $iType, 'handle*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[6] -EndFunc ;==>_WinAPI_DuplicateTokenEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EmptyWorkingSet($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000500, 0x00001100), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, 0) - - Local $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'EmptyWorkingSet', 'handle', $hProcess[0]) - If __CheckErrorCloseHandle($aRet, $hProcess[0]) Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_EmptyWorkingSet - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumChildProcess($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hSnapshot = DllCall('kernel32.dll', 'handle', 'CreateToolhelp32Snapshot', 'dword', 0x00000002, 'dword', 0) - If @error Or ($hSnapshot[0] = Ptr(-1)) Then Return SetError(@error + 10, @extended, 0) ; $INVALID_HANDLE_VALUE - - Local $tPROCESSENTRY32 = DllStructCreate($tagPROCESSENTRY32) - Local $aResult[101][2] = [[0]] - - $hSnapshot = $hSnapshot[0] - DllStructSetData($tPROCESSENTRY32, 'Size', DllStructGetSize($tPROCESSENTRY32)) - Local $aRet = DllCall('kernel32.dll', 'bool', 'Process32FirstW', 'handle', $hSnapshot, 'struct*', $tPROCESSENTRY32) - Local $iError = @error - While (Not @error) And ($aRet[0]) - If DllStructGetData($tPROCESSENTRY32, 'ParentProcessID') = $iPID Then - __Inc($aResult) - $aResult[$aResult[0][0]][0] = DllStructGetData($tPROCESSENTRY32, 'ProcessID') - $aResult[$aResult[0][0]][1] = DllStructGetData($tPROCESSENTRY32, 'ExeFile') - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'Process32NextW', 'handle', $hSnapshot, 'struct*', $tPROCESSENTRY32) - $iError = @error - WEnd - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hSnapshot) - If Not $aResult[0][0] Then Return SetError($iError + 20, 0, 0) - - __Inc($aResult, -1) - Return $aResult -EndFunc ;==>_WinAPI_EnumChildProcess - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumDeviceDrivers() - Local $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'EnumDeviceDrivers', 'ptr', 0, 'dword', 0, 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $iSize - If @AutoItX64 Then - $iSize = $aRet[3] / 8 - Else - $iSize = $aRet[3] / 4 - EndIf - Local $tData = DllStructCreate('ptr[' & $iSize & ']') - $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'EnumDeviceDrivers', 'struct*', $tData, _ - 'dword', DllStructGetSize($tData), 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 20, @extended, 0) - - Local $aResult[$iSize + 1] = [$iSize] - For $i = 1 To $iSize - $aResult[$i] = DllStructGetData($tData, 1, $i) - Next - Return $aResult -EndFunc ;==>_WinAPI_EnumDeviceDrivers - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumProcessHandles($iPID = 0, $iType = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $aResult[101][4] = [[0]] - - Local $tSHI = DllStructCreate('ulong;byte[4194304]') - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQuerySystemInformation', 'uint', 16, 'struct*', $tSHI, _ - 'ulong', DllStructGetSize($tSHI), 'ulong*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $pData = DllStructGetPtr($tSHI, 2) - Local $tHandle - For $i = 1 To DllStructGetData($tSHI, 1) - $tHandle = DllStructCreate('align 4;ulong;byte;byte;ushort;ptr;ulong', $pData + __Iif(@AutoItX64, 4 + ($i - 1) * 24, ($i - 1) * 16)) - If (DllStructGetData($tHandle, 1) = $iPID) And ((Not $iType) Or ($iType = DllStructGetData($tHandle, 2))) Then - __Inc($aResult) - $aResult[$aResult[0][0]][0] = Ptr(DllStructGetData($tHandle, 4)) - $aResult[$aResult[0][0]][1] = DllStructGetData($tHandle, 2) - $aResult[$aResult[0][0]][2] = DllStructGetData($tHandle, 3) - $aResult[$aResult[0][0]][3] = DllStructGetData($tHandle, 6) - EndIf - Next - If Not $aResult[0][0] Then Return SetError(11, 0, 0) - - __Inc($aResult, -1) - Return $aResult -EndFunc ;==>_WinAPI_EnumProcessHandles - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumProcessModules($iPID = 0, $iFlag = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000410, 0x00001010), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, 0) - - Local $iCount, $aRet, $iError = 0 - Do - If $__WINVER >= 0x0600 Then - $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'EnumProcessModulesEx', 'handle', $hProcess[0], 'ptr', 0, _ - 'dword', 0, 'dword*', 0, 'dword', $iFlag) - Else - $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'EnumProcessModules', 'handle', $hProcess[0], 'ptr', 0, _ - 'dword', 0, 'dword*', 0) - EndIf - If @error Or Not $aRet[0] Then - $iError = @error + 10 - ExitLoop - EndIf - If @AutoItX64 Then - $iCount = $aRet[4] / 8 - Else - $iCount = $aRet[4] / 4 - EndIf - Local $tPtr = DllStructCreate('ptr[' & $iCount & ']') - If @error Then - $iError = @error + 30 - ExitLoop - EndIf - If $__WINVER >= 0x0600 Then - $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'EnumProcessModulesEx', 'handle', $hProcess[0], 'struct*', $tPtr, _ - 'dword', DllStructGetSize($tPtr), 'dword*', 0, 'dword', $iFlag) - Else - $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'EnumProcessModules', 'handle', $hProcess[0], 'struct*', $tPtr, _ - 'dword', DllStructGetSize($tPtr), 'dword*', 0) - EndIf - If @error Or Not $aRet[0] Then - $iError = @error + 40 - ExitLoop - EndIf - Local $aResult[$iCount + 1][2] = [[$iCount]] - For $i = 1 To $iCount - $aResult[$i][0] = DllStructGetData($tPtr, 1, $i) - $aResult[$i][1] = _WinAPI_GetModuleFileNameEx($hProcess[0], $aResult[$i][0]) - Next - Until 1 - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hProcess[0]) - If $iError Then Return SetError($iError, 0, 0) - - Return $aResult -EndFunc ;==>_WinAPI_EnumProcessModules - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumProcessThreads($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hSnapshot = DllCall('kernel32.dll', 'handle', 'CreateToolhelp32Snapshot', 'dword', 0x00000004, 'dword', 0) - If @error Or Not $hSnapshot[0] Then Return SetError(@error + 10, @extended, 0) - - Local Const $tagTHREADENTRY32 = 'dword Size;dword Usage;dword ThreadID;dword OwnerProcessID;long BasePri;long DeltaPri;dword Flags' - Local $tTHREADENTRY32 = DllStructCreate($tagTHREADENTRY32) - Local $aResult[101] = [0] - - $hSnapshot = $hSnapshot[0] - DllStructSetData($tTHREADENTRY32, 'Size', DllStructGetSize($tTHREADENTRY32)) - Local $aRet = DllCall('kernel32.dll', 'bool', 'Thread32First', 'handle', $hSnapshot, 'struct*', $tTHREADENTRY32) - While Not @error And $aRet[0] - If DllStructGetData($tTHREADENTRY32, 'OwnerProcessID') = $iPID Then - __Inc($aResult) - $aResult[$aResult[0]] = DllStructGetData($tTHREADENTRY32, 'ThreadID') - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'Thread32Next', 'handle', $hSnapshot, 'struct*', $tTHREADENTRY32) - WEnd - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hSnapshot) - If Not $aResult[0] Then Return SetError(1, 0, 0) - - __Inc($aResult, -1) - Return $aResult -EndFunc ;==>_WinAPI_EnumProcessThreads - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumProcessWindows($iPID = 0, $bVisible = True) - Local $aThreads = _WinAPI_EnumProcessThreads($iPID) - If @error Then Return SetError(@error, @extended, 0) - - Local $hEnumProc = DllCallbackRegister('__EnumWindowsProc', 'bool', 'hwnd;lparam') - - Dim $__g_vEnum[101][2] = [[0]] - For $i = 1 To $aThreads[0] - DllCall('user32.dll', 'bool', 'EnumThreadWindows', 'dword', $aThreads[$i], 'ptr', DllCallbackGetPtr($hEnumProc), _ - 'lparam', $bVisible) - If @error Then - ExitLoop - EndIf - Next - DllCallbackFree($hEnumProc) - If Not $__g_vEnum[0][0] Then Return SetError(11, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumProcessWindows - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetCurrentProcessExplicitAppUserModelID() - Local $aRet = DllCall('shell32.dll', 'long', 'GetCurrentProcessExplicitAppUserModelID', 'ptr*', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Local $sID = _WinAPI_GetString($aRet[1]) - _WinAPI_CoTaskMemFree($aRet[1]) - Return $sID -EndFunc ;==>_WinAPI_GetCurrentProcessExplicitAppUserModelID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetDeviceDriverBaseName($pDriver) - Local $aRet = DllCall(@SystemDir & '\psapi.dll', 'dword', 'GetDeviceDriverBaseNameW', 'ptr', $pDriver, 'wstr', '', _ - 'dword', 4096) - If @error Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetDeviceDriverBaseName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetDeviceDriverFileName($pDriver) - Local $aRet = DllCall(@SystemDir & '\psapi.dll', 'dword', 'GetDeviceDriverFileNameW', 'ptr', $pDriver, 'wstr', '', _ - 'dword', 4096) - If @error Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetDeviceDriverFileName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetExitCodeProcess($hProcess) - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetExitCodeProcess', 'handle', $hProcess, 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetExitCodeProcess - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetModuleFileNameEx($hProcess, $hModule = 0) - Local $aRet = DllCall(@SystemDir & '\psapi.dll', 'dword', 'GetModuleFileNameExW', 'handle', $hProcess, 'handle', $hModule, _ - 'wstr', '', 'int', 4096) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetModuleFileNameEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetModuleInformation($hProcess, $hModule = 0) - Local $tMODULEINFO = DllStructCreate($tagMODULEINFO) - Local $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'GetModuleInformation', 'handle', $hProcess, 'handle', $hModule, _ - 'struct*', $tMODULEINFO, 'dword', DllStructGetSize($tMODULEINFO)) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tMODULEINFO -EndFunc ;==>_WinAPI_GetModuleInformation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetParentProcess($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hSnapshot = DllCall('kernel32.dll', 'handle', 'CreateToolhelp32Snapshot', 'dword', 0x00000002, 'dword', 0) - If @error Or Not $hSnapshot[0] Then Return SetError(@error + 10, @extended, 0) - - Local $tPROCESSENTRY32 = DllStructCreate($tagPROCESSENTRY32) - Local $iResult = 0 - - $hSnapshot = $hSnapshot[0] - DllStructSetData($tPROCESSENTRY32, 'Size', DllStructGetSize($tPROCESSENTRY32)) - Local $aRet = DllCall('kernel32.dll', 'bool', 'Process32FirstW', 'handle', $hSnapshot, 'struct*', $tPROCESSENTRY32) - Local $iError = @error - While (Not @error) And ($aRet[0]) - If DllStructGetData($tPROCESSENTRY32, 'ProcessID') = $iPID Then - $iResult = DllStructGetData($tPROCESSENTRY32, 'ParentProcessID') - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'Process32NextW', 'handle', $hSnapshot, 'struct*', $tPROCESSENTRY32) - $iError = @error - WEnd - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hSnapshot) - If Not $iResult Then Return SetError($iError, 0, 0) - - Return $iResult -EndFunc ;==>_WinAPI_GetParentProcess - -; #FUNCTION# ==================================================================================================================== -; Author.........: KaFu -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_GetPriorityClass($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000400, 0x00001000), 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, 0) - ; If Not $hProcess[0] Then Return SetError(1000, 0, 0) - - Local $iError = 0 - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetPriorityClass', 'handle', $hProcess[0]) - If @error Then $iError = @error - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hProcess[0]) - If $iError Then Return SetError($iError, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetPriorityClass - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessCommandLine($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000410, 0x00001010), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, '') - - $hProcess = $hProcess[0] - - Local $tPBI = DllStructCreate('ulong_ptr ExitStatus;ptr PebBaseAddress;ulong_ptr AffinityMask;ulong_ptr BasePriority;ulong_ptr UniqueProcessId;ulong_ptr InheritedFromUniqueProcessId') - Local $tPEB = DllStructCreate('byte InheritedAddressSpace;byte ReadImageFileExecOptions;byte BeingDebugged;byte Spare;ptr Mutant;ptr ImageBaseAddress;ptr LoaderData;ptr ProcessParameters;ptr SubSystemData;ptr ProcessHeap;ptr FastPebLock;ptr FastPebLockRoutine;ptr FastPebUnlockRoutine;ulong EnvironmentUpdateCount;ptr KernelCallbackTable;ptr EventLogSection;ptr EventLog;ptr FreeList;ulong TlsExpansionCounter;ptr TlsBitmap;ulong TlsBitmapBits[2];ptr ReadOnlySharedMemoryBase;ptr ReadOnlySharedMemoryHeap;ptr ReadOnlyStaticServerData;ptr AnsiCodePageData;ptr OemCodePageData;ptr UnicodeCaseTableData;ulong NumberOfProcessors;ulong NtGlobalFlag;byte Spare2[4];int64 CriticalSectionTimeout;ulong HeapSegmentReserve;ulong HeapSegmentCommit;ulong HeapDeCommitTotalFreeThreshold;ulong HeapDeCommitFreeBlockThreshold;ulong NumberOfHeaps;ulong MaximumNumberOfHeaps;ptr ProcessHeaps;ptr GdiSharedHandleTable;ptr ProcessStarterHelper;ptr GdiDCAttributeList;ptr LoaderLock;ulong OSMajorVersion;ulong OSMinorVersion;ulong OSBuildNumber;ulong OSPlatformId;ulong ImageSubSystem;ulong ImageSubSystemMajorVersion;ulong ImageSubSystemMinorVersion;ulong GdiHandleBuffer[34];ulong PostProcessInitRoutine;ulong TlsExpansionBitmap;byte TlsExpansionBitmapBits[128];ulong SessionId') - Local $tUPP = DllStructCreate('ulong AllocationSize;ulong ActualSize;ulong Flags;ulong Unknown1;ushort LengthUnknown2;ushort MaxLengthUnknown2;ptr Unknown2;ptr InputHandle;ptr OutputHandle;ptr ErrorHandle;ushort LengthCurrentDirectory;ushort MaxLengthCurrentDirectory;ptr CurrentDirectory;ptr CurrentDirectoryHandle;ushort LengthSearchPaths;ushort MaxLengthSearchPaths;ptr SearchPaths;ushort LengthApplicationName;ushort MaxLengthApplicationName;ptr ApplicationName;ushort LengthCommandLine;ushort MaxLengthCommandLine;ptr CommandLine;ptr EnvironmentBlock;ulong Unknown[9];ushort LengthUnknown3;ushort MaxLengthUnknown3;ptr Unknown3;ushort LengthUnknown4;ushort MaxLengthUnknown4;ptr Unknown4;ushort LengthUnknown5;ushort MaxLengthUnknown5;ptr Unknown5') - Local $tCMD - - Local $aRet, $iError = 0 - Do - $aRet = DllCall('ntdll.dll', 'long', 'NtQueryInformationProcess', 'handle', $hProcess, 'ulong', 0, 'struct*', $tPBI, _ - 'ulong', DllStructGetSize($tPBI), 'ulong*', 0) - If @error Or $aRet[0] Then - $iError = @error + 30 - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'ReadProcessMemory', 'handle', $hProcess, _ - 'ptr', DllStructGetData($tPBI, 'PebBaseAddress'), 'struct*', $tPEB, _ - 'ulong_ptr', DllStructGetSize($tPEB), 'ulong_ptr*', 0) - If @error Or Not $aRet[0] Or (Not $aRet[5]) Then - $iError = @error + 40 - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'ReadProcessMemory', 'handle', $hProcess, _ - 'ptr', DllStructGetData($tPEB, 'ProcessParameters'), 'struct*', $tUPP, _ - 'ulong_ptr', DllStructGetSize($tUPP), 'ulong_ptr*', 0) - If @error Or Not $aRet[0] Or (Not $aRet[5]) Then - $iError = @error + 50 - ExitLoop - EndIf - $tCMD = DllStructCreate('byte[' & DllStructGetData($tUPP, 'MaxLengthCommandLine') & ']') - If @error Then - $iError = @error + 60 - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'ReadProcessMemory', 'handle', $hProcess, _ - 'ptr', DllStructGetData($tUPP, 'CommandLine'), 'struct*', $tCMD, _ - 'ulong_ptr', DllStructGetSize($tCMD), 'ulong_ptr*', 0) - If @error Or Not $aRet[0] Or (Not $aRet[5]) Then - $iError = @error + 70 - ExitLoop - EndIf - Until 1 - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hProcess) - If $iError Then Return SetError($iError, 0, '') - - Return StringStripWS(_WinAPI_PathGetArgs(_WinAPI_GetString(DllStructGetPtr($tCMD, 1))), $STR_STRIPLEADING + $STR_STRIPTRAILING) -EndFunc ;==>_WinAPI_GetProcessCommandLine - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessFileName($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000410, 0x00001010), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, '') - - Local $sPath = _WinAPI_GetModuleFileNameEx($hProcess[0]) - Local $iError = @error - - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hProcess[0]) - If $iError Then Return SetError(@error, 0, '') - - Return $sPath -EndFunc ;==>_WinAPI_GetProcessFileName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessHandleCount($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000400, 0x00001000), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, 0) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetProcessHandleCount', 'handle', $hProcess[0], 'dword*', 0) - If __CheckErrorCloseHandle($aRet, $hProcess[0]) Then Return SetError(@error, @extended, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetProcessHandleCount - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessID($hProcess) - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetProcessId', 'handle', $hProcess) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetProcessID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessIoCounters($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000400, 0x00001000), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, 0) - - Local $tIO_COUNTERS = DllStructCreate('uint64[6]') - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetProcessIoCounters', 'handle', $hProcess[0], 'struct*', $tIO_COUNTERS) - If __CheckErrorCloseHandle($aRet, $hProcess[0]) Then Return SetError(@error, @extended, 0) - - Local $aResult[6] - For $i = 0 To 5 - $aResult[$i] = DllStructGetData($tIO_COUNTERS, 1, $i + 1) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetProcessIoCounters - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessMemoryInfo($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000410, 0x00001010), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, 0) - - Local $tPMC_EX = DllStructCreate('dword;dword;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr') - Local $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'GetProcessMemoryInfo', 'handle', $hProcess[0], 'struct*', $tPMC_EX, _ - 'int', DllStructGetSize($tPMC_EX)) - If __CheckErrorCloseHandle($aRet, $hProcess[0]) Then Return SetError(@error, @extended, 0) - - Local $aResult[10] - For $i = 0 To 9 - $aResult[$i] = DllStructGetData($tPMC_EX, $i + 2) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetProcessMemoryInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessName($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hSnapshot = DllCall('kernel32.dll', 'handle', 'CreateToolhelp32Snapshot', 'dword', 0x00000002, 'dword', 0) - If @error Or Not $hSnapshot[0] Then Return SetError(@error + 20, @extended, '') - - $hSnapshot = $hSnapshot[0] - Local $tPROCESSENTRY32 = DllStructCreate($tagPROCESSENTRY32) - DllStructSetData($tPROCESSENTRY32, 'Size', DllStructGetSize($tPROCESSENTRY32)) - Local $aRet = DllCall('kernel32.dll', 'bool', 'Process32FirstW', 'handle', $hSnapshot, 'struct*', $tPROCESSENTRY32) - Local $iError = @error - While (Not @error) And ($aRet[0]) - If DllStructGetData($tPROCESSENTRY32, 'ProcessID') = $iPID Then - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'Process32NextW', 'handle', $hSnapshot, 'struct*', $tPROCESSENTRY32) - $iError = @error - WEnd - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hSnapshot) - If $iError Then Return SetError($iError, 0, '') - If Not $aRet[0] Then SetError(10, 0, '') - - Return DllStructGetData($tPROCESSENTRY32, 'ExeFile') -EndFunc ;==>_WinAPI_GetProcessName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessTimes($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000400, 0x00001000), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, 0) - - Local $tFILETIME = DllStructCreate($tagFILETIME) - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetProcessTimes', 'handle', $hProcess[0], 'struct*', $tFILETIME, 'uint64*', 0, _ - 'uint64*', 0, 'uint64*', 0) - If __CheckErrorCloseHandle($aRet, $hProcess[0]) Then Return SetError(@error, @extended, 0) - - Local $aResult[3] - $aResult[0] = $tFILETIME - $aResult[1] = $aRet[4] - $aResult[2] = $aRet[5] - Return $aResult -EndFunc ;==>_WinAPI_GetProcessTimes - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessUser($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $tSID, $hToken, $aRet - Local $iError = 0 - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000400, 0x00001000), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, 0) - - Do - $hToken = _WinAPI_OpenProcessToken(0x00000008, $hProcess[0]) - If Not $hToken Then - $iError = @error + 10 - ExitLoop - EndIf - $tSID = DllStructCreate('ptr;byte[1024]') - $aRet = DllCall('advapi32.dll', 'bool', 'GetTokenInformation', 'handle', $hToken, 'uint', 1, 'struct*', $tSID, _ - 'dword', DllStructGetSize($tSID), 'dword*', 0) - If @error Or Not $aRet[0] Then - $iError = @error + 30 - ExitLoop - EndIf - $aRet = DllCall('advapi32.dll', 'bool', 'LookupAccountSidW', 'ptr', 0, 'ptr', DllStructGetData($tSID, 1), 'wstr', '', _ - 'dword*', 2048, 'wstr', '', 'dword*', 2048, 'uint*', 0) - If @error Or Not $aRet[0] Then - $iError = @error + 40 - ExitLoop - EndIf - Until 1 - If $hToken Then - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hToken) - EndIf - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hProcess[0]) - If $iError Then Return SetError($iError, 0, 0) - - Local $aResult[2] - $aResult[0] = $aRet[3] - $aResult[1] = $aRet[5] - Return $aResult -EndFunc ;==>_WinAPI_GetProcessUser - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessWorkingDirectory($iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $aRet, $iError = 0 - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000410, 0x00001010), 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 20, @extended, '') - - $hProcess = $hProcess[0] - - Local $tPBI = DllStructCreate('ulong_ptr ExitStatus;ptr PebBaseAddress;ulong_ptr AffinityMask;ulong_ptr BasePriority;ulong_ptr UniqueProcessId;ulong_ptr InheritedFromUniqueProcessId') - Local $tPEB = DllStructCreate('byte InheritedAddressSpace;byte ReadImageFileExecOptions;byte BeingDebugged;byte Spare;ptr Mutant;ptr ImageBaseAddress;ptr LoaderData;ptr ProcessParameters;ptr SubSystemData;ptr ProcessHeap;ptr FastPebLock;ptr FastPebLockRoutine;ptr FastPebUnlockRoutine;ulong EnvironmentUpdateCount;ptr KernelCallbackTable;ptr EventLogSection;ptr EventLog;ptr FreeList;ulong TlsExpansionCounter;ptr TlsBitmap;ulong TlsBitmapBits[2];ptr ReadOnlySharedMemoryBase;ptr ReadOnlySharedMemoryHeap;ptr ReadOnlyStaticServerData;ptr AnsiCodePageData;ptr OemCodePageData;ptr UnicodeCaseTableData;ulong NumberOfProcessors;ulong NtGlobalFlag;byte Spare2[4];int64 CriticalSectionTimeout;ulong HeapSegmentReserve;ulong HeapSegmentCommit;ulong HeapDeCommitTotalFreeThreshold;ulong HeapDeCommitFreeBlockThreshold;ulong NumberOfHeaps;ulong MaximumNumberOfHeaps;ptr ProcessHeaps;ptr GdiSharedHandleTable;ptr ProcessStarterHelper;ptr GdiDCAttributeList;ptr LoaderLock;ulong OSMajorVersion;ulong OSMinorVersion;ulong OSBuildNumber;ulong OSPlatformId;ulong ImageSubSystem;ulong ImageSubSystemMajorVersion;ulong ImageSubSystemMinorVersion;ulong GdiHandleBuffer[34];ulong PostProcessInitRoutine;ulong TlsExpansionBitmap;byte TlsExpansionBitmapBits[128];ulong SessionId') - Local $tUPP = DllStructCreate('ulong AllocationSize;ulong ActualSize;ulong Flags;ulong Unknown1;ushort LengthUnknown2;ushort MaxLengthUnknown2;ptr Unknown2;ptr InputHandle;ptr OutputHandle;ptr ErrorHandle;ushort LengthCurrentDirectory;ushort MaxLengthCurrentDirectory;ptr CurrentDirectory;ptr CurrentDirectoryHandle;ushort LengthSearchPaths;ushort MaxLengthSearchPaths;ptr SearchPaths;ushort LengthApplicationName;ushort MaxLengthApplicationName;ptr ApplicationName;ushort LengthCommandLine;ushort MaxLengthCommandLine;ptr CommandLine;ptr EnvironmentBlock;ulong Unknown[9];ushort LengthUnknown3;ushort MaxLengthUnknown3;ptr Unknown3;ushort LengthUnknown4;ushort MaxLengthUnknown4;ptr Unknown4;ushort LengthUnknown5;ushort MaxLengthUnknown5;ptr Unknown5') - Local $tDIR - - Do - $aRet = DllCall('ntdll.dll', 'long', 'NtQueryInformationProcess', 'handle', $hProcess, 'ulong', 0, 'struct*', $tPBI, _ - 'ulong', DllStructGetSize($tPBI), 'ulong*', 0) - If @error Or ($aRet[0]) Then - $iError = @error + 10 - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'ReadProcessMemory', 'handle', $hProcess, _ - 'ptr', DllStructGetData($tPBI, 'PebBaseAddress'), 'struct*', $tPEB, _ - 'ulong_ptr', DllStructGetSize($tPEB), 'ulong_ptr*', 0) - If @error Or (Not $aRet[0]) Or (Not $aRet[5]) Then - $iError = @error + 30 - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'ReadProcessMemory', 'handle', $hProcess, _ - 'ptr', DllStructGetData($tPEB, 'ProcessParameters'), 'struct*', $tUPP, _ - 'ulong_ptr', DllStructGetSize($tUPP), 'ulong_ptr*', 0) - If @error Or (Not $aRet[0]) Or (Not $aRet[5]) Then - $iError = @error + 40 - ExitLoop - EndIf - $tDIR = DllStructCreate('byte[' & DllStructGetData($tUPP, 'MaxLengthCurrentDirectory') & ']') - If @error Then - $iError = @error + 50 - ExitLoop - EndIf - $aRet = DllCall('kernel32.dll', 'bool', 'ReadProcessMemory', 'handle', $hProcess, _ - 'ptr', DllStructGetData($tUPP, 'CurrentDirectory'), 'struct*', $tDIR, _ - 'ulong_ptr', DllStructGetSize($tDIR), 'ulong_ptr*', 0) - If @error Or (Not $aRet[0]) Or (Not $aRet[5]) Then - $iError = @error + 60 - ExitLoop - EndIf - $iError = 0 - Until 1 - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hProcess) - If $iError Then Return SetError($iError, 0, '') - - Return _WinAPI_PathRemoveBackslash(_WinAPI_GetString(DllStructGetPtr($tDIR))) -EndFunc ;==>_WinAPI_GetProcessWorkingDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetThreadDesktop($iThreadId) - Local $aRet = DllCall('user32.dll', 'handle', 'GetThreadDesktop', 'dword', $iThreadId) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetThreadDesktop - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThreadErrorMode() - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetThreadErrorMode') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetThreadErrorMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetWindowFileName($hWnd) - Local $iPID = 0 - - Local $aResult = DllCall("user32.dll", "bool", "IsWindow", "hwnd", $hWnd) - If $aResult[0] Then - $aResult = DllCall("user32.dll", "dword", "GetWindowThreadProcessId", "hwnd", $hWnd, "dword*", 0) - $iPID = $aResult[2] - EndIf - If Not $iPID Then Return SetError(1, 0, '') - - Local $sResult = _WinAPI_GetProcessFileName($iPID) - If @error Then Return SetError(@error, @extended, '') - - Return $sResult -EndFunc ;==>_WinAPI_GetWindowFileName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsElevated() - Local $iElev, $aRet, $iError = 0 - - Local $hToken = _WinAPI_OpenProcessToken(0x0008) - If Not $hToken Then Return SetError(@error + 10, @extended, False) - - Do - $aRet = DllCall('advapi32.dll', 'bool', 'GetTokenInformation', 'handle', $hToken, 'uint', 20, 'uint*', 0, 'dword', 4, _ - 'dword*', 0) ; TOKEN_ELEVATION - If @error Or Not $aRet[0] Then - $iError = @error + 10 - ExitLoop - EndIf - $iElev = $aRet[3] - $aRet = DllCall('advapi32.dll', 'bool', 'GetTokenInformation', 'handle', $hToken, 'uint', 18, 'uint*', 0, 'dword', 4, _ - 'dword*', 0) ; TOKEN_ELEVATION_TYPE - If @error Or Not $aRet[0] Then - $iError = @error + 20 - ExitLoop - EndIf - Until 1 - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hToken) - If $iError Then Return SetError($iError, 0, False) - - Return SetExtended($aRet[0] - 1, $iElev) -EndFunc ;==>_WinAPI_IsElevated - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_IsProcessInJob($hProcess, $hJob = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'IsProcessInJob', 'handle', $hProcess, 'handle', $hJob, 'bool*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_IsProcessInJob - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenJobObject($sName, $iAccess = $JOB_OBJECT_ALL_ACCESS, $bInherit = False) - Local $aRet = DllCall('kernel32.dll', 'handle', 'OpenJobObjectW', 'dword', $iAccess, 'bool', $bInherit, 'wstr', $sName) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenJobObject - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenMutex($sMutex, $iAccess = $MUTEX_ALL_ACCESS, $bInherit = False) - Local $aRet = DllCall('kernel32.dll', 'handle', 'OpenMutexW', 'dword', $iAccess, 'bool', $bInherit, 'wstr', $sMutex) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenMutex - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenProcessToken($iAccess, $hProcess = 0) - If Not $hProcess Then - $hProcess = DllCall("kernel32.dll", "handle", "GetCurrentProcess") - $hProcess = $hProcess[0] - EndIf - - Local $aRet = DllCall('advapi32.dll', 'bool', 'OpenProcessToken', 'handle', $hProcess, 'dword', $iAccess, 'handle*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_OpenProcessToken - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenSemaphore($sSemaphore, $iAccess = 0x001F0003, $bInherit = False) - Local $aRet = DllCall('kernel32.dll', 'handle', 'OpenSemaphoreW', 'dword', $iAccess, 'bool', $bInherit, 'wstr', $sSemaphore) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenSemaphore - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_QueryInformationJobObject($hJob, $iJobObjectInfoClass, ByRef $tJobObjectInfo) - Local $aRet = DllCall('kernel32.dll', 'bool', 'QueryInformationJobObject', 'handle', $hJob, 'int', $iJobObjectInfoClass, _ - 'struct*', $tJobObjectInfo, 'dword', DllStructGetSize($tJobObjectInfo), 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_QueryInformationJobObject - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ReleaseMutex($hMutex) - Local $aRet = DllCall('kernel32.dll', 'bool', 'ReleaseMutex', 'handle', $hMutex) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ReleaseMutex - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ReleaseSemaphore($hSemaphore, $iIncrease = 1) - Local $aRet = DllCall('kernel32.dll', 'bool', 'ReleaseSemaphore', 'handle', $hSemaphore, 'long', $iIncrease, 'long*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_ReleaseSemaphore - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ResetEvent($hEvent) - Local $aRet = DllCall('kernel32.dll', 'bool', 'ResetEvent', 'handle', $hEvent) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ResetEvent - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetInformationJobObject($hJob, $iJobObjectInfoClass, $tJobObjectInfo) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetInformationJobObject', 'handle', $hJob, 'int', $iJobObjectInfoClass, _ - 'struct*', $tJobObjectInfo, 'dword', DllStructGetSize($tJobObjectInfo)) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetInformationJobObject - -; #FUNCTION# ==================================================================================================================== -; Author.........: KaFu -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_SetPriorityClass($iPriority, $iPID = 0) - If Not $iPID Then $iPID = @AutoItPID - - Local $hProcess = DllCall('kernel32.dll', 'handle', 'OpenProcess', 'dword', __Iif($__WINVER < 0x0600, 0x00000600, 0x00001200), _ - 'bool', 0, 'dword', $iPID) - If @error Or Not $hProcess[0] Then Return SetError(@error + 10, @extended, 0) - ; If Not $hProcess[0] Then Return SetError(1000, 0, 0) - - Local $iError = 0 - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetPriorityClass', 'handle', $hProcess[0], 'dword', $iPriority) - If @error Then $iError = @error - DllCall("kernel32.dll", "bool", "CloseHandle", "handle", $hProcess[0]) - If $iError Then Return SetError($iError, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetPriorityClass - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetThreadDesktop($hDesktop) - Local $aRet = DllCall('user32.dll', 'bool', 'SetThreadDesktop', 'handle', $hDesktop) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetThreadDesktop - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetThreadErrorMode($iMode) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetThreadErrorMode', 'dword', $iMode, 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_SetThreadErrorMode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetThreadExecutionState($iFlags) - Local $aRet = DllCall('kernel32.dll', 'dword', 'SetThreadExecutionState', 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetThreadExecutionState - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_TerminateJobObject($hJob, $iExitCode = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'TerminateJobObject', 'handle', $hJob, 'uint', $iExitCode) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_TerminateJobObject - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_TerminateProcess($hProcess, $iExitCode = 0) - Local $aRet = DllCall('kernel32.dll', 'bool', 'TerminateProcess', 'handle', $hProcess, 'uint', $iExitCode) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_TerminateProcess - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UserHandleGrantAccess($hObject, $hJob, $bGrant) - Local $aRet = DllCall('kernel32.dll', 'bool', 'UserHandleGrantAccess', 'handle', $hObject, 'handle', $hJob, 'bool', $bGrant) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UserHandleGrantAccess - -#EndRegion Public Functions diff --git a/build/Include/WinAPIReg.au3 b/build/Include/WinAPIReg.au3 deleted file mode 100644 index b98a1adf9..000000000 --- a/build/Include/WinAPIReg.au3 +++ /dev/null @@ -1,657 +0,0 @@ -#include-once - -#include "APIRegConstants.au3" -#include "StringConstants.au3" -#include "StructureConstants.au3" -#include "WinAPICom.au3" -#include "WinAPIInternals.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIReg.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_AddMRUString -; _WinAPI_AssocGetPerceivedType -; _WinAPI_AssocQueryString -; _WinAPI_CreateMRUList -; _WinAPI_DllInstall -; _WinAPI_DllUninstall -; _WinAPI_EnumMRUList -; _WinAPI_FreeMRUList -; _WinAPI_GetRegKeyNameByHandle -; _WinAPI_RegCloseKey -; _WinAPI_RegConnectRegistry -; _WinAPI_RegCopyTree -; _WinAPI_RegCopyTreeEx -; _WinAPI_RegCreateKey -; _WinAPI_RegDeleteEmptyKey -; _WinAPI_RegDeleteKey -; _WinAPI_RegDeleteKeyValue -; _WinAPI_RegDeleteTree -; _WinAPI_RegDeleteTreeEx -; _WinAPI_RegDeleteValue -; _WinAPI_RegDisableReflectionKey -; _WinAPI_RegDuplicateHKey -; _WinAPI_RegEnableReflectionKey -; _WinAPI_RegEnumKey -; _WinAPI_RegEnumValue -; _WinAPI_RegFlushKey -; _WinAPI_RegLoadMUIString -; _WinAPI_RegNotifyChangeKeyValue -; _WinAPI_RegOpenKey -; _WinAPI_RegQueryInfoKey -; _WinAPI_RegQueryLastWriteTime -; _WinAPI_RegQueryMultipleValues -; _WinAPI_RegQueryReflectionKey -; _WinAPI_RegQueryValue -; _WinAPI_RegRestoreKey -; _WinAPI_RegSaveKey -; _WinAPI_RegSetValue -; _WinAPI_SfcIsKeyProtected -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_AddMRUString($hMRU, $sStr) - Local $aRet = DllCall('comctl32.dll', 'int', 'AddMRUStringW', 'handle', $hMRU, 'wstr', $sStr) - If @error Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = -1 Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_AddMRUString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_AssocGetPerceivedType($sExt) - Local $aRet = DllCall('shlwapi.dll', 'long', 'AssocGetPerceivedType', 'wstr', $sExt, 'int*', 0, 'dword*', 0, 'ptr*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $aResult[3] - $aResult[0] = $aRet[2] - $aResult[1] = $aRet[3] - $aResult[2] = _WinAPI_GetString($aRet[4]) - _WinAPI_CoTaskMemFree($aRet[4]) - Return $aResult -EndFunc ;==>_WinAPI_AssocGetPerceivedType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_AssocQueryString($sAssoc, $iType, $iFlags = 0, $sExtra = '') - Local $sTypeOfExtra = 'wstr' - If Not StringStripWS($sExtra, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfExtra = 'ptr' - $sExtra = 0 - EndIf - - Local $aRet = DllCall('shlwapi.dll', 'long', 'AssocQueryStringW', 'dword', $iFlags, 'dword', $iType, 'wstr', $sAssoc, _ - $sTypeOfExtra, $sExtra, 'wstr', '', 'dword*', 4096) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[5] -EndFunc ;==>_WinAPI_AssocQueryString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateMRUList($hKey, $sSubKey, $iMax = 26) - Local Const $tagMRUINFO = 'dword Size;uint Max;uint Flags;handle hKey;ptr szSubKey;ptr fnCompare' - Local $tMRUINFO = DllStructCreate($tagMRUINFO & ';wchar[' & (StringLen($sSubKey) + 1) & ']') - DllStructSetData($tMRUINFO, 1, DllStructGetPtr($tMRUINFO, 7) - DllStructGetPtr($tMRUINFO)) - DllStructSetData($tMRUINFO, 2, $iMax) - DllStructSetData($tMRUINFO, 3, 0) - DllStructSetData($tMRUINFO, 4, $hKey) - DllStructSetData($tMRUINFO, 5, DllStructGetPtr($tMRUINFO, 7)) - DllStructSetData($tMRUINFO, 6, 0) - DllStructSetData($tMRUINFO, 7, $sSubKey) - - Local $aRet = DllCall('comctl32.dll', 'HANDLE', 'CreateMRUListW', 'struct*', $tMRUINFO) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateMRUList - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DllInstall($sFilePath) - Local $iRet = RunWait(@SystemDir & '\regsvr32.exe /s ' & $sFilePath) - If @error Or $iRet Then Return SetError(@error + ($iRet + 100), @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_DllInstall - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DllUninstall($sFilePath) - Local $iRet = RunWait(@SystemDir & '\regsvr32.exe /s /u ' & $sFilePath) - If @error Or $iRet Then Return SetError(@error + ($iRet + 100), @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_DllUninstall - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumMRUList($hMRU, $iItem) - Local $aRet = DllCall('comctl32.dll', 'int', 'EnumMRUListW', 'handle', $hMRU, 'int', $iItem, 'wstr', '', 'uint', 4096) - If @error Or ($aRet[0] = -1) Then Return SetError(@error + 10, @extended, 0) - - If $iItem < 0 Then - Return $aRet[0] - Else - If Not $aRet[0] Then Return SetError(1, 0, 0) - EndIf - - Return $aRet[3] -EndFunc ;==>_WinAPI_EnumMRUList - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FreeMRUList($hMRU) - Local $aRet = DllCall('comctl32.dll', 'int', 'FreeMRUList', 'handle', $hMRU) - If @error Then Return SetError(@error, @extended, False) - ; If $aRet[0] = -1 Then Return SetError(1000, 0, 0) - - Return ($aRet[0] <> -1) -EndFunc ;==>_WinAPI_FreeMRUList - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetRegKeyNameByHandle($hKey) - Local $tagKEY_NAME_INFORMATION = 'ulong NameLength;wchar Name[4096]' - Local $tKNI = DllStructCreate($tagKEY_NAME_INFORMATION) - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQueryKey', 'handle', $hKey, 'uint', 3, 'struct*', $tKNI, _ - 'ulong', DllStructGetSize($tKNI), 'ulong*', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - Local $iLength = DllStructGetData($tKNI, 1) - If Not $iLength Then Return SetError(12, 0, '') - - Return DllStructGetData(DllStructCreate('wchar[' & ($iLength / 2) & ']', DllStructGetPtr($tKNI, 2)), 1) -EndFunc ;==>_WinAPI_GetRegKeyNameByHandle - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegCloseKey($hKey, $bFlush = False) - If $bFlush Then - If Not _WinAPI_RegFlushKey($hKey) Then - Return SetError(@error + 10, @extended, 0) - EndIf - EndIf - - Local $aRet = DllCall('advapi32.dll', 'long', 'RegCloseKey', 'handle', $hKey) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegCloseKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegConnectRegistry($sComputer, $hKey) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegConnectRegistryW', 'wstr', $sComputer, 'handle', $hKey, 'handle*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_RegConnectRegistry - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegCopyTree($hSrcKey, $sSrcSubKey, $hDestKey) - Local $aRet = DllCall('shlwapi.dll', 'long', 'SHCopyKeyW', 'handle', $hSrcKey, 'wstr', $sSrcSubKey, 'ulong_ptr', $hDestKey, _ - 'dword', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegCopyTree - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegCopyTreeEx($hSrcKey, $sSrcSubKey, $hDestKey) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegCopyTreeW', 'handle', $hSrcKey, 'wstr', $sSrcSubKey, 'ulong_ptr', $hDestKey) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegCopyTreeEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegCreateKey($hKey, $sSubKey = '', $iAccess = $KEY_ALL_ACCESS, $iOptions = 0, $tSecurity = 0) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegCreateKeyExW', 'handle', $hKey, 'wstr', $sSubKey, 'dword', 0, 'ptr', 0, _ - 'dword', $iOptions, 'dword', $iAccess, 'struct*', $tSecurity, 'ulong_ptr*', 0, 'dword*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return SetExtended(Number($aRet[9] = 1), $aRet[8]) -EndFunc ;==>_WinAPI_RegCreateKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegDeleteEmptyKey($hKey, $sSubKey = '') - Local $aRet = DllCall('shlwapi.dll', 'long', 'SHDeleteEmptyKeyW', 'handle', $hKey, 'wstr', $sSubKey) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegDeleteEmptyKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegDeleteKey($hKey, $sSubKey = '') - Local $aRet = DllCall('advapi32.dll', 'long', 'RegDeleteKeyW', 'handle', $hKey, 'wstr', $sSubKey) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegDeleteKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegDeleteKeyValue($hKey, $sSubKey, $sValueName) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegDeleteKeyValueW', 'handle', $hKey, 'wstr', $sSubKey, 'wstr', $sValueName) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegDeleteKeyValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegDeleteTree($hKey, $sSubKey = '') - Local $aRet = DllCall('shlwapi.dll', 'long', 'SHDeleteKeyW', 'ulong_ptr', $hKey, 'wstr', $sSubKey) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegDeleteTree - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_RegDeleteTreeEx($hKey, $sSubKey = 0) - Local $sSubKeyType = 'wstr' - If Not IsString($sSubKey) Then $sSubKeyType = 'ptr' - - Local $aRet = DllCall('advapi32.dll', 'long', 'RegDeleteTreeW', 'handle', $hKey, $sSubKeyType, $sSubKey) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegDeleteTreeEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegDeleteValue($hKey, $sValueName) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegDeleteValueW', 'handle', $hKey, 'wstr', $sValueName) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegDeleteValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegDisableReflectionKey($hKey) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegDisableReflectionKey', 'handle', $hKey) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegDisableReflectionKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegDuplicateHKey($hKey) - Local $aRet = DllCall('shlwapi.dll', 'handle', 'SHRegDuplicateHKey', 'handle', $hKey) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RegDuplicateHKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegEnableReflectionKey($hKey) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegEnableReflectionKey', 'handle', $hKey) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegEnableReflectionKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegEnumKey($hKey, $iIndex) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegEnumKeyExW', 'ulong_ptr', $hKey, 'dword', $iIndex, 'wstr', '', _ - 'dword*', 256, 'dword', 0, 'ptr', 0, 'ptr', 0, 'ptr', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[3] -EndFunc ;==>_WinAPI_RegEnumKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegEnumValue($hKey, $iIndex) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegEnumValueW', 'handle', $hKey, 'dword', $iIndex, 'wstr', '', _ - 'dword*', 16384, 'dword', 0, 'dword*', 0, 'ptr', 0, 'ptr', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return SetExtended($aRet[6], $aRet[3]) -EndFunc ;==>_WinAPI_RegEnumValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegFlushKey($hKey) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegFlushKey', 'handle', $hKey) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegFlushKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegLoadMUIString($hKey, $sValueName, $sDirectory = '') - Local $sTypeOfDirectory = 'wstr' - If Not StringStripWS($sDirectory, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfDirectory = 'ptr' - $sDirectory = 0 - EndIf - - Local $aRet = DllCall('advapi32.dll', 'long', 'RegLoadMUIStringW', 'handle', $hKey, 'wstr', $sValueName, 'wstr', '', _ - 'dword', 16384, 'dword*', 0, 'dword', 0, $sTypeOfDirectory, $sDirectory) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[3] -EndFunc ;==>_WinAPI_RegLoadMUIString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegNotifyChangeKeyValue($hKey, $iFilter, $bSubtree = False, $bAsync = False, $hEvent = 0) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegNotifyChangeKeyValue', 'handle', $hKey, 'bool', $bSubtree, _ - 'dword', $iFilter, 'handle', $hEvent, 'bool', $bAsync) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegNotifyChangeKeyValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_RegOpenKey($hKey, $sSubKey = '', $iAccess = 0x000F003F) - Local $sSubKeyType = 'wstr' - If Not IsString($sSubKey) Then $sSubKeyType = 'ptr' - - Local $aRet = DllCall('advapi32.dll', 'long', 'RegOpenKeyExW', 'handle', $hKey, $sSubKeyType, $sSubKey, 'dword', 0, _ - 'dword', $iAccess, 'ulong_ptr*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_RegOpenKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegQueryInfoKey($hKey) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegQueryInfoKeyW', 'handle', $hKey, 'ptr', 0, 'ptr', 0, 'ptr', 0, _ - 'dword*', 0, 'dword*', 0, 'ptr', 0, 'dword*', 0, 'dword*', 0, 'dword*', 0, 'ptr', 0, 'ptr', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $aResult[5] - $aResult[0] = $aRet[5] - $aResult[1] = $aRet[6] - $aResult[2] = $aRet[8] - $aResult[3] = $aRet[9] - $aResult[4] = $aRet[10] - Return $aResult -EndFunc ;==>_WinAPI_RegQueryInfoKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegQueryLastWriteTime($hKey) - Local $tFILETIME = DllStructCreate($tagFILETIME) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegQueryInfoKeyW', 'handle', $hKey, 'ptr', 0, 'ptr', 0, 'ptr', 0, 'ptr', 0, _ - 'ptr', 0, 'ptr', 0, 'ptr', 0, 'ptr', 0, 'ptr', 0, 'ptr', 0, 'struct*', $tFILETIME) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tFILETIME -EndFunc ;==>_WinAPI_RegQueryLastWriteTime - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegQueryMultipleValues($hKey, ByRef $aValent, ByRef $pBuffer, $iStart = 0, $iEnd = -1) - $pBuffer = 0 - If __CheckErrorArrayBounds($aValent, $iStart, $iEnd, 2) Then Return SetError(@error + 10, @extended, 0) - If UBound($aValent, $UBOUND_COLUMNS) < 4 Then Return SetError(13, 0, 0) - - Local $iValues = $iEnd - $iStart + 1 - Local $tagStruct = '' - For $i = 1 To $iValues - $tagStruct &= 'ptr;dword;ptr;dword;' - Next - Local $tValent = DllStructCreate($tagStruct) - - Local $aItem[$iValues], $iCount = 0 - For $i = $iStart To $iEnd - $aItem[$iCount] = DllStructCreate('wchar[' & (StringLen($aValent[$i][0]) + 1) & ']') - DllStructSetData($tValent, 4 * $iCount + 1, DllStructGetPtr($aItem[$iCount])) - DllStructSetData($aItem[$iCount], 1, $aValent[$i][0]) - $iCount += 1 - Next - Local $aRet = DllCall('advapi32.dll', 'long', 'RegQueryMultipleValuesW', 'handle', $hKey, 'struct*', $tValent, 'dword', $iValues, _ - 'ptr', 0, 'dword*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] <> 234 Then Return SetError(10, $aRet[0], 0) ; not ERROR_MORE_DATA - $pBuffer = __HeapAlloc($aRet[5]) - If @error Then Return SetError(@error + 100, @extended, 0) - $aRet = DllCall('advapi32.dll', 'long', 'RegQueryMultipleValuesW', 'handle', $hKey, 'struct*', $tValent, 'dword', $iValues, _ - 'ptr', $pBuffer, 'dword*', $aRet[5]) - If @error Or $aRet[0] Then - Local $iError = @error - __HeapFree($pBuffer) - If IsArray($aRet) Then - Return SetError(20, $aRet[0], 0) - Else - Return SetError($iError + 20, @extended, 0) ; should not occur as previously called - EndIf - EndIf - - $iCount = 0 - For $i = $iStart To $iEnd - For $j = 1 To 3 - $aValent[$i][$j] = DllStructGetData($tValent, 4 * $iCount + $j + 1) - Next - $iCount += 1 - Next - Return $aRet[5] -EndFunc ;==>_WinAPI_RegQueryMultipleValues - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegQueryReflectionKey($hKey) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegQueryReflectionKey', 'handle', $hKey, 'bool*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_RegQueryReflectionKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegQueryValue($hKey, $sValueName, ByRef $tValueData) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegQueryValueExW', 'handle', $hKey, 'wstr', $sValueName, 'dword', 0, _ - 'dword*', 0, 'struct*', $tValueData, 'dword*', DllStructGetSize($tValueData)) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return SetExtended($aRet[4], $aRet[6]) -EndFunc ;==>_WinAPI_RegQueryValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegRestoreKey($hKey, $sFilePath) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegRestoreKeyW', 'handle', $hKey, 'wstr', $sFilePath, 'dword', 8) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegRestoreKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegSaveKey($hKey, $sFilePath, $bReplace = False, $tSecurity = 0) - Local $aRet - While 1 - $aRet = DllCall('advapi32.dll', 'long', 'RegSaveKeyW', 'handle', $hKey, 'wstr', $sFilePath, 'struct*', $tSecurity) - If @error Then Return SetError(@error, @extended, 0) - Switch $aRet[0] - Case 0 - ExitLoop - Case 183 ; ERROR_ALREADY_EXISTS - If $bReplace Then - ; If Not _WinAPI_DeleteFile($sFilePath) Then - If Not FileDelete($sFilePath) Then - Return SetError(20, _WinAPI_GetLastError(), 0) - Else - ContinueLoop - EndIf - Else - ContinueCase - EndIf - Case Else - Return SetError(10, $aRet[0], 0) - EndSwitch - WEnd - - Return 1 -EndFunc ;==>_WinAPI_RegSaveKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_RegSetValue($hKey, $sValueName, $iType, $tValueData, $iBytes) - Local $aRet = DllCall('advapi32.dll', 'long', 'RegSetValueExW', 'handle', $hKey, 'wstr', $sValueName, 'dword', 0, _ - 'dword', $iType, 'struct*', $tValueData, 'dword', $iBytes) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_RegSetValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_SfcIsKeyProtected($hKey, $sSubKey = Default, $iFlag = 0) - If Not __DLL('sfc.dll') Then Return SetError(103, 0, False) - - Local $sSubKeyType = 'wstr' - If Not IsString($sSubKey) Then - $sSubKeyType = 'ptr' - $sSubKey = 0 - EndIf - - Local $aRet = DllCall('sfc.dll', 'int', 'SfcIsKeyProtected', 'handle', $hKey, $sSubKeyType, $sSubKey, 'dword', $iFlag) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SfcIsKeyProtected - -#EndRegion Public Functions diff --git a/build/Include/WinAPIRes.au3 b/build/Include/WinAPIRes.au3 deleted file mode 100644 index 327653f4a..000000000 --- a/build/Include/WinAPIRes.au3 +++ /dev/null @@ -1,1015 +0,0 @@ -#include-once - -#include "APILocaleConstants.au3" -#include "APIResConstants.au3" -#include "WinAPI.au3" -#include "WinAPIGdi.au3" -#include "WinAPIInternals.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIRes.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -Global $__g_vVal -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $tagVS_FIXEDFILEINFO = 'dword Signature;dword StrucVersion;dword FileVersionMS;dword FileVersionLS;dword ProductVersionMS;dword ProductVersionLS;dword FileFlagsMask;dword FileFlags;dword FileOS;dword FileType;dword FileSubtype;dword FileDateMS;dword FileDateLS' -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_AddIconTransparency -; _WinAPI_BeginUpdateResource -; _WinAPI_ClipCursor -; _WinAPI_CopyCursor -; _WinAPI_CreateCaret -; _WinAPI_CreateIcon -; _WinAPI_CreateIconFromResourceEx -; _WinAPI_DestroyCaret -; _WinAPI_DestroyCursor -; _WinAPI_EndUpdateResource -; _WinAPI_EnumResourceLanguages -; _WinAPI_EnumResourceNames -; _WinAPI_EnumResourceTypes -; _WinAPI_ExtractIcon -; _WinAPI_FileIconInit -; _WinAPI_FindResource -; _WinAPI_FindResourceEx -; _WinAPI_FreeResource -; _WinAPI_GetCaretBlinkTime -; _WinAPI_GetCaretPos -; _WinAPI_GetClipCursor -; _WinAPI_GetCursor -; _WinAPI_GetFileVersionInfo -; _WinAPI_GetIconInfoEx -; _WinAPI_HideCaret -; _WinAPI_LoadCursor -; _WinAPI_LoadCursorFromFile -; _WinAPI_LoadIcon -; _WinAPI_LoadIndirectString -; _WinAPI_LoadResource -; _WinAPI_LoadStringEx -; _WinAPI_LockResource -; _WinAPI_LookupIconIdFromDirectoryEx -; _WinAPI_SetCaretBlinkTime -; _WinAPI_SetCaretPos -; _WinAPI_SetSystemCursor -; _WinAPI_ShowCaret -; _WinAPI_SizeOfResource -; _WinAPI_UpdateResource -; _WinAPI_VerQueryRoot -; _WinAPI_VerQueryValue -; _WinAPI_VerQueryValueEx -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_AddIconTransparency($hIcon, $iPercent = 50, $bDelete = False) - Local $tBITMAP, $hDib = 0, $hResult = 0 - Local $ahBitmap[2] - - Local $tICONINFO = DllStructCreate($tagICONINFO) - Local $aRet = DllCall('user32.dll', 'bool', 'GetIconInfo', 'handle', $hIcon, 'struct*', $tICONINFO) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - For $i = 0 To 1 - $ahBitmap[$i] = DllStructGetData($tICONINFO, $i + 4) - Next - Local $iError = 0 - Do - $hDib = _WinAPI_CopyBitmap($ahBitmap[1]) - If Not $hDib Then - $iError = 20 - ExitLoop - EndIf - $tBITMAP = DllStructCreate($tagBITMAP) - If (Not _WinAPI_GetObject($hDib, DllStructGetSize($tBITMAP), $tBITMAP)) Or (DllStructGetData($tBITMAP, 'bmBitsPixel') <> 32) Then - $iError = 21 - ExitLoop - EndIf - $aRet = DllCall('user32.dll', 'lresult', 'CallWindowProc', 'PTR', __TransparencyProc(), 'hwnd', 0, _ - 'uint', $iPercent, 'wparam', DllStructGetPtr($tBITMAP), 'lparam', 0) - If @error Or Not $aRet[0] Then - $iError = @error + 30 - ExitLoop - EndIf - If $aRet[0] = -1 Then - $hResult = _WinAPI_CreateEmptyIcon(DllStructGetData($tBITMAP, 'bmWidth'), DllStructGetData($tBITMAP, 'bmHeight')) - Else - $hResult = _WinAPI_CreateIconIndirect($hDib, $ahBitmap[0]) - EndIf - If Not $hResult Then $iError = 22 - Until 1 - If $hDib Then - _WinAPI_DeleteObject($hDib) - EndIf - For $i = 0 To 1 - If $ahBitmap[$i] Then - _WinAPI_DeleteObject($ahBitmap[$i]) - EndIf - Next - If $iError Then Return SetError($iError, 0, 0) - - If $bDelete Then - _WinAPI_DestroyIcon($hIcon) - EndIf - - Return $hResult -EndFunc ;==>_WinAPI_AddIconTransparency - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BeginUpdateResource($sFilePath, $bDelete = False) - Local $aRet = DllCall('kernel32.dll', 'handle', 'BeginUpdateResourceW', 'wstr', $sFilePath, 'bool', $bDelete) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_BeginUpdateResource - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ClipCursor($tRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'ClipCursor', 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ClipCursor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_CopyCursor($hCursor) - Return _WinAPI_CopyIcon($hCursor) -EndFunc ;==>_WinAPI_CopyCursor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateCaret($hWnd, $hBitmap, $iWidth = 0, $iHeight = 0) - Local $aRet = DllCall('user32.dll', 'bool', 'CreateCaret', 'hwnd', $hWnd, 'handle', $hBitmap, 'int', $iWidth, 'int', $iHeight) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateCaret - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateIcon($hInstance, $iWidth, $iHeight, $iPlanes, $iBitsPixel, $pANDBits, $pXORBits) - Local $aRet = DllCall('user32.dll', 'handle', 'CreateIcon', 'handle', $hInstance, 'int', $iWidth, 'int', $iHeight, _ - 'byte', $iPlanes, 'byte', $iBitsPixel, 'struct*', $pANDBits, 'struct*', $pXORBits) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateIconFromResourceEx($pData, $iSize, $bIcon = True, $iXDesiredPixels = 0, $iYDesiredPixels = 0, $iFlags = 0) - Local $aRet = DllCall('user32.dll', 'handle', 'CreateIconFromResourceEx', 'ptr', $pData, 'dword', $iSize, 'bool', $bIcon, _ - 'dword', 0x00030000, 'int', $iXDesiredPixels, 'int', $iYDesiredPixels, 'uint', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateIconFromResourceEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DestroyCaret() - Local $aRet = DllCall('user32.dll', 'bool', 'DestroyCaret') - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DestroyCaret - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DestroyCursor($hCursor) - Local $aRet = DllCall('user32.dll', 'bool', 'DestroyCursor', 'handle', $hCursor) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DestroyCursor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_EndUpdateResource($hUpdate, $bDiscard = False) - Local $aRet = DllCall('kernel32.dll', 'bool', 'EndUpdateResourceW', 'handle', $hUpdate, 'bool', $bDiscard) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_EndUpdateResource - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumResourceLanguages($hModule, $sType, $sName) - Local $iLibrary = 0, $sTypeOfType = 'int', $sTypeOfName = 'int' - - If IsString($hModule) Then - If StringStripWS($hModule, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $hModule = _WinAPI_LoadLibraryEx($hModule, 0x00000003) - If Not $hModule Then Return SetError(1, 0, 0) - $iLibrary = 1 - Else - $hModule = 0 - EndIf - EndIf - If IsString($sType) Then - $sTypeOfType = 'wstr' - EndIf - If IsString($sName) Then - $sTypeOfName = 'wstr' - EndIf - Dim $__g_vEnum[101] = [0] - Local $hEnumProc = DllCallbackRegister('__EnumResLanguagesProc', 'bool', 'handle;ptr;ptr;word;long_ptr') - Local $aRet = DllCall('kernel32.dll', 'bool', 'EnumResourceLanguagesW', 'handle', $hModule, $sTypeOfType, $sType, _ - $sTypeOfName, $sName, 'ptr', DllCallbackGetPtr($hEnumProc), 'long_ptr', 0) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0] Then - $__g_vEnum = @error + 10 - EndIf - If $iLibrary Then - _WinAPI_FreeLibrary($hModule) - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumResourceLanguages - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumResourceNames($hModule, $sType) - Local $aRet, $hEnumProc, $iLibrary = 0, $sTypeOfType = 'int' - - If IsString($hModule) Then - If StringStripWS($hModule, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $hModule = _WinAPI_LoadLibraryEx($hModule, 0x00000003) - If Not $hModule Then Return SetError(1, 0, 0) - $iLibrary = 1 - Else - $hModule = 0 - EndIf - EndIf - If IsString($sType) Then - $sTypeOfType = 'wstr' - EndIf - Dim $__g_vEnum[101] = [0] - $hEnumProc = DllCallbackRegister('__EnumResNamesProc', 'bool', 'handle;ptr;ptr;long_ptr') - $aRet = DllCall('kernel32.dll', 'bool', 'EnumResourceNamesW', 'handle', $hModule, $sTypeOfType, $sType, _ - 'ptr', DllCallbackGetPtr($hEnumProc), 'long_ptr', 0) - If @error Or Not $aRet[0] Or (Not $__g_vEnum[0]) Then - $__g_vEnum = @error + 10 - EndIf - If $iLibrary Then - _WinAPI_FreeLibrary($hModule) - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumResourceNames - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumResourceTypes($hModule) - Local $iLibrary = 0 - If IsString($hModule) Then - If StringStripWS($hModule, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $hModule = _WinAPI_LoadLibraryEx($hModule, 0x00000003) - If Not $hModule Then Return SetError(1, 0, 0) - $iLibrary = 1 - Else - $hModule = 0 - EndIf - EndIf - Dim $__g_vEnum[101] = [0] - Local $hEnumProc = DllCallbackRegister('__EnumResTypesProc', 'bool', 'handle;ptr;long_ptr') - Local $aRet = DllCall('kernel32.dll', 'bool', 'EnumResourceTypesW', 'handle', $hModule, _ - 'ptr', DllCallbackGetPtr($hEnumProc), 'long_ptr', 0) - If @error Or Not $aRet[0] Or (Not $__g_vEnum[0]) Then - $__g_vEnum = @error + 10 - EndIf - If $iLibrary Then - _WinAPI_FreeLibrary($hModule) - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumResourceTypes - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ExtractIcon($sIcon, $iIndex, $bSmall = False) - Local $pLarge, $pSmall, $tPtr = DllStructCreate('ptr') - If $bSmall Then - $pLarge = 0 - $pSmall = DllStructGetPtr($tPtr) - Else - $pLarge = DllStructGetPtr($tPtr) - $pSmall = 0 - EndIf - - DllCall('shell32.dll', 'uint', 'ExtractIconExW', 'wstr', $sIcon, 'int', $iIndex, 'ptr', $pLarge, 'ptr', $pSmall, 'uint', 1) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return DllStructGetData($tPtr, 1) -EndFunc ;==>_WinAPI_ExtractIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FileIconInit($bRestore = True) - Local $aRet = DllCall('shell32.dll', 'int', 660, 'int', $bRestore) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return 1 -EndFunc ;==>_WinAPI_FileIconInit - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FindResource($hInstance, $sType, $sName) - Local $sTypeOfType = 'int', $sTypeOfName = 'int' - If IsString($sType) Then - $sTypeOfType = 'wstr' - EndIf - If IsString($sName) Then - $sTypeOfName = 'wstr' - EndIf - - Local $aRet = DllCall('kernel32.dll', 'handle', 'FindResourceW', 'handle', $hInstance, $sTypeOfName, $sName, $sTypeOfType, $sType) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindResource - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FindResourceEx($hInstance, $sType, $sName, $iLanguage) - Local $sTypeOfType = 'int', $sTypeOfName = 'int' - If IsString($sType) Then - $sTypeOfType = 'wstr' - EndIf - If IsString($sName) Then - $sTypeOfName = 'wstr' - EndIf - - Local $aRet = DllCall('kernel32.dll', 'handle', 'FindResourceExW', 'handle', $hInstance, $sTypeOfType, $sType, _ - $sTypeOfName, $sName, 'ushort', $iLanguage) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FindResourceEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_FreeResource($hData) - Local $aRet = DllCall('kernel32.dll', 'bool', 'FreeResource', 'handle', $hData) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_FreeResource - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetCaretBlinkTime() - Local $aRet = DllCall('user32.dll', 'uint', 'GetCaretBlinkTime') - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetCaretBlinkTime - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetCaretPos() - Local $tPOINT = DllStructCreate($tagPOINT) - Local $aRet = DllCall('user32.dll', 'bool', 'GetCaretPos', 'struct*', $tagPOINT) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[2] - For $i = 0 To 1 - $aResult[$i] = DllStructGetData($tPOINT, $i + 1) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetCaretPos - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetClipCursor() - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('user32.dll', 'bool', 'GetClipCursor', 'struct*', $tRECT) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $tRECT -EndFunc ;==>_WinAPI_GetClipCursor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetCursor() - Local $aRet = DllCall('user32.dll', 'handle', 'GetCursor') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetCursor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetFileVersionInfo($sFilePath, ByRef $pBuffer, $iFlags = 0) - Local $aRet - If $__WINVER >= 0x0600 Then - $aRet = DllCall('version.dll', 'dword', 'GetFileVersionInfoSizeExW', 'dword', BitAND($iFlags, 0x03), 'wstr', $sFilePath, _ - 'ptr', 0) - Else - $aRet = DllCall('version.dll', 'dword', 'GetFileVersionInfoSizeW', 'wstr', $sFilePath, 'ptr', 0) - EndIf - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - $pBuffer = __HeapReAlloc($pBuffer, $aRet[0], 1) - If @error Then Return SetError(@error + 100, @extended, 0) - Local $iNbByte = $aRet[0] - If $__WINVER >= 0x0600 Then - $aRet = DllCall('version.dll', 'bool', 'GetFileVersionInfoExW', 'dword', BitAND($iFlags, 0x07), 'wstr', $sFilePath, _ - 'dword', 0, 'dword', $iNbByte, 'ptr', $pBuffer) - Else - $aRet = DllCall('version.dll', 'bool', 'GetFileVersionInfoW', 'wstr', $sFilePath, _ - 'dword', 0, 'dword', $iNbByte, 'ptr', $pBuffer) - EndIf - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $iNbByte -EndFunc ;==>_WinAPI_GetFileVersionInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetIconInfoEx($hIcon) - Local $tIIEX = DllStructCreate('dword;int;dword;dword;ptr;ptr;ushort;wchar[260];wchar[260]') - ; Local $tIIEX = DllStructCreate($tagICONINFOEX) - DllStructSetData($tIIEX, 1, DllStructGetSize($tIIEX)) - - Local $aRet = DllCall('user32.dll', 'bool', 'GetIconInfoExW', 'handle', $hIcon, 'struct*', $tIIEX) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[8] - For $i = 0 To 7 - $aResult[$i] = DllStructGetData($tIIEX, $i + 2) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetIconInfoEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_HideCaret($hWnd) - Local $aRet = DllCall('user32.dll', 'int', 'HideCaret', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_HideCaret - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LoadCursor($hInstance, $sName) - Local $sTypeOfName = 'int' - If IsString($sName) Then - $sTypeOfName = 'wstr' - EndIf - - Local $aRet = DllCall('user32.dll', 'handle', 'LoadCursorW', 'handle', $hInstance, $sTypeOfName, $sName) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LoadCursor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LoadCursorFromFile($sFilePath) - Local $aRet = DllCall('user32.dll', 'handle', 'LoadCursorFromFileW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LoadCursorFromFile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LoadIcon($hInstance, $sName) - Local $sTypeOfName = 'int' - If IsString($sName) Then - $sTypeOfName = 'wstr' - EndIf - - Local $aRet = DllCall('user32.dll', 'handle', 'LoadIconW', 'handle', $hInstance, $sTypeOfName, $sName) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LoadIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_LoadIndirectString($sStrIn) - Local $aRet = DllCall('shlwapi.dll', 'uint', 'SHLoadIndirectString', 'wstr', $sStrIn, 'wstr', '', 'uint', 4096, 'ptr*', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_LoadIndirectString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LoadResource($hInstance, $hResource) - Local $aRet = DllCall('kernel32.dll', 'handle', 'LoadResource', 'handle', $hInstance, 'handle', $hResource) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LoadResource - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_LoadStringEx($hModule, $iID, $iLanguage = $LOCALE_USER_DEFAULT) - Local $iLibrary = 0 - If IsString($hModule) Then - If StringStripWS($hModule, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $hModule = _WinAPI_LoadLibraryEx($hModule, 0x00000003) - If Not $hModule Then Return SetError(@error + 20, @extended, '') - $iLibrary = 1 - Else - $hModule = 0 - EndIf - EndIf - Local $sResult = '' - Local $pData = __ResLoad($hModule, 6, Floor($iID / 16) + 1, $iLanguage) - If Not @error Then - Local $iOffset = 0 - For $i = 0 To Mod($iID, 16) - 1 - $iOffset += 2 * (DllStructGetData(DllStructCreate('ushort', $pData + $iOffset), 1) + 1) - Next - $sResult = DllStructGetData(DllStructCreate('ushort;wchar[' & DllStructGetData(DllStructCreate('ushort', $pData + $iOffset), 1) & ']', $pData + $iOffset), 2) - If @error Then $sResult = '' - Else - Return SetError(10, 0, '') - EndIf - If $iLibrary Then - _WinAPI_FreeLibrary($hModule) - EndIf - - Return SetError(Number(Not $sResult), 0, $sResult) -EndFunc ;==>_WinAPI_LoadStringEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LockResource($hData) - Local $aRet = DllCall('kernel32.dll', 'ptr', 'LockResource', 'handle', $hData) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LockResource - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LookupIconIdFromDirectoryEx($pData, $bIcon = True, $iXDesiredPixels = 0, $iYDesiredPixels = 0, $iFlags = 0) - Local $aRet = DllCall('user32.dll', 'int', 'LookupIconIdFromDirectoryEx', 'ptr', $pData, 'bool', $bIcon, _ - 'int', $iXDesiredPixels, 'int', $iYDesiredPixels, 'uint', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LookupIconIdFromDirectoryEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetCaretBlinkTime($iDuration) - Local $iPrev = _WinAPI_GetCaretBlinkTime() - If Not $iPrev Then Return SetError(@error + 20, @extended, 0) - - Local $aRet = DllCall('user32.dll', 'bool', 'SetCaretBlinkTime', 'uint', $iDuration) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $iPrev -EndFunc ;==>_WinAPI_SetCaretBlinkTime - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetCaretPos($iX, $iY) - Local $aRet = DllCall('user32.dll', 'int', 'SetCaretPos', 'int', $iX, 'int', $iY) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetCaretPos - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetSystemCursor($hCursor, $iID, $bCopy = False) - If $bCopy Then - $hCursor = _WinAPI_CopyCursor($hCursor) - EndIf - - Local $aRet = DllCall('user32.dll', 'bool', 'SetSystemCursor', 'handle', $hCursor, 'dword', $iID) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetSystemCursor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShowCaret($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'ShowCaret', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShowCaret - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SizeOfResource($hInstance, $hResource) - Local $aRet = DllCall('kernel32.dll', 'dword', 'SizeofResource', 'handle', $hInstance, 'handle', $hResource) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SizeOfResource - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UpdateResource($hUpdate, $sType, $sName, $iLanguage, $pData, $iSize) - Local $sTypeOfType = 'int', $sTypeOfName = 'int' - If IsString($sType) Then - $sTypeOfType = 'wstr' - EndIf - If IsString($sName) Then - $sTypeOfName = 'wstr' - EndIf - - Local $aRet = DllCall('kernel32.dll', 'bool', 'UpdateResourceW', 'handle', $hUpdate, $sTypeOfType, $sType, $sTypeOfName, $sName, _ - 'word', $iLanguage, 'ptr', $pData, 'dword', $iSize) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UpdateResource - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_VerQueryRoot($pData) - Local $aRet = DllCall('version.dll', 'bool', 'VerQueryValueW', 'ptr', $pData, 'wstr', '\', 'ptr*', 0, 'uint*', 0) - If @error Or Not $aRet[0] Or Not $aRet[4] Then Return SetError(@error + 10, @extended, 0) - - Local $tVFFI = DllStructCreate($tagVS_FIXEDFILEINFO) - If Not _WinAPI_MoveMemory($tVFFI, $aRet[3], $aRet[4]) Then Return SetError(@error + 20, @extended, 0) - - Return $tVFFI -EndFunc ;==>_WinAPI_VerQueryRoot - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_VerQueryValue($pData, $sValues = '') - $sValues = StringRegExpReplace($sValues, '\A[\s\|]*|[\s\|]*\Z', '') - If Not $sValues Then - $sValues = 'Comments|CompanyName|FileDescription|FileVersion|InternalName|LegalCopyright|LegalTrademarks|OriginalFilename|ProductName|ProductVersion|PrivateBuild|SpecialBuild' - EndIf - $sValues = StringSplit($sValues, '|', $STR_NOCOUNT) - Local $aRet = DllCall('version.dll', 'bool', 'VerQueryValueW', 'ptr', $pData, 'wstr', '\VarFileInfo\Translation', 'ptr*', 0, _ - 'uint*', 0) - If @error Or Not $aRet[0] Or Not $aRet[4] Then Return SetError(@error + 10, 0, 0) - - Local $iLength = Floor($aRet[4] / 4) - Local $tLang = DllStructCreate('dword[' & $iLength & ']', $aRet[3]) - If @error Then Return SetError(@error + 20, 0, 0) - - Local $sCP, $aInfo[101][UBound($sValues) + 1] = [[0]] - For $i = 1 To $iLength - __Inc($aInfo) - $aInfo[$aInfo[0][0]][0] = _WinAPI_LoWord(DllStructGetData($tLang, 1, $i)) - $sCP = Hex(_WinAPI_MakeLong(_WinAPI_HiWord(DllStructGetData($tLang, 1, $i)), _WinAPI_LoWord(DllStructGetData($tLang, 1, $i))), 8) - For $j = 0 To UBound($sValues) - 1 - $aRet = DllCall('version.dll', 'bool', 'VerQueryValueW', 'ptr', $pData, 'wstr', '\StringFileInfo\' & $sCP & '\' & $sValues[$j], _ - 'ptr*', 0, 'uint*', 0) - If Not @error And $aRet[0] And $aRet[4] Then - $aInfo[$aInfo[0][0]][$j + 1] = DllStructGetData(DllStructCreate('wchar[' & $aRet[4] & ']', $aRet[3]), 1) - Else - $aInfo[$aInfo[0][0]][$j + 1] = '' - EndIf - Next - Next - __Inc($aInfo, -1) - Return $aInfo -EndFunc ;==>_WinAPI_VerQueryValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_VerQueryValueEx($hModule, $sValues = '', $iLanguage = 0x0400) - $__g_vVal = StringRegExpReplace($sValues, '\A[\s\|]*|[\s\|]*\Z', '') - If Not $__g_vVal Then - $__g_vVal = 'Comments|CompanyName|FileDescription|FileVersion|InternalName|LegalCopyright|LegalTrademarks|OriginalFilename|ProductName|ProductVersion|PrivateBuild|SpecialBuild' - EndIf - $__g_vVal = StringSplit($__g_vVal, '|') - If Not IsArray($__g_vVal) Then Return SetError(1, 0, 0) - Local $iLibrary = 0 - If IsString($hModule) Then - If StringStripWS($hModule, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $hModule = _WinAPI_LoadLibraryEx($hModule, 0x00000003) - If Not $hModule Then - Return SetError(@error + 10, @extended, 0) - EndIf - $iLibrary = 1 - Else - $hModule = 0 - EndIf - EndIf - Dim $__g_vEnum[101][$__g_vVal[0] + 1] = [[0]] - Local $hEnumProc = DllCallbackRegister('__EnumVerValuesProc', 'bool', 'ptr;ptr;ptr;word;long_ptr') - Local $aRet = DllCall('kernel32.dll', 'bool', 'EnumResourceLanguagesW', 'handle', $hModule, 'int', 16, 'int', 1, _ - 'ptr', DllCallbackGetPtr($hEnumProc), 'long_ptr', $iLanguage) - Do - If @error Then - $__g_vEnum = @error + 20 - Else - If Not $aRet[0] Then - Switch _WinAPI_GetLastError() - Case 0, 15106 ; ERROR_SUCCESS, ERROR_RESOURCE_ENUM_USER_STOP - ExitLoop - Case Else - $__g_vEnum = 20 - EndSwitch - Else - ExitLoop - EndIf - EndIf - Until 1 - If $iLibrary Then - _WinAPI_FreeLibrary($hModule) - EndIf - DllCallbackFree($hEnumProc) - If Not $__g_vEnum[0][0] Then $__g_vEnum = 230 - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_VerQueryValueEx - -#EndRegion Public Functions - -#Region Embedded DLL Functions - -Func __TransparencyProc() - Static $pProc = 0 - - If Not $pProc Then - If @AutoItX64 Then - $pProc = __Init(Binary( _ - '0x48894C240848895424104C894424184C894C24205541574831C0505050505050' & _ - '4883EC284883BC24800000000074054831C0EB0748C7C0010000004821C07522' & _ - '488BAC248000000048837D180074054831C0EB0748C7C0010000004821C07502' & _ - 'EB0948C7C001000000EB034831C04821C0740B4831C04863C0E93C0100004C63' & _ - '7C24784983FF647E0F48C7C0010000004863C0E9220100004C637C24784D21FF' & _ - '7D08C74424780000000048C74424280100000048C74424300000000048C74424' & _ - '3800000000488BAC24800000004C637D04488BAC2480000000486345084C0FAF' & _ - 'F849C1E7024983C7FC4C3B7C24380F8C88000000488BAC24800000004C8B7D18' & _ - '4C037C24384983C7034C897C2440488B6C2440480FB64500505888442448807C' & _ - '244800744B4C0FB67C244848634424784C0FAFF84C89F848C7C1640000004899' & _ - '48F7F94989C74C89F850488B6C244858884500488B6C2440807D0000740948C7' & _ - '4424280000000048C7442430010000004883442438040F8149FFFFFF48837C24' & _ - '3000741148837C242800740948C7C001000000EB034831C04821C0740E48C7C0' & _ - 'FFFFFFFF4863C0EB11EB0C48C7C0010000004863C0EB034831C04883C458415F' & _ - '5DC3')) - Else - $pProc = __Init(Binary( _ - '0x555331C05050505050837C242800740431C0EB05B80100000021C075198B6C24' & _ - '28837D1400740431C0EB05B80100000021C07502EB07B801000000EB0231C021' & _ - 'C0740731C0E9E50000008B5C242483FB647E0AB801000000E9D20000008B5C24' & _ - '2421DB7D08C744242400000000C7042401000000C744240400000000C7442408' & _ - '000000008B6C24288B5D048B6C24280FAF5D08C1E30283C3FC3B5C24087C648B' & _ - '6C24288B5D14035C240883C303895C240C8B6C240C0FB6450088442410807C24' & _ - '100074380FB65C24100FAF5C242489D8B96400000099F7F989C3538B6C241058' & _ - '8845008B6C240C807D00007407C7042400000000C74424040100000083442408' & _ - '047181837C240400740D833C24007407B801000000EB0231C021C07409B8FFFF' & _ - 'FFFFEB0BEB07B801000000EB0231C083C4145B5DC21000')) - EndIf - EndIf - Return $pProc -EndFunc ;==>__TransparencyProc - -#EndRegion Embedded DLL Functions - -#Region Internal Functions - -Func __EnumResLanguagesProc($hModule, $iType, $iName, $iLanguage, $lParam) - #forceref $hModule, $iType, $iName, $lParam - - __Inc($__g_vEnum) - $__g_vEnum[$__g_vEnum[0]] = $iLanguage - Return 1 -EndFunc ;==>__EnumResLanguagesProc - -Func __EnumResNamesProc($hModule, $iType, $iName, $lParam) - #forceref $hModule, $iType, $lParam - - Local $iLength = _WinAPI_StrLen($iName) - __Inc($__g_vEnum) - If $iLength Then - $__g_vEnum[$__g_vEnum[0]] = DllStructGetData(DllStructCreate('wchar[' & ($iLength + 1) & ']', $iName), 1) - Else - $__g_vEnum[$__g_vEnum[0]] = Number($iName) - EndIf - Return 1 -EndFunc ;==>__EnumResNamesProc - -Func __EnumResTypesProc($hModule, $iType, $lParam) - #forceref $hModule, $lParam - - Local $iLength = _WinAPI_StrLen($iType) - __Inc($__g_vEnum) - If $iLength Then - $__g_vEnum[$__g_vEnum[0]] = DllStructGetData(DllStructCreate('wchar[' & ($iLength + 1) & ']', $iType), 1) - Else - $__g_vEnum[$__g_vEnum[0]] = Number($iType) - EndIf - Return 1 -EndFunc ;==>__EnumResTypesProc - -Func __EnumVerValuesProc($hModule, $iType, $iName, $iLanguage, $iDefault) - Local $aRet, $iEnum = 1, $iError = 0 - - Switch $iDefault - Case -1 - - Case 0x0400 - $iLanguage = 0x0400 - $iEnum = 0 - Case Else - If $iLanguage <> $iDefault Then - Return 1 - EndIf - $iEnum = 0 - EndSwitch - Do - Local $pData = __ResLoad($hModule, $iType, $iName, $iLanguage) - If @error Then - $iError = @error + 10 - ExitLoop - EndIf - $aRet = DllCall('version.dll', 'bool', 'VerQueryValueW', 'ptr', $pData, 'wstr', '\VarFileInfo\Translation', 'ptr*', 0, 'uint*', 0) - If @error Or Not $aRet[0] Or Not $aRet[4] Then - $iError = @error + 20 - ExitLoop - EndIf - Local $tData = DllStructCreate('ushort;ushort', $aRet[3]) - If @error Then - $iError = @error + 30 - ExitLoop - EndIf - Until 1 - If Not $iError Then - __Inc($__g_vEnum) - $__g_vEnum[$__g_vEnum[0][0]][0] = DllStructGetData($tData, 1) - Local $sCP = Hex(_WinAPI_MakeLong(DllStructGetData($tData, 2), DllStructGetData($tData, 1)), 8) - For $i = 1 To $__g_vVal[0] - $aRet = DllCall('version.dll', 'bool', 'VerQueryValueW', 'ptr', $pData, 'wstr', '\StringFileInfo\' & $sCP & '\' & $__g_vVal[$i], _ - 'ptr*', 0, 'uint*', 0) - If Not @error And $aRet[0] And $aRet[4] Then - $__g_vEnum[$__g_vEnum[0][0]][$i] = DllStructGetData(DllStructCreate('wchar[' & $aRet[4] & ']', $aRet[3]), 1) - Else - $__g_vEnum[$__g_vEnum[0][0]][$i] = '' - EndIf - Next - Else - $__g_vEnum = @error + 40 - EndIf - If $__g_vEnum Then Return SetError($iError, 0, 0) - - Return $iEnum -EndFunc ;==>__EnumVerValuesProc - -Func __ResLoad($hInstance, $sType, $sName, $iLanguage) - Local $hInfo = _WinAPI_FindResourceEx($hInstance, $sType, $sName, $iLanguage) - If Not $hInfo Then Return SetError(@error + 10, @extended, 0) - - Local $iSize = _WinAPI_SizeOfResource($hInstance, $hInfo) - If Not $iSize Then Return SetError(@error + 20, @extended, 0) - - Local $hData = _WinAPI_LoadResource($hInstance, $hInfo) - If Not $hData Then Return SetError(@error + 30, @extended, 0) - - Local $pData = _WinAPI_LockResource($hData) - If Not $pData Then Return SetError(@error + 40, @extended, 0) - - Return SetExtended($iSize, $pData) -EndFunc ;==>__ResLoad - -#EndRegion Internal Functions diff --git a/build/Include/WinAPIShPath.au3 b/build/Include/WinAPIShPath.au3 deleted file mode 100644 index bfefc319d..000000000 --- a/build/Include/WinAPIShPath.au3 +++ /dev/null @@ -1,886 +0,0 @@ -#include-once - -#include "APIShPathConstants.au3" -#include "StringConstants.au3" -#include "WinAPIInternals.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIShPath.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_CommandLineToArgv -; _WinAPI_IsNameInExpression -; _WinAPI_ParseURL -; _WinAPI_ParseUserName -; _WinAPI_PathAddBackslash -; _WinAPI_PathAddExtension -; _WinAPI_PathAppend -; _WinAPI_PathBuildRoot -; _WinAPI_PathCanonicalize -; _WinAPI_PathCommonPrefix -; _WinAPI_PathCompactPath -; _WinAPI_PathCompactPathEx -; _WinAPI_PathCreateFromUrl -; _WinAPI_PathFindExtension -; _WinAPI_PathFindFileName -; _WinAPI_PathFindNextComponent -; _WinAPI_PathGetArgs -; _WinAPI_PathGetCharType -; _WinAPI_PathGetDriveNumber -; _WinAPI_PathIsContentType -; _WinAPI_PathIsExe -; _WinAPI_PathIsFileSpec -; _WinAPI_PathIsLFNFileSpec -; _WinAPI_PathIsRelative -; _WinAPI_PathIsRoot -; _WinAPI_PathIsSameRoot -; _WinAPI_PathIsSystemFolder -; _WinAPI_PathIsUNC -; _WinAPI_PathIsUNCServer -; _WinAPI_PathIsUNCServerShare -; _WinAPI_PathMakeSystemFolder -; _WinAPI_PathMatchSpec -; _WinAPI_PathParseIconLocation -; _WinAPI_PathRelativePathTo -; _WinAPI_PathRemoveArgs -; _WinAPI_PathRemoveBackslash -; _WinAPI_PathRemoveExtension -; _WinAPI_PathRemoveFileSpec -; _WinAPI_PathRenameExtension -; _WinAPI_PathSearchAndQualify -; _WinAPI_PathSkipRoot -; _WinAPI_PathStripPath -; _WinAPI_PathStripToRoot -; _WinAPI_PathUndecorate -; _WinAPI_PathUnExpandEnvStrings -; _WinAPI_PathUnmakeSystemFolder -; _WinAPI_PathUnquoteSpaces -; _WinAPI_PathYetAnotherMakeUniqueName -; _WinAPI_ShellGetImageList -; _WinAPI_UrlApplyScheme -; _WinAPI_UrlCanonicalize -; _WinAPI_UrlCombine -; _WinAPI_UrlCompare -; _WinAPI_UrlCreateFromPath -; _WinAPI_UrlFixup -; _WinAPI_UrlGetPart -; _WinAPI_UrlHash -; _WinAPI_UrlIs -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CommandLineToArgv($sCmd) - Local $aResult[1] = [0] - - $sCmd = StringStripWS($sCmd, $STR_STRIPLEADING + $STR_STRIPTRAILING) - If Not $sCmd Then - Return $aResult - EndIf - - Local $aRet = DllCall('shell32.dll', 'ptr', 'CommandLineToArgvW', 'wstr', $sCmd, 'int*', 0) - If @error Or Not $aRet[0] Or (Not $aRet[2]) Then Return SetError(@error + 10, @extended, 0) - - Local $tPtr = DllStructCreate('ptr[' & $aRet[2] & ']', $aRet[0]) - - Dim $aResult[$aRet[2] + 1] = [$aRet[2]] - For $i = 1 To $aRet[2] - $aResult[$i] = _WinAPI_GetString(DllStructGetData($tPtr, 1, $i)) - Next - ; _WinAPI_LocalFree($aRet[0]) - DllCall("kernel32.dll", "handle", "LocalFree", "handle", $aRet[0]) - - Return $aResult -EndFunc ;==>_WinAPI_CommandLineToArgv - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsNameInExpression($sString, $sPattern, $bCaseSensitive = False) - If Not $bCaseSensitive Then $sPattern = StringUpper($sPattern) - - Local $tUS1 = __US($sPattern) - Local $tUS2 = __US($sString) - Local $aRet = DllCall('ntdll.dll', 'boolean', 'RtlIsNameInExpression', 'struct*', $tUS1, 'struct*', $tUS2, _ - 'boolean', Not $bCaseSensitive, 'ptr', 0) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsNameInExpression - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ParseURL($sUrl) - Local $tagPARSEDURL = 'dword Size;ptr Protocol;uint cchProtocol;ptr Suffix;uint cchSuffix;uint Scheme' - Local $tPURL = DllStructCreate($tagPARSEDURL) - DllStructSetData($tPURL, 1, DllStructGetSize($tPURL)) - Local $tURL = DllStructCreate('wchar[4096]') ; needed as 'wstr', $sUrl is not working - DllStructSetData($tURL, 1, $sUrl) - - Local $aRet = DllCall('shlwapi.dll', 'long', 'ParseURLW', 'struct*', $tURL, 'struct*', $tPURL) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Local $aResult[3] - $aResult[0] = DllStructGetData(DllStructCreate('wchar[' & DllStructGetData($tPURL, 3) & ']', DllStructGetData($tPURL, 2)), 1) - $aResult[1] = DllStructGetData(DllStructCreate('wchar[' & DllStructGetData($tPURL, 5) & ']', DllStructGetData($tPURL, 4)), 1) - $aResult[2] = DllStructGetData($tPURL, 6) - Return $aResult -EndFunc ;==>_WinAPI_ParseURL - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ParseUserName($sUser) - If Not __DLL('credui.dll') Then Return SetError(103, 0, 0) - - Local $aRet = DllCall('credui.dll', 'dword', 'CredUIParseUserNameW', 'wstr', $sUser, 'wstr', '', 'ulong', 4096, 'wstr', '', _ - 'ulong', 4096) - If @error Then Return SetError(@error, @extended, 0) - Switch $aRet[0] - Case 0 - - Case 1315 ; ERROR_INVALID_ACCOUNT_NAME - If StringStripWS($sUser, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $aRet[2] = $sUser - $aRet[4] = '' - Else - ContinueCase - EndIf - Case Else - Return SetError(10, $aRet[0], 0) - EndSwitch - - Local $aResult[2] - $aResult[0] = $aRet[4] - $aResult[1] = $aRet[2] - Return $aResult -EndFunc ;==>_WinAPI_ParseUserName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_PathAddBackslash($sFilePath) - Local $tPath = DllStructCreate('wchar[260]') ; avoid buffer overflow - DllStructSetData($tPath, 1, $sFilePath) - - Local $aRet = DllCall('shlwapi.dll', 'ptr', 'PathAddBackslashW', 'struct*', $tPath) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - - Return DllStructGetData($tPath, 1) -EndFunc ;==>_WinAPI_PathAddBackslash - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_PathAddExtension($sFilePath, $sExt = '') - Local $tPath = DllStructCreate('wchar[260]') ; avoid buffer overflow - DllStructSetData($tPath, 1, $sFilePath) - - Local $sTypeOfExt = 'wstr' - If Not StringStripWS($sExt, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfExt = 'ptr' - $sExt = 0 - EndIf - - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathAddExtensionW', 'struct*', $tPath, $sTypeOfExt, $sExt) - If @error Then Return SetError(@error, @extended, '') - - Return SetExtended($aRet[0], DllStructGetData($tPath, 1)) -EndFunc ;==>_WinAPI_PathAddExtension - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_PathAppend($sFilePath, $sMore) - Local $tPath = DllStructCreate('wchar[260]') ; avoid buffer overflow - DllStructSetData($tPath, 1, $sFilePath) - - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathAppendW', 'struct*', $tPath, 'wstr', $sMore) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return DllStructGetData($tPath, 1) -EndFunc ;==>_WinAPI_PathAppend - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathBuildRoot($iDrive) - Local $aRet = DllCall('shlwapi.dll', 'ptr', 'PathBuildRootW', 'wstr', '', 'int', $iDrive) - If @error Then Return SetError(@error, @extended, '') - ; If Not $aRet[1] Then Return SetError(1000, 0, 0) - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathBuildRoot - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathCanonicalize($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathCanonicalizeW', 'wstr', '', 'wstr', $sFilePath) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, $sFilePath) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathCanonicalize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathCommonPrefix($sPath1, $sPath2) - Local $aRet = DllCall('shlwapi.dll', 'int', 'PathCommonPrefixW', 'wstr', $sPath1, 'wstr', $sPath2, 'wstr', '') - If @error Then Return SetError(@error, @extended, '') - - Return SetExtended($aRet[0], $aRet[3]) -EndFunc ;==>_WinAPI_PathCommonPrefix - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathCompactPath($hWnd, $sFilePath, $iWidth = 0) - If $iWidth < 1 Then - ; $iWidth += _WinAPI_GetClientWidth($hWnd) - Local $tRECT = DllStructCreate($tagRECT) - DllCall("user32.dll", "bool", "GetClientRect", "hwnd", $hWnd, "struct*", $tRECT) - $iWidth += DllStructGetData($tRECT, "Right") - DllStructGetData($tRECT, "Left") - EndIf - Local $aRet = DllCall('user32.dll', 'handle', 'GetDC', 'hwnd', $hWnd) - If @error Or Not $aRet[0] Then Return SetError(@error + 20, @extended, $sFilePath) - - Local $hDC = $aRet[0] - Local Const $WM_GETFONT = 0x0031 - $aRet = DllCall('user32.dll', 'ptr', 'SendMessage', 'hwnd', $hWnd, 'uint', $WM_GETFONT, 'wparam', 0, 'lparam', 0) ; $WM_GETFONT - - ; Local $hBack = _WinAPI_SelectObject($hDC, $aRet[0]) - Local $hBack = DllCall("gdi32.dll", "handle", "SelectObject", "handle", $hDC, "handle", $aRet[0]) - Local $iError = 0 - $aRet = DllCall('shlwapi.dll', 'bool', 'PathCompactPathW', 'handle', $hDC, 'wstr', $sFilePath, 'int', $iWidth) - If @error Or Not $aRet[0] Then $iError = @error + 10 - ; _WinAPI_SelectObject($hDC, $hBack[0]) - DllCall("gdi32.dll", "handle", "SelectObject", "handle", $hDC, "handle", $hBack[0]) - ; _WinAPI_ReleaseDC($hWnd, $hDC) - DllCall("user32.dll", "int", "ReleaseDC", "hwnd", $hWnd, "handle", $hDC) - If $iError Then Return SetError($iError, 0, $sFilePath) - - Return $aRet[2] -EndFunc ;==>_WinAPI_PathCompactPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathCompactPathEx($sFilePath, $iMax) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathCompactPathExW', 'wstr', '', 'wstr', $sFilePath, 'uint', $iMax + 1, 'dword', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, $sFilePath) - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathCompactPathEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathCreateFromUrl($sUrl) - Local $aRet = DllCall('shlwapi.dll', 'long', 'PathCreateFromUrlW', 'wstr', $sUrl, 'wstr', '', 'dword*', 4096, 'dword', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_PathCreateFromUrl - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathFindExtension($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'wstr', 'PathFindExtensionW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, '') - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathFindExtension - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathFindFileName($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'wstr', 'PathFindFileNameW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, $sFilePath) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathFindFileName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathFindNextComponent($sFilePath) - Local $tPath = DllStructCreate('wchar[' & (StringLen($sFilePath) + 1) & ']') - DllStructSetData($tPath, 1, $sFilePath) - - Local $aRet = DllCall('shlwapi.dll', 'ptr', 'PathFindNextComponentW', 'struct*', $tPath) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return _WinAPI_GetString($aRet[0]) -EndFunc ;==>_WinAPI_PathFindNextComponent - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathGetArgs($sFilePath) - Local $tPath = DllStructCreate('wchar[' & (StringLen($sFilePath) + 1) & ']') - DllStructSetData($tPath, 1, $sFilePath) - - Local $aRet = DllCall('shlwapi.dll', 'ptr', 'PathGetArgsW', 'struct*', $tPath) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - - Return _WinAPI_GetString($aRet[0]) -EndFunc ;==>_WinAPI_PathGetArgs - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathGetCharType($sChar) - Local $aRet = DllCall('shlwapi.dll', 'uint', 'PathGetCharTypeW', 'word', AscW($sChar)) - If @error Then Return SetError(@error, @extended, -1) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathGetCharType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathGetDriveNumber($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'int', 'PathGetDriveNumberW', 'wstr', $sFilePath) - If @error Or ($aRet[0] = -1) Then Return SetError(@error, @extended, '') - ; If $aRet[0] = -1 Then Return SetError(1000, 0, '') - - Return Chr($aRet[0] + 65) & ':' -EndFunc ;==>_WinAPI_PathGetDriveNumber - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsContentType($sFilePath, $sType) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsContentTypeW', 'wstr', $sFilePath, 'wstr', $sType) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsContentType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsExe($sFilePath) - Local $aRet = DllCall('shell32.dll', 'bool', 'PathIsExe', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsExe - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsFileSpec($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsFileSpecW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsFileSpec - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsLFNFileSpec($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsLFNFileSpecW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsLFNFileSpec - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsRelative($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsRelativeW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsRelative - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsRoot($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsRootW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsRoot - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsSameRoot($sPath1, $sPath2) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsSameRootW', 'wstr', $sPath1, 'wstr', $sPath2) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsSameRoot - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsSystemFolder($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsSystemFolderW', 'wstr', $sFilePath, 'dword', 0) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsSystemFolder - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsUNC($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsUNCW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsUNC - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsUNCServer($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsUNCServerW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsUNCServer - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathIsUNCServerShare($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathIsUNCServerShareW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathIsUNCServerShare - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathMakeSystemFolder($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathMakeSystemFolderW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathMakeSystemFolder - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathMatchSpec($sFilePath, $sSpec) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathMatchSpecW', 'wstr', $sFilePath, 'wstr', $sSpec) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathMatchSpec - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathParseIconLocation($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'int', 'PathParseIconLocationW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, 0) - - Local $aResult[2] - $aResult[0] = $aRet[1] - $aResult[1] = $aRet[0] - Return $aResult -EndFunc ;==>_WinAPI_PathParseIconLocation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Mat -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_PathRelativePathTo($sPathFrom, $bDirFrom, $sPathTo, $bDirTo) - If $bDirFrom Then - $bDirFrom = 0x10 - EndIf - If $bDirTo Then - $bDirTo = 0x10 - EndIf - - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathRelativePathToW', 'wstr', '', 'wstr', $sPathFrom, 'dword', $bDirFrom, _ - 'wstr', $sPathTo, 'dword', $bDirTo) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathRelativePathTo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathRemoveArgs($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'none', 'PathRemoveArgsW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathRemoveArgs - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathRemoveBackslash($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'ptr', 'PathRemoveBackslashW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathRemoveBackslash - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathRemoveExtension($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'none', 'PathRemoveExtensionW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathRemoveExtension - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathRemoveFileSpec($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathRemoveFileSpecW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, '') - - Return SetExtended($aRet[0], $aRet[1]) -EndFunc ;==>_WinAPI_PathRemoveFileSpec - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_PathRenameExtension($sFilePath, $sExt) - Local $tPath = DllStructCreate('wchar[260]') ; as described in MSDN - DllStructSetData($tPath, 1, $sFilePath) - - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathRenameExtensionW', 'struct*', $tPath, 'wstr', $sExt) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, '') - - Return DllStructGetData($tPath, 1) -EndFunc ;==>_WinAPI_PathRenameExtension - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathSearchAndQualify($sFilePath, $bExists = False) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathSearchAndQualifyW', 'wstr', $sFilePath, 'wstr', '', 'int', 4096) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - If $bExists And Not FileExists($aRet[2]) Then Return SetError(20, 0, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_PathSearchAndQualify - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathSkipRoot($sFilePath) - Local $tPath = DllStructCreate('wchar[' & (StringLen($sFilePath) + 1) & ']') - DllStructSetData($tPath, 1, $sFilePath) - - Local $aRet = DllCall('shlwapi.dll', 'ptr', 'PathSkipRootW', 'struct*', $tPath) - If @error Then Return SetError(@error, @extended, '') - If Not $aRet[0] Then Return $sFilePath - - Return _WinAPI_GetString($aRet[0]) -EndFunc ;==>_WinAPI_PathSkipRoot - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathStripPath($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'none', 'PathStripPathW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathStripPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathStripToRoot($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathStripToRootW', 'wstr', $sFilePath) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathStripToRoot - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathUndecorate($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'none', 'PathUndecorateW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathUndecorate - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathUnExpandEnvStrings($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathUnExpandEnvStringsW', 'wstr', $sFilePath, 'wstr', '', 'uint', 4096) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_PathUnExpandEnvStrings - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathUnmakeSystemFolder($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'PathUnmakeSystemFolderW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_PathUnmakeSystemFolder - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_PathUnquoteSpaces($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'none', 'PathUnquoteSpacesW', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathUnquoteSpaces - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_PathYetAnotherMakeUniqueName($sFilePath) - Local $aRet = DllCall('shell32.dll', 'int', 'PathYetAnotherMakeUniqueName', 'wstr', '', 'wstr', $sFilePath, 'ptr', 0, 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_PathYetAnotherMakeUniqueName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetImageList($bSmall = False) - Local $pLarge, $pSmall, $tPtr = DllStructCreate('ptr') - If $bSmall Then - $pLarge = 0 - $pSmall = DllStructGetPtr($tPtr) - Else - $pLarge = DllStructGetPtr($tPtr) - $pSmall = 0 - EndIf - - Local $aRet = DllCall('shell32.dll', 'int', 'Shell_GetImageLists', 'ptr', $pLarge, 'ptr', $pSmall) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return DllStructGetData($tPtr, 1) -EndFunc ;==>_WinAPI_ShellGetImageList - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UrlApplyScheme($sUrl, $iFlags = 1) - Local $aRet = DllCall('shlwapi.dll', 'long', 'UrlApplySchemeW', 'wstr', $sUrl, 'wstr', '', 'dword*', 4096, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_UrlApplyScheme - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UrlCanonicalize($sUrl, $iFlags) - Local $aRet = DllCall('shlwapi.dll', 'long', 'UrlCanonicalizeW', 'wstr', $sUrl, 'wstr', '', 'dword*', 4096, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_UrlCanonicalize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UrlCombine($sUrl, $sPart, $iFlags = 0) - Local $aRet = DllCall('shlwapi.dll', 'long', 'UrlCombineW', 'wstr', $sUrl, 'wstr', $sPart, 'wstr', '', 'dword*', 4096, _ - 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[3] -EndFunc ;==>_WinAPI_UrlCombine - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UrlCompare($sUrl1, $sUrl2, $bIgnoreSlash = False) - Local $aRet = DllCall('shlwapi.dll', 'int', 'UrlCompareW', 'wstr', $sUrl1, 'wstr', $sUrl2, 'bool', $bIgnoreSlash) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UrlCompare - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UrlCreateFromPath($sFilePath) - Local $aRet = DllCall('shlwapi.dll', 'long', 'UrlCreateFromPathW', 'wstr', $sFilePath, 'wstr', '', 'dword*', 4096, 'dword', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] < 0 Or $aRet[0] > 1 Then ; S_OK, S_FALSE - Return SetError(10, $aRet[0], '') - EndIf - - Return $aRet[2] -EndFunc ;==>_WinAPI_UrlCreateFromPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UrlFixup($sUrl) - Local $aRet = DllCall('shlwapi.dll', 'long', 'UrlFixupW', 'wstr', $sUrl, 'wstr', '', 'dword', 4096) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_UrlFixup - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UrlGetPart($sUrl, $iPart) - Local $aRet = DllCall('shlwapi.dll', 'long', 'UrlGetPartW', 'wstr', $sUrl, 'wstr', '', 'dword*', 4096, 'dword', $iPart, _ - 'dword', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_UrlGetPart - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UrlHash($sUrl, $iLength = 32) - If $iLength <= 0 Or $iLength > 256 Then Return SetError(256, 0, 0) - - Local $tData = DllStructCreate('byte[' & $iLength & ']') - - Local $aRet = DllCall('shlwapi.dll', 'long', 'UrlHashW', 'wstr', $sUrl, 'struct*', $tData, 'dword', $iLength) - If @error Then Return SetError(@error + 10, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return DllStructGetData($tData, 1) -EndFunc ;==>_WinAPI_UrlHash - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_UrlIs($sUrl, $iType = 0) - Local $aRet = DllCall('shlwapi.dll', 'bool', 'UrlIsW', 'wstr', $sUrl, 'uint', $iType) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UrlIs - -#EndRegion Public Functions - -#Region Internal Functions - -Func __US($sString, $iLength = 0) - If $iLength Then - $sString = StringLeft($sString, $iLength) - Else - $iLength = StringLen($sString) - EndIf - - Local $tUS = DllStructCreate('ushort;ushort;ptr;wchar[' & ($iLength + 1) & ']') - DllStructSetData($tUS, 1, 2 * StringLen($sString)) - DllStructSetData($tUS, 2, 2 * $iLength) - DllStructSetData($tUS, 3, DllStructGetPtr($tUS, 4)) - DllStructSetData($tUS, 4, $sString) - Return $tUS -EndFunc ;==>__US - -#EndRegion Internal Functions diff --git a/build/Include/WinAPIShellEx.au3 b/build/Include/WinAPIShellEx.au3 deleted file mode 100644 index afd99d41d..000000000 --- a/build/Include/WinAPIShellEx.au3 +++ /dev/null @@ -1,865 +0,0 @@ -#include-once - -#include "APIShellExConstants.au3" -#include "WinAPICom.au3" -#include "WinAPIShPath.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPIShellEx.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $tagNOTIFYICONDATA = 'struct;dword Size;hwnd hWnd;uint ID;uint Flags;uint CallbackMessage;ptr hIcon;wchar Tip[128];dword State;dword StateMask;wchar Info[256];uint Version;wchar InfoTitle[64];dword InfoFlags;endstruct' -Global Const $tagNOTIFYICONDATA_V3 = $tagNOTIFYICONDATA & ';' & $tagGUID -Global Const $tagNOTIFYICONDATA_V4 = $tagNOTIFYICONDATA_V3 & ';ptr hBalloonIcon;' -Global Const $tagSHELLEXECUTEINFO = 'dword Size;ulong Mask;hwnd hWnd;ptr Verb;ptr File;ptr Parameters;ptr Directory;int Show;ulong_ptr hInstApp;ptr IDList;ptr Class;ulong_ptr hKeyClass;dword HotKey;ptr hMonitor;ptr hProcess' -Global Const $tagSHFILEINFO = 'ptr hIcon;int iIcon;dword Attributes;wchar DisplayName[260];wchar TypeName[80]' -Global Const $tagSHFILEOPSTRUCT = 'hwnd hWnd;uint Func;ptr From;ptr To;dword Flags;int fAnyOperationsAborted;ptr hNameMappings;ptr ProgressTitle' -Global Const $tagSHFOLDERCUSTOMSETTINGS = 'dword Size;dword Mask;ptr GUID;ptr WebViewTemplate;dword SizeWVT;ptr WebViewTemplateVersion;ptr InfoTip;dword SizeIT;ptr CLSID;dword Flags;ptr IconFile;dword SizeIF;int IconIndex;ptr Logo;dword SizeL' -Global Const $tagSHSTOCKICONINFO = 'dword Size;ptr hIcon;int SysImageIndex;int iIcon;wchar Path[260]' -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_DefSubclassProc -; _WinAPI_DllGetVersion -; _WinAPI_GetAllUsersProfileDirectory -; _WinAPI_GetDefaultUserProfileDirectory -; _WinAPI_GetWindowSubclass -; _WinAPI_RemoveWindowSubclass -; _WinAPI_SetCurrentProcessExplicitAppUserModelID -; _WinAPI_SetWindowSubclass -; _WinAPI_ShellAddToRecentDocs -; _WinAPI_ShellChangeNotify -; _WinAPI_ShellChangeNotifyDeregister -; _WinAPI_ShellChangeNotifyRegister -; _WinAPI_ShellCreateDirectory -; _WinAPI_ShellEmptyRecycleBin -; _WinAPI_ShellExecute -; _WinAPI_ShellExecuteEx -; _WinAPI_ShellExtractAssociatedIcon -; _WinAPI_ShellExtractIcon -; _WinAPI_ShellFileOperation -; _WinAPI_ShellFlushSFCache -; _WinAPI_ShellGetFileInfo -; _WinAPI_ShellGetIconOverlayIndex -; _WinAPI_ShellGetKnownFolderIDList -; _WinAPI_ShellGetKnownFolderPath -; _WinAPI_ShellGetLocalizedName -; _WinAPI_ShellGetPathFromIDList -; _WinAPI_ShellGetSetFolderCustomSettings -; _WinAPI_ShellGetSettings -; _WinAPI_ShellGetSpecialFolderLocation -; _WinAPI_ShellGetSpecialFolderPath -; _WinAPI_ShellGetStockIconInfo -; _WinAPI_ShellILCreateFromPath -; _WinAPI_ShellNotifyIcon -; _WinAPI_ShellNotifyIconGetRect -; _WinAPI_ShellObjectProperties -; _WinAPI_ShellOpenFolderAndSelectItems -; _WinAPI_ShellQueryRecycleBin -; _WinAPI_ShellQueryUserNotificationState -; _WinAPI_ShellRemoveLocalizedName -; _WinAPI_ShellRestricted -; _WinAPI_ShellSetKnownFolderPath -; _WinAPI_ShellSetLocalizedName -; _WinAPI_ShellSetSettings -; _WinAPI_ShellUpdateImage -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DefSubclassProc($hWnd, $iMsg, $wParam, $lParam) - Local $aRet = DllCall('comctl32.dll', 'lresult', 'DefSubclassProc', 'hwnd', $hWnd, 'uint', $iMsg, 'wparam', $wParam, _ - 'lparam', $lParam) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DefSubclassProc - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DllGetVersion($sFilePath) - Local $tVersion = DllStructCreate('dword[5]') - DllStructSetData($tVersion, 1, DllStructGetSize($tVersion), 1) - - Local $aRet = DllCall($sFilePath, 'uint', 'DllGetVersion', 'struct*', $tVersion) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $aResult[4] - For $i = 0 To 3 - $aResult[$i] = DllStructGetData($tVersion, 1, $i + 2) - Next - Return $aResult -EndFunc ;==>_WinAPI_DllGetVersion - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetAllUsersProfileDirectory() - Local $aRet = DllCall('userenv.dll', 'bool', 'GetAllUsersProfileDirectoryW', 'wstr', '', 'dword*', 4096) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[1] -EndFunc ;==>_WinAPI_GetAllUsersProfileDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetDefaultUserProfileDirectory() - Local $aRet = DllCall('userenv.dll', 'bool', 'GetDefaultUserProfileDirectoryW', 'wstr', '', 'dword*', 4096) - If @error Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_GetDefaultUserProfileDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetWindowSubclass($hWnd, $pSubclassProc, $idSubClass) - Local $aRet = DllCall('comctl32.dll', 'bool', 'GetWindowSubclass', 'hwnd', $hWnd, 'ptr', $pSubclassProc, 'uint_ptr', $idSubClass, _ - 'dword_ptr*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $aRet[4] -EndFunc ;==>_WinAPI_GetWindowSubclass - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RemoveWindowSubclass($hWnd, $pSubclassProc, $idSubClass) - Local $aRet = DllCall('comctl32.dll', 'bool', 'RemoveWindowSubclass', 'hwnd', $hWnd, 'ptr', $pSubclassProc, 'uint_ptr', $idSubClass) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RemoveWindowSubclass - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetCurrentProcessExplicitAppUserModelID($sAppID) - Local $aRet = DllCall('shell32.dll', 'long', 'SetCurrentProcessExplicitAppUserModelID', 'wstr', $sAppID) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_SetCurrentProcessExplicitAppUserModelID - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetWindowSubclass($hWnd, $pSubclassProc, $idSubClass, $pData = 0) - Local $aRet = DllCall('comctl32.dll', 'bool', 'SetWindowSubclass', 'hwnd', $hWnd, 'ptr', $pSubclassProc, 'uint_ptr', $idSubClass, _ - 'dword_ptr', $pData) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetWindowSubclass - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellAddToRecentDocs($sFilePath) - Local $sTypeOfFile = 'wstr' - If StringStripWS($sFilePath, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sFilePath = _WinAPI_PathSearchAndQualify($sFilePath, 1) - If Not $sFilePath Then - Return SetError(1, 0, 0) - EndIf - Else - $sTypeOfFile = 'ptr' - $sFilePath = 0 - EndIf - - DllCall('shell32.dll', 'none', 'SHAddToRecentDocs', 'uint', 3, $sTypeOfFile, $sFilePath) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellAddToRecentDocs - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellChangeNotify($iEvent, $iFlags, $iItem1 = 0, $iItem2 = 0) - Local $sTypeOfItem1 = 'dword_ptr', $sTypeOfItem2 = 'dword_ptr' - If IsString($iItem1) Then - $sTypeOfItem1 = 'wstr' - EndIf - If IsString($iItem2) Then - $sTypeOfItem2 = 'wstr' - EndIf - - DllCall('shell32.dll', 'none', 'SHChangeNotify', 'long', $iEvent, 'uint', $iFlags, $sTypeOfItem1, $iItem1, $sTypeOfItem2, $iItem2) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellChangeNotify - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellChangeNotifyDeregister($iID) - Local $aRet = DllCall('shell32.dll', 'bool', 'SHChangeNotifyDeregister', 'ulong', $iID) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShellChangeNotifyDeregister - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellChangeNotifyRegister($hWnd, $iMsg, $iEvents, $iSources, $aPaths, $bRecursive = False) - Local $iPath = $aPaths, $tagStruct = '' - - If IsArray($aPaths) Then - If UBound($aPaths, $UBOUND_COLUMNS) Then Return SetError(1, 0, 0) - Else - Dim $aPaths[1] = [$iPath] - EndIf - For $i = 0 To UBound($aPaths) - 1 - If Not _WinAPI_PathIsDirectory($aPaths[$i]) Then Return SetError(2, 0, 0) - Next - For $i = 0 To UBound($aPaths) - 1 - $tagStruct &= 'ptr;int;' - Next - Local $tEntry = DllStructCreate($tagStruct) - For $i = 0 To UBound($aPaths) - 1 - $aPaths[$i] = _WinAPI_ShellILCreateFromPath(_WinAPI_PathSearchAndQualify($aPaths[$i])) - DllStructSetData($tEntry, 2 * $i + 1, $aPaths[$i]) - DllStructSetData($tEntry, 2 * $i + 2, $bRecursive) - Next - - Local $iError = 0 - Local $aRet = DllCall('shell32.dll', 'ulong', 'SHChangeNotifyRegister', 'hwnd', $hWnd, 'int', $iSources, 'long', $iEvents, _ - 'uint', $iMsg, 'int', UBound($aPaths), 'struct*', $tEntry) - If @error Or Not $aRet[0] Then $iError = @error + 10 - - For $i = 0 To UBound($aPaths) - 1 - _WinAPI_CoTaskMemFree($aPaths[$i]) - Next - - Return SetError($iError, 0, $aRet[0]) -EndFunc ;==>_WinAPI_ShellChangeNotifyRegister - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellCreateDirectory($sFilePath, $hParent = 0, $tSecurity = 0) - Local $aRet = DllCall('shell32.dll', 'int', 'SHCreateDirectoryExW', 'hwnd', $hParent, 'wstr', $sFilePath, 'struct*', $tSecurity) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellCreateDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellEmptyRecycleBin($sRoot = '', $iFlags = 0, $hParent = 0) - Local $aRet = DllCall('shell32.dll', 'long', 'SHEmptyRecycleBinW', 'hwnd', $hParent, 'wstr', $sRoot, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellEmptyRecycleBin - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellExecute($sFilePath, $sArgs = '', $sDir = '', $sVerb = '', $iShow = 1, $hParent = 0) - Local $sTypeOfArgs = 'wstr', $sTypeOfDir = 'wstr', $sTypeOfVerb = 'wstr' - If Not StringStripWS($sArgs, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfArgs = 'ptr' - $sArgs = 0 - EndIf - If Not StringStripWS($sDir, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfDir = 'ptr' - $sDir = 0 - EndIf - If Not StringStripWS($sVerb, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfVerb = 'ptr' - $sVerb = 0 - EndIf - - Local $aRet = DllCall('shell32.dll', 'ULONG_PTR', 'ShellExecuteW', 'hwnd', $hParent, $sTypeOfVerb, $sVerb, 'wstr', $sFilePath, _ - $sTypeOfArgs, $sArgs, $sTypeOfDir, $sDir, 'int', $iShow) - If @error Then Return SetError(@error, @extended, False) - If $aRet[0] <= 32 Then Return SetError(10, $aRet[0], 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShellExecute - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellExecuteEx(ByRef $tSHEXINFO) - Local $aRet = DllCall('shell32.dll', 'bool', 'ShellExecuteExW', 'struct*', $tSHEXINFO) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShellExecuteEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellExtractAssociatedIcon($sFilePath, $bSmall = False) - Local $iFlags = 0x00000100 - If Not _WinAPI_PathIsDirectory($sFilePath) Then - $iFlags = BitOR($iFlags, 0x00000010) - EndIf - If $bSmall Then - $iFlags = BitOR($iFlags, 0x00000001) - EndIf - - Local $tSHFILEINFO = DllStructCreate($tagSHFILEINFO) - If Not _WinAPI_ShellGetFileInfo($sFilePath, $iFlags, 0, $tSHFILEINFO) Then Return SetError(@error + 10, @extended, 0) - - Return DllStructGetData($tSHFILEINFO, 'hIcon') -EndFunc ;==>_WinAPI_ShellExtractAssociatedIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellExtractIcon($sIcon, $iIndex, $iWidth, $iHeight) - Local $aRet = DllCall('shell32.dll', 'int', 'SHExtractIconsW', 'wstr', $sIcon, 'int', $iIndex, 'int', $iWidth, _ - 'int', $iHeight, 'ptr*', 0, 'ptr*', 0, 'int', 1, 'int', 0) - If @error Or Not $aRet[0] Or Not $aRet[5] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_ShellExtractIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellFileOperation($sFrom, $sTo, $iFunc, $iFlags, $sTitle = '', $hParent = 0) - Local $iData - If Not IsArray($sFrom) Then - $iData = $sFrom - Dim $sFrom[1] = [$iData] - EndIf - Local $tFrom = _WinAPI_ArrayToStruct($sFrom) - If @error Then Return SetError(@error + 20, @extended, 0) - - If Not IsArray($sTo) Then - $iData = $sTo - Dim $sTo[1] = [$iData] - EndIf - Local $tTo = _WinAPI_ArrayToStruct($sTo) - If @error Then Return SetError(@error + 30, @extended, 0) - - Local $tSHFILEOPSTRUCT = DllStructCreate($tagSHFILEOPSTRUCT) - DllStructSetData($tSHFILEOPSTRUCT, 'hWnd', $hParent) - DllStructSetData($tSHFILEOPSTRUCT, 'Func', $iFunc) - DllStructSetData($tSHFILEOPSTRUCT, 'From', DllStructGetPtr($tFrom)) - DllStructSetData($tSHFILEOPSTRUCT, 'To', DllStructGetPtr($tTo)) - DllStructSetData($tSHFILEOPSTRUCT, 'Flags', $iFlags) - DllStructSetData($tSHFILEOPSTRUCT, 'ProgressTitle', $sTitle) - - Local $aRet = DllCall('shell32.dll', 'int', 'SHFileOperationW', 'struct*', $tSHFILEOPSTRUCT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tSHFILEOPSTRUCT -EndFunc ;==>_WinAPI_ShellFileOperation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellFlushSFCache() - DllCall('shell32.dll', 'none', 'SHFlushSFCache') - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellFlushSFCache - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetFileInfo($sFilePath, $iFlags, $iAttributes, ByRef $tSHFILEINFO) - Local $aRet = DllCall('shell32.dll', 'dword_ptr', 'SHGetFileInfoW', 'wstr', $sFilePath, 'dword', $iAttributes, _ - 'struct*', $tSHFILEINFO, 'uint', DllStructGetSize($tSHFILEINFO), 'uint', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShellGetFileInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetIconOverlayIndex($sIcon, $iIndex) - Local $sTypeOfIcon = 'wstr' - If Not StringStripWS($sIcon, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfIcon = 'ptr' - $sIcon = 0 - EndIf - - Local $aRet = DllCall('shell32.dll', 'int', 'SHGetIconOverlayIndexW', $sTypeOfIcon, $sIcon, 'int', $iIndex) - If @error Or ($aRet[0] = -1) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = -1 Then Return SetError(1000, 0, -1) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShellGetIconOverlayIndex - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetKnownFolderIDList($sGUID, $iFlags = 0, $hToken = 0) - Local $tGUID = DllStructCreate($tagGUID) - Local $aRet = DllCall('ole32.dll', 'uint', 'CLSIDFromString', 'wstr', $sGUID, 'struct*', $tGUID) - If @error Or $aRet[0] Then Return SetError(@error + 20, @extended, 0) - - $aRet = DllCall('shell32.dll', 'uint', 'SHGetKnownFolderIDList', 'struct*', $tGUID, 'dword', $iFlags, 'handle', $hToken, 'ptr*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[4] -EndFunc ;==>_WinAPI_ShellGetKnownFolderIDList - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetKnownFolderPath($sGUID, $iFlags = 0, $hToken = 0) - Local $tGUID = DllStructCreate($tagGUID) - Local $aRet = DllCall('ole32.dll', 'long', 'CLSIDFromString', 'wstr', $sGUID, 'struct*', $tGUID) - If @error Or $aRet[0] Then Return SetError(@error + 20, @extended, '') - - $aRet = DllCall('shell32.dll', 'long', 'SHGetKnownFolderPath', 'struct*', $tGUID, 'dword', $iFlags, 'handle', $hToken, 'ptr*', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Local $sPath = _WinAPI_GetString($aRet[4]) - _WinAPI_CoTaskMemFree($aRet[4]) - Return $sPath -EndFunc ;==>_WinAPI_ShellGetKnownFolderPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetLocalizedName($sFilePath) - Local $aRet = DllCall('shell32.dll', 'long', 'SHGetLocalizedName', 'wstr', $sFilePath, 'wstr', '', 'uint*', 0, 'int*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $aResult[2] - ; $aResult[0] = _WinAPI_ExpandEnvironmentStrings($aRet[2]) - Local $aRet1 = DllCall("kernel32.dll", "dword", "ExpandEnvironmentStringsW", "wstr", $aRet[2], "wstr", "", "dword", 4096) - $aResult[0] = $aRet1[2] - - $aResult[1] = $aRet[4] - Return $aResult -EndFunc ;==>_WinAPI_ShellGetLocalizedName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetPathFromIDList($pPIDL) - Local $aRet = DllCall('shell32.dll', 'bool', 'SHGetPathFromIDListW', 'struct*', $pPIDL, 'wstr', '') - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_ShellGetPathFromIDList - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetSetFolderCustomSettings($sFilePath, $iFlag, ByRef $tSHFCS) - Local $sProc = 'SHGetSetFolderCustomSettings' - If $__WINVER < 0x0600 Then $sProc &= 'W' - - Local $aRet = DllCall('shell32.dll', 'long', $sProc, 'struct*', $tSHFCS, 'wstr', $sFilePath, 'dword', $iFlag) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellGetSetFolderCustomSettings - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetSettings($iFlags) - Local $tSHELLSTATE = DllStructCreate('uint[8]') - DllCall('shell32.dll', 'none', 'SHGetSetSettings', 'struct*', $tSHELLSTATE, 'dword', $iFlags, 'bool', 0) - If @error Then Return SetError(@error, @extended, 0) - - Local $iVal1 = DllStructGetData($tSHELLSTATE, 1, 1) - Local $iVal2 = DllStructGetData($tSHELLSTATE, 1, 8) - Local $iResult = 0 - Local $aOpt[20][2] = _ - [[0x00000001, 0x00000001], _ - [0x00000002, 0x00000002], _ - [0x00000004, 0x00008000], _ - [0x00000008, 0x00000020], _ - [0x00000010, 0x00000008], _ - [0x00000020, 0x00000080], _ - [0x00000040, 0x00000200], _ - [0x00000080, 0x00000400], _ - [0x00000100, 0x00000800], _ - [0x00000400, 0x00001000], _ - [0x00000800, 0x00002000], _ - [0x00001000, 0x00004000], _ - [0x00002000, 0x00020000], _ - [0x00008000, 0x00040000], _ - [0x00010000, 0x00100000], _ - [0x00000001, 0x00080000], _ - [0x00000002, 0x00200000], _ - [0x00000008, 0x00800000], _ - [0x00000010, 0x01000000], _ - [0x00000020, 0x02000000]] - - For $i = 0 To 14 - If BitAND($iVal1, $aOpt[$i][0]) Then - $iResult += $aOpt[$i][1] - EndIf - Next - For $i = 15 To 19 - If BitAND($iVal2, $aOpt[$i][0]) Then - $iResult += $aOpt[$i][1] - EndIf - Next - Return $iResult -EndFunc ;==>_WinAPI_ShellGetSettings - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetSpecialFolderLocation($iCSIDL) - Local $aRet = DllCall('shell32.dll', 'long', 'SHGetSpecialFolderLocation', 'hwnd', 0, 'int', $iCSIDL, 'ptr*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_ShellGetSpecialFolderLocation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetSpecialFolderPath($iCSIDL, $bCreate = False) - Local $aRet = DllCall('shell32.dll', 'bool', 'SHGetSpecialFolderPathW', 'hwnd', 0, 'wstr', '', 'int', $iCSIDL, 'bool', $bCreate) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_ShellGetSpecialFolderPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellGetStockIconInfo($iSIID, $iFlags) - Local $tSHSTOCKICONINFO = DllStructCreate($tagSHSTOCKICONINFO) - DllStructSetData($tSHSTOCKICONINFO, 'Size', DllStructGetSize($tSHSTOCKICONINFO)) - - Local $aRet = DllCall('shell32.dll', 'long', 'SHGetStockIconInfo', 'int', $iSIID, 'uint', $iFlags, 'struct*', $tSHSTOCKICONINFO) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tSHSTOCKICONINFO -EndFunc ;==>_WinAPI_ShellGetStockIconInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellILCreateFromPath($sFilePath) - Local $aRet = DllCall('shell32.dll', 'long', 'SHILCreateFromPath', 'wstr', $sFilePath, 'ptr*', 0, 'dword*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_ShellILCreateFromPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellNotifyIcon($iMessage, ByRef $tNOTIFYICONDATA) - Local $aRet = DllCall('shell32.dll', 'bool', 'Shell_NotifyIconW', 'dword', $iMessage, 'struct*', $tNOTIFYICONDATA) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShellNotifyIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellNotifyIconGetRect($hWnd, $iID, $tGUID = 0) - Local $tNII = DllStructCreate('dword;hwnd;uint;' & $tagGUID) - DllStructSetData($tNII, 1, DllStructGetSize($tNII)) - DllStructSetData($tNII, 2, $hWnd) - DllStructSetData($tNII, 3, $iID) - - If IsDllStruct($tGUID) Then - If Not _WinAPI_MoveMemory(DllStructGetPtr($tNII, 4), $tGUID, 16) Then Return SetError(@error + 10, @extended, 0) - EndIf - - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('shell32.dll', 'long', 'Shell_NotifyIconGetRect', 'struct*', $tNII, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tRECT -EndFunc ;==>_WinAPI_ShellNotifyIconGetRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShellObjectProperties($sFilePath, $iType = 2, $sProperty = '', $hParent = 0) - Local $sTypeOfProperty = 'wstr' - If Not StringStripWS($sProperty, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfProperty = 'ptr' - $sProperty = 0 - EndIf - - Local $aRet = DllCall('shell32.dll', 'bool', 'SHObjectProperties', 'hwnd', $hParent, 'dword', $iType, 'wstr', $sFilePath, _ - $sTypeOfProperty, $sProperty) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShellObjectProperties - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellOpenFolderAndSelectItems($sFilePath, $aNames = 0, $iStart = 0, $iEnd = -1, $iFlags = 0) - Local $pPIDL, $aRet, $tPtr = 0, $iCount = 0, $iObj = 0, $iError = 0 - - $sFilePath = _WinAPI_PathRemoveBackslash(_WinAPI_PathSearchAndQualify($sFilePath)) - If IsArray($aNames) Then - If $sFilePath And Not _WinAPI_PathIsDirectory($sFilePath) Then Return SetError(@error + 20, @extended, 0) - EndIf - $pPIDL = _WinAPI_ShellILCreateFromPath($sFilePath) - If @error Then Return SetError(@error + 30, @extended, 0) - If Not __CheckErrorArrayBounds($aNames, $iStart, $iEnd) Then - $tPtr = DllStructCreate('ptr[' & ($iEnd - $iStart + 1) & ']') - For $i = $iStart To $iEnd - $iCount += 1 - If $aNames[$i] Then - DllStructSetData($tPtr, 1, _WinAPI_ShellILCreateFromPath($sFilePath & '\' & $aNames[$i]), $iCount) - Else - DllStructSetData($tPtr, 1, 0, $iCount) - EndIf - Next - EndIf - If _WinAPI_CoInitialize() Then $iObj = 1 - $aRet = DllCall('shell32.dll', 'long', 'SHOpenFolderAndSelectItems', 'ptr', $pPIDL, 'uint', $iCount, 'struct*', $tPtr, _ - 'dword', $iFlags) - If @error Then - $iError = @error + 10 - Else - If $aRet[0] Then $iError = 10 - EndIf - If $iObj Then _WinAPI_CoUninitialize() - _WinAPI_CoTaskMemFree($pPIDL) - For $i = 1 To $iCount - $pPIDL = DllStructGetData($tPtr, $i) - If $pPIDL Then - _WinAPI_CoTaskMemFree($pPIDL) - EndIf - Next - If $iError = 10 Then Return SetError(10, $aRet[0], 0) - If $iError Then Return SetError($iError, 0, 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellOpenFolderAndSelectItems - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellQueryRecycleBin($sRoot = '') - Local $tSHQRBI = DllStructCreate('align 4;dword_ptr;int64;int64') - DllStructSetData($tSHQRBI, 1, DllStructGetSize($tSHQRBI)) - - Local $aRet = DllCall('shell32.dll', 'long', 'SHQueryRecycleBinW', 'wstr', $sRoot, 'struct*', $tSHQRBI) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $aResult[2] - $aResult[0] = DllStructGetData($tSHQRBI, 2) - $aResult[1] = DllStructGetData($tSHQRBI, 3) - Return $aResult -EndFunc ;==>_WinAPI_ShellQueryRecycleBin - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellQueryUserNotificationState() - Local $aRet = DllCall('shell32.dll', 'long', 'SHQueryUserNotificationState', 'uint*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[1] -EndFunc ;==>_WinAPI_ShellQueryUserNotificationState - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellRemoveLocalizedName($sFilePath) - Local $aRet = DllCall('shell32.dll', 'long', 'SHRemoveLocalizedName', 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellRemoveLocalizedName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellRestricted($iRestriction) - Local $aRet = DllCall('shell32.dll', 'dword', 'SHRestricted', 'uint', $iRestriction) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShellRestricted - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellSetKnownFolderPath($sGUID, $sFilePath, $iFlags = 0, $hToken = 0) - Local $tGUID = DllStructCreate($tagGUID) - Local $aRet = DllCall('ole32.dll', 'long', 'CLSIDFromString', 'wstr', $sGUID, 'struct*', $tGUID) - If @error Or $aRet[0] Then Return SetError(@error + 20, @extended, 0) - - $aRet = DllCall('shell32.dll', 'long', 'SHSetKnownFolderPath', 'struct*', $tGUID, 'dword', $iFlags, 'handle', $hToken, 'wstr', $sFilePath) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellSetKnownFolderPath - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellSetLocalizedName($sFilePath, $sModule, $iResID) - Local $aRet = DllCall('shell32.dll', 'long', 'SHSetLocalizedName', 'wstr', $sFilePath, 'wstr', $sModule, 'int', $iResID) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellSetLocalizedName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellSetSettings($iFlags, $bSet) - Local $iVal1 = 0, $iVal2 = 0 - Local $aOpt[20][2] = _ - [[0x00000001, 0x00000001], _ - [0x00000002, 0x00000002], _ - [0x00000004, 0x00008000], _ - [0x00000008, 0x00000020], _ - [0x00000010, 0x00000008], _ - [0x00000020, 0x00000080], _ - [0x00000040, 0x00000200], _ - [0x00000080, 0x00000400], _ - [0x00000100, 0x00000800], _ - [0x00000400, 0x00001000], _ - [0x00000800, 0x00002000], _ - [0x00001000, 0x00004000], _ - [0x00002000, 0x00020000], _ - [0x00008000, 0x00040000], _ - [0x00010000, 0x00100000], _ - [0x00000001, 0x00080000], _ - [0x00000002, 0x00200000], _ - [0x00000008, 0x00800000], _ - [0x00000010, 0x01000000], _ - [0x00000020, 0x02000000]] - - If $bSet Then - For $i = 0 To 14 - If BitAND($iFlags, $aOpt[$i][1]) Then - $iVal1 += $aOpt[$i][0] - EndIf - Next - For $i = 15 To 19 - If BitAND($iFlags, $aOpt[$i][1]) Then - $iVal2 += $aOpt[$i][0] - EndIf - Next - EndIf - - Local $tSHELLSTATE = DllStructCreate('uint[8]') - DllStructSetData($tSHELLSTATE, 1, $iVal1, 1) - DllStructSetData($tSHELLSTATE, 1, $iVal2, 8) - DllCall('shell32.dll', 'none', 'SHGetSetSettings', 'struct*', $tSHELLSTATE, 'dword', $iFlags, 'bool', 1) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellSetSettings - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShellUpdateImage($sIcon, $iIndex, $iImage, $iFlags = 0) - DllCall('shell32.dll', 'none', 'SHUpdateImageW', 'wstr', $sIcon, 'int', $iIndex, 'uint', $iFlags, 'int', $iImage) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_ShellUpdateImage - -#EndRegion Public Functions diff --git a/build/Include/WinAPISys.au3 b/build/Include/WinAPISys.au3 deleted file mode 100644 index 4998aac60..000000000 --- a/build/Include/WinAPISys.au3 +++ /dev/null @@ -1,2478 +0,0 @@ -#include-once - -#include "APISysConstants.au3" -#include "WinAPI.au3" -#include "WinAPIInternals.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPISys.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #CONSTANTS# =================================================================================================================== -Global Const $tagOSVERSIONINFOEX = $tagOSVERSIONINFO & ';ushort ServicePackMajor;ushort ServicePackMinor;ushort SuiteMask;byte ProductType;byte Reserved' -Global Const $tagRAWINPUTDEVICE = 'struct;ushort UsagePage;ushort Usage;dword Flags;hwnd hTarget;endstruct' -Global Const $tagRAWINPUTHEADER = 'struct;dword Type;dword Size;handle hDevice;wparam wParam;endstruct' -Global Const $tagRAWMOUSE = 'ushort Flags;ushort Alignment;ushort ButtonFlags;ushort ButtonData;ulong RawButtons;long LastX;long LastY;ulong ExtraInformation;' -Global Const $tagRAWKEYBOARD = 'ushort MakeCode;ushort Flags;ushort Reserved;ushort VKey;uint Message;ulong ExtraInformation;' -Global Const $tagRAWHID = 'dword SizeHid;dword Count;' ; & 'byte RawData[n];' -Global Const $tagRAWINPUTMOUSE = $tagRAWINPUTHEADER & ';' & $tagRAWMOUSE -Global Const $tagRAWINPUTKEYBOARD = $tagRAWINPUTHEADER & ';' & $tagRAWKEYBOARD -Global Const $tagRAWINPUTHID = $tagRAWINPUTHEADER & ';' & $tagRAWHID -Global Const $tagRID_DEVICE_INFO_MOUSE = 'struct;dword Id;dword NumberOfButtons;dword SampleRate;int HasHorizontalWheel;endstruc' -Global Const $tagRID_DEVICE_INFO_KEYBOARD = 'struct;dword KbType;dword KbSubType;dword KeyboardMode;dword NumberOfFunctionKeys;dword NumberOfIndicators;dword NumberOfKeysTotal;endstruc' -Global Const $tagRID_DEVICE_INFO_HID = 'struct;dword VendorId;dword ProductId;dword VersionNumber;ushort UsagePage;ushort Usage;endstruc' -Global Const $tagRID_INFO_MOUSE = 'dword Size;dword Type;' & $tagRID_DEVICE_INFO_MOUSE & ';dword Unused[2];' -Global Const $tagRID_INFO_KEYBOARD = 'dword Size;dword Type;' & $tagRID_DEVICE_INFO_KEYBOARD -Global Const $tagRID_INFO_HID = 'dword Size;dword Type;' & $tagRID_DEVICE_INFO_HID & ';dword Unused[2]' -Global Const $tagSHELLHOOKINFO = 'hwnd hWnd;' & $tagRECT -Global Const $tagUPDATELAYEREDWINDOWINFO = 'dword Size;hwnd hDstDC;long DstX;long DstY;long cX;long cY;hwnd hSrcDC;long SrcX;long SrcY;dword crKey;byte BlendOp;byte BlendFlags;byte Alpha;byte AlphaFormat;dword Flags;long DirtyLeft;long DirtyTop;long DirtyRight;long DirtyBottom' -Global Const $tagUSEROBJECTFLAGS = 'int Inherit;int Reserved;dword Flags' -Global Const $tagWINDOWINFO = 'dword Size;struct;long rWindow[4];endstruct;struct;long rClient[4];endstruct;dword Style;dword ExStyle;dword WindowStatus;uint cxWindowBorders;uint cyWindowBorders;word atomWindowType;word CreatorVersion' -Global Const $tagWNDCLASS = 'uint Style;ptr hWndProc;int ClsExtra;int WndExtra;ptr hInstance;ptr hIcon;ptr hCursor;ptr hBackground;ptr MenuName;ptr ClassName' -Global Const $tagWNDCLASSEX = 'uint Size;uint Style;ptr hWndProc;int ClsExtra;int WndExtra;ptr hInstance;ptr hIcon;ptr hCursor;ptr hBackground;ptr MenuName;ptr ClassName;ptr hIconSm' -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_ActivateKeyboardLayout -; _WinAPI_AddClipboardFormatListener -; _WinAPI_AdjustWindowRectEx -; _WinAPI_AnimateWindow -; _WinAPI_BeginDeferWindowPos -; _WinAPI_BringWindowToTop -; _WinAPI_BroadcastSystemMessage -; _WinAPI_CallWindowProcW -; _WinAPI_CascadeWindows -; _WinAPI_ChangeWindowMessageFilterEx -; _WinAPI_ChildWindowFromPointEx -; _WinAPI_CloseDesktop -; _WinAPI_CloseWindow -; _WinAPI_CloseWindowStation -; _WinAPI_CompressBuffer -; _WinAPI_ComputeCrc32 -; _WinAPI_CreateBuffer -; _WinAPI_CreateBufferFromStruct -; _WinAPI_CreateDesktop -; _WinAPI_CreateString -; _WinAPI_CreateWindowStation -; _WinAPI_DecompressBuffer -; _WinAPI_DeferWindowPos -; _WinAPI_DefRawInputProc -; _WinAPI_DefWindowProcW -; _WinAPI_DeregisterShellHookWindow -; _WinAPI_DragAcceptFiles -; _WinAPI_DragFinish -; _WinAPI_DragQueryFileEx -; _WinAPI_DragQueryPoint -; _WinAPI_EndDeferWindowPos -; _WinAPI_EnumChildWindows -; _WinAPI_EnumDesktops -; _WinAPI_EnumDesktopWindows -; _WinAPI_EnumPageFiles -; _WinAPI_EnumRawInputDevices -; _WinAPI_EnumWindowStations -; _WinAPI_EqualMemory -; _WinAPI_FillMemory -; _WinAPI_FreeMemory -; _WinAPI_GetActiveWindow -; _WinAPI_GetClassInfoEx -; _WinAPI_GetClassLongEx -; _WinAPI_GetClipboardSequenceNumber -; _WinAPI_GetCurrentHwProfile -; _WinAPI_GetDefaultPrinter -; _WinAPI_GetDllDirectory -; _WinAPI_GetEffectiveClientRect -; _WinAPI_GetGUIThreadInfo -; _WinAPI_GetHandleInformation -; _WinAPI_GetIdleTime -; _WinAPI_GetKeyboardLayout -; _WinAPI_GetKeyboardLayoutList -; _WinAPI_GetKeyboardState -; _WinAPI_GetKeyboardType -; _WinAPI_GetKeyNameText -; _WinAPI_GetKeyState -; _WinAPI_GetLastActivePopup -; _WinAPI_GetMemorySize -; _WinAPI_GetMessageExtraInfo -; _WinAPI_GetModuleHandleEx -; _WinAPI_GetMonitorInfo -; _WinAPI_GetMUILanguage -; _WinAPI_GetObjectInfoByHandle -; _WinAPI_GetObjectNameByHandle -; _WinAPI_GetPerformanceInfo -; _WinAPI_GetPhysicallyInstalledSystemMemory -; _WinAPI_GetProcessShutdownParameters -; _WinAPI_GetProcessWindowStation -; _WinAPI_GetPwrCapabilities -; _WinAPI_GetRawInputBuffer -; _WinAPI_GetRawInputBufferLength -; _WinAPI_GetRawInputData -; _WinAPI_GetRawInputDeviceInfo -; _WinAPI_GetRegisteredRawInputDevices -; _WinAPI_GetShellWindow -; _WinAPI_GetStartupInfo -; _WinAPI_GetSystemDEPPolicy -; _WinAPI_GetSystemInfo -; _WinAPI_GetSystemPowerStatus -; _WinAPI_GetSystemTimes -; _WinAPI_GetSystemWow64Directory -; _WinAPI_GetTickCount -; _WinAPI_GetTickCount64 -; _WinAPI_GetTopWindow -; _WinAPI_GetUserObjectInformation -; _WinAPI_GetVersion -; _WinAPI_GetVersionEx -; _WinAPI_GetWindowDisplayAffinity -; _WinAPI_GetWindowInfo -; _WinAPI_GetWorkArea -; _WinAPI_InitMUILanguage -; _WinAPI_IsBadCodePtr -; _WinAPI_IsBadReadPtr -; _WinAPI_IsBadStringPtr -; _WinAPI_IsBadWritePtr -; _WinAPI_IsChild -; _WinAPI_IsHungAppWindow -; _WinAPI_IsIconic -; _WinAPI_IsLoadKBLayout -; _WinAPI_IsMemory -; _WinAPI_IsProcessorFeaturePresent -; _WinAPI_IsWindowEnabled -; _WinAPI_IsWindowUnicode -; _WinAPI_IsZoomed -; _WinAPI_Keybd_Event -; _WinAPI_KillTimer -; _WinAPI_LoadIconMetric -; _WinAPI_LoadIconWithScaleDown -; _WinAPI_LoadKeyboardLayout -; _WinAPI_LockWorkStation -; _WinAPI_MapVirtualKey -; _WinAPI_MirrorIcon -; _WinAPI_MoveMemory -; _WinAPI_OpenDesktop -; _WinAPI_OpenIcon -; _WinAPI_OpenInputDesktop -; _WinAPI_OpenWindowStation -; _WinAPI_QueryPerformanceCounter -; _WinAPI_QueryPerformanceFrequency -; _WinAPI_RegisterClass -; _WinAPI_RegisterClassEx -; _WinAPI_RegisterHotKey -; _WinAPI_RegisterPowerSettingNotification -; _WinAPI_RegisterRawInputDevices -; _WinAPI_RegisterShellHookWindow -; _WinAPI_RemoveClipboardFormatListener -; _WinAPI_SendMessageTimeout -; _WinAPI_SetActiveWindow -; _WinAPI_SetClassLongEx -; _WinAPI_SetDllDirectory -; _WinAPI_SetForegroundWindow -; _WinAPI_SetKeyboardLayout -; _WinAPI_SetKeyboardState -; _WinAPI_SetMessageExtraInfo -; _WinAPI_SetProcessWindowStation -; _WinAPI_SetProcessShutdownParameters -; _WinAPI_SetTimer -; _WinAPI_SetUserObjectInformation -; _WinAPI_SetWindowDisplayAffinity -; _WinAPI_SetWinEventHook -; _WinAPI_ShowOwnedPopups -; _WinAPI_ShutdownBlockReasonCreate -; _WinAPI_ShutdownBlockReasonDestroy -; _WinAPI_ShutdownBlockReasonQuery -; _WinAPI_SwitchDesktop -; _WinAPI_SwitchToThisWindow -; _WinAPI_TileWindows -; _WinAPI_TrackMouseEvent -; _WinAPI_UnhookWinEvent -; _WinAPI_UnloadKeyboardLayout -; _WinAPI_UnregisterClass -; _WinAPI_UnregisterHotKey -; _WinAPI_UnregisterPowerSettingNotification -; _WinAPI_UpdateLayeredWindowEx -; _WinAPI_UpdateLayeredWindowIndirect -; _WinAPI_ZeroMemory -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ActivateKeyboardLayout($hLocale, $iFlag = 0) - Local $aRet = DllCall('user32.dll', 'handle', 'ActivateKeyboardLayout', 'handle', $hLocale, 'uint', $iFlag) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ActivateKeyboardLayout - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AddClipboardFormatListener($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'AddClipboardFormatListener', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_AddClipboardFormatListener - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AdjustWindowRectEx(ByRef $tRECT, $iStyle, $iExStyle = 0, $bMenu = False) - Local $aRet = DllCall('user32.dll', 'bool', 'AdjustWindowRectEx', 'struct*', $tRECT, 'dword', $iStyle, 'bool', $bMenu, _ - 'dword', $iExStyle) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_AdjustWindowRectEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_AnimateWindow($hWnd, $iFlags, $iDuration = 1000) - Local $aRet = DllCall('user32.dll', 'bool', 'AnimateWindow', 'hwnd', $hWnd, 'dword', $iDuration, 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_AnimateWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: KaFu -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_BeginDeferWindowPos($iAmount = 1) - Local $aRet = DllCall('user32.dll', 'handle', 'BeginDeferWindowPos', 'int', $iAmount) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_BeginDeferWindowPos - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BringWindowToTop($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'BringWindowToTop', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_BringWindowToTop - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BroadcastSystemMessage($iMsg, $wParam = 0, $lParam = 0, $iFlags = 0, $iRecipients = 0) - Local $aRet = DllCall('user32.dll', 'long', 'BroadcastSystemMessageW', 'dword', $iFlags, 'dword*', $iRecipients, _ - 'uint', $iMsg, 'wparam', $wParam, 'lparam', $lParam) - If @error Or ($aRet[0] = -1) Then Return SetError(@error, @extended, -1) - ; If $aRet[0] = -1 Then Return SetError(1000, 0, 0) - - Return SetExtended($aRet[2], $aRet[0]) -EndFunc ;==>_WinAPI_BroadcastSystemMessage - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CallWindowProcW($pPrevWndProc, $hWnd, $iMsg, $wParam, $lParam) - Local $aRet = DllCall('user32.dll', 'lresult', 'CallWindowProcW', 'ptr', $pPrevWndProc, 'hwnd', $hWnd, 'uint', $iMsg, _ - 'wparam', $wParam, 'lparam', $lParam) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CallWindowProcW - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CascadeWindows($aWnds, $tRECT = 0, $hParent = 0, $iFlags = 0, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aWnds, $iStart, $iEnd) Then Return SetError(@error + 10, @extended, 0) - - Local $iCount = $iEnd - $iStart + 1 - Local $tWnds = DllStructCreate('hwnd[' & $iCount & ']') - - $iCount = 1 - For $i = $iStart To $iEnd - DllStructSetData($tWnds, 1, $aWnds[$i], $iCount) - $iCount += 1 - Next - - Local $aRet = DllCall('user32.dll', 'word', 'CascadeWindows', 'hwnd', $hParent, 'uint', $iFlags, 'struct*', $tRECT, _ - 'uint', $iCount - 1, 'struct*', $tWnds) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CascadeWindows - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ChangeWindowMessageFilterEx($hWnd, $iMsg, $iAction) - Local $tCFS, $aRet - - If $hWnd And ($__WINVER > 0x0600) Then - Local Const $tagCHANGEFILTERSTRUCT = 'dword cbSize; dword ExtStatus' - $tCFS = DllStructCreate($tagCHANGEFILTERSTRUCT) - DllStructSetData($tCFS, 1, DllStructGetSize($tCFS)) - $aRet = DllCall('user32.dll', 'bool', 'ChangeWindowMessageFilterEx', 'hwnd', $hWnd, 'uint', $iMsg, 'dword', $iAction, _ - 'struct*', $tCFS) - Else - $tCFS = 0 - $aRet = DllCall('user32.dll', 'bool', 'ChangeWindowMessageFilter', 'uint', $iMsg, 'dword', $iAction) - EndIf - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return SetExtended(DllStructGetData($tCFS, 2), 1) -EndFunc ;==>_WinAPI_ChangeWindowMessageFilterEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_ChildWindowFromPointEx($hWnd, $tPOINT, $iFlags = 0) - Local $aRet = DllCall('user32.dll', 'hwnd', 'ChildWindowFromPointEx', 'hwnd', $hWnd, 'struct', $tPOINT, 'uint', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ChildWindowFromPointEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CloseDesktop($hDesktop) - Local $aRet = DllCall('user32.dll', 'bool', 'CloseDesktop', 'handle', $hDesktop) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CloseDesktop - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CloseWindow($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'CloseWindow', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CloseWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CloseWindowStation($hStation) - Local $aRet = DllCall('user32.dll', 'bool', 'CloseWindowStation', 'handle', $hStation) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CloseWindowStation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CompressBuffer($pUncompressedBuffer, $iUncompressedSize, $pCompressedBuffer, $iCompressedSize, $iFormatAndEngine = 0x0002) - Local $aRet, $pWorkSpace = 0, $iError = 0 - Do - $aRet = DllCall('ntdll.dll', 'uint', 'RtlGetCompressionWorkSpaceSize', 'ushort', $iFormatAndEngine, 'ulong*', 0, 'ulong*', 0) - If @error Or $aRet[0] Then - $iError = @error + 20 - ExitLoop - EndIf - $pWorkSpace = __HeapAlloc($aRet[2]) - If @error Then - $iError = @error + 100 - ExitLoop - EndIf - $aRet = DllCall('ntdll.dll', 'uint', 'RtlCompressBuffer', 'ushort', $iFormatAndEngine, 'struct*', $pUncompressedBuffer, _ - 'ulong', $iUncompressedSize, 'struct*', $pCompressedBuffer, 'ulong', $iCompressedSize, 'ulong', 4096, _ - 'ulong*', 0, 'ptr', $pWorkSpace) - If @error Or $aRet[0] Or Not $aRet[7] Then - $iError = @error + 30 - ExitLoop - EndIf - Until 1 - __HeapFree($pWorkSpace) - If $iError Then - If IsArray($aRet) Then - Return SetError(10, $aRet[0], 0) - Else - Return SetError($iError, 0, 0) - EndIf - EndIf - - Return $aRet[7] -EndFunc ;==>_WinAPI_CompressBuffer - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_ComputeCrc32($pMemory, $iLength) - If _WinAPI_IsBadReadPtr($pMemory, $iLength) Then Return SetError(1, @extended, 0) - - Local $aRet = DllCall('ntdll.dll', 'dword', 'RtlComputeCrc32', 'dword', 0, 'struct*', $pMemory, 'int', $iLength) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ComputeCrc32 - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateBuffer($iLength, $pBuffer = 0, $bAbort = True) - $pBuffer = __HeapReAlloc($pBuffer, $iLength, 0, $bAbort) - If @error Then Return SetError(@error, @extended, 0) - - Return $pBuffer -EndFunc ;==>_WinAPI_CreateBuffer - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateBufferFromStruct($tStruct, $pBuffer = 0, $bAbort = True) - If Not IsDllStruct($tStruct) Then Return SetError(1, 0, 0) - - $pBuffer = __HeapReAlloc($pBuffer, DllStructGetSize($tStruct), 0, $bAbort) - If @error Then Return SetError(@error + 100, @extended, 0) - - _WinAPI_MoveMemory($pBuffer, $tStruct, DllStructGetSize($tStruct)) - ; Local $iError = @error ; cannot really occur - ; __HeapFree($pBuffer) - ; Return SetError($iError, 0, 0) - ; EndIf - - Return $pBuffer -EndFunc ;==>_WinAPI_CreateBufferFromStruct - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateDesktop($sName, $iAccess = 0x0002, $iFlags = 0, $iHeap = 0, $tSecurity = 0) - Local $aRet - If $iHeap Then - $aRet = DllCall('user32.dll', 'handle', 'CreateDesktopExW', 'wstr', $sName, 'ptr', 0, 'ptr', 0, 'dword', $iFlags, _ - 'dword', $iAccess, 'struct*', $tSecurity, 'ulong', $iHeap, 'ptr', 0) - Else - $aRet = DllCall('user32.dll', 'handle', 'CreateDesktopW', 'wstr', $sName, 'ptr', 0, 'ptr', 0, 'dword', $iFlags, _ - 'dword', $iAccess, 'struct*', $tSecurity) - EndIf - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateDesktop - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CreateString($sString, $pString = 0, $iLength = -1, $bUnicode = True, $bAbort = True) - $iLength = Number($iLength) - If $iLength >= 0 Then - $sString = StringLeft($sString, $iLength) - Else - $iLength = StringLen($sString) - EndIf - Local $iSize = $iLength + 1 - If $bUnicode Then - $iSize *= 2 - EndIf - $pString = __HeapReAlloc($pString, $iSize, 0, $bAbort) - If @error Then Return SetError(@error, @extended, 0) - - DllStructSetData(DllStructCreate(__Iif($bUnicode, 'wchar', 'char') & '[' & ($iLength + 1) & ']', $pString), 1, $sString) - Return SetExtended($iLength, $pString) -EndFunc ;==>_WinAPI_CreateString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_CreateWindowStation($sName = '', $iAccess = 0, $iFlags = 0, $tSecurity = 0) - Local $aRet = DllCall('user32.dll', 'handle', 'CreateWindowStationW', 'wstr', $sName, 'dword', $iFlags, 'dword', $iAccess, _ - 'struct*', $tSecurity) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_CreateWindowStation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DecompressBuffer($pUncompressedBuffer, $iUncompressedSize, $pCompressedBuffer, $iCompressedSize, $iFormat = 0x0002) - Local $aRet = DllCall('ntdll.dll', 'long', 'RtlDecompressBuffer', 'ushort', $iFormat, 'struct*', $pUncompressedBuffer, _ - 'ulong', $iUncompressedSize, 'struct*', $pCompressedBuffer, 'ulong', $iCompressedSize, 'ulong*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[6] -EndFunc ;==>_WinAPI_DecompressBuffer - -; #FUNCTION# ==================================================================================================================== -; Author.........: KaFu -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_DeferWindowPos($hInfo, $hWnd, $hAfter, $iX, $iY, $iWidth, $iHeight, $iFlags) - Local $aRet = DllCall('user32.dll', 'handle', 'DeferWindowPos', 'handle', $hInfo, 'hwnd', $hWnd, 'hwnd', $hAfter, _ - 'int', $iX, 'int', $iY, 'int', $iWidth, 'int', $iHeight, 'uint', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DeferWindowPos - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DefRawInputProc($paRawInput, $iInput) - Local $aRet = DllCall('user32.dll', 'lresult', 'DefRawInputProc', 'ptr', $paRawInput, 'int', $iInput, _ - 'uint', DllStructGetSize(DllStructCreate($tagRAWINPUTHEADER))) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DefRawInputProc - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DefWindowProcW($hWnd, $iMsg, $wParam, $lParam) - Local $aRet = DllCall('user32.dll', 'lresult', 'DefWindowProcW', 'hwnd', $hWnd, 'uint', $iMsg, 'wparam', $wParam, _ - 'lparam', $lParam) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DefWindowProcW - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_DeregisterShellHookWindow($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'DeregisterShellHookWindow', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_DeregisterShellHookWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DragAcceptFiles($hWnd, $bAccept = True) - DllCall('shell32.dll', 'none', 'DragAcceptFiles', 'hwnd', $hWnd, 'bool', $bAccept) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_DragAcceptFiles - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DragFinish($hDrop) - DllCall('shell32.dll', 'none', 'DragFinish', 'handle', $hDrop) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_DragFinish - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DragQueryFileEx($hDrop, $iFlag = 0) - Local $aRet = DllCall('shell32.dll', 'uint', 'DragQueryFileW', 'handle', $hDrop, 'uint', -1, 'ptr', 0, 'uint', 0) - If @error Then Return SetError(@error, @extended, 0) - If Not $aRet[0] Then Return SetError(10, 0, 0) - - Local $iCount = $aRet[0] - Local $aResult[$iCount + 1] - For $i = 0 To $iCount - 1 - $aRet = DllCall('shell32.dll', 'uint', 'DragQueryFileW', 'handle', $hDrop, 'uint', $i, 'wstr', '', 'uint', 4096) - If Not $aRet[0] Then Return SetError(11, 0, 0) - If $iFlag Then - Local $bDir = _WinAPI_PathIsDirectory($aRet[3]) - If (($iFlag = 1) And $bDir) Or (($iFlag = 2) And Not $bDir) Then - ContinueLoop - EndIf - EndIf - $aResult[$i + 1] = $aRet[3] - $aResult[0] += 1 - Next - If Not $aResult[0] Then Return SetError(12, 0, 0) - - __Inc($aResult, -1) - Return $aResult -EndFunc ;==>_WinAPI_DragQueryFileEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DragQueryPoint($hDrop) - Local $tPOINT = DllStructCreate($tagPOINT) - Local $aRet = DllCall('shell32.dll', 'bool', 'DragQueryPoint', 'handle', $hDrop, 'struct*', $tPOINT) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tPOINT -EndFunc ;==>_WinAPI_DragQueryPoint - -; #FUNCTION# ==================================================================================================================== -; Author.........: KaFu -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_EndDeferWindowPos($hInfo) - Local $aRet = DllCall('user32.dll', 'bool', 'EndDeferWindowPos', 'handle', $hInfo) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_EndDeferWindowPos - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumChildWindows($hWnd, $bVisible = True) - If Not _WinAPI_GetWindow($hWnd, 5) Then Return SetError(2, 0, 0) ; $GW_CHILD - - Local $hEnumProc = DllCallbackRegister('__EnumWindowsProc', 'bool', 'hwnd;lparam') - - Dim $__g_vEnum[101][2] = [[0]] - DllCall('user32.dll', 'bool', 'EnumChildWindows', 'hwnd', $hWnd, 'ptr', DllCallbackGetPtr($hEnumProc), 'lparam', $bVisible) - If @error Or Not $__g_vEnum[0][0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumChildWindows - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumDesktops($hStation) - If StringCompare(_WinAPI_GetUserObjectInformation($hStation, 3), 'WindowStation') Then Return SetError(1, 0, 0) - - Local $hEnumProc = DllCallbackRegister('__EnumDefaultProc', 'bool', 'ptr;lparam') - - Dim $__g_vEnum[101] = [0] - Local $aRet = DllCall('user32.dll', 'bool', 'EnumDesktopsW', 'handle', $hStation, 'ptr', DllCallbackGetPtr($hEnumProc), _ - 'lparam', 0) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumDesktops - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumDesktopWindows($hDesktop, $bVisible = True) - If StringCompare(_WinAPI_GetUserObjectInformation($hDesktop, 3), 'Desktop') Then Return SetError(1, 0, 0) - - Local $hEnumProc = DllCallbackRegister('__EnumWindowsProc', 'bool', 'hwnd;lparam') - - Dim $__g_vEnum[101][2] = [[0]] - Local $aRet = DllCall('user32.dll', 'bool', 'EnumDesktopWindows', 'handle', $hDesktop, 'ptr', DllCallbackGetPtr($hEnumProc), _ - 'lparam', $bVisible) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0][0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumDesktopWindows - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumPageFiles() - Local $aInfo = _WinAPI_GetSystemInfo() - - Local $hEnumProc = DllCallbackRegister('__EnumPageFilesProc', 'bool', 'lparam;ptr;ptr') - - Dim $__g_vEnum[101][4] = [[0]] - Local $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'EnumPageFilesW', 'ptr', DllCallbackGetPtr($hEnumProc), 'lparam', $aInfo[1]) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0][0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumPageFiles - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumRawInputDevices() - Local Const $tagRAWINPUTDEVICELIST = 'struct;handle hDevice;dword Type;endstruct' - Local $tRIDL, $iLength = DllStructGetSize(DllStructCreate($tagRAWINPUTDEVICELIST)) - - Local $aRet = DllCall('user32.dll', 'uint', 'GetRawInputDeviceList', 'ptr', 0, 'uint*', 0, 'uint', $iLength) - If @error Then Return SetError(@error + 10, @extended, 0) - If ($aRet[0] = 4294967295) Or (Not $aRet[2]) Then Return SetError(10, -1, 0) - - Local $tData = DllStructCreate('byte[' & ($aRet[2] * $iLength) & ']') - Local $pData = DllStructGetPtr($tData) - If @error Then Return SetError(@error + 20, 0, 0) - - $aRet = DllCall('user32.dll', 'uint', 'GetRawInputDeviceList', 'ptr', $pData, 'uint*', $aRet[2], 'uint', $iLength) - If ($aRet[0] = 4294967295) Or (Not $aRet[0]) Then Return SetError(1, -1, 0) - - Local $aResult[$aRet[2] + 1][2] = [[$aRet[2]]] - For $i = 1 To $aRet[2] - $tRIDL = DllStructCreate('ptr;dword', $pData + $iLength * ($i - 1)) - For $j = 0 To 1 - $aResult[$i][$j] = DllStructGetData($tRIDL, $j + 1) - Next - Next - Return $aResult -EndFunc ;==>_WinAPI_EnumRawInputDevices - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EnumWindowStations() - Local $hEnumProc = DllCallbackRegister('__EnumDefaultProc', 'bool', 'ptr;lparam') - - Dim $__g_vEnum[101] = [0] - Local $aRet = DllCall('user32.dll', 'bool', 'EnumWindowStationsW', 'ptr', DllCallbackGetPtr($hEnumProc), 'lparam', 0) - If @error Or Not $aRet[0] Or Not $__g_vEnum[0] Then - $__g_vEnum = @error + 10 - EndIf - DllCallbackFree($hEnumProc) - If $__g_vEnum Then Return SetError($__g_vEnum, 0, 0) - - __Inc($__g_vEnum, -1) - Return $__g_vEnum -EndFunc ;==>_WinAPI_EnumWindowStations - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EqualMemory($pSource1, $pSource2, $iLength) - If _WinAPI_IsBadReadPtr($pSource1, $iLength) Then Return SetError(11, @extended, 0) - If _WinAPI_IsBadReadPtr($pSource2, $iLength) Then Return SetError(12, @extended, 0) - - Local $aRet = DllCall('ntdll.dll', 'ulong_ptr', 'RtlCompareMemory', 'struct*', $pSource1, 'struct*', $pSource2, 'ulong_ptr', $iLength) - If @error Then Return SetError(@error, @extended, 0) - - Return Number($aRet[0] = $iLength) -EndFunc ;==>_WinAPI_EqualMemory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_FillMemory($pMemory, $iLength, $iValue = 0) - If _WinAPI_IsBadWritePtr($pMemory, $iLength) Then Return SetError(11, @extended, 0) - - DllCall('ntdll.dll', 'none', 'RtlFillMemory', 'struct*', $pMemory, 'ulong_ptr', $iLength, 'byte', $iValue) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_FillMemory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_FreeMemory($pMemory) - If Not __HeapFree($pMemory, 1) Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_FreeMemory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetActiveWindow() - Local $aRet = DllCall('user32.dll', 'hwnd', 'GetActiveWindow') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetActiveWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetClassInfoEx($sClass, $hInstance = 0) - Local $sTypeOfClass = 'ptr' - If IsString($sClass) Then - $sTypeOfClass = 'wstr' - EndIf - - Local $tWNDCLASSEX = DllStructCreate($tagWNDCLASSEX) - Local $aRet = DllCall('user32.dll', 'bool', 'GetClassInfoExW', 'handle', $hInstance, $sTypeOfClass, $sClass, _ - 'struct*', $tWNDCLASSEX) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tWNDCLASSEX -EndFunc ;==>_WinAPI_GetClassInfoEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetClassLongEx($hWnd, $iIndex) - Local $aRet - If @AutoItX64 Then - $aRet = DllCall('user32.dll', 'ulong_ptr', 'GetClassLongPtrW', 'hwnd', $hWnd, 'int', $iIndex) - Else - $aRet = DllCall('user32.dll', 'dword', 'GetClassLongW', 'hwnd', $hWnd, 'int', $iIndex) - EndIf - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetClassLongEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetClipboardSequenceNumber() - Local $aRet = DllCall('user32.dll', 'dword', 'GetClipboardSequenceNumber') - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetClipboardSequenceNumber - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetCurrentHwProfile() - Local $tagHW_PROFILE_INFO = 'dword DockInfo;wchar szHwProfileGuid[39];wchar szHwProfileName[80]' - Local $tHWPI = DllStructCreate($tagHW_PROFILE_INFO) - Local $aRet = DllCall('advapi32.dll', 'bool', 'GetCurrentHwProfileW', 'struct*', $tHWPI) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[3] - For $i = 0 To 2 - $aResult[$i] = DllStructGetData($tHWPI, $i + 1) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetCurrentHwProfile - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetDefaultPrinter() - Local $aRet = DllCall('winspool.drv', 'bool', 'GetDefaultPrinterW', 'wstr', '', 'dword*', 2048) - If @error Then Return SetError(@error, @extended, '') - If Not $aRet[0] Then Return SetError(10, _WinAPI_GetLastError(), '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_GetDefaultPrinter - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetDllDirectory() - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetDllDirectoryW', 'dword', 4096, 'wstr', '') - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetDllDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetEffectiveClientRect($hWnd, $aCtrl, $iStart = 0, $iEnd = -1) - If Not IsArray($aCtrl) Then - Local $iCtrl = $aCtrl - Dim $aCtrl[1] = [$iCtrl] - $iStart = 0 - $iEnd = 0 - EndIf - If __CheckErrorArrayBounds($aCtrl, $iStart, $iEnd) Then Return SetError(@error + 10, @extended, 0) - - Local $iCount = $iEnd - $iStart + 1 - Local $tCtrl = DllStructCreate('uint64[' & ($iCount + 2) & ']') - $iCount = 2 - For $i = $iStart To $iEnd - If IsHWnd($aCtrl[$i]) Then - $aCtrl[$i] = _WinAPI_GetDlgCtrlID($aCtrl[$i]) - EndIf - DllStructSetData($tCtrl, 1, _WinAPI_MakeQWord(1, $aCtrl[$i]), $iCount) - $iCount += 1 - Next - Local $tRECT = DllStructCreate($tagRECT) - DllCall('comctl32.dll', 'none', 'GetEffectiveClientRect', 'hwnd', $hWnd, 'struct*', $tRECT, 'struct*', $tCtrl) - If @error Then Return SetError(@error, @extended, 0) - - Return $tRECT -EndFunc ;==>_WinAPI_GetEffectiveClientRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: KaFu -; Modified.......: Yashied, jpm -; =============================================================================================================================== -Func _WinAPI_GetGUIThreadInfo($iThreadId) - Local Const $tagGUITHREADINFO = 'dword Size;dword Flags;hwnd hWndActive;hwnd hWndFocus;hwnd hWndCapture;hwnd hWndMenuOwner;hwnd hWndMoveSize;hwnd hWndCaret;long rcCaret[4]' - Local $tGTI = DllStructCreate($tagGUITHREADINFO) - DllStructSetData($tGTI, 1, DllStructGetSize($tGTI)) - - Local $aRet = DllCall('user32.dll', 'bool', 'GetGUIThreadInfo', 'dword', $iThreadId, 'struct*', $tGTI) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[11] - For $i = 0 To 6 - $aResult[$i] = DllStructGetData($tGTI, $i + 2) - Next - For $i = 1 To 4 - $aResult[6 + $i] = DllStructGetData($tGTI, 6 + 2, $i) - Next - For $i = 9 To 10 - $aResult[$i] -= $aResult[$i - 2] - Next - Return $aResult -EndFunc ;==>_WinAPI_GetGUIThreadInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetHandleInformation($hObject) - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetHandleInformation', 'handle', $hObject, 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetHandleInformation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetIdleTime() - Local $tLASTINPUTINFO = DllStructCreate('uint;dword') - DllStructSetData($tLASTINPUTINFO, 1, DllStructGetSize($tLASTINPUTINFO)) - - Local $aRet = DllCall('user32.dll', 'bool', 'GetLastInputInfo', 'struct*', $tLASTINPUTINFO) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return _WinAPI_GetTickCount() - DllStructGetData($tLASTINPUTINFO, 2) -EndFunc ;==>_WinAPI_GetIdleTime - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetKeyboardLayout($hWnd) - Local $aRet = DllCall('user32.dll', 'dword', 'GetWindowThreadProcessId', 'hwnd', $hWnd, 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - $aRet = DllCall('user32.dll', 'handle', 'GetKeyboardLayout', 'dword', $aRet[0]) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetKeyboardLayout - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetKeyboardLayoutList() - Local $aRet = DllCall('user32.dll', 'uint', 'GetKeyboardLayoutList', 'int', 0, 'ptr', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 20, @extended, 0) - - Local $tData = DllStructCreate('handle[' & $aRet[0] & ']') - $aRet = DllCall('user32.dll', 'uint', 'GetKeyboardLayoutList', 'int', $aRet[0], 'struct*', $tData) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aList[$aRet[0] + 1] = [$aRet[0]] - For $i = 1 To $aList[0] - $aList[$i] = DllStructGetData($tData, 1, $i) - Next - Return $aList -EndFunc ;==>_WinAPI_GetKeyboardLayoutList - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetKeyboardState() - Local $tData = DllStructCreate('byte[256]') - Local $aRet = DllCall('user32.dll', 'bool', 'GetKeyboardState', 'struct*', $tData) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tData -EndFunc ;==>_WinAPI_GetKeyboardState - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetKeyboardType($iType) - Local $aRet = DllCall('user32.dll', 'int', 'GetKeyboardType', 'int', $iType) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetKeyboardType - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetKeyNameText($lParam) - Local $aRet = DllCall('user32.dll', 'int', 'GetKeyNameTextW', 'long', $lParam, 'wstr', '', 'int', 128) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, '') - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetKeyNameText - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetKeyState($vKey) - Local $aRet = DllCall('user32.dll', 'short', 'GetKeyState', 'int', $vKey) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetKeyState - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetLastActivePopup($hWnd) - Local $aRet = DllCall('user32.dll', 'hwnd', 'GetLastActivePopup', 'hwnd', $hWnd) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - If $aRet[0] = $hWnd Then Return SetError(1, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetLastActivePopup - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetMemorySize($pMemory) - Local $iResult = __HeapSize($pMemory, 1) - If @error Then Return SetError(@error, @extended, 0) - - Return $iResult -EndFunc ;==>_WinAPI_GetMemorySize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetMessageExtraInfo() - Local $aRet = DllCall('user32.dll', 'lparam', 'GetMessageExtraInfo') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetMessageExtraInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetModuleHandleEx($sModule, $iFlags = 0) - Local $sTypeOfModule = 'ptr' - If IsString($sModule) Then - If StringStripWS($sModule, $STR_STRIPLEADING + $STR_STRIPTRAILING) Then - $sTypeOfModule = 'wstr' - Else - $sModule = 0 - EndIf - EndIf - - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetModuleHandleExW', 'dword', $iFlags, $sTypeOfModule, $sModule, 'ptr*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetModuleHandleEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetMonitorInfo($hMonitor) - Local $tMIEX = DllStructCreate('dword;long[4];long[4];dword;wchar[32]') - DllStructSetData($tMIEX, 1, DllStructGetSize($tMIEX)) - - Local $aRet = DllCall('user32.dll', 'bool', 'GetMonitorInfoW', 'handle', $hMonitor, 'struct*', $tMIEX) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[4] - For $i = 0 To 1 - $aResult[$i] = DllStructCreate($tagRECT) - _WinAPI_MoveMemory($aResult[$i], DllStructGetPtr($tMIEX, $i + 2), 16) - ; Return SetError(@error + 10, @extended, 0) ; cannot really occur - ; EndIf - Next - $aResult[3] = DllStructGetData($tMIEX, 5) - Switch DllStructGetData($tMIEX, 4) - Case 1 ; MONITORINFOF_PRIMARY - $aResult[2] = 1 - Case Else - $aResult[2] = 0 - EndSwitch - Return $aResult -EndFunc ;==>_WinAPI_GetMonitorInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetMUILanguage() - Local $aRet = DllCall('comctl32.dll', 'word', 'GetMUILanguage') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetMUILanguage - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetObjectInfoByHandle($hObject) - Local $tagPUBLIC_OBJECT_BASIC_INFORMATION = 'ulong Attributes;ulong GrantedAcess;ulong HandleCount;ulong PointerCount;ulong Reserved[10]' - Local $tPOBI = DllStructCreate($tagPUBLIC_OBJECT_BASIC_INFORMATION) - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQueryObject', 'handle', $hObject, 'uint', 0, 'struct*', $tPOBI, _ - 'ulong', DllStructGetSize($tPOBI), 'ptr', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $aResult[4] - For $i = 0 To 3 - $aResult[$i] = DllStructGetData($tPOBI, $i + 1) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetObjectInfoByHandle - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_GetObjectNameByHandle($hObject) - Local $tagUNICODE_STRING = 'struct;ushort Length;ushort MaximumLength;ptr Buffer;endstruct' - Local $tagPUBLIC_OBJECT_TYPE_INFORMATION = 'struct;' & $tagUNICODE_STRING & ';ulong Reserved[22];endstruct' - Local $tPOTI = DllStructCreate($tagPUBLIC_OBJECT_TYPE_INFORMATION & ';byte[32]') - Local $aRet = DllCall('ntdll.dll', 'long', 'ZwQueryObject', 'handle', $hObject, 'uint', 2, 'struct*', $tPOTI, _ - 'ulong', DllStructGetSize($tPOTI), 'ulong*', 0) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - Local $pData = DllStructGetData($tPOTI, 3) - If Not $pData Then Return SetError(11, 0, '') - - Return _WinAPI_GetString($pData) -EndFunc ;==>_WinAPI_GetObjectNameByHandle - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetPerformanceInfo() - Local $tPI = DllStructCreate('dword;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;ulong_ptr;dword;dword;dword') - Local $aRet = DllCall(@SystemDir & '\psapi.dll', 'bool', 'GetPerformanceInfo', 'struct*', $tPI, 'dword', DllStructGetSize($tPI)) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[13] - For $i = 0 To 12 - $aResult[$i] = DllStructGetData($tPI, $i + 2) - Next - For $i = 0 To 8 - $aResult[$i] *= $aResult[9] - Next - Return $aResult -EndFunc ;==>_WinAPI_GetPerformanceInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetPhysicallyInstalledSystemMemory() - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetPhysicallyInstalledSystemMemory', 'uint64*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[1] -EndFunc ;==>_WinAPI_GetPhysicallyInstalledSystemMemory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessShutdownParameters() - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetProcessShutdownParameters', 'dword*', 0, 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return SetExtended(Number(Not $aRet[2]), $aRet[1]) -EndFunc ;==>_WinAPI_GetProcessShutdownParameters - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetProcessWindowStation() - Local $aRet = DllCall('user32.dll', 'handle', 'GetProcessWindowStation') - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetProcessWindowStation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetPwrCapabilities() - If Not __DLL('powrprof.dll') Then Return SetError(103, 0, 0) - - Local $tSPC = DllStructCreate('byte[18];byte[3];byte;byte[8];byte[2];ulong[6];ulong[5]') - Local $aRet = DllCall('powrprof.dll', 'boolean', 'GetPwrCapabilities', 'struct*', $tSPC) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[25] - For $i = 0 To 17 - $aResult[$i] = DllStructGetData($tSPC, 1, $i + 1) - Next - $aResult[18] = DllStructGetData($tSPC, 3) - For $i = 19 To 20 - $aResult[$i] = DllStructGetData($tSPC, 5, $i - 18) - Next - For $i = 21 To 24 - $aResult[$i] = DllStructGetData($tSPC, 7, $i - 20) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetPwrCapabilities - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetRawInputBuffer($pBuffer, $iLength) - Local $aRet = DllCall('user32.dll', 'uint', 'GetRawInputBuffer', 'struct*', $pBuffer, 'uint*', $iLength, _ - 'uint', DllStructGetSize(DllStructCreate($tagRAWINPUTHEADER))) - If @error Then Return SetError(@error, @extended, 0) - If ($aRet[0] = 4294967295) Or (Not $aRet[1]) Then Return SetError(10, -1, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetRawInputBuffer - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetRawInputBufferLength() - Local $aRet = DllCall('user32.dll', 'uint', 'GetRawInputBuffer', 'ptr', 0, 'uint*', 0, _ - 'uint', DllStructGetSize(DllStructCreate($tagRAWINPUTHEADER))) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = 4294967295 Then Return SetError(10, -1, 0) - - Return $aRet[2] * 8 -EndFunc ;==>_WinAPI_GetRawInputBufferLength - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetRawInputData($hRawInput, $pBuffer, $iLength, $iFlag) - Local $aRet = DllCall('user32.dll', 'uint', 'GetRawInputData', 'handle', $hRawInput, 'uint', $iFlag, 'struct*', $pBuffer, _ - 'uint*', $iLength, 'uint', DllStructGetSize(DllStructCreate($tagRAWINPUTHEADER))) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = 4294967295 Then Return SetError(10, -1, 0) - - Return __Iif($aRet[3], $aRet[0], $aRet[4]) -EndFunc ;==>_WinAPI_GetRawInputData - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetRawInputDeviceInfo($hDevice, $pBuffer, $iLength, $iFlag) - Local $aRet = DllCall('user32.dll', 'uint', 'GetRawInputDeviceInfoW', 'handle', $hDevice, 'uint', $iFlag, 'struct*', $pBuffer, _ - 'uint*', $iLength) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = 4294967295 Then Return SetError(10, -1, 0) - - Return __Iif($aRet[3], $aRet[0], $aRet[4]) -EndFunc ;==>_WinAPI_GetRawInputDeviceInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetRegisteredRawInputDevices($pBuffer, $iLength) - Local $iLengthRAW = DllStructGetSize(DllStructCreate($tagRAWINPUTDEVICE)) - Local $aRet = DllCall('user32.dll', 'uint', 'GetRegisteredRawInputDevices', 'struct*', $pBuffer, _ - 'uint*', Floor($iLength / $iLengthRAW), 'uint', $iLengthRAW) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] = 4294967295 Then - Local $iLastError = _WinAPI_GetLastError() - If $iLastError = 122 Then Return SetExtended($iLastError, $aRet[2] * $iLengthRAW) ; ERROR_INSUFFICIENT_BUFFER - Return SetError(10, $iLastError, 0) - EndIf - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetRegisteredRawInputDevices - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetShellWindow() - Local $aRet = DllCall('user32.dll', 'hwnd', 'GetShellWindow') - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetShellWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetStartupInfo() - Local $tSI = DllStructCreate($tagSTARTUPINFO) - DllCall('kernel32.dll', 'none', 'GetStartupInfoW', 'struct*', $tSI) - If @error Then Return SetError(@error, @extended, 0) - - Return $tSI -EndFunc ;==>_WinAPI_GetStartupInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: KaFu -; Modified.......: Yashied, jpm -; =============================================================================================================================== -Func _WinAPI_GetSystemDEPPolicy() - Local $aRet = DllCall('kernel32.dll', 'uint', 'GetSystemDEPPolicy') - If @error Then Return SetError(@error, @extended, -1) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetSystemDEPPolicy - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetSystemInfo() - Local $sProc - If _WinAPI_IsWow64Process() Then - $sProc = 'GetNativeSystemInfo' - Else - $sProc = 'GetSystemInfo' - EndIf - - Local Const $tagSYSTEMINFO = 'struct;word ProcessorArchitecture;word Reserved; endstruct;dword PageSize;' & _ - 'ptr MinimumApplicationAddress;ptr MaximumApplicationAddress;dword_ptr ActiveProcessorMask;dword NumberOfProcessors;' & _ - 'dword ProcessorType;dword AllocationGranularity;word ProcessorLevel;word ProcessorRevision' - Local $tSystemInfo = DllStructCreate($tagSYSTEMINFO) - DllCall('kernel32.dll', 'none', $sProc, 'struct*', $tSystemInfo) - If @error Then Return SetError(@error, @extended, 0) - - Local $aResult[10] - $aResult[0] = DllStructGetData($tSystemInfo, 1) - For $i = 1 To 9 - $aResult[$i] = DllStructGetData($tSystemInfo, $i + 2) - Next - Return $aResult -EndFunc ;==>_WinAPI_GetSystemInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetSystemPowerStatus() - Local $tagSYSTEM_POWER_STATUS = 'byte ACLineStatus;byte BatteryFlag;byte BatteryLifePercent;byte Reserved1;' & _ - 'int BatteryLifeTime;int BatteryFullLifeTime' - Local $tSYSTEM_POWER_STATUS = DllStructCreate($tagSYSTEM_POWER_STATUS) - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetSystemPowerStatus', 'struct*', $tSYSTEM_POWER_STATUS) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[5] - $aResult[0] = DllStructGetData($tSYSTEM_POWER_STATUS, 1) - $aResult[1] = DllStructGetData($tSYSTEM_POWER_STATUS, 2) - $aResult[2] = DllStructGetData($tSYSTEM_POWER_STATUS, 3) - $aResult[3] = DllStructGetData($tSYSTEM_POWER_STATUS, 5) - $aResult[4] = DllStructGetData($tSYSTEM_POWER_STATUS, 6) - Return $aResult -EndFunc ;==>_WinAPI_GetSystemPowerStatus - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetSystemTimes() - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetSystemTimes', 'uint64*', 0, 'uint64*', 0, 'uint64*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Local $aResult[3] - For $i = 0 To 2 - $aResult[$i] = $aRet[$i + 1] - Next - Return $aResult -EndFunc ;==>_WinAPI_GetSystemTimes - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetSystemWow64Directory() - Local $aRet = DllCall('kernel32.dll', 'uint', 'GetSystemWow64DirectoryW', 'wstr', '', 'uint', 4096) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, _WinAPI_GetLastError(), '') - - Return $aRet[1] -EndFunc ;==>_WinAPI_GetSystemWow64Directory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetTickCount() - Local $aRet = DllCall('kernel32.dll', 'dword', 'GetTickCount') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetTickCount - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetTickCount64() - Local $aRet = DllCall('kernel32.dll', 'uint64', 'GetTickCount64') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetTickCount64 - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetTopWindow($hWnd) - Local $aRet = DllCall('user32.dll', 'hwnd', 'GetTopWindow', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetTopWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetUserObjectInformation($hObject, $iIndex) - Local $aRet = DllCall('user32.dll', 'bool', 'GetUserObjectInformationW', 'handle', $hObject, 'int', $iIndex, 'ptr', 0, _ - 'dword', 0, 'dword*', 0) - If @error Or Not $aRet[5] Then Return SetError(@error + 10, @extended, 0) - - Local $tData - Switch $iIndex - Case 1 - $tData = DllStructCreate($tagUSEROBJECTFLAGS) - Case 5, 6 - $tData = DllStructCreate('uint') - Case 2, 3 - $tData = DllStructCreate('wchar[' & $aRet[5] & ']') - Case 4 - $tData = DllStructCreate('byte[' & $aRet[5] & ']') - Case Else - Return SetError(20, 0, 0) - EndSwitch - $aRet = DllCall('user32.dll', 'bool', 'GetUserObjectInformationW', 'handle', $hObject, 'int', $iIndex, 'struct*', $tData, _ - 'dword', DllStructGetSize($tData), 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 30, @extended, 0) - - Switch $iIndex - Case 1, 4 - Return $tData - Case Else - Return DllStructGetData($tData, 1) - EndSwitch -EndFunc ;==>_WinAPI_GetUserObjectInformation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: -; =============================================================================================================================== -Func _WinAPI_GetVersion() - ; Return _WinAPI_HiByte($__WINVER) & '.' & _WinAPI_LoByte($__WINVER) - Return BitAND(BitShift($__WINVER, 8), 0xFF) & '.' & BitAND($__WINVER, 0xFF) -EndFunc ;==>_WinAPI_GetVersion - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetVersionEx() - Local $tOSVERSIONINFOEX = DllStructCreate($tagOSVERSIONINFOEX) - DllStructSetData($tOSVERSIONINFOEX, 'OSVersionInfoSize', DllStructGetSize($tOSVERSIONINFOEX)) - - Local $aRet = DllCall('kernel32.dll', 'bool', 'GetVersionExW', 'struct*', $tOSVERSIONINFOEX) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tOSVERSIONINFOEX -EndFunc ;==>_WinAPI_GetVersionEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetWindowDisplayAffinity($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'GetWindowDisplayAffinity', 'hwnd', $hWnd, 'dword*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $aRet[2] -EndFunc ;==>_WinAPI_GetWindowDisplayAffinity - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetWindowInfo($hWnd) - Local $tWINDOWINFO = DllStructCreate($tagWINDOWINFO) - DllStructSetData($tWINDOWINFO, 'Size', DllStructGetSize($tWINDOWINFO)) - - Local $aRet = DllCall('user32.dll', 'bool', 'GetWindowInfo', 'hwnd', $hWnd, 'struct*', $tWINDOWINFO) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tWINDOWINFO -EndFunc ;==>_WinAPI_GetWindowInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetWorkArea() - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('user32.dll', 'int', 'SystemParametersInfo', 'uint', 48, 'uint', 0, 'struct*', $tRECT, 'uint', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $tRECT -EndFunc ;==>_WinAPI_GetWorkArea - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_InitMUILanguage($iLanguage) - DllCall('comctl32.dll', 'none', 'InitMUILanguage', 'word', $iLanguage) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_InitMUILanguage - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsBadCodePtr($pAddress) - Local $aRet = DllCall('kernel32.dll', 'bool', 'IsBadCodePtr', 'struct*', $pAddress) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsBadCodePtr - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsBadStringPtr($pAddress, $iLength) - Local $aRet = DllCall('kernel32.dll', 'bool', 'IsBadStringPtr', 'struct*', $pAddress, 'uint_ptr', $iLength) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsBadStringPtr - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsChild($hWnd, $hWndParent) - Local $aRet = DllCall('user32.dll', 'bool', 'IsChild', 'hwnd', $hWndParent, 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsChild - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsHungAppWindow($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'IsHungAppWindow', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsHungAppWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsIconic($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'IsIconic', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsIconic - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsLoadKBLayout($iLanguage) - Local $aLayout = _WinAPI_GetKeyboardLayoutList() - If @error Then Return SetError(@error, @extended, False) - - For $i = 1 To $aLayout[0] - If $aLayout[$i] = $iLanguage Then Return True - Next - Return False -EndFunc ;==>_WinAPI_IsLoadKBLayout - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_IsMemory($pMemory) - Local $bResult = __HeapValidate($pMemory) - - Return SetError(@error, @extended, $bResult) -EndFunc ;==>_WinAPI_IsMemory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsProcessorFeaturePresent($iFeature) - Local $aRet = DllCall('kernel32.dll', 'bool', 'IsProcessorFeaturePresent', 'dword', $iFeature) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsProcessorFeaturePresent - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsWindowEnabled($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'IsWindowEnabled', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsWindowEnabled - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsWindowUnicode($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'IsWindowUnicode', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsWindowUnicode - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsZoomed($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'IsZoomed', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsZoomed - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_Keybd_Event($vKey, $iFlags, $iScanCode = 0, $iExtraInfo = 0) - DllCall('user32.dll', 'none', 'keybd_event', 'byte', $vKey, 'byte', $iScanCode, 'dword', $iFlags, 'ulong_ptr', $iExtraInfo) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_Keybd_Event - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_KillTimer($hWnd, $iTimerID) - Local $aRet = DllCall('user32.dll', 'bool', 'KillTimer', 'hwnd', $hWnd, 'uint_ptr', $iTimerID) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_KillTimer - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_LoadIconMetric($hInstance, $sName, $iMetric) - Local $sTypeOfName = 'int' - If IsString($sName) Then - $sTypeOfName = 'wstr' - EndIf - - Local $aRet = DllCall('comctl32.dll', 'long', 'LoadIconMetric', 'handle', $hInstance, $sTypeOfName, $sName, 'int', $iMetric, 'handle*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[4] -EndFunc ;==>_WinAPI_LoadIconMetric - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_LoadIconWithScaleDown($hInstance, $sName, $iWidth, $iHeight) - Local $sTypeOfName = 'int' - If IsString($sName) Then - $sTypeOfName = 'wstr' - EndIf - - Local $aRet = DllCall('comctl32.dll', 'long', 'LoadIconWithScaleDown', 'handle', $hInstance, $sTypeOfName, $sName, _ - 'int', $iWidth, 'int', $iHeight, 'handle*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_LoadIconWithScaleDown - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_LoadKeyboardLayout($iLanguage, $iFlag = 0) - Local $aRet = DllCall('user32.dll', 'handle', 'LoadKeyboardLayoutW', 'wstr', Hex($iLanguage, 8), 'uint', $iFlag) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LoadKeyboardLayout - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_LockWorkStation() - Local $aRet = DllCall('user32.dll', 'bool', 'LockWorkStation') - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_LockWorkStation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_MapVirtualKey($iCode, $iType, $hLocale = 0) - Local $aRet = DllCall('user32.dll', 'INT', 'MapVirtualKeyExW', 'uint', $iCode, 'uint', $iType, 'uint_ptr', $hLocale) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_MapVirtualKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_MirrorIcon($hIcon, $bDelete = False) - If Not $bDelete Then - $hIcon = _WinAPI_CopyIcon($hIcon) - EndIf - - Local $aRet = DllCall('comctl32.dll', 'int', 414, 'ptr', 0, 'ptr*', $hIcon) - If @error Or Not $aRet[0] Then - Local $iError = @error + 10 - If $hIcon And Not $bDelete Then - _WinAPI_DestroyIcon($hIcon) - EndIf - Return SetError($iError, 0, 0) - EndIf - - Return $aRet[2] -EndFunc ;==>_WinAPI_MirrorIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenDesktop($sName, $iAccess = 0, $iFlags = 0, $bInherit = False) - Local $aRet = DllCall('user32.dll', 'handle', 'OpenDesktopW', 'wstr', $sName, 'dword', $iFlags, 'bool', $bInherit, _ - 'dword', $iAccess) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenDesktop - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenIcon($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'OpenIcon', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenInputDesktop($iAccess = 0, $iFlags = 0, $bInherit = False) - Local $aRet = DllCall('user32.dll', 'handle', 'OpenInputDesktop', 'dword', $iFlags, 'bool', $bInherit, 'dword', $iAccess) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenInputDesktop - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenWindowStation($sName, $iAccess = 0, $bInherit = False) - Local $aRet = DllCall('user32.dll', 'handle', 'OpenWindowStationW', 'wstr', $sName, 'bool', $bInherit, 'dword', $iAccess) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenWindowStation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_QueryPerformanceCounter() - Local $aRet = DllCall('kernel32.dll', 'bool', 'QueryPerformanceCounter', 'int64*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[1] -EndFunc ;==>_WinAPI_QueryPerformanceCounter - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_QueryPerformanceFrequency() - Local $aRet = DllCall('kernel32.dll', 'bool', 'QueryPerformanceFrequency', 'int64*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, 0) - - Return $aRet[1] -EndFunc ;==>_WinAPI_QueryPerformanceFrequency - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RegisterClass($tWNDCLASS) - Local $aRet = DllCall('user32.dll', 'word', 'RegisterClassW', 'struct*', $tWNDCLASS) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RegisterClass - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RegisterClassEx($tWNDCLASSEX) - Local $aRet = DllCall('user32.dll', 'word', 'RegisterClassExW', 'struct*', $tWNDCLASSEX) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RegisterClassEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RegisterHotKey($hWnd, $iID, $iModifiers, $vKey) - Local $aRet = DllCall('user32.dll', 'bool', 'RegisterHotKey', 'hwnd', $hWnd, 'int', $iID, 'uint', $iModifiers, 'uint', $vKey) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RegisterHotKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RegisterPowerSettingNotification($hWnd, $sGUID) - Local $tGUID = DllStructCreate($tagGUID) - Local $aRet = DllCall('ole32.dll', 'long', 'CLSIDFromString', 'wstr', $sGUID, 'struct*', $tGUID) - If @error Or $aRet[0] Then Return SetError(@error + 20, @extended, 0) - - $aRet = DllCall('user32.dll', 'handle', 'RegisterPowerSettingNotification', 'handle', $hWnd, 'struct*', $tGUID, 'dword', 0) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RegisterPowerSettingNotification - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RegisterRawInputDevices($paDevice, $iCount = 1) - Local $aRet = DllCall('user32.dll', 'bool', 'RegisterRawInputDevices', 'struct*', $paDevice, 'uint', $iCount, _ - 'uint', DllStructGetSize(DllStructCreate($tagRAWINPUTDEVICE)) * $iCount) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RegisterRawInputDevices - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RegisterShellHookWindow($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'RegisterShellHookWindow', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RegisterShellHookWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_RemoveClipboardFormatListener($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'RemoveClipboardFormatListener', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_RemoveClipboardFormatListener - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SendMessageTimeout($hWnd, $iMsg, $wParam = 0, $lParam = 0, $iTimeout = 1000, $iFlags = 0) - Local $aRet = DllCall('user32.dll', 'lresult', 'SendMessageTimeoutW', 'hwnd', $hWnd, 'uint', $iMsg, 'wparam', $wParam, _ - 'lparam', $lParam, 'uint', $iFlags, 'uint', $iTimeout, 'dword_ptr*', 0) - If @error Then Return SetError(@error, @extended, -1) - If Not $aRet[0] Then Return SetError(10, _WinAPI_GetLastError(), -1) - - Return $aRet[7] -EndFunc ;==>_WinAPI_SendMessageTimeout - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetActiveWindow($hWnd) - Local $aRet = DllCall('user32.dll', 'int', 'SetActiveWindow', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetActiveWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetClassLongEx($hWnd, $iIndex, $iNewLong) - Local $aRet - If @AutoItX64 Then - $aRet = DllCall('user32.dll', 'ulong_ptr', 'SetClassLongPtrW', 'hwnd', $hWnd, 'int', $iIndex, 'long_ptr', $iNewLong) - Else - $aRet = DllCall('user32.dll', 'dword', 'SetClassLongW', 'hwnd', $hWnd, 'int', $iIndex, 'long', $iNewLong) - EndIf - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetClassLongEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetDllDirectory($sDirPath = Default) - Local $sTypeOfPath = 'wstr' - If $sDirPath = Default Then - $sTypeOfPath = 'ptr' - $sDirPath = 0 - EndIf - - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetDllDirectoryW', $sTypeOfPath, $sDirPath) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetDllDirectory - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetForegroundWindow($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'SetForegroundWindow', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetForegroundWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetKeyboardLayout($hWnd, $iLanguage, $iFlags = 0) - If Not _WinAPI_IsWindow($hWnd) Then Return SetError(@error + 10, @extended, 0) - - Local $hLocale = 0 - If $iLanguage Then - $hLocale = _WinAPI_LoadKeyboardLayout($iLanguage) - If Not $hLocale Then Return SetError(10, 0, 0) - EndIf - - Local Const $WM_INPUTLANGCHANGEREQUEST = 0x0050 - DllCall('user32.dll', 'none', 'SendMessage', 'hwnd', $hWnd, 'uint', $WM_INPUTLANGCHANGEREQUEST, 'uint', $iFlags, 'uint_ptr', $hLocale) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_SetKeyboardLayout - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetKeyboardState(ByRef $tState) - Local $aRet = DllCall('user32.dll', 'int', 'SetKeyboardState', 'struct*', $tState) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetKeyboardState - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetMessageExtraInfo($lParam) - Local $aRet = DllCall('user32.dll', 'lparam', 'SetMessageExtraInfo', 'lparam', $lParam) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetMessageExtraInfo - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetProcessShutdownParameters($iLevel, $bDialog = False) - Local $aRet = DllCall('kernel32.dll', 'bool', 'SetProcessShutdownParameters', 'dword', $iLevel, 'dword', Not $bDialog) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetProcessShutdownParameters - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetProcessWindowStation($hStation) - Local $aRet = DllCall('user32.dll', 'bool', 'SetProcessWindowStation', 'handle', $hStation) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetProcessWindowStation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetTimer($hWnd, $iTimerID, $iElapse, $pTimerFunc) - Local $aRet = DllCall('user32.dll', 'uint_ptr', 'SetTimer', 'hwnd', $hWnd, 'uint_ptr', $iTimerID, 'uint', $iElapse, _ - 'ptr', $pTimerFunc) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetTimer - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetUserObjectInformation($hObject, $iIndex, ByRef $tData) - If $iIndex <> 1 Then Return SetError(10, 0, False) - - Local $aRet = DllCall('user32.dll', 'bool', 'SetUserObjectInformationW', 'handle', $hObject, 'int', 1, 'struct*', $tData, _ - 'dword', DllStructGetSize($tData)) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetUserObjectInformation - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SetWindowDisplayAffinity($hWnd, $iAffinity) - Local $aRet = DllCall('user32.dll', 'bool', 'SetWindowDisplayAffinity', 'hwnd', $hWnd, 'dword', $iAffinity) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetWindowDisplayAffinity - -; #FUNCTION# ==================================================================================================================== -; Author.........: KaFu -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_SetWinEventHook($iEventMin, $iEventMax, $pEventProc, $iPID = 0, $iThreadId = 0, $iFlags = 0) - Local $aRet = DllCall('user32.dll', 'handle', 'SetWinEventHook', 'uint', $iEventMin, 'uint', $iEventMax, 'ptr', 0, _ - 'ptr', $pEventProc, 'dword', $iPID, 'dword', $iThreadId, 'uint', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SetWinEventHook - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShowOwnedPopups($hWnd, $bShow) - Local $aRet = DllCall('user32.dll', 'bool', 'ShowOwnedPopups', 'hwnd', $hWnd, 'bool', $bShow) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShowOwnedPopups - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShutdownBlockReasonCreate($hWnd, $sText) - Local $aRet = DllCall('user32.dll', 'bool', 'ShutdownBlockReasonCreate', 'hwnd', $hWnd, 'wstr', $sText) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShutdownBlockReasonCreate - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_ShutdownBlockReasonDestroy($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'ShutdownBlockReasonDestroy', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_ShutdownBlockReasonDestroy - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_ShutdownBlockReasonQuery($hWnd) - Local $aRet = DllCall('user32.dll', 'bool', 'ShutdownBlockReasonQuery', 'hwnd', $hWnd, 'wstr', '', 'dword*', 4096) - If @error Or Not $aRet[0] Then Return SetError(@error + 10, @extended, '') - - Return $aRet[2] -EndFunc ;==>_WinAPI_ShutdownBlockReasonQuery - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_SwitchDesktop($hDesktop) - Local $aRet = DllCall('user32.dll', 'bool', 'SwitchDesktop', 'handle', $hDesktop) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_SwitchDesktop - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SwitchToThisWindow($hWnd, $bAltTab = False) - DllCall('user32.dll', 'none', 'SwitchToThisWindow', 'hwnd', $hWnd, 'bool', $bAltTab) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_SwitchToThisWindow - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_TileWindows($aWnds, $tRECT = 0, $hParent = 0, $iFlags = 0, $iStart = 0, $iEnd = -1) - If __CheckErrorArrayBounds($aWnds, $iStart, $iEnd) Then Return SetError(@error + 10, @extended, 0) - - Local $iCount = $iEnd - $iStart + 1 - Local $tWnds = DllStructCreate('hwnd[' & $iCount & ']') - $iCount = 1 - For $i = $iStart To $iEnd - DllStructSetData($tWnds, 1, $aWnds[$i], $iCount) - $iCount += 1 - Next - - Local $aRet = DllCall('user32.dll', 'word', 'TileWindows', 'hwnd', $hParent, 'uint', $iFlags, 'struct*', $tRECT, _ - 'uint', $iCount - 1, 'struct*', $tWnds) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_TileWindows - -; #FUNCTION# ==================================================================================================================== -; Author.........: Matt Diesel (Mat) -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_TrackMouseEvent($hWnd, $iFlags, $iTime = -1) - Local $tTME = DllStructCreate('dword;dword;hwnd;dword') - DllStructSetData($tTME, 1, DllStructGetSize($tTME)) - DllStructSetData($tTME, 2, $iFlags) - DllStructSetData($tTME, 3, $hWnd) - DllStructSetData($tTME, 4, $iTime) - - Local $aRet = DllCall('user32.dll', 'bool', 'TrackMouseEvent', 'struct*', $tTME) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_TrackMouseEvent - -; #FUNCTION# ==================================================================================================================== -; Author.........: KaFu -; Modified.......: Yashied, Jpm -; =============================================================================================================================== -Func _WinAPI_UnhookWinEvent($hEventHook) - Local $aRet = DllCall('user32.dll', 'bool', 'UnhookWinEvent', 'handle', $hEventHook) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UnhookWinEvent - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UnloadKeyboardLayout($hLocale) - Local $aRet = DllCall('user32.dll', 'bool', 'UnloadKeyboardLayout', 'handle', $hLocale) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UnloadKeyboardLayout - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UnregisterClass($sClass, $hInstance = 0) - Local $sTypeOfClass = 'ptr' - If IsString($sClass) Then - $sTypeOfClass = 'wstr' - EndIf - - Local $aRet = DllCall('user32.dll', 'bool', 'UnregisterClassW', $sTypeOfClass, $sClass, 'handle', $hInstance) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UnregisterClass - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UnregisterHotKey($hWnd, $iID) - Local $aRet = DllCall('user32.dll', 'bool', 'UnregisterHotKey', 'hwnd', $hWnd, 'int', $iID) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UnregisterHotKey - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UnregisterPowerSettingNotification($hNotify) - Local $aRet = DllCall('user32.dll', 'bool', 'UnregisterPowerSettingNotification', 'handle', $hNotify) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UnregisterPowerSettingNotification - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: JPM -; =============================================================================================================================== -Func _WinAPI_UpdateLayeredWindowEx($hWnd, $iX, $iY, $hBitmap, $iOpacity = 255, $bDelete = False) - Local $aRet = DllCall('user32.dll', 'handle', 'GetDC', 'hwnd', $hWnd) - Local $hDC = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'CreateCompatibleDC', 'handle', $hDC) - Local $hDestDC = $aRet[0] - $aRet = DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hDestDC, 'handle', $hBitmap) - Local $hDestSv = $aRet[0] - Local $tPOINT - If ($iX = -1) And ($iY = -1) Then - $tPOINT = DllStructCreate('int;int') - Else - $tPOINT = DllStructCreate('int;int;int;int') - DllStructSetData($tPOINT, 3, $iX) - DllStructSetData($tPOINT, 4, $iY) - EndIf - DllStructSetData($tPOINT, 1, 0) - DllStructSetData($tPOINT, 2, 0) - Local $tBLENDFUNCTION = DllStructCreate($tagBLENDFUNCTION) - DllStructSetData($tBLENDFUNCTION, 1, 0) - DllStructSetData($tBLENDFUNCTION, 2, 0) - DllStructSetData($tBLENDFUNCTION, 3, $iOpacity) - DllStructSetData($tBLENDFUNCTION, 4, 1) - Local $tSIZE = _WinAPI_GetBitmapDimension($hBitmap) - $aRet = DllCall('user32.dll', 'bool', 'UpdateLayeredWindow', 'hwnd', $hWnd, 'handle', $hDC, 'ptr', DllStructGetPtr($tPOINT, 3), _ - 'struct*', $tSIZE, 'handle', $hDestDC, 'struct*', $tPOINT, 'dword', 0, 'struct*', $tBLENDFUNCTION, 'dword', 0x02) - Local $iError = @error - DllCall('user32.dll', 'bool', 'ReleaseDC', 'hwnd', $hWnd, 'handle', $hDC) - DllCall('gdi32.dll', 'handle', 'SelectObject', 'handle', $hDestDC, 'handle', $hDestSv) - DllCall('gdi32.dll', 'bool', 'DeleteDC', 'handle', $hDestDC) - If $iError Then Return SetError($iError, 0, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - If $bDelete Then - _WinAPI_DeleteObject($hBitmap) - EndIf - Return $aRet[0] -EndFunc ;==>_WinAPI_UpdateLayeredWindowEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_UpdateLayeredWindowIndirect($hWnd, $tULWINFO) - Local $aRet = DllCall('user32.dll', 'bool', 'UpdateLayeredWindowIndirect', 'hwnd', $hWnd, 'struct*', $tULWINFO) - If @error Then Return SetError(@error, @extended, False) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_UpdateLayeredWindowIndirect - -#EndRegion Public Functions - -#Region Embedded DLL Functions - -#EndRegion Embedded DLL Functions - -#Region Internal Functions - -Func __EnumDefaultProc($pData, $lParam) - #forceref $lParam - - Local $iLength = _WinAPI_StrLen($pData) - __Inc($__g_vEnum) - If $iLength Then - $__g_vEnum[$__g_vEnum[0]] = DllStructGetData(DllStructCreate('wchar[' & ($iLength + 1) & ']', $pData), 1) - Else - $__g_vEnum[$__g_vEnum[0]] = '' - EndIf - Return 1 -EndFunc ;==>__EnumDefaultProc - -Func __EnumPageFilesProc($iSize, $pInfo, $pFile) - Local $tEPFI = DllStructCreate('dword;dword;ulong_ptr;ulong_ptr;ulong_ptr', $pInfo) - - __Inc($__g_vEnum) - $__g_vEnum[$__g_vEnum[0][0]][0] = DllStructGetData(DllStructCreate('wchar[' & (_WinAPI_StrLen($pFile) + 1) & ']', $pFile), 1) - For $i = 1 To 3 - $__g_vEnum[$__g_vEnum[0][0]][$i] = DllStructGetData($tEPFI, $i + 2) * $iSize - Next - Return 1 -EndFunc ;==>__EnumPageFilesProc - -#EndRegion Internal Functions diff --git a/build/Include/WinAPITheme.au3 b/build/Include/WinAPITheme.au3 deleted file mode 100644 index a3dc5089d..000000000 --- a/build/Include/WinAPITheme.au3 +++ /dev/null @@ -1,794 +0,0 @@ -#include-once - -#include "APIThemeConstants.au3" -#include "WinAPIInternals.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WinAPI Extended UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Description ...: Additional variables, constants and functions for the WinAPITheme.au3 -; Author(s) .....: Yashied, jpm -; =============================================================================================================================== - -#Region Global Variables and Constants - -; #VARIABLES# =================================================================================================================== -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $tagDTTOPTS = 'dword Size;dword Flags;dword clrText;dword clrBorder;dword clrShadow;int TextShadowType;' & $tagPOINT & ';int BorderSize;int FontPropId;int ColorPropId;int StateId;int ApplyOverlay;int GlowSize;ptr DrawTextCallback;lparam lParam' -; =============================================================================================================================== -#EndRegion Global Variables and Constants - -#Region Functions list - -; #CURRENT# ===================================================================================================================== -; _WinAPI_BeginBufferedPaint -; _WinAPI_BufferedPaintClear -; _WinAPI_BufferedPaintInit -; _WinAPI_BufferedPaintSetAlpha -; _WinAPI_BufferedPaintUnInit -; _WinAPI_CloseThemeData -; _WinAPI_DrawThemeBackground -; _WinAPI_DrawThemeEdge -; _WinAPI_DrawThemeIcon -; _WinAPI_DrawThemeParentBackground -; _WinAPI_DrawThemeText -; _WinAPI_DrawThemeTextEx -; _WinAPI_EndBufferedPaint -; _WinAPI_GetBufferedPaintBits -; _WinAPI_GetBufferedPaintDC -; _WinAPI_GetBufferedPaintTargetDC -; _WinAPI_GetBufferedPaintTargetRect -; _WinAPI_GetCurrentThemeName -; _WinAPI_GetThemeAppProperties -; _WinAPI_GetThemeBackgroundContentRect -; _WinAPI_GetThemeBackgroundExtent -; _WinAPI_GetThemeBackgroundRegion -; _WinAPI_GetThemeBitmap -; _WinAPI_GetThemeBool -; _WinAPI_GetThemeColor -; _WinAPI_GetThemeDocumentationProperty -; _WinAPI_GetThemeEnumValue -; _WinAPI_GetThemeFilename -; _WinAPI_GetThemeFont -; _WinAPI_GetThemeInt -; _WinAPI_GetThemeMargins -; _WinAPI_GetThemeMetric -; _WinAPI_GetThemePartSize -; _WinAPI_GetThemePosition -; _WinAPI_GetThemePropertyOrigin -; _WinAPI_GetThemeRect -; _WinAPI_GetThemeString -; _WinAPI_GetThemeSysBool -; _WinAPI_GetThemeSysColor -; _WinAPI_GetThemeSysColorBrush -; _WinAPI_GetThemeSysFont -; _WinAPI_GetThemeSysInt -; _WinAPI_GetThemeSysSize -; _WinAPI_GetThemeSysString -; _WinAPI_GetThemeTextExtent -; _WinAPI_GetThemeTextMetrics -; _WinAPI_GetThemeTransitionDuration -; _WinAPI_GetWindowTheme -; _WinAPI_IsThemeActive -; _WinAPI_IsThemeBackgroundPartiallyTransparent -; _WinAPI_IsThemePartDefined -; _WinAPI_OpenThemeData -; _WinAPI_SetThemeAppProperties -; _WinAPI_SetWindowTheme -; =============================================================================================================================== -#EndRegion Functions list - -#Region Public Functions - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_BeginBufferedPaint($hDC, $tTarget, ByRef $hNewDC, $iFormat = 0, $iFlags = 0, $tExclude = 0, $iAlpha = -1) - Local Const $tagBP_PAINTPARAMS = 'dword cbSize;dword dwFlags;ptr prcExclude;ptr pBlendFunction' - Local $tPP = DllStructCreate($tagBP_PAINTPARAMS) - - $hNewDC = 0 - - Local $tBF = 0 - If $iAlpha <> -1 Then - $tBF = DllStructCreate($tagBLENDFUNCTION) - DllStructSetData($tBF, 1, 0) - DllStructSetData($tBF, 2, 0) - DllStructSetData($tBF, 3, $iAlpha) - DllStructSetData($tBF, 4, 1) - EndIf - - DllStructSetData($tPP, 1, DllStructGetSize($tPP)) - DllStructSetData($tPP, 2, $iFlags) - DllStructSetData($tPP, 3, DllStructGetPtr($tExclude)) - DllStructSetData($tPP, 4, DllStructGetPtr($tBF)) - - Local $aRet = DllCall('uxtheme.dll', 'handle', 'BeginBufferedPaint', 'handle', $hDC, 'struct*', $tTarget, 'dword', $iFormat, _ - 'struct*', $tPP, 'handle*', 0) - If @error Or Not $aRet[0] Then Return SetError(@error, @extended, 0) - - $hNewDC = $aRet[5] - Return $aRet[0] -EndFunc ;==>_WinAPI_BeginBufferedPaint - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_BufferedPaintClear($hBP, $tRECT = 0) - Local $aRet = DllCall('uxtheme.dll', 'long', 'BufferedPaintClear', 'handle', $hBP, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_BufferedPaintClear - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_BufferedPaintInit() - Local $aRet = DllCall('uxtheme.dll', 'long', 'BufferedPaintInit') - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_BufferedPaintInit - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_BufferedPaintSetAlpha($hBP, $iAlpha = 255, $tRECT = 0) - Local $aRet = DllCall('uxtheme.dll', 'long', 'BufferedPaintSetAlpha', 'handle', $hBP, 'struct*', $tRECT, 'byte', $iAlpha) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_BufferedPaintSetAlpha - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_BufferedPaintUnInit() - Local $aRet = DllCall('uxtheme.dll', 'long', 'BufferedPaintUnInit') - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_BufferedPaintUnInit - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_CloseThemeData($hTheme) - Local $aRet = DllCall('uxtheme.dll', 'long', 'CloseThemeData', 'handle', $hTheme) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_CloseThemeData - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawThemeBackground($hTheme, $iPartID, $iStateID, $hDC, $tRECT, $tCLIP = 0) - Local $aRet = DllCall('uxtheme.dll', 'long', 'DrawThemeBackground', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'struct*', $tRECT, 'struct*', $tCLIP) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DrawThemeBackground - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawThemeEdge($hTheme, $iPartID, $iStateID, $hDC, $tRECT, $iEdge, $iFlags, $tAREA = 0) - Local $aRet = DllCall('uxtheme.dll', 'long', 'DrawThemeEdge', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'struct*', $tRECT, 'uint', $iEdge, 'uint', $iFlags, 'struct*', $tAREA) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DrawThemeEdge - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawThemeIcon($hTheme, $iPartID, $iStateID, $hDC, $tRECT, $hIL, $iIndex) - Local $aRet = DllCall('uxtheme.dll', 'long', 'DrawThemeIcon', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'struct*', $tRECT, 'handle', $hIL, 'int', $iIndex) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DrawThemeIcon - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawThemeParentBackground($hWnd, $hDC, $tRECT = 0) - Local $aRet = DllCall('uxtheme.dll', 'long', 'DrawThemeParentBackground', 'hwnd', $hWnd, 'handle', $hDC, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DrawThemeParentBackground - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawThemeText($hTheme, $iPartID, $iStateID, $hDC, $sText, $tRECT, $iFlags) - Local $aRet = DllCall('uxtheme.dll', 'long', 'DrawThemeText', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'wstr', $sText, 'int', -1, 'dword', $iFlags, 'dword', 0, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DrawThemeText - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_DrawThemeTextEx($hTheme, $iPartID, $iStateID, $hDC, $sText, $tRECT, $iFlags, $tDTTOPTS) - Local $aRet = DllCall('uxtheme.dll', 'long', 'DrawThemeTextEx', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'wstr', $sText, 'int', -1, 'dword', $iFlags, 'struct*', $tRECT, 'struct*', $tDTTOPTS) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_DrawThemeTextEx - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_EndBufferedPaint($hBP, $bUpdate = True) - Local $aRet = DllCall('uxtheme.dll', 'long', 'EndBufferedPaint', 'handle', $hBP, 'bool', $bUpdate) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_EndBufferedPaint - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetBufferedPaintBits($hBP) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetBufferedPaintBits', 'handle', $hBP, 'ptr*', 0, 'int*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return SetExtended($aRet[3], $aRet[2]) -EndFunc ;==>_WinAPI_GetBufferedPaintBits - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetBufferedPaintDC($hBP) - Local $aRet = DllCall('uxtheme.dll', 'handle', 'GetBufferedPaintDC', 'handle', $hBP) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetBufferedPaintDC - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetBufferedPaintTargetDC($hBP) - Local $aRet = DllCall('uxtheme.dll', 'handle', 'GetBufferedPaintTargetDC', 'handle', $hBP) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetBufferedPaintTargetDC - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetBufferedPaintTargetRect($hBP) - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetBufferedPaintTargetRect', 'handle', $hBP, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tRECT -EndFunc ;==>_WinAPI_GetBufferedPaintTargetRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetCurrentThemeName() - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetCurrentThemeName', 'wstr', '', 'int', 4096, 'wstr', '', 'int', 2048, _ - 'wstr', '', 'int', 2048) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Local $aResult[3] - For $i = 0 To 2 - $aResult[$i] = $aRet[$i * 2 + 1] - Next - Return $aResult -EndFunc ;==>_WinAPI_GetCurrentThemeName - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeAppProperties() - Local $aRet = DllCall('uxtheme.dll', 'dword', 'GetThemeAppProperties') - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetThemeAppProperties - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeBackgroundContentRect($hTheme, $iPartID, $iStateID, $hDC, $tRECT) - Local $tAREA = DllStructCreate($tagRECT) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeBackgroundContentRect', 'handle', $hTheme, 'handle', $hDC, _ - 'int', $iPartID, 'int', $iStateID, 'struct*', $tRECT, 'struct*', $tAREA) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tAREA -EndFunc ;==>_WinAPI_GetThemeBackgroundContentRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeBackgroundExtent($hTheme, $iPartID, $iStateID, $hDC, $tRECT) - Local $tAREA = DllStructCreate($tagRECT) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeBackgroundExtent', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'struct*', $tRECT, 'struct*', $tAREA) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tAREA -EndFunc ;==>_WinAPI_GetThemeBackgroundExtent - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeBackgroundRegion($hTheme, $iPartID, $iStateID, $hDC, $tRECT) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeBackgroundRegion', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'struct*', $tRECT, 'handle*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[6] -EndFunc ;==>_WinAPI_GetThemeBackgroundRegion - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeBitmap($hTheme, $iPartID, $iStateID, $iPropID, $iFlag = 0x01) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeBitmap', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'ulong', $iFlag, 'handle*', 0) - If @error Then Return SetError(@error, @extended, -1) - If $aRet[0] Then Return SetError(10, $aRet[0], -1) - - Return $aRet[6] -EndFunc ;==>_WinAPI_GetThemeBitmap - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeBool($hTheme, $iPartID, $iStateID, $iPropID) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeBool', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'bool*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetThemeBool - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeColor($hTheme, $iPartID, $iStateID, $iPropID) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeColor', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'dword*', 0) - If @error Then Return SetError(@error, @extended, -1) - If $aRet[0] Then Return SetError(10, $aRet[0], -1) - - Return __RGB($aRet[5]) -EndFunc ;==>_WinAPI_GetThemeColor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeDocumentationProperty($sFilePath, $sProperty) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeDocumentationProperty', 'wstr', $sFilePath, 'wstr', $sProperty, _ - 'wstr', '', 'int', 4096) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetThemeDocumentationProperty - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeEnumValue($hTheme, $iPartID, $iStateID, $iPropID) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeEnumValue', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'int*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetThemeEnumValue - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeFilename($hTheme, $iPartID, $iStateID, $iPropID) - Local $aRet = DllCall('uxtheme.dll', 'uint', 'GetThemeFilename', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'wstr', '', 'int', 4096) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetThemeFilename - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeFont($hTheme, $iPartID, $iStateID, $iPropID, $hDC = 0) - Local $tLOGFONT = DllStructCreate($tagLOGFONT) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeFont', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'int', $iPropID, 'struct*', $tLOGFONT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tLOGFONT -EndFunc ;==>_WinAPI_GetThemeFont - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeInt($hTheme, $iPartID, $iStateID, $iPropID) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeInt', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'int*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetThemeInt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeMargins($hTheme, $iPartID, $iStateID, $iPropID, $hDC, $tRECT) - Local $tMARGINS = DllStructCreate($tagMARGINS) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeMargins', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'int', $iPropID, 'struct*', $tRECT, 'struct*', $tMARGINS) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tMARGINS -EndFunc ;==>_WinAPI_GetThemeMargins - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeMetric($hTheme, $iPartID, $iStateID, $iPropID, $hDC = 0) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeMetric', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'int', $iPropID, 'int*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[6] -EndFunc ;==>_WinAPI_GetThemeMetric - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemePartSize($hTheme, $iPartID, $iStateID, $hDC, $tRECT, $iType) - Local $tSIZE = DllStructCreate($tagSIZE) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemePartSize', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'struct*', $tRECT, 'int', $iType, 'struct*', $tSIZE) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tSIZE -EndFunc ;==>_WinAPI_GetThemePartSize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemePosition($hTheme, $iPartID, $iStateID, $iPropID) - Local $tPOINT = DllStructCreate($tagPOINT) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemePosition', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'struct*', $tPOINT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tPOINT -EndFunc ;==>_WinAPI_GetThemePosition - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemePropertyOrigin($hTheme, $iPartID, $iStateID, $iPropID) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemePropertyOrigin', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'uint*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetThemePropertyOrigin - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeRect($hTheme, $iPartID, $iStateID, $iPropID) - Local $tRECT = DllStructCreate($tagRECT) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeRect', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'struct*', $tRECT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tRECT -EndFunc ;==>_WinAPI_GetThemeRect - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeString($hTheme, $iPartID, $iStateID, $iPropID) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeString', 'handle', $hTheme, 'int', $iPartID, 'int', $iStateID, _ - 'int', $iPropID, 'wstr', '', 'int', 4096) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[5] -EndFunc ;==>_WinAPI_GetThemeString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeSysBool($hTheme, $iBoolID) - Local $aRet = DllCall('uxtheme.dll', 'bool', 'GetThemeSysBool', 'handle', $hTheme, 'int', $iBoolID) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetThemeSysBool - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeSysColor($hTheme, $iColorID) - Local $aRet = DllCall('uxtheme.dll', 'dword', 'GetThemeSysColor', 'handle', $hTheme, 'int', $iColorID) - If @error Then Return SetError(@error, @extended, -1) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetThemeSysColor - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeSysColorBrush($hTheme, $iColorID) - Local $aRet = DllCall('uxtheme.dll', 'handle', 'GetThemeSysColorBrush', 'handle', $hTheme, 'int', $iColorID) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetThemeSysColorBrush - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeSysFont($hTheme, $iFontID) - Local $tLOGFONT = DllStructCreate($tagLOGFONT) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeSysFont', 'handle', $hTheme, 'int', $iFontID, 'struct*', $tLOGFONT) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tLOGFONT -EndFunc ;==>_WinAPI_GetThemeSysFont - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeSysInt($hTheme, $iIntID) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeSysInt', 'handle', $hTheme, 'int', $iIntID, 'int*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetThemeSysInt - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeSysSize($hTheme, $iSizeID) - Local $aRet = DllCall('uxtheme.dll', 'int', 'GetThemeSysSize', 'handle', $hTheme, 'int', $iSizeID) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetThemeSysSize - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeSysString($hTheme, $iStringID) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeSysString', 'handle', $hTheme, 'int', $iStringID, 'wstr', '', 'int', 4096) - If @error Then Return SetError(@error, @extended, '') - If $aRet[0] Then Return SetError(10, $aRet[0], '') - - Return $aRet[3] -EndFunc ;==>_WinAPI_GetThemeSysString - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeTextExtent($hTheme, $iPartID, $iStateID, $hDC, $sText, $tRECT, $iFlags) - Local $tAREA = DllStructCreate($tagRECT) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeTextExtent', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'wstr', $sText, 'int', -1, 'dword', $iFlags, 'struct*', $tRECT, 'struct*', $tAREA) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tAREA -EndFunc ;==>_WinAPI_GetThemeTextExtent - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeTextMetrics($hTheme, $iPartID, $iStateID, $hDC = 0) - Local $tTEXTMETRIC = DllStructCreate($tagTEXTMETRIC) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeTextMetrics', 'handle', $hTheme, 'handle', $hDC, 'int', $iPartID, _ - 'int', $iStateID, 'struct*', $tTEXTMETRIC) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $tTEXTMETRIC -EndFunc ;==>_WinAPI_GetThemeTextMetrics - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetThemeTransitionDuration($hTheme, $iPartID, $iStateIDFrom, $iStateIDTo, $iPropID) - Local $aRet = DllCall('uxtheme.dll', 'long', 'GetThemeTransitionDuration', 'handle', $hTheme, 'int', $iPartID, _ - 'int', $iStateIDFrom, 'int', $iStateIDTo, 'int', $iPropID, 'dword*', 0) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return $aRet[6] -EndFunc ;==>_WinAPI_GetThemeTransitionDuration - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_GetWindowTheme($hWnd) - Local $aRet = DllCall('uxtheme.dll', 'handle', 'GetWindowTheme', 'hwnd', $hWnd) - If @error Then Return SetError(@error, @extended, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_GetWindowTheme - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsThemeActive() - Local $aRet = DllCall('uxtheme.dll', 'bool', 'IsThemeActive') - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsThemeActive - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsThemeBackgroundPartiallyTransparent($hTheme, $iPartID, $iStateID) - Local $aRet = DllCall('uxtheme.dll', 'bool', 'IsThemeBackgroundPartiallyTransparent', 'handle', $hTheme, 'int', $iPartID, _ - 'int', $iStateID) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsThemeBackgroundPartiallyTransparent - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_IsThemePartDefined($hTheme, $iPartID) - Local $aRet = DllCall('uxtheme.dll', 'int', 'IsThemePartDefined', 'handle', $hTheme, 'int', $iPartID, 'int', 0) - If @error Then Return SetError(@error, @extended, False) - - Return $aRet[0] -EndFunc ;==>_WinAPI_IsThemePartDefined - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: Jpm -; =============================================================================================================================== -Func _WinAPI_OpenThemeData($hWnd, $sClass) - Local $aRet = DllCall('uxtheme.dll', 'handle', 'OpenThemeData', 'hwnd', $hWnd, 'wstr', $sClass) - If @error Then Return SetError(@error, @extended, 0) - ; If Not $aRet[0] Then Return SetError(1000, 0, 0) - - Return $aRet[0] -EndFunc ;==>_WinAPI_OpenThemeData - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetThemeAppProperties($iFlags) - DllCall('uxtheme.dll', 'none', 'SetThemeAppProperties', 'dword', $iFlags) - If @error Then Return SetError(@error, @extended, 0) - - Return 1 -EndFunc ;==>_WinAPI_SetThemeAppProperties - -; #FUNCTION# ==================================================================================================================== -; Author.........: Yashied -; Modified.......: jpm -; =============================================================================================================================== -Func _WinAPI_SetWindowTheme($hWnd, $sName = 0, $sList = 0) - Local $sTypeOfName = 'wstr', $sTypeOfList = 'wstr' - If Not IsString($sName) Then - $sTypeOfName = 'ptr' - $sName = 0 - EndIf - If Not IsString($sList) Then - $sTypeOfList = 'ptr' - $sList = 0 - EndIf - - Local $aRet = DllCall('uxtheme.dll', 'long', 'SetWindowTheme', 'hwnd', $hWnd, $sTypeOfName, $sName, $sTypeOfList, $sList) - If @error Then Return SetError(@error, @extended, 0) - If $aRet[0] Then Return SetError(10, $aRet[0], 0) - - Return 1 -EndFunc ;==>_WinAPI_SetWindowTheme - -#EndRegion Public Functions diff --git a/build/Include/WinAPIlangConstants.au3 b/build/Include/WinAPIlangConstants.au3 deleted file mode 100644 index 69ebef397..000000000 --- a/build/Include/WinAPIlangConstants.au3 +++ /dev/null @@ -1,194 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: API Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for locale functions. -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; language identifiers -Global Const $LANG_AFRIKAANS = 0x36 -Global Const $LANG_ALBANIAN = 0x1c -Global Const $LANG_ARABIC = 0x01 -Global Const $LANG_ARMENIAN = 0x2b -Global Const $LANG_ASSAMESE = 0x4d -Global Const $LANG_AZERI = 0x2c -Global Const $LANG_BASQUE = 0x2d -Global Const $LANG_BELARUSIAN = 0x23 -Global Const $LANG_BENGALI = 0x45 -Global Const $LANG_BULGARIAN = 0x02 -Global Const $LANG_CATALAN = 0x03 -Global Const $LANG_CHINESE = 0x04 -Global Const $LANG_CROATIAN = 0x1A -Global Const $LANG_CZECH = 0x05 -Global Const $LANG_DANISH = 0x06 -Global Const $LANG_DUTCH = 0x13 -Global Const $LANG_ENGLISH = 0x09 -Global Const $LANG_ESTONIAN = 0x25 -Global Const $LANG_FAEROESE = 0x38 -Global Const $LANG_FARSI = 0x29 -Global Const $LANG_FINNISH = 0x0B -Global Const $LANG_FRENCH = 0x9C -Global Const $LANG_GEORGIAN = 0x37 -Global Const $LANG_GERMAN = 0x07 -Global Const $LANG_GREEK = 0x08 -Global Const $LANG_GUJARATI = 0x47 -Global Const $LANG_HEBREW = 0x0D -Global Const $LANG_HINDI = 0x39 -Global Const $LANG_HUNGARIAN = 0x0E -Global Const $LANG_ICELANDIC = 0x0F -Global Const $LANG_INDONESIAN = 0x21 -Global Const $LANG_ITALIAN = 0x10 -Global Const $LANG_JAPANESE = 0x11 -Global Const $LANG_KANNADA = 0x4b -Global Const $LANG_KASHMIRI = 0x60 -Global Const $LANG_KAZAK = 0x3f -Global Const $LANG_KONKANI = 0x57 -Global Const $LANG_KOREAN = 0x12 -Global Const $LANG_LATVIAN = 0x26 -Global Const $LANG_LITHUANIAN = 0x27 -Global Const $LANG_MACEDONIAN = 0x2f -Global Const $LANG_MALAY = 0x3e -Global Const $LANG_MALAYALAM = 0x4c -Global Const $LANG_MANIPURI = 0x58 -Global Const $LANG_MARATHI = 0x4e -Global Const $LANG_NEPALI = 0x61 -Global Const $LANG_NEUTRAL = 0x0 -Global Const $LANG_NORWEGIAN = 0x14 -Global Const $LANG_ORIYA = 0x48 -Global Const $LANG_POLISH = 0x15 -Global Const $LANG_PORTUGUESE = 0x16 -Global Const $LANG_PUNJABI = 0x46 -Global Const $LANG_ROMANIAN = 0x18 -Global Const $LANG_RUSSIAN = 0x19 -Global Const $LANG_SANSKRIT = 0x4f -Global Const $LANG_SERBIAN = 0x1a -Global Const $LANG_SINDHI = 0x59 -Global Const $LANG_SLOVAK = 0x1B -Global Const $LANG_SLOVENIAN = 0x24 -Global Const $LANG_SPANISH = 0x0A -Global Const $LANG_SWAHILI = 0x41 -Global Const $LANG_SWEDISH = 0x1D -Global Const $LANG_TAMIL = 0x49 -Global Const $LANG_TATAR = 0x44 -Global Const $LANG_TELUGU = 0x4a -Global Const $LANG_THAI = 0x1e -Global Const $LANG_TURKISH = 0x1F -Global Const $LANG_UKRAINIAN = 0x22 -Global Const $LANG_URDU = 0x20 -Global Const $LANG_UZBEK = 0x43 -Global Const $LANG_VIETNAMESE = 0x2a - -; sublanguage identifiers -Global Const $SUBLANG_ARABIC_ALGERIA = 0x05 -Global Const $SUBLANG_ARABIC_BAHRAIN = 0x0f -Global Const $SUBLANG_ARABIC_EGYPT = 0x03 -Global Const $SUBLANG_ARABIC_IRAQ = 0x02 -Global Const $SUBLANG_ARABIC_JORDAN = 0x0b -Global Const $SUBLANG_ARABIC_KUWAIT = 0x0d -Global Const $SUBLANG_ARABIC_LEBANON = 0x0c -Global Const $SUBLANG_ARABIC_LIBYA = 0x04 -Global Const $SUBLANG_ARABIC_MOROCCO = 0x06 -Global Const $SUBLANG_ARABIC_OMAN = 0x08 -Global Const $SUBLANG_ARABIC_QATAR = 0x10 -Global Const $SUBLANG_ARABIC_SAUDI_ARABIA = 0x01 -Global Const $SUBLANG_ARABIC_SYRIA = 0x0a -Global Const $SUBLANG_ARABIC_TUNISIA = 0x07 -Global Const $SUBLANG_ARABIC_UAE = 0x0e -Global Const $SUBLANG_ARABIC_YEMEN = 0x09 -Global Const $SUBLANG_AZERI_CYRILLIC = 0x02 -Global Const $SUBLANG_AZERI_LATIN = 0x01 -Global Const $SUBLANG_CHINESE_HONGKONG = 0x03 -Global Const $SUBLANG_CHINESE_MACAU = 0x05 -Global Const $SUBLANG_CHINESE_SIMPLIFIED = 0x02 -Global Const $SUBLANG_CHINESE_SINGAPORE = 0x04 -Global Const $SUBLANG_CHINESE_TRADITIONAL = 0x01 -Global Const $SUBLANG_DEFAULT = 0x01 -Global Const $SUBLANG_DUTCH = 0x01 -Global Const $SUBLANG_DUTCH_BELGIAN = 0x02 -Global Const $SUBLANG_ENGLISH_AUS = 0x03 -Global Const $SUBLANG_ENGLISH_BELIZE = 0x0a -Global Const $SUBLANG_ENGLISH_CAN = 0x04 -Global Const $SUBLANG_ENGLISH_CARIBBEAN = 0x09 -Global Const $SUBLANG_ENGLISH_EIRE = 0x06 -Global Const $SUBLANG_ENGLISH_JAMAICA = 0x08 -Global Const $SUBLANG_ENGLISH_NZ = 0x05 -Global Const $SUBLANG_ENGLISH_PHILIPPINES = 0x0d -Global Const $SUBLANG_ENGLISH_SOUTH_AFRICA = 0x07 -Global Const $SUBLANG_ENGLISH_TRINIDAD = 0x0b -Global Const $SUBLANG_ENGLISH_UK = 0x02 -Global Const $SUBLANG_ENGLISH_US = 0x01 -Global Const $SUBLANG_ENGLISH_ZIMBABWE = 0x0c -Global Const $SUBLANG_FRENCH = 0x01 -Global Const $SUBLANG_FRENCH_BELGIAN = 0x02 -Global Const $SUBLANG_FRENCH_CANADIAN = 0x03 -Global Const $SUBLANG_FRENCH_LUXEMBOURG = 0x05 -Global Const $SUBLANG_FRENCH_MONACO = 0x06 -Global Const $SUBLANG_FRENCH_SWISS = 0x04 -Global Const $SUBLANG_GERMAN = 0x01 -Global Const $SUBLANG_GERMAN_AUSTRIAN = 0x03 -Global Const $SUBLANG_GERMAN_LIECHTENSTEIN = 0x05 -Global Const $SUBLANG_GERMAN_LUXEMBOURG = 0x04 -Global Const $SUBLANG_GERMAN_SWISS = 0x02 -Global Const $SUBLANG_ITALIAN = 0x01 -Global Const $SUBLANG_ITALIAN_SWISS = 0x02 -Global Const $SUBLANG_KASHMIRI_INDIA = 0x02 -Global Const $SUBLANG_KOREAN = 0x01 -Global Const $SUBLANG_LITHUANIAN = 0x01 -Global Const $SUBLANG_MALAY_BRUNEI_DARUSSALAM = 0x02 -Global Const $SUBLANG_MALAY_MALAYSIA = 0x01 -Global Const $SUBLANG_NEPALI_INDIA = 0x02 -Global Const $SUBLANG_NEUTRAL = 0x0 -Global Const $SUBLANG_NORWEGIAN_BOKMAL = 0x01 -Global Const $SUBLANG_NORWEGIAN_NYNORSK = 0x02 -Global Const $SUBLANG_PORTUGUESE = 0x02 -Global Const $SUBLANG_PORTUGUESE_BRAZILIAN = 0x01 -Global Const $SUBLANG_SERBIAN_CYRILLIC = 0x03 -Global Const $SUBLANG_SERBIAN_LATIN = 0x02 -Global Const $SUBLANG_SPANISH = 0x01 -Global Const $SUBLANG_SPANISH_ARGENTINA = 0x0b -Global Const $SUBLANG_SPANISH_BOLIVIA = 0x10 -Global Const $SUBLANG_SPANISH_CHILE = 0x0d -Global Const $SUBLANG_SPANISH_COLOMBIA = 0x09 -Global Const $SUBLANG_SPANISH_COSTA_RICA = 0x05 -Global Const $SUBLANG_SPANISH_DOMINICAN_REPUBLIC = 0x07 -Global Const $SUBLANG_SPANISH_ECUADOR = 0x0c -Global Const $SUBLANG_SPANISH_EL_SALVADOR = 0x11 -Global Const $SUBLANG_SPANISH_GUATEMALA = 0x04 -Global Const $SUBLANG_SPANISH_HONDURAS = 0x12 -Global Const $SUBLANG_SPANISH_MEXICAN = 0x02 -Global Const $SUBLANG_SPANISH_MODERN = 0x03 -Global Const $SUBLANG_SPANISH_NICARAGUA = 0x13 -Global Const $SUBLANG_SPANISH_PANAMA = 0x06 -Global Const $SUBLANG_SPANISH_PARAGUAY = 0x0f -Global Const $SUBLANG_SPANISH_PERU = 0x0a -Global Const $SUBLANG_SPANISH_PUERTO_RICO = 0x14 -Global Const $SUBLANG_SPANISH_URUGUAY = 0x0e -Global Const $SUBLANG_SPANISH_VENEZUELA = 0x08 -Global Const $SUBLANG_SWEDISH = 0x01 -Global Const $SUBLANG_SWEDISH_FINLAND = 0x02 -Global Const $SUBLANG_SYS_DEFAULT = 0x02 -Global Const $SUBLANG_URDU_INDIA = 0x02 -Global Const $SUBLANG_URDU_PAKISTAN = 0x01 -Global Const $SUBLANG_UZBEK_CYRILLIC = 0x02 - -; Sorting IDs. (from WINNT.H) -Global Const $SORT_DEFAULT = 0x0 ; sorting default -Global Const $SORT_JAPANESE_XJIS = 0x0 ; Japanese XJIS order -Global Const $SORT_JAPANESE_UNICODE = 0x1 ; Japanese Unicode order -Global Const $SORT_CHINESE_BIG5 = 0x0 ; Chinese BIG5 order -Global Const $SORT_CHINESE_PRCP = 0x0 ; PRC Chinese Phonetic order -Global Const $SORT_CHINESE_UNICODE = 0x1 ; Chinese Unicode order -Global Const $SORT_CHINESE_PRC = 0x2 ; PRC Chinese Stroke Count order -Global Const $SORT_KOREAN_KSC = 0x0 ; Korean KSC order -Global Const $SORT_KOREAN_UNICODE = 0x1 ; Korean Unicode order -Global Const $SORT_GERMAN_PHONE_BOOK = 0x1 ; German Phone Book order -Global Const $SORT_HUNGARIAN_DEFAULT = 0x0 ; Hungarian Default order -Global Const $SORT_HUNGARIAN_TECHNICAL = 0x1 ; Hungarian Technical order -Global Const $SORT_GEORGIAN_TRADITIONAL = 0x0 ; Georgian Traditional order -Global Const $SORT_GEORGIAN_MODERN = 0x1 ; Georgian Modern order -; =============================================================================================================================== diff --git a/build/Include/WinAPIsysinfoConstants.au3 b/build/Include/WinAPIsysinfoConstants.au3 deleted file mode 100644 index 230fdf352..000000000 --- a/build/Include/WinAPIsysinfoConstants.au3 +++ /dev/null @@ -1,196 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: API Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants for _WinAPI_SystemParametersInfo(). -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; _WinAPI_SystemParametersInfo() -Global Const $SPI_GETBEEP = 0x0001 -Global Const $SPI_SETBEEP = 0x0002 -Global Const $SPI_GETMOUSE = 0x0003 -Global Const $SPI_SETMOUSE = 0x0004 -Global Const $SPI_GETBORDER = 0x0005 -Global Const $SPI_SETBORDER = 0x0006 -Global Const $SPI_GETKEYBOARDSPEED = 0x000A -Global Const $SPI_SETKEYBOARDSPEED = 0x000B -Global Const $SPI_LANGDRIVER = 0x000C -Global Const $SPI_ICONHORIZONTALSPACING = 0x000D -Global Const $SPI_GETSCREENSAVETIMEOUT = 0x000E -Global Const $SPI_SETSCREENSAVETIMEOUT = 0x000F -Global Const $SPI_GETSCREENSAVEACTIVE = 0x0010 -Global Const $SPI_SETSCREENSAVEACTIVE = 0x0011 -Global Const $SPI_GETGRIDGRANULARITY = 0x0012 -Global Const $SPI_SETGRIDGRANULARITY = 0x0013 -Global Const $SPI_SETDESKWALLPAPER = 0x0014 -Global Const $SPI_SETDESKPATTERN = 0x0015 -Global Const $SPI_GETKEYBOARDDELAY = 0x0016 -Global Const $SPI_SETKEYBOARDDELAY = 0x0017 -Global Const $SPI_ICONVERTICALSPACING = 0x0018 -Global Const $SPI_GETICONTITLEWRAP = 0x0019 -Global Const $SPI_SETICONTITLEWRAP = 0x001A -Global Const $SPI_GETMENUDROPALIGNMENT = 0x001B -Global Const $SPI_SETMENUDROPALIGNMENT = 0x001C -Global Const $SPI_SETDOUBLECLKWIDTH = 0x001D -Global Const $SPI_SETDOUBLECLKHEIGHT = 0x001E -Global Const $SPI_GETICONTITLELOGFONT = 0x001F -Global Const $SPI_SETDOUBLECLICKTIME = 0x0020 -Global Const $SPI_SETMOUSEBUTTONSWAP = 0x0021 -Global Const $SPI_SETICONTITLELOGFONT = 0x0022 -Global Const $SPI_GETFASTTASKSWITCH = 0x0023 -Global Const $SPI_SETFASTTASKSWITCH = 0x0024 -Global Const $SPI_SETDRAGFULLWINDOWS = 0x0025 -Global Const $SPI_GETDRAGFULLWINDOWS = 0x0026 -Global Const $SPI_GETNONCLIENTMETRICS = 0x0029 -Global Const $SPI_SETNONCLIENTMETRICS = 0x002A -Global Const $SPI_GETMINIMIZEDMETRICS = 0x002B -Global Const $SPI_SETMINIMIZEDMETRICS = 0x002C -Global Const $SPI_GETICONMETRICS = 0x002D -Global Const $SPI_SETICONMETRICS = 0x002E -Global Const $SPI_SETWORKAREA = 0x002F -Global Const $SPI_GETWORKAREA = 0x0030 -Global Const $SPI_SETPENWINDOWS = 0x0031 -Global Const $SPI_GETHIGHCONTRAST = 0x0042 -Global Const $SPI_SETHIGHCONTRAST = 0x0043 -Global Const $SPI_GETKEYBOARDPREF = 0x0044 -Global Const $SPI_SETKEYBOARDPREF = 0x0045 -Global Const $SPI_GETSCREENREADER = 0x0046 -Global Const $SPI_SETSCREENREADER = 0x0047 -Global Const $SPI_GETANIMATION = 0x0048 -Global Const $SPI_SETANIMATION = 0x0049 -Global Const $SPI_GETFONTSMOOTHING = 0x004A -Global Const $SPI_SETFONTSMOOTHING = 0x004B -Global Const $SPI_SETDRAGWIDTH = 0x004C -Global Const $SPI_SETDRAGHEIGHT = 0x004D -Global Const $SPI_SETHANDHELD = 0x004E -Global Const $SPI_GETLOWPOWERTIMEOUT = 0x004F -Global Const $SPI_GETPOWEROFFTIMEOUT = 0x0050 -Global Const $SPI_SETLOWPOWERTIMEOUT = 0x0051 -Global Const $SPI_SETPOWEROFFTIMEOUT = 0x0052 -Global Const $SPI_GETLOWPOWERACTIVE = 0x0053 -Global Const $SPI_GETPOWEROFFACTIVE = 0x0054 -Global Const $SPI_SETLOWPOWERACTIVE = 0x0055 -Global Const $SPI_SETPOWEROFFACTIVE = 0x0056 -Global Const $SPI_SETCURSORS = 0x0057 -Global Const $SPI_SETICONS = 0x0058 -Global Const $SPI_GETDEFAULTINPUTLANG = 0x0059 -Global Const $SPI_SETDEFAULTINPUTLANG = 0x005A -Global Const $SPI_SETLANGTOGGLE = 0x005B -Global Const $SPI_GETWINDOWSEXTENSION = 0x005C -Global Const $SPI_SETMOUSETRAILS = 0x005D -Global Const $SPI_GETMOUSETRAILS = 0x005E -Global Const $SPI_SETSCREENSAVERRUNNING = 0x0061 -Global Const $SPI_SCREENSAVERRUNNING = $SPI_SETSCREENSAVERRUNNING -Global Const $SPI_GETFILTERKEYS = 0x0032 -Global Const $SPI_SETFILTERKEYS = 0x0033 -Global Const $SPI_GETTOGGLEKEYS = 0x0034 -Global Const $SPI_SETTOGGLEKEYS = 0x0035 -Global Const $SPI_GETMOUSEKEYS = 0x0036 -Global Const $SPI_SETMOUSEKEYS = 0x0037 -Global Const $SPI_GETSHOWSOUNDS = 0x0038 -Global Const $SPI_SETSHOWSOUNDS = 0x0039 -Global Const $SPI_GETSTICKYKEYS = 0x003A -Global Const $SPI_SETSTICKYKEYS = 0x003B -Global Const $SPI_GETACCESSTIMEOUT = 0x003C -Global Const $SPI_SETACCESSTIMEOUT = 0x003D -Global Const $SPI_GETSERIALKEYS = 0x003E -Global Const $SPI_SETSERIALKEYS = 0x003F -Global Const $SPI_GETSOUNDSENTRY = 0x0040 -Global Const $SPI_SETSOUNDSENTRY = 0x0041 -Global Const $SPI_GETSNAPTODEFBUTTON = 0x005F -Global Const $SPI_SETSNAPTODEFBUTTON = 0x0060 -Global Const $SPI_GETMOUSEHOVERWIDTH = 0x0062 -Global Const $SPI_SETMOUSEHOVERWIDTH = 0x0063 -Global Const $SPI_GETMOUSEHOVERHEIGHT = 0x0064 -Global Const $SPI_SETMOUSEHOVERHEIGHT = 0x0065 -Global Const $SPI_GETMOUSEHOVERTIME = 0x0066 -Global Const $SPI_SETMOUSEHOVERTIME = 0x0067 -Global Const $SPI_GETWHEELSCROLLLINES = 0x0068 -Global Const $SPI_SETWHEELSCROLLLINES = 0x0069 -Global Const $SPI_GETMENUSHOWDELAY = 0x006A -Global Const $SPI_SETMENUSHOWDELAY = 0x006B -Global Const $SPI_GETSHOWIMEUI = 0x006E -Global Const $SPI_SETSHOWIMEUI = 0x006F -Global Const $SPI_GETMOUSESPEED = 0x0070 -Global Const $SPI_SETMOUSESPEED = 0x0071 -Global Const $SPI_GETSCREENSAVERRUNNING = 0x0072 -Global Const $SPI_GETDESKWALLPAPER = 0x0073 -Global Const $SPI_GETACTIVEWINDOWTRACKING = 0x1000 -Global Const $SPI_SETACTIVEWINDOWTRACKING = 0x1001 -Global Const $SPI_GETMENUANIMATION = 0x1002 -Global Const $SPI_SETMENUANIMATION = 0x1003 -Global Const $SPI_GETCOMBOBOXANIMATION = 0x1004 -Global Const $SPI_SETCOMBOBOXANIMATION = 0x1005 -Global Const $SPI_GETLISTBOXSMOOTHSCROLLING = 0x1006 -Global Const $SPI_SETLISTBOXSMOOTHSCROLLING = 0x1007 -Global Const $SPI_GETGRADIENTCAPTIONS = 0x1008 -Global Const $SPI_SETGRADIENTCAPTIONS = 0x1009 -Global Const $SPI_GETKEYBOARDCUES = 0x100A -Global Const $SPI_SETKEYBOARDCUES = 0x100B -Global Const $SPI_GETMENUUNDERLINES = $SPI_GETKEYBOARDCUES -Global Const $SPI_SETMENUUNDERLINES = $SPI_SETKEYBOARDCUES -Global Const $SPI_GETACTIVEWNDTRKZORDER = 0x100C -Global Const $SPI_SETACTIVEWNDTRKZORDER = 0x100D -Global Const $SPI_GETHOTTRACKING = 0x100E -Global Const $SPI_SETHOTTRACKING = 0x100F -Global Const $SPI_GETMENUFADE = 0x1012 -Global Const $SPI_SETMENUFADE = 0x1013 -Global Const $SPI_GETSELECTIONFADE = 0x1014 -Global Const $SPI_SETSELECTIONFADE = 0x1015 -Global Const $SPI_GETTOOLTIPANIMATION = 0x1016 -Global Const $SPI_SETTOOLTIPANIMATION = 0x1017 -Global Const $SPI_GETTOOLTIPFADE = 0x1018 -Global Const $SPI_SETTOOLTIPFADE = 0x1019 -Global Const $SPI_GETCURSORSHADOW = 0x101A -Global Const $SPI_SETCURSORSHADOW = 0x101B -Global Const $SPI_GETMOUSESONAR = 0x101C -Global Const $SPI_SETMOUSESONAR = 0x101D -Global Const $SPI_GETMOUSECLICKLOCK = 0x101E -Global Const $SPI_SETMOUSECLICKLOCK = 0x101F -Global Const $SPI_GETMOUSEVANISH = 0x1020 -Global Const $SPI_SETMOUSEVANISH = 0x1021 -Global Const $SPI_GETFLATMENU = 0x1022 -Global Const $SPI_SETFLATMENU = 0x1023 -Global Const $SPI_GETDROPSHADOW = 0x1024 -Global Const $SPI_SETDROPSHADOW = 0x1025 -Global Const $SPI_GETBLOCKSENDINPUTRESETS = 0x1026 -Global Const $SPI_SETBLOCKSENDINPUTRESETS = 0x1027 -Global Const $SPI_GETUIEFFECTS = 0x103E -Global Const $SPI_SETUIEFFECTS = 0x103F -Global Const $SPI_GETFOREGROUNDLOCKTIMEOUT = 0x2000 -Global Const $SPI_SETFOREGROUNDLOCKTIMEOUT = 0x2001 -Global Const $SPI_GETACTIVEWNDTRKTIMEOUT = 0x2002 -Global Const $SPI_SETACTIVEWNDTRKTIMEOUT = 0x2003 -Global Const $SPI_GETFOREGROUNDFLASHCOUNT = 0x2004 -Global Const $SPI_SETFOREGROUNDFLASHCOUNT = 0x2005 -Global Const $SPI_GETCARETWIDTH = 0x2006 -Global Const $SPI_SETCARETWIDTH = 0x2007 -Global Const $SPI_GETMOUSECLICKLOCKTIME = 0x2008 -Global Const $SPI_SETMOUSECLICKLOCKTIME = 0x2009 -Global Const $SPI_GETFONTSMOOTHINGTYPE = 0x200A -Global Const $SPI_SETFONTSMOOTHINGTYPE = 0x200B -Global Const $SPI_GETFONTSMOOTHINGCONTRAST = 0x200C -Global Const $SPI_SETFONTSMOOTHINGCONTRAST = 0x200D -Global Const $SPI_GETFOCUSBORDERWIDTH = 0x200E -Global Const $SPI_SETFOCUSBORDERWIDTH = 0x200F -Global Const $SPI_GETFOCUSBORDERHEIGHT = 0x2010 -Global Const $SPI_SETFOCUSBORDERHEIGHT = 0x2011 -Global Const $SPI_GETFONTSMOOTHINGORIENTATION = 0x2012 -Global Const $SPI_SETFONTSMOOTHINGORIENTATION = 0x2013 - -Global Const $FE_FONTSMOOTHINGSTANDARD = 0x0001 -Global Const $FE_FONTSMOOTHINGCLEARTYPE = 0x0002 -Global Const $FE_FONTSMOOTHINGDOCKING = 0x8000 - -Global Const $FE_FONTSMOOTHINGORIENTATIONBGR = 0x0000 -Global Const $FE_FONTSMOOTHINGORIENTATIONRGB = 0x0001 - -Global Const $SPIF_UPDATEINIFILE = 0x0001 -Global Const $SPIF_SENDWININICHANGE = 0x0002 -Global Const $SPIF_SENDCHANGE = $SPIF_SENDWININICHANGE -; =============================================================================================================================== diff --git a/build/Include/WinAPIvkeysConstants.au3 b/build/Include/WinAPIvkeysConstants.au3 deleted file mode 100644 index ea1ec112a..000000000 --- a/build/Include/WinAPIvkeysConstants.au3 +++ /dev/null @@ -1,189 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: API Constants UDF Library for AutoIt3 -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants that can be used with UDF library -; Author(s) .....: Yashied, Jpm -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; Virtual Keys Constants -Global Const $VK_LBUTTON = 0x01 -Global Const $VK_RBUTTON = 0x02 -Global Const $VK_CANCEL = 0x03 -Global Const $VK_MBUTTON = 0x04 -Global Const $VK_XBUTTON1 = 0x05 -Global Const $VK_XBUTTON2 = 0x06 -Global Const $VK_BACK = 0x08 -Global Const $VK_TAB = 0x09 -Global Const $VK_CLEAR = 0x0C -Global Const $VK_RETURN = 0x0D -Global Const $VK_SHIFT = 0x10 -Global Const $VK_CONTROL = 0x11 -Global Const $VK_MENU = 0x12 -Global Const $VK_PAUSE = 0x13 -Global Const $VK_CAPITAL = 0x14 -Global Const $VK_KANA = 0x15 -Global Const $VK_HANGUL = 0x15 -Global Const $VK_JUNJA = 0x17 -Global Const $VK_FINAL = 0x18 -Global Const $VK_HANJA = 0x19 -Global Const $VK_KANJI = 0x19 -Global Const $VK_ESCAPE = 0x1B -Global Const $VK_CONVERT = 0x1C -Global Const $VK_NONCONVERT = 0x1D -Global Const $VK_ACCEPT = 0x1E -Global Const $VK_MODECHANGE = 0x1F -Global Const $VK_SPACE = 0x20 - -; move from Constants.au3 -Global Const $VK_PRIOR = 0x21 -Global Const $VK_NEXT = 0x22 -Global Const $VK_END = 0x23 -Global Const $VK_HOME = 0x24 -Global Const $VK_LEFT = 0x25 -Global Const $VK_UP = 0x26 -Global Const $VK_RIGHT = 0x27 -Global Const $VK_DOWN = 0x28 - -Global Const $VK_SELECT = 0x29 -Global Const $VK_PRINT = 0x2A -Global Const $VK_EXECUTE = 0x2B -Global Const $VK_SNAPSHOT = 0x2C -Global Const $VK_INSERT = 0x2D -Global Const $VK_DELETE = 0x2E -Global Const $VK_HELP = 0x2F -Global Const $VK_0 = 0x30 -Global Const $VK_1 = 0x31 -Global Const $VK_2 = 0x32 -Global Const $VK_3 = 0x33 -Global Const $VK_4 = 0x34 -Global Const $VK_5 = 0x35 -Global Const $VK_6 = 0x36 -Global Const $VK_7 = 0x37 -Global Const $VK_8 = 0x38 -Global Const $VK_9 = 0x39 -Global Const $VK_A = 0x41 -Global Const $VK_B = 0x42 -Global Const $VK_C = 0x43 -Global Const $VK_D = 0x44 -Global Const $VK_E = 0x45 -Global Const $VK_F = 0x46 -Global Const $VK_G = 0x47 -Global Const $VK_H = 0x48 -Global Const $VK_I = 0x49 -Global Const $VK_J = 0x4A -Global Const $VK_K = 0x4B -Global Const $VK_L = 0x4C -Global Const $VK_M = 0x4D -Global Const $VK_N = 0x4E -Global Const $VK_O = 0x4F -Global Const $VK_P = 0x50 -Global Const $VK_Q = 0x51 -Global Const $VK_R = 0x52 -Global Const $VK_S = 0x53 -Global Const $VK_T = 0x54 -Global Const $VK_U = 0x55 -Global Const $VK_V = 0x56 -Global Const $VK_W = 0x57 -Global Const $VK_X = 0x58 -Global Const $VK_Y = 0x59 -Global Const $VK_Z = 0x5A -Global Const $VK_LWIN = 0x5B -Global Const $VK_RWIN = 0x5C -Global Const $VK_APPS = 0x5D -Global Const $VK_SLEEP = 0x5F -Global Const $VK_NUMPAD0 = 0x60 -Global Const $VK_NUMPAD1 = 0x61 -Global Const $VK_NUMPAD2 = 0x62 -Global Const $VK_NUMPAD3 = 0x63 -Global Const $VK_NUMPAD4 = 0x64 -Global Const $VK_NUMPAD5 = 0x65 -Global Const $VK_NUMPAD6 = 0x66 -Global Const $VK_NUMPAD7 = 0x67 -Global Const $VK_NUMPAD8 = 0x68 -Global Const $VK_NUMPAD9 = 0x69 -Global Const $VK_MULTIPLY = 0x6A -Global Const $VK_ADD = 0x6B -Global Const $VK_SEPARATOR = 0x6C -Global Const $VK_SUBTRACT = 0x6D -Global Const $VK_DECIMAL = 0x6E -Global Const $VK_DIVIDE = 0x6F -Global Const $VK_F1 = 0x70 -Global Const $VK_F2 = 0x71 -Global Const $VK_F3 = 0x72 -Global Const $VK_F4 = 0x73 -Global Const $VK_F5 = 0x74 -Global Const $VK_F6 = 0x75 -Global Const $VK_F7 = 0x76 -Global Const $VK_F8 = 0x77 -Global Const $VK_F9 = 0x78 -Global Const $VK_F10 = 0x79 -Global Const $VK_F11 = 0x7A -Global Const $VK_F12 = 0x7B -Global Const $VK_F13 = 0x7C -Global Const $VK_F14 = 0x7D -Global Const $VK_F15 = 0x7E -Global Const $VK_F16 = 0x7F -Global Const $VK_F17 = 0x80 -Global Const $VK_F18 = 0x81 -Global Const $VK_F19 = 0x82 -Global Const $VK_F20 = 0x83 -Global Const $VK_F21 = 0x84 -Global Const $VK_F22 = 0x85 -Global Const $VK_F23 = 0x86 -Global Const $VK_F24 = 0x87 -Global Const $VK_NUMLOCK = 0x90 -Global Const $VK_SCROLL = 0x91 -Global Const $VK_LSHIFT = 0xA0 -Global Const $VK_RSHIFT = 0xA1 -Global Const $VK_LCONTROL = 0xA2 -Global Const $VK_RCONTROL = 0xA3 -Global Const $VK_LMENU = 0xA4 -Global Const $VK_RMENU = 0xA5 -Global Const $VK_BROWSER_BACK = 0xA6 -Global Const $VK_BROWSER_FORWARD = 0xA7 -Global Const $VK_BROWSER_REFRESH = 0xA8 -Global Const $VK_BROWSER_STOP = 0xA9 -Global Const $VK_BROWSER_SEARCH = 0xAA -Global Const $VK_BROWSER_FAVORITES = 0xAB -Global Const $VK_BROWSER_HOME = 0xAC -Global Const $VK_VOLUME_MUTE = 0xAD -Global Const $VK_VOLUME_DOWN = 0xAE -Global Const $VK_VOLUME_UP = 0xAF -Global Const $VK_MEDIA_NEXT_TRACK = 0xB0 -Global Const $VK_MEDIA_PREV_TRACK = 0xB1 -Global Const $VK_MEDIA_STOP = 0xB2 -Global Const $VK_MEDIA_PLAY_PAUSE = 0xB3 -Global Const $VK_LAUNCH_MAIL = 0xB4 -Global Const $VK_LAUNCH_MEDIA_SELECT = 0xB5 -Global Const $VK_LAUNCH_APP1 = 0xB6 -Global Const $VK_LAUNCH_APP2 = 0xB7 -Global Const $VK_OEM_1 = 0xBA ; ';:' -Global Const $VK_OEM_PLUS = 0xBB ; '=+' -Global Const $VK_OEM_COMMA = 0xBC ; ',<' -Global Const $VK_OEM_MINUS = 0xBD ; '-_' -Global Const $VK_OEM_PERIOD = 0xBE ; '.>' -Global Const $VK_OEM_2 = 0xBF ; '/?' -Global Const $VK_OEM_3 = 0xC0 ; '`~' -Global Const $VK_OEM_4 = 0xDB ; '[{' -Global Const $VK_OEM_5 = 0xDC ; '\|' -Global Const $VK_OEM_6 = 0xDD ; ']}' -Global Const $VK_OEM_7 = 0xDE ; ''"' -Global Const $VK_OEM_8 = 0xDF -Global Const $VK_OEM_102 = 0xE2 -Global Const $VK_PROCESSKEY = 0xE5 -Global Const $VK_PACKET = 0xE7 -Global Const $VK_ATTN = 0xF6 -Global Const $VK_CRSEL = 0xF7 -Global Const $VK_EXSEL = 0xF8 -Global Const $VK_EREOF = 0xF9 -Global Const $VK_PLAY = 0xFA -Global Const $VK_ZOOM = 0xFB -Global Const $VK_NONAME = 0xFC -Global Const $VK_PA1 = 0xFD -Global Const $VK_OEM_CLEAR = 0xFE -; =============================================================================================================================== diff --git a/build/Include/WinNet.au3 b/build/Include/WinNet.au3 deleted file mode 100644 index fe79944e2..000000000 --- a/build/Include/WinNet.au3 +++ /dev/null @@ -1,857 +0,0 @@ -#include-once - -#include "StructureConstants.au3" -#include "WinAPI.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: WindowsNetworking -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Functions that assist with Windows Networking management. -; The Windows Networking (WNet) functions allow you to implement networking capabilities in your application -; without making allowances for a particular network provider or physical network implementation. This is -; because the WNet functions are network independent. -; Author(s) .....: Paul Campbell (PaulIA) -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -Global Const $CONNDLG_RO_PATH = 0x00000001 -Global Const $CONNDLG_CONN_POINT = 0x00000002 -Global Const $CONNDLG_USE_MRU = 0x00000004 -Global Const $CONNDLG_HIDE_BOX = 0x00000008 -Global Const $CONNDLG_PERSIST = 0x00000010 -Global Const $CONNDLG_NOT_PERSIST = 0x00000020 - -Global Const $CONNECT_UPDATE_PROFILE = 0x00000001 -Global Const $CONNECT_UPDATE_RECENT = 0x00000002 -Global Const $CONNECT_TEMPORARY = 0x00000004 -Global Const $CONNECT_INTERACTIVE = 0x00000008 -Global Const $CONNECT_PROMPT = 0x00000010 -Global Const $CONNECT_NEED_DRIVE = 0x00000020 -Global Const $CONNECT_REFCOUNT = 0x00000040 -Global Const $CONNECT_REDIRECT = 0x00000080 -Global Const $CONNECT_LOCALDRIVE = 0x00000100 -Global Const $CONNECT_CURRENT_MEDIA = 0x00000200 -Global Const $CONNECT_DEFERRED = 0x00000400 -Global Const $CONNECT_COMMANDLINE = 0x00000800 -Global Const $CONNECT_CMD_SAVECRED = 0x00001000 -Global Const $CONNECT_RESERVED = 0xFF000000 - -Global Const $DISC_UPDATE_PROFILE = 0x00000001 -Global Const $DISC_NO_FORCE = 0x00000040 - -Global Const $RESOURCE_CONNECTED = 0x00000001 -Global Const $RESOURCE_GLOBALNET = 0x00000002 -Global Const $RESOURCE_REMEMBERED = 0x00000003 -Global Const $RESOURCE_RECENT = 0x00000004 -Global Const $RESOURCE_CONTEXT = 0x00000005 - -Global Const $RESOURCETYPE_ANY = 0x00000000 -Global Const $RESOURCETYPE_DISK = 0x00000001 -Global Const $RESOURCETYPE_PRINT = 0x00000002 -Global Const $RESOURCETYPE_RESERVED = 0x00000008 -Global Const $RESOURCETYPE_UNKNOWN = 0xFFFFFFFF - -Global Const $RESOURCEUSAGE_CONNECTABLE = 0x00000001 -Global Const $RESOURCEUSAGE_CONTAINER = 0x00000002 -Global Const $RESOURCEUSAGE_NOLOCALDEVICE = 0x00000004 -Global Const $RESOURCEUSAGE_SIBLING = 0x00000008 -Global Const $RESOURCEUSAGE_ATTACHED = 0x00000010 -Global Const $RESOURCEUSAGE_RESERVED = 0x80000000 - -Global Const $WNNC_NET_MSNET = 0x00010000 -Global Const $WNNC_NET_LANMAN = 0x00020000 -Global Const $WNNC_NET_NETWARE = 0x00030000 -Global Const $WNNC_NET_VINES = 0x00040000 -Global Const $WNNC_NET_10NET = 0x00050000 -Global Const $WNNC_NET_LOCUS = 0x00060000 -Global Const $WNNC_NET_SUN_PC_NFS = 0x00070000 -Global Const $WNNC_NET_LANSTEP = 0x00080000 -Global Const $WNNC_NET_9TILES = 0x00090000 -Global Const $WNNC_NET_LANTASTIC = 0x000A0000 -Global Const $WNNC_NET_AS400 = 0x000B0000 -Global Const $WNNC_NET_FTP_NFS = 0x000C0000 -Global Const $WNNC_NET_PATHWORKS = 0x000D0000 -Global Const $WNNC_NET_LIFENET = 0x000E0000 -Global Const $WNNC_NET_POWERLAN = 0x000F0000 -Global Const $WNNC_NET_BWNFS = 0x00100000 -Global Const $WNNC_NET_COGENT = 0x00110000 -Global Const $WNNC_NET_FARALLON = 0x00120000 -Global Const $WNNC_NET_APPLETALK = 0x00130000 -Global Const $WNNC_NET_INTERGRAPH = 0x00140000 -Global Const $WNNC_NET_SYMFONET = 0x00150000 -Global Const $WNNC_NET_CLEARCASE = 0x00160000 -Global Const $WNNC_NET_FRONTIER = 0x00170000 -Global Const $WNNC_NET_BMC = 0x00180000 -Global Const $WNNC_NET_DCE = 0x00190000 -Global Const $WNNC_NET_AVID = 0x001A0000 -Global Const $WNNC_NET_DOCUSPACE = 0x001B0000 -Global Const $WNNC_NET_MANGOSOFT = 0x001C0000 -Global Const $WNNC_NET_SERNET = 0x001D0000 -Global Const $WNNC_NET_RIVERFRONT1 = 0x001E0000 -Global Const $WNNC_NET_RIVERFRONT2 = 0x001F0000 -Global Const $WNNC_NET_DECORB = 0x00200000 -Global Const $WNNC_NET_PROTSTOR = 0x00210000 -Global Const $WNNC_NET_FJ_REDIR = 0x00220000 -Global Const $WNNC_NET_DISTINCT = 0x00230000 -Global Const $WNNC_NET_TWINS = 0x00240000 -Global Const $WNNC_NET_RDR2SAMPLE = 0x00250000 -Global Const $WNNC_NET_CSC = 0x00260000 -Global Const $WNNC_NET_3IN1 = 0x00270000 -Global Const $WNNC_NET_EXTENDNET = 0x00290000 -Global Const $WNNC_NET_STAC = 0x002A0000 -Global Const $WNNC_NET_FOXBAT = 0x002B0000 -Global Const $WNNC_NET_YAHOO = 0x002C0000 -Global Const $WNNC_NET_EXIFS = 0x002D0000 -Global Const $WNNC_NET_DAV = 0x002E0000 -Global Const $WNNC_NET_KNOWARE = 0x002F0000 -Global Const $WNNC_NET_OBJECT_DIRE = 0x00300000 -Global Const $WNNC_NET_MASFAX = 0x00310000 -Global Const $WNNC_NET_HOB_NFS = 0x00320000 -Global Const $WNNC_NET_SHIVA = 0x00330000 -Global Const $WNNC_NET_IBMAL = 0x00340000 -Global Const $WNNC_NET_LOCK = 0x00350000 -Global Const $WNNC_NET_TERMSRV = 0x00360000 -Global Const $WNNC_NET_SRT = 0x00370000 -Global Const $WNNC_NET_QUINCY = 0x00380000 -Global Const $WNNC_CRED_MANAGER = 0xFFFF0000 -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _WinNet_AddConnection -; _WinNet_AddConnection2 -; _WinNet_AddConnection3 -; _WinNet_CancelConnection -; _WinNet_CancelConnection2 -; _WinNet_CloseEnum -; _WinNet_ConnectionDialog -; _WinNet_ConnectionDialog1 -; _WinNet_DisconnectDialog -; _WinNet_DisconnectDialog1 -; _WinNet_EnumResource -; _WinNet_GetConnection -; _WinNet_GetConnectionPerformance -; _WinNet_GetLastError -; _WinNet_GetNetworkInformation -; _WinNet_GetProviderName -; _WinNet_GetResourceInformation -; _WinNet_GetResourceParent -; _WinNet_GetUniversalName -; _WinNet_GetUser -; _WinNet_OpenEnum -; _WinNet_RestoreConnection -; _WinNet_UseConnection -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; $tagCONNECTDLGSTRUCT -; $tagDISCDLGSTRUCT -; $tagNETCONNECTINFOSTRUCT -; $tagNETINFOSTRUCT -; $tagREMOTE_NAME_INFO -; __WinNet_NETRESOURCEToArray -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagCONNECTDLGSTRUCT -; Description ...: tagCONNECTDLGSTRUCT structure -; Fields ........: Size - Size of this structure, in bytes -; hWnd - Handle to the owner window for the dialog box -; Resource - Pointer to a tagNETRESOURCE structure. If the lemoteName member of tagNETRESOURCE is specified, -; +it will be entered into the path field of the dialog box. With the exception of the Type member, all other -; +members of the tagNETRESOURCE structure must be set to 0. -; Flags - Set of flags describing options for the dialog box display: -; |$SidTypeUser - The account is a user account -; |$CONNDLG_RO_PATH - Display a read-only path instead of allowing the user to type in a path -; |$CONNDLG_CONN_POINT - Internal flag. Do not use. -; |$CONNDLG_USE_MRU - Enter the most recently used paths into the combination box -; |$CONNDLG_HIDE_BOX - Show the check box allowing the user to restore the connection at logon -; |$CONNDLG_PERSIST - Restore the connection at logon -; |$CONNDLG_NOT_PERSIST - Do not restore the connection at logon -; DevNum - If the call to the _WNet_ConnectionDialog1 function is successful, this member returns the number -; +of the connected device. The value is 1 for A:, 2 for B:, 3 for C:, and so on. If the user made a deviceless -; +connection, the value is –1. -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagCONNECTDLGSTRUCT = "dword Size;hwnd hWnd;ptr Resource;dword Flags;dword DevNum" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagDISCDLGSTRUCT -; Description ...: tagDISCDLGSTRUCT structure -; Fields ........: Size - Size of this structure, in bytes -; hWnd - Handle to the owner window for the dialog box -; LocalName - Pointer to a null-terminated string that specifies the local device name that is redirected to -; +the network resource, such as "F:" or "LPT1". -; RemoteName - Pointer to a null-terminated string that specifies the name of the resource to disconnect. This -; +member can be 0 if the LocalName member is specified. When LocalName is specified, the connection to the -; +network resource redirected from LocalName is disconnected. -; Flags - Set of bit flags describing the connection: -; |$DISC_UPDATE_PROFILE - If this value is set, the specified connection is no longer a persistent one. This -; +flag is valid only if the LocalName member specifies a local device. -; |$DISC_NO_FORCE - If this value is not set, the system applies force when attempting to disconnect from -; +the network resource. This situation typically occurs when the user has files open over the connection. This -; +value means that the user will be informed if there are open files on the connection, and asked if he or she -; +still wants to disconnect. If the user wants to proceed, the disconnect procedure re-attempts with additional -; +force. -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagDISCDLGSTRUCT = "dword Size;hwnd hWnd;ptr LocalName;ptr RemoteName;dword Flags" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagNETCONNECTINFOSTRUCT -; Description ...: tagNETCONNECTINFOSTRUCT structure -; Fields ........: Size - Size of this structure, in bytes -; Flags - Set of bit flags describing the connection: -; |$WNCON_FORNETCARD - In the absence of information about the actual connection, the information returned -; +applies to the performance of the network card. If this flag is not set, information is being returned for -; +the current connection with the resource, with any routing degradation taken into consideration. -; |$WNCON_NOTROUTED - The connection is not being routed. If this flag is not set, the connection may be going -; +through routers that limit performance. Consequently, if WNCON_FORNETCARD is set, actual performance may be -; +much less than the information returned. -; |$WNCON_SLOWLINK - The connection is over a medium that is typically slow. You should not set this bit if -; +the Speed member is set to a nonzero value. -; |$WNCON_DYNAMIC - Some of the information returned is calculated dynamically, so reissuing this request may -; +return different (and more current) information. -; Speed - Speed of the media to the network resource, in 100 bits-per-second -; Delay - One-way delay time that the network introduces when sending information, in milliseconds -; OptDataSize - Size of data that an application should use when making a single request to the network resource -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagNETCONNECTINFOSTRUCT = "dword Size;dword Flags;dword Speed;dword Delay;dword OptDataSize" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagNETINFOSTRUCT -; Description ...: tagNETINFOSTRUCT structure -; Fields ........: Size - Size of this structure, in bytes -; Version - Version number of the network provider software -; Status - Current status of the network provider software: -; |$NO_ERROR - The network is running -; |$ERROR_NO_NETWORK - The network is unavailable -; |$ERROR_BUSY - The network is currently unavailable, but it should become available shortly -; Char - Characteristics of the network provider software. This value is zero. -; Handle - Instance handle for the network provider or for the 16-bit Windows network driver -; NetType - Network type unique to the running network -; Printers - Set of bit flags indicating the valid print numbers for redirecting local printer devices, with the -; +low order bit corresponding to LPT1. -; Drives - Set of bit flags indicating the valid local disk devices for redirecting disk drives, with the low -; +order bit corresponding to A:. -; Reserved - Reserved, must be 0 -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagNETINFOSTRUCT = "dword Size;dword Version;dword Status;dword Char;ulong_ptr Handle;word NetType;dword Printers;dword Drives" - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: $tagREMOTE_NAME_INFO -; Description ...: tagREMOTE_NAME_INFO structure -; Fields ........: Universal - Pointer to the null-terminated UNC name string that identifies a network resource -; Connection - Pointer to a null-terminated string that is the name of a network connection -; Remaining - Pointer to a null-terminated name string -; Author ........: Paul Campbell (PaulIA) -; Remarks .......: -; =============================================================================================================================== -Global Const $tagREMOTE_NAME_INFO = "ptr Universal;ptr Connection;ptr Remaining" - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_AddConnection($sLocalName, $sRemoteName, $sPassword = 0) - Local $tPassword = 0 - If IsString($sPassword) Then - $tPassword = DllStructCreate("wchar Text[4096]") - DllStructSetData($tPassword, "Text", $sPassword) - EndIf - - Local $aResult = DllCall("mpr.dll", "dword", "WNetAddConnectionW", "wstr", $sRemoteName, "struct*", $tPassword, "wstr", $sLocalName) - If @error Then Return SetError(@error, @extended, False) - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_AddConnection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_AddConnection2($sLocalName, $sRemoteName, $sUserName = 0, $sPassword = 0, $iType = 1, $iOptions = 1) - Local $tLocalName = DllStructCreate("wchar Text[1024]") - Local $pLocalName = DllStructGetPtr($tLocalName) - DllStructSetData($tLocalName, "Text", $sLocalName) - - Local $tRemoteName = DllStructCreate("wchar Text[1024]") - Local $pRemoteName = DllStructGetPtr($tRemoteName) - DllStructSetData($tRemoteName, "Text", $sRemoteName) - - Local $tUserName = 0 - If IsString($sUserName) Then - $tUserName = DllStructCreate("wchar Text[1024]") - DllStructSetData($tUserName, "Text", $sUserName) - EndIf - - Local $tPassword = 0 - If IsString($sPassword) Then - $tPassword = DllStructCreate("wchar Text[1024]") - DllStructSetData($tPassword, "Text", $sPassword) - EndIf - - Local $iFlags = 0 - If BitAND($iOptions, 1) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_UPDATE_PROFILE) - If BitAND($iOptions, 2) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_INTERACTIVE) - If BitAND($iOptions, 4) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_PROMPT) - If BitAND($iOptions, 8) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_REDIRECT) - If BitAND($iOptions, 16) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_COMMANDLINE) - If BitAND($iOptions, 32) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_CMD_SAVECRED) - - Local $tResource = DllStructCreate($tagNETRESOURCE) - DllStructSetData($tResource, "Type", $iType) - DllStructSetData($tResource, "LocalName", $pLocalName) - DllStructSetData($tResource, "RemoteName", $pRemoteName) - - Local $aResult = DllCall("mpr.dll", "dword", "WNetAddConnection2W", "struct*", $tResource, "struct*", $tPassword, "struct*", $tUserName, "dword", $iFlags) - If @error Then Return SetError(@error, @extended, False) - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_AddConnection2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_AddConnection3($hWnd, $sLocalName, $sRemoteName, $sUserName = 0, $sPassword = 0, $iType = 1, $iOptions = 1) - Local $tLocalName = DllStructCreate("wchar Text[1024]") - Local $pLocalName = DllStructGetPtr($tLocalName) - DllStructSetData($tLocalName, "Text", $sLocalName) - - Local $tRemoteName = DllStructCreate("wchar Text[1024]") - Local $pRemoteName = DllStructGetPtr($tRemoteName) - DllStructSetData($tRemoteName, "Text", $sRemoteName) - - Local $tUserName = 0 - If IsString($sUserName) Then - $tUserName = DllStructCreate("wchar Text[1024]") - DllStructSetData($tUserName, "Text", $sUserName) - EndIf - - Local $tPassword = 0 - If IsString($sPassword) Then - $tPassword = DllStructCreate("wchar Text[1024]") - DllStructSetData($tPassword, "Text", $sPassword) - EndIf - - Local $iFlags = 0 - If BitAND($iOptions, 1) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_UPDATE_PROFILE) - If BitAND($iOptions, 2) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_INTERACTIVE) - If BitAND($iOptions, 4) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_PROMPT) - If BitAND($iOptions, 8) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_REDIRECT) - If BitAND($iOptions, 16) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_COMMANDLINE) - If BitAND($iOptions, 32) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_CMD_SAVECRED) - - Local $tResource = DllStructCreate($tagNETRESOURCE) - DllStructSetData($tResource, "Type", $iType) - DllStructSetData($tResource, "LocalName", $pLocalName) - DllStructSetData($tResource, "RemoteName", $pRemoteName) - - Local $aResult = DllCall("mpr.dll", "dword", "WNetAddConnection3W", "hwnd", $hWnd, "struct*", $tResource, "struct*", $tPassword, "struct*", $tUserName, "dword", $iFlags) - If @error Then Return SetError(@error, @extended, False) - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_AddConnection3 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_CancelConnection($sName, $bForce = True) - Local $aResult = DllCall("mpr.dll", "dword", "WNetCancelConnectionW", "wstr", $sName, "bool", $bForce) - If @error Then Return SetError(@error, @extended, False) - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_CancelConnection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_CancelConnection2($sName, $bUpdate = True, $bForce = True) - Local $aResult = DllCall("mpr.dll", "dword", "WNetCancelConnection2W", "wstr", $sName, "dword", $bUpdate, "bool", $bForce) - If @error Then Return SetError(@error, @extended, False) - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_CancelConnection2 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_CloseEnum($hEnum) - Local $aResult = DllCall("mpr.dll", "dword", "WNetCloseEnum", "handle", $hEnum) - If @error Then Return SetError(@error, @extended, False) - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_CloseEnum - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_ConnectionDialog($hWnd) - Local $aResult = DllCall("mpr.dll", "dword", "WNetConnectionDialog", "hwnd", $hWnd, "dword", $RESOURCETYPE_DISK) - If @error Then Return SetError(@error, @extended, False) - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_ConnectionDialog - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_ConnectionDialog1($hWnd, $sRemoteName = "", $iFlags = 2) - Local $tRemoteName = DllStructCreate("wchar Text[1024]") - Local $pRemoteName = DllStructGetPtr($tRemoteName) - DllStructSetData($tRemoteName, "Text", $sRemoteName) - - Local $tResource = DllStructCreate($tagNETRESOURCE) - Local $pResource = DllStructGetPtr($tResource) - DllStructSetData($tResource, "Type", $RESOURCETYPE_DISK) - DllStructSetData($tResource, "RemoteName", $pRemoteName) - - Local $iDialog = 0 - If BitAND($iFlags, 1) <> 0 Then $iDialog = BitOR($iDialog, $CONNDLG_RO_PATH) - If BitAND($iFlags, 2) <> 0 Then $iDialog = BitOR($iDialog, $CONNDLG_USE_MRU) - If BitAND($iFlags, 4) <> 0 Then $iDialog = BitOR($iDialog, $CONNDLG_HIDE_BOX) - If BitAND($iFlags, 8) <> 0 Then $iDialog = BitOR($iDialog, $CONNDLG_PERSIST) - If BitAND($iFlags, 16) <> 0 Then $iDialog = BitOR($iDialog, $CONNDLG_NOT_PERSIST) - - Local $tConnect = DllStructCreate($tagCONNECTDLGSTRUCT) - DllStructSetData($tConnect, "Size", DllStructGetSize($tConnect)) - DllStructSetData($tConnect, "hWnd", $hWnd) - DllStructSetData($tConnect, "Resource", $pResource) - DllStructSetData($tConnect, "Flags", $iDialog) - - Local $aResult = DllCall("mpr.dll", "dword", "WNetConnectionDialog1W", "struct*", $tConnect) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] = -1 Then Return -1 ; user cancels the dialog box - If $aResult[0] <> 0 Then Return SetError($aResult[0], 0, 0) - Return DllStructGetData($tConnect, "DevNum") -EndFunc ;==>_WinNet_ConnectionDialog1 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_DisconnectDialog($hWnd) - Local $aResult = DllCall("mpr.dll", "dword", "WNetDisconnectDialog", "hwnd", $hWnd, "dword", $RESOURCETYPE_DISK) - If @error Then Return SetError(@error, @extended, False) - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_DisconnectDialog - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_DisconnectDialog1($hWnd, $sLocalName, $sRemoteName = "", $iFlags = 1) - Local $tLocalName = DllStructCreate("wchar Text[1024]") - Local $pLocalName = DllStructGetPtr($tLocalName) - DllStructSetData($tLocalName, "Text", $sLocalName) - - Local $pRemoteName = 0 - If $sRemoteName <> "" Then - Local $tRemoteName = DllStructCreate("wchar Text[1024]") - $pRemoteName = DllStructGetPtr($tRemoteName) - DllStructSetData($tRemoteName, "Text", $sRemoteName) - EndIf - - Local $iOptions = 0 - If BitAND($iFlags, 1) <> 0 Then $iOptions = BitOR($iOptions, $DISC_UPDATE_PROFILE) - If BitAND($iFlags, 2) <> 0 Then $iOptions = BitOR($iOptions, $DISC_NO_FORCE) - - Local $tDialog = DllStructCreate($tagDISCDLGSTRUCT) - DllStructSetData($tDialog, "Size", DllStructGetSize($tDialog)) - DllStructSetData($tDialog, "hWnd", $hWnd) - DllStructSetData($tDialog, "LocalName", $pLocalName) - DllStructSetData($tDialog, "RemoteName", $pRemoteName) - DllStructSetData($tDialog, "Flags", $iOptions) - - Local $aResult = DllCall("mpr.dll", "dword", "WNetDisconnectDialog1W", "struct*", $tDialog) - If @error Then Return SetError(@error, @extended, 0) - If $aResult[0] > 0 Then Return SetError($aResult[0], 0, 0) - If $aResult[0] = -1 Then Return -1 - Return 1 -EndFunc ;==>_WinNet_DisconnectDialog1 - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_EnumResource($hEnum, ByRef $iCount, $pBuffer, ByRef $iBufSize) - Local $aResult = DllCall("mpr.dll", "dword", "WNetEnumResourceW", "handle", $hEnum, "dword*", $iCount, "struct*", $pBuffer, "dword*", $iBufSize) - If @error Then Return SetError(@error, @extended, False) - $iCount = $aResult[2] - $iBufSize = $aResult[4] - Return $aResult[0] -EndFunc ;==>_WinNet_EnumResource - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_GetConnection($sLocalName) - Local $aResult = DllCall("mpr.dll", "dword", "WNetGetConnectionW", "wstr", $sLocalName, "wstr", "", "dword*", 4096) - If @error Then Return SetError(@error, @extended, False) - Return SetExtended($aResult[0], $aResult[2]) -EndFunc ;==>_WinNet_GetConnection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_GetConnectionPerformance($sLocalName, $sRemoteName) - Local $tLocalName = DllStructCreate("wchar Text[4096]") - DllStructSetData($tLocalName, "Text", $sLocalName) - - Local $tRemoteName = DllStructCreate("wchar Text[4096]") - DllStructSetData($tRemoteName, "Text", $sRemoteName) - - Local $tResource = DllStructCreate($tagNETRESOURCE) - DllStructSetData($tResource, "LocalName", DllStructGetPtr($tLocalName)) - DllStructSetData($tResource, "RemoteName", DllStructGetPtr($tRemoteName)) - - Local $tInfo = DllStructCreate($tagNETCONNECTINFOSTRUCT) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - - Local $aResult = DllCall("mpr.dll", "dword", "MultinetGetConnectionPerformanceW", "struct*", $tResource, "struct*", $tInfo) - If @error Then Return SetError(@error, @extended, False) - Local $aInfo[4] - $aInfo[0] = DllStructGetData($tInfo, "Flags") - $aInfo[1] = DllStructGetData($tInfo, "Speed") - $aInfo[2] = DllStructGetData($tInfo, "Delay") - $aInfo[3] = DllStructGetData($tInfo, "OptDataSize") - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_WinNet_GetConnectionPerformance - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_GetLastError(ByRef $iError, ByRef $sError, ByRef $sName) - Local $aResult = DllCall("mpr.dll", "dword", "WNetGetLastErrorW", "dword*", $iError, "wstr", "", "dword", 1024, "wstr", "", "dword", 1024) - If @error Then Return SetError(@error, @extended, False) - $iError = $aResult[1] - $sError = $aResult[2] - $sName = $aResult[3] - Return $aResult[0] -EndFunc ;==>_WinNet_GetLastError - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_GetNetworkInformation($sName) - Local $tInfo = DllStructCreate($tagNETINFOSTRUCT) - DllStructSetData($tInfo, "Size", DllStructGetSize($tInfo)) - - Local $aResult = DllCall("mpr.dll", "dword", "WNetGetNetworkInformationW", "wstr", $sName, "struct*", $tInfo) - If @error Then Return SetError(@error, @extended, False) - Local $aInfo[6] - $aInfo[0] = DllStructGetData($tInfo, "Version") - $aInfo[1] = DllStructGetData($tInfo, "Status") - $aInfo[2] = DllStructGetData($tInfo, "Handle") - $aInfo[3] = DllStructGetData($tInfo, "NetType") - $aInfo[4] = DllStructGetData($tInfo, "Printers") - $aInfo[5] = DllStructGetData($tInfo, "Drives") - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_WinNet_GetNetworkInformation - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_GetProviderName($iType) - Local $aResult = DllCall("mpr.dll", "dword", "WNetGetProviderNameW", "dword", $iType, "wstr", "", "dword*", 4096) - If @error Then Return SetError(@error, @extended, "") - Return SetExtended($aResult[0], $aResult[2]) -EndFunc ;==>_WinNet_GetProviderName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_GetResourceInformation($sRemoteName, $sProvider = "", $iType = 0) - Local $iRemote = StringLen($sRemoteName) + 1 - Local $tRemote = DllStructCreate("wchar Text[" & $iRemote & "]") - Local $pRemote = DllStructGetPtr($tRemote) - DllStructSetData($tRemote, "Text", $sRemoteName) - - Local $pProvider = 0 - If $sProvider <> "" Then - Local $iProvider = StringLen($sProvider) + 1 - Local $tProvider = DllStructCreate("wchar Text[" & $iProvider & "]") - $pProvider = DllStructGetPtr($tProvider) - DllStructSetData($tProvider, "Text", $sProvider) - EndIf - - Local $tBuffer = DllStructCreate("wchar Text[16384]") - - Local $tResource = DllStructCreate($tagNETRESOURCE) - - DllStructSetData($tResource, "RemoteName", $pRemote) - DllStructSetData($tResource, "Type", $iType) - DllStructSetData($tResource, "Provider", $pProvider) - - Local $aResult = DllCall("mpr.dll", "dword", "WNetGetResourceInformationW", "struct*", $tResource, "struct*", $tBuffer, "dword*", 16384, "wstr", "") - If @error Then Return SetError(@error, @extended, False) - Local $aResource = __WinNet_NETRESOURCEToArray(DllStructGetPtr($tBuffer)) - $aResource[8] = $aResult[4] - Return SetExtended($aResult[0], $aResource) -EndFunc ;==>_WinNet_GetResourceInformation - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_GetResourceParent($sRemoteName, $sProvider, $iType = 0) - Local $iRemote = StringLen($sRemoteName) + 1 - Local $tRemote = DllStructCreate("wchar Text[" & $iRemote & "]") - Local $pRemote = DllStructGetPtr($tRemote) - DllStructSetData($tRemote, "Text", $sRemoteName) - - Local $iProvider = StringLen($sProvider) + 1 - Local $tProvider = DllStructCreate("wchar Text[" & $iProvider & "]") - Local $pProvider = DllStructGetPtr($tProvider) - DllStructSetData($tProvider, "Text", $sProvider) - - Local $tBuffer = DllStructCreate("byte[16384]") - - Local $tResource = DllStructCreate($tagNETRESOURCE) - - DllStructSetData($tResource, "RemoteName", $pRemote) - DllStructSetData($tResource, "Type", $iType) - DllStructSetData($tResource, "Provider", $pProvider) - - Local $aResult = DllCall("mpr.dll", "dword", "WNetGetResourceParentW", "struct*", $tResource, "struct*", $tBuffer, "dword*", 16384) - If @error Then Return SetError(@error, @extended, False) - Return SetExtended($aResult[0], __WinNet_NETRESOURCEToArray(DllStructGetPtr($tBuffer))) -EndFunc ;==>_WinNet_GetResourceParent - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_GetUniversalName($sLocalPath) - Local $iLocal = StringLen($sLocalPath) + 1 - Local $tLocal = DllStructCreate("wchar Text[" & $iLocal & "]") - DllStructSetData($tLocal, "Text", $sLocalPath) - - Local $tBuffer = DllStructCreate("byte[16384]") - - Local $aResult = DllCall("mpr.dll", "dword", "WNetGetUniversalNameW", "struct*", $tLocal, "dword", 2, "struct*", $tBuffer, "dword*", 16384) - If @error Then Return SetError(@error, @extended, False) - Local $tRemote = DllStructCreate($tagREMOTE_NAME_INFO, DllStructGetPtr($tBuffer)) - Local $pText = DllStructGetData($tRemote, "Universal") - Local $tText = DllStructCreate("wchar Text[4096]", $pText) - Local $aPath[3] - $aPath[0] = DllStructGetData($tText, "Text") - $pText = DllStructGetData($tRemote, "Connection") - $tText = DllStructCreate("wchar Text[4096]", $pText) - $aPath[1] = DllStructGetData($tText, "Text") - $pText = DllStructGetData($tRemote, "Remaining") - $tText = DllStructCreate("wchar Text[4096]", $pText) - $aPath[2] = DllStructGetData($tText, "Text") - Return SetExtended($aResult[0], $aPath) -EndFunc ;==>_WinNet_GetUniversalName - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_GetUser($sName) - Local $aResult = DllCall("mpr.dll", "dword", "WNetGetUserW", "wstr", $sName, "wstr", "", "dword*", 4096) - If @error Then Return SetError(@error, @extended, False) - Return SetExtended($aResult[0], $aResult[2]) -EndFunc ;==>_WinNet_GetUser - -; #INTERNAL_USE_ONLY# =========================================================================================================== -; Name...........: __WinNet_NETRESOURCEToArray -; Description ...: Returns an array from a $tagNETRESOURCE structure -; Syntax.........: __WinNet_NETRESOURCEToArray ( $pResource ) -; Parameters ....: $pResource - Pointer to a $tagNETRESOURCE structure -; Return values .: Success - Array with the following format: -; |$aResource[0] - Scope of enumeration: -; | 0 - Connected -; | 1 - All resources -; | 2 - Remembered -; |$aResource[1] - Type of resource: -; | 0 - Disk -; | 1 - Print -; | 2 - Unknown -; |$aResource[2] - Display option: -; | 0 - Generic -; | 1 - Domain -; | 2 - Server -; | 3 - Share -; | 4 - File -; | 5 - Group -; | 6 - Network -; | 7 - Root -; | 8 - Admin Share -; | 9 - Directory -; |10 - Tree -; |11 - NDS Container -; |$aResource[3] - Resource usage. Can be one or more of the following: -; | 1 - The resource is a connectable resource -; | 2 - The resource is a container resource -; | 4 - The resource is attached -; | 8 - Thre resource is reserved -; |$aResource[4] - Local name -; |$aResource[5] - Remote name -; |$aResource[6] - Comment supplied by the network provider -; |$aResource[7] - The name of the provider that owns the resource -; |$aResource[8] - The part of the resource that is accessed through system functions -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; Remarks .......: This function is used internally and should not normally be called by the end user -; Related .......: $tagNETRESOURCE -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __WinNet_NETRESOURCEToArray($pResource) - Local $aResource[9] - - Local $tResource = DllStructCreate($tagNETRESOURCE, $pResource) - Local $iFlag = DllStructGetData($tResource, "Scope") - Switch $iFlag - Case $RESOURCE_CONNECTED - $aResource[0] = 0 - Case $RESOURCE_GLOBALNET - $aResource[0] = 1 - Case $RESOURCE_REMEMBERED - $aResource[0] = 2 - Case Else - $aResource[0] = $iFlag - EndSwitch - - $aResource[1] = DllStructGetData($tResource, "Type") - $aResource[2] = DllStructGetData($tResource, "DisplayType") - - Local $iRet = 0 - $iFlag = DllStructGetData($tResource, "Usage") - If BitAND($iFlag, $RESOURCEUSAGE_CONNECTABLE) <> 0 Then $iRet = BitOR($iRet, 1) - If BitAND($iFlag, $RESOURCEUSAGE_CONTAINER) <> 0 Then $iRet = BitOR($iRet, 2) - If BitAND($iFlag, $RESOURCEUSAGE_ATTACHED) <> 0 Then $iRet = BitOR($iRet, 4) - If BitAND($iFlag, $RESOURCEUSAGE_RESERVED) <> 0 Then $iRet = BitOR($iRet, 8) - $aResource[3] = $iRet - - Local $pText = DllStructGetData($tResource, "LocalName") - Local $tText - If $pText <> 0 Then - $tText = DllStructCreate("wchar Text[4096]", $pText) - $aResource[4] = DllStructGetData($tText, "Text") - EndIf - $pText = DllStructGetData($tResource, "RemoteName") - If $pText <> 0 Then - $tText = DllStructCreate("wchar Text[4096]", $pText) - $aResource[5] = DllStructGetData($tText, "Text") - EndIf - $pText = DllStructGetData($tResource, "Comment") - If $pText <> 0 Then - $tText = DllStructCreate("wchar Text[4096]", $pText) - $aResource[6] = DllStructGetData($tText, "Text") - EndIf - $pText = DllStructGetData($tResource, "Provider") - If $pText <> 0 Then - $tText = DllStructCreate("wchar Text[4096]", $pText) - $aResource[7] = DllStructGetData($tText, "Text") - EndIf - Return $aResource -EndFunc ;==>__WinNet_NETRESOURCEToArray - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: jpm -; =============================================================================================================================== -Func _WinNet_OpenEnum($iScope, $iType, $iUsage, $tResource, ByRef $hEnum) - Switch $iScope - Case 1 - $iScope = $RESOURCE_GLOBALNET - Case 2 - $iScope = $RESOURCE_REMEMBERED - Case 3 - $iScope = $RESOURCE_CONTEXT - Case Else - $iScope = $RESOURCE_CONNECTED - EndSwitch - - Local $iFlags = 0 - If BitAND($iUsage, 1) <> 0 Then $iFlags = BitOR($iFlags, $RESOURCEUSAGE_CONNECTABLE) - If BitAND($iUsage, 2) <> 0 Then $iFlags = BitOR($iFlags, $RESOURCEUSAGE_CONTAINER) - If BitAND($iUsage, 4) <> 0 Then $iFlags = BitOR($iFlags, $RESOURCEUSAGE_ATTACHED) - - Local $aResult = DllCall("mpr.dll", "dword", "WNetOpenEnum", "dword", $iScope, "dword", $iType, "dword", $iFlags, "struct*", $tResource, "handle*", 0) - If @error Then Return SetError(@error, @extended, False) - - $hEnum = $aResult[5] - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_OpenEnum - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_RestoreConnection($sDevice = "", $hWnd = 0, $bUseUI = True) - Local $tDevice = 0 - If $sDevice <> "" Then - $tDevice = _WinAPI_MultiByteToWideChar($sDevice) - EndIf - - Local $aResult = DllCall("mpr.dll", "dword", "WNetRestoreConnectionW", "hwnd", $hWnd, "struct*", $tDevice, "bool", $bUseUI) - If @error Then Return SetError(@error, @extended, False) - Return SetError($aResult[0], 0, $aResult[0] = 0) -EndFunc ;==>_WinNet_RestoreConnection - -; #FUNCTION# ==================================================================================================================== -; Author ........: Paul Campbell (PaulIA) -; Modified.......: -; =============================================================================================================================== -Func _WinNet_UseConnection($hWnd, $sLocalName, $sRemoteName, $sUserName = 0, $sPassword = 0, $iType = 1, $iOptions = 1) - Local $iLocalName = StringLen($sLocalName) + 1 - Local $tLocalName = DllStructCreate("wchar Text[" & $iLocalName & "]") - Local $pLocalName = DllStructGetPtr($tLocalName) - - Local $iRemoteName = StringLen($sRemoteName) + 1 - Local $tRemoteName = DllStructCreate("wchar Text[" & $iRemoteName & "]") - Local $pRemoteName = DllStructGetPtr($tRemoteName) - - Local $tUserName = 0 - If IsString($sUserName) Then - Local $iUserName = StringLen($sUserName) + 1 - $tUserName = DllStructCreate("wchar Text[" & $iUserName & "]") - DllStructSetData($tUserName, "Text", $sUserName) - EndIf - - Local $tPassword = 0 - If IsString($sPassword) Then - Local $iPassword = StringLen($sPassword) + 1 - $tPassword = DllStructCreate("wchar Text[" & $iPassword & "]") - DllStructSetData($tPassword, "Text", $sPassword) - EndIf - - Local $iFlags = 0 - If BitAND($iOptions, 1) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_UPDATE_PROFILE) - If BitAND($iOptions, 2) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_INTERACTIVE) - If BitAND($iOptions, 4) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_PROMPT) - If BitAND($iOptions, 8) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_REDIRECT) - If BitAND($iOptions, 16) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_COMMANDLINE) - If BitAND($iOptions, 32) <> 0 Then $iFlags = BitOR($iFlags, $CONNECT_CMD_SAVECRED) - - Local $tResource = DllStructCreate($tagNETRESOURCE) - - DllStructSetData($tLocalName, "Text", $sLocalName) - DllStructSetData($tRemoteName, "Text", $sRemoteName) - DllStructSetData($tResource, "Type", $iType) - DllStructSetData($tResource, "LocalName", $pLocalName) - DllStructSetData($tResource, "RemoteName", $pRemoteName) - - Local $aResult = DllCall("mpr.dll", "dword", "WNetUseConnectionW", "hwnd", $hWnd, "struct*", $tResource, "struct*", $tPassword, "struct*", $tUserName, _ - "dword", $iFlags, "wstr", "", "dword*", 4096, "dword*", 0) - If @error Then Return SetError(@error, @extended, False) - Local $aInfo[2] - $aInfo[0] = BitAND($aResult[8], $CONNECT_LOCALDRIVE) <> 0 - $aInfo[1] = $aResult[6] ; AccessName - Return SetExtended($aResult[0], $aInfo) -EndFunc ;==>_WinNet_UseConnection diff --git a/build/Include/WindowsConstants.au3 b/build/Include/WindowsConstants.au3 deleted file mode 100644 index b0e48eb39..000000000 --- a/build/Include/WindowsConstants.au3 +++ /dev/null @@ -1,819 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: Windows_Constants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: GUI control Windows styles and much more constants. -; Author(s) .....: Valik, Gary Frost, ... -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== - -; Window Classes -Global Const $WC_ANIMATE = 'SysAnimate32' -Global Const $WC_BUTTON = 'Button' -Global Const $WC_COMBOBOX = 'ComboBox' -Global Const $WC_COMBOBOXEX = 'ComboBoxEx32' -Global Const $WC_DATETIMEPICK = 'SysDateTimePick32' -Global Const $WC_EDIT = 'Edit' -Global Const $WC_HEADER = 'SysHeader32' -Global Const $WC_HOTKEY = 'msctls_hotkey32' -Global Const $WC_IPADDRESS = 'SysIPAddress32' -Global Const $WC_LINK = 'SysLink' -Global Const $WC_LISTBOX = 'ListBox' -Global Const $WC_LISTVIEW = 'SysListView32' -Global Const $WC_MONTHCAL = 'SysMonthCal32' -Global Const $WC_NATIVEFONTCTL = 'NativeFontCtl' -Global Const $WC_PAGESCROLLER = 'SysPager' -Global Const $WC_PROGRESS = 'msctls_progress32' -Global Const $WC_REBAR = 'ReBarWindow32' -Global Const $WC_SCROLLBAR = 'ScrollBar' -Global Const $WC_STATIC = 'Static' -Global Const $WC_STATUSBAR = 'msctls_statusbar32' -Global Const $WC_TABCONTROL = 'SysTabControl32' -Global Const $WC_TOOLBAR = 'ToolbarWindow32' -Global Const $WC_TOOLTIPS = 'tooltips_class32' -Global Const $WC_TRACKBAR = 'msctls_trackbar32' -Global Const $WC_TREEVIEW = 'SysTreeView32' -Global Const $WC_UPDOWN = 'msctls_updown32' - -; Window Styles -Global Const $WS_OVERLAPPED = 0 -Global Const $WS_TILED = $WS_OVERLAPPED -Global Const $WS_MAXIMIZEBOX = 0x00010000 -Global Const $WS_MINIMIZEBOX = 0x00020000 -Global Const $WS_TABSTOP = 0x00010000 -Global Const $WS_GROUP = 0x00020000 -Global Const $WS_SIZEBOX = 0x00040000 -Global Const $WS_THICKFRAME = $WS_SIZEBOX -Global Const $WS_SYSMENU = 0x00080000 -Global Const $WS_HSCROLL = 0x00100000 -Global Const $WS_VSCROLL = 0x00200000 -Global Const $WS_DLGFRAME = 0x00400000 -Global Const $WS_BORDER = 0x00800000 -Global Const $WS_CAPTION = 0x00C00000 -Global Const $WS_OVERLAPPEDWINDOW = BitOR($WS_CAPTION, $WS_MAXIMIZEBOX, $WS_MINIMIZEBOX, $WS_OVERLAPPED, $WS_SYSMENU, $WS_THICKFRAME) -Global Const $WS_TILEDWINDOW = $WS_OVERLAPPEDWINDOW -Global Const $WS_MAXIMIZE = 0x01000000 -Global Const $WS_CLIPCHILDREN = 0x02000000 -Global Const $WS_CLIPSIBLINGS = 0x04000000 -Global Const $WS_DISABLED = 0x08000000 -Global Const $WS_VISIBLE = 0x10000000 -Global Const $WS_MINIMIZE = 0x20000000 -Global Const $WS_ICONIC = $WS_MINIMIZE -Global Const $WS_CHILD = 0x40000000 -Global Const $WS_CHILDWINDOW = $WS_CHILD -Global Const $WS_POPUP = 0x80000000 -Global Const $WS_POPUPWINDOW = 0x80880000 - -; Dialog Styles -Global Const $DS_3DLOOK = 0x0004 -Global Const $DS_ABSALIGN = 0x0001 -Global Const $DS_CENTER = 0x0800 -Global Const $DS_CENTERMOUSE = 0x1000 -Global Const $DS_CONTEXTHELP = 0x2000 -Global Const $DS_CONTROL = 0x0400 -Global Const $DS_FIXEDSYS = 0x0008 -Global Const $DS_LOCALEDIT = 0x0020 -Global Const $DS_MODALFRAME = 0x0080 -Global Const $DS_NOFAILCREATE = 0x0010 -Global Const $DS_NOIDLEMSG = 0x0100 -Global Const $DS_SETFONT = 0x0040 -Global Const $DS_SETFOREGROUND = 0x0200 -Global Const $DS_SHELLFONT = BitOR($DS_FIXEDSYS, $DS_SETFONT) -Global Const $DS_SYSMODAL = 0x0002 - -; Window Extended Styles -Global Const $WS_EX_ACCEPTFILES = 0x00000010 -Global Const $WS_EX_APPWINDOW = 0x00040000 -Global Const $WS_EX_COMPOSITED = 0x02000000 -Global Const $WS_EX_CONTROLPARENT = 0x10000 -Global Const $WS_EX_CLIENTEDGE = 0x00000200 -Global Const $WS_EX_CONTEXTHELP = 0x00000400 -Global Const $WS_EX_DLGMODALFRAME = 0x00000001 -Global Const $WS_EX_LAYERED = 0x00080000 -Global Const $WS_EX_LAYOUTRTL = 0x400000 -Global Const $WS_EX_LEFT = 0x00000000 -Global Const $WS_EX_LEFTSCROLLBAR = 0x00004000 -Global Const $WS_EX_LTRREADING = 0x00000000 -Global Const $WS_EX_MDICHILD = 0x00000040 -Global Const $WS_EX_NOACTIVATE = 0x08000000 -Global Const $WS_EX_NOINHERITLAYOUT = 0x00100000 -Global Const $WS_EX_NOPARENTNOTIFY = 0x00000004 -Global Const $WS_EX_RIGHT = 0x00001000 -Global Const $WS_EX_RIGHTSCROLLBAR = 0x00000000 -Global Const $WS_EX_RTLREADING = 0x2000 -Global Const $WS_EX_STATICEDGE = 0x00020000 -Global Const $WS_EX_TOOLWINDOW = 0x00000080 -Global Const $WS_EX_TOPMOST = 0x00000008 -Global Const $WS_EX_TRANSPARENT = 0x00000020 -Global Const $WS_EX_WINDOWEDGE = 0x00000100 - -Global Const $WS_EX_OVERLAPPEDWINDOW = BitOR($WS_EX_CLIENTEDGE, $WS_EX_WINDOWEDGE) -Global Const $WS_EX_PALETTEWINDOW = BitOR($WS_EX_TOOLWINDOW, $WS_EX_TOPMOST, $WS_EX_WINDOWEDGE) - -; Messages -Global Const $WM_NULL = 0x0000 -Global Const $WM_CREATE = 0x0001 -Global Const $WM_DESTROY = 0x0002 -Global Const $WM_MOVE = 0x0003 -Global Const $WM_SIZEWAIT = 0x0004 -Global Const $WM_SIZE = 0x0005 -Global Const $WM_ACTIVATE = 0x0006 -Global Const $WM_SETFOCUS = 0x0007 -Global Const $WM_KILLFOCUS = 0x0008 -Global Const $WM_SETVISIBLE = 0x0009 -Global Const $WM_ENABLE = 0x000A -Global Const $WM_SETREDRAW = 0x000B -Global Const $WM_SETTEXT = 0x000C -Global Const $WM_GETTEXT = 0x000D -Global Const $WM_GETTEXTLENGTH = 0x000E -Global Const $WM_PAINT = 0x000F -Global Const $WM_CLOSE = 0x0010 -Global Const $WM_QUERYENDSESSION = 0x0011 -Global Const $WM_QUIT = 0x0012 -Global Const $WM_ERASEBKGND = 0x0014 -Global Const $WM_QUERYOPEN = 0x0013 -Global Const $WM_SYSCOLORCHANGE = 0x0015 -Global Const $WM_ENDSESSION = 0x0016 -Global Const $WM_SYSTEMERROR = 0x0017 -Global Const $WM_SHOWWINDOW = 0x0018 -Global Const $WM_CTLCOLOR = 0x0019 -Global Const $WM_SETTINGCHANGE = 0x001A -Global Const $WM_WININICHANGE = 0x001A -Global Const $WM_DEVMODECHANGE = 0x001B -Global Const $WM_ACTIVATEAPP = 0x001C -Global Const $WM_FONTCHANGE = 0x001D -Global Const $WM_TIMECHANGE = 0x001E -Global Const $WM_CANCELMODE = 0x001F -Global Const $WM_SETCURSOR = 0x0020 -Global Const $WM_MOUSEACTIVATE = 0x0021 -Global Const $WM_CHILDACTIVATE = 0x0022 -Global Const $WM_QUEUESYNC = 0x0023 -Global Const $WM_GETMINMAXINFO = 0x0024 -Global Const $WM_LOGOFF = 0x0025 -Global Const $WM_PAINTICON = 0x0026 -Global Const $WM_ICONERASEBKGND = 0x0027 -Global Const $WM_NEXTDLGCTL = 0x0028 -Global Const $WM_ALTTABACTIVE = 0x0029 -Global Const $WM_SPOOLERSTATUS = 0x002A -Global Const $WM_DRAWITEM = 0x002B -Global Const $WM_MEASUREITEM = 0x002C -Global Const $WM_DELETEITEM = 0x002D -Global Const $WM_VKEYTOITEM = 0x002E -Global Const $WM_CHARTOITEM = 0x002F -Global Const $WM_SETFONT = 0x0030 -Global Const $WM_GETFONT = 0x0031 -Global Const $WM_SETHOTKEY = 0x0032 -Global Const $WM_GETHOTKEY = 0x0033 -Global Const $WM_FILESYSCHANGE = 0x0034 -Global Const $WM_ISACTIVEICON = 0x0035 -Global Const $WM_QUERYPARKICON = 0x0036 -Global Const $WM_QUERYDRAGICON = 0x0037 -Global Const $WM_WINHELP = 0x0038 -Global Const $WM_COMPAREITEM = 0x0039 -Global Const $WM_FULLSCREEN = 0x003A -Global Const $WM_CLIENTSHUTDOWN = 0x003B -Global Const $WM_DDEMLEVENT = 0x003C -Global Const $WM_GETOBJECT = 0x003D -Global Const $WM_CALCSCROLL = 0x003F -Global Const $WM_TESTING = 0x0040 -Global Const $WM_COMPACTING = 0x0041 -Global Const $WM_OTHERWINDOWCREATED = 0x0042 -Global Const $WM_OTHERWINDOWDESTROYED = 0x0043 -Global Const $WM_COMMNOTIFY = 0x0044 -Global Const $WM_MEDIASTATUSCHANGE = 0x0045 -Global Const $WM_WINDOWPOSCHANGING = 0x0046 -Global Const $WM_WINDOWPOSCHANGED = 0x0047 -Global Const $WM_POWER = 0x0048 -Global Const $WM_COPYGLOBALDATA = 0x0049 -Global Const $WM_COPYDATA = 0x004A -Global Const $WM_CANCELJOURNAL = 0x004B -Global Const $WM_LOGONNOTIFY = 0x004C -Global Const $WM_KEYF1 = 0x004D -Global Const $WM_NOTIFY = 0x004E -Global Const $WM_ACCESS_WINDOW = 0x004F -Global Const $WM_INPUTLANGCHANGEREQUEST = 0x0050 -Global Const $WM_INPUTLANGCHANGE = 0x0051 -Global Const $WM_TCARD = 0x0052 -Global Const $WM_HELP = 0x0053 -Global Const $WM_USERCHANGED = 0x0054 -Global Const $WM_NOTIFYFORMAT = 0x0055 - -Global Const $WM_QM_ACTIVATE = 0x0060 -Global Const $WM_HOOK_DO_CALLBACK = 0x0061 -Global Const $WM_SYSCOPYDATA = 0x0062 - -Global Const $WM_FINALDESTROY = 0x0070 -Global Const $WM_MEASUREITEM_CLIENTDATA = 0x0071 - -Global Const $WM_CONTEXTMENU = 0x007B -Global Const $WM_STYLECHANGING = 0x007C -Global Const $WM_STYLECHANGED = 0x007D -Global Const $WM_DISPLAYCHANGE = 0x007E -Global Const $WM_GETICON = 0x007F -Global Const $WM_SETICON = 0x0080 -Global Const $WM_NCCREATE = 0x0081 -Global Const $WM_NCDESTROY = 0x0082 -Global Const $WM_NCCALCSIZE = 0x0083 -Global Const $WM_NCHITTEST = 0x0084 -Global Const $WM_NCPAINT = 0x0085 -Global Const $WM_NCACTIVATE = 0x0086 -Global Const $WM_GETDLGCODE = 0x0087 -Global Const $WM_SYNCPAINT = 0x0088 -Global Const $WM_SYNCTASK = 0x0089 -Global Const $WM_KLUDGEMINRECT = 0x008B -Global Const $WM_LPKDRAWSWITCHWND = 0x008C -Global Const $WM_UAHDESTROYWINDOW = 0x0090 -Global Const $WM_UAHDRAWMENU = 0x0091 -Global Const $WM_UAHDRAWMENUITEM = 0x0092 -Global Const $WM_UAHINITMENU = 0x0093 -Global Const $WM_UAHMEASUREMENUITEM = 0x0094 -Global Const $WM_UAHNCPAINTMENUPOPUP = 0x0095 - -Global Const $WM_NCMOUSEMOVE = 0x00A0 -Global Const $WM_NCLBUTTONDOWN = 0x00A1 -Global Const $WM_NCLBUTTONUP = 0x00A2 -Global Const $WM_NCLBUTTONDBLCLK = 0x00A3 -Global Const $WM_NCRBUTTONDOWN = 0x00A4 -Global Const $WM_NCRBUTTONUP = 0x00A5 -Global Const $WM_NCRBUTTONDBLCLK = 0x00A6 -Global Const $WM_NCMBUTTONDOWN = 0x00A7 -Global Const $WM_NCMBUTTONUP = 0x00A8 -Global Const $WM_NCMBUTTONDBLCLK = 0x00A9 -Global Const $WM_NCXBUTTONDOWN = 0x00AB -Global Const $WM_NCXBUTTONUP = 0x00AC -Global Const $WM_NCXBUTTONDBLCLK = 0x00AD -Global Const $WM_NCUAHDRAWCAPTION = 0x00AE -Global Const $WM_NCUAHDRAWFRAME = 0x00AF -Global Const $WM_INPUT_DEVICE_CHANGE = 0x00FE -Global Const $WM_INPUT = 0x00FF - -Global Const $WM_KEYDOWN = 0x0100 -Global Const $WM_KEYFIRST = 0x0100 -Global Const $WM_KEYUP = 0x0101 -Global Const $WM_CHAR = 0x0102 -Global Const $WM_DEADCHAR = 0x0103 -Global Const $WM_SYSKEYDOWN = 0x0104 -Global Const $WM_SYSKEYUP = 0x0105 -Global Const $WM_SYSCHAR = 0x0106 -Global Const $WM_SYSDEADCHAR = 0x0107 -Global Const $WM_YOMICHAR = 0x0108 -Global Const $WM_KEYLAST = 0x0109 -Global Const $WM_UNICHAR = 0x0109 -Global Const $WM_CONVERTREQUEST = 0x010A -Global Const $WM_CONVERTRESULT = 0x010B -Global Const $WM_IM_INFO = 0x010C -Global Const $WM_IME_STARTCOMPOSITION = 0x010D -Global Const $WM_IME_ENDCOMPOSITION = 0x010E -Global Const $WM_IME_COMPOSITION = 0x010F -Global Const $WM_IME_KEYLAST = 0x010F -Global Const $WM_INITDIALOG = 0x0110 -Global Const $WM_COMMAND = 0x0111 -Global Const $WM_SYSCOMMAND = 0x0112 -Global Const $WM_TIMER = 0x0113 -Global Const $WM_HSCROLL = 0x0114 -Global Const $WM_VSCROLL = 0x0115 -Global Const $WM_INITMENU = 0x0116 -Global Const $WM_INITMENUPOPUP = 0x0117 -Global Const $WM_SYSTIMER = 0x0118 -Global Const $WM_GESTURE = 0x0119 -Global Const $WM_GESTURENOTIFY = 0x011A -Global Const $WM_GESTUREINPUT = 0x011B -Global Const $WM_GESTURENOTIFIED = 0x011C -Global Const $WM_MENUSELECT = 0x011F -Global Const $WM_MENUCHAR = 0x0120 -Global Const $WM_ENTERIDLE = 0x0121 -Global Const $WM_MENURBUTTONUP = 0x0122 -Global Const $WM_MENUDRAG = 0x0123 -Global Const $WM_MENUGETOBJECT = 0x0124 -Global Const $WM_UNINITMENUPOPUP = 0x0125 -Global Const $WM_MENUCOMMAND = 0x0126 -Global Const $WM_CHANGEUISTATE = 0x0127 -Global Const $WM_UPDATEUISTATE = 0x0128 -Global Const $WM_QUERYUISTATE = 0x0129 -Global Const $WM_LBTRACKPOINT = 0x0131 -Global Const $WM_CTLCOLORMSGBOX = 0x0132 -Global Const $WM_CTLCOLOREDIT = 0x0133 -Global Const $WM_CTLCOLORLISTBOX = 0x0134 -Global Const $WM_CTLCOLORBTN = 0x0135 -Global Const $WM_CTLCOLORDLG = 0x0136 -Global Const $WM_CTLCOLORSCROLLBAR = 0x0137 -Global Const $WM_CTLCOLORSTATIC = 0x0138 - -Global Const $MN_GETHMENU = 0x01E1 - -Global Const $WM_PARENTNOTIFY = 0x0210 -Global Const $WM_ENTERMENULOOP = 0x0211 -Global Const $WM_EXITMENULOOP = 0x0212 -Global Const $WM_NEXTMENU = 0x0213 -Global Const $WM_SIZING = 0x0214 -Global Const $WM_CAPTURECHANGED = 0x0215 -Global Const $WM_MOVING = 0x0216 -Global Const $WM_POWERBROADCAST = 0x0218 -Global Const $WM_DEVICECHANGE = 0x0219 -Global Const $WM_MDICREATE = 0x0220 -Global Const $WM_MDIDESTROY = 0x0221 -Global Const $WM_MDIACTIVATE = 0x0222 -Global Const $WM_MDIRESTORE = 0x0223 -Global Const $WM_MDINEXT = 0x0224 -Global Const $WM_MDIMAXIMIZE = 0x0225 -Global Const $WM_MDITILE = 0x0226 -Global Const $WM_MDICASCADE = 0x0227 -Global Const $WM_MDIICONARRANGE = 0x0228 -Global Const $WM_MDIGETACTIVE = 0x0229 -Global Const $WM_DROPOBJECT = 0x022A -Global Const $WM_QUERYDROPOBJECT = 0x022B -Global Const $WM_BEGINDRAG = 0x022C -Global Const $WM_DRAGLOOP = 0x022D -Global Const $WM_DRAGSELECT = 0x022E -Global Const $WM_DRAGMOVE = 0x022F -Global Const $WM_MDISETMENU = 0x0230 -Global Const $WM_ENTERSIZEMOVE = 0x0231 -Global Const $WM_EXITSIZEMOVE = 0x0232 -Global Const $WM_DROPFILES = 0x0233 -Global Const $WM_MDIREFRESHMENU = 0x0234 -Global Const $WM_TOUCH = 0x0240 - -Global Const $WM_IME_SETCONTEXT = 0x0281 -Global Const $WM_IME_NOTIFY = 0x0282 -Global Const $WM_IME_CONTROL = 0x0283 -Global Const $WM_IME_COMPOSITIONFULL = 0x0284 -Global Const $WM_IME_SELECT = 0x0285 -Global Const $WM_IME_CHAR = 0x0286 -Global Const $WM_IME_SYSTEM = 0x0287 -Global Const $WM_IME_REQUEST = 0x0288 -Global Const $WM_IME_KEYDOWN = 0x0290 -Global Const $WM_IME_KEYUP = 0x0291 -Global Const $WM_NCMOUSEHOVER = 0x02A0 -Global Const $WM_MOUSEHOVER = 0x02A1 -Global Const $WM_NCMOUSELEAVE = 0x02A2 -Global Const $WM_MOUSELEAVE = 0x02A3 -Global Const $WM_WTSSESSION_CHANGE = 0x02B1 -Global Const $WM_TABLET_FIRST = 0x02C0 -Global Const $WM_TABLET_LAST = 0x02DF - -Global Const $WM_CUT = 0x0300 -Global Const $WM_COPY = 0x0301 -Global Const $WM_PASTE = 0x0302 -Global Const $WM_CLEAR = 0x0303 -Global Const $WM_UNDO = 0x0304 -Global Const $WM_PALETTEISCHANGING = 0x0310 -Global Const $WM_HOTKEY = 0x0312 -Global Const $WM_PALETTECHANGED = 0x0311 -Global Const $WM_SYSMENU = 0x0313 -Global Const $WM_HOOKMSG = 0x0314 -Global Const $WM_EXITPROCESS = 0x0315 -Global Const $WM_WAKETHREAD = 0x0316 -Global Const $WM_PRINT = 0x0317 -Global Const $WM_PRINTCLIENT = 0x0318 -Global Const $WM_APPCOMMAND = 0x0319 -Global Const $WM_QUERYNEWPALETTE = 0x030F -Global Const $WM_THEMECHANGED = 0x031A -Global Const $WM_UAHINIT = 0x031B -Global Const $WM_DESKTOPNOTIFY = 0x031C -Global Const $WM_CLIPBOARDUPDATE = 0x031D -Global Const $WM_DWMCOMPOSITIONCHANGED = 0x031E -Global Const $WM_DWMNCRENDERINGCHANGED = 0x031F -Global Const $WM_DWMCOLORIZATIONCOLORCHANGED = 0x0320 -Global Const $WM_DWMWINDOWMAXIMIZEDCHANGE = 0x0321 -Global Const $WM_DWMEXILEFRAME = 0x0322 -Global Const $WM_DWMSENDICONICTHUMBNAIL = 0x0323 -Global Const $WM_MAGNIFICATION_STARTED = 0x0324 -Global Const $WM_MAGNIFICATION_ENDED = 0x0325 -Global Const $WM_DWMSENDICONICLIVEPREVIEWBITMAP = 0x0326 -Global Const $WM_DWMTHUMBNAILSIZECHANGED = 0x0327 -Global Const $WM_MAGNIFICATION_OUTPUT = 0x0328 -Global Const $WM_MEASURECONTROL = 0x0330 -Global Const $WM_GETACTIONTEXT = 0x0331 -Global Const $WM_FORWARDKEYDOWN = 0x0333 -Global Const $WM_FORWARDKEYUP = 0x0334 -Global Const $WM_GETTITLEBARINFOEX = 0x033F -Global Const $WM_NOTIFYWOW = 0x0340 -Global Const $WM_HANDHELDFIRST = 0x0358 -Global Const $WM_HANDHELDLAST = 0x035F -Global Const $WM_AFXFIRST = 0x0360 -Global Const $WM_AFXLAST = 0x037F -Global Const $WM_PENWINFIRST = 0x0380 -Global Const $WM_PENWINLAST = 0x038F -Global Const $WM_DDE_INITIATE = 0x03E0 -Global Const $WM_DDE_TERMINATE = 0x03E1 -Global Const $WM_DDE_ADVISE = 0x03E2 -Global Const $WM_DDE_UNADVISE = 0x03E3 -Global Const $WM_DDE_ACK = 0x03E4 -Global Const $WM_DDE_DATA = 0x03E5 -Global Const $WM_DDE_REQUEST = 0x03E6 -Global Const $WM_DDE_POKE = 0x03E7 -Global Const $WM_DDE_EXECUTE = 0x03E8 -Global Const $WM_DBNOTIFICATION = 0x03FD -Global Const $WM_NETCONNECT = 0x03FE -Global Const $WM_HIBERNATE = 0x03FF - -Global Const $WM_USER = 0x0400 - -Global Const $WM_APP = 0x8000 - -; Windows Notification Message Constants -Global Const $NM_FIRST = 0 - -Global Const $NM_OUTOFMEMORY = $NM_FIRST - 1 -Global Const $NM_CLICK = $NM_FIRST - 2 -Global Const $NM_DBLCLK = $NM_FIRST - 3 -Global Const $NM_RETURN = $NM_FIRST - 4 -Global Const $NM_RCLICK = $NM_FIRST - 5 -Global Const $NM_RDBLCLK = $NM_FIRST - 6 -Global Const $NM_SETFOCUS = $NM_FIRST - 7 -Global Const $NM_KILLFOCUS = $NM_FIRST - 8 -Global Const $NM_CUSTOMDRAW = $NM_FIRST - 12 -Global Const $NM_HOVER = $NM_FIRST - 13 -Global Const $NM_NCHITTEST = $NM_FIRST - 14 -Global Const $NM_KEYDOWN = $NM_FIRST - 15 -Global Const $NM_RELEASEDCAPTURE = $NM_FIRST - 16 -Global Const $NM_SETCURSOR = $NM_FIRST - 17 -Global Const $NM_CHAR = $NM_FIRST - 18 -Global Const $NM_TOOLTIPSCREATED = $NM_FIRST - 19 -Global Const $NM_LDOWN = $NM_FIRST - 20 -Global Const $NM_RDOWN = $NM_FIRST - 21 -Global Const $NM_THEMECHANGED = $NM_FIRST - 22 - -Global Const $WM_MOUSEFIRST = 0x0200 -Global Const $WM_MOUSEMOVE = 0x0200 -Global Const $WM_LBUTTONDOWN = 0x0201 -Global Const $WM_LBUTTONUP = 0x0202 -Global Const $WM_LBUTTONDBLCLK = 0x0203 -Global Const $WM_RBUTTONDOWN = 0x0204 -Global Const $WM_RBUTTONUP = 0x0205 -Global Const $WM_RBUTTONDBLCLK = 0x0206 -Global Const $WM_MBUTTONDOWN = 0x0207 -Global Const $WM_MBUTTONUP = 0x0208 -Global Const $WM_MBUTTONDBLCLK = 0x0209 -Global Const $WM_MOUSEWHEEL = 0x020A -Global Const $WM_XBUTTONDOWN = 0x020B -Global Const $WM_XBUTTONUP = 0x020C -Global Const $WM_XBUTTONDBLCLK = 0x020D -Global Const $WM_MOUSEHWHEEL = 0x020E - -; Pen styles -Global Const $PS_SOLID = 0 -Global Const $PS_DASH = 1 -Global Const $PS_DOT = 2 -Global Const $PS_DASHDOT = 3 -Global Const $PS_DASHDOTDOT = 4 -Global Const $PS_NULL = 5 -Global Const $PS_INSIDEFRAME = 6 -Global Const $PS_USERSTYLE = 7 -Global Const $PS_ALTERNATE = 8 - -Global Const $PS_ENDCAP_ROUND = 0x00000000 -Global Const $PS_ENDCAP_SQUARE = 0x00000100 -Global Const $PS_ENDCAP_FLAT = 0x00000200 - -Global Const $PS_JOIN_BEVEL = 0x00001000 -Global Const $PS_JOIN_MITER = 0x00002000 -Global Const $PS_JOIN_ROUND = 0x00000000 - -Global Const $PS_GEOMETRIC = 0x00010000 -Global Const $PS_COSMETIC = 0x00000000 - -; Layered attributes Constants -Global Const $LWA_ALPHA = 0x2 -Global Const $LWA_COLORKEY = 0x1 - -; Region's combine modes Constants -Global Const $RGN_AND = 1 -Global Const $RGN_OR = 2 -Global Const $RGN_XOR = 3 -Global Const $RGN_DIFF = 4 -Global Const $RGN_COPY = 5 - -; Type of the resulting region from region's combine -Global Const $ERRORREGION = 0 -Global Const $NULLREGION = 1 -Global Const $SIMPLEREGION = 2 -Global Const $COMPLEXREGION = 3 - -; Background mix modes -Global Const $TRANSPARENT = 1 -Global Const $OPAQUE = 2 - -; Common Control Messages - -; Messages to send to controls -Global Const $CCM_FIRST = 0x2000 -Global Const $CCM_GETUNICODEFORMAT = ($CCM_FIRST + 6) -Global Const $CCM_SETUNICODEFORMAT = ($CCM_FIRST + 5) -Global Const $CCM_SETBKCOLOR = $CCM_FIRST + 1 -Global Const $CCM_SETCOLORSCHEME = $CCM_FIRST + 2 -Global Const $CCM_GETCOLORSCHEME = $CCM_FIRST + 3 -Global Const $CCM_GETDROPTARGET = $CCM_FIRST + 4 -Global Const $CCM_SETWINDOWTHEME = $CCM_FIRST + 11 - -; GetAncestor Constants -Global Const $GA_PARENT = 1 -Global Const $GA_ROOT = 2 -Global Const $GA_ROOTOWNER = 3 - -; GetSystemMetrics Constants -Global Const $SM_CXSCREEN = 0 -Global Const $SM_CYSCREEN = 1 -Global Const $SM_CXVSCROLL = 2 -Global Const $SM_CYHSCROLL = 3 -Global Const $SM_CYCAPTION = 4 -Global Const $SM_CXBORDER = 5 -Global Const $SM_CYBORDER = 6 -Global Const $SM_CXDLGFRAME = 7 -Global Const $SM_CYDLGFRAME = 8 -Global Const $SM_CYVTHUMB = 9 -Global Const $SM_CXHTHUMB = 10 -Global Const $SM_CXICON = 11 -Global Const $SM_CYICON = 12 -Global Const $SM_CXCURSOR = 13 -Global Const $SM_CYCURSOR = 14 -Global Const $SM_CYMENU = 15 -Global Const $SM_CXFULLSCREEN = 16 -Global Const $SM_CYFULLSCREEN = 17 -Global Const $SM_CYKANJIWINDOW = 18 -Global Const $SM_MOUSEPRESENT = 19 -Global Const $SM_CYVSCROLL = 20 -Global Const $SM_CXHSCROLL = 21 -Global Const $SM_DEBUG = 22 -Global Const $SM_SWAPBUTTON = 23 -Global Const $SM_RESERVED1 = 24 -Global Const $SM_RESERVED2 = 25 -Global Const $SM_RESERVED3 = 26 -Global Const $SM_RESERVED4 = 27 -Global Const $SM_CXMIN = 28 -Global Const $SM_CYMIN = 29 -Global Const $SM_CXSIZE = 30 -Global Const $SM_CYSIZE = 31 -Global Const $SM_CXFRAME = 32 -Global Const $SM_CYFRAME = 33 -Global Const $SM_CXMINTRACK = 34 -Global Const $SM_CYMINTRACK = 35 -Global Const $SM_CXDOUBLECLK = 36 -Global Const $SM_CYDOUBLECLK = 37 -Global Const $SM_CXICONSPACING = 38 -Global Const $SM_CYICONSPACING = 39 -Global Const $SM_MENUDROPALIGNMENT = 40 -Global Const $SM_PENWINDOWS = 41 -Global Const $SM_DBCSENABLED = 42 -Global Const $SM_CMOUSEBUTTONS = 43 -Global Const $SM_SECURE = 44 -Global Const $SM_CXEDGE = 45 -Global Const $SM_CYEDGE = 46 -Global Const $SM_CXMINSPACING = 47 -Global Const $SM_CYMINSPACING = 48 -Global Const $SM_CXSMICON = 49 -Global Const $SM_CYSMICON = 50 -Global Const $SM_CYSMCAPTION = 51 -Global Const $SM_CXSMSIZE = 52 -Global Const $SM_CYSMSIZE = 53 -Global Const $SM_CXMENUSIZE = 54 -Global Const $SM_CYMENUSIZE = 55 -Global Const $SM_ARRANGE = 56 -Global Const $SM_CXMINIMIZED = 57 -Global Const $SM_CYMINIMIZED = 58 -Global Const $SM_CXMAXTRACK = 59 -Global Const $SM_CYMAXTRACK = 60 -Global Const $SM_CXMAXIMIZED = 61 -Global Const $SM_CYMAXIMIZED = 62 -Global Const $SM_NETWORK = 63 -Global Const $SM_CLEANBOOT = 67 -Global Const $SM_CXDRAG = 68 -Global Const $SM_CYDRAG = 69 -Global Const $SM_SHOWSOUNDS = 70 -Global Const $SM_CXMENUCHECK = 71 -Global Const $SM_CYMENUCHECK = 72 -Global Const $SM_SLOWMACHINE = 73 -Global Const $SM_MIDEASTENABLED = 74 -Global Const $SM_MOUSEWHEELPRESENT = 75 -Global Const $SM_XVIRTUALSCREEN = 76 -Global Const $SM_YVIRTUALSCREEN = 77 -Global Const $SM_CXVIRTUALSCREEN = 78 -Global Const $SM_CYVIRTUALSCREEN = 79 -Global Const $SM_CMONITORS = 80 -Global Const $SM_SAMEDISPLAYFORMAT = 81 -Global Const $SM_IMMENABLED = 82 -Global Const $SM_CXFOCUSBORDER = 83 -Global Const $SM_CYFOCUSBORDER = 84 -Global Const $SM_TABLETPC = 86 -Global Const $SM_MEDIACENTER = 87 -Global Const $SM_STARTER = 88 -Global Const $SM_SERVERR2 = 89 -Global Const $SM_CMETRICS = 90 - -Global Const $SM_REMOTESESSION = 0x1000 -Global Const $SM_SHUTTINGDOWN = 0x2000 -Global Const $SM_REMOTECONTROL = 0x2001 -Global Const $SM_CARETBLINKINGENABLED = 0x2002 - -; Ternary raster operations -Global Const $BLACKNESS = 0x00000042 ; Fills the destination rectangle using the color associated with index 0 in the physical palette -Global Const $CAPTUREBLT = 0X40000000 ; Includes any window that are layered on top of your window in the resulting image -Global Const $DSTINVERT = 0x00550009 ; Inverts the destination rectangle -Global Const $MERGECOPY = 0x00C000CA ; Copies the inverted source rectangle to the destination -Global Const $MERGEPAINT = 0x00BB0226 ; Merges the color of the inverted source rectangle with the colors of the destination rectangle by using the OR operator -Global Const $NOMIRRORBITMAP = 0X80000000 ; Prevents the bitmap from being mirrored -Global Const $NOTSRCCOPY = 0x00330008 ; Copies the inverted source rectangle to the destination -Global Const $NOTSRCERASE = 0x001100A6 ; Combines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color -Global Const $PATCOPY = 0x00F00021 ; Copies the brush selected in hdcDest, into the destination bitmap -Global Const $PATINVERT = 0x005A0049 ; Combines the colors of the brush currently selected in hDest, with the colors of the destination rectangle by using the XOR operator -Global Const $PATPAINT = 0x00FB0A09 ; Combines the colors of the brush currently selected in hDest, with the colors of the inverted source rectangle by using the OR operator -Global Const $SRCAND = 0x008800C6 ; Combines the colors of the source and destination rectangles by using the Boolean AND operator -Global Const $SRCCOPY = 0x00CC0020 ; Copies the source rectangle directly to the destination rectangle -Global Const $SRCERASE = 0x00440328 ; Combines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator -Global Const $SRCINVERT = 0x00660046 ; Combines the colors of the source and destination rectangles by using the Boolean XOR operator -Global Const $SRCPAINT = 0x00EE0086 ; Combines the colors of the source and destination rectangles by using the Boolean OR operator -Global Const $WHITENESS = 0x00FF0062 ; Fills the destination rectangle using the color associated with index 1 in the physical palette - -; DrawText Constants -Global Const $DT_BOTTOM = 0x8 -Global Const $DT_CALCRECT = 0x400 -Global Const $DT_CENTER = 0x1 -Global Const $DT_EDITCONTROL = 0x2000 -Global Const $DT_END_ELLIPSIS = 0x8000 -Global Const $DT_EXPANDTABS = 0x40 -Global Const $DT_EXTERNALLEADING = 0x200 -Global Const $DT_HIDEPREFIX = 0x100000 -Global Const $DT_INTERNAL = 0x1000 -Global Const $DT_LEFT = 0x0 -Global Const $DT_MODIFYSTRING = 0x10000 -Global Const $DT_NOCLIP = 0x100 -Global Const $DT_NOFULLWIDTHCHARBREAK = 0x80000 -Global Const $DT_NOPREFIX = 0x800 -Global Const $DT_PATH_ELLIPSIS = 0x4000 -Global Const $DT_PREFIXONLY = 0x200000 -Global Const $DT_RIGHT = 0x2 -Global Const $DT_RTLREADING = 0x20000 -Global Const $DT_SINGLELINE = 0x20 -Global Const $DT_TABSTOP = 0x80 -Global Const $DT_TOP = 0x0 -Global Const $DT_VCENTER = 0x4 -Global Const $DT_WORDBREAK = 0x10 -Global Const $DT_WORD_ELLIPSIS = 0x40000 - -; RedrawWindow Constants -Global Const $RDW_ERASE = 0x0004 ; Causes the window to receive a WM_ERASEBKGND message when the window is repainted -Global Const $RDW_FRAME = 0x0400 ; Causes any part of the nonclient area of the window that intersects the update region to receive a WM_NCPAINT message -Global Const $RDW_INTERNALPAINT = 0x0002 ; Causes a WM_PAINT message to be posted to the window regardless of whether any portion of the window is invalid -Global Const $RDW_INVALIDATE = 0x0001 ; Invalidates DllStructGetData($tRECT or $hRegion, "") If both are 0, the entire window is invalidated -Global Const $RDW_NOERASE = 0x0020 ; Suppresses any pending WM_ERASEBKGND messages -Global Const $RDW_NOFRAME = 0x0800 ; Suppresses any pending WM_NCPAINT messages -Global Const $RDW_NOINTERNALPAINT = 0x0010 ; Suppresses any pending internal WM_PAINT messages -Global Const $RDW_VALIDATE = 0x0008 ; Validates Rect or hRegion -Global Const $RDW_ERASENOW = 0x0200 ; Causes the affected windows to receive WM_NCPAINT and WM_ERASEBKGND messages -Global Const $RDW_UPDATENOW = 0x0100 ; Causes the affected windows to receive WM_NCPAINT, WM_ERASEBKGND, and WM_PAINT messages -Global Const $RDW_ALLCHILDREN = 0x0080 ; Includes child windows in the repainting operation -Global Const $RDW_NOCHILDREN = 0x0040 ; Excludes child windows from the repainting operation - -; Clipboard Constants -Global Const $WM_RENDERFORMAT = 0x0305 ; Sent if the owner has delayed rendering a specific clipboard format -Global Const $WM_RENDERALLFORMATS = 0x0306 ; Sent if the owner has delayed rendering clipboard formats -Global Const $WM_DESTROYCLIPBOARD = 0x0307 ; Sent when a call to EmptyClipboard empties the clipboard -Global Const $WM_DRAWCLIPBOARD = 0x0308 ; Sent when the content of the clipboard changes -Global Const $WM_PAINTCLIPBOARD = 0x0309 ; Sent when the clipboard viewer's client area needs repainting -Global Const $WM_VSCROLLCLIPBOARD = 0x030A ; Sent when an event occurs in the viewer's vertical scroll bar -Global Const $WM_SIZECLIPBOARD = 0x030B ; Sent when the clipboard viewer's client area has changed size -Global Const $WM_ASKCBFORMATNAME = 0x030C ; Sent to request the name of a $CF_OWNERDISPLAY clipboard format -Global Const $WM_CHANGECBCHAIN = 0x030D ; Sent when a window is being removed from the chain -Global Const $WM_HSCROLLCLIPBOARD = 0x030E ; Sent when an event occurs in the viewer's horizontal scroll bar - -; WM_NCHITTEST and MOUSEHOOKSTRUCT Mouse Position Codes -Global Const $HTERROR = -2 -Global Const $HTTRANSPARENT = -1 -Global Const $HTNOWHERE = 0 -Global Const $HTCLIENT = 1 -Global Const $HTCAPTION = 2 -Global Const $HTSYSMENU = 3 -Global Const $HTGROWBOX = 4 -Global Const $HTSIZE = $HTGROWBOX -Global Const $HTMENU = 5 -Global Const $HTHSCROLL = 6 -Global Const $HTVSCROLL = 7 -Global Const $HTMINBUTTON = 8 -Global Const $HTMAXBUTTON = 9 -Global Const $HTLEFT = 10 -Global Const $HTRIGHT = 11 -Global Const $HTTOP = 12 -Global Const $HTTOPLEFT = 13 -Global Const $HTTOPRIGHT = 14 -Global Const $HTBOTTOM = 15 -Global Const $HTBOTTOMLEFT = 16 -Global Const $HTBOTTOMRIGHT = 17 -Global Const $HTBORDER = 18 -Global Const $HTREDUCE = $HTMINBUTTON -Global Const $HTZOOM = $HTMAXBUTTON -Global Const $HTSIZEFIRST = $HTLEFT -Global Const $HTSIZELAST = $HTBOTTOMRIGHT -Global Const $HTOBJECT = 19 -Global Const $HTCLOSE = 20 -Global Const $HTHELP = 21 - -; Windows Color Constants -Global Const $COLOR_SCROLLBAR = 0 -Global Const $COLOR_BACKGROUND = 1 -Global Const $COLOR_ACTIVECAPTION = 2 -Global Const $COLOR_INACTIVECAPTION = 3 -Global Const $COLOR_MENU = 4 -Global Const $COLOR_WINDOW = 5 -Global Const $COLOR_WINDOWFRAME = 6 -Global Const $COLOR_MENUTEXT = 7 -Global Const $COLOR_WINDOWTEXT = 8 -Global Const $COLOR_CAPTIONTEXT = 9 -Global Const $COLOR_ACTIVEBORDER = 10 -Global Const $COLOR_INACTIVEBORDER = 11 -Global Const $COLOR_APPWORKSPACE = 12 -Global Const $COLOR_HIGHLIGHT = 13 -Global Const $COLOR_HIGHLIGHTTEXT = 14 -Global Const $COLOR_BTNFACE = 15 -Global Const $COLOR_BTNSHADOW = 16 -Global Const $COLOR_GRAYTEXT = 17 -Global Const $COLOR_BTNTEXT = 18 -Global Const $COLOR_INACTIVECAPTIONTEXT = 19 -Global Const $COLOR_BTNHIGHLIGHT = 20 -Global Const $COLOR_3DDKSHADOW = 21 -Global Const $COLOR_3DLIGHT = 22 -Global Const $COLOR_INFOTEXT = 23 -Global Const $COLOR_INFOBK = 24 -Global Const $COLOR_HOTLIGHT = 26 -Global Const $COLOR_GRADIENTACTIVECAPTION = 27 -Global Const $COLOR_GRADIENTINACTIVECAPTION = 28 -Global Const $COLOR_MENUHILIGHT = 29 -Global Const $COLOR_MENUBAR = 30 - -Global Const $COLOR_DESKTOP = 1 -Global Const $COLOR_3DFACE = 15 -Global Const $COLOR_3DSHADOW = 16 -Global Const $COLOR_3DHIGHLIGHT = 20 -Global Const $COLOR_3DHILIGHT = 20 -Global Const $COLOR_BTNHILIGHT = 20 - -; Standard Resource Identifier Constants -Global Const $HINST_COMMCTRL = -1 - -Global Const $IDB_STD_SMALL_COLOR = 0 -Global Const $IDB_STD_LARGE_COLOR = 1 -Global Const $IDB_VIEW_SMALL_COLOR = 4 -Global Const $IDB_VIEW_LARGE_COLOR = 5 -Global Const $IDB_HIST_SMALL_COLOR = 8 -Global Const $IDB_HIST_LARGE_COLOR = 9 - -; Flags for $tagSTARTUPINFO structure (Process and Thread structures) -Global Const $STARTF_FORCEOFFFEEDBACK = 0x80 -Global Const $STARTF_FORCEONFEEDBACK = 0x40 -Global Const $STARTF_PREVENTPINNING = 0x00002000 -Global Const $STARTF_RUNFULLSCREEN = 0x20 -Global Const $STARTF_TITLEISAPPID = 0x00001000 -Global Const $STARTF_TITLEISLINKNAME = 0x00000800 -Global Const $STARTF_USECOUNTCHARS = 0x8 -Global Const $STARTF_USEFILLATTRIBUTE = 0x10 -Global Const $STARTF_USEHOTKEY = 0x200 -Global Const $STARTF_USEPOSITION = 0x4 -Global Const $STARTF_USESHOWWINDOW = 0x1 -Global Const $STARTF_USESIZE = 0x2 -Global Const $STARTF_USESTDHANDLES = 0x100 - -; Drawstate Constants -Global Const $CDDS_PREPAINT = 0x00000001 -Global Const $CDDS_POSTPAINT = 0x00000002 -Global Const $CDDS_PREERASE = 0x00000003 -Global Const $CDDS_POSTERASE = 0x00000004 -Global Const $CDDS_ITEM = 0x00010000 -Global Const $CDDS_ITEMPREPAINT = 0x00010001 -Global Const $CDDS_ITEMPOSTPAINT = 0x00010002 -Global Const $CDDS_ITEMPREERASE = 0x00010003 -Global Const $CDDS_ITEMPOSTERASE = 0x00010004 -Global Const $CDDS_SUBITEM = 0x00020000 - -; Itemstate Constants -Global Const $CDIS_SELECTED = 0x0001 -Global Const $CDIS_GRAYED = 0x0002 -Global Const $CDIS_DISABLED = 0x0004 -Global Const $CDIS_CHECKED = 0x0008 -Global Const $CDIS_FOCUS = 0x0010 -Global Const $CDIS_DEFAULT = 0x0020 -Global Const $CDIS_HOT = 0x0040 -Global Const $CDIS_MARKED = 0x0080 -Global Const $CDIS_INDETERMINATE = 0x0100 -Global Const $CDIS_SHOWKEYBOARDCUES = 0x0200 -; The current item state For Vista and above -Global Const $CDIS_NEARHOT = 0x0400 -Global Const $CDIS_OTHERSIDEHOT = 0x0800 -Global Const $CDIS_DROPHILITED = 0x1000 - -; Custom Draw Return Constants -Global Const $CDRF_DODEFAULT = 0x00000000 -Global Const $CDRF_NEWFONT = 0x00000002 -Global Const $CDRF_SKIPDEFAULT = 0x00000004 -Global Const $CDRF_NOTIFYPOSTPAINT = 0x00000010 -Global Const $CDRF_NOTIFYITEMDRAW = 0x00000020 -Global Const $CDRF_NOTIFYSUBITEMDRAW = 0x00000020 -Global Const $CDRF_NOTIFYPOSTERASE = 0x00000040 -; Return Values For Vista and above -Global Const $CDRF_DOERASE = 0x00000008 -Global Const $CDRF_SKIPPOSTPAINT = 0x00000100 - -; Control default styles -Global Const $GUI_SS_DEFAULT_GUI = BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU) -; =============================================================================================================================== diff --git a/build/Include/Word.au3 b/build/Include/Word.au3 deleted file mode 100644 index 8232f43d9..000000000 --- a/build/Include/Word.au3 +++ /dev/null @@ -1,649 +0,0 @@ -#include-once - -#include "AutoItConstants.au3" -#include "StringConstants.au3" -#include "WordConstants.au3" - -; #INDEX# ======================================================================================================================= -; Title .........: Microsoft Word Function Library (MS Word 2003 and later) -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: A collection of functions for accessing and manipulating Microsoft Word documents -; Author(s) .....: Bob Anthony, rewritten by water -; Resources .....: Word 2003 Visual Basic Reference: http://msdn.microsoft.com/en-us/library/aa272078(v=office.11).aspx -; Word 2007 Developer Reference: http://msdn.microsoft.com/en-us/library/bb244391(v=office.12).aspx -; Word 2010 Developer Reference: http://msdn.microsoft.com/en-us/library/ff841698.aspx -; =============================================================================================================================== - -; #CURRENT# ===================================================================================================================== -; _Word_Create -; _Word_Quit -; _Word_DocAdd -; _Word_DocAttach -; _Word_DocClose -; _Word_DocExport -; _Word_DocFind -; _Word_DocFindReplace -; _Word_DocGet -; _Word_DocLinkAdd -; _Word_DocLinkGet -; _Word_DocOpen -; _Word_DocPictureAdd -; _Word_DocPrint -; _Word_DocRangeSet -; _Word_DocSave -; _Word_DocSaveAs -; _Word_DocTableRead -; _Word_DocTableWrite -; =============================================================================================================================== - -; #INTERNAL_USE_ONLY#============================================================================================================ -; __Word_CloseOnQuit -; __Word_COMErrFunc -; =============================================================================================================================== - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_Create($bVisible = Default, $bForceNew = Default) - Local $oAppl, $bApplCloseOnQuit = False - If $bVisible = Default Then $bVisible = True - If $bForceNew = Default Then $bForceNew = False - If Not $bForceNew Then $oAppl = ObjGet("", "Word.Application") - If $bForceNew Or @error Then - $oAppl = ObjCreate("Word.Application") - If @error Or Not IsObj($oAppl) Then Return SetError(1, @error, 0) - $bApplCloseOnQuit = True - EndIf - __Word_CloseOnQuit($bApplCloseOnQuit) - $oAppl.Visible = $bVisible - Return SetError(0, $bApplCloseOnQuit, $oAppl) -EndFunc ;==>_Word_Create - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_Quit(ByRef $oAppl, $iSaveChanges = Default, $iOriginalFormat = Default, $bForceClose = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $iSaveChanges = Default Then $iSaveChanges = $WdDoNotSaveChanges - If $iOriginalFormat = Default Then $iOriginalFormat = $WdWordDocument - If $bForceClose = Default Then $bForceClose = False - If Not IsObj($oAppl) Then Return SetError(1, 0, 0) - If __Word_CloseOnQuit() Or $bForceClose Then - $oAppl.Quit($iSaveChanges, $iOriginalFormat) - If @error Then Return SetError(2, @error, 0) - EndIf - $oAppl = 0 - __Word_CloseOnQuit(False) - Return 1 -EndFunc ;==>_Word_Quit - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocAdd($oAppl, $iDocumentType = Default, $sDocumentTemplate = Default, $bNewTemplate = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $iDocumentType = Default Then $iDocumentType = $WdNewBlankDocument - If $sDocumentTemplate = Default Then $sDocumentTemplate = "" - If $bNewTemplate = Default Then $bNewTemplate = False - If Not IsObj($oAppl) Then Return SetError(1, 0, 0) - If StringStripWS($sDocumentTemplate, $STR_STRIPLEADING + $STR_STRIPTRAILING) <> "" And FileExists($sDocumentTemplate) <> 1 Then Return SetError(2, 0, 0) - Local $oDoc = $oAppl.Documents.Add($sDocumentTemplate, $bNewTemplate, $iDocumentType) - If @error Or Not IsObj($oDoc) Then Return SetError(3, @error, 0) - Return $oDoc -EndFunc ;==>_Word_DocAdd - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocAttach($oAppl, $sString, $sMode = Default, $iCase = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - Local $bFound = False - If $sMode = Default Then $sMode = "FilePath" - If $iCase = Default Then $iCase = 0 - If Not IsObj($oAppl) Then Return SetError(1, 0, 0) - If StringStripWS($sString, $STR_STRIPLEADING + $STR_STRIPTRAILING) = "" Then Return SetError(2, 0, 0) - If $sMode <> "filepath" And $sMode <> "filename" And $sMode <> "text" Then Return SetError(3, 0, 0) - For $oDoc In $oAppl.Documents - Select - Case $sMode = "filepath" And $oDoc.FullName = $sString - $bFound = True - Case $sMode = "filename" And $oDoc.Name = $sString - $bFound = True - Case $sMode = "text" And StringInStr($oDoc.Range().Text, $sString, $iCase) - $bFound = True - EndSelect - If $bFound Then ExitLoop - Next - If Not $bFound Then Return SetError(4, 0, 0) - Return $oDoc -EndFunc ;==>_Word_DocAttach - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocClose($oDoc, $iSaveChanges = Default, $iOriginalFormat = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $iSaveChanges = Default Then $iSaveChanges = $WdDoNotSaveChanges - If $iOriginalFormat = Default Then $iOriginalFormat = $WdOriginalDocumentFormat - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - $oDoc.Close($iSaveChanges, $iOriginalFormat) - If @error Then Return SetError(2, @error, 0) - Return 1 -EndFunc ;==>_Word_DocClose - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================================== -Func _Word_DocExport($oDoc, $sFileName, $iFormat = Default, $iRange = Default, $iFrom = Default, $iTo = Default, $bOpenAfterExport = Default, $bIncludeProperties = Default, $iCreateBookmarks = Default, $bUseISO19005 = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - If $sFileName = "" Then Return SetError(2, 0, 0) - If $iFormat = Default Then $iFormat = $WdExportFormatPDF - If $iRange = Default Then $iRange = $WdExportAllDocument - If $bOpenAfterExport = Default Then $bOpenAfterExport = False - If $bIncludeProperties = Default Then $bIncludeProperties = True - If $bUseISO19005 = Default Then $bUseISO19005 = False - If $iRange = $WdExportFromTo Then - $oDoc.ExportAsFixedFormat($sFileName, $iFormat, $bOpenAfterExport, Default, Default, Default, $bIncludeProperties, Default, $iCreateBookmarks, Default, Default, $bUseISO19005) ; Export Range - Else - $oDoc.ExportAsFixedFormat($sFileName, $iFormat, $bOpenAfterExport, Default, $iRange, $iFrom, $iTo, Default, $bIncludeProperties, Default, $iCreateBookmarks, Default, Default, $bUseISO19005) ; Export document - EndIf - If @error Then Return SetError(3, @error, 0) - Return 1 -EndFunc ;==>_Word_DocExport - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================================== -Func _Word_DocFind($oDoc, $sFindText = Default, $vSearchRange = Default, $oFindRange = Default, $bForward = Default, $bMatchCase = Default, $bMatchWholeWord = Default, $bMatchWildcards = Default, $bMatchSoundsLike = Default, $bMatchAllWordForms = Default, $bFormat = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $sFindText = Default Then $sFindText = "" - If $vSearchRange = Default Then $vSearchRange = 0 - If $bForward = Default Then $bForward = True - If $bMatchCase = Default Then $bMatchCase = False - If $bMatchWholeWord = Default Then $bMatchWholeWord = False - If $bMatchWildcards = Default Then $bMatchWildcards = False - If $bMatchSoundsLike = Default Then $bMatchSoundsLike = False - If $bMatchAllWordForms = Default Then $bMatchAllWordForms = False - If $bFormat = Default Then $bFormat = False - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - Switch $vSearchRange - Case -1 - $vSearchRange = $oDoc.Application.Selection.Range - Case 0 - $vSearchRange = $oDoc.Range() - Case Else - If Not IsObj($vSearchRange) Then Return SetError(2, 0, 0) - EndSwitch - If $oFindRange = Default Then - $oFindRange = $vSearchRange.Duplicate() - Else - If Not IsObj($oFindRange) Then Return SetError(3, 0, 0) - If $bForward = True Then - $oFindRange.Start = $oFindRange.End ; Search forward - $oFindRange.End = $vSearchRange.End - Else - $oFindRange.End = $oFindRange.Start ; Search backward - $oFindRange.Start = $vSearchRange.Start - EndIf - EndIf - $oFindRange.Find.ClearFormatting() - $oFindRange.Find.Execute($sFindText, $bMatchCase, $bMatchWholeWord, $bMatchWildcards, $bMatchSoundsLike, _ - $bMatchAllWordForms, $bForward, $WdFindStop, $bFormat) - If @error Or Not $oFindRange.Find.Found Then Return SetError(4, @error, 0) - Return $oFindRange -EndFunc ;==>_Word_DocFind - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocFindReplace($oDoc, $sFindText = Default, $sReplaceWith = Default, $iReplace = Default, $vSearchRange = Default, $bMatchCase = Default, $bMatchWholeWord = Default, $bMatchWildcards = Default, $bMatchSoundsLike = Default, $bMatchAllWordForms = Default, $bForward = Default, $iWrap = Default, $bFormat = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $sFindText = Default Then $sFindText = "" - If $sReplaceWith = Default Then $sReplaceWith = "" - If $iReplace = Default Then $iReplace = $WdReplaceAll - If $vSearchRange = Default Then $vSearchRange = 0 - If $bMatchCase = Default Then $bMatchCase = False - If $bMatchWholeWord = Default Then $bMatchWholeWord = False - If $bMatchWildcards = Default Then $bMatchWildcards = False - If $bMatchSoundsLike = Default Then $bMatchSoundsLike = False - If $bMatchAllWordForms = Default Then $bMatchAllWordForms = False - If $bForward = Default Then $bForward = True - If $iWrap = Default Then $iWrap = $WdFindContinue - If $bFormat = Default Then $bFormat = False - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - Switch $vSearchRange - Case -1 - $vSearchRange = $oDoc.Application.Selection.Range - Case 0 - $vSearchRange = $oDoc.Range() - Case Else - If Not IsObj($vSearchRange) Then Return SetError(2, 0, 0) - EndSwitch - Local $oFind = $vSearchRange.Find - $oFind.ClearFormatting() - $oFind.Replacement.ClearFormatting() - Local $bReturn = $oFind.Execute($sFindText, $bMatchCase, $bMatchWholeWord, $bMatchWildcards, $bMatchSoundsLike, _ - $bMatchAllWordForms, $bForward, $iWrap, $bFormat, $sReplaceWith, $iReplace) - If @error Or Not $bReturn Then Return SetError(3, @error, 0) - Return 1 -EndFunc ;==>_Word_DocFindReplace - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocGet($oAppl, $vIndex = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If Not IsObj($oAppl) Then Return SetError(1, 0, 0) - If $vIndex = Default Then $vIndex = -1 - Local $iCount = $oAppl.Documents.Count - If @error Then Return SetError(4, @error, 0) - If IsInt($vIndex) Then - Local $oDocument - Select - Case $vIndex = -1 - Return SetError(0, $iCount, $oAppl.Documents) - Case $vIndex = 0 - $oDocument = $oAppl.ActiveDocument - If @error Then Return SetError(3, @error, 0) - Return SetError(0, $iCount, $oDocument) - Case $vIndex > 0 And $vIndex <= $iCount - $oDocument = $oAppl.ActiveDocument - If @error Then Return SetError(3, @error, 0) - Return SetError(0, $iCount, $oDocument) - Case Else - Return SetError(2, 0, 0) - EndSelect - Else - For $oDoc In $oAppl.Documents - If $oDoc.Name = $vIndex Then Return SetError(0, $iCount, $oDoc) - Next - Return SetError(3, 0, 0) - EndIf -EndFunc ;==>_Word_DocGet - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocLinkAdd($oDoc, $oAnchor = Default, $sAddress = Default, $sSubAddress = Default, $sScreenTip = Default, $sTextToDisplay = Default, $sTarget = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - If $oAnchor = Default Then $oAnchor = $oDoc.Range() - If Not IsObj($oAnchor) Then Return SetError(3, 0, 0) - If $sAddress = Default Then $sAddress = $oDoc.FullName - $oDoc.Hyperlinks.Add($oAnchor, $sAddress, $sSubAddress, $sScreenTip, $sTextToDisplay, $sTarget) - If @error Then Return SetError(2, @error, 0) - Return 1 -EndFunc ;==>_Word_DocLinkAdd - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocLinkGet($oDoc, $iIndex = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - If $iIndex <> Default And (Not IsInt($iIndex)) Then Return SetError(2, 0, 0) - Local $iCount = $oDoc.Hyperlinks.Count - If @error Then Return SetError(3, @error, 0) - Select - Case $iIndex = Default - Return SetError(0, $iCount, $oDoc.Hyperlinks) - Case $iIndex > 0 And $iIndex <= $iCount - Return SetError(0, $iCount, $oDoc.Hyperlinks.Item($iIndex)) - Case Else - Return SetError(2, 0, 0) - EndSelect -EndFunc ;==>_Word_DocLinkGet - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocOpen($oAppl, $sFilePath, $bConfirmConversions = Default, $iFormat = Default, $bReadOnly = Default, $bRevert = Default, $bAddToRecentFiles = Default, $sOpenPassword = Default, $sWritePassword = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $bConfirmConversions = Default Then $bConfirmConversions = False - If $iFormat = Default Then $iFormat = $WdOpenFormatAuto - If $bReadOnly = Default Then $bReadOnly = False - If $bRevert = Default Then $bRevert = False - If $bAddToRecentFiles = Default Then $bAddToRecentFiles = False - If $sOpenPassword = Default Then $sOpenPassword = "" - If $sWritePassword = Default Then $sWritePassword = "" - If Not IsObj($oAppl) Then Return SetError(1, 0, 0) - If Not FileExists($sFilePath) Then Return SetError(2, 0, 0) - If StringInStr($sFilePath, "\") = 0 Then $sFilePath = @ScriptDir & "\" & $sFilePath - Local $oDoc = $oAppl.Documents.Open($sFilePath, $bConfirmConversions, $bReadOnly, $bAddToRecentFiles, _ - $sOpenPassword, "", $bRevert, $sWritePassword, "", $iFormat) - If @error Or Not IsObj($oDoc) Then Return SetError(3, @error, 0) - ; If a read-write document was opened read-only then return an error - If $bReadOnly = False And $oDoc.Readonly = True Then Return SetError(0, 1, $oDoc) - Return $oDoc -EndFunc ;==>_Word_DocOpen - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocPictureAdd($oDoc, $sFilePath, $bLinkToFile = Default, $bSaveWithDocument = Default, $oRange = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $bLinkToFile = Default Then $bLinkToFile = False - ; Word docu is wrong. False isn't accepted. But Default is handled like False - If $bSaveWithDocument = Default Then $bSaveWithDocument = Default - If $oRange = Default Then $oRange = 0 - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - If $oRange <> 0 And Not IsObj($oRange) Then Return SetError(4, 0, 0) - If Not FileExists($sFilePath) Then Return SetError(2, 0, 0) - Local $oShape - If IsObj($oRange) Then - $oShape = $oDoc.InlineShapes.AddPicture($sFilePath, $bLinkToFile, $bSaveWithDocument, $oRange) - Else - $oShape = $oDoc.InlineShapes.AddPicture($sFilePath, $bLinkToFile, $bSaveWithDocument) - EndIf - If @error Then Return SetError(3, @error, 0) - Return $oShape -EndFunc ;==>_Word_DocPictureAdd - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocPrint($oDoc, $bBackground = Default, $iCopies = Default, $iOrientation = Default, $bCollate = Default, $sPrinter = Default, $iRange = Default, $vFrom = Default, $vTo = Default, $sPages = Default, $iPageType = Default, $iItem = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $bBackground = Default Then $bBackground = False - If $iCopies = Default Then $iCopies = 1 - If $iOrientation = Default Then $iOrientation = -1 - If $bCollate = Default Then $bCollate = True - If $sPrinter = Default Then $sPrinter = "" - If $iRange = Default Then $iRange = $WdPrintAllDocument - If $vFrom = Default Then $vFrom = "" - If $vTo = Default Then $vTo = "" - If $sPages = Default Then $sPages = "" - If $iPageType = Default Then $iPageType = $WdPrintAllPages - If $iItem = Default Then $iItem = $WdPrintDocumentContent - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - Local $iDocOrientation, $iError = 0, $iExtended = 0, $sActivePrinter - ; Set orientation - If $iOrientation <> -1 Then - $iDocOrientation = $oDoc.PageSetup.Orientation - If $iDocOrientation <> $iOrientation Then - $oDoc.PageSetup.Orientation = $iOrientation - If @error Then Return SetError(2, @error, 0) - EndIf - EndIf - ; Set Printer - If $sPrinter <> "" Then - $sActivePrinter = $oDoc.Application.ActivePrinter - $oDoc.Application.ActivePrinter = $sPrinter - If @error Then - $iError = 3 - $iExtended = @error - EndIf - EndIf - ; Print file - If $iError = 0 Then - $oDoc.PrintOut($bBackground, False, $iRange, "", $vFrom, $vTo, $iItem, $iCopies, $sPages, $iPageType, 0, $bCollate) - If @error Then - $iError = 4 - $iExtended = @error - EndIf - EndIf - ; Reset orientation if changed - If $iOrientation <> -1 And $iDocOrientation <> $iOrientation Then - $oDoc.PageSetup.Orientation = $iDocOrientation - EndIf - ; Reset printer if changed - If $sActivePrinter Then - $oDoc.Application.ActivePrinter = $sActivePrinter - EndIf - ; Return error if happened - If $iError <> 0 Then Return SetError($iError, $iExtended, 0) - Return 1 -EndFunc ;==>_Word_DocPrint - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================================== -Func _Word_DocRangeSet($oDoc, $vRange, $iStartUnit = Default, $iStartCount = Default, $iEndUnit = Default, $iEndCount = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $iStartUnit = Default Then $iStartUnit = $WdWord - If $iEndUnit = Default Then $iEndUnit = $WdWord - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - If Not IsObj($vRange) And ($vRange < -2 Or $vRange > 0) Then Return SetError(2, 0, 0) - If $vRange = -1 Then - $vRange = $oDoc.Range ; Set range start/end at the start to the document - $vRange.Collapse($WdCollapseStart) - ElseIf $vRange = -2 Then - $vRange = $oDoc.Range ; Set range start/end at the end to the document - $vRange.Collapse($WdCollapseEnd) - ElseIf $vRange = 0 Then - $vRange = $oDoc.Parent.Selection.Range ; Use the current selection as range - EndIf - If $iStartUnit = -1 Then - $vRange.Collapse($WdCollapseStart) - If @error Then Return SetError(3, @error, 0) - ElseIf $iStartCount <> Default Then - $vRange.MoveStart($iStartUnit, $iStartCount) - If @error Then Return SetError(3, @error, 0) - EndIf - If $iEndUnit = -1 Then - $vRange.Collapse($WdCollapseEnd) - If @error Then Return SetError(4, @error, 0) - ElseIf $iEndCount <> Default Then - $vRange.MoveEnd($iEndUnit, $iEndCount) - If @error Then Return SetError(4, @error, 0) - EndIf - Return $vRange -EndFunc ;==>_Word_DocRangeSet - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocSave($oDoc) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - If Not FileExists($oDoc.FullName) Then Return SetError(2, 0, 0) - $oDoc.Save() - If @error Then Return SetError(3, @error, 0) - Return 1 -EndFunc ;==>_Word_DocSave - -; #FUNCTION# ==================================================================================================================== -; Author ........: water (based on the Word UDF written by Bob Anthony) -; Modified ......: -; =============================================================================================================================== -Func _Word_DocSaveAs($oDoc, $sFileName = Default, $iFileFormat = Default, $bReadOnlyRecommended = Default, $bAddToRecentFiles = Default, $sPassword = Default, $sWritePassword = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $sFileName = Default Then $sFileName = "" - If $iFileFormat = Default Then $iFileFormat = $WdFormatDocument - If $bReadOnlyRecommended = Default Then $bReadOnlyRecommended = False - If $bAddToRecentFiles = Default Then $bAddToRecentFiles = 0 - If $sPassword = Default Then $sPassword = "" - If $sWritePassword = Default Then $sWritePassword = "" - If Not IsObj($oDoc) Then Return SetError(1, 0, 0) - $oDoc.SaveAs($sFileName, $iFileFormat, False, $sPassword, $bAddToRecentFiles, $sWritePassword, $bReadOnlyRecommended) - If @error Then Return SetError(2, @error, 0) - Return 1 -EndFunc ;==>_Word_DocSaveAs - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================================== -Func _Word_DocTableRead($oDoc, $vTable, $iIndexBase = Default, $sDelimiter = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $iIndexBase = Default Then $iIndexBase = 1 - If $sDelimiter = Default Then $sDelimiter = @TAB - If Not IsObj($oDoc) Then Return SetError(1, 0, "") - If Not IsObj($vTable) Then - $vTable = $oDoc.Tables.Item($vTable) - If @error Then Return SetError(2, @error, "") - EndIf - ; Temporarly replace tabs and paragraphs in the table - Local $asSeparators[2][2] = [[@TAB, " "], [@CR, "|"]], $iTableRows, $iTableColumns, $iUndo = 1, $bFound = False - $vTable.Range.Find.ClearFormatting - If @error Then Return SetError(3, @error, "") - $bFound = $vTable.Range.Find.Execute($asSeparators[0][0], False, False, False, False, False, True, $WdFindStop, False, $asSeparators[0][1], $WdReplaceAll) - If $bFound Then $iUndo = $iUndo + 1 - $bFound = $vTable.Range.Find.Execute($asSeparators[1][0], False, False, False, False, False, True, $WdFindStop, False, $asSeparators[1][1], $WdReplaceAll) - If $bFound Then $iUndo = $iUndo + 1 - $iTableRows = $vTable.Rows.Count() - $iTableColumns = $vTable.Columns.Count() - Local $asResult[$iTableRows + $iIndexBase][$iTableColumns], $asLines, $asColumns - Local $oRange = $vTable.ConvertToText($sDelimiter, False) - If @error Then Return SetError(4, @error, "") - Local $sData = $oRange.Text - $oDoc.Undo($iUndo) ; Undo the Find and ConvertToText function so the table remains unchanged in the document - $asLines = StringSplit($sData, @CR, $STR_NOCOUNT) - For $iIndex1 = 0 To $iTableRows - 1 - $asColumns = StringSplit($asLines[$iIndex1], $sDelimiter) - For $iIndex2 = 1 To $asColumns[0] - $asColumns[$iIndex2] = StringReplace($asColumns[$iIndex2], $asSeparators[0][1], $asSeparators[0][0]) - $asColumns[$iIndex2] = StringReplace($asColumns[$iIndex2], $asSeparators[1][1], $asSeparators[1][0]) - $asResult[$iIndex1 + $iIndexBase][$iIndex2 - 1] = $asColumns[$iIndex2] - Next - Next - If $iIndexBase Then - $asResult[0][0] = UBound($asResult, $UBOUND_ROWS) - 1 - If UBound($asResult, $UBOUND_COLUMNS) > 1 Then $asResult[0][1] = UBound($asResult, $UBOUND_COLUMNS) - EndIf - Return $asResult -EndFunc ;==>_Word_DocTableRead - -; #FUNCTION# ==================================================================================================================== -; Author ........: water -; Modified ......: -; =============================================================================================================================== -Func _Word_DocTableWrite($oRange, ByRef $aArray, $iIndexBase = Default, $sDelimiter = Default) - ; Error handler, automatic cleanup at end of function - Local $oError = ObjEvent("AutoIt.Error", "__Word_COMErrFunc") - #forceref $oError - - If $iIndexBase = Default Then $iIndexBase = 1 - If $sDelimiter = Default Then $sDelimiter = @TAB - If Not IsObj($oRange) Then Return SetError(1, 0, 0) - If Not IsArray($aArray) Or UBound($aArray, $UBOUND_DIMENSIONS) > 2 Then Return SetError(2, 0, 0) - Local $sData, $iUBound1, $iUBound2, $oTable - $iUBound1 = UBound($aArray, $UBOUND_ROWS) - If UBound($aArray, $UBOUND_DIMENSIONS) = 1 Then - For $iIndex1 = $iIndexBase To $iUBound1 - 1 - $sData = $sData & $aArray[$iIndex1] - If $iIndex1 <> $iUBound1 Then $sData = $sData & @CRLF - Next - Else - $iUBound2 = UBound($aArray, $UBOUND_COLUMNS) - For $iIndex1 = $iIndexBase To $iUBound1 - 1 - For $iIndex2 = 0 To $iUBound2 - 1 - $sData = $sData & $aArray[$iIndex1][$iIndex2] - If $iIndex2 <> $iUBound2 - 1 Then $sData = $sData & $sDelimiter - Next - If $iIndex1 <> $iUBound1 - 1 Then $sData = $sData & @CRLF - Next - EndIf - $oRange.Text = $sData - If @error Then Return SetError(3, @error, 0) - $oTable = $oRange.ConvertToTable($sDelimiter) - If @error Then Return SetError(4, @error, 0) - Return $oTable -EndFunc ;==>_Word_DocTableWrite - -; #INTERNAL_USE_ONLY#============================================================================================================ -; Name...........: __Word_CloseOnQuit -; Description ...: Sets or returns the state used to determine if the Word application can be closed by _Word_Quit. -; Syntax.........: __Word_CloseOnQuit ( [$bNewState = Default] ) -; Parameters ....: $bNewState - True if the Word application was started by function _Word_Create -; Return values .: Success - Current state. Can be either True (Word will be closed by _Word_Quit) or -; +False (Word will not be closed by _Word_Quit) -; Author ........: Valik -; Modified ......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Word_CloseOnQuit($bNewState = Default) - Static $bState = False - If IsBool($bNewState) Then $bState = $bNewState - Return $bState -EndFunc ;==>__Word_CloseOnQuit - -; #INTERNAL_USE_ONLY#============================================================================================================ -; Name...........: __Word_COMErrFunc -; Description ...: Dummy function for silently handling COM errors. -; Syntax.........: -; Parameters ....: -; Return values .: -; -; Author ........: -; Modified ......: -; Remarks .......: -; Related .......: -; Link ..........: -; Example .......: -; =============================================================================================================================== -Func __Word_COMErrFunc() - ; Do nothing special, just check @error after suspect functions. -EndFunc ;==>__Word_COMErrFunc diff --git a/build/Include/WordConstants.au3 b/build/Include/WordConstants.au3 deleted file mode 100644 index 4fe0e4549..000000000 --- a/build/Include/WordConstants.au3 +++ /dev/null @@ -1,177 +0,0 @@ -#include-once - -; #INDEX# ======================================================================================================================= -; Title .........: WordConstants -; AutoIt Version : 3.3.14.2 -; Language ......: English -; Description ...: Constants to be included in an AutoIt script when using the Word UDF. -; Author(s) .....: water -; Resources .....: Word 2007 Enumerations: http://msdn.microsoft.com/en-us/library/ee426857%28v=office.12%29 -; =============================================================================================================================== - -; #CONSTANTS# =================================================================================================================== -; WdBreakType Enumeration. Specifies type of break. -; See: http://msdn.microsoft.com/en-us/library/bb213704%28v=office.12%29 -Global Const $WdColumnBreak = 8 ; Column break at the insertion point -Global Const $WdLineBreak = 6 ; Line break -Global Const $WdLineBreakClearLeft = 9 ; Line break -Global Const $WdLineBreakClearRight = 10 ; Line break -Global Const $WdPageBreak = 7 ; Page break at the insertion point -Global Const $WdSectionBreakContinuous = 3 ; New section without a corresponding page break -Global Const $WdSectionBreakEvenPage = 4 ; Section break with the next section beginning on the next even-numbered page. If the section break falls on an even-numbered page, Word leaves the next odd-numbered page blank -Global Const $WdSectionBreakNextPage = 2 ; Section break on next page -Global Const $WdSectionBreakOddPage = 5 ; Section break with the next section beginning on the next odd-numbered page. If the section break falls on an odd-numbered page, Word leaves the next even-numbered page blank -Global Const $WdTextWrappingBreak = 11 ; Ends the current line and forces the text to continue below a picture, table, or other item. The text continues on the next blank line that does not contain a table aligned with the left or right margin - -; MsoDocProperties Enumeration. Specifies the data type for a document property. -; See: http://msdn.microsoft.com/en-us/library/aa432509(v=office.12) -Global Const $msoPropertyTypeBoolean = 2 ; Boolean value -Global Const $msoPropertyTypeDate = 3 ; Date value -Global Const $msoPropertyTypeFloat = 5 ; Floating point value -Global Const $msoPropertyTypeNumber = 1 ; Integer value -Global Const $msoPropertyTypeString = 4 ; String value - -; WdCollapseDirection Enumeration. Specifies the direction in which to collapse a range or selection. -; See: http://msdn.microsoft.com/en-us/library/bb237551%28v=office.12%29 -Global Const $WdCollapseEnd = 0 ; Collapse the range to the ending point -Global Const $WdCollapseStart = 1 ; Collapse the range to the starting point - -; WdExportFormat Enumeration. Specifies format to use for exporting a document. -; See: http://msdn.microsoft.com/en-us/library/bb243311%28v=office.12%29.aspx -Global Const $WdExportFormatPDF = 17 ; Export document into PDF format -Global Const $WdExportFormatXPS = 18 ; Export document into XML Paper Specification (XPS) format - -; WdExportRange Enumeration. Specifies how much of the document to export. -; See: http://msdn.microsoft.com/en-us/library/bb243314%28v=office.12%29.aspx -Global Const $WdExportAllDocument = 0 ; Exports the entire document -Global Const $WdExportCurrentPage = 2 ; Exports the current page -Global Const $WdExportFromTo = 3 ; Exports the contents of a range using the starting and ending positions -Global Const $WdExportSelection = 1 ; Exports the contents of the current selection - -; WdFindWrap Enumeration. Specifies wrap behavior if a selection or range is specified for a find operation and the search text isn't found in the selection or range. -; See: http://msdn.microsoft.com/en-us/library/bb213734%28v=office.12%29 -Global Const $WdFindAsk = 2 ; After searching the selection or range, Microsoft Word displays a message asking whether to search the remainder of the document -Global Const $WdFindContinue = 1 ; The find operation continues if the beginning or end of the search range is reached -Global Const $WdFindStop = 0 ; The find operation ends if the beginning or end of the search range is reached - -; WdNewDocumentType Enumeration. Specifies the type of new document to create. -; See: http://msdn.microsoft.com/en-us/library/bb237823%28v=office.12%29.aspx -Global Const $WdNewBlankDocument = 0 ; Blank document -Global Const $WdNewEmailMessage = 2 ; E-mail message -Global Const $WdNewFrameset = 3 ; Frameset -Global Const $WdNewWebPage = 1 ; Web page -Global Const $WdNewXMLDocument = 4 ; XML document - -; WdOpenFormat Enumeration. Specifies the format to use when opening a document. -; See: http://msdn.microsoft.com/en-us/library/bb237872%28v=office.12%29 -Global Const $WdOpenFormatAllWord = 6 ; A Microsoft Office Word format that is backward compatible with earlier versions of Word -Global Const $WdOpenFormatAuto = 0 ; The existing format -Global Const $WdOpenFormatDocument = 1 ; Word format -Global Const $WdOpenFormatEncodedText = 5 ; Encoded text format -Global Const $WdOpenFormatRTF = 3 ; Rich text format (RTF) -Global Const $WdOpenFormatTemplate = 2 ; As a Word template -Global Const $WdOpenFormatText = 4 ; Unencoded text format -Global Const $WdOpenFormatUnicodeText = 5 ; Unicode text format -Global Const $WdOpenFormatWebPages = 7 ; HTML format -Global Const $WdOpenFormatXML = 8 ; XML format -Global Const $WdOpenFormatAllWordTemplates = 13 ; Word template format -Global Const $WdOpenFormatDocument97 = 1 ; Microsoft Word 97 document format -Global Const $WdOpenFormatTemplate97 = 2 ; Word 97 template format -Global Const $WdOpenFormatXMLDocument = 9 ; XML document format -Global Const $WdOpenFormatXMLDocumentMacroEnabled = 10 ; XML document format with macros enabled -Global Const $WdOpenFormatXMLTemplate = 11 ; XML template format -Global Const $WdOpenFormatXMLTemplateMacroEnabled = 12 ; XML template format with macros enabled - -; WdOrientation Enumeration. Specifies a page layout orientation. -; See: http://msdn.microsoft.com/en-us/library/bb237879%28v=office.12%29.aspx -Global Const $WdOrientLandscape = 1 ; Landscape orientation -Global Const $WdOrientPortrait = 0 ; Portrait orientation - -; WdOriginalFormat Enumeration. Specifies the document format. This enumeration is commonly used when saving a document. -; See: http://msdn.microsoft.com/en-us/library/bb237886%28v=office.12%29.aspx -Global Const $WdOriginalDocumentFormat = 1 ; Original document format -Global Const $WdPromptUser = 2 ; Prompt user to select a document format -Global Const $WdWordDocument = 0 ; Microsoft Word document format - -; WdPrintOutItem Enumeration. Specifies the item to print. -; See: http://msdn.microsoft.com/en-us/library/bb237945%28v=office.12%29 -Global Const $WdPrintAutoTextEntries = 4 ; Autotext entries in the current document -Global Const $WdPrintComments = 2 ; Comments in the current document -Global Const $WdPrintDocumentContent = 0 ; Current document content -Global Const $WdPrintDocumentWithMarkup = 7 ; Current document content including markup -Global Const $WdPrintEnvelope = 6 ; An envelope -Global Const $WdPrintKeyAssignments = 5 ; Key assignments in the current document -Global Const $WdPrintMarkup = 2 ; Markup in the current document -Global Const $WdPrintProperties = 1 ; Properties in the current document -Global Const $WdPrintStyles = 3 ; Styles in the current document - -; WdPrintOutPages Enumeration. Specifies the type of pages to print. -; See: http://msdn.microsoft.com/en-us/library/bb237950%28v=office.12%29 -Global Const $WdPrintAllPages = 0 ; All pages -Global Const $WdPrintEvenPagesOnly = 2 ; Even-numbered pages only -Global Const $WdPrintOddPagesOnly = 1 ; Odd-numbered pages only - -; WdPrintOutRange Enumeration. Specifies a range to print. -; See: http://msdn.microsoft.com/en-us/library/bb237956%28v=office.12%29 -Global Const $WdPrintAllDocument = 0 ; The entire document -Global Const $WdPrintCurrentPage = 2 ; The current page -Global Const $WdPrintFromTo = 3 ; A specified range -Global Const $WdPrintRangeOfPages = 4 ; A specified range of pages -Global Const $WdPrintSelection = 1 ; The current selection - -; WdReplace Enumeration. Specifies the number of replacements to be made when find and replace is used. -; See: http://msdn.microsoft.com/en-us/library/bb238124%28v=office.12%29.aspx -Global Const $WdReplaceAll = 2 ; Replace all occurrences -Global Const $WdReplaceNone = 0 ; Replace no occurrences -Global Const $WdReplaceOne = 1 ; Replace the first occurrence encountered - -; WdSaveFormat Enumeration. Specifies the format to use when saving a document. -; See: http://msdn.microsoft.com/en-us/library/bb238158%28v=office.12%29 -Global Const $WdFormatDocument = 0 ; Microsoft Office Word format -Global Const $WdFormatDOSText = 4 ; Microsoft DOS text format -Global Const $WdFormatDOSTextLineBreaks = 5 ; Microsoft DOS text with line breaks preserved -Global Const $WdFormatEncodedText = 7 ; Encoded text format -Global Const $WdFormatFilteredHTML = 10 ; Filtered HTML format -Global Const $WdFormatHTML = 8 ; Standard HTML format -Global Const $WdFormatRTF = 6 ; Rich text format (RTF) -Global Const $WdFormatTemplate = 1 ; Word template format -Global Const $WdFormatText = 2 ; Microsoft Windows text format -Global Const $WdFormatTextLineBreaks = 3 ; Windows text format with line breaks preserved -Global Const $WdFormatUnicodeText = 7 ; Unicode text format -Global Const $WdFormatWebArchive = 9 ; Web archive format -Global Const $WdFormatXML = 11 ; Extensible Markup Language (XML) format -Global Const $WdFormatDocument97 = 0 ; Microsoft Word 97 document format -Global Const $WdFormatDocumentDefault = 16; Word default document file format. For Microsoft Office Word 2007, this is the DOCX format -Global Const $WdFormatPDF = 17 ; PDF format -Global Const $WdFormatTemplate97 = 1 ; Word 97 template format -Global Const $WdFormatXMLDocument = 12 ; XML document format -Global Const $WdFormatXMLDocumentMacroEnabled = 13 ; XML document format with macros enabled -Global Const $WdFormatXMLTemplate = 14 ; XML template format -Global Const $WdFormatXMLTemplateMacroEnabled = 15 ; XML template format with macros enabled -Global Const $WdFormatXPS = 18 ; XPS format - -; WdSaveOptions Enumeration. Specifies how pending changes should be handled. -; See: http://msdn.microsoft.com/en-us/library/bb238160%28v=office.12%29.aspx -Global Const $WdDoNotSaveChanges = 0 ; Do not save pending changes -Global Const $WdPromptToSaveChanges = -2 ; Prompt the user to save pending changes -Global Const $WdSaveChanges = -1 ; Save pending changes automatically without prompting the user - -; WdUnits Enumeration. Specifies a unit of measure to use. -; See: http://msdn.microsoft.com/en-us/library/bb214015%28v=office.12%29.aspx -Global Const $WdCell = 12 ; A cell -Global Const $WdCharacter = 1 ; A character -Global Const $WdCharacterFormatting = 13 ; Character formatting -Global Const $WdColumn = 9 ; A column -Global Const $WdItem = 16 ; The selected item -Global Const $WdLine = 5 ; A line -Global Const $WdParagraph = 4 ; A paragraph -Global Const $WdParagraphFormatting = 14 ; Paragraph formatting -Global Const $WdRow = 10 ; A row -Global Const $WdScreen = 7 ; The screen dimensions -Global Const $WdSection = 8 ; A section -Global Const $WdSentence = 3 ; A sentence -Global Const $WdStory = 6 ; A story -Global Const $WdTable = 15 ; A table -Global Const $WdWindow = 11 ; A window -Global Const $WdWord = 2 ; A word -; =============================================================================================================================== diff --git a/build/Include/_ReadMe_.txt b/build/Include/_ReadMe_.txt deleted file mode 100644 index beaaac38a..000000000 --- a/build/Include/_ReadMe_.txt +++ /dev/null @@ -1,7 +0,0 @@ -This directory contains pre-written functions for use in your AutoIt scripts. - -Include the functions using: - -#include - -See the help file for details of the functions, or read the .au3 directly. \ No newline at end of file diff --git a/build/MBR_Compiler/MBR_Compiler/.vs/MyBot.run Compiler/v16/Server/sqlite3/db.lock b/build/MBR_Compiler/MBR_Compiler/.vs/MyBot.run Compiler/v16/Server/sqlite3/db.lock deleted file mode 100644 index e69de29bb..000000000 diff --git a/build/MBR_Compiler/MBR_Compiler/.vs/MyBot.run Compiler/v16/Server/sqlite3/storage.ide b/build/MBR_Compiler/MBR_Compiler/.vs/MyBot.run Compiler/v16/Server/sqlite3/storage.ide deleted file mode 100644 index d01860bed..000000000 Binary files a/build/MBR_Compiler/MBR_Compiler/.vs/MyBot.run Compiler/v16/Server/sqlite3/storage.ide and /dev/null differ diff --git a/build/MBR_Compiler/MBR_Compiler/App.config b/build/MBR_Compiler/MBR_Compiler/App.config deleted file mode 100644 index 56efbc7b5..000000000 --- a/build/MBR_Compiler/MBR_Compiler/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/build/MBR_Compiler/MBR_Compiler/MyBot.ico b/build/MBR_Compiler/MBR_Compiler/MyBot.ico deleted file mode 100644 index 8a0534bd2..000000000 Binary files a/build/MBR_Compiler/MBR_Compiler/MyBot.ico and /dev/null differ diff --git a/build/MBR_Compiler/MBR_Compiler/MyBot.run Compiler.csproj b/build/MBR_Compiler/MBR_Compiler/MyBot.run Compiler.csproj deleted file mode 100644 index e4883ea91..000000000 --- a/build/MBR_Compiler/MBR_Compiler/MyBot.run Compiler.csproj +++ /dev/null @@ -1,86 +0,0 @@ - - - - - Debug - AnyCPU - {BCDB36D5-4544-4EF3-B807-8189EE50A9D4} - Exe - BuildMBR - BuildMBR - v4.7.2 - 512 - true - true - false - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - MyBot.ico - - - - - - - - - - - - - - - - - - - - - False - Microsoft .NET Framework 4.7.2 %28x86 und x64%29 - true - - - False - .NET Framework 3.5 SP1 - false - - - - - - - \ No newline at end of file diff --git a/build/MBR_Compiler/MBR_Compiler/MyBot.run Compiler.csproj.user b/build/MBR_Compiler/MBR_Compiler/MyBot.run Compiler.csproj.user deleted file mode 100644 index ae07ece3d..000000000 --- a/build/MBR_Compiler/MBR_Compiler/MyBot.run Compiler.csproj.user +++ /dev/null @@ -1,13 +0,0 @@ - - - - publish\ - - - - - - de-DE - false - - \ No newline at end of file diff --git a/build/MBR_Compiler/MBR_Compiler/Program.cs b/build/MBR_Compiler/MBR_Compiler/Program.cs deleted file mode 100644 index a39b3a9e2..000000000 --- a/build/MBR_Compiler/MBR_Compiler/Program.cs +++ /dev/null @@ -1,218 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.IO; -using System.Diagnostics; -using System.Text.RegularExpressions; - -namespace MbrCompiler -{ - class Program - { - public static string[] filesToCompile = { "MyBot.run", "MyBot.run.MiniGui", "MyBot.run.Watchdog", "MyBot.run.Wmi" }; - public static string[] endings = { "_stripped.au3", ".exe" }; - public static string zipFile = "MyBot.run.zip"; - public static string directory = Environment.CurrentDirectory; - public static string versionFile = Path.Combine(directory, "MyBot.run.version.au3"); - public static Boolean debugBuild; - public static string filesToZip = "COCBot\\* CSV\\* Help\\* images\\* imgxml\\* Languages\\* lib\\* Strategies\\* License.txt \"MyBot.run Community Support Key.asc\" README.md CHANGELOG MyBot.run.au3 MyBot.run.exe MyBot.run.MiniGui.au3 MyBot.run.MiniGui.exe MyBot.run.txt MyBot.run.version.au3 MyBot.run.Watchdog.au3 MyBot.run.Watchdog.exe MyBot.run.Wmi.au3 MyBot.run.Wmi.exe"; - public static string filesToZipDebug = filesToZip + " EnableMBRDebug.txt"; - - static void Main(string[] args) - { - Console.WriteLine("##################################"); - Console.WriteLine("# #"); - Console.WriteLine("# Starting to Compile Mybot #"); - Console.WriteLine("# #"); - Console.WriteLine("##################################"); - Console.WriteLine(""); - - //Remove all old _stripped.au3 and .exe Files from Directory - if (!removeExistingFiles()) return; - - //Add, Remove or Update Beta Tag on Version File - if (confirmPrompt("Is it a Beta Release?") & File.Exists(versionFile)) - { - addBetaTag(); - debugBuild = true; - } - else - { - removeBetaTag(); - debugBuild = false; - } - - //Start Compilation - foreach (string file in filesToCompile) - { - //Au3 Checker - int checkerCode = runTool("Au3Check.Exe", Path.Combine(directory, file + ".au3")); - if (checkerCode == 0) - { - Console.ForegroundColor = ConsoleColor.Green; - Console.WriteLine("Au3Checker successfully on {0}.au3", file); - Console.ForegroundColor = ConsoleColor.Gray; - } - - /* No more stripping per direction of TFKNazGul - - //Au3 Stripper - runTool(Path.Combine("au3stripper", "au3stripper.exe"), Path.Combine(directory, file + ".au3")); - */ - - //Aut2Exe - //string arg = string.Format(@" /In ""{0}"" /nopack /comp 2", Path.Combine(directory, file + "_stripped.au3")); - string arg = string.Format(@" /In ""{0}"" /nopack /comp 2", Path.Combine(directory, file + ".au3")); - runTool(Path.Combine("aut2exe", "aut2exe.exe"), arg, false); - if (!File.Exists(Path.Combine(directory, file + ".exe"))) - { - Console.WriteLine("Error while compiling {0}.exe. Stopping", file); - goto Finish; - } - } - - //7Zip - //Console.WriteLine("Start to Zip" + " '" + filesToZipDebug + "'"); - Console.WriteLine("Starting to Zip"); - string version = getVersion(); - - if (!debugBuild) - { - //runTool("7z.exe", @"a -x!*.7z -x!*.zip -x!*.snk -x!*.lnk -xr!BackUp -xr!SmartFarm -x!*.sqlite3 -x!.git* -x!Profiles -x!build*.bat -x!build -x!build\* -x!installer -x!installer\* -x!OLD*CODE -x!DEV*TOOLS -x!Zombies -x!Zombies\* -x!SkippedZombies -x!SkippedZombies\* -x!lib\*Debug* -x!*Debug*.txt -x!BuildMBR* -x!*_stripped.au3 -x!CHANGELOG* -x!lib\*Debug*\* -x!*debug-txt -x!*TODO.txt -x!lib\*.txt -x!lib\*.html -r MyBot-MBR_" + version + ".zip *", false); - runTool("7z.exe", "a MyBot-MBR_" + version + ".zip " + filesToZip, false); - } - else - { - // Include EnableMBRDebug.txt flag file for debug builds - // runTool("7z.exe", @"a -x!*.7z -x!*.zip -x!*.snk -x!*.lnk -xr!BackUp -xr!SmartFarm -x!*.sqlite3 -x!.git* -x!Profiles -x!build*.bat -x!build -x!build\* -x!installer -x!installer\* -x!OLD*CODE -x!DEV*TOOLS -x!Zombies -x!Zombies\* -x!SkippedZombies -x!SkippedZombies\* -x!lib\*Debug* -x!BuildMBR* -x!*_stripped.au3 -x!CHANGELOG* -x!lib\*Debug*\* -x!*debug-txt -x!lib\*.txt -x!lib\*.html -r MyBot-MBR_" + version + ".zip *", false); - runTool("7z.exe", "a MyBot-MBR_" + version + ".zip " + filesToZipDebug, false); - } - goto Finish; - - - Finish: - // There or not, attempt to get rid of the addition to the version file. - removeBetaTag(); - - Console.WriteLine("{0}Press any key to exit", Environment.NewLine); - Console.ReadKey(); - } - - private static bool confirmPrompt(string text) - { - Console.Write(string.Format("{0} [Y/N] : ", text)); - ConsoleKey response = Console.ReadKey(false).Key; - Console.WriteLine(); - if (response == ConsoleKey.Escape) System.Environment.Exit(1); - return (response == ConsoleKey.Y); - } - - private static bool removeExistingFiles() - { - foreach (string file in filesToCompile) - { - foreach (string ending in endings) - { - string fullFilePath = Path.Combine(directory, file + ending); - if (File.Exists(fullFilePath)) - { - Console.WriteLine("Deleting {0}", fullFilePath); - File.Delete(fullFilePath); - if (File.Exists(fullFilePath)) - { - Console.WriteLine("Error while deleting {0}. Stopping Compilation!", fullFilePath); - return false; - } - } - } - } - - if (File.Exists(Path.Combine(directory, zipFile))) - { - File.Delete(Path.Combine(directory, zipFile)); - if (File.Exists(Path.Combine(directory, zipFile))) - { - Console.WriteLine("Error while deleting {0}. Stopping", zipFile); - return false; - } - } - - return true; - } - - private static int runTool(string path, string arguments, bool addQuotesToArgs = true) - { - try - { - var process = new Process - { - StartInfo = new ProcessStartInfo - { - FileName = Path.Combine(directory, "build", path), - Arguments = addQuotesToArgs ? '"' + arguments + '"' : arguments, - UseShellExecute = false, - RedirectStandardOutput = true, - RedirectStandardError = true, - CreateNoWindow = true - } - }; - process.Start(); - - while (!process.StandardOutput.EndOfStream || !process.StandardError.EndOfStream) - { - if (!process.StandardOutput.EndOfStream) - { - var line = process.StandardOutput.ReadLine(); - Console.WriteLine(line); - } - if (!process.StandardError.EndOfStream) - { - var errorLine = process.StandardError.ReadLine(); - Console.WriteLine("[E]: {0}", errorLine); - } - } - process.WaitForExit(); - - return process.ExitCode; - } - catch (Exception e) - { - Console.WriteLine(e.Message); - return -1; - } - - } - - private static void addBetaTag() - { - string content = File.ReadAllText(versionFile); - //Get standalone version string - string version = Regex.Match(content, @"v[0-9]+[\.0-9]*[\.0-9]*").Value; - //Format new version string "v.X.Y.x byy.MM.dd" - string newVersion = string.Format("{2}{0} b{1}{2}", version, DateTime.UtcNow.ToString("yy.MM.dd"), '"'); - //Replace old stuff between "" with new formatted version - content = Regex.Replace(content, "\"v.*\"", newVersion); - File.WriteAllText(versionFile, content); - - Console.WriteLine("Version changed to: {0}", newVersion); - } - - private static string getVersion() - { - string content = File.ReadAllText(versionFile); - string version = Regex.Match(content, @"v[0-9]+[\.0-9]*[\.0-9]*.*""").Value; - version = Regex.Replace(version, @"""", ""); - version = Regex.Replace(version, @"\s", "_"); - return version; - } - - private static void removeBetaTag() - { - string content = File.ReadAllText(versionFile); - content = Regex.Replace(content, @"[\s]*b[0-9][\.0-9]*", string.Empty); - File.WriteAllText(versionFile, content); - } - } -} diff --git a/build/MBR_Compiler/MBR_Compiler/Properties/AssemblyInfo.cs b/build/MBR_Compiler/MBR_Compiler/Properties/AssemblyInfo.cs deleted file mode 100644 index 7cc85d9e0..000000000 --- a/build/MBR_Compiler/MBR_Compiler/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// Allgemeine Informationen über eine Assembly werden über die folgenden -// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, -// die einer Assembly zugeordnet sind. -[assembly: AssemblyTitle("MyBot.run Compiler")] -[assembly: AssemblyDescription("Compiler to generate a zipped Bot Version")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("MyBot.run Team")] -[assembly: AssemblyProduct("MyBot.run Compiler")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("MBR")] -[assembly: AssemblyCulture("")] - -// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly -// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von -// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. -[assembly: ComVisible(false)] - -// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird -[assembly: Guid("bcdb36d5-4544-4ef3-b807-8189ee50a9d4")] - -// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: -// -// Hauptversion -// Nebenversion -// Buildnummer -// Revision -// -// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, -// indem Sie "*" wie unten gezeigt eingeben: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/build/MBR_Compiler/MyBot.run Compiler.sln b/build/MBR_Compiler/MyBot.run Compiler.sln deleted file mode 100644 index d42001d35..000000000 --- a/build/MBR_Compiler/MyBot.run Compiler.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29306.81 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyBot.run Compiler", "MBR_Compiler\MyBot.run Compiler.csproj", "{BCDB36D5-4544-4EF3-B807-8189EE50A9D4}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {BCDB36D5-4544-4EF3-B807-8189EE50A9D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BCDB36D5-4544-4EF3-B807-8189EE50A9D4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BCDB36D5-4544-4EF3-B807-8189EE50A9D4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BCDB36D5-4544-4EF3-B807-8189EE50A9D4}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {1357BE68-D3FC-48E9-A2B1-89CD8F5203F3} - EndGlobalSection -EndGlobal diff --git a/build/api/au3.api b/build/api/au3.api deleted file mode 100644 index 0b206b962..000000000 --- a/build/api/au3.api +++ /dev/null @@ -1,3753 +0,0 @@ -And?4 -ByRef?4 -Case?4 -Const?4 -ContinueCase?4 -ContinueLoop?4 -Default?4 -Dim?4 -Do?4 -Else?4 -ElseIf?4 -EndFunc?4 -EndIf?4 -EndSelect?4 -EndSwitch?4 -EndWith?4 -Enum?4 -Exit?4 -ExitLoop?4 -False?4 -For?4 -Func?4 -Global?4 -If?4 -In?4 -Local?4 -Next?4 -Not?4 -Null?4 -Or?4 -ReDim?4 -Return?4 -Select?4 -Static?4 -Step?4 -Switch?4 -Then?4 -To?4 -True?4 -Until?4 -Volatile?4 -WEnd?4 -While?4 -With?4 -#ce?2 -#comments-end?2 -#comments-start?2 -#cs?2 -#include?2 -#include-once?2 -#NoTrayIcon?2 -#OnAutoItStartRegister?2 -#RequireAdmin?2 -#EndRegion?1 -#forcedef?1 -#forceref?1 -#ignorefunc?1 -#pragma?1 -#Region?1 -@AppDataCommonDir?3 -@AppDataDir?3 -@AutoItExe?3 -@AutoItPID?3 -@AutoItVersion?3 -@AutoItX64?3 -@COM_EventObj?3 -@CommonFilesDir?3 -@Compiled?3 -@ComputerName?3 -@ComSpec?3 -@CPUArch?3 -@CR?3 -@CRLF?3 -@DesktopCommonDir?3 -@DesktopDepth?3 -@DesktopDir?3 -@DesktopHeight?3 -@DesktopRefresh?3 -@DesktopWidth?3 -@DocumentsCommonDir?3 -@error?3 -@exitCode?3 -@exitMethod?3 -@extended?3 -@FavoritesCommonDir?3 -@FavoritesDir?3 -@GUI_CtrlHandle?3 -@GUI_CtrlId?3 -@GUI_DragFile?3 -@GUI_DragId?3 -@GUI_DropId?3 -@GUI_WinHandle?3 -@HomeDrive?3 -@HomePath?3 -@HomeShare?3 -@HotKeyPressed?3 -@HOUR?3 -@IPAddress1?3 -@IPAddress2?3 -@IPAddress3?3 -@IPAddress4?3 -@KBLayout?3 -@LF?3 -@LocalAppDataDir?3 -@LogonDNSDomain?3 -@LogonDomain?3 -@LogonServer?3 -@MDAY?3 -@MIN?3 -@MON?3 -@MSEC?3 -@MUILang?3 -@MyDocumentsDir?3 -@NumParams?3 -@OSArch?3 -@OSBuild?3 -@OSLang?3 -@OSServicePack?3 -@OSType?3 -@OSVersion?3 -@ProgramFilesDir?3 -@ProgramsCommonDir?3 -@ProgramsDir?3 -@ScriptDir?3 -@ScriptFullPath?3 -@ScriptLineNumber?3 -@ScriptName?3 -@SEC?3 -@StartMenuCommonDir?3 -@StartMenuDir?3 -@StartupCommonDir?3 -@StartupDir?3 -@SW_DISABLE?3 -@SW_ENABLE?3 -@SW_HIDE?3 -@SW_LOCK?3 -@SW_MAXIMIZE?3 -@SW_MINIMIZE?3 -@SW_RESTORE?3 -@SW_SHOW?3 -@SW_SHOWDEFAULT?3 -@SW_SHOWMAXIMIZED?3 -@SW_SHOWMINIMIZED?3 -@SW_SHOWMINNOACTIVE?3 -@SW_SHOWNA?3 -@SW_SHOWNOACTIVATE?3 -@SW_SHOWNORMAL?3 -@SW_UNLOCK?3 -@SystemDir?3 -@TAB?3 -@TempDir?3 -@TRAY_ID?3 -@TrayIconFlashing?3 -@TrayIconVisible?3 -@UserName?3 -@UserProfileDir?3 -@WDAY?3 -@WindowsDir?3 -@WorkingDir?3 -@YDAY?3 -@YEAR?3 -Abs ( expression ) Calculates the absolute value of a number. -ACos ( expression ) Calculates the arcCosine of a number. -AdlibRegister ( "function" [, time = 250] ) Registers an Adlib function. -AdlibUnRegister ( ["function"] ) Unregisters an adlib function. -Asc ( "char" ) Returns the ASCII code of a character. -AscW ( "char" ) Returns the unicode code of a character. -ASin ( expression ) Calculates the arcsine of a number. -Assign ( "varname", "data" [, flag = 0] ) Assigns a variable by name with the data. -ATan ( expression ) Calculates the arctangent of a number. -AutoItSetOption ( "CaretCoordMode" [, param ] ) Sets the way coords are used in the caret functions, either absolute coords or coords relative to the current active window: 0 = relative coords to the active window 1 = (default) absolute screen coordinates 2 = relative coords to the client area of the active window -AutoItSetOption ( "ExpandEnvStrings" [, param ] ) Changes how literal strings and % symbols are interpreted. By default strings are treated literally, this option allows you to use %environment% variables inside strings, e.g., "The temp directory is: %temp%". 0 = (default) do not expand environment variables 1 = expand environment variables Without this option the usual way would be: "The temp directory is: " & EnvGet("temp") -AutoItSetOption ( "ExpandVarStrings" [, param ] ) Changes how literal strings and variable/macro ($ and @) symbols are interpreted. By default strings are treated literally, this option allows you to use variables and macros inside strings, e.g., "The value of var1 is $var1$". 0 = (default) do not expand variables 1 = expand variables (when in this mode and you want to use a literal $ or @ then double it up: "This is a single dollar $$ sign". -AutoItSetOption ( "GUICloseOnESC" [, param ] ) When ESC is pressed on a GUI the $GUI_EVENT_CLOSE message is sent. This option toggles this behavior on and off. 0 = Don't send the $GUI_EVENT_CLOSE message when ESC is pressed. 1 = (default) Send() the $GUI_EVENT_CLOSE message when ESC is pressed. -AutoItSetOption ( "GUICoordMode" [, param ] ) Alters the position of a control defined by GUICtrlSetPos(). 0 = relative position to the start of the last control (upper left corner). 1 = (default) absolute coordinates still relative to the dialog box. 2 = cell positioning relative to current cell. A -1 for left or top parameter don't increment the start. So next line is -1, offset; next cell is offset,-1; current cell is -1,-1. Obviously "offset" cannot be -1 which reserved to indicate the no increment. But if you can use a multiple of the width you choose to skip or go back. -AutoItSetOption ( "GUIDataSeparatorChar" [, param ] ) Define the character which delimits subitems in GUICtrlSetData(). The default character is '|'. -AutoItSetOption ( "GUIOnEventMode" [, param ] ) Enable/disable OnEvent functions notifications. 0 = (default) disable. 1 = enable. -AutoItSetOption ( "GUIResizeMode" [, param ] ) Change default resizing for a control. 0 = (default) keep default control resizing. <1024 = any type of resizing see GUICtrlSetResizing(). -AutoItSetOption ( "GUIEventOptions" [, param ] ) Change special event behavior or GUI function return values. 0 = (default) Windows behavior on click on Minimize,Restore, Maximize, Resize. 1 = suppress windows behavior on minimize, restore or maximize click button or window resize. Just sends the notification. -AutoItSetOption ( "MouseClickDelay" [, param ] ) Alters the length of the brief pause in between mouse clicks. Time in milliseconds to pause (default=10). -AutoItSetOption ( "MouseClickDownDelay" [, param ] ) Alters the length a click is held down before release. Time in milliseconds to pause (default=10). -AutoItSetOption ( "MouseClickDragDelay" [, param ] ) Alters the length of the brief pause at the start and end of a mouse drag operation. Time in milliseconds to pause (default=250). -AutoItSetOption ( "MouseCoordMode" [, param ] ) Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window: 0 = relative coords to the active window 1 = (default) absolute screen coordinates 2 = relative coords to the client area of the active window -AutoItSetOption ( "MustDeclareVars" [, param ] ) If this option is used then all variables must be pre-declared with Local, Global or in some cases Dim before they can be used - removes the chance for misspelled variables causing bugs. 0 = (default) Variables don't need to be pre-declared 1 = Variables must be pre-declared. See Dim / Global / Local / Const for details on declaring variables. -AutoItSetOption ( "PixelCoordMode" [, param ] ) Sets the way coords are used in the pixel functions, either absolute coords or coords relative to the window defined by hwnd (default active window): 0 = relative coords to the defined window 1 = (default) absolute screen coordinates 2 = relative coords to the client area of the defined window -AutoItSetOption ( "SendAttachMode" [, param ] ) Specifies if AutoIt attaches input threads when using Send() function. When not attaching (default mode=0) detecting the state of capslock/scrolllock and numlock can be unreliable under NT4. However, when you specify attach mode=1 the Send("{... down/up}") syntax will not work and there may be problems with sending keys to "hung" windows. ControlSend() ALWAYS attaches and is not affected by this mode. 0 = (default) don't attach 1 = attach -AutoItSetOption ( "SendCapslockMode" [, param ] ) Specifies if AutoIt should store the state of capslock before a Send() function and restore it afterwards. 0 = don't store/restore 1 = (default) store and restore -AutoItSetOption ( "SendKeyDelay" [, param ] ) Alters the length of the brief pause in between sent keystrokes. A value of 0 removes the delay completely. Time in milliseconds to pause (default=5). -AutoItSetOption ( "SendKeyDownDelay" [, param ] ) Alters the length of time a key is held down before being released during a keystroke. For applications that take a while to register keypresses you may need to raise this value from the default. A value of 0 removes the delay completely. Time in milliseconds to pause (default=5). -AutoItSetOption ( "TCPTimeout" [, param ] ) Defines the time before TCP functions stop if no communication. Time in milliseconds before timeout (default=100). -AutoItSetOption ( "TrayAutoPause" [, param ] ) Script pauses when click on tray icon. 0 = no pause 1 = (default) pause. If there is no DefaultMenu no pause will occurs. -AutoItSetOption ( "TrayIconDebug" [, param ] ) If enabled shows the current script line in the tray icon tip to help debugging. 0 = (default) no debug information 1 = show debug -AutoItSetOption ( "TrayIconHide" [, param ] ) Hides the AutoIt tray icon. Note: The icon will still initially appear for ~750 milliseconds. 0 = (default) show icon 1 = hide icon -AutoItSetOption ( "TrayMenuMode" [, param ] ) Extend the behaviour of the script tray icon/menu. This can be done with a combination (adding) of the following values. 0 = (default) default menu items (Script Paused/Exit) are appended to the usercreated menu; items will automatically be checked/unchecked when clicked; double clicking the tray icon returns the controlID of the $TRAY_DEFAULT item. 1 = no default menu 2 = items will not automatically check/uncheck when clicked 4 = do not return the $TRAY_DEFAULT item controlID when the tray icon is double clicked 8 = turn off auto check of radio item groups -AutoItSetOption ( "TrayOnEventMode" [, param ] ) Enable/disable OnEvent functions notifications for the tray. 0 = (default) disable 1 = enable -AutoItSetOption ( "WinDetectHiddenText" [, param ] ) Specifies if hidden window text can be "seen" by the window matching functions. 0 = (default) Do not detect hidden text 1 = Detect hidden text -AutoItSetOption ( "WinSearchChildren" [, param ] ) Allows the window search routines to search child windows as well as top-level windows. 0 = (default) Only search top-level windows 1 = Search top-level and child windows -AutoItSetOption ( "WinTextMatchMode" [, param ] ) Alters the method that is used to match window text during search operations. 1 = (default) Complete / Slow mode 2 = Quick mode In quick mode AutoIt can usually only "see" dialog text, button text and the captions of some controls. In the default mode much more text can be seen (for instance the contents of the Notepad window). If you are having performance problems when performing many window searches then changing to the "quick" mode may help. -AutoItSetOption ( "WinTitleMatchMode" [, param ] ) Alters the method that is used to match window titles during search operations. 1 = (default) Match the title from the start 2 = Match any substring in the title 3 = Exact title match 4 = Advanced mode (retained for backwards compatibility only - see Window Titles & Text (Advanced)) -1 to -4 = Case insensitive match according to the other type of match. -AutoItSetOption ( "WinWaitDelay" [, param ] ) Alters how long a script should briefly pause after a successful window-related operation. Time in milliseconds to pause (default=250). -AutoItWinGetTitle ( ) Retrieves the title of the AutoIt window. -AutoItWinSetTitle ( "newtitle" ) Changes the title of the AutoIt window. -Beep ( [Frequency = 500 [, Duration = 1000]] ) Plays back a beep to the user. -Binary ( expression ) Returns the binary representation of an expression. -BinaryLen ( binary ) Returns the number of bytes in a binary variant. -BinaryMid ( binary, start [, count] ) Extracts a number of bytes from a binary variant. -BinaryToString ( expression [, flag = 1] ) Converts a binary variant into a string. -BitAND ( value1, value2 [, value n] ) Performs a bitwise AND operation. -BitNOT ( value ) Performs a bitwise NOT operation. -BitOR ( value1, value2 [, value n] ) Performs a bitwise OR operation. -BitRotate ( value [, shift = 1 [, size = "W"]] ) Performs a bit shifting operation, with rotation. -BitShift ( value, shift ) Performs a bit shifting operation. -BitXOR ( value1, value2 [, value n] ) Performs a bitwise exclusive OR (XOR) operation. -BlockInput ( flag ) Disable/enable the mouse and keyboard. -Break ( mode ) Enables or disables the users' ability to exit a script from the tray icon menu. -Call ( "function" [, param1 [, param2 [, paramN]]] ) Calls a user-defined or built-in function contained in first parameter. -CDTray ( "drive", "status" ) Opens or closes the CD tray. -Ceiling ( expression ) Returns a number rounded up to the next integer. -Chr ( ASCIIcode ) Returns a character corresponding to an ASCII code. -ChrW ( UNICODEcode ) Returns a character corresponding to a unicode code. -ClipGet ( ) Retrieves text from the clipboard. -ClipPut ( "value" ) Writes text to the clipboard. -ConsoleRead ( [peek = False [, binary = False]] ) Read from the STDIN stream of the AutoIt script process. -ConsoleWrite ( "data" ) Writes data to the STDOUT stream. Some text editors can read this stream as can other programs which may be expecting data on this stream. -ConsoleWriteError ( "data" ) Writes data to the STDERR stream. Some text editors can read this stream as can other programs which may be expecting data on this stream. -ControlClick ( "title", "text", controlID [, button = "left" [, clicks = 1 [, x [, y]]]] ) Sends a mouse click command to a given control. -ControlCommand ( "title", "text", "classnameNN", "IsVisible", "" ) Returns 1 if Control is visible, 0 otherwise -ControlCommand ( "title", "text", "classnameNN", "IsEnabled", "" ) Returns 1 if Control is enabled, 0 otherwise -ControlCommand ( "title", "text", "classnameNN", "ShowDropDown", "" ) Displays the ComboBox dropdown -ControlCommand ( "title", "text", "classnameNN", "HideDropDown", "" ) Hides the ComboBox dropdown -ControlCommand ( "title", "text", "classnameNN", "AddString", 'string' ) Adds a string to the end in a ListBox or ComboBox -ControlCommand ( "title", "text", "classnameNN", "DelString", occurrence ) Deletes a string according to occurrence in a ListBox or ComboBox -ControlCommand ( "title", "text", "classnameNN", "FindString", 'string' ) Returns occurrence ref of the exact string in a ListBox or ComboBox -ControlCommand ( "title", "text", "classnameNN", "SetCurrentSelection", occurrence ) Sets selection to occurrence ref in a ListBox or ComboBox -ControlCommand ( "title", "text", "classnameNN", "SelectString", 'string' ) Sets selection according to string in a ListBox or ComboBox -ControlCommand ( "title", "text", "classnameNN", "IsChecked", "" ) Returns 1 if Button is checked, 0 otherwise -ControlCommand ( "title", "text", "classnameNN", "Check", "" ) Checks radio or check Button -ControlCommand ( "title", "text", "classnameNN", "UnCheck", "" ) Unchecks radio or check Button -ControlCommand ( "title", "text", "classnameNN", "GetCurrentLine", "" ) Returns the line # where the caret is in an Edit -ControlCommand ( "title", "text", "classnameNN", "GetCurrentCol", "" ) Returns the column # where the caret is in an Edit -ControlCommand ( "title", "text", "classnameNN", "GetCurrentSelection", "" ) Returns name of the currently selected item in a ListBox or ComboBox -ControlCommand ( "title", "text", "classnameNN", "GetLineCount", "" ) Returns # of lines in an Edit -ControlCommand ( "title", "text", "classnameNN", "GetLine", line# ) Returns text at line # passed of an Edit -ControlCommand ( "title", "text", "classnameNN", "GetSelected", "" ) Returns selected text of an Edit -ControlCommand ( "title", "text", "classnameNN", "EditPaste", 'string' ) Pastes the 'string' at the Edit's caret position -ControlCommand ( "title", "text", "classnameNN", "CurrentTab", "" ) Returns the current Tab shown of a SysTabControl32 -ControlCommand ( "title", "text", "classnameNN", "TabRight", "" ) Moves to the next tab to the right of a SysTabControl32 -ControlCommand ( "title", "text", "classnameNN", "TabLeft", "" ) Moves to the next tab to the left of a SysTabControl32 -ControlCommand ( "title", "text", "classnameNN", "SendCommandID", Command ID ) Simulates the WM_COMMAND message. Usually used for ToolbarWindow32 controls - use the ToolBar tab of Au3Info to get the Command ID. -ControlDisable ( "title", "text", controlID ) Disables or "grays-out" a control. -ControlEnable ( "title", "text", controlID ) Enables a "grayed-out" control. -ControlFocus ( "title", "text", controlID ) Sets input focus to a given control on a window. -ControlGetFocus ( "title" [, "text"] ) Returns the ControlRef# of the control that has keyboard focus within a specified window. -ControlGetHandle ( "title", "text", controlID ) Retrieves the internal handle of a control. -ControlGetPos ( "title", "text", controlID ) Retrieves the position and size of a control relative to its window. -ControlGetText ( "title", "text", controlID ) Retrieves text from a control. -ControlHide ( "title", "text", controlID ) Hides a control. -ControlListView ( "title", "text", "classnameNN", "DeSelect", From [, To] ) Deselects one or more items. -ControlListView ( "title", "text", "classnameNN", "FindItem", "string to find" [, SubItem] ) Returns the item index of the string. Returns -1 if the string is not found. -ControlListView ( "title", "text", "classnameNN", "GetItemCount" ) Returns the number of list items. -ControlListView ( "title", "text", "classnameNN", "GetSelected" [, option] ) Returns a string containing the item index of selected items. If option=0 (default) only the first selected item is returned. If option=1 then all the selected items are returned delimited by |, e.g: "0|3|4|10". If no items are selected a blank "" string is returned. -ControlListView ( "title", "text", "classnameNN", "GetSelectedCount" ) Returns the number of items that are selected. -ControlListView ( "title", "text", "classnameNN", "GetSubItemCount" ) Returns the number of subitems. -ControlListView ( "title", "text", "classnameNN", "GetText", Item, SubItem ) Returns the text of a given item/subitem. -ControlListView ( "title", "text", "classnameNN", "IsSelected", Item ) Returns 1 if the item is selected, otherwise returns 0. -ControlListView ( "title", "text", "classnameNN", "Select", From [, To] ) Selects one or more items. -ControlListView ( "title", "text", "classnameNN", "SelectAll" ) Selects all items. -ControlListView ( "title", "text", "classnameNN", "SelectClear" ) Clears the selection of all items. -ControlListView ( "title", "text", "classnameNN", "SelectInvert" ) Inverts the current selection. -ControlListView ( "title", "text", "classnameNN", "ViewChange", "view" ) Changes the current view. Valid views are "list", "details", "smallicons", "largeicons". -ControlMove ( "title", "text", controlID, x, y [, width [, height]] ) Moves a control within a window. -ControlSend ( "title", "text", controlID, "string" [, flag = 0] ) Sends a string of characters to a control. -ControlSetText ( "title", "text", controlID, "new text" [, flag = 0] ) Sets text of a control. -ControlShow ( "title", "text", controlID ) Shows a control that was hidden. -ControlTreeView ( "title", "text", controlID, "command" [, option1] ) Sends a command to a TreeView32 control. -Cos ( expression ) Calculates the cosine of a number. -Dec ( "hex" [, flag = 0] ) Returns a numeric representation of a hexadecimal string. -DirCopy ( "source dir", "dest dir" [, flag = 0] ) Copies a directory and all sub-directories and files (Similar to xcopy). -DirCreate ( "path" ) Creates a directory/folder. -DirGetSize ( "path" [, flag = 0] ) Returns the size in bytes of a given directory. -DirMove ( "source dir", "dest dir" [, flag = 0] ) Moves a directory and all sub-directories and files. -DirRemove ( "path" [, recurse = 0] ) Deletes a directory/folder. -DllCall ( "dll", "return type", "function" [, type1, param1 [, type n, param n]] ) Dynamically calls a function in a DLL. -DllCallAddress ( "return type", address [, type1, param1 [, type n, param n]] ) Dynamically calls a function at a specific memory address. -DllCallbackFree ( handle ) Frees a previously created handle created with DllCallbackRegister. -DllCallbackGetPtr ( handle ) Returns the pointer to a callback function that can be passed to the Win32 API. -DllCallbackRegister ( "function", "return type", "params" ) Creates a user-defined DLL Callback function. -DllClose ( dllhandle ) Closes a previously opened DLL. -DllOpen ( "filename" ) Opens a DLL file for use in DllCall. -DllStructCreate ( Struct [, Pointer] ) Creates a C/C++ style structure to be used in DllCall. -DllStructGetData ( Struct, Element [, index = Default] ) Returns the data of an element of the struct. -DllStructGetPtr ( Struct [, Element] ) Returns the pointer to the struct or an element in the struct. -DllStructGetSize ( Struct ) Returns the size of the struct in bytes. -DllStructSetData ( Struct, Element, value [, index] ) Sets the data of an element in the struct. -DriveGetDrive ( "type" ) Returns an array containing the enumerated drives. -DriveGetFileSystem ( "path" ) Returns File System Type of a drive. -DriveGetLabel ( "path" ) Returns Volume Label of a drive, if it has one. -DriveGetSerial ( "path" ) Returns Serial Number of a drive. -DriveGetType ( "path" [, operation = 1] ) Returns drive type. -DriveMapAdd ( "device", "remote share" [, flags = 0 [, "user" [, "password"]]] ) Maps a network drive. -DriveMapDel ( "drive" ) Disconnects a network drive. -DriveMapGet ( "device" ) Retrieves the details of a mapped drive. -DriveSetLabel ( "path", "label" ) Sets the Volume Label of a drive. -DriveSpaceFree ( "path" ) Returns the free disk space of a path in Megabytes. -DriveSpaceTotal ( "path" ) Returns the total disk space of a path in Megabytes. -DriveStatus ( "path" ) Returns the status of the drive as a string. -EnvGet ( "envvariable" ) Retrieves an environment variable. -EnvSet ( "envvariable" [, "value"] ) Writes an environment variable. -EnvUpdate ( ) Refreshes the OS environment. -Eval ( string ) Return the value of the variable defined by a string. -Execute ( string ) Execute an expression. -Exp ( expression ) Calculates e to the power of a number. -FileChangeDir ( "path" ) Changes the current working directory. -FileClose ( "filehandle" ) Closes a previously opened file. -FileCopy ( "source", "dest" [, flag = 0] ) Copies one or more files. -FileCreateNTFSLink ( "source", "hardlink" [, flag = 0] ) Creates an NTFS hardlink to a file or a directory. -FileCreateShortcut ( "file", "lnk" [, "workdir" [, "args" [, "desc" [, "icon" [, "hotkey" [, icon number [, state]]]]]]] ) Creates a shortcut (.lnk) to a file. -FileDelete ( "filename" ) Delete one or more files. -FileExists ( "path" ) Checks if a file or directory exists. -FileFindFirstFile ( "filename" ) Creates a search handle, defined by a path and file mask. -FileFindNextFile ( search [, flag = 0]) Returns the next filename defined by the search handle. -FileFlush ( "filehandle" ) Flushes the file's buffer to disk. -FileGetAttrib ( "filename" ) Returns a code string representing a file's attributes. -FileGetEncoding ( "filehandle/filename" [, mode = 1] ) Determines the text encoding used in a file. -FileGetLongName ( "filename" [, flag = 0] ) Returns the long path+name of the path+name passed. -FileGetPos ( "filehandle" ) Retrieves the current file position. -FileGetShortcut ( "lnk" ) Retrieves details about a shortcut. -FileGetShortName ( "filename" [, flag = 0] ) Returns the 8.3 short path+name of the path+name passed. -FileGetSize ( "filename" ) Returns the size of a file in bytes. -FileGetTime ( "filename" [, option = 0 [, format = 0]] ) Returns the time and date information for a file. -FileGetVersion ( "filename" [, "stringname"] ) Returns version information stored in a file. -FileInstall ( "source", "dest" [, flag = 0] ) Include and install a file with the compiled script. -FileMove ( "source", "dest" [, flag = 0] ) Moves one or more files. -FileOpen ( "filename" [, mode = 0] ) Opens a file for reading or writing. -FileOpenDialog ( "title", "init dir", "filter" [, options = 0 [, "default name" [, hwnd]]] ) Initiates a Open File Dialog. -FileRead ( "filehandle/filename" [, count] ) Read in a number of characters from a previously opened file. -FileReadLine ( "filehandle/filename" [, line = 1] ) Read in a line of text from a previously opened text file. -FileReadToArray ( "filehandle/filename" ) Reads the specified file into an array. -FileRecycle ( "source" ) Sends a file or directory to the recycle bin. -FileRecycleEmpty ( ["source"] ) Empties the recycle bin. -FileSaveDialog ( "title", "init dir", "filter" [, options = 0 [, "default name" [, hwnd]]] ) Initiates a Save File Dialog. -FileSelectFolder ( "dialog text", "root dir" [, flag = 0 [, "initial dir" [, hwnd]]] ) Initiates a Browse For Folder dialog. -FileSetAttrib ( "file pattern", "+-RASHNOT" [, recurse = 0] ) Sets the attributes of one or more files/directories. -FileSetEnd ( "filehandle" ) Sets the end of the file at the current file position. -FileSetPos ( "filehandle", offset, origin ) Sets the current file position. -FileSetTime ( "file pattern", "time" [, type = 0 [, recurse = 0]] ) Sets the timestamp of one of more files. -FileWrite ( "filehandle/filename", "text/data" ) Write text/data to the end of a previously opened file. -FileWriteLine ( "filehandle/filename", "line" ) Append a line of text to the end of a previously opened text file. -Floor ( expression ) Returns a number rounded down to the closest integer. -FtpSetProxy ( mode = 0 [, "proxy:port" [, "username" [, "password"]]] ) Sets the internet proxy to use for ftp access. -FuncName ( $Functionvariable ) Returns the name of a function stored in a variable. -GUICreate ( "title" [, width [, height [, left = -1 [, top = -1 [, style = -1 [, exStyle = -1 [, parent = 0]]]]]]] ) Create a GUI window. -GUICtrlCreateAvi ( filename, subfileid, left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates an AVI video control for the GUI. -GUICtrlCreateButton ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a Button control for the GUI. -GUICtrlCreateCheckbox ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a Checkbox control for the GUI. -GUICtrlCreateCombo ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a ComboBox control for the GUI. -GUICtrlCreateContextMenu ( [controlID] ) Creates a context menu for a control or entire GUI window. -GUICtrlCreateDate ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a date control for the GUI. -GUICtrlCreateDummy ( ) Creates a Dummy control for the GUI. -GUICtrlCreateEdit ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates an Edit control for the GUI. -GUICtrlCreateGraphic ( left, top [, width [, height [, style]]] ) Creates a Graphic control for the GUI. -GUICtrlCreateGroup ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a Group control for the GUI. -GUICtrlCreateIcon ( filename, iconName, left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates an Icon control for the GUI. -GUICtrlCreateInput ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates an Input control for the GUI. -GUICtrlCreateLabel ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a static Label control for the GUI. -GUICtrlCreateList ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a List control for the GUI. -GUICtrlCreateListView ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a ListView control for the GUI. -GUICtrlCreateListViewItem ( "text", listviewID ) Creates a ListView item. -GUICtrlCreateMenu ( "submenutext" [, menuID = -1 [, menuentry = -1]] ) Creates a Menu control for the GUI. -GUICtrlCreateMenuItem ( "text", menuID [, menuentry = -1 [, menuradioitem = 0]] ) Creates a MenuItem control for the GUI. -GUICtrlCreateMonthCal ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a month calendar control for the GUI. -GUICtrlCreateObj ( ObjectVar, left, top [, width [, height]] ) Creates an ActiveX control in the GUI. -GUICtrlCreatePic ( filename, left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a Picture control for the GUI. -GUICtrlCreateProgress ( left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a Progress control for the GUI. -GUICtrlCreateRadio ( "text", left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a Radio button control for the GUI. -GUICtrlCreateSlider ( left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a Slider control for the GUI. -GUICtrlCreateTab ( left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a Tab control for the GUI. -GUICtrlCreateTabItem ( "text" ) Creates a TabItem control within an existing tab control in the GUI. -GUICtrlCreateTreeView ( left, top [, width [, height [, style = -1 [, exStyle = -1]]]] ) Creates a TreeView control for the GUI. -GUICtrlCreateTreeViewItem ( "text", treeviewID ) Creates a TreeViewItem control for the GUI. -GUICtrlCreateUpdown ( inputcontrolID [, style = -1] ) Creates an UpDown control for the GUI. -GUICtrlDelete ( controlID ) Deletes a control. -GUICtrlGetHandle ( controlID ) Returns the handle for a control and some special (item) handles (Menu, ContextMenu, TreeViewItem). -GUICtrlGetState ( controlID ) Gets the current state of a control. -GUICtrlRead ( controlID [, advanced = 0] ) Read state or data of a control. -GUICtrlRecvMsg ( controlID , msg [, wParam [, lParamType]] ) Send a message to a control and retrieve information in lParam. -GUICtrlRegisterListViewSort ( controlID, "function" ) Register a user defined function for an internal listview sorting callback function. -GUICtrlSendMsg ( controlID, msg , wParam, lParam ) Send a message to a control. -GUICtrlSendToDummy ( controlID [, state] ) Sends a message to a Dummy control. -GUICtrlSetBkColor ( controlID, backgroundcolor ) Sets the background color of a control. -GUICtrlSetColor ( controlID, textcolor ) Sets the text color of a control. -GUICtrlSetCursor ( controlID, cursorID ) Sets the mouse cursor icon for a particular control. -GUICtrlSetData ( controlID, data [, default] ) Modifies the data for a control. -GUICtrlSetDefBkColor ( defbkcolor [, winhandle] ) Sets the default background color of all the controls of the GUI window. -GUICtrlSetDefColor ( deftextcolor [, winhandle] ) Sets the default text color of all the controls of the GUI window. -GUICtrlSetFont ( controlID, size [, weight [, attribute [, fontname [, quality]]]] ) Sets the font for a control. -GUICtrlSetGraphic ( controlID, type [, par1 [, ... par6]] ) Modifies the data for a control. -GUICtrlSetImage ( controlID, filename [, iconname [, icontype]] ) Sets the bitmap or icon image to use for a control. -GUICtrlSetLimit ( controlID, max [, min = 0] ) Limits the number of characters/pixels for a control. -GUICtrlSetOnEvent ( controlID, "function" ) Defines a user-defined function to be called when a control is clicked. -GUICtrlSetPos ( controlID, left [, top [, width [, height]]] ) Changes the position of a control within the GUI window. -GUICtrlSetResizing ( controlID, resizing ) Defines the resizing method used by a control. -GUICtrlSetState ( controlID, state ) Changes the state of a control. -GUICtrlSetStyle ( controlID, style [, exStyle] ) Changes the style of a control. -GUICtrlSetTip ( controlID, tiptext [, "title" [, icon [, options]]] ) Sets the tip text associated with a control. -GUIDelete ( [winhandle] ) Deletes a GUI window and all controls that it contains. -GUIGetCursorInfo ( [winhandle] ) Gets the mouse cursor position relative to GUI window. -GUIGetMsg ( [advanced = 0] ) Polls the GUI to see if any events have occurred. -GUIGetStyle ( [winhandle] ) Retrieves the styles of a GUI window. -GUIRegisterMsg ( msgID, "function" ) Register a user defined function for a known Windows Message ID (WM_MSG). -GUISetAccelerators ( accelerators [, winhandle] ) Sets the accelerator table to be used in a GUI window. -GUISetBkColor ( background [, winhandle] ) Sets the background color of the GUI window. -GUISetCoord ( left, top [, width [, height [, winhandle]]] ) Sets absolute coordinates for the next control. -GUISetCursor ( [cursorID [, override = 0 [, winhandle]]] ) Sets the mouse cursor icon for a GUI window. -GUISetFont ( size [, weight [, attribute [, fontname [, winhandle [, quality]]]]] ) Sets the default font for a GUI window. -GUISetHelp ( helpfile [, winhandle] ) Sets an executable file that will be run when F1 is pressed. -GUISetIcon ( iconfile [, iconID [, winhandle]] ) Sets the icon used in a GUI window. -GUISetOnEvent ( specialID, "function" [, winhandle] ) Defines a user function to be called when a system button is clicked. -GUISetState ( [flag [, winhandle]] ) Changes the state of a GUI window. -GUISetStyle ( Style [, ExStyle [, winhandle]] ) Changes the styles of a GUI window. -GUIStartGroup ( [winhandle] ) Defines that any subsequent controls that are created will be "grouped" together. -GUISwitch ( winhandle [, tabitemID] ) Switches the current window used for GUI functions. -Hex ( expression [, length] ) Returns a string representation of an integer or of a binary type converted to hexadecimal. -HotKeySet ( "key" [, "function"] ) Sets a hotkey that calls a user function. -HttpSetProxy ( mode = 0 [, "proxy:port" [, "username" [, "password"]]] ) Sets the internet proxy to use for http access. -HttpSetUserAgent ( "user agent" ) Sets the HTTP user-agent string which is sent with all Inet requests. -HWnd ( expression ) Converts an expression into an HWND handle. -InetClose ( handle ) Closes a handle returned from InetGet(). -InetGet ( "URL", "filename" [, options = 0 [, background = 0]] ) Downloads a file from the internet using the HTTP, HTTPS or FTP protocol. -InetGetInfo ( [handle [, index = -1]] ) Returns detailed data for a handle returned from InetGet(). -InetGetSize ( "URL" [, options = 0] ) Returns the size (in bytes) of a file located on the internet. -InetRead ( "URL" [, options = 0] ) Downloads a file from the internet using the HTTP, HTTPS or FTP protocol. -IniDelete ( "filename", "section" [, "key"] ) Deletes a value from a standard format .ini file. -IniRead ( "filename", "section", "key", "default" ) Reads a value from a standard format .ini file. -IniReadSection ( "filename", "section" ) Reads all key/value pairs from a section in a standard format .ini file. -IniReadSectionNames ( "filename" ) Reads all sections in a standard format .ini file. -IniRenameSection ( "filename", "section", "new section" [, flag = 0] ) Renames a section in a standard format .ini file. -IniWrite ( "filename", "section", "key", "value" ) Writes a value to a standard format .ini file. -IniWriteSection ( "filename", "section", "data" [, index = 1] ) Writes a section to a standard format .ini file. -InputBox ( "title", "prompt" [, "default" [, "password char" [, width = -1 [, height = -1 [, left = Default [, top = Default [, timeout = 0 [, hwnd]]]]]]]] ) Displays an input box to ask the user to enter a string. -Int ( expression [, flag = 0] ) Returns the integer (whole number) representation of an expression. -IsAdmin ( ) Checks if the current user has full administrator privileges. -IsArray ( variable ) Checks if a variable is an array type. -IsBinary ( expression ) Checks if a variable or expression is a binary type. -IsBool ( variable ) Checks if a variable's base type is boolean. -IsDeclared ( expression ) Check if a variable has been declared. -IsDllStruct ( variable ) Checks if a variable is a DllStruct type. -IsFloat ( variable ) Checks if the value of a variable or expression has a fractional component. -IsFunc ( expression ) Checks if a variable or expression is a function type. -IsHWnd ( variable ) Checks if a variable's base type is a pointer and window handle. -IsInt ( variable ) Checks if the value of a variable or expression has no fractional component. -IsKeyword ( variable ) Checks if a variable is a keyword (for example, Default). -IsNumber ( variable ) Checks if a variable's base type is numeric. -IsObj ( variable ) Checks if a variable or expression is an object type. -IsPtr ( variable ) Checks if a variable's base type is a pointer. -IsString ( variable ) Checks if a variable is a string type. -Log ( expression ) Calculates the natural logarithm of a number. -MemGetStats ( ) Retrieves memory related information. -Mod ( value1, value2 ) Performs the modulus operation. -MouseClick ( "button" [, x, y [, clicks = 1 [, speed = 10]]] ) Perform a mouse click operation. -MouseClickDrag ( "button", x1, y1, x2, y2 [, speed = 10] ) Perform a mouse click and drag operation. -MouseDown ( "button" ) Perform a mouse down event at the current mouse position. -MouseGetCursor ( ) Returns the cursor ID Number for the current Mouse Cursor. -MouseGetPos ( [dimension] ) Retrieves the current position of the mouse cursor. -MouseMove ( x, y [, speed = 10] ) Moves the mouse pointer. -MouseUp ( "button" ) Perform a mouse up event at the current mouse position. -MouseWheel ( "direction" [, clicks = 1] ) Moves the mouse wheel up or down. -MsgBox ( flag, "title", "text" [, timeout = 0 [, hwnd]] ) Displays a simple message box with optional timeout. -Number ( expression [, flag = 0] ) Returns the numeric representation of an expression. -ObjCreate ( "classname" [, "servername" [, "username" [, "password"]]] ) Creates a reference to a COM object from the given classname. -ObjCreateInterface ( "CLSID" , "IID" [, "interface_description",[flag = True]] ) Creates a reference to an object from the given classname/object pointer, interface identifier and description string. -ObjEvent ( $ObjectVar, "functionprefix" [, "interface name"] ) Handles incoming events from the given Object. -ObjEvent ( "AutoIt.Error" [, "function"] ) Handles incoming events from the given Object. -ObjGet ( "filename" [, "classname" [, instance]] ) Retrieves a reference to a COM object from an existing process or filename. -ObjName ( $Objectvariable [, Flag = 1] ) Returns the name or interface description of an Object. -OnAutoItExitRegister ( "function" ) Registers a function to be called when AutoIt exits. -OnAutoItExitUnRegister ( "function" ) UnRegisters a function that was called when AutoIt exits. -Opt ( "CaretCoordMode" [, param ] ) Sets the way coords are used in the caret functions, either absolute coords or coords relative to the current active window: 0 = relative coords to the active window 1 = (default) absolute screen coordinates 2 = relative coords to the client area of the active window -Opt ( "ExpandEnvStrings" [, param ] ) Changes how literal strings and % symbols are interpreted. By default strings are treated literally, this option allows you to use %environment% variables inside strings, e.g., "The temp directory is: %temp%". 0 = (default) do not expand environment variables 1 = expand environment variables Without this option the usual way would be: "The temp directory is: " & EnvGet("temp") -Opt ( "ExpandVarStrings" [, param ] ) Changes how literal strings and variable/macro ($ and @) symbols are interpreted. By default strings are treated literally, this option allows you to use variables and macros inside strings, e.g., "The value of var1 is $var1$". 0 = (default) do not expand variables 1 = expand variables (when in this mode and you want to use a literal $ or @ then double it up: "This is a single dollar $$ sign". -Opt ( "GUICloseOnESC" [, param ] ) When ESC is pressed on a GUI the $GUI_EVENT_CLOSE message is sent. This option toggles this behavior on and off. 0 = Don't send the $GUI_EVENT_CLOSE message when ESC is pressed. 1 = (default) Send() the $GUI_EVENT_CLOSE message when ESC is pressed. -Opt ( "GUICoordMode" [, param ] ) Alters the position of a control defined by GUICtrlSetPos(). 0 = relative position to the start of the last control (upper left corner). 1 = (default) absolute coordinates still relative to the dialog box. 2 = cell positioning relative to current cell. A -1 for left or top parameter don't increment the start. So next line is -1, offset; next cell is offset,-1; current cell is -1,-1. Obviously "offset" cannot be -1 which reserved to indicate the no increment. But if you can use a multiple of the width you choose to skip or go back. -Opt ( "GUIDataSeparatorChar" [, param ] ) Define the character which delimits subitems in GUICtrlSetData(). The default character is '|'. -Opt ( "GUIOnEventMode" [, param ] ) Enable/disable OnEvent functions notifications. 0 = (default) disable. 1 = enable. -Opt ( "GUIResizeMode" [, param ] ) Change default resizing for a control. 0 = (default) keep default control resizing. <1024 = any type of resizing see GUICtrlSetResizing(). -Opt ( "GUIEventOptions" [, param ] ) Change special event behavior or GUI function return values. 0 = (default) Windows behavior on click on Minimize,Restore, Maximize, Resize. 1 = suppress windows behavior on minimize, restore or maximize click button or window resize. Just sends the notification. -Opt ( "MouseClickDelay" [, param ] ) Alters the length of the brief pause in between mouse clicks. Time in milliseconds to pause (default=10). -Opt ( "MouseClickDownDelay" [, param ] ) Alters the length a click is held down before release. Time in milliseconds to pause (default=10). -Opt ( "MouseClickDragDelay" [, param ] ) Alters the length of the brief pause at the start and end of a mouse drag operation. Time in milliseconds to pause (default=250). -Opt ( "MouseCoordMode" [, param ] ) Sets the way coords are used in the mouse functions, either absolute coords or coords relative to the current active window: 0 = relative coords to the active window 1 = (default) absolute screen coordinates 2 = relative coords to the client area of the active window -Opt ( "MustDeclareVars" [, param ] ) If this option is used then all variables must be pre-declared with Local, Global or in some cases Dim before they can be used - removes the chance for misspelled variables causing bugs. 0 = (default) Variables don't need to be pre-declared 1 = Variables must be pre-declared. See Dim / Global / Local / Const for details on declaring variables. -Opt ( "PixelCoordMode" [, param ] ) Sets the way coords are used in the pixel functions, either absolute coords or coords relative to the window defined by hwnd (default active window): 0 = relative coords to the defined window 1 = (default) absolute screen coordinates 2 = relative coords to the client area of the defined window -Opt ( "SendAttachMode" [, param ] ) Specifies if AutoIt attaches input threads when using Send() function. When not attaching (default mode=0) detecting the state of capslock/scrolllock and numlock can be unreliable under NT4. However, when you specify attach mode=1 the Send("{... down/up}") syntax will not work and there may be problems with sending keys to "hung" windows. ControlSend() ALWAYS attaches and is not affected by this mode. 0 = (default) don't attach 1 = attach -Opt ( "SendCapslockMode" [, param ] ) Specifies if AutoIt should store the state of capslock before a Send() function and restore it afterwards. 0 = don't store/restore 1 = (default) store and restore -Opt ( "SendKeyDelay" [, param ] ) Alters the length of the brief pause in between sent keystrokes. A value of 0 removes the delay completely. Time in milliseconds to pause (default=5). -Opt ( "SendKeyDownDelay" [, param ] ) Alters the length of time a key is held down before being released during a keystroke. For applications that take a while to register keypresses you may need to raise this value from the default. A value of 0 removes the delay completely. Time in milliseconds to pause (default=5). -Opt ( "TCPTimeout" [, param ] ) Defines the time before TCP functions stop if no communication. Time in milliseconds before timeout (default=100). -Opt ( "TrayAutoPause" [, param ] ) Script pauses when click on tray icon. 0 = no pause 1 = (default) pause. If there is no DefaultMenu no pause will occurs. -Opt ( "TrayIconDebug" [, param ] ) If enabled shows the current script line in the tray icon tip to help debugging. 0 = (default) no debug information 1 = show debug -Opt ( "TrayIconHide" [, param ] ) Hides the AutoIt tray icon. Note: The icon will still initially appear for ~750 milliseconds. 0 = (default) show icon 1 = hide icon -Opt ( "TrayMenuMode" [, param ] ) Extend the behaviour of the script tray icon/menu. This can be done with a combination (adding) of the following values. 0 = (default) default menu items (Script Paused/Exit) are appended to the usercreated menu; items will automatically be checked/unchecked when clicked; double clicking the tray icon returns the controlID of the $TRAY_DEFAULT item. 1 = no default menu 2 = items will not automatically check/uncheck when clicked 4 = do not return the $TRAY_DEFAULT item controlID when the tray icon is double clicked 8 = turn off auto check of radio item groups -Opt ( "TrayOnEventMode" [, param ] ) Enable/disable OnEvent functions notifications for the tray. 0 = (default) disable 1 = enable -Opt ( "WinDetectHiddenText" [, param ] ) Specifies if hidden window text can be "seen" by the window matching functions. 0 = (default) Do not detect hidden text 1 = Detect hidden text -Opt ( "WinSearchChildren" [, param ] ) Allows the window search routines to search child windows as well as top-level windows. 0 = (default) Only search top-level windows 1 = Search top-level and child windows -Opt ( "WinTextMatchMode" [, param ] ) Alters the method that is used to match window text during search operations. 1 = (default) Complete / Slow mode 2 = Quick mode In quick mode AutoIt can usually only "see" dialog text, button text and the captions of some controls. In the default mode much more text can be seen (for instance the contents of the Notepad window). If you are having performance problems when performing many window searches then changing to the "quick" mode may help. -Opt ( "WinTitleMatchMode" [, param ] ) Alters the method that is used to match window titles during search operations. 1 = (default) Match the title from the start 2 = Match any substring in the title 3 = Exact title match 4 = Advanced mode (retained for backwards compatibility only - see Window Titles & Text (Advanced)) -1 to -4 = Case insensitive match according to the other type of match. -Opt ( "WinWaitDelay" [, param ] ) Alters how long a script should briefly pause after a successful window-related operation. Time in milliseconds to pause (default=250). -Ping ( "address/hostname" [, timeout = 4000] ) Pings a host and returns the roundtrip-time. -PixelChecksum ( left, top, right, bottom [, step = 1 [, hwnd [, mode = 0]]] ) Generates a checksum for a region of pixels. -PixelGetColor ( x , y [, hwnd] ) Returns a pixel color according to x,y pixel coordinates. -PixelSearch ( left, top, right, bottom, color [, shade-variation = 0 [, step = 1 [, hwnd]]] ) Searches a rectangle of pixels for the pixel color provided. -ProcessClose ( "process" ) Terminates a named process. -ProcessExists ( "process" ) Checks to see if a specified process exists. -ProcessGetStats ( ["process" [, type = 0]] ) Returns an array about Memory or IO infos of a running process. -ProcessList ( ["name"] ) Returns an array listing the currently running processes (names and PIDs). -ProcessSetPriority ( "process", priority ) Changes the priority of a process. -ProcessWait ( "process" [, timeout = 0] ) Pauses script execution until a given process exists. -ProcessWaitClose ( "process" [, timeout = 0] ) Pauses script execution until a given process does not exist. -ProgressOff ( ) Turns Progress window off. -ProgressOn ( "title", "maintext" [, "subtext" [, x pos [, y pos [, opt]]]] ) Creates a customizable progress bar window. -ProgressSet ( percent [, "subtext" [, "maintext"]] ) Sets the position and/or text of a previously created Progress bar window. -Ptr ( expression ) Converts an expression into a pointer variant. -Random ( [Min = 0 [, Max = 1 [, Flag = 0]]] ) Generates a pseudo-random float-type number. -RegDelete ( "keyname" [, "valuename"] ) Deletes a key or value from the registry. -RegEnumKey ( "keyname", instance ) Reads the name of a subkey according to its instance. -RegEnumVal ( "keyname", instance ) Reads the name of a value according to its instance. -RegRead ( "keyname", "valuename" ) Reads a value from the registry. -RegWrite ( "keyname" [, "valuename", "type", value] ) Creates a key or value in the registry. -Round ( expression [, decimalplaces] ) Returns a number rounded to a specified number of decimal places. -Run ( "program" [, "workingdir" [, show_flag [, opt_flag]]] ) Runs an external program. -RunAs ( "username", "domain", "password", logon_flag, "program" [, "workingdir" [, show_flag [, opt_flag]]] ) Runs an external program under the context of a different user. -RunAsWait ( "username", "domain", "password", logon_flag, "program" [, "workingdir" [, show_flag [, opt_flag]]] ) Runs an external program under the context of a different user and pauses script execution until the program finishes. -RunWait ( "program" [, "workingdir" [, show_flag [, opt_flag]]] ) Runs an external program and pauses script execution until the program finishes. -Send ( "keys" [, flag = 0] ) Sends simulated keystrokes to the active window. -SendKeepActive ( "title" [, "text"] ) Attempts to keep a specified window active during Send(). -SetError ( code [, extended = 0 [, return value]] ) Manually set the value of the @error macro (and optionally @extended, and "Return Value"). -SetExtended ( code [, return value] ) Manually set the value of the @extended macro. -ShellExecute ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) Runs an external program using the ShellExecute API. -ShellExecuteWait ( "filename" [, "parameters" [, "workingdir" [, "verb" [, showflag]]]] ) Runs an external program using the ShellExecute API and pauses script execution until it finishes. -Shutdown ( code ) Shuts down the system. -Sin ( expression ) Calculates the sine of a number. -Sleep ( delay ) Pause script execution. -SoundPlay ( "filename" [, wait = 0] ) Play a sound file. -SoundSetWaveVolume ( percent ) Sets the system wave volume by percent. -SplashImageOn ( "title", "file" [, width [, height [, x pos [, y pos [, opt]]]]] ) Creates a customizable image popup window. -SplashOff ( ) Turns SplashText or SplashImage off. -SplashTextOn ( "title", "text" [, w = 500 [, h = 400 [, x pos [, y pos [, opt = 0 [, "fontname" [, fontsz = 12 [, fontwt]]]]]]]] ) Creates a customizable text popup window. -Sqrt ( expression ) Calculates the square-root of a number. -SRandom ( Seed ) Set Seed for random number generation. -StatusbarGetText ( "title" [, "text" [, part = 1]] ) Retrieves the text from a standard status bar control. -StderrRead ( process_id [, peek = False [, binary = False]] ) Reads from the STDERR stream of a previously run child process. -StdinWrite ( process_id [, data] ) Writes a number of characters to the STDIN stream of a previously run child process. -StdioClose ( process_id ) Closes all resources associated with a process previously run with STDIO redirection. -StdoutRead ( process_id [, peek = False [, binary = False]] ) Reads from the STDOUT stream of a previously run child process. -String ( expression ) Returns the string representation of an expression. -StringAddCR ( "string" ) Takes a string and prefixes all linefeed characters ( Chr(10) ) with a carriage return character ( Chr(13) ). -StringCompare ( "string1", "string2" [, casesense = 0] ) Compares two strings with options. -StringFormat ( "format control", var1 [, ... var32] ) Returns a formatted string (similar to the C sprintf() function). -StringFromASCIIArray ( array,[start = 0 [, end = -1 [, encoding = 0]]] ) Converts an array of ASCII codes to a string. -StringInStr ( "string", "substring" [, casesense = 0 [, occurrence = 1 [, start = 1 [, count]]]] ) Checks if a string contains a given substring. -StringIsAlNum ( "string" ) Checks if a string contains only alphanumeric characters. -StringIsAlpha ( "string" ) Checks if a string contains only alphabetic characters. -StringIsASCII ( "string" ) Checks if a string contains only ASCII characters in the range 0x00 - 0x7f (0 - 127). -StringIsDigit ( "string" ) Checks if a string contains only digit (0-9) characters. -StringIsFloat ( "string" ) Checks if a string is a floating point number. -StringIsInt ( "string" ) Checks if a string is an integer. -StringIsLower ( "string" ) Checks if a string contains only lowercase characters. -StringIsSpace ( "string" ) Checks if a string contains only whitespace characters. -StringIsUpper ( "string" ) Checks if a string contains only uppercase characters. -StringIsXDigit ( "string" ) Checks if a string contains only hexadecimal digit (0-9, A-F) characters. -StringLeft ( "string", count ) Returns a number of characters from the left-hand side of a string. -StringLen ( "string" ) Returns the number of characters in a string. -StringLower ( "string" ) Converts a string to lowercase. -StringMid ( "string", start [, count = -1] ) Extracts a number of characters from a string. -StringRegExp ( "test", "pattern" [, flag = 0 [, offset = 1]] ) Check if a string fits a given regular expression pattern. -StringRegExpReplace ( "test", "pattern", "replace" [, count = 0] ) Replace text in a string based on regular expressions. -StringReplace ( "string", "searchstring/start", "replacestring" [, occurrence = 0 [, casesense = 0]] ) Replaces substrings in a string. -StringReverse ( "string" [, flag = 0] ) Reverses the contents of the specified string. -StringRight ( "string", count ) Returns a number of characters from the right-hand side of a string. -StringSplit ( "string", "delimiters" [, flag = 0] ) Splits up a string into substrings depending on the given delimiters. -StringStripCR ( "string" ) Removes all carriage return values ( Chr(13) ) from a string. -StringStripWS ( "string", flag ) Strips the white space in a string. -StringToASCIIArray ( "string",[start = 0 [, end [, encoding = 0]]] ) Converts a string to an array containing the ASCII code of each character. -StringToBinary ( expression [, flag = 1] ) Converts a string into binary data. -StringTrimLeft ( "string", count ) Trims a number of characters from the left hand side of a string. -StringTrimRight ( "string", count ) Trims a number of characters from the right hand side of a string. -StringUpper ( "string" ) Converts a string to uppercase. -Tan ( expression ) Calculates the tangent of a number. -TCPAccept ( mainsocket ) Permits an incoming connection attempt on a socket. -TCPCloseSocket ( socket ) Closes a TCP socket. -TCPConnect ( IPAddr, port ) Create a socket connected to an existing server. -TCPListen ( IPAddr, port [, MaxPendingConnection] ) Creates a socket listening for an incoming connection. -TCPNameToIP ( name ) Converts an Internet name to IP address. -TCPRecv ( mainsocket, maxlen [, flag = 0] ) Receives data from a connected socket. -TCPSend ( mainsocket, data ) Sends data on a connected socket. -TCPShutdown ( ) Stops TCP/UDP services. -TCPStartup ( ) Starts TCP or UDP services. -TimerDiff ( handle ) Returns the difference in time from a previous call to TimerInit(). -TimerInit ( ) Returns a handle that can be passed to TimerDiff() to calculate the difference in milliseconds. -ToolTip ( "text" [, x [, y [, "title" [, icon = 0 [, options]]]]] ) Creates a tooltip anywhere on the screen. -TrayCreateItem ( "text" [, menuID = -1 [, menuentry = -1 [, menuradioitem = 0]]] ) Creates a menuitem control for the tray. -TrayCreateMenu ( "sub/menutext" [, menuID = -1 [, menuentry = -1]] ) Creates a menu control for the tray menu. -TrayGetMsg ( ) Polls the tray to see if any events have occurred. -TrayItemDelete ( controlID ) Deletes a menu/item control from the tray menu. -TrayItemGetHandle ( controlID ) Returns the handle for a tray menu(item). -TrayItemGetState ( [controlID] ) Gets the current state of a control. -TrayItemGetText ( controlID ) Gets the itemtext of a tray menu/item control. -TrayItemSetOnEvent ( itemID, "function" ) Defines a user-defined function to be called when a tray item is clicked. -TrayItemSetState ( controlID, state ) Sets the state of a tray menu/item control. -TrayItemSetText ( controlID, text ) Sets the itemtext of a tray menu/item control. -TraySetClick ( flag ) Sets the clickmode of the tray icon - what mouseclicks will display the tray menu. -TraySetIcon ( [filename [, iconID]] ) Loads/Sets a specified tray icon. -TraySetOnEvent ( specialID, "function" ) Defines a user function to be called when a special tray action happens. -TraySetPauseIcon ( [filename [, iconID]] ) Loads/Sets a specified tray pause icon. -TraySetState ( [flag = 1] ) Sets the state of the tray icon. -TraySetToolTip ( [text] ) (Re)Sets the tooltip text for the tray icon. -TrayTip ( "title", "text", timeout [, option = 0] ) Displays a balloon tip from the AutoIt Icon. -UBound ( Variable [, Dimension = 1] ) Returns the size of array dimensions or the number of keys in a map. -UDPBind ( IPAddr, port ) Create a socket bound to an incoming connection. -UDPCloseSocket ( socketarray ) Close a UDP socket. -UDPOpen ( IPAddr, port [, flag = 0] ) Open a socket connected to an existing server . -UDPRecv ( socketarray, maxlen [, flag = 0] ) Receives data from an opened socket. -UDPSend ( socketarray, data ) Sends data on an opened socket. -UDPShutdown ( ) Stops TCP/UDP services. -UDPStartup ( ) Starts TCP or UDP services. -VarGetType ( expression ) Returns the internal type representation of a variant. -WinActivate ( "title" [, "text"] ) Activates (gives focus to) a window. -WinActive ( "title" [, "text"] ) Checks to see if a specified window exists and is currently active. -WinClose ( "title" [, "text"] ) Closes a window. -WinExists ( "title" [, "text"] ) Checks to see if a specified window exists. -WinFlash ( "title" [, "text" [, flashes = 4 [, delay = 500]]] ) Flashes a window in the taskbar. -WinGetCaretPos ( ) Returns the coordinates of the caret in the foreground window. -WinGetClassList ( "title" [, "text"] ) Retrieves the classes from a window. -WinGetClientSize ( "title" [, "text"] ) Retrieves the size of a given window's client area. -WinGetHandle ( "title" [, "text"] ) Retrieves the internal handle of a window. -WinGetPos ( "title" [, "text"] ) Retrieves the position and size of a given window. -WinGetProcess ( "title" [, "text"] ) Retrieves the Process ID (PID) associated with a window. -WinGetState ( "title" [, "text"] ) Retrieves the state of a given window. -WinGetText ( "title" [, "text"] ) Retrieves the text from a window. -WinGetTitle ( "title" [, "text"] ) Retrieves the full title from a window. -WinKill ( "title" [, "text"] ) Forces a window to close. -WinList ( ["title" [, "text"]] ) Retrieves a list of windows. -WinMenuSelectItem ( "title", "text", "item" [, "item" [, "item" [, "item" [, "item" [, "item" [, "item"]]]]]] ) Invokes a menu item of a window. -WinMinimizeAll ( ) Minimizes all windows. -WinMinimizeAllUndo ( ) Undoes a previous WinMinimizeAll function. -WinMove ( "title", "text", x, y [, width [, height [, speed]]] ) Moves and/or resizes a window. -WinSetOnTop ( "title", "text", flag ) Change a window's "Always On Top" attribute. -WinSetState ( "title", "text", flag ) Shows, hides, minimizes, maximizes, or restores a window. -WinSetTitle ( "title", "text", "newtitle" ) Changes the title of a window. -WinSetTrans ( "title", "text", transparency ) Sets the transparency of a window. -WinWait ( "title" [, "text" [, timeout = 0]] ) Pauses execution of the script until the requested window exists. -WinWaitActive ( "title" [, "text" [, timeout = 0]] ) Pauses execution of the script until the requested window is active. -WinWaitClose ( "title" [, "text" [, timeout = 0]] ) Pauses execution of the script until the requested window does not exist. -WinWaitNotActive ( "title" [, "text" [, timeout = 0]] ) Pauses execution of the script until the requested window is not active. -_Array1DToHistogram ( $aArray [, $iSizing = 100] ) Transform a 1D array to Histogram (Requires: #include ) -_ArrayAdd ( ByRef $aArray, $vValue [, $iStart = 0 [, $sDelim_Item = "|" [, $sDelim_Row = @CRLF [, $iForce = $ARRAYFILL_FORCE_DEFAULT]]]] ) Adds a specified value at the end of an existing 1D or 2D array (Requires: #include ) -_ArrayBinarySearch ( Const ByRef $aArray, $vValue [, $iStart = 0 [, $iEnd = 0 [, $iColumn = 0]]] ) Uses the binary search algorithm to search through a 1D or 2D array (Requires: #include ) -_ArrayColDelete ( ByRef $aArray, $iColumn [, $bConvert = False] ) Deletes a specified column from a 2D array (Requires: #include ) -_ArrayColInsert ( ByRef $aArray, $iColumn ) Inserts a specified column into a 1D or 2D array (Requires: #include ) -_ArrayCombinations ( Const ByRef $aArray, $iSet [, $sDelimiter = ""] ) Returns an array of the combinations of a set of elements from a selected 1D array (Requires: #include ) -_ArrayConcatenate ( Const ByRef $aArrayTarget, ByRef $aArraySource [, $iStart = 0] ) Concatenate two arrays - either 1D or 2D with the same number of columns (Requires: #include ) -_ArrayDelete ( ByRef $aArray, $vRange ) Deletes the specified element(s) from the specified 1D or 2D array (Requires: #include ) -_ArrayDisplay ( Const ByRef $aArray [, $sTitle = "ArrayDisplay" [, $sArrayRange = "" [, $iFlags = 0 [, $vUser_Separator = Default [, $sHeader = Default [, $iMax_ColWidth = Default [, $iAlt_Color = Default [, $hUser_Function = ""]]]]]]]] ) Displays a 1D or 2D array in a ListView (Requires: #include ) -_ArrayExtract ( Const ByRef $aArray [, $iStart_Row = -1 [, $iEnd_Row = -1 [, $iStart_Col = -1 [, $iEnd_Col = -1]]]] ) Extracts an array from the specified element(s) of a 1D or 2D array (Requires: #include ) -_ArrayFindAll ( Const ByRef $aArray, $vValue [, $iStart = 0 [, $iEnd = 0 [, $iCase = 0 [, $iCompare = 0 [, $iSubItem = 0 [, $bRow = False]]]]]] ) Find the indices of all ocurrences of a search query between two points in a 1D or 2D array using _ArraySearch() (Requires: #include ) -_ArrayInsert ( ByRef $aArray, $vRange [, $vValue = "" [, $iStart = 0 [, $sDelim_Item = "|" [, $sDelim_Row = @CRLF [, $iForce = $ARRAYFILL_FORCE_DEFAULT]]]]] ) Insert a new value at the specified position of a 1D or 2D array (Requires: #include ) -_ArrayMax ( Const ByRef $aArray [, $iCompNumeric = 0 [, $iStart = -1 [, $iEnd = -1 [, $iSubItem = 0]]]] ) Returns the highest value held in a 1D or 2D array (Requires: #include ) -_ArrayMaxIndex ( Const ByRef $aArray [, $iCompNumeric = 0 [, $iStart = -1 [, $iEnd = -1 [, $iSubItem = 0]]]] ) Returns the index where the highest value occurs in a 1D or 2D array (Requires: #include ) -_ArrayMin ( Const ByRef $aArray [, $iCompNumeric = 0 [, $iStart = -1 [, $iEnd = -1 [, $iSubItem = 0]]]] ) Returns the lowest value held in a 1D or 2D array (Requires: #include ) -_ArrayMinIndex ( Const ByRef $aArray [, $iCompNumeric = 0 [, $iStart = -1 [, $iEnd = -1 [, $iSubItem = 0]]]] ) Returns the index where the lowest value occurs in a 1D or 2D array (Requires: #include ) -_ArrayPermute ( ByRef $aArray [, $sDelimiter = ""] ) Returns an array of the Permutations of all Elements in a 1D array (Requires: #include ) -_ArrayPop ( ByRef $aArray ) Returns the last element of an array, deleting that element from the array at the same time (Requires: #include ) -_ArrayPush ( ByRef $aArray, $vValue [, $iDirection = 0] ) Add new values without increasing array size by inserting at the end the new value and deleting the first one or vice versa (Requires: #include ) -_ArrayReverse ( ByRef $aArray [, $iStart = 0 [, $iEnd = 0]] ) Takes the given array and reverses the order in which the elements appear in a 1D array (Requires: #include ) -_ArraySearch ( Const ByRef $aArray, $vValue [, $iStart = 0 [, $iEnd = 0 [, $iCase = 0 [, $iCompare = 0 [, $iForward = 1 [, $iSubItem = -1 [, $bRow = False]]]]]]] ) Finds an entry within a 1D or 2D array. Similar to _ArrayBinarySearch(), except that the array does not need to be sorted (Requires: #include ) -_ArrayShuffle ( ByRef $aArray [, $iStart_Row = 0 [, $iEnd_Row = 0 [, $iCol = -1]]] ) Shuffles selected rows of 1D or 2D arrays - can be limited to a specific column in 2D arrays (Requires: #include ) -_ArraySort ( ByRef $aArray [, $iDescending = 0 [, $iStart = 0 [, $iEnd = 0 [, $iSubItem = 0 [, $iPivot = 0]]]]] ) Sort a 1D or 2D array on a specific index using the dualpivotsort/quicksort/insertionsort algorithms (Requires: #include ) -_ArraySwap ( ByRef $aArray, $iIndex_1, $iIndex_2 [, $bCol = False [, $iStart = -1 [, $iEnd = -1]]] ) Swaps elements of a 1D array and full or part rows/columns of a 2D array (Requires: #include ) -_ArrayToClip ( Const ByRef $aArray [, $sDelim_Col = "|" [, $iStart_Row = -1 [, $iEnd_Row = -1 [, $sDelim_Row = @CRLF [, $iStart_Col = -1 [, $iEnd_Col = -1]]]]]] ) Sends the contents of a 1D or 2D array to the clipboard, each element separated by a specified delimiter (Requires: #include ) -_ArrayToString ( Const ByRef $aArray [, $sDelim_Col = "|" [, $iStart_Row = -1 [, $iEnd_Row = -1 [, $sDelim_Row = @CRLF [, $iStart_Col = -1 [, $iEnd_Col = -1]]]]]] ) Places the elements of a 1D or 2D array into a single string, separated by the specified delimiters (Requires: #include ) -_ArrayTranspose ( ByRef $aArray ) Transposes a 1D or 2D array (swaps rows and columns) (Requires: #include ) -_ArrayTrim ( ByRef $aArray, $iTrimNum [, $iDirection = 0 [, $iStart = 0 [, $iEnd = 0 [, $iSubItem = 0]]]] ) Trims a certain number of characters from all elements in a 1D or 2D array (Requires: #include ) -_ArrayUnique ( Const ByRef $aArray [, $iColumn = 0 [, $iBase = 0 [, $iCase = 0 [, $iCount = $ARRAYUNIQUE_COUNT [, $iIntType = $ARRAYUNIQUE_AUTO]]]]] ) Returns the Elements from a column of a 1D or 2D array, removing all duplicates (Requires: #include ) -_Assert ( $sCondition [, $bExit = True [, $iCode = 0x7FFFFFFF [, $sLine = @ScriptLineNumber]]] ) Display a message if assertion fails (Requires: #include ) -_ChooseColor ( [$iReturnType = 0 [, $iColorRef = 0 [, $iRefType = 0 [, $hWndOwnder = 0]]]] ) Creates a Color dialog box that enables the user to select a color (Requires: #include ) -_ChooseFont ( [$sFontName = "Courier New" [, $iPointSize = 10 [, $iFontColorRef = 0 [, $iFontWeight = 0 [, $bItalic = False [, $bUnderline = False [, $bStrikethru = False [, $hWndOwner = 0]]]]]]]] ) Creates a Font dialog box that enables the user to choose attributes for a logical font (Requires: #include ) -_ClipBoard_ChangeChain ( $hRemove, $hNewNext ) Removes a specified window from the chain of clipboard viewers (Requires: #include ) -_ClipBoard_Close ( ) Closes the clipboard (Requires: #include ) -_ClipBoard_CountFormats ( ) Retrieves the number of different data formats currently on the clipboard (Requires: #include ) -_ClipBoard_Empty ( ) Empties the clipboard and frees handles to data in the clipboard (Requires: #include ) -_ClipBoard_EnumFormats ( $iFormat ) Enumerates the data formats currently available on the clipboard (Requires: #include ) -_ClipBoard_FormatStr ( $iFormat ) Returns a string representation of a standard clipboard format (Requires: #include ) -_ClipBoard_GetData ( [$iFormat = 1] ) Retrieves data from the clipboard in a specified format (Requires: #include ) -_ClipBoard_GetDataEx ( [$iFormat = 1] ) Retrieves data from the clipboard in a specified format (Requires: #include ) -_ClipBoard_GetFormatName ( $iFormat ) Retrieves the name of the specified registered format (Requires: #include ) -_ClipBoard_GetOpenWindow ( ) Retrieves the handle to the window that currently has the clipboard open (Requires: #include ) -_ClipBoard_GetOwner ( ) Retrieves the window handle of the current owner of the clipboard (Requires: #include ) -_ClipBoard_GetPriorityFormat ( $aFormats ) Retrieves the first available clipboard format in the specified list (Requires: #include ) -_ClipBoard_GetSequenceNumber ( ) Retrieves the clipboard sequence number for the current window station (Requires: #include ) -_ClipBoard_GetViewer ( ) Retrieves the handle to the first window in the clipboard viewer chain (Requires: #include ) -_ClipBoard_IsFormatAvailable ( $iFormat ) Determines whether the clipboard contains data in the specified format (Requires: #include ) -_ClipBoard_Open ( $hOwner ) Opens the clipboard and prevents other applications from modifying the clipboard (Requires: #include ) -_ClipBoard_RegisterFormat ( $sFormat ) Registers a new clipboard format (Requires: #include ) -_ClipBoard_SetData ( $vData [, $iFormat = 1] ) Places data on the clipboard in a specified clipboard format (Requires: #include ) -_ClipBoard_SetDataEx ( ByRef $hMemory [, $iFormat = 1] ) Places data on the clipboard in a specified clipboard format (Requires: #include ) -_ClipBoard_SetViewer ( $hViewer ) Adds the specified window to the chain of clipboard viewers (Requires: #include ) -_ClipPutFile ( $sFilePath [, $sDelimiter = "|"] ) Copy Files to Clipboard Like Explorer does (Requires: #include ) -_ColorConvertHSLtoRGB ( $aArray ) Converts HSL to RGB (Requires: #include ) -_ColorConvertRGBtoHSL ( $aArray ) Converts RGB to HSL (Requires: #include ) -_ColorGetBlue ( $iColor ) Returns the blue component of a given color (Requires: #include ) -_ColorGetCOLORREF ( $iColor ) Returns the COLORREF color (Requires: #include ) -_ColorGetGreen ( $iColor ) Returns the green component of a given color (Requires: #include ) -_ColorGetRed ( $iColor ) Returns the red component of a given color (Requires: #include ) -_ColorGetRGB ( $iColor ) Returns an array containing RGB values in their respective positions (Requires: #include ) -_ColorSetCOLORREF ( $aColor ) Returns the COLORREF color (Requires: #include ) -_ColorSetRGB ( $aColor ) Returns the RGB color (Requires: #include ) -_Crypt_DecryptData ( $vData, $vCryptKey, $iAlgID [, $bFinal = True] ) Decrypts data using the supplied key (Requires: #include ) -_Crypt_DecryptFile ( $sSourceFile, $sDestinationFile, $vCryptKey, $iAlgID ) Decrypts a file with specified key and algorithm (Requires: #include ) -_Crypt_DeriveKey ( $vPassword, $iAlgID [, $iHashAlgID = $CALG_MD5] ) Creates a key from algorithm and password (Requires: #include ) -_Crypt_DestroyKey ( $hCryptKey ) Frees the resources used by a key (Requires: #include ) -_Crypt_EncryptData ( $vData, $vCryptKey, $iAlgID [, $bFinal = True] ) Encrypts data using the supplied key (Requires: #include ) -_Crypt_EncryptFile ( $sSourceFile, $sDestinationFile, $vCryptKey, $iAlgID ) Encrypts a file with specified key and algorithm (Requires: #include ) -_Crypt_GenRandom ( $pBuffer, $iSize ) Fill a buffer with cryptographically random data (Requires: #include ) -_Crypt_HashData ( $vData, $iAlgID [, $bFinal = True [, $hCryptHash = 0]] ) Hash data with specified algorithm (Requires: #include ) -_Crypt_HashFile ( $sFilePath, $iAlgID ) Hash a string with specified algorithm (Requires: #include ) -_Crypt_Shutdown ( ) Uninitialize the Crypt library (Requires: #include ) -_Crypt_Startup ( ) Initialize the Crypt library (Requires: #include ) -_Date_Time_CompareFileTime ( $tFileTime1, $tFileTime2 ) Compares two file times (Requires: #include ) -_Date_Time_DOSDateTimeToArray ( $iDosDate, $iDosTime ) Decode a DOS date/time to an array (Requires: #include ) -_Date_Time_DOSDateTimeToFileTime ( $iFatDate, $iFatTime ) Converts MS-DOS date and time values to a file time (Requires: #include ) -_Date_Time_DOSDateTimeToStr ( $iDosDate, $iDosTime ) Decode a DOS date to a string (Requires: #include ) -_Date_Time_DOSDateToArray ( $iDosDate ) Decode a DOS date to an array (Requires: #include ) -_Date_Time_DOSDateToStr ( $iDosDate ) Decode a DOS date to a string (Requires: #include ) -_Date_Time_DOSTimeToArray ( $iDosTime ) Decode a DOS time to an array (Requires: #include ) -_Date_Time_DOSTimeToStr ( $iDosTime ) Decode a DOS time to a string (Requires: #include ) -_Date_Time_EncodeFileTime ( $iMonth, $iDay, $iYear [, $iHour = 0 [, $iMinute = 0 [, $iSecond = 0 [, $iMSeconds = 0]]]] ) Encodes and returns a $tagFILETIME structure (Requires: #include ) -_Date_Time_EncodeSystemTime ( $iMonth, $iDay, $iYear [, $iHour = 0 [, $iMinute = 0 [, $iSecond = 0 [, $iMSeconds = 0]]]] ) Encodes and returns a $tagSYSTEMTIME structure (Requires: #include ) -_Date_Time_FileTimeToArray ( ByRef $tFileTime ) Decode a file time to an array (Requires: #include ) -_Date_Time_FileTimeToDOSDateTime ( $tFileTime ) Converts MS-DOS date and time values to a file time (Requires: #include ) -_Date_Time_FileTimeToLocalFileTime ( $tFileTime ) Converts a file time based on the Coordinated Universal Time to a local file time (Requires: #include ) -_Date_Time_FileTimeToStr ( ByRef $tFileTime [, $iFmt = 0] ) Decode a file time to a date/time string (Requires: #include ) -_Date_Time_FileTimeToSystemTime ( $tFileTime ) Converts a file time to system time format (Requires: #include ) -_Date_Time_GetFileTime ( $hFile ) Retrieves the date and time that a file was created, accessed and modified (Requires: #include ) -_Date_Time_GetLocalTime ( ) Retrieves the current local date and time (Requires: #include ) -_Date_Time_GetSystemTime ( ) Retrieves the current system date and time expressed in UTC (Requires: #include ) -_Date_Time_GetSystemTimeAdjustment ( ) Determines whether the system is applying periodic time adjustments (Requires: #include ) -_Date_Time_GetSystemTimeAsFileTime ( ) Retrieves the current system date and time expressed in UTC (Requires: #include ) -_Date_Time_GetSystemTimes ( ) Retrieves system timing information (Requires: #include ) -_Date_Time_GetTickCount ( ) Retrieves the number of milliseconds that have elapsed since Windows was started (Requires: #include ) -_Date_Time_GetTimeZoneInformation ( ) Retrieves the current time zone settings (Requires: #include ) -_Date_Time_LocalFileTimeToFileTime ( $tLocalTime ) Converts a local file time to a file time based on UTC (Requires: #include ) -_Date_Time_SetFileTime ( $hFile, $tCreateTime, $tLastAccess, $tLastWrite ) Sets the date and time that a file was created, accessed and modified (Requires: #include ) -_Date_Time_SetLocalTime ( $tSYSTEMTIME ) Sets the current local date and time (Requires: #include ) -_Date_Time_SetSystemTime ( $tSYSTEMTIME ) Sets the current system time and date, expressed in UTC (Requires: #include ) -_Date_Time_SetSystemTimeAdjustment ( $iAdjustment, $bDisabled ) Enables or disables periodic time adjustments to the system's time of day clock (Requires: #include ) -_Date_Time_SetTimeZoneInformation ( $iBias, $sStdName, $tStdDate, $iStdBias, $sDayName, $tDayDate, $iDayBias ) Sets the current time zone settings (Requires: #include ) -_Date_Time_SystemTimeToArray ( ByRef $tSYSTEMTIME ) Decode a system time to an array (Requires: #include ) -_Date_Time_SystemTimeToDateStr ( ByRef $tSYSTEMTIME [, $iFmt = 0] ) Decode a system time to a date string (Requires: #include ) -_Date_Time_SystemTimeToDateTimeStr ( ByRef $tSYSTEMTIME [, $iFmt = 0] ) Decode a system time to a date/time string (Requires: #include ) -_Date_Time_SystemTimeToFileTime ( $tSYSTEMTIME ) Converts a system time to file time format (Requires: #include ) -_Date_Time_SystemTimeToTimeStr ( ByRef $tSYSTEMTIME ) Decode a system time to a time string (Requires: #include ) -_Date_Time_SystemTimeToTzSpecificLocalTime ( $tUTC [, $tTimeZone = 0] ) Converts a UTC time to a specified time zone's corresponding local time (Requires: #include ) -_Date_Time_TzSpecificLocalTimeToSystemTime ( $tLocalTime [, $tTimeZone = 0] ) Converts a local time to a time in UTC (Requires: #include ) -_DateAdd ( $sType, $iNumber, $sDate ) Calculates a new date/time by adding/subtracting a specified number of time intervals from an initial date/time (Requires: #include ) -_DateDayOfWeek ( $iDayNum [, $iFormat = 0] ) Returns the name of the weekday, based on the specified day (Requires: #include ) -_DateDaysInMonth ( $iYear, $iMonthNum ) Returns the number of days in a month, based on the specified month and year (Requires: #include ) -_DateDiff ( $sType, $sStartDate, $sEndDate ) Returns the difference between 2 dates, expressed in the type requested (Requires: #include ) -_DateIsLeapYear ( $iYear ) Checks a given year to see if it is a leap year (Requires: #include ) -_DateIsValid ( $sDate ) Checks the given date to determine if it is a valid date (Requires: #include ) -_DateTimeFormat ( $sDate, $sType ) Returns the date in the PC's regional settings format (Requires: #include ) -_DateTimeSplit ( $sDate, ByRef $aDatePart, ByRef $iTimePart ) Split a string containing Date and Time into two separate Arrays (Requires: #include ) -_DateToDayOfWeek ( $iYear, $iMonth, $iDay ) Returns the weekday number for a given date (Requires: #include ) -_DateToDayOfWeekISO ( $iYear, $iMonth, $iDay ) Returns the ISO weekday number for a given date (Requires: #include ) -_DateToDayValue ( $iYear, $iMonth, $iDay ) Returns the day number since noon 4713 BC January 1 for a given Gregorian date (Requires: #include ) -_DateToMonth ( $iMonNum [, $iFormat = 0] ) Returns the name of the month, based on the specified month (Requires: #include ) -_DayValueToDate ( $iJulianDate, ByRef $iYear, ByRef $iMonth, ByRef $iDay ) Add the given days since noon 4713 BC January 1 and returns the Gregorian date (Requires: #include ) -_DebugBugReportEnv ( ) Outputs a string containing information for Bug report submission (Requires: #include ) -_DebugCOMError ( [$iComDebug = 1 [, $bExit = False]] ) Sets, resets or queries the debug level for COM errors (Requires: #include ) -_DebugOut ( $sOutput ) Displays output on a debugging session started by _DebugSetup() (Requires: #include ) -_DebugReport ( $sData [, $bLastError = False [, $bExit = False]] ) Writes to a debugging session (Requires: #include ) -_DebugReportEx ( $sData [, $bLastError = False [, $bExit = False]] ) Writes to a debugging session a formatted message (Requires: #include ) -_DebugReportVar ( $sVarName, $vVar [, $bErrExt = False [, $iDebugLineNumber = @ScriptLineNumber]] ) Writes to debugging session the content of a variable (Requires: #include ) -_DebugSetup ( [$sTitle = Default [, $bBugReportInfos = False [, $vReportType = 1 [, $sLogFile = "" [, $bTimeStamp = False]]]]] ) Setup up a debug session using a specific reporting type (Requires: #include ) -_Degree ( $iRadians ) Converts radians to degrees (Requires: #include ) -_EventLog__Backup ( $hEventLog, $sFileName ) Saves the event log to a backup file (Requires: #include ) -_EventLog__Clear ( $hEventLog, $sFileName ) Clears the event log (Requires: #include ) -_EventLog__Close ( $hEventLog ) Closes a read handle to the event log (Requires: #include ) -_EventLog__Count ( $hEventLog ) Retrieves the number of records in the event log (Requires: #include ) -_EventLog__DeregisterSource ( $hEventLog ) Closes a write handle to the event log (Requires: #include ) -_EventLog__Full ( $hEventLog ) Retrieves whether the event log is full (Requires: #include ) -_EventLog__Notify ( $hEventLog, $hEvent ) Enables an application to receive event notifications (Requires: #include ) -_EventLog__Oldest ( $hEventLog ) Retrieves the absolute record number of the oldest record in the event log (Requires: #include ) -_EventLog__Open ( $sServerName, $sSourceName ) Opens a handle to the event log (Requires: #include ) -_EventLog__OpenBackup ( $sServerName, $sFileName ) Opens a handle to a backup event log (Requires: #include ) -_EventLog__Read ( $hEventLog [, $bRead = True [, $bForward = True [, $iOffset = 0]]] ) Reads an entry from the event log (Requires: #include ) -_EventLog__RegisterSource ( $sServerName, $sSourceName ) Retrieves a registered handle to the specified event log (Requires: #include ) -_EventLog__Report ( $hEventLog, $iType, $iCategory, $iEventID, $sUserName, $sDesc, $aData ) Writes an entry at the end of the specified event log (Requires: #include ) -_Excel_BookAttach ( $sString [, $sMode = "FilePath" [, $oInstance = Default]] ) Attaches to the first instance of a workbook where the search string matches based on the selected mode (Requires: #include ) -_Excel_BookClose ( $oWorkbook [, $bSave = True] ) Closes the specified workbook (Requires: #include ) -_Excel_BookList ( [$oExcel = Default] ) Returns a list of workbooks of a specified or all Excel instances (Requires: #include ) -_Excel_BookNew ( $oExcel [, $iSheets = Default] ) Creates a new workbook (Requires: #include ) -_Excel_BookOpen ( $oExcel, $sFilePath [, $bReadOnly = False [, $bVisible = True [, $sPassword = Default [, $sWritePassword = Default [, $bUpdateLinks = Default]]]]] ) Opens an existing workbook (Requires: #include ) -_Excel_BookOpenText ( $oExcel, $sFilePath [, $iStartRow = 1 [, $iDataType = Default [, $sTextQualifier = $xlTextQualifierDoubleQuote [, $bConsecutiveDelimiter = False [, $sDelimiter = "," [, $aFieldInfo = "" [, $sDecimalSeparator = Default [, $sThousandsSeparator = Default [, $bTrailingMinusNumbers = True [, $iOrigin = Default]]]]]]]]]] ) Opens a text file and parses the content to a new workbook with a single sheet (Requires: #include ) -_Excel_BookSave ( $oWorkbook ) Saves the specified workbook (Requires: #include ) -_Excel_BookSaveAs ( $oWorkbook, $sFilePath [, $iFormat = $xlWorkbookDefault [, $bOverWrite = False [, $sPassword = Default [, $sWritePassword = Default [, $bReadOnlyRecommended = False]]]]] ) Saves the specified workbook with a new filename and/or type (Requires: #include ) -_Excel_Close ( $oExcel [, $bSaveChanges = True [, $bForceClose = False]] ) Closes all worksheets and the instance of the Excel application (Requires: #include ) -_Excel_ColumnToLetter ( $iColumn ) Converts the column number to letter(s) (Requires: #include ) -_Excel_ColumnToNumber ( $sColumn ) Converts the column letter(s) to a number (Requires: #include ) -_Excel_ConvertFormula ( $oExcel, $sFormula, $iFromStyle [, $iToStyle = Default [, $iToAbsolute = Default [, $vRelativeTo = Default]]] ) Converts cell references in a formula between A1 and R1C1 reference styles, relative and absolute reference type, or both (Requires: #include ) -_Excel_Export ( $oExcel, $vObject, $sFileName [, $iType = $xlTypePDF [, $iQuality = $xlQualityStandard [, $bIncludeProperties = True [, $iFrom = Default [, $iTo = Default [, $bOpenAfterPublish = Default]]]]]] ) Exports a workbook, worksheet, chart or range as PDF or XPS (Requires: #include ) -_Excel_FilterGet ( $oWorkbook [, $vWorksheet = Default] ) Returns a list of set filters (Requires: #include ) -_Excel_FilterSet ( $oWorkbook, $vWorksheet, $vRange, $iField [, $sCriteria1 = Default [, $iOperator = Default [, $sCriteria2 = Default]]] ) Sets/unsets filter definitions and filters the range (Requires: #include ) -_Excel_Open ( [$bVisible = True [, $bDisplayAlerts = False [, $bScreenUpdating = True [, $bInteractive = True [, $bForceNew = False]]]]] ) Connects to an existing Excel instance or creates a new one (Requires: #include ) -_Excel_PictureAdd ( $oWorkbook, $vWorksheet, $sFile, $vRangeOrLeft [, $iTop = Default [, $iWidth = Default [, $iHeight = Default [, $bKeepRatio = True]]]] ) Adds a picture on the specified workbook and worksheet (Requires: #include ) -_Excel_Print ( $oExcel, $vObject [, $iCopies = Default [, $sPrinter = Default [, $bPreview = Default [, $iFrom = Default [, $iTo = Default [, $bPrintToFile = Default [, $bCollate = Default [, $sPrToFileName = ""]]]]]]]] ) Prints a workbook, worksheet, chart or range (Requires: #include ) -_Excel_RangeCopyPaste ( $oWorksheet, $vSourceRange [, $vTargetRange = Default [, $bCut = False [, $iPaste = Default [, $iOperation = Default [, $bSkipBlanks = False [, $bTranspose = False]]]]]] ) Cuts or copies one or multiple cells, rows or columns to a range or from/to the clipboard (Requires: #include ) -_Excel_RangeDelete ( $oWorksheet, $vRange [, $iShift = Default [, $iEntireRowCol = Default]] ) Deletes one or multiple cells, rows or columns from the specified worksheet (Requires: #include ) -_Excel_RangeFind ( $oWorkbook, $sSearch [, $vRange = Default [, $iLookIn = $xlValues [, $iLookAt = $xlPart [, $bMatchcase = False]]]] ) Finds matching cells in a range or workbook and returns an array with information about the found cells (Requires: #include ) -_Excel_RangeInsert ( $oWorksheet, $vRange [, $iShift = Default [, $iCopyOrigin = Default]] ) Inserts one or multiple empty cells, rows or columns into the specified worksheet (Requires: #include ) -_Excel_RangeLinkAddRemove ( $oWorkbook, $vWorksheet, $vRange, $sAddress [, $sSubAddress = Default [, $sScreenTip = Default [, $sTextToDisplay = Default]]] ) Adds or removes a hyperlink to/from a specified range (Requires: #include ) -_Excel_RangeRead ( $oWorkbook [, $vWorksheet = Default [, $vRange = Default [, $iReturn = 1 [, $bForceFunc = False]]]] ) Reads the value, formula or displayed text from a cell or range of cells of the specified workbook and worksheet (Requires: #include ) -_Excel_RangeReplace ( $oWorkbook, $vWorksheet, $vRange, $sSearch, $sReplace [, $iLookAt = $xlPart [, $bMatchcase = False]] ) Finds and replaces matching strings in a range or worksheet (Requires: #include ) -_Excel_RangeSort ( $oWorkbook, $vWorksheet, $vRange, $vKey1 [, $iOrder1 = $xlAscending [, $iSortText = $xlSortNormal [, $iHeader = $xlNo [, $bMatchcase = False [, $iOrientation = $xlSortRows [, $vKey2 = Default [, $iOrder2 = Default [, $vKey3 = Default [, $iOrder3 = Default]]]]]]]]] ) Sorts a cell range (Requires: #include ) -_Excel_RangeValidate ( $oWorkbook, $vWorksheet, $vRange, $iType, $sFormula1 [, $iOperator = Default [, $sFormula2 = Default [, $bIgnoreBlank = True [, $iAlertStyle = $xlValidAlertStop [, $sErrorMessage = Default [, $sInputMessage = Default]]]]]] ) Adds data validation to the specified range (Requires: #include ) -_Excel_RangeWrite ( $oWorkbook, $vWorksheet, $vValue [, $vRange = "A1" [, $bValue = True [, $bForceFunc = False]]] ) Writes value(s) or formula(s) to a cell or a cell range on the specified workbook and worksheet (Requires: #include ) -_Excel_SheetAdd ( $oWorkbook [, $vSheet = Default [, $bBefore = True [, $iCount = 1 [, $sName = ""]]]] ) Adds new sheet(s) to a workbook and sets their names (Requires: #include ) -_Excel_SheetCopyMove ( $oSourceBook [, $vSourceSheet = Default [, $oTargetBook = $oSourceBook [, $vTargetSheet = 1 [, $bBefore = True [, $bCopy = True]]]]] ) Copies or moves the specified sheet before or after a specified sheet in the same or a different workbook (Requires: #include ) -_Excel_SheetDelete ( $oWorkbook [, $vSheet = Default] ) Deletes the specified sheet by object, string name or by number (Requires: #include ) -_Excel_SheetList ( $oWorkbook ) Returns a list of all sheets in the specified workbook (Requires: #include ) -_FileCountLines ( $sFilePath ) Returns the number of lines in the specified file (Requires: #include ) -_FileCreate ( $sFilePath ) Creates or zero's out the length of the file specified (Requires: #include ) -_FileListToArray ( $sFilePath [, $sFilter = "*" [, $iFlag = $FLTA_FILESFOLDERS [, $bReturnPath = False]]] ) Lists files and\or folders in a specified folder (Similar to using Dir with the /B Switch) (Requires: #include ) -_FileListToArrayRec ( $sFilePath [, $sMask = "*" [, $iReturn = $FLTAR_FILESFOLDERS [, $iRecur = $FLTAR_NORECUR [, $iSort = $FLTAR_NOSORT [, $iReturnPath = $FLTAR_RELPATH]]]]] ) Lists files and\or folders in specified path with optional recursion to defined level and result sorting (Requires: #include ) -_FilePrint ( $sFilePath [, $iShow = @SW_HIDE] ) Prints a plain text file (Requires: #include ) -_FileReadToArray ( $sFilePath, ByRef $vReturn [, $iFlags = $FRTA_COUNT [, $sDelimiter = ""]] ) Reads the specified file into a 1D or 2D array (Requires: #include ) -_FileWriteFromArray ( $sFilePath, Const ByRef $aArray [, $iBase = Default [, $iUBound = Default [, $sDelimiter = "|"]]] ) Writes an array to a specified file (Requires: #include ) -_FileWriteLog ( $sLogPath, $sLogMsg [, $iFlag = -1] ) Writes current date, time and the specified text to a log file (Requires: #include ) -_FileWriteToLine ( $sFilePath, $iLine, $sText [, $bOverWrite = False] ) Writes text to a specific line in a file (Requires: #include ) -_FTP_Close ( $hSession ) Closes the _FTP_Open or _FTP_Connect session (Requires: #include ) -_FTP_Command ( $hFTPSession, $sFTPCommand [, $iFlags = $FTP_TRANSFER_TYPE_ASCII [, $iExpectResponse = 0 [, $iContext = 0]]] ) Sends a command to an FTP server (Requires: #include ) -_FTP_Connect ( $hInternetSession, $sServerName, $sUsername, $sPassword [, $iPassive = 0 [, $iServerPort = 0 [, $iService = $INTERNET_SERVICE_FTP [, $iFlags = 0 [, $fuContext = 0]]]]] ) Connects to an FTP server (Requires: #include ) -_FTP_DecodeInternetStatus ( $iInternetStatus ) Decode a received Internet Status (Requires: #include ) -_FTP_DirCreate ( $hFTPSession, $sRemote ) Makes an Directory on an FTP server (Requires: #include ) -_FTP_DirDelete ( $hFTPSession, $sRemote ) Delete's an Directory on an FTP server (Requires: #include ) -_FTP_DirGetCurrent ( $hFTPSession ) Get Current Directory on an FTP server (Requires: #include ) -_FTP_DirPutContents ( $hFTPSession, $sLocalFolder, $sRemoteFolder, $bRecursivePut [, $iContext = 0] ) Puts an folder on an FTP server. Recursivley if selected (Requires: #include ) -_FTP_DirSetCurrent ( $hFTPSession, $sRemote ) Set Current Directory on an FTP server (Requires: #include ) -_FTP_FileClose ( $hFTPFile ) Closes the Handle returned by _FTP_FileOpen (Requires: #include ) -_FTP_FileDelete ( $hFTPSession, $sRemoteFile ) Delete an file from an FTP server (Requires: #include ) -_FTP_FileGet ( $hFTPSession, $sRemoteFile, $sLocalFile [, $bFailIfExists = False [, $iFlagsAndAttributes = 0 [, $iFlags = $FTP_TRANSFER_TYPE_UNKNOWN [, $iContext = 0]]]] ) Get file from a FTP server (Requires: #include ) -_FTP_FileGetSize ( $hFTPSession, $sFileName ) Gets filesize of a file on the FTP server (Requires: #include ) -_FTP_FileOpen ( $hConnect, $sFileName [, $iAccess = $GENERIC_READ [, $iFlags = $INTERNET_FLAG_TRANSFER_BINARY [, $iContext = 0]]] ) Initiates access to a remote file on an FTP server for reading or writing (Requires: #include ) -_FTP_FilePut ( $hFTPSession, $sLocalFile, $sRemoteFile [, $iFlags = 0 [, $iContext = 0]] ) Puts an file on an FTP server (Requires: #include ) -_FTP_FileRead ( $hFTPFile, $iNumberOfBytesToRead ) Reads data from a handle opened by _FTP_FileOpen() (Requires: #include ) -_FTP_FileRename ( $hFTPSession, $sExisting, $sNew ) Renames an file on an FTP server (Requires: #include ) -_FTP_FileTimeLoHiToStr ( $iLoDWORD, $iHiDWORD [, $bFmt = 0] ) Converts filetime Loword and Hiword to a string (Requires: #include ) -_FTP_FindFileClose ( $hFTPFind ) Delete FindFile Handle (Requires: #include ) -_FTP_FindFileFirst ( $hFTPSession, $sRemotePath, ByRef $hFTPFind [, $iFlags = 0 [, $iContext = 0]] ) Find First File on an FTP server (Requires: #include ) -_FTP_FindFileNext ( $hFTPFind ) Find Next File on an FTP server (Requires: #include ) -_FTP_GetLastResponseInfo ( ByRef $iError, ByRef $sMessage ) Retrieves the last error description or server response on the thread calling this function (Requires: #include ) -_FTP_ListToArray ( $hFTPSession [, $iReturnType = 0 [, $iFlags = $INTERNET_FLAG_NO_CACHE_WRITE [, $iContext = 0]]] ) Get Filenames, Directories or Both of current remote directory (Requires: #include ) -_FTP_ListToArray2D ( $hFTPSession [, $iReturnType = 0 [, $iFlags = $INTERNET_FLAG_NO_CACHE_WRITE [, $iContext = 0]]] ) Get Filenames and filesizes of current remote directory (Requires: #include ) -_FTP_ListToArrayEx ( $hFTPSession [, $iReturnType = 0 [, $iFlags = $INTERNET_FLAG_NO_CACHE_WRITE [, $iFmt = 1 [, $iContext = 0]]]] ) Get names, sizes, attributes and times of files/dir of current remote directory (Requires: #include ) -_FTP_Open ( $sAgent [, $iAccessType = $INTERNET_OPEN_TYPE_DIRECT [, $sProxyName = '' [, $sProxyBypass = '' [, $iFlags = 0]]]] ) Opens an FTP session (Requires: #include ) -_FTP_ProgressDownload ( $hFTPSession, $sLocalFile, $sRemoteFile [, $hFunctionToCall = 0] ) Downloads a file in Binary Mode and shows a Progress window or by Calling a User defined Function (Requires: #include ) -_FTP_ProgressUpload ( $hFTPSession, $sLocalFile, $sRemoteFile [, $hFunctionToCall = 0] ) Uploads a file in Binary Mode and shows a Progress window or by Calling a User defined Function (Requires: #include ) -_FTP_SetStatusCallback ( $hInternetSession, $sFunctionName ) Registers callback function that WinINet functions can call as progress is made during an operation (Requires: #include ) -_GDIPlus_ArrowCapCreate ( $fHeight, $fWidth [, $bFilled = True] ) Creates an adjustable arrow line cap with the specified height and width (Requires: #include ) -_GDIPlus_ArrowCapDispose ( $hCap ) Release an adjustable arrow line cap object (Requires: #include ) -_GDIPlus_ArrowCapGetFillState ( $hArrowCap ) Determines whether the arrow cap is filled (Requires: #include ) -_GDIPlus_ArrowCapGetHeight ( $hArrowCap ) Gets the height of the arrow cap (Requires: #include ) -_GDIPlus_ArrowCapGetMiddleInset ( $hArrowCap ) Gets the value of the inset (Requires: #include ) -_GDIPlus_ArrowCapGetWidth ( $hArrowCap ) Gets the width of the arrow cap (Requires: #include ) -_GDIPlus_ArrowCapSetFillState ( $hArrowCap [, $bFilled = True] ) Sets whether the arrow cap is filled (Requires: #include ) -_GDIPlus_ArrowCapSetHeight ( $hArrowCap, $fHeight ) Sets the height of the arrow cap (Requires: #include ) -_GDIPlus_ArrowCapSetMiddleInset ( $hArrowCap, $fInset ) Gets the value of the inset (Requires: #include ) -_GDIPlus_ArrowCapSetWidth ( $hArrowCap, $fWidth ) Sets the width of the arrow cap (Requires: #include ) -_GDIPlus_BitmapApplyEffect ( $hBitmap, $hEffect [, $tRECT = Null] ) Alters a Bitmap by applying a specified effect (Requires: #include ) -_GDIPlus_BitmapApplyEffectEx ( $hBitmap, $hEffect [, $iX = 0 [, $iY = 0 [, $iW = 0 [, $iH = 0]]]] ) Alters a Bitmap by applying a specified effect (Requires: #include ) -_GDIPlus_BitmapCloneArea ( $hBitmap, $nLeft, $nTop, $nWidth, $nHeight [, $iFormat = 0x00021808] ) Create a clone of a Bitmap object from the coordinates and format specified (Requires: #include ) -_GDIPlus_BitmapConvertFormat ( $hBitmap, $iPixelFormat, $iDitherType, $iPaletteType, $tPalette [, $fAlphaThresholdPercent = 0.0] ) Converts a bitmap to a specified pixel format (Requires: #include ) -_GDIPlus_BitmapCreateApplyEffect ( $hBitmap, $hEffect [, $tRECT = Null [, $tOutRECT = Null]] ) Creates a new Bitmap by applying a specified effect to an existing Bitmap (Requires: #include ) -_GDIPlus_BitmapCreateApplyEffectEx ( $hBitmap, $hEffect [, $iX = 0 [, $iY = 0 [, $iW = 0 [, $iH = 0]]]] ) Creates a new Bitmap by applying a specified effect to an existing Bitmap (Requires: #include ) -_GDIPlus_BitmapCreateDIBFromBitmap ( $hBitmap ) Creates a DIB Section (Requires: #include ) -_GDIPlus_BitmapCreateFromFile ( $sFileName ) Create a Bitmap object from file (Requires: #include ) -_GDIPlus_BitmapCreateFromGraphics ( $iWidth, $iHeight, $hGraphics ) Creates a Bitmap object based on a Graphics object, a width, and a height (Requires: #include ) -_GDIPlus_BitmapCreateFromHBITMAP ( $hBitmap [, $hPal = 0] ) Create a Bitmap object from a bitmap handle (Requires: #include ) -_GDIPlus_BitmapCreateFromHICON ( $hIcon ) Creates a Bitmap object based on an icon (Requires: #include ) -_GDIPlus_BitmapCreateFromHICON32 ( $hIcon ) Creates a Bitmap object based on a 32bit icon (Requires: #include ) -_GDIPlus_BitmapCreateFromMemory ( $dImage [, $bHBITMAP = False] ) Loads an image (JPG, BMP, PNG, etc.) which is saved as a binary string and converts it to a bitmap (GDI+) or hbitmap (GDI) (Requires: #include ) -_GDIPlus_BitmapCreateFromResource ( $hInst, $vResourceName ) Creates a Bitmap object based on an icon (Requires: #include ) -_GDIPlus_BitmapCreateFromScan0 ( $iWidth, $iHeight [, $iPixelFormat = $GDIP_PXF32ARGB [, $iStride = 0 [, $pScan0 = 0]]] ) Creates a Bitmap object based on an array of bytes along with size and format information (Requires: #include ) -_GDIPlus_BitmapCreateFromStream ( $pStream ) Creates a Bitmap object based on an IStream COM interface (Requires: #include ) -_GDIPlus_BitmapCreateHBITMAPFromBitmap ( $hBitmap [, $iARGB = 0xFF000000] ) Create a handle to a bitmap from a bitmap object (Requires: #include ) -_GDIPlus_BitmapDispose ( $hBitmap ) Release a bitmap object (Requires: #include ) -_GDIPlus_BitmapGetHistogram ( $hBitmap, $iHistogramFormat, $iHistogramSize, $tChannel_0 [, $tChannel_1 = 0 [, $tChannel_2 = 0 [, $tChannel_3 = 0]]] ) Returns one or more histograms for specified color channels of the specified Bitmap (Requires: #include ) -_GDIPlus_BitmapGetHistogramEx ( $hBitmap ) Returns histograms for the Bitmap´s color channels: Red, Green, Blue, Alpha and Grey (Requires: #include ) -_GDIPlus_BitmapGetHistogramSize ( $iFormat ) Returns the number of elements for allocation by _GDIPlus_BitmapGetHistogramEx() (Requires: #include ) -_GDIPlus_BitmapGetPixel ( $hBitmap, $iX, $iY ) Gets the color of a specified pixel in this bitmap (Requires: #include ) -_GDIPlus_BitmapLockBits ( $hBitmap, $iLeft, $iTop, $iWidth, $iHeight [, $iFlags = $GDIP_ILMREAD [, $iFormat = $GDIP_PXF32RGB]] ) Locks a portion of a bitmap for reading or writing (Requires: #include ) -_GDIPlus_BitmapSetPixel ( $hBitmap, $iX, $iY, $iARGB ) Sets the color of a specified pixel in this bitmap (Requires: #include ) -_GDIPlus_BitmapUnlockBits ( $hBitmap, $tBitmapData ) Unlocks a portion of a bitmap that was locked by _GDIPlus_BitmapLockBits (Requires: #include ) -_GDIPlus_BrushClone ( $hBrush ) Clone a Brush object (Requires: #include ) -_GDIPlus_BrushCreateSolid ( [$iARGB = 0xFF000000] ) Create a solid Brush object (Requires: #include ) -_GDIPlus_BrushDispose ( $hBrush ) Release a Brush object (Requires: #include ) -_GDIPlus_BrushGetSolidColor ( $hBrush ) Get the color of a Solid Brush object (Requires: #include ) -_GDIPlus_BrushGetType ( $hBrush ) Retrieve the type of Brush object (Requires: #include ) -_GDIPlus_BrushSetSolidColor ( $hBrush [, $iARGB = 0xFF000000] ) Set the color of a Solid Brush object (Requires: #include ) -_GDIPlus_ColorMatrixCreate ( ) Creates and initializes an identity color matrix (Requires: #include ) -_GDIPlus_ColorMatrixCreateGrayScale ( ) Creates and initializes a gray-scaling color matrix (Requires: #include ) -_GDIPlus_ColorMatrixCreateNegative ( ) Creates and initializes a negative color matrix (Requires: #include ) -_GDIPlus_ColorMatrixCreateSaturation ( $fSat ) Creates and initializes a saturation color matrix (Requires: #include ) -_GDIPlus_ColorMatrixCreateScale ( $fRed, $fGreen, $fBlue [, $fAlpha = 1] ) Creates and initializes a scaling color matrix (Requires: #include ) -_GDIPlus_ColorMatrixCreateTranslate ( $fRed, $fGreen, $fBlue [, $fAlpha = 0] ) Creates and initializes a translation color matrix (Requires: #include ) -_GDIPlus_CustomLineCapClone ( $hCustomLineCap ) Clones a CustomLineCap object (Requires: #include ) -_GDIPlus_CustomLineCapCreate ( $hPathFill, $hPathStroke [, $iLineCap = 0 [, $nBaseInset = 0]] ) Creates a CustomLineCap object (Requires: #include ) -_GDIPlus_CustomLineCapDispose ( $hCap ) Release a custom line cap object (Requires: #include ) -_GDIPlus_CustomLineCapGetStrokeCaps ( $hCustomLineCap ) Gets the end cap styles for both the start line cap and the end line cap (Requires: #include ) -_GDIPlus_CustomLineCapSetStrokeCaps ( $hCustomLineCap, $iStartCap, $iEndCap ) Sets the distance between the base cap to the start of the line (Requires: #include ) -_GDIPlus_Decoders ( ) Get an array of information about the available image decoders (Requires: #include ) -_GDIPlus_DecodersGetCount ( ) Get the number of available image decoders (Requires: #include ) -_GDIPlus_DecodersGetSize ( ) Get the total size of the structure that is returned by _GDIPlus_GetImageDecoders (Requires: #include ) -_GDIPlus_DrawImageFX ( $hGraphics, $hImage, $hEffect [, $tRECTF = 0 [, $hMatrix = 0 [, $hImgAttributes = 0 [, $iUnit = 2]]]] ) Draws a portion of an image after applying a specified effect (Requires: #include ) -_GDIPlus_DrawImageFXEx ( $hGraphics, $hImage, $hEffect [, $nX = 0 [, $nY = 0 [, $nW = 0 [, $nH = 0 [, $hMatrix = 0 [, $hImgAttributes = 0 [, $iUnit = 2]]]]]]] ) Draws a portion of an image after applying a specified effect (Requires: #include ) -_GDIPlus_DrawImagePoints ( $hGraphic, $hImage, $nULX, $nULY, $nURX, $nURY, $nLLX, $nLLY [, $iCount = 3] ) Draws an image at a specified location (Requires: #include ) -_GDIPlus_EffectCreate ( $sEffectGUID ) Creates an Effect object of the type specified by the guid parameter (Requires: #include ) -_GDIPlus_EffectCreateBlur ( [$fRadius = 10.0 [, $bExpandEdge = False]] ) Creates a Blur class effect object (Requires: #include ) -_GDIPlus_EffectCreateBrightnessContrast ( [$iBrightnessLevel = 0 [, $iContrastLevel = 0]] ) Creates a BrightnessContrast class effect object (Requires: #include ) -_GDIPlus_EffectCreateColorBalance ( [$iCyanRed = 0 [, $iMagentaGreen = 0 [, $iYellowBlue = 0]]] ) Creates a ColorBalance class effect object (Requires: #include ) -_GDIPlus_EffectCreateColorCurve ( $iAdjustment, $iChannel, $iAdjustValue ) Creates a ColorBalance class effect object (Requires: #include ) -_GDIPlus_EffectCreateColorLUT ( $aColorLUT ) Creates a ColorLUT class effect object (Requires: #include ) -_GDIPlus_EffectCreateColorMatrix ( $tColorMatrix ) Creates a ColorMatrixEffect class effect object (Requires: #include ) -_GDIPlus_EffectCreateHueSaturationLightness ( [$iHueLevel = 0 [, $iSaturationLevel = 0 [, $iLightnessLevel = 0]]] ) Creates a HueSaturationLightness class effect object (Requires: #include ) -_GDIPlus_EffectCreateLevels ( [$iHighlight = 100 [, $iMidtone = 0 [, $iShadow = 0]]] ) Creates a Levels class effect object (Requires: #include ) -_GDIPlus_EffectCreateRedEyeCorrection ( $aAreas ) Creates a RedEyeCorrection class effect object (Requires: #include ) -_GDIPlus_EffectCreateSharpen ( [$fRadius = 10.0 [, $fAmount = 50.0]] ) Creates a Sharpen class effect object (Requires: #include ) -_GDIPlus_EffectCreateTint ( [$iHue = 0 [, $iAmount = 0]] ) Creates a Tint class effect object (Requires: #include ) -_GDIPlus_EffectDispose ( $hEffect ) Deletes the specified Effect object (Requires: #include ) -_GDIPlus_EffectGetParameters ( $hEffect, $tEffectParameters ) Returns the parameters for the specified Effect object (Requires: #include ) -_GDIPlus_EffectSetParameters ( $hEffect, $tEffectParameters [, $iSizeAdjust = 1] ) Sets the parameters for the specified Effect object (Requires: #include ) -_GDIPlus_Encoders ( ) Get an array of information about the available image encoders (Requires: #include ) -_GDIPlus_EncodersGetCLSID ( $sFileExtension ) Return the encoder CLSID for a specific image file type (Requires: #include ) -_GDIPlus_EncodersGetCount ( ) Get the number of available image encoders (Requires: #include ) -_GDIPlus_EncodersGetParamList ( $hImage, $sEncoder ) Get the parameter list for a specified image encoder (Requires: #include ) -_GDIPlus_EncodersGetParamListSize ( $hImage, $sEncoder ) Get the size of the parameter list for a specified image encoder (Requires: #include ) -_GDIPlus_EncodersGetSize ( ) Get the total size of the structure that is returned by _GDIPlus_GetImageEncoders (Requires: #include ) -_GDIPlus_FontCreate ( $hFamily, $fSize [, $iStyle = 0 [, $iUnit = 3]] ) Create a Font object (Requires: #include ) -_GDIPlus_FontDispose ( $hFont ) Release a Font object (Requires: #include ) -_GDIPlus_FontFamilyCreate ( $sFamily [, $pCollection = 0] ) Create a Font Family object (Requires: #include ) -_GDIPlus_FontFamilyCreateFromCollection ( $sFontName, $hFontCollection ) Creates a FontFamily object based on a specified font family (Requires: #include ) -_GDIPlus_FontFamilyDispose ( $hFamily ) Release a Font Family object (Requires: #include ) -_GDIPlus_FontFamilyGetCellAscent ( $hFontFamily [, $iStyle = 0] ) Gets the cell ascent, in design units, of a font family for the specified style or style combination (Requires: #include ) -_GDIPlus_FontFamilyGetCellDescent ( $hFontFamily [, $iStyle = 0] ) Gets the cell descent, in design units, of a font family for the specified style or style combination (Requires: #include ) -_GDIPlus_FontFamilyGetEmHeight ( $hFontFamily [, $iStyle = 0] ) Gets the size (commonly called em size or em height), in design units, of a font family (Requires: #include ) -_GDIPlus_FontFamilyGetLineSpacing ( $hFontFamily [, $iStyle = 0] ) Gets the line spacing, in design units, of this font family for the specified style or style combination (Requires: #include ) -_GDIPlus_FontGetHeight ( $hFont, $hGraphics ) Gets the line spacing of a font in the current unit of a specified Graphics object (Requires: #include ) -_GDIPlus_FontPrivateAddFont ( $hFontCollection, $sFontFile ) Adds a font file to the private font collection (Requires: #include ) -_GDIPlus_FontPrivateAddMemoryFont ( $hFontCollection, $tFont ) Adds a font that is contained in system memory to a Microsoft® Windows® GDI+ font collection (Requires: #include ) -_GDIPlus_FontPrivateCollectionDispose ( $hFontCollection ) Deletes the specified PrivateFontCollection object (Requires: #include ) -_GDIPlus_FontPrivateCreateCollection ( ) Creates a PrivateFont Collection object (Requires: #include ) -_GDIPlus_GraphicsClear ( $hGraphics [, $iARGB = 0xFF000000] ) Clears a Graphics object to a specified color (Requires: #include ) -_GDIPlus_GraphicsCreateFromHDC ( $hDC ) Create a Graphics object from a device context (DC) (Requires: #include ) -_GDIPlus_GraphicsCreateFromHWND ( $hWnd ) Create a Graphics object from a window handle (Requires: #include ) -_GDIPlus_GraphicsDispose ( $hGraphics ) Release a Graphics object (Requires: #include ) -_GDIPlus_GraphicsDrawArc ( $hGraphics, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle [, $hPen = 0] ) Draw an arc (Requires: #include ) -_GDIPlus_GraphicsDrawBezier ( $hGraphics, $nX1, $nY1, $nX2, $nY2, $nX3, $nY3, $nX4, $nY4 [, $hPen = 0] ) Draw a bezier spline (Requires: #include ) -_GDIPlus_GraphicsDrawClosedCurve ( $hGraphics, $aPoints [, $hPen = 0] ) Draw a closed cardinal spline (Requires: #include ) -_GDIPlus_GraphicsDrawClosedCurve2 ( $hGraphics, $aPoints, $nTension [, $hPen = 0] ) Draws a closed cardinal spline (Requires: #include ) -_GDIPlus_GraphicsDrawCurve ( $hGraphics, $aPoints [, $hPen = 0] ) Draw a cardinal spline (Requires: #include ) -_GDIPlus_GraphicsDrawCurve2 ( $hGraphics, $aPoints, $nTension [, $hPen = 0] ) Draws a cardinal spline (Requires: #include ) -_GDIPlus_GraphicsDrawEllipse ( $hGraphics, $nX, $nY, $nWidth, $nHeight [, $hPen = 0] ) Draw an ellipse (Requires: #include ) -_GDIPlus_GraphicsDrawImage ( $hGraphics, $hImage, $nX, $nY ) Draw an Image object (Requires: #include ) -_GDIPlus_GraphicsDrawImagePointsRect ( $hGraphics, $hImage, $nULX, $nULY, $nURX, $nURY, $nLLX, $nLLY, $nSrcX, $nSrcY, $nSrcWidth, $nSrcHeight [, $hImageAttributes = 0 [, $iUnit = 2]] ) Draws an image (Requires: #include ) -_GDIPlus_GraphicsDrawImageRect ( $hGraphics, $hImage, $nX, $nY, $nW, $nH ) Draws an image at a specified location (Requires: #include ) -_GDIPlus_GraphicsDrawImageRectRect ( $hGraphics, $hImage, $nSrcX, $nSrcY, $nSrcWidth, $nSrcHeight, $nDstX, $nDstY, $nDstWidth, $nDstHeight [, $pAttributes = 0 [, $iUnit = 2]] ) Draw an Image object (Requires: #include ) -_GDIPlus_GraphicsDrawLine ( $hGraphics, $nX1, $nY1, $nX2, $nY2 [, $hPen = 0] ) Draw a line (Requires: #include ) -_GDIPlus_GraphicsDrawPath ( $hGraphics, $hPath [, $hPen = 0] ) Draws a sequence of lines and curves defined by a GraphicsPath object (Requires: #include ) -_GDIPlus_GraphicsDrawPie ( $hGraphics, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle [, $hPen = 0] ) Draw a pie (Requires: #include ) -_GDIPlus_GraphicsDrawPolygon ( $hGraphics, $aPoints [, $hPen = 0] ) Draw a polygon (Requires: #include ) -_GDIPlus_GraphicsDrawRect ( $hGraphics, $nX, $nY, $nWidth, $nHeight [, $hPen = 0] ) Draw a rectangle (Requires: #include ) -_GDIPlus_GraphicsDrawString ( $hGraphics, $sString, $nX, $nY [, $sFont = "Arial" [, $fSize = 10 [, $iFormat = 0]]] ) Draw a string (Requires: #include ) -_GDIPlus_GraphicsDrawStringEx ( $hGraphics, $sString, $hFont, $tLayout, $hFormat, $hBrush ) Draw a string (Requires: #include ) -_GDIPlus_GraphicsFillClosedCurve ( $hGraphics, $aPoints [, $hBrush = 0] ) Fill a closed cardinal spline (Requires: #include ) -_GDIPlus_GraphicsFillClosedCurve2 ( $hGraphics, $aPoints, $nTension [, $hBrush = 0 [, $iFillMode = 0]] ) Creates a closed cardinal spline from an array of points and uses a brush to fill the interior of the spline (Requires: #include ) -_GDIPlus_GraphicsFillEllipse ( $hGraphics, $nX, $nY, $nWidth, $nHeight [, $hBrush = 0] ) Fill an ellipse (Requires: #include ) -_GDIPlus_GraphicsFillPath ( $hGraphics, $hPath [, $hBrush = 0] ) Uses a brush to fill the interior of a path (Requires: #include ) -_GDIPlus_GraphicsFillPie ( $hGraphics, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle [, $hBrush = 0] ) Fill a pie (Requires: #include ) -_GDIPlus_GraphicsFillPolygon ( $hGraphics, $aPoints [, $hBrush = 0] ) Fill a polygon (Requires: #include ) -_GDIPlus_GraphicsFillRect ( $hGraphics, $nX, $nY, $nWidth, $nHeight [, $hBrush = 0] ) Fill a rectangle (Requires: #include ) -_GDIPlus_GraphicsFillRegion ( $hGraphics, $hRegion [, $hBrush = 0] ) Uses a brush to fill a specified region (Requires: #include ) -_GDIPlus_GraphicsGetCompositingMode ( $hGraphics ) Gets the compositing mode currently set for a Graphics object (Requires: #include ) -_GDIPlus_GraphicsGetCompositingQuality ( $hGraphics ) Gets the compositing quality currently set for a Graphics object (Requires: #include ) -_GDIPlus_GraphicsGetDC ( $hGraphics ) Gets a handle to the device context of the Graphics object (Requires: #include ) -_GDIPlus_GraphicsGetInterpolationMode ( $hGraphics ) Gets the interpolation mode currently set for a Graphics object (Requires: #include ) -_GDIPlus_GraphicsGetSmoothingMode ( $hGraphics ) Gets the graphics object rendering quality (Requires: #include ) -_GDIPlus_GraphicsGetTransform ( $hGraphics, $hMatrix ) Gets the world transformation matrix of a Graphics object (Requires: #include ) -_GDIPlus_GraphicsMeasureCharacterRanges ( $hGraphics, $sString, $hFont, $tLayout, $hStringFormat ) Gets a set of region objects each of which bounds a range of character positions within a string (Requires: #include ) -_GDIPlus_GraphicsMeasureString ( $hGraphics, $sString, $hFont, $tLayout, $hFormat ) Measures the size of a string (Requires: #include ) -_GDIPlus_GraphicsReleaseDC ( $hGraphics, $hDC ) Releases the device context of the Graphics object (Requires: #include ) -_GDIPlus_GraphicsResetClip ( $hGraphics ) Sets the clipping region of a Graphics object to an infinite region (Requires: #include ) -_GDIPlus_GraphicsResetTransform ( $hGraphics ) Sets the world transformation matrix of a Graphics object to the identity matrix (Requires: #include ) -_GDIPlus_GraphicsRestore ( $hGraphics, $iState ) Restores the state of a Graphics object to the state stored by a previous call to the _GDIPlus_GraphicsSave method of the Graphics object (Requires: #include ) -_GDIPlus_GraphicsRotateTransform ( $hGraphics, $fAngle [, $iOrder = 0] ) Updates the world transformation matrix of a Graphics object with the product of itself and a rotation matrix (Requires: #include ) -_GDIPlus_GraphicsSave ( $hGraphics ) Saves the current state (transformations, clipping region, and quality settings) of a Graphics object (Requires: #include ) -_GDIPlus_GraphicsScaleTransform ( $hGraphics, $fScaleX, $fScaleY [, $iOrder = 0] ) Updates a Graphics object's world transformation matrix with the product of itself and a scaling matrix (Requires: #include ) -_GDIPlus_GraphicsSetClipPath ( $hGraphics, $hPath [, $iCombineMode = 0] ) Updates the clipping region of this Graphics object to a region that is the combination of itself and the region specified by a graphics path (Requires: #include ) -_GDIPlus_GraphicsSetClipRect ( $hGraphics, $nX, $nY, $nWidth, $nHeight [, $iCombineMode = 0] ) Updates the clipping region of a Graphics object to a region that is the combination of itself and a rectangle (Requires: #include ) -_GDIPlus_GraphicsSetClipRegion ( $hGraphics, $hRegion [, $iCombineMode = 0] ) Updates the clipping region of a Graphics object to a region that is the combination of itself and the region specified by a Region object (Requires: #include ) -_GDIPlus_GraphicsSetCompositingMode ( $hGraphics, $iCompositionMode ) Sets the compositing mode of a Graphics object (Requires: #include ) -_GDIPlus_GraphicsSetCompositingQuality ( $hGraphics, $iCompositionQuality ) Sets the compositing quality of a Graphics object (Requires: #include ) -_GDIPlus_GraphicsSetInterpolationMode ( $hGraphics, $iInterpolationMode ) Sets the interpolation mode of a Graphics object (Requires: #include ) -_GDIPlus_GraphicsSetPixelOffsetMode ( $hGraphics, $iPixelOffsetMode ) Sets the pixel offset mode of a Graphics object (Requires: #include ) -_GDIPlus_GraphicsSetSmoothingMode ( $hGraphics, $iSmooth ) Sets the graphics object rendering quality (Requires: #include ) -_GDIPlus_GraphicsSetTextRenderingHint ( $hGraphics, $iTextRenderingHint ) Sets the contrast value of a Graphics object (Requires: #include ) -_GDIPlus_GraphicsSetTransform ( $hGraphics, $hMatrix ) Sets the world transformation for a graphics object (Requires: #include ) -_GDIPlus_GraphicsTransformPoints ( $hGraphics, ByRef $aPoints [, $iCoordSpaceTo = 0 [, $iCoordSpaceFrom = 1]] ) Converts an array of points from one coordinate space to another (Requires: #include ) -_GDIPlus_GraphicsTranslateTransform ( $hGraphics, $nDX, $nDY [, $iOrder = 0] ) Updates a Graphics object's world transformation matrix with the product of itself and a translation matrix (Requires: #include ) -_GDIPlus_HatchBrushCreate ( [$iHatchStyle = 0 [, $iARGBForeground = 0xFFFFFFFF [, $iARGBBackground = 0xFFFFFFFF]]] ) Creates a HatchBrush object based on a hatch style, a foreground color, and a background color (Requires: #include ) -_GDIPlus_HICONCreateFromBitmap ( $hBitmap ) Creates an icon handle from a bitmap object (Requires: #include ) -_GDIPlus_ImageAttributesCreate ( ) Creates an ImageAttributes object (Requires: #include ) -_GDIPlus_ImageAttributesDispose ( $hImageAttributes ) Releases an ImageAttributes object (Requires: #include ) -_GDIPlus_ImageAttributesSetColorKeys ( $hImageAttributes [, $iColorAdjustType = 0 [, $bEnable = False [, $iARGBLow = 0 [, $iARGBHigh = 0]]]] ) Sets or clears the color key (transparency range) for a specified category (Requires: #include ) -_GDIPlus_ImageAttributesSetColorMatrix ( $hImageAttributes [, $iColorAdjustType = 0 [, $bEnable = False [, $tClrMatrix = 0 [, $tGrayMatrix = 0 [, $iColorMatrixFlags = 0]]]]] ) Sets or clears the color- and grayscale-adjustment matrices for a specified category (Requires: #include ) -_GDIPlus_ImageDispose ( $hImage ) Release an image object (Requires: #include ) -_GDIPlus_ImageGetDimension ( $hImage ) Gets the width and height of an image which is supported by GDIPlus (Requires: #include ) -_GDIPlus_ImageGetFlags ( $hImage ) Returns enumeration of pixel data attributes contained in an image (Requires: #include ) -_GDIPlus_ImageGetGraphicsContext ( $hImage ) Get the graphics context of the image (Requires: #include ) -_GDIPlus_ImageGetHeight ( $hImage ) Get the image height (Requires: #include ) -_GDIPlus_ImageGetHorizontalResolution ( $hImage ) Returns horizontal resolution in DPI (pixels per inch) of an image (Requires: #include ) -_GDIPlus_ImageGetPixelFormat ( $hImage ) Returns pixel format of an image: Bits per pixel, Alpha channels, RGB, Grayscale, Indexed etc (Requires: #include ) -_GDIPlus_ImageGetRawFormat ( $hImage ) Returns file format GUID and image format name of an image (Requires: #include ) -_GDIPlus_ImageGetThumbnail ( $hImage [, $iWidth = 0 [, $iHeight = 0 [, $bKeepRatio = True [, $hCallback = Null [, $hCallbackData = Null]]]]] ) Gets a thumbnail image from this Image object (Requires: #include ) -_GDIPlus_ImageGetType ( $hImage ) Returns type (bitmap or metafile) of an image (Requires: #include ) -_GDIPlus_ImageGetVerticalResolution ( $hImage ) Returns vertical resolution in DPI (pixels per inch) of an image (Requires: #include ) -_GDIPlus_ImageGetWidth ( $hImage ) Get the image width (Requires: #include ) -_GDIPlus_ImageLoadFromFile ( $sFileName ) Create an image object based on a file (Requires: #include ) -_GDIPlus_ImageLoadFromStream ( $pStream ) Creates an Image object based on a stream (Requires: #include ) -_GDIPlus_ImageResize ( $hImage, $iNewWidth, $iNewHeight [, $iInterpolationMode = $GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC] ) Resize an image to a new given size (Requires: #include ) -_GDIPlus_ImageRotateFlip ( $hImage, $iRotateFlipType ) Rotates and flips an image (Requires: #include ) -_GDIPlus_ImageSaveToFile ( $hImage, $sFileName ) Save an image to file (Requires: #include ) -_GDIPlus_ImageSaveToFileEx ( $hImage, $sFileName, $sEncoder [, $tParams = 0] ) Save an image to file (Requires: #include ) -_GDIPlus_ImageSaveToStream ( $hImage, $pStream, $tEncoder [, $tParams = 0] ) Saves an Image object to a stream (Requires: #include ) -_GDIPlus_ImageScale ( $hImage, $iScaleW, $iScaleH [, $iInterpolationMode = $GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC] ) Scales an image by a given factor (Requires: #include ) -_GDIPlus_LineBrushCreate ( $nX1, $nY1, $nX2, $nY2, $iARGBClr1, $iARGBClr2 [, $iWrapMode = 0] ) Creates a LinearGradientBrush object from a set of boundary points and boundary colors (Requires: #include ) -_GDIPlus_LineBrushCreateFromRect ( $tRECTF, $iARGBClr1, $iARGBClr2 [, $iGradientMode = 0 [, $iWrapMode = 0]] ) Creates a LinearGradientBrush object from a rectangle and boundary colors (Requires: #include ) -_GDIPlus_LineBrushCreateFromRectWithAngle ( $tRECTF, $iARGBClr1, $iARGBClr2, $fAngle [, $bIsAngleScalable = True [, $iWrapMode = 0]] ) Creates a LinearGradientBrush object from a rectangle, boundary colors and angle of direction (Requires: #include ) -_GDIPlus_LineBrushGetColors ( $hLineGradientBrush ) Gets the starting color and ending color of a linear gradient brush (Requires: #include ) -_GDIPlus_LineBrushGetRect ( $hLineGradientBrush ) Gets the rectangle that defines the boundaries of a linear gradient brush (Requires: #include ) -_GDIPlus_LineBrushMultiplyTransform ( $hLineGradientBrush, $hMatrix [, $iOrder = 0] ) Updates a brush's transformation matrix with the product of itself and another matrix (Requires: #include ) -_GDIPlus_LineBrushResetTransform ( $hLineGradientBrush ) Resets the transformation matrix of a linear gradient brush to the identity matrix (Requires: #include ) -_GDIPlus_LineBrushSetBlend ( $hLineGradientBrush, $aBlends ) Sets the blend factors and the blend positions of a linear gradient brush to create a custom blend (Requires: #include ) -_GDIPlus_LineBrushSetColors ( $hLineGradientBrush, $iARGBStart, $iARGBEnd ) Sets the starting color and ending color of a linear gradient brush (Requires: #include ) -_GDIPlus_LineBrushSetGammaCorrection ( $hLineGradientBrush [, $bUseGammaCorrection = True] ) Specifies whether gamma correction is enabled for a linear gradient brush (Requires: #include ) -_GDIPlus_LineBrushSetLinearBlend ( $hLineGradientBrush, $fFocus [, $fScale = 1] ) Sets the blend shape of a linear gradient brush to create a custom blend based on a triangular shape (Requires: #include ) -_GDIPlus_LineBrushSetPresetBlend ( $hLineGradientBrush, $aInterpolations ) Sets the colors to be interpolated for a linear gradient brush and their corresponding blend positions (Requires: #include ) -_GDIPlus_LineBrushSetSigmaBlend ( $hLineGradientBrush, $fFocus [, $fScale = 1] ) Sets the blend shape of a linear gradient brush to create a custom blend based on a bell-shaped curve (Requires: #include ) -_GDIPlus_LineBrushSetTransform ( $hLineGradientBrush, $hMatrix ) Sets the transformation matrix of a linear gradient brush (Requires: #include ) -_GDIPlus_MatrixClone ( $hMatrix ) Clones a Matrix object (Requires: #include ) -_GDIPlus_MatrixCreate ( ) Creates and initializes a Matrix object that represents the identity matrix (Requires: #include ) -_GDIPlus_MatrixDispose ( $hMatrix ) Release a matrix object (Requires: #include ) -_GDIPlus_MatrixGetElements ( $hMatrix ) Gets the elements of a matrix (Requires: #include ) -_GDIPlus_MatrixInvert ( $hMatrix ) Replaces the elements of a matrix with the elements of its inverse (Requires: #include ) -_GDIPlus_MatrixMultiply ( $hMatrix1, $hMatrix2 [, $iOrder = 0] ) Updates a matrix with the product of itself and another matrix (Requires: #include ) -_GDIPlus_MatrixRotate ( $hMatrix, $fAngle [, $bAppend = False] ) Updates a matrix with the product of itself and a rotation matrix (Requires: #include ) -_GDIPlus_MatrixScale ( $hMatrix, $fScaleX, $fScaleY [, $bOrder = False] ) Updates a matrix with the product of itself and a scaling matrix (Requires: #include ) -_GDIPlus_MatrixSetElements ( $hMatrix [, $nM11 = 1 [, $nM12 = 0 [, $nM21 = 0 [, $nM22 = 1 [, $nDX = 0 [, $nDY = 0]]]]]] ) Sets the elements of a matrix (Requires: #include ) -_GDIPlus_MatrixShear ( $hMatrix, $fShearX, $fShearY [, $iOrder = 0] ) Updates a matrix with the product of itself and another matrix (Requires: #include ) -_GDIPlus_MatrixTransformPoints ( $hMatrix, ByRef $aPoints ) Multiplies each point in an array by a matrix (Requires: #include ) -_GDIPlus_MatrixTranslate ( $hMatrix, $fOffsetX, $fOffsetY [, $bAppend = False] ) Updates a matrix with the product of itself and a translation matrix (Requires: #include ) -_GDIPlus_PaletteInitialize ( $iEntries [, $iPaletteType = $GDIP_PaletteTypeOptimal [, $iOptimalColors = 0 [, $bUseTransparentColor = True [, $hBitmap = Null]]]] ) Initializes a standard, optimal, or custom color palette (Requires: #include ) -_GDIPlus_ParamAdd ( ByRef $tParams, $sGUID, $iNbOfValues, $iType, $pValues ) Add a value to an encoder parameter list (Requires: #include ) -_GDIPlus_ParamInit ( $iCount ) Allocate an empty encoder parameter list (Requires: #include ) -_GDIPlus_ParamSize ( ) Get an encoder parameter size (Requires: #include ) -_GDIPlus_PathAddArc ( $hPath, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle ) Adds an elliptical arc to the current figure of a path (Requires: #include ) -_GDIPlus_PathAddBezier ( $hPath, $nX1, $nY1, $nX2, $nY2, $nX3, $nY3, $nX4, $nY4 ) Adds a bezier spline to the current figure of a path (Requires: #include ) -_GDIPlus_PathAddClosedCurve ( $hPath, $aPoints ) Adds a closed cardinal spline to a path (Requires: #include ) -_GDIPlus_PathAddClosedCurve2 ( $hPath, $aPoints [, $nTension = 0.5] ) Adds a closed cardinal spline to a path (Requires: #include ) -_GDIPlus_PathAddCurve ( $hPath, $aPoints ) Adds a cardinal spline to the current figure of a path (Requires: #include ) -_GDIPlus_PathAddCurve2 ( $hPath, $aPoints [, $nTension = 0.5] ) Adds a cardinal spline to the current figure of a path (Requires: #include ) -_GDIPlus_PathAddCurve3 ( $hPath, $aPoints, $iOffset, $iNumOfSegments [, $nTension = 0.5] ) Adds a cardinal spline to the current figure of a path (Requires: #include ) -_GDIPlus_PathAddEllipse ( $hPath, $nX, $nY, $nWidth, $nHeight ) Adds an ellipse to the current figure a path (Requires: #include ) -_GDIPlus_PathAddLine ( $hPath, $nX1, $nY1, $nX2, $nY2 ) Adds a line to the current figure of a path (Requires: #include ) -_GDIPlus_PathAddLine2 ( $hPath, $aPoints ) Adds a sequence of lines to the current figure of a path (Requires: #include ) -_GDIPlus_PathAddPath ( $hPath1, $hPath2 [, $bConnect = True] ) Adds a path to another path (Requires: #include ) -_GDIPlus_PathAddPie ( $hPath, $nX, $nY, $nWidth, $nHeight, $fStartAngle, $fSweepAngle ) Adds a pie to a path (Requires: #include ) -_GDIPlus_PathAddPolygon ( $hPath, $aPoints ) Adds a polygon to a path (Requires: #include ) -_GDIPlus_PathAddRectangle ( $hPath, $nX, $nY, $nWidth, $nHeight ) Adds a rectangle to a path (Requires: #include ) -_GDIPlus_PathAddString ( $hPath, $sString, $tLayout, $hFamily [, $iStyle = 0 [, $fSize = 8.5 [, $hFormat = 0]]] ) Adds the outline of a string to a path (Requires: #include ) -_GDIPlus_PathBrushCreate ( $aPoints [, $iWrapMode = 0] ) Creates a PathGradientBrush object based on an array of points and initializes the wrap mode of the brush (Requires: #include ) -_GDIPlus_PathBrushCreateFromPath ( $hPath ) Creates a PathGradientBrush object based on a GraphicsPath object (Requires: #include ) -_GDIPlus_PathBrushGetCenterPoint ( $hPathGradientBrush ) Gets the center point of a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushGetFocusScales ( $hPathGradientBrush ) Gets the focus scales of a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushGetPointCount ( $hPathGradientBrush ) Gets the number of points in the array of points that defines a brush's boundary path (Requires: #include ) -_GDIPlus_PathBrushGetRect ( $hPathGradientBrush ) Gets the smallest rectangle that encloses the boundary path of a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushGetWrapMode ( $hPathGradientBrush ) Gets the wrap mode currently set for a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushMultiplyTransform ( $hPathGradientBrush, $hMatrix [, $iOrder = 0] ) Updates a brush's transformation matrix with the product of itself and another matrix (Requires: #include ) -_GDIPlus_PathBrushResetTransform ( $hPathGradientBrush ) Resets the transformation matrix of a path gradient brush to the identity matrix (Requires: #include ) -_GDIPlus_PathBrushSetBlend ( $hPathGradientBrush, $aBlends ) Sets the blend factors and the blend positions of a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushSetCenterColor ( $hPathGradientBrush, $iARGB ) Sets the color of the center point of a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushSetCenterPoint ( $hPathGradientBrush, $nX, $nY ) Sets the center point of a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushSetFocusScales ( $hPathGradientBrush, $fScaleX, $fScaleY ) Sets the focus scales of a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushSetGammaCorrection ( $hPathGradientBrush, $bUseGammaCorrection ) Specifies whether gamma correction is enabled for a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushSetLinearBlend ( $hPathGradientBrush, $fFocus [, $fScale = 1] ) Sets the blend shape of a path gradient brush to create a custom blend based on a triangular shape (Requires: #include ) -_GDIPlus_PathBrushSetPresetBlend ( $hPathGradientBrush, $aInterpolations ) Sets the preset colors and the blend positions of a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushSetSigmaBlend ( $hPathGradientBrush, $fFocus [, $fScale = 1] ) Sets the blend shape of a path gradient brush to create a custom blend based on a bell-shaped curve (Requires: #include ) -_GDIPlus_PathBrushSetSurroundColor ( $hPathGradientBrush, $iARGB ) Sets the surround color for a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushSetSurroundColorsWithCount ( $hPathGradientBrush, $aColors ) Sets the surround colors currently specified for a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushSetTransform ( $hPathGradientBrush, $hMatrix ) Sets the transformation matrix of a path gradient brush (Requires: #include ) -_GDIPlus_PathBrushSetWrapMode ( $hPathGradientBrush, $iWrapMode ) Sets the wrap mode of a path gradient brush (Requires: #include ) -_GDIPlus_PathClone ( $hPath ) Clones a path (Requires: #include ) -_GDIPlus_PathCloseFigure ( $hPath ) Closes the current figure of a path (Requires: #include ) -_GDIPlus_PathCreate ( [$iFillMode = 0] ) Creates a GraphicsPath object and initializes the fill mode (Requires: #include ) -_GDIPlus_PathCreate2 ( $aPathData [, $iFillMode = 0] ) Creates a GraphicsPath object based on an array of points, an array of types, and a fill mode (Requires: #include ) -_GDIPlus_PathDispose ( $hPath ) Releases a GraphicsPath object (Requires: #include ) -_GDIPlus_PathFlatten ( $hPath [, $fFlatness = 0.25 [, $hMatrix = 0]] ) Applies a transformation to a path and converts each curve in the path to a sequence of connected lines (Requires: #include ) -_GDIPlus_PathGetData ( $hPath ) Gets an array of points and types from a path (Requires: #include ) -_GDIPlus_PathGetFillMode ( $hPath ) Gets the fill mode of a path (Requires: #include ) -_GDIPlus_PathGetLastPoint ( $hPath ) Gets the ending point of the last figure in a path (Requires: #include ) -_GDIPlus_PathGetPointCount ( $hPath ) Gets the number of points in a path's array of data points (Requires: #include ) -_GDIPlus_PathGetPoints ( $hPath ) Gets an array of points from a path (Requires: #include ) -_GDIPlus_PathGetWorldBounds ( $hPath [, $hMatrix = 0 [, $hPen = 0]] ) Gets the bounding rectangle for a path (Requires: #include ) -_GDIPlus_PathIsOutlineVisiblePoint ( $hPath, $nX, $nY [, $hPen = 0 [, $hGraphics = 0]] ) Determines whether a specified point touches the outline of a path with the specified Graphics and Pen (Requires: #include ) -_GDIPlus_PathIsVisiblePoint ( $hPath, $nX, $nY [, $hGraphics = 0] ) Determines whether a specified point lies in the area that is filled when a path is filled by a specified Graphics object (Requires: #include ) -_GDIPlus_PathIterCreate ( $hPath ) Creates a new GraphicsPathIterator object and associates it with a GraphicsPath object (Requires: #include ) -_GDIPlus_PathIterDispose ( $hPathIter ) Releases a GraphicsPathIterator object (Requires: #include ) -_GDIPlus_PathIterGetSubpathCount ( $hPathIter ) Gets the number of subpaths (also called figures) in the path (Requires: #include ) -_GDIPlus_PathIterNextMarkerPath ( $hPathIter, $hPath ) Gets the next marker-delimited section of an iterator's associated path (Requires: #include ) -_GDIPlus_PathIterNextSubpathPath ( $hPathIter, $hPath ) Gets the next figure (subpath) from an iterator's associated path (Requires: #include ) -_GDIPlus_PathIterRewind ( $hPathIter ) Rewinds an iterator to the beginning of its associated path (Requires: #include ) -_GDIPlus_PathReset ( $hPath ) Empties a path and sets the fill mode to alternate (0) (Requires: #include ) -_GDIPlus_PathReverse ( $hPath ) Reverses the order of the points that define a path's lines and curves (Requires: #include ) -_GDIPlus_PathSetFillMode ( $hPath, $iFillMode ) Sets the fill mode of a path (Requires: #include ) -_GDIPlus_PathSetMarker ( $hPath ) Designates the last point in a path as a marker point (Requires: #include ) -_GDIPlus_PathStartFigure ( $hPath ) Starts a new figure without closing the current figure. Subsequent points added to a path are added to the new figure (Requires: #include ) -_GDIPlus_PathTransform ( $hPath, $hMatrix ) Multiplies each of a path's data points by a specified matrix (Requires: #include ) -_GDIPlus_PathWarp ( $hPath, $hMatrix, $aPoints, $nX, $nY, $nWidth, $nHeight [, $iWarpMode = 0 [, $fFlatness = 0.25]] ) Applies a warp transformation to a path. The function also flattens (converts to a sequence of straight lines) the path (Requires: #include ) -_GDIPlus_PathWiden ( $hPath, $hPen [, $hMatrix = 0 [, $fFlatness = 0.25]] ) Replaces a path with curves that enclose the area that is filled when the path is drawn by a specified pen. The function also flattens the path (Requires: #include ) -_GDIPlus_PathWindingModeOutline ( $hPath [, $hMatrix = 0 [, $fFlatness = 0.25]] ) Transforms and flattens a path, and then converts the path's data points so that they represent only the outline of the path (Requires: #include ) -_GDIPlus_PenCreate ( [$iARGB = 0xFF000000 [, $nWidth = 1 [, $iUnit = 2]]] ) Create a pen object (Requires: #include ) -_GDIPlus_PenCreate2 ( $hBrush [, $nWidth = 1 [, $iUnit = 2]] ) Creates a Pen object that uses the attributes of a brush (Requires: #include ) -_GDIPlus_PenDispose ( $hPen ) Release a pen object (Requires: #include ) -_GDIPlus_PenGetAlignment ( $hPen ) Gets the pen alignment (Requires: #include ) -_GDIPlus_PenGetColor ( $hPen ) Gets the pen color (Requires: #include ) -_GDIPlus_PenGetCustomEndCap ( $hPen ) Gets the custom end cap for the pen (Requires: #include ) -_GDIPlus_PenGetDashCap ( $hPen ) Gets the pen dash cap style (Requires: #include ) -_GDIPlus_PenGetDashStyle ( $hPen ) Gets the pen dash style (Requires: #include ) -_GDIPlus_PenGetEndCap ( $hPen ) Gets the pen end cap (Requires: #include ) -_GDIPlus_PenGetMiterLimit ( $hPen ) Gets the miter length currently set for a Pen object (Requires: #include ) -_GDIPlus_PenGetWidth ( $hPen ) Retrieve the width of a pen (Requires: #include ) -_GDIPlus_PenSetAlignment ( $hPen [, $iAlignment = 0] ) Sets the pen alignment (Requires: #include ) -_GDIPlus_PenSetColor ( $hPen, $iARGB ) Sets the pen color (Requires: #include ) -_GDIPlus_PenSetCustomEndCap ( $hPen, $hEndCap ) Sets the custom end cap for the pen (Requires: #include ) -_GDIPlus_PenSetDashCap ( $hPen [, $iDash = 0] ) Sets the pen dash cap style (Requires: #include ) -_GDIPlus_PenSetDashStyle ( $hPen [, $iStyle = 0] ) Sets the pen dash style (Requires: #include ) -_GDIPlus_PenSetEndCap ( $hPen, $iEndCap ) Sets the pen end cap (Requires: #include ) -_GDIPlus_PenSetLineCap ( $hPen, $iStartCap, $iEndCap, $iDashCap ) Sets the cap styles for the start, end, and dashes in a line drawn with the pen (Requires: #include ) -_GDIPlus_PenSetLineJoin ( $hPen, $iLineJoin ) Sets the line join for a Pen object (Requires: #include ) -_GDIPlus_PenSetMiterLimit ( $hPen, $fMiterLimit ) Sets the miter limit of a Pen object (Requires: #include ) -_GDIPlus_PenSetStartCap ( $hPen, $iLineCap ) Sets the start cap for a Pen object (Requires: #include ) -_GDIPlus_PenSetWidth ( $hPen, $fWidth ) Sets the width of a pen (Requires: #include ) -_GDIPlus_RectFCreate ( [$nX = 0 [, $nY = 0 [, $nWidth = 0 [, $nHeight = 0]]]] ) Create a $tagGDIPRECTF structure (Requires: #include ) -_GDIPlus_RegionClone ( $hRegion ) Clones a Region object (Requires: #include ) -_GDIPlus_RegionCombinePath ( $hRegion, $hPath [, $iCombineMode = 2] ) Updates a region to the portion of itself that intersects the specified path's interior (Requires: #include ) -_GDIPlus_RegionCombineRect ( $hRegion, $nX, $nY, $nWidth, $nHeight [, $iCombineMode = 2] ) Updates a region to the portion of itself that intersects the specified rectangle's interior (Requires: #include ) -_GDIPlus_RegionCombineRegion ( $hRegionDst, $hRegionSrc [, $iCombineMode = 2] ) Updates a region to the portion of itself that intersects another region (Requires: #include ) -_GDIPlus_RegionCreate ( ) Creates a region that is infinite (Requires: #include ) -_GDIPlus_RegionCreateFromPath ( $hPath ) Creates a region that is defined by a path object and has a fill mode that is contained in the path object (Requires: #include ) -_GDIPlus_RegionCreateFromRect ( $nX, $nY, $nWidth, $nHeight ) Creates a region that is defined by a rectangle (Requires: #include ) -_GDIPlus_RegionDispose ( $hRegion ) Releases a Region object (Requires: #include ) -_GDIPlus_RegionGetBounds ( $hRegion, $hGraphics ) Gets a rectangle that encloses a region (Requires: #include ) -_GDIPlus_RegionGetHRgn ( $hRegion [, $hGraphics = 0] ) Creates a GDI region from a GDI+ Region object (Requires: #include ) -_GDIPlus_RegionTransform ( $hRegion, $hMatrix ) Tansforms a region by multiplying each of its data points by a specified matrix (Requires: #include ) -_GDIPlus_RegionTranslate ( $hRegion, $nDX, $nDY ) Offsets a region by specified amounts in the horizontal and vertical directions (Requires: #include ) -_GDIPlus_Shutdown ( ) Clean up resources used by Microsoft Windows GDI+ (Requires: #include ) -_GDIPlus_Startup ( [$sGDIPDLL = Default [, $bRetDllHandle = False]] ) Initialize Microsoft Windows GDI+ (Requires: #include ) -_GDIPlus_StringFormatCreate ( [$iFormat = 0 [, $iLangID = 0]] ) Create a String Format object (Requires: #include ) -_GDIPlus_StringFormatDispose ( $hFormat ) Release a String Format object (Requires: #include ) -_GDIPlus_StringFormatGetMeasurableCharacterRangeCount ( $hStringFormat ) Gets the number of measurable character ranges that are currently set for a StringFormat object (Requires: #include ) -_GDIPlus_StringFormatSetAlign ( $hStringFormat, $iFlag ) Sets the text alignment of a string format object (Requires: #include ) -_GDIPlus_StringFormatSetLineAlign ( $hStringFormat, $iStringAlign ) Sets the line alignment of a StringFormat object in relation to the origin of a layout rectangle (Requires: #include ) -_GDIPlus_StringFormatSetMeasurableCharacterRanges ( $hStringFormat, $aRanges ) Sets a series of character ranges for a StringFormat object that, when in a string, can be measured (Requires: #include ) -_GDIPlus_TextureCreate ( $hImage [, $iWrapMode = 0] ) Creates a TextureBrush object based on an image and a wrap mode (Requires: #include ) -_GDIPlus_TextureCreate2 ( $hImage, $nX, $nY, $nWidth, $nHeight [, $iWrapMode = 0] ) Creates a TextureBrush object based on an image, a wrap mode and a defining rectangle (Requires: #include ) -_GDIPlus_TextureCreateIA ( $hImage, $nX, $nY, $nWidth, $nHeight [, $pImageAttributes = 0] ) Creates a TextureBrush object based on an image, a defining rectangle, and a set of image properties (Requires: #include ) -_GetIP ( ) Get public IP address of a network/computer (Requires: #include ) -_GUICtrlAVI_Close ( $hWnd ) Closes an AVI clip (Requires: #include ) -_GUICtrlAVI_Create ( $hWnd [, $sFilePath = "" [, $iSubFileID = -1 [, $iX = 0 [, $iY = 0 [, $iWidth = 0 [, $iHeight = 0 [, $iStyle = 0x00000006 [, $iExStyle = 0x00000000]]]]]]]] ) Creates an AVI control (Requires: #include ) -_GUICtrlAVI_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlAVI_IsPlaying ( $hWnd ) Checks whether an Audio-Video Interleaved (AVI) clip is playing (Requires: #include ) -_GUICtrlAVI_Open ( $hWnd, $sFileName ) Opens an AVI clip and displays its first frame in an animation control (Requires: #include ) -_GUICtrlAVI_OpenEx ( $hWnd, $sFileName, $iResourceID ) Opens an AVI clip and displays its first frame in an animation control (Requires: #include ) -_GUICtrlAVI_Play ( $hWnd [, $iFrom = 0 [, $iTo = -1 [, $iRepeat = -1]]] ) Plays an AVI clip in an animation control (Requires: #include ) -_GUICtrlAVI_Seek ( $hWnd, $iFrame ) Directs an AVI control to display a particular frame of an AVI clip (Requires: #include ) -_GUICtrlAVI_Show ( $hWnd, $iState ) Show/Hide the AVI control (Requires: #include ) -_GUICtrlAVI_Stop ( $hWnd ) Stops playing an AVI clip (Requires: #include ) -_GUICtrlButton_Click ( $hWnd ) Simulates the user clicking a button (Requires: #include ) -_GUICtrlButton_Create ( $hWnd, $sText, $iX, $iY, $iWidth, $iHeight [, $iStyle = -1 [, $iExStyle = -1]] ) Creates a Button control (Requires: #include ) -_GUICtrlButton_Destroy ( ByRef $hWnd ) Delete the Button control (Requires: #include ) -_GUICtrlButton_Enable ( $hWnd [, $bEnable = True] ) Enables or disables mouse and keyboard input to the specified button (Requires: #include ) -_GUICtrlButton_GetCheck ( $hWnd ) Gets the check state of a radio button or check box (Requires: #include ) -_GUICtrlButton_GetFocus ( $hWnd ) Retrieves if the button has keyboard focus (Requires: #include ) -_GUICtrlButton_GetIdealSize ( $hWnd ) Gets the size of the button that best fits its text and image, if an image list is present (Requires: #include ) -_GUICtrlButton_GetImage ( $hWnd ) Retrieves a handle to the image (icon or bitmap) associated with the button (Requires: #include ) -_GUICtrlButton_GetImageList ( $hWnd ) Retrieves an array that describes the image list assigned to a button control (Requires: #include ) -_GUICtrlButton_GetNote ( $hWnd ) Gets the text of the note associated with the Command Link button (Requires: #include ) -_GUICtrlButton_GetNoteLength ( $hWnd ) Gets the length of the note text that may be displayed in the description for a command link button (Requires: #include ) -_GUICtrlButton_GetSplitInfo ( $hWnd ) Gets information for a split button control (Requires: #include ) -_GUICtrlButton_GetState ( $hWnd ) Determines the state of a button or check box (Requires: #include ) -_GUICtrlButton_GetText ( $hWnd ) Retrieve the text of the button (Requires: #include ) -_GUICtrlButton_GetTextMargin ( $hWnd ) Gets the margins used to draw text in a button control (Requires: #include ) -_GUICtrlButton_SetCheck ( $hWnd [, $iState = $BST_CHECKED] ) Sets the check state of a radio button or check box (Requires: #include ) -_GUICtrlButton_SetDontClick ( $hWnd [, $bState = True] ) Sets the state of $BST_DONTCLICK flag on a button (Requires: #include ) -_GUICtrlButton_SetFocus ( $hWnd [, $bFocus = True] ) Sets the keyboard focus to the specified button (Requires: #include ) -_GUICtrlButton_SetImage ( $hWnd, $sImageFile [, $iIconID = -1 [, $bLarge = False]] ) Sets the image of a button (Requires: #include ) -_GUICtrlButton_SetImageList ( $hWnd, $hImage [, $iAlign = 0 [, $iLeft = 1 [, $iTop = 1 [, $iRight = 1 [, $iBottom = 1]]]]] ) Assigns an image list to a button control (Requires: #include ) -_GUICtrlButton_SetNote ( $hWnd, $sNote ) Sets the text of the note associated with a command link button (Requires: #include ) -_GUICtrlButton_SetShield ( $hWnd [, $bRequired = True] ) Sets the elevation required state for a specified button or command link to display an elevated icon (Requires: #include ) -_GUICtrlButton_SetSize ( $hWnd, $iWidth, $iHeight ) Sets the size of the button (Requires: #include ) -_GUICtrlButton_SetSplitInfo ( $hWnd [, $hImlGlyph = -1 [, $iSplitStyle = $BCSS_ALIGNLEFT [, $iWidth = 0 [, $iHeight = 0]]]] ) Gets information for a split button control (Requires: #include ) -_GUICtrlButton_SetState ( $hWnd [, $bHighlighted = True] ) Sets the highlight state of a button. The highlight state indicates whether the button is highlighted as if the user had pushed it (Requires: #include ) -_GUICtrlButton_SetStyle ( $hWnd, $iStyle ) Sets the style of a button (Requires: #include ) -_GUICtrlButton_SetText ( $hWnd, $sText ) Sets the text of the button (Requires: #include ) -_GUICtrlButton_SetTextMargin ( $hWnd [, $iLeft = 1 [, $iTop = 1 [, $iRight = 1 [, $iBottom = 1]]]] ) Sets the margins for drawing text in a button control (Requires: #include ) -_GUICtrlButton_Show ( $hWnd [, $bShow = True] ) Show/Hide button (Requires: #include ) -_GUICtrlComboBox_AddDir ( $hWnd, $sFilePath [, $iAttributes = 0 [, $bBrackets = True]] ) Adds the names of directories and files (Requires: #include ) -_GUICtrlComboBox_AddString ( $hWnd, $sText ) Add a string (Requires: #include ) -_GUICtrlComboBox_AutoComplete ( $hWnd ) AutoComplete a ComboBox edit control (Requires: #include ) -_GUICtrlComboBox_BeginUpdate ( $hWnd ) Prevents updating of the control until the EndUpdate function is called (Requires: #include ) -_GUICtrlComboBox_Create ( $hWnd, $sText, $iX, $iY [, $iWidth = 100 [, $iHeight = 120 [, $iStyle = 0x00200042 [, $iExStyle = 0x00000000]]]] ) Create a ComboBox control (Requires: #include ) -_GUICtrlComboBox_DeleteString ( $hWnd, $iIndex ) Delete a string (Requires: #include ) -_GUICtrlComboBox_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlComboBox_EndUpdate ( $hWnd ) Enables screen repainting that was turned off with the BeginUpdate function (Requires: #include ) -_GUICtrlComboBox_FindString ( $hWnd, $sText [, $iIndex = -1] ) Search for a string (Requires: #include ) -_GUICtrlComboBox_FindStringExact ( $hWnd, $sText [, $iIndex = -1] ) Search for a string (Requires: #include ) -_GUICtrlComboBox_GetComboBoxInfo ( $hWnd, ByRef $tInfo ) Gets information about the specified ComboBox (Requires: #include ) -_GUICtrlComboBox_GetCount ( $hWnd ) Retrieve the number of items (Requires: #include ) -_GUICtrlComboBox_GetCueBanner ( $hWnd ) Gets the cue banner text displayed in the edit control of a combo box (Requires: #include ) -_GUICtrlComboBox_GetCurSel ( $hWnd ) Retrieve the index of the currently selected item (Requires: #include ) -_GUICtrlComboBox_GetDroppedControlRect ( $hWnd ) Retrieve the screen coordinates of a combo box in its dropped-down state (Requires: #include ) -_GUICtrlComboBox_GetDroppedControlRectEx ( $hWnd ) Retrieve the screen coordinates of a combo box in its dropped-down state (Requires: #include ) -_GUICtrlComboBox_GetDroppedState ( $hWnd ) Determines whether the ListBox of a ComboBox is dropped down (Requires: #include ) -_GUICtrlComboBox_GetDroppedWidth ( $hWnd ) Retrieve the minimum allowable width, of the ListBox of a ComboBox (Requires: #include ) -_GUICtrlComboBox_GetEditSel ( $hWnd ) Gets the starting and ending character positions of the current selection in the edit control of a ComboBox (Requires: #include ) -_GUICtrlComboBox_GetEditText ( $hWnd ) Get the text from the edit control of a ComboBox (Requires: #include ) -_GUICtrlComboBox_GetExtendedUI ( $hWnd ) Determines whether a ComboBox has the default user interface or the extended user interface (Requires: #include ) -_GUICtrlComboBox_GetHorizontalExtent ( $hWnd ) Gets the width, in pixels, that the ListBox of a ComboBox control can be scrolled horizontally (Requires: #include ) -_GUICtrlComboBox_GetItemHeight ( $hWnd [, $iIndex = -1] ) Determines the height of list items or the selection field in a ComboBox (Requires: #include ) -_GUICtrlComboBox_GetLBText ( $hWnd, $iIndex, ByRef $sText ) Retrieve a string from the list of a ComboBox (Requires: #include ) -_GUICtrlComboBox_GetLBTextLen ( $hWnd, $iIndex ) Gets the length, in characters, of a string in the list of a combo box (Requires: #include ) -_GUICtrlComboBox_GetList ( $hWnd ) Retrieves all items from the list portion of a ComboBox control (Requires: #include ) -_GUICtrlComboBox_GetListArray ( $hWnd ) Retrieves all items from the list portion of a ComboBox control (Requires: #include ) -_GUICtrlComboBox_GetLocale ( $hWnd ) Retrieves the current locale (Requires: #include ) -_GUICtrlComboBox_GetLocaleCountry ( $hWnd ) Retrieves the current country code (Requires: #include ) -_GUICtrlComboBox_GetLocaleLang ( $hWnd ) Retrieves the current language identifier (Requires: #include ) -_GUICtrlComboBox_GetLocalePrimLang ( $hWnd ) Extract primary language id from a language id (Requires: #include ) -_GUICtrlComboBox_GetLocaleSubLang ( $hWnd ) Extract sublanguage id from a language id (Requires: #include ) -_GUICtrlComboBox_GetMinVisible ( $hWnd ) Retrieve the minimum number of visible items in the drop-down list of a ComboBox (Requires: #include ) -_GUICtrlComboBox_GetTopIndex ( $hWnd ) Retrieve the 0-based index of the first visible item in the ListBox portion of a ComboBox (Requires: #include ) -_GUICtrlComboBox_InitStorage ( $hWnd, $iNum, $iBytes ) Allocates memory for storing ListBox items (Requires: #include ) -_GUICtrlComboBox_InsertString ( $hWnd, $sText [, $iIndex = -1] ) Insert a string (Requires: #include ) -_GUICtrlComboBox_LimitText ( $hWnd [, $iLimit = 0] ) Limits the length of the text the user may type into the edit control of a ComboBox (Requires: #include ) -_GUICtrlComboBox_ReplaceEditSel ( $hWnd, $sText ) Replace text selected in edit box (Requires: #include ) -_GUICtrlComboBox_ResetContent ( $hWnd ) Remove all items from the ListBox and edit control of a ComboBox (Requires: #include ) -_GUICtrlComboBox_SelectString ( $hWnd, $sText [, $iIndex = -1] ) Searches the ListBox of a ComboBox for an item that begins with the characters in a specified string (Requires: #include ) -_GUICtrlComboBox_SetCueBanner ( $hWnd, $sText ) Sets the cue banner text that is displayed for the edit control of a combo box (Requires: #include ) -_GUICtrlComboBox_SetCurSel ( $hWnd [, $iIndex = -1] ) Select a string in the list of a ComboBox (Requires: #include ) -_GUICtrlComboBox_SetDroppedWidth ( $hWnd, $iWidth ) Set the maximum allowable width, in pixels, of the ListBox of a ComboBox (Requires: #include ) -_GUICtrlComboBox_SetEditSel ( $hWnd, $iStart, $iStop ) Select characters in the edit control of a ComboBox (Requires: #include ) -_GUICtrlComboBox_SetEditText ( $hWnd, $sText ) Set the text of the edit control of the ComboBox (Requires: #include ) -_GUICtrlComboBox_SetExtendedUI ( $hWnd [, $bExtended = False] ) Select either the default user interface or the extended user interface (Requires: #include ) -_GUICtrlComboBox_SetHorizontalExtent ( $hWnd, $iWidth ) Set the width, in pixels, by which a list box can be scrolled horizontally (Requires: #include ) -_GUICtrlComboBox_SetItemHeight ( $hWnd, $iHeight [, $iComponent = -1] ) Set the height of list items or the selection field in a ComboBox (Requires: #include ) -_GUICtrlComboBox_SetMinVisible ( $hWnd, $iMinimum ) Set the minimum number of visible items in the drop-down list of a ComboBox (Requires: #include ) -_GUICtrlComboBox_SetTopIndex ( $hWnd, $iIndex ) Ensure that a particular item is visible in the ListBox of a ComboBox (Requires: #include ) -_GUICtrlComboBox_ShowDropDown ( $hWnd [, $bShow = False] ) Show or hide the ListBox of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_AddDir ( $hWnd, $sFilePath [, $iAttributes = 0 [, $bBrackets = True]] ) Adds the names of directories and files (Requires: #include ) -_GUICtrlComboBoxEx_AddString ( $hWnd, $sText [, $iImage = -1 [, $iSelectedImage = -1 [, $iOverlayImage = -1 [, $iIndent = -1 [, $iParam = -1]]]]] ) Add a string (Requires: #include ) -_GUICtrlComboBoxEx_BeginUpdate ( $hWnd ) Prevents updating of the control until the EndUpdate function is called (Requires: #include ) -_GUICtrlComboBoxEx_Create ( $hWnd, $sText, $iX, $iY [, $iWidth = 100 [, $iHeight = 200 [, $iStyle = 0x00200002 [, $iExStyle = 0x00000000]]]] ) Create a ComboBoxEx control (Requires: #include ) -_GUICtrlComboBoxEx_CreateSolidBitMap ( $hWnd, $iColor, $iWidth, $iHeight ) Creates a solid color bitmap (Requires: #include ) -_GUICtrlComboBoxEx_DeleteString ( $hWnd, $iIndex ) Removes an item from a ComboBoxEx control (Requires: #include ) -_GUICtrlComboBoxEx_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlComboBoxEx_EndUpdate ( $hWnd ) Enables screen repainting that was turned off with the BeginUpdate function (Requires: #include ) -_GUICtrlComboBoxEx_FindStringExact ( $hWnd, $sText [, $iIndex = -1] ) Search for a string (Requires: #include ) -_GUICtrlComboBoxEx_GetComboBoxInfo ( $hWnd, ByRef $tInfo ) Gets information about the specified ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_GetComboControl ( $hWnd ) Gets the handle to the child combo box control (Requires: #include ) -_GUICtrlComboBoxEx_GetCount ( $hWnd ) Retrieve the number of items (Requires: #include ) -_GUICtrlComboBoxEx_GetCurSel ( $hWnd ) Retrieve the index of the currently selected item (Requires: #include ) -_GUICtrlComboBoxEx_GetDroppedControlRect ( $hWnd ) Retrieve the screen coordinates of a combo box in its dropped-down state (Requires: #include ) -_GUICtrlComboBoxEx_GetDroppedControlRectEx ( $hWnd ) Retrieve the screen coordinates of a combo box in its dropped-down state (Requires: #include ) -_GUICtrlComboBoxEx_GetDroppedState ( $hWnd ) Determines whether the ListBox of a ComboBox is dropped down (Requires: #include ) -_GUICtrlComboBoxEx_GetDroppedWidth ( $hWnd ) Retrieve the minimum allowable width, of the ListBox of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_GetEditControl ( $hWnd ) Gets the handle to the edit control portion of a ComboBoxEx control (Requires: #include ) -_GUICtrlComboBoxEx_GetEditSel ( $hWnd ) Gets the starting and ending character positions of the current selection in the edit control of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_GetEditText ( $hWnd ) Get the text from the edit control of a ComboBoxEx (Requires: #include ) -_GUICtrlComboBoxEx_GetExtendedStyle ( $hWnd ) Gets the extended styles that are in use for a ComboBoxEx control (Requires: #include ) -_GUICtrlComboBoxEx_GetExtendedUI ( $hWnd ) Determines whether a ComboBox has the default user interface or the extended user interface (Requires: #include ) -_GUICtrlComboBoxEx_GetImageList ( $hWnd ) Retrieves the handle to an image list assigned to a ComboBoxEx control (Requires: #include ) -_GUICtrlComboBoxEx_GetItem ( $hWnd, $iIndex ) Retrieves an item's attributes (Requires: #include ) -_GUICtrlComboBoxEx_GetItemEx ( $hWnd, ByRef $tItem ) Retrieves some or all of an item's attributes (Requires: #include ) -_GUICtrlComboBoxEx_GetItemHeight ( $hWnd [, $iComponent = -1] ) Determines the height of list items or the selection field in a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_GetItemImage ( $hWnd, $iIndex ) Retrieves the index of the item's icon (Requires: #include ) -_GUICtrlComboBoxEx_GetItemIndent ( $hWnd, $iIndex ) Retrieves the number of image widths the item is indented (Requires: #include ) -_GUICtrlComboBoxEx_GetItemOverlayImage ( $hWnd, $iIndex ) Retrieves the index of the item's overlay image icon (Requires: #include ) -_GUICtrlComboBoxEx_GetItemParam ( $hWnd, $iIndex ) Retrieves the application specific value of the item (Requires: #include ) -_GUICtrlComboBoxEx_GetItemSelectedImage ( $hWnd, $iIndex ) Retrieves the index of the item's selected image icon (Requires: #include ) -_GUICtrlComboBoxEx_GetItemText ( $hWnd, $iIndex, ByRef $sText ) Retrieve a string from the list of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_GetItemTextLen ( $hWnd, $iIndex ) Gets the length, in characters, of a string in the list of a combo box (Requires: #include ) -_GUICtrlComboBoxEx_GetList ( $hWnd ) Retrieves all items from the list portion of a ComboBox control (Requires: #include ) -_GUICtrlComboBoxEx_GetListArray ( $hWnd ) Retrieves all items from the list portion of a ComboBox control (Requires: #include ) -_GUICtrlComboBoxEx_GetLocale ( $hWnd ) Retrieves the current locale (Requires: #include ) -_GUICtrlComboBoxEx_GetLocaleCountry ( $hWnd ) Retrieves the current country code (Requires: #include ) -_GUICtrlComboBoxEx_GetLocaleLang ( $hWnd ) Retrieves the current language identifier (Requires: #include ) -_GUICtrlComboBoxEx_GetLocalePrimLang ( $hWnd ) Extract primary language id from a language id (Requires: #include ) -_GUICtrlComboBoxEx_GetLocaleSubLang ( $hWnd ) Extract sublanguage id from a language id (Requires: #include ) -_GUICtrlComboBoxEx_GetMinVisible ( $hWnd ) Retrieve the minimum number of visible items in the drop-down list of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_GetTopIndex ( $hWnd ) Retrieve the 0-based index of the first visible item in the ListBox portion of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_GetUnicode ( $hWnd ) Retrieves if control is using Unicode (Requires: #include ) -_GUICtrlComboBoxEx_InitStorage ( $hWnd, $iNum, $iBytes ) Allocates memory for storing ListBox items (Requires: #include ) -_GUICtrlComboBoxEx_InsertString ( $hWnd, $sText [, $iIndex = -1 [, $iImage = -1 [, $iSelectedImage = -1 [, $iOverlayImage = -1 [, $iIndent = -1 [, $iParam = -1]]]]]] ) Inserts a new item in the control (Requires: #include ) -_GUICtrlComboBoxEx_LimitText ( $hWnd [, $iLimit = 0] ) Limits the length of the text the user may type into the edit control of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_ReplaceEditSel ( $hWnd, $sText ) Replace text selected in edit box (Requires: #include ) -_GUICtrlComboBoxEx_ResetContent ( $hWnd ) Removes all items (Requires: #include ) -_GUICtrlComboBoxEx_SetCurSel ( $hWnd [, $iIndex = -1] ) Select a string in the list of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_SetDroppedWidth ( $hWnd, $iWidth ) Set the maximum allowable width, in pixels, of the ListBox of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_SetEditSel ( $hWnd, $iStart, $iStop ) Select characters in the edit control of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_SetEditText ( $hWnd, $sText ) Set the text of the edit control of the ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_SetExtendedStyle ( $hWnd, $iExStyle [, $iExMask = 0] ) Sets extended styles within a ComboBoxEx control (Requires: #include ) -_GUICtrlComboBoxEx_SetExtendedUI ( $hWnd [, $bExtended = False] ) Select either the default user interface or the extended user interface (Requires: #include ) -_GUICtrlComboBoxEx_SetImageList ( $hWnd, $hHandle ) Sets an image list for a ComboBoxEx control (Requires: #include ) -_GUICtrlComboBoxEx_SetItem ( $hWnd, $sText [, $iIndex = 0 [, $iImage = -1 [, $iSelectedImage = -1 [, $iOverlayImage = -1 [, $iIndent = -1 [, $iParam = -1]]]]]] ) Sets some or all of a item's attributes (Requires: #include ) -_GUICtrlComboBoxEx_SetItemEx ( $hWnd, ByRef $tItem ) Sets some or all of a item's attributes (Requires: #include ) -_GUICtrlComboBoxEx_SetItemHeight ( $hWnd, $iComponent, $iHeight ) Set the height of list items or the selection field in a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_SetItemImage ( $hWnd, $iIndex, $iImage ) Sets the index of the item's icon in the control's image list (Requires: #include ) -_GUICtrlComboBoxEx_SetItemIndent ( $hWnd, $iIndex, $iIndent ) Sets the number of image widths to indent the item (Requires: #include ) -_GUICtrlComboBoxEx_SetItemOverlayImage ( $hWnd, $iIndex, $iImage ) Sets the index of the item's overlay icon in the control's image list (Requires: #include ) -_GUICtrlComboBoxEx_SetItemParam ( $hWnd, $iIndex, $iParam ) Sets the value specific to the item (Requires: #include ) -_GUICtrlComboBoxEx_SetItemSelectedImage ( $hWnd, $iIndex, $iImage ) Sets the index of the item's overlay icon in the control's image list (Requires: #include ) -_GUICtrlComboBoxEx_SetMinVisible ( $hWnd, $iMinimum ) Set the minimum number of visible items in the drop-down list of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_SetTopIndex ( $hWnd, $iIndex ) Ensure that a particular item is visible in the ListBox of a ComboBox (Requires: #include ) -_GUICtrlComboBoxEx_SetUnicode ( $hWnd [, $bUnicode = True] ) Sets if control is using Unicode (Requires: #include ) -_GUICtrlComboBoxEx_ShowDropDown ( $hWnd [, $bShow = False] ) Show or hide the ListBox of a ComboBox (Requires: #include ) -_GUICtrlDTP_Create ( $hWnd, $iX, $iY [, $iWidth = 120 [, $iHeight = 21 [, $iStyle = 0x00000000 [, $iExStyle = 0x00000000]]]] ) Create a DTP control (Requires: #include ) -_GUICtrlDTP_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlDTP_GetMCColor ( $hWnd, $iIndex ) Retrieves the specified color (Requires: #include ) -_GUICtrlDTP_GetMCFont ( $hWnd ) Retrieves the month calendar font handle (Requires: #include ) -_GUICtrlDTP_GetMonthCal ( $hWnd ) Retrieves the handle to child month calendar control (Requires: #include ) -_GUICtrlDTP_GetRange ( $hWnd ) Retrieves the current minimum and maximum allowable system times (Requires: #include ) -_GUICtrlDTP_GetRangeEx ( $hWnd ) Retrieves the current minimum and maximum allowable system times (Requires: #include ) -_GUICtrlDTP_GetSystemTime ( $hWnd ) Retrieves the currently selected date and time (Requires: #include ) -_GUICtrlDTP_GetSystemTimeEx ( $hWnd ) Retrieves the currently selected date and time (Requires: #include ) -_GUICtrlDTP_SetFormat ( $hWnd, $sFormat ) Sets the display based on a given format string (Requires: #include ) -_GUICtrlDTP_SetMCColor ( $hWnd, $iIndex, $iColor ) Sets the color for a given portion of the month calendar (Requires: #include ) -_GUICtrlDTP_SetMCFont ( $hWnd, $hFont [, $bRedraw = True] ) Sets the month calendar font (Requires: #include ) -_GUICtrlDTP_SetRange ( $hWnd, ByRef $aRange ) Sets the current minimum and maximum allowable system times (Requires: #include ) -_GUICtrlDTP_SetRangeEx ( $hWnd, ByRef $tRange ) Sets the current minimum and maximum allowable system times (Requires: #include ) -_GUICtrlDTP_SetSystemTime ( $hWnd, ByRef $aDate ) Sets the currently selected date and time (Requires: #include ) -_GUICtrlDTP_SetSystemTimeEx ( $hWnd, ByRef $tDate [, $bFlag = False] ) Sets the currently selected date and time (Requires: #include ) -_GUICtrlEdit_AppendText ( $hWnd, $sText ) Append text (Requires: #include ) -_GUICtrlEdit_BeginUpdate ( $hWnd ) Prevents updating of the control until the _GUICtrlEdit_EndUpdate function is called (Requires: #include ) -_GUICtrlEdit_CanUndo ( $hWnd ) Determines whether there are any actions in an edit control's undo queue (Requires: #include ) -_GUICtrlEdit_CharFromPos ( $hWnd, $iX, $iY ) Retrieve information about the character closest to a specified point in the client area (Requires: #include ) -_GUICtrlEdit_Create ( $hWnd, $sText, $iX, $iY [, $iWidth = 150 [, $iHeight = 150 [, $iStyle = 0x003010C4 [, $iExStyle = 0x00000200]]]] ) Create an Edit control (Requires: #include ) -_GUICtrlEdit_Destroy ( ByRef $hWnd ) Delete the Edit control (Requires: #include ) -_GUICtrlEdit_EmptyUndoBuffer ( $hWnd ) Resets the undo flag of an edit control (Requires: #include ) -_GUICtrlEdit_EndUpdate ( $hWnd ) Enables screen repainting that was turned off with the _GUICtrlEdit_BeginUpdate function (Requires: #include ) -_GUICtrlEdit_Find ( $hWnd [, $bReplace = False] ) Initiates a find dialog (Requires: #include ) -_GUICtrlEdit_FmtLines ( $hWnd [, $bSoftBreak = False] ) Determines whether an edit control includes soft line-break characters (Requires: #include ) -_GUICtrlEdit_GetCueBanner ( $hWnd ) Gets the cue banner text displayed in the edit control (Requires: #include ) -_GUICtrlEdit_GetFirstVisibleLine ( $hWnd ) Retrieves the 0-based index of the uppermost visible line in a multiline edit control (Requires: #include ) -_GUICtrlEdit_GetLimitText ( $hWnd ) Gets the current text limit for an edit control (Requires: #include ) -_GUICtrlEdit_GetLine ( $hWnd, $iLine ) Retrieves a line of text from an edit control (Requires: #include ) -_GUICtrlEdit_GetLineCount ( $hWnd ) Retrieves the number of lines (Requires: #include ) -_GUICtrlEdit_GetMargins ( $hWnd ) Retrieves the widths of the left and right margins (Requires: #include ) -_GUICtrlEdit_GetModify ( $hWnd ) Retrieves the state of an edit control's modification flag (Requires: #include ) -_GUICtrlEdit_GetPasswordChar ( $hWnd ) Gets the password character that an edit control displays when the user enters text (Requires: #include ) -_GUICtrlEdit_GetRECT ( $hWnd ) Retrieves the formatting rectangle of an edit control (Requires: #include ) -_GUICtrlEdit_GetRECTEx ( $hWnd ) Retrieves the formatting rectangle of an edit control (Requires: #include ) -_GUICtrlEdit_GetSel ( $hWnd ) Retrieves the starting and ending character positions of the current selection (Requires: #include ) -_GUICtrlEdit_GetText ( $hWnd ) Get the text from the edit control (Requires: #include ) -_GUICtrlEdit_GetTextLen ( $hWnd ) Get the length of all the text from the edit control (Requires: #include ) -_GUICtrlEdit_HideBalloonTip ( $hWnd ) Hides any balloon tip associated with an edit control (Requires: #include ) -_GUICtrlEdit_InsertText ( $hWnd, $sText [, $iIndex = -1] ) Insert text (Requires: #include ) -_GUICtrlEdit_LineFromChar ( $hWnd [, $iIndex = -1] ) Retrieves the index of the line that contains the specified character index (Requires: #include ) -_GUICtrlEdit_LineIndex ( $hWnd [, $iIndex = -1] ) Retrieves the character index of the first character of a specified line (Requires: #include ) -_GUICtrlEdit_LineLength ( $hWnd [, $iIndex = -1] ) Retrieves the length, in characters, of a line (Requires: #include ) -_GUICtrlEdit_LineScroll ( $hWnd, $iHoriz, $iVert ) Scrolls the text (Requires: #include ) -_GUICtrlEdit_PosFromChar ( $hWnd, $iIndex ) Retrieves the client area coordinates of a specified character in an edit control (Requires: #include ) -_GUICtrlEdit_ReplaceSel ( $hWnd, $sText [, $bUndo = True] ) Replaces the current selection (Requires: #include ) -_GUICtrlEdit_Scroll ( $hWnd, $iDirection ) Scrolls the text vertically (Requires: #include ) -_GUICtrlEdit_SetCueBanner ( $hWnd, $sText [, $bOnFocus = False] ) Sets the cue banner text that is displayed for the edit control (Requires: #include ) -_GUICtrlEdit_SetLimitText ( $hWnd, $iLimit ) Sets the text limit (Requires: #include ) -_GUICtrlEdit_SetMargins ( $hWnd [, $iMargin = 0x1 [, $iLeft = 0xFFFF [, $iRight = 0xFFFF]]] ) Sets the widths of the left and right margins (Requires: #include ) -_GUICtrlEdit_SetModify ( $hWnd, $bModified ) Sets or clears the modification flag (Requires: #include ) -_GUICtrlEdit_SetPasswordChar ( $hWnd [, $sDisplayChar = "0"] ) Sets or removes the password character for an edit control (Requires: #include ) -_GUICtrlEdit_SetReadOnly ( $hWnd, $bReadOnly ) Sets or removes the read-only style ($ES_READONLY) (Requires: #include ) -_GUICtrlEdit_SetRECT ( $hWnd, $aRect ) Sets the formatting rectangle of a multiline edit control (Requires: #include ) -_GUICtrlEdit_SetRECTEx ( $hWnd, $tRECT ) Sets the formatting rectangle of a multiline edit control (Requires: #include ) -_GUICtrlEdit_SetRECTNP ( $hWnd, $aRect ) Sets the formatting rectangle of a multiline edit control (Requires: #include ) -_GUICtrlEdit_SetRectNPEx ( $hWnd, $tRECT ) Sets the formatting rectangle of a multiline edit control (Requires: #include ) -_GUICtrlEdit_SetSel ( $hWnd, $iStart, $iEnd ) Selects a range of characters (Requires: #include ) -_GUICtrlEdit_SetTabStops ( $hWnd, $aTabStops ) Sets the tab stops (Requires: #include ) -_GUICtrlEdit_SetText ( $hWnd, $sText ) Set the text (Requires: #include ) -_GUICtrlEdit_ShowBalloonTip ( $hWnd, $sTitle, $sText, $iIcon ) Displays a balloon tip associated with an edit control (Requires: #include ) -_GUICtrlEdit_Undo ( $hWnd ) Undoes the last edit control operation in the control's undo queue (Requires: #include ) -_GUICtrlHeader_AddItem ( $hWnd, $sText [, $iWidth = 50 [, $iAlign = 0 [, $iImage = -1 [, $bOnRight = False]]]] ) Adds a new header item (Requires: #include ) -_GUICtrlHeader_ClearFilter ( $hWnd, $iIndex ) Clears the filter (Requires: #include ) -_GUICtrlHeader_ClearFilterAll ( $hWnd ) Clears all of the filters (Requires: #include ) -_GUICtrlHeader_Create ( $hWnd [, $iStyle = 0x00000046] ) Creates a Header control (Requires: #include ) -_GUICtrlHeader_CreateDragImage ( $hWnd, $iIndex ) Creates a semi-transparent version of an item's image for use as a dragging image (Requires: #include ) -_GUICtrlHeader_DeleteItem ( $hWnd, $iIndex ) Deletes a header item (Requires: #include ) -_GUICtrlHeader_Destroy ( ByRef $hWnd ) Delete the Header control (Requires: #include ) -_GUICtrlHeader_EditFilter ( $hWnd, $iIndex [, $bDiscard = True] ) Starts editing the specified filter (Requires: #include ) -_GUICtrlHeader_GetBitmapMargin ( $hWnd ) Retrieves the width of the bitmap margin (Requires: #include ) -_GUICtrlHeader_GetImageList ( $hWnd ) Retrieves the handle to the image list (Requires: #include ) -_GUICtrlHeader_GetItem ( $hWnd, $iIndex, ByRef $tItem ) Retrieves information about an item (Requires: #include ) -_GUICtrlHeader_GetItemAlign ( $hWnd, $iIndex ) Retrieves the item text alignment (Requires: #include ) -_GUICtrlHeader_GetItemBitmap ( $hWnd, $iIndex ) Retrieves the item bitmap handle (Requires: #include ) -_GUICtrlHeader_GetItemCount ( $hWnd ) Retrieves a count of the items (Requires: #include ) -_GUICtrlHeader_GetItemDisplay ( $hWnd, $iIndex ) Returns the item display information (Requires: #include ) -_GUICtrlHeader_GetItemFlags ( $hWnd, $iIndex ) Returns the item flag information (Requires: #include ) -_GUICtrlHeader_GetItemFormat ( $hWnd, $iIndex ) Returns the format of the item (Requires: #include ) -_GUICtrlHeader_GetItemImage ( $hWnd, $iIndex ) Retrieves the index of an image within the image list (Requires: #include ) -_GUICtrlHeader_GetItemOrder ( $hWnd, $iIndex ) Retrieves the order in which the item appears (Requires: #include ) -_GUICtrlHeader_GetItemParam ( $hWnd, $iIndex ) Retrieves the param value of the item (Requires: #include ) -_GUICtrlHeader_GetItemRect ( $hWnd, $iIndex ) Retrieves the bounding rectangle for a given item (Requires: #include ) -_GUICtrlHeader_GetItemRectEx ( $hWnd, $iIndex ) Retrieves the bounding rectangle for a given item (Requires: #include ) -_GUICtrlHeader_GetItemText ( $hWnd, $iIndex ) Retrieves the item text (Requires: #include ) -_GUICtrlHeader_GetItemWidth ( $hWnd, $iIndex ) Retrieves the item's width (Requires: #include ) -_GUICtrlHeader_GetOrderArray ( $hWnd ) Retrieves the current left-to-right order of items in a header control (Requires: #include ) -_GUICtrlHeader_GetUnicodeFormat ( $hWnd ) Retrieves the Unicode character format flag for the control (Requires: #include ) -_GUICtrlHeader_HitTest ( $hWnd, $iX, $iY ) Tests a point to determine which item is at the specified point (Requires: #include ) -_GUICtrlHeader_InsertItem ( $hWnd, $iIndex, $sText [, $iWidth = 50 [, $iAlign = 0 [, $iImage = -1 [, $bOnRight = False]]]] ) Inserts a new header item (Requires: #include ) -_GUICtrlHeader_Layout ( $hWnd, ByRef $tRECT ) Retrieves the correct size and position of the control (Requires: #include ) -_GUICtrlHeader_OrderToIndex ( $hWnd, $iOrder ) Retrieves an index value for an item based on its order (Requires: #include ) -_GUICtrlHeader_SetBitmapMargin ( $hWnd, $iWidth ) Sets the width of the margin, specified in pixels, of a bitmap (Requires: #include ) -_GUICtrlHeader_SetFilterChangeTimeout ( $hWnd, $iTimeOut ) Sets the filter change timeout interval (Requires: #include ) -_GUICtrlHeader_SetHotDivider ( $hWnd, $iFlag, $iInputValue ) Changes the hot divider color (Requires: #include ) -_GUICtrlHeader_SetImageList ( $hWnd, $hImage ) Assigns an image list (Requires: #include ) -_GUICtrlHeader_SetItem ( $hWnd, $iIndex, ByRef $tItem ) Sets information about an item (Requires: #include ) -_GUICtrlHeader_SetItemAlign ( $hWnd, $iIndex, $iAlign ) Sets the item text alignment (Requires: #include ) -_GUICtrlHeader_SetItemBitmap ( $hWnd, $iIndex, $hBitmap ) Sets the item bitmap handle (Requires: #include ) -_GUICtrlHeader_SetItemDisplay ( $hWnd, $iIndex, $iDisplay ) Returns the item display information (Requires: #include ) -_GUICtrlHeader_SetItemFlags ( $hWnd, $iIndex, $iFlags ) Returns the item flag information (Requires: #include ) -_GUICtrlHeader_SetItemFormat ( $hWnd, $iIndex, $iFormat ) Sets the format of the item (Requires: #include ) -_GUICtrlHeader_SetItemImage ( $hWnd, $iIndex, $iImage ) Sets the index of an image within the image list (Requires: #include ) -_GUICtrlHeader_SetItemOrder ( $hWnd, $iIndex, $iOrder ) Sets the order in which the item appears (Requires: #include ) -_GUICtrlHeader_SetItemParam ( $hWnd, $iIndex, $iParam ) Sets the param value of the item (Requires: #include ) -_GUICtrlHeader_SetItemText ( $hWnd, $iIndex, $sText ) Sets the item text (Requires: #include ) -_GUICtrlHeader_SetItemWidth ( $hWnd, $iIndex, $iWidth ) Sets the item's width (Requires: #include ) -_GUICtrlHeader_SetOrderArray ( $hWnd, ByRef $aOrder ) Sets the current left-to-right order of items (Requires: #include ) -_GUICtrlHeader_SetUnicodeFormat ( $hWnd, $bUnicode ) Sets the Unicode character format flag for the control (Requires: #include ) -_GUICtrlIpAddress_ClearAddress ( $hWnd ) Clears the contents of the IP address control (Requires: #include ) -_GUICtrlIpAddress_Create ( $hWnd, $iX, $iY [, $iWidth = 125 [, $iHeight = 25 [, $iStyles = 0x00000000 [, $iExstyles = 0x00000000]]]] ) Create a GUI IP Address Control (Requires: #include ) -_GUICtrlIpAddress_Destroy ( ByRef $hWnd ) Delete the IP Address control (Requires: #include ) -_GUICtrlIpAddress_Get ( $hWnd ) Retrieves the address from the IP address control (Requires: #include ) -_GUICtrlIpAddress_GetArray ( $hWnd ) Retrieves the address from the IP address control (Requires: #include ) -_GUICtrlIpAddress_GetEx ( $hWnd ) Retrieves the address from the IP address control (Requires: #include ) -_GUICtrlIpAddress_IsBlank ( $hWnd ) Determines if all fields in the IP address control are blank (Requires: #include ) -_GUICtrlIpAddress_Set ( $hWnd, $sAddress ) Sets the address in the IP address control (Requires: #include ) -_GUICtrlIpAddress_SetArray ( $hWnd, $aAddress ) Sets the address in the IP address control (Requires: #include ) -_GUICtrlIpAddress_SetEx ( $hWnd, $tIP ) Sets the address in the IP address control (Requires: #include ) -_GUICtrlIpAddress_SetFocus ( $hWnd, $iIndex ) Sets the keyboard focus to the specified field in the IP address control (Requires: #include ) -_GUICtrlIpAddress_SetFont ( $hWnd [, $sFaceName = "Arial" [, $iFontSize = 12 [, $iFontWeight = 400 [, $bFontItalic = False]]]] ) Set font of the control (Requires: #include ) -_GUICtrlIpAddress_SetRange ( $hWnd, $iIndex [, $iLowRange = 0 [, $iHighRange = 255]] ) Sets the valid range for the specified field in the IP address control (Requires: #include ) -_GUICtrlIpAddress_ShowHide ( $hWnd, $iState ) Shows/Hides the IP address control (Requires: #include ) -_GUICtrlListBox_AddFile ( $hWnd, $sFilePath ) Adds the specified filename that contains a directory listing (Requires: #include ) -_GUICtrlListBox_AddString ( $hWnd, $sText ) Add a string (Requires: #include ) -_GUICtrlListBox_BeginUpdate ( $hWnd ) Prevents updating of the control until the EndUpdate function is called (Requires: #include ) -_GUICtrlListBox_ClickItem ( $hWnd, $iIndex [, $sButton = "left" [, $bMove = False [, $iClicks = 1 [, $iSpeed = 0]]]] ) Clicks an item (Requires: #include ) -_GUICtrlListBox_Create ( $hWnd, $sText, $iX, $iY [, $iWidth = 100 [, $iHeight = 200 [, $iStyle = 0x00B00002 [, $iExStyle = 0x00000200]]]] ) Create a Listbox control (Requires: #include ) -_GUICtrlListBox_DeleteString ( $hWnd, $iIndex ) Delete a string (Requires: #include ) -_GUICtrlListBox_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlListBox_Dir ( $hWnd, $sFilePath [, $iAttributes = 0 [, $bBrackets = True]] ) Adds the names of directories and files (Requires: #include ) -_GUICtrlListBox_EndUpdate ( $hWnd ) Enables screen repainting that was turned off with the BeginUpdate function (Requires: #include ) -_GUICtrlListBox_FindInText ( $hWnd, $sText [, $iStart = -1 [, $bWrapOK = True]] ) Searches for an item that contains the specified text anywhere in its text (Requires: #include ) -_GUICtrlListBox_FindString ( $hWnd, $sText [, $bExact = False] ) Search for a string (Requires: #include ) -_GUICtrlListBox_GetAnchorIndex ( $hWnd ) Retrieves the index of the anchor item (Requires: #include ) -_GUICtrlListBox_GetCaretIndex ( $hWnd ) Return index of item that has the focus rectangle (Requires: #include ) -_GUICtrlListBox_GetCount ( $hWnd ) Retrieves the number of items (Requires: #include ) -_GUICtrlListBox_GetCurSel ( $hWnd ) Retrieve the index of the currently selected item (Requires: #include ) -_GUICtrlListBox_GetHorizontalExtent ( $hWnd ) Retrieve from a list box the the scrollable width (Requires: #include ) -_GUICtrlListBox_GetItemData ( $hWnd, $iIndex ) Retrieves the application defined value associated with an item (Requires: #include ) -_GUICtrlListBox_GetItemHeight ( $hWnd ) Retrieves the height of items (Requires: #include ) -_GUICtrlListBox_GetItemRect ( $hWnd, $iIndex ) Retrieves the rectangle that bounds an item (Requires: #include ) -_GUICtrlListBox_GetItemRectEx ( $hWnd, $iIndex ) Retrieves the rectangle that bounds an item (Requires: #include ) -_GUICtrlListBox_GetListBoxInfo ( $hWnd ) Retrieve the number of items per column in a specified list box (Requires: #include ) -_GUICtrlListBox_GetLocale ( $hWnd ) Retrieves the current locale (Requires: #include ) -_GUICtrlListBox_GetLocaleCountry ( $hWnd ) Retrieves the current country code (Requires: #include ) -_GUICtrlListBox_GetLocaleLang ( $hWnd ) Retrieves the current language identifier (Requires: #include ) -_GUICtrlListBox_GetLocalePrimLang ( $hWnd ) Extract primary language id from a language id (Requires: #include ) -_GUICtrlListBox_GetLocaleSubLang ( $hWnd ) Extract sublanguage id from a language id (Requires: #include ) -_GUICtrlListBox_GetSel ( $hWnd, $iIndex ) Retrieves the selection state of an item (Requires: #include ) -_GUICtrlListBox_GetSelCount ( $hWnd ) Retrieves the total number of selected items (Requires: #include ) -_GUICtrlListBox_GetSelItems ( $hWnd ) Fills a buffer with an array of selected items (Requires: #include ) -_GUICtrlListBox_GetSelItemsText ( $hWnd ) Retrieves the text of selected items (Requires: #include ) -_GUICtrlListBox_GetText ( $hWnd, $iIndex ) Returns the item (string) at the specified index (Requires: #include ) -_GUICtrlListBox_GetTextLen ( $hWnd, $iIndex ) Gets the length of a string in a list box (Requires: #include ) -_GUICtrlListBox_GetTopIndex ( $hWnd ) Retrieve the index of the first visible item in a list (Requires: #include ) -_GUICtrlListBox_InitStorage ( $hWnd, $iItems, $iBytes ) This message allocates memory for storing items (Requires: #include ) -_GUICtrlListBox_InsertString ( $hWnd, $sText [, $iIndex = -1] ) Insert a string into the list (Requires: #include ) -_GUICtrlListBox_ItemFromPoint ( $hWnd, $iX, $iY ) Retrieves the 0-based index of the item nearest the specified point (Requires: #include ) -_GUICtrlListBox_ReplaceString ( $hWnd, $iIndex, $sText ) Replaces the text of an item (Requires: #include ) -_GUICtrlListBox_ResetContent ( $hWnd ) Remove all items from the list box (Requires: #include ) -_GUICtrlListBox_SelectString ( $hWnd, $sText [, $iIndex = -1] ) Searchs for an item that begins with the specified string (Requires: #include ) -_GUICtrlListBox_SelItemRange ( $hWnd, $iFirst, $iLast [, $bSelect = True] ) Select one or more consecutive items in a multiple-selection list box (Requires: #include ) -_GUICtrlListBox_SelItemRangeEx ( $hWnd, $iFirst, $iLast ) Select one or more consecutive items in a multiple-selection list box (Requires: #include ) -_GUICtrlListBox_SetAnchorIndex ( $hWnd, $iIndex ) Set the anchor item—that is, the item from which a multiple selection starts (Requires: #include ) -_GUICtrlListBox_SetCaretIndex ( $hWnd, $iIndex [, $bPartial = False] ) Set the focus rectangle to the item at the specified index in a multiple-selection list box (Requires: #include ) -_GUICtrlListBox_SetColumnWidth ( $hWnd, $iWidth ) Set the width, in pixels, of all columns (Requires: #include ) -_GUICtrlListBox_SetCurSel ( $hWnd, $iIndex ) Select a string and scroll it into view, if necessary (Requires: #include ) -_GUICtrlListBox_SetHorizontalExtent ( $hWnd, $iWidth ) Set the width, in pixels, by which a list box can be scrolled horizontally (Requires: #include ) -_GUICtrlListBox_SetItemData ( $hWnd, $iIndex, $iValue ) Sets the value associated with the specified item (Requires: #include ) -_GUICtrlListBox_SetItemHeight ( $hWnd, $iHeight [, $iIndex = 0] ) Sets the height, in pixels, of items (Requires: #include ) -_GUICtrlListBox_SetLocale ( $hWnd, $iLocal ) Set the current locale (Requires: #include ) -_GUICtrlListBox_SetSel ( $hWnd [, $iIndex = -1 [, $iSelect = -1]] ) Select a string(s) in a multiple-selection list box (Requires: #include ) -_GUICtrlListBox_SetTabStops ( $hWnd, $aTabStops ) Sets the tab-stop positions (Requires: #include ) -_GUICtrlListBox_SetTopIndex ( $hWnd, $iIndex ) Ensure that a particular item in a list box is visible (Requires: #include ) -_GUICtrlListBox_Sort ( $hWnd ) Re-sorts list box if it has the $LBS_SORT style (Requires: #include ) -_GUICtrlListBox_SwapString ( $hWnd, $iIndexA, $iIndexB ) Swaps the text of two items at the specified indices (Requires: #include ) -_GUICtrlListBox_UpdateHScroll ( $hWnd ) Update the horizontal scroll bar based on the longest string (Requires: #include ) -_GUICtrlListView_AddArray ( $hWnd, ByRef $aItems ) Adds items from an array to the control (Requires: #include ) -_GUICtrlListView_AddColumn ( $hWnd, $sText [, $iWidth = 50 [, $iAlign = -1 [, $iImage = -1 [, $bOnRight = False]]]] ) Adds a new column in the control (Requires: #include ) -_GUICtrlListView_AddItem ( $hWnd, $sText [, $iImage = -1 [, $iParam = 0]] ) Adds a new item to the end of the list (Requires: #include ) -_GUICtrlListView_AddSubItem ( $hWnd, $iIndex, $sText, $iSubItem [, $iImage = -1] ) Adds a new subitem to the control (Requires: #include ) -_GUICtrlListView_ApproximateViewHeight ( $hWnd [, $iCount = -1 [, $iCX = -1 [, $iCY = -1]]] ) Calculates the approximate height required to display a given number of items (Requires: #include ) -_GUICtrlListView_ApproximateViewRect ( $hWnd [, $iCount = -1 [, $iCX = -1 [, $iCY = -1]]] ) Calculates the approximate size required to display a given number of items (Requires: #include ) -_GUICtrlListView_ApproximateViewWidth ( $hWnd [, $iCount = -1 [, $iCX = -1 [, $iCY = -1]]] ) Calculates the approximate width required to display a given number of items (Requires: #include ) -_GUICtrlListView_Arrange ( $hWnd [, $iArrange = 0] ) Arranges items in icon view (Requires: #include ) -_GUICtrlListView_BeginUpdate ( $hWnd ) Prevents updating of the control until the _GUICtrlListView_EndUpdate() function is called (Requires: #include ) -_GUICtrlListView_CancelEditLabel ( $hWnd ) Cancels an item text editing operation (Requires: #include ) -_GUICtrlListView_ClickItem ( $hWnd, $iIndex [, $sButton = "left" [, $bMove = False [, $iClicks = 1 [, $iSpeed = 1]]]] ) Clicks an item (Requires: #include ) -_GUICtrlListView_CopyItems ( $hWnd_Source, $hWnd_Destination [, $bDelFlag = False] ) Copy Items between 2 list-view controls (Requires: #include ) -_GUICtrlListView_Create ( $hWnd, $sHeaderText, $iX, $iY [, $iWidth = 150 [, $iHeight = 150 [, $iStyle = 0x0000000D [, $iExStyle = 0x00000000 [, $bCoInit = False]]]]] ) Create a ListView control (Requires: #include ) -_GUICtrlListView_CreateDragImage ( $hWnd, $iIndex ) Creates a drag image list for the specified item (Requires: #include ) -_GUICtrlListView_CreateSolidBitMap ( $hWnd, $iColor, $iWidth, $iHeight ) Creates a solid color bitmap (Requires: #include ) -_GUICtrlListView_DeleteAllItems ( $hWnd ) Removes all items from a list-view control (Requires: #include ) -_GUICtrlListView_DeleteColumn ( $hWnd, $iCol ) Removes a column from a list-view control (Requires: #include ) -_GUICtrlListView_DeleteItem ( $hWnd, $iIndex ) Removes an item from a list-view control (Requires: #include ) -_GUICtrlListView_DeleteItemsSelected ( $hWnd ) Deletes item(s) selected (Requires: #include ) -_GUICtrlListView_Destroy ( ByRef $hWnd ) Delete the listview control (Requires: #include ) -_GUICtrlListView_DrawDragImage ( ByRef $hWnd, ByRef $aDrag ) Draw the Drag Image (Requires: #include ) -_GUICtrlListView_EditLabel ( $hWnd, $iIndex ) Begins in place editing of the specified item text (Requires: #include ) -_GUICtrlListView_EnableGroupView ( $hWnd [, $bEnable = True] ) Enables or disables whether the items in the control display as a group (Requires: #include ) -_GUICtrlListView_EndUpdate ( $hWnd ) Enables screen repainting that was turned off with the _GUICtrlListView_BeginUpdate() function (Requires: #include ) -_GUICtrlListView_EnsureVisible ( $hWnd, $iIndex [, $bPartialOK = False] ) Ensures that a list-view item is either entirely or partially visible (Requires: #include ) -_GUICtrlListView_FindInText ( $hWnd, $sText [, $iStart = -1 [, $bWrapOK = True [, $bReverse = False]]] ) Searches for an item that contains the specified text anywhere in its text (Requires: #include ) -_GUICtrlListView_FindItem ( $hWnd, $iStart, ByRef $tFindInfo [, $sText = ""] ) Searches for an item with the specified characteristics (Requires: #include ) -_GUICtrlListView_FindNearest ( $hWnd, $iX, $iY [, $iDir = 0 [, $iStart = -1 [, $bWrapOK = True]]] ) Finds the item nearest to the position specified (Requires: #include ) -_GUICtrlListView_FindParam ( $hWnd, $iParam [, $iStart = -1] ) Searches for an item with the specified lParam (Requires: #include ) -_GUICtrlListView_FindText ( $hWnd, $sText [, $iStart = -1 [, $bPartialOK = True [, $bWrapOK = True]]] ) Searches for an item with the specified text (Requires: #include ) -_GUICtrlListView_GetBkColor ( $hWnd ) Retrieves the background color of a list-view control (Requires: #include ) -_GUICtrlListView_GetBkImage ( $hWnd ) Retrieves the background image in the control (Requires: #include ) -_GUICtrlListView_GetCallbackMask ( $hWnd ) Retrieves the callback mask for the control (Requires: #include ) -_GUICtrlListView_GetColumn ( $hWnd, $iIndex ) Retrieves the attributes of a column (Requires: #include ) -_GUICtrlListView_GetColumnCount ( $hWnd ) Retrieve the number of columns (Requires: #include ) -_GUICtrlListView_GetColumnOrder ( $hWnd ) Retrieves the current left-to-right order of columns (Requires: #include ) -_GUICtrlListView_GetColumnOrderArray ( $hWnd ) Retrieves the current left-to-right order of columns in the control (Requires: #include ) -_GUICtrlListView_GetColumnWidth ( $hWnd, $iCol ) Retrieves the width of a column in report or list view (Requires: #include ) -_GUICtrlListView_GetCounterPage ( $hWnd ) Calculates the number of items that can fit vertically in the visible area (Requires: #include ) -_GUICtrlListView_GetEditControl ( $hWnd ) Retrieves the handle to the edit control being used to edit an item's text (Requires: #include ) -_GUICtrlListView_GetExtendedListViewStyle ( $hWnd ) Retrieves the extended styles that are currently in use (Requires: #include ) -_GUICtrlListView_GetFocusedGroup ( $hWnd ) Gets the group that has the focus (Requires: #include ) -_GUICtrlListView_GetGroupCount ( $hWnd ) Gets the number of groups (Requires: #include ) -_GUICtrlListView_GetGroupInfo ( $hWnd, $iGroupID ) Retrieves group information (Requires: #include ) -_GUICtrlListView_GetGroupInfoByIndex ( $hWnd, $iIndex ) Retrieves group information (Requires: #include ) -_GUICtrlListView_GetGroupRect ( $hWnd, $iGroupID [, $iGet = $LVGGR_GROUP] ) Gets the rectangle for a specified group (Requires: #include ) -_GUICtrlListView_GetGroupViewEnabled ( $hWnd ) Checks whether the control has group view enabled (Requires: #include ) -_GUICtrlListView_GetHeader ( $hWnd ) Retrieves the handle to the header control (Requires: #include ) -_GUICtrlListView_GetHotCursor ( $hWnd ) Retrieves the HCURSOR value used when the pointer is over an item while hot tracking is enabled (Requires: #include ) -_GUICtrlListView_GetHotItem ( $hWnd ) Retrieves the index of the hot item (Requires: #include ) -_GUICtrlListView_GetHoverTime ( $hWnd ) Retrieves the amount of time that the mouse cursor must hover over an item before it is selected (Requires: #include ) -_GUICtrlListView_GetImageList ( $hWnd, $iImageList ) Retrieves the handle to an image list used for drawing listview items (Requires: #include ) -_GUICtrlListView_GetISearchString ( $hWnd ) Retrieves the incremental search string of the control (Requires: #include ) -_GUICtrlListView_GetItem ( $hWnd, $iIndex [, $iSubItem = 0] ) Retrieves an item's attributes (Requires: #include ) -_GUICtrlListView_GetItemChecked ( $hWnd, $iIndex ) Returns the check state for a list-view control item (Requires: #include ) -_GUICtrlListView_GetItemCount ( $hWnd ) Retrieves the number of items in a list-view control (Requires: #include ) -_GUICtrlListView_GetItemCut ( $hWnd, $iIndex ) Determines whether the item is marked for a cut and paste operation (Requires: #include ) -_GUICtrlListView_GetItemDropHilited ( $hWnd, $iIndex ) Determines whether the item is highlighted as a drag-and-drop target (Requires: #include ) -_GUICtrlListView_GetItemEx ( $hWnd, ByRef $tItem ) Retrieves some or all of an item's attributes (Requires: #include ) -_GUICtrlListView_GetItemFocused ( $hWnd, $iIndex ) Determines whether the item is highlighted as a drag-and-drop target (Requires: #include ) -_GUICtrlListView_GetItemGroupID ( $hWnd, $iIndex ) Gets the item group ID (Requires: #include ) -_GUICtrlListView_GetItemImage ( $hWnd, $iIndex [, $iSubItem = 0] ) Retrieves the index of the item's icon (Requires: #include ) -_GUICtrlListView_GetItemIndent ( $hWnd, $iIndex ) Retrieves the number of image widths the item is indented (Requires: #include ) -_GUICtrlListView_GetItemParam ( $hWnd, $iIndex ) Retrieves the application specific value of the item (Requires: #include ) -_GUICtrlListView_GetItemPosition ( $hWnd, $iIndex ) Retrieves the position of an item (Requires: #include ) -_GUICtrlListView_GetItemPositionX ( $hWnd, $iIndex ) Retrieves the X position of an item (Requires: #include ) -_GUICtrlListView_GetItemPositionY ( $hWnd, $iIndex ) Retrieves the Y position of an item (Requires: #include ) -_GUICtrlListView_GetItemRect ( $hWnd, $iIndex [, $iPart = 3] ) Retrieves the bounding rectangle for all or part of an item (Requires: #include ) -_GUICtrlListView_GetItemRectEx ( $hWnd, $iIndex [, $iPart = 3] ) Retrieves the bounding rectangle for all or part of an item (Requires: #include ) -_GUICtrlListView_GetItemSelected ( $hWnd, $iIndex ) Determines whether the item is selected (Requires: #include ) -_GUICtrlListView_GetItemSpacing ( $hWnd [, $bSmall = False] ) Determines the spacing between items in the control (Requires: #include ) -_GUICtrlListView_GetItemSpacingX ( $hWnd [, $bSmall = False] ) Determines the horizontal spacing between items in the control (Requires: #include ) -_GUICtrlListView_GetItemSpacingY ( $hWnd [, $bSmall = False] ) Determines the vertical spacing between items in the control (Requires: #include ) -_GUICtrlListView_GetItemState ( $hWnd, $iIndex, $iMask ) Retrieves the state of a listview item (Requires: #include ) -_GUICtrlListView_GetItemStateImage ( $hWnd, $iIndex ) Gets the state image that is displayed (Requires: #include ) -_GUICtrlListView_GetItemText ( $hWnd, $iIndex [, $iSubItem = 0] ) Retrieves the text of an item or subitem (Requires: #include ) -_GUICtrlListView_GetItemTextArray ( $hWnd [, $iItem = -1] ) Retrieves all of a list-view item (Requires: #include ) -_GUICtrlListView_GetItemTextString ( $hWnd [, $iItem = -1] ) Retrieves all of a list-view item (Requires: #include ) -_GUICtrlListView_GetNextItem ( $hWnd [, $iStart = -1 [, $iSearch = 0 [, $iState = 8]]] ) Searches for an item that has the specified properties (Requires: #include ) -_GUICtrlListView_GetNumberOfWorkAreas ( $hWnd ) Retrieves the number of working areas in the control (Requires: #include ) -_GUICtrlListView_GetOrigin ( $hWnd ) Retrieves the current view origin for the control (Requires: #include ) -_GUICtrlListView_GetOriginX ( $hWnd ) Retrieves the current horizontal view origin for the control (Requires: #include ) -_GUICtrlListView_GetOriginY ( $hWnd ) Retrieves the current vertical view origin for the control (Requires: #include ) -_GUICtrlListView_GetOutlineColor ( $hWnd ) Retrieves the color of the border of the control (Requires: #include ) -_GUICtrlListView_GetSelectedColumn ( $hWnd ) Retrieves the index of the selected column (Requires: #include ) -_GUICtrlListView_GetSelectedCount ( $hWnd ) Determines the number of selected items (Requires: #include ) -_GUICtrlListView_GetSelectedIndices ( $hWnd [, $bArray = False] ) Retrieve indices of selected item(s) (Requires: #include ) -_GUICtrlListView_GetSelectionMark ( $hWnd ) Retrieves the selection mark from the control (Requires: #include ) -_GUICtrlListView_GetStringWidth ( $hWnd, $sString ) Determines the width of a specified string (Requires: #include ) -_GUICtrlListView_GetSubItemRect ( $hWnd, $iIndex, $iSubItem [, $iPart = 0] ) Retrieves information about an item bounding rectangle (Requires: #include ) -_GUICtrlListView_GetTextBkColor ( $hWnd ) Retrieves the text background color of the control (Requires: #include ) -_GUICtrlListView_GetTextColor ( $hWnd ) Retrieves the text color of the control (Requires: #include ) -_GUICtrlListView_GetToolTips ( $hWnd ) Retrieves the ToolTip control handle (Requires: #include ) -_GUICtrlListView_GetTopIndex ( $hWnd ) Retrieves the index of the topmost visible item when in list or report view (Requires: #include ) -_GUICtrlListView_GetUnicodeFormat ( $hWnd ) Retrieves the Unicode character format flag for the control (Requires: #include ) -_GUICtrlListView_GetView ( $hWnd ) Retrieves the current view of the control (Requires: #include ) -_GUICtrlListView_GetViewDetails ( $hWnd ) Determines whether the view mode is in detail mode (Requires: #include ) -_GUICtrlListView_GetViewLarge ( $hWnd ) Determines whether the view mode is in large icon mode (Requires: #include ) -_GUICtrlListView_GetViewList ( $hWnd ) Determines whether the view mode is in list mode (Requires: #include ) -_GUICtrlListView_GetViewRect ( $hWnd ) Retrieves the bounding rectangle of all items in the control (Requires: #include ) -_GUICtrlListView_GetViewSmall ( $hWnd ) Determines whether the view mode is in small icon mode (Requires: #include ) -_GUICtrlListView_GetViewTile ( $hWnd ) Determines whether the view mode is in tile mode (Requires: #include ) -_GUICtrlListView_HideColumn ( $hWnd, $iCol ) Hides the column "sets column width to zero" (Requires: #include ) -_GUICtrlListView_HitTest ( $hWnd [, $iX = -1 [, $iY = -1]] ) Determines which item is at a specified position (Requires: #include ) -_GUICtrlListView_InsertColumn ( $hWnd, $iIndex, $sText [, $iWidth = 50 [, $iAlign = -1 [, $iImage = -1 [, $bOnRight = False]]]] ) Inserts a new column in the control (Requires: #include ) -_GUICtrlListView_InsertGroup ( $hWnd, $iIndex, $iGroupID, $sHeader [, $iAlign = 0] ) Inserts a group (Requires: #include ) -_GUICtrlListView_InsertItem ( $hWnd, $sText [, $iIndex = -1 [, $iImage = -1 [, $iParam = 0]]] ) Inserts a new item in the control (Requires: #include ) -_GUICtrlListView_JustifyColumn ( $hWnd, $iIndex [, $iAlign = -1] ) Set Justification of a column for a list-view control (Requires: #include ) -_GUICtrlListView_MapIDToIndex ( $hWnd, $iID ) Maps the ID of an item to an index (Requires: #include ) -_GUICtrlListView_MapIndexToID ( $hWnd, $iIndex ) Maps an index to an item ID (Requires: #include ) -_GUICtrlListView_RedrawItems ( $hWnd, $iFirst, $iLast ) Forces the control to redraw a range of items (Requires: #include ) -_GUICtrlListView_RegisterSortCallBack ( $hWnd [, $bNumbers = True [, $bArrows = True]] ) Register the Simple Sort callback function (Requires: #include ) -_GUICtrlListView_RemoveAllGroups ( $hWnd ) Removes all groups from the control (Requires: #include ) -_GUICtrlListView_RemoveGroup ( $hWnd, $iGroupID ) Removes a group from the control (Requires: #include ) -_GUICtrlListView_Scroll ( $hWnd, $iDX, $iDY ) Scrolls the content of a list-view (Requires: #include ) -_GUICtrlListView_SetBkColor ( $hWnd, $iColor ) Sets the background color of the control (Requires: #include ) -_GUICtrlListView_SetBkImage ( $hWnd [, $sURL = "" [, $iStyle = 0 [, $iXOffset = 0 [, $iYOffset = 0]]]] ) Sets the background image in the control (Requires: #include ) -_GUICtrlListView_SetCallBackMask ( $hWnd, $iMask ) Changes the callback mask for the control (Requires: #include ) -_GUICtrlListView_SetColumn ( $hWnd, $iIndex, $sText [, $iWidth = -1 [, $iAlign = -1 [, $iImage = -1 [, $bOnRight = False]]]] ) Sets the attributes of a column (Requires: #include ) -_GUICtrlListView_SetColumnOrder ( $hWnd, $sOrder ) Sets the left-to-right order of columns (Requires: #include ) -_GUICtrlListView_SetColumnOrderArray ( $hWnd, $aOrder ) Sets the left-to-right order of columns in the control (Requires: #include ) -_GUICtrlListView_SetColumnWidth ( $hWnd, $iCol, $iWidth ) Changes the width of a column (Requires: #include ) -_GUICtrlListView_SetExtendedListViewStyle ( $hWnd, $iExStyle [, $iExMask = 0] ) Sets extended styles (Requires: #include ) -_GUICtrlListView_SetGroupInfo ( $hWnd, $iGroupID, $sHeader [, $iAlign = 0 [, $iState = $LVGS_NORMAL]] ) Sets group information (Requires: #include ) -_GUICtrlListView_SetHotItem ( $hWnd, $iIndex ) Sets the hot item (Requires: #include ) -_GUICtrlListView_SetHoverTime ( $hWnd, $iTime ) Sets the amount of time which the mouse cursor must hover over an item before it is selected (Requires: #include ) -_GUICtrlListView_SetIconSpacing ( $hWnd, $iCX, $iCY ) Sets the spacing between icons where the style is large icon (Requires: #include ) -_GUICtrlListView_SetImageList ( $hWnd, $hHandle [, $iType = 0] ) Assigns an image list to the control (Requires: #include ) -_GUICtrlListView_SetItem ( $hWnd, $sText [, $iIndex = 0 [, $iSubItem = 0 [, $iImage = -1 [, $iParam = -1 [, $iIndent = -1]]]]] ) Sets some or all of a item's attributes (Requires: #include ) -_GUICtrlListView_SetItemChecked ( $hWnd, $iIndex [, $bCheck = True] ) Sets the checked state (Requires: #include ) -_GUICtrlListView_SetItemCount ( $hWnd, $iItems ) Causes the list-view control to allocate memory for the specified number of items (Requires: #include ) -_GUICtrlListView_SetItemCut ( $hWnd, $iIndex [, $bEnabled = True] ) Sets whether the item is marked for a cut-and-paste operation (Requires: #include ) -_GUICtrlListView_SetItemDropHilited ( $hWnd, $iIndex [, $bEnabled = True] ) Sets whether the item is highlighted as a drag-and-drop target (Requires: #include ) -_GUICtrlListView_SetItemEx ( $hWnd, ByRef $tItem ) Sets some or all of a item's attributes (Requires: #include ) -_GUICtrlListView_SetItemFocused ( $hWnd, $iIndex [, $bEnabled = True] ) Sets whether the item has the focus (Requires: #include ) -_GUICtrlListView_SetItemGroupID ( $hWnd, $iIndex, $iGroupID ) Sets the item group ID (Requires: #include ) -_GUICtrlListView_SetItemImage ( $hWnd, $iIndex, $iImage [, $iSubItem = 0] ) Sets the index of the item's icon in the control's image list (Requires: #include ) -_GUICtrlListView_SetItemIndent ( $hWnd, $iIndex, $iIndent ) Sets the number of image widths to indent the item (Requires: #include ) -_GUICtrlListView_SetItemParam ( $hWnd, $iIndex, $iParam ) Sets the value specific to the item (Requires: #include ) -_GUICtrlListView_SetItemPosition ( $hWnd, $iIndex, $iCX, $iCY ) Moves an item to a specified position in the control (Requires: #include ) -_GUICtrlListView_SetItemPosition32 ( $hWnd, $iIndex, $iCX, $iCY ) Moves an item to a specified position in the control (Requires: #include ) -_GUICtrlListView_SetItemSelected ( $hWnd, $iIndex [, $bSelected = True [, $bFocused = False]] ) Sets whether the item is selected (Requires: #include ) -_GUICtrlListView_SetItemState ( $hWnd, $iIndex, $iState, $iStateMask ) Changes the state of an item in the control (Requires: #include ) -_GUICtrlListView_SetItemStateImage ( $hWnd, $iIndex, $iImage ) Sets the state image that is displayed (Requires: #include ) -_GUICtrlListView_SetItemText ( $hWnd, $iIndex, $sText [, $iSubItem = 0] ) Changes the text of an item or subitem (Requires: #include ) -_GUICtrlListView_SetOutlineColor ( $hWnd, $iColor ) Sets the color of the border (Requires: #include ) -_GUICtrlListView_SetSelectedColumn ( $hWnd, $iCol ) Sets the index of the selected column (Requires: #include ) -_GUICtrlListView_SetSelectionMark ( $hWnd, $iIndex ) Sets the selection mark in the control (Requires: #include ) -_GUICtrlListView_SetTextBkColor ( $hWnd, $iColor ) Sets the background color of text in the control (Requires: #include ) -_GUICtrlListView_SetTextColor ( $hWnd, $iColor ) Sets the color of text in the control (Requires: #include ) -_GUICtrlListView_SetToolTips ( $hWnd, $hToolTip ) Sets the ToolTip control that the control will use to display ToolTips (Requires: #include ) -_GUICtrlListView_SetUnicodeFormat ( $hWnd, $bUnicode ) Sets the UNICODE character format flag for the control (Requires: #include ) -_GUICtrlListView_SetView ( $hWnd, $iView ) Sets the view of the control (Requires: #include ) -_GUICtrlListView_SetWorkAreas ( $hWnd, $iLeft, $iTop, $iRight, $iBottom ) Creates a work area within the control (Requires: #include ) -_GUICtrlListView_SimpleSort ( $hWnd, ByRef $vSortSense, $iCol [, $bToggleSense = True] ) Sorts a list-view control (limited) (Requires: #include ) -_GUICtrlListView_SortItems ( $hWnd, $iCol ) Starts the sort call back, also sets the Arrow in the Header (Requires: #include ) -_GUICtrlListView_SubItemHitTest ( $hWnd [, $iX = -1 [, $iY = -1]] ) Determines which listview item or subitem is at a given position (Requires: #include ) -_GUICtrlListView_UnRegisterSortCallBack ( $hWnd ) UnRegister the Sort callback function (Requires: #include ) -_GUICtrlMenu_AddMenuItem ( $hMenu, $sText [, $iCmdID = 0 [, $hSubMenu = 0]] ) Adds a new menu item to the end of the menu (Requires: #include ) -_GUICtrlMenu_AppendMenu ( $hMenu, $iFlags, $iNewItem, $vNewItem ) Appends a new item to the end of the specified menu bar, drop-down menu, submenu, or shortcut menu (Requires: #include ) -_GUICtrlMenu_CalculatePopupWindowPosition ( $iX, $iY, $iWidth, $iHeight [, $iFlags = 0 [, $tExclude = 0]] ) Calculates an appropriate pop-up window position (Requires: #include ) -_GUICtrlMenu_CheckMenuItem ( $hMenu, $iItem [, $bCheck = True [, $bByPos = True]] ) Sets the state of the specified menu item's check mark attribute to either selected or clear (Requires: #include ) -_GUICtrlMenu_CheckRadioItem ( $hMenu, $iFirst, $iLast, $iCheck [, $bByPos = True] ) Checks a specified menu item and makes it a radio item (Requires: #include ) -_GUICtrlMenu_CreateMenu ( [$iStyle = $MNS_CHECKORBMP] ) Creates a menu (Requires: #include ) -_GUICtrlMenu_CreatePopup ( [$iStyle = $MNS_CHECKORBMP] ) Creates a drop down menu, submenu, or shortcut menu (Requires: #include ) -_GUICtrlMenu_DeleteMenu ( $hMenu, $iItem [, $bByPos = True] ) Deletes an item from the specified menu (Requires: #include ) -_GUICtrlMenu_DestroyMenu ( $hMenu ) Destroys the specified menu and frees any memory that the menu occupies (Requires: #include ) -_GUICtrlMenu_DrawMenuBar ( $hWnd ) Redraws the menu bar of the specified window (Requires: #include ) -_GUICtrlMenu_EnableMenuItem ( $hMenu, $iItem [, $iState = 0 [, $bByPos = True]] ) Enables, disables, or grays the specified menu item (Requires: #include ) -_GUICtrlMenu_FindItem ( $hMenu, $sText [, $bInStr = False [, $iStart = 0]] ) Retrieves a menu item based on it's text (Requires: #include ) -_GUICtrlMenu_FindParent ( $hMenu ) Retrieves the window to which a menu belongs (Requires: #include ) -_GUICtrlMenu_GetItemBmp ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the bitmap displayed for the item (Requires: #include ) -_GUICtrlMenu_GetItemBmpChecked ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the bitmap displayed if the item is selected (Requires: #include ) -_GUICtrlMenu_GetItemBmpUnchecked ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the bitmap displayed if the item is not selected (Requires: #include ) -_GUICtrlMenu_GetItemChecked ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the status of the menu item checked state (Requires: #include ) -_GUICtrlMenu_GetItemCount ( $hMenu ) Retrieves the number of items in the specified menu (Requires: #include ) -_GUICtrlMenu_GetItemData ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the application defined value associated with the menu item (Requires: #include ) -_GUICtrlMenu_GetItemDefault ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the status of the menu item default state (Requires: #include ) -_GUICtrlMenu_GetItemDisabled ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the status of the menu item disabled state (Requires: #include ) -_GUICtrlMenu_GetItemEnabled ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the status of the menu item enabled state (Requires: #include ) -_GUICtrlMenu_GetItemGrayed ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the status of the menu item grayed state (Requires: #include ) -_GUICtrlMenu_GetItemHighlighted ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the status of the menu item highlighted state (Requires: #include ) -_GUICtrlMenu_GetItemID ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the menu item ID (Requires: #include ) -_GUICtrlMenu_GetItemInfo ( $hMenu, $iItem [, $bByPos = True] ) Retrieves information about a menu item (Requires: #include ) -_GUICtrlMenu_GetItemRect ( $hWnd, $hMenu, $iItem ) Retrieves the bounding rectangle for the specified menu item (Requires: #include ) -_GUICtrlMenu_GetItemRectEx ( $hWnd, $hMenu, $iItem ) Retrieves the bounding rectangle for the specified menu item (Requires: #include ) -_GUICtrlMenu_GetItemState ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the menu item state (Requires: #include ) -_GUICtrlMenu_GetItemStateEx ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the menu flags associated with the specified menu item (Requires: #include ) -_GUICtrlMenu_GetItemSubMenu ( $hMenu, $iItem ) Retrieves a the submenu activated by a specified item (Requires: #include ) -_GUICtrlMenu_GetItemText ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the text of the specified menu item (Requires: #include ) -_GUICtrlMenu_GetItemType ( $hMenu, $iItem [, $bByPos = True] ) Retrieves the menu item type (Requires: #include ) -_GUICtrlMenu_GetMenu ( $hWnd ) Retrieves the handle of the menu assigned to the given window (Requires: #include ) -_GUICtrlMenu_GetMenuBackground ( $hMenu ) Retrieves the brush to use for the menu's background (Requires: #include ) -_GUICtrlMenu_GetMenuBarInfo ( $hWnd [, $iItem = 0 [, $iObject = 1]] ) Retrieves information about the specified menu bar (Requires: #include ) -_GUICtrlMenu_GetMenuContextHelpID ( $hMenu ) Retrieves the context help identifier (Requires: #include ) -_GUICtrlMenu_GetMenuData ( $hMenu ) Retrieves the application defined value (Requires: #include ) -_GUICtrlMenu_GetMenuDefaultItem ( $hMenu [, $bByPos = True [, $iFlags = 0]] ) Retrieves the default menu item on the specified menu (Requires: #include ) -_GUICtrlMenu_GetMenuHeight ( $hMenu ) Retrieves the maximum height of a menu (Requires: #include ) -_GUICtrlMenu_GetMenuInfo ( $hMenu ) Retrieves information about a specified menu (Requires: #include ) -_GUICtrlMenu_GetMenuStyle ( $hMenu ) Retrieves the style information for a menu (Requires: #include ) -_GUICtrlMenu_GetSystemMenu ( $hWnd [, $bRevert = False] ) Allows the application to access the window menu for copying and modifying (Requires: #include ) -_GUICtrlMenu_InsertMenuItem ( $hMenu, $iIndex, $sText [, $iCmdID = 0 [, $hSubMenu = 0]] ) Inserts a new menu item at the specified position (Requires: #include ) -_GUICtrlMenu_InsertMenuItemEx ( $hMenu, $iIndex, ByRef $tMenu [, $bByPos = True] ) Inserts a new menu item at the specified position in a menu (Requires: #include ) -_GUICtrlMenu_IsMenu ( $hMenu ) Determines whether a handle is a menu handle (Requires: #include ) -_GUICtrlMenu_LoadMenu ( $hInst, $sMenuName ) Loads the specified menu resource from the executable file associated with an application instance (Requires: #include ) -_GUICtrlMenu_MapAccelerator ( $hMenu, $sAccelKey ) Maps a menu accelerator key to it's position in the menu (Requires: #include ) -_GUICtrlMenu_MenuItemFromPoint ( $hWnd, $hMenu [, $iX = -1 [, $iY = -1]] ) Determines which menu item is at the specified location (Requires: #include ) -_GUICtrlMenu_RemoveMenu ( $hMenu, $iItem [, $bByPos = True] ) Deletes a menu item or detaches a submenu from the specified menu (Requires: #include ) -_GUICtrlMenu_SetItemBitmaps ( $hMenu, $iItem, $hChecked, $hUnChecked [, $bByPos = True] ) Associates the specified bitmap with a menu item (Requires: #include ) -_GUICtrlMenu_SetItemBmp ( $hMenu, $iItem, $hBitmap [, $bByPos = True] ) Sets the bitmap displayed for the item (Requires: #include ) -_GUICtrlMenu_SetItemBmpChecked ( $hMenu, $iItem, $hBitmap [, $bByPos = True] ) Sets the bitmap displayed if the item is selected (Requires: #include ) -_GUICtrlMenu_SetItemBmpUnchecked ( $hMenu, $iItem, $hBitmap [, $bByPos = True] ) Sets the bitmap displayed if the item is not selected (Requires: #include ) -_GUICtrlMenu_SetItemChecked ( $hMenu, $iItem [, $bState = True [, $bByPos = True]] ) Sets the checked state of a menu item (Requires: #include ) -_GUICtrlMenu_SetItemData ( $hMenu, $iItem, $iData [, $bByPos = True] ) Sets the application defined value for a menu item (Requires: #include ) -_GUICtrlMenu_SetItemDefault ( $hMenu, $iItem [, $bState = True [, $bByPos = True]] ) Sets the status of the menu item default state (Requires: #include ) -_GUICtrlMenu_SetItemDisabled ( $hMenu, $iItem [, $bState = True [, $bByPos = True]] ) Sets the disabled state of a menu item (Requires: #include ) -_GUICtrlMenu_SetItemEnabled ( $hMenu, $iItem [, $bState = True [, $bByPos = True]] ) Sets the enabled state of a menu item (Requires: #include ) -_GUICtrlMenu_SetItemGrayed ( $hMenu, $iItem [, $bState = True [, $bByPos = True]] ) Sets the grayed state of a menu item (Requires: #include ) -_GUICtrlMenu_SetItemHighlighted ( $hMenu, $iItem [, $bState = True [, $bByPos = True]] ) Sets the highlighted state of a menu item (Requires: #include ) -_GUICtrlMenu_SetItemID ( $hMenu, $iItem, $iID [, $bByPos = True] ) Sets the menu item ID (Requires: #include ) -_GUICtrlMenu_SetItemInfo ( $hMenu, $iItem, ByRef $tInfo [, $bByPos = True] ) Changes information about a menu item (Requires: #include ) -_GUICtrlMenu_SetItemState ( $hMenu, $iItem, $iState [, $bState = True [, $bByPos = True]] ) Sets the state of a menu item (Requires: #include ) -_GUICtrlMenu_SetItemSubMenu ( $hMenu, $iItem, $hSubMenu [, $bByPos = True] ) Sets the drop down menu or submenu associated with the menu item (Requires: #include ) -_GUICtrlMenu_SetItemText ( $hMenu, $iItem, $sText [, $bByPos = True] ) Sets the text for a menu item (Requires: #include ) -_GUICtrlMenu_SetItemType ( $hMenu, $iItem, $iType [, $bByPos = True] ) Sets the menu item type (Requires: #include ) -_GUICtrlMenu_SetMenu ( $hWnd, $hMenu ) Assigns a new menu to the specified window (Requires: #include ) -_GUICtrlMenu_SetMenuBackground ( $hMenu, $hBrush ) Sets the background brush for the menu (Requires: #include ) -_GUICtrlMenu_SetMenuContextHelpID ( $hMenu, $iHelpID ) Sets the context help identifier for the menu (Requires: #include ) -_GUICtrlMenu_SetMenuData ( $hMenu, $iData ) Sets the application defined for the menu (Requires: #include ) -_GUICtrlMenu_SetMenuDefaultItem ( $hMenu, $iItem [, $bByPos = True] ) Sets the default menu item (Requires: #include ) -_GUICtrlMenu_SetMenuHeight ( $hMenu, $iHeight ) Sets the maximum height of the menu (Requires: #include ) -_GUICtrlMenu_SetMenuInfo ( $hMenu, ByRef $tInfo ) Sets information for a specified menu (Requires: #include ) -_GUICtrlMenu_SetMenuStyle ( $hMenu, $iStyle ) Sets the menu style (Requires: #include ) -_GUICtrlMenu_TrackPopupMenu ( $hMenu, $hWnd [, $iX = -1 [, $iY = -1 [, $iAlignX = 1 [, $iAlignY = 1 [, $iNotify = 0 [, $iButtons = 0]]]]]] ) Displays a shortcut menu at the specified location (Requires: #include ) -_GUICtrlMonthCal_Create ( $hWnd, $iX, $iY [, $iStyle = 0x00000000 [, $iExStyle = 0x00000000]] ) Creates a Month Calendar control (Requires: #include ) -_GUICtrlMonthCal_Destroy ( ByRef $hWnd ) Delete the MonthCal control (Requires: #include ) -_GUICtrlMonthCal_GetCalendarBorder ( $hWnd ) Gets the size of the border, in pixels (Requires: #include ) -_GUICtrlMonthCal_GetCalendarCount ( $hWnd ) Gets the number of calendars currently displayed in the calendar control (Requires: #include ) -_GUICtrlMonthCal_GetColor ( $hWnd, $iIndex ) Retrieves a given color for the control (Requires: #include ) -_GUICtrlMonthCal_GetColorArray ( $hWnd, $iColor ) Retrieves the color for a given portion of a month calendar control (Requires: #include ) -_GUICtrlMonthCal_GetCurSel ( $hWnd ) Retrieves the currently selected date (Requires: #include ) -_GUICtrlMonthCal_GetCurSelStr ( $hWnd [, $sFormat = "%02d/%02d/%04d"] ) Retrieves the currently selected date in string format (Requires: #include ) -_GUICtrlMonthCal_GetFirstDOW ( $hWnd ) Retrieves the first day of the week (Requires: #include ) -_GUICtrlMonthCal_GetFirstDOWStr ( $hWnd ) Retrieves the first day of the week as a string (Requires: #include ) -_GUICtrlMonthCal_GetMaxSelCount ( $hWnd ) Retrieves the maximum date range that can be selected in a month calendar control (Requires: #include ) -_GUICtrlMonthCal_GetMaxTodayWidth ( $hWnd ) Retrieves the maximum width of the "today" string in a month calendar control (Requires: #include ) -_GUICtrlMonthCal_GetMinReqHeight ( $hWnd ) Retrieves the minimum height required to display a full month (Requires: #include ) -_GUICtrlMonthCal_GetMinReqRect ( $hWnd ) Retrieves the minimum size required to display a full month (Requires: #include ) -_GUICtrlMonthCal_GetMinReqRectArray ( $hWnd ) Retrieves the minimum size required to display a full month in a month calendar control (Requires: #include ) -_GUICtrlMonthCal_GetMinReqWidth ( $hWnd ) Retrieves the minimum width required to display a full month (Requires: #include ) -_GUICtrlMonthCal_GetMonthDelta ( $hWnd ) Retrieves the scroll rate for a month calendar control (Requires: #include ) -_GUICtrlMonthCal_GetMonthRange ( $hWnd [, $bPartial = False] ) Retrieves date information that represents the high and low display limits (Requires: #include ) -_GUICtrlMonthCal_GetMonthRangeMax ( $hWnd [, $bPartial = False] ) Retrieves date information that represents the high limit of the controls display (Requires: #include ) -_GUICtrlMonthCal_GetMonthRangeMaxStr ( $hWnd [, $sFormat = "%02d/%02d/%04d"] ) Retrieves date information that represents the high limit of the controls display in string format (Requires: #include ) -_GUICtrlMonthCal_GetMonthRangeMin ( $hWnd [, $bPartial = False] ) Retrieves date information that represents the low limit of the controls display (Requires: #include ) -_GUICtrlMonthCal_GetMonthRangeMinStr ( $hWnd [, $sFormat = "%02d/%02d/%04d"] ) Retrieves date information that represents the low limit of the controls display in string format (Requires: #include ) -_GUICtrlMonthCal_GetMonthRangeSpan ( $hWnd [, $bPartial = False] ) Returns a value that represents the range, in months, spanned (Requires: #include ) -_GUICtrlMonthCal_GetRange ( $hWnd ) Retrieves the minimum and maximum allowable dates (Requires: #include ) -_GUICtrlMonthCal_GetRangeMax ( $hWnd ) Retrieves the upper limit date range (Requires: #include ) -_GUICtrlMonthCal_GetRangeMaxStr ( $hWnd [, $sFormat = "%02d/%02d/%04d"] ) Retrieves the upper limit date range in string format (Requires: #include ) -_GUICtrlMonthCal_GetRangeMin ( $hWnd ) Retrieves the lower limit date range (Requires: #include ) -_GUICtrlMonthCal_GetRangeMinStr ( $hWnd [, $sFormat = "%02d/%02d/%04d"] ) Retrieves the lower limit date range in string form (Requires: #include ) -_GUICtrlMonthCal_GetSelRange ( $hWnd ) Retrieves the upper and lower limits of the date range currently selected (Requires: #include ) -_GUICtrlMonthCal_GetSelRangeMax ( $hWnd ) Retrieves the upper date range currently selected by the user (Requires: #include ) -_GUICtrlMonthCal_GetSelRangeMaxStr ( $hWnd [, $sFormat = "%02d/%02d/%04d"] ) Retrieves the upper date range currently selected by the user in string form (Requires: #include ) -_GUICtrlMonthCal_GetSelRangeMin ( $hWnd ) Retrieves the lower date range currently selected by the user (Requires: #include ) -_GUICtrlMonthCal_GetSelRangeMinStr ( $hWnd [, $sFormat = "%02d/%02d/%04d"] ) Retrieves the lower date range currently selected by the user in string form (Requires: #include ) -_GUICtrlMonthCal_GetToday ( $hWnd ) Retrieves the date information for the date specified as "today" (Requires: #include ) -_GUICtrlMonthCal_GetTodayStr ( $hWnd [, $sFormat = "%02d/%02d/%04d"] ) Retrieves the date information for the date specified as "today" in string format (Requires: #include ) -_GUICtrlMonthCal_GetUnicodeFormat ( $hWnd ) Retrieves the Unicode character format flag for the control (Requires: #include ) -_GUICtrlMonthCal_HitTest ( $hWnd, $iX, $iY ) Determines which portion of a month calendar control is at a given point (Requires: #include ) -_GUICtrlMonthCal_SetCalendarBorder ( $hWnd [, $iBorderSize = 4 [, $bSetBorder = True]] ) Sets the size of the border, in pixels (Requires: #include ) -_GUICtrlMonthCal_SetColor ( $hWnd, $iIndex, $iColor ) Sets the color for a given portion of the month calendar (Requires: #include ) -_GUICtrlMonthCal_SetCurSel ( $hWnd, $iYear, $iMonth, $iDay ) Sets the currently selected date (Requires: #include ) -_GUICtrlMonthCal_SetDayState ( $hWnd, $aMasks ) Sets the day states for all months that are currently visible (Requires: #include ) -_GUICtrlMonthCal_SetFirstDOW ( $hWnd, $sDay ) Sets the first day of the week for a month calendar control (Requires: #include ) -_GUICtrlMonthCal_SetMaxSelCount ( $hWnd, $iMaxSel ) Sets the maximum number of days that can be selected in a month calendar control (Requires: #include ) -_GUICtrlMonthCal_SetMonthDelta ( $hWnd, $iDelta ) Sets the scroll rate for a month calendar control (Requires: #include ) -_GUICtrlMonthCal_SetRange ( $hWnd, $iMinYear, $iMinMonth, $iMinDay, $iMaxYear, $iMaxMonth, $iMaxDay ) Sets date information that represents the high and low limits (Requires: #include ) -_GUICtrlMonthCal_SetSelRange ( $hWnd, $iMinYear, $iMinMonth, $iMinDay, $iMaxYear, $iMaxMonth, $iMaxDay ) Sets the selection for a month calendar control to a given date range (Requires: #include ) -_GUICtrlMonthCal_SetToday ( $hWnd, $iYear, $iMonth, $iDay ) Sets the date information for the date specified as "today" (Requires: #include ) -_GUICtrlMonthCal_SetUnicodeFormat ( $hWnd [, $bUnicode = False] ) Sets the Unicode character format flag for the control (Requires: #include ) -_GUICtrlRebar_AddBand ( $hWndRebar, $hWndChild [, $iMinWidth = 100 [, $iDefaultWidth = 100 [, $sText = "" [, $iIndex = -1 [, $iStyle = -1]]]]] ) Adds a new band in a rebar control (Requires: #include ) -_GUICtrlRebar_AddToolBarBand ( $hWndRebar, $hWndToolbar [, $sText = "" [, $iIndex = -1 [, $iStyle = -1]]] ) Adds a new band in a rebar control (Requires: #include ) -_GUICtrlRebar_BeginDrag ( $hWnd, $iIndex [, $iPos = -1] ) Adds a new band in a rebar control (Requires: #include ) -_GUICtrlRebar_Create ( $hWnd [, $iStyles = 0x513] ) Create a Rebar control (Requires: #include ) -_GUICtrlRebar_DeleteBand ( $hWnd, $iIndex ) Deletes a band from a rebar control (Requires: #include ) -_GUICtrlRebar_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlRebar_DragMove ( $hWnd [, $iPos = -1] ) Updates the drag position in the rebar control after a previous _GUICtrlRebar_BeginDrag message (Requires: #include ) -_GUICtrlRebar_EndDrag ( $hWnd ) Terminates the rebar control's drag-and-drop operation (Requires: #include ) -_GUICtrlRebar_GetBandBackColor ( $hWnd, $iIndex ) Retrieves the Band background color (Requires: #include ) -_GUICtrlRebar_GetBandBorders ( $hWnd, $iIndex ) Retrieves the borders of a band (Requires: #include ) -_GUICtrlRebar_GetBandBordersEx ( $hWnd, $iIndex ) Retrieves the borders of a band (Requires: #include ) -_GUICtrlRebar_GetBandChildHandle ( $hWnd, $iIndex ) Retrieves the Handle to the child window contained in the band, if any (Requires: #include ) -_GUICtrlRebar_GetBandChildSize ( $hWnd, $iIndex ) Retrieves the Child size settings (Requires: #include ) -_GUICtrlRebar_GetBandCount ( $hWnd ) Retrieves the count of bands currently in the rebar control (Requires: #include ) -_GUICtrlRebar_GetBandForeColor ( $hWnd, $iIndex ) Retrieves the Band foreground color (Requires: #include ) -_GUICtrlRebar_GetBandHeaderSize ( $hWnd, $iIndex ) Retrieves the size of the band's header, in pixels (Requires: #include ) -_GUICtrlRebar_GetBandID ( $hWnd, $iIndex ) Get the value that the control uses to identify this band for custom draw notification messages (Requires: #include ) -_GUICtrlRebar_GetBandIdealSize ( $hWnd, $iIndex ) Get Ideal width of the band, in pixels (Requires: #include ) -_GUICtrlRebar_GetBandLength ( $hWnd, $iIndex ) Get Length of the band, in pixels (Requires: #include ) -_GUICtrlRebar_GetBandLParam ( $hWnd, $iIndex ) Get Application-defined value (Requires: #include ) -_GUICtrlRebar_GetBandMargins ( $hWnd ) Get Length of the band, in pixels (Requires: #include ) -_GUICtrlRebar_GetBandMarginsEx ( $hWnd ) Get Length of the band, in pixels (Requires: #include ) -_GUICtrlRebar_GetBandRect ( $hWnd, $iIndex ) Retrieves the bounding rectangle for a given band in a rebar control (Requires: #include ) -_GUICtrlRebar_GetBandRectEx ( $hWnd, $iIndex ) Retrieves the bounding rectangle for a given band in a rebar control (Requires: #include ) -_GUICtrlRebar_GetBandStyle ( $hWnd, $iIndex ) Get the band style Flags (Requires: #include ) -_GUICtrlRebar_GetBandStyleBreak ( $hWnd, $iIndex ) Determine if band break flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleChildEdge ( $hWnd, $iIndex ) Determine if band child edge flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleFixedBMP ( $hWnd, $iIndex ) Determine if band fixed BMP flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleFixedSize ( $hWnd, $iIndex ) Determine if band fixed size flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleGripperAlways ( $hWnd, $iIndex ) Determine if band gripper flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleHidden ( $hWnd, $iIndex ) Determine if band hidden flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleHideTitle ( $hWnd, $iIndex ) Determine if band hide title flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleNoGripper ( $hWnd, $iIndex ) Determine if band noGripper flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleTopAlign ( $hWnd, $iIndex ) Determine if band top align flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleUseChevron ( $hWnd, $iIndex ) Determine if band use chevron flag is set (Requires: #include ) -_GUICtrlRebar_GetBandStyleVariableHeight ( $hWnd, $iIndex ) Determine if band variable height flag is set (Requires: #include ) -_GUICtrlRebar_GetBandText ( $hWnd, $iIndex ) Retrieves the display text for the band (Requires: #include ) -_GUICtrlRebar_GetBarHeight ( $hWnd ) Retrieves the height of the rebar control (Requires: #include ) -_GUICtrlRebar_GetBarInfo ( $hWnd ) Retrieves information about the rebar control and the image list it uses (Requires: #include ) -_GUICtrlRebar_GetBKColor ( $hWnd ) Retrieves a rebar control's default background color (Requires: #include ) -_GUICtrlRebar_GetColorScheme ( $hWnd ) Retrieves the color scheme information from the rebar control (Requires: #include ) -_GUICtrlRebar_GetRowCount ( $hWnd ) Retrieves the number of rows of bands in a rebar control (Requires: #include ) -_GUICtrlRebar_GetRowHeight ( $hWnd, $iIndex ) Retrieves the height of a specified row in a rebar control (Requires: #include ) -_GUICtrlRebar_GetTextColor ( $hWnd ) Retrieves a rebar control's default text color (Requires: #include ) -_GUICtrlRebar_GetToolTips ( $hWnd ) Retrieves the handle to any ToolTip control associated with the rebar control (Requires: #include ) -_GUICtrlRebar_GetUnicodeFormat ( $hWnd ) Retrieves the Unicode character format flag for the control (Requires: #include ) -_GUICtrlRebar_HitTest ( $hWnd [, $iX = -1 [, $iY = -1]] ) Determines which band is at a specified position (Requires: #include ) -_GUICtrlRebar_IDToIndex ( $hWnd, $iID ) Converts a band identifier to a band index in a rebar control (Requires: #include ) -_GUICtrlRebar_MaximizeBand ( $hWnd, $iIndex [, $bIdeal = True] ) Resizes a band in a rebar control to either its ideal or largest size (Requires: #include ) -_GUICtrlRebar_MinimizeBand ( $hWnd, $iIndex ) Resizes a band in a rebar control to its smallest size (Requires: #include ) -_GUICtrlRebar_MoveBand ( $hWnd, $iIndexFrom, $iIndexTo ) Moves a band from one index to another (Requires: #include ) -_GUICtrlRebar_SetBandBackColor ( $hWnd, $iIndex, $iColor ) Set the Band background color (Requires: #include ) -_GUICtrlRebar_SetBandForeColor ( $hWnd, $iIndex, $iColor ) Set the Band foreground color (Requires: #include ) -_GUICtrlRebar_SetBandHeaderSize ( $hWnd, $iIndex, $iNewSize ) Set the size of the band's header, in pixels (Requires: #include ) -_GUICtrlRebar_SetBandID ( $hWnd, $iIndex, $iID ) Set the value that the control uses to identify this band for custom draw notification messages (Requires: #include ) -_GUICtrlRebar_SetBandIdealSize ( $hWnd, $iIndex, $iNewSize ) Set Ideal width of the band, in pixels (Requires: #include ) -_GUICtrlRebar_SetBandLength ( $hWnd, $iIndex, $iLength ) Set the size length of the band (Requires: #include ) -_GUICtrlRebar_SetBandLParam ( $hWnd, $iIndex, $lParam ) Set Application-defined value (Requires: #include ) -_GUICtrlRebar_SetBandStyle ( $hWnd, $iIndex, $iStyle ) Set the band style Flags (Requires: #include ) -_GUICtrlRebar_SetBandStyleBreak ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether the band is on a new line (Requires: #include ) -_GUICtrlRebar_SetBandStyleChildEdge ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether the band has an edge at the top and bottom of the child window (Requires: #include ) -_GUICtrlRebar_SetBandStyleFixedBMP ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether the band background bitmap does not move when the band is resized (Requires: #include ) -_GUICtrlRebar_SetBandStyleFixedSize ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether the band can't be sized. With this style, the sizing grip is not displayed on the band (Requires: #include ) -_GUICtrlRebar_SetBandStyleGripperAlways ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether the band will always have a sizing grip, even if it is the only band in the rebar (Requires: #include ) -_GUICtrlRebar_SetBandStyleHidden ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether the band will not be visible (Requires: #include ) -_GUICtrlRebar_SetBandStyleHideTitle ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether to keep band title hidden (Requires: #include ) -_GUICtrlRebar_SetBandStyleNoGripper ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether the band will never have a sizing grip, even if there is more than one band in the rebar (Requires: #include ) -_GUICtrlRebar_SetBandStyleTopAlign ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether to keep band in top row (Requires: #include ) -_GUICtrlRebar_SetBandStyleUseChevron ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether to display drop-down button (Requires: #include ) -_GUICtrlRebar_SetBandStyleVariableHeight ( $hWnd, $iIndex [, $bEnabled = True] ) Set whether the band can be resized by the rebar control (Requires: #include ) -_GUICtrlRebar_SetBandText ( $hWnd, $iIndex, $sText ) Sets the display text for the band of a rebar control (Requires: #include ) -_GUICtrlRebar_SetBarInfo ( $hWnd, $hIml ) Sets the characteristics of a rebar control (Requires: #include ) -_GUICtrlRebar_SetBKColor ( $hWnd, $iColor ) Sets the default background color of a rebar control (Requires: #include ) -_GUICtrlRebar_SetColorScheme ( $hWnd, $iBtnHighlight, $iBtnShadow ) Sets the color scheme of a rebar control (Requires: #include ) -_GUICtrlRebar_SetTextColor ( $hWnd, $iColor ) Sets a rebar control's default text color (Requires: #include ) -_GUICtrlRebar_SetToolTips ( $hWnd, $hToolTip ) Associates a ToolTip control with the rebar control (Requires: #include ) -_GUICtrlRebar_SetUnicodeFormat ( $hWnd [, $bUnicode = True] ) Sets the Unicode character format flag for the control (Requires: #include ) -_GUICtrlRebar_ShowBand ( $hWnd, $iIndex [, $bShow = True] ) Shows or hides a given band in a rebar control (Requires: #include ) -_GUICtrlRichEdit_AppendText ( $hWnd, $sText ) Appends text at the end of the client area (Requires: #include ) -_GUICtrlRichEdit_AutoDetectURL ( $hWnd, $bState ) Enables or disables automatic detection of URLS (Requires: #include ) -_GUICtrlRichEdit_CanPaste ( $hWnd ) Can the contents of the clipboard be pasted into the control? (Requires: #include ) -_GUICtrlRichEdit_CanPasteSpecial ( $hWnd ) Can the contents of the clipboard be pasted into the control in both formats? (Requires: #include ) -_GUICtrlRichEdit_CanRedo ( $hWnd ) Can an undone action be redone? (Requires: #include ) -_GUICtrlRichEdit_CanUndo ( $hWnd ) Can an action be undone? (Requires: #include ) -_GUICtrlRichEdit_ChangeFontSize ( $hWnd, $iIncrement ) Increment or decrement font size(s) of selected text (Requires: #include ) -_GUICtrlRichEdit_Copy ( $hWnd ) Copy text to clipboard (Requires: #include ) -_GUICtrlRichEdit_Create ( $hWnd, $sText, $iLeft, $iTop [, $iWidth = 150 [, $iHeight = 150 [, $iStyle = -1 [, $iExStyle = -1]]]] ) Create an Edit control (Requires: #include ) -_GUICtrlRichEdit_Cut ( $hWnd ) Cut text to clipboard (Requires: #include ) -_GUICtrlRichEdit_Deselect ( $hWnd ) Deselects text, leaving none selected (Requires: #include ) -_GUICtrlRichEdit_Destroy ( ByRef $hWnd ) Delete the Rich Edit control (Requires: #include ) -_GUICtrlRichEdit_EmptyUndoBuffer ( $hWnd ) Resets the undo flag of the control (Requires: #include ) -_GUICtrlRichEdit_FindText ( $hWnd, $sText [, $bForward = True [, $bMatchCase = False [, $bWholeWord = False [, $iBehavior = 0]]]] ) Search for a text starting at insertion point or at anchor point of selection (Requires: #include ) -_GUICtrlRichEdit_FindTextInRange ( $hWnd, $sText [, $iStart = 0 [, $iEnd = -1 [, $bMatchCase = False [, $bWholeWord = False [, $iBehavior = 0]]]]] ) Search for a text in a range of inter-character positions (Requires: #include ) -_GUICtrlRichEdit_GetBkColor ( $hWnd ) Gets the background color of the control (Requires: #include ) -_GUICtrlRichEdit_GetCharAttributes ( $hWnd ) Returns attributes of selected text (Requires: #include ) -_GUICtrlRichEdit_GetCharBkColor ( $hWnd ) Retrieves the background color of the selected text or, if none selected, of the character to the right of the insertion point (Requires: #include ) -_GUICtrlRichEdit_GetCharColor ( $hWnd ) Retrieves the color of the selected text or, if none selected, of the character to the right of the insertion point (Requires: #include ) -_GUICtrlRichEdit_GetCharPosFromXY ( $hWnd, $iX, $iY ) Gets inter-character position closest to a specified point in the client area (Requires: #include ) -_GUICtrlRichEdit_GetCharPosOfNextWord ( $hWnd, $iCpStart ) Gets inter-character position before the next word (Requires: #include ) -_GUICtrlRichEdit_GetCharPosOfPreviousWord ( $hWnd, $iCpStart ) Gets inter-character position before the Previous word (Requires: #include ) -_GUICtrlRichEdit_GetCharWordBreakInfo ( $hWnd, $iCp ) Gets inter-character position before the Previous word/ (Requires: #include ) -_GUICtrlRichEdit_GetFirstCharPosOnLine ( $hWnd [, $iLine = -1] ) Retrieves the inter-character position preceding the first character of a line (Requires: #include ) -_GUICtrlRichEdit_GetFont ( $hWnd ) Gets the font attributes of a selection or, if no selection, at the insertion point (Requires: #include ) -_GUICtrlRichEdit_GetLineCount ( $hWnd ) Retrieves the number of lines in a multi-line edit control (Requires: #include ) -_GUICtrlRichEdit_GetLineLength ( $hWnd, $iLine ) Retrieves the length of a line (Requires: #include ) -_GUICtrlRichEdit_GetLineNumberFromCharPos ( $hWnd, $iCharPos ) Retrieves the line number on which an inter-character position is found (Requires: #include ) -_GUICtrlRichEdit_GetNextRedo ( $hWnd [, $bName = True] ) Retrieves the name or type ID of the next possible redo action (Requires: #include ) -_GUICtrlRichEdit_GetNextUndo ( $hWnd [, $bName = True] ) Retrieves the name or type ID of the next possible Undo action (Requires: #include ) -_GUICtrlRichEdit_GetNumberOfFirstVisibleLine ( $hWnd ) Gets number of the first line which is visible in the control (Requires: #include ) -_GUICtrlRichEdit_GetParaAlignment ( $hWnd ) Gets the alignment of selected paragraph(s), or (if no selection) of the current paragraph (Requires: #include ) -_GUICtrlRichEdit_GetParaAttributes ( $hWnd ) Gets the attributes of (first) selected paragraph or (if no selection) of the current paragraph (Requires: #include ) -_GUICtrlRichEdit_GetParaBorder ( $hWnd ) Gets the border settings of (first) selected paragraph or (if no selection) of the current paragraph (Requires: #include ) -_GUICtrlRichEdit_GetParaIndents ( $hWnd ) Gets the border indent settings of (first) selected paragraph or (if no selection) of the current paragraph (Requires: #include ) -_GUICtrlRichEdit_GetParaNumbering ( $hWnd ) Gets the numbering style of (first) selected paragraph or (if no selection) of the current paragraph (Requires: #include ) -_GUICtrlRichEdit_GetParaShading ( $hWnd ) Gets the shading settings of (first) selected paragraph or (if no selection) of the current paragraph (Requires: #include ) -_GUICtrlRichEdit_GetParaSpacing ( $hWnd ) Gets the spacing settings of (first) selected paragraph or (if no selection) of the current paragraph (Requires: #include ) -_GUICtrlRichEdit_GetParaTabStops ( $hWnd ) Gets the tabstops of (first) selected paragraph or (if no selection) of the current paragraph (Requires: #include ) -_GUICtrlRichEdit_GetPasswordChar ( $hWnd ) Gets the password character that a rich edit control displays when the user enters text (Requires: #include ) -_GUICtrlRichEdit_GetRECT ( $hWnd ) Retrieves the formatting rectangle of a control (Requires: #include ) -_GUICtrlRichEdit_GetScrollPos ( $hWnd ) Gets the Scrolling position of the control (Requires: #include ) -_GUICtrlRichEdit_GetSel ( $hWnd ) Gets the low and high inter-character positions of a selection (Requires: #include ) -_GUICtrlRichEdit_GetSelAA ( $hWnd ) Gets the anchor and active inter-character positions of a selection, in that order (Requires: #include ) -_GUICtrlRichEdit_GetSelText ( $hWnd ) Retrieves the currently selected text (Requires: #include ) -_GUICtrlRichEdit_GetSpaceUnit ( ) Gets the unit of measure of horizontal and vertical space used in parameters of various _GUICtrlRichEdit functions (Requires: #include ) -_GUICtrlRichEdit_GetText ( $hWnd [, $bCrToCrLf = False [, $iCodePage = 0 [, $sReplChar = ""]]] ) Get all of the text in the control (Requires: #include ) -_GUICtrlRichEdit_GetTextInLine ( $hWnd, $iLine ) Gets a line of text (Requires: #include ) -_GUICtrlRichEdit_GetTextInRange ( $hWnd, $iStart, $iEnd ) Gets the text from from one inter-character position to another (Requires: #include ) -_GUICtrlRichEdit_GetTextLength ( $hWnd [, $bExact = True [, $bChars = False]] ) Get the length of the whole text in the control (Requires: #include ) -_GUICtrlRichEdit_GetVersion ( ) Retrieves the version of Rich Edit (Requires: #include ) -_GUICtrlRichEdit_GetXYFromCharPos ( $hWnd, $iCharPos ) Retrieves the XY coordinates of an inter-character position (Requires: #include ) -_GUICtrlRichEdit_GetZoom ( $hWnd ) Gets the zoom level of the control (Requires: #include ) -_GUICtrlRichEdit_GotoCharPos ( $hWnd, $iCharPos ) Moves the insertion point to an inter-character position (Requires: #include ) -_GUICtrlRichEdit_HideSelection ( $hWnd [, $bHide = True] ) Hides (or shows) a selection (Requires: #include ) -_GUICtrlRichEdit_InsertText ( $hWnd, $sText ) Inserts text at insertion point or anchor point of selection (Requires: #include ) -_GUICtrlRichEdit_IsModified ( $hWnd ) Retrieves the state of a rich edit control's modification flag (Requires: #include ) -_GUICtrlRichEdit_IsTextSelected ( $hWnd ) Is text selected? (Requires: #include ) -_GUICtrlRichEdit_Paste ( $hWnd ) Paste RTF or RTF with Objects from clipboard (Requires: #include ) -_GUICtrlRichEdit_PasteSpecial ( $hWnd [, $bAndObjects = True] ) Paste RTF or RTF and Objects from clipboard (Requires: #include ) -_GUICtrlRichEdit_PauseRedraw ( $hWnd ) Pauses redrawing of the control (Requires: #include ) -_GUICtrlRichEdit_Redo ( $hWnd ) Redoes last undone action (Requires: #include ) -_GUICtrlRichEdit_ReplaceText ( $hWnd, $sText [, $bCanUndo = True] ) Replaces selected text (Requires: #include ) -_GUICtrlRichEdit_ResumeRedraw ( $hWnd ) Resumes redrawing of the control (Requires: #include ) -_GUICtrlRichEdit_ScrollLineOrPage ( $hWnd, $sAction ) Scrolls the text down or up a line or a page (Requires: #include ) -_GUICtrlRichEdit_ScrollLines ( $hWnd, $iQlines ) Scrolls the text down or up a number of lines (Requires: #include ) -_GUICtrlRichEdit_ScrollToCaret ( $hWnd ) Scrolls to show line on which caret (insertion point) is (Requires: #include ) -_GUICtrlRichEdit_SetBkColor ( $hWnd [, $iBngColor = Default] ) Sets the background color of the control (Requires: #include ) -_GUICtrlRichEdit_SetCharAttributes ( $hWnd, $sStatesAndEffects [, $bWord = False] ) Turns an attribute on or off for selected text or, if none selected, for text inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetCharBkColor ( $hWnd [, $iBkColor = Default] ) Sets the background color of selected text or, if none selected, sets the background color of text inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetCharColor ( $hWnd [, $iColor = Default] ) Sets the color of selected text or, if none selected, sets the background color of text inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetEventMask ( $hWnd, $iEventMask ) Specifies which notification messages are sent to the parent window (Requires: #include ) -_GUICtrlRichEdit_SetFont ( $hWnd [, $iPoints = Default [, $sName = Default [, $iCharset = Default [, $iLcid = Default]]]] ) Sets the font attributes of selected text or, if none selected, sets those of text inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetLimitOnText ( $hWnd, $iNewLimit ) Change number of characters that can be typed, pasted or streamed in as Rich Text Format (Requires: #include ) -_GUICtrlRichEdit_SetModified ( $hWnd [, $bState = True] ) Sets or clears the modification flag (Requires: #include ) -_GUICtrlRichEdit_SetParaAlignment ( $hWnd, $sAlignment ) Sets alignment of paragraph(s) in the current selection or, if no selection, of paragraphs inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetParaAttributes ( $hWnd, $sStatesAndAtts ) Sets attributes of paragraph(s) in the current selection or, if no selection, of paragraphs inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetParaBorder ( $hWnd [, $sLocation = Default [, $vLineStyle = Default [, $sColor = Default [, $iSpace = Default]]]] ) Sets the border of paragraph(s) in the current selection or, if no selection, of paragraphs inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetParaIndents ( $hWnd [, $vLeft = Default [, $iRight = Default [, $iFirstLine = Default]]] ) Sets indents of paragraph(s) in the current selection or, if no selection, of paragraphs inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetParaNumbering ( $hWnd, $sStyle [, $iTextToNbrSpace = Default [, $bForceRoman = False]] ) Sets numbering of paragraph(s) in the current selection or, if no selection, of paragraph(s) inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetParaShading ( $hWnd [, $iWeight = Default [, $sStyle = Default [, $sForeColor = Default [, $sBackColor = Default]]]] ) Sets the shading of paragraph(s) in the current selection or, if no selection, of paragraphs inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetParaSpacing ( $hWnd [, $vInter = Default [, $iBefore = Default [, $iAfter = Default]]] ) Sets paragraph spacing of paragraphs having selected text or, if none selected, sets it for text inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetParaTabStops ( $hWnd, $sTabStops ) Sets tab stops of paragraphs having selected text or, if none selected, sets it for text inserted at the insertion point (Requires: #include ) -_GUICtrlRichEdit_SetPasswordChar ( $hWnd [, $sDisplayChar = "*"] ) Sets the characters to be displayed instead of those typed, or causes typed characters to show (Requires: #include ) -_GUICtrlRichEdit_SetReadOnly ( $hWnd [, $bState = True] ) Sets or removes the read-only state (Requires: #include ) -_GUICtrlRichEdit_SetRECT ( $hWnd [, $iLeft = Default [, $iTop = Default [, $iRight = Default [, $iBottom = Default [, $bRedraw = True]]]]] ) Sets the formatting rectangle of a Rich Edit control (Requires: #include ) -_GUICtrlRichEdit_SetScrollPos ( $hWnd, $iX, $iY ) Scrolls the display such that ($ix,$iY) is in the upper left corner of the control (Requires: #include ) -_GUICtrlRichEdit_SetSel ( $hWnd, $iAnchor, $iActive [, $bHideSel = False] ) Sets the low and high character position of a selection (Requires: #include ) -_GUICtrlRichEdit_SetSpaceUnit ( $sUnit ) Sets the unit of measure of horizontal and vertical space used in parameters of various _GUICtrlRichEdit functions (Requires: #include ) -_GUICtrlRichEdit_SetTabStops ( $hWnd, $vTabStops [, $bRedraw = True] ) Sets tab stops for the control (Requires: #include ) -_GUICtrlRichEdit_SetText ( $hWnd, $sText ) Sets the text of a control (Requires: #include ) -_GUICtrlRichEdit_SetUndoLimit ( $hWnd, $iLimit ) Sets the maximum number of actions that can stored in the undo queue (Requires: #include ) -_GUICtrlRichEdit_SetZoom ( $hWnd, $iPercent ) Sets zoom level of the control (Requires: #include ) -_GUICtrlRichEdit_StreamFromFile ( $hWnd, $sFileSpec ) Sets text in a control from a file (Requires: #include ) -_GUICtrlRichEdit_StreamFromVar ( $hWnd, $sVar ) Sets text in a control from a variable (Requires: #include ) -_GUICtrlRichEdit_StreamToFile ( $hWnd, $sFileSpec [, $bIncludeCOM = True [, $iOpts = 0 [, $iCodePage = 0]]] ) Writes contents of a control to a file (Requires: #include ) -_GUICtrlRichEdit_StreamToVar ( $hWnd [, $bRtf = True [, $bIncludeCOM = True [, $iOpts = 0 [, $iCodePage = 0]]]] ) Writes contents of a control to a variable (Requires: #include ) -_GUICtrlRichEdit_Undo ( $hWnd ) Undoes the last edit control operation in the control's undo queue (Requires: #include ) -_GUICtrlSlider_ClearSel ( $hWnd ) Clears the current selection range (Requires: #include ) -_GUICtrlSlider_ClearTics ( $hWnd ) Removes the current tick marks from a slider (Requires: #include ) -_GUICtrlSlider_Create ( $hWnd, $iX, $iY [, $iWidth = 100 [, $iHeight = 20 [, $iStyle = $TBS_AUTOTICKS [, $iExStyle = 0x00000000]]]] ) Create a Slider control (Requires: #include ) -_GUICtrlSlider_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlSlider_GetBuddy ( $hWnd, $bLocation ) Retrieves the handle to a slider control buddy window at a given location (Requires: #include ) -_GUICtrlSlider_GetChannelRect ( $hWnd ) Retrieves the size and position of the bounding rectangle for a sliders's channel (Requires: #include ) -_GUICtrlSlider_GetChannelRectEx ( $hWnd ) Retrieves the size and position of the bounding rectangle for a sliders's channel (Requires: #include ) -_GUICtrlSlider_GetLineSize ( $hWnd ) Retrieves the number of logical positions the slider moves (Requires: #include ) -_GUICtrlSlider_GetLogicalTics ( $hWnd ) Retrieves an array that contains the logical positions of the tick marks for a slider (Requires: #include ) -_GUICtrlSlider_GetNumTics ( $hWnd ) Retrieves the number of tick marks from a slider (Requires: #include ) -_GUICtrlSlider_GetPageSize ( $hWnd ) Retrieves the number of logical positions the slider moves (Requires: #include ) -_GUICtrlSlider_GetPos ( $hWnd ) Retrieves the logical position the slider (Requires: #include ) -_GUICtrlSlider_GetRange ( $hWnd ) Retrieves the maximum and minimum position for the slider (Requires: #include ) -_GUICtrlSlider_GetRangeMax ( $hWnd ) Retrieves the maximum position for the slider (Requires: #include ) -_GUICtrlSlider_GetRangeMin ( $hWnd ) Retrieves the minimum position for the slider (Requires: #include ) -_GUICtrlSlider_GetSel ( $hWnd ) Retrieves the ending and starting position of the current selection range (Requires: #include ) -_GUICtrlSlider_GetSelEnd ( $hWnd ) Retrieves the ending position of the current selection range (Requires: #include ) -_GUICtrlSlider_GetSelStart ( $hWnd ) Retrieves the starting position of the current selection range (Requires: #include ) -_GUICtrlSlider_GetThumbLength ( $hWnd ) Retrieves the length of the slider (Requires: #include ) -_GUICtrlSlider_GetThumbRect ( $hWnd ) Retrieves the size and position of the bounding rectangle for the slider (Requires: #include ) -_GUICtrlSlider_GetThumbRectEx ( $hWnd ) Retrieves the size and position of the bounding rectangle for the slider (Requires: #include ) -_GUICtrlSlider_GetTic ( $hWnd, $iTic ) Retrieves the logical position of a tick mark (Requires: #include ) -_GUICtrlSlider_GetTicPos ( $hWnd, $iTic ) Retrieves the current physical position of a tick mark (Requires: #include ) -_GUICtrlSlider_GetToolTips ( $hWnd ) Retrieves the handle to the ToolTip control assigned to the slider, if any (Requires: #include ) -_GUICtrlSlider_GetUnicodeFormat ( $hWnd ) Retrieves the Unicode character format flag for the control (Requires: #include ) -_GUICtrlSlider_SetBuddy ( $hWnd, $bLocation, $hBuddy ) Assigns a window as the buddy window for a slider control (Requires: #include ) -_GUICtrlSlider_SetLineSize ( $hWnd, $iLineSize ) Sets the number of logical positions the slider moves (Requires: #include ) -_GUICtrlSlider_SetPageSize ( $hWnd, $iPageSize ) Sets the number of logical positions the slider moves (Requires: #include ) -_GUICtrlSlider_SetPos ( $hWnd, $iPosition ) Sets the current logical position of the slider (Requires: #include ) -_GUICtrlSlider_SetRange ( $hWnd, $iMinimum, $iMaximum ) Sets the range of minimum and maximum logical positions for the slider (Requires: #include ) -_GUICtrlSlider_SetRangeMax ( $hWnd, $iMaximum ) Sets the maximum logical position for the slider (Requires: #include ) -_GUICtrlSlider_SetRangeMin ( $hWnd, $iMinimum ) Sets the minimum logical position for the slider (Requires: #include ) -_GUICtrlSlider_SetSel ( $hWnd, $iMinimum, $iMaximum ) Sets the starting and ending positions for the available selection range (Requires: #include ) -_GUICtrlSlider_SetSelEnd ( $hWnd, $iMaximum ) Sets the ending logical position of the current selection range (Requires: #include ) -_GUICtrlSlider_SetSelStart ( $hWnd, $iMinimum ) Sets the starting logical position of the current selection range (Requires: #include ) -_GUICtrlSlider_SetThumbLength ( $hWnd, $iLength ) Sets the length of the slider (Requires: #include ) -_GUICtrlSlider_SetTic ( $hWnd, $iPosition ) Sets a tick mark in a slider at the specified logical position (Requires: #include ) -_GUICtrlSlider_SetTicFreq ( $hWnd, $iFreg ) Sets the interval frequency for tick marks in a slider (Requires: #include ) -_GUICtrlSlider_SetTipSide ( $hWnd, $iLocation ) Positions a ToolTip control (Requires: #include ) -_GUICtrlSlider_SetToolTips ( $hWnd, $hWndTT ) Assigns a ToolTip control to a slider control (Requires: #include ) -_GUICtrlSlider_SetUnicodeFormat ( $hWnd, $bUnicode ) Sets the Unicode character format flag for the control (Requires: #include ) -_GUICtrlStatusBar_Create ( $hWnd [, $vPartEdge = -1 [, $vPartText = "" [, $iStyles = -1 [, $iExStyles = 0x00000000]]]] ) Create a statusbar (Requires: #include ) -_GUICtrlStatusBar_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlStatusBar_EmbedControl ( $hWnd, $iPart, $hControl [, $iFit = 4] ) Embeds a child control in the control (Requires: #include ) -_GUICtrlStatusBar_GetBorders ( $hWnd ) Retrieves the current widths of the horizontal and vertical borders (Requires: #include ) -_GUICtrlStatusBar_GetBordersHorz ( $hWnd ) Retrieves the current width of the horizontal border (Requires: #include ) -_GUICtrlStatusBar_GetBordersRect ( $hWnd ) Retrieves the current width of the rectangle border (Requires: #include ) -_GUICtrlStatusBar_GetBordersVert ( $hWnd ) Retrieves the current width of the vertical border (Requires: #include ) -_GUICtrlStatusBar_GetCount ( $hWnd ) Retrieves the number of parts (Requires: #include ) -_GUICtrlStatusBar_GetHeight ( $hWnd ) Retrieves the height of the statusbar (Requires: #include ) -_GUICtrlStatusBar_GetIcon ( $hWnd [, $iIndex = 0] ) Retrieves the icon for a part (Requires: #include ) -_GUICtrlStatusBar_GetParts ( $hWnd ) Retrieves the number of parts and the part edges (Requires: #include ) -_GUICtrlStatusBar_GetRect ( $hWnd, $iPart ) Retrieves the bounding rectangle of a part (Requires: #include ) -_GUICtrlStatusBar_GetRectEx ( $hWnd, $iPart ) Retrieves the bounding rectangle of a part (Requires: #include ) -_GUICtrlStatusBar_GetText ( $hWnd, $iPart ) Retrieves the text from the specified part (Requires: #include ) -_GUICtrlStatusBar_GetTextFlags ( $hWnd, $iPart ) Retrieves the text length flags for a part (Requires: #include ) -_GUICtrlStatusBar_GetTextLength ( $hWnd, $iPart ) Retrieves the length of a part text (Requires: #include ) -_GUICtrlStatusBar_GetTextLengthEx ( $hWnd, $iPart ) Retrieves the uFlag of a part (Requires: #include ) -_GUICtrlStatusBar_GetTipText ( $hWnd, $iPart ) Retrieves the ToolTip text for a part (Requires: #include ) -_GUICtrlStatusBar_GetUnicodeFormat ( $hWnd ) Retrieves the Unicode character format flag (Requires: #include ) -_GUICtrlStatusBar_GetWidth ( $hWnd, $iPart ) Retrieves the width of a part (Requires: #include ) -_GUICtrlStatusBar_IsSimple ( $hWnd ) Checks a status bar control to determine if it is in simple mode (Requires: #include ) -_GUICtrlStatusBar_Resize ( $hWnd ) Causes the status bar to resize itself (Requires: #include ) -_GUICtrlStatusBar_SetBkColor ( $hWnd, $iColor ) Sets the background color (Requires: #include ) -_GUICtrlStatusBar_SetIcon ( $hWnd, $iPart [, $hIcon = -1 [, $sIconFile = ""]] ) Sets the icon for a part (Requires: #include ) -_GUICtrlStatusBar_SetMinHeight ( $hWnd, $iMinHeight ) Sets the minimum height of a status window's drawing area (Requires: #include ) -_GUICtrlStatusBar_SetParts ( $hWnd [, $aParts = -1 [, $aPartWidth = 25]] ) Sets the number of parts and the part edges (Requires: #include ) -_GUICtrlStatusBar_SetSimple ( $hWnd [, $bSimple = True] ) Specifies whether a status window displays simple text or displays all window parts (Requires: #include ) -_GUICtrlStatusBar_SetText ( $hWnd [, $sText = "" [, $iPart = 0 [, $iUFlag = 0]]] ) Sets the text in the specified part of a status window (Requires: #include ) -_GUICtrlStatusBar_SetTipText ( $hWnd, $iPart, $sText ) Sets the ToolTip text for a part (Requires: #include ) -_GUICtrlStatusBar_SetUnicodeFormat ( $hWnd [, $bUnicode = True] ) Sets the Unicode character format flag (Requires: #include ) -_GUICtrlStatusBar_ShowHide ( $hWnd, $iState ) Show/Hide the StatusBar control (Requires: #include ) -_GUICtrlTab_ActivateTab ( $hWnd, $iIndex ) Activates a tab by its index (Requires: #include ) -_GUICtrlTab_ClickTab ( $hWnd, $iIndex [, $sButton = "left" [, $bMove = False [, $iClicks = 1 [, $iSpeed = 1]]]] ) Clicks a tab (Requires: #include ) -_GUICtrlTab_Create ( $hWnd, $iX, $iY [, $iWidth = 150 [, $iHeight = 150 [, $iStyle = 0x00000040 [, $iExStyle = 0x00000000]]]] ) Create a TabControl control (Requires: #include ) -_GUICtrlTab_DeleteAllItems ( $hWnd ) Deletes all tabs (Requires: #include ) -_GUICtrlTab_DeleteItem ( $hWnd, $iIndex ) Deletes a tab (Requires: #include ) -_GUICtrlTab_DeselectAll ( $hWnd [, $bExclude = True] ) Resets tabs, clearing any that were set to the pressed state (Requires: #include ) -_GUICtrlTab_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlTab_FindTab ( $hWnd, $sText [, $bInStr = False [, $iStart = 0]] ) Searches for a tab with the specific text (Requires: #include ) -_GUICtrlTab_GetCurFocus ( $hWnd ) Returns the index of the item that has the focus in a tab control (Requires: #include ) -_GUICtrlTab_GetCurSel ( $hWnd ) Determines the currently selected tab (Requires: #include ) -_GUICtrlTab_GetDisplayRect ( $hWnd ) Retrieves the display rectangle of the client area (Requires: #include ) -_GUICtrlTab_GetDisplayRectEx ( $hWnd ) Retrieves the display rectangle of the client area (Requires: #include ) -_GUICtrlTab_GetExtendedStyle ( $hWnd ) Retrieves the extended styles that are currently in use (Requires: #include ) -_GUICtrlTab_GetImageList ( $hWnd ) Retrieves the tab control image list (Requires: #include ) -_GUICtrlTab_GetItem ( $hWnd, $iIndex ) Retrieves information about a tab (Requires: #include ) -_GUICtrlTab_GetItemCount ( $hWnd ) Retrieves the number of tabs (Requires: #include ) -_GUICtrlTab_GetItemImage ( $hWnd, $iIndex ) Retrieves the image index for a tab (Requires: #include ) -_GUICtrlTab_GetItemParam ( $hWnd, $iIndex ) Retrieves the param data for a tab (Requires: #include ) -_GUICtrlTab_GetItemRect ( $hWnd, $iIndex ) Retrieves the bounding rectangle for a tab (Requires: #include ) -_GUICtrlTab_GetItemRectEx ( $hWnd, $iIndex ) Retrieves the bounding rectangle for a tab (Requires: #include ) -_GUICtrlTab_GetItemState ( $hWnd, $iIndex ) Retrieves the state of a tab (Requires: #include ) -_GUICtrlTab_GetItemText ( $hWnd, $iIndex ) Retrieves the text of a tab (Requires: #include ) -_GUICtrlTab_GetRowCount ( $hWnd ) Retrieves the current number of rows of tabs (Requires: #include ) -_GUICtrlTab_GetToolTips ( $hWnd ) Retrieves the handle to the ToolTip control associated with the control (Requires: #include ) -_GUICtrlTab_GetUnicodeFormat ( $hWnd ) Retrieves the Unicode character format flag for the control (Requires: #include ) -_GUICtrlTab_HighlightItem ( $hWnd, $iIndex [, $bHighlight = True] ) Sets the highlight state of a tab item (Requires: #include ) -_GUICtrlTab_HitTest ( $hWnd, $iX, $iY ) Determines where a point lies control (Requires: #include ) -_GUICtrlTab_InsertItem ( $hWnd, $iIndex, $sText [, $iImage = -1 [, $iParam = 0]] ) Inserts a new tab (Requires: #include ) -_GUICtrlTab_RemoveImage ( $hWnd, $iIndex ) Removes an image from the control's image list (Requires: #include ) -_GUICtrlTab_SetCurFocus ( $hWnd, $iIndex ) Sets the focus to a specified tab (Requires: #include ) -_GUICtrlTab_SetCurSel ( $hWnd, $iIndex ) Selects a tab (Requires: #include ) -_GUICtrlTab_SetExtendedStyle ( $hWnd, $iStyle ) Sets the extended styles that are currently in use (Requires: #include ) -_GUICtrlTab_SetImageList ( $hWnd, $hImage ) Sets the image list associated with a tab control (Requires: #include ) -_GUICtrlTab_SetItem ( $hWnd, $iIndex [, $sText = -1 [, $iState = -1 [, $iImage = -1 [, $iParam = -1]]]] ) Sets information about a tab (Requires: #include ) -_GUICtrlTab_SetItemImage ( $hWnd, $iIndex, $iImage ) Sets the image of a tab (Requires: #include ) -_GUICtrlTab_SetItemParam ( $hWnd, $iIndex, $iParam ) Sets the param data of a tab (Requires: #include ) -_GUICtrlTab_SetItemSize ( $hWnd, $iWidth, $iHeight ) Sets the width and height of tabs in a fixed width or owner drawn control (Requires: #include ) -_GUICtrlTab_SetItemState ( $hWnd, $iIndex, $iState ) Sets the state of a tab (Requires: #include ) -_GUICtrlTab_SetItemText ( $hWnd, $iIndex, $sText ) Sets the text of a tab (Requires: #include ) -_GUICtrlTab_SetMinTabWidth ( $hWnd, $iMinWidth ) Sets the minimum width of items in a tab control (Requires: #include ) -_GUICtrlTab_SetPadding ( $hWnd, $iHorz, $iVert ) Sets the amount of space around each tab's icon and label (Requires: #include ) -_GUICtrlTab_SetToolTips ( $hWnd, $hToolTip ) Sets the handle to the ToolTip control associated with the control (Requires: #include ) -_GUICtrlTab_SetUnicodeFormat ( $hWnd, $bUnicode ) Sets the Unicode character format flag for the control (Requires: #include ) -_GUICtrlToolbar_AddBitmap ( $hWnd, $iButtons, $hInst, $iID ) Adds images to the image list (Requires: #include ) -_GUICtrlToolbar_AddButton ( $hWnd, $iID, $iImage [, $iString = 0 [, $iStyle = 0 [, $iState = 4 [, $iParam = 0]]]] ) Adds a button (Requires: #include ) -_GUICtrlToolbar_AddButtonSep ( $hWnd [, $iWidth = 6] ) Adds a separator (Requires: #include ) -_GUICtrlToolbar_AddString ( $hWnd, $sString ) Adds a new string to the toolbar's string pool (Requires: #include ) -_GUICtrlToolbar_ButtonCount ( $hWnd ) Retrieves a count of the buttons (Requires: #include ) -_GUICtrlToolbar_CheckButton ( $hWnd, $iCommandID [, $bCheck = True] ) Checks or unchecks a given button (Requires: #include ) -_GUICtrlToolbar_ClickAccel ( $hWnd, $sAccelKey [, $sButton = "left" [, $bMove = False [, $iClicks = 1 [, $iSpeed = 1]]]] ) Clicks a specific button using it's accelerator (Requires: #include ) -_GUICtrlToolbar_ClickButton ( $hWnd, $iCommandID [, $sButton = "left" [, $bMove = False [, $iClicks = 1 [, $iSpeed = 1]]]] ) Clicks a specific button (Requires: #include ) -_GUICtrlToolbar_ClickIndex ( $hWnd, $iIndex [, $sButton = "left" [, $bMove = False [, $iClicks = 1 [, $iSpeed = 1]]]] ) Clicks a specific button using it's index (Requires: #include ) -_GUICtrlToolbar_CommandToIndex ( $hWnd, $iCommandID ) Retrieves the index for the button associated with the specified command identifier (Requires: #include ) -_GUICtrlToolbar_Create ( $hWnd [, $iStyle = 0x00000800 [, $iExStyle = 0x00000000]] ) Create a Toolbar control (Requires: #include ) -_GUICtrlToolbar_Customize ( $hWnd ) Displays the Customize Toolbar dialog box (Requires: #include ) -_GUICtrlToolbar_DeleteButton ( $hWnd, $iCommandID ) Deletes a button from the toolbar (Requires: #include ) -_GUICtrlToolbar_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlToolbar_EnableButton ( $hWnd, $iCommandID [, $bEnable = True] ) Enables or disables the specified button (Requires: #include ) -_GUICtrlToolbar_FindToolbar ( $hWnd, $sText ) Finds a specific toolbar (Requires: #include ) -_GUICtrlToolbar_GetAnchorHighlight ( $hWnd ) Retrieves the anchor highlight setting (Requires: #include ) -_GUICtrlToolbar_GetBitmapFlags ( $hWnd ) Retrieves the flags that describe the type of bitmap to be used (Requires: #include ) -_GUICtrlToolbar_GetButtonBitmap ( $hWnd, $iCommandID ) Retrieves the index of the bitmap associated with a button (Requires: #include ) -_GUICtrlToolbar_GetButtonInfo ( $hWnd, $iCommandID ) Retrieves information for a button (Requires: #include ) -_GUICtrlToolbar_GetButtonInfoEx ( $hWnd, $iCommandID ) Retrieves extended information for a button (Requires: #include ) -_GUICtrlToolbar_GetButtonParam ( $hWnd, $iCommandID ) Retrieves the button param value (Requires: #include ) -_GUICtrlToolbar_GetButtonRect ( $hWnd, $iCommandID ) Retrieves the bounding rectangle for a button (Requires: #include ) -_GUICtrlToolbar_GetButtonRectEx ( $hWnd, $iCommandID ) Retrieves the bounding rectangle for a specified toolbar button (Requires: #include ) -_GUICtrlToolbar_GetButtonSize ( $hWnd ) Retrieves the current button width and height, in pixels (Requires: #include ) -_GUICtrlToolbar_GetButtonState ( $hWnd, $iCommandID ) Retrieves information about the state of the specified button (Requires: #include ) -_GUICtrlToolbar_GetButtonStyle ( $hWnd, $iCommandID ) Retrieves the style flags of a button (Requires: #include ) -_GUICtrlToolbar_GetButtonText ( $hWnd, $iCommandID ) Retrieves the display text of a button (Requires: #include ) -_GUICtrlToolbar_GetColorScheme ( $hWnd ) Retrieves the color scheme information (Requires: #include ) -_GUICtrlToolbar_GetDisabledImageList ( $hWnd ) Retrieves the disabled button image list (Requires: #include ) -_GUICtrlToolbar_GetExtendedStyle ( $hWnd ) Retrieves the extended styles (Requires: #include ) -_GUICtrlToolbar_GetHotImageList ( $hWnd ) Retrieves the hot button image list (Requires: #include ) -_GUICtrlToolbar_GetHotItem ( $hWnd ) Retrieves the index of the hot item (Requires: #include ) -_GUICtrlToolbar_GetImageList ( $hWnd ) Retrieves the default state image list (Requires: #include ) -_GUICtrlToolbar_GetInsertMark ( $hWnd ) Retrieves the current insertion mark (Requires: #include ) -_GUICtrlToolbar_GetInsertMarkColor ( $hWnd ) Retrieves the color used to draw the insertion mark (Requires: #include ) -_GUICtrlToolbar_GetMaxSize ( $hWnd ) Retrieves the total size of all of the visible buttons and separators (Requires: #include ) -_GUICtrlToolbar_GetMetrics ( $hWnd ) Retrieves the metrics of a toolbar control (Requires: #include ) -_GUICtrlToolbar_GetPadding ( $hWnd ) Retrieves the horizontal and vertical padding (Requires: #include ) -_GUICtrlToolbar_GetRows ( $hWnd ) Retrieves the number of rows of buttons (Requires: #include ) -_GUICtrlToolbar_GetString ( $hWnd, $iIndex ) Retrieves a string from the string pool (Requires: #include ) -_GUICtrlToolbar_GetStyle ( $hWnd ) Retrieves the styles currently in use for a toolbar control (Requires: #include ) -_GUICtrlToolbar_GetStyleAltDrag ( $hWnd ) Indicates that the control allows buttons to be dragged (Requires: #include ) -_GUICtrlToolbar_GetStyleCustomErase ( $hWnd ) Indicates that the control generates NM_CUSTOMDRAW notification messages (Requires: #include ) -_GUICtrlToolbar_GetStyleFlat ( $hWnd ) Indicates that the control is flat (Requires: #include ) -_GUICtrlToolbar_GetStyleList ( $hWnd ) Indicates that the control has button text to the right of the bitmap (Requires: #include ) -_GUICtrlToolbar_GetStyleRegisterDrop ( $hWnd ) Indicates that the control generates TBN_GETOBJECT notification messages (Requires: #include ) -_GUICtrlToolbar_GetStyleToolTips ( $hWnd ) Indicates that the control has tooltips (Requires: #include ) -_GUICtrlToolbar_GetStyleTransparent ( $hWnd ) Indicates that the control is transparent (Requires: #include ) -_GUICtrlToolbar_GetStyleWrapable ( $hWnd ) Indicates that the control is wrapable (Requires: #include ) -_GUICtrlToolbar_GetTextRows ( $hWnd ) Retrieves the maximum number of text rows that can be displayed on a button (Requires: #include ) -_GUICtrlToolbar_GetToolTips ( $hWnd ) Retrieves the handle to the ToolTip control (Requires: #include ) -_GUICtrlToolbar_GetUnicodeFormat ( $hWnd ) Retrieves the Unicode character format flag (Requires: #include ) -_GUICtrlToolbar_HideButton ( $hWnd, $iCommandID [, $bHide = True] ) Hides or shows the specified button (Requires: #include ) -_GUICtrlToolbar_HighlightButton ( $hWnd, $iCommandID [, $bHighlight = True] ) Sets the highlight state of a given button control (Requires: #include ) -_GUICtrlToolbar_HitTest ( $hWnd, $iX, $iY ) Determines where a point lies within the control (Requires: #include ) -_GUICtrlToolbar_IndexToCommand ( $hWnd, $iIndex ) Retrieves the command identifier associated with the button (Requires: #include ) -_GUICtrlToolbar_InsertButton ( $hWnd, $iIndex, $iID, $iImage [, $sText = "" [, $iStyle = 0 [, $iState = 4 [, $iParam = 0]]]] ) Inserts a button (Requires: #include ) -_GUICtrlToolbar_InsertMarkHitTest ( $hWnd, $iX, $iY ) Retrieves the insertion mark information for a point (Requires: #include ) -_GUICtrlToolbar_IsButtonChecked ( $hWnd, $iCommandID ) Indicates whether the specified button is checked (Requires: #include ) -_GUICtrlToolbar_IsButtonEnabled ( $hWnd, $iCommandID ) Indicates whether the specified button is enabled (Requires: #include ) -_GUICtrlToolbar_IsButtonHidden ( $hWnd, $iCommandID ) Indicates whether the specified button is hidden (Requires: #include ) -_GUICtrlToolbar_IsButtonHighlighted ( $hWnd, $iCommandID ) Indicates whether the specified button is hilighted (Requires: #include ) -_GUICtrlToolbar_IsButtonIndeterminate ( $hWnd, $iCommandID ) Indicates whether the specified button is indeterminate (Requires: #include ) -_GUICtrlToolbar_IsButtonPressed ( $hWnd, $iCommandID ) Indicates that the button is being clicked (Requires: #include ) -_GUICtrlToolbar_LoadBitmap ( $hWnd, $sFileName ) Adds a bitmap to the image list from a file (Requires: #include ) -_GUICtrlToolbar_LoadImages ( $hWnd, $iBitMapID ) Loads system defined button images into a toolbar control's image list (Requires: #include ) -_GUICtrlToolbar_MapAccelerator ( $hWnd, $sAccelKey ) Determines the ID of the button that corresponds to the specified accelerator (Requires: #include ) -_GUICtrlToolbar_MoveButton ( $hWnd, $iOldPos, $iNewPos ) Moves a button from one index to another (Requires: #include ) -_GUICtrlToolbar_PressButton ( $hWnd, $iCommandID [, $bPress = True] ) Presses or releases the specified button (Requires: #include ) -_GUICtrlToolbar_SetAnchorHighlight ( $hWnd, $bAnchor ) Sets the anchor highlight setting (Requires: #include ) -_GUICtrlToolbar_SetBitmapSize ( $hWnd, $iWidth, $iHeight ) Sets the size of the bitmapped images to be added to a toolbar (Requires: #include ) -_GUICtrlToolbar_SetButtonBitMap ( $hWnd, $iCommandID, $iIndex ) Sets the index of the bitmap associated with a button (Requires: #include ) -_GUICtrlToolbar_SetButtonInfo ( $hWnd, $iCommandID [, $iImage = -3 [, $iState = -1 [, $iStyle = -1 [, $iWidth = -1 [, $iParam = -1]]]]] ) Sets information for a button (Requires: #include ) -_GUICtrlToolbar_SetButtonInfoEx ( $hWnd, $iCommandID, $tButton ) Sets extended information for a button (Requires: #include ) -_GUICtrlToolbar_SetButtonParam ( $hWnd, $iCommandID, $iParam ) Sets the button param value (Requires: #include ) -_GUICtrlToolbar_SetButtonSize ( $hWnd, $iHeight, $iWidth ) Sets the size of the buttons to be added to a toolbar (Requires: #include ) -_GUICtrlToolbar_SetButtonState ( $hWnd, $iCommandID, $iState ) Sets information about the state of the specified button (Requires: #include ) -_GUICtrlToolbar_SetButtonStyle ( $hWnd, $iCommandID, $iStyle ) Sets the style flags of a button (Requires: #include ) -_GUICtrlToolbar_SetButtonText ( $hWnd, $iCommandID, $sText ) Sets the display text of a button (Requires: #include ) -_GUICtrlToolbar_SetButtonWidth ( $hWnd, $iMin, $iMax ) Sets the minimum and maximum button widths in the toolbar control (Requires: #include ) -_GUICtrlToolbar_SetCmdID ( $hWnd, $iIndex, $iCommandID ) Sets the command identifier of a toolbar button (Requires: #include ) -_GUICtrlToolbar_SetColorScheme ( $hWnd, $iHighlight, $iShadow ) Sets the color scheme information (Requires: #include ) -_GUICtrlToolbar_SetDisabledImageList ( $hWnd, $hImageList ) Sets the disabled image list (Requires: #include ) -_GUICtrlToolbar_SetDrawTextFlags ( $hWnd, $iMask, $iDTFlags ) Sets the text drawing flags for the toolbar (Requires: #include ) -_GUICtrlToolbar_SetExtendedStyle ( $hWnd, $iStyle ) Sets the extended styles control (Requires: #include ) -_GUICtrlToolbar_SetHotImageList ( $hWnd, $hImageList ) Sets the hot button image list (Requires: #include ) -_GUICtrlToolbar_SetHotItem ( $hWnd, $iIndex ) Sets the hot item (Requires: #include ) -_GUICtrlToolbar_SetImageList ( $hWnd, $hImageList ) Sets the default button image list (Requires: #include ) -_GUICtrlToolbar_SetIndent ( $hWnd, $iIndent ) Sets the indentation for the first button control (Requires: #include ) -_GUICtrlToolbar_SetIndeterminate ( $hWnd, $iCommandID [, $bState = True] ) Sets or clears the indeterminate state of the specified button (Requires: #include ) -_GUICtrlToolbar_SetInsertMark ( $hWnd, $iButton [, $iFlags = 0] ) Sets the current insertion mark for the toolbar (Requires: #include ) -_GUICtrlToolbar_SetInsertMarkColor ( $hWnd, $iColor ) Sets the color used to draw the insertion mark (Requires: #include ) -_GUICtrlToolbar_SetMaxTextRows ( $hWnd, $iMaxRows ) Sets the maximum number of text rows displayed button (Requires: #include ) -_GUICtrlToolbar_SetMetrics ( $hWnd, $iXPad, $iYPad, $iXSpacing, $iYSpacing ) Sets the metrics of a toolbar control (Requires: #include ) -_GUICtrlToolbar_SetPadding ( $hWnd, $iCX, $iCY ) Sets the padding control (Requires: #include ) -_GUICtrlToolbar_SetParent ( $hWnd, $hParent ) Sets the window to which the control sends notification messages (Requires: #include ) -_GUICtrlToolbar_SetRows ( $hWnd, $iRows [, $bLarger = True] ) Sets the number of rows of buttons (Requires: #include ) -_GUICtrlToolbar_SetStyle ( $hWnd, $iStyle ) Sets the style control (Requires: #include ) -_GUICtrlToolbar_SetStyleAltDrag ( $hWnd [, $bState = True] ) Sets whether that the control allows buttons to be dragged (Requires: #include ) -_GUICtrlToolbar_SetStyleCustomErase ( $hWnd [, $bState = True] ) Sets whether the control generates NM_CUSTOMDRAW notification messages (Requires: #include ) -_GUICtrlToolbar_SetStyleFlat ( $hWnd, $bState ) Sets whether the control is flat (Requires: #include ) -_GUICtrlToolbar_SetStyleList ( $hWnd, $bState ) Sets whether the control has button text to the right of the bitmap (Requires: #include ) -_GUICtrlToolbar_SetStyleRegisterDrop ( $hWnd, $bState ) Sets whether the control generates TBN_GETOBJECT notification messages (Requires: #include ) -_GUICtrlToolbar_SetStyleToolTips ( $hWnd, $bState ) Sets whether the control has tooltips (Requires: #include ) -_GUICtrlToolbar_SetStyleTransparent ( $hWnd, $bState ) Sets whether the control is transparent (Requires: #include ) -_GUICtrlToolbar_SetStyleWrapable ( $hWnd, $bState ) Sets whether the control is wrapable (Requires: #include ) -_GUICtrlToolbar_SetToolTips ( $hWnd, $hToolTip ) Associates a ToolTip control with a toolbar (Requires: #include ) -_GUICtrlToolbar_SetUnicodeFormat ( $hWnd [, $bUnicode = False] ) Sets the Unicode character format flag (Requires: #include ) -_GUICtrlToolbar_SetWindowTheme ( $hWnd, $sTheme ) Sets the visual style (Requires: #include ) -_GUICtrlTreeView_Add ( $hWnd, $hSibling, $sText [, $iImage = -1 [, $iSelImage = -1]] ) Adds a new item (Requires: #include ) -_GUICtrlTreeView_AddChild ( $hWnd, $hParent, $sText [, $iImage = -1 [, $iSelImage = -1]] ) Adds a new item (Requires: #include ) -_GUICtrlTreeView_AddChildFirst ( $hWnd, $hParent, $sText [, $iImage = -1 [, $iSelImage = -1]] ) Adds a new item (Requires: #include ) -_GUICtrlTreeView_AddFirst ( $hWnd, $hSibling, $sText [, $iImage = -1 [, $iSelImage = -1]] ) Adds a new item (Requires: #include ) -_GUICtrlTreeView_BeginUpdate ( $hWnd ) Prevents updating of the control until the EndUpdate function is called (Requires: #include ) -_GUICtrlTreeView_ClickItem ( $hWnd, $hItem [, $sButton = "left" [, $bMove = False [, $iClicks = 1 [, $iSpeed = 0]]]] ) Click on a item (Requires: #include ) -_GUICtrlTreeView_Create ( $hWnd, $iX, $iY [, $iWidth = 150 [, $iHeight = 150 [, $iStyle = 0x00000037 [, $iExStyle = 0x00000000]]]] ) Create a TreeView control (Requires: #include ) -_GUICtrlTreeView_CreateDragImage ( $hWnd, $hItem ) Creates a dragging bitmap for the specified item (Requires: #include ) -_GUICtrlTreeView_CreateSolidBitMap ( $hWnd, $iColor, $iWidth, $iHeight ) Creates a solid color bitmap (Requires: #include ) -_GUICtrlTreeView_Delete ( $hWnd [, $hItem = 0] ) Removes an item and all its children (Requires: #include ) -_GUICtrlTreeView_DeleteAll ( $hWnd ) Removes all items from a tree-view control (Requires: #include ) -_GUICtrlTreeView_DeleteChildren ( $hWnd, $hItem ) Deletes all children of a item (Requires: #include ) -_GUICtrlTreeView_Destroy ( ByRef $hWnd ) Delete the control (Requires: #include ) -_GUICtrlTreeView_DisplayRect ( $hWnd, $hItem [, $bTextOnly = False] ) Returns the bounding rectangle for a tree item (Requires: #include ) -_GUICtrlTreeView_DisplayRectEx ( $hWnd, $hItem [, $bTextOnly = False] ) Returns the bounding rectangle for a tree item (Requires: #include ) -_GUICtrlTreeView_EditText ( $hWnd, $hItem ) Begins in-place editing of the specified item's text (Requires: #include ) -_GUICtrlTreeView_EndEdit ( $hWnd [, $bCancel = False] ) Ends the editing of the item's text (Requires: #include ) -_GUICtrlTreeView_EndUpdate ( $hWnd ) Enables screen repainting that was turned off with the BeginUpdate function (Requires: #include ) -_GUICtrlTreeView_EnsureVisible ( $hWnd, $hItem ) Ensures that a item is visible, expanding the parent item or scrolling the control if necessary (Requires: #include ) -_GUICtrlTreeView_Expand ( $hWnd [, $hItem = 0 [, $bExpand = True]] ) Expands or collapses the list of child items associated with the specified parent item, if any (Requires: #include ) -_GUICtrlTreeView_ExpandedOnce ( $hWnd, $hItem ) Indicates if the item's list of child items has been expanded at least once (Requires: #include ) -_GUICtrlTreeView_FindItem ( $hWnd, $sText [, $bInStr = False [, $hStart = 0]] ) Retrieves a item based on it's text (Requires: #include ) -_GUICtrlTreeView_FindItemEx ( $hWnd, $sTreePath [, $hStart = 0] ) Retrieves a item based on a tree path (Requires: #include ) -_GUICtrlTreeView_GetBkColor ( $hWnd ) Retrieve the text back color (Requires: #include ) -_GUICtrlTreeView_GetBold ( $hWnd, $hItem ) Indicates if the item is drawn in a bold style (Requires: #include ) -_GUICtrlTreeView_GetChecked ( $hWnd, $hItem ) Indicates if a item has its checkbox checked (Requires: #include ) -_GUICtrlTreeView_GetChildCount ( $hWnd, $hItem ) Retrieves the number of children of an parent item (Requires: #include ) -_GUICtrlTreeView_GetChildren ( $hWnd, $hItem ) Indicates whether the item children flag is set (Requires: #include ) -_GUICtrlTreeView_GetCount ( $hWnd ) Retrieves a count of the items (Requires: #include ) -_GUICtrlTreeView_GetCut ( $hWnd, $hItem ) Indicates if the item is drawn as if selected as part of a cut and paste operation (Requires: #include ) -_GUICtrlTreeView_GetDropTarget ( $hWnd, $hItem ) Indicates whether the item is drawn as a drag and drop target (Requires: #include ) -_GUICtrlTreeView_GetEditControl ( $hWnd ) Retrieves the handle to the edit control being used to edit a item's text (Requires: #include ) -_GUICtrlTreeView_GetExpanded ( $hWnd, $hItem ) Indicates whether the item is expanded (Requires: #include ) -_GUICtrlTreeView_GetFirstChild ( $hWnd, $hItem ) Retrieves the first child item of the specified item (Requires: #include ) -_GUICtrlTreeView_GetFirstItem ( $hWnd ) Retrieves the topmost or very first item (Requires: #include ) -_GUICtrlTreeView_GetFirstVisible ( $hWnd ) Retrieves the first visible item in the control (Requires: #include ) -_GUICtrlTreeView_GetFocused ( $hWnd, $hItem ) Indicates whether the item has focus (Requires: #include ) -_GUICtrlTreeView_GetHeight ( $hWnd ) Retrieves the current height of the each item (Requires: #include ) -_GUICtrlTreeView_GetImageIndex ( $hWnd, $hItem ) Retrieves the normal state image index (Requires: #include ) -_GUICtrlTreeView_GetImageListIconHandle ( $hWnd, $iIndex ) Retrieve ImageList handle (Requires: #include ) -_GUICtrlTreeView_GetIndent ( $hWnd ) Retrieves the amount, in pixels, that child items are indented relative to their parent items (Requires: #include ) -_GUICtrlTreeView_GetInsertMarkColor ( $hWnd ) Retrieves the color used to draw the insertion mark (Requires: #include ) -_GUICtrlTreeView_GetISearchString ( $hWnd ) Retrieves the incremental search string (Requires: #include ) -_GUICtrlTreeView_GetItemByIndex ( $hWnd, $hItem, $iIndex ) Retrieve a item by its position in the list of child items (Requires: #include ) -_GUICtrlTreeView_GetItemHandle ( $hWnd [, $hItem = 0] ) Retrieve the item handle (Requires: #include ) -_GUICtrlTreeView_GetItemParam ( $hWnd [, $hItem = 0] ) Retrieves the application specific value of the item (Requires: #include ) -_GUICtrlTreeView_GetLastChild ( $hWnd, $hItem ) Retrieves the last child item of the specified item (Requires: #include ) -_GUICtrlTreeView_GetLineColor ( $hWnd ) Retrieve the line color (Requires: #include ) -_GUICtrlTreeView_GetNext ( $hWnd, $hItem ) Retrieves the next item after the calling item (Requires: #include ) -_GUICtrlTreeView_GetNextChild ( $hWnd, $hItem ) Returns the next item at the same level as the specified item (Requires: #include ) -_GUICtrlTreeView_GetNextSibling ( $hWnd, $hItem ) Returns the next item at the same level as the specified item (Requires: #include ) -_GUICtrlTreeView_GetNextVisible ( $hWnd, $hItem ) Retrieves the next visible item that follows the specified item (Requires: #include ) -_GUICtrlTreeView_GetNormalImageList ( $hWnd ) Retrieves the normal image list (Requires: #include ) -_GUICtrlTreeView_GetParentHandle ( $hWnd [, $hItem = 0] ) Retrieve the parent handle of item (Requires: #include ) -_GUICtrlTreeView_GetParentParam ( $hWnd [, $hItem = 0] ) Retrieve the parent control ID/Param of item (Requires: #include ) -_GUICtrlTreeView_GetPrev ( $hWnd, $hItem ) Retrieves the previous item before the calling item (Requires: #include ) -_GUICtrlTreeView_GetPrevChild ( $hWnd, $hItem ) Retrieves the previous child item of a specified item (Requires: #include ) -_GUICtrlTreeView_GetPrevSibling ( $hWnd, $hItem ) Returns the previous item before the calling item at the same level (Requires: #include ) -_GUICtrlTreeView_GetPrevVisible ( $hWnd, $hItem ) Retrieves the first visible item that precedes the specified item (Requires: #include ) -_GUICtrlTreeView_GetScrollTime ( $hWnd ) Retrieves the maximum scroll time (Requires: #include ) -_GUICtrlTreeView_GetSelected ( $hWnd, $hItem ) Indicates whether the item appears in the selected state (Requires: #include ) -_GUICtrlTreeView_GetSelectedImageIndex ( $hWnd, $hItem ) Retrieves the index in the image list of the image displayed for the item when it is selected (Requires: #include ) -_GUICtrlTreeView_GetSelection ( $hWnd ) Retrieves the currently selected item (Requires: #include ) -_GUICtrlTreeView_GetSiblingCount ( $hWnd, $hItem ) Retrieves the number of siblings at the level of an item (Requires: #include ) -_GUICtrlTreeView_GetState ( $hWnd [, $hItem = 0] ) Retrieve the state of the item (Requires: #include ) -_GUICtrlTreeView_GetStateImageIndex ( $hWnd, $hItem ) Retrieves the index of the state image to display for the item (Requires: #include ) -_GUICtrlTreeView_GetStateImageList ( $hWnd ) Retrieves the handle to the state image list (Requires: #include ) -_GUICtrlTreeView_GetText ( $hWnd [, $hItem = 0] ) Retrieve the item text (Requires: #include ) -_GUICtrlTreeView_GetTextColor ( $hWnd ) Retrieve the text color (Requires: #include ) -_GUICtrlTreeView_GetToolTips ( $hWnd ) Retrieves the handle to the child ToolTip control (Requires: #include ) -_GUICtrlTreeView_GetTree ( $hWnd [, $hItem = 0] ) Retrieve all items text (Requires: #include ) -_GUICtrlTreeView_GetUnicodeFormat ( $hWnd ) Retrieves the Unicode character format flag (Requires: #include ) -_GUICtrlTreeView_GetVisible ( $hWnd, $hItem ) Indicates whether the item is currently visible in the control image (Requires: #include ) -_GUICtrlTreeView_GetVisibleCount ( $hWnd ) Returns the number of items that can be fully visible in the control (Requires: #include ) -_GUICtrlTreeView_HitTest ( $hWnd, $iX, $iY ) Returns information about the location of a point relative to the control (Requires: #include ) -_GUICtrlTreeView_HitTestEx ( $hWnd, $iX, $iY ) Returns information about the location of a point relative to the control (Requires: #include ) -_GUICtrlTreeView_HitTestItem ( $hWnd, $iX, $iY ) Returns the item at the specified coordinates (Requires: #include ) -_GUICtrlTreeView_Index ( $hWnd, $hItem ) Retrieves the position of the item in the list (Requires: #include ) -_GUICtrlTreeView_InsertItem ( $hWnd, $sItem_Text [, $hItem_Parent = 0 [, $hItem_After = 0 [, $iImage = -1 [, $iSelImage = -1]]]] ) Insert an item (Requires: #include ) -_GUICtrlTreeView_IsFirstItem ( $hWnd, $hItem ) Indicates whether the tree item is very first (Requires: #include ) -_GUICtrlTreeView_IsParent ( $hWnd, $hParent, $hItem ) Indicates whether one item is the parent of another item (Requires: #include ) -_GUICtrlTreeView_Level ( $hWnd, $hItem ) Indicates the level of indentation of a item (Requires: #include ) -_GUICtrlTreeView_SelectItem ( $hWnd, $hItem [, $iFlag = 0] ) Selects the specified item, scrolls the item into view, or redraws the item (Requires: #include ) -_GUICtrlTreeView_SelectItemByIndex ( $hWnd, $hItem, $iIndex ) Selects the item based on it's index in the parent list (Requires: #include ) -_GUICtrlTreeView_SetBkColor ( $hWnd, $vRGBColor ) Sets the back color (Requires: #include ) -_GUICtrlTreeView_SetBold ( $hWnd, $hItem [, $bFlag = True] ) Sets whether the item is drawn using a bold sytle (Requires: #include ) -_GUICtrlTreeView_SetChecked ( $hWnd, $hItem [, $bCheck = True] ) Sets whether a item has it's checkbox checked or not (Requires: #include ) -_GUICtrlTreeView_SetCheckedByIndex ( $hWnd, $hItem, $iIndex [, $bCheck = True] ) Sets whether an item has it's checkbox checked or not by it's index (Requires: #include ) -_GUICtrlTreeView_SetChildren ( $hWnd, $hItem [, $bFlag = True] ) Sets whether the item children flag (Requires: #include ) -_GUICtrlTreeView_SetCut ( $hWnd, $hItem [, $bFlag = True] ) Sets whether the item is drawn as if selected as part of a cut and paste operation (Requires: #include ) -_GUICtrlTreeView_SetDropTarget ( $hWnd, $hItem [, $bFlag = True] ) Sets whether the item is drawn as a drag and drop target (Requires: #include ) -_GUICtrlTreeView_SetFocused ( $hWnd, $hItem [, $bFlag = True] ) Sets whether the item appears to have focus (Requires: #include ) -_GUICtrlTreeView_SetHeight ( $hWnd, $iHeight ) Sets the height of the each item (Requires: #include ) -_GUICtrlTreeView_SetIcon ( $hWnd [, $hItem = 0 [, $sIconFile = "" [, $iIconID = 0 [, $iImageMode = 6]]]] ) Set an item icon (Requires: #include ) -_GUICtrlTreeView_SetImageIndex ( $hWnd, $hItem, $iIndex ) Sets the index into image list for which image is displayed when a item is in its normal state (Requires: #include ) -_GUICtrlTreeView_SetIndent ( $hWnd, $iIndent ) Sets the width of indentation for a tree-view control and redraws the control to reflect the new width (Requires: #include ) -_GUICtrlTreeView_SetInsertMark ( $hWnd, $hItem [, $bAfter = True] ) Sets the insertion mark (Requires: #include ) -_GUICtrlTreeView_SetInsertMarkColor ( $hWnd, $iColor ) Sets the color used to draw the insertion mark (Requires: #include ) -_GUICtrlTreeView_SetItemHeight ( $hWnd, $hItem, $iIntegral ) Sets the height of an individual item (Requires: #include ) -_GUICtrlTreeView_SetItemParam ( $hWnd, $hItem, $iParam ) Sets the value specific to the item (Requires: #include ) -_GUICtrlTreeView_SetLineColor ( $hWnd, $vRGBColor ) Sets the line color (Requires: #include ) -_GUICtrlTreeView_SetNormalImageList ( $hWnd, $hImageList ) Sets the normal image list for the control (Requires: #include ) -_GUICtrlTreeView_SetScrollTime ( $hWnd, $iTime ) Sets the maximum scroll time (Requires: #include ) -_GUICtrlTreeView_SetSelected ( $hWnd, $hItem [, $bFlag = True] ) Sets whether the item appears in the selected state (Requires: #include ) -_GUICtrlTreeView_SetSelectedImageIndex ( $hWnd, $hItem, $iIndex ) Sets the selected image index (Requires: #include ) -_GUICtrlTreeView_SetState ( $hWnd, $hItem [, $iState = 0 [, $bSetState = True]] ) Set the state of the specified item (Requires: #include ) -_GUICtrlTreeView_SetStateImageIndex ( $hWnd, $hItem, $iIndex ) Sets the index into image list for the state image (Requires: #include ) -_GUICtrlTreeView_SetStateImageList ( $hWnd, $hImageList ) Sets the state image list for the control (Requires: #include ) -_GUICtrlTreeView_SetText ( $hWnd [, $hItem = 0 [, $sText = ""]] ) Set the text of an item (Requires: #include ) -_GUICtrlTreeView_SetTextColor ( $hWnd, $vRGBColor ) Sets the text color (Requires: #include ) -_GUICtrlTreeView_SetToolTips ( $hWnd, $hToolTip ) Sets the handle to the child ToolTip control (Requires: #include ) -_GUICtrlTreeView_SetUnicodeFormat ( $hWnd [, $bFormat = True] ) Sets the Unicode character format flag (Requires: #include ) -_GUICtrlTreeView_Sort ( $hWnd ) Sorts the items (Requires: #include ) -_GUIImageList_Add ( $hWnd, $hImage [, $hMask = 0] ) Adds an image or images to an image list (Requires: #include ) -_GUIImageList_AddBitmap ( $hWnd, $sImage [, $sMask = ""] ) Adds a bitmap to an image list (Requires: #include ) -_GUIImageList_AddIcon ( $hWnd, $sFilePath [, $iIndex = 0 [, $bLarge = False]] ) Adds an icon to an image list (Requires: #include ) -_GUIImageList_AddMasked ( $hWnd, $hImage [, $iMask = 0] ) Adds an image or images to an image list, generating a mask from the specified bitmap (Requires: #include ) -_GUIImageList_BeginDrag ( $hWnd, $iTrack, $iXHotSpot, $iYHotSpot ) Begins dragging an image (Requires: #include ) -_GUIImageList_Copy ( $hWnd, $iSource, $iDestination ) Source image is copied to the destination image's index (Requires: #include ) -_GUIImageList_Create ( [$iCX = 16 [, $iCY = 16 [, $iColor = 4 [, $iOptions = 0 [, $iInitial = 4 [, $iGrow = 4]]]]]] ) Create an ImageList control (Requires: #include ) -_GUIImageList_Destroy ( $hWnd ) Destroys an image list (Requires: #include ) -_GUIImageList_DestroyIcon ( $hIcon ) Destroys an icon and frees any memory the icon occupied (Requires: #include ) -_GUIImageList_DragEnter ( $hWnd, $iX, $iY ) Displays the drag image at the specified position within the window (Requires: #include ) -_GUIImageList_DragLeave ( $hWnd ) Unlocks the specified window and hides the drag image, allowing the window to be updated (Requires: #include ) -_GUIImageList_DragMove ( $iX, $iY ) Moves the image that is being dragged during a drag-and-drop operation (Requires: #include ) -_GUIImageList_Draw ( $hWnd, $iIndex, $hDC, $iX, $iY [, $iStyle = 0] ) Draws an image list item in the specified device context (Requires: #include ) -_GUIImageList_DrawEx ( $hWnd, $iIndex, $hDC, $iX, $iY [, $iDX = 0 [, $iDY = 0 [, $iRGBBk = 0xFFFFFFFF [, $iRGBFg = 0xFFFFFFFF [, $iStyle = 0]]]]] ) Draws an image list item in the specified device context (Requires: #include ) -_GUIImageList_Duplicate ( $hWnd ) Creates a duplicate of an existing image list (Requires: #include ) -_GUIImageList_EndDrag ( ) Ends a drag operation (Requires: #include ) -_GUIImageList_GetBkColor ( $hWnd ) Retrieves the current background color for an image list (Requires: #include ) -_GUIImageList_GetIcon ( $hWnd, $iIndex [, $iStyle = 0] ) Creates an icon from an image and mask in an image list (Requires: #include ) -_GUIImageList_GetIconHeight ( $hWnd ) Retrieves the height of the images in an image list (Requires: #include ) -_GUIImageList_GetIconSize ( $hWnd ) Retrieves the dimensions of images in an image list (Requires: #include ) -_GUIImageList_GetIconSizeEx ( $hWnd ) Retrieves the dimensions of images in an image list (Requires: #include ) -_GUIImageList_GetIconWidth ( $hWnd ) Retrieves the width of the images in an image list (Requires: #include ) -_GUIImageList_GetImageCount ( $hWnd ) Retrieves the number of images in an image list (Requires: #include ) -_GUIImageList_GetImageInfoEx ( $hWnd, $iIndex ) Retrieves information about an image (Requires: #include ) -_GUIImageList_Remove ( $hWnd [, $iIndex = -1] ) Remove Image(s) from the ImageList (Requires: #include ) -_GUIImageList_ReplaceIcon ( $hWnd, $iIndex, $hIcon ) Replaces an image with an icon or cursor (Requires: #include ) -_GUIImageList_SetBkColor ( $hWnd, $iClrBk ) Sets the background color for an image list (Requires: #include ) -_GUIImageList_SetIconSize ( $hWnd, $iCX, $iCY ) Sets the dimensions of images in an image list and removes all images from the list (Requires: #include ) -_GUIImageList_SetImageCount ( $hWnd, $iNewCount ) Resizes an existing image list (Requires: #include ) -_GUIImageList_Swap ( $hWnd, $iSource, $iDestination ) Swap image between Source and Destination image's index (Requires: #include ) -_GUIScrollBars_EnableScrollBar ( $hWnd [, $iSBflags = $SB_BOTH [, $iArrows = $ESB_ENABLE_BOTH]] ) Enable/Disable scrollbar (Requires: #include ) -_GUIScrollBars_GetScrollBarInfoEx ( $hWnd, $iObject ) Retrieves information about the specified scroll bar (Requires: #include ) -_GUIScrollBars_GetScrollBarRect ( $hWnd, $iObject ) Retrieves coordinates of the scroll bar (Requires: #include ) -_GUIScrollBars_GetScrollBarRGState ( $hWnd, $iObject ) Retrieves the state of a scroll bar component (Requires: #include ) -_GUIScrollBars_GetScrollBarXYLineButton ( $hWnd, $iObject ) Retrieves the Height or width of the thumb (Requires: #include ) -_GUIScrollBars_GetScrollBarXYThumbBottom ( $hWnd, $iObject ) Retrieves the Position of the bottom or right of the thumb (Requires: #include ) -_GUIScrollBars_GetScrollBarXYThumbTop ( $hWnd, $iObject ) Retrieves the Position of the top or left of the thumb (Requires: #include ) -_GUIScrollBars_GetScrollInfo ( $hWnd, $iBar, ByRef $tSCROLLINFO ) Retrieves the parameters of a scroll bar (Requires: #include ) -_GUIScrollBars_GetScrollInfoEx ( $hWnd, $iBar ) Retrieves the parameters of a scroll bar (Requires: #include ) -_GUIScrollBars_GetScrollInfoMax ( $hWnd, $iBar ) Retrieves the maximum scrolling position (Requires: #include ) -_GUIScrollBars_GetScrollInfoMin ( $hWnd, $iBar ) Retrieves the minimum scrolling position (Requires: #include ) -_GUIScrollBars_GetScrollInfoPage ( $hWnd, $iBar ) Retrieves the page size (Requires: #include ) -_GUIScrollBars_GetScrollInfoPos ( $hWnd, $iBar ) Retrieves the position of the scroll box (Requires: #include ) -_GUIScrollBars_GetScrollInfoTrackPos ( $hWnd, $iBar ) Retrieves the immediate position of a scroll box that the user is dragging (Requires: #include ) -_GUIScrollBars_GetScrollPos ( $hWnd, $iBar ) Retrieves the current position of the scroll box (thumb) in the specified scroll bar (Requires: #include ) -_GUIScrollBars_GetScrollRange ( $hWnd, $iBar ) Retrieves the current minimum and maximum scroll box (thumb) positions for the specified scroll bar (Requires: #include ) -_GUIScrollBars_Init ( $hWnd [, $iMaxH = -1 [, $iMaxV = -1]] ) Initialize the scrollbars for the window (Requires: #include ) -_GUIScrollBars_ScrollWindow ( $hWnd, $iXAmount, $iYAmount ) Scrolls the contents of the specified window's client area (Requires: #include ) -_GUIScrollBars_SetScrollInfo ( $hWnd, $iBar, $tSCROLLINFO [, $bRedraw = True] ) Sets the parameters of a scroll bar (Requires: #include ) -_GUIScrollBars_SetScrollInfoMax ( $hWnd, $iBar, $iMax ) Sets the maximum scrolling position (Requires: #include ) -_GUIScrollBars_SetScrollInfoMin ( $hWnd, $iBar, $iMin ) Sets the minimum scrolling position (Requires: #include ) -_GUIScrollBars_SetScrollInfoPage ( $hWnd, $iBar, $iPage ) Sets the page size (Requires: #include ) -_GUIScrollBars_SetScrollInfoPos ( $hWnd, $iBar, $iPos ) Sets the position of the scroll box (thumb) in the specified scroll bar (Requires: #include ) -_GUIScrollBars_SetScrollRange ( $hWnd, $iBar, $iMinPos, $iMaxPos ) Sets the minimum and maximum scroll box positions for the specified scroll bar (Requires: #include ) -_GUIScrollBars_ShowScrollBar ( $hWnd, $iBar [, $bShow = True] ) Shows or hides the specified scroll bar (Requires: #include ) -_GUIToolTip_Activate ( $hWnd ) Activates a ToolTip control (Requires: #include ) -_GUIToolTip_AddTool ( $hTool, $hWnd, $sText [, $iID = 0 [, $iLeft = 0 [, $iTop = 0 [, $iRight = 0 [, $iBottom = 0 [, $iFlags = Default [, $iParam = 0]]]]]]] ) Registers a tool with the ToolTip control (Requires: #include ) -_GUIToolTip_AdjustRect ( $hWnd, ByRef $tRECT [, $bLarger = True] ) Calculates the text display rectangle from the window rectangle (Requires: #include ) -_GUIToolTip_BitsToTTF ( $iFlags ) Decode bit flags to TTF_* strings (Requires: #include ) -_GUIToolTip_Create ( $hWnd [, $iStyle = $_TT_ghTTDefaultStyle] ) Creates a ToolTip control (Requires: #include ) -_GUIToolTip_Deactivate ( $hWnd ) Deactivates a ToolTip control (Requires: #include ) -_GUIToolTip_DelTool ( $hWnd, $hTool [, $iID = 0] ) Deletes a tool from a tooltip control (Requires: #include ) -_GUIToolTip_Destroy ( ByRef $hWnd ) Delete a ToolTip control (Requires: #include ) -_GUIToolTip_EnumTools ( $hWnd, $iIndex ) Retrieves information about the current tool (Requires: #include ) -_GUIToolTip_GetBubbleHeight ( $hWnd, $hTool, $iID [, $iFlags = 0x00000001 + 0x00000010] ) Returns the height of the control (Requires: #include ) -_GUIToolTip_GetBubbleSize ( $hWnd, $hTool, $iID [, $iFlags = 0x00000001 + 0x00000010] ) Returns the width and height of a ToolTip control (Requires: #include ) -_GUIToolTip_GetBubbleWidth ( $hWnd, $hTool, $iID [, $iFlags = 0x00000001 + 0x00000010] ) Returns the width of a ToolTip control (Requires: #include ) -_GUIToolTip_GetCurrentTool ( $hWnd ) Retrieves information for the current tool (Requires: #include ) -_GUIToolTip_GetDelayTime ( $hWnd, $iDuration ) Retrieves the initial, pop-up or reshow durations of a ToolTip control (Requires: #include ) -_GUIToolTip_GetMargin ( $hWnd ) Retrieves the top, left, bottom, and right margins of a ToolTip control (Requires: #include ) -_GUIToolTip_GetMarginEx ( $hWnd ) Retrieves the top, left, bottom, and right margins of a ToolTip control (Requires: #include ) -_GUIToolTip_GetMaxTipWidth ( $hWnd ) Retrieves the maximum width of a ToolTip window (Requires: #include ) -_GUIToolTip_GetText ( $hWnd, $hTool, $iID ) Retrieves the text of a tool (Requires: #include ) -_GUIToolTip_GetTipBkColor ( $hWnd ) Retrieves the background color (Requires: #include ) -_GUIToolTip_GetTipTextColor ( $hWnd ) Retrieves the text color of a ToolTip control (Requires: #include ) -_GUIToolTip_GetTitleBitMap ( $hWnd ) Retrieves the title bitmap icon (Requires: #include ) -_GUIToolTip_GetTitleText ( $hWnd ) Retrieve the title (Requires: #include ) -_GUIToolTip_GetToolCount ( $hWnd ) Returns the count of tools maintained by the ToolTip control (Requires: #include ) -_GUIToolTip_GetToolInfo ( $hWnd, $hTool, $iID ) Retrieves the information about a specific tool (Requires: #include ) -_GUIToolTip_HitTest ( $hWnd, $hTool, $iX, $iY ) Retrieves the information that a ToolTip control maintains about a tool (Requires: #include ) -_GUIToolTip_NewToolRect ( $hWnd, $hTool, $iID, $iLeft, $iTop, $iRight, $iBottom ) Sets a new bounding rectangle for a tool (Requires: #include ) -_GUIToolTip_Pop ( $hWnd ) Removes a displayed ToolTip from view (Requires: #include ) -_GUIToolTip_PopUp ( $hWnd ) Causes the ToolTip to display at the coordinates of the last mouse message (Requires: #include ) -_GUIToolTip_SetDelayTime ( $hWnd, $iDuration, $iTime ) Sets the initial, pop-up, and reshow durations of a ToolTip (Requires: #include ) -_GUIToolTip_SetMargin ( $hWnd, $iLeft, $iTop, $iRight, $iBottom ) Sets the top, left, bottom, and right margins of a ToolTip (Requires: #include ) -_GUIToolTip_SetMaxTipWidth ( $hWnd, $iWidth ) Sets the maximum width for a ToolTip window (Requires: #include ) -_GUIToolTip_SetTipBkColor ( $hWnd, $iColor ) Sets the background color of a ToolTip (Requires: #include ) -_GUIToolTip_SetTipTextColor ( $hWnd, $iColor ) Sets the text color (Requires: #include ) -_GUIToolTip_SetTitle ( $hWnd, $sTitle [, $iIcon = 0] ) Adds a standard icon and title string (Requires: #include ) -_GUIToolTip_SetToolInfo ( $hWnd, $sText [, $iID = 0 [, $iLeft = 0 [, $iTop = 0 [, $iRight = 0 [, $iBottom = 0 [, $iFlags = Default [, $iParam = 0]]]]]]] ) Sets the information for a tool (Requires: #include ) -_GUIToolTip_SetWindowTheme ( $hWnd, $sStyle ) Sets the visual style (Requires: #include ) -_GUIToolTip_ToolExists ( $hWnd ) Determines whether a tool currently exists (is displayed) (Requires: #include ) -_GUIToolTip_ToolToArray ( $hWnd, ByRef $tToolInfo, $iError ) Transfers a ToolInfo structure to an array (Requires: #include ) -_GUIToolTip_TrackActivate ( $hWnd [, $bActivate = True [, $hTool = 0 [, $iID = 0]]] ) Activates or deactivates a tracking ToolTip (Requires: #include ) -_GUIToolTip_TrackPosition ( $hWnd, $iX, $iY ) Sets the position of a tracking ToolTip (Requires: #include ) -_GUIToolTip_Update ( $hWnd ) Forces the current tool to be redrawn (Requires: #include ) -_GUIToolTip_UpdateTipText ( $hWnd, $hTool, $iID, $sText ) Sets the ToolTip text for a tool (Requires: #include ) -_HexToString ( $sHex ) Convert a hex string to a string (Requires: #include ) -_IE_Example ( [$sModule = "basic"] ) Display a new browser window pre-loaded with documents to be used in IE.au3 examples or your own testing (Requires: #include ) -_IE_Introduction ( [$sModule = "basic"] ) Display introductory information about IE.au3 in a new browser window (Requires: #include ) -_IE_VersionInfo ( ) Returns an array of information about the IE.au3 version (Requires: #include ) -_IEAction ( ByRef $oObject, $sAction ) Perform any of a set of simple actions on the Browser (Requires: #include ) -_IEAttach ( $sString [, $sMode = "title" [, $iInstance = 1]] ) Attach to the specified instance of Internet Explorer where the search string sub-string matches (based on the selected mode) (Requires: #include ) -_IEBodyReadHTML ( ByRef $oObject ) Returns the HTML inside the <body> tag of the document (Requires: #include ) -_IEBodyReadText ( ByRef $oObject ) Returns the Text inside the <body> tag of the document (Requires: #include ) -_IEBodyWriteHTML ( ByRef $oObject, $sHTML ) Replaces the HTML inside the <body> tag of the document (Requires: #include ) -_IECreate ( [$sUrl = "about:blank" [, $iTryAttach = 0 [, $iVisible = 1 [, $iWait = 1 [, $iTakeFocus = 1]]]]] ) Create an Internet Explorer Browser Window (Requires: #include ) -_IECreateEmbedded ( ) Create a Webbrowser object suitable for embedding in an AutoIt GUI with GUICtrlCreateObj() (Requires: #include ) -_IEDocGetObj ( ByRef $oObject ) Given any DOM object, returns a reference to the associated document object (Requires: #include ) -_IEDocInsertHTML ( ByRef $oObject, $sString [, $sWhere = "beforeend"] ) Inserts HTML Text in or around an element (Requires: #include ) -_IEDocInsertText ( ByRef $oObject, $sString [, $sWhere = "beforeend"] ) Inserts Text in or around an element (Requires: #include ) -_IEDocReadHTML ( ByRef $oObject ) Returns the full HTML source of a document (Requires: #include ) -_IEDocWriteHTML ( ByRef $oObject, $sHTML ) Replaces the HTML for the entire document (Requires: #include ) -_IEErrorNotify ( [$vNotify = Default] ) Specifies whether IE.au3 automatically notifies of Warnings and Errors (to the console) (Requires: #include ) -_IEFormElementCheckBoxSelect ( ByRef $oObject, $sString [, $sName = "" [, $iSelect = 1 [, $sMode = "byValue" [, $iFireEvent = 1]]]] ) Set the value of a specified form element (Requires: #include ) -_IEFormElementGetCollection ( ByRef $oObject [, $iIndex = -1] ) Returns a collection object variable representing all Form Elements within a given Form (Requires: #include ) -_IEFormElementGetObjByName ( ByRef $oObject, $sName [, $iIndex = 0] ) Returns an object reference to a Form Element by name (Requires: #include ) -_IEFormElementGetValue ( ByRef $oObject ) Returns the value of a given Form Element (Requires: #include ) -_IEFormElementOptionSelect ( ByRef $oObject, $sString [, $iSelect = 1 [, $sMode = "byValue" [, $iFireEvent = 1]]] ) Set the value of a specified form element (Requires: #include ) -_IEFormElementRadioSelect ( ByRef $oObject, $sString, $sName [, $iSelect = 1 [, $sMode = "byValue" [, $iFireEvent = 1]]] ) Set the value of a specified form element (Requires: #include ) -_IEFormElementSetValue ( ByRef $oObject, $sNewValue [, $iFireEvent = 1] ) Set the value of a specified Form Element (Requires: #include ) -_IEFormGetCollection ( ByRef $oObject [, $iIndex = -1] ) Returns a collection object variable representing the Forms in the document or a single form by index (Requires: #include ) -_IEFormGetObjByName ( ByRef $oObject, $sName [, $iIndex = 0] ) Returns an object reference to a Form by name (Requires: #include ) -_IEFormImageClick ( ByRef $oObject, $sLinkText [, $sMode = "src" [, $iIndex = 0 [, $iWait = 1]]] ) Simulate a mouse click on an <input type=image>. Match by sub-string match of alt text, name or src (Requires: #include ) -_IEFormReset ( ByRef $oObject ) Reset a specified Form setting the values back to their loaded defaults (Requires: #include ) -_IEFormSubmit ( ByRef $oObject [, $iWait = 1] ) Submit a specified Form (Requires: #include ) -_IEFrameGetCollection ( ByRef $oObject [, $iIndex = -1] ) Returns a collection object containing the frames in a FrameSet or the iFrames on a normal page or a single Frame or iFrame by index (Requires: #include ) -_IEFrameGetObjByName ( ByRef $oObject, $sName ) Returns an object reference to a Frame or iFrame by name (Requires: #include ) -_IEGetObjById ( ByRef $oObject, $sID ) Returns an object variable by id (Requires: #include ) -_IEGetObjByName ( ByRef $oObject, $sName [, $iIndex = 0] ) Returns an object variable by name (Requires: #include ) -_IEHeadInsertEventScript ( ByRef $oObject, $sHTMLFor, $sEvent, $sScript ) Inserts a Javascript into the Head of the document (Requires: #include ) -_IEImgClick ( ByRef $oObject, $sLinkText [, $sMode = "src" [, $iIndex = 0 [, $iWait = 1]]] ) Simulate a mouse click on an image. Match by sub-string match of alt text, name, or src (Requires: #include ) -_IEImgGetCollection ( ByRef $oObject [, $iIndex = -1] ) Returns a collection object variable representing the IMG tags in the document or a single image by index (Requires: #include ) -_IEIsFrameSet ( ByRef $oObject ) Checks to see if the specified Window contains a FrameSet (Requires: #include ) -_IELinkClickByIndex ( ByRef $oObject, $iIndex [, $iWait = 1] ) Simulate a mouse click on a link by 0-based index (in source order) (Requires: #include ) -_IELinkClickByText ( ByRef $oObject, $sLinkText [, $iIndex = 0 [, $iWait = 1]] ) Simulate a mouse click on a link with text sub-string matching the string provided (Requires: #include ) -_IELinkGetCollection ( ByRef $oObject [, $iIndex = -1] ) Returns a collection object containing all links in the document or a single link by index (Requires: #include ) -_IELoadWait ( ByRef $oObject [, $iDelay = 0 [, $iTimeout = -1]] ) Wait for a browser page load to complete before returning (Requires: #include ) -_IELoadWaitTimeout ( [$iTimeout = -1] ) Retrieve or set the current value in milliseconds _IELoadWait() will try before timing out (Requires: #include ) -_IENavigate ( ByRef $oObject, $sUrl [, $iWait = 1] ) Directs an existing browser window to navigate to the specified URL (Requires: #include ) -_IEPropertyGet ( ByRef $oObject, $sProperty ) Returns a select property of the Browser or DOM element (Requires: #include ) -_IEPropertySet ( ByRef $oObject, $sProperty, $vValue ) Set a select property of the Browser or DOM element (Requires: #include ) -_IEQuit ( ByRef $oObject ) Close the browser and remove the object reference to it (Requires: #include ) -_IETableGetCollection ( ByRef $oObject [, $iIndex = -1] ) Returns a collection object variable representing all the tables in a document or a single table by index (Requires: #include ) -_IETableWriteToArray ( ByRef $oObject [, $bTranspose = False] ) Reads the contents of a Table into an array (Requires: #include ) -_IETagNameAllGetCollection ( ByRef $oObject [, $iIndex = -1] ) Returns a collection object all elements in the document or document hierarchy in source order or a single element by index (Requires: #include ) -_IETagNameGetCollection ( ByRef $oObject, $sTagName [, $iIndex = -1] ) Returns a collection object of all elements in the object with the specified TagName or a single element by index (Requires: #include ) -_INetExplorerCapable ( $sIEString ) Converts a string to IE(Internet Explorer) capable line (Requires: #include ) -_INetGetSource ( $sURL [, $bString = True] ) Gets the source from an URL without writing a temp file (Requires: #include ) -_INetMail ( $sMailTo, $sMailSubject, $sMailBody ) Opens default user's mail client with given address, subject, and body (Requires: #include ) -_INetSmtpMail ( $sSMTPServer, $sFromName, $sFromAddress, $sToAddress [, $sSubject = "" [, $aBody = "" [, $sEHLO = "" [, $sFirst = "" [, $bTrace = 0]]]]] ) Sends an email without using an external email program (Requires: #include ) -_IsPressed ( $sHexKey [, $vDLL = 'user32.dll'] ) Check if key has been pressed (Requires: #include ) -_MathCheckDiv ( $iNum1 [, $iNum2 = 2] ) Checks if first number is divisible by the second number (Requires: #include ) -_Max ( $iNum1, $iNum2 ) Evaluates which of the two numbers is higher (Requires: #include ) -_MemGlobalAlloc ( $iBytes [, $iFlags = 0] ) Allocates the specified number of bytes from the heap (Requires: #include ) -_MemGlobalFree ( $hMemory ) Frees the specified global memory object and invalidates its handle (Requires: #include ) -_MemGlobalLock ( $hMemory ) Locks a global memory object and returns a pointer to the first byte of the object's memory block (Requires: #include ) -_MemGlobalSize ( $hMemory ) Retrieves the current size of the specified global memory object (Requires: #include ) -_MemGlobalUnlock ( $hMemory ) Decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE (Requires: #include ) -_MemMoveMemory ( $pSource, $pDest, $iLength ) Moves memory either forward or backward, aligned or unaligned (Requires: #include ) -_MemVirtualAlloc ( $pAddress, $iSize, $iAllocation, $iProtect ) Reserves or commits a region of pages in the virtual address space of the calling process (Requires: #include ) -_MemVirtualAllocEx ( $hProcess, $pAddress, $iSize, $iAllocation, $iProtect ) Reserves a region of memory within the virtual address space of a specified process (Requires: #include ) -_MemVirtualFree ( $pAddress, $iSize, $iFreeType ) Releases a region of pages within the virtual address space of a process (Requires: #include ) -_MemVirtualFreeEx ( $hProcess, $pAddress, $iSize, $iFreeType ) Releases a region of pages within the virtual address space of a process (Requires: #include ) -_Min ( $iNum1, $iNum2 ) Evaluates which of the two numbers is lower (Requires: #include ) -_MouseTrap ( [$iLeft = 0 [, $iTop = 0 [, $iRight = 0 [, $iBottom = 0]]]] ) Confine the Mouse Cursor to specified coords (Requires: #include ) -_NamedPipes_CallNamedPipe ( $sPipeName, $pInpBuf, $iInpSize, $pOutBuf, $iOutSize, ByRef $iRead [, $iTimeOut = 0] ) Performs a read/write operation on a named pipe (Requires: #include ) -_NamedPipes_ConnectNamedPipe ( $hNamedPipe [, $tOverlapped = 0] ) Enables a named pipe server process to wait for a client process to connect (Requires: #include ) -_NamedPipes_CreateNamedPipe ( $sName [, $iAccess = 2 [, $iFlags = 2 [, $iACL = 0 [, $iType = 1 [, $iRead = 1 [, $iWait = 0 [, $iMaxInst = 25 [, $iOutBufSize = 4096 [, $iInpBufSize = 4096 [, $iDefaultTimeout = 5000 [, $tSecurity = 0]]]]]]]]]]] ) Creates an instance of a named pipe (Requires: #include ) -_NamedPipes_CreatePipe ( ByRef $hReadPipe, ByRef $hWritePipe [, $tSecurity = 0 [, $iSize = 0]] ) Creates an anonymous pipe (Requires: #include ) -_NamedPipes_DisconnectNamedPipe ( $hNamedPipe ) Disconnects the server end of a named pipe instance from a client process (Requires: #include ) -_NamedPipes_GetNamedPipeHandleState ( $hNamedPipe ) Retrieves information about a specified named pipe (Requires: #include ) -_NamedPipes_GetNamedPipeInfo ( $hNamedPipe ) Retrieves information about the specified named pipe (Requires: #include ) -_NamedPipes_PeekNamedPipe ( $hNamedPipe ) Copies data from a pipe into a buffer without removing it from the pipe (Requires: #include ) -_NamedPipes_SetNamedPipeHandleState ( $hNamedPipe, $iRead, $iWait [, $iBytes = 0 [, $iTimeOut = 0]] ) Sets the read mode and the blocking mode of the specified named pipe (Requires: #include ) -_NamedPipes_TransactNamedPipe ( $hNamedPipe, $pInpBuf, $iInpSize, $pOutBuf, $iOutSize [, $tOverlapped = 0] ) Reads and writes to a named pipe in one network operation (Requires: #include ) -_NamedPipes_WaitNamedPipe ( $sPipeName [, $iTimeOut = 0] ) Waits for an instance of a named pipe to become available (Requires: #include ) -_Net_Share_ConnectionEnum ( $sServer, $sQualifier ) Lists all connections made to a shared resource (Requires: #include ) -_Net_Share_FileClose ( $sServer, $iFileID ) Forces a resource to close (Requires: #include ) -_Net_Share_FileEnum ( [$sServer = "" [, $sBaseName = "" [, $sUserName = ""]]] ) Returns information about open files on a server (Requires: #include ) -_Net_Share_FileGetInfo ( $sServer, $iFileID ) Retrieves information about a particular opening of a server resource (Requires: #include ) -_Net_Share_PermStr ( $iPerm ) Returns the string representation of a resource's permissions (Requires: #include ) -_Net_Share_ResourceStr ( $iResource ) Returns the string representation of a resource (Requires: #include ) -_Net_Share_SessionDel ( [$sServer = "" [, $sClientName = "" [, $sUserName = ""]]] ) Ends a network session between a server and a workstation (Requires: #include ) -_Net_Share_SessionEnum ( [$sServer = "" [, $sClientName = "" [, $sUserName = ""]]] ) Provides information about sessions established on a server (Requires: #include ) -_Net_Share_SessionGetInfo ( $sServer, $sClientName, $sUserName ) Retrieves information about a session established between a server and workstation (Requires: #include ) -_Net_Share_ShareAdd ( $sServer, $sShare, $iType, $sResourcePath [, $sComment = "" [, $iMaxUses = -1]] ) Shares a server resource (Requires: #include ) -_Net_Share_ShareCheck ( $sServer, $sShare ) Checks whether or not a server is sharing a device (Requires: #include ) -_Net_Share_ShareDel ( $sServer, $sShare ) Deletes a share name from a server's list of shared resources (Requires: #include ) -_Net_Share_ShareEnum ( [$sServer = ""] ) Retrieves information about each shared resource on a server (Requires: #include ) -_Net_Share_ShareGetInfo ( $sServer, $sShare ) Retrieves information about a particular shared resource on a server (Requires: #include ) -_Net_Share_ShareSetInfo ( $sServer, $sShare, $sComment, $iMaxUses ) Shares a server resource (Requires: #include ) -_Net_Share_StatisticsGetSvr ( [$sServer = ""] ) Retrieves operating statistics for a server (Requires: #include ) -_Net_Share_StatisticsGetWrk ( [$sWorkStation = ""] ) Retrieves operating statistics for a workstation (Requires: #include ) -_Now ( ) Returns the current Date and Time in PC's format (Requires: #include ) -_NowCalc ( ) Returns the current Date and Time in format YYYY/MM/DD HH:MM:SS for use in date calculations (Requires: #include ) -_NowCalcDate ( ) Returns the current Date in format YYYY/MM/DD (Requires: #include ) -_NowDate ( ) Returns the current Date in the Pc's format (Requires: #include ) -_NowTime ( [$sType = 3] ) Returns the current Time in the requested format (Requires: #include ) -_PathFull ( $sRelativePath [, $sBasePath = @WorkingDir] ) Creates a path based on the relative path you provide. The newly created absolute path is returned (Requires: #include ) -_PathGetRelative ( $sFrom, $sTo ) Returns the relative path to a directory (Requires: #include ) -_PathMake ( $sDrive, $sDir, $sFileName, $sExtension ) Creates a path from drive, directory, file name and file extension parts (Requires: #include ) -_PathSplit ( $sFilePath, ByRef $sDrive, ByRef $sDir, ByRef $sFileName, ByRef $sExtension ) Splits a path into the drive, directory, file name and file extension parts. An empty string is set if a part is missing (Requires: #include ) -_ProcessGetName ( $iPID ) Returns a string containing the process name that belongs to a given PID (Requires: #include ) -_ProcessGetPriority ( $vProcess ) Get the priority of an open process (Requires: #include ) -_Radian ( $iDegrees ) Converts degrees to radians (Requires: #include ) -_ReplaceStringInFile ( $sFilePath, $sSearchString, $sReplaceString [, $iCaseSensitive = 0 [, $iOccurance = 1]] ) Replaces substrings in a file (Requires: #include ) -_RunDos ( $sCommand ) Executes a DOS command in a hidden command window (Requires: #include ) -_ScreenCapture_Capture ( [$sFileName = "" [, $iLeft = 0 [, $iTop = 0 [, $iRight = -1 [, $iBottom = -1 [, $bCursor = True]]]]]] ) Captures a region of the screen (Requires: #include ) -_ScreenCapture_CaptureWnd ( $sFileName, $hWnd [, $iLeft = 0 [, $iTop = 0 [, $iRight = -1 [, $iBottom = -1 [, $bCursor = True]]]]] ) Captures a screen shot of a specified window or controlID (Requires: #include ) -_ScreenCapture_SaveImage ( $sFileName, $hBitmap [, $bFreeBmp = True] ) Saves an image to file (Requires: #include ) -_ScreenCapture_SetBMPFormat ( $iFormat ) Sets the bit format that will be used for BMP screen captures (Requires: #include ) -_ScreenCapture_SetJPGQuality ( $iQuality ) Sets the quality level that will be used for JPEG screen captures (Requires: #include ) -_ScreenCapture_SetTIFColorDepth ( $iDepth ) Sets the color depth used for TIFF screen captures (Requires: #include ) -_ScreenCapture_SetTIFCompression ( $iCompress ) Sets the compression used for TIFF screen captures (Requires: #include ) -_Security__AdjustTokenPrivileges ( $hToken, $bDisableAll, $tNewState, $iBufferLen [, $tPrevState = 0 [, $pRequired = 0]] ) Enables or disables privileges in the specified access token (Requires: #include ) -_Security__CreateProcessWithToken ( $hToken, $iLogonFlags, $sCommandLine, $iCreationFlags, $sCurDir, $tSTARTUPINFO, $tPROCESS_INFORMATION ) Creates a new process and its primary thread running in the security context of the specified token (Requires: #include ) -_Security__DuplicateTokenEx ( $hExistingToken, $iDesiredAccess, $iImpersonationLevel, $iTokenType ) Creates a new access token that duplicates an existing token (Requires: #include ) -_Security__GetAccountSid ( $sAccount [, $sSystem = ""] ) Retrieves the security identifier (SID) for an account (Requires: #include ) -_Security__GetLengthSid ( $pSID ) Returns the length, in bytes, of a valid SID (Requires: #include ) -_Security__GetTokenInformation ( $hToken, $iClass ) Retrieves a specified type of information about an access token (Requires: #include ) -_Security__ImpersonateSelf ( [$iLevel = $SECURITYIMPERSONATION] ) Obtains an access token that impersonates the calling process security context (Requires: #include ) -_Security__IsValidSid ( $pSID ) Validates a SID (Requires: #include ) -_Security__LookupAccountName ( $sAccount [, $sSystem = ""] ) Retrieves a security identifier (SID) for the account and the name of the domain (Requires: #include ) -_Security__LookupAccountSid ( $vSID [, $sSystem = ""] ) Retrieves the name of the account for a SID (Requires: #include ) -_Security__LookupPrivilegeValue ( $sSystem, $sName ) Retrieves the locally unique identifier (LUID) for a privilege value in form of 64bit integer (Requires: #include ) -_Security__OpenProcessToken ( $hProcess, $iAccess ) Returns the access token associated with a process (Requires: #include ) -_Security__OpenThreadToken ( $iAccess [, $hThread = 0 [, $bOpenAsSelf = False]] ) Opens the access token associated with a thread (Requires: #include ) -_Security__OpenThreadTokenEx ( $iAccess [, $hThread = 0 [, $bOpenAsSelf = False]] ) Opens the access token associated with a thread, impersonating the client's security context if required (Requires: #include ) -_Security__SetPrivilege ( $hToken, $sPrivilege, $bEnable ) Enables or disables a local token privilege (Requires: #include ) -_Security__SetTokenInformation ( $hToken, $iTokenInformation, $vTokenInformation, $iTokenInformationLength ) Sets various types of information for a specified access token (Requires: #include ) -_Security__SidToStringSid ( $pSID ) Converts a binary SID to a string (Requires: #include ) -_Security__SidTypeStr ( $iType ) Converts a SID type to string form (Requires: #include ) -_Security__StringSidToSid ( $sSID ) Converts a String SID to a binary SID (Requires: #include ) -_SendMessage ( $hWnd, $iMsg [, $wParam = 0 [, $lParam = 0 [, $iReturn = 0 [, $wParamType = "wparam" [, $lParamType = "lparam" [, $sReturnType = "lresult"]]]]]] ) Wrapper for commonly used DLL Call (Requires: #include ) -_SendMessageA ( $hWnd, $iMsg [, $wParam = 0 [, $lParam = 0 [, $iReturn = 0 [, $wParamType = "wparam" [, $lParamType = "lparam" [, $sReturnType = "lresult"]]]]]] ) Send a Message to a Window/Control (Force Ansi Call) (Requires: #include ) -_SetDate ( $iDay [, $iMonth = 0 [, $iYear = 0]] ) Sets the current date of the system (Requires: #include ) -_SetTime ( $iHour, $iMinute [, $iSecond = 0 [, $iMSeconds = 0]] ) Sets the current time of the system (Requires: #include ) -_Singleton ( $sOccurrenceName [, $iFlag = 0] ) Enforce a design paradigm where only one instance of the script may be running (Requires: #include ) -_SoundClose ( $aSndID ) Closes a sound previously opened with _SoundOpen (Requires: #include ) -_SoundLength ( $aSndID [, $iMode = 1] ) Returns the length of the soundfile (Requires: #include ) -_SoundOpen ( $sFilePath ) Opens a sound file for use with other _Sound functions (Requires: #include ) -_SoundPause ( $aSndID ) Pause a playing sound (Requires: #include ) -_SoundPlay ( $aSndID [, $iWait = 0] ) Play a sound file (Requires: #include ) -_SoundPos ( $aSndID [, $iMode = 1] ) Returns the current position of the sound (Requires: #include ) -_SoundResume ( $aSndID ) Resume a paused sound (Requires: #include ) -_SoundSeek ( ByRef $aSndID, $iHour, $iMin, $iSec ) Seeks the sound to the specified position (Requires: #include ) -_SoundStatus ( $aSndID ) Returns the status of the sound (Requires: #include ) -_SoundStop ( ByRef $aSndID ) Stop a playing sound (Requires: #include ) -_SQLite_Changes ( [$hDB = -1] ) Returns the number of database rows that were changed by the most recently completed statement with this connection (Requires: #include ) -_SQLite_Close ( [$hDB = -1] ) Close an open database (Requires: #include ) -_SQLite_Display2DResult ( $aResult [, $iCellWidth = 0 [, $bReturn = False]] ) Returns or prints to Console a formated display of a 2Dimensional array (Requires: #include ) -_SQLite_Encode ( $vData ) Binary encodes a string, number or binary data for use as BLOB in SQLite statements (Requires: #include ) -_SQLite_ErrCode ( [$hDB = -1] ) Returns last error code (numeric) (Requires: #include ) -_SQLite_ErrMsg ( [$hDB = -1] ) Returns a string describing in english the error condition for the most recent sqlite3_* API call (Requires: #include ) -_SQLite_Escape ( $sString [, $iBuffSize = Default] ) Escapes a string or number for use as TEXT in SQLite statements (Requires: #include ) -_SQLite_Exec ( $hDB, $sSQL [, $sCallBack = ""] ) Executes a SQLite query, does not handle results (Requires: #include ) -_SQLite_FastEncode ( $vData ) Fast encodes binary data (exclusively) for use in SQLite statements (Requires: #include ) -_SQLite_FastEscape ( $sString ) Fast escapes a string or number for use as TEXT in SQLite statements (Requires: #include ) -_SQLite_FetchData ( $hQuery, ByRef $aRow [, $bBinary = False [, $bDoNotFinalize = False [, $iColumns = 0]]] ) Fetches 1 row of data from a _SQLite_Query() based query (Requires: #include ) -_SQLite_FetchNames ( $hQuery, ByRef $aNames ) Read out the Column names of a _SQLite_Query() based query (Requires: #include ) -_SQLite_GetTable ( $hDB, $sSQL, ByRef $aResult, ByRef $iRows, ByRef $iColumns [, $iCharSize = -1] ) Passes Out a 1Dimensional Array Containing Tablenames and Data of Executed Query (Requires: #include ) -_SQLite_GetTable2d ( $hDB, $sSQL, ByRef $aResult, ByRef $iRows, ByRef $iColumns [, $iCharSize = -1 [, $bSwichDimensions = False]] ) Passes out a 2Dimensional array containing column names and data of executed query (Requires: #include ) -_SQLite_LastInsertRowID ( [$hDB = -1] ) Returns the ROWID of the most recent insert in the database by this connection (Requires: #include ) -_SQLite_LibVersion ( ) Returns the version number of the library (Requires: #include ) -_SQLite_Open ( [$sDatabase_Filename = ":memory:" [, $iAccessMode = Default [, $iEncoding = $SQLITE_ENCODING_UTF8]]] ) Opens/creates a SQLite database (Requires: #include ) -_SQLite_Query ( $hDB, $sSQL, ByRef $hQuery ) Prepares a SQLite Query (Requires: #include ) -_SQLite_QueryFinalize ( $hQuery ) Finalizes an _SQLite_Query() based query. The query is interrupted (Requires: #include ) -_SQLite_QueryReset ( $hQuery ) Reset a _SQLite_Query() based query (Requires: #include ) -_SQLite_QuerySingleRow ( $hDB, $sSQL, ByRef $aRow ) Read out the first row of the result from the specified query (Requires: #include ) -_SQLite_SafeMode ( $bSafeModeState ) Disable or Enable Safe mode (Requires: #include ) -_SQLite_SetTimeout ( [$hDB = -1 [, $iTimeout = 1000]] ) Sets timeout for busy handler (Requires: #include ) -_SQLite_Shutdown ( ) Unloads SQLite.dll (Requires: #include ) -_SQLite_SQLiteExe ( $sDatabaseFile, $sInput, ByRef $sOutput [, $sSQLiteExeFilename = "sqlite3.exe" [, $bDebug = False]] ) Executes commands in sqlite3.exe (Requires: #include ) -_SQLite_Startup ( [$sDll_Filename = "" [, $bUTF8ErrorMsg = False [, $iForceLocal = 0 [, $hPrintCallback = $__g_hPrintCallback_SQLite]]]] ) Loads SQLite3.dll (Requires: #include ) -_SQLite_TotalChanges ( [$hDB = -1] ) Returns number of all changes (including via triggers and foreign keys) from start of connection (Requires: #include ) -_StringBetween ( $sString, $sStart, $sEnd [, $iMode = $STR_ENDISSTART [, $bCase = False]] ) Find strings between two string delimiters (Requires: #include ) -_StringExplode ( $sString, $sDelimiter [, $iLimit = 0] ) Splits up a string into substrings depending on the given delimiters as PHP Explode v5 (Requires: #include ) -_StringInsert ( $sString, $sInsertString, $iPosition ) Inserts a string within another string (Requires: #include ) -_StringProper ( $sString ) Changes a string to proper case, same as the =Proper function in Excel (Requires: #include ) -_StringRepeat ( $sString, $iRepeatCount ) Repeats a string a specified number of times (Requires: #include ) -_StringTitleCase ( $sString ) Changes a string to a title case string (Requires: #include ) -_StringToHex ( $sString ) Convert a string to a hex string (Requires: #include ) -_TCPIpToName ( $sIp [, $iOption = 0 [, $hDll = "Ws2_32.dll"]] ) Resolves IP address to Hostname(s) (Requires: #include ) -_TempFile ( [$sDirectoryName = @TempDir [, $sFilePrefix = "~" [, $sFileExtension = ".tmp" [, $iRandomLength = 7]]]] ) Generate a name for a temporary file. The file is guaranteed not to exist yet (Requires: #include ) -_TicksToTime ( $iTicks, ByRef $iHours, ByRef $iMins, ByRef $iSecs ) Converts the specified tick amount to hours, minutes and seconds (Requires: #include ) -_Timer_Diff ( $iTimeStamp ) Returns the difference in time from a previous call to _Timer_Init (Requires: #include ) -_Timer_GetIdleTime ( ) Returns the number of ticks since last user activity (i.e. KYBD/Mouse) (Requires: #include ) -_Timer_GetTimerID ( $wParam ) Returns the Timer ID from $wParam (Requires: #include ) -_Timer_Init ( ) Returns a timestamp (in milliseconds) (Requires: #include ) -_Timer_KillAllTimers ( $hWnd ) Destroys all the timers (Requires: #include ) -_Timer_KillTimer ( $hWnd, $iTimerID ) Destroys the specified timer (Requires: #include ) -_Timer_SetTimer ( $hWnd [, $iElapse = 250 [, $sTimerFunc = "" [, $iTimerID = -1]]] ) Creates a timer with the specified time-out value (Requires: #include ) -_TimeToTicks ( [$iHours = @HOUR [, $iMins = @MIN [, $iSecs = @SEC]]] ) Converts the specified hours, minutes, and seconds to ticks (Requires: #include ) -_VersionCompare ( $sVersion1, $sVersion2 ) Compares two file versions for equality (Requires: #include ) -_viClose ( $hSession ) Closes a VISA connection to an Instrument/Device (Requires: #include ) -_viExecCommand ( $hSession, $sCommand [, $iTimeoutMS = -1 [, $sMode = @LF]] ) Send a Command/Query to an Instrument/Device through the VISA interface (GPIB / TCP) (Requires: #include ) -_viFindGpib ( ByRef $aDescriptorList, ByRef $aIDNList [, $iShow_Search_Results = 0] ) Send a Command/Query to an Instrument/Device through the VISA interface (GPIB / TCP) (Requires: #include ) -_viGpibBusReset ( ) GPIB BUS "reset": Use this function when the GPIB BUS gets stuck for some reason. You might be lucky and resolve the problem by calling this function (Requires: #include ) -_viGTL ( $hSession ) Go To Local mode: Instruments that accept this command will exit the "Remote Control mode" and go to "Local mode". If the instrument is already in "Local mode" this is simply ignored. Normally, if an instrument does not support this command it will simply stay in the "Remote Control mode" (Requires: #include ) -_viInteractiveControl ( [$sCommand_Save_FilePath = ""] ) Interactive VISA control to test your SCPI commands (Requires: #include ) -_viOpen ( $sVisa_Address [, $sVisa_Secondary_Address = 0] ) Opens a VISA connection to an Instrument/Device (Requires: #include ) -_viSetAttribute ( $hSession, $iAttribute, $iValue ) Set any VISA attribute This function, which is called by _viSetTimeout, can ALSO be used to set the other VISA specific attributes. Read the VISA documentation for more information and a list of VISA attributes and their corresponding values (Requires: #include ) -_viSetTimeout ( $hSession, $iTimeoutMS ) Sets the VISA timeout in MILISECONDS (Requires: #include ) -_WeekNumberISO ( [$iYear = @YEAR [, $iMonth = @MON [, $iDay = @MDAY]]] ) Calculate the weeknumber of a given date (Requires: #include ) -_WinAPI_AbortPath ( $hDC ) Closes and discards any paths in the specified device context (Requires: #include ) -_WinAPI_ActivateKeyboardLayout ( $hLocale [, $iFlag = 0] ) Sets the input locale identifier for the calling thread or the current process (Requires: #include ) -_WinAPI_AddClipboardFormatListener ( $hWnd ) Places the given window in the system-maintained clipboard format listener list (Requires: #include ) -_WinAPI_AddFontMemResourceEx ( $pData, $iSize ) Adds the font resource from a memory image to the system (Requires: #include ) -_WinAPI_AddFontResourceEx ( $sFont [, $iFlag = 0 [, $bNotify = False]] ) Adds the font resource from the specified file to the system font table (Requires: #include ) -_WinAPI_AddIconOverlay ( $hIcon, $hOverlay ) Creates an icon by merging the source icon and overlay mask (Requires: #include ) -_WinAPI_AddIconTransparency ( $hIcon [, $iPercent = 50 [, $bDelete = False]] ) Adds a transparency to the specified 32 bits-per-pixel icon (Requires: #include ) -_WinAPI_AddMRUString ( $hMRU, $sStr ) Adds a string to the top of the most recently used (MRU) list (Requires: #include ) -_WinAPI_AdjustBitmap ( $hBitmap, $iWidth, $iHeight [, $iMode = 3 [, $tAdjustment = 0]] ) Creates a new device-depended bitmap (DDB) from the source bitmap with new dimensions and color adjustment (Requires: #include ) -_WinAPI_AdjustTokenPrivileges ( $hToken, $aPrivileges, $iAttributes, ByRef $aAdjust ) Enables or disables privileges in the specified access token (Requires: #include ) -_WinAPI_AdjustWindowRectEx ( ByRef $tRECT, $iStyle [, $iExStyle = 0 [, $bMenu = False]] ) Calculates the required size of the window rectangle, based on the desired size of the client rectangle (Requires: #include ) -_WinAPI_AlphaBlend ( $hDestDC, $iXDest, $iYDest, $iWidthDest, $iHeightDest, $hSrcDC, $iXSrc, $iYSrc, $iWidthSrc, $iHeightSrc, $iAlpha [, $bAlpha = False] ) Displays bitmaps that have transparent or semitransparent pixels (Requires: #include ) -_WinAPI_AngleArc ( $hDC, $iX, $iY, $iRadius, $nStartAngle, $nSweepAngle ) Draws a line segment and an arc (Requires: #include ) -_WinAPI_AnimateWindow ( $hWnd, $iFlags [, $iDuration = 1000] ) Enables you to produce special effects when showing or hiding windows (Requires: #include ) -_WinAPI_Arc ( $hDC, $tRECT, $iXStartArc, $iYStartArc, $iXEndArc, $iYEndArc ) Draws an elliptical arc (Requires: #include ) -_WinAPI_ArcTo ( $hDC, $tRECT, $iXRadial1, $iYRadial1, $iXRadial2, $iYRadial2 ) Draws an elliptical arc (Requires: #include ) -_WinAPI_ArrayToStruct ( Const ByRef $aData [, $iStart = 0 [, $iEnd = -1]] ) Converts an array of strings to the structure (Requires: #include ) -_WinAPI_AssignProcessToJobObject ( $hJob, $hProcess ) Assigns a process to an existing job object (Requires: #include ) -_WinAPI_AssocGetPerceivedType ( $sExt ) Retrieves a file's perceived type based on its extension (Requires: #include ) -_WinAPI_AssocQueryString ( $sAssoc, $iType [, $iFlags = 0 [, $sExtra = '']] ) Searches for and retrieves a file or protocol association-related string from the registry (Requires: #include ) -_WinAPI_AttachConsole ( [$iPID = -1] ) Attaches the calling process to the console of the specified process (Requires: #include ) -_WinAPI_AttachThreadInput ( $iAttach, $iAttachTo, $bAttach ) Attaches the input processing mechanism of one thread to that of another thread (Requires: #include ) -_WinAPI_BackupRead ( $hFile, $pBuffer, $iLength, ByRef $iBytes, ByRef $pContext [, $bSecurity = False] ) Backs up a file or directory, including the security information (Requires: #include ) -_WinAPI_BackupReadAbort ( ByRef $pContext ) Finishes the use of _WinAPI_BackupRead() on the handle (Requires: #include ) -_WinAPI_BackupSeek ( $hFile, $iSeek, ByRef $iBytes, ByRef $pContext ) Seeks forward in a data stream initially accessed by using the _WinAPI_BackupRead() or _WinAPI_BackupWrite() function (Requires: #include ) -_WinAPI_BackupWrite ( $hFile, $pBuffer, $iLength, ByRef $iBytes, ByRef $pContext [, $bSecurity = False] ) Restore a file or directory that was backed up using _WinAPI_BackupRead() (Requires: #include ) -_WinAPI_BackupWriteAbort ( ByRef $pContext ) Finishes the use of _WinAPI_BackupWrite() on the handle (Requires: #include ) -_WinAPI_Beep ( [$iFreq = 500 [, $iDuration = 1000]] ) Generates simple tones on the speaker (Requires: #include ) -_WinAPI_BeginBufferedPaint ( $hDC, $tTarget, ByRef $hNewDC [, $iFormat = 0 [, $iFlags = 0 [, $tExclude = 0 [, $iAlpha = -1]]]] ) Begins a buffered paint operation (Requires: #include ) -_WinAPI_BeginDeferWindowPos ( [$iAmount = 1] ) Allocates memory for a multiple-window-position structure (Requires: #include ) -_WinAPI_BeginPaint ( $hWnd, ByRef $tPAINTSTRUCT ) Prepares the specified window for painting (Requires: #include ) -_WinAPI_BeginPath ( $hDC ) Opens a path bracket in the specified device context (Requires: #include ) -_WinAPI_BeginUpdateResource ( $sFilePath [, $bDelete = False] ) Retrieves a handle that can be used to add, delete, or replace resources in a binary module (Requires: #include ) -_WinAPI_BitBlt ( $hDestDC, $iXDest, $iYDest, $iWidth, $iHeight, $hSrcDC, $iXSrc, $iYSrc, $iROP ) Performs a bit-block transfer of color data (Requires: #include ) -_WinAPI_BringWindowToTop ( $hWnd ) Brings the specified window to the top of the Z order (Requires: #include ) -_WinAPI_BroadcastSystemMessage ( $iMsg [, $wParam = 0 [, $lParam = 0 [, $iFlags = 0 [, $iRecipients = 0]]]] ) Sends a message to the specified recipients (Requires: #include ) -_WinAPI_BrowseForFolderDlg ( [$sRoot = '' [, $sText = '' [, $iFlags = 0 [, $pBrowseProc = 0 [, $lParam = 0 [, $hParent = 0]]]]]] ) Displays a dialog box that enables the user to select a Shell folder (Requires: #include ) -_WinAPI_BufferedPaintClear ( $hBP [, $tRECT = 0] ) Clears a specified rectangle in the buffer to ARGB = {0,0,0,0} (Requires: #include ) -_WinAPI_BufferedPaintInit ( ) Initialize buffered painting for the current thread (Requires: #include ) -_WinAPI_BufferedPaintSetAlpha ( $hBP [, $iAlpha = 255 [, $tRECT = 0]] ) Sets the alpha to a specified value in a given rectangle (Requires: #include ) -_WinAPI_BufferedPaintUnInit ( ) Closes down buffered painting for the current thread (Requires: #include ) -_WinAPI_CallNextHookEx ( $hHook, $iCode, $wParam, $lParam ) Passes the hook information to the next hook procedure in the current hook chain (Requires: #include ) -_WinAPI_CallWindowProc ( $pPrevWndFunc, $hWnd, $iMsg, $wParam, $lParam ) Passes the hook information to the next hook procedure in the current hook chain (Requires: #include ) -_WinAPI_CallWindowProcW ( $pPrevWndProc, $hWnd, $iMsg, $wParam, $lParam ) Passes message information to the specified window procedure (Requires: #include ) -_WinAPI_CascadeWindows ( $aWnds [, $tRECT = 0 [, $hParent = 0 [, $iFlags = 0 [, $iStart = 0 [, $iEnd = -1]]]]] ) Cascades the specified child windows of the specified parent window (Requires: #include ) -_WinAPI_ChangeWindowMessageFilterEx ( $hWnd, $iMsg, $iAction ) Modifies the User Interface Privilege Isolation (UIPI) message filter for a specified window (Requires: #include ) -_WinAPI_CharToOem ( $sStr ) Converts a string into the OEM-defined character set (Requires: #include ) -_WinAPI_ChildWindowFromPointEx ( $hWnd, $tPOINT [, $iFlags = 0] ) Determines which, if any, of the child windows belonging to the specified parent window contains the specified point (Requires: #include ) -_WinAPI_ClientToScreen ( $hWnd, ByRef $tPoint ) Converts the client coordinates of a specified point to screen coordinates (Requires: #include ) -_WinAPI_ClipCursor ( $tRECT ) Confines the cursor to a rectangular area on the screen (Requires: #include ) -_WinAPI_CloseDesktop ( $hDesktop ) Closes an open handle to a desktop object (Requires: #include ) -_WinAPI_CloseEnhMetaFile ( $hDC ) Closes an enhanced-metafile device context and returns a handle that identifies an enhanced-format metafile (Requires: #include ) -_WinAPI_CloseFigure ( $hDC ) Closes an open figure in a path (Requires: #include ) -_WinAPI_CloseHandle ( $hObject ) Closes an open object handle (Requires: #include ) -_WinAPI_CloseThemeData ( $hTheme ) Closes the theme data handle (Requires: #include ) -_WinAPI_CloseWindow ( $hWnd ) Minimizes (but does not destroy) the specified window (Requires: #include ) -_WinAPI_CloseWindowStation ( $hStation ) Closes an open window station handle (Requires: #include ) -_WinAPI_CLSIDFromProgID ( $sProgID ) Looks up a CLSID in the registry, given a ProgID (Requires: #include ) -_WinAPI_CoInitialize ( [$iFlags = 0] ) Initializes the COM library for use by the calling process (Requires: #include ) -_WinAPI_ColorAdjustLuma ( $iRGB, $iPercent [, $bScale = True] ) Changes the luminance of a RGB value (Requires: #include ) -_WinAPI_ColorHLSToRGB ( $iHue, $iLuminance, $iSaturation ) Converts colors from hue-luminance-saturation (HLS) to RGB format (Requires: #include ) -_WinAPI_ColorRGBToHLS ( $iRGB, ByRef $iHue, ByRef $iLuminance, ByRef $iSaturation ) Converts colors from RGB to hue-luminance-saturation (HLS) format (Requires: #include ) -_WinAPI_CombineRgn ( $hRgnDest, $hRgnSrc1, $hRgnSrc2, $iCombineMode ) Combines two regions and stores the result in a third region (Requires: #include ) -_WinAPI_CombineTransform ( $tXFORM1, $tXFORM2 ) Concatenates two world-space to page-space transformations (Requires: #include ) -_WinAPI_CommandLineToArgv ( $sCmd ) Parses a command-line string and returns an array of the command-line arguments (Requires: #include ) -_WinAPI_CommDlgExtendedError ( ) Returns a common dialog box error string. This string indicates the most recent error to occur during the execution of one of the common dialog box functions (Requires: #include ) -_WinAPI_CommDlgExtendedErrorEx ( ) Returns a common dialog box error code (Requires: #include ) -_WinAPI_CompareString ( $iLCID, $sString1, $sString2 [, $iFlags = 0] ) Compares two character strings for a specified locale (Requires: #include ) -_WinAPI_CompressBitmapBits ( $hBitmap, ByRef $pBuffer [, $iCompression = 0 [, $iQuality = 100]] ) Creates a compressed data block from the specified bitmap (Requires: #include ) -_WinAPI_CompressBuffer ( $pUncompressedBuffer, $iUncompressedSize, $pCompressedBuffer, $iCompressedSize [, $iFormatAndEngine = 0x0002] ) Compresses a buffer with specified compression format and engine type (Requires: #include ) -_WinAPI_ComputeCrc32 ( $pMemory, $iLength ) Calculates the CRC32 checksum of a block of memory (Requires: #include ) -_WinAPI_ConfirmCredentials ( $sTarget, $bConfirm ) Confirms the validity of the credential harvested (Requires: #include ) -_WinAPI_CopyBitmap ( $hBitmap ) Creates a duplicate of a specified bitmap with a device-independent bitmap (DIB) section (Requires: #include ) -_WinAPI_CopyCursor ( $hCursor ) Creates a duplicate of a specified cursor (Requires: #include ) -_WinAPI_CopyEnhMetaFile ( $hEmf [, $sFilePath = ''] ) Copies the contents of an enhanced-format metafile to a specified file (Requires: #include ) -_WinAPI_CopyFileEx ( $sExistingFile, $sNewFile [, $iFlags = 0 [, $pProgressProc = 0 [, $pData = 0]]] ) Copies an existing file to a new file, notifying the application of its progress through a callback function (Requires: #include ) -_WinAPI_CopyIcon ( $hIcon ) Copies the specified icon from another module (Requires: #include ) -_WinAPI_CopyImage ( $hImage [, $iType = 0 [, $iXDesiredPixels = 0 [, $iYDesiredPixels = 0 [, $iFlags = 0]]]] ) Creates a new image (icon, cursor, or bitmap) and copies the attributes of the specified image to the new one (Requires: #include ) -_WinAPI_CopyRect ( $tRECT ) Copies the coordinates of one rectangle to another (Requires: #include ) -_WinAPI_CopyStruct ( $tStruct [, $sStruct = ''] ) Creates a duplicate of a specified structure (Requires: #include ) -_WinAPI_CoTaskMemAlloc ( $iSize ) Allocates a block of task memory (Requires: #include ) -_WinAPI_CoTaskMemFree ( $pMemory ) Frees a block of task memory (Requires: #include ) -_WinAPI_CoTaskMemRealloc ( $pMemory, $iSize ) Changes the size of a previously allocated block of task memory (Requires: #include ) -_WinAPI_CoUninitialize ( ) Closes the COM library on the current process (Requires: #include ) -_WinAPI_Create32BitHBITMAP ( $hIcon [, $bDib = False [, $bDelete = False]] ) Creates a 32 bits-per-pixel bitmap from the specified icon (Requires: #include ) -_WinAPI_Create32BitHICON ( $hIcon [, $bDelete = False] ) Converts an icon to a 32 bits-per-pixel format and copies to the new icon (Requires: #include ) -_WinAPI_CreateANDBitmap ( $hBitmap ) Creates AND bitmask device-independent bitmap (DIB) from the specified bitmap (Requires: #include ) -_WinAPI_CreateBitmap ( $iWidth, $iHeight [, $iPlanes = 1 [, $iBitsPerPel = 1 [, $pBits = 0]]] ) Creates a bitmap with the specified width, height, and color format (Requires: #include ) -_WinAPI_CreateBitmapIndirect ( $tBITMAP ) Creates a bitmap with the specified width, height, and color format (color planes and bits-per-pixel) (Requires: #include ) -_WinAPI_CreateBrushIndirect ( $iStyle, $iRGB [, $iHatch = 0] ) Creates a logical brush that has the specified style, color, and pattern (Requires: #include ) -_WinAPI_CreateBuffer ( $iLength [, $pBuffer = 0 [, $bAbort = True]] ) Allocates a block of memory from the internal library heap (Requires: #include ) -_WinAPI_CreateBufferFromStruct ( $tStruct [, $pBuffer = 0 [, $bAbort = True]] ) Allocates a block of memory from the internal library heap and initializes it with the structure's data (Requires: #include ) -_WinAPI_CreateCaret ( $hWnd, $hBitmap [, $iWidth = 0 [, $iHeight = 0]] ) Creates a new shape for the system caret and assigns ownership of the caret to the specified window (Requires: #include ) -_WinAPI_CreateColorAdjustment ( [$iFlags = 0 [, $iIlluminant = 0 [, $iGammaR = 10000 [, $iGammaG = 10000 [, $iGammaB = 10000 [, $iBlack = 0 [, $iWhite = 10000 [, $iContrast = 0 [, $iBrightness = 0 [, $iColorfulness = 0 [, $iTint = 0]]]]]]]]]]] ) Creates $tagCOLORADJUSTMENT structure specifies the color adjustment (Requires: #include ) -_WinAPI_CreateCompatibleBitmap ( $hDC, $iWidth, $iHeight ) Creates a bitmap compatible with the specified device context (Requires: #include ) -_WinAPI_CreateCompatibleBitmapEx ( $hDC, $iWidth, $iHeight, $iRGB ) Creates a bitmap compatible with the device and fills it the specified color (Requires: #include ) -_WinAPI_CreateCompatibleDC ( $hDC ) Creates a memory device context compatible with the specified device (Requires: #include ) -_WinAPI_CreateDesktop ( $sName [, $iAccess = 0x0002 [, $iFlags = 0 [, $iHeap = 0 [, $tSecurity = 0]]]] ) Creates a new desktop, associates it with the current window station of the calling process (Requires: #include ) -_WinAPI_CreateDIB ( $iWidth, $iHeight [, $iBitsPerPel = 32 [, $tColorTable = 0 [, $iColorCount = 0]]] ) Creates an uncompressed device-independent bitmap (DIB) with the specified width, height, and color depth (Requires: #include ) -_WinAPI_CreateDIBColorTable ( Const ByRef $aColorTable [, $iStart = 0 [, $iEnd = -1]] ) Creates RGB color table from the specified array of colors (Requires: #include ) -_WinAPI_CreateDIBitmap ( $hDC, $tBITMAPINFO, $iUsage [, $pBits = 0] ) Creates a compatible bitmap (DDB) from a DIB and, optionally, sets the bitmap bits (Requires: #include ) -_WinAPI_CreateDIBSection ( $hDC, $tBITMAPINFO, $iUsage, ByRef $pBits [, $hSection = 0 [, $iOffset = 0]] ) Creates a DIB that applications can write to directly (Requires: #include ) -_WinAPI_CreateDirectory ( $sDir [, $tSecurity = 0] ) Creates a new directory (Requires: #include ) -_WinAPI_CreateDirectoryEx ( $sNewDir, $sTemplateDir [, $tSecurity = 0] ) Creates a new directory with the attributes of a specified template directory (Requires: #include ) -_WinAPI_CreateEllipticRgn ( $tRECT ) Creates an elliptical region (Requires: #include ) -_WinAPI_CreateEmptyIcon ( $iWidth, $iHeight [, $iBitsPerPel = 32] ) Creates a fully transparent icon with the specified width, height, and color depth (Requires: #include ) -_WinAPI_CreateEnhMetaFile ( [$hDC = 0 [, $tRECT = 0 [, $bPixels = False [, $sFilePath = '' [, $sDescription = '']]]]] ) Creates a device context for an enhanced-format metafile (Requires: #include ) -_WinAPI_CreateEvent ( [$tAttributes = 0 [, $bManualReset = True [, $bInitialState = True [, $sName = ""]]]] ) Creates or opens a named or unnamed event object (Requires: #include ) -_WinAPI_CreateFile ( $sFileName, $iCreation [, $iAccess = 4 [, $iShare = 0 [, $iAttributes = 0 [, $tSecurity = 0]]]] ) Creates or opens a file or other device (Requires: #include ) -_WinAPI_CreateFileEx ( $sFilePath, $iCreation [, $iAccess = 0 [, $iShare = 0 [, $iFlagsAndAttributes = 0 [, $tSecurity = 0 [, $hTemplate = 0]]]]] ) Creates or opens a file or I/O device (Requires: #include ) -_WinAPI_CreateFileMapping ( $hFile [, $iSize = 0 [, $sName = '' [, $iProtect = 0x0004 [, $tSecurity = 0]]]] ) Creates or opens a named or unnamed file mapping object for a specified file (Requires: #include ) -_WinAPI_CreateFont ( $iHeight, $iWidth [, $iEscape = 0 [, $iOrientn = 0 [, $iWeight = $FW_NORMAL [, $bItalic = False [, $bUnderline = False [, $bStrikeout = False [, $iCharset = $DEFAULT_CHARSET [, $iOutputPrec = $OUT_DEFAULT_PRECIS [, $iClipPrec = $CLIP_DEFAULT_PRECIS [, $iQuality = $DEFAULT_QUALITY [, $iPitch = 0 [, $sFace = 'Arial']]]]]]]]]]]] ) Creates a logical font with the specified characteristics (Requires: #include ) -_WinAPI_CreateFontEx ( $iHeight [, $iWidth = 0 [, $iEscapement = 0 [, $iOrientation = 0 [, $iWeight = 400 [, $bItalic = False [, $bUnderline = False [, $bStrikeOut = False [, $iCharSet = 1 [, $iOutPrecision = 0 [, $iClipPrecision = 0 [, $iQuality = 0 [, $iPitchAndFamily = 0 [, $sFaceName = '' [, $iStyle = 0]]]]]]]]]]]]]] ) Creates a logical font with the specified characteristics (Requires: #include ) -_WinAPI_CreateFontIndirect ( $tLogFont ) Creates a logical font that has specific characteristics (Requires: #include ) -_WinAPI_CreateGUID ( ) Creates a globally unique identifier (GUID) (Requires: #include ) -_WinAPI_CreateHardLink ( $sNewFile, $sExistingFile ) Establishes a hard link between an existing file and a new file (Requires: #include ) -_WinAPI_CreateIcon ( $hInstance, $iWidth, $iHeight, $iPlanes, $iBitsPixel, $pANDBits, $pXORBits ) Creates an icon that has the specified size, colors, and bit patterns (Requires: #include ) -_WinAPI_CreateIconFromResourceEx ( $pData, $iSize [, $bIcon = True [, $iXDesiredPixels = 0 [, $iYDesiredPixels = 0 [, $iFlags = 0]]]] ) Creates an icon or cursor from resource bits describing the icon (Requires: #include ) -_WinAPI_CreateIconIndirect ( $hBitmap, $hMask [, $iXHotspot = 0 [, $iYHotspot = 0 [, $bIcon = True]]] ) Creates an icon or cursor that has the specified size, colors, and bit patterns (Requires: #include ) -_WinAPI_CreateJobObject ( [$sName = '' [, $tSecurity = 0]] ) Creates or opens a job object (Requires: #include ) -_WinAPI_CreateMargins ( $iLeftWidth, $iRightWidth, $iTopHeight, $iBottomHeight ) Creates $tagMARGINS structure with specified left, right, top, and bottom retaining borders (Requires: #include ) -_WinAPI_CreateMRUList ( $hKey, $sSubKey [, $iMax = 26] ) Creates a new most recently used (MRU) list (Requires: #include ) -_WinAPI_CreateMutex ( $sMutex [, $bInitial = True [, $tSecurity = 0]] ) Creates or opens a named or unnamed mutex object (Requires: #include ) -_WinAPI_CreateNullRgn ( ) Creates an empty region (Requires: #include ) -_WinAPI_CreateNumberFormatInfo ( $iNumDigits, $iLeadingZero, $iGrouping, $sDecimalSep, $sThousandSep, $iNegativeOrder ) Creates a $tagNUMBERFMT structure with the specified number formatting information (Requires: #include ) -_WinAPI_CreateObjectID ( $sFilePath ) Creates or retrieves the object identifier for the specified file or directory (Requires: #include ) -_WinAPI_CreatePen ( $iPenStyle, $iWidth, $iColor ) Creates a logical pen that has the specified style, width, and color (Requires: #include ) -_WinAPI_CreatePoint ( $iX, $iY ) Creates $tagPOINT structure with the x- and y-coordinates of the specified point (Requires: #include ) -_WinAPI_CreatePolygonRgn ( Const ByRef $aPoint [, $iStart = 0 [, $iEnd = -1 [, $iMode = 1]]] ) Creates a polygonal region (Requires: #include ) -_WinAPI_CreateProcess ( $sAppName, $sCommand, $tSecurity, $tThread, $bInherit, $iFlags, $pEnviron, $sDir, $tStartupInfo, $tProcess ) Creates a new process and its primary thread (Requires: #include ) -_WinAPI_CreateProcessWithToken ( $sApp, $sCmd, $iFlags, $tStartupInfo, $tProcessInfo, $hToken [, $iLogon = 0 [, $pEnvironment = 0 [, $sDir = '']]] ) Creates a new process and its primary thread in the security context of the specified token (Requires: #include ) -_WinAPI_CreateRect ( $iLeft, $iTop, $iRight, $iBottom ) Creates $tagRECT structure with the coordinates of the specified rectangle (Requires: #include ) -_WinAPI_CreateRectEx ( $iX, $iY, $iWidth, $iHeight ) Creates $tagRECT structure with the coordinates of the specified rectangle (Requires: #include ) -_WinAPI_CreateRectRgn ( $iLeftRect, $iTopRect, $iRightRect, $iBottomRect ) Creates a rectangular region (Requires: #include ) -_WinAPI_CreateRectRgnIndirect ( $tRECT ) Creates a rectangular region (Requires: #include ) -_WinAPI_CreateRoundRectRgn ( $iLeftRect, $iTopRect, $iRightRect, $iBottomRect, $iWidthEllipse, $iHeightEllipse ) Creates a rectangular region with rounded corners (Requires: #include ) -_WinAPI_CreateSemaphore ( $sSemaphore, $iInitial, $iMaximum [, $tSecurity = 0] ) Creates or opens a named or unnamed semaphore object (Requires: #include ) -_WinAPI_CreateSize ( $iWidth, $iHeight ) Creates $tagSIZE structure with the width and height of the specified rectangle (Requires: #include ) -_WinAPI_CreateSolidBitmap ( $hWnd, $iColor, $iWidth, $iHeight [, $bRGB = 1] ) Creates a solid color bitmap (Requires: #include ) -_WinAPI_CreateSolidBrush ( $iColor ) Creates a logical brush that has the specified solid color (Requires: #include ) -_WinAPI_CreateStreamOnHGlobal ( [$hGlobal = 0 [, $bDeleteOnRelease = True]] ) Creates a stream object that uses a memory handle to store the stream contents (Requires: #include ) -_WinAPI_CreateString ( $sString [, $pString = 0 [, $iLength = -1 [, $bUnicode = True [, $bAbort = True]]]] ) Copies a specified string to the newly allocated memory block and returns its pointer (Requires: #include ) -_WinAPI_CreateSymbolicLink ( $sSymlink, $sTarget [, $bDirectory = False] ) Creates a symbolic link (Requires: #include ) -_WinAPI_CreateTransform ( [$nM11 = 1 [, $nM12 = 0 [, $nM21 = 0 [, $nM22 = 1 [, $nDX = 0 [, $nDY = 0]]]]]] ) Creates $tagXFORM structure specifies a world-space to page-space transformation (Requires: #include ) -_WinAPI_CreateWindowEx ( $iExStyle, $sClass, $sName, $iStyle, $iX, $iY, $iWidth, $iHeight, $hParent [, $hMenu = 0 [, $hInstance = 0 [, $pParam = 0]]] ) Creates an overlapped, pop-up, or child window (Requires: #include ) -_WinAPI_CreateWindowStation ( [$sName = '' [, $iAccess = 0 [, $iFlags = 0 [, $tSecurity = 0]]]] ) Creates a window station object, associates it with the calling process, and assigns it to the current session (Requires: #include ) -_WinAPI_DecompressBuffer ( $pUncompressedBuffer, $iUncompressedSize, $pCompressedBuffer, $iCompressedSize [, $iFormat = 0x0002] ) Decompresses an entire compressed buffer (Requires: #include ) -_WinAPI_DecryptFile ( $sFilePath ) Decrypts an encrypted file or directory (Requires: #include ) -_WinAPI_DeferWindowPos ( $hInfo, $hWnd, $hAfter, $iX, $iY, $iWidth, $iHeight, $iFlags ) Updates the specified multiple-window-position structure for the specified window (Requires: #include ) -_WinAPI_DefineDosDevice ( $sDevice, $iFlags [, $sFilePath = ''] ) Defines, redefines, or deletes MS-DOS device names (Requires: #include ) -_WinAPI_DefRawInputProc ( $paRawInput, $iInput ) Calls the default raw input procedure to process the raw input messages that an application does not process (Requires: #include ) -_WinAPI_DefSubclassProc ( $hWnd, $iMsg, $wParam, $lParam ) Calls the next handler in a window's subclass chain (Requires: #include ) -_WinAPI_DefWindowProc ( $hWnd, $iMsg, $wParam, $lParam ) Call the default window procedure to provide default processing (Requires: #include ) -_WinAPI_DefWindowProcW ( $hWnd, $iMsg, $wParam, $lParam ) Calls the default window procedure to provide default processing for any window messages (Requires: #include ) -_WinAPI_DeleteDC ( $hDC ) Deletes the specified device context (Requires: #include ) -_WinAPI_DeleteEnhMetaFile ( $hEmf ) Deletes an enhanced-format metafile or an enhanced-format metafile handle (Requires: #include ) -_WinAPI_DeleteFile ( $sFilePath ) Deletes an existing file (Requires: #include ) -_WinAPI_DeleteObject ( $hObject ) Deletes a logical pen, brush, font, bitmap, region, or palette (Requires: #include ) -_WinAPI_DeleteObjectID ( $sFilePath ) Removes the object identifier from a specified file or directory (Requires: #include ) -_WinAPI_DeleteVolumeMountPoint ( $sMountedPath ) Deletes a drive letter or mounted folder (Requires: #include ) -_WinAPI_DeregisterShellHookWindow ( $hWnd ) Unregisters a specified Shell window that is registered to receive Shell hook messages (Requires: #include ) -_WinAPI_DestroyCaret ( ) Destroys the caret's current shape, frees the caret from the window, and removes the caret from the screen (Requires: #include ) -_WinAPI_DestroyCursor ( $hCursor ) Destroys a cursor and frees any memory the cursor occupied (Requires: #include ) -_WinAPI_DestroyIcon ( $hIcon ) Destroys an icon and frees any memory the icon occupied (Requires: #include ) -_WinAPI_DestroyWindow ( $hWnd ) Destroys the specified window (Requires: #include ) -_WinAPI_DeviceIoControl ( $hDevice, $iControlCode [, $pInBuffer = 0 [, $iInBufferSize = 0 [, $pOutBuffer = 0 [, $iOutBufferSize = 0]]]] ) Sends a control code directly to a specified device driver (Requires: #include ) -_WinAPI_DisplayStruct ( $tStruct [, $sStruct = '' [, $sTitle = '' [, $iItem = 0 [, $iSubItem = 0 [, $iFlags = 0 [, $bTop = True [, $hParent = 0]]]]]]] ) Displays data from the specified structure or memory address as a list (Requires: #include ) -_WinAPI_DllGetVersion ( $sFilePath ) Retrieves a DLL-specific version information (Requires: #include ) -_WinAPI_DllInstall ( $sFilePath ) Registers OLE controls such as DLL or ActiveX Controls (OCX) files (Requires: #include ) -_WinAPI_DllUninstall ( $sFilePath ) Unregisters OLE controls such as DLL or ActiveX Controls (OCX) files (Requires: #include ) -_WinAPI_DPtoLP ( $hDC, ByRef $tPOINT [, $iCount = 1] ) Converts device coordinates into logical coordinates (Requires: #include ) -_WinAPI_DragAcceptFiles ( $hWnd [, $bAccept = True] ) Registers whether a window accepts dropped files (Requires: #include ) -_WinAPI_DragFinish ( $hDrop ) Releases memory that the system allocated for use in transferring file names to the application (Requires: #include ) -_WinAPI_DragQueryFileEx ( $hDrop [, $iFlag = 0] ) Retrieves the names of dropped files that result from a successful drag-and-drop operation (Requires: #include ) -_WinAPI_DragQueryPoint ( $hDrop ) Retrieves the position of the mouse pointer at the time a file was dropped during a drag-and-drop operation (Requires: #include ) -_WinAPI_DrawAnimatedRects ( $hWnd, $tRectFrom, $tRectTo ) Animates the caption of a window to indicate the opening of an icon or the minimizing or maximizing of a window (Requires: #include ) -_WinAPI_DrawBitmap ( $hDC, $iX, $iY, $hBitmap [, $iRop = 0x00CC0020] ) Draws a bitmap into the specified device context (Requires: #include ) -_WinAPI_DrawEdge ( $hDC, $tRECT, $iEdgeType, $iFlags ) Draws one or more edges of rectangle (Requires: #include ) -_WinAPI_DrawFocusRect ( $hDC, $tRECT ) Draws a rectangle in the style used to indicate that the rectangle has the focus (Requires: #include ) -_WinAPI_DrawFrameControl ( $hDC, $tRECT, $iType, $iState ) Draws a frame control of the specified type and style (Requires: #include ) -_WinAPI_DrawIcon ( $hDC, $iX, $iY, $hIcon ) Draws an icon or cursor into the specified device context (Requires: #include ) -_WinAPI_DrawIconEx ( $hDC, $iX, $iY, $hIcon [, $iWidth = 0 [, $iHeight = 0 [, $iStep = 0 [, $hBrush = 0 [, $iFlags = 3]]]]] ) Draws an icon or cursor into the specified device context (Requires: #include ) -_WinAPI_DrawLine ( $hDC, $iX1, $iY1, $iX2, $iY2 ) Draws a line (Requires: #include ) -_WinAPI_DrawShadowText ( $hDC, $sText, $iRGBText, $iRGBShadow [, $iXOffset = 0 [, $iYOffset = 0 [, $tRECT = 0 [, $iFlags = 0]]]] ) Draws formatted text in the specified rectangle with a drop shadow (Requires: #include ) -_WinAPI_DrawText ( $hDC, $sText, ByRef $tRECT, $iFlags ) Draws formatted text in the specified rectangle (Requires: #include ) -_WinAPI_DrawThemeBackground ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT [, $tCLIP = 0] ) Draws the border and fill defined by the visual style for the specified control part (Requires: #include ) -_WinAPI_DrawThemeEdge ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT, $iEdge, $iFlags [, $tAREA = 0] ) Draws one or more edges defined by the visual style of a rectangle (Requires: #include ) -_WinAPI_DrawThemeIcon ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT, $hIL, $iIndex ) Draws an image from an image list with the icon effect defined by the visual style (Requires: #include ) -_WinAPI_DrawThemeParentBackground ( $hWnd, $hDC [, $tRECT = 0] ) Draws the part of a parent control that is covered by a partially-transparent or alpha-blended child control (Requires: #include ) -_WinAPI_DrawThemeText ( $hTheme, $iPartID, $iStateID, $hDC, $sText, $tRECT, $iFlags ) Draws text using the color and font defined by the visual style (Requires: #include ) -_WinAPI_DrawThemeTextEx ( $hTheme, $iPartID, $iStateID, $hDC, $sText, $tRECT, $iFlags, $tDTTOPTS ) Draws text using the color and font defined by the visual style (Requires: #include ) -_WinAPI_DuplicateEncryptionInfoFile ( $sSrcFilePath, $sDestFilePath [, $iCreation = 2 [, $iAttributes = 0 [, $tSecurity = 0]]] ) Copies the EFS metadata from one file or directory to another (Requires: #include ) -_WinAPI_DuplicateHandle ( $hSourceProcessHandle, $hSourceHandle, $hTargetProcessHandle, $iDesiredAccess, $iInheritHandle, $iOptions ) Duplicates an object handle (Requires: #include ) -_WinAPI_DuplicateTokenEx ( $hToken, $iAccess, $iLevel [, $iType = 1 [, $tSecurity = 0]] ) Creates a new primary or impersonation access token that duplicates an existing token (Requires: #include ) -_WinAPI_DwmDefWindowProc ( $hWnd, $iMsg, $wParam, $lParam ) Default window procedure for Desktop Window Manager (DWM) hit testing within the non-client area (Requires: #include ) -_WinAPI_DwmEnableBlurBehindWindow ( $hWnd [, $bEnable = True [, $bTransition = False [, $hRgn = 0]]] ) Enables the blur effect on a specified window (Requires: #include ) -_WinAPI_DwmEnableComposition ( $bEnable ) Enables or disables Desktop Window Manager (DWM) composition (Requires: #include ) -_WinAPI_DwmExtendFrameIntoClientArea ( $hWnd [, $tMARGINS = 0] ) Extends the window frame behind the client area (Requires: #include ) -_WinAPI_DwmGetColorizationColor ( ) Retrieves the current color used for Desktop Window Manager (DWM) glass composition (Requires: #include ) -_WinAPI_DwmGetColorizationParameters ( ) Retrieves the colorization parameters used for Desktop Window Manager (DWM) (Requires: #include ) -_WinAPI_DwmGetWindowAttribute ( $hWnd, $iAttribute ) Retrieves the current value of a specified attribute applied to the window (Requires: #include ) -_WinAPI_DwmInvalidateIconicBitmaps ( $hWnd ) Indicates that all previously provided iconic bitmaps from a window, both thumbnails and peek representations, should be refreshed (Requires: #include ) -_WinAPI_DwmIsCompositionEnabled ( ) Determines whether Desktop Window Manager (DWM) composition is enabled (Requires: #include ) -_WinAPI_DwmQueryThumbnailSourceSize ( $hThumbnail ) Returns the source size of the Desktop Window Manager (DWM) thumbnail (Requires: #include ) -_WinAPI_DwmRegisterThumbnail ( $hDestination, $hSource ) Creates a Desktop Window Manager (DWM) thumbnail relationship between the destination and source windows (Requires: #include ) -_WinAPI_DwmSetColorizationParameters ( $tDWMCP ) Sets the colorization parameters for Desktop Window Manager (DWM) (Requires: #include ) -_WinAPI_DwmSetIconicLivePreviewBitmap ( $hWnd, $hBitmap [, $bFrame = False [, $tClient = 0]] ) Sets a static, iconic bitmap to display a live preview (also known as a Peek preview) of a window or tab (Requires: #include ) -_WinAPI_DwmSetIconicThumbnail ( $hWnd, $hBitmap [, $bFrame = False] ) Sets a static, iconic bitmap on a window or tab to use as a thumbnail representation (Requires: #include ) -_WinAPI_DwmSetWindowAttribute ( $hWnd, $iAttribute, $iData ) Sets the value of the specified attributes for non-client rendering to apply to the window (Requires: #include ) -_WinAPI_DwmUnregisterThumbnail ( $hThumbnail ) Removes a Desktop Window Manager (DWM) thumbnail relationship (Requires: #include ) -_WinAPI_DwmUpdateThumbnailProperties ( $hThumbnail [, $bVisible = True [, $bClientAreaOnly = False [, $iOpacity = 255 [, $tRectDest = 0 [, $tRectSrc = 0]]]]] ) Specifies Desktop Window Manager (DWM) thumbnail properties (Requires: #include ) -_WinAPI_DWordToFloat ( $iValue ) Converts a value of type DWORD to a value of type FLOAT (Requires: #include ) -_WinAPI_DWordToInt ( $iValue ) Converts a value of type DWORD to a value of type INT (Requires: #include ) -_WinAPI_EjectMedia ( $sDrive ) Ejects media from a device (Requires: #include ) -_WinAPI_Ellipse ( $hDC, $tRECT ) Draws an ellipse (Requires: #include ) -_WinAPI_EmptyWorkingSet ( [$iPID = 0] ) Removes as many pages as possible from the working set of the specified process (Requires: #include ) -_WinAPI_EnableWindow ( $hWnd [, $bEnable = True] ) Enables or disables mouse and keyboard input to the specified window or control (Requires: #include ) -_WinAPI_EncryptFile ( $sFilePath ) Encrypts a file or directory (Requires: #include ) -_WinAPI_EncryptionDisable ( $sDir, $bDisable ) Disables or enables encryption of the specified directory and the files in it (Requires: #include ) -_WinAPI_EndBufferedPaint ( $hBP [, $bUpdate = True] ) Completes a buffered paint operation and frees the associated buffered paint handle (Requires: #include ) -_WinAPI_EndDeferWindowPos ( $hInfo ) Simultaneously updates the position and size of one or more windows in a single screen-refreshing cycle (Requires: #include ) -_WinAPI_EndPaint ( $hWnd, ByRef $tPAINTSTRUCT ) Marks the end of painting in the specified window (Requires: #include ) -_WinAPI_EndPath ( $hDC ) Closes a path bracket and selects the path defined by the bracket into the specified device context (Requires: #include ) -_WinAPI_EndUpdateResource ( $hUpdate [, $bDiscard = False] ) Commits or discards a changes of the resources within module (Requires: #include ) -_WinAPI_EnumChildProcess ( [$iPID = 0] ) Enumerates a child processes that belong to the specified process (Requires: #include ) -_WinAPI_EnumChildWindows ( $hWnd [, $bVisible = True] ) Enumerates a child windows that belong to the specified parent window (Requires: #include ) -_WinAPI_EnumDesktops ( $hStation ) Enumerates all desktops associated with the specified window station of the calling process (Requires: #include ) -_WinAPI_EnumDesktopWindows ( $hDesktop [, $bVisible = True] ) Enumerates all top-level windows associated with the specified desktop (Requires: #include ) -_WinAPI_EnumDeviceDrivers ( ) Retrieves the load address for each device driver in the system (Requires: #include ) -_WinAPI_EnumDisplayDevices ( $sDevice, $iDevNum ) Obtains information about the display devices in a system (Requires: #include ) -_WinAPI_EnumDisplayMonitors ( [$hDC = 0 [, $tRECT = 0]] ) Enumerates display monitors (including invisible pseudo-monitors associated with the mirroring drivers) (Requires: #include ) -_WinAPI_EnumDisplaySettings ( $sDevice, $iMode ) Retrieves information about one of the graphics modes for a display device (Requires: #include ) -_WinAPI_EnumDllProc ( $sFilePath [, $sMask = '' [, $iFlags = 0]] ) Enumerates an exported functions of the specified dynamic-link library (DLL) (Requires: #include ) -_WinAPI_EnumFiles ( $sDir [, $iFlag = 0 [, $sTemplate = '' [, $bExclude = False]]] ) Enumerates the files and subdirectories for the specified directory with a name that matches the template (Requires: #include ) -_WinAPI_EnumFileStreams ( $sFilePath ) Enumerates all streams with a ::$DATA stream type in the specified file or directory (Requires: #include ) -_WinAPI_EnumFontFamilies ( [$hDC = 0 [, $sFaceName = '' [, $iCharSet = 1 [, $iFontType = 0x07 [, $sPattern = '' [, $bExclude = False]]]]]] ) Enumerates all uniquely-named fonts in the system that match the specified font characteristics (Requires: #include ) -_WinAPI_EnumHardLinks ( $sFilePath ) Enumerates all the hard links to the specified file (Requires: #include ) -_WinAPI_EnumMRUList ( $hMRU, $iItem ) Enumerates the contents of the most recently used (MRU) list (Requires: #include ) -_WinAPI_EnumPageFiles ( ) Retrieves information for each installed pagefile in the system (Requires: #include ) -_WinAPI_EnumProcessHandles ( [$iPID = 0 [, $iType = 0]] ) Enumerates a handles that belong to the specified process (Requires: #include ) -_WinAPI_EnumProcessModules ( [$iPID = 0 [, $iFlag = 0]] ) Retrieves a handle and name for each module in the specified process (Requires: #include ) -_WinAPI_EnumProcessThreads ( [$iPID = 0] ) Enumerates a threads that belong to the specified process (Requires: #include ) -_WinAPI_EnumProcessWindows ( [$iPID = 0 [, $bVisible = True]] ) Enumerates a windows that belong to the specified process (Requires: #include ) -_WinAPI_EnumRawInputDevices ( ) Enumerates the raw input devices attached to the system (Requires: #include ) -_WinAPI_EnumResourceLanguages ( $hModule, $sType, $sName ) Enumerates a language-specific resources, of the specified type and name, associated with a binary module (Requires: #include ) -_WinAPI_EnumResourceNames ( $hModule, $sType ) Enumerates the resources of a specified type within a binary module (Requires: #include ) -_WinAPI_EnumResourceTypes ( $hModule ) Enumerates the resource types within a binary module (Requires: #include ) -_WinAPI_EnumSystemGeoID ( ) Enumerates the geographical location identifiers (GEOID) that are available on the operating system (Requires: #include ) -_WinAPI_EnumSystemLocales ( $iFlag ) Enumerates the locales that are either installed on or supported by an operating system (Requires: #include ) -_WinAPI_EnumUILanguages ( [$iFlag = 0] ) Enumerates the user interface languages that are available on the operating system (Requires: #include ) -_WinAPI_EnumWindows ( [$bVisible = True [, $hWnd = Default]] ) Enumerates all windows (Requires: #include ) -_WinAPI_EnumWindowsPopup ( ) Enumerates popup windows (Requires: #include ) -_WinAPI_EnumWindowStations ( ) Enumerates all window stations in the current session (Requires: #include ) -_WinAPI_EnumWindowsTop ( ) Enumerates all top level windows (Requires: #include ) -_WinAPI_EqualMemory ( $pSource1, $pSource2, $iLength ) Compares two blocks of memory to determine whether the specified number of bytes are identical (Requires: #include ) -_WinAPI_EqualRect ( $tRECT1, $tRECT2 ) Determines whether the two specified rectangles are equal (Requires: #include ) -_WinAPI_EqualRgn ( $hRgn1, $hRgn2 ) Checks the two specified regions to determine whether they are identical (Requires: #include ) -_WinAPI_ExcludeClipRect ( $hDC, $tRECT ) Creates a new clipping region that consists of the existing clipping region minus the specified rectangle (Requires: #include ) -_WinAPI_ExpandEnvironmentStrings ( $sString ) Expands environment variable strings and replaces them with their defined values (Requires: #include ) -_WinAPI_ExtCreatePen ( $iPenStyle, $iWidth, $iBrushStyle, $iRGB [, $iHatch = 0 [, $aUserStyle = 0 [, $iStart = 0 [, $iEnd = -1]]]] ) Creates a logical cosmetic or geometric pen that has the specified style, width, and brush attributes (Requires: #include ) -_WinAPI_ExtCreateRegion ( $tRGNDATA [, $tXFORM = 0] ) Creates a region from the specified region and transformation data (Requires: #include ) -_WinAPI_ExtFloodFill ( $hDC, $iX, $iY, $iRGB [, $iType = 0] ) Fills an area of the display surface with the current brush (Requires: #include ) -_WinAPI_ExtractIcon ( $sIcon, $iIndex [, $bSmall = False] ) Extracts an icon from the specified executable file, DLL, or icon file (Requires: #include ) -_WinAPI_ExtractIconEx ( $sFilePath, $iIndex, $paLarge, $paSmall, $iIcons ) Creates an array of handles to large or small icons extracted from a file (Requires: #include ) -_WinAPI_ExtSelectClipRgn ( $hDC, $hRgn [, $iMode = 5] ) Combines the specified region with the current clipping region (Requires: #include ) -_WinAPI_FatalAppExit ( $sMessage ) Displays a message box and terminates the application (Requires: #include ) -_WinAPI_FatalExit ( $iCode ) Transfers execution control to the debugger (Requires: #include ) -_WinAPI_FileEncryptionStatus ( $sFilePath ) Retrieves the encryption status of the specified file (Requires: #include ) -_WinAPI_FileExists ( $sFilePath ) Tests whether the specified path is existing file (Requires: #include ) -_WinAPI_FileIconInit ( [$bRestore = True] ) Initializes or reinitializes the system image list (Requires: #include ) -_WinAPI_FileInUse ( $sFilePath ) Tests whether the specified file in use by another application (Requires: #include ) -_WinAPI_FillMemory ( $pMemory, $iLength [, $iValue = 0] ) Fills a block of memory with the given value (Requires: #include ) -_WinAPI_FillPath ( $hDC ) Closes any open figures in the current path and fills the path's interior by using the current brush (Requires: #include ) -_WinAPI_FillRect ( $hDC, $tRECT, $hBrush ) Fills a rectangle by using the specified brush (Requires: #include ) -_WinAPI_FillRgn ( $hDC, $hRgn, $hBrush ) Fills a region by using the specified brush (Requires: #include ) -_WinAPI_FindClose ( $hSearch ) Closes a file search handle (Requires: #include ) -_WinAPI_FindCloseChangeNotification ( $hChange ) Stops change notification handle monitoring (Requires: #include ) -_WinAPI_FindExecutable ( $sFileName [, $sDirectory = ""] ) Retrieves the name of the executable file associated with the specified file name (Requires: #include ) -_WinAPI_FindFirstChangeNotification ( $sDirectory, $iFlags [, $bSubtree = False] ) Creates a change notification handle and sets up initial change notification filter conditions (Requires: #include ) -_WinAPI_FindFirstFile ( $sFilePath, $tData ) Searches a directory for a file or subdirectory with a name that matches a specific name (Requires: #include ) -_WinAPI_FindFirstFileName ( $sFilePath, ByRef $sLink ) Creates an enumeration of all the hard links to the specified file (Requires: #include ) -_WinAPI_FindFirstStream ( $sFilePath, $tData ) Enumerates the first stream with a ::$DATA stream type in the specified file or directory (Requires: #include ) -_WinAPI_FindNextChangeNotification ( $hChange ) Requests that the operating system signal a change notification handle the next time it detects an appropriate change (Requires: #include ) -_WinAPI_FindNextFile ( $hSearch, $tData ) Continues a file or directory search (Requires: #include ) -_WinAPI_FindNextFileName ( $hSearch, ByRef $sLink ) Continues enumerating the hard links (Requires: #include ) -_WinAPI_FindNextStream ( $hSearch, $tData ) Continues a stream search (Requires: #include ) -_WinAPI_FindResource ( $hInstance, $sType, $sName ) Determines the location of a resource with the specified type and name in the specified module (Requires: #include ) -_WinAPI_FindResourceEx ( $hInstance, $sType, $sName, $iLanguage ) Determines the location of the resource with the specified type, name, and language in the specified module (Requires: #include ) -_WinAPI_FindTextDlg ( $hOwner [, $sFindWhat = '' [, $iFlags = 0 [, $pFindProc = 0 [, $lParam = 0]]]] ) Creates a system-defined modeless Find dialog box to search for text in a document (Requires: #include ) -_WinAPI_FindWindow ( $sClassName, $sWindowName ) Retrieves the handle to the top-level window whose class name and window name match (Requires: #include ) -_WinAPI_FlashWindow ( $hWnd [, $bInvert = True] ) Flashes the specified window one time (Requires: #include ) -_WinAPI_FlashWindowEx ( $hWnd [, $iFlags = 3 [, $iCount = 3 [, $iTimeout = 0]]] ) Flashes the specified window (Requires: #include ) -_WinAPI_FlattenPath ( $hDC ) Transforms any curves in the path that is selected into the current DC, turning each curve into a sequence of lines (Requires: #include ) -_WinAPI_FloatToDWord ( $iValue ) Converts a value of type FLOAT to a value of type DWORD (Requires: #include ) -_WinAPI_FloatToInt ( $nFloat ) Returns a 4 byte float as an integer value (Requires: #include ) -_WinAPI_FlushFileBuffers ( $hFile ) Flushes the buffers of a specified file and causes all buffered data to be written (Requires: #include ) -_WinAPI_FlushFRBuffer ( ) Destroys the internal buffer that used the _WinAPI_FindTextDlg() and _WinAPI_ReplaceTextDlg() functions (Requires: #include ) -_WinAPI_FlushViewOfFile ( $pAddress [, $iBytes = 0] ) Writes to the disk a byte range within a mapped view of a file (Requires: #include ) -_WinAPI_FormatDriveDlg ( $sDrive [, $iOption = 0 [, $hParent = 0]] ) Opens the Shell's Format dialog (Requires: #include ) -_WinAPI_FormatMessage ( $iFlags, $pSource, $iMessageID, $iLanguageID, ByRef $pBuffer, $iSize, $vArguments ) Formats a message string (Requires: #include ) -_WinAPI_FrameRect ( $hDC, $tRECT, $hBrush ) Draws a border around the specified rectangle by using the specified brush (Requires: #include ) -_WinAPI_FrameRgn ( $hDC, $hRgn, $hBrush, $iWidth, $iHeight ) Draws a border around the specified region by using the specified brush (Requires: #include ) -_WinAPI_FreeLibrary ( $hModule ) Decrements the reference count of the loaded dynamic-link library (DLL) module (Requires: #include ) -_WinAPI_FreeMemory ( $pMemory ) Frees a memory block in the internal library heap (Requires: #include ) -_WinAPI_FreeMRUList ( $hMRU ) Frees the handle associated with the most recently used (MRU) list and writes cached data to the registry (Requires: #include ) -_WinAPI_FreeResource ( $hData ) Decrements (decreases by one) the reference count of a loaded resource (Requires: #include ) -_WinAPI_GdiComment ( $hDC, $pBuffer, $iSize ) Copies a comment from a buffer into a specified enhanced-format metafile (Requires: #include ) -_WinAPI_GetActiveWindow ( ) Retrieves the window handle to the active window attached to the calling process's message queue (Requires: #include ) -_WinAPI_GetAllUsersProfileDirectory ( ) Retrieves the path to the root of the directory that contains program data shared by all users (Requires: #include ) -_WinAPI_GetAncestor ( $hWnd [, $iFlags = 1] ) Retrieves the handle to the ancestor of the specified window (Requires: #include ) -_WinAPI_GetApplicationRestartSettings ( [$iPID = 0] ) Retrieves the restart information registered for the specified process (Requires: #include ) -_WinAPI_GetArcDirection ( $hDC ) Retrieves the current arc direction for the specified device context (Requires: #include ) -_WinAPI_GetAsyncKeyState ( $iKey ) Determines whether a key is up or down at the time the function is called (Requires: #include ) -_WinAPI_GetBinaryType ( $sFilePath ) Determines whether a file is an executable (.exe) file, and if so, which subsystem runs the executable file (Requires: #include ) -_WinAPI_GetBitmapBits ( $hBitmap, $iSize, $pBits ) Copies the bitmap bits of a specified device-dependent bitmap into a buffer (Requires: #include ) -_WinAPI_GetBitmapDimension ( $hBitmap ) Retrieves a dimension of the specified bitmap (Requires: #include ) -_WinAPI_GetBitmapDimensionEx ( $hBitmap ) Retrieves the dimensions of a compatible bitmap (Requires: #include ) -_WinAPI_GetBkColor ( $hDC ) Retrieves the current background color for the specified device context (Requires: #include ) -_WinAPI_GetBkMode ( $hDC ) Returns the current background mix mode for a specified device context (Requires: #include ) -_WinAPI_GetBoundsRect ( $hDC [, $iFlags = 0] ) Obtains the current accumulated bounding rectangle for a specified device context (Requires: #include ) -_WinAPI_GetBrushOrg ( $hDC ) Retrieves the current brush origin for the specified device context (Requires: #include ) -_WinAPI_GetBufferedPaintBits ( $hBP ) Retrieves a pointer to the buffer bitmap if the buffer is a device-independent bitmap (DIB) (Requires: #include ) -_WinAPI_GetBufferedPaintDC ( $hBP ) Gets the paint device context (DC) (Requires: #include ) -_WinAPI_GetBufferedPaintTargetDC ( $hBP ) Retrieves the target device context (DC) (Requires: #include ) -_WinAPI_GetBufferedPaintTargetRect ( $hBP ) Retrieves the target rectangle (Requires: #include ) -_WinAPI_GetBValue ( $iRGB ) Retrieves an intensity value for the blue component of a 32-bit RGB value (Requires: #include ) -_WinAPI_GetCaretBlinkTime ( ) Returns the time required to invert the caret's pixels (Requires: #include ) -_WinAPI_GetCaretPos ( ) Retrieves the caret's position (Requires: #include ) -_WinAPI_GetCDType ( $sDrive ) Retrieves a type of the media which is loaded into a specified CD-ROM device (Requires: #include ) -_WinAPI_GetClassInfoEx ( $sClass [, $hInstance = 0] ) Retrieves information about a window class (Requires: #include ) -_WinAPI_GetClassLongEx ( $hWnd, $iIndex ) Retrieves the specified value associated with the specified window (Requires: #include ) -_WinAPI_GetClassName ( $hWnd ) Retrieves the name of the class to which the specified window belongs (Requires: #include ) -_WinAPI_GetClientHeight ( $hWnd ) Retrieves the height of a window's client area (Requires: #include ) -_WinAPI_GetClientRect ( $hWnd ) Retrieves the coordinates of a window's client area (Requires: #include ) -_WinAPI_GetClientWidth ( $hWnd ) Retrieves the width of a window's client area (Requires: #include ) -_WinAPI_GetClipboardSequenceNumber ( ) Retrieves the clipboard sequence number for the current window station (Requires: #include ) -_WinAPI_GetClipBox ( $hDC, ByRef $tRECT ) Retrieves the dimensions of the bounding rectangle of the visible area (Requires: #include ) -_WinAPI_GetClipCursor ( ) Retrieves the screen coordinates of the rectangular area to which the cursor is confined (Requires: #include ) -_WinAPI_GetClipRgn ( $hDC ) Retrieves a handle identifying the current application-defined clipping region (Requires: #include ) -_WinAPI_GetColorAdjustment ( $hDC ) Retrieves the color adjustment for the specified device context (DC) (Requires: #include ) -_WinAPI_GetCompressedFileSize ( $sFilePath ) Retrieves the actual number of bytes of disk storage used to store a specified file (Requires: #include ) -_WinAPI_GetCompression ( $sFilePath ) Retrieves the current compression state of a file or directory (Requires: #include ) -_WinAPI_GetConnectedDlg ( $iDlg [, $iFlags = 0 [, $hParent = 0]] ) Launches the Get Connected wizard within the calling application to enable network connectivity (Requires: #include ) -_WinAPI_GetCurrentDirectory ( ) Retrieves the current directory for the current process (Requires: #include ) -_WinAPI_GetCurrentHwProfile ( ) Retrieves information about the current hardware profile for the local computer (Requires: #include ) -_WinAPI_GetCurrentObject ( $hDC, $iType ) Retrieves a handle to an object of the specified type that has been selected into the specified device context (Requires: #include ) -_WinAPI_GetCurrentPosition ( $hDC ) Retrieves the current position for the specified device context (Requires: #include ) -_WinAPI_GetCurrentProcess ( ) Returns the process handle of the calling process (Requires: #include ) -_WinAPI_GetCurrentProcessExplicitAppUserModelID ( ) Retrieves the application-defined, explicit Application User Model ID for the current process (Requires: #include ) -_WinAPI_GetCurrentProcessID ( ) Returns the process identifier of the calling process (Requires: #include ) -_WinAPI_GetCurrentThemeName ( ) Retrieves the name of the current visual styles, color scheme name, and size name (Requires: #include ) -_WinAPI_GetCurrentThread ( ) Retrieves a pseudo handle for the calling thread (Requires: #include ) -_WinAPI_GetCurrentThreadId ( ) Returns the thread identifier of the calling thread (Requires: #include ) -_WinAPI_GetCursor ( ) Retrieves a handle to the current cursor (Requires: #include ) -_WinAPI_GetCursorInfo ( ) Retrieves information about the global cursor (Requires: #include ) -_WinAPI_GetDateFormat ( [$iLCID = 0 [, $tSYSTEMTIME = 0 [, $iFlags = 0 [, $sFormat = '']]]] ) Formats a date as a date string for a locale specified by the locale identifier (Requires: #include ) -_WinAPI_GetDC ( $hWnd ) Retrieves a handle of a display device context for the client area a window (Requires: #include ) -_WinAPI_GetDCEx ( $hWnd, $hRgn, $iFlags ) Retrieves a handle to a device context (DC) for the client area of a specified window (Requires: #include ) -_WinAPI_GetDefaultPrinter ( ) Retrieves the printer name of the default printer for the current user on the local computer (Requires: #include ) -_WinAPI_GetDefaultUserProfileDirectory ( ) Retrieves the path to the root of the default user's profile (Requires: #include ) -_WinAPI_GetDesktopWindow ( ) Returns the handle of the Windows desktop window (Requires: #include ) -_WinAPI_GetDeviceCaps ( $hDC, $iIndex ) Retrieves device specific information about a specified device (Requires: #include ) -_WinAPI_GetDeviceDriverBaseName ( $pDriver ) Retrieves the base name of the specified device driver (Requires: #include ) -_WinAPI_GetDeviceDriverFileName ( $pDriver ) Retrieves the path available for the specified device driver (Requires: #include ) -_WinAPI_GetDeviceGammaRamp ( $hDC, ByRef $aRamp ) Gets the gamma ramp on direct color display boards that support downloadable gamma ramps in hardware (Requires: #include ) -_WinAPI_GetDIBColorTable ( $hBitmap ) Retrieves RGB color table from the DIB section bitmap (Requires: #include ) -_WinAPI_GetDIBits ( $hDC, $hBitmap, $iStartScan, $iScanLines, $pBits, $tBI, $iUsage ) Retrieves the bits of the specified bitmap and copies them into a buffer as a DIB (Requires: #include ) -_WinAPI_GetDiskFreeSpaceEx ( $sDrive ) Retrieves information about the amount of space that is available on a disk volume (Requires: #include ) -_WinAPI_GetDlgCtrlID ( $hWnd ) Returns the identifier of the specified control (Requires: #include ) -_WinAPI_GetDlgItem ( $hWnd, $iItemID ) Retrieves the handle of a control in the specified dialog box (Requires: #include ) -_WinAPI_GetDllDirectory ( ) Retrieves the application-specific portion of the search path used to locate DLLs for the application (Requires: #include ) -_WinAPI_GetDriveBusType ( $sDrive ) Retrieves a bus type for the specified drive (Requires: #include ) -_WinAPI_GetDriveGeometryEx ( $iDrive ) Retrieves extended information about the disk's geometry (Requires: #include ) -_WinAPI_GetDriveNumber ( $sDrive ) Retrieves a device type, device number, and partition number for the specified drive (Requires: #include ) -_WinAPI_GetDriveType ( [$sDrive = ''] ) Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive (Requires: #include ) -_WinAPI_GetDurationFormat ( $iLCID, $iDuration [, $sFormat = ''] ) Formats a duration of time as a time string for a locale specified by identifier (Requires: #include ) -_WinAPI_GetEffectiveClientRect ( $hWnd, $aCtrl [, $iStart = 0 [, $iEnd = -1]] ) Calculates the dimensions of a rectangle in the client area that contains all the specified controls (Requires: #include ) -_WinAPI_GetEnhMetaFile ( $sFilePath ) Creates a handle that identifies the enhanced-format metafile stored in the specified file (Requires: #include ) -_WinAPI_GetEnhMetaFileBits ( $hEmf, ByRef $pBuffer ) Retrieves the contents of the specified enhanced-format metafile (Requires: #include ) -_WinAPI_GetEnhMetaFileDescription ( $hEmf ) Retrieves an optional text description from an enhanced-format metafile (Requires: #include ) -_WinAPI_GetEnhMetaFileDimension ( $hEmf ) Retrieves a dimension of the specified enhanced-format metafile (Requires: #include ) -_WinAPI_GetEnhMetaFileHeader ( $hEmf ) Retrieves the record containing the header for the specified enhanced-format metafile (Requires: #include ) -_WinAPI_GetErrorMessage ( $iCode [, $iLanguage = 0] ) Retrieves a text error message for the specified system error code (Requires: #include ) -_WinAPI_GetErrorMode ( ) Retrieves the error mode for the current process (Requires: #include ) -_WinAPI_GetExitCodeProcess ( $hProcess ) Retrieves the termination status of the specified process (Requires: #include ) -_WinAPI_GetExtended ( ) Retrieves the last extended function return value (Requires: #include ) -_WinAPI_GetFileAttributes ( $sFilePath ) Retrieves file system attributes for a specified file or directory (Requires: #include ) -_WinAPI_GetFileID ( $hFile ) Retrieves the file system's 8-byte file reference number for a file (Requires: #include ) -_WinAPI_GetFileInformationByHandle ( $hFile ) Retrieves file information for the specified file (Requires: #include ) -_WinAPI_GetFileInformationByHandleEx ( $hFile ) Retrieves file information for the specified file (Requires: #include ) -_WinAPI_GetFilePointerEx ( $hFile ) Retrieves the file pointer of the specified file (Requires: #include ) -_WinAPI_GetFileSizeEx ( $hFile ) Retrieves the size of the specified file (Requires: #include ) -_WinAPI_GetFileSizeOnDisk ( $sFilePath ) Retrieves the file allocation size on disk (Requires: #include ) -_WinAPI_GetFileTitle ( $sFilePath ) Retrieves the name of the specified file (Requires: #include ) -_WinAPI_GetFileType ( $hFile ) Retrieves the file type of the specified file (Requires: #include ) -_WinAPI_GetFileVersionInfo ( $sFilePath, ByRef $pBuffer [, $iFlags = 0] ) Retrieves version information for the specified file (Requires: #include ) -_WinAPI_GetFinalPathNameByHandle ( $hFile ) Retrieves the final path of the specified file (Requires: #include ) -_WinAPI_GetFinalPathNameByHandleEx ( $hFile [, $iFlags = 0] ) Retrieves the final path of the specified file (Requires: #include ) -_WinAPI_GetFocus ( ) Retrieves the handle of the window that has the keyboard focus (Requires: #include ) -_WinAPI_GetFontMemoryResourceInfo ( $pMemory [, $iFlag = 1] ) Reads out font information from a TTF loaded into the memory (Requires: #include ) -_WinAPI_GetFontName ( $sFaceName [, $iStyle = 0 [, $iCharSet = 1]] ) Retrieves the unique name of the font based on its typeface name, character set, and style (Requires: #include ) -_WinAPI_GetFontResourceInfo ( $sFont [, $bForce = False [, $iFlag = Default]] ) Retrieves the fontname from the specified font resource file (Requires: #include ) -_WinAPI_GetForegroundWindow ( ) Returns the handle of the foreground window (Requires: #include ) -_WinAPI_GetFRBuffer ( ) Retrieves the current size of the internal buffer that used the _WinAPI_FindTextDlg() and _WinAPI_ReplaceTextDlg() functions (Requires: #include ) -_WinAPI_GetFullPathName ( $sFilePath ) Retrieves the full path and file name of the specified file (Requires: #include ) -_WinAPI_GetGeoInfo ( $iGEOID, $iType [, $iLanguage = 0] ) Retrieves information about a specified geographical location (Requires: #include ) -_WinAPI_GetGlyphOutline ( $hDC, $sChar, $iFormat, ByRef $pBuffer [, $tMAT2 = 0] ) Retrieves the outline or bitmap for a character in the TrueType font (Requires: #include ) -_WinAPI_GetGraphicsMode ( $hDC ) Retrieves the current graphics mode for the specified device context (Requires: #include ) -_WinAPI_GetGuiResources ( [$iFlag = 0 [, $hProcess = -1]] ) Retrieves the count of handles to graphical user interface (GUI) objects in use by the specified process (Requires: #include ) -_WinAPI_GetGUIThreadInfo ( $iThreadId ) Retrieves information about the active window or a specified GUI thread (Requires: #include ) -_WinAPI_GetGValue ( $iRGB ) Retrieves an intensity value for the green component of a 32-bit RGB value (Requires: #include ) -_WinAPI_GetHandleInformation ( $hObject ) Retrieves certain properties of an object handle (Requires: #include ) -_WinAPI_GetHGlobalFromStream ( $pStream ) Retrieves the global memory handle to a stream (Requires: #include ) -_WinAPI_GetIconDimension ( $hIcon ) Retrieves a dimension of the specified icon (Requires: #include ) -_WinAPI_GetIconInfo ( $hIcon ) Retrieves information about the specified icon or cursor (Requires: #include ) -_WinAPI_GetIconInfoEx ( $hIcon ) Retrieves information about the specified icon or cursor (Requires: #include ) -_WinAPI_GetIdleTime ( ) Retrieves the time that has elapsed since the last input (Requires: #include ) -_WinAPI_GetKeyboardLayout ( $hWnd ) Retrieves the active input locale identifier for the specified window (Requires: #include ) -_WinAPI_GetKeyboardLayoutList ( ) Retrieves the all input locale identifiers corresponding to the current set of input locales in the system (Requires: #include ) -_WinAPI_GetKeyboardState ( ) Copies the status of the 256 virtual keys to the specified buffer (Requires: #include ) -_WinAPI_GetKeyboardType ( $iType ) Retrieves information about the current keyboard (Requires: #include ) -_WinAPI_GetKeyNameText ( $lParam ) Retrieves a string that represents the name of a key (Requires: #include ) -_WinAPI_GetKeyState ( $vKey ) Retrieves the status of the specified virtual key (Requires: #include ) -_WinAPI_GetLastActivePopup ( $hWnd ) Determines which pop-up window owned by the specified window was most recently active (Requires: #include ) -_WinAPI_GetLastError ( ) Returns the calling thread's lasterror code value (Requires: #include ) -_WinAPI_GetLastErrorMessage ( ) Returns the calling threads last error message (Requires: #include ) -_WinAPI_GetLayeredWindowAttributes ( $hWnd, ByRef $iTransColor, ByRef $iTransGUI [, $bColorRef = False] ) Gets Layered Window Attributes (Requires: #include ) -_WinAPI_GetLocaleInfo ( $iLCID, $iType ) Retrieves information about a locale specified by identifier (Requires: #include ) -_WinAPI_GetLogicalDrives ( ) Retrieves a bitmask representing the currently available disk drives (Requires: #include ) -_WinAPI_GetMapMode ( $hDC ) Retrieves the current mapping mode (Requires: #include ) -_WinAPI_GetMemorySize ( $pMemory ) Retrieves the size of a memory block allocated from the internal library heap (Requires: #include ) -_WinAPI_GetMessageExtraInfo ( ) Retrieves the extra message information for the current thread (Requires: #include ) -_WinAPI_GetModuleFileNameEx ( $hProcess [, $hModule = 0] ) Retrieves the fully-qualified path for the file containing the specified module (Requires: #include ) -_WinAPI_GetModuleHandle ( $sModuleName ) Returns a module handle for the specified module (Requires: #include ) -_WinAPI_GetModuleHandleEx ( $sModule [, $iFlags = 0] ) Retrieves a module handle for the specified module (Requires: #include ) -_WinAPI_GetModuleInformation ( $hProcess [, $hModule = 0] ) Retrieves information about the specified module (Requires: #include ) -_WinAPI_GetMonitorInfo ( $hMonitor ) Retrieves information about a display monitor (Requires: #include ) -_WinAPI_GetMousePos ( [$bToClient = False [, $hWnd = 0]] ) Returns the current mouse position (Requires: #include ) -_WinAPI_GetMousePosX ( [$bToClient = False [, $hWnd = 0]] ) Returns the current mouse X position (Requires: #include ) -_WinAPI_GetMousePosY ( [$bToClient = False [, $hWnd = 0]] ) Returns the current mouse Y position (Requires: #include ) -_WinAPI_GetMUILanguage ( ) Gets the language currently in use by the common controls for a particular process (Requires: #include ) -_WinAPI_GetNumberFormat ( $iLCID, $sNumber [, $tNUMBERFMT = 0] ) Formats a number string as a number string customized for a locale specified by identifier (Requires: #include ) -_WinAPI_GetObject ( $hObject, $iSize, $pObject ) Retrieves information for the specified graphics object (Requires: #include ) -_WinAPI_GetObjectID ( $sFilePath ) Retrieves the object identifier for the specified file or directory (Requires: #include ) -_WinAPI_GetObjectInfoByHandle ( $hObject ) Retrieves information about a specified object (Requires: #include ) -_WinAPI_GetObjectNameByHandle ( $hObject ) Retrieves a name of the specified object (Requires: #include ) -_WinAPI_GetObjectType ( $hObject ) Retrieves the type of the specified object (Requires: #include ) -_WinAPI_GetOpenFileName ( [$sTitle = "" [, $sFilter = "All files (*.*)" [, $sInitalDir = "." [, $sDefaultFile = "" [, $sDefaultExt = "" [, $iFilterIndex = 1 [, $iFlags = 0 [, $iFlagsEx = 0 [, $hWndOwner = 0]]]]]]]]] ) Creates an Open dialog box that lets the user specify the drive, directory, and the name of a file or set of files to open (Requires: #include ) -_WinAPI_GetOutlineTextMetrics ( $hDC ) Retrieves text metrics for TrueType fonts (Requires: #include ) -_WinAPI_GetOverlappedResult ( $hFile, $tOverlapped, ByRef $iBytes [, $bWait = False] ) Retrieves the results of an overlapped operation (Requires: #include ) -_WinAPI_GetParent ( $hWnd ) Retrieves the handle of the specified child window's parent window (Requires: #include ) -_WinAPI_GetParentProcess ( [$iPID = 0] ) Retrieves the PID of the parent process for the specified process (Requires: #include ) -_WinAPI_GetPerformanceInfo ( ) Retrieves the performance information (Requires: #include ) -_WinAPI_GetPEType ( $sFilePath ) Retrieves a type of the machine for the specified portable executable (PE) (Requires: #include ) -_WinAPI_GetPhysicallyInstalledSystemMemory ( ) Retrieves the amount of RAM that is physically installed on the computer (Requires: #include ) -_WinAPI_GetPixel ( $hDC, $iX, $iY ) Retrieves the color value of the pixel at the specified coordinates (Requires: #include ) -_WinAPI_GetPolyFillMode ( $hDC ) Retrieves the current polygon fill mode (Requires: #include ) -_WinAPI_GetPosFromRect ( $tRECT ) Interprets the coordinates of the rectangle as offset and position coordinates (Requires: #include ) -_WinAPI_GetPriorityClass ( [$iPID = 0] ) Retrieves the priority class for the specified process (Requires: #include ) -_WinAPI_GetProcAddress ( $hModule, $vName ) Retrieves the address of an exported function or variable from the specified module (Requires: #include ) -_WinAPI_GetProcessAffinityMask ( $hProcess ) Obtains the affinity masks for the process and the system (Requires: #include ) -_WinAPI_GetProcessCommandLine ( [$iPID = 0] ) Retrieves the command-line string for the specified process (Requires: #include ) -_WinAPI_GetProcessFileName ( [$iPID = 0] ) Retrieves the fully-qualified path of the executable file for the specified process (Requires: #include ) -_WinAPI_GetProcessHandleCount ( [$iPID = 0] ) Retrieves the number of open handles that belong to the specified process (Requires: #include ) -_WinAPI_GetProcessID ( $hProcess ) Retrieves the process identifier of the specified process (Requires: #include ) -_WinAPI_GetProcessIoCounters ( [$iPID = 0] ) Retrieves accounting information for all I/O operations performed by the specified process (Requires: #include ) -_WinAPI_GetProcessMemoryInfo ( [$iPID = 0] ) Retrieves information about the memory usage of the specified process (Requires: #include ) -_WinAPI_GetProcessName ( [$iPID = 0] ) Retrieves the name for the specified process (Requires: #include ) -_WinAPI_GetProcessShutdownParameters ( ) Retrieves the shutdown parameters for the currently calling process (Requires: #include ) -_WinAPI_GetProcessTimes ( [$iPID = 0] ) Retrieves timing information for the specified process (Requires: #include ) -_WinAPI_GetProcessUser ( [$iPID = 0] ) Retrieves the user and domain name for the specified process (Requires: #include ) -_WinAPI_GetProcessWindowStation ( ) Retrieves a handle to the current window station for the calling process (Requires: #include ) -_WinAPI_GetProcessWorkingDirectory ( [$iPID = 0] ) Retrieves the current working directory for the specified process (Requires: #include ) -_WinAPI_GetProfilesDirectory ( ) Retrieves the path to the root directory where user profiles are stored (Requires: #include ) -_WinAPI_GetPwrCapabilities ( ) Retrieves information about the system power capabilities (Requires: #include ) -_WinAPI_GetRawInputBuffer ( $pBuffer, $iLength ) Performs a buffered read of the raw input data (Requires: #include ) -_WinAPI_GetRawInputBufferLength ( ) Retrieves the required buffer size to call the _WinAPI_GetRawInputBuffer() function (Requires: #include ) -_WinAPI_GetRawInputData ( $hRawInput, $pBuffer, $iLength, $iFlag ) Retrieves the raw input from the specified device (Requires: #include ) -_WinAPI_GetRawInputDeviceInfo ( $hDevice, $pBuffer, $iLength, $iFlag ) Retrieves information about the raw input device (Requires: #include ) -_WinAPI_GetRegionData ( $hRgn, ByRef $tRGNDATA ) Fills the specified buffer with data describing a region (Requires: #include ) -_WinAPI_GetRegisteredRawInputDevices ( $pBuffer, $iLength ) Retrieves the information about the raw input devices for the current application (Requires: #include ) -_WinAPI_GetRegKeyNameByHandle ( $hKey ) Retrieves a name of the specified registry key (Requires: #include ) -_WinAPI_GetRgnBox ( $hRgn, ByRef $tRECT ) Retrieves the bounding rectangle of the specified region (Requires: #include ) -_WinAPI_GetROP2 ( $hDC ) Retrieves the foreground mix mode of the specified device context (Requires: #include ) -_WinAPI_GetRValue ( $iRGB ) Retrieves an intensity value for the red component of a 32-bit RGB value (Requires: #include ) -_WinAPI_GetSaveFileName ( [$sTitle = "" [, $sFilter = "All files (*.*)" [, $sInitalDir = "." [, $sDefaultFile = "" [, $sDefaultExt = "" [, $iFilterIndex = 1 [, $iFlags = 0 [, $iFlagsEx = 0 [, $hWndOwner = 0]]]]]]]]] ) Creates a Save dialog box that lets the user specify the drive, directory, and name of a file to save (Requires: #include ) -_WinAPI_GetShellWindow ( ) Retrieves a handle to the Shell's desktop window (Requires: #include ) -_WinAPI_GetStartupInfo ( ) Retrieves the contents of the STARTUPINFO structure that was specified when the calling process was created (Requires: #include ) -_WinAPI_GetStdHandle ( $iStdHandle ) Retrieves a handle for the standard input, standard output, or standard error device (Requires: #include ) -_WinAPI_GetStockObject ( $iObject ) Retrieves a handle to one of the predefined stock pens, brushes, fonts, or palettes (Requires: #include ) -_WinAPI_GetStretchBltMode ( $hDC ) Retrieves the current stretching mode (Requires: #include ) -_WinAPI_GetString ( $pString [, $bUnicode = True] ) Returns a string located at the specified memory address (Requires: #include ) -_WinAPI_GetSysColor ( $iIndex ) Retrieves the current color of the specified display element (Requires: #include ) -_WinAPI_GetSysColorBrush ( $iIndex ) Retrieves a handle identifying a logical brush that corresponds to the specified color index (Requires: #include ) -_WinAPI_GetSystemDefaultLangID ( ) Returns the language identifier for the system locale (Requires: #include ) -_WinAPI_GetSystemDefaultLCID ( ) Returns the locale identifier (LCID) for the system locale (Requires: #include ) -_WinAPI_GetSystemDefaultUILanguage ( ) Retrieves the language identifier for the system default UI language of the operating system (Requires: #include ) -_WinAPI_GetSystemDEPPolicy ( ) Gets the data execution prevention (DEP) policy setting for the system (Requires: #include ) -_WinAPI_GetSystemInfo ( ) Retrieves information about the current system (Requires: #include ) -_WinAPI_GetSystemMetrics ( $iIndex ) Retrieves the specified system metric or system configuration setting (Requires: #include ) -_WinAPI_GetSystemPowerStatus ( ) Retrieves the power status of the system (Requires: #include ) -_WinAPI_GetSystemTimes ( ) Retrieves system timing information (Requires: #include ) -_WinAPI_GetSystemWow64Directory ( ) Retrieves the path of the system directory used by WOW64 (Requires: #include ) -_WinAPI_GetTabbedTextExtent ( $hDC, $sText [, $aTab = 0 [, $iStart = 0 [, $iEnd = -1]]] ) Computes the width and height of a character string which may contain one or more tab characters (Requires: #include ) -_WinAPI_GetTempFileName ( $sFilePath [, $sPrefix = ''] ) Creates a name for a temporary file (Requires: #include ) -_WinAPI_GetTextAlign ( $hDC ) Retrieves the text-alignment setting for the specified device context (Requires: #include ) -_WinAPI_GetTextCharacterExtra ( $hDC ) Retrieves the current intercharacter spacing for the specified device context (Requires: #include ) -_WinAPI_GetTextColor ( $hDC ) Retrieves the current text color for the specified device context (Requires: #include ) -_WinAPI_GetTextExtentPoint32 ( $hDC, $sText ) Computes the width and height of the specified string of text (Requires: #include ) -_WinAPI_GetTextFace ( $hDC ) Retrieves the typeface name of the font that is selected into the specified device context (Requires: #include ) -_WinAPI_GetTextMetrics ( $hDC ) Retrieves basic information for the currently selected font (Requires: #include ) -_WinAPI_GetThemeAppProperties ( ) Retrieves the property flags that control how visual styles are applied in the current application (Requires: #include ) -_WinAPI_GetThemeBackgroundContentRect ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT ) Retrieves the size of the content area for the background defined by the visual style (Requires: #include ) -_WinAPI_GetThemeBackgroundExtent ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT ) Calculates the size and location of the background, defined by the visual style, given the content area (Requires: #include ) -_WinAPI_GetThemeBackgroundRegion ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT ) Computes the region for a regular or partially transparent background that is bounded by a specified rectangle (Requires: #include ) -_WinAPI_GetThemeBitmap ( $hTheme, $iPartID, $iStateID, $iPropID [, $iFlag = 0x01] ) Retrieves the bitmap associated with a particular theme, part, state, and property (Requires: #include ) -_WinAPI_GetThemeBool ( $hTheme, $iPartID, $iStateID, $iPropID ) Retrieves the value of a BOOL property from the SysMetrics section of theme data (Requires: #include ) -_WinAPI_GetThemeColor ( $hTheme, $iPartID, $iStateID, $iPropID ) Retrieves the value of a color property (Requires: #include ) -_WinAPI_GetThemeDocumentationProperty ( $sFilePath, $sProperty ) Retrieves the value for a theme property from the documentation section of the specified theme file (Requires: #include ) -_WinAPI_GetThemeEnumValue ( $hTheme, $iPartID, $iStateID, $iPropID ) Retrieves the value of an enumerated type property (Requires: #include ) -_WinAPI_GetThemeFilename ( $hTheme, $iPartID, $iStateID, $iPropID ) Retrieves the value of a filename property (Requires: #include ) -_WinAPI_GetThemeFont ( $hTheme, $iPartID, $iStateID, $iPropID [, $hDC = 0] ) Retrieves the value of a font property (Requires: #include ) -_WinAPI_GetThemeInt ( $hTheme, $iPartID, $iStateID, $iPropID ) Retrieves the value of an INT property (Requires: #include ) -_WinAPI_GetThemeMargins ( $hTheme, $iPartID, $iStateID, $iPropID, $hDC, $tRECT ) Retrieves the value of a margins property (Requires: #include ) -_WinAPI_GetThemeMetric ( $hTheme, $iPartID, $iStateID, $iPropID [, $hDC = 0] ) Retrieves the value of a metric property (Requires: #include ) -_WinAPI_GetThemePartSize ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT, $iType ) Calculates the original size of the part defined by a visual style (Requires: #include ) -_WinAPI_GetThemePosition ( $hTheme, $iPartID, $iStateID, $iPropID ) Retrieves the value of a position property (Requires: #include ) -_WinAPI_GetThemePropertyOrigin ( $hTheme, $iPartID, $iStateID, $iPropID ) Retrieves the location of the theme property definition for a property (Requires: #include ) -_WinAPI_GetThemeRect ( $hTheme, $iPartID, $iStateID, $iPropID ) Retrieves the value of a RECT property (Requires: #include ) -_WinAPI_GetThemeString ( $hTheme, $iPartID, $iStateID, $iPropID ) Retrieves the value of a string property (Requires: #include ) -_WinAPI_GetThemeSysBool ( $hTheme, $iBoolID ) Retrieves the Boolean value of a system metric (Requires: #include ) -_WinAPI_GetThemeSysColor ( $hTheme, $iColorID ) Retrieves the value of a system color (Requires: #include ) -_WinAPI_GetThemeSysColorBrush ( $hTheme, $iColorID ) Retrieves a system color brush (Requires: #include ) -_WinAPI_GetThemeSysFont ( $hTheme, $iFontID ) Retrieves the font information of a system font (Requires: #include ) -_WinAPI_GetThemeSysInt ( $hTheme, $iIntID ) Retrieves the value of a system INT (Requires: #include ) -_WinAPI_GetThemeSysSize ( $hTheme, $iSizeID ) Retrieves the value of a system size metric from theme data (Requires: #include ) -_WinAPI_GetThemeSysString ( $hTheme, $iStringID ) Retrieves the value of a system string (Requires: #include ) -_WinAPI_GetThemeTextExtent ( $hTheme, $iPartID, $iStateID, $hDC, $sText, $tRECT, $iFlags ) Calculates the size and location of the specified text when rendered in the visual style font (Requires: #include ) -_WinAPI_GetThemeTextMetrics ( $hTheme, $iPartID, $iStateID [, $hDC = 0] ) Retrieves information about the font specified by a visual style for a particular part (Requires: #include ) -_WinAPI_GetThemeTransitionDuration ( $hTheme, $iPartID, $iStateIDFrom, $iStateIDTo, $iPropID ) Gets the duration for the specified transition (Requires: #include ) -_WinAPI_GetThreadDesktop ( $iThreadId ) Retrieves a handle to the desktop assigned to the specified thread (Requires: #include ) -_WinAPI_GetThreadErrorMode ( ) Retrieves the error mode for the calling thread (Requires: #include ) -_WinAPI_GetThreadLocale ( ) Retrieves the locale identifier of the current locale for the calling thread (Requires: #include ) -_WinAPI_GetThreadUILanguage ( ) Retrieves the language identifier of the first user interface language for the current thread (Requires: #include ) -_WinAPI_GetTickCount ( ) Retrieves the number of milliseconds that have elapsed since the system was started (Requires: #include ) -_WinAPI_GetTickCount64 ( ) Retrieves the number of milliseconds that have elapsed since the system was started (Requires: #include ) -_WinAPI_GetTimeFormat ( [$iLCID = 0 [, $tSYSTEMTIME = 0 [, $iFlags = 0 [, $sFormat = '']]]] ) Formats time as a time string for a locale specified by identifier (Requires: #include ) -_WinAPI_GetTopWindow ( $hWnd ) Retrieves a handle to the child window at the top of the Z order (Requires: #include ) -_WinAPI_GetUDFColorMode ( ) Retrieves the current color mode for WinAPIEx UDF library (Requires: #include ) -_WinAPI_GetUpdateRect ( $hWnd [, $bErase = True] ) Retrieves the coordinates of the rectangle that completely encloses the update region of the specified window (Requires: #include ) -_WinAPI_GetUpdateRgn ( $hWnd, $hRgn [, $bErase = True] ) Retrieves the update region of a window by copying it into the specified region (Requires: #include ) -_WinAPI_GetUserDefaultLangID ( ) Returns the language identifier for the current user locale (Requires: #include ) -_WinAPI_GetUserDefaultLCID ( ) Returns the locale identifier (LCID) for the user default locale (Requires: #include ) -_WinAPI_GetUserDefaultUILanguage ( ) Returns the language identifier for the user UI language for the current user (Requires: #include ) -_WinAPI_GetUserGeoID ( ) Retrieves information about the geographical location of the user (Requires: #include ) -_WinAPI_GetUserObjectInformation ( $hObject, $iIndex ) Retrieves information about the specified window station or desktop object (Requires: #include ) -_WinAPI_GetVersion ( ) Retrieves version of the current operating system (Requires: #include ) -_WinAPI_GetVersionEx ( ) Retrieves information about the current operating system (Requires: #include ) -_WinAPI_GetVolumeInformation ( [$sRoot = ''] ) Retrieves information about the file system and volume associated with the specified root directory (Requires: #include ) -_WinAPI_GetVolumeInformationByHandle ( $hFile ) Retrieves information about the file system and volume associated with the specified file (Requires: #include ) -_WinAPI_GetVolumeNameForVolumeMountPoint ( $sMountedPath ) Retrieves a volume GUID path for the volume that is associated with the specified volume mount point (Requires: #include ) -_WinAPI_GetWindow ( $hWnd, $iCmd ) Retrieves the handle of a window that has a specified relationship to the specified window (Requires: #include ) -_WinAPI_GetWindowDC ( $hWnd ) Retrieves the device context (DC) for the entire window (Requires: #include ) -_WinAPI_GetWindowDisplayAffinity ( $hWnd ) Retrieves the current display affinity setting, from any process, for a given window (Requires: #include ) -_WinAPI_GetWindowExt ( $hDC ) Retrieves the x-extent and y-extent of the window for the specified device context (Requires: #include ) -_WinAPI_GetWindowFileName ( $hWnd ) Retrieves the fully-qualified path of the module associated with the specified window handle (Requires: #include ) -_WinAPI_GetWindowHeight ( $hWnd ) Returns the height of the window (Requires: #include ) -_WinAPI_GetWindowInfo ( $hWnd ) Retrieves information about the specified window (Requires: #include ) -_WinAPI_GetWindowLong ( $hWnd, $iIndex ) Retrieves information about the specified window (Requires: #include ) -_WinAPI_GetWindowOrg ( $hDC ) Retrieves the x-coordinates and y-coordinates of the window origin for the specified device context (Requires: #include ) -_WinAPI_GetWindowPlacement ( $hWnd ) Retrieves the placement of the window for Min, Max, and normal positions (Requires: #include ) -_WinAPI_GetWindowRect ( $hWnd ) Retrieves the dimensions of the bounding rectangle of the specified window (Requires: #include ) -_WinAPI_GetWindowRgn ( $hWnd, $hRgn ) Obtains a copy of the window region of a window (Requires: #include ) -_WinAPI_GetWindowRgnBox ( $hWnd, ByRef $tRECT ) Retrieves the dimensions of the tightest bounding rectangle for the window region of a window (Requires: #include ) -_WinAPI_GetWindowSubclass ( $hWnd, $pSubclassProc, $idSubClass ) Retrieves the reference data for the specified window subclass callback (Requires: #include ) -_WinAPI_GetWindowText ( $hWnd ) Retrieves the text of the specified window's title bar (Requires: #include ) -_WinAPI_GetWindowTheme ( $hWnd ) Retrieves a theme handle to a window that has visual styles applied (Requires: #include ) -_WinAPI_GetWindowThreadProcessId ( $hWnd, ByRef $iPID ) Retrieves the identifier of the thread that created the specified window (Requires: #include ) -_WinAPI_GetWindowWidth ( $hWnd ) Returns the width of the window (Requires: #include ) -_WinAPI_GetWorkArea ( ) Retrieves the size of the working area on the primary display monitor (Requires: #include ) -_WinAPI_GetWorldTransform ( $hDC ) Retrieves the current world-space to page-space transformation (Requires: #include ) -_WinAPI_GetXYFromPoint ( ByRef $tPoint, ByRef $iX, ByRef $iY ) Returns the X/Y values from a $tagPOINT structure (Requires: #include ) -_WinAPI_GlobalMemoryStatus ( ) Retrieves information about current available memory (Requires: #include ) -_WinAPI_GradientFill ( $hDC, Const ByRef $aVertex [, $iStart = 0 [, $iEnd = -1 [, $bRotate = False]]] ) Fills rectangle or triangle gradient (Requires: #include ) -_WinAPI_GUIDFromString ( $sGUID ) Converts a string GUID to binary form (Requires: #include ) -_WinAPI_GUIDFromStringEx ( $sGUID, $tGUID ) Converts a string GUID to binary form (Requires: #include ) -_WinAPI_HashData ( $pMemory, $iSize [, $iLength = 32] ) Hashes a memory block (Requires: #include ) -_WinAPI_HashString ( $sString [, $bCaseSensitive = True [, $iLength = 32]] ) Hashes a string (Requires: #include ) -_WinAPI_HiByte ( $iValue ) Returns the high BYTE of a 16-bit (2 bytes) value (Requires: #include ) -_WinAPI_HideCaret ( $hWnd ) Removes the caret from the screen (Requires: #include ) -_WinAPI_HiDWord ( $iValue ) Returns the high DWORD of a 64-bit (8 bytes) value (Requires: #include ) -_WinAPI_HiWord ( $iLong ) Returns the high word of a longword value (Requires: #include ) -_WinAPI_InflateRect ( ByRef $tRECT, $iDX, $iDY ) Increases or decreases the width and height of the specified rectangle (Requires: #include ) -_WinAPI_InitMUILanguage ( $iLanguage ) Enables an application to specify a language to be used with the common controls that is different from the system language (Requires: #include ) -_WinAPI_InProcess ( $hWnd, ByRef $hLastWnd ) Determines whether a window belongs to the current process (Requires: #include ) -_WinAPI_IntersectClipRect ( $hDC, $tRECT ) Creates a new clipping region from the intersection of the current clipping region and the specified rectangle (Requires: #include ) -_WinAPI_IntersectRect ( $tRECT1, $tRECT2 ) Creates the intersection of two rectangles (Requires: #include ) -_WinAPI_IntToDWord ( $iValue ) Converts a value of type INT to a value of type DWORD (Requires: #include ) -_WinAPI_IntToFloat ( $iInt ) Returns a 4 byte integer as a float value (Requires: #include ) -_WinAPI_InvalidateRect ( $hWnd [, $tRECT = 0 [, $bErase = True]] ) Adds a rectangle to the specified window's update region (Requires: #include ) -_WinAPI_InvalidateRgn ( $hWnd [, $hRgn = 0 [, $bErase = True]] ) Adds a region to the specified window's update region (Requires: #include ) -_WinAPI_InvertANDBitmap ( $hBitmap [, $bDelete = False] ) Inverts the specified AND bitmask bitmap by performing a logical NOT operation (Requires: #include ) -_WinAPI_InvertColor ( $iColor ) Inverts (negative) the specified color (Requires: #include ) -_WinAPI_InvertRect ( $hDC, $tRECT ) Inverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel (Requires: #include ) -_WinAPI_InvertRgn ( $hDC, $hRgn ) Inverts the colors in the specified region (Requires: #include ) -_WinAPI_IOCTL ( $iDeviceType, $iFunction, $iMethod, $iAccess ) Create a unique system I/O control code (IOCTL) (Requires: #include ) -_WinAPI_IsAlphaBitmap ( $hBitmap ) Determines whether the specified bitmap has an alpha channel (Requires: #include ) -_WinAPI_IsBadCodePtr ( $pAddress ) Determines whether the calling process has read access to the memory at the specified address (Requires: #include ) -_WinAPI_IsBadReadPtr ( $pAddress, $iLength ) Verifies that the calling process has read access to the specified range of memory (Requires: #include ) -_WinAPI_IsBadStringPtr ( $pAddress, $iLength ) Verifies that the calling process has read access to the specified range of memory (Requires: #include ) -_WinAPI_IsBadWritePtr ( $pAddress, $iLength ) Verifies that the calling process has write access to the specified range of memory (Requires: #include ) -_WinAPI_IsChild ( $hWnd, $hWndParent ) Tests whether a window is a child window of a specified parent window (Requires: #include ) -_WinAPI_IsClassName ( $hWnd, $sClassName ) Wrapper to check ClassName of the control (Requires: #include ) -_WinAPI_IsDoorOpen ( $sDrive ) Checks if a CD (DVD) tray is open (Requires: #include ) -_WinAPI_IsElevated ( ) Determines whether the current process is elevated (Requires: #include ) -_WinAPI_IsHungAppWindow ( $hWnd ) Determines whether the specified application is not responding (Requires: #include ) -_WinAPI_IsIconic ( $hWnd ) Determines whether the specified window is minimized (iconic) (Requires: #include ) -_WinAPI_IsInternetConnected ( ) Determines whether the current user is connected to the Internet (Requires: #include ) -_WinAPI_IsLoadKBLayout ( $iLanguage ) Determines whether the specified input locale loaded into the system (Requires: #include ) -_WinAPI_IsMemory ( $pMemory ) Determines whether the specified pointer points to the memory block in the internal library heap (Requires: #include ) -_WinAPI_IsNameInExpression ( $sString, $sPattern [, $bCaseSensitive = False] ) Determines whether a string matches the specified pattern (Requires: #include ) -_WinAPI_IsNetworkAlive ( ) Determines whether or not a local system is connected to a network, and identifies the type of network connection (Requires: #include ) -_WinAPI_IsPathShared ( $sFilePath ) Determines whether the path is shared (Requires: #include ) -_WinAPI_IsProcessInJob ( $hProcess [, $hJob = 0] ) Determines whether the process is running in the specified job (Requires: #include ) -_WinAPI_IsProcessorFeaturePresent ( $iFeature ) Determines whether the specified processor feature is supported by the current computer (Requires: #include ) -_WinAPI_IsRectEmpty ( $tRECT ) Determines whether the specified rectangle is empty (Requires: #include ) -_WinAPI_IsThemeActive ( ) Tests if a visual style for the current application is active (Requires: #include ) -_WinAPI_IsThemeBackgroundPartiallyTransparent ( $hTheme, $iPartID, $iStateID ) Retrieves whether the background specified by the visual style has transparent pieces or alpha-blended pieces (Requires: #include ) -_WinAPI_IsThemePartDefined ( $hTheme, $iPartID ) Retrieves whether a visual style has defined parameters for the specified part (Requires: #include ) -_WinAPI_IsValidLocale ( $iLCID [, $iFlag = 0] ) Determines if the specified locale is installed or supported on the operating system (Requires: #include ) -_WinAPI_IsWindow ( $hWnd ) Determines whether the specified window handle identifies an existing window (Requires: #include ) -_WinAPI_IsWindowEnabled ( $hWnd ) Determines whether the specified window is enabled for mouse and keyboard input (Requires: #include ) -_WinAPI_IsWindowUnicode ( $hWnd ) Determines whether the specified window is a native Unicode window (Requires: #include ) -_WinAPI_IsWindowVisible ( $hWnd ) Retrieves the visibility state of the specified window (Requires: #include ) -_WinAPI_IsWow64Process ( [$iPID = 0] ) Determines whether the specified process is running under WOW64 (Requires: #include ) -_WinAPI_IsWritable ( $sDrive ) Determines whether a disk is writable (Requires: #include ) -_WinAPI_IsZoomed ( $hWnd ) Determines whether a window is maximized (Requires: #include ) -_WinAPI_Keybd_Event ( $vKey, $iFlags [, $iScanCode = 0 [, $iExtraInfo = 0]] ) Synthesizes a keystroke (Requires: #include ) -_WinAPI_KillTimer ( $hWnd, $iTimerID ) Destroys the specified timer (Requires: #include ) -_WinAPI_LineDDA ( $iX1, $iY1, $iX2, $iY2, $pLineProc [, $pData = 0] ) Determines which pixels should be highlighted for a line (Requires: #include ) -_WinAPI_LineTo ( $hDC, $iX, $iY ) Draws a line from the current position up to, but not including, the specified point (Requires: #include ) -_WinAPI_LoadBitmap ( $hInstance, $sBitmap ) Loads the specified bitmap resource from a module's executable file (Requires: #include ) -_WinAPI_LoadCursor ( $hInstance, $sName ) Loads the specified cursor resource from the executable (.exe) file (Requires: #include ) -_WinAPI_LoadCursorFromFile ( $sFilePath ) Creates a cursor based on data contained in a file (Requires: #include ) -_WinAPI_LoadIcon ( $hInstance, $sName ) Loads the specified icon resource from the executable (.exe) file associated with an application instance (Requires: #include ) -_WinAPI_LoadIconMetric ( $hInstance, $sName, $iMetric ) Loads a specified icon resource with a client-specified system metric (Requires: #include ) -_WinAPI_LoadIconWithScaleDown ( $hInstance, $sName, $iWidth, $iHeight ) Loads an icon and scales down a larger image instead of scaling up a smaller image (Requires: #include ) -_WinAPI_LoadImage ( $hInstance, $sImage, $iType, $iXDesired, $iYDesired, $iLoad ) Loads an icon, cursor, or bitmap (Requires: #include ) -_WinAPI_LoadIndirectString ( $sStrIn ) Extracts the string from the specified resource when given an indirect string (Requires: #include ) -_WinAPI_LoadKeyboardLayout ( $iLanguage [, $iFlag = 0] ) Loads a new input locale identifier into the system (Requires: #include ) -_WinAPI_LoadLibrary ( $sFileName ) Maps a specified executable module into the address space of the calling process (Requires: #include ) -_WinAPI_LoadLibraryEx ( $sFileName [, $iFlags = 0] ) Maps a specified executable module into the address space of the calling process (Requires: #include ) -_WinAPI_LoadMedia ( $sDrive ) Loads media into a device (Requires: #include ) -_WinAPI_LoadResource ( $hInstance, $hResource ) Loads the specified resource into global memory (Requires: #include ) -_WinAPI_LoadShell32Icon ( $iIconID ) Extracts an icon from the shell32.dll file (Requires: #include ) -_WinAPI_LoadString ( $hInstance, $iStringID ) loads a string resource from the executable file associated with a specified module (Requires: #include ) -_WinAPI_LoadStringEx ( $hModule, $iID [, $iLanguage = $LOCALE_USER_DEFAULT] ) Loads a string resource for the specified language from the specified module (Requires: #include ) -_WinAPI_LoByte ( $iValue ) Returns the low BYTE of a 16-bit (2 bytes) value (Requires: #include ) -_WinAPI_LocalFree ( $hMemory ) Frees the specified local memory object and invalidates its handle (Requires: #include ) -_WinAPI_LockDevice ( $sDrive, $bLock ) Enables or disables the mechanism that ejects media, for those devices possessing that locking capability (Requires: #include ) -_WinAPI_LockFile ( $hFile, $iOffset, $iLength ) Locks the specified file for exclusive access by the calling process (Requires: #include ) -_WinAPI_LockResource ( $hData ) Locks the specified resource in memory (Requires: #include ) -_WinAPI_LockWindowUpdate ( $hWnd ) Disables or enables drawing in the specified window (Requires: #include ) -_WinAPI_LockWorkStation ( ) Locks the workstation's display (Requires: #include ) -_WinAPI_LoDWord ( $iValue ) Returns the low DWORD of a 64-bit (8 bytes) value (Requires: #include ) -_WinAPI_LongMid ( $iValue, $iStart, $iCount ) Extracts a number of bits from a DWORD (32-bit) value (Requires: #include ) -_WinAPI_LookupIconIdFromDirectoryEx ( $pData [, $bIcon = True [, $iXDesiredPixels = 0 [, $iYDesiredPixels = 0 [, $iFlags = 0]]]] ) Searches through icon or cursor data for the icon or cursor that best fits the current display device (Requires: #include ) -_WinAPI_LoWord ( $iLong ) Returns the low word of a longword (Requires: #include ) -_WinAPI_LPtoDP ( $hDC, ByRef $tPOINT [, $iCount = 1] ) Converts a logical coordinates into device coordinates (Requires: #include ) -_WinAPI_MAKELANGID ( $iLngIDPrimary, $iLngIDSub ) Construct language id from a primary language id and a sublanguage id (Requires: #include ) -_WinAPI_MAKELCID ( $iLngID, $iSortID ) Construct locale id from a language id and a sort id (Requires: #include ) -_WinAPI_MakeLong ( $iLo, $iHi ) Returns a long int value from two int values (Requires: #include ) -_WinAPI_MakeQWord ( $iLoDWORD, $iHiDWORD ) Returns a QWORD value from two int values (Requires: #include ) -_WinAPI_MakeWord ( $iLo, $iHi ) Returns a WORD (16-bit) value from two BYTE (8-bit) values (Requires: #include ) -_WinAPI_MapViewOfFile ( $hMapping [, $iOffset = 0 [, $iBytes = 0 [, $iAccess = 0x0006]]] ) Maps a view of a file mapping into the address space of a calling process (Requires: #include ) -_WinAPI_MapVirtualKey ( $iCode, $iType [, $hLocale = 0] ) Translates a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code (Requires: #include ) -_WinAPI_MaskBlt ( $hDestDC, $iXDest, $iYDest, $iWidth, $iHeight, $hSrcDC, $iXSrc, $iYSrc, $hMask, $iXMask, $iYMask, $iRop ) Combines the color data for the source and destination bitmaps using the specified mask and raster operation (Requires: #include ) -_WinAPI_MessageBeep ( [$iType = 1] ) Plays a waveform sound (Requires: #include ) -_WinAPI_MessageBoxCheck ( $iType, $sTitle, $sText, $sRegVal [, $iDefault = -1 [, $hParent = 0]] ) Displays a message box that gives the user the option of suppressing further occurrences (Requires: #include ) -_WinAPI_MessageBoxIndirect ( $tMSGBOXPARAMS ) Creates, displays, and operates a message box (Requires: #include ) -_WinAPI_MirrorIcon ( $hIcon [, $bDelete = False] ) Reverses (mirrors) icons so that they are displayed correctly on a mirrored device context (Requires: #include ) -_WinAPI_ModifyWorldTransform ( $hDC, $tXFORM, $iMode ) Changes the world transformation for a device context using the specified mode (Requires: #include ) -_WinAPI_MonitorFromPoint ( $tPOINT [, $iFlag = 1] ) Retrieves a handle to the display monitor that contains a specified point (Requires: #include ) -_WinAPI_MonitorFromRect ( $tRECT [, $iFlag = 1] ) Retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle (Requires: #include ) -_WinAPI_MonitorFromWindow ( $hWnd [, $iFlag = 1] ) Retrieves a handle to the display monitor that has the largest area of intersection with the specified window (Requires: #include ) -_WinAPI_Mouse_Event ( $iFlags [, $iX = 0 [, $iY = 0 [, $iData = 0 [, $iExtraInfo = 0]]]] ) Synthesizes mouse motion and button clicks (Requires: #include ) -_WinAPI_MoveFileEx ( $sExistingFile, $sNewFile [, $iFlags = 0 [, $pProgressProc = 0 [, $pData = 0]]] ) Moves a file or directory, notifying the application of its progress through a callback function (Requires: #include ) -_WinAPI_MoveMemory ( $pDestination, $pSource, $iLength ) Moves a block of memory from one location to another (Requires: #include ) -_WinAPI_MoveTo ( $hDC, $iX, $iY ) Updates the current position to the specified point (Requires: #include ) -_WinAPI_MoveToEx ( $hDC, $iX, $iY ) Updates the current position to the specified point (Requires: #include ) -_WinAPI_MoveWindow ( $hWnd, $iX, $iY, $iWidth, $iHeight [, $bRepaint = True] ) Changes the position and dimensions of the specified window (Requires: #include ) -_WinAPI_MsgBox ( $iFlags, $sTitle, $sText ) Displays a message box with wider margin than original (Requires: #include ) -_WinAPI_MulDiv ( $iNumber, $iNumerator, $iDenominator ) Multiplies two 32-bit values and then divides the 64-bit result by a third 32-bit value (Requires: #include ) -_WinAPI_MultiByteToWideChar ( $vText [, $iCodePage = 0 [, $iFlags = 0 [, $bRetString = False]]] ) Maps a character string to a wide-character (Unicode) string (Requires: #include ) -_WinAPI_MultiByteToWideCharEx ( $sText, $pText [, $iCodePage = 0 [, $iFlags = 0]] ) Maps a character string to a wide-character (Unicode) string (Requires: #include ) -_WinAPI_NtStatusToDosError ( $iStatus ) Converts the specified NTSTATUS error code to its equivalent system error code (Requires: #include ) -_WinAPI_OemToChar ( $sStr ) Converts a string from the OEM-defined character set into either an ANSI string (Requires: #include ) -_WinAPI_OffsetClipRgn ( $hDC, $iXOffset, $iYOffset ) Moves the clipping region of a device context by the specified offsets (Requires: #include ) -_WinAPI_OffsetPoints ( ByRef $aPoint, $iXOffset, $iYOffset [, $iStart = 0 [, $iEnd = -1]] ) Moves a points from the array by the specified offsets (Requires: #include ) -_WinAPI_OffsetRect ( ByRef $tRECT, $iDX, $iDY ) Moves the specified rectangle by the specified offsets (Requires: #include ) -_WinAPI_OffsetRgn ( $hRgn, $iXOffset, $iYOffset ) Moves a region by the specified offsets (Requires: #include ) -_WinAPI_OffsetWindowOrg ( $hDC, $iXOffset, $iYOffset ) Modifies the window origin for a device context using the specified horizontal and vertical offsets (Requires: #include ) -_WinAPI_OpenDesktop ( $sName [, $iAccess = 0 [, $iFlags = 0 [, $bInherit = False]]] ) Opens the specified desktop object (Requires: #include ) -_WinAPI_OpenFileById ( $hFile, $vID [, $iAccess = 0 [, $iShare = 0 [, $iFlags = 0]]] ) Opens the file that matches the specified object identifier (Requires: #include ) -_WinAPI_OpenFileDlg ( [$sTitle = '' [, $sInitDir = '' [, $sFilters = '' [, $iDefaultFilter = 0 [, $sDefaultFilePath = '' [, $sDefaultExt = '' [, $iFlags = 0 [, $iFlagsEx = 0 [, $pOFNProc = 0 [, $pData = 0 [, $hParent = 0]]]]]]]]]]] ) Creates a dialog box that lets the user specify the drive, directory, and the name of a file or set of files to be opened (Requires: #include ) -_WinAPI_OpenFileMapping ( $sName [, $iAccess = 0x0006 [, $bInherit = False]] ) Opens a named file mapping object (Requires: #include ) -_WinAPI_OpenIcon ( $hWnd ) Restores a minimized (iconic) window to its previous size and position and activates the window (Requires: #include ) -_WinAPI_OpenInputDesktop ( [$iAccess = 0 [, $iFlags = 0 [, $bInherit = False]]] ) Opens the desktop that receives user input (Requires: #include ) -_WinAPI_OpenJobObject ( $sName [, $iAccess = $JOB_OBJECT_ALL_ACCESS [, $bInherit = False]] ) Opens an existing job object (Requires: #include ) -_WinAPI_OpenMutex ( $sMutex [, $iAccess = $MUTEX_ALL_ACCESS [, $bInherit = False]] ) Opens an existing named mutex object (Requires: #include ) -_WinAPI_OpenProcess ( $iAccess, $bInherit, $iPID [, $bDebugPriv = False] ) Returns a handle of an existing process object (Requires: #include ) -_WinAPI_OpenProcessToken ( $iAccess [, $hProcess = 0] ) Opens the access token associated with a process (Requires: #include ) -_WinAPI_OpenSemaphore ( $sSemaphore [, $iAccess = 0x001F0003 [, $bInherit = False]] ) Opens an existing named semaphore object (Requires: #include ) -_WinAPI_OpenThemeData ( $hWnd, $sClass ) Opens the theme data for a window and its associated class (Requires: #include ) -_WinAPI_OpenWindowStation ( $sName [, $iAccess = 0 [, $bInherit = False]] ) Opens the specified window station (Requires: #include ) -_WinAPI_PageSetupDlg ( ByRef $tPAGESETUPDLG ) Creates a Page Setup dialog box that enables the user to specify the attributes of a printed page (Requires: #include ) -_WinAPI_PaintDesktop ( $hDC ) Fills the clipping region in the specified device context with the desktop pattern or wallpaper (Requires: #include ) -_WinAPI_PaintRgn ( $hDC, $hRgn ) Paints the specified region by using the brush currently selected into the device context (Requires: #include ) -_WinAPI_ParseURL ( $sUrl ) Performs rudimentary parsing of a URL (Requires: #include ) -_WinAPI_ParseUserName ( $sUser ) Extracts the domain and user account name from a fully qualified user name (Requires: #include ) -_WinAPI_PatBlt ( $hDC, $iX, $iY, $iWidth, $iHeight, $iRop ) Paints the specified rectangle using the brush that is currently selected into the specified device context (Requires: #include ) -_WinAPI_PathAddBackslash ( $sFilePath ) Adds a backslash to the end of a string to create the correct syntax for a path (Requires: #include ) -_WinAPI_PathAddExtension ( $sFilePath [, $sExt = ''] ) Adds a file name extension to a path string (Requires: #include ) -_WinAPI_PathAppend ( $sFilePath, $sMore ) Appends one path to the end of another (Requires: #include ) -_WinAPI_PathBuildRoot ( $iDrive ) Creates a root path from a given drive number (Requires: #include ) -_WinAPI_PathCanonicalize ( $sFilePath ) Removes elements of a file path according to special strings inserted into that path (Requires: #include ) -_WinAPI_PathCommonPrefix ( $sPath1, $sPath2 ) Compares two paths to determine if they share a common prefix (Requires: #include ) -_WinAPI_PathCompactPath ( $hWnd, $sFilePath [, $iWidth = 0] ) Truncates a file path to fit within a given pixel width by replacing path components with ellipses (Requires: #include ) -_WinAPI_PathCompactPathEx ( $sFilePath, $iMax ) Truncates a path to fit within a certain number of characters by replacing path components with ellipses (Requires: #include ) -_WinAPI_PathCreateFromUrl ( $sUrl ) Converts a file URL to a Microsoft MS-DOS path (Requires: #include ) -_WinAPI_PathFindExtension ( $sFilePath ) Searches a path for an extension (Requires: #include ) -_WinAPI_PathFindFileName ( $sFilePath ) Searches a path for a file name (Requires: #include ) -_WinAPI_PathFindNextComponent ( $sFilePath ) Parses a path and returns the portion of that path that follows the first backslash (Requires: #include ) -_WinAPI_PathFindOnPath ( $sFilePath [, $aExtraPaths = "" [, $sPathDelimiter = @LF]] ) Searchs for a file in the default system paths (Requires: #include ) -_WinAPI_PathGetArgs ( $sFilePath ) Finds the command-line arguments within a given path (Requires: #include ) -_WinAPI_PathGetCharType ( $sChar ) Determines the type of character in relation to a path (Requires: #include ) -_WinAPI_PathGetDriveNumber ( $sFilePath ) Searches a path for a drive letter within the range of 'A' to 'Z' and returns the corresponding drive number (Requires: #include ) -_WinAPI_PathIsContentType ( $sFilePath, $sType ) Determines if a file's registered content type matches the specified content type (Requires: #include ) -_WinAPI_PathIsDirectory ( $sFilePath ) Verifies that a path is a valid directory (Requires: #include ) -_WinAPI_PathIsDirectoryEmpty ( $sFilePath ) Determines whether a specified path is an empty directory (Requires: #include ) -_WinAPI_PathIsExe ( $sFilePath ) Determines whether a file is an executable by examining the file extension (Requires: #include ) -_WinAPI_PathIsFileSpec ( $sFilePath ) Searches a path for any path-delimiting characters (Requires: #include ) -_WinAPI_PathIsLFNFileSpec ( $sFilePath ) Determines whether a file name is in long format (Requires: #include ) -_WinAPI_PathIsRelative ( $sFilePath ) Searches a path and determines if it is relative (Requires: #include ) -_WinAPI_PathIsRoot ( $sFilePath ) Parses a path to determine if it is a directory root (Requires: #include ) -_WinAPI_PathIsSameRoot ( $sPath1, $sPath2 ) Compares two paths to determine if they have a common root component (Requires: #include ) -_WinAPI_PathIsSystemFolder ( $sFilePath ) Determines if an existing folder contains the attributes that make it a system folder (Requires: #include ) -_WinAPI_PathIsUNC ( $sFilePath ) Determines if the string is a valid Universal Naming Convention (UNC) for a server and share path (Requires: #include ) -_WinAPI_PathIsUNCServer ( $sFilePath ) Determines if a string is a valid Universal Naming Convention (UNC) for a server path only (Requires: #include ) -_WinAPI_PathIsUNCServerShare ( $sFilePath ) Determines if a string is a valid Universal Naming Convention (UNC) share path (Requires: #include ) -_WinAPI_PathMakeSystemFolder ( $sFilePath ) Gives an existing folder the proper attributes to become a system folder (Requires: #include ) -_WinAPI_PathMatchSpec ( $sFilePath, $sSpec ) Searches a string using a Microsoft MS-DOS wild card match type (Requires: #include ) -_WinAPI_PathParseIconLocation ( $sFilePath ) Parses a file location string that contains a file location and icon index (Requires: #include ) -_WinAPI_PathRelativePathTo ( $sPathFrom, $bDirFrom, $sPathTo, $bDirTo ) Creates a relative path from one file or folder to another (Requires: #include ) -_WinAPI_PathRemoveArgs ( $sFilePath ) Removes any arguments from a given path (Requires: #include ) -_WinAPI_PathRemoveBackslash ( $sFilePath ) Removes the trailing backslash from a given path (Requires: #include ) -_WinAPI_PathRemoveExtension ( $sFilePath ) Removes the file name extension from a path, if one is present (Requires: #include ) -_WinAPI_PathRemoveFileSpec ( $sFilePath ) Removes the trailing file name and backslash from a path, if they are present (Requires: #include ) -_WinAPI_PathRenameExtension ( $sFilePath, $sExt ) Replaces the extension of a file name with a new extension (Requires: #include ) -_WinAPI_PathSearchAndQualify ( $sFilePath [, $bExists = False] ) Formats a path to the fully qualified path (Requires: #include ) -_WinAPI_PathSkipRoot ( $sFilePath ) Parses a path, ignoring the drive letter or Universal Naming Convention (UNC) server/share path elements (Requires: #include ) -_WinAPI_PathStripPath ( $sFilePath ) Removes the path portion of a fully qualified path and file (Requires: #include ) -_WinAPI_PathStripToRoot ( $sFilePath ) Removes all parts of the path except for the root information (Requires: #include ) -_WinAPI_PathToRegion ( $hDC ) Creates a region from the path that is selected into the specified device context (Requires: #include ) -_WinAPI_PathUndecorate ( $sFilePath ) Removes the decoration from a path string (Requires: #include ) -_WinAPI_PathUnExpandEnvStrings ( $sFilePath ) Replaces folder names in a fully-qualified path with their associated environment string (Requires: #include ) -_WinAPI_PathUnmakeSystemFolder ( $sFilePath ) Removes the attributes from a folder that make it a system folder (Requires: #include ) -_WinAPI_PathUnquoteSpaces ( $sFilePath ) Removes quotes from the beginning and end of a path (Requires: #include ) -_WinAPI_PathYetAnotherMakeUniqueName ( $sFilePath ) Creates a unique filename based on an existing filename (Requires: #include ) -_WinAPI_PickIconDlg ( [$sIcon = '' [, $iIndex = 0 [, $hParent = 0]]] ) Displays a dialog box that allows the user to choose an icon (Requires: #include ) -_WinAPI_PlayEnhMetaFile ( $hDC, $hEmf, $tRECT ) Displays the picture stored in the specified enhanced-format metafile (Requires: #include ) -_WinAPI_PlaySound ( $sSound [, $iFlags = $SND_SYSTEM_NOSTOP [, $hInstance = 0]] ) Plays a sound specified by the given file name, resource, or system event (Requires: #include ) -_WinAPI_PlgBlt ( $hDestDC, Const ByRef $aPoint, $hSrcDC, $iXSrc, $iYSrc, $iWidth, $iHeight [, $hMask = 0 [, $iXMask = 0 [, $iYMask = 0]]] ) Performs a bit-block transfer of color data from the specified rectangle in the source DC to the specified parallelogram in the DC context (Requires: #include ) -_WinAPI_PointFromRect ( ByRef $tRECT [, $bCenter = True] ) Returns the top/left coordinates of a $tagRECT as a $tagPOINT structure (Requires: #include ) -_WinAPI_PolyBezier ( $hDC, Const ByRef $aPoint [, $iStart = 0 [, $iEnd = -1]] ) Draws one or more Bezier curves (Requires: #include ) -_WinAPI_PolyBezierTo ( $hDC, Const ByRef $aPoint [, $iStart = 0 [, $iEnd = -1]] ) Draws one or more Bezier curves (Requires: #include ) -_WinAPI_PolyDraw ( $hDC, Const ByRef $aPoint [, $iStart = 0 [, $iEnd = -1]] ) Draws a set of line segments and Bezier curves (Requires: #include ) -_WinAPI_Polygon ( $hDC, Const ByRef $aPoint [, $iStart = 0 [, $iEnd = -1]] ) Draws a polygon consisting of two or more vertices connected by straight lines (Requires: #include ) -_WinAPI_PostMessage ( $hWnd, $iMsg, $wParam, $lParam ) Places a message in the message queue and then returns (Requires: #include ) -_WinAPI_PrimaryLangId ( $iLngID ) Extract primary language id from a language id (Requires: #include ) -_WinAPI_PrintDlg ( ByRef $tPRINTDLG ) Displays a Print dialog box (Requires: #include ) -_WinAPI_PrintDlgEx ( ByRef $tPRINTDLGEX ) Displays a Print property sheet that enables the user to specify the properties of a particular print job (Requires: #include ) -_WinAPI_PrintWindow ( $hWnd, $hDC [, $bClient = False] ) Copies a visual window into the specified device context (Requires: #include ) -_WinAPI_ProgIDFromCLSID ( $sCLSID ) Retrieves the ProgID for a given CLSID (Requires: #include ) -_WinAPI_PtInRect ( ByRef $tRECT, ByRef $tPoint ) Determines whether the specified point lies within the specified rectangle (Requires: #include ) -_WinAPI_PtInRectEx ( $iX, $iY, $iLeft, $iTop, $iRight, $iBottom ) Determines whether the specified point lies within the specified rectangle (Requires: #include ) -_WinAPI_PtInRegion ( $hRgn, $iX, $iY ) Determines whether the specified point is inside the specified region (Requires: #include ) -_WinAPI_PtVisible ( $hDC, $iX, $iY ) Determines whether the specified point is within the clipping region (Requires: #include ) -_WinAPI_QueryDosDevice ( $sDevice ) Retrieves the current mapping for a particular MS-DOS device name (Requires: #include ) -_WinAPI_QueryInformationJobObject ( $hJob, $iJobObjectInfoClass, ByRef $tJobObjectInfo ) Retrieves limit and job state information from the job object (Requires: #include ) -_WinAPI_QueryPerformanceCounter ( ) Retrieves the current value of the high-resolution performance counter (Requires: #include ) -_WinAPI_QueryPerformanceFrequency ( ) Retrieves the frequency of the high-resolution performance counter (Requires: #include ) -_WinAPI_RadialGradientFill ( $hDC, $iX, $iY, $iRadius, $iRGB1, $iRGB2 [, $fAngleStart = 0 [, $fAngleEnd = 360 [, $fStep = 5]]] ) Fills radial gradient (Requires: #include ) -_WinAPI_ReadDirectoryChanges ( $hDirectory, $iFilter, $pBuffer, $iLength [, $bSubtree = 0] ) Retrieves information that describes the changes within the specified directory (Requires: #include ) -_WinAPI_ReadFile ( $hFile, $pBuffer, $iToRead, ByRef $iRead [, $tOverlapped = 0] ) Reads data from a file (Requires: #include ) -_WinAPI_ReadProcessMemory ( $hProcess, $pBaseAddress, $pBuffer, $iSize, ByRef $iRead ) Reads memory in a specified process (Requires: #include ) -_WinAPI_Rectangle ( $hDC, $tRECT ) Draws a rectangle (Requires: #include ) -_WinAPI_RectInRegion ( $hRgn, $tRECT ) Determines whether any part of the specified rectangle is within the boundaries of a region (Requires: #include ) -_WinAPI_RectIsEmpty ( ByRef $tRECT ) Determins whether a rectangle is empty (Requires: #include ) -_WinAPI_RectVisible ( $hDC, $tRECT ) Determines whether any part of the specified rectangle lies within the clipping region (Requires: #include ) -_WinAPI_RedrawWindow ( $hWnd [, $tRECT = 0 [, $hRegion = 0 [, $iFlags = 5]]] ) Updates the specified rectangle or region in a window's client area (Requires: #include ) -_WinAPI_RegCloseKey ( $hKey [, $bFlush = False] ) Closes a handle to the specified registry key (Requires: #include ) -_WinAPI_RegConnectRegistry ( $sComputer, $hKey ) Establishes a connection to a predefined registry key on another computer (Requires: #include ) -_WinAPI_RegCopyTree ( $hSrcKey, $sSrcSubKey, $hDestKey ) Recursively copies the subkeys and values of the source subkey to the destination key (Requires: #include ) -_WinAPI_RegCopyTreeEx ( $hSrcKey, $sSrcSubKey, $hDestKey ) Copies the specified registry key, along with its values and subkeys, to the specified destination key (Requires: #include ) -_WinAPI_RegCreateKey ( $hKey [, $sSubKey = '' [, $iAccess = $KEY_ALL_ACCESS [, $iOptions = 0 [, $tSecurity = 0]]]] ) Creates the specified registry key (Requires: #include ) -_WinAPI_RegDeleteEmptyKey ( $hKey [, $sSubKey = ''] ) Deletes an empty key (Requires: #include ) -_WinAPI_RegDeleteKey ( $hKey [, $sSubKey = ''] ) Deletes a subkey and its values (Requires: #include ) -_WinAPI_RegDeleteKeyValue ( $hKey, $sSubKey, $sValueName ) Removes the specified value from the specified registry key and subkey (Requires: #include ) -_WinAPI_RegDeleteTree ( $hKey [, $sSubKey = ''] ) Deletes a subkey and all its descendants (Requires: #include ) -_WinAPI_RegDeleteTreeEx ( $hKey [, $sSubKey = 0] ) Deletes the subkeys and values of the specified key recursively (Requires: #include ) -_WinAPI_RegDeleteValue ( $hKey, $sValueName ) Removes a named value from the specified registry key (Requires: #include ) -_WinAPI_RegDisableReflectionKey ( $hKey ) Disables registry reflection for the specified key (Requires: #include ) -_WinAPI_RegDuplicateHKey ( $hKey ) Duplicates a registry key's handle (Requires: #include ) -_WinAPI_RegEnableReflectionKey ( $hKey ) Restores registry reflection for the specified disabled key (Requires: #include ) -_WinAPI_RegEnumKey ( $hKey, $iIndex ) Enumerates the subkeys of the specified open registry key (Requires: #include ) -_WinAPI_RegEnumValue ( $hKey, $iIndex ) Enumerates the values for the specified open registry key (Requires: #include ) -_WinAPI_RegFlushKey ( $hKey ) Writes all the attributes of the specified open registry key into the registry (Requires: #include ) -_WinAPI_RegisterApplicationRestart ( [$iFlags = 0 [, $sCmd = '']] ) Registers the active instance of an application for restart (Requires: #include ) -_WinAPI_RegisterClass ( $tWNDCLASS ) Registers a window class (Requires: #include ) -_WinAPI_RegisterClassEx ( $tWNDCLASSEX ) Registers a window class (Requires: #include ) -_WinAPI_RegisterHotKey ( $hWnd, $iID, $iModifiers, $vKey ) Defines a system-wide hot key (Requires: #include ) -_WinAPI_RegisterPowerSettingNotification ( $hWnd, $sGUID ) Registers the application to receive power setting notifications for the specific power setting event (Requires: #include ) -_WinAPI_RegisterRawInputDevices ( $paDevice [, $iCount = 1] ) Registers the devices that supply the raw input data (Requires: #include ) -_WinAPI_RegisterShellHookWindow ( $hWnd ) Registers a specified Shell window to receive certain messages for events or notifications (Requires: #include ) -_WinAPI_RegisterWindowMessage ( $sMessage ) Defines a new window message that is guaranteed to be unique throughout the system (Requires: #include ) -_WinAPI_RegLoadMUIString ( $hKey, $sValueName [, $sDirectory = ''] ) Loads the specified string from the specified key and subkey (Requires: #include ) -_WinAPI_RegNotifyChangeKeyValue ( $hKey, $iFilter [, $bSubtree = False [, $bAsync = False [, $hEvent = 0]]] ) Notifies the caller about changes to the attributes or contents of a specified registry key (Requires: #include ) -_WinAPI_RegOpenKey ( $hKey [, $sSubKey = '' [, $iAccess = 0x000F003F]] ) Opens the specified registry key (Requires: #include ) -_WinAPI_RegQueryInfoKey ( $hKey ) Retrieves information about the specified registry key (Requires: #include ) -_WinAPI_RegQueryLastWriteTime ( $hKey ) Retrieves information about the last write time to the specified registry key (Requires: #include ) -_WinAPI_RegQueryMultipleValues ( $hKey, ByRef $aValent, ByRef $pBuffer [, $iStart = 0 [, $iEnd = -1]] ) Retrieves the type and data for a list of value names associated with an open registry key (Requires: #include ) -_WinAPI_RegQueryReflectionKey ( $hKey ) Determines whether reflection has been disabled or enabled for the specified key (Requires: #include ) -_WinAPI_RegQueryValue ( $hKey, $sValueName, ByRef $tValueData ) Retrieves the type and data for the specified value name associated with an open registry key (Requires: #include ) -_WinAPI_RegRestoreKey ( $hKey, $sFilePath ) Reads the registry information in a specified file and copies it over the specified key (Requires: #include ) -_WinAPI_RegSaveKey ( $hKey, $sFilePath [, $bReplace = False [, $tSecurity = 0]] ) Saves the specified key and all of its subkeys and values to a new file, in the standard format (Requires: #include ) -_WinAPI_RegSetValue ( $hKey, $sValueName, $iType, $tValueData, $iBytes ) Sets the data and type of a specified value under a registry key (Requires: #include ) -_WinAPI_ReleaseCapture ( ) Releases the mouse capture from a window in the current thread and restores normal mouse input processing (Requires: #include ) -_WinAPI_ReleaseDC ( $hWnd, $hDC ) Releases a device context (Requires: #include ) -_WinAPI_ReleaseMutex ( $hMutex ) Releases ownership of the specified mutex object (Requires: #include ) -_WinAPI_ReleaseSemaphore ( $hSemaphore [, $iIncrease = 1] ) Increases the count of the specified semaphore object by a specified amount (Requires: #include ) -_WinAPI_ReleaseStream ( $pStream ) Releases a stream object (Requires: #include ) -_WinAPI_RemoveClipboardFormatListener ( $hWnd ) Removes the given window from the system-maintained clipboard format listener list (Requires: #include ) -_WinAPI_RemoveDirectory ( $sDirPath ) Deletes an existing empty directory (Requires: #include ) -_WinAPI_RemoveFontMemResourceEx ( $hFont ) Removes the fonts added from a memory image (Requires: #include ) -_WinAPI_RemoveFontResourceEx ( $sFont [, $iFlag = 0 [, $bNotify = False]] ) Removes the fonts in the specified file from the system font table (Requires: #include ) -_WinAPI_RemoveWindowSubclass ( $hWnd, $pSubclassProc, $idSubClass ) Removes a subclass callback from a window (Requires: #include ) -_WinAPI_ReOpenFile ( $hFile, $iAccess, $iShare [, $iFlags = 0] ) Reopens the specified file system object with different access rights, sharing mode, and flags (Requires: #include ) -_WinAPI_ReplaceFile ( $sReplacedFile, $sReplacementFile [, $sBackupFile = '' [, $iFlags = 0]] ) Replaces one file with another file, and creates a backup copy of the original file (Requires: #include ) -_WinAPI_ReplaceTextDlg ( $hOwner [, $sFindWhat = '' [, $sReplaceWith = '' [, $iFlags = 0 [, $pReplaceProc = 0 [, $lParam = 0]]]]] ) Creates a system-defined modeless dialog box that lets the user specify a string to search for and a replacement string (Requires: #include ) -_WinAPI_ResetEvent ( $hEvent ) Sets the specified event object to the nonsignaled state (Requires: #include ) -_WinAPI_RestartDlg ( [$sText = '' [, $iFlags = 2 [, $hParent = 0]]] ) Displays a dialog box that prompts the user to restart Microsoft Windows (Requires: #include ) -_WinAPI_RestoreDC ( $hDC, $iID ) Restores a device context (DC) to the specified state (Requires: #include ) -_WinAPI_RGB ( $iRed, $iGreen, $iBlue ) Creates a RGB color value based on red, green, and blue components (Requires: #include ) -_WinAPI_RotatePoints ( ByRef $aPoint, $iXC, $iYC, $fAngle [, $iStart = 0 [, $iEnd = -1]] ) Rotates a points from the array by the specified angle (Requires: #include ) -_WinAPI_RoundRect ( $hDC, $tRECT, $iWidth, $iHeight ) Draws a rectangle with rounded corners (Requires: #include ) -_WinAPI_SaveDC ( $hDC ) Saves the current state of the specified device context (DC) by copying data describing selected objects and graphic modes to a context stack (Requires: #include ) -_WinAPI_SaveFileDlg ( [$sTitle = "" [, $sInitDir = "" [, $sFilters = "" [, $iDefaultFilter = 0 [, $sDefaultFilePath = "" [, $sDefaultExt = "" [, $iFlags = 0 [, $iFlagsEx = 0 [, $pOFNProc = 0 [, $pData = 0 [, $hParent = 0]]]]]]]]]]] ) Creates a dialog box that lets the user specify the drive, directory, and name of a file to save (Requires: #include ) -_WinAPI_SaveHBITMAPToFile ( $sFilePath, $hBitmap [, $iXPelsPerMeter = Default [, $iYPelsPerMeter = Default]] ) Saves a specified bitmap to the specified bitmap (.bmp) file (Requires: #include ) -_WinAPI_SaveHICONToFile ( $sFilePath, Const ByRef $vIcon [, $bCompress = 0 [, $iStart = 0 [, $iEnd = -1]]] ) Saves a specified single or multiple icon (HICON) to the specified icon (.ico) file (Requires: #include ) -_WinAPI_ScaleWindowExt ( $hDC, $iXNum, $iXDenom, $iYNum, $iYDenom ) Modifies the window for a device context using the ratios formed by the specified multiplicands and divisors (Requires: #include ) -_WinAPI_ScreenToClient ( $hWnd, ByRef $tPoint ) Converts screen coordinates of a specified point on the screen to client coordinates (Requires: #include ) -_WinAPI_SearchPath ( $sFilePath [, $sSearchPath = ''] ) Searches for a specified file in a specified path (Requires: #include ) -_WinAPI_SelectClipPath ( $hDC [, $iMode = 5] ) Selects the current path as a clipping region, combining the new region with any existing clipping region (Requires: #include ) -_WinAPI_SelectClipRgn ( $hDC, $hRgn ) Selects a region as the current clipping region for the specified device context (Requires: #include ) -_WinAPI_SelectObject ( $hDC, $hGDIObj ) Selects an object into the specified device context (Requires: #include ) -_WinAPI_SendMessageTimeout ( $hWnd, $iMsg [, $wParam = 0 [, $lParam = 0 [, $iTimeout = 1000 [, $iFlags = 0]]]] ) Sends the specified message to one of more windows (Requires: #include ) -_WinAPI_SetActiveWindow ( $hWnd ) Activates the specified window (Requires: #include ) -_WinAPI_SetArcDirection ( $hDC, $iDirection ) Sets the drawing arc direction (Requires: #include ) -_WinAPI_SetBitmapBits ( $hBitmap, $iSize, $pBits ) Sets the bits of color data for a bitmap to the specified values (Requires: #include ) -_WinAPI_SetBitmapDimensionEx ( $hBitmap, $iWidth, $iHeight ) Assigns preferred dimensions to a compatible bitmap (Requires: #include ) -_WinAPI_SetBkColor ( $hDC, $iColor ) Sets the current background color to the specified color value (Requires: #include ) -_WinAPI_SetBkMode ( $hDC, $iBkMode ) Sets the background mix mode of the specified device context (Requires: #include ) -_WinAPI_SetBoundsRect ( $hDC, $iFlags [, $tRECT = 0] ) Controls the accumulation of bounding rectangle information for the specified device context (Requires: #include ) -_WinAPI_SetBrushOrg ( $hDC, $iX, $iY ) Sets the brush origin that GDI assigns to the next brush an application selects into the specified device context (Requires: #include ) -_WinAPI_SetCapture ( $hWnd ) Sets the mouse capture to the specified window belonging to the current thread (Requires: #include ) -_WinAPI_SetCaretBlinkTime ( $iDuration ) Sets the caret blink time (Requires: #include ) -_WinAPI_SetCaretPos ( $iX, $iY ) Moves the caret to the specified coordinates (Requires: #include ) -_WinAPI_SetClassLongEx ( $hWnd, $iIndex, $iNewLong ) Replaces the specified value into the specified window belongs (Requires: #include ) -_WinAPI_SetColorAdjustment ( $hDC, $tAdjustment ) Sets the color adjustment for a device context (DC) (Requires: #include ) -_WinAPI_SetCompression ( $sFilePath, $iCompression ) Sets the compression state of a file or directory (Requires: #include ) -_WinAPI_SetCurrentDirectory ( $sDir ) Changes the current directory for the current process (Requires: #include ) -_WinAPI_SetCurrentProcessExplicitAppUserModelID ( $sAppID ) Specifies a unique application-defined Application User Model ID that identifies the current process to the taskbar (Requires: #include ) -_WinAPI_SetCursor ( $hCursor ) Establishes the cursor shape (Requires: #include ) -_WinAPI_SetDCBrushColor ( $hDC, $iRGB ) Sets the current device context (DC) brush color to the specified color value (Requires: #include ) -_WinAPI_SetDCPenColor ( $hDC, $iRGB ) Sets the current device context (DC) pen color to the specified color value (Requires: #include ) -_WinAPI_SetDefaultPrinter ( $sPrinter ) Sets the default printer for the current user on the local computer (Requires: #include ) -_WinAPI_SetDeviceGammaRamp ( $hDC, Const ByRef $aRamp ) Sets the gamma ramp on direct color display boards that support downloadable gamma ramps in hardware (Requires: #include ) -_WinAPI_SetDIBColorTable ( $hBitmap, $tColorTable, $iColorCount ) Sets RGB color table in the DIB section bitmap (Requires: #include ) -_WinAPI_SetDIBits ( $hDC, $hBitmap, $iStartScan, $iScanLines, $pBits, $tBMI [, $iColorUse = 0] ) Sets the pixels in a compatible bitmap using the color data found in a DIB (Requires: #include ) -_WinAPI_SetDIBitsToDevice ( $hDC, $iXDest, $iYDest, $iWidth, $iHeight, $iXSrc, $iYSrc, $iStartScan, $iScanLines, $tBITMAPINFO, $iUsage, $pBits ) Sets the pixels in the specified rectangle on the device (Requires: #include ) -_WinAPI_SetDllDirectory ( [$sDirPath = Default] ) Adds a directory to the search path used to locate DLLs for the application (Requires: #include ) -_WinAPI_SetEndOfFile ( $hFile ) Sets the physical file size for the specified file to the current position of the file pointer (Requires: #include ) -_WinAPI_SetEnhMetaFileBits ( $pData, $iLength ) Creates a memory-based enhanced-format metafile from the specified data (Requires: #include ) -_WinAPI_SetErrorMode ( $iMode ) Controls whether the system will handle the specified types of serious errors or whether the process will handle them (Requires: #include ) -_WinAPI_SetEvent ( $hEvent ) Sets the specified event object to the signaled state (Requires: #include ) -_WinAPI_SetFileAttributes ( $sFilePath, $iAttributes ) Sets the attributes for a file or directory (Requires: #include ) -_WinAPI_SetFileInformationByHandleEx ( $hFile, $tFILEINFO ) Sets the file information for the specified file (Requires: #include ) -_WinAPI_SetFilePointer ( $hFile, $iPos [, $iMethod = 0] ) Moves the file pointer of the specified file (Requires: #include ) -_WinAPI_SetFilePointerEx ( $hFile, $iPos [, $iMethod = 0] ) Moves the file pointer of the specified file (Requires: #include ) -_WinAPI_SetFileShortName ( $hFile, $sShortName ) Sets the short name for the specified file (Requires: #include ) -_WinAPI_SetFileValidData ( $hFile, $iLength ) Sets the valid data length of the specified file (Requires: #include ) -_WinAPI_SetFocus ( $hWnd ) Sets the keyboard focus to the specified window (Requires: #include ) -_WinAPI_SetFont ( $hWnd, $hFont [, $bRedraw = True] ) Sets a window font (Requires: #include ) -_WinAPI_SetForegroundWindow ( $hWnd ) Puts the specified window into the foreground and activates its (Requires: #include ) -_WinAPI_SetFRBuffer ( $iChars ) Sets the size of the internal buffer that used the _WinAPI_FindTextDlg() and _WinAPI_ReplaceTextDlg() functions (Requires: #include ) -_WinAPI_SetGraphicsMode ( $hDC, $iMode ) Sets the graphics mode for the specified device context (Requires: #include ) -_WinAPI_SetHandleInformation ( $hObject, $iMask, $iFlags ) Sets certain properties of an object handle (Requires: #include ) -_WinAPI_SetInformationJobObject ( $hJob, $iJobObjectInfoClass, $tJobObjectInfo ) Sets limits for a job object (Requires: #include ) -_WinAPI_SetKeyboardLayout ( $hWnd, $iLanguage [, $iFlags = 0] ) Sets an input locale identifier to the specified window (Requires: #include ) -_WinAPI_SetKeyboardState ( $tState ) Copies a 256-byte array of keyboard key states into the calling process's keyboard input-state table (Requires: #include ) -_WinAPI_SetLastError ( $iErrorCode ) Sets the last-error code for the calling thread (Requires: #include ) -_WinAPI_SetLayeredWindowAttributes ( $hWnd, $iTransColor [, $iTransGUI = 255 [, $iFlags = 0x03 [, $bColorRef = False]]] ) Sets Layered Window Attributes (Requires: #include ) -_WinAPI_SetLocaleInfo ( $iLCID, $iType, $sData ) Sets an item of information in the user override portion of the current locale (Requires: #include ) -_WinAPI_SetMapMode ( $hDC, $iMode ) Sets the mapping mode of the specified device context (Requires: #include ) -_WinAPI_SetMessageExtraInfo ( $lParam ) Sets the extra message information for the current thread (Requires: #include ) -_WinAPI_SetParent ( $hWndChild, $hWndParent ) Changes the parent window of the specified child window (Requires: #include ) -_WinAPI_SetPixel ( $hDC, $iX, $iY, $iRGB ) Sets the pixel at the specified coordinates to the specified color (Requires: #include ) -_WinAPI_SetPolyFillMode ( $hDC [, $iMode = 1] ) Sets the polygon fill mode for functions that fill polygons (Requires: #include ) -_WinAPI_SetPriorityClass ( $iPriority [, $iPID = 0] ) Sets the priority class for the specified process (Requires: #include ) -_WinAPI_SetProcessAffinityMask ( $hProcess, $iMask ) Sets a processor affinity mask for the threads of a specified process (Requires: #include ) -_WinAPI_SetProcessShutdownParameters ( $iLevel [, $bDialog = False] ) Sets a shutdown order for a process relative to the other processes in the system (Requires: #include ) -_WinAPI_SetProcessWindowStation ( $hStation ) Assigns the specified window station to the calling process (Requires: #include ) -_WinAPI_SetRectRgn ( $hRgn, $tRECT ) Converts a region into a rectangular region with the specified coordinates (Requires: #include ) -_WinAPI_SetROP2 ( $hDC, $iMode ) Retrieves the foreground mix mode of the specified device context (Requires: #include ) -_WinAPI_SetSearchPathMode ( $iFlags ) Sets the per-process mode that the _WinAPI_SearchPath() function uses when locating files (Requires: #include ) -_WinAPI_SetStretchBltMode ( $hDC, $iMode ) Sets the bitmap stretching mode in the specified device context (Requires: #include ) -_WinAPI_SetSysColors ( $vElements, $vColors ) Obtains information about the display devices in a system (Requires: #include ) -_WinAPI_SetSystemCursor ( $hCursor, $iID [, $bCopy = False] ) Enables an application to customize the system cursors (Requires: #include ) -_WinAPI_SetTextAlign ( $hDC [, $iMode = 0] ) Sets the text-alignment flags for the specified device context (Requires: #include ) -_WinAPI_SetTextCharacterExtra ( $hDC, $iCharExtra ) Sets the intercharacter spacing for the specified device context (Requires: #include ) -_WinAPI_SetTextColor ( $hDC, $iColor ) Sets the current text color to the specified color value (Requires: #include ) -_WinAPI_SetTextJustification ( $hDC, $iBreakExtra, $iBreakCount ) Specifies the amount of space the system should add to the break characters in a string of text (Requires: #include ) -_WinAPI_SetThemeAppProperties ( $iFlags ) Sets the flags that determine how visual styles are implemented in the calling application (Requires: #include ) -_WinAPI_SetThreadDesktop ( $hDesktop ) Assigns the specified desktop to the calling thread (Requires: #include ) -_WinAPI_SetThreadErrorMode ( $iMode ) Controls whether the system will handle the specified types of serious errors or whether the calling thread will handle them (Requires: #include ) -_WinAPI_SetThreadExecutionState ( $iFlags ) Prevents the system from entering sleep or turning off the display while the current application is running (Requires: #include ) -_WinAPI_SetThreadLocale ( $iLCID ) Sets the current locale of the calling thread (Requires: #include ) -_WinAPI_SetThreadUILanguage ( $iLanguage ) Sets the user interface language for the current thread (Requires: #include ) -_WinAPI_SetTimer ( $hWnd, $iTimerID, $iElapse, $pTimerFunc ) Creates a timer with the specified time-out value (Requires: #include ) -_WinAPI_SetUDFColorMode ( $iMode ) Sets the color mode for the WinAPIEx library (Requires: #include ) -_WinAPI_SetUserGeoID ( $iGEOID ) Sets the geographical location identifier for the user (Requires: #include ) -_WinAPI_SetUserObjectInformation ( $hObject, $iIndex, $tData ) Sets information about the specified window station or desktop object (Requires: #include ) -_WinAPI_SetVolumeMountPoint ( $sFilePath, $sGUID ) Associates a volume with a drive letter or a directory on another volume (Requires: #include ) -_WinAPI_SetWindowDisplayAffinity ( $hWnd, $iAffinity ) Stores the display affinity setting in kernel mode on the specified window (Requires: #include ) -_WinAPI_SetWindowExt ( $hDC, $iXExtent, $iYExtent ) Sets the horizontal and vertical extents of the window for a device context by using the specified values (Requires: #include ) -_WinAPI_SetWindowLong ( $hWnd, $iIndex, $iValue ) Sets information about the specified window (Requires: #include ) -_WinAPI_SetWindowOrg ( $hDC, $iX, $iY ) Specifies which window point maps to the viewport origin (0,0) (Requires: #include ) -_WinAPI_SetWindowPlacement ( $hWnd, $tWindowPlacement ) Sets the placement of the window for Min, Max, and normal positions (Requires: #include ) -_WinAPI_SetWindowPos ( $hWnd, $hAfter, $iX, $iY, $iCX, $iCY, $iFlags ) Changes the size, position, and Z order of a child, pop-up, or top-level window (Requires: #include ) -_WinAPI_SetWindowRgn ( $hWnd, $hRgn [, $bRedraw = True] ) Sets the window region of a window (Requires: #include ) -_WinAPI_SetWindowsHookEx ( $iHook, $pProc, $hDll [, $iThreadId = 0] ) Installs an application-defined hook procedure into a hook chain (Requires: #include ) -_WinAPI_SetWindowSubclass ( $hWnd, $pSubclassProc, $idSubClass [, $pData = 0] ) Installs or updates a window subclass callback (Requires: #include ) -_WinAPI_SetWindowText ( $hWnd, $sText ) Changes the text of the specified window's title bar (Requires: #include ) -_WinAPI_SetWindowTheme ( $hWnd [, $sName = 0 [, $sList = 0]] ) Causes a window to use a different set of visual style information than its class normally uses (Requires: #include ) -_WinAPI_SetWinEventHook ( $iEventMin, $iEventMax, $pEventProc [, $iPID = 0 [, $iThreadId = 0 [, $iFlags = 0]]] ) Sets an event hook function for a range of events (Requires: #include ) -_WinAPI_SetWorldTransform ( $hDC, $tXFORM ) Sets a two-dimensional linear transformation between world space and page space for the specified device context (Requires: #include ) -_WinAPI_SfcIsFileProtected ( $sFilePath ) Determines whether the specified file is protected (Requires: #include ) -_WinAPI_SfcIsKeyProtected ( $hKey [, $sSubKey = Default [, $iFlag = 0]] ) Determines whether the specified registry key is protected (Requires: #include ) -_WinAPI_ShellAboutDlg ( $sTitle, $sName, $sText [, $hIcon = 0 [, $hParent = 0]] ) Displays a Windows About dialog box (Requires: #include ) -_WinAPI_ShellAddToRecentDocs ( $sFilePath ) Adds a file to the most recently and frequently item list (Requires: #include ) -_WinAPI_ShellChangeNotify ( $iEvent, $iFlags [, $iItem1 = 0 [, $iItem2 = 0]] ) Notifies the system of an event that an application has performed (Requires: #include ) -_WinAPI_ShellChangeNotifyDeregister ( $iID ) Unregisters the client's window (Requires: #include ) -_WinAPI_ShellChangeNotifyRegister ( $hWnd, $iMsg, $iEvents, $iSources, $aPaths [, $bRecursive = False] ) Registers a window to receive notifications from the file system or Shell (Requires: #include ) -_WinAPI_ShellCreateDirectory ( $sFilePath [, $hParent = 0 [, $tSecurity = 0]] ) Creates a new file system folder (Requires: #include ) -_WinAPI_ShellEmptyRecycleBin ( [$sRoot = '' [, $iFlags = 0 [, $hParent = 0]]] ) Empties the Recycle Bin on the specified drive (Requires: #include ) -_WinAPI_ShellExecute ( $sFilePath [, $sArgs = '' [, $sDir = '' [, $sVerb = '' [, $iShow = 1 [, $hParent = 0]]]]] ) Performs an operation on a specified file (Requires: #include ) -_WinAPI_ShellExecuteEx ( ByRef $tSHEXINFO ) Performs an operation on a specified file (Requires: #include ) -_WinAPI_ShellExtractAssociatedIcon ( $sFilePath [, $bSmall = False] ) Returns a handle to the icon that associated with the specified file's (Requires: #include ) -_WinAPI_ShellExtractIcon ( $sIcon, $iIndex, $iWidth, $iHeight ) Extracts the icon with the specified dimension from the specified file (Requires: #include ) -_WinAPI_ShellFileOperation ( $sFrom, $sTo, $iFunc, $iFlags [, $sTitle = '' [, $hParent = 0]] ) Copies, moves, renames, or deletes a file system object (Requires: #include ) -_WinAPI_ShellFlushSFCache ( ) Flushes the special folder cache (Requires: #include ) -_WinAPI_ShellGetFileInfo ( $sFilePath, $iFlags, $iAttributes, ByRef $tSHFILEINFO ) Retrieves information about an object in the file system (Requires: #include ) -_WinAPI_ShellGetIconOverlayIndex ( $sIcon, $iIndex ) Retrieves the index of the overlay icon in the system image list (Requires: #include ) -_WinAPI_ShellGetImageList ( [$bSmall = False] ) Retrieves the system image list for small or large icons (Requires: #include ) -_WinAPI_ShellGetKnownFolderIDList ( $sGUID [, $iFlags = 0 [, $hToken = 0]] ) Retrieves the path of a known folder as an ITEMIDLIST structure (Requires: #include ) -_WinAPI_ShellGetKnownFolderPath ( $sGUID [, $iFlags = 0 [, $hToken = 0]] ) Retrieves the full path of a known folder identified (Requires: #include ) -_WinAPI_ShellGetLocalizedName ( $sFilePath ) Retrieves the localized name of a file in a Shell folder (Requires: #include ) -_WinAPI_ShellGetPathFromIDList ( $pPIDL ) Converts an item identifier list to a file system path (Requires: #include ) -_WinAPI_ShellGetSetFolderCustomSettings ( $sFilePath, $iFlag, ByRef $tSHFCS ) Sets or retrieves custom folder settings (Requires: #include ) -_WinAPI_ShellGetSettings ( $iFlags ) Retrieves Shell state settings (Requires: #include ) -_WinAPI_ShellGetSpecialFolderLocation ( $iCSIDL ) Retrieves a pointer to the ITEMIDLIST structure (PIDL) of a special folder (Requires: #include ) -_WinAPI_ShellGetSpecialFolderPath ( $iCSIDL [, $bCreate = False] ) Retrieves the path of a special folder (Requires: #include ) -_WinAPI_ShellGetStockIconInfo ( $iSIID, $iFlags ) Retrieves information about system-defined Shell icons (Requires: #include ) -_WinAPI_ShellILCreateFromPath ( $sFilePath ) Creates a pointer to an item identifier list (PIDL) from a path (Requires: #include ) -_WinAPI_ShellNotifyIcon ( $iMessage, $tNOTIFYICONDATA ) Sends a message to the taskbar's status area (Requires: #include ) -_WinAPI_ShellNotifyIconGetRect ( $hWnd, $iID [, $tGUID = 0] ) Gets the screen coordinates of the bounding rectangle of a notification icon (Requires: #include ) -_WinAPI_ShellObjectProperties ( $sFilePath [, $iType = 2 [, $sProperty = '' [, $hParent = 0]]] ) Invokes the Properties context menu command on a Shell object (Requires: #include ) -_WinAPI_ShellOpenFolderAndSelectItems ( $sFilePath [, $aNames = 0 [, $iStart = 0 [, $iEnd = -1 [, $iFlags = 0]]]] ) Opens a Windows Explorer window with specified items in a particular folder selected (Requires: #include ) -_WinAPI_ShellOpenWithDlg ( $sFilePath [, $iFlags = 0 [, $hParent = 0]] ) Displays the Open With dialog box (Requires: #include ) -_WinAPI_ShellQueryRecycleBin ( [$sRoot = ''] ) Retrieves the size of the Recycle Bin and the number of items in it, for a specified drive (Requires: #include ) -_WinAPI_ShellQueryUserNotificationState ( ) Checks the state of the computer for the current user (Requires: #include ) -_WinAPI_ShellRemoveLocalizedName ( $sFilePath ) Removes the localized name of a file in a Shell folder (Requires: #include ) -_WinAPI_ShellRestricted ( $iRestriction ) Determines whether a specified administrator policy is in effect (Requires: #include ) -_WinAPI_ShellSetKnownFolderPath ( $sGUID, $sFilePath [, $iFlags = 0 [, $hToken = 0]] ) Redirects a known folder to a new location (Requires: #include ) -_WinAPI_ShellSetLocalizedName ( $sFilePath, $sModule, $iResID ) Sets the localized name of a file in a Shell folder (Requires: #include ) -_WinAPI_ShellSetSettings ( $iFlags, $bSet ) Sets Shell state settings (Requires: #include ) -_WinAPI_ShellStartNetConnectionDlg ( [$sRemote = '' [, $iFlags = 0 [, $hParent = 0]]] ) Displays a general browsing dialog box for a network resource connection (Requires: #include ) -_WinAPI_ShellUpdateImage ( $sIcon, $iIndex, $iImage [, $iFlags = 0] ) Notifies the Shell that an image in the system image list has changed (Requires: #include ) -_WinAPI_ShellUserAuthenticationDlg ( $sCaption, $sMessage, $sUser, $sPassword, $sTarget [, $iFlags = 0 [, $iError = 0 [, $bSave = False [, $hBitmap = 0 [, $hParent = 0]]]]] ) Creates and displays a configurable dialog box that accepts credentials information from a user (Requires: #include ) -_WinAPI_ShellUserAuthenticationDlgEx ( $sCaption, $sMessage, $sUser, $sPassword [, $iFlags = 0 [, $iAuthError = 0 [, $bSave = False [, $iPackage = 0 [, $hParent = 0]]]]] ) Creates and displays a configurable dialog box that accepts credentials information from a user (Requires: #include ) -_WinAPI_ShortToWord ( $iValue ) Converts a value of type SHORT to a value of type WORD (Requires: #include ) -_WinAPI_ShowCaret ( $hWnd ) Makes the caret visible on the screen at the caret's current position (Requires: #include ) -_WinAPI_ShowCursor ( $bShow ) Displays or hides the cursor (Requires: #include ) -_WinAPI_ShowError ( $sText [, $bExit = True] ) Displays an error message box with an optional exit (Requires: #include ) -_WinAPI_ShowLastError ( [$sText = '' [, $bAbort = False [, $iLanguage = 0]]] ) Shows the last error code and message (Requires: #include ) -_WinAPI_ShowMsg ( $sText ) Displays an "Information" message box (Requires: #include ) -_WinAPI_ShowOwnedPopups ( $hWnd, $bShow ) Shows or hides all pop-up windows owned by the specified window (Requires: #include ) -_WinAPI_ShowWindow ( $hWnd [, $iCmdShow = 5] ) Sets the specified window's show state (Requires: #include ) -_WinAPI_ShutdownBlockReasonCreate ( $hWnd, $sText ) Indicates that the system cannot be shut down and sets a reason string to be displayed to the user if system shutdown is initiated (Requires: #include ) -_WinAPI_ShutdownBlockReasonDestroy ( $hWnd ) Indicates that the system can be shut down and frees the reason string (Requires: #include ) -_WinAPI_ShutdownBlockReasonQuery ( $hWnd ) Retrieves the reason string set by the _WinAPI_ShutdownBlockReasonCreate() function (Requires: #include ) -_WinAPI_SizeOfResource ( $hInstance, $hResource ) Returns the size, in bytes, of the specified resource (Requires: #include ) -_WinAPI_StretchBlt ( $hDestDC, $iXDest, $iYDest, $iWidthDest, $iHeightDest, $hSrcDC, $iXSrc, $iYSrc, $iWidthSrc, $iHeightSrc, $iRop ) Copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle (Requires: #include ) -_WinAPI_StretchDIBits ( $hDestDC, $iXDest, $iYDest, $iWidthDest, $iHeightDest, $iXSrc, $iYSrc, $iWidthSrc, $iHeightSrc, $tBITMAPINFO, $iUsage, $pBits, $iRop ) Copies the color data for a rectangle of pixels in a DIB, JPEG, or PNG image to the specified destination rectangle, stretching or compressing the rows and columns by using the specified raster operation (Requires: #include ) -_WinAPI_StrFormatByteSize ( $iSize ) Converts a numeric value into a string that represents the number expressed as a size value in bytes, kilobytes, megabytes, or gigabytes (Requires: #include ) -_WinAPI_StrFormatByteSizeEx ( $iSize ) Converts a numeric value into a string that represents the number expressed as separated groups of digits to the left of the decimal (Requires: #include ) -_WinAPI_StrFormatKBSize ( $iSize ) Converts a numeric value into a string that represents the number expressed as a size value in kilobytes (Requires: #include ) -_WinAPI_StrFromTimeInterval ( $iTime [, $iDigits = 7] ) Converts a time interval to a string (Requires: #include ) -_WinAPI_StringFromGUID ( $tGUID ) Converts a binary GUID to string form (Requires: #include ) -_WinAPI_StringLenA ( Const ByRef $tString ) Calculates the size of ANSI string (Requires: #include ) -_WinAPI_StringLenW ( Const ByRef $tString ) Calculates the size of wide string (Requires: #include ) -_WinAPI_StrLen ( $pString [, $bUnicode = True] ) Returns the length of the specified string (Requires: #include ) -_WinAPI_StrokeAndFillPath ( $hDC ) Closes any open figures in a path, strokes the outline of the path, and fills its interior (Requires: #include ) -_WinAPI_StrokePath ( $hDC ) Renders the specified path by using the current pen (Requires: #include ) -_WinAPI_StructToArray ( $tStruct [, $iItems = 0] ) Converts the structure to the array of strings (Requires: #include ) -_WinAPI_SubLangId ( $iLngID ) Extract sublanguage id from a language id (Requires: #include ) -_WinAPI_SubtractRect ( $tRECT1, $tRECT2 ) Determines the coordinates of a rectangle formed by subtracting one rectangle from another (Requires: #include ) -_WinAPI_SwapDWord ( $iValue ) Converts a ULONG from little-endian to big-endian, and vice versa (Requires: #include ) -_WinAPI_SwapQWord ( $iValue ) Converts a ULONGLONG from little-endian to big-endian, and vice versa (Requires: #include ) -_WinAPI_SwapWord ( $iValue ) Converts a USHORT from little-endian to big-endian, and vice versa (Requires: #include ) -_WinAPI_SwitchColor ( $iColor ) Converts a color from BGR to RGB and vice versa (Requires: #include ) -_WinAPI_SwitchDesktop ( $hDesktop ) Makes the specified desktop visible and activates it (Requires: #include ) -_WinAPI_SwitchToThisWindow ( $hWnd [, $bAltTab = False] ) Switches the focus to a specified window and bring it to the foreground (Requires: #include ) -_WinAPI_SystemParametersInfo ( $iAction [, $iParam = 0 [, $vParam = 0 [, $iWinIni = 0]]] ) Retrieves or sets the value of one of the system-wide parameters (Requires: #include ) -_WinAPI_TabbedTextOut ( $hDC, $iX, $iY, $sText [, $aTab = 0 [, $iStart = 0 [, $iEnd = -1 [, $iOrigin = 0]]]] ) Writes a character string at a specified location and expanding tabs to the specified tab-stop positions (Requires: #include ) -_WinAPI_TerminateJobObject ( $hJob [, $iExitCode = 0] ) Terminates all processes currently associated with the job (Requires: #include ) -_WinAPI_TerminateProcess ( $hProcess [, $iExitCode = 0] ) Terminates the specified process and all of its threads (Requires: #include ) -_WinAPI_TextOut ( $hDC, $iX, $iY, $sText ) Writes a string at the specified location, using the currently selected font, background color, and text color (Requires: #include ) -_WinAPI_TileWindows ( $aWnds [, $tRECT = 0 [, $hParent = 0 [, $iFlags = 0 [, $iStart = 0 [, $iEnd = -1]]]]] ) Tiles the specified child windows of the specified parent window (Requires: #include ) -_WinAPI_TrackMouseEvent ( $hWnd, $iFlags [, $iTime = -1] ) Posts messages when the mouse pointer leaves a window or hovers over a window for a specified amount of time (Requires: #include ) -_WinAPI_TransparentBlt ( $hDestDC, $iXDest, $iYDest, $iWidthDest, $iHeightDest, $hSrcDC, $iXSrc, $iYSrc, $iWidthSrc, $iHeightSrc, $iRGB ) Performs a bit-block transfer of the color data corresponding to a rectangle of pixels (Requires: #include ) -_WinAPI_TwipsPerPixelX ( ) Returns the width of a pixel, in twips (Requires: #include ) -_WinAPI_TwipsPerPixelY ( ) Returns the height of a pixel, in twips (Requires: #include ) -_WinAPI_UnhookWindowsHookEx ( $hHook ) Removes a hook procedure installed in a hook chain by the _WinAPI_SetWindowsHookEx function (Requires: #include ) -_WinAPI_UnhookWinEvent ( $hEventHook ) Removes an event hook function (Requires: #include ) -_WinAPI_UnionRect ( $tRECT1, $tRECT2 ) Creates the union of two rectangles (Requires: #include ) -_WinAPI_UnionStruct ( $tStruct1, $tStruct2 [, $sStruct = ''] ) Creates the structure of two structures (Requires: #include ) -_WinAPI_UniqueHardwareID ( [$iFlags = 0] ) Generates a unique hardware identifier (ID) for local computer (Requires: #include ) -_WinAPI_UnloadKeyboardLayout ( $hLocale ) Unloads an input locale identifier (Requires: #include ) -_WinAPI_UnlockFile ( $hFile, $iOffset, $iLength ) Unlocks a region in an open file (Requires: #include ) -_WinAPI_UnmapViewOfFile ( $pAddress ) Unmaps a mapped view of a file from the calling process's address space (Requires: #include ) -_WinAPI_UnregisterApplicationRestart ( ) Removes the active instance of an application from the restart list (Requires: #include ) -_WinAPI_UnregisterClass ( $sClass [, $hInstance = 0] ) Unregisters a window class, freeing the memory required for the class (Requires: #include ) -_WinAPI_UnregisterHotKey ( $hWnd, $iID ) Frees a hot key previously registered by the calling thread (Requires: #include ) -_WinAPI_UnregisterPowerSettingNotification ( $hNotify ) Unregisters the power setting notification (Requires: #include ) -_WinAPI_UpdateLayeredWindow ( $hWnd, $hDestDC, $tPTDest, $tSize, $hSrcDC, $tPTSrce, $iRGB, $tBlend, $iFlags ) Updates the position, size, shape, content, and translucency of a layered window (Requires: #include ) -_WinAPI_UpdateLayeredWindowEx ( $hWnd, $iX, $iY, $hBitmap [, $iOpacity = 255 [, $bDelete = False]] ) Updates a bitmap translucency of a layered window (Requires: #include ) -_WinAPI_UpdateLayeredWindowIndirect ( $hWnd, $tULWINFO ) Updates the position, size, shape, content, and translucency of a layered window (Requires: #include ) -_WinAPI_UpdateResource ( $hUpdate, $sType, $sName, $iLanguage, $pData, $iSize ) Adds, deletes, or replaces a resource in a portable executable (PE) file (Requires: #include ) -_WinAPI_UpdateWindow ( $hWnd ) Updates the client area of a window by sending a WM_PAINT message to the window (Requires: #include ) -_WinAPI_UrlApplyScheme ( $sUrl [, $iFlags = 1] ) Determines a scheme for a specified URL string, and returns a string with an appropriate prefix (Requires: #include ) -_WinAPI_UrlCanonicalize ( $sUrl, $iFlags ) Converts a URL string into canonical form (Requires: #include ) -_WinAPI_UrlCombine ( $sUrl, $sPart [, $iFlags = 0] ) Combines the base an relative URLs in canonical form (Requires: #include ) -_WinAPI_UrlCompare ( $sUrl1, $sUrl2 [, $bIgnoreSlash = False] ) Makes a case-sensitive comparison of two URL strings (Requires: #include ) -_WinAPI_UrlCreateFromPath ( $sFilePath ) Converts a Microsoft MS-DOS path to a canonicalized URL (Requires: #include ) -_WinAPI_UrlFixup ( $sUrl ) Attempts to correct a URL whose protocol identifier is incorrect (Requires: #include ) -_WinAPI_UrlGetPart ( $sUrl, $iPart ) Retrieves a specified part from the URL (Requires: #include ) -_WinAPI_UrlHash ( $sUrl [, $iLength = 32] ) Hashes a URL string (Requires: #include ) -_WinAPI_UrlIs ( $sUrl [, $iType = 0] ) Tests whether or not a URL is a specified type (Requires: #include ) -_WinAPI_UserHandleGrantAccess ( $hObject, $hJob, $bGrant ) Grants or denies access to a handle to a User object to a job that has a user-interface restriction (Requires: #include ) -_WinAPI_ValidateRect ( $hWnd [, $tRECT = 0] ) Removes a rectangle from the current update region of the specified window (Requires: #include ) -_WinAPI_ValidateRgn ( $hWnd [, $hRgn = 0] ) Removes a region from the current update region of the specified window (Requires: #include ) -_WinAPI_VerQueryRoot ( $pData ) Retrieves the fixed version information from the specified version-information resource (Requires: #include ) -_WinAPI_VerQueryValue ( $pData [, $sValues = ''] ) Retrieves the non-fixed (strings) version information from the specified version-information resource (Requires: #include ) -_WinAPI_VerQueryValueEx ( $hModule [, $sValues = '' [, $iLanguage = 0x0400]] ) Retrieves the text information from the version-information resource of the specified binary module (Requires: #include ) -_WinAPI_WaitForInputIdle ( $hProcess [, $iTimeout = -1] ) Waits until a process is waiting for user input with no input pending, or a time out (Requires: #include ) -_WinAPI_WaitForMultipleObjects ( $iCount, $paHandles [, $bWaitAll = False [, $iTimeout = -1]] ) Waits until one or all of the specified objects are in the signaled state (Requires: #include ) -_WinAPI_WaitForSingleObject ( $hHandle [, $iTimeout = -1] ) Waits until the specified object is in the signaled state (Requires: #include ) -_WinAPI_WideCharToMultiByte ( $vUnicode [, $iCodePage = 0 [, $bRetString = True]] ) Converts a Unicode string to a multibyte string (Requires: #include ) -_WinAPI_WidenPath ( $hDC ) Redefines the current path as the area that would be painted if the path were stroked (Requires: #include ) -_WinAPI_WindowFromDC ( $hDC ) Retrieves a handle to the window associated with the specified display device context (DC) (Requires: #include ) -_WinAPI_WindowFromPoint ( ByRef $tPoint ) Retrieves the handle of the window that contains the specified point (Requires: #include ) -_WinAPI_WordToShort ( $iValue ) Converts a value of type WORD to a value of type SHORT (Requires: #include ) -_WinAPI_Wow64EnableWow64FsRedirection ( $bEnable ) Enables or disables file system redirection for the calling thread (Requires: #include ) -_WinAPI_WriteConsole ( $hConsole, $sText ) Writes a character string to a console screen buffer (Requires: #include ) -_WinAPI_WriteFile ( $hFile, $pBuffer, $iToWrite, ByRef $iWritten [, $tOverlapped = 0] ) Writes data to a file at the position specified by the file pointer (Requires: #include ) -_WinAPI_WriteProcessMemory ( $hProcess, $pBaseAddress, $pBuffer, $iSize, ByRef $iWritten [, $sBuffer = "ptr"] ) Writes memory in a specified process (Requires: #include ) -_WinAPI_ZeroMemory ( $pMemory, $iLength ) Fills a block of memory with zeros (Requires: #include ) -_WinNet_AddConnection ( $sLocalName, $sRemoteName [, $sPassword = 0] ) Connects a local device to a network resource (Requires: #include ) -_WinNet_AddConnection2 ( $sLocalName, $sRemoteName [, $sUserName = 0 [, $sPassword = 0 [, $iType = 1 [, $iOptions = 1]]]] ) Connects a local device to a network resource (Requires: #include ) -_WinNet_AddConnection3 ( $hWnd, $sLocalName, $sRemoteName [, $sUserName = 0 [, $sPassword = 0 [, $iType = 1 [, $iOptions = 1]]]] ) Connects a local device to a network resource (Requires: #include ) -_WinNet_CancelConnection ( $sName [, $bForce = True] ) Cancels an existing network connection (Requires: #include ) -_WinNet_CancelConnection2 ( $sName [, $bUpdate = True [, $bForce = True]] ) Cancels an existing network connection (Requires: #include ) -_WinNet_CloseEnum ( $hEnum ) Ends a network resource enumeration started by a call to _WinNet_OpenEnum() (Requires: #include ) -_WinNet_ConnectionDialog ( $hWnd ) Starts a general browsing dialog box for connecting to network resources (Requires: #include ) -_WinNet_ConnectionDialog1 ( $hWnd [, $sRemoteName = "" [, $iFlags = 2]] ) Starts a general browsing dialog box for connecting to network resources (Requires: #include ) -_WinNet_DisconnectDialog ( $hWnd ) Starts a general browsing dialog box for disconnecting from network resources (Requires: #include ) -_WinNet_DisconnectDialog1 ( $hWnd, $sLocalName [, $sRemoteName = "" [, $iFlags = 1]] ) Starts a general browsing dialog box for disconnecting from network resources (Requires: #include ) -_WinNet_EnumResource ( $hEnum, ByRef $iCount, $pBuffer, ByRef $iBufSize ) Continues an enumeration of network resources (Requires: #include ) -_WinNet_GetConnection ( $sLocalName ) Retrieves the name of the network resource associated with a local device (Requires: #include ) -_WinNet_GetConnectionPerformance ( $sLocalName, $sRemoteName ) Returns information about the performance of a network connection resource (Requires: #include ) -_WinNet_GetLastError ( ByRef $iError, ByRef $sError, ByRef $sName ) Retrieves the most recent extended error (Requires: #include ) -_WinNet_GetNetworkInformation ( $sName ) Returns extended information about a specific network provider (Requires: #include ) -_WinNet_GetProviderName ( $iType ) Obtains the provider name for a specific type of network (Requires: #include ) -_WinNet_GetResourceInformation ( $sRemoteName [, $sProvider = "" [, $iType = 0]] ) Identifies the network provider that owns the resource (Requires: #include ) -_WinNet_GetResourceParent ( $sRemoteName, $sProvider [, $iType = 0] ) Returns the parent of a network resource in the network browse hierarchy (Requires: #include ) -_WinNet_GetUniversalName ( $sLocalPath ) Converts drived based path to universal form (Requires: #include ) -_WinNet_GetUser ( $sName ) Retrieves the default user name, or the user name used to establish a connection (Requires: #include ) -_WinNet_OpenEnum ( $iScope, $iType, $iUsage, $tResource, ByRef $hEnum ) Starts an enumeration of network resources or existing connections (Requires: #include ) -_WinNet_RestoreConnection ( [$sDevice = "" [, $hWnd = 0 [, $bUseUI = True]]] ) Restores the connection to a network resource (Requires: #include ) -_WinNet_UseConnection ( $hWnd, $sLocalName, $sRemoteName [, $sUserName = 0 [, $sPassword = 0 [, $iType = 1 [, $iOptions = 1]]]] ) Connects a local device to a network resource (Requires: #include ) -_Word_Create ( [$bVisible = True [, $bForceNew = False]] ) Connects to an existing Word instance or creates a new Word application object (Requires: #include ) -_Word_DocAdd ( $oAppl [, $iDocumentType = $WdNewBlankDocument [, $sDocumentTemplate = "" [, $bNewTemplate = False]]] ) Adds a new or empty document to the specified Word application (Requires: #include ) -_Word_DocAttach ( $oAppl, $sString [, $sMode = "FilePath" [, $iCase = 0]] ) Attaches to the first instance of a Word document where the search string matches based on the selected mode (Requires: #include ) -_Word_DocClose ( $oDoc [, $iSaveChanges = $WdDoNotSaveChanges [, $iOriginalFormat = $WdOriginalDocumentFormat]] ) Closes the specified Word document (Requires: #include ) -_Word_DocExport ( $oDoc, $sFileName [, $iFormat = $WdExportFormatPDF [, $iRange = $WdExportAllDocument [, $iFrom = Default [, $iTo = Default [, $bOpenAfterExport = False [, $bIncludeProperties = True [, $iCreateBookmarks = Default [, $bUseISO19005 = False]]]]]]]] ) Exports the document or a range as PDF or XPS (Requires: #include ) -_Word_DocFind ( $oDoc [, $sFindText = "" [, $vSearchRange = 0 [, $oFindRange = Default [, $bForward = True [, $bMatchCase = False [, $bMatchWholeWord = False [, $bMatchWildcards = False [, $bMatchSoundsLike = False [, $bMatchAllWordForms = False [, $bFormat = False]]]]]]]]]] ) Runs or repeats the specified find operation (Requires: #include ) -_Word_DocFindReplace ( $oDoc [, $sFindText = "" [, $sReplaceWith = "" [, $iReplace = $WdReplaceAll [, $vSearchRange = 0 [, $bMatchCase = False [, $bMatchWholeWord = False [, $bMatchWildcards = False [, $bMatchSoundsLike = False [, $bMatchAllWordForms = False [, $bForward = True [, $iWrap = $WdFindContinue [, $bFormat = False]]]]]]]]]]]] ) Runs the specified find and replace operation (Requires: #include ) -_Word_DocGet ( $oAppl [, $vIndex = -1] ) Returns a collection object containing all documents or an object for a single document (Requires: #include ) -_Word_DocLinkAdd ( $oDoc [, $oAnchor = Default [, $sAddress = Default [, $sSubAddress = Default [, $sScreenTip = Default [, $sTextToDisplay = Default [, $sTarget = Default]]]]]] ) Adds a hyperlink to the document (Requires: #include ) -_Word_DocLinkGet ( $oDoc [, $iIndex = Default] ) Returns a collection object containing all links in the document or a single link object (Requires: #include ) -_Word_DocOpen ( $oAppl, $sFilePath [, $bConfirmConversions = False [, $iFormat = $WdOpenFormatAuto [, $bReadOnly = False [, $bRevert = False [, $bAddToRecentFiles = False [, $sOpenPassword = "" [, $sWritePassword = ""]]]]]]] ) Opens a Word document (Requires: #include ) -_Word_DocPictureAdd ( $oDoc, $sFilePath [, $bLinkToFile = False [, $bSaveWithDocument = False [, $oRange = 0]]] ) Adds a picture to the document (Requires: #include ) -_Word_DocPrint ( $oDoc [, $bBackground = False [, $iCopies = 1 [, $iOrientation = -1 [, $bCollate = True [, $sPrinter = "" [, $iRange = $WdPrintAllDocument [, $vFrom = 0 [, $vTo = 0 [, $sPages = "" [, $iPageType = $WdPrintAllPages [, $iItem = $WdPrintDocumentContent]]]]]]]]]]] ) Prints all or parts of the specified document (Requires: #include ) -_Word_DocRangeSet ( $oDoc, $vRange [, $iStartUnit = Default [, $iStartCount = Default [, $iEndUnit = Default [, $iEndCount = Default]]]] ) Sets or modifies a range in a document (Requires: #include ) -_Word_DocSave ( $oDoc ) Saves the specified Word document (Requires: #include ) -_Word_DocSaveAs ( $oDoc [, $sFileName = Default [, $iFileFormat = $WdFormatDocument [, $bReadOnlyRecommended = False [, $bAddToRecentFiles = True [, $sPassword = "" [, $sWritePassword = ""]]]]]] ) Saves the specified Word document with a new name or format (Requires: #include ) -_Word_DocTableRead ( $oDoc, $vTable [, $iIndexBase = Default [, $sDelimiter = Default]] ) Reads a Word table and returns the content as a two-dimensional array (Requires: #include ) -_Word_DocTableWrite ( $oRange, ByRef $aArray [, $iIndexBase = Default [, $sDelimiter = Default]] ) Writes a one or two dimensional array to a Word table (Requires: #include ) -_Word_Quit ( $oAppl [, $iSaveChanges = $WdDoNotSaveChanges [, $iOriginalFormat = $WdWordDocument [, $bForceClose = False]]] ) Closes all documents, the Word application and removes the object reference to it (Requires: #include ) diff --git a/build/api/au3.autoit3wrapper.api b/build/api/au3.autoit3wrapper.api deleted file mode 100644 index 1c80cdc18..000000000 --- a/build/api/au3.autoit3wrapper.api +++ /dev/null @@ -1,63 +0,0 @@ -#AutoIt3Wrapper_Add_Constants?1 -#AutoIt3Wrapper_Au3Check_Parameters?1 -#AutoIt3Wrapper_Au3Check_Stop_OnWarning?1 -#AutoIt3Wrapper_AutoIt3Dir?1 -#AutoIt3Wrapper_Aut2Exe?1 -#AutoIt3Wrapper_AutoIt3?1 -#AutoIt3Wrapper_Change2CUI?1 -#AutoIt3Wrapper_Compile_Both?1 -#AutoIt3Wrapper_Compression?1 -#AutoIt3wrapper_EndIf?1 -#AutoIt3Wrapper_Icon?1 -#AutoIt3wrapper_If_Compile?1 -#AutoIt3wrapper_If_Run?1 -#Autoit3wrapper_Jump_to_First_Error?1 -#AutoIt3Wrapper_OutFile?1 -#AutoIt3Wrapper_OutFile_Type?1 -#AutoIt3Wrapper_OutFile_X64?1 -#AutoIt3Wrapper_PlugIn_Funcs?1 -#AutoIt3Wrapper_Res_Comment?1 -#Autoit3Wrapper_Res_Compatibility?1 -#AutoIt3Wrapper_Res_Description?1 -#AutoIt3Wrapper_Res_Field?1 -#AutoIt3Wrapper_Res_File_Add?1 -#AutoIt3Wrapper_Res_FileVersion?1 -#AutoIt3Wrapper_Res_FileVersion_AutoIncrement?1 -#AutoIt3Wrapper_Res_Fileversion_First_Increment?1 -#AutoIt3Wrapper_Res_HiDpi?1 -#AutoIt3Wrapper_Res_Icon_Add?1 -#AutoIt3Wrapper_Res_Language?1 -#AutoIt3Wrapper_Res_LegalCopyright?1 -#AutoIt3Wrapper_Res_ProductVersion?1 -#AutoIt3Wrapper_Res_requestedExecutionLevel?1 -#AutoIt3Wrapper_Res_Remove?1 -#AutoIt3Wrapper_Res_SaveSource?1 -#AutoIt3Wrapper_Run_After?1 -#AutoIt3Wrapper_Run_After_Admin?1 -#AutoIt3Wrapper_Run_Au3Check?1 -#AutoIt3Wrapper_Run_Au3Stripper?1 -#AutoIt3Wrapper_Run_Before?1 -#AutoIt3Wrapper_Run_Before_Admin?1 -#AutoIt3Wrapper_Run_Debug?1 -#AutoIt3Wrapper_Run_Debug_Mode?1 -#AutoIt3Wrapper_Run_SciTE_Minimized?1 -#AutoIt3Wrapper_Run_SciTE_OutputPane_Minimized?1 -#AutoIt3Wrapper_Run_Tidy?1 -#AutoIt3Wrapper_ShowGUI?1 -#AutoIt3Wrapper_ShowProgress?1 -#AutoIt3Wrapper_Testing?1 -#AutoIt3Wrapper_Tidy_Stop_OnError?1 -#AutoIt3Wrapper_UPX_Parameters?1 -#AutoIt3Wrapper_UseUPX?1 -#AutoIt3Wrapper_UseX64?1 -#AutoIt3Wrapper_Version?1 -#AutoIt3Wrapper_Versioning?1 -#AutoIt3Wrapper_Versioning_Parameters?1 -#Au3Stripper_Ignore_Funcs?1 -#Au3Stripper_Ignore_Variables?1 -#Au3Stripper_Off?1 -#Au3Stripper_On?1 -#Au3Stripper_Parameters?1 -#Tidy_Off?1 -#Tidy_On?1 -#Tidy_Parameters?1 diff --git a/build/api/iface.api b/build/api/iface.api deleted file mode 100644 index 4021022eb..000000000 --- a/build/api/iface.api +++ /dev/null @@ -1,670 +0,0 @@ -editor.Anchor -editor.AutoCAutoHide -editor.AutoCCancelAtStart -editor.AutoCChooseSingle -editor.AutoCDropRestOfWord -editor.AutoCFillUps -editor.AutoCIgnoreCase -editor.AutoCSeparator -editor.AutoCTypeSeparator -editor.BackSpaceUnIndents -editor.BufferedDraw -editor.CallTipBack -editor.CallTipFore -editor.CallTipForeHlt -editor.CaretFore -editor.CaretLineBack -editor.CaretLineVisible -editor.CaretPeriod -editor.CaretWidth -editor.CharAt -editor.CodePage -editor.Column -editor.ControlCharSymbol -editor.CurrentPos -editor.Cursor -editor.DirectFunction -editor.DirectPointer -editor.DocPointer -editor.EdgeColour -editor.EdgeColumn -editor.EdgeMode -editor.EndAtLastLine -editor.EndStyled -editor.FirstVisibleLine -editor.Focus -editor.FoldExpanded -editor.FoldLevel -editor.FoldParent -editor.HighlightGuide -editor.HotspotActiveBack -editor.HotspotActiveFore -editor.HotspotActiveUnderline -editor.HotspotSingleLine -editor.HScrollBar -editor.Indent -editor.IndentationGuides -editor.IndicFore -editor.IndicStyle -editor.KeyWords -editor.LastChild -editor.LayoutCache -editor.Lexer -editor.LexerLanguage -editor.LineCount -editor.LineEndPosition -editor.LineIndentation -editor.LineIndentPosition -editor.LinesOnScreen -editor.LineState -editor.MarginLeft -editor.MarginMaskN -editor.MarginRight -editor.MarginSensitiveN -editor.MarginTypeN -editor.MarginWidthN -editor.MaxLineState -editor.ModEventMask -editor.Modify -editor.MouseDownCaptures -editor.MouseDwellTime -editor.Overtype -editor.PrintColourMode -editor.PrintMagnification -editor.PrintWrapMode -editor.Property -editor.ReadOnly -editor.ScrollWidth -editor.SearchFlags -editor.SelectionEnd -editor.SelectionIsRectangle -editor.SelectionMode -editor.SelectionStart -editor.Status -editor.StyleAt -editor.StyleBack -editor.StyleBits -editor.StyleBold -editor.StyleCase -editor.StyleChangeable -editor.StyleCharacter -editor.StyleClearAll -editor.StyleEOLFilled -editor.StyleFont -editor.StyleFore -editor.StyleHotSpot -editor.StyleItalic -editor.StyleSize -editor.StyleUnderline -editor.StyleVisible -editor.TabIndents -editor.TabWidth -editor.TarEnd -editor.TarStart -editor.TextLength -editor.TwoPhaseDraw -editor.Uabs -editor.UndoCollection -editor.UsePalette -editor.ViewEOL -editor.ViewWS -editor.VScrollBar -editor.WhitespaceChars -editor.WordChars -editor.WrapMode -editor.WrapStartIndent -editor.WrapVisualFlags -editor.WrapVisualFlagsLocation -editor.XOff -editor:AddRefDocument(, int doc) Create a new document object. Starts with reference count of 1 and not selected into editor. Extend life of document. -editor:AddStyledText(int length, cells c) Add array of cells to document. -editor:AddText(int length, string text) Add text to the document at current position. -editor:Allocate(int bytes,) Enlarge the document to a particular size of text bytes. -editor:AppendText(int length, string text) Append a string to the end of the document without changing the selection. -editor:AssignCmdKey(keymod km, int msg) When key+modifier combination km is pressed perform msg. -editor:AutoCActive(,) Is there an auto-completion list visible? -editor:AutoCCancel(,) Remove the auto-completion list from the screen. -editor:AutoCComplete(,) User has selected an item so remove the list and insert the selection. -editor:AutoCGetCurrent(,) Get currently selected item position in the auto-completion list -editor:AutoCPosStart(,) Retrieve the position of the caret when the auto-completion list was displayed. -editor:AutoCSelect(, string text) Select the item in the auto-completion list that starts with a string. -editor:AutoCShow(int lenEntered, string itemList) Display a auto-completion list. The lenEntered parameter indicates how many characters before the caret should be used to provide context. -editor:AutoCStops(, string characterSet) Define a set of character that when typed cancel the auto-completion list. -editor:BackTab(,) Dedent the selected lines. -editor:BeginUndoAction(,) Start a sequence of actions that is undone and redone as a unit. May be nested. -editor:BraceBadLight(position pos,) Highlight the character at a position indicating there is no matching brace. -editor:BraceHighlight(position pos1, position pos2) Highlight the characters at two positions. -editor:BraceMatch(position pos,) Find the position of a matching brace or INVALID_POSITION if no match. -editor:CallTipActive(,) Is there an active call tip? -editor:CallTipCancel(,) Remove the call tip from the screen. -editor:CallTipPosStart(,) Retrieve the position where the caret was before displaying the call tip. -editor:CallTipSetHlt(int start, int end) Highlight a segment of the definition. -editor:CallTipShow(position pos, string definition) Show a call tip containing a definition near position pos. -editor:Cancel(,) Cancel any modes such as call tip or auto-completion list display. -editor:CanPaste(,) Will a paste succeed? -editor:CanRedo(,) Are there any redoable actions in the undo history? -editor:CanUndo(,) Are there any undoable actions in the undo history? -editor:CharLeft(,) Move caret left one character. -editor:CharLeftExtend(,) Move caret left one character extending selection to new caret position. -editor:CharLeftRectExtend(,) Move caret left one character, extending rectangular selection to new caret position. -editor:CharRight(,) Move caret right one character. -editor:CharRightExtend(,) Move caret right one character extending selection to new caret position. -editor:CharRightRectExtend(,) Move caret right one character, extending rectangular selection to new caret position. -editor:ChooseCaretX(,) Set the last x chosen value to be the caret x position. -editor:Clear(,) Clear the selection. -editor:ClearAll(,) Delete all text in the document. -editor:ClearAllCmdKeys(,) Drop all key mappings. -editor:ClearCmdKey(keymod km,) When key+modifier combination km is pressed do nothing. -editor:ClearDocumentStyle(,) Set all style bytes to 0, remove all folding information. -editor:ClearRegisteredImages(,) Clear all the registered XPM images. -editor:Colourise(position start, position end) Colourise a segment of the document using the current lexing language. -editor:ConvertEOLs(int eolMode,) Convert all line endings in the document to one mode. -editor:Copy(,) Copy the selection to the clipboard. -editor:CopyRange(position start, position end) Copy a range of text to the clipboard. Positions are clipped into the document. -editor:CopyText(int length, string text) Copy argument text to the clipboard. -editor:CreateDocument(,) Create a new document object. Starts with reference count of 1 and not selected into editor. -editor:Cut(,) Cut the selection to the clipboard. -editor:DeleteBack(,) Delete the selection or if no selection, the character before the caret. -editor:DeleteBackNotLine(,) Delete the selection or if no selection, the character before the caret. Will not delete the character before at the start of a line. -editor:DelLineLeft(,) Delete back from the current position to the start of the line. -editor:DelLineRight(,) Delete forwards from the current position to the end of the line. -editor:DelWordLeft(,) Delete the word to the left of the caret. -editor:DelWordRight(,) Delete the word to the right of the caret. -editor:DocLineFromVisible(int lineDisplay,) Find the document line of a display line taking hidden lines into account. -editor:DocumentEnd(,) Move caret to last position in document. -editor:DocumentEndExtend(,) Move caret to last position in document extending selection to new caret position. -editor:DocumentStart(,) Move caret to first position in document. -editor:DocumentStartExtend(,) Move caret to first position in document extending selection to new caret position. -editor:EditToggleOvertype(,) Switch from insert to overtype mode or the reverse. -editor:EmptyUndoBuffer(,) Delete the undo history. -editor:EndUndoAction(,) End a sequence of actions that is undone and redone as a unit. -editor:EnsureVisible(int line,) Ensure a particular line is visible by expanding any header line hiding it. -editor:EnsureVisibleEnforcePolicy(int line,) Ensure a particular line is visible by expanding any header line hiding it. Use the currently set visibility policy to determine which range to display. -editor:FindText(int flags, findtext ft) Find some text in the document. -editor:FormatRange(bool draw, formatrange fr) On Windows, will draw the document into a display context such as a printer. -editor:FormFeed(,) Insert a Form Feed character. -editor:GetCurLine(int length, stringresult text) Retrieve the text of the line containing the caret. Returns the index of the caret on the line. -editor:GetLine(int line, stringresult text) Retrieve the contents of a line. Returns the length of the line. -editor:GetLineSelEndPosition(int line,) Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). -editor:GetLineSelStartPosition(int line,) Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). -editor:GetSelText(, stringresult text) Retrieve the selected text. Return the length of the text. -editor:GetStyledText(, textrange tr) Retrieve a buffer of cells. Returns the number of bytes in the buffer not including terminating NULs. -editor:GetText(int length, stringresult text) Retrieve all the text in the document. Returns number of characters retrieved. -editor:GetTextRange(, textrange tr) Retrieve a range of text. Return the length of the text. -editor:GotoLine(int line,) Set caret to start of a line and ensure it is visible. -editor:GotoPos(position pos,) Set caret to a position and ensure it is visible. -editor:GrabFocus(,) Set the focus to this Scintilla widget. GTK+ Specific. -editor:HideLines(int lineStart, int lineEnd) Make a range of lines invisible. -editor:HideSelection(bool normal,) Draw the selection in normal style or with selection highlighted. -editor:Home(,) Move caret to first position on line. -editor:HomeDisplay(,) Move caret to first position on display line. -editor:HomeDisplayExtend(,) Move caret to first position on display line extending selection to new caret position. -editor:HomeExtend(,) Move caret to first position on line extending selection to new caret position. -editor:HomeRectExtend(,) Move caret to first position on line, extending rectangular selection to new caret position. -editor:HomeWrap(,) -editor:HomeWrapExtend(,) -editor:InsertText(position pos, string text) Insert string at a position. -editor:LineCopy(,) Copy the line containing the caret. -editor:LineCut(,) Cut the line containing the caret. -editor:LineDelete(,) Delete the line containing the caret. -editor:LineDown(,)# Start of key messages Move caret down one line. -editor:LineDownExtend(,) Move caret down one line extending selection to new caret position. -editor:LineDownRectExtend(,)# RectExtended rectangular selection moves Move caret down one line, extending rectangular selection to new caret position. -editor:LineDuplicate(,) Duplicate the current line. -editor:LineEnd(,) Move caret to last position on line. -editor:LineEndDisplay(,) Move caret to last position on display line. -editor:LineEndDisplayExtend(,) Move caret to last position on display line extending selection to new caret position. -editor:LineEndExtend(,) Move caret to last position on line extending selection to new caret position. -editor:LineEndRectExtend(,) Move caret to last position on line, extending rectangular selection to new caret position. -editor:LineEndWrap(,) -editor:LineEndWrapExtend(,) -editor:LineFromPosition(position pos,) Retrieve the line containing a position. -editor:LineLength(int line,) How many characters are on a line, not including end of line characters? -editor:LineScroll(int columns, int lines) Scroll horizontally and vertically. -editor:LineScrollDown(,) Scroll the document down, keeping the caret visible. -editor:LineScrollUp(,) Scroll the document up, keeping the caret visible. -editor:LinesJoin(,) Join the lines in the target. -editor:LinesSplit(int pixelWidth,) Split the lines in the target into lines that are less wide than pixelWidth where possible. -editor:LineTranspose(,) Switch the current line with the previous. -editor:LineUp(,) Move caret up one line. -editor:LineUpExtend(,) Move caret up one line extending selection to new caret position. -editor:LineUpRectExtend(,) Move caret up one line, extending rectangular selection to new caret position. -editor:LoadLexerLibrary(, string path) Load a lexer library (dll / so). -editor:LowerCase(,) Transform the selection to lower case. -editor:MarkerAdd(int line, int markerNumber) Add a marker to a line, returning an ID which can be used to find or delete the marker. -editor:MarkerDefine(int markerNumber, int markerSymbol) Set the symbol used for a particular marker number. -editor:MarkerDefinePixmap(int markerNumber, string pixmap) Define a marker from a pixmap. -editor:MarkerDelete(int line, int markerNumber) Delete a marker from a line. -editor:MarkerDeleteAll(int markerNumber,) Delete all markers with a particular number from all lines. -editor:MarkerDeleteHandle(int handle,) Delete a marker. -editor:MarkerGet(int line,) Get a bit mask of all the markers set on a line. -editor:MarkerLineFromHandle(int handle,) Retrieve the line number at which a particular marker is located. -editor:MarkerNext(int lineStart, int markerMask) Find the next line after lineStart that includes a marker in mask. -editor:MarkerPrevious(int lineStart, int markerMask) Find the previous line before lineStart that includes a marker in mask. -editor:MarkerSetBack(int markerNumber, colour back) Set the background colour used for a particular marker number. -editor:MarkerSetFore(int markerNumber, colour fore) Set the foreground colour used for a particular marker number. -editor:MoveCaretInsideView(,) Move the caret inside current view if it's not there already. -editor:NewLine(,) Insert a new line, may use a CRLF, CR or LF depending on EOL mode. -editor:Null(,) Null operation. -editor:PageDown(,) Move caret one page down. -editor:PageDownExtend(,) Move caret one page down extending selection to new caret position. -editor:PageDownRectExtend(,) Move caret one page down, extending rectangular selection to new caret position. -editor:PageUp(,) Move caret one page up. -editor:PageUpExtend(,) Move caret one page up extending selection to new caret position. -editor:PageUpRectExtend(,) Move caret one page up, extending rectangular selection to new caret position. -editor:ParaDown(,) Move caret between paragraphs (delimited by empty lines). -editor:ParaDownExtend(,) Move caret between paragraphs (delimited by empty lines). -editor:ParaUp(,) Move caret between paragraphs (delimited by empty lines). -editor:ParaUpExtend(,) Move caret between paragraphs (delimited by empty lines). -editor:Paste(,) Paste the contents of the clipboard into the document replacing the selection. -editor:PointXFromPosition(, position pos) Retrieve the x value of the point in the window where a position is displayed. -editor:PointYFromPosition(, position pos) Retrieve the y value of the point in the window where a position is displayed. -editor:PositionAfter(position pos,) Given a valid document position, return the next position taking code page into account. Maximum value returned is the last position in the document. -editor:PositionBefore(position pos,) Given a valid document position, return the previous position taking code page into account. Returns 0 if passed 0. -editor:PositionFromLine(int line,) Retrieve the position at the start of a line. -editor:PositionFromPoint(int x, int y) Find the position from a point within the window. -editor:PositionFromPointClose(int x, int y) Find the position from a point within the window but return INVALID_POSITION if not close to text. -editor:Redo(,) Redoes the next action on the undo history. -editor:RegisterImage(int type, string xpmData) Register an XPM image for use in autocompletion lists. -editor:ReleaseDocument(, int doc) Create a new document object. Starts with reference count of 1 and not selected into editor. Extend life of document. Release a reference to the document, deleting document if it fades to black. -editor:ReplaceSel(, string text) Replace the selected text with the argument text. -editor:ReplaceTarget(int length, string text) Replace the target text with the argument text. Text is counted so it can contain NULs. Returns the length of the replacement text. -editor:ReplaceTargetRE(int length, string text) Replace the target text with the argument text after \d processing. Text is counted so it can contain NULs. Looks for \d where d is between 1 and 9 and replaces these with the strings matched in the last search operation which were surrounded by \( and \). Returns the length of the replacement text including any change caused by processing the \d patterns. -editor:ScrollCaret(,) Ensure the caret is visible. -editor:SearchAnchor(,) Sets the current caret position to be the search anchor. -editor:SearchInTarget(int length, string text) Search for a counted string in the target and set the target to the found range. Text is counted so it can contain NULs. Returns length of range or -1 for failure in which case target is not moved. -editor:SearchNext(int flags, string text) Find some text starting at the search anchor. Does not ensure the selection is visible. -editor:SearchPrev(int flags, string text) Find some text starting at the search anchor and moving backwards. Does not ensure the selection is visible. -editor:SelectAll(,) Select all the text in the document. -editor:SetCaretPolicy(int caretPolicy, int caretSlop) CARET_POLICY changed in 1.47 -editor:SetCharsDefault(,) Reset the set of characters for whitespace and word characters to the defaults. -editor:SetFoldFlags(int flags,) Set some style options for folding. -editor:SetFoldMarginColour(bool useSetting, colour back) Set the colours used as a chequerboard pattern in the fold margin -editor:SetFoldMarginHiColour(bool useSetting, colour fore) Set the colours used as a chequerboard pattern in the fold margin -editor:SetSavePoint(,) Remember the current position in the undo history as the position at which the document was saved. -editor:SetSel(position start, position end) Select a range of text. -editor:SetSelBack(bool useSetting, colour back) Set the background colour of the selection and whether to use this setting. -editor:SetSelFore(bool useSetting, colour fore) Set the foreground colour of the selection and whether to use this setting. -editor:SetStyling(int length, int style) Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment. -editor:SetStylingEx(int length, string styles) Set the styles for a segment of the document. -editor:SetText(, string text) Replace the contents of the document with the argument text. -editor:SetVisiblePolicy(int visiblePolicy, int visibleSlop) Constants for use with SetVisiblePolicy, similar to SetCaretPolicy. Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc. -editor:SetWhitespaceBack(bool useSetting, colour back) Set the background colour of all whitespace and whether to use this setting. -editor:SetWhitespaceFore(bool useSetting, colour fore) Set the foreground colour of all whitespace and whether to use this setting. -editor:SetXCaretPolicy(int caretPolicy, int caretSlop) Set the way the caret is kept visible when going sideway. The exclusion zone is given in pixels. -editor:SetYCaretPolicy(int caretPolicy, int caretSlop) Set the way the line the caret is on is kept visible. The exclusion zone is given in lines. -editor:ShowLines(int lineStart, int lineEnd) Make a range of lines visible. -editor:StartRecord(,) Start notifying the container of all key presses and commands. -editor:StartStyling(position pos, int mask) Set the current styling position to pos and the styling mask to mask. The styling mask can be used to protect some bits in each styling byte from modification. -editor:StopRecord(,) Stop notifying the container of all key presses and commands. -editor:StutteredPageDown(,) Move caret to bottom of page, or one page down if already at bottom of page. -editor:StutteredPageDownExtend(,) Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. -editor:StutteredPageUp(,) Move caret to top of page, or one page up if already at top of page. -editor:StutteredPageUpExtend(,) Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. -editor:StyleResetDefault(,) Reset the default style to its state at startup -editor:Tab(,) If selection is empty or all on one line replace the selection with a tab character. If more than one line selected, indent the lines. -editor:TargetFromSelection(,) Make the target range start and end be the same as the selection range start and end. -editor:TextHeight(int line,) Retrieve the height of a particular line of text in pixels. -editor:TextWidth(int style, string text) Measure the pixel width of some text in a particular style. NUL terminated text argument. Does not handle tab or control characters. -editor:ToggleFold(int line,) Switch a header line between expanded and contracted. -editor:Undo(,) Undo one action in the undo history. -editor:UpperCase(,) Transform the selection to upper case. -editor:UsePopUp(bool allowPopUp,) Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button. -editor:UserListShow(int listType, string itemList) Display a list of strings and send notification when user chooses one. -editor:VCHome(,) Move caret to before first visible character on line. If already there move to first character on line. -editor:VCHomeExtend(,) Like VCHome but extending selection to new caret position. -editor:VCHomeRectExtend(,) Move caret to before first visible character on line. If already there move to first character on line. In either case, extend rectangular selection to new caret position. -editor:VCHomeWrap(,) -editor:VCHomeWrapExtend(,) -editor:VisibleFromDocLine(int line,) Find the display line of a document line taking hidden lines into account. -editor:WordEndPosition(position pos, bool onlyWordCharacters) Get position of end of word. -editor:WordLeft(,) Move caret left one word. -editor:WordLeftEnd(,) Move caret left one word, position cursor at end of word. -editor:WordLeftEndExtend(,) Move caret left one word, position cursor at end of word, extending selection to new caret position. -editor:WordLeftExtend(,) Move caret left one word extending selection to new caret position. -editor:WordPartLeft(,) Move to the previous change in capitalisation. -editor:WordPartLeftExtend(,) Move to the previous change in capitalisation. Move to the previous change in capitalisation extending selection to new caret position. -editor:WordPartRight(,) Move to the previous change in capitalisation. Move to the previous change in capitalisation extending selection to new caret position. Move to the change next in capitalisation. -editor:WordPartRightExtend(,) Move to the previous change in capitalisation. Move to the previous change in capitalisation extending selection to new caret position. Move to the change next in capitalisation. Move to the next change in capitalisation extending selection to new caret position. -editor:WordRight(,) Move caret right one word. -editor:WordRightEnd(,) Move caret right one word, position cursor at end of word. -editor:WordRightEndExtend(,) Move caret right one word, position cursor at end of word, extending selection to new caret position. -editor:WordRightExtend(,) Move caret right one word extending selection to new caret position. -editor:WordStartPosition(position pos, bool onlyWordCharacters) Get position of start of word. -editor:ZoomIn(,) Magnify the displayed text by increasing the sizes by 1 point. -editor:ZoomOut(,) Make the displayed text smaller by decreasing the sizes by 1 point. -output.Anchor -output.AutoCAutoHide -output.AutoCCancelAtStart -output.AutoCChooseSingle -output.AutoCDropRestOfWord -output.AutoCFillUps -output.AutoCIgnoreCase -output.AutoCSeparator -output.AutoCTypeSeparator -output.BackSpaceUnIndents -output.BufferedDraw -output.CallTipBack -output.CallTipFore -output.CallTipForeHlt -output.CaretFore -output.CaretLineBack -output.CaretLineVisible -output.CaretPeriod -output.CaretWidth -output.CharAt -output.CodePage -output.Column -output.ControlCharSymbol -output.CurrentPos -output.Cursor -output.DirectFunction -output.DirectPointer -output.DocPointer -output.EdgeColour -output.EdgeColumn -output.EdgeMode -output.EndAtLastLine -output.EndStyled -output.FirstVisibleLine -output.Focus -output.FoldExpanded -output.FoldLevel -output.FoldParent -output.HighlightGuide -output.HotspotActiveBack -output.HotspotActiveFore -output.HotspotActiveUnderline -output.HotspotSingleLine -output.HScrollBar -output.Indent -output.IndentationGuides -output.IndicFore -output.IndicStyle -output.KeyWords -output.LastChild -output.LayoutCache -output.Lexer -output.LexerLanguage -output.LineCount -output.LineEndPosition -output.LineIndentation -output.LineIndentPosition -output.LinesOnScreen -output.LineState -output.MarginLeft -output.MarginMaskN -output.MarginRight -output.MarginSensitiveN -output.MarginTypeN -output.MarginWidthN -output.MaxLineState -output.ModEventMask -output.Modify -output.MouseDownCaptures -output.MouseDwellTime -output.Overtype -output.PrintColourMode -output.PrintMagnification -output.PrintWrapMode -output.Property -output.ReadOnly -output.ScrollWidth -output.SearchFlags -output.SelectionEnd -output.SelectionIsRectangle -output.SelectionMode -output.SelectionStart -output.Status -output.StyleAt -output.StyleBack -output.StyleBits -output.StyleBold -output.StyleCase -output.StyleChangeable -output.StyleCharacter -output.StyleClearAll -output.StyleEOLFilled -output.StyleFont -output.StyleFore -output.StyleHotSpot -output.StyleItalic -output.StyleSize -output.StyleUnderline -output.StyleVisible -output.TabIndents -output.TabWidth -output.TarEnd -output.TarStart -output.TextLength -output.TwoPhaseDraw -output.Uabs -output.UndoCollection -output.UsePalette -output.ViewEOL -output.ViewWS -output.VScrollBar -output.WhitespaceChars -output.WordChars -output.WrapMode -output.WrapStartIndent -output.WrapVisualFlags -output.WrapVisualFlagsLocation -output.XOff -output:AddRefDocument(, int doc) Create a new document object. Starts with reference count of 1 and not selected into editor. Extend life of document. -output:AddStyledText(int length, cells c) Add array of cells to document. -output:AddText(int length, string text) Add text to the document at current position. -output:Allocate(int bytes,) Enlarge the document to a particular size of text bytes. -output:AppendText(int length, string text) Append a string to the end of the document without changing the selection. -output:AssignCmdKey(keymod km, int msg) When key+modifier combination km is pressed perform msg. -output:AutoCActive(,) Is there an auto-completion list visible? -output:AutoCCancel(,) Remove the auto-completion list from the screen. -output:AutoCComplete(,) User has selected an item so remove the list and insert the selection. -output:AutoCGetCurrent(,) Get currently selected item position in the auto-completion list -output:AutoCPosStart(,) Retrieve the position of the caret when the auto-completion list was displayed. -output:AutoCSelect(, string text) Select the item in the auto-completion list that starts with a string. -output:AutoCShow(int lenEntered, string itemList) Display a auto-completion list. The lenEntered parameter indicates how many characters before the caret should be used to provide context. -output:AutoCStops(, string characterSet) Define a set of character that when typed cancel the auto-completion list. -output:BackTab(,) Dedent the selected lines. -output:BeginUndoAction(,) Start a sequence of actions that is undone and redone as a unit. May be nested. -output:BraceBadLight(position pos,) Highlight the character at a position indicating there is no matching brace. -output:BraceHighlight(position pos1, position pos2) Highlight the characters at two positions. -output:BraceMatch(position pos,) Find the position of a matching brace or INVALID_POSITION if no match. -output:CallTipActive(,) Is there an active call tip? -output:CallTipCancel(,) Remove the call tip from the screen. -output:CallTipPosStart(,) Retrieve the position where the caret was before displaying the call tip. -output:CallTipSetHlt(int start, int end) Highlight a segment of the definition. -output:CallTipShow(position pos, string definition) Show a call tip containing a definition near position pos. -output:Cancel(,) Cancel any modes such as call tip or auto-completion list display. -output:CanPaste(,) Will a paste succeed? -output:CanRedo(,) Are there any redoable actions in the undo history? -output:CanUndo(,) Are there any undoable actions in the undo history? -output:CharLeft(,) Move caret left one character. -output:CharLeftExtend(,) Move caret left one character extending selection to new caret position. -output:CharLeftRectExtend(,) Move caret left one character, extending rectangular selection to new caret position. -output:CharRight(,) Move caret right one character. -output:CharRightExtend(,) Move caret right one character extending selection to new caret position. -output:CharRightRectExtend(,) Move caret right one character, extending rectangular selection to new caret position. -output:ChooseCaretX(,) Set the last x chosen value to be the caret x position. -output:Clear(,) Clear the selection. -output:ClearAll(,) Delete all text in the document. -output:ClearAllCmdKeys(,) Drop all key mappings. -output:ClearCmdKey(keymod km,) When key+modifier combination km is pressed do nothing. -output:ClearDocumentStyle(,) Set all style bytes to 0, remove all folding information. -output:ClearRegisteredImages(,) Clear all the registered XPM images. -output:Colourise(position start, position end) Colourise a segment of the document using the current lexing language. -output:ConvertEOLs(int eolMode,) Convert all line endings in the document to one mode. -output:Copy(,) Copy the selection to the clipboard. -output:CopyRange(position start, position end) Copy a range of text to the clipboard. Positions are clipped into the document. -output:CopyText(int length, string text) Copy argument text to the clipboard. -output:CreateDocument(,) Create a new document object. Starts with reference count of 1 and not selected into editor. -output:Cut(,) Cut the selection to the clipboard. -output:DeleteBack(,) Delete the selection or if no selection, the character before the caret. -output:DeleteBackNotLine(,) Delete the selection or if no selection, the character before the caret. Will not delete the character before at the start of a line. -output:DelLineLeft(,) Delete back from the current position to the start of the line. -output:DelLineRight(,) Delete forwards from the current position to the end of the line. -output:DelWordLeft(,) Delete the word to the left of the caret. -output:DelWordRight(,) Delete the word to the right of the caret. -output:DocLineFromVisible(int lineDisplay,) Find the document line of a display line taking hidden lines into account. -output:DocumentEnd(,) Move caret to last position in document. -output:DocumentEndExtend(,) Move caret to last position in document extending selection to new caret position. -output:DocumentStart(,) Move caret to first position in document. -output:DocumentStartExtend(,) Move caret to first position in document extending selection to new caret position. -output:EditToggleOvertype(,) Switch from insert to overtype mode or the reverse. -output:EmptyUndoBuffer(,) Delete the undo history. -output:EndUndoAction(,) End a sequence of actions that is undone and redone as a unit. -output:EnsureVisible(int line,) Ensure a particular line is visible by expanding any header line hiding it. -output:EnsureVisibleEnforcePolicy(int line,) Ensure a particular line is visible by expanding any header line hiding it. Use the currently set visibility policy to determine which range to display. -output:FindText(int flags, findtext ft) Find some text in the document. -output:FormatRange(bool draw, formatrange fr) On Windows, will draw the document into a display context such as a printer. -output:FormFeed(,) Insert a Form Feed character. -output:GetCurLine(int length, stringresult text) Retrieve the text of the line containing the caret. Returns the index of the caret on the line. -output:GetLine(int line, stringresult text) Retrieve the contents of a line. Returns the length of the line. -output:GetLineSelEndPosition(int line,) Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). -output:GetLineSelStartPosition(int line,) Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). -output:GetSelText(, stringresult text) Retrieve the selected text. Return the length of the text. -output:GetStyledText(, textrange tr) Retrieve a buffer of cells. Returns the number of bytes in the buffer not including terminating NULs. -output:GetText(int length, stringresult text) Retrieve all the text in the document. Returns number of characters retrieved. -output:GetTextRange(, textrange tr) Retrieve a range of text. Return the length of the text. -output:GotoLine(int line,) Set caret to start of a line and ensure it is visible. -output:GotoPos(position pos,) Set caret to a position and ensure it is visible. -output:GrabFocus(,) Set the focus to this Scintilla widget. GTK+ Specific. -output:HideLines(int lineStart, int lineEnd) Make a range of lines invisible. -output:HideSelection(bool normal,) Draw the selection in normal style or with selection highlighted. -output:Home(,) Move caret to first position on line. -output:HomeDisplay(,) Move caret to first position on display line. -output:HomeDisplayExtend(,) Move caret to first position on display line extending selection to new caret position. -output:HomeExtend(,) Move caret to first position on line extending selection to new caret position. -output:HomeRectExtend(,) Move caret to first position on line, extending rectangular selection to new caret position. -output:HomeWrap(,) -output:HomeWrapExtend(,) -output:InsertText(position pos, string text) Insert string at a position. -output:LineCopy(,) Copy the line containing the caret. -output:LineCut(,) Cut the line containing the caret. -output:LineDelete(,) Delete the line containing the caret. -output:LineDown(,)# Start of key messages Move caret down one line. -output:LineDownExtend(,) Move caret down one line extending selection to new caret position. -output:LineDownRectExtend(,)# RectExtended rectangular selection moves Move caret down one line, extending rectangular selection to new caret position. -output:LineDuplicate(,) Duplicate the current line. -output:LineEnd(,) Move caret to last position on line. -output:LineEndDisplay(,) Move caret to last position on display line. -output:LineEndDisplayExtend(,) Move caret to last position on display line extending selection to new caret position. -output:LineEndExtend(,) Move caret to last position on line extending selection to new caret position. -output:LineEndRectExtend(,) Move caret to last position on line, extending rectangular selection to new caret position. -output:LineEndWrap(,) -output:LineEndWrapExtend(,) -output:LineFromPosition(position pos,) Retrieve the line containing a position. -output:LineLength(int line,) How many characters are on a line, not including end of line characters? -output:LineScroll(int columns, int lines) Scroll horizontally and vertically. -output:LineScrollDown(,) Scroll the document down, keeping the caret visible. -output:LineScrollUp(,) Scroll the document up, keeping the caret visible. -output:LinesJoin(,) Join the lines in the target. -output:LinesSplit(int pixelWidth,) Split the lines in the target into lines that are less wide than pixelWidth where possible. -output:LineTranspose(,) Switch the current line with the previous. -output:LineUp(,) Move caret up one line. -output:LineUpExtend(,) Move caret up one line extending selection to new caret position. -output:LineUpRectExtend(,) Move caret up one line, extending rectangular selection to new caret position. -output:LoadLexerLibrary(, string path) Load a lexer library (dll / so). -output:LowerCase(,) Transform the selection to lower case. -output:MarkerAdd(int line, int markerNumber) Add a marker to a line, returning an ID which can be used to find or delete the marker. -output:MarkerDefine(int markerNumber, int markerSymbol) Set the symbol used for a particular marker number. -output:MarkerDefinePixmap(int markerNumber, string pixmap) Define a marker from a pixmap. -output:MarkerDelete(int line, int markerNumber) Delete a marker from a line. -output:MarkerDeleteAll(int markerNumber,) Delete all markers with a particular number from all lines. -output:MarkerDeleteHandle(int handle,) Delete a marker. -output:MarkerGet(int line,) Get a bit mask of all the markers set on a line. -output:MarkerLineFromHandle(int handle,) Retrieve the line number at which a particular marker is located. -output:MarkerNext(int lineStart, int markerMask) Find the next line after lineStart that includes a marker in mask. -output:MarkerPrevious(int lineStart, int markerMask) Find the previous line before lineStart that includes a marker in mask. -output:MarkerSetBack(int markerNumber, colour back) Set the background colour used for a particular marker number. -output:MarkerSetFore(int markerNumber, colour fore) Set the foreground colour used for a particular marker number. -output:MoveCaretInsideView(,) Move the caret inside current view if it's not there already. -output:NewLine(,) Insert a new line, may use a CRLF, CR or LF depending on EOL mode. -output:Null(,) Null operation. -output:PageDown(,) Move caret one page down. -output:PageDownExtend(,) Move caret one page down extending selection to new caret position. -output:PageDownRectExtend(,) Move caret one page down, extending rectangular selection to new caret position. -output:PageUp(,) Move caret one page up. -output:PageUpExtend(,) Move caret one page up extending selection to new caret position. -output:PageUpRectExtend(,) Move caret one page up, extending rectangular selection to new caret position. -output:ParaDown(,) Move caret between paragraphs (delimited by empty lines). -output:ParaDownExtend(,) Move caret between paragraphs (delimited by empty lines). -output:ParaUp(,) Move caret between paragraphs (delimited by empty lines). -output:ParaUpExtend(,) Move caret between paragraphs (delimited by empty lines). -output:Paste(,) Paste the contents of the clipboard into the document replacing the selection. -output:PointXFromPosition(, position pos) Retrieve the x value of the point in the window where a position is displayed. -output:PointYFromPosition(, position pos) Retrieve the y value of the point in the window where a position is displayed. -output:PositionAfter(position pos,) Given a valid document position, return the next position taking code page into account. Maximum value returned is the last position in the document. -output:PositionBefore(position pos,) Given a valid document position, return the previous position taking code page into account. Returns 0 if passed 0. -output:PositionFromLine(int line,) Retrieve the position at the start of a line. -output:PositionFromPoint(int x, int y) Find the position from a point within the window. -output:PositionFromPointClose(int x, int y) Find the position from a point within the window but return INVALID_POSITION if not close to text. -output:Redo(,) Redoes the next action on the undo history. -output:RegisterImage(int type, string xpmData) Register an XPM image for use in autocompletion lists. -output:ReleaseDocument(, int doc) Create a new document object. Starts with reference count of 1 and not selected into editor. Extend life of document. Release a reference to the document, deleting document if it fades to black. -output:ReplaceSel(, string text) Replace the selected text with the argument text. -output:ReplaceTarget(int length, string text) Replace the target text with the argument text. Text is counted so it can contain NULs. Returns the length of the replacement text. -output:ReplaceTargetRE(int length, string text) Replace the target text with the argument text after \d processing. Text is counted so it can contain NULs. Looks for \d where d is between 1 and 9 and replaces these with the strings matched in the last search operation which were surrounded by \( and \). Returns the length of the replacement text including any change caused by processing the \d patterns. -output:ScrollCaret(,) Ensure the caret is visible. -output:SearchAnchor(,) Sets the current caret position to be the search anchor. -output:SearchInTarget(int length, string text) Search for a counted string in the target and set the target to the found range. Text is counted so it can contain NULs. Returns length of range or -1 for failure in which case target is not moved. -output:SearchNext(int flags, string text) Find some text starting at the search anchor. Does not ensure the selection is visible. -output:SearchPrev(int flags, string text) Find some text starting at the search anchor and moving backwards. Does not ensure the selection is visible. -output:SelectAll(,) Select all the text in the document. -output:SetCaretPolicy(int caretPolicy, int caretSlop) CARET_POLICY changed in 1.47 -output:SetCharsDefault(,) Reset the set of characters for whitespace and word characters to the defaults. -output:SetFoldFlags(int flags,) Set some style options for folding. -output:SetFoldMarginColour(bool useSetting, colour back) Set the colours used as a chequerboard pattern in the fold margin -output:SetFoldMarginHiColour(bool useSetting, colour fore) Set the colours used as a chequerboard pattern in the fold margin -output:SetSavePoint(,) Remember the current position in the undo history as the position at which the document was saved. -output:SetSel(position start, position end) Select a range of text. -output:SetSelBack(bool useSetting, colour back) Set the background colour of the selection and whether to use this setting. -output:SetSelFore(bool useSetting, colour fore) Set the foreground colour of the selection and whether to use this setting. -output:SetStyling(int length, int style) Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment. -output:SetStylingEx(int length, string styles) Set the styles for a segment of the document. -output:SetText(, string text) Replace the contents of the document with the argument text. -output:SetVisiblePolicy(int visiblePolicy, int visibleSlop) Constants for use with SetVisiblePolicy, similar to SetCaretPolicy. Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc. -output:SetWhitespaceBack(bool useSetting, colour back) Set the background colour of all whitespace and whether to use this setting. -output:SetWhitespaceFore(bool useSetting, colour fore) Set the foreground colour of all whitespace and whether to use this setting. -output:SetXCaretPolicy(int caretPolicy, int caretSlop) Set the way the caret is kept visible when going sideway. The exclusion zone is given in pixels. -output:SetYCaretPolicy(int caretPolicy, int caretSlop) Set the way the line the caret is on is kept visible. The exclusion zone is given in lines. -output:ShowLines(int lineStart, int lineEnd) Make a range of lines visible. -output:StartRecord(,) Start notifying the container of all key presses and commands. -output:StartStyling(position pos, int mask) Set the current styling position to pos and the styling mask to mask. The styling mask can be used to protect some bits in each styling byte from modification. -output:StopRecord(,) Stop notifying the container of all key presses and commands. -output:StutteredPageDown(,) Move caret to bottom of page, or one page down if already at bottom of page. -output:StutteredPageDownExtend(,) Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. -output:StutteredPageUp(,) Move caret to top of page, or one page up if already at top of page. -output:StutteredPageUpExtend(,) Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. -output:StyleResetDefault(,) Reset the default style to its state at startup -output:Tab(,) If selection is empty or all on one line replace the selection with a tab character. If more than one line selected, indent the lines. -output:TargetFromSelection(,) Make the target range start and end be the same as the selection range start and end. -output:TextHeight(int line,) Retrieve the height of a particular line of text in pixels. -output:TextWidth(int style, string text) Measure the pixel width of some text in a particular style. NUL terminated text argument. Does not handle tab or control characters. -output:ToggleFold(int line,) Switch a header line between expanded and contracted. -output:Undo(,) Undo one action in the undo history. -output:UpperCase(,) Transform the selection to upper case. -output:UsePopUp(bool allowPopUp,) Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button. -output:UserListShow(int listType, string itemList) Display a list of strings and send notification when user chooses one. -output:VCHome(,) Move caret to before first visible character on line. If already there move to first character on line. -output:VCHomeExtend(,) Like VCHome but extending selection to new caret position. -output:VCHomeRectExtend(,) Move caret to before first visible character on line. If already there move to first character on line. In either case, extend rectangular selection to new caret position. -output:VCHomeWrap(,) -output:VCHomeWrapExtend(,) -output:VisibleFromDocLine(int line,) Find the display line of a document line taking hidden lines into account. -output:WordEndPosition(position pos, bool onlyWordCharacters) Get position of end of word. -output:WordLeft(,) Move caret left one word. -output:WordLeftEnd(,) Move caret left one word, position cursor at end of word. -output:WordLeftEndExtend(,) Move caret left one word, position cursor at end of word, extending selection to new caret position. -output:WordLeftExtend(,) Move caret left one word extending selection to new caret position. -output:WordPartLeft(,) Move to the previous change in capitalisation. -output:WordPartLeftExtend(,) Move to the previous change in capitalisation. Move to the previous change in capitalisation extending selection to new caret position. -output:WordPartRight(,) Move to the previous change in capitalisation. Move to the previous change in capitalisation extending selection to new caret position. Move to the change next in capitalisation. -output:WordPartRightExtend(,) Move to the previous change in capitalisation. Move to the previous change in capitalisation extending selection to new caret position. Move to the change next in capitalisation. Move to the next change in capitalisation extending selection to new caret position. -output:WordRight(,) Move caret right one word. -output:WordRightEnd(,) Move caret right one word, position cursor at end of word. -output:WordRightEndExtend(,) Move caret right one word, position cursor at end of word, extending selection to new caret position. -output:WordRightExtend(,) Move caret right one word extending selection to new caret position. -output:WordStartPosition(position pos, bool onlyWordCharacters) Get position of start of word. -output:ZoomIn(,) Magnify the displayed text by increasing the sizes by 1 point. -output:ZoomOut(,) Make the displayed text smaller by decreasing the sizes by 1 point. diff --git a/build/au3Stripper/AU3Stripper.exe b/build/au3Stripper/AU3Stripper.exe deleted file mode 100644 index 0e629c32c..000000000 Binary files a/build/au3Stripper/AU3Stripper.exe and /dev/null differ diff --git a/build/au3Stripper/Au3Stripper.dat b/build/au3Stripper/Au3Stripper.dat deleted file mode 100644 index c9f2ecfd5..000000000 --- a/build/au3Stripper/Au3Stripper.dat +++ /dev/null @@ -1,19 +0,0 @@ -Functionname,Parameter to check,0=check for function/1=check for Variable -adlibenable,1,0 -adlibregister,1,0 -adlibunregister,1,0 -call,1,0 -dllcallbackregister,1,0 -eval,1,1 -guictrlregisterlistviewsort,2,0 -guictrlsetonevent,2,0 -guiregistermsg,2,0 -guisetonevent,2,0 -hotkeyset,2,0 -isdeclared,1,1 -objevent,2,0 -onautoitexitregister,1,0 -onautoitexitunregister,1,0 -opt,2,0 -traysetonevent,2,0 -trayitemsetonevent,2,0 diff --git a/build/node_modules/.bin/putasset b/build/node_modules/.bin/putasset deleted file mode 100644 index 3743c9df3..000000000 --- a/build/node_modules/.bin/putasset +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../putasset/bin/putasset.js" "$@" - ret=$? -else - node "$basedir/../putasset/bin/putasset.js" "$@" - ret=$? -fi -exit $ret diff --git a/build/node_modules/.bin/putasset.cmd b/build/node_modules/.bin/putasset.cmd deleted file mode 100644 index fc8a8c9eb..000000000 --- a/build/node_modules/.bin/putasset.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\putasset\bin\putasset.js" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\putasset\bin\putasset.js" %* -) \ No newline at end of file diff --git a/build/node_modules/.bin/semver b/build/node_modules/.bin/semver deleted file mode 100644 index d592e6930..000000000 --- a/build/node_modules/.bin/semver +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../semver/bin/semver" "$@" - ret=$? -else - node "$basedir/../semver/bin/semver" "$@" - ret=$? -fi -exit $ret diff --git a/build/node_modules/.bin/semver.cmd b/build/node_modules/.bin/semver.cmd deleted file mode 100644 index 37c00a46d..000000000 --- a/build/node_modules/.bin/semver.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\semver\bin\semver" %* -) \ No newline at end of file diff --git a/build/node_modules/.bin/which b/build/node_modules/.bin/which deleted file mode 100644 index cbe872c61..000000000 --- a/build/node_modules/.bin/which +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - "$basedir/node" "$basedir/../which/bin/which" "$@" - ret=$? -else - node "$basedir/../which/bin/which" "$@" - ret=$? -fi -exit $ret diff --git a/build/node_modules/.bin/which.cmd b/build/node_modules/.bin/which.cmd deleted file mode 100644 index 588f44d68..000000000 --- a/build/node_modules/.bin/which.cmd +++ /dev/null @@ -1,7 +0,0 @@ -@IF EXIST "%~dp0\node.exe" ( - "%~dp0\node.exe" "%~dp0\..\which\bin\which" %* -) ELSE ( - @SETLOCAL - @SET PATHEXT=%PATHEXT:;.JS;=;% - node "%~dp0\..\which\bin\which" %* -) \ No newline at end of file diff --git a/build/node_modules/@octokit/endpoint/LICENSE b/build/node_modules/@octokit/endpoint/LICENSE deleted file mode 100644 index af5366d0d..000000000 --- a/build/node_modules/@octokit/endpoint/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License - -Copyright (c) 2018 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/@octokit/endpoint/README.md b/build/node_modules/@octokit/endpoint/README.md deleted file mode 100644 index d769d5b5d..000000000 --- a/build/node_modules/@octokit/endpoint/README.md +++ /dev/null @@ -1,371 +0,0 @@ -# endpoint.js - -> Turns REST API endpoints into generic request options - -[![@latest](https://img.shields.io/npm/v/@octokit/endpoint.svg)](https://www.npmjs.com/package/@octokit/endpoint) -[![Build Status](https://travis-ci.org/octokit/endpoint.js.svg?branch=master)](https://travis-ci.org/octokit/endpoint.js) -[![Coverage Status](https://coveralls.io/repos/github/octokit/endpoint.js/badge.svg)](https://coveralls.io/github/octokit/endpoint.js) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/endpoint.js.svg)](https://greenkeeper.io/) - -`@octokit/endpoint` combines [GitHub REST API](https://developer.github.com/v3/) -with your options and turns them into generic request options which you can -then pass into your request library of choice. - -`@octokit/endopint` is meant to run in all JavaScript environments. Browser -builds can be downloaded from each [Release](https://github.com/octokit/endpoint.js/releases). -Minified and gzipped, the build is less than 3kb. - - - - -- [Usage](#usage) -- [API](#api) - * [endpoint()](#endpoint) - * [endpoint.defaults()](#endpointdefaults) - * [endpoint.DEFAULTS](#endpointdefaults) - * [endpoint.merge()](#endpointmerge) - * [endpoint.parse()](#endpointparse) -- [Special cases](#special-cases) - * [The `data` parameter – set request body directly](#the-data-parameter-%E2%80%93-set-request-body-directly) - * [Set parameters for both the URL/query and the request body](#set-parameters-for-both-the-urlquery-and-the-request-body) -- [LICENSE](#license) - - - -## Usage - -```js -const endpoint = require('@octokit/endpoint') - -// Following GitHub docs formatting: -// https://developer.github.com/v3/repos/#list-organization-repositories -const options = endpoint('GET /orgs/:org/repos', { - headers: { - authorization: 'token 0000000000000000000000000000000000000001' - }, - org: 'octokit', - type: 'private' -}) - -// { -// method: 'GET', -// url: 'https://api.github.com/orgs/octokit/repos?type=private', -// headers: { -// accept: 'application/vnd.github.v3+json', -// authorization: 'token 0000000000000000000000000000000000000001', -// 'user-agent': 'octokit/endpoint.js v1.2.3' -// } -// } -``` - -Alternatively, pass in all options in a single object - -```js -const options = endpoint({ method, url, headers, org, type }) -``` - -Using `@octokit/endpoint` with common request libraries - -```js -// using with fetch (https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) -fetch(options.url, ...options) -// using with request (https://github.com/request/request) -request(options) -// using with got (https://github.com/sindresorhus/got) -got[options.method](options.url, options) -// using with axios -axios(options) -``` - - -## API - -### endpoint() - -`endpoint(route, options)` or `endpoint(options)`. - -**Options** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- name - - type - - description -
- route - - String - - If route is set it has to be a string consisting of URL and the request method, e.g. GET /orgs/:org. If it’s set to a URL only the method defaults to GET. -
- options.baseUrl - - String - - Required. Any supported http verb, case insensitive. Defaults to https://api.github.com. -
- options.headers - - Object - - Custom headers. Passed headers are merged with defaults:
- headers['user-agent'] defaults to octokit-endpoint.js/1.2.3 (where 1.2.3 is the released version).
- headers['accept'] defaults to application/vnd.github.v3+json.
-
- options.method - - String - - Required. Any supported http verb, case insensitive. Defaults to Get. -
- options.url - - String - - Required. A path or full URL which may contain :variable or {variable} placeholders, - e.g. /orgs/:org/repos. The url is parsed using url-template. -
- options.data - - Any - - Set request body directly instead of setting it to JSON based on additional parameters. See "The data parameter" below. -
- options.request - - Object - - Pass custom meta information for the request. The request object will be returned as is. -
- -All other options will passed depending on the `method` and `url` options. - -1. If the option key is a placeholder in the `url`, it will be used as replacement. For example, if the passed options are `{url: '/orgs/:org/repos', org: 'foo'}` the returned `options.url` is `https://api.github.com/orgs/foo/repos` -2. If the `method` is `GET` or `HEAD`, the option is passed as query parameter -3. Otherwise the parameter is passed in the request body as JSON key. - -**Result** - -`endpoint()` is a synchronous method and returns an object with the following keys - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- key - - type - - description -
methodStringThe http method. Always lowercase
urlStringThe url with placeholders replaced with passed parameters
headersObjectAll header names are lowercased
bodyAnyThe request body if one is present. Only for PATCH, POST, PUT, DELETE requests
- -### endpoint.defaults() - -Override or set default options. Example: - -```js -const request = require('request') -const myEndpoint = require('@octokit/endpoint').defaults({ - baseUrl: 'https://github-enterprise.acme-inc.com/api/v3', - headers: { - 'user-agent': 'myApp/1.2.3', - authorization: `token 0000000000000000000000000000000000000001` - }, - org: 'my-project', - per_page: 100 -}) - -request(myEndpoint(`GET /orgs/:org/repos`)) -``` - -You can call `.defaults()` again on the returned method, the defaults will cascade. - -```js -const myProjectEndpoint = endpoint.defaults({ - baseUrl: 'https://github-enterprise.acme-inc.com/api/v3', - headers: { - 'user-agent': 'myApp/1.2.3' - }, - org: 'my-project' -}) -const myProjectEndpointWithAuth = myProjectEndpoint.defaults({ - headers: { - authorization: `token 0000000000000000000000000000000000000001` - } -}) -``` - -`myProjectEndpointWithAuth` now defaults the `baseUrl`, `headers['user-agent']`, -`org` and `headers['authorization']` on top of `headers['accept']` that is set -by the global default. - -### endpoint.DEFAULTS - -The current default options. - -```js -endpoint.DEFAULTS.baseUrl // https://api.github.com -const myEndpoint = endpoint.defaults({ - baseUrl: 'https://github-enterprise.acme-inc.com/api/v3' -}) -myEndpoint.DEFAULTS.baseUrl // https://github-enterprise.acme-inc.com/api/v3 -``` - -### endpoint.merge() - -Get the defaulted endpoint options, but without parsing them into request options - -```js -const myProjectEndpoint = endpoint.defaults({ - baseUrl: 'https://github-enterprise.acme-inc.com/api/v3', - headers: { - 'user-agent': 'myApp/1.2.3' - }, - org: 'my-project' -}) -myProjectEndpoint.merge('GET /orgs/:org/repos', { - headers: { - authorization: `token 0000000000000000000000000000000000000001` - }, - org: 'my-secret-project', - type: 'private' -}) -// { -// baseUrl: 'https://github-enterprise.acme-inc.com/api/v3', -// method: 'GET', -// url: '/orgs/:org/repos', -// headers: { -// accept: 'application/vnd.github.v3+json', -// authorization: `token 0000000000000000000000000000000000000001`, -// 'user-agent': 'myApp/1.2.3' -// }, -// org: 'my-secret-project', -// type: 'private' -// } -``` - -### endpoint.parse() - -Stateless method to turn endpoint options into request options. Calling -`endpoint(options)` is the same as calling `endpoint.parse(endpoint.merge(options))` - -## Special cases - - -### The `data` parameter – set request body directly - -Some endpoints such as [Render a Markdown document in raw mode](https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode) don’t have parameters that are sent as request body keys, instead the request body needs to be set directly. In these cases, set the `data` parameter. - -```js -const options = endpoint('POST /markdown/raw', { - data: 'Hello world github/linguist#1 **cool**, and #1!', - headers: { - accept: 'text/html;charset=utf-8', - 'content-type': 'text/plain' - } -}) - -// options is -// { -// method: 'post', -// url: 'https://api.github.com/markdown/raw', -// headers: { -// accept: 'text/html;charset=utf-8', -// 'content-type': 'text/plain', -// 'user-agent': userAgent -// }, -// body: 'Hello world github/linguist#1 **cool**, and #1!' -// } -``` - -### Set parameters for both the URL/query and the request body - -There are API endpoints that accept both query parameters as well as a body. In that case you need to add the query parameters as templates to `options.url`, as defined in the [RFC 6570 URI Template specification](https://tools.ietf.org/html/rfc6570). - -Example - -```js -endpoint('POST https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}', { - name: 'example.zip', - label: 'short description', - headers: { - 'content-type': 'text/plain', - 'content-length': 14, - authorization: `token 0000000000000000000000000000000000000001` - }, - data: 'Hello, world!' -}) -``` - -## LICENSE - -[MIT](LICENSE) diff --git a/build/node_modules/@octokit/endpoint/index.js b/build/node_modules/@octokit/endpoint/index.js deleted file mode 100644 index ce8944994..000000000 --- a/build/node_modules/@octokit/endpoint/index.js +++ /dev/null @@ -1,4 +0,0 @@ -const withDefaults = require('./with-defaults') -const DEFAULTS = require('./lib/defaults') - -module.exports = withDefaults(null, DEFAULTS) diff --git a/build/node_modules/@octokit/endpoint/lib/defaults.js b/build/node_modules/@octokit/endpoint/lib/defaults.js deleted file mode 100644 index 293351bc7..000000000 --- a/build/node_modules/@octokit/endpoint/lib/defaults.js +++ /dev/null @@ -1,13 +0,0 @@ -const getUserAgent = require('universal-user-agent') - -const version = require('../package.json').version -const userAgent = `octokit-endpoint.js/${version} ${getUserAgent()}` - -module.exports = { - method: 'GET', - baseUrl: 'https://api.github.com', - headers: { - accept: 'application/vnd.github.v3+json', - 'user-agent': userAgent - } -} diff --git a/build/node_modules/@octokit/endpoint/lib/endpoint-with-defaults.js b/build/node_modules/@octokit/endpoint/lib/endpoint-with-defaults.js deleted file mode 100644 index 3d57fe090..000000000 --- a/build/node_modules/@octokit/endpoint/lib/endpoint-with-defaults.js +++ /dev/null @@ -1,8 +0,0 @@ -module.exports = endpointWithDefaults - -const merge = require('./merge') -const parse = require('./parse') - -function endpointWithDefaults (defaults, route, options) { - return parse(merge(defaults, route, options)) -} diff --git a/build/node_modules/@octokit/endpoint/lib/merge.js b/build/node_modules/@octokit/endpoint/lib/merge.js deleted file mode 100644 index 53c8c0dc9..000000000 --- a/build/node_modules/@octokit/endpoint/lib/merge.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = defaultOptions - -const merge = require('deepmerge') -const isPlainObject = require('is-plain-object') - -const lowercaseKeys = require('./util/lowercase-keys') - -function defaultOptions (defaults, route, options) { - if (typeof route === 'string') { - let [method, url] = route.split(' ') - options = Object.assign(url ? { method, url } : { url: method }, options) - } else { - options = route || {} - } - - // lowercase header names before merging with defaults to avoid duplicates - options.headers = lowercaseKeys(options.headers) - - options = merge.all([defaults, options].filter(Boolean), { isMergeableObject: isPlainObject }) - - return options -} diff --git a/build/node_modules/@octokit/endpoint/lib/parse.js b/build/node_modules/@octokit/endpoint/lib/parse.js deleted file mode 100644 index 9cc832c98..000000000 --- a/build/node_modules/@octokit/endpoint/lib/parse.js +++ /dev/null @@ -1,63 +0,0 @@ -module.exports = toRequestOptions - -const urlTemplate = require('url-template') -const addQueryParameters = require('./util/add-query-parameters') -const extractUrlVariableNames = require('./util/extract-url-variable-names') -const omit = require('./util/omit') - -function toRequestOptions (options) { - // https://fetch.spec.whatwg.org/#methods - let method = options.method.toUpperCase() - - // replace :varname with {varname} to make it RFC 6570 compatible - let url = options.url.replace(/:([a-z]\w+)/g, '{+$1}') - let headers = options.headers - let body - let parameters = omit(options, ['method', 'baseUrl', 'url', 'headers', 'request']) - - // extract variable names from URL to calculate remaining variables later - const urlVariableNames = extractUrlVariableNames(url) - - url = urlTemplate.parse(url).expand(parameters) - - if (!/^http/.test(url)) { - url = options.baseUrl + url - } - - const omittedParameters = Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat('baseUrl') - const remainingParameters = omit(parameters, omittedParameters) - - // for GET/HEAD requests, set URL query parameters from remaining parameters - // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters - if (['GET', 'HEAD'].includes(method)) { - url = addQueryParameters(url, remainingParameters) - } else { - if ('data' in remainingParameters) { - body = remainingParameters.data - } else { - if (Object.keys(remainingParameters).length) { - body = remainingParameters - } else { - headers['content-length'] = 0 - } - } - } - - // default content-type for JSON if body is set - if (!headers['content-type'] && typeof body !== 'undefined') { - headers['content-type'] = 'application/json; charset=utf-8' - } - - // GitHub expects "content-length: 0" header for PUT/PATCH requests without body. - // fetch does not allow to set `content-length` header, but we can set body to an empty string - if (['PATCH', 'PUT'].includes(method) && typeof body === 'undefined') { - body = '' - } - - // Only return body/request keys if present - return Object.assign( - { method: method, url, headers }, - typeof body !== 'undefined' ? { body } : null, - options.request ? { request: options.request } : null - ) -} diff --git a/build/node_modules/@octokit/endpoint/lib/util/add-query-parameters.js b/build/node_modules/@octokit/endpoint/lib/util/add-query-parameters.js deleted file mode 100644 index b09844683..000000000 --- a/build/node_modules/@octokit/endpoint/lib/util/add-query-parameters.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = addQueryParameters - -function addQueryParameters (url, parameters) { - const separator = /\?/.test(url) ? '&' : '?' - const names = Object.keys(parameters) - - if (names.length === 0) { - return url - } - - return url + separator + names - .map(name => { - if (name === 'q') { - return 'q=' + parameters.q.split('+') - .map(encodeURIComponent) - .join('+') - } - - return `${name}=${encodeURIComponent(parameters[name])}` - }) - .join('&') -} diff --git a/build/node_modules/@octokit/endpoint/lib/util/extract-url-variable-names.js b/build/node_modules/@octokit/endpoint/lib/util/extract-url-variable-names.js deleted file mode 100644 index ad2a3e00f..000000000 --- a/build/node_modules/@octokit/endpoint/lib/util/extract-url-variable-names.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = extractUrlVariableName - -const urlVariableRegex = /\{[^}]+\}/g -function extractUrlVariableName (url) { - const matches = url.match(urlVariableRegex) - - if (!matches) { - return [] - } - - return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []) -} - -function removeNonChars (variableName) { - return variableName.replace(/^\W+|\W+$/g, '').split(/,/) -} diff --git a/build/node_modules/@octokit/endpoint/lib/util/lowercase-keys.js b/build/node_modules/@octokit/endpoint/lib/util/lowercase-keys.js deleted file mode 100644 index e9ec08e7d..000000000 --- a/build/node_modules/@octokit/endpoint/lib/util/lowercase-keys.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = lowercaseKeys - -function lowercaseKeys (object) { - if (!object) { - return {} - } - - return Object.keys(object).reduce((newObj, key) => { - newObj[key.toLowerCase()] = object[key] - return newObj - }, {}) -} diff --git a/build/node_modules/@octokit/endpoint/lib/util/omit.js b/build/node_modules/@octokit/endpoint/lib/util/omit.js deleted file mode 100644 index 8a4af4a5a..000000000 --- a/build/node_modules/@octokit/endpoint/lib/util/omit.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = omit - -function omit (object, keysToOmit) { - return Object.keys(object) - .filter((option) => !keysToOmit.includes(option)) - .reduce((obj, key) => { - obj[key] = object[key] - return obj - }, {}) -} diff --git a/build/node_modules/@octokit/endpoint/package.json b/build/node_modules/@octokit/endpoint/package.json deleted file mode 100644 index 6fe8967b6..000000000 --- a/build/node_modules/@octokit/endpoint/package.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "_from": "@octokit/endpoint@^3.0.0", - "_id": "@octokit/endpoint@3.1.1", - "_inBundle": false, - "_integrity": "sha512-KPkoTvKwCTetu/UqonLs1pfwFO5HAqTv/Ksp9y4NAg//ZgUCpvJsT4Hrst85uEzJvkB8+LxKyR4Bfv2X8O4cmQ==", - "_location": "/@octokit/endpoint", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "@octokit/endpoint@^3.0.0", - "name": "@octokit/endpoint", - "escapedName": "@octokit%2fendpoint", - "scope": "@octokit", - "rawSpec": "^3.0.0", - "saveSpec": null, - "fetchSpec": "^3.0.0" - }, - "_requiredBy": [ - "/@octokit/request" - ], - "_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-3.1.1.tgz", - "_shasum": "ede9afefaa4d6b7584169e12346425c6fbb45cc3", - "_spec": "@octokit/endpoint@^3.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\request", - "author": { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - }, - "bugs": { - "url": "https://github.com/octokit/endpoint.js/issues" - }, - "bundleDependencies": false, - "bundlesize": [ - { - "path": "./dist/octokit-endpoint.min.js.gz", - "maxSize": "3KB" - } - ], - "dependencies": { - "deepmerge": "3.0.0", - "is-plain-object": "^2.0.4", - "universal-user-agent": "^2.0.1", - "url-template": "^2.0.8" - }, - "deprecated": false, - "description": "Turns REST API endpoints into generic request options", - "devDependencies": { - "chai": "^4.2.0", - "compression-webpack-plugin": "^2.0.0", - "coveralls": "^3.0.2", - "cypress": "^3.1.0", - "mkdirp": "^0.5.1", - "mocha": "^5.2.0", - "npm-run-all": "^4.1.3", - "nyc": "^13.1.0", - "semantic-release": "^15.10.3", - "sinon-chai": "^3.2.0", - "standard": "^12.0.1", - "standard-markdown": "^5.0.1", - "webpack": "^4.21.0", - "webpack-bundle-analyzer": "^3.0.3", - "webpack-cli": "^3.1.2" - }, - "directories": { - "test": "test" - }, - "files": [ - "lib", - "with-defaults.js" - ], - "homepage": "https://github.com/octokit/endpoint.js#readme", - "keywords": [ - "octokit", - "github", - "api", - "rest" - ], - "license": "MIT", - "main": "index.js", - "name": "@octokit/endpoint", - "publishConfig": { - "access": "public", - "tag": "latest" - }, - "release": { - "publish": [ - "@semantic-release/npm", - { - "path": "@semantic-release/github", - "assets": [ - "dist/*", - "!dist/*.map.gz" - ] - } - ] - }, - "repository": { - "type": "git", - "url": "git+https://github.com/octokit/endpoint.js.git" - }, - "scripts": { - "build": "npm-run-all build:*", - "build:development": "webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-endpoint.js --profile --json > dist/bundle-stats.json", - "build:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-endpoint.min.js --devtool source-map", - "bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html", - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "prebuild": "mkdirp dist/", - "pretest": "standard && standard-markdown *.md", - "semantic-release": "semantic-release", - "test": "nyc mocha test/*-test.js", - "test:browser": "cypress run --browser chrome" - }, - "standard": { - "globals": [ - "describe", - "before", - "beforeEach", - "afterEach", - "after", - "it", - "expect" - ] - }, - "version": "3.1.1" -} diff --git a/build/node_modules/@octokit/endpoint/with-defaults.js b/build/node_modules/@octokit/endpoint/with-defaults.js deleted file mode 100644 index 9a4062ade..000000000 --- a/build/node_modules/@octokit/endpoint/with-defaults.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = withDefaults - -const endpointWithDefaults = require('./lib/endpoint-with-defaults') -const merge = require('./lib/merge') -const parse = require('./lib/parse') - -function withDefaults (oldDefaults, newDefaults) { - const DEFAULTS = merge(oldDefaults, newDefaults) - return Object.assign(endpointWithDefaults.bind(null, DEFAULTS), { - DEFAULTS, - defaults: withDefaults.bind(null, DEFAULTS), - merge: merge.bind(null, DEFAULTS), - parse - }) -} diff --git a/build/node_modules/@octokit/request/LICENSE b/build/node_modules/@octokit/request/LICENSE deleted file mode 100644 index af5366d0d..000000000 --- a/build/node_modules/@octokit/request/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License - -Copyright (c) 2018 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/@octokit/request/README.md b/build/node_modules/@octokit/request/README.md deleted file mode 100644 index 0dae73f0b..000000000 --- a/build/node_modules/@octokit/request/README.md +++ /dev/null @@ -1,379 +0,0 @@ -# request.js - -> Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node - -[![@latest](https://img.shields.io/npm/v/@octokit/request.svg)](https://www.npmjs.com/package/@octokit/request) -[![Build Status](https://travis-ci.org/octokit/request.js.svg?branch=master)](https://travis-ci.org/octokit/request.js) -[![Coverage Status](https://coveralls.io/repos/github/octokit/request.js/badge.svg)](https://coveralls.io/github/octokit/request.js) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/request.js.svg)](https://greenkeeper.io/) - -`@octokit/request` is a request library for browsers & node that makes it easier -to interact with [GitHub’s REST API](https://developer.github.com/v3/) and -[GitHub’s GraphQL API](https://developer.github.com/v4/guides/forming-calls/#the-graphql-endpoint). - -It uses [`@octokit/endpoint`](https://github.com/octokit/endpoint.js) to parse -the passed options and sends the request using [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) - ([node-fetch](https://github.com/bitinn/node-fetch) in Node). - - - - - -- [Usage](#usage) - * [Node](#node) - * [Browser](#browser) - * [REST API example](#rest-api-example) - * [GraphQL example](#graphql-example) - * [Alternative: pass `method` & `url` as part of options](#alternative-pass-method--url-as-part-of-options) -- [octokitRequest()](#octokitrequest) -- [`octokitRequest.defaults()`](#octokitrequestdefaults) -- [`octokitRequest.endpoint`](#octokitrequestendpoint) -- [Special cases](#special-cases) - * [The `data` parameter – set request body directly](#the-data-parameter-%E2%80%93-set-request-body-directly) - * [Set parameters for both the URL/query and the request body](#set-parameters-for-both-the-urlquery-and-the-request-body) -- [LICENSE](#license) - - - -## Usage - -### Node - -Install with `npm install @octokit/request`. - -```js -const octokitRequest = require('@octokit/request') -``` - -### Browser - -1. Download `octokit-request.min.js` from the latest release: https://github.com/octokit/request.js/releases - -2. Load it as script into your web application: - - ```html - - ``` - -3. The `octokitRequest` is now available - -### REST API example - -```js -// Following GitHub docs formatting: -// https://developer.github.com/v3/repos/#list-organization-repositories -const result = await octokitRequest('GET /orgs/:org/repos', { - headers: { - authorization: 'token 0000000000000000000000000000000000000001' - }, - org: 'octokit', - type: 'private' -}) - -console.log(`${result.data.length} repos found.`) -``` - -### GraphQL example - -```js -const result = await octokitRequest('POST /graphql', { - headers: { - authorization: 'token 0000000000000000000000000000000000000001' - }, - query: `query ($login: String!) { - organization(login: $login) { - repositories(privacy: PRIVATE) { - totalCount - } - } - }`, - variables: { - login: 'octokit' - } -}) -``` - -### Alternative: pass `method` & `url` as part of options - -Alternatively, pass in a method and a url - -```js -const result = await octokitRequest({ - method: 'GET', - url: '/orgs/:org/repos', - headers: { - authorization: 'token 0000000000000000000000000000000000000001' - }, - org: 'octokit', - type: 'private' -}) -``` - -## octokitRequest() - -`octokitRequest(route, options)` or `octokitRequest(options)`. - -**Options** - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- name - - type - - description -
- route - - String - - If route is set it has to be a string consisting of the request method and URL, e.g. GET /orgs/:org -
- options.baseUrl - - String - - Required. Any supported http verb, case insensitive. Defaults to https://api.github.com. -
- options.headers - - Object - - Custom headers. Passed headers are merged with defaults:
- headers['user-agent'] defaults to octokit-rest.js/1.2.3 (where 1.2.3 is the released version).
- headers['accept'] defaults to application/vnd.github.v3+json.
-
- options.method - - String - - Required. Any supported http verb, case insensitive. Defaults to Get. -
- options.url - - String - - Required. A path or full URL which may contain :variable or {variable} placeholders, - e.g. /orgs/:org/repos. The url is parsed using url-template. -
- options.data - - Any - - Set request body directly instead of setting it to JSON based on additional parameters. See "The `data` parameter" below. -
- options.request - - Object - - Pass node-fetch extensions options, such as agent or timeout. All other `options.request.*` keys will be ignored. -
- -All other options will passed depending on the `method` and `url` options. - -1. If the option key is a placeholder in the `url`, it will be used as replacement. For example, if the passed options are `{url: '/orgs/:org/repos', org: 'foo'}` the returned `options.url` is `https://api.github.com/orgs/foo/repos` -2. If the `method` is `GET` or `HEAD`, the option is passed as query parameter -3. Otherwise the parameter is passed in the request body as JSON key. - -**Result** - -`octokitRequest` returns a promise and resolves with 3 keys - - - - - - - - - - - - - - - - - - - - - - - - -
- key - - type - - description -
headersObjectAll response headers
codeIntegerResponse status code
dataAnyThe response body as returned from server. If the response is JSON then it will be parsed into an object
- -If an error occurs, the `error` instance has additional properties to help with debugging - -- `error.status` The http response status code -- `error.headers` The http response headers as an object -- `error.request` The request options such as `method`, `url` and `data` - -## `octokitRequest.defaults()` - -Override or set default options. Example: - -```js -const myOctokitRequest = require('@octokit/request').defaults({ - baseUrl: 'https://github-enterprise.acme-inc.com/api/v3', - headers: { - 'user-agent': 'myApp/1.2.3', - authorization: `token 0000000000000000000000000000000000000001` - }, - org: 'my-project', - per_page: 100 -}) - -myOctokitRequest(`GET /orgs/:org/repos`) -``` - -You can call `.defaults()` again on the returned method, the defaults will cascade. - -```js -const myProjectRequest = octokitRequest.defaults({ - baseUrl: 'https://github-enterprise.acme-inc.com/api/v3', - headers: { - 'user-agent': 'myApp/1.2.3' - }, - org: 'my-project' -}) -const myProjectRequestWithAuth = myProjectRequest.defaults({ - headers: { - authorization: `token 0000000000000000000000000000000000000001` - } -}) -``` - -`myProjectRequest` now defaults the `baseUrl`, `headers['user-agent']`, -`org` and `headers['authorization']` on top of `headers['accept']` that is set -by the global default. - -## `octokitRequest.endpoint` - -See https://github.com/octokit/endpoint.js. Example - -```js -const options = octokitRequest.endpoint('GET /orgs/:org/repos', { - org: 'my-project', - type: 'private' -}) - -// { -// method: 'GET', -// url: 'https://api.github.com/orgs/my-project/repos?type=private', -// headers: { -// accept: 'application/vnd.github.v3+json', -// authorization: 'token 0000000000000000000000000000000000000001', -// 'user-agent': 'octokit/endpoint.js v1.2.3' -// } -// } -``` - -All of the [`@octokit/endpoint`](https://github.com/octokit/endpoint.js) API can be used: - -- [`ocotkitRequest.endpoint()`](#endpoint) -- [`ocotkitRequest.endpoint.defaults()`](#endpointdefaults) -- [`ocotkitRequest.endpoint.merge()`](#endpointdefaults) -- [`ocotkitRequest.endpoint.parse()`](#endpointmerge) - -## Special cases - - -### The `data` parameter – set request body directly - -Some endpoints such as [Render a Markdown document in raw mode](https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode) don’t have parameters that are sent as request body keys, instead the request body needs to be set directly. In these cases, set the `data` parameter. - -```js -const options = endpoint('POST /markdown/raw', { - data: 'Hello world github/linguist#1 **cool**, and #1!', - headers: { - accept: 'text/html;charset=utf-8', - 'content-type': 'text/plain' - } -}) - -// options is -// { -// method: 'post', -// url: 'https://api.github.com/markdown/raw', -// headers: { -// accept: 'text/html;charset=utf-8', -// 'content-type': 'text/plain', -// 'user-agent': userAgent -// }, -// body: 'Hello world github/linguist#1 **cool**, and #1!' -// } -``` - -### Set parameters for both the URL/query and the request body - -There are API endpoints that accept both query parameters as well as a body. In that case you need to add the query parameters as templates to `options.url`, as defined in the [RFC 6570 URI Template specification](https://tools.ietf.org/html/rfc6570). - -Example - -```js -octokitRequest('POST https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}', { - name: 'example.zip', - label: 'short description', - headers: { - 'content-type': 'text/plain', - 'content-length': 14, - authorization: `token 0000000000000000000000000000000000000001` - }, - data: 'Hello, world!' -}) -``` - - - -## LICENSE - -[MIT](LICENSE) diff --git a/build/node_modules/@octokit/request/index.js b/build/node_modules/@octokit/request/index.js deleted file mode 100644 index 5f3f12bfc..000000000 --- a/build/node_modules/@octokit/request/index.js +++ /dev/null @@ -1,12 +0,0 @@ -const endpoint = require('@octokit/endpoint') -const getUserAgent = require('universal-user-agent') - -const version = require('./package.json').version -const userAgent = `octokit-request.js/${version} ${getUserAgent()}` -const withDefaults = require('./lib/with-defaults') - -module.exports = withDefaults(endpoint, { - headers: { - 'user-agent': userAgent - } -}) diff --git a/build/node_modules/@octokit/request/lib/fetch.js b/build/node_modules/@octokit/request/lib/fetch.js deleted file mode 100644 index 42b12d41e..000000000 --- a/build/node_modules/@octokit/request/lib/fetch.js +++ /dev/null @@ -1,2 +0,0 @@ -// expose internally used `fetch` method for testing/mocking only -module.exports.fetch = require('node-fetch').default diff --git a/build/node_modules/@octokit/request/lib/get-buffer-response-browser.js b/build/node_modules/@octokit/request/lib/get-buffer-response-browser.js deleted file mode 100644 index f2621e28e..000000000 --- a/build/node_modules/@octokit/request/lib/get-buffer-response-browser.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = getBufferResponse - -function getBufferResponse (response) { - return response.arrayBuffer() -} diff --git a/build/node_modules/@octokit/request/lib/get-buffer-response.js b/build/node_modules/@octokit/request/lib/get-buffer-response.js deleted file mode 100644 index 4b104e608..000000000 --- a/build/node_modules/@octokit/request/lib/get-buffer-response.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = getBufferResponse - -function getBufferResponse (response) { - return response.buffer() -} diff --git a/build/node_modules/@octokit/request/lib/http-error.js b/build/node_modules/@octokit/request/lib/http-error.js deleted file mode 100644 index df3045ca3..000000000 --- a/build/node_modules/@octokit/request/lib/http-error.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = class HttpError extends Error { - constructor (message, statusCode, headers, request) { - super(message) - - // Maintains proper stack trace (only available on V8) - /* istanbul ignore next */ - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor) - } - - this.name = 'HttpError' - this.status = statusCode - Object.defineProperty(this, 'code', { - get () { - console.warn('`error.code` is deprecated, use `error.status`.') - return statusCode - } - }) - this.headers = headers - this.request = request - } -} diff --git a/build/node_modules/@octokit/request/lib/request.js b/build/node_modules/@octokit/request/lib/request.js deleted file mode 100644 index fda5e9762..000000000 --- a/build/node_modules/@octokit/request/lib/request.js +++ /dev/null @@ -1,94 +0,0 @@ -'use strict' - -module.exports = request - -const isPlainObject = require('is-plain-object') - -const mockable = require('./fetch') -const getBuffer = require('./get-buffer-response') -const HttpError = require('./http-error') - -function request (requestOptions) { - if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) { - requestOptions.body = JSON.stringify(requestOptions.body) - } - - let headers = {} - let status - - return mockable.fetch(requestOptions.url, Object.assign({ - method: requestOptions.method, - body: requestOptions.body, - headers: requestOptions.headers, - redirect: requestOptions.redirect - }, requestOptions.request)) - - .then(response => { - status = response.status - - for (const keyAndValue of response.headers.entries()) { - headers[keyAndValue[0]] = keyAndValue[1] - } - - if (status === 204 || status === 205) { - return - } - - // GitHub API returns 200 for HEAD requsets - if (requestOptions.method === 'HEAD') { - if (status < 400) { - return - } - - throw new HttpError(response.statusText, status, headers, requestOptions) - } - - if (status === 304) { - requestOptions.url = response.headers.location - throw new HttpError('Not modified', status, headers, requestOptions) - } - - if (status >= 400) { - return response.text() - - .then(message => { - const error = new HttpError(message, status, headers, requestOptions) - - try { - Object.assign(error, JSON.parse(error.message)) - } catch (e) { - // ignore, see octokit/rest.js#684 - } - - throw error - }) - } - - const contentType = response.headers.get('content-type') - if (/application\/json/.test(contentType)) { - return response.json() - } - - if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { - return response.text() - } - - return getBuffer(response) - }) - - .then(data => { - return { - data, - status, - headers - } - }) - - .catch(error => { - if (error instanceof HttpError) { - throw error - } - - throw new HttpError(error.message, 500, headers, requestOptions) - }) -} diff --git a/build/node_modules/@octokit/request/lib/with-defaults.js b/build/node_modules/@octokit/request/lib/with-defaults.js deleted file mode 100644 index 9a731a153..000000000 --- a/build/node_modules/@octokit/request/lib/with-defaults.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = withDefaults - -const request = require('./request') - -function withDefaults (oldEndpoint, newDefaults) { - const endpoint = oldEndpoint.defaults(newDefaults) - const newApi = function (route, options) { - return request(endpoint(route, options)) - } - - newApi.endpoint = endpoint - newApi.defaults = withDefaults.bind(null, endpoint) - return newApi -} diff --git a/build/node_modules/@octokit/request/package.json b/build/node_modules/@octokit/request/package.json deleted file mode 100644 index 7403afd53..000000000 --- a/build/node_modules/@octokit/request/package.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "_from": "@octokit/request@2.2.0", - "_id": "@octokit/request@2.2.0", - "_inBundle": false, - "_integrity": "sha512-4P9EbwKZ4xfyupVMb3KVuHmM+aO2fye3nufjGKz/qDssvdJj9Rlx44O0FdFvUp4kIzToy3AHLTOulEIDAL+dpg==", - "_location": "/@octokit/request", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "@octokit/request@2.2.0", - "name": "@octokit/request", - "escapedName": "@octokit%2frequest", - "scope": "@octokit", - "rawSpec": "2.2.0", - "saveSpec": null, - "fetchSpec": "2.2.0" - }, - "_requiredBy": [ - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/@octokit/request/-/request-2.2.0.tgz", - "_shasum": "f4b2d1ad7c4c8a0b148193610c912046961f8be5", - "_spec": "@octokit/request@2.2.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - }, - "browser": { - "./lib/get-request-agent.js": false, - "./lib/request/get-buffer-response.js": "./lib/request/get-buffer-response-browser.js" - }, - "bugs": { - "url": "https://github.com/octokit/request.js/issues" - }, - "bundleDependencies": false, - "bundlesize": [ - { - "path": "./dist/octokit-request.min.js.gz", - "maxSize": "5KB" - } - ], - "dependencies": { - "@octokit/endpoint": "^3.0.0", - "is-plain-object": "^2.0.4", - "node-fetch": "^2.3.0", - "universal-user-agent": "^2.0.1" - }, - "deprecated": false, - "description": "Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node", - "devDependencies": { - "chai": "^4.2.0", - "compression-webpack-plugin": "^2.0.0", - "coveralls": "^3.0.2", - "cypress": "^3.1.0", - "fetch-mock": "^7.2.0", - "mkdirp": "^0.5.1", - "mocha": "^5.2.0", - "npm-run-all": "^4.1.3", - "nyc": "^13.1.0", - "semantic-release": "^15.10.5", - "simple-mock": "^0.8.0", - "standard": "^12.0.1", - "webpack": "^4.22.0", - "webpack-bundle-analyzer": "^3.0.3", - "webpack-cli": "^3.1.2" - }, - "files": [ - "lib" - ], - "homepage": "https://github.com/octokit/request.js#readme", - "keywords": [ - "octokit", - "github", - "api", - "request" - ], - "license": "MIT", - "main": "index.js", - "name": "@octokit/request", - "publishConfig": { - "access": "public" - }, - "release": { - "publish": [ - "@semantic-release/npm", - { - "path": "@semantic-release/github", - "assets": [ - "dist/*", - "!dist/*.map.gz" - ] - } - ] - }, - "repository": { - "type": "git", - "url": "git+https://github.com/octokit/request.js.git" - }, - "scripts": { - "build": "npm-run-all build:*", - "build:development": "webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-request.js --profile --json > dist/bundle-stats.json", - "build:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-request.min.js --devtool source-map", - "bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html", - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "prebuild": "mkdirp dist/", - "pretest": "standard", - "semantic-release": "semantic-release", - "test": "nyc mocha test/*-test.js", - "test:browser": "cypress run --browser chrome" - }, - "standard": { - "globals": [ - "describe", - "before", - "beforeEach", - "afterEach", - "after", - "it", - "expect" - ] - }, - "version": "2.2.0" -} diff --git a/build/node_modules/@octokit/rest/LICENSE b/build/node_modules/@octokit/rest/LICENSE deleted file mode 100644 index 4c0d268a2..000000000 --- a/build/node_modules/@octokit/rest/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License - -Copyright (c) 2012 Cloud9 IDE, Inc. (Mike de Boer) -Copyright (c) 2017-2018 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/@octokit/rest/README.md b/build/node_modules/@octokit/rest/README.md deleted file mode 100644 index 112877865..000000000 --- a/build/node_modules/@octokit/rest/README.md +++ /dev/null @@ -1,342 +0,0 @@ -# rest.js - -> GitHub REST API client for JavaScript - -[![@latest](https://img.shields.io/npm/v/@octokit/rest.svg)](https://www.npmjs.com/package/@octokit/rest) -[![Build Status](https://travis-ci.org/octokit/rest.js.svg?branch=master)](https://travis-ci.org/octokit/rest.js) -[![Coverage Status](https://coveralls.io/repos/github/octokit/rest.js/badge.svg)](https://coveralls.io/github/octokit/rest.js) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/rest.js.svg)](https://greenkeeper.io/) - -## Usage - -### Node - -Install with `npm install @octokit/rest`. - -```js -const octokit = require('@octokit/rest')() - -// Compare: https://developer.github.com/v3/repos/#list-organization-repositories -octokit.repos.getForOrg({ - org: 'octokit', - type: 'public' -}).then(({ data, headers, status }) => { - // handle data -}) -``` - -### Browser - -1. Download `octokit-rest.min.js` from the latest release: https://github.com/octokit/rest.js/releases - -2. Load it as script into your web application: - - ```html - - ``` - -3. Initialize `octokit` - - ```js - const octokit = new Octokit() - - // Compare: https://developer.github.com/v3/repos/#list-organization-repositories - octokit.repos.getForOrg({ - org: 'octokit', - type: 'public' - }).then(({data, headers, status}) => { - // handle data - }) - ``` - -### Client options - -All available client options with default values - - -```js -const octokit = require('@octokit/rest')({ - timeout: 0, // 0 means no request timeout - headers: { - accept: 'application/vnd.github.v3+json', - 'user-agent': 'octokit/rest.js v1.2.3' // v1.2.3 will be current version - }, - - // custom GitHub Enterprise URL - baseUrl: 'https://api.github.com', - - // Node only: advanced request options can be passed as http(s) agent - agent: undefined -}) -``` - -## API docs - -Find all APIs documented at https://octokit.github.io/rest.js/. - -## API Previews - -To take advantage of [GitHub’s API Previews](https://developer.github.com/v3/previews/), -pass a custom `accept` header, which you can do with any endpoint method documented -in the [API docs](https://octokit.github.io/rest.js/), e.g. - -```js -const { data: { topics } } = await octokit.repos.get({ - owner: 'octokit', - repo: 'rest.js', - headers: { - accept: 'application/vnd.github.mercy-preview+json' - } -}) -``` - -Multiple preview headers can be combined by separating them with commas - -```js -const { data: { topics, codeOfConduct } } = await octokit.repos.get({ - owner: 'octokit', - repo: 'rest.js', - headers: { - accept: 'application/vnd.github.mercy-preview+json,application/vnd.github.scarlet-witch-preview+json' - } -}) -``` - -## Authentication - -Most GitHub API calls don't require authentication. Rules of thumb: - -1. If you can see the information by visiting the site without being logged in, you don't have to be authenticated to retrieve the same information through the API. -2. If you want to change data, you have to be authenticated. - -```javascript -// basic -octokit.authenticate({ - type: 'basic', - username: 'yourusername', - password: 'password' -}) - -// oauth -octokit.authenticate({ - type: 'oauth', - token: 'secrettoken123' -}) - -// oauth key/secret (to get a token or increase higher rate limit for server-server requests) -octokit.authenticate({ - type: 'oauth', - key: 'client_id', - secret: 'client_secret' -}) - -// token (https://github.com/settings/tokens) -octokit.authenticate({ - type: 'token', - token: 'secrettoken123' -}) - -// GitHub app -octokit.authenticate({ - type: 'app', - token: 'secrettoken123' -}) -``` - -Note: `authenticate` is synchronous because it only sets the credentials -for the following requests. - -## Custom requests - -To send custom requests you can use the lower-level `octokit.request()` method - -```js -octokit.request('GET /') -``` - -The `baseUrl`, headers and other defaults are already set. For more information -on the `octokit.request()` API see [`@octokit/request`](https://github.com/octokit/request.js/) - -All the endpoint methods such as `octokit.repos.get()` are aliases of `octokit.request()` -with pre-bound default options. So you can use the `@octokit/request` API to -get the default options or get generic request option to use with your prefered -request library. - -```js -const defaultOptions = octokit.repos.get.endpoint.DEFAULTS -const requestOptions = octokit.repos.get.endpoint() -``` - -## Pagination - -All endpoint methods starting with `.list*` do not return all responses at once but instead return the first 30 items by default, see also [GitHub’s REST API pagination documentation](https://developer.github.com/v3/#pagination). - -To automatically receive all results across all pages, you can use the `octokit.paginate()` method: - -```js -octokit.paginate('GET /repos/:owner/:repo/issues', { owner: 'octokit', repo: 'rest.js' }) - .then(issues => { - // issues is an array of all issue objects - }) -``` - -`octokit.paginate()` accepts the same options as [`octokit.request()`](#customrequests). You can optionally pass an additional function to map the results from each response. The map mast return a new value, usually an array with mapped data. - -```js -octokit.paginate('GET /repos/:owner/:repo/issues', { owner: 'octokit', repo: 'rest.js' }, response => response.data.map(issue => issue.title)) - .then(issueTitles => { - // issueTitles is now an array with the titles only - }) -``` - -To paginate responses for one of the registered endpoint methods such as `octokit.issues.listForRepo()` you can use the [`.endpoint.merge()`](https://github.com/octokit/endpoint.js#endpointmerge) method registered for all endpoint methods: - -```js -const options = octokit.issues.listForRepo.endpoint.merge({ owner: 'octokit', repo: 'rest.js' }) -octokit.paginate(options) - .then(issues => { - // issues is an array of all issue objects - }) -``` - -If your runtime environment supports async iterators (such as Node 10+), you can iterate through each response - -```js -for await (const response of octokit.paginate.iterator(options) { - // do whatever you want with each response, break out of loop, etc. -} -``` - -`octokit.paginate.iterator()` accepts the same options as `octokit.paginate()`. - -## Hooks - -You can customize Octokit’s request lifecycle with hooks. Available methods are - -```js -github.hook.before('request', async (options) => { - validate(options) -}) -github.hook.after('request', async (response, options) => { - console.log(`${options.method} ${options.url}: ${response.status}`) -}) -github.hook.error('request', async (error, options) => { - if (error.status === 304) { - return findInCache(error.headers.etag) - } - - throw error -}) -github.hook.wrap('request', async (request, options) => { - // add logic before, after, catch errors or replace the request altogether - return request(options) -}) -``` - -See [before-after-hook](https://github.com/gr2m/before-after-hook#readme) for more -documentation on hooks. - -## Plugins - -You can customize and extend Octokit’s functionality using plugins - -```js -// index.js -const MyOctokit = require('@octokit/request') - .plugin([ - require('./lib/my-plugin'), - require('octokit-plugin-example') - ]) - -// lib/my-plugin.js -module.exports = (octokit, options = { greeting: 'Hello' }) => { - // add a custom method - octokit.helloWorld = () => console.log(`${options.greeting}, world!`) - - // hook into the request lifecycle - octokit.hook.wrap('request', async (request, options) => { - const time = Date.now() - const response = await request(options) - console.log(`${options.method} ${options.url} – ${response.status} in ${Date.now() - time}ms`) - return response - }) -} -``` - -`.plugin` accepts a function or an array of functions. - -You can add new methods to the `octokit` instance passed as first argument to -the plugin function. The 2nd argument is the options object passed to the -constructor when instantiating the `octokit` client. - -```js -const octokit = new MyOctokit({ greeting: 'Hola' }) -octokit.helloWorld() -// Hola, world! -``` - -## Register custom endpoint methods - -You can register custom endpoint methods such as `octokit.repos.get()` using -the `octokit.registerEndpoints(routes)` method - -```js -octokit.registerEndpoints({ - foo: { - bar: { - method: 'PATCH', - url: '/repos/:owner/:repo/foo', - headers: { - accept: 'application/vnd.github.foo-bar-preview+json' - }, - params: { - owner: { - required: true, - type: 'string' - }, - repo: { - required: true, - type: 'string' - }, - baz: { - required: true, - type: 'string', - enum: [ - 'qux', - 'quux', - 'quuz' - ] - } - } - } - } -}) - -octokit.foo.bar({ - owner: 'octokit', - repo: 'rest.js', - baz: 'quz' -}) -``` - -This is useful when you participate in private beta features and prefer the -convenience of methods for the new endpoints instead of using [`octokit.request()`]('#customrequests'). - -## Debug - -Set `DEBUG=octokit:rest*` for additional debug logs. - -## Contributing - -We would love you to contribute to `@octokit/rest`, pull requests are very welcomed! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information. - -## Credits - -`@octokit/rest` was originally created as [`node-github`](https://www.npmjs.com/package/github) -in 2012 by Mike de Boer from Cloud9 IDE, Inc. -It was adopted and renamed by GitHub in 2017 - -## LICENSE - -[MIT](LICENSE) diff --git a/build/node_modules/@octokit/rest/index.d.ts b/build/node_modules/@octokit/rest/index.d.ts deleted file mode 100644 index c836c274d..000000000 --- a/build/node_modules/@octokit/rest/index.d.ts +++ /dev/null @@ -1,27157 +0,0 @@ -/** - * This declaration file requires TypeScript 2.1 or above. - */ - -import * as http from "http"; - -declare namespace Github { - type json = any; - type date = string; - - export interface Response { - /** This is the data you would see in https://developer.github.com/v3/ */ - data: T; - - /** Response status number */ - status: number; - - /** Response headers */ - headers: { - date: string; - "x-ratelimit-limit": string; - "x-ratelimit-remaining": string; - "x-ratelimit-reset": string; - "x-github-request-id": string; - "x-github-media-type": string; - link: string; - "last-modified": string; - etag: string; - status: string; - }; - - [Symbol.iterator](): Iterator; - } - - export type AnyResponse = Response; - - export interface EmptyParams {} - - export interface Options { - baseUrl?: string; - timeout?: number; - headers?: { [header: string]: any }; - agent?: http.Agent; - - /** - * @deprecated in version 15.0.0 - */ - proxy?: string; - /** - * @deprecated in version 15.0.0 - */ - ca?: string; - /** - * @deprecated in version 15.0.0 - */ - rejectUnauthorized?: boolean; - /** - * @deprecated in version 15.0.0 - */ - family?: number; - - /** - * @deprecated in version 15.2.0 - */ - host?: string; - /** - * @deprecated in version 15.2.0 - */ - pathPrefix?: string; - /** - * @deprecated in version 15.2.0 - */ - protocol?: string; - /** - * @deprecated in version 15.2.0 - */ - port?: number; - } - - export interface AuthBasic { - type: "basic"; - username: string; - password: string; - } - - export interface AuthOAuthToken { - type: "oauth"; - token: string; - } - - export interface AuthOAuthSecret { - type: "oauth"; - key: string; - secret: string; - } - - export interface AuthUserToken { - type: "token"; - token: string; - } - - export interface AuthJWT { - type: "app"; - token: string; - } - - export type Link = { link: string } | { headers: { link: string } } | string; - - export interface Callback { - (error: Error | null, result: T): any; - } - - export type Plugin = (octikit: Github, options: Github.Options) => void; - - // See https://github.com/octokit/request.js#octokitrequest - export type HookOptions = { - baseUrl: string; - headers: { [header: string]: string }; - method: string; - url: string; - data: any; - // See https://github.com/bitinn/node-fetch#options - request: { - follow?: number; - timeout?: number; - compress?: boolean; - size?: number; - agent?: string | null; - }; - [index: string]: any; - }; - - export type HookError = Error & { - status: number; - headers: { [header: string]: string }; - documentation_url?: string; - errors?: [ - { - resource: string; - field: string; - code: string; - } - ]; - }; - - type UsersDeleteGpgKeyResponse = {}; - type UsersCreateGpgKeyResponseSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; - }; - type UsersCreateGpgKeyResponseEmailsItem = { - email: string; - verified: boolean; - }; - type UsersCreateGpgKeyResponse = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; - }; - type UsersGetGpgKeyResponseSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; - }; - type UsersGetGpgKeyResponseEmailsItem = { email: string; verified: boolean }; - type UsersGetGpgKeyResponse = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; - }; - type UsersListGpgKeysResponseItemSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; - }; - type UsersListGpgKeysResponseItemEmailsItem = { - email: string; - verified: boolean; - }; - type UsersListGpgKeysResponseItem = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; - }; - type UsersListGpgKeysForUserResponseItemSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; - }; - type UsersListGpgKeysForUserResponseItemEmailsItem = { - email: string; - verified: boolean; - }; - type UsersListGpgKeysForUserResponseItem = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; - }; - type UsersDeletePublicKeyResponse = {}; - type UsersCreatePublicKeyResponse = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; - }; - type UsersGetPublicKeyResponse = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; - }; - type UsersListPublicKeysResponseItem = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; - }; - type UsersListPublicKeysForUserResponseItem = { id: number; key: string }; - type UsersUnfollowResponse = {}; - type UsersFollowResponse = {}; - type UsersListFollowingForAuthenticatedUserResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type UsersListFollowingForUserResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type UsersListFollowersForAuthenticatedUserResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type UsersListFollowersForUserResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type UsersTogglePrimaryEmailVisibilityResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; - }; - type UsersDeleteEmailsResponse = {}; - type UsersAddEmailsResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string | null; - }; - type UsersListPublicEmailsResponseItem = { - email: string; - verified: boolean; - primary: boolean; - visibility: string; - }; - type UsersListEmailsResponseItem = { - email: string; - verified: boolean; - primary: boolean; - visibility: string; - }; - type UsersUnblockResponse = {}; - type UsersBlockResponse = {}; - type UsersCheckBlockedResponse = {}; - type UsersListBlockedResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type UsersListResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type UsersUpdateAuthenticatedResponsePlan = { - name: string; - space: number; - private_repos: number; - collaborators: number; - }; - type UsersUpdateAuthenticatedResponse = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - total_private_repos: number; - owned_private_repos: number; - private_gists: number; - disk_usage: number; - collaborators: number; - two_factor_authentication: boolean; - plan: UsersUpdateAuthenticatedResponsePlan; - }; - type UsersGetByUsernameResponse = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - }; - type TeamsListPendingInvitationsResponseItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsListPendingInvitationsResponseItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: TeamsListPendingInvitationsResponseItemInviter; - team_count: number; - invitation_team_url: string; - }; - type TeamsRemoveMembershipResponse = {}; - type TeamsRemoveMemberResponse = {}; - type TeamsAddMemberResponseErrorsItem = { - code: string; - field: string; - resource: string; - }; - type TeamsAddMemberResponse = { - message?: string; - errors?: Array; - }; - type TeamsListMembersResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsDeleteDiscussionCommentResponse = {}; - type TeamsUpdateDiscussionCommentResponseReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; - }; - type TeamsUpdateDiscussionCommentResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsUpdateDiscussionCommentResponse = { - author: TeamsUpdateDiscussionCommentResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: string; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionCommentResponseReactions; - }; - type TeamsCreateDiscussionCommentResponseReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; - }; - type TeamsCreateDiscussionCommentResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsCreateDiscussionCommentResponse = { - author: TeamsCreateDiscussionCommentResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionCommentResponseReactions; - }; - type TeamsGetDiscussionCommentResponseReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; - }; - type TeamsGetDiscussionCommentResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsGetDiscussionCommentResponse = { - author: TeamsGetDiscussionCommentResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionCommentResponseReactions; - }; - type TeamsListDiscussionCommentsResponseItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; - }; - type TeamsListDiscussionCommentsResponseItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsListDiscussionCommentsResponseItem = { - author: TeamsListDiscussionCommentsResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsListDiscussionCommentsResponseItemReactions; - }; - type TeamsDeleteDiscussionResponse = {}; - type TeamsUpdateDiscussionResponseReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; - }; - type TeamsUpdateDiscussionResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsUpdateDiscussionResponse = { - author: TeamsUpdateDiscussionResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: string; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionResponseReactions; - }; - type TeamsCreateDiscussionResponseReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; - }; - type TeamsCreateDiscussionResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsCreateDiscussionResponse = { - author: TeamsCreateDiscussionResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionResponseReactions; - }; - type TeamsGetDiscussionResponseReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; - }; - type TeamsGetDiscussionResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsGetDiscussionResponse = { - author: TeamsGetDiscussionResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionResponseReactions; - }; - type TeamsListDiscussionsResponseItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; - }; - type TeamsListDiscussionsResponseItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsListDiscussionsResponseItem = { - author: TeamsListDiscussionsResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsListDiscussionsResponseItemReactions; - }; - type TeamsRemoveProjectResponse = {}; - type TeamsAddOrUpdateProjectResponse = {}; - type TeamsReviewProjectResponsePermissions = { - read: boolean; - write: boolean; - admin: boolean; - }; - type TeamsReviewProjectResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsReviewProjectResponse = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsReviewProjectResponseCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsReviewProjectResponsePermissions; - }; - type TeamsListProjectsResponseItemPermissions = { - read: boolean; - write: boolean; - admin: boolean; - }; - type TeamsListProjectsResponseItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsListProjectsResponseItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsListProjectsResponseItemCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsListProjectsResponseItemPermissions; - }; - type TeamsListForAuthenticatedUserResponseItemOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - }; - type TeamsListForAuthenticatedUserResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsListForAuthenticatedUserResponseItemOrganization; - }; - type TeamsRemoveRepoResponse = {}; - type TeamsAddOrUpdateRepoResponse = {}; - type TeamsListReposResponseItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - }; - type TeamsListReposResponseItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type TeamsListReposResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type TeamsListReposResponseItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsListReposResponseItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsListReposResponseItemPermissions; - subscribers_count: number; - network_count: number; - license: TeamsListReposResponseItemLicense; - }; - type TeamsDeleteResponse = {}; - type TeamsUpdateResponseOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - }; - type TeamsUpdateResponse = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsUpdateResponseOrganization; - }; - type TeamsCreateResponseOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - }; - type TeamsCreateResponse = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsCreateResponseOrganization; - }; - type TeamsGetResponseOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - }; - type TeamsGetResponse = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsGetResponseOrganization; - }; - type TeamsListResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposDeleteHookResponse = {}; - type ReposPingHookResponse = {}; - type ReposTestPushHookResponse = {}; - type ReposUpdateHookResponseConfig = { url: string; content_type: string }; - type ReposUpdateHookResponse = { - id: number; - url: string; - test_url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: ReposUpdateHookResponseConfig; - updated_at: string; - created_at: string; - }; - type ReposCreateHookResponseConfig = { url: string; content_type: string }; - type ReposCreateHookResponse = { - id: number; - url: string; - test_url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: ReposCreateHookResponseConfig; - updated_at: string; - created_at: string; - }; - type ReposGetHookResponseConfig = { url: string; content_type: string }; - type ReposGetHookResponse = { - id: number; - url: string; - test_url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: ReposGetHookResponseConfig; - updated_at: string; - created_at: string; - }; - type ReposListHooksResponseItemConfig = { url: string; content_type: string }; - type ReposListHooksResponseItem = { - id: number; - url: string; - test_url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: ReposListHooksResponseItemConfig; - updated_at: string; - created_at: string; - }; - type ReposGetClonesResponseClonesItem = { - timestamp: string; - count: number; - uniques: number; - }; - type ReposGetClonesResponse = { - count: number; - uniques: number; - clones: Array; - }; - type ReposGetViewsResponseViewsItem = { - timestamp: string; - count: number; - uniques: number; - }; - type ReposGetViewsResponse = { - count: number; - uniques: number; - views: Array; - }; - type ReposGetTopPathsResponseItem = { - path: string; - title: string; - count: number; - uniques: number; - }; - type ReposGetTopReferrersResponseItem = { - referrer: string; - count: number; - uniques: number; - }; - type ReposGetCombinedStatusForRefResponseRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetCombinedStatusForRefResponseRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetCombinedStatusForRefResponseRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - }; - type ReposGetCombinedStatusForRefResponseStatusesItem = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; - }; - type ReposGetCombinedStatusForRefResponse = { - state: string; - statuses: Array; - sha: string; - total_count: number; - repository: ReposGetCombinedStatusForRefResponseRepository; - commit_url: string; - url: string; - }; - type ReposListStatusesForRefResponseItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListStatusesForRefResponseItem = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; - creator: ReposListStatusesForRefResponseItemCreator; - }; - type ReposCreateStatusResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposCreateStatusResponse = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; - creator: ReposCreateStatusResponseCreator; - }; - type ReposGetParticipationStatsResponse = { - all: Array; - owner: Array; - }; - type ReposGetCommitActivityStatsResponseItem = { - days: Array; - total: number; - week: number; - }; - type ReposGetContributorsStatsResponseItemWeeksItem = { - w: string; - a: number; - d: number; - c: number; - }; - type ReposGetContributorsStatsResponseItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetContributorsStatsResponseItem = { - author: ReposGetContributorsStatsResponseItemAuthor; - total: number; - weeks: Array; - }; - type ReposDeleteReleaseAssetResponse = {}; - type ReposUpdateReleaseAssetResponseUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateReleaseAssetResponse = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUpdateReleaseAssetResponseUploader; - }; - type ReposGetReleaseAssetResponseUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetReleaseAssetResponse = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseAssetResponseUploader; - }; - type ReposListAssetsForReleaseResponseItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListAssetsForReleaseResponseItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposListAssetsForReleaseResponseItemUploader; - }; - type ReposDeleteReleaseResponse = {}; - type ReposUpdateReleaseResponseAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateReleaseResponseAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUpdateReleaseResponseAssetsItemUploader; - }; - type ReposUpdateReleaseResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateReleaseResponse = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposUpdateReleaseResponseAuthor; - assets: Array; - }; - type ReposCreateReleaseResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposCreateReleaseResponse = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposCreateReleaseResponseAuthor; - assets: Array; - }; - type ReposGetReleaseByTagResponseAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetReleaseByTagResponseAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseByTagResponseAssetsItemUploader; - }; - type ReposGetReleaseByTagResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetReleaseByTagResponse = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetReleaseByTagResponseAuthor; - assets: Array; - }; - type ReposGetLatestReleaseResponseAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetLatestReleaseResponseAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetLatestReleaseResponseAssetsItemUploader; - }; - type ReposGetLatestReleaseResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetLatestReleaseResponse = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetLatestReleaseResponseAuthor; - assets: Array; - }; - type ReposGetReleaseResponseAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetReleaseResponseAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseResponseAssetsItemUploader; - }; - type ReposGetReleaseResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetReleaseResponse = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetReleaseResponseAuthor; - assets: Array; - }; - type ReposListReleasesResponseItemAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListReleasesResponseItemAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposListReleasesResponseItemAssetsItemUploader; - }; - type ReposListReleasesResponseItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListReleasesResponseItem = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposListReleasesResponseItemAuthor; - assets: Array; - }; - type ReposRequestPageBuildResponse = { url: string; status: string }; - type ReposUpdateInformationAboutPagesSiteResponse = {}; - type ReposGetPagesResponseSource = { branch: string; directory: string }; - type ReposGetPagesResponse = { - url: string; - status: string; - cname: string; - custom_404: boolean; - html_url: string; - source: ReposGetPagesResponseSource; - }; - type ReposDeclineInvitationResponse = {}; - type ReposAcceptInvitationResponse = {}; - type ReposListInvitationsForAuthenticatedUserResponseItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListInvitationsForAuthenticatedUserResponseItemInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListInvitationsForAuthenticatedUserResponseItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListInvitationsForAuthenticatedUserResponseItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListInvitationsForAuthenticatedUserResponseItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - }; - type ReposListInvitationsForAuthenticatedUserResponseItem = { - id: number; - repository: ReposListInvitationsForAuthenticatedUserResponseItemRepository; - invitee: ReposListInvitationsForAuthenticatedUserResponseItemInvitee; - inviter: ReposListInvitationsForAuthenticatedUserResponseItemInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; - }; - type ReposUpdateInvitationResponseInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateInvitationResponseInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateInvitationResponseRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateInvitationResponseRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateInvitationResponseRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - }; - type ReposUpdateInvitationResponse = { - id: number; - repository: ReposUpdateInvitationResponseRepository; - invitee: ReposUpdateInvitationResponseInvitee; - inviter: ReposUpdateInvitationResponseInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; - }; - type ReposDeleteInvitationResponse = {}; - type ReposListInvitationsResponseItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListInvitationsResponseItemInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListInvitationsResponseItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListInvitationsResponseItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListInvitationsResponseItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - }; - type ReposListInvitationsResponseItem = { - id: number; - repository: ReposListInvitationsResponseItemRepository; - invitee: ReposListInvitationsResponseItemInvitee; - inviter: ReposListInvitationsResponseItemInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; - }; - type ReposCreateForkResponsePermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposCreateForkResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposCreateForkResponse = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateForkResponseOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateForkResponsePermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ReposListForksResponseItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - }; - type ReposListForksResponseItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposListForksResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListForksResponseItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListForksResponseItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListForksResponseItemPermissions; - subscribers_count: number; - network_count: number; - license: ReposListForksResponseItemLicense; - }; - type ReposDeleteDownloadResponse = {}; - type ReposGetDownloadResponse = { - url: string; - html_url: string; - id: number; - name: string; - description: string; - size: number; - download_count: number; - content_type: string; - }; - type ReposListDownloadsResponseItem = { - url: string; - html_url: string; - id: number; - name: string; - description: string; - size: number; - download_count: number; - content_type: string; - }; - type ReposCreateDeploymentStatusResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposCreateDeploymentStatusResponse = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposCreateDeploymentStatusResponseCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; - }; - type ReposGetDeploymentStatusResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetDeploymentStatusResponse = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposGetDeploymentStatusResponseCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; - }; - type ReposListDeploymentStatusesResponseItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListDeploymentStatusesResponseItem = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposListDeploymentStatusesResponseItemCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; - }; - type ReposGetDeploymentResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetDeploymentResponsePayload = { deploy: string }; - type ReposGetDeploymentResponse = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposGetDeploymentResponsePayload; - original_environment: string; - environment: string; - description: string; - creator: ReposGetDeploymentResponseCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; - }; - type ReposListDeploymentsResponseItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListDeploymentsResponseItemPayload = { deploy: string }; - type ReposListDeploymentsResponseItem = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposListDeploymentsResponseItemPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposListDeploymentsResponseItemCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; - }; - type ReposRemoveDeployKeyResponse = {}; - type ReposAddDeployKeyResponse = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; - }; - type ReposGetDeployKeyResponse = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; - }; - type ReposListDeployKeysResponseItem = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; - }; - type ReposGetArchiveLinkResponse = {}; - type ReposDeleteFileResponseCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type ReposDeleteFileResponseCommitParentsItem = { - url: string; - html_url: string; - sha: string; - }; - type ReposDeleteFileResponseCommitTree = { url: string; sha: string }; - type ReposDeleteFileResponseCommitCommitter = { - date: string; - name: string; - email: string; - }; - type ReposDeleteFileResponseCommitAuthor = { - date: string; - name: string; - email: string; - }; - type ReposDeleteFileResponseCommit = { - sha: string; - node_id: string; - url: string; - html_url: string; - author: ReposDeleteFileResponseCommitAuthor; - committer: ReposDeleteFileResponseCommitCommitter; - message: string; - tree: ReposDeleteFileResponseCommitTree; - parents: Array; - verification: ReposDeleteFileResponseCommitVerification; - }; - type ReposDeleteFileResponse = { - content: null; - commit: ReposDeleteFileResponseCommit; - }; - type ReposUpdateFileResponseCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type ReposUpdateFileResponseCommitParentsItem = { - url: string; - html_url: string; - sha: string; - }; - type ReposUpdateFileResponseCommitTree = { url: string; sha: string }; - type ReposUpdateFileResponseCommitCommitter = { - date: string; - name: string; - email: string; - }; - type ReposUpdateFileResponseCommitAuthor = { - date: string; - name: string; - email: string; - }; - type ReposUpdateFileResponseCommit = { - sha: string; - node_id: string; - url: string; - html_url: string; - author: ReposUpdateFileResponseCommitAuthor; - committer: ReposUpdateFileResponseCommitCommitter; - message: string; - tree: ReposUpdateFileResponseCommitTree; - parents: Array; - verification: ReposUpdateFileResponseCommitVerification; - }; - type ReposUpdateFileResponseContentLinks = { - self: string; - git: string; - html: string; - }; - type ReposUpdateFileResponseContent = { - name: string; - path: string; - sha: string; - size: number; - url: string; - html_url: string; - git_url: string; - download_url: string; - type: string; - _links: ReposUpdateFileResponseContentLinks; - }; - type ReposUpdateFileResponse = { - content: ReposUpdateFileResponseContent; - commit: ReposUpdateFileResponseCommit; - }; - type ReposCreateFileResponseCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type ReposCreateFileResponseCommitParentsItem = { - url: string; - html_url: string; - sha: string; - }; - type ReposCreateFileResponseCommitTree = { url: string; sha: string }; - type ReposCreateFileResponseCommitCommitter = { - date: string; - name: string; - email: string; - }; - type ReposCreateFileResponseCommitAuthor = { - date: string; - name: string; - email: string; - }; - type ReposCreateFileResponseCommit = { - sha: string; - node_id: string; - url: string; - html_url: string; - author: ReposCreateFileResponseCommitAuthor; - committer: ReposCreateFileResponseCommitCommitter; - message: string; - tree: ReposCreateFileResponseCommitTree; - parents: Array; - verification: ReposCreateFileResponseCommitVerification; - }; - type ReposCreateFileResponseContentLinks = { - self: string; - git: string; - html: string; - }; - type ReposCreateFileResponseContent = { - name: string; - path: string; - sha: string; - size: number; - url: string; - html_url: string; - git_url: string; - download_url: string; - type: string; - _links: ReposCreateFileResponseContentLinks; - }; - type ReposCreateFileResponse = { - content: ReposCreateFileResponseContent; - commit: ReposCreateFileResponseCommit; - }; - type ReposGetReadmeResponseLinks = { - git: string; - self: string; - html: string; - }; - type ReposGetReadmeResponse = { - type: string; - encoding: string; - size: number; - name: string; - path: string; - content: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string; - _links: ReposGetReadmeResponseLinks; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesReadme = { - url: string; - html_url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesLicense = { - name: string; - key: string; - spdx_id: string; - url: string; - html_url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesPullRequestTemplate = { - url: string; - html_url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesIssueTemplate = { - url: string; - html_url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesContributing = { - url: string; - html_url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesCodeOfConduct = { - name: string; - key: string; - url: string; - html_url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFiles = { - code_of_conduct: ReposRetrieveCommunityProfileMetricsResponseFilesCodeOfConduct; - contributing: ReposRetrieveCommunityProfileMetricsResponseFilesContributing; - issue_template: ReposRetrieveCommunityProfileMetricsResponseFilesIssueTemplate; - pull_request_template: ReposRetrieveCommunityProfileMetricsResponseFilesPullRequestTemplate; - license: ReposRetrieveCommunityProfileMetricsResponseFilesLicense; - readme: ReposRetrieveCommunityProfileMetricsResponseFilesReadme; - }; - type ReposRetrieveCommunityProfileMetricsResponse = { - health_percentage: number; - description: string; - documentation: boolean; - files: ReposRetrieveCommunityProfileMetricsResponseFiles; - updated_at: string; - }; - type ReposGetCommitRefShaResponse = {}; - type ReposGetCommitResponseFilesItem = { - filename: string; - additions: number; - deletions: number; - changes: number; - status: string; - raw_url: string; - blob_url: string; - patch: string; - }; - type ReposGetCommitResponseStats = { - additions: number; - deletions: number; - total: number; - }; - type ReposGetCommitResponseParentsItem = { url: string; sha: string }; - type ReposGetCommitResponseCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetCommitResponseAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetCommitResponseCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type ReposGetCommitResponseCommitTree = { url: string; sha: string }; - type ReposGetCommitResponseCommitCommitter = { - name: string; - email: string; - date: string; - }; - type ReposGetCommitResponseCommitAuthor = { - name: string; - email: string; - date: string; - }; - type ReposGetCommitResponseCommit = { - url: string; - author: ReposGetCommitResponseCommitAuthor; - committer: ReposGetCommitResponseCommitCommitter; - message: string; - tree: ReposGetCommitResponseCommitTree; - comment_count: number; - verification: ReposGetCommitResponseCommitVerification; - }; - type ReposGetCommitResponse = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposGetCommitResponseCommit; - author: ReposGetCommitResponseAuthor; - committer: ReposGetCommitResponseCommitter; - parents: Array; - stats: ReposGetCommitResponseStats; - files: Array; - }; - type ReposListCommitsResponseItemParentsItem = { url: string; sha: string }; - type ReposListCommitsResponseItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListCommitsResponseItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListCommitsResponseItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type ReposListCommitsResponseItemCommitTree = { url: string; sha: string }; - type ReposListCommitsResponseItemCommitCommitter = { - name: string; - email: string; - date: string; - }; - type ReposListCommitsResponseItemCommitAuthor = { - name: string; - email: string; - date: string; - }; - type ReposListCommitsResponseItemCommit = { - url: string; - author: ReposListCommitsResponseItemCommitAuthor; - committer: ReposListCommitsResponseItemCommitCommitter; - message: string; - tree: ReposListCommitsResponseItemCommitTree; - comment_count: number; - verification: ReposListCommitsResponseItemCommitVerification; - }; - type ReposListCommitsResponseItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposListCommitsResponseItemCommit; - author: ReposListCommitsResponseItemAuthor; - committer: ReposListCommitsResponseItemCommitter; - parents: Array; - }; - type ReposDeleteCommitCommentResponse = {}; - type ReposUpdateCommitCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateCommitCommentResponse = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposUpdateCommitCommentResponseUser; - created_at: string; - updated_at: string; - }; - type ReposGetCommitCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetCommitCommentResponse = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposGetCommitCommentResponseUser; - created_at: string; - updated_at: string; - }; - type ReposCreateCommitCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposCreateCommitCommentResponse = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposCreateCommitCommentResponseUser; - created_at: string; - updated_at: string; - }; - type ReposListCommentsForCommitResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListCommentsForCommitResponseItem = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposListCommentsForCommitResponseItemUser; - created_at: string; - updated_at: string; - }; - type ReposListCommitCommentsResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListCommitCommentsResponseItem = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposListCommitCommentsResponseItemUser; - created_at: string; - updated_at: string; - }; - type ReposRemoveCollaboratorResponse = {}; - type ReposListCollaboratorsResponseItemPermissions = { - pull: boolean; - push: boolean; - admin: boolean; - }; - type ReposListCollaboratorsResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - permissions: ReposListCollaboratorsResponseItemPermissions; - }; - type ReposRemoveProtectedBranchUserRestrictionsResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposAddProtectedBranchUserRestrictionsResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposReplaceProtectedBranchUserRestrictionsResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposRemoveProtectedBranchTeamRestrictionsResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposAddProtectedBranchTeamRestrictionsResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposReplaceProtectedBranchTeamRestrictionsResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposAddProtectedBranchAdminEnforcementResponse = { - url: string; - enabled: boolean; - }; - type ReposAddProtectedBranchRequiredSignaturesResponse = { - url: string; - enabled: boolean; - }; - type ReposGetProtectedBranchRequiredSignaturesResponse = { - url: string; - enabled: boolean; - }; - type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array< - ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem - >; - teams: Array< - ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem - >; - }; - type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponse = { - url: string; - dismissal_restrictions: ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - }; - type ReposUpdateProtectedBranchRequiredStatusChecksResponse = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; - }; - type ReposGetProtectedBranchRequiredStatusChecksResponse = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; - }; - type ReposRemoveBranchProtectionResponse = {}; - type ReposUpdateBranchProtectionResponseRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposUpdateBranchProtectionResponseRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateBranchProtectionResponseRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; - }; - type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array< - ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem - >; - teams: Array< - ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem - >; - }; - type ReposUpdateBranchProtectionResponseRequiredPullRequestReviews = { - url: string; - dismissal_restrictions: ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - }; - type ReposUpdateBranchProtectionResponseEnforceAdmins = { - url: string; - enabled: boolean; - }; - type ReposUpdateBranchProtectionResponseRequiredStatusChecks = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; - }; - type ReposUpdateBranchProtectionResponse = { - url: string; - required_status_checks: ReposUpdateBranchProtectionResponseRequiredStatusChecks; - enforce_admins: ReposUpdateBranchProtectionResponseEnforceAdmins; - required_pull_request_reviews: ReposUpdateBranchProtectionResponseRequiredPullRequestReviews; - restrictions: ReposUpdateBranchProtectionResponseRestrictions; - }; - type ReposGetBranchProtectionResponseRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposGetBranchProtectionResponseRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetBranchProtectionResponseRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; - }; - type ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array< - ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem - >; - teams: Array< - ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem - >; - }; - type ReposGetBranchProtectionResponseRequiredPullRequestReviews = { - url: string; - dismissal_restrictions: ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - }; - type ReposGetBranchProtectionResponseEnforceAdmins = { - url: string; - enabled: boolean; - }; - type ReposGetBranchProtectionResponseRequiredStatusChecks = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; - }; - type ReposGetBranchProtectionResponse = { - url: string; - required_status_checks: ReposGetBranchProtectionResponseRequiredStatusChecks; - enforce_admins: ReposGetBranchProtectionResponseEnforceAdmins; - required_pull_request_reviews: ReposGetBranchProtectionResponseRequiredPullRequestReviews; - restrictions: ReposGetBranchProtectionResponseRestrictions; - }; - type ReposGetBranchResponseLinks = { html: string; self: string }; - type ReposGetBranchResponseCommitCommitter = { - gravatar_id: string; - avatar_url: string; - url: string; - id: number; - login: string; - }; - type ReposGetBranchResponseCommitParentsItem = { sha: string; url: string }; - type ReposGetBranchResponseCommitAuthor = { - gravatar_id: string; - avatar_url: string; - url: string; - id: number; - login: string; - }; - type ReposGetBranchResponseCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type ReposGetBranchResponseCommitCommitCommitter = { - name: string; - date: string; - email: string; - }; - type ReposGetBranchResponseCommitCommitTree = { sha: string; url: string }; - type ReposGetBranchResponseCommitCommitAuthor = { - name: string; - date: string; - email: string; - }; - type ReposGetBranchResponseCommitCommit = { - author: ReposGetBranchResponseCommitCommitAuthor; - url: string; - message: string; - tree: ReposGetBranchResponseCommitCommitTree; - committer: ReposGetBranchResponseCommitCommitCommitter; - verification: ReposGetBranchResponseCommitCommitVerification; - }; - type ReposGetBranchResponseCommit = { - sha: string; - node_id: string; - commit: ReposGetBranchResponseCommitCommit; - author: ReposGetBranchResponseCommitAuthor; - parents: Array; - url: string; - committer: ReposGetBranchResponseCommitCommitter; - }; - type ReposGetBranchResponse = { - name: string; - commit: ReposGetBranchResponseCommit; - _links: ReposGetBranchResponseLinks; - protected: boolean; - protection_url: string; - }; - type ReposListBranchesResponseItemCommit = { sha: string; url: string }; - type ReposListBranchesResponseItem = { - name: string; - commit: ReposListBranchesResponseItemCommit; - protected: boolean; - protection_url: string; - }; - type ReposTransferResponsePermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposTransferResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposTransferResponse = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposTransferResponseOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposTransferResponsePermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ReposDeleteResponse = { message?: string; documentation_url?: string }; - type ReposListTagsResponseItemCommit = { sha: string; url: string }; - type ReposListTagsResponseItem = { - name: string; - commit: ReposListTagsResponseItemCommit; - zipball_url: string; - tarball_url: string; - }; - type ReposListTeamsResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type ReposListLanguagesResponse = { C: number; Python: number }; - type ReposReplaceTopicsResponse = { names: Array }; - type ReposListTopicsResponse = { names: Array }; - type ReposUpdateResponseSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposUpdateResponseSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateResponseSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseSourcePermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ReposUpdateResponseParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposUpdateResponseParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateResponseParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseParentPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ReposUpdateResponseOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateResponsePermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposUpdateResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposUpdateResponse = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponsePermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - organization: ReposUpdateResponseOrganization; - parent: ReposUpdateResponseParent; - source: ReposUpdateResponseSource; - }; - type ReposGetResponseSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposGetResponseSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetResponseSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposGetResponseSourcePermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ReposGetResponseParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposGetResponseParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetResponseParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposGetResponseParentPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ReposGetResponseOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetResponseLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - }; - type ReposGetResponsePermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposGetResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposGetResponse = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposGetResponsePermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - license: ReposGetResponseLicense; - organization: ReposGetResponseOrganization; - parent: ReposGetResponseParent; - source: ReposGetResponseSource; - }; - type ReposCreateInOrgResponsePermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposCreateInOrgResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposCreateInOrgResponse = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateInOrgResponseOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateInOrgResponsePermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ReposCreateForAuthenticatedUserResponsePermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposCreateForAuthenticatedUserResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposCreateForAuthenticatedUserResponse = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateForAuthenticatedUserResponseOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateForAuthenticatedUserResponsePermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ReposListPublicResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListPublicResponseItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPublicResponseItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - }; - type ReposListForOrgResponseItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - }; - type ReposListForOrgResponseItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ReposListForOrgResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReposListForOrgResponseItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListForOrgResponseItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListForOrgResponseItemPermissions; - subscribers_count: number; - network_count: number; - license: ReposListForOrgResponseItemLicense; - }; - type ReactionsDeleteResponse = {}; - type ReactionsCreateForTeamDiscussionCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsCreateForTeamDiscussionCommentResponse = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentResponseUser; - content: string; - created_at: string; - }; - type ReactionsListForTeamDiscussionCommentResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsListForTeamDiscussionCommentResponseItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentResponseItemUser; - content: string; - created_at: string; - }; - type ReactionsCreateForTeamDiscussionResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsCreateForTeamDiscussionResponse = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionResponseUser; - content: string; - created_at: string; - }; - type ReactionsListForTeamDiscussionResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsListForTeamDiscussionResponseItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionResponseItemUser; - content: string; - created_at: string; - }; - type ReactionsCreateForPullRequestReviewCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsCreateForPullRequestReviewCommentResponse = { - id: number; - node_id: string; - user: ReactionsCreateForPullRequestReviewCommentResponseUser; - content: string; - created_at: string; - }; - type ReactionsListForPullRequestReviewCommentResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsListForPullRequestReviewCommentResponseItem = { - id: number; - node_id: string; - user: ReactionsListForPullRequestReviewCommentResponseItemUser; - content: string; - created_at: string; - }; - type ReactionsCreateForIssueCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsCreateForIssueCommentResponse = { - id: number; - node_id: string; - user: ReactionsCreateForIssueCommentResponseUser; - content: string; - created_at: string; - }; - type ReactionsListForIssueCommentResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsListForIssueCommentResponseItem = { - id: number; - node_id: string; - user: ReactionsListForIssueCommentResponseItemUser; - content: string; - created_at: string; - }; - type ReactionsCreateForIssueResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsCreateForIssueResponse = { - id: number; - node_id: string; - user: ReactionsCreateForIssueResponseUser; - content: string; - created_at: string; - }; - type ReactionsListForIssueResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsListForIssueResponseItem = { - id: number; - node_id: string; - user: ReactionsListForIssueResponseItemUser; - content: string; - created_at: string; - }; - type ReactionsCreateForCommitCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsCreateForCommitCommentResponse = { - id: number; - node_id: string; - user: ReactionsCreateForCommitCommentResponseUser; - content: string; - created_at: string; - }; - type ReactionsListForCommitCommentResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ReactionsListForCommitCommentResponseItem = { - id: number; - node_id: string; - user: ReactionsListForCommitCommentResponseItemUser; - content: string; - created_at: string; - }; - type PullsDeleteReviewRequestResponse = {}; - type PullsCreateReviewRequestResponseLinksStatuses = { href: string }; - type PullsCreateReviewRequestResponseLinksCommits = { href: string }; - type PullsCreateReviewRequestResponseLinksReviewComment = { href: string }; - type PullsCreateReviewRequestResponseLinksReviewComments = { href: string }; - type PullsCreateReviewRequestResponseLinksComments = { href: string }; - type PullsCreateReviewRequestResponseLinksIssue = { href: string }; - type PullsCreateReviewRequestResponseLinksHtml = { href: string }; - type PullsCreateReviewRequestResponseLinksSelf = { href: string }; - type PullsCreateReviewRequestResponseLinks = { - self: PullsCreateReviewRequestResponseLinksSelf; - html: PullsCreateReviewRequestResponseLinksHtml; - issue: PullsCreateReviewRequestResponseLinksIssue; - comments: PullsCreateReviewRequestResponseLinksComments; - review_comments: PullsCreateReviewRequestResponseLinksReviewComments; - review_comment: PullsCreateReviewRequestResponseLinksReviewComment; - commits: PullsCreateReviewRequestResponseLinksCommits; - statuses: PullsCreateReviewRequestResponseLinksStatuses; - }; - type PullsCreateReviewRequestResponseBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsCreateReviewRequestResponseBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewRequestResponseBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateReviewRequestResponseBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateReviewRequestResponseBaseRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsCreateReviewRequestResponseBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewRequestResponseBase = { - label: string; - ref: string; - sha: string; - user: PullsCreateReviewRequestResponseBaseUser; - repo: PullsCreateReviewRequestResponseBaseRepo; - }; - type PullsCreateReviewRequestResponseHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsCreateReviewRequestResponseHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewRequestResponseHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateReviewRequestResponseHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateReviewRequestResponseHeadRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsCreateReviewRequestResponseHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewRequestResponseHead = { - label: string; - ref: string; - sha: string; - user: PullsCreateReviewRequestResponseHeadUser; - repo: PullsCreateReviewRequestResponseHeadRepo; - }; - type PullsCreateReviewRequestResponseRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type PullsCreateReviewRequestResponseRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewRequestResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewRequestResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewRequestResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewRequestResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsCreateReviewRequestResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type PullsCreateReviewRequestResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type PullsCreateReviewRequestResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewRequestResponse = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsCreateReviewRequestResponseUser; - body: string; - labels: Array; - milestone: PullsCreateReviewRequestResponseMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsCreateReviewRequestResponseAssignee; - assignees: Array; - requested_reviewers: Array< - PullsCreateReviewRequestResponseRequestedReviewersItem - >; - requested_teams: Array; - head: PullsCreateReviewRequestResponseHead; - base: PullsCreateReviewRequestResponseBase; - _links: PullsCreateReviewRequestResponseLinks; - author_association: string; - }; - type PullsListReviewRequestsResponseTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type PullsListReviewRequestsResponseUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListReviewRequestsResponse = { - users: Array; - teams: Array; - }; - type PullsDeleteCommentResponse = {}; - type PullsUpdateCommentResponseLinksPullRequest = { href: string }; - type PullsUpdateCommentResponseLinksHtml = { href: string }; - type PullsUpdateCommentResponseLinksSelf = { href: string }; - type PullsUpdateCommentResponseLinks = { - self: PullsUpdateCommentResponseLinksSelf; - html: PullsUpdateCommentResponseLinksHtml; - pull_request: PullsUpdateCommentResponseLinksPullRequest; - }; - type PullsUpdateCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateCommentResponse = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsUpdateCommentResponseUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - _links: PullsUpdateCommentResponseLinks; - }; - type PullsCreateCommentReplyResponseLinksPullRequest = { href: string }; - type PullsCreateCommentReplyResponseLinksHtml = { href: string }; - type PullsCreateCommentReplyResponseLinksSelf = { href: string }; - type PullsCreateCommentReplyResponseLinks = { - self: PullsCreateCommentReplyResponseLinksSelf; - html: PullsCreateCommentReplyResponseLinksHtml; - pull_request: PullsCreateCommentReplyResponseLinksPullRequest; - }; - type PullsCreateCommentReplyResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateCommentReplyResponse = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsCreateCommentReplyResponseUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - _links: PullsCreateCommentReplyResponseLinks; - }; - type PullsCreateCommentResponseLinksPullRequest = { href: string }; - type PullsCreateCommentResponseLinksHtml = { href: string }; - type PullsCreateCommentResponseLinksSelf = { href: string }; - type PullsCreateCommentResponseLinks = { - self: PullsCreateCommentResponseLinksSelf; - html: PullsCreateCommentResponseLinksHtml; - pull_request: PullsCreateCommentResponseLinksPullRequest; - }; - type PullsCreateCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateCommentResponse = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsCreateCommentResponseUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - _links: PullsCreateCommentResponseLinks; - }; - type PullsGetCommentResponseLinksPullRequest = { href: string }; - type PullsGetCommentResponseLinksHtml = { href: string }; - type PullsGetCommentResponseLinksSelf = { href: string }; - type PullsGetCommentResponseLinks = { - self: PullsGetCommentResponseLinksSelf; - html: PullsGetCommentResponseLinksHtml; - pull_request: PullsGetCommentResponseLinksPullRequest; - }; - type PullsGetCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetCommentResponse = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsGetCommentResponseUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - _links: PullsGetCommentResponseLinks; - }; - type PullsListCommentsForRepoResponseItemLinksPullRequest = { href: string }; - type PullsListCommentsForRepoResponseItemLinksHtml = { href: string }; - type PullsListCommentsForRepoResponseItemLinksSelf = { href: string }; - type PullsListCommentsForRepoResponseItemLinks = { - self: PullsListCommentsForRepoResponseItemLinksSelf; - html: PullsListCommentsForRepoResponseItemLinksHtml; - pull_request: PullsListCommentsForRepoResponseItemLinksPullRequest; - }; - type PullsListCommentsForRepoResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListCommentsForRepoResponseItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsListCommentsForRepoResponseItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - _links: PullsListCommentsForRepoResponseItemLinks; - }; - type PullsListCommentsResponseItemLinksPullRequest = { href: string }; - type PullsListCommentsResponseItemLinksHtml = { href: string }; - type PullsListCommentsResponseItemLinksSelf = { href: string }; - type PullsListCommentsResponseItemLinks = { - self: PullsListCommentsResponseItemLinksSelf; - html: PullsListCommentsResponseItemLinksHtml; - pull_request: PullsListCommentsResponseItemLinksPullRequest; - }; - type PullsListCommentsResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListCommentsResponseItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsListCommentsResponseItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - _links: PullsListCommentsResponseItemLinks; - }; - type PullsDismissReviewResponseLinksPullRequest = { href: string }; - type PullsDismissReviewResponseLinksHtml = { href: string }; - type PullsDismissReviewResponseLinks = { - html: PullsDismissReviewResponseLinksHtml; - pull_request: PullsDismissReviewResponseLinksPullRequest; - }; - type PullsDismissReviewResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsDismissReviewResponse = { - id: number; - node_id: string; - user: PullsDismissReviewResponseUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsDismissReviewResponseLinks; - }; - type PullsSubmitReviewResponseLinksPullRequest = { href: string }; - type PullsSubmitReviewResponseLinksHtml = { href: string }; - type PullsSubmitReviewResponseLinks = { - html: PullsSubmitReviewResponseLinksHtml; - pull_request: PullsSubmitReviewResponseLinksPullRequest; - }; - type PullsSubmitReviewResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsSubmitReviewResponse = { - id: number; - node_id: string; - user: PullsSubmitReviewResponseUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsSubmitReviewResponseLinks; - }; - type PullsCreateReviewResponseLinksPullRequest = { href: string }; - type PullsCreateReviewResponseLinksHtml = { href: string }; - type PullsCreateReviewResponseLinks = { - html: PullsCreateReviewResponseLinksHtml; - pull_request: PullsCreateReviewResponseLinksPullRequest; - }; - type PullsCreateReviewResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateReviewResponse = { - id: number; - node_id: string; - user: PullsCreateReviewResponseUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsCreateReviewResponseLinks; - }; - type PullsGetCommentsForReviewResponseItemLinksPullRequest = { href: string }; - type PullsGetCommentsForReviewResponseItemLinksHtml = { href: string }; - type PullsGetCommentsForReviewResponseItemLinksSelf = { href: string }; - type PullsGetCommentsForReviewResponseItemLinks = { - self: PullsGetCommentsForReviewResponseItemLinksSelf; - html: PullsGetCommentsForReviewResponseItemLinksHtml; - pull_request: PullsGetCommentsForReviewResponseItemLinksPullRequest; - }; - type PullsGetCommentsForReviewResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetCommentsForReviewResponseItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsGetCommentsForReviewResponseItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - _links: PullsGetCommentsForReviewResponseItemLinks; - }; - type PullsDeletePendingReviewResponseLinksPullRequest = { href: string }; - type PullsDeletePendingReviewResponseLinksHtml = { href: string }; - type PullsDeletePendingReviewResponseLinks = { - html: PullsDeletePendingReviewResponseLinksHtml; - pull_request: PullsDeletePendingReviewResponseLinksPullRequest; - }; - type PullsDeletePendingReviewResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsDeletePendingReviewResponse = { - id: number; - node_id: string; - user: PullsDeletePendingReviewResponseUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsDeletePendingReviewResponseLinks; - }; - type PullsGetReviewResponseLinksPullRequest = { href: string }; - type PullsGetReviewResponseLinksHtml = { href: string }; - type PullsGetReviewResponseLinks = { - html: PullsGetReviewResponseLinksHtml; - pull_request: PullsGetReviewResponseLinksPullRequest; - }; - type PullsGetReviewResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetReviewResponse = { - id: number; - node_id: string; - user: PullsGetReviewResponseUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsGetReviewResponseLinks; - }; - type PullsListReviewsResponseItemLinksPullRequest = { href: string }; - type PullsListReviewsResponseItemLinksHtml = { href: string }; - type PullsListReviewsResponseItemLinks = { - html: PullsListReviewsResponseItemLinksHtml; - pull_request: PullsListReviewsResponseItemLinksPullRequest; - }; - type PullsListReviewsResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListReviewsResponseItem = { - id: number; - node_id: string; - user: PullsListReviewsResponseItemUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsListReviewsResponseItemLinks; - }; - type PullsListFilesResponseItem = { - sha: string; - filename: string; - status: string; - additions: number; - deletions: number; - changes: number; - blob_url: string; - raw_url: string; - contents_url: string; - patch: string; - }; - type PullsListCommitsResponseItemParentsItem = { url: string; sha: string }; - type PullsListCommitsResponseItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListCommitsResponseItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListCommitsResponseItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type PullsListCommitsResponseItemCommitTree = { url: string; sha: string }; - type PullsListCommitsResponseItemCommitCommitter = { - name: string; - email: string; - date: string; - }; - type PullsListCommitsResponseItemCommitAuthor = { - name: string; - email: string; - date: string; - }; - type PullsListCommitsResponseItemCommit = { - url: string; - author: PullsListCommitsResponseItemCommitAuthor; - committer: PullsListCommitsResponseItemCommitCommitter; - message: string; - tree: PullsListCommitsResponseItemCommitTree; - comment_count: number; - verification: PullsListCommitsResponseItemCommitVerification; - }; - type PullsListCommitsResponseItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: PullsListCommitsResponseItemCommit; - author: PullsListCommitsResponseItemAuthor; - committer: PullsListCommitsResponseItemCommitter; - parents: Array; - }; - type PullsUpdateResponseMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponseLinksStatuses = { href: string }; - type PullsUpdateResponseLinksCommits = { href: string }; - type PullsUpdateResponseLinksReviewComment = { href: string }; - type PullsUpdateResponseLinksReviewComments = { href: string }; - type PullsUpdateResponseLinksComments = { href: string }; - type PullsUpdateResponseLinksIssue = { href: string }; - type PullsUpdateResponseLinksHtml = { href: string }; - type PullsUpdateResponseLinksSelf = { href: string }; - type PullsUpdateResponseLinks = { - self: PullsUpdateResponseLinksSelf; - html: PullsUpdateResponseLinksHtml; - issue: PullsUpdateResponseLinksIssue; - comments: PullsUpdateResponseLinksComments; - review_comments: PullsUpdateResponseLinksReviewComments; - review_comment: PullsUpdateResponseLinksReviewComment; - commits: PullsUpdateResponseLinksCommits; - statuses: PullsUpdateResponseLinksStatuses; - }; - type PullsUpdateResponseBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsUpdateResponseBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponseBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsUpdateResponseBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsUpdateResponseBaseRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsUpdateResponseBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponseBase = { - label: string; - ref: string; - sha: string; - user: PullsUpdateResponseBaseUser; - repo: PullsUpdateResponseBaseRepo; - }; - type PullsUpdateResponseHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsUpdateResponseHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponseHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsUpdateResponseHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsUpdateResponseHeadRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsUpdateResponseHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponseHead = { - label: string; - ref: string; - sha: string; - user: PullsUpdateResponseHeadUser; - repo: PullsUpdateResponseHeadRepo; - }; - type PullsUpdateResponseRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type PullsUpdateResponseRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsUpdateResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type PullsUpdateResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type PullsUpdateResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsUpdateResponse = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsUpdateResponseUser; - body: string; - labels: Array; - milestone: PullsUpdateResponseMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsUpdateResponseAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsUpdateResponseHead; - base: PullsUpdateResponseBase; - _links: PullsUpdateResponseLinks; - author_association: string; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsUpdateResponseMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; - }; - type PullsCreateFromIssueResponseMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponseLinksStatuses = { href: string }; - type PullsCreateFromIssueResponseLinksCommits = { href: string }; - type PullsCreateFromIssueResponseLinksReviewComment = { href: string }; - type PullsCreateFromIssueResponseLinksReviewComments = { href: string }; - type PullsCreateFromIssueResponseLinksComments = { href: string }; - type PullsCreateFromIssueResponseLinksIssue = { href: string }; - type PullsCreateFromIssueResponseLinksHtml = { href: string }; - type PullsCreateFromIssueResponseLinksSelf = { href: string }; - type PullsCreateFromIssueResponseLinks = { - self: PullsCreateFromIssueResponseLinksSelf; - html: PullsCreateFromIssueResponseLinksHtml; - issue: PullsCreateFromIssueResponseLinksIssue; - comments: PullsCreateFromIssueResponseLinksComments; - review_comments: PullsCreateFromIssueResponseLinksReviewComments; - review_comment: PullsCreateFromIssueResponseLinksReviewComment; - commits: PullsCreateFromIssueResponseLinksCommits; - statuses: PullsCreateFromIssueResponseLinksStatuses; - }; - type PullsCreateFromIssueResponseBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsCreateFromIssueResponseBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponseBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateFromIssueResponseBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateFromIssueResponseBaseRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsCreateFromIssueResponseBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponseBase = { - label: string; - ref: string; - sha: string; - user: PullsCreateFromIssueResponseBaseUser; - repo: PullsCreateFromIssueResponseBaseRepo; - }; - type PullsCreateFromIssueResponseHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsCreateFromIssueResponseHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponseHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateFromIssueResponseHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateFromIssueResponseHeadRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsCreateFromIssueResponseHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponseHead = { - label: string; - ref: string; - sha: string; - user: PullsCreateFromIssueResponseHeadUser; - repo: PullsCreateFromIssueResponseHeadRepo; - }; - type PullsCreateFromIssueResponseRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type PullsCreateFromIssueResponseRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsCreateFromIssueResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type PullsCreateFromIssueResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type PullsCreateFromIssueResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateFromIssueResponse = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsCreateFromIssueResponseUser; - body: string; - labels: Array; - milestone: PullsCreateFromIssueResponseMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsCreateFromIssueResponseAssignee; - assignees: Array; - requested_reviewers: Array< - PullsCreateFromIssueResponseRequestedReviewersItem - >; - requested_teams: Array; - head: PullsCreateFromIssueResponseHead; - base: PullsCreateFromIssueResponseBase; - _links: PullsCreateFromIssueResponseLinks; - author_association: string; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsCreateFromIssueResponseMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; - }; - type PullsCreateResponseMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponseLinksStatuses = { href: string }; - type PullsCreateResponseLinksCommits = { href: string }; - type PullsCreateResponseLinksReviewComment = { href: string }; - type PullsCreateResponseLinksReviewComments = { href: string }; - type PullsCreateResponseLinksComments = { href: string }; - type PullsCreateResponseLinksIssue = { href: string }; - type PullsCreateResponseLinksHtml = { href: string }; - type PullsCreateResponseLinksSelf = { href: string }; - type PullsCreateResponseLinks = { - self: PullsCreateResponseLinksSelf; - html: PullsCreateResponseLinksHtml; - issue: PullsCreateResponseLinksIssue; - comments: PullsCreateResponseLinksComments; - review_comments: PullsCreateResponseLinksReviewComments; - review_comment: PullsCreateResponseLinksReviewComment; - commits: PullsCreateResponseLinksCommits; - statuses: PullsCreateResponseLinksStatuses; - }; - type PullsCreateResponseBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsCreateResponseBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponseBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateResponseBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateResponseBaseRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsCreateResponseBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponseBase = { - label: string; - ref: string; - sha: string; - user: PullsCreateResponseBaseUser; - repo: PullsCreateResponseBaseRepo; - }; - type PullsCreateResponseHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsCreateResponseHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponseHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateResponseHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateResponseHeadRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsCreateResponseHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponseHead = { - label: string; - ref: string; - sha: string; - user: PullsCreateResponseHeadUser; - repo: PullsCreateResponseHeadRepo; - }; - type PullsCreateResponseRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type PullsCreateResponseRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsCreateResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type PullsCreateResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type PullsCreateResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsCreateResponse = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsCreateResponseUser; - body: string; - labels: Array; - milestone: PullsCreateResponseMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsCreateResponseAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsCreateResponseHead; - base: PullsCreateResponseBase; - _links: PullsCreateResponseLinks; - author_association: string; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsCreateResponseMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; - }; - type PullsGetResponseMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponseLinksStatuses = { href: string }; - type PullsGetResponseLinksCommits = { href: string }; - type PullsGetResponseLinksReviewComment = { href: string }; - type PullsGetResponseLinksReviewComments = { href: string }; - type PullsGetResponseLinksComments = { href: string }; - type PullsGetResponseLinksIssue = { href: string }; - type PullsGetResponseLinksHtml = { href: string }; - type PullsGetResponseLinksSelf = { href: string }; - type PullsGetResponseLinks = { - self: PullsGetResponseLinksSelf; - html: PullsGetResponseLinksHtml; - issue: PullsGetResponseLinksIssue; - comments: PullsGetResponseLinksComments; - review_comments: PullsGetResponseLinksReviewComments; - review_comment: PullsGetResponseLinksReviewComment; - commits: PullsGetResponseLinksCommits; - statuses: PullsGetResponseLinksStatuses; - }; - type PullsGetResponseBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsGetResponseBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponseBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsGetResponseBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsGetResponseBaseRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsGetResponseBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponseBase = { - label: string; - ref: string; - sha: string; - user: PullsGetResponseBaseUser; - repo: PullsGetResponseBaseRepo; - }; - type PullsGetResponseHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsGetResponseHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponseHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsGetResponseHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsGetResponseHeadRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsGetResponseHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponseHead = { - label: string; - ref: string; - sha: string; - user: PullsGetResponseHeadUser; - repo: PullsGetResponseHeadRepo; - }; - type PullsGetResponseRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type PullsGetResponseRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsGetResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type PullsGetResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type PullsGetResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsGetResponse = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsGetResponseUser; - body: string; - labels: Array; - milestone: PullsGetResponseMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsGetResponseAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsGetResponseHead; - base: PullsGetResponseBase; - _links: PullsGetResponseLinks; - author_association: string; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsGetResponseMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; - }; - type PullsListResponseItemLinksStatuses = { href: string }; - type PullsListResponseItemLinksCommits = { href: string }; - type PullsListResponseItemLinksReviewComment = { href: string }; - type PullsListResponseItemLinksReviewComments = { href: string }; - type PullsListResponseItemLinksComments = { href: string }; - type PullsListResponseItemLinksIssue = { href: string }; - type PullsListResponseItemLinksHtml = { href: string }; - type PullsListResponseItemLinksSelf = { href: string }; - type PullsListResponseItemLinks = { - self: PullsListResponseItemLinksSelf; - html: PullsListResponseItemLinksHtml; - issue: PullsListResponseItemLinksIssue; - comments: PullsListResponseItemLinksComments; - review_comments: PullsListResponseItemLinksReviewComments; - review_comment: PullsListResponseItemLinksReviewComment; - commits: PullsListResponseItemLinksCommits; - statuses: PullsListResponseItemLinksStatuses; - }; - type PullsListResponseItemBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsListResponseItemBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListResponseItemBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsListResponseItemBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsListResponseItemBaseRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsListResponseItemBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListResponseItemBase = { - label: string; - ref: string; - sha: string; - user: PullsListResponseItemBaseUser; - repo: PullsListResponseItemBaseRepo; - }; - type PullsListResponseItemHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type PullsListResponseItemHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListResponseItemHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsListResponseItemHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsListResponseItemHeadRepoPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type PullsListResponseItemHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListResponseItemHead = { - label: string; - ref: string; - sha: string; - user: PullsListResponseItemHeadUser; - repo: PullsListResponseItemHeadRepo; - }; - type PullsListResponseItemRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type PullsListResponseItemRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListResponseItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListResponseItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListResponseItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListResponseItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsListResponseItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type PullsListResponseItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type PullsListResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type PullsListResponseItem = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsListResponseItemUser; - body: string; - labels: Array; - milestone: PullsListResponseItemMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsListResponseItemAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsListResponseItemHead; - base: PullsListResponseItemBase; - _links: PullsListResponseItemLinks; - author_association: string; - }; - type ProjectsMoveColumnResponse = {}; - type ProjectsDeleteColumnResponse = {}; - type ProjectsListColumnsResponseItem = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; - }; - type ProjectsRemoveCollaboratorResponse = {}; - type ProjectsAddCollaboratorResponse = {}; - type ProjectsReviewUserPermissionLevelResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsReviewUserPermissionLevelResponse = { - permission: string; - user: ProjectsReviewUserPermissionLevelResponseUser; - }; - type ProjectsListCollaboratorsResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsMoveCardResponse = {}; - type ProjectsDeleteCardResponse = {}; - type ProjectsCreateCardResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsCreateCardResponse = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsCreateCardResponseCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; - }; - type ProjectsListCardsResponseItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsListCardsResponseItem = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsListCardsResponseItemCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; - }; - type ProjectsUpdateResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsUpdateResponse = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsUpdateResponseCreator; - created_at: string; - updated_at: string; - }; - type ProjectsCreateForOrgResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsCreateForOrgResponse = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForOrgResponseCreator; - created_at: string; - updated_at: string; - }; - type ProjectsCreateForRepoResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsCreateForRepoResponse = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForRepoResponseCreator; - created_at: string; - updated_at: string; - }; - type ProjectsGetResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsGetResponse = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsGetResponseCreator; - created_at: string; - updated_at: string; - }; - type ProjectsListForOrgResponseItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsListForOrgResponseItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForOrgResponseItemCreator; - created_at: string; - updated_at: string; - }; - type ProjectsListForRepoResponseItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ProjectsListForRepoResponseItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForRepoResponseItemCreator; - created_at: string; - updated_at: string; - }; - type OrgsDeleteHookResponse = {}; - type OrgsPingHookResponse = {}; - type OrgsUpdateHookResponseConfig = { url: string; content_type: string }; - type OrgsUpdateHookResponse = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsUpdateHookResponseConfig; - updated_at: string; - created_at: string; - }; - type OrgsCreateHookResponseConfig = { url: string; content_type: string }; - type OrgsCreateHookResponse = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsCreateHookResponseConfig; - updated_at: string; - created_at: string; - }; - type OrgsGetHookResponseConfig = { url: string; content_type: string }; - type OrgsGetHookResponse = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsGetHookResponseConfig; - updated_at: string; - created_at: string; - }; - type OrgsListHooksResponseItemConfig = { url: string; content_type: string }; - type OrgsListHooksResponseItem = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsListHooksResponseItemConfig; - updated_at: string; - created_at: string; - }; - type OrgsConvertMemberToOutsideCollaboratorResponse = {}; - type OrgsRemoveOutsideCollaboratorResponse = {}; - type OrgsListOutsideCollaboratorsResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OrgsUpdateMembershipResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OrgsUpdateMembershipResponseOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type OrgsUpdateMembershipResponse = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsUpdateMembershipResponseOrganization; - user: OrgsUpdateMembershipResponseUser; - }; - type OrgsGetMembershipForAuthenticatedUserResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OrgsGetMembershipForAuthenticatedUserResponseOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type OrgsGetMembershipForAuthenticatedUserResponse = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsGetMembershipForAuthenticatedUserResponseOrganization; - user: OrgsGetMembershipForAuthenticatedUserResponseUser; - }; - type OrgsListMembershipsResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OrgsListMembershipsResponseItemOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type OrgsListMembershipsResponseItem = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsListMembershipsResponseItemOrganization; - user: OrgsListMembershipsResponseItemUser; - }; - type OrgsCreateInvitationResponseInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OrgsCreateInvitationResponse = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: OrgsCreateInvitationResponseInviter; - team_count: number; - invitation_team_url: string; - }; - type OrgsListPendingInvitationsResponseItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OrgsListPendingInvitationsResponseItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: OrgsListPendingInvitationsResponseItemInviter; - team_count: number; - invitation_team_url: string; - }; - type OrgsListInvitationTeamsResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - }; - type OrgsRemoveMembershipResponse = {}; - type OrgsConcealMembershipResponse = {}; - type OrgsPublicizeMembershipResponse = {}; - type OrgsListPublicMembersResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OrgsRemoveMemberResponse = {}; - type OrgsListMembersResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OrgsUnblockUserResponse = {}; - type OrgsBlockUserResponse = {}; - type OrgsCheckBlockedUserResponse = {}; - type OrgsListBlockedUsersResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OrgsUpdateResponsePlan = { - name: string; - space: number; - private_repos: number; - }; - type OrgsUpdateResponse = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - total_private_repos: number; - owned_private_repos: number; - private_gists: number; - disk_usage: number; - collaborators: number; - billing_email: string; - plan: OrgsUpdateResponsePlan; - default_repository_settings: string; - members_can_create_repositories: boolean; - two_factor_requirement_enabled: boolean; - members_allowed_repository_creation_type: string; - }; - type OrgsGetResponsePlan = { - name: string; - space: number; - private_repos: number; - }; - type OrgsGetResponse = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - total_private_repos: number; - owned_private_repos: number; - private_gists: number; - disk_usage: number; - collaborators: number; - billing_email: string; - plan: OrgsGetResponsePlan; - default_repository_settings: string; - members_can_create_repositories: boolean; - two_factor_requirement_enabled: boolean; - members_allowed_repository_creation_type: string; - }; - type OrgsListForUserResponseItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type OrgsListResponseItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type OrgsListForAuthenticatedUserResponseItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type RateLimitGetResponseRate = { - limit: number; - remaining: number; - reset: number; - }; - type RateLimitGetResponseResourcesGraphql = { - limit: number; - remaining: number; - reset: number; - }; - type RateLimitGetResponseResourcesSearch = { - limit: number; - remaining: number; - reset: number; - }; - type RateLimitGetResponseResourcesCore = { - limit: number; - remaining: number; - reset: number; - }; - type RateLimitGetResponseResources = { - core: RateLimitGetResponseResourcesCore; - search: RateLimitGetResponseResourcesSearch; - graphql: RateLimitGetResponseResourcesGraphql; - }; - type RateLimitGetResponse = { - resources: RateLimitGetResponseResources; - rate: RateLimitGetResponseRate; - }; - type MetaGetResponse = { - verifiable_password_authentication: boolean; - github_services_sha: string; - hooks: Array; - git: Array; - pages: Array; - importer: Array; - }; - type MarkdownRenderRawResponse = {}; - type MarkdownRenderResponse = {}; - type LicensesGetForRepoResponseLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - }; - type LicensesGetForRepoResponseLinks = { - self: string; - git: string; - html: string; - }; - type LicensesGetForRepoResponse = { - name: string; - path: string; - sha: string; - size: number; - url: string; - html_url: string; - git_url: string; - download_url: string; - type: string; - content: string; - encoding: string; - _links: LicensesGetForRepoResponseLinks; - license: LicensesGetForRepoResponseLicense; - }; - type LicensesGetResponse = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - html_url: string; - description: string; - implementation: string; - permissions: Array; - conditions: Array; - limitations: Array; - body: string; - featured: boolean; - }; - type LicensesListResponseItem = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id?: string; - }; - type GitignoreGetTemplateResponse = { name?: string; source?: string }; - type EmojisGetResponse = {}; - type CodesOfConductGetForRepoResponse = { - key: string; - name: string; - url: string; - body: string; - }; - type CodesOfConductGetConductCodeResponse = { - key: string; - name: string; - url: string; - body: string; - }; - type CodesOfConductListConductCodesResponseItem = { - key: string; - name: string; - url: string; - }; - type MigrationsUnlockRepoForAuthenticatedUserResponse = {}; - type MigrationsDeleteArchiveForAuthenticatedUserResponse = {}; - type MigrationsGetArchiveForAuthenticatedUserResponse = {}; - type MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type MigrationsGetStatusForAuthenticatedUserResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type MigrationsGetStatusForAuthenticatedUserResponse = { - id: number; - owner: MigrationsGetStatusForAuthenticatedUserResponseOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array< - MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItem - >; - url: string; - created_at: string; - updated_at: string; - }; - type MigrationsListForAuthenticatedUserResponseItemRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type MigrationsListForAuthenticatedUserResponseItemRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type MigrationsListForAuthenticatedUserResponseItemRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListForAuthenticatedUserResponseItemRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListForAuthenticatedUserResponseItemRepositoriesItemPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type MigrationsListForAuthenticatedUserResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type MigrationsListForAuthenticatedUserResponseItem = { - id: number; - owner: MigrationsListForAuthenticatedUserResponseItemOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array< - MigrationsListForAuthenticatedUserResponseItemRepositoriesItem - >; - url: string; - created_at: string; - updated_at: string; - }; - type MigrationsStartForAuthenticatedUserResponseRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type MigrationsStartForAuthenticatedUserResponseRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type MigrationsStartForAuthenticatedUserResponseRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsStartForAuthenticatedUserResponseRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsStartForAuthenticatedUserResponseRepositoriesItemPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type MigrationsStartForAuthenticatedUserResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type MigrationsStartForAuthenticatedUserResponse = { - id: number; - owner: MigrationsStartForAuthenticatedUserResponseOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array< - MigrationsStartForAuthenticatedUserResponseRepositoriesItem - >; - url: string; - created_at: string; - updated_at: string; - }; - type MigrationsCancelImportResponse = {}; - type MigrationsGetLargeFilesResponseItem = { - ref_name: string; - path: string; - oid: string; - size: number; - }; - type MigrationsSetLfsPreferenceResponse = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; - }; - type MigrationsMapCommitAuthorResponse = { - id: number; - remote_id: string; - remote_name: string; - email: string; - name: string; - url: string; - import_url: string; - }; - type MigrationsGetCommitAuthorsResponseItem = { - id: number; - remote_id: string; - remote_name: string; - email: string; - name: string; - url: string; - import_url: string; - }; - type MigrationsUpdateImportResponse = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - url: string; - html_url: string; - authors_url: string; - repository_url: string; - }; - type MigrationsGetImportProgressResponse = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; - }; - type MigrationsStartImportResponse = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - percent: number; - commit_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; - }; - type MigrationsUnlockRepoForOrgResponse = {}; - type MigrationsDeleteArchiveForOrgResponse = {}; - type MigrationsGetArchiveForOrgResponse = {}; - type MigrationsGetStatusForOrgResponseRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type MigrationsGetStatusForOrgResponseRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type MigrationsGetStatusForOrgResponseRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsGetStatusForOrgResponseRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsGetStatusForOrgResponseRepositoriesItemPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type MigrationsGetStatusForOrgResponseOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type MigrationsGetStatusForOrgResponse = { - id: number; - owner: MigrationsGetStatusForOrgResponseOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; - }; - type MigrationsListForOrgResponseItemRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type MigrationsListForOrgResponseItemRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type MigrationsListForOrgResponseItemRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListForOrgResponseItemRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListForOrgResponseItemRepositoriesItemPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type MigrationsListForOrgResponseItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type MigrationsListForOrgResponseItem = { - id: number; - owner: MigrationsListForOrgResponseItemOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; - }; - type MigrationsStartForOrgResponseRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type MigrationsStartForOrgResponseRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type MigrationsStartForOrgResponseRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsStartForOrgResponseRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsStartForOrgResponseRepositoriesItemPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type MigrationsStartForOrgResponseOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type MigrationsStartForOrgResponse = { - id: number; - owner: MigrationsStartForOrgResponseOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; - }; - type IssuesListEventsForTimelineResponseItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListEventsForTimelineResponseItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsForTimelineResponseItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - }; - type IssuesDeleteMilestoneResponse = {}; - type IssuesUpdateMilestoneResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesUpdateMilestoneResponse = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesUpdateMilestoneResponseCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesCreateMilestoneResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesCreateMilestoneResponse = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesCreateMilestoneResponseCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesGetMilestoneResponseCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetMilestoneResponse = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetMilestoneResponseCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesListMilestonesForRepoResponseItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListMilestonesForRepoResponseItem = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListMilestonesForRepoResponseItemCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesListLabelsForMilestoneResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesRemoveLabelsResponse = {}; - type IssuesReplaceLabelsResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesAddLabelsResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesListLabelsOnIssueResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesDeleteLabelResponse = {}; - type IssuesUpdateLabelResponse = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesCreateLabelResponse = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesGetLabelResponse = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesListLabelsForRepoResponseItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesGetEventResponseIssuePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesGetEventResponseIssueMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetEventResponseIssueMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetEventResponseIssueMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesGetEventResponseIssueAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetEventResponseIssueAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetEventResponseIssueLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesGetEventResponseIssueUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetEventResponseIssue = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesGetEventResponseIssueUser; - labels: Array; - assignee: IssuesGetEventResponseIssueAssignee; - assignees: Array; - milestone: IssuesGetEventResponseIssueMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesGetEventResponseIssuePullRequest; - closed_at: null; - created_at: string; - updated_at: string; - }; - type IssuesGetEventResponseActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetEventResponse = { - id: number; - node_id: string; - url: string; - actor: IssuesGetEventResponseActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - issue: IssuesGetEventResponseIssue; - }; - type IssuesListEventsForRepoResponseItemIssuePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesListEventsForRepoResponseItemIssueMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListEventsForRepoResponseItemIssueMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListEventsForRepoResponseItemIssueMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesListEventsForRepoResponseItemIssueAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListEventsForRepoResponseItemIssueAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListEventsForRepoResponseItemIssueLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesListEventsForRepoResponseItemIssueUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListEventsForRepoResponseItemIssue = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListEventsForRepoResponseItemIssueUser; - labels: Array; - assignee: IssuesListEventsForRepoResponseItemIssueAssignee; - assignees: Array; - milestone: IssuesListEventsForRepoResponseItemIssueMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListEventsForRepoResponseItemIssuePullRequest; - closed_at: null; - created_at: string; - updated_at: string; - }; - type IssuesListEventsForRepoResponseItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListEventsForRepoResponseItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsForRepoResponseItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - issue: IssuesListEventsForRepoResponseItemIssue; - }; - type IssuesListEventsResponseItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListEventsResponseItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsResponseItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - }; - type IssuesDeleteCommentResponse = {}; - type IssuesUpdateCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesUpdateCommentResponse = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesUpdateCommentResponseUser; - created_at: string; - updated_at: string; - }; - type IssuesCreateCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesCreateCommentResponse = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesCreateCommentResponseUser; - created_at: string; - updated_at: string; - }; - type IssuesGetCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetCommentResponse = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesGetCommentResponseUser; - created_at: string; - updated_at: string; - }; - type IssuesListCommentsForRepoResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListCommentsForRepoResponseItem = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesListCommentsForRepoResponseItemUser; - created_at: string; - updated_at: string; - }; - type IssuesListCommentsResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListCommentsResponseItem = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesListCommentsResponseItemUser; - created_at: string; - updated_at: string; - }; - type IssuesRemoveAssigneesResponsePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesRemoveAssigneesResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesRemoveAssigneesResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesRemoveAssigneesResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesRemoveAssigneesResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesRemoveAssigneesResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesRemoveAssigneesResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesRemoveAssigneesResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesRemoveAssigneesResponse = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesRemoveAssigneesResponseUser; - labels: Array; - assignee: IssuesRemoveAssigneesResponseAssignee; - assignees: Array; - milestone: IssuesRemoveAssigneesResponseMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesRemoveAssigneesResponsePullRequest; - closed_at: null; - created_at: string; - updated_at: string; - }; - type IssuesAddAssigneesResponsePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesAddAssigneesResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesAddAssigneesResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesAddAssigneesResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesAddAssigneesResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesAddAssigneesResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesAddAssigneesResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesAddAssigneesResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesAddAssigneesResponse = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesAddAssigneesResponseUser; - labels: Array; - assignee: IssuesAddAssigneesResponseAssignee; - assignees: Array; - milestone: IssuesAddAssigneesResponseMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesAddAssigneesResponsePullRequest; - closed_at: null; - created_at: string; - updated_at: string; - }; - type IssuesCheckAssigneeResponse = {}; - type IssuesListAssigneesResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesUnlockResponse = {}; - type IssuesLockResponse = {}; - type IssuesUpdateResponseClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesUpdateResponsePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesUpdateResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesUpdateResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesUpdateResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesUpdateResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesUpdateResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesUpdateResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesUpdateResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesUpdateResponse = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesUpdateResponseUser; - labels: Array; - assignee: IssuesUpdateResponseAssignee; - assignees: Array; - milestone: IssuesUpdateResponseMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesUpdateResponsePullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesUpdateResponseClosedBy; - }; - type IssuesCreateResponseClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesCreateResponsePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesCreateResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesCreateResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesCreateResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesCreateResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesCreateResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesCreateResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesCreateResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesCreateResponse = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesCreateResponseUser; - labels: Array; - assignee: IssuesCreateResponseAssignee; - assignees: Array; - milestone: IssuesCreateResponseMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesCreateResponsePullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesCreateResponseClosedBy; - }; - type IssuesGetResponseClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetResponsePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesGetResponseMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetResponseMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetResponseMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesGetResponseAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetResponseAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetResponseLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesGetResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesGetResponse = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesGetResponseUser; - labels: Array; - assignee: IssuesGetResponseAssignee; - assignees: Array; - milestone: IssuesGetResponseMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesGetResponsePullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesGetResponseClosedBy; - }; - type IssuesListForRepoResponseItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesListForRepoResponseItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForRepoResponseItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForRepoResponseItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesListForRepoResponseItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForRepoResponseItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForRepoResponseItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesListForRepoResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForRepoResponseItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForRepoResponseItemUser; - labels: Array; - assignee: IssuesListForRepoResponseItemAssignee; - assignees: Array; - milestone: IssuesListForRepoResponseItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForRepoResponseItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - }; - type IssuesListForOrgResponseItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type IssuesListForOrgResponseItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForOrgResponseItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListForOrgResponseItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListForOrgResponseItemRepositoryPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type IssuesListForOrgResponseItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesListForOrgResponseItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForOrgResponseItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForOrgResponseItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesListForOrgResponseItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForOrgResponseItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForOrgResponseItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesListForOrgResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForOrgResponseItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForOrgResponseItemUser; - labels: Array; - assignee: IssuesListForOrgResponseItemAssignee; - assignees: Array; - milestone: IssuesListForOrgResponseItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForOrgResponseItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListForOrgResponseItemRepository; - }; - type IssuesListForAuthenticatedUserResponseItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type IssuesListForAuthenticatedUserResponseItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForAuthenticatedUserResponseItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListForAuthenticatedUserResponseItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListForAuthenticatedUserResponseItemRepositoryPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type IssuesListForAuthenticatedUserResponseItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesListForAuthenticatedUserResponseItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForAuthenticatedUserResponseItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForAuthenticatedUserResponseItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesListForAuthenticatedUserResponseItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForAuthenticatedUserResponseItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForAuthenticatedUserResponseItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesListForAuthenticatedUserResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListForAuthenticatedUserResponseItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForAuthenticatedUserResponseItemUser; - labels: Array; - assignee: IssuesListForAuthenticatedUserResponseItemAssignee; - assignees: Array; - milestone: IssuesListForAuthenticatedUserResponseItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForAuthenticatedUserResponseItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListForAuthenticatedUserResponseItemRepository; - }; - type IssuesListResponseItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type IssuesListResponseItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListResponseItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListResponseItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListResponseItemRepositoryPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type IssuesListResponseItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; - }; - type IssuesListResponseItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListResponseItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListResponseItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; - }; - type IssuesListResponseItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListResponseItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListResponseItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; - }; - type IssuesListResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type IssuesListResponseItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListResponseItemUser; - labels: Array; - assignee: IssuesListResponseItemAssignee; - assignees: Array; - milestone: IssuesListResponseItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListResponseItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListResponseItemRepository; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemPlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemAccount = { - login: string; - id: number; - url: string; - email: null; - organization_billing_email: string; - type: string; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItem = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - account: AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemAccount; - plan: AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemPlan; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserResponseItemPlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserResponseItemAccount = { - login: string; - id: number; - url: string; - email: null; - organization_billing_email: string; - type: string; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserResponseItem = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - account: AppsListMarketplacePurchasesForAuthenticatedUserResponseItemAccount; - plan: AppsListMarketplacePurchasesForAuthenticatedUserResponseItemPlan; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchasePlan; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChangePlan; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponse = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChange; - marketplace_purchase: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchase; - }; - type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; - }; - type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchasePlan; - }; - type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; - }; - type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChangePlan; - }; - type AppsCheckAccountIsAssociatedWithAnyResponse = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChange; - marketplace_purchase: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchase; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchasePlan; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChangePlan; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItem = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchase; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchasePlan; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChangePlan; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItem = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchase; - }; - type AppsListPlansStubbedResponseItem = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; - }; - type AppsListPlansResponseItem = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; - }; - type AppsRemoveRepoFromInstallationResponse = {}; - type AppsAddRepoToInstallationResponse = {}; - type AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type AppsListInstallationReposForAuthenticatedUserResponse = { - total_count: number; - repositories: Array< - AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItem - >; - }; - type AppsListReposResponseRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type AppsListReposResponseRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsListReposResponseRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type AppsListReposResponse = { - total_count: number; - repositories: Array; - }; - type AppsCreateContentAttachmentResponse = { - id: number; - title: string; - body: string; - }; - type AppsCreateFromManifestResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type AppsCreateFromManifestResponse = { - id: number; - node_id: string; - owner: AppsCreateFromManifestResponseOwner; - name: string; - description: null; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - webhook_secret: string; - pem: string; - }; - type AppsFindUserInstallationResponsePermissions = { - checks: string; - metadata: string; - contents: string; - }; - type AppsFindUserInstallationResponseAccount = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type AppsFindUserInstallationResponse = { - id: number; - account: AppsFindUserInstallationResponseAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsFindUserInstallationResponsePermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; - }; - type AppsFindRepoInstallationResponsePermissions = { - checks: string; - metadata: string; - contents: string; - }; - type AppsFindRepoInstallationResponseAccount = { - login: string; - id: number; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type AppsFindRepoInstallationResponse = { - id: number; - account: AppsFindRepoInstallationResponseAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsFindRepoInstallationResponsePermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; - }; - type AppsFindOrgInstallationResponsePermissions = { - checks: string; - metadata: string; - contents: string; - }; - type AppsFindOrgInstallationResponseAccount = { - login: string; - id: number; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type AppsFindOrgInstallationResponse = { - id: number; - account: AppsFindOrgInstallationResponseAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsFindOrgInstallationResponsePermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; - }; - type AppsCreateInstallationTokenResponse = { - token: string; - expires_at: string; - }; - type AppsListInstallationsForAuthenticatedUserResponseInstallationsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; - }; - type AppsListInstallationsForAuthenticatedUserResponseInstallationsItemAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url?: string; - issues_url?: string; - members_url?: string; - public_members_url?: string; - avatar_url: string; - description?: string; - gravatar_id?: string; - html_url?: string; - followers_url?: string; - following_url?: string; - gists_url?: string; - starred_url?: string; - subscriptions_url?: string; - organizations_url?: string; - received_events_url?: string; - type?: string; - site_admin?: boolean; - }; - type AppsListInstallationsForAuthenticatedUserResponseInstallationsItem = { - id: number; - account: AppsListInstallationsForAuthenticatedUserResponseInstallationsItemAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsListInstallationsForAuthenticatedUserResponseInstallationsItemPermissions; - events: Array; - single_file_name: string; - }; - type AppsListInstallationsForAuthenticatedUserResponse = { - total_count: number; - installations: Array< - AppsListInstallationsForAuthenticatedUserResponseInstallationsItem - >; - }; - type AppsGetInstallationResponsePermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; - }; - type AppsGetInstallationResponseAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type AppsGetInstallationResponse = { - id: number; - account: AppsGetInstallationResponseAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetInstallationResponsePermissions; - events: Array; - single_file_name: string; - repository_selection: string; - }; - type AppsListInstallationsResponseItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; - }; - type AppsListInstallationsResponseItemAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type AppsListInstallationsResponseItem = { - id: number; - account: AppsListInstallationsResponseItemAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsListInstallationsResponseItemPermissions; - events: Array; - single_file_name: string; - repository_selection: string; - }; - type AppsGetAuthenticatedResponseOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type AppsGetAuthenticatedResponse = { - id: number; - node_id: string; - owner: AppsGetAuthenticatedResponseOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type AppsGetBySlugResponseOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type AppsGetBySlugResponse = { - id: number; - node_id: string; - owner: AppsGetBySlugResponseOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type GitCreateTreeResponseTreeItem = { - path: string; - mode: string; - type: string; - size: number; - sha: string; - url: string; - }; - type GitCreateTreeResponse = { - sha: string; - url: string; - tree: Array; - }; - type GitCreateTagResponseVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type GitCreateTagResponseObject = { type: string; sha: string; url: string }; - type GitCreateTagResponseTagger = { - name: string; - email: string; - date: string; - }; - type GitCreateTagResponse = { - node_id: string; - tag: string; - sha: string; - url: string; - message: string; - tagger: GitCreateTagResponseTagger; - object: GitCreateTagResponseObject; - verification: GitCreateTagResponseVerification; - }; - type GitGetTagResponseVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type GitGetTagResponseObject = { type: string; sha: string; url: string }; - type GitGetTagResponseTagger = { name: string; email: string; date: string }; - type GitGetTagResponse = { - node_id: string; - tag: string; - sha: string; - url: string; - message: string; - tagger: GitGetTagResponseTagger; - object: GitGetTagResponseObject; - verification: GitGetTagResponseVerification; - }; - type GitDeleteRefResponse = {}; - type GitUpdateRefResponseObject = { type: string; sha: string; url: string }; - type GitUpdateRefResponse = { - ref: string; - node_id: string; - url: string; - object: GitUpdateRefResponseObject; - }; - type GitCreateRefResponseObject = { type: string; sha: string; url: string }; - type GitCreateRefResponse = { - ref: string; - node_id: string; - url: string; - object: GitCreateRefResponseObject; - }; - type GitCreateCommitResponseVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type GitCreateCommitResponseParentsItem = { url: string; sha: string }; - type GitCreateCommitResponseTree = { url: string; sha: string }; - type GitCreateCommitResponseCommitter = { - date: string; - name: string; - email: string; - }; - type GitCreateCommitResponseAuthor = { - date: string; - name: string; - email: string; - }; - type GitCreateCommitResponse = { - sha: string; - node_id: string; - url: string; - author: GitCreateCommitResponseAuthor; - committer: GitCreateCommitResponseCommitter; - message: string; - tree: GitCreateCommitResponseTree; - parents: Array; - verification: GitCreateCommitResponseVerification; - }; - type GitGetCommitResponseVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; - }; - type GitGetCommitResponseParentsItem = { url: string; sha: string }; - type GitGetCommitResponseTree = { url: string; sha: string }; - type GitGetCommitResponseCommitter = { - date: string; - name: string; - email: string; - }; - type GitGetCommitResponseAuthor = { - date: string; - name: string; - email: string; - }; - type GitGetCommitResponse = { - sha: string; - url: string; - author: GitGetCommitResponseAuthor; - committer: GitGetCommitResponseCommitter; - message: string; - tree: GitGetCommitResponseTree; - parents: Array; - verification: GitGetCommitResponseVerification; - }; - type GitCreateBlobResponse = { url: string; sha: string }; - type GitGetBlobResponse = { - content: string; - encoding: string; - url: string; - sha: string; - size: number; - }; - type GistsDeleteCommentResponse = {}; - type GistsUpdateCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsUpdateCommentResponse = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsUpdateCommentResponseUser; - created_at: string; - updated_at: string; - }; - type GistsCreateCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsCreateCommentResponse = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsCreateCommentResponseUser; - created_at: string; - updated_at: string; - }; - type GistsGetCommentResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsGetCommentResponse = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsGetCommentResponseUser; - created_at: string; - updated_at: string; - }; - type GistsListCommentsResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsListCommentsResponseItem = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsListCommentsResponseItemUser; - created_at: string; - updated_at: string; - }; - type GistsDeleteResponse = {}; - type GistsListForksResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsListForksResponseItem = { - user: GistsListForksResponseItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; - }; - type GistsForkResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsForkResponseFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - }; - type GistsForkResponseFiles = { - "hello_world.rb": GistsForkResponseFilesHelloWorldRb; - }; - type GistsForkResponse = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsForkResponseFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsForkResponseOwner; - truncated: boolean; - }; - type GistsUnstarResponse = {}; - type GistsStarResponse = {}; - type GistsListCommitsResponseItemChangeStatus = { - deletions: number; - additions: number; - total: number; - }; - type GistsListCommitsResponseItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsListCommitsResponseItem = { - url: string; - version: string; - user: GistsListCommitsResponseItemUser; - change_status: GistsListCommitsResponseItemChangeStatus; - committed_at: string; - }; - type GistsUpdateResponseHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; - }; - type GistsUpdateResponseHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsUpdateResponseHistoryItem = { - url: string; - version: string; - user: GistsUpdateResponseHistoryItemUser; - change_status: GistsUpdateResponseHistoryItemChangeStatus; - committed_at: string; - }; - type GistsUpdateResponseForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsUpdateResponseForksItem = { - user: GistsUpdateResponseForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; - }; - type GistsUpdateResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsUpdateResponseFilesNewFileTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsUpdateResponseFilesHelloWorldMd = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsUpdateResponseFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsUpdateResponseFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsUpdateResponseFiles = { - "hello_world.rb": GistsUpdateResponseFilesHelloWorldRb; - "hello_world.py": GistsUpdateResponseFilesHelloWorldPy; - "hello_world.md": GistsUpdateResponseFilesHelloWorldMd; - "new_file.txt": GistsUpdateResponseFilesNewFileTxt; - }; - type GistsUpdateResponse = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsUpdateResponseFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsUpdateResponseOwner; - truncated: boolean; - forks: Array; - history: Array; - }; - type GistsCreateResponseHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; - }; - type GistsCreateResponseHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsCreateResponseHistoryItem = { - url: string; - version: string; - user: GistsCreateResponseHistoryItemUser; - change_status: GistsCreateResponseHistoryItemChangeStatus; - committed_at: string; - }; - type GistsCreateResponseForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsCreateResponseForksItem = { - user: GistsCreateResponseForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; - }; - type GistsCreateResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsCreateResponseFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsCreateResponseFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsCreateResponseFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsCreateResponseFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsCreateResponseFiles = { - "hello_world.rb": GistsCreateResponseFilesHelloWorldRb; - "hello_world.py": GistsCreateResponseFilesHelloWorldPy; - "hello_world_ruby.txt": GistsCreateResponseFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsCreateResponseFilesHelloWorldPythonTxt; - }; - type GistsCreateResponse = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsCreateResponseFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsCreateResponseOwner; - truncated: boolean; - forks: Array; - history: Array; - }; - type GistsGetRevisionResponseHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; - }; - type GistsGetRevisionResponseHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsGetRevisionResponseHistoryItem = { - url: string; - version: string; - user: GistsGetRevisionResponseHistoryItemUser; - change_status: GistsGetRevisionResponseHistoryItemChangeStatus; - committed_at: string; - }; - type GistsGetRevisionResponseForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsGetRevisionResponseForksItem = { - user: GistsGetRevisionResponseForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; - }; - type GistsGetRevisionResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsGetRevisionResponseFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsGetRevisionResponseFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsGetRevisionResponseFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsGetRevisionResponseFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsGetRevisionResponseFiles = { - "hello_world.rb": GistsGetRevisionResponseFilesHelloWorldRb; - "hello_world.py": GistsGetRevisionResponseFilesHelloWorldPy; - "hello_world_ruby.txt": GistsGetRevisionResponseFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsGetRevisionResponseFilesHelloWorldPythonTxt; - }; - type GistsGetRevisionResponse = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsGetRevisionResponseFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsGetRevisionResponseOwner; - truncated: boolean; - forks: Array; - history: Array; - }; - type GistsGetResponseHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; - }; - type GistsGetResponseHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsGetResponseHistoryItem = { - url: string; - version: string; - user: GistsGetResponseHistoryItemUser; - change_status: GistsGetResponseHistoryItemChangeStatus; - committed_at: string; - }; - type GistsGetResponseForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsGetResponseForksItem = { - user: GistsGetResponseForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; - }; - type GistsGetResponseOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsGetResponseFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsGetResponseFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsGetResponseFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsGetResponseFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; - }; - type GistsGetResponseFiles = { - "hello_world.rb": GistsGetResponseFilesHelloWorldRb; - "hello_world.py": GistsGetResponseFilesHelloWorldPy; - "hello_world_ruby.txt": GistsGetResponseFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsGetResponseFilesHelloWorldPythonTxt; - }; - type GistsGetResponse = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsGetResponseFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsGetResponseOwner; - truncated: boolean; - forks: Array; - history: Array; - }; - type GistsListStarredResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsListStarredResponseItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - }; - type GistsListStarredResponseItemFiles = { - "hello_world.rb": GistsListStarredResponseItemFilesHelloWorldRb; - }; - type GistsListStarredResponseItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListStarredResponseItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListStarredResponseItemOwner; - truncated: boolean; - }; - type GistsListPublicResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsListPublicResponseItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - }; - type GistsListPublicResponseItemFiles = { - "hello_world.rb": GistsListPublicResponseItemFilesHelloWorldRb; - }; - type GistsListPublicResponseItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListPublicResponseItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListPublicResponseItemOwner; - truncated: boolean; - }; - type GistsListResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsListResponseItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - }; - type GistsListResponseItemFiles = { - "hello_world.rb": GistsListResponseItemFilesHelloWorldRb; - }; - type GistsListResponseItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListResponseItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListResponseItemOwner; - truncated: boolean; - }; - type GistsListPublicForUserResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type GistsListPublicForUserResponseItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - }; - type GistsListPublicForUserResponseItemFiles = { - "hello_world.rb": GistsListPublicForUserResponseItemFilesHelloWorldRb; - }; - type GistsListPublicForUserResponseItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListPublicForUserResponseItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListPublicForUserResponseItemOwner; - truncated: boolean; - }; - type ChecksRerequestSuiteResponse = {}; - type ChecksCreateSuiteResponseRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ChecksCreateSuiteResponseRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ChecksCreateSuiteResponseRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksCreateSuiteResponseRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateSuiteResponseRepositoryPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ChecksCreateSuiteResponseAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type ChecksCreateSuiteResponseApp = { - id: number; - node_id: string; - owner: ChecksCreateSuiteResponseAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type ChecksCreateSuiteResponse = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksCreateSuiteResponseApp; - repository: ChecksCreateSuiteResponseRepository; - }; - type ChecksSetSuitesPreferencesResponseRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ChecksSetSuitesPreferencesResponseRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ChecksSetSuitesPreferencesResponseRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksSetSuitesPreferencesResponseRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksSetSuitesPreferencesResponseRepositoryPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ChecksSetSuitesPreferencesResponsePreferencesAutoTriggerChecksItem = { - app_id: number; - setting: boolean; - }; - type ChecksSetSuitesPreferencesResponsePreferences = { - auto_trigger_checks: Array< - ChecksSetSuitesPreferencesResponsePreferencesAutoTriggerChecksItem - >; - }; - type ChecksSetSuitesPreferencesResponse = { - preferences: ChecksSetSuitesPreferencesResponsePreferences; - repository: ChecksSetSuitesPreferencesResponseRepository; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksListSuitesForRefResponseCheckSuitesItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksListSuitesForRefResponseCheckSuitesItemRepositoryPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemApp = { - id: number; - node_id: string; - owner: ChecksListSuitesForRefResponseCheckSuitesItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type ChecksListSuitesForRefResponseCheckSuitesItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksListSuitesForRefResponseCheckSuitesItemApp; - repository: ChecksListSuitesForRefResponseCheckSuitesItemRepository; - }; - type ChecksListSuitesForRefResponse = { - total_count: number; - check_suites: Array; - }; - type ChecksGetSuiteResponseRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ChecksGetSuiteResponseRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ChecksGetSuiteResponseRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksGetSuiteResponseRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksGetSuiteResponseRepositoryPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ChecksGetSuiteResponseAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type ChecksGetSuiteResponseApp = { - id: number; - node_id: string; - owner: ChecksGetSuiteResponseAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type ChecksGetSuiteResponse = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksGetSuiteResponseApp; - repository: ChecksGetSuiteResponseRepository; - }; - type ChecksListAnnotationsResponseItem = { - path: string; - start_line: number; - end_line: number; - start_column: number; - end_column: number; - annotation_level: string; - title: string; - message: string; - raw_details: string; - }; - type ChecksGetResponsePullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; - }; - type ChecksGetResponsePullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksGetResponsePullRequestsItemBaseRepo; - }; - type ChecksGetResponsePullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; - }; - type ChecksGetResponsePullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksGetResponsePullRequestsItemHeadRepo; - }; - type ChecksGetResponsePullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksGetResponsePullRequestsItemHead; - base: ChecksGetResponsePullRequestsItemBase; - }; - type ChecksGetResponseAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type ChecksGetResponseApp = { - id: number; - node_id: string; - owner: ChecksGetResponseAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type ChecksGetResponseCheckSuite = { id: number }; - type ChecksGetResponseOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; - }; - type ChecksGetResponse = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksGetResponseOutput; - name: string; - check_suite: ChecksGetResponseCheckSuite; - app: ChecksGetResponseApp; - pull_requests: Array; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBaseRepo; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHeadRepo; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHead; - base: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBase; - }; - type ChecksListForSuiteResponseCheckRunsItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type ChecksListForSuiteResponseCheckRunsItemApp = { - id: number; - node_id: string; - owner: ChecksListForSuiteResponseCheckRunsItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type ChecksListForSuiteResponseCheckRunsItemCheckSuite = { id: number }; - type ChecksListForSuiteResponseCheckRunsItemOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; - }; - type ChecksListForSuiteResponseCheckRunsItem = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksListForSuiteResponseCheckRunsItemOutput; - name: string; - check_suite: ChecksListForSuiteResponseCheckRunsItemCheckSuite; - app: ChecksListForSuiteResponseCheckRunsItemApp; - pull_requests: Array< - ChecksListForSuiteResponseCheckRunsItemPullRequestsItem - >; - }; - type ChecksListForSuiteResponse = { - total_count: number; - check_runs: Array; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksListForRefResponseCheckRunsItemPullRequestsItemBaseRepo; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksListForRefResponseCheckRunsItemPullRequestsItemHeadRepo; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksListForRefResponseCheckRunsItemPullRequestsItemHead; - base: ChecksListForRefResponseCheckRunsItemPullRequestsItemBase; - }; - type ChecksListForRefResponseCheckRunsItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type ChecksListForRefResponseCheckRunsItemApp = { - id: number; - node_id: string; - owner: ChecksListForRefResponseCheckRunsItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type ChecksListForRefResponseCheckRunsItemCheckSuite = { id: number }; - type ChecksListForRefResponseCheckRunsItemOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; - }; - type ChecksListForRefResponseCheckRunsItem = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksListForRefResponseCheckRunsItemOutput; - name: string; - check_suite: ChecksListForRefResponseCheckRunsItemCheckSuite; - app: ChecksListForRefResponseCheckRunsItemApp; - pull_requests: Array; - }; - type ChecksListForRefResponse = { - total_count: number; - check_runs: Array; - }; - type ChecksUpdateResponsePullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; - }; - type ChecksUpdateResponsePullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksUpdateResponsePullRequestsItemBaseRepo; - }; - type ChecksUpdateResponsePullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; - }; - type ChecksUpdateResponsePullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksUpdateResponsePullRequestsItemHeadRepo; - }; - type ChecksUpdateResponsePullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksUpdateResponsePullRequestsItemHead; - base: ChecksUpdateResponsePullRequestsItemBase; - }; - type ChecksUpdateResponseAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type ChecksUpdateResponseApp = { - id: number; - node_id: string; - owner: ChecksUpdateResponseAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type ChecksUpdateResponseCheckSuite = { id: number }; - type ChecksUpdateResponseOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; - }; - type ChecksUpdateResponse = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksUpdateResponseOutput; - name: string; - check_suite: ChecksUpdateResponseCheckSuite; - app: ChecksUpdateResponseApp; - pull_requests: Array; - }; - type ChecksCreateResponsePullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; - }; - type ChecksCreateResponsePullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksCreateResponsePullRequestsItemBaseRepo; - }; - type ChecksCreateResponsePullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; - }; - type ChecksCreateResponsePullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksCreateResponsePullRequestsItemHeadRepo; - }; - type ChecksCreateResponsePullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksCreateResponsePullRequestsItemHead; - base: ChecksCreateResponsePullRequestsItemBase; - }; - type ChecksCreateResponseAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - }; - type ChecksCreateResponseApp = { - id: number; - node_id: string; - owner: ChecksCreateResponseAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - }; - type ChecksCreateResponseCheckSuite = { id: number }; - type ChecksCreateResponseOutput = { - title: string; - summary: string; - text: string; - }; - type ChecksCreateResponse = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: null; - started_at: string; - completed_at: null; - output: ChecksCreateResponseOutput; - name: string; - check_suite: ChecksCreateResponseCheckSuite; - app: ChecksCreateResponseApp; - pull_requests: Array; - }; - type ActivityDeleteRepoSubscriptionResponse = {}; - type ActivitySetRepoSubscriptionResponse = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - repository_url: string; - }; - type ActivityListWatchedReposForAuthenticatedUserResponseItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - }; - type ActivityListWatchedReposForAuthenticatedUserResponseItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ActivityListWatchedReposForAuthenticatedUserResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ActivityListWatchedReposForAuthenticatedUserResponseItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListWatchedReposForAuthenticatedUserResponseItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListWatchedReposForAuthenticatedUserResponseItemPermissions; - subscribers_count: number; - network_count: number; - license: ActivityListWatchedReposForAuthenticatedUserResponseItemLicense; - }; - type ActivityListReposWatchedByUserResponseItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - }; - type ActivityListReposWatchedByUserResponseItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ActivityListReposWatchedByUserResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ActivityListReposWatchedByUserResponseItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposWatchedByUserResponseItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposWatchedByUserResponseItemPermissions; - subscribers_count: number; - network_count: number; - license: ActivityListReposWatchedByUserResponseItemLicense; - }; - type ActivityListWatchersForRepoResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ActivityUnstarRepoResponse = {}; - type ActivityStarRepoResponse = {}; - type ActivityListReposStarredByAuthenticatedUserResponseItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ActivityListReposStarredByAuthenticatedUserResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ActivityListReposStarredByAuthenticatedUserResponseItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposStarredByAuthenticatedUserResponseItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposStarredByAuthenticatedUserResponseItemPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ActivityListReposStarredByUserResponseItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; - }; - type ActivityListReposStarredByUserResponseItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ActivityListReposStarredByUserResponseItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposStarredByUserResponseItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposStarredByUserResponseItemPermissions; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - }; - type ActivityListStargazersForRepoResponseItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ActivityDeleteThreadSubscriptionResponse = {}; - type ActivitySetThreadSubscriptionResponse = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - thread_url: string; - }; - type ActivityGetThreadSubscriptionResponse = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - thread_url: string; - }; - type ActivityMarkThreadAsReadResponse = {}; - type ActivityGetThreadResponseSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; - }; - type ActivityGetThreadResponseRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ActivityGetThreadResponseRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityGetThreadResponseRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - }; - type ActivityGetThreadResponse = { - id: string; - repository: ActivityGetThreadResponseRepository; - subject: ActivityGetThreadResponseSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; - }; - type ActivityMarkNotificationsAsReadForRepoResponse = {}; - type ActivityMarkAsReadResponse = {}; - type ActivityListNotificationsForRepoResponseItemSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; - }; - type ActivityListNotificationsForRepoResponseItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ActivityListNotificationsForRepoResponseItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListNotificationsForRepoResponseItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - }; - type ActivityListNotificationsForRepoResponseItem = { - id: string; - repository: ActivityListNotificationsForRepoResponseItemRepository; - subject: ActivityListNotificationsForRepoResponseItemSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; - }; - type ActivityListNotificationsResponseItemSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; - }; - type ActivityListNotificationsResponseItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type ActivityListNotificationsResponseItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListNotificationsResponseItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - }; - type ActivityListNotificationsResponseItem = { - id: string; - repository: ActivityListNotificationsResponseItemRepository; - subject: ActivityListNotificationsResponseItemSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; - }; - type ActivityListFeedsResponseLinksSecurityAdvisories = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUserOrganizationsItem = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUserOrganization = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUserActor = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUser = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUserPublic = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksUser = { href: string; type: string }; - type ActivityListFeedsResponseLinksTimeline = { href: string; type: string }; - type ActivityListFeedsResponseLinks = { - timeline: ActivityListFeedsResponseLinksTimeline; - user: ActivityListFeedsResponseLinksUser; - current_user_public: ActivityListFeedsResponseLinksCurrentUserPublic; - current_user: ActivityListFeedsResponseLinksCurrentUser; - current_user_actor: ActivityListFeedsResponseLinksCurrentUserActor; - current_user_organization: ActivityListFeedsResponseLinksCurrentUserOrganization; - current_user_organizations: Array< - ActivityListFeedsResponseLinksCurrentUserOrganizationsItem - >; - security_advisories: ActivityListFeedsResponseLinksSecurityAdvisories; - }; - type ActivityListFeedsResponse = { - timeline_url: string; - user_url: string; - current_user_public_url: string; - current_user_url: string; - current_user_actor_url: string; - current_user_organization_url: string; - current_user_organization_urls: Array; - security_advisories_url: string; - _links: ActivityListFeedsResponseLinks; - }; - type OauthAuthorizationsRevokeGrantForApplicationResponse = {}; - type OauthAuthorizationsRevokeAuthorizationForApplicationResponse = {}; - type OauthAuthorizationsResetAuthorizationResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OauthAuthorizationsResetAuthorizationResponseApp = { - url: string; - name: string; - client_id: string; - }; - type OauthAuthorizationsResetAuthorizationResponse = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsResetAuthorizationResponseApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: OauthAuthorizationsResetAuthorizationResponseUser; - }; - type OauthAuthorizationsCheckAuthorizationResponseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - }; - type OauthAuthorizationsCheckAuthorizationResponseApp = { - url: string; - name: string; - client_id: string; - }; - type OauthAuthorizationsCheckAuthorizationResponse = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsCheckAuthorizationResponseApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: OauthAuthorizationsCheckAuthorizationResponseUser; - }; - type OauthAuthorizationsDeleteAuthorizationResponse = {}; - type OauthAuthorizationsUpdateAuthorizationResponseApp = { - url: string; - name: string; - client_id: string; - }; - type OauthAuthorizationsUpdateAuthorizationResponse = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsUpdateAuthorizationResponseApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - }; - type OauthAuthorizationsCreateAuthorizationResponseApp = { - url: string; - name: string; - client_id: string; - }; - type OauthAuthorizationsCreateAuthorizationResponse = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsCreateAuthorizationResponseApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - }; - type OauthAuthorizationsGetAuthorizationResponseApp = { - url: string; - name: string; - client_id: string; - }; - type OauthAuthorizationsGetAuthorizationResponse = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetAuthorizationResponseApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - }; - type OauthAuthorizationsListAuthorizationsResponseItemApp = { - url: string; - name: string; - client_id: string; - }; - type OauthAuthorizationsListAuthorizationsResponseItem = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsListAuthorizationsResponseItemApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - }; - type OauthAuthorizationsDeleteGrantResponse = {}; - type OauthAuthorizationsGetGrantResponseApp = { - url: string; - name: string; - client_id: string; - }; - type OauthAuthorizationsGetGrantResponse = { - id: number; - url: string; - app: OauthAuthorizationsGetGrantResponseApp; - created_at: string; - updated_at: string; - scopes: Array; - }; - type OauthAuthorizationsListGrantsResponseItemApp = { - url: string; - name: string; - client_id: string; - }; - type OauthAuthorizationsListGrantsResponseItem = { - id: number; - url: string; - app: OauthAuthorizationsListGrantsResponseItemApp; - created_at: string; - updated_at: string; - scopes: Array; - }; - type OauthAuthorizationsListGrantsResponse = Array< - OauthAuthorizationsListGrantsResponseItem - >; - type OauthAuthorizationsListAuthorizationsResponse = Array< - OauthAuthorizationsListAuthorizationsResponseItem - >; - type ActivityListNotificationsResponse = Array< - ActivityListNotificationsResponseItem - >; - type ActivityListNotificationsForRepoResponse = Array< - ActivityListNotificationsForRepoResponseItem - >; - type ActivityListStargazersForRepoResponse = Array< - ActivityListStargazersForRepoResponseItem - >; - type ActivityListReposStarredByUserResponse = Array< - ActivityListReposStarredByUserResponseItem - >; - type ActivityListReposStarredByAuthenticatedUserResponse = Array< - ActivityListReposStarredByAuthenticatedUserResponseItem - >; - type ActivityListWatchersForRepoResponse = Array< - ActivityListWatchersForRepoResponseItem - >; - type ActivityListReposWatchedByUserResponse = Array< - ActivityListReposWatchedByUserResponseItem - >; - type ActivityListWatchedReposForAuthenticatedUserResponse = Array< - ActivityListWatchedReposForAuthenticatedUserResponseItem - >; - type ChecksListAnnotationsResponse = Array; - type GistsListPublicForUserResponse = Array< - GistsListPublicForUserResponseItem - >; - type GistsListResponse = Array; - type GistsListPublicResponse = Array; - type GistsListStarredResponse = Array; - type GistsListCommitsResponse = Array; - type GistsListForksResponse = Array; - type GistsListCommentsResponse = Array; - type AppsListInstallationsResponse = Array; - type AppsListPlansResponse = Array; - type AppsListPlansStubbedResponse = Array; - type AppsListAccountsUserOrOrgOnPlanResponse = Array< - AppsListAccountsUserOrOrgOnPlanResponseItem - >; - type AppsListAccountsUserOrOrgOnPlanStubbedResponse = Array< - AppsListAccountsUserOrOrgOnPlanStubbedResponseItem - >; - type AppsListMarketplacePurchasesForAuthenticatedUserResponse = Array< - AppsListMarketplacePurchasesForAuthenticatedUserResponseItem - >; - type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponse = Array< - AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItem - >; - type IssuesListResponse = Array; - type IssuesListForAuthenticatedUserResponse = Array< - IssuesListForAuthenticatedUserResponseItem - >; - type IssuesListForOrgResponse = Array; - type IssuesListForRepoResponse = Array; - type IssuesListAssigneesResponse = Array; - type IssuesListCommentsResponse = Array; - type IssuesListCommentsForRepoResponse = Array< - IssuesListCommentsForRepoResponseItem - >; - type IssuesListEventsResponse = Array; - type IssuesListEventsForRepoResponse = Array< - IssuesListEventsForRepoResponseItem - >; - type IssuesListLabelsForRepoResponse = Array< - IssuesListLabelsForRepoResponseItem - >; - type IssuesListLabelsOnIssueResponse = Array< - IssuesListLabelsOnIssueResponseItem - >; - type IssuesAddLabelsResponse = Array; - type IssuesReplaceLabelsResponse = Array; - type IssuesListLabelsForMilestoneResponse = Array< - IssuesListLabelsForMilestoneResponseItem - >; - type IssuesListMilestonesForRepoResponse = Array< - IssuesListMilestonesForRepoResponseItem - >; - type IssuesListEventsForTimelineResponse = Array< - IssuesListEventsForTimelineResponseItem - >; - type MigrationsListForOrgResponse = Array; - type MigrationsGetCommitAuthorsResponse = Array< - MigrationsGetCommitAuthorsResponseItem - >; - type MigrationsGetLargeFilesResponse = Array< - MigrationsGetLargeFilesResponseItem - >; - type MigrationsListForAuthenticatedUserResponse = Array< - MigrationsListForAuthenticatedUserResponseItem - >; - type CodesOfConductListConductCodesResponse = Array< - CodesOfConductListConductCodesResponseItem - >; - type GitignoreListTemplatesResponse = Array; - type LicensesListResponse = Array; - type OrgsListForAuthenticatedUserResponse = Array< - OrgsListForAuthenticatedUserResponseItem - >; - type OrgsListResponse = Array; - type OrgsListForUserResponse = Array; - type OrgsListBlockedUsersResponse = Array; - type OrgsListMembersResponse = Array; - type OrgsListPublicMembersResponse = Array; - type OrgsListInvitationTeamsResponse = Array< - OrgsListInvitationTeamsResponseItem - >; - type OrgsListPendingInvitationsResponse = Array< - OrgsListPendingInvitationsResponseItem - >; - type OrgsListMembershipsResponse = Array; - type OrgsListOutsideCollaboratorsResponse = Array< - OrgsListOutsideCollaboratorsResponseItem - >; - type OrgsListHooksResponse = Array; - type ProjectsListForRepoResponse = Array; - type ProjectsListForOrgResponse = Array; - type ProjectsListCardsResponse = Array; - type ProjectsListCollaboratorsResponse = Array< - ProjectsListCollaboratorsResponseItem - >; - type ProjectsListColumnsResponse = Array; - type PullsListResponse = Array; - type PullsListCommitsResponse = Array; - type PullsListFilesResponse = Array; - type PullsListReviewsResponse = Array; - type PullsGetCommentsForReviewResponse = Array< - PullsGetCommentsForReviewResponseItem - >; - type PullsListCommentsResponse = Array; - type PullsListCommentsForRepoResponse = Array< - PullsListCommentsForRepoResponseItem - >; - type ReactionsListForCommitCommentResponse = Array< - ReactionsListForCommitCommentResponseItem - >; - type ReactionsListForIssueResponse = Array; - type ReactionsListForIssueCommentResponse = Array< - ReactionsListForIssueCommentResponseItem - >; - type ReactionsListForPullRequestReviewCommentResponse = Array< - ReactionsListForPullRequestReviewCommentResponseItem - >; - type ReactionsListForTeamDiscussionResponse = Array< - ReactionsListForTeamDiscussionResponseItem - >; - type ReactionsListForTeamDiscussionCommentResponse = Array< - ReactionsListForTeamDiscussionCommentResponseItem - >; - type ReposListForOrgResponse = Array; - type ReposListPublicResponse = Array; - type ReposListTeamsResponse = Array; - type ReposListTagsResponse = Array; - type ReposListBranchesResponse = Array; - type ReposReplaceProtectedBranchRequiredStatusChecksContextsResponse = Array< - string - >; - type ReposAddProtectedBranchRequiredStatusChecksContextsResponse = Array< - string - >; - type ReposRemoveProtectedBranchRequiredStatusChecksContextsResponse = Array< - string - >; - type ReposListProtectedBranchTeamRestrictionsResponse = any; - type ReposReplaceProtectedBranchTeamRestrictionsResponse = Array< - ReposReplaceProtectedBranchTeamRestrictionsResponseItem - >; - type ReposAddProtectedBranchTeamRestrictionsResponse = Array< - ReposAddProtectedBranchTeamRestrictionsResponseItem - >; - type ReposRemoveProtectedBranchTeamRestrictionsResponse = Array< - ReposRemoveProtectedBranchTeamRestrictionsResponseItem - >; - type ReposReplaceProtectedBranchUserRestrictionsResponse = Array< - ReposReplaceProtectedBranchUserRestrictionsResponseItem - >; - type ReposAddProtectedBranchUserRestrictionsResponse = Array< - ReposAddProtectedBranchUserRestrictionsResponseItem - >; - type ReposRemoveProtectedBranchUserRestrictionsResponse = Array< - ReposRemoveProtectedBranchUserRestrictionsResponseItem - >; - type ReposListCollaboratorsResponse = Array< - ReposListCollaboratorsResponseItem - >; - type ReposListCommitCommentsResponse = Array< - ReposListCommitCommentsResponseItem - >; - type ReposListCommentsForCommitResponse = Array< - ReposListCommentsForCommitResponseItem - >; - type ReposListCommitsResponse = Array; - type ReposCompareCommitsResponse = any; - type ReposListDeployKeysResponse = Array; - type ReposListDeploymentsResponse = Array; - type ReposListDeploymentStatusesResponse = Array< - ReposListDeploymentStatusesResponseItem - >; - type ReposListDownloadsResponse = Array; - type ReposListForksResponse = Array; - type ReposListInvitationsResponse = Array; - type ReposListInvitationsForAuthenticatedUserResponse = Array< - ReposListInvitationsForAuthenticatedUserResponseItem - >; - type ReposListReleasesResponse = Array; - type ReposListAssetsForReleaseResponse = Array< - ReposListAssetsForReleaseResponseItem - >; - type ReposGetContributorsStatsResponse = Array< - ReposGetContributorsStatsResponseItem - >; - type ReposGetCommitActivityStatsResponse = Array< - ReposGetCommitActivityStatsResponseItem - >; - type ReposGetCodeFrequencyStatsResponse = Array>; - type ReposGetPunchCardStatsResponse = Array>; - type ReposListStatusesForRefResponse = Array< - ReposListStatusesForRefResponseItem - >; - type ReposGetTopReferrersResponse = Array; - type ReposGetTopPathsResponse = Array; - type ReposListHooksResponse = Array; - type TeamsListResponse = Array; - type TeamsListReposResponse = Array; - type TeamsListForAuthenticatedUserResponse = Array< - TeamsListForAuthenticatedUserResponseItem - >; - type TeamsListProjectsResponse = Array; - type TeamsListDiscussionsResponse = Array; - type TeamsListDiscussionCommentsResponse = Array< - TeamsListDiscussionCommentsResponseItem - >; - type TeamsListMembersResponse = Array; - type TeamsListPendingInvitationsResponse = Array< - TeamsListPendingInvitationsResponseItem - >; - type UsersGetContextForUserResponse = any; - type UsersListResponse = Array; - type UsersListBlockedResponse = Array; - type UsersListEmailsResponse = Array; - type UsersListPublicEmailsResponse = Array; - type UsersAddEmailsResponse = Array; - type UsersTogglePrimaryEmailVisibilityResponse = Array< - UsersTogglePrimaryEmailVisibilityResponseItem - >; - type UsersListFollowersForUserResponse = Array< - UsersListFollowersForUserResponseItem - >; - type UsersListFollowersForAuthenticatedUserResponse = Array< - UsersListFollowersForAuthenticatedUserResponseItem - >; - type UsersListFollowingForUserResponse = Array< - UsersListFollowingForUserResponseItem - >; - type UsersListFollowingForAuthenticatedUserResponse = Array< - UsersListFollowingForAuthenticatedUserResponseItem - >; - type UsersListPublicKeysForUserResponse = Array< - UsersListPublicKeysForUserResponseItem - >; - type UsersListPublicKeysResponse = Array; - type UsersListGpgKeysForUserResponse = Array< - UsersListGpgKeysForUserResponseItem - >; - type UsersListGpgKeysResponse = Array; - - export type OauthAuthorizationsListGrantsParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OauthAuthorizationsGetGrantParams = { - grant_id: number; - }; - export type OauthAuthorizationsDeleteGrantParams = { - grant_id: number; - }; - export type OauthAuthorizationsListAuthorizationsParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OauthAuthorizationsGetAuthorizationParams = { - authorization_id: number; - }; - export type OauthAuthorizationsCreateAuthorizationParams = { - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. - */ - note: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * The 20 character OAuth app client key for which to create the token. - */ - client_id?: string; - /** - * The 40 character OAuth app client secret for which to create the token. - */ - client_secret?: string; - /** - * A unique string to distinguish an authorization from others created for the same client ID and user. - */ - fingerprint?: string; - }; - export type OauthAuthorizationsGetOrCreateAuthorizationForAppParams = { - client_id: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint). - */ - fingerprint?: string; - }; - export type OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintParams = { - client_id: string; - - fingerprint: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - }; - export type OauthAuthorizationsUpdateAuthorizationParams = { - authorization_id: number; - /** - * Replaces the authorization scopes with these. - */ - scopes?: string[]; - /** - * A list of scopes to add to this authorization. - */ - add_scopes?: string[]; - /** - * A list of scopes to remove from this authorization. - */ - remove_scopes?: string[]; - /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A unique string to distinguish an authorization from others created for the same client ID and user. - */ - fingerprint?: string; - }; - export type OauthAuthorizationsDeleteAuthorizationParams = { - authorization_id: number; - }; - export type OauthAuthorizationsCheckAuthorizationParams = { - client_id: string; - - access_token: string; - }; - export type OauthAuthorizationsResetAuthorizationParams = { - client_id: string; - - access_token: string; - }; - export type OauthAuthorizationsRevokeAuthorizationForApplicationParams = { - client_id: string; - - access_token: string; - }; - export type OauthAuthorizationsRevokeGrantForApplicationParams = { - client_id: string; - - access_token: string; - }; - export type ActivityListPublicEventsParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListRepoEventsParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListPublicEventsForRepoNetworkParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListPublicEventsForOrgParams = { - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListReceivedEventsForUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListReceivedPublicEventsForUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListEventsForUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListPublicEventsForUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListEventsForOrgParams = { - username: string; - - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListNotificationsParams = { - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - before?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListNotificationsForRepoParams = { - owner: string; - - repo: string; - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * Only show notifications updated after the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Only show notifications updated before the given time. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - before?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityMarkAsReadParams = { - /** - * Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - last_read_at?: string; - }; - export type ActivityMarkNotificationsAsReadForRepoParams = { - owner: string; - - repo: string; - /** - * Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - last_read_at?: string; - }; - export type ActivityGetThreadParams = { - thread_id: number; - }; - export type ActivityMarkThreadAsReadParams = { - thread_id: number; - }; - export type ActivityGetThreadSubscriptionParams = { - thread_id: number; - }; - export type ActivitySetThreadSubscriptionParams = { - thread_id: number; - /** - * Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread. - */ - ignored?: boolean; - }; - export type ActivityDeleteThreadSubscriptionParams = { - thread_id: number; - }; - export type ActivityListStargazersForRepoParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListReposStarredByUserParams = { - username: string; - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListReposStarredByAuthenticatedUserParams = { - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityCheckStarringRepoParams = { - owner: string; - - repo: string; - }; - export type ActivityStarRepoParams = { - owner: string; - - repo: string; - }; - export type ActivityUnstarRepoParams = { - owner: string; - - repo: string; - }; - export type ActivityListWatchersForRepoParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListReposWatchedByUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityListWatchedReposForAuthenticatedUserParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ActivityGetRepoSubscriptionParams = { - owner: string; - - repo: string; - }; - export type ActivitySetRepoSubscriptionParams = { - owner: string; - - repo: string; - /** - * Determines if notifications should be received from this repository. - */ - subscribed?: boolean; - /** - * Determines if all notifications should be blocked from this repository. - */ - ignored?: boolean; - }; - export type ActivityDeleteRepoSubscriptionParams = { - owner: string; - - repo: string; - }; - export type ChecksCreateParams = { - owner: string; - - repo: string; - /** - * The name of the check. For example, "code-coverage". - */ - name: string; - /** - * The SHA of the commit. - */ - head_sha: string; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * The time that the check run began in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - started_at?: string; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. ,* **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. - */ - conclusion?: - | "success" - | "failure" - | "neutral" - | "cancelled" - | "timed_out" - | "action_required"; - /** - * **Required if you provide `conclusion`**. The time the check completed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - completed_at?: string; - /** - * Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](#output-object) description. - */ - output?: ChecksCreateParamsOutput; - /** - * Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](#actions-object) description. - */ - actions?: ChecksCreateParamsActions[]; - }; - export type ChecksUpdateParams = { - owner: string; - - repo: string; - - check_run_id: number; - /** - * The name of the check. For example, "code-coverage". - */ - name?: string; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - started_at?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. ,* **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. - */ - conclusion?: - | "success" - | "failure" - | "neutral" - | "cancelled" - | "timed_out" - | "action_required"; - /** - * **Required if you provide `conclusion`**. The time the check completed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - completed_at?: string; - /** - * Check runs can accept a variety of data in the `output` object, including a `title` and `summary` and can optionally provide descriptive details about the run. See the [`output` object](#output-object-1) description. - */ - output?: ChecksUpdateParamsOutput; - /** - * Possible further actions the integrator can perform, which a user may trigger. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](#actions-object) description. - */ - actions?: ChecksUpdateParamsActions[]; - }; - export type ChecksListForRefParams = { - owner: string; - - repo: string; - - ref: string; - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ChecksListForSuiteParams = { - owner: string; - - repo: string; - - check_suite_id: number; - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ChecksGetParams = { - owner: string; - - repo: string; - - check_run_id: number; - }; - export type ChecksListAnnotationsParams = { - owner: string; - - repo: string; - - check_run_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ChecksGetSuiteParams = { - owner: string; - - repo: string; - - check_suite_id: number; - }; - export type ChecksListSuitesForRefParams = { - owner: string; - - repo: string; - - ref: string; - /** - * Filters check suites by GitHub App `id`. - */ - app_id?: number; - /** - * Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/). - */ - check_name?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ChecksSetSuitesPreferencesParams = { - owner: string; - - repo: string; - /** - * Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](#auto_trigger_checks-object) description for details. - */ - auto_trigger_checks?: ChecksSetSuitesPreferencesParamsAutoTriggerChecks[]; - }; - export type ChecksCreateSuiteParams = { - owner: string; - - repo: string; - /** - * The sha of the head commit. - */ - head_sha: string; - }; - export type ChecksRerequestSuiteParams = { - owner: string; - - repo: string; - - check_suite_id: number; - }; - export type GistsListPublicForUserParams = { - username: string; - /** - * A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type GistsListParams = { - /** - * A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type GistsListPublicParams = { - /** - * A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type GistsListStarredParams = { - /** - * A timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type GistsGetParams = { - gist_id: string; - }; - export type GistsGetRevisionParams = { - gist_id: string; - - sha: string; - }; - export type GistsCreateParams = { - /** - * The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`. - */ - files: GistsCreateParamsFiles; - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * When `true`, the gist will be public and available for anyone to see. - */ - public?: boolean; - }; - export type GistsUpdateParams = { - gist_id: string; - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * The filenames and content that make up this gist. - */ - files?: GistsUpdateParamsFiles; - }; - export type GistsListCommitsParams = { - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type GistsStarParams = { - gist_id: string; - }; - export type GistsUnstarParams = { - gist_id: string; - }; - export type GistsCheckIsStarredParams = { - gist_id: string; - }; - export type GistsForkParams = { - gist_id: string; - }; - export type GistsListForksParams = { - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type GistsDeleteParams = { - gist_id: string; - }; - export type GistsListCommentsParams = { - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type GistsGetCommentParams = { - gist_id: string; - - comment_id: number; - }; - export type GistsCreateCommentParams = { - gist_id: string; - /** - * The comment text. - */ - body: string; - }; - export type GistsUpdateCommentParams = { - gist_id: string; - - comment_id: number; - /** - * The comment text. - */ - body: string; - }; - export type GistsDeleteCommentParams = { - gist_id: string; - - comment_id: number; - }; - export type GitGetBlobParams = { - owner: string; - - repo: string; - - file_sha: string; - }; - export type GitCreateBlobParams = { - owner: string; - - repo: string; - /** - * The new blob's content. - */ - content: string; - /** - * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. - */ - encoding?: string; - }; - export type GitGetCommitParams = { - owner: string; - - repo: string; - - commit_sha: string; - }; - export type GitCreateCommitParams = { - owner: string; - - repo: string; - /** - * The commit message - */ - message: string; - /** - * The SHA of the tree object this commit points to - */ - tree: string; - /** - * The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided. - */ - parents: string[]; - /** - * object containing information about the committer. - */ - committer?: GitCreateCommitParamsCommitter; - /** - * object containing information about the author. - */ - author?: GitCreateCommitParamsAuthor; - }; - export type GitGetRefParams = { - owner: string; - - repo: string; - /** - * Must be formatted as `heads/branch`, not just `branch` - */ - ref: string; - }; - export type GitListRefsParams = { - owner: string; - - repo: string; - /** - * Filter by sub-namespace (reference prefix). Most commen examples would be `'heads/'` and `'tags/'` to retrieve branches or tags - */ - namespace?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type GitCreateRefParams = { - owner: string; - - repo: string; - /** - * The name of the fully qualified reference (ie: `refs/heads/master`). If it doesn't start with 'refs' and have at least two slashes, it will be rejected. - */ - ref: string; - /** - * The SHA1 value for this reference. - */ - sha: string; - }; - export type GitUpdateRefParams = { - owner: string; - - repo: string; - - ref: string; - /** - * The SHA1 value to set this reference to - */ - sha: string; - /** - * Indicates whether to force the update or to make sure the update is a fast-forward update. Leaving this out or setting it to `false` will make sure you're not overwriting work. - */ - force?: boolean; - }; - export type GitDeleteRefParams = { - owner: string; - - repo: string; - - ref: string; - }; - export type GitGetTagParams = { - owner: string; - - repo: string; - - tag_sha: string; - }; - export type GitCreateTagParams = { - owner: string; - - repo: string; - /** - * The tag's name. This is typically a version (e.g., "v0.0.1"). - */ - tag: string; - /** - * The tag message. - */ - message: string; - /** - * The SHA of the git object this is tagging. - */ - object: string; - /** - * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. - */ - type: "commit" | "tree" | "blob"; - /** - * An object with information about the individual creating the tag. - */ - tagger?: GitCreateTagParamsTagger; - }; - export type GitGetTreeParams = { - owner: string; - - repo: string; - - tree_sha: string; - - recursive?: 1; - }; - export type GitCreateTreeParams = { - owner: string; - - repo: string; - /** - * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure - */ - tree: GitCreateTreeParamsTree[]; - /** - * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. - */ - base_tree?: string; - }; - export type AppsGetBySlugParams = { - app_slug: string; - }; - export type AppsListInstallationsParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsGetInstallationParams = { - installation_id: number; - }; - export type AppsListInstallationsForAuthenticatedUserParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsCreateInstallationTokenParams = { - installation_id: number; - }; - export type AppsFindOrgInstallationParams = { - org: string; - }; - export type AppsFindRepoInstallationParams = { - owner: string; - - repo: string; - }; - export type AppsFindUserInstallationParams = { - username: string; - }; - export type AppsCreateFromManifestParams = { - code: string; - }; - export type AppsCreateContentAttachmentParams = { - content_reference_id: number; - /** - * The title of the content attachment displayed in the body or comment of an issue or pull request. - */ - title: string; - /** - * The body text of the content attachment displayed in the body or comment of an issue or pull request. This parameter supports markdown. - */ - body: string; - }; - export type AppsListReposParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsListInstallationReposForAuthenticatedUserParams = { - installation_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsAddRepoToInstallationParams = { - installation_id: number; - - repository_id: number; - }; - export type AppsRemoveRepoFromInstallationParams = { - installation_id: number; - - repository_id: number; - }; - export type AppsListPlansParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsListPlansStubbedParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsListAccountsUserOrOrgOnPlanParams = { - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsListAccountsUserOrOrgOnPlanStubbedParams = { - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsCheckAccountIsAssociatedWithAnyParams = { - account_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsCheckAccountIsAssociatedWithAnyStubbedParams = { - account_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsListMarketplacePurchasesForAuthenticatedUserParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type AppsListMarketplacePurchasesForAuthenticatedUserStubbedParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesListParams = { - /** - * Indicates which sorts of issues to return. Can be one of: ,* \* `assigned`: Issues assigned to you ,* \* `created`: Issues created by you ,* \* `mentioned`: Issues mentioning you ,* \* `subscribed`: Issues you're subscribed to updates for ,* \* `all`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesListForAuthenticatedUserParams = { - /** - * Indicates which sorts of issues to return. Can be one of: ,* \* `assigned`: Issues assigned to you ,* \* `created`: Issues created by you ,* \* `mentioned`: Issues mentioning you ,* \* `subscribed`: Issues you're subscribed to updates for ,* \* `all`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesListForOrgParams = { - org: string; - /** - * Indicates which sorts of issues to return. Can be one of: ,* \* `assigned`: Issues assigned to you ,* \* `created`: Issues created by you ,* \* `mentioned`: Issues mentioning you ,* \* `subscribed`: Issues you're subscribed to updates for ,* \* `all`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesListForRepoParams = { - owner: string; - - repo: string; - /** - * If an `integer` is passed, it should refer to a milestone by its `number` field. If the string `*` is passed, issues with any milestone are accepted. If the string `none` is passed, issues without milestones are returned. - */ - milestone?: string; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. - */ - assignee?: string; - /** - * The user that created the issue. - */ - creator?: string; - /** - * A user that's mentioned in the issue. - */ - mentioned?: string; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesGetParams = { - owner: string; - - repo: string; - - number: number; - }; - export type IssuesCreateParams = { - owner: string; - - repo: string; - /** - * The title of the issue. - */ - title: string; - /** - * The contents of the issue. - */ - body?: string; - /** - * Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_ - */ - assignee?: string; - /** - * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ - */ - milestone?: number; - /** - * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ - */ - labels?: string[]; - /** - * Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ - */ - assignees?: string[]; - }; - export type IssuesUpdateParams = { - owner: string; - - repo: string; - - number: number; - /** - * The title of the issue. - */ - title?: string; - /** - * The contents of the issue. - */ - body?: string; - /** - * Login for the user that this issue should be assigned to. **This field is deprecated.** - */ - assignee?: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - /** - * Labels to associate with this issue. Pass one or more Labels to _replace_ the set of Labels on this Issue. Send an empty array (`[]`) to clear all Labels from the Issue. _NOTE: Only users with push access can set labels for issues. Labels are silently dropped otherwise._ - */ - labels?: string[]; - /** - * Logins for Users to assign to this issue. Pass one or more user logins to _replace_ the set of assignees on this Issue. Send an empty array (`[]`) to clear all assignees from the Issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ - */ - assignees?: string[]; - }; - export type IssuesLockParams = { - owner: string; - - repo: string; - - number: number; - /** - * The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: ,* \* `off-topic` ,* \* `too heated` ,* \* `resolved` ,* \* `spam` - */ - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; - }; - export type IssuesUnlockParams = { - owner: string; - - repo: string; - - number: number; - }; - export type IssuesListAssigneesParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesCheckAssigneeParams = { - owner: string; - - repo: string; - - assignee: string; - }; - export type IssuesAddAssigneesParams = { - owner: string; - - repo: string; - - number: number; - /** - * Usernames of people to assign this issue to. _NOTE: Only users with push access can add assignees to an issue. Assignees are silently ignored otherwise._ - */ - assignees?: string[]; - }; - export type IssuesRemoveAssigneesParams = { - owner: string; - - repo: string; - - number: number; - /** - * Usernames of assignees to remove from an issue. _NOTE: Only users with push access can remove assignees from an issue. Assignees are silently ignored otherwise._ - */ - assignees?: string[]; - }; - export type IssuesListCommentsParams = { - owner: string; - - repo: string; - - number: number; - /** - * Only comments updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesListCommentsForRepoParams = { - owner: string; - - repo: string; - /** - * Either `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * Either `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Only comments updated at or after this time are returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - }; - export type IssuesGetCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesCreateCommentParams = { - owner: string; - - repo: string; - - number: number; - /** - * The contents of the comment. - */ - body: string; - }; - export type IssuesUpdateCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * The contents of the comment. - */ - body: string; - }; - export type IssuesDeleteCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - }; - export type IssuesListEventsParams = { - owner: string; - - repo: string; - - number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesListEventsForRepoParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesGetEventParams = { - owner: string; - - repo: string; - - event_id: number; - }; - export type IssuesListLabelsForRepoParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesGetLabelParams = { - owner: string; - - repo: string; - - name: string; - }; - export type IssuesCreateLabelParams = { - owner: string; - - repo: string; - /** - * The name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://a248.e.akamai.net/assets.github.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/). - */ - name: string; - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color: string; - /** - * A short description of the label. - */ - description?: string; - }; - export type IssuesUpdateLabelParams = { - owner: string; - - repo: string; - - current_name: string; - /** - * The new name of the label. Emoji can be added to label names, using either native emoji or colon-style markup. For example, typing `:strawberry:` will render the emoji ![:strawberry:](https://a248.e.akamai.net/assets.github.com/images/icons/emoji/unicode/1f353.png ":strawberry:"). For a full list of available emoji and codes, see [emoji-cheat-sheet.com](http://emoji-cheat-sheet.com/). - */ - name?: string; - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color?: string; - /** - * A short description of the label. - */ - description?: string; - }; - export type IssuesDeleteLabelParams = { - owner: string; - - repo: string; - - name: string; - }; - export type IssuesListLabelsOnIssueParams = { - owner: string; - - repo: string; - - number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesAddLabelsParams = { - owner: string; - - repo: string; - - number: number; - /** - * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels: string[]; - }; - export type IssuesRemoveLabelParams = { - owner: string; - - repo: string; - - number: number; - - name: string; - }; - export type IssuesReplaceLabelsParams = { - owner: string; - - repo: string; - - number: number; - /** - * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels?: string[]; - }; - export type IssuesRemoveLabelsParams = { - owner: string; - - repo: string; - - number: number; - }; - export type IssuesListLabelsForMilestoneParams = { - owner: string; - - repo: string; - - number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesListMilestonesForRepoParams = { - owner: string; - - repo: string; - /** - * The state of the milestone. Either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * What to sort results by. Either `due_on` or `completeness`. - */ - sort?: "due_on" | "completeness"; - /** - * The direction of the sort. Either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type IssuesGetMilestoneParams = { - owner: string; - - repo: string; - - number: number; - }; - export type IssuesCreateMilestoneParams = { - owner: string; - - repo: string; - /** - * The title of the milestone. - */ - title: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; - }; - export type IssuesUpdateMilestoneParams = { - owner: string; - - repo: string; - - number: number; - /** - * The title of the milestone. - */ - title?: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; - }; - export type IssuesDeleteMilestoneParams = { - owner: string; - - repo: string; - - number: number; - }; - export type IssuesListEventsForTimelineParams = { - owner: string; - - repo: string; - - number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type MigrationsStartForOrgParams = { - org: string; - /** - * A list of arrays indicating which repositories should be migrated. - */ - repositories: string[]; - /** - * Indicates whether repositories should be locked (to prevent manipulation) while migrating data. - */ - lock_repositories?: boolean; - /** - * Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). - */ - exclude_attachments?: boolean; - }; - export type MigrationsListForOrgParams = { - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type MigrationsGetStatusForOrgParams = { - org: string; - - migration_id: number; - }; - export type MigrationsGetArchiveForOrgParams = { - org: string; - - migration_id: number; - }; - export type MigrationsDeleteArchiveForOrgParams = { - org: string; - - migration_id: number; - }; - export type MigrationsUnlockRepoForOrgParams = { - org: string; - - migration_id: number; - - repo_name: string; - }; - export type MigrationsStartImportParams = { - owner: string; - - repo: string; - /** - * The URL of the originating repository. - */ - vcs_url: string; - /** - * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. - */ - vcs?: "subversion" | "git" | "mercurial" | "tfvc"; - /** - * If authentication is required, the username to provide to `vcs_url`. - */ - vcs_username?: string; - /** - * If authentication is required, the password to provide to `vcs_url`. - */ - vcs_password?: string; - /** - * For a tfvc import, the name of the project that is being imported. - */ - tfvc_project?: string; - }; - export type MigrationsGetImportProgressParams = { - owner: string; - - repo: string; - }; - export type MigrationsUpdateImportParams = { - owner: string; - - repo: string; - /** - * The username to provide to the originating repository. - */ - vcs_username?: string; - /** - * The password to provide to the originating repository. - */ - vcs_password?: string; - }; - export type MigrationsGetCommitAuthorsParams = { - owner: string; - - repo: string; - /** - * Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step. - */ - since?: string; - }; - export type MigrationsMapCommitAuthorParams = { - owner: string; - - repo: string; - - author_id: number; - /** - * The new Git author email. - */ - email?: string; - /** - * The new Git author name. - */ - name?: string; - }; - export type MigrationsSetLfsPreferenceParams = { - owner: string; - - repo: string; - /** - * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). - */ - use_lfs: "opt_in" | "opt_out"; - }; - export type MigrationsGetLargeFilesParams = { - owner: string; - - repo: string; - }; - export type MigrationsCancelImportParams = { - owner: string; - - repo: string; - }; - export type MigrationsStartForAuthenticatedUserParams = { - /** - * An array of repositories to include in the migration. - */ - repositories: string[]; - /** - * Locks the `repositories` to prevent changes during the migration when set to `true`. - */ - lock_repositories?: boolean; - /** - * Does not include attachments uploaded to GitHub.com in the migration data when set to `true`. Excluding attachments will reduce the migration archive file size. - */ - exclude_attachments?: boolean; - }; - export type MigrationsListForAuthenticatedUserParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type MigrationsGetStatusForAuthenticatedUserParams = { - migration_id: number; - }; - export type MigrationsGetArchiveForAuthenticatedUserParams = { - migration_id: number; - }; - export type MigrationsDeleteArchiveForAuthenticatedUserParams = { - migration_id: number; - }; - export type MigrationsUnlockRepoForAuthenticatedUserParams = { - migration_id: number; - - repo_name: string; - }; - export type CodesOfConductGetConductCodeParams = { - key: string; - }; - export type CodesOfConductGetForRepoParams = { - owner: string; - - repo: string; - }; - export type GitignoreGetTemplateParams = { - name: string; - }; - export type LicensesGetParams = { - license: string; - }; - export type LicensesGetForRepoParams = { - owner: string; - - repo: string; - }; - export type MarkdownRenderParams = { - /** - * The Markdown text to render in HTML. Markdown content must be 400 KB or less. - */ - text: string; - /** - * The rendering mode. Can be either: ,* \* `markdown` to render a document in plain Markdown, just like README.md files are rendered. ,* \* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests. - */ - mode?: "markdown" | "gfm"; - /** - * The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode. - */ - context?: string; - }; - export type MarkdownRenderRawParams = { - data: string; - }; - export type OrgsListForAuthenticatedUserParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsListParams = { - /** - * The integer ID of the last Organization that you've seen. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsListForUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsGetParams = { - org: string; - }; - export type OrgsUpdateParams = { - org: string; - /** - * Billing email address. This address is not publicized. - */ - billing_email?: string; - /** - * The company name. - */ - company?: string; - /** - * The publicly visible email address. - */ - email?: string; - /** - * The location. - */ - location?: string; - /** - * The shorthand name of the company. - */ - name?: string; - /** - * The description of the company. - */ - description?: string; - /** - * Toggles whether organization projects are enabled for the organization. - */ - has_organization_projects?: boolean; - /** - * Toggles whether repository projects are enabled for repositories that belong to the organization. - */ - has_repository_projects?: boolean; - /** - * Default permission level members have for organization repositories: ,* \* `read` - can pull, but not push to or administer this repository. ,* \* `write` - can pull and push, but not administer this repository. ,* \* `admin` - can pull, push, and administer this repository. ,* \* `none` - no permissions granted by default. - */ - default_repository_permission?: "read" | "write" | "admin" | "none"; - /** - * Toggles the ability of non-admin organization members to create repositories. Can be one of: ,* \* `true` - all organization members can create repositories. ,* \* `false` - only admin members can create repositories. ,* Default: `true` ,* **Note:** Another parameter can override the this parameter. See [this note](#members_can_create_repositories) for details. **Note:** Another parameter can override the this parameter. See [this note](#members_can_create_repositories) for details. - */ - members_can_create_repositories?: boolean; - /** - * Specifies which types of repositories non-admin organization members can create. Can be one of: ,* \* `all` - all organization members can create public and private repositories. ,* \* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on [GitHub Business Cloud](https://github.com/pricing/business-cloud). ,* \* `none` - only admin members can create repositories. ,* **Note:** Using this parameter will override values set in `members_can_create_repositories`. See [this note](#members_can_create_repositories) for details. - */ - members_allowed_repository_creation_type?: "all" | "private" | "none"; - }; - export type OrgsListBlockedUsersParams = { - org: string; - }; - export type OrgsCheckBlockedUserParams = { - org: string; - - username: string; - }; - export type OrgsBlockUserParams = { - org: string; - - username: string; - }; - export type OrgsUnblockUserParams = { - org: string; - - username: string; - }; - export type OrgsListMembersParams = { - org: string; - /** - * Filter members returned in the list. Can be one of: ,* \* `2fa_disabled` - Members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. Available for organization owners. ,* \* `all` - All members the authenticated user can see. - */ - filter?: "2fa_disabled" | "all"; - /** - * Filter members returned by their role. Can be one of: ,* \* `all` - All members of the organization, regardless of role. ,* \* `admin` - Organization owners. ,* \* `member` - Non-owner organization members. - */ - role?: "all" | "admin" | "member"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsCheckMembershipParams = { - org: string; - - username: string; - }; - export type OrgsRemoveMemberParams = { - org: string; - - username: string; - }; - export type OrgsListPublicMembersParams = { - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsCheckPublicMembershipParams = { - org: string; - - username: string; - }; - export type OrgsPublicizeMembershipParams = { - org: string; - - username: string; - }; - export type OrgsConcealMembershipParams = { - org: string; - - username: string; - }; - export type OrgsGetMembershipParams = { - org: string; - - username: string; - }; - export type OrgsAddOrUpdateMembershipParams = { - org: string; - - username: string; - /** - * The role to give the user in the organization. Can be one of: ,* \* `admin` - The user will become an owner of the organization. ,* \* `member` - The user will become a non-owner member of the organization. - */ - role?: "admin" | "member"; - }; - export type OrgsRemoveMembershipParams = { - org: string; - - username: string; - }; - export type OrgsListInvitationTeamsParams = { - org: string; - - invitation_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsListPendingInvitationsParams = { - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsCreateInvitationParams = { - org: string; - /** - * **Required unless you provide `email`**. GitHub user ID for the person you are inviting. - */ - invitee_id?: number; - /** - * **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. - */ - email?: string; - /** - * Specify role for new member. Can be one of: ,* \* `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. ,* \* `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. ,* \* `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. - */ - role?: "admin" | "direct_member" | "billing_manager"; - /** - * Specify IDs for the teams you want to invite new members to. - */ - team_ids?: number[]; - }; - export type OrgsListMembershipsParams = { - /** - * Indicates the state of the memberships to return. Can be either `active` or `pending`. If not specified, the API returns both active and pending memberships. - */ - state?: "active" | "pending"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsGetMembershipForAuthenticatedUserParams = { - org: string; - }; - export type OrgsUpdateMembershipParams = { - org: string; - /** - * The state that the membership should be in. Only `"active"` will be accepted. - */ - state: "active"; - }; - export type OrgsListOutsideCollaboratorsParams = { - org: string; - /** - * Filter the list of outside collaborators. Can be one of: ,* \* `2fa_disabled`: Outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. ,* \* `all`: All outside collaborators. - */ - filter?: "2fa_disabled" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsRemoveOutsideCollaboratorParams = { - org: string; - - username: string; - }; - export type OrgsConvertMemberToOutsideCollaboratorParams = { - org: string; - - username: string; - }; - export type OrgsListHooksParams = { - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type OrgsGetHookParams = { - org: string; - - hook_id: number; - }; - export type OrgsCreateHookParams = { - org: string; - /** - * Must be passed as "web". - */ - name: string; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](#create-hook-config-params). - */ - config: OrgsCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - }; - export type OrgsUpdateHookParams = { - org: string; - - hook_id: number; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](#update-hook-config-params). - */ - config?: OrgsUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - }; - export type OrgsPingHookParams = { - org: string; - - hook_id: number; - }; - export type OrgsDeleteHookParams = { - org: string; - - hook_id: number; - }; - export type ProjectsListForRepoParams = { - owner: string; - - repo: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ProjectsListForOrgParams = { - org: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ProjectsGetParams = { - project_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ProjectsCreateForRepoParams = { - owner: string; - - repo: string; - /** - * The name of the project. - */ - name: string; - /** - * The body of the project. - */ - body?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ProjectsCreateForOrgParams = { - org: string; - /** - * The name of the project. - */ - name: string; - /** - * The body of the project. - */ - body?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ProjectsUpdateParams = { - project_id: number; - /** - * The name of the project. - */ - name?: string; - /** - * The body of the project. - */ - body?: string; - /** - * State of the project. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The permission level that all members of the project's organization will have on this project. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. Updating a project's organization permission requires `admin` access to the project. Setting the organization permission is only available for organization projects. - */ - organization_permission?: string; - /** - * Sets visibility of the project within the organization. Updating a project's visibility requires `admin` access to the project. Setting visibility is only available for organization projects. Can be one of: ,* \* `true` - Anyone that can view the organization can see the project. ,* \* `false` - The project must be an organization project to set project visibility. - */ - public?: boolean; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ProjectsDeleteParams = { - project_id: number; - }; - export type ProjectsListCardsParams = { - column_id: number; - /** - * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. - */ - archived_state?: "all" | "archived" | "not_archived"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ProjectsGetCardParams = { - card_id: number; - }; - export type ProjectsCreateCardParams = { - column_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`. - */ - note?: string; - /** - * The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. ,* **Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`. - */ - content_id?: number; - /** - * **Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id. - */ - content_type?: string; - }; - export type ProjectsUpdateCardParams = { - card_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`. - */ - note?: string; - /** - * Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card. - */ - archived?: boolean; - }; - export type ProjectsDeleteCardParams = { - card_id: number; - }; - export type ProjectsMoveCardParams = { - card_id: number; - /** - * Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`. - */ - position: string; - /** - * The `id` value of a column in the same project. - */ - column_id?: number; - }; - export type ProjectsListCollaboratorsParams = { - project_id: number; - /** - * Filters the collaborators by their affiliation. Can be one of: ,* \* `outside`: Outside collaborators of a project that are not a member of the project's organization. ,* \* `direct`: Collaborators with permissions to a project, regardless of organization membership status. ,* \* `all`: All collaborators the authenticated user can see. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ProjectsReviewUserPermissionLevelParams = { - project_id: number; - - username: string; - }; - export type ProjectsAddCollaboratorParams = { - project_id: number; - - username: string; - /** - * The permission to grant the collaborator. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." Can be one of: ,* \* `read` - can read, but not write to or administer this project. ,* \* `write` - can read and write, but not administer this project. ,* \* `admin` - can read, write and administer this project. - */ - permission?: "read" | "write" | "admin"; - }; - export type ProjectsRemoveCollaboratorParams = { - project_id: number; - - username: string; - }; - export type ProjectsListColumnsParams = { - project_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ProjectsGetColumnParams = { - column_id: number; - }; - export type ProjectsCreateColumnParams = { - project_id: number; - /** - * The name of the column. - */ - name: string; - }; - export type ProjectsUpdateColumnParams = { - column_id: number; - /** - * The new name of the column. - */ - name: string; - }; - export type ProjectsDeleteColumnParams = { - column_id: number; - }; - export type ProjectsMoveColumnParams = { - column_id: number; - /** - * Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project. - */ - position: string; - }; - export type PullsListParams = { - owner: string; - - repo: string; - /** - * Either `open`, `closed`, or `all` to filter by state. - */ - state?: "open" | "closed" | "all"; - /** - * Filter pulls by head user and branch name in the format of `user:ref-name`. Example: `github:new-script-format`. - */ - head?: string; - /** - * Filter pulls by base branch name. Example: `gh-pages`. - */ - base?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `popularity` (comment count) or `long-running` (age, filtering by pulls updated in the last month). - */ - sort?: "created" | "updated" | "popularity" | "long-running"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type PullsGetParams = { - owner: string; - - repo: string; - - number: number; - }; - export type PullsCreateParams = { - owner: string; - - repo: string; - /** - * The title of the pull request. - */ - title: string; - /** - * The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`. - */ - head: string; - /** - * The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository. - */ - base: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - }; - export type PullsCreateFromIssueParams = { - owner: string; - - repo: string; - /** - * The issue number in this repository to turn into a Pull Request. - */ - issue: number; - /** - * The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace `head` with a user like this: `username:branch`. - */ - head: string; - /** - * The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository. - */ - base: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - }; - export type PullsUpdateParams = { - owner: string; - - repo: string; - - number: number; - /** - * The title of the pull request. - */ - title?: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * State of this Pull Request. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The name of the branch you want your changes pulled into. This should be an existing branch on the current repository. You cannot update the base branch on a pull request to point to another repository. - */ - base?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - }; - export type PullsListCommitsParams = { - owner: string; - - repo: string; - - number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type PullsListFilesParams = { - owner: string; - - repo: string; - - number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type PullsCheckIfMergedParams = { - owner: string; - - repo: string; - - number: number; - }; - export type PullsMergeParams = { - owner: string; - - repo: string; - - number: number; - /** - * Title for the automatic commit message. - */ - commit_title?: string; - /** - * Extra detail to append to automatic commit message. - */ - commit_message?: string; - /** - * SHA that pull request head must match to allow merge. - */ - sha?: string; - /** - * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. - */ - merge_method?: "merge" | "squash" | "rebase"; - }; - export type PullsListReviewsParams = { - owner: string; - - repo: string; - - number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type PullsGetReviewParams = { - owner: string; - - repo: string; - - number: number; - - review_id: number; - }; - export type PullsDeletePendingReviewParams = { - owner: string; - - repo: string; - - number: number; - - review_id: number; - }; - export type PullsGetCommentsForReviewParams = { - owner: string; - - repo: string; - - number: number; - - review_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type PullsCreateReviewParams = { - owner: string; - - repo: string; - - number: number; - /** - * The SHA of the commit that needs a review. Not using the latest commit SHA may render your review comment outdated if a subsequent commit modifies the line you specify as the `position`. Defaults to the most recent commit in the pull request when you do not specify a value. - */ - commit_id?: string; - /** - * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. - */ - body?: string; - /** - * The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. By leaving this blank, you set the review action state to `PENDING`, which means you will need to [submit the pull request review](https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. - */ - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - /** - * Use the following table to specify the location, destination, and contents of the draft review comment. - */ - comments?: PullsCreateReviewParamsComments[]; - }; - export type PullsSubmitReviewParams = { - owner: string; - - repo: string; - - number: number; - - review_id: number; - /** - * The body text of the pull request review - */ - body?: string; - /** - * The review action you want to perform. The review actions include: `APPROVE`, `REQUEST_CHANGES`, or `COMMENT`. When you leave this blank, the API returns _HTTP 422 (Unrecognizable entity)_ and sets the review action state to `PENDING`, which means you will need to re-submit the pull request review using a review action. - */ - event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - }; - export type PullsDismissReviewParams = { - owner: string; - - repo: string; - - number: number; - - review_id: number; - /** - * The message for the pull request review dismissal - */ - message: string; - }; - export type PullsListCommentsParams = { - owner: string; - - repo: string; - - number: number; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type PullsListCommentsForRepoParams = { - owner: string; - - repo: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type PullsGetCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - }; - export type PullsCreateCommentParams = { - owner: string; - - repo: string; - - number: number; - /** - * The text of the comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below. - */ - position: number; - }; - export type PullsCreateCommentReplyParams = { - owner: string; - - repo: string; - - number: number; - /** - * The text of the comment. - */ - body: string; - /** - * The comment ID to reply to. **Note**: This must be the ID of a _top-level comment_, not a reply to that comment. Replies to replies are not supported. - */ - in_reply_to: number; - }; - export type PullsUpdateCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * The text of the comment. - */ - body: string; - }; - export type PullsDeleteCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - }; - export type PullsListReviewRequestsParams = { - owner: string; - - repo: string; - - number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type PullsCreateReviewRequestParams = { - owner: string; - - repo: string; - - number: number; - /** - * An array of user `login`s that will be requested. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be requested. - */ - team_reviewers?: string[]; - }; - export type PullsDeleteReviewRequestParams = { - owner: string; - - repo: string; - - number: number; - /** - * An array of user `login`s that will be removed. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be removed. - */ - team_reviewers?: string[]; - }; - export type ReactionsListForCommitCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReactionsCreateForCommitCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - }; - export type ReactionsListForIssueParams = { - owner: string; - - repo: string; - - number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReactionsCreateForIssueParams = { - owner: string; - - repo: string; - - number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - }; - export type ReactionsListForIssueCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReactionsCreateForIssueCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - }; - export type ReactionsListForPullRequestReviewCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReactionsCreateForPullRequestReviewCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - }; - export type ReactionsListForTeamDiscussionParams = { - team_id: number; - - discussion_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReactionsCreateForTeamDiscussionParams = { - team_id: number; - - discussion_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - }; - export type ReactionsListForTeamDiscussionCommentParams = { - team_id: number; - - discussion_number: number; - - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReactionsCreateForTeamDiscussionCommentParams = { - team_id: number; - - discussion_number: number; - - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray"; - }; - export type ReactionsDeleteParams = { - reaction_id: number; - }; - export type ReposListParams = { - /** - * Can be one of `all`, `public`, or `private`. - */ - visibility?: "all" | "public" | "private"; - /** - * Comma-separated list of values. Can include: ,* \* `owner`: Repositories that are owned by the authenticated user. ,* \* `collaborator`: Repositories that the user has been added to as a collaborator. ,* \* `organization_member`: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on. - */ - affiliation?: "owner" | "collaborator" | "organization_member"; - /** - * Can be one of `all`, `owner`, `public`, `private`, `member`. Default: `all` ,* ,* Will cause a `422` error if used in the same request as **visibility** or **affiliation**. Will cause a `422` error if used in the same request as **visibility** or **affiliation**. - */ - type?: "all" | "owner" | "public" | "private" | "member"; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposListForUserParams = { - username: string; - /** - * Can be one of `all`, `owner`, `member`. - */ - type?: "all" | "owner" | "member"; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposListForOrgParams = { - org: string; - /** - * Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`. - */ - type?: "all" | "public" | "private" | "forks" | "sources" | "member"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposListPublicParams = { - /** - * The integer ID of the last Repository that you've seen. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposCreateForAuthenticatedUserParams = { - /** - * The name of the repository. - */ - name: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account. - */ - private?: boolean; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. - */ - has_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell". - */ - gitignore_template?: string; - /** - * Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0". - */ - license_template?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - }; - export type ReposCreateInOrgParams = { - org: string; - /** - * The name of the repository. - */ - name: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account. - */ - private?: boolean; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. - */ - has_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * Desired language or platform [.gitignore template](https://github.com/github/gitignore) to apply. Use the name of the template without the extension. For example, "Haskell". - */ - gitignore_template?: string; - /** - * Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0". - */ - license_template?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - }; - export type ReposGetParams = { - owner: string; - - repo: string; - }; - export type ReposUpdateParams = { - owner: string; - - repo: string; - /** - * The name of the repository. - */ - name: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. Default: `false`. ,* **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. **Note**: You will get a `422` error if the organization restricts [changing repository visibility](https://help.github.com/articles/repository-permission-levels-for-an-organization#changing-the-visibility-of-repositories) to organization owners and a non-owner tries to change the value of private. - */ - private?: boolean; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * Either `true` to enable projects for this repository or `false` to disable them. **Note:** If you're creating a repository in an organization that has disabled repository projects, the default is `false`, and if you pass `true`, the API returns an error. - */ - has_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Updates the default branch for this repository. - */ - default_branch?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. - */ - archived?: boolean; - }; - export type ReposListTopicsParams = { - owner: string; - - repo: string; - }; - export type ReposReplaceTopicsParams = { - owner: string; - - repo: string; - /** - * An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. - */ - names: string[]; - }; - export type ReposListContributorsParams = { - owner: string; - - repo: string; - /** - * Set to `1` or `true` to include anonymous contributors in results. - */ - anon?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposListLanguagesParams = { - owner: string; - - repo: string; - }; - export type ReposListTeamsParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposListTagsParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposDeleteParams = { - owner: string; - - repo: string; - }; - export type ReposTransferParams = { - owner: string; - - repo: string; - /** - * **Required:** The username or organization name the repository will be transferred to. - */ - new_owner?: string; - /** - * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. - */ - team_ids?: number[]; - }; - export type ReposListBranchesParams = { - owner: string; - - repo: string; - /** - * Setting to `true` returns only protected branches. - */ - protected?: boolean; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetBranchParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposGetBranchProtectionParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposUpdateBranchProtectionParams = { - owner: string; - - repo: string; - - branch: string; - /** - * Require status checks to pass before merging. Set to `null` to disable. - */ - required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; - /** - * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. - */ - enforce_admins: boolean | null; - /** - * Require at least one approving review on a pull request, before merging. Set to `null` to disable. - */ - required_pull_request_reviews: ReposUpdateBranchProtectionParamsRequiredPullRequestReviews | null; - /** - * Restrict who can push to this branch. Team and user `restrictions` are only available for organization-owned repositories. Set to `null` to disable. - */ - restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; - }; - export type ReposRemoveBranchProtectionParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposGetProtectedBranchRequiredStatusChecksParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposUpdateProtectedBranchRequiredStatusChecksParams = { - owner: string; - - repo: string; - - branch: string; - /** - * Require branches to be up to date before merging. - */ - strict?: boolean; - /** - * The list of status checks to require in order to merge into this branch - */ - contexts?: string[]; - }; - export type ReposRemoveProtectedBranchRequiredStatusChecksParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposListProtectedBranchRequiredStatusChecksContextsParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposReplaceProtectedBranchRequiredStatusChecksContextsParams = { - owner: string; - - repo: string; - - branch: string; - - contexts: string[]; - }; - export type ReposAddProtectedBranchRequiredStatusChecksContextsParams = { - owner: string; - - repo: string; - - branch: string; - - contexts: string[]; - }; - export type ReposRemoveProtectedBranchRequiredStatusChecksContextsParams = { - owner: string; - - repo: string; - - branch: string; - - contexts: string[]; - }; - export type ReposGetProtectedBranchPullRequestReviewEnforcementParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposUpdateProtectedBranchPullRequestReviewEnforcementParams = { - owner: string; - - repo: string; - - branch: string; - /** - * Specify which users and teams can dismiss pull request reviews. Pass an empty `dismissal_restrictions` object to disable. User and team `dismissal_restrictions` are only available for organization-owned repositories. Omit this parameter for personal repositories. - */ - dismissal_restrictions?: ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions; - /** - * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. - */ - dismiss_stale_reviews?: boolean; - /** - * Blocks merging pull requests until code owners have reviewed. - */ - require_code_owner_reviews?: boolean; - /** - * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. - */ - required_approving_review_count?: number; - }; - export type ReposRemoveProtectedBranchPullRequestReviewEnforcementParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposGetProtectedBranchRequiredSignaturesParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposAddProtectedBranchRequiredSignaturesParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposRemoveProtectedBranchRequiredSignaturesParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposGetProtectedBranchAdminEnforcementParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposAddProtectedBranchAdminEnforcementParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposRemoveProtectedBranchAdminEnforcementParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposGetProtectedBranchRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposRemoveProtectedBranchRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposListProtectedBranchTeamRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposReplaceProtectedBranchTeamRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - - teams: string[]; - }; - export type ReposAddProtectedBranchTeamRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - - teams: string[]; - }; - export type ReposRemoveProtectedBranchTeamRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - - teams: string[]; - }; - export type ReposListProtectedBranchUserRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - }; - export type ReposReplaceProtectedBranchUserRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - - users: string[]; - }; - export type ReposAddProtectedBranchUserRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - - users: string[]; - }; - export type ReposRemoveProtectedBranchUserRestrictionsParams = { - owner: string; - - repo: string; - - branch: string; - - users: string[]; - }; - export type ReposListCollaboratorsParams = { - owner: string; - - repo: string; - /** - * Filter collaborators returned by their affiliation. Can be one of: ,* \* `outside`: All outside collaborators of an organization-owned repository. ,* \* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. ,* \* `all`: All collaborators the authenticated user can see. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposCheckCollaboratorParams = { - owner: string; - - repo: string; - - username: string; - }; - export type ReposGetCollaboratorPermissionLevelParams = { - owner: string; - - repo: string; - - username: string; - }; - export type ReposAddCollaboratorParams = { - owner: string; - - repo: string; - - username: string; - /** - * The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: ,* \* `pull` - can pull, but not push to or administer this repository. ,* \* `push` - can pull and push, but not administer this repository. ,* \* `admin` - can pull, push and administer this repository. - */ - permission?: "pull" | "push" | "admin"; - }; - export type ReposRemoveCollaboratorParams = { - owner: string; - - repo: string; - - username: string; - }; - export type ReposListCommitCommentsParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposListCommentsForCommitParams = { - owner: string; - - repo: string; - - ref: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposCreateCommitCommentParams = { - owner: string; - - repo: string; - - sha: string; - /** - * The contents of the comment. - */ - body: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - /** - * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. - */ - line?: number; - }; - export type ReposGetCommitCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - }; - export type ReposUpdateCommitCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - /** - * The contents of the comment - */ - body: string; - }; - export type ReposDeleteCommitCommentParams = { - owner: string; - - repo: string; - - comment_id: number; - }; - export type ReposListCommitsParams = { - owner: string; - - repo: string; - /** - * SHA or branch to start listing commits from. - */ - sha?: string; - /** - * Only commits containing this file path will be returned. - */ - path?: string; - /** - * GitHub login or email address by which to filter by commit author. - */ - author?: string; - /** - * Only commits after this date will be returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Only commits before this date will be returned. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - until?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetCommitParams = { - owner: string; - - repo: string; - - sha: string; - }; - export type ReposGetCommitRefShaParams = { - owner: string; - - repo: string; - - ref: string; - }; - export type ReposCompareCommitsParams = { - owner: string; - - repo: string; - - base: string; - - head: string; - }; - export type ReposRetrieveCommunityProfileMetricsParams = { - owner: string; - - repo: string; - }; - export type ReposGetReadmeParams = { - owner: string; - - repo: string; - /** - * The name of the commit/branch/tag. - */ - ref?: string; - }; - export type ReposGetContentsParams = { - owner: string; - - repo: string; - - path: string; - /** - * The name of the commit/branch/tag. - */ - ref?: string; - }; - export type ReposCreateFileParams = { - owner: string; - - repo: string; - - path: string; - /** - * The commit message. - */ - message: string; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * The branch name. - */ - branch?: string; - /** - * The person that committed the file. - */ - committer?: ReposCreateFileParamsCommitter; - /** - * The author of the file. - */ - author?: ReposCreateFileParamsAuthor; - }; - export type ReposUpdateFileParams = { - owner: string; - - repo: string; - - path: string; - /** - * The commit message. - */ - message: string; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * The blob SHA of the file being replaced. - */ - sha: string; - /** - * The branch name. - */ - branch?: string; - /** - * The person that committed the file. - */ - committer?: ReposUpdateFileParamsCommitter; - /** - * The author of the file. - */ - author?: ReposUpdateFileParamsAuthor; - }; - export type ReposDeleteFileParams = { - owner: string; - - repo: string; - - path: string; - /** - * The commit message. - */ - message: string; - /** - * The blob SHA of the file being replaced. - */ - sha: string; - /** - * The branch name. - */ - branch?: string; - /** - * object containing information about the committer. - */ - committer?: ReposDeleteFileParamsCommitter; - /** - * object containing information about the author. - */ - author?: ReposDeleteFileParamsAuthor; - }; - export type ReposGetArchiveLinkParams = { - owner: string; - - repo: string; - - archive_format: string; - - ref: string; - }; - export type ReposListDeployKeysParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetDeployKeyParams = { - owner: string; - - repo: string; - - key_id: number; - }; - export type ReposAddDeployKeyParams = { - owner: string; - - repo: string; - /** - * A name for the key. - */ - title?: string; - /** - * The contents of the key. - */ - key: string; - /** - * If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. ,* ,* Deploy keys with write access can perform the same actions as an organization member with admin access, or a collaborator on a personal repository. For more information, see "[Repository permission levels for an organization](https://help.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://help.github.com/articles/permission-levels-for-a-user-account-repository/)." - */ - read_only?: boolean; - }; - export type ReposRemoveDeployKeyParams = { - owner: string; - - repo: string; - - key_id: number; - }; - export type ReposListDeploymentsParams = { - owner: string; - - repo: string; - /** - * The SHA recorded at creation time. - */ - sha?: string; - /** - * The name of the ref. This can be a branch, tag, or SHA. - */ - ref?: string; - /** - * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * The name of the environment that was deployed to (e.g., `staging` or `production`). - */ - environment?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetDeploymentParams = { - owner: string; - - repo: string; - - deployment_id: number; - }; - export type ReposCreateDeploymentParams = { - owner: string; - - repo: string; - /** - * The ref to deploy. This can be a branch, tag, or SHA. - */ - ref: string; - /** - * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. - */ - auto_merge?: boolean; - /** - * The [status](https://developer.github.com/v3/repos/statuses/) contexts to verify against commit status checks. If you omit this parameter, GitHub verifies all unique contexts before creating a deployment. To bypass checking entirely, pass an empty array. Defaults to all unique contexts. - */ - required_contexts?: string[]; - /** - * JSON payload with extra information about the deployment. - */ - payload?: string; - /** - * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). - */ - environment?: string; - /** - * Short description of the deployment. - */ - description?: string; - /** - * Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` ,* **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - transient_environment?: boolean; - /** - * Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise. ,* **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - production_environment?: boolean; - }; - export type ReposListDeploymentStatusesParams = { - owner: string; - - repo: string; - - deployment_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetDeploymentStatusParams = { - owner: string; - - repo: string; - - deployment_id: number; - - status_id: number; - }; - export type ReposCreateDeploymentStatusParams = { - owner: string; - - repo: string; - - deployment_id: number; - /** - * The state of the status. Can be one of `error`, `failure`, `inactive`, `in_progress`, `queued` `pending`, or `success`. **Note:** To use the `inactive` state, you must provide the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. To use the `in_progress` and `queued` states, you must provide the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - state: - | "error" - | "failure" - | "inactive" - | "in_progress" - | "queued" - | "pending" - | "success"; - /** - * The target URL to associate with this status. This URL should contain output to keep the user updated while the task is running or serve as historical information for what happened in the deployment. **Note:** It's recommended to use the `log_url` parameter, which replaces `target_url`. - */ - target_url?: string; - /** - * The full URL of the deployment's output. This parameter replaces `target_url`. We will continue to accept `target_url` to support legacy uses, but we recommend replacing `target_url` with `log_url`. Setting `log_url` will automatically set `target_url` to the same value. Default: `""` ,* **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - log_url?: string; - /** - * A short description of the status. The maximum description length is 140 characters. - */ - description?: string; - /** - * Name for the target deployment environment, which can be changed when setting a deploy status. For example, `production`, `staging`, or `qa`. **Note:** This parameter requires you to use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - environment?: "production" | "staging" | "qa"; - /** - * Sets the URL for accessing your environment. Default: `""` ,* **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - environment_url?: string; - /** - * Adds a new `inactive` status to all prior non-transient, non-production environment deployments with the same repository and `environment` name as the created status's deployment. An `inactive` status is only added to deployments that had a `success` state. Default: `true` ,* **Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. ,* **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - auto_inactive?: boolean; - }; - export type ReposListDownloadsParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetDownloadParams = { - owner: string; - - repo: string; - - download_id: number; - }; - export type ReposDeleteDownloadParams = { - owner: string; - - repo: string; - - download_id: number; - }; - export type ReposListForksParams = { - owner: string; - - repo: string; - /** - * The sort order. Can be either `newest`, `oldest`, or `stargazers`. - */ - sort?: "newest" | "oldest" | "stargazers"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposCreateForkParams = { - owner: string; - - repo: string; - /** - * Optional parameter to specify the organization name if forking into an organization. - */ - organization?: string; - }; - export type ReposListInvitationsParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposDeleteInvitationParams = { - owner: string; - - repo: string; - - invitation_id: number; - }; - export type ReposUpdateInvitationParams = { - owner: string; - - repo: string; - - invitation_id: number; - /** - * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`. - */ - permissions?: "read" | "write" | "admin"; - }; - export type ReposListInvitationsForAuthenticatedUserParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposAcceptInvitationParams = { - invitation_id: number; - }; - export type ReposDeclineInvitationParams = { - invitation_id: number; - }; - export type ReposMergeParams = { - owner: string; - - repo: string; - /** - * The name of the base branch that the head will be merged into. - */ - base: string; - /** - * The head to merge. This can be a branch name or a commit SHA1. - */ - head: string; - /** - * Commit message to use for the merge commit. If omitted, a default message will be used. - */ - commit_message?: string; - }; - export type ReposGetPagesParams = { - owner: string; - - repo: string; - }; - export type ReposUpdateInformationAboutPagesSiteParams = { - owner: string; - - repo: string; - /** - * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/)." - */ - cname?: string; - /** - * Update the source for the repository. Must include the branch name, and may optionally specify the subdirectory `/docs`. Possible values are `"gh-pages"`, `"master"`, and `"master /docs"`. - */ - source?: '"gh-pages"' | '"master"' | '"master /docs"'; - }; - export type ReposRequestPageBuildParams = { - owner: string; - - repo: string; - }; - export type ReposListPagesBuildsParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetLatestPagesBuildParams = { - owner: string; - - repo: string; - }; - export type ReposGetPagesBuildParams = { - owner: string; - - repo: string; - - build_id: number; - }; - export type ReposListReleasesParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetReleaseParams = { - owner: string; - - repo: string; - - release_id: number; - }; - export type ReposGetLatestReleaseParams = { - owner: string; - - repo: string; - }; - export type ReposGetReleaseByTagParams = { - owner: string; - - repo: string; - - tag: string; - }; - export type ReposCreateReleaseParams = { - owner: string; - - repo: string; - /** - * The name of the tag. - */ - tag_name: string; - /** - * Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` to create a draft (unpublished) release, `false` to create a published one. - */ - draft?: boolean; - /** - * `true` to identify the release as a prerelease. `false` to identify the release as a full release. - */ - prerelease?: boolean; - }; - export type ReposUpdateReleaseParams = { - owner: string; - - repo: string; - - release_id: number; - /** - * The name of the tag. - */ - tag_name?: string; - /** - * Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` makes the release a draft, and `false` publishes the release. - */ - draft?: boolean; - /** - * `true` to identify the release as a prerelease, `false` to identify the release as a full release. - */ - prerelease?: boolean; - }; - export type ReposDeleteReleaseParams = { - owner: string; - - repo: string; - - release_id: number; - }; - export type ReposListAssetsForReleaseParams = { - owner: string; - - repo: string; - - release_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposUploadReleaseAssetParams = { - /** - * Request headers containing `content-type` and `content-length` - */ - headers: ReposUploadReleaseAssetParamsHeaders; - - url: string; - /** - * The file name of the asset. This should be set in a URI query parameter. - */ - name: string; - /** - * An alternate short description of the asset. Used in place of the filename. This should be set in a URI query parameter. - */ - label?: string; - - file: string | object; - }; - export type ReposGetReleaseAssetParams = { - owner: string; - - repo: string; - - asset_id: number; - }; - export type ReposUpdateReleaseAssetParams = { - owner: string; - - repo: string; - - asset_id: number; - /** - * The file name of the asset. - */ - name?: string; - /** - * An alternate short description of the asset. Used in place of the filename. - */ - label?: string; - }; - export type ReposDeleteReleaseAssetParams = { - owner: string; - - repo: string; - - asset_id: number; - }; - export type ReposGetContributorsStatsParams = { - owner: string; - - repo: string; - }; - export type ReposGetCommitActivityStatsParams = { - owner: string; - - repo: string; - }; - export type ReposGetCodeFrequencyStatsParams = { - owner: string; - - repo: string; - }; - export type ReposGetParticipationStatsParams = { - owner: string; - - repo: string; - }; - export type ReposGetPunchCardStatsParams = { - owner: string; - - repo: string; - }; - export type ReposCreateStatusParams = { - owner: string; - - repo: string; - - sha: string; - /** - * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. - */ - state: "error" | "failure" | "pending" | "success"; - /** - * The target URL to associate with this status. This URL will be linked from the GitHub UI to allow users to easily see the source of the status. ,* For example, if your continuous integration system is posting build status, you would want to provide the deep link for the build output for this specific SHA: ,* `http://ci.example.com/user/repo/build/sha` - */ - target_url?: string; - /** - * A short description of the status. - */ - description?: string; - /** - * A string label to differentiate this status from the status of other systems. - */ - context?: string; - }; - export type ReposListStatusesForRefParams = { - owner: string; - - repo: string; - - ref: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetCombinedStatusForRefParams = { - owner: string; - - repo: string; - - ref: string; - }; - export type ReposGetTopReferrersParams = { - owner: string; - - repo: string; - }; - export type ReposGetTopPathsParams = { - owner: string; - - repo: string; - }; - export type ReposGetViewsParams = { - owner: string; - - repo: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; - }; - export type ReposGetClonesParams = { - owner: string; - - repo: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; - }; - export type ReposListHooksParams = { - owner: string; - - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type ReposGetHookParams = { - owner: string; - - repo: string; - - hook_id: number; - }; - export type ReposCreateHookParams = { - owner: string; - - repo: string; - /** - * Use "web" for a webhook. **Note**: Because we have [deprecated GitHub Services](/changes/2018-10-01-denying-new-github-services), this endpoint now only accepts `web` as a valid value for the `name` parameter. However, when we implement [stricter API validation](/changes/2018-09-25-stricter-validation-coming-soon-in-the-rest-api/) beginning November 1, 2018, requests sending this value will be rejected because `name` will no longer be an accepted parameter. - */ - name: string; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](#create-hook-config-params). - */ - config: ReposCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - }; - export type ReposUpdateHookParams = { - owner: string; - - repo: string; - - hook_id: number; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](#create-hook-config-params). - */ - config?: ReposUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events. - */ - events?: string[]; - /** - * Determines a list of events to be added to the list of events that the Hook triggers for. - */ - add_events?: string[]; - /** - * Determines a list of events to be removed from the list of events that the Hook triggers for. - */ - remove_events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - }; - export type ReposTestPushHookParams = { - owner: string; - - repo: string; - - hook_id: number; - }; - export type ReposPingHookParams = { - owner: string; - - repo: string; - - hook_id: number; - }; - export type ReposDeleteHookParams = { - owner: string; - - repo: string; - - hook_id: number; - }; - export type SearchReposParams = { - /** - * The search keywords, as well as any qualifiers. - */ - q: string; - /** - * The sort field. One of `stars`, `forks`, or `updated`. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The sort order if `sort` parameter is provided. One of `asc` or `desc`. - */ - order?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type SearchCommitsParams = { - /** - * The search terms. - */ - q: string; - /** - * The sort field. Can be `author-date` or `committer-date`. - */ - sort?: "author-date" | "committer-date"; - /** - * The sort order if `sort` parameter is provided. One of `asc` or `desc`. - */ - order?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type SearchCodeParams = { - /** - * The search terms. - */ - q: string; - /** - * The sort field. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. - */ - sort?: "indexed"; - /** - * The sort order if `sort` parameter is provided. One of `asc` or `desc`. - */ - order?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type SearchIssuesParams = { - /** - * The search terms. - */ - q: string; - /** - * The sort field. Can be `comments`, `created`, or `updated`. - */ - sort?: "comments" | "created" | "updated"; - /** - * The sort order if `sort` parameter is provided. One of `asc` or `desc`. - */ - order?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type SearchUsersParams = { - /** - * The search terms. - */ - q: string; - /** - * The sort field. Can be `followers`, `repositories`, or `joined`. - */ - sort?: "followers" | "repositories" | "joined"; - /** - * The sort order if `sort` parameter is provided. One of `asc` or `desc`. - */ - order?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type SearchTopicsParams = { - /** - * The search terms. - */ - q: string; - }; - export type SearchLabelsParams = { - /** - * The id of the repository. - */ - repository_id: number; - /** - * The search keywords. - */ - q: string; - /** - * The sort field. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * The sort order if the sort parameter is provided. Can be one of `asc` or `desc`. - */ - order?: "asc" | "desc"; - }; - export type TeamsListParams = { - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type TeamsGetParams = { - team_id: number; - }; - export type TeamsCreateParams = { - org: string; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * The logins of organization members to add as maintainers of the team. - */ - maintainers?: string[]; - /** - * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. - */ - repo_names?: string[]; - /** - * The level of privacy this team should have. The options are: ,* **For a non-nested team:** ,* \* `secret` - only visible to organization owners and members of this team. ,* \* `closed` - visible to all members of this organization. ,* Default: `secret` ,* **For a parent or child team:** ,* \* `closed` - visible to all members of this organization. ,* Default for child team: `closed` ,* **Note**: You must pass the `hellcat-preview` media type to set privacy default to `closed` for child teams. **For a parent or child team:** - */ - privacy?: "secret" | "closed"; - /** - * **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: ,* \* `pull` - team members can pull, but not push to or administer newly-added repositories. ,* \* `push` - team members can pull and push, but not administer newly-added repositories. ,* \* `admin` - team members can pull, push and administer newly-added repositories. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter. - */ - parent_team_id?: number; - }; - export type TeamsUpdateParams = { - team_id: number; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: ,* **For a non-nested team:** ,* \* `secret` - only visible to organization owners and members of this team. ,* \* `closed` - visible to all members of this organization. ,* **For a parent or child team:** ,* \* `closed` - visible to all members of this organization. - */ - privacy?: string; - /** - * **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: ,* \* `pull` - team members can pull, but not push to or administer newly-added repositories. ,* \* `push` - team members can pull and push, but not administer newly-added repositories. ,* \* `admin` - team members can pull, push and administer newly-added repositories. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. **Note**: You must pass the `hellcat-preview` media type to use this parameter. - */ - parent_team_id?: number; - }; - export type TeamsDeleteParams = { - team_id: number; - }; - export type TeamsListChildParams = { - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type TeamsListReposParams = { - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type TeamsCheckManagesRepoParams = { - team_id: number; - - owner: string; - - repo: string; - }; - export type TeamsAddOrUpdateRepoParams = { - team_id: number; - - owner: string; - - repo: string; - /** - * The permission to grant the team on this repository. Can be one of: ,* \* `pull` - team members can pull, but not push to or administer this repository. ,* \* `push` - team members can pull and push, but not administer this repository. ,* \* `admin` - team members can pull, push and administer this repository. ,* ,* If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. ,* **Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited through a parent team. - */ - permission?: "pull" | "push" | "admin"; - }; - export type TeamsRemoveRepoParams = { - team_id: number; - - owner: string; - - repo: string; - }; - export type TeamsListForAuthenticatedUserParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type TeamsListProjectsParams = { - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type TeamsReviewProjectParams = { - team_id: number; - - project_id: number; - }; - export type TeamsAddOrUpdateProjectParams = { - team_id: number; - - project_id: number; - /** - * The permission to grant to the team for this project. Can be one of: ,* \* `read` - team members can read, but not write to or administer this project. ,* \* `write` - team members can read and write, but not administer this project. ,* \* `admin` - team members can read, write and administer this project. ,* Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." ,* **Note**: If you pass the `hellcat-preview` media type, you can promote—but not demote—a `permission` attribute inherited from a parent team. - */ - permission?: "read" | "write" | "admin"; - }; - export type TeamsRemoveProjectParams = { - team_id: number; - - project_id: number; - }; - export type TeamsListDiscussionsParams = { - team_id: number; - /** - * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type TeamsGetDiscussionParams = { - team_id: number; - - discussion_number: number; - }; - export type TeamsCreateDiscussionParams = { - team_id: number; - /** - * The discussion post's title. - */ - title: string; - /** - * The discussion post's body text. - */ - body: string; - /** - * Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post. - */ - private?: boolean; - }; - export type TeamsUpdateDiscussionParams = { - team_id: number; - - discussion_number: number; - /** - * The discussion post's title. - */ - title?: string; - /** - * The discussion post's body text. - */ - body?: string; - }; - export type TeamsDeleteDiscussionParams = { - team_id: number; - - discussion_number: number; - }; - export type TeamsListDiscussionCommentsParams = { - team_id: number; - - discussion_number: number; - /** - * Sorts the discussion comments by the date they were created. To return the oldest comments first, set to `asc`. Can be one of `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type TeamsGetDiscussionCommentParams = { - team_id: number; - - discussion_number: number; - - comment_number: number; - }; - export type TeamsCreateDiscussionCommentParams = { - team_id: number; - - discussion_number: number; - /** - * The discussion comment's body text. - */ - body: string; - }; - export type TeamsUpdateDiscussionCommentParams = { - team_id: number; - - discussion_number: number; - - comment_number: number; - /** - * The discussion comment's body text. - */ - body: string; - }; - export type TeamsDeleteDiscussionCommentParams = { - team_id: number; - - discussion_number: number; - - comment_number: number; - }; - export type TeamsListMembersParams = { - team_id: number; - /** - * Filters members returned by their role in the team. Can be one of: ,* \* `member` - normal members of the team. ,* \* `maintainer` - team maintainers. ,* \* `all` - all members of the team. - */ - role?: "member" | "maintainer" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type TeamsGetMemberParams = { - team_id: number; - - username: string; - }; - export type TeamsAddMemberParams = { - team_id: number; - - username: string; - }; - export type TeamsRemoveMemberParams = { - team_id: number; - - username: string; - }; - export type TeamsGetMembershipParams = { - team_id: number; - - username: string; - }; - export type TeamsAddOrUpdateMembershipParams = { - team_id: number; - - username: string; - /** - * The role that this user should have in the team. Can be one of: ,* \* `member` - a normal member of the team. ,* \* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description. - */ - role?: "member" | "maintainer"; - }; - export type TeamsRemoveMembershipParams = { - team_id: number; - - username: string; - }; - export type TeamsListPendingInvitationsParams = { - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersGetByUsernameParams = { - username: string; - }; - export type UsersUpdateAuthenticatedParams = { - /** - * The new name of the user. - */ - name?: string; - /** - * The publicly visible email address of the user. - */ - email?: string; - /** - * The new blog URL of the user. - */ - blog?: string; - /** - * The new company of the user. - */ - company?: string; - /** - * The new location of the user. - */ - location?: string; - /** - * The new hiring availability of the user. - */ - hireable?: boolean; - /** - * The new short biography of the user. - */ - bio?: string; - }; - export type UsersGetContextForUserParams = { - username: string; - /** - * Identifies which additional information you'd like to receive about the person's hovercard. Can be `organization`, `repository`, `issue`, `pull_request`. **Required** when using `subject_id`. - */ - subject_type?: "organization" | "repository" | "issue" | "pull_request"; - /** - * Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. - */ - subject_id?: string; - }; - export type UsersListParams = { - /** - * The integer ID of the last User that you've seen. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersCheckBlockedParams = { - username: string; - }; - export type UsersBlockParams = { - username: string; - }; - export type UsersUnblockParams = { - username: string; - }; - export type UsersListEmailsParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersListPublicEmailsParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersAddEmailsParams = { - /** - * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; - }; - export type UsersDeleteEmailsParams = { - /** - * Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; - }; - export type UsersTogglePrimaryEmailVisibilityParams = { - /** - * Specify the _primary_ email address that needs a visibility change. - */ - email: string; - /** - * Use `public` to enable an authenticated user to view the specified email address, or use `private` so this primary email address cannot be seen publicly. - */ - visibility: string; - }; - export type UsersListFollowersForUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersListFollowersForAuthenticatedUserParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersListFollowingForUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersListFollowingForAuthenticatedUserParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersCheckFollowingParams = { - username: string; - }; - export type UsersCheckFollowingForUserParams = { - username: string; - - target_user: string; - }; - export type UsersFollowParams = { - username: string; - }; - export type UsersUnfollowParams = { - username: string; - }; - export type UsersListPublicKeysForUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersListPublicKeysParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersGetPublicKeyParams = { - key_id: number; - }; - export type UsersCreatePublicKeyParams = { - /** - * A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air". - */ - title?: string; - /** - * The public SSH key to add to your GitHub account. See "[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)" for guidance on how to create a public SSH key. - */ - key?: string; - }; - export type UsersDeletePublicKeyParams = { - key_id: number; - }; - export type UsersListGpgKeysForUserParams = { - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersListGpgKeysParams = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; - }; - export type UsersGetGpgKeyParams = { - gpg_key_id: number; - }; - export type UsersCreateGpgKeyParams = { - /** - * Your GPG key, generated in ASCII-armored format. See "[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)" for help creating a GPG key. - */ - armored_public_key?: string; - }; - export type UsersDeleteGpgKeyParams = { - gpg_key_id: number; - }; - export type ChecksCreateParamsOutput = { - title: string; - summary: string; - text?: string; - annotations?: ChecksCreateParamsOutputAnnotations[]; - images?: ChecksCreateParamsOutputImages[]; - }; - export type ChecksCreateParamsOutputAnnotations = { - path: string; - start_line: number; - end_line: number; - start_column?: number; - end_column?: number; - annotation_level: "notice" | "warning" | "failure"; - message: string; - title?: string; - raw_details?: string; - }; - export type ChecksCreateParamsOutputImages = { - alt: string; - image_url: string; - caption?: string; - }; - export type ChecksCreateParamsActions = { - label: string; - description: string; - identifier: string; - }; - export type ChecksUpdateParamsOutput = { - title?: string; - summary: string; - text?: string; - annotations?: ChecksUpdateParamsOutputAnnotations[]; - images?: ChecksUpdateParamsOutputImages[]; - }; - export type ChecksUpdateParamsOutputAnnotations = { - path: string; - start_line: number; - end_line: number; - start_column?: number; - end_column?: number; - annotation_level: "notice" | "warning" | "failure"; - message: string; - title?: string; - raw_details?: string; - }; - export type ChecksUpdateParamsOutputImages = { - alt: string; - image_url: string; - caption?: string; - }; - export type ChecksUpdateParamsActions = { - label: string; - description: string; - identifier: string; - }; - export type ChecksSetSuitesPreferencesParamsAutoTriggerChecks = { - app_id: number; - setting: boolean; - }; - export type GistsCreateParamsFiles = { - content?: string; - }; - export type GistsUpdateParamsFiles = { - content?: string; - filename?: string; - }; - export type GitCreateCommitParamsCommitter = {}; - export type GitCreateCommitParamsAuthor = {}; - export type GitCreateTagParamsTagger = { - name?: string; - email?: string; - date?: string; - }; - export type GitCreateTreeParamsTree = { - path?: string; - mode?: "100644" | "100755" | "040000" | "160000" | "120000"; - type?: "blob" | "tree" | "commit"; - sha?: string; - content?: string; - }; - export type OrgsCreateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; - }; - export type OrgsUpdateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; - }; - export type PullsCreateReviewParamsComments = { - path: string; - position: number; - body: string; - }; - export type ReposUpdateBranchProtectionParamsRequiredStatusChecks = { - strict: boolean; - contexts: string[]; - }; - export type ReposUpdateBranchProtectionParamsRequiredPullRequestReviews = { - dismissal_restrictions?: ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews?: boolean; - require_code_owner_reviews?: boolean; - required_approving_review_count?: number; - }; - export type ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions = { - users?: string[]; - teams?: string[]; - }; - export type ReposUpdateBranchProtectionParamsRestrictions = { - users?: string[]; - teams?: string[]; - }; - export type ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions = { - users?: string[]; - teams?: string[]; - }; - export type ReposCreateFileParamsCommitter = { - name: string; - email: string; - }; - export type ReposCreateFileParamsAuthor = { - name: string; - email: string; - }; - export type ReposUpdateFileParamsCommitter = { - name: string; - email: string; - }; - export type ReposUpdateFileParamsAuthor = { - name: string; - email: string; - }; - export type ReposDeleteFileParamsCommitter = {}; - export type ReposDeleteFileParamsAuthor = {}; - export type ReposUploadReleaseAssetParamsHeaders = { - "content-length": number; - "content-type": string; - }; - export type ReposCreateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; - }; - export type ReposUpdateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; - }; -} - -declare class Github { - constructor(options?: Github.Options); - authenticate(auth: Github.AuthBasic): void; - authenticate(auth: Github.AuthOAuthToken): void; - authenticate(auth: Github.AuthOAuthSecret): void; - authenticate(auth: Github.AuthUserToken): void; - authenticate(auth: Github.AuthJWT): void; - - hook: { - before(name: string, callback: (options: Github.HookOptions) => void): void; - after( - name: string, - callback: ( - response: Github.Response, - options: Github.HookOptions - ) => void - ): void; - error( - name: string, - callback: (error: Github.HookError, options: Github.HookOptions) => void - ): void; - wrap( - name: string, - callback: ( - request: (options: Github.HookOptions) => Promise>, - options: Github.HookOptions - ) => void - ): void; - }; - - static plugin(plugin: Github.Plugin | [Github.Plugin]): Github; - - registerEndpoints(routes: any): void; - - request: any; - - oauthAuthorizations: { - /** - * You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `["repo", "user"]`. - */ - listGrants( - params: Github.OauthAuthorizationsListGrantsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getGrant( - params: Github.OauthAuthorizationsGetGrantParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). - */ - deleteGrant( - params: Github.OauthAuthorizationsDeleteGrantParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listAuthorizations( - params: Github.OauthAuthorizationsListAuthorizationsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - - getAuthorization( - params: Github.OauthAuthorizationsGetAuthorizationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * If you need a small number of personal access tokens, implementing the [web flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/) can be cumbersome. Instead, tokens can be created using the OAuth Authorizations API using [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication). To create personal access tokens for a particular OAuth application, you must provide its client ID and secret, found on the OAuth application settings page, linked from your [OAuth applications listing on GitHub](https://github.com/settings/developers).,* ,* If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them.,* ,* You can also create OAuth tokens through the web UI via the [personal access tokens settings](https://github.com/settings/tokens). Read more about these tokens on the [GitHub Help site](https://help.github.com/articles/creating-an-access-token-for-command-line-use).,* ,* Organizations that enforce SAML SSO require personal access tokens to be whitelisted. Read more about whitelisting tokens on the [GitHub Help site](https://help.github.com/articles/about-identity-and-access-management-with-saml-single-sign-on). - */ - createAuthorization( - params: Github.OauthAuthorizationsCreateAuthorizationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * This method will create a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. - */ - getOrCreateAuthorizationForApp( - params: Github.OauthAuthorizationsGetOrCreateAuthorizationForAppParams, - callback?: Github.Callback - ): Promise; - /** - * This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. - */ - getOrCreateAuthorizationForAppFingerprint( - params: Github.OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintParams, - callback?: Github.Callback - ): Promise; - /** - * You can only send one of these scope keys at a time. - */ - updateAuthorization( - params: Github.OauthAuthorizationsUpdateAuthorizationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - - deleteAuthorization( - params: Github.OauthAuthorizationsDeleteAuthorizationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * OAuth applications can use a special API method for checking OAuth token validity without running afoul of normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`. - */ - checkAuthorization( - params: Github.OauthAuthorizationsCheckAuthorizationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * OAuth applications can use this API method to reset a valid OAuth token without end user involvement. Applications must save the "token" property in the response, because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing it, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`. - */ - resetAuthorization( - params: Github.OauthAuthorizationsResetAuthorizationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`. - */ - revokeAuthorizationForApplication( - params: Github.OauthAuthorizationsRevokeAuthorizationForApplicationParams, - callback?: Github.Callback< - Github.Response< - Github.OauthAuthorizationsRevokeAuthorizationForApplicationResponse - > - > - ): Promise< - Github.Response< - Github.OauthAuthorizationsRevokeAuthorizationForApplicationResponse - > - >; - /** - * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) for this method, where the username is the OAuth application `client_id` and the password is its `client_secret`. You must also provide a valid token as `:token` and the grant for the token's owner will be deleted.,* ,* Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). - */ - revokeGrantForApplication( - params: Github.OauthAuthorizationsRevokeGrantForApplicationParams, - callback?: Github.Callback< - Github.Response< - Github.OauthAuthorizationsRevokeGrantForApplicationResponse - > - > - ): Promise< - Github.Response< - Github.OauthAuthorizationsRevokeGrantForApplicationResponse - > - >; - }; - activity: { - /** - * We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago. - */ - listPublicEvents( - params: Github.ActivityListPublicEventsParams, - callback?: Github.Callback - ): Promise; - - listRepoEvents( - params: Github.ActivityListRepoEventsParams, - callback?: Github.Callback - ): Promise; - - listPublicEventsForRepoNetwork( - params: Github.ActivityListPublicEventsForRepoNetworkParams, - callback?: Github.Callback - ): Promise; - - listPublicEventsForOrg( - params: Github.ActivityListPublicEventsForOrgParams, - callback?: Github.Callback - ): Promise; - /** - * These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events. - */ - listReceivedEventsForUser( - params: Github.ActivityListReceivedEventsForUserParams, - callback?: Github.Callback - ): Promise; - - listReceivedPublicEventsForUser( - params: Github.ActivityListReceivedPublicEventsForUserParams, - callback?: Github.Callback - ): Promise; - /** - * If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. - */ - listEventsForUser( - params: Github.ActivityListEventsForUserParams, - callback?: Github.Callback - ): Promise; - - listPublicEventsForUser( - params: Github.ActivityListPublicEventsForUserParams, - callback?: Github.Callback - ): Promise; - /** - * This is the user's organization dashboard. You must be authenticated as the user to view this. - */ - listEventsForOrg( - params: Github.ActivityListEventsForOrgParams, - callback?: Github.Callback - ): Promise; - /** - * GitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:,* ,* * **Timeline**: The GitHub global public timeline,* * **User**: The public timeline for any user, using [URI template](https://developer.github.com/v3/#hypermedia),* * **Current user public**: The public timeline for the authenticated user,* * **Current user**: The private timeline for the authenticated user,* * **Current user actor**: The private timeline for activity created by the authenticated user,* * **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.,* * **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.,* ,* **Note**: Private feeds are only returned when [authenticating via Basic Auth](https://developer.github.com/v3/#basic-authentication) since current feed URIs use the older, non revocable auth tokens. - */ - listFeeds( - params: Github.EmptyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List all notifications for the current user, sorted by most recently updated. - */ - listNotifications( - params: Github.ActivityListNotificationsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List all notifications for the current user. - */ - listNotificationsForRepo( - params: Github.ActivityListNotificationsForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Marking a notification as "read" removes it from the [default view on GitHub](https://github.com/notifications). - */ - markAsRead( - params: Github.ActivityMarkAsReadParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Marking all notifications in a repository as "read" removes them from the [default view on GitHub](https://github.com/notifications). - */ - markNotificationsAsReadForRepo( - params: Github.ActivityMarkNotificationsAsReadForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - - getThread( - params: Github.ActivityGetThreadParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - markThreadAsRead( - params: Github.ActivityMarkThreadAsReadParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * This checks to see if the current user is subscribed to a thread. You can also [get a Repository subscription](https://developer.github.com/v3/activity/watching/#get-a-repository-subscription).,* ,* Note that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread. - */ - getThreadSubscription( - params: Github.ActivityGetThreadSubscriptionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * This lets you subscribe or unsubscribe from a conversation. - */ - setThreadSubscription( - params: Github.ActivitySetThreadSubscriptionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Mutes all future notifications for a conversation until you comment on the thread or get **@mention**ed. - */ - deleteThreadSubscription( - params: Github.ActivityDeleteThreadSubscriptionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - listStargazersForRepo( - params: Github.ActivityListStargazersForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - listReposStarredByUser( - params: Github.ActivityListReposStarredByUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - listReposStarredByAuthenticatedUser( - params: Github.ActivityListReposStarredByAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response< - Github.ActivityListReposStarredByAuthenticatedUserResponse - > - > - ): Promise< - Github.Response< - Github.ActivityListReposStarredByAuthenticatedUserResponse - > - >; - /** - * Requires for the user to be authenticated. - */ - checkStarringRepo( - params: Github.ActivityCheckStarringRepoParams, - callback?: Github.Callback - ): Promise; - /** - * Requires for the user to be authenticated.,* ,* Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - starRepo( - params: Github.ActivityStarRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Requires for the user to be authenticated. - */ - unstarRepo( - params: Github.ActivityUnstarRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listWatchersForRepo( - params: Github.ActivityListWatchersForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listReposWatchedByUser( - params: Github.ActivityListReposWatchedByUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listWatchedReposForAuthenticatedUser( - params: Github.ActivityListWatchedReposForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response< - Github.ActivityListWatchedReposForAuthenticatedUserResponse - > - > - ): Promise< - Github.Response< - Github.ActivityListWatchedReposForAuthenticatedUserResponse - > - >; - - getRepoSubscription( - params: Github.ActivityGetRepoSubscriptionParams, - callback?: Github.Callback - ): Promise; - /** - * If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](#delete-a-repository-subscription) completely. - */ - setRepoSubscription( - params: Github.ActivitySetRepoSubscriptionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](#set-a-repository-subscription). - */ - deleteRepoSubscription( - params: Github.ActivityDeleteRepoSubscriptionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - checks: { - /** - * Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs. - */ - create( - params: Github.ChecksCreateParams, - callback?: Github.Callback> - ): Promise>; - /** - * Updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs. - */ - update( - params: Github.ChecksUpdateParams, - callback?: Github.Callback> - ): Promise>; - /** - * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. - */ - listForRef( - params: Github.ChecksListForRefParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. - */ - listForSuite( - params: Github.ChecksListForSuiteParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. - */ - get( - params: Github.ChecksGetParams, - callback?: Github.Callback> - ): Promise>; - /** - * Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. - */ - listAnnotations( - params: Github.ChecksListAnnotationsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. - */ - getSuite( - params: Github.ChecksGetSuiteParams, - callback?: Github.Callback> - ): Promise>; - /** - * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. - */ - listSuitesForRef( - params: Github.ChecksListSuitesForRefParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Changes the default automatic flow when creating check suites. By default, the CheckSuiteEvent is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://developer.github.com/v3/checks/suites/#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites. - */ - setSuitesPreferences( - params: Github.ChecksSetSuitesPreferencesParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * By default, check suites are automatically created when you create a [check run](https://developer.github.com/v3/checks/runs/). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Set preferences for check suites on a repository](https://developer.github.com/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository)". Your GitHub App must have the `checks:write` permission to create check suites. - */ - createSuite( - params: Github.ChecksCreateSuiteParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://developer.github.com/v3/activity/events/types/#checkrunevent) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.,* ,* To rerequest a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository. - */ - rerequestSuite( - params: Github.ChecksRerequestSuiteParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - gists: { - listPublicForUser( - params: Github.GistsListPublicForUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - list( - params: Github.GistsListParams, - callback?: Github.Callback> - ): Promise>; - /** - * List all public gists sorted by most recently updated to least recently updated.,* ,* Note: With [pagination](https://developer.github.com/v3/#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. - */ - listPublic( - params: Github.GistsListPublicParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List the authenticated user's starred gists: - */ - listStarred( - params: Github.GistsListStarredParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - get( - params: Github.GistsGetParams, - callback?: Github.Callback> - ): Promise>; - - getRevision( - params: Github.GistsGetRevisionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Allows you to add a new gist with one or more files.,* ,* **Note:** Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally. - */ - create( - params: Github.GistsCreateParams, - callback?: Github.Callback> - ): Promise>; - /** - * Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged. - */ - update( - params: Github.GistsUpdateParams, - callback?: Github.Callback> - ): Promise>; - - listCommits( - params: Github.GistsListCommitsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - star( - params: Github.GistsStarParams, - callback?: Github.Callback> - ): Promise>; - - unstar( - params: Github.GistsUnstarParams, - callback?: Github.Callback> - ): Promise>; - - checkIsStarred( - params: Github.GistsCheckIsStarredParams, - callback?: Github.Callback - ): Promise; - /** - * **Note**: This was previously `/gists/:gist_id/fork`. - */ - fork( - params: Github.GistsForkParams, - callback?: Github.Callback> - ): Promise>; - - listForks( - params: Github.GistsListForksParams, - callback?: Github.Callback> - ): Promise>; - - delete( - params: Github.GistsDeleteParams, - callback?: Github.Callback> - ): Promise>; - - listComments( - params: Github.GistsListCommentsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getComment( - params: Github.GistsGetCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - createComment( - params: Github.GistsCreateCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - updateComment( - params: Github.GistsUpdateCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteComment( - params: Github.GistsDeleteCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - git: { - /** - * The `content` in the response will always be Base64 encoded.,* ,* _Note_: This API supports blobs up to 100 megabytes in size. - */ - getBlob( - params: Github.GitGetBlobParams, - callback?: Github.Callback> - ): Promise>; - - createBlob( - params: Github.GitCreateBlobParams, - callback?: Github.Callback> - ): Promise>; - /** - * Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). - */ - getCommit( - params: Github.GitGetCommitParams, - callback?: Github.Callback> - ): Promise>; - /** - * Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).,* ,* The `committer` section is optional and will be filled with the `author` data if omitted. If the `author` section is omitted, it will be filled in with the authenticated user's information and the current date.,* ,* Both the `author` and `committer` parameters have the same keys:,* ,* | name | type | description |,* | ----- | ------ | ----------------------------------------------------------------------------------------------------------------------- |,* | name | string | The name of the author (or committer) of the commit |,* | email | string | The email of the author (or committer) of the commit |,* | date | string | Indicates when this commit was authored (or committed). This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. |,* ,* You can also provide an optional string `signature` parameter. This value will be added to the `gpgsig` header of the created commit. For a commit signature to be verifiable by Git or GitHub, it must be an ASCII-armored detached PGP signature over the string commit as it would be written to the object database.,* ,* **Note**: To pass a `signature` parameter, you need to first manually create a valid PGP signature, which can be complicated. You may find it easier to [use the command line](https://git-scm.com/book/id/v2/Git-Tools-Signing-Your-Work) to create signed commits.,* ,* In this example, the payload that the signature is over would have been:,* ,* - */ - createCommit( - params: Github.GitCreateCommitParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Returns a branch or tag reference. Other than the [REST API](https://developer.github.com/v3/git/refs/#get-a-reference) it always returns a single reference. If the REST API returns with an array then the method responds with an error. - */ - getRef( - params: Github.GitGetRefParams, - callback?: Github.Callback - ): Promise; - /** - * This will return an array of all the references on the system, including things like notes and stashes if they exist on the server - */ - listRefs( - params: Github.GitListRefsParams, - callback?: Github.Callback - ): Promise; - /** - * Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches. - */ - createRef( - params: Github.GitCreateRefParams, - callback?: Github.Callback> - ): Promise>; - - updateRef( - params: Github.GitUpdateRefParams, - callback?: Github.Callback> - ): Promise>; - /** - * Example: Deleting a branch:,* ,* ```,* DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a,* ```,* ,* Example: Deleting a tag:,* ,* ```,* DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0,* ``` - */ - deleteRef( - params: Github.GitDeleteRefParams, - callback?: Github.Callback> - ): Promise>; - - getTag( - params: Github.GitGetTagParams, - callback?: Github.Callback> - ): Promise>; - /** - * Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://developer.github.com/v3/git/refs/#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://developer.github.com/v3/git/refs/#create-a-reference) the tag reference - this call would be unnecessary. - */ - createTag( - params: Github.GitCreateTagParams, - callback?: Github.Callback> - ): Promise>; - /** - * If `truncated` in the response is `true`, the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, omit the `recursive` parameter, and fetch one sub-tree at a time. If you need to fetch even more items, you can clone the repository and iterate over the Git data locally. - */ - getTree( - params: Github.GitGetTreeParams, - callback?: Github.Callback - ): Promise; - /** - * The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out. - */ - createTree( - params: Github.GitCreateTreeParams, - callback?: Github.Callback> - ): Promise>; - }; - apps: { - /** - * **Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).,* ,* If the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - */ - getBySlug( - params: Github.AppsGetBySlugParams, - callback?: Github.Callback> - ): Promise>; - /** - * Returns the GitHub App associated with the authentication credentials used.,* ,* You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getAuthenticated( - params: Github.EmptyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.,* ,* The permissions the installation has are included under the `permissions` key. - */ - listInstallations( - params: Github.AppsListInstallationsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getInstallation( - params: Github.AppsGetInstallationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists installations in a repository that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.,* ,* You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.,* ,* The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.,* ,* The permissions the installation has are included under the `permissions` key. - */ - listInstallationsForAuthenticatedUser( - params: Github.AppsListInstallationsForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response< - Github.AppsListInstallationsForAuthenticatedUserResponse - > - > - ): Promise< - Github.Response - >; - /** - * Creates an access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token.,* ,* You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - createInstallationToken( - params: Github.AppsCreateInstallationTokenParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Enables an authenticated GitHub App to find the organization's installation information.,* ,* You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - findOrgInstallation( - params: Github.AppsFindOrgInstallationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.,* ,* You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - findRepoInstallation( - params: Github.AppsFindRepoInstallationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Enables an authenticated GitHub App to find the user’s installation information.,* ,* You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - findUserInstallation( - params: Github.AppsFindUserInstallationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://developer.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. - */ - createFromManifest( - params: Github.AppsCreateFromManifestParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Creates an attachment under a content reference (URL) in the body or comment of an issue or pull request. Use the `id` of the content reference from the [`content_reference` event](https://developer.github.com/v3/activity/events/types/#contentreferenceevent) to create an attachment. See "[Using content attachments](https://developer.github.com/apps/using-content-attachments/)" for details about content attachments.,* ,* You must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.,* ,* This example creates a content attachment for the domain `https://errors.ai/`. - */ - createContentAttachment( - params: Github.AppsCreateContentAttachmentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.,* ,* The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.,* ,* You must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - */ - listRepos( - params: Github.AppsListReposParams, - callback?: Github.Callback> - ): Promise>; - /** - * List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.,* ,* The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.,* ,* You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.,* ,* The access the user has to each repository is included in the hash under the `permissions` key. - */ - listInstallationReposForAuthenticatedUser( - params: Github.AppsListInstallationReposForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response< - Github.AppsListInstallationReposForAuthenticatedUserResponse - > - > - ): Promise< - Github.Response< - Github.AppsListInstallationReposForAuthenticatedUserResponse - > - >; - /** - * Add a single repository to an installation. The authenticated user must have admin access to the repository.,* ,* You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/v3/auth/#basic-authentication) to access this endpoint. - */ - addRepoToInstallation( - params: Github.AppsAddRepoToInstallationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Remove a single repository from an installation. The authenticated user must have admin access to the repository.,* ,* You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/v3/auth/#basic-authentication) to access this endpoint. - */ - removeRepoFromInstallation( - params: Github.AppsRemoveRepoFromInstallationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listPlans( - params: Github.AppsListPlansParams, - callback?: Github.Callback> - ): Promise>; - /** - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listPlansStubbed( - params: Github.AppsListPlansStubbedParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Returns any accounts associated with a plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.,* ,* GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listAccountsUserOrOrgOnPlan( - params: Github.AppsListAccountsUserOrOrgOnPlanParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Returns any accounts associated with a plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.,* ,* GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listAccountsUserOrOrgOnPlanStubbed( - params: Github.AppsListAccountsUserOrOrgOnPlanStubbedParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.,* ,* GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - checkAccountIsAssociatedWithAny( - params: Github.AppsCheckAccountIsAssociatedWithAnyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.,* ,* GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - checkAccountIsAssociatedWithAnyStubbed( - params: Github.AppsCheckAccountIsAssociatedWithAnyStubbedParams, - callback?: Github.Callback< - Github.Response< - Github.AppsCheckAccountIsAssociatedWithAnyStubbedResponse - > - > - ): Promise< - Github.Response - >; - /** - * Returns only active subscriptions. You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/). - */ - listMarketplacePurchasesForAuthenticatedUser( - params: Github.AppsListMarketplacePurchasesForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response< - Github.AppsListMarketplacePurchasesForAuthenticatedUserResponse - > - > - ): Promise< - Github.Response< - Github.AppsListMarketplacePurchasesForAuthenticatedUserResponse - > - >; - /** - * Returns only active subscriptions. You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/). - */ - listMarketplacePurchasesForAuthenticatedUserStubbed( - params: Github.AppsListMarketplacePurchasesForAuthenticatedUserStubbedParams, - callback?: Github.Callback< - Github.Response< - Github.AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponse - > - > - ): Promise< - Github.Response< - Github.AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponse - > - >; - }; - issues: { - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.,* ,* Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint.,* ,* - */ - list( - params: Github.IssuesListParams, - callback?: Github.Callback> - ): Promise>; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.,* ,* Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint.,* ,* - */ - listForAuthenticatedUser( - params: Github.IssuesListForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.,* ,* Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint.,* ,* - */ - listForOrg( - params: Github.IssuesListForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.,* ,* Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint.,* ,* - */ - listForRepo( - params: Github.IssuesListForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * The API returns a [`301 Moved Permanently` status](https://developer.github.com/v3/#http-redirects) if the issue was [transferred](https://help.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API returns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe to the [`issues`](https://developer.github.com/v3/activity/events/types/#issuesevent) webhook.,* ,* **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.,* ,* Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint.,* ,* - */ - get( - params: Github.IssuesGetParams, - callback?: Github.Callback> - ): Promise>; - /** - * Any user with pull access to a repository can create an issue. - */ - create( - params: Github.IssuesCreateParams, - callback?: Github.Callback> - ): Promise>; - /** - * Issue owners and users with push access can edit an issue. - */ - update( - params: Github.IssuesUpdateParams, - callback?: Github.Callback> - ): Promise>; - /** - * Users with push access can lock an issue or pull request's conversation.,* ,* Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - lock( - params: Github.IssuesLockParams, - callback?: Github.Callback> - ): Promise>; - /** - * Users with push access can unlock an issue's conversation. - */ - unlock( - params: Github.IssuesUnlockParams, - callback?: Github.Callback> - ): Promise>; - /** - * Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. - */ - listAssignees( - params: Github.IssuesListAssigneesParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Checks if a user has permission to be assigned to an issue in this repository.,* ,* If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.,* ,* Otherwise a `404` status code is returned. - */ - checkAssignee( - params: Github.IssuesCheckAssigneeParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.,* ,* This example adds two assignees to the existing `octocat` assignee. - */ - addAssignees( - params: Github.IssuesAddAssigneesParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Removes one or more assignees from an issue.,* ,* This example removes two of three assignees, leaving the `octocat` assignee. - */ - removeAssignees( - params: Github.IssuesRemoveAssigneesParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Issue Comments are ordered by ascending ID.,* ,* - */ - listComments( - params: Github.IssuesListCommentsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * By default, Issue Comments are ordered by ascending ID.,* ,* - */ - listCommentsForRepo( - params: Github.IssuesListCommentsForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getComment( - params: Github.IssuesGetCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - createComment( - params: Github.IssuesCreateCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - updateComment( - params: Github.IssuesUpdateCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteComment( - params: Github.IssuesDeleteCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listEvents( - params: Github.IssuesListEventsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listEventsForRepo( - params: Github.IssuesListEventsForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getEvent( - params: Github.IssuesGetEventParams, - callback?: Github.Callback> - ): Promise>; - - listLabelsForRepo( - params: Github.IssuesListLabelsForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getLabel( - params: Github.IssuesGetLabelParams, - callback?: Github.Callback> - ): Promise>; - - createLabel( - params: Github.IssuesCreateLabelParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - updateLabel( - params: Github.IssuesUpdateLabelParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteLabel( - params: Github.IssuesDeleteLabelParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listLabelsOnIssue( - params: Github.IssuesListLabelsOnIssueParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - addLabels( - params: Github.IssuesAddLabelsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Removes the specified label from the issue, and returns the remaining labels on the issue. - */ - removeLabel( - params: Github.IssuesRemoveLabelParams, - callback?: Github.Callback - ): Promise; - - replaceLabels( - params: Github.IssuesReplaceLabelsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - removeLabels( - params: Github.IssuesRemoveLabelsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listLabelsForMilestone( - params: Github.IssuesListLabelsForMilestoneParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listMilestonesForRepo( - params: Github.IssuesListMilestonesForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getMilestone( - params: Github.IssuesGetMilestoneParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - createMilestone( - params: Github.IssuesCreateMilestoneParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - updateMilestone( - params: Github.IssuesUpdateMilestoneParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteMilestone( - params: Github.IssuesDeleteMilestoneParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listEventsForTimeline( - params: Github.IssuesListEventsForTimelineParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - migrations: { - /** - * Initiates the generation of a migration archive. - */ - startForOrg( - params: Github.MigrationsStartForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists the most recent migrations. - */ - listForOrg( - params: Github.MigrationsListForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Fetches the status of a migration.,* ,* The `state` of a migration can be one of the following values:,* ,* * `pending`, which means the migration hasn't started yet.,* * `exporting`, which means the migration is in progress.,* * `exported`, which means the migration finished successfully.,* * `failed`, which means the migration failed. - */ - getStatusForOrg( - params: Github.MigrationsGetStatusForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Fetches the URL to a migration archive.,* ,* - */ - getArchiveForOrg( - params: Github.MigrationsGetArchiveForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Deletes a previous migration archive. Migration archives are automatically deleted after seven days. - */ - deleteArchiveForOrg( - params: Github.MigrationsDeleteArchiveForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://developer.github.com/v3/repos/#delete-a-repository) when the migration is complete and you no longer need the source data. - */ - unlockRepoForOrg( - params: Github.MigrationsUnlockRepoForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Start a source import to a GitHub repository using GitHub Importer. - */ - startImport( - params: Github.MigrationsStartImportParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * View the progress of an import.,* ,* **Import status**,* ,* This section includes details about the possible values of the `status` field of the Import Progress response.,* ,* An import that does not have errors will progress through these steps:,* ,* * `detecting` - the "detection" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL.,* * `importing` - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import).,* * `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information.,* * `pushing` - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is "Writing objects".,* * `complete` - the import is complete, and the repository is ready on GitHub.,* ,* If there are problems, you will see one of these in the `status` field:,* ,* * `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update Existing Import](#update-existing-import) section.,* * `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Support](https://github.com/contact) for more information.,* * `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update Existing Import](#update-existing-import) section.,* * `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](#cancel-an-import) and [retry](#start-an-import) with the correct URL.,* * `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update Existing Import](#update-existing-import) section.,* ,* **The project_choices field**,* ,* When multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type.,* ,* **Git LFS related fields**,* ,* This section includes details about Git LFS related fields that may be present in the Import Progress response.,* ,* * `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken.,* * `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step.,* * `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository.,* * `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a "Get Large Files" request. - */ - getImportProgress( - params: Github.MigrationsGetImportProgressParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * An import can be updated with credentials or a project choice by passing in the appropriate parameters in this API request. If no parameters are provided, the import will be restarted.,* ,* Some servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress will have the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array. You can select the project to import by providing one of the objects in the `project_choices` array in the update request.,* ,* The following example demonstrates the workflow for updating an import with "project1" as the project choice. Given a `project_choices` array like such:,* ,* To restart an import, no parameters are provided in the update request. - */ - updateImport( - params: Github.MigrationsUpdateImportParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot `.,* ,* This API method and the "Map a commit author" method allow you to provide correct Git author information. - */ - getCommitAuthors( - params: Github.MigrationsGetCommitAuthorsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Update an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository. - */ - mapCommitAuthor( - params: Github.MigrationsMapCommitAuthorParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability is powered by [Git LFS](https://git-lfs.github.com). You can learn more about our LFS feature and working with large files [on our help site](https://help.github.com/articles/versioning-large-files/). - */ - setLfsPreference( - params: Github.MigrationsSetLfsPreferenceParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List files larger than 100MB found during the import - */ - getLargeFiles( - params: Github.MigrationsGetLargeFilesParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Stop an import for a repository. - */ - cancelImport( - params: Github.MigrationsCancelImportParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Initiates the generation of a user migration archive. - */ - startForAuthenticatedUser( - params: Github.MigrationsStartForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Lists all migrations a user has started. - */ - listForAuthenticatedUser( - params: Github.MigrationsListForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values:,* ,* * `pending` - the migration hasn't started yet.,* * `exporting` - the migration is in progress.,* * `exported` - the migration finished successfully.,* * `failed` - the migration failed.,* ,* Once the migration has been `exported` you can [download the migration archive](#download-a-user-migration-archive). - */ - getStatusForAuthenticatedUser( - params: Github.MigrationsGetStatusForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects:,* ,* * attachments,* * bases,* * commit\_comments,* * issue\_comments,* * issue\_events,* * issues,* * milestones,* * organizations,* * projects,* * protected\_branches,* * pull\_request\_reviews,* * pull\_requests,* * releases,* * repositories,* * review\_comments,* * schema,* * users,* ,* The archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data.,* ,* - */ - getArchiveForAuthenticatedUser( - params: Github.MigrationsGetArchiveForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [Get a list of user migrations](#get-a-list-of-user-migrations) and [Get the status of a user migration](#get-the-status-of-a-user-migration) endpoints, will continue to be available even after an archive is deleted. - */ - deleteArchiveForAuthenticatedUser( - params: Github.MigrationsDeleteArchiveForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response< - Github.MigrationsDeleteArchiveForAuthenticatedUserResponse - > - > - ): Promise< - Github.Response< - Github.MigrationsDeleteArchiveForAuthenticatedUserResponse - > - >; - /** - * Unlocks a repository. You can lock repositories when you [start a user migration](#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://developer.github.com/v3/repos/#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked. - */ - unlockRepoForAuthenticatedUser( - params: Github.MigrationsUnlockRepoForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - }; - codesOfConduct: { - listConductCodes( - params: Github.EmptyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getConductCode( - params: Github.CodesOfConductGetConductCodeParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * This method returns the contents of the repository's code of conduct file, if one is detected. - */ - getForRepo( - params: Github.CodesOfConductGetForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - emojis: { - /** - * Lists all the emojis available to use on GitHub.,* ,* - */ - get( - params: Github.EmptyParams, - callback?: Github.Callback> - ): Promise>; - }; - gitignore: { - /** - * List all templates available to pass as an option when [creating a repository](https://developer.github.com/v3/repos/#create). - */ - listTemplates( - params: Github.EmptyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * The API also allows fetching the source of a single template.,* ,* Use the raw [media type](https://developer.github.com/v3/media/) to get the raw contents.,* ,* - */ - getTemplate( - params: Github.GitignoreGetTemplateParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - licenses: { - list( - params: Github.EmptyParams, - callback?: Github.Callback> - ): Promise>; - - get( - params: Github.LicensesGetParams, - callback?: Github.Callback> - ): Promise>; - /** - * This method returns the contents of the repository's license file, if one is detected.,* ,* Similar to [the repository contents API](https://developer.github.com/v3/repos/contents/#get-contents), this method also supports [custom media types](https://developer.github.com/v3/repos/contents/#custom-media-types) for retrieving the raw license content or rendered license HTML. - */ - getForRepo( - params: Github.LicensesGetForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - markdown: { - render( - params: Github.MarkdownRenderParams, - callback?: Github.Callback> - ): Promise>; - /** - * You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.,* ,* - */ - renderRaw( - params: Github.MarkdownRenderRawParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - meta: { - /** - * This endpoint provides a list of GitHub's IP addresses. For more information, see "[About GitHub's IP addresses](https://help.github.com/articles/about-github-s-ip-addresses/).",* ,* **Note**: We no longer support GitHub Services as of October 1, 2018, and GitHub Services will stop working on January 31, 2019. Please see the [blog post](/changes/2018-10-01-denying-new-github-services) for details. You can use the [Replacing GitHub Services guide](https://developer.github.com/v3/guides/replacing-github-services) to help you update your services to webhooks.,* ,* **Note**: We no longer support GitHub Services as of October 1, 2018, and GitHub Services will stop working on January 31, 2019. Please see the [blog post](/changes/2018-10-01-denying-new-github-services) for details. You can use the [Replacing GitHub Services guide](https://developer.github.com/v3/guides/replacing-github-services) to help you update your services to webhooks. - */ - get( - params: Github.EmptyParams, - callback?: Github.Callback> - ): Promise>; - }; - rateLimit: { - /** - * **Note:** Accessing this endpoint does not count against your REST API rate limit.,* ,* **Understanding your rate limit status**,* ,* The Search API has a [custom rate limit](https://developer.github.com/v3/search/#rate-limit), separate from the rate limit governing the rest of the REST API. The GraphQL API also has a [custom rate limit](/v4/guides/resource-limitations/#rate-limit) that is separate from and calculated differently than rate limits in the REST API.,* ,* For these reasons, the Rate Limit API response categorizes your rate limit. Under `resources`, you'll see three objects:,* ,* * The `core` object provides your rate limit status for all non-search-related resources in the REST API.,* * The `search` object provides your rate limit status for the [Search API](https://developer.github.com/v3/search/).,* * The `graphql` object provides your rate limit status for the [GraphQL API](/v4/).,* ,* For more information on the headers and values in the rate limit response, see "[Rate limiting](https://developer.github.com/v3/#rate-limiting).",* ,* The `rate` object (shown at the bottom of the response above) is deprecated.,* ,* If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. - */ - get( - params: Github.EmptyParams, - callback?: Github.Callback> - ): Promise>; - }; - orgs: { - /** - * List organizations for the authenticated user.,* ,* **OAuth scope requirements**,* ,* This only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response. - */ - listForAuthenticatedUser( - params: Github.OrgsListForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists all organizations, in the order that they were created on GitHub.,* ,* **Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of organizations. - */ - list( - params: Github.OrgsListParams, - callback?: Github.Callback> - ): Promise>; - /** - * List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user.,* ,* This method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List your organizations](#list-your-organizations) API instead. - */ - listForUser( - params: Github.OrgsListForUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/). - */ - get( - params: Github.OrgsGetParams, - callback?: Github.Callback> - ): Promise>; - /** - * **Note:** The new `members_allowed_repository_creation_type` replaces the functionality of `members_can_create_repositories`.,* ,* Setting `members_allowed_repository_creation_type` will override the value of `members_can_create_repositories` in the following ways:,* ,* * Setting `members_allowed_repository_creation_type` to `all` or `private` sets `members_can_create_repositories` to `true`.,* * Setting `members_allowed_repository_creation_type` to `none` sets `members_can_create_repositories` to `false`.,* * If you omit `members_allowed_repository_creation_type`, `members_can_create_repositories` is not modified. - */ - update( - params: Github.OrgsUpdateParams, - callback?: Github.Callback> - ): Promise>; - /** - * List the users blocked by an organization. - */ - listBlockedUsers( - params: Github.OrgsListBlockedUsersParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * If the user is blocked:,* ,* If the user is not blocked: - */ - checkBlockedUser( - params: Github.OrgsCheckBlockedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - blockUser( - params: Github.OrgsBlockUserParams, - callback?: Github.Callback> - ): Promise>; - - unblockUser( - params: Github.OrgsUnblockUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned.,* ,* - */ - listMembers( - params: Github.OrgsListMembersParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Check if a user is, publicly or privately, a member of the organization. - */ - checkMembership( - params: Github.OrgsCheckMembershipParams, - callback?: Github.Callback - ): Promise; - /** - * Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. - */ - removeMember( - params: Github.OrgsRemoveMemberParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Members of an organization can choose to have their membership publicized or not. - */ - listPublicMembers( - params: Github.OrgsListPublicMembersParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - checkPublicMembership( - params: Github.OrgsCheckPublicMembershipParams, - callback?: Github.Callback - ): Promise; - /** - * The user can publicize their own membership. (A user cannot publicize the membership for another user.),* ,* Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - publicizeMembership( - params: Github.OrgsPublicizeMembershipParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - concealMembership( - params: Github.OrgsConcealMembershipParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * In order to get a user's membership with an organization, the authenticated user must be an organization member. - */ - getMembership( - params: Github.OrgsGetMembershipParams, - callback?: Github.Callback - ): Promise; - /** - * Only authenticated organization owners can add a member to the organization or update the member's role.,* ,* * If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](#get-organization-membership) will be `pending` until they accept the invitation.,* ,* * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent.,* ,* **Rate limits**,* ,* To prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period. - */ - addOrUpdateMembership( - params: Github.OrgsAddOrUpdateMembershipParams, - callback?: Github.Callback - ): Promise; - /** - * In order to remove a user's membership with an organization, the authenticated user must be an organization owner.,* ,* If the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases. - */ - removeMembership( - params: Github.OrgsRemoveMembershipParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner. - */ - listInvitationTeams( - params: Github.OrgsListInvitationTeamsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - */ - listPendingInvitations( - params: Github.OrgsListPendingInvitationsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner. - */ - createInvitation( - params: Github.OrgsCreateInvitationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listMemberships( - params: Github.OrgsListMembershipsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getMembershipForAuthenticatedUser( - params: Github.OrgsGetMembershipForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - - updateMembership( - params: Github.OrgsUpdateMembershipParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List all users who are outside collaborators of an organization.,* ,* - */ - listOutsideCollaborators( - params: Github.OrgsListOutsideCollaboratorsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Removing a user from this list will remove them from all the organization's repositories. - */ - removeOutsideCollaborator( - params: Github.OrgsRemoveOutsideCollaboratorParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see "[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)". - */ - convertMemberToOutsideCollaborator( - params: Github.OrgsConvertMemberToOutsideCollaboratorParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - - listHooks( - params: Github.OrgsListHooksParams, - callback?: Github.Callback> - ): Promise>; - - getHook( - params: Github.OrgsGetHookParams, - callback?: Github.Callback> - ): Promise>; - /** - * Here's how you can create a hook that posts payloads in JSON format: - */ - createHook( - params: Github.OrgsCreateHookParams, - callback?: Github.Callback> - ): Promise>; - - updateHook( - params: Github.OrgsUpdateHookParams, - callback?: Github.Callback> - ): Promise>; - /** - * This will trigger a [ping event](https://developer.github.com/webhooks/#ping-event) to be sent to the hook. - */ - pingHook( - params: Github.OrgsPingHookParams, - callback?: Github.Callback> - ): Promise>; - - deleteHook( - params: Github.OrgsDeleteHookParams, - callback?: Github.Callback> - ): Promise>; - }; - projects: { - /** - * **Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token. - */ - listForRepo( - params: Github.ProjectsListForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token. - */ - listForOrg( - params: Github.ProjectsListForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token. - */ - get( - params: Github.ProjectsGetParams, - callback?: Github.Callback> - ): Promise>; - /** - * **Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token. - */ - createForRepo( - params: Github.ProjectsCreateForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token. - */ - createForOrg( - params: Github.ProjectsCreateForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note**: The status code may also be `401` or `410`, depending on the scope of the authenticating token. - */ - update( - params: Github.ProjectsUpdateParams, - callback?: Github.Callback> - ): Promise>; - - delete( - params: Github.ProjectsDeleteParams, - callback?: Github.Callback - ): Promise; - - listCards( - params: Github.ProjectsListCardsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getCard( - params: Github.ProjectsGetCardParams, - callback?: Github.Callback - ): Promise; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.,* ,* Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - createCard( - params: Github.ProjectsCreateCardParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - updateCard( - params: Github.ProjectsUpdateCardParams, - callback?: Github.Callback - ): Promise; - - deleteCard( - params: Github.ProjectsDeleteCardParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - moveCard( - params: Github.ProjectsMoveCardParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators. - */ - listCollaborators( - params: Github.ProjectsListCollaboratorsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level. - */ - reviewUserPermissionLevel( - params: Github.ProjectsReviewUserPermissionLevelParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Adds a collaborator to a an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator. - */ - addCollaborator( - params: Github.ProjectsAddCollaboratorParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator. - */ - removeCollaborator( - params: Github.ProjectsRemoveCollaboratorParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listColumns( - params: Github.ProjectsListColumnsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getColumn( - params: Github.ProjectsGetColumnParams, - callback?: Github.Callback - ): Promise; - - createColumn( - params: Github.ProjectsCreateColumnParams, - callback?: Github.Callback - ): Promise; - - updateColumn( - params: Github.ProjectsUpdateColumnParams, - callback?: Github.Callback - ): Promise; - - deleteColumn( - params: Github.ProjectsDeleteColumnParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - moveColumn( - params: Github.ProjectsMoveColumnParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - pulls: { - list( - params: Github.PullsListParams, - callback?: Github.Callback> - ): Promise>; - /** - * Lists details of a pull request by providing its number.,* ,* When you get, [create](https://developer.github.com/v3/pulls/#create-a-pull-request), or [edit](https://developer.github.com/v3/pulls/#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see "[Checking mergeability of pull requests](https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests)".,* ,* The value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit.,* ,* The value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request:,* ,* * If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit.,* * If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch.,* * If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to.,* ,* Pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. - */ - get( - params: Github.PullsGetParams, - callback?: Github.Callback> - ): Promise>; - /** - * **Note:** To open a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open a pull request. - */ - create( - params: Github.PullsCreateParams, - callback?: Github.Callback> - ): Promise>; - /** - * **Note:** To open a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open a pull request. - */ - createFromIssue( - params: Github.PullsCreateFromIssueParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note:** To open a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open a pull request. - */ - update( - params: Github.PullsUpdateParams, - callback?: Github.Callback> - ): Promise>; - /** - * Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [Commit List API](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository). - */ - listCommits( - params: Github.PullsListCommitsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note:** The response includes a maximum of 300 files. - */ - listFiles( - params: Github.PullsListFilesParams, - callback?: Github.Callback> - ): Promise>; - - checkIfMerged( - params: Github.PullsCheckIfMergedParams, - callback?: Github.Callback - ): Promise; - - merge( - params: Github.PullsMergeParams, - callback?: Github.Callback - ): Promise; - /** - * The list of reviews returns in chronological order. - */ - listReviews( - params: Github.PullsListReviewsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getReview( - params: Github.PullsGetReviewParams, - callback?: Github.Callback> - ): Promise>; - - deletePendingReview( - params: Github.PullsDeletePendingReviewParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getCommentsForReview( - params: Github.PullsGetCommentsForReviewParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) endpoint.,* ,* The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. - */ - createReview( - params: Github.PullsCreateReviewParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - submitReview( - params: Github.PullsSubmitReviewParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note:** To dismiss a pull request review on a [protected branch](https://developer.github.com/v3/repos/branches/), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews. - */ - dismissReview( - params: Github.PullsDismissReviewParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * By default, review comments are ordered by ascending ID.,* ,* - */ - listComments( - params: Github.PullsListCommentsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * By default, review comments are ordered by ascending ID.,* ,* - */ - listCommentsForRepo( - params: Github.PullsListCommentsForRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getComment( - params: Github.PullsGetCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) endpoint.,* ,* The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. - */ - createComment( - params: Github.PullsCreateCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) endpoint.,* ,* The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. - */ - createCommentReply( - params: Github.PullsCreateCommentReplyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - updateComment( - params: Github.PullsUpdateCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteComment( - params: Github.PullsDeleteCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listReviewRequests( - params: Github.PullsListReviewRequestsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - createReviewRequest( - params: Github.PullsCreateReviewRequestParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteReviewRequest( - params: Github.PullsDeleteReviewRequestParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - reactions: { - /** - * List the reactions to a [commit comment](https://developer.github.com/v3/repos/comments/). - */ - listForCommitComment( - params: Github.ReactionsListForCommitCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Create a reaction to a [commit comment](https://developer.github.com/v3/repos/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment. - */ - createForCommitComment( - params: Github.ReactionsCreateForCommitCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List the reactions to an [issue](https://developer.github.com/v3/issues/). - */ - listForIssue( - params: Github.ReactionsListForIssueParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Create a reaction to an [issue](https://developer.github.com/v3/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue. - */ - createForIssue( - params: Github.ReactionsCreateForIssueParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List the reactions to an [issue comment](https://developer.github.com/v3/issues/comments/). - */ - listForIssueComment( - params: Github.ReactionsListForIssueCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Create a reaction to an [issue comment](https://developer.github.com/v3/issues/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment. - */ - createForIssueComment( - params: Github.ReactionsCreateForIssueCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List the reactions to a [pull request review comment](https://developer.github.com/v3/pulls/comments/). - */ - listForPullRequestReviewComment( - params: Github.ReactionsListForPullRequestReviewCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Create a reaction to a [pull request review comment](https://developer.github.com/v3/pulls/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment. - */ - createForPullRequestReviewComment( - params: Github.ReactionsCreateForPullRequestReviewCommentParams, - callback?: Github.Callback< - Github.Response< - Github.ReactionsCreateForPullRequestReviewCommentResponse - > - > - ): Promise< - Github.Response - >; - /** - * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listForTeamDiscussion( - params: Github.ReactionsListForTeamDiscussionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. - */ - createForTeamDiscussion( - params: Github.ReactionsCreateForTeamDiscussionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listForTeamDiscussionComment( - params: Github.ReactionsListForTeamDiscussionCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. - */ - createForTeamDiscussionComment( - params: Github.ReactionsCreateForTeamDiscussionCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). - */ - delete( - params: Github.ReactionsDeleteParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - repos: { - /** - * List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.,* ,* The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. - */ - list( - params: Github.ReposListParams, - callback?: Github.Callback - ): Promise; - /** - * List public repositories for the specified user. - */ - listForUser( - params: Github.ReposListForUserParams, - callback?: Github.Callback - ): Promise; - /** - * List repositories for the specified org. - */ - listForOrg( - params: Github.ReposListForOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * This provides a dump of every public repository, in the order that they were created.,* ,* Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of repositories. - */ - listPublic( - params: Github.ReposListPublicParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).,* ,* **OAuth scope requirements**,* ,* When using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:,* ,* * `public_repo` scope or `repo` scope to create a public repository,* * `repo` scope to create a private repository - */ - createForAuthenticatedUser( - params: Github.ReposCreateForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note**: There are two endpoints for creating a repository: one to create a repository on a user account, and one to create a repository in an organization. The organization endpoint is fully enabled for [GitHub Apps](https://developer.github.com/v3/apps/available-endpoints/), whereas the user endpoint is enabled only for [user-to-server requests](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#user-to-server-requests).,* ,* **OAuth scope requirements**,* ,* When using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:,* ,* * `public_repo` scope or `repo` scope to create a public repository,* * `repo` scope to create a private repository - */ - createInOrg( - params: Github.ReposCreateInOrgParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network. - */ - get( - params: Github.ReposGetParams, - callback?: Github.Callback> - ): Promise>; - /** - * **Note**: To edit a repository's topics, use the [`topics` endpoint](#replace-all-topics-for-a-repository). - */ - update( - params: Github.ReposUpdateParams, - callback?: Github.Callback> - ): Promise>; - - listTopics( - params: Github.ReposListTopicsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - replaceTopics( - params: Github.ReposReplaceTopicsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance.,* ,* GitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information. - */ - listContributors( - params: Github.ReposListContributorsParams, - callback?: Github.Callback - ): Promise; - /** - * Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language. - */ - listLanguages( - params: Github.ReposListLanguagesParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listTeams( - params: Github.ReposListTeamsParams, - callback?: Github.Callback> - ): Promise>; - - listTags( - params: Github.ReposListTagsParams, - callback?: Github.Callback> - ): Promise>; - /** - * Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.,* ,* If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response: - */ - delete( - params: Github.ReposDeleteParams, - callback?: Github.Callback> - ): Promise>; - /** - * A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/). - */ - transfer( - params: Github.ReposTransferParams, - callback?: Github.Callback> - ): Promise>; - - listBranches( - params: Github.ReposListBranchesParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getBranch( - params: Github.ReposGetBranchParams, - callback?: Github.Callback> - ): Promise>; - - getBranchProtection( - params: Github.ReposGetBranchProtectionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Protecting a branch requires admin or owner permissions to the repository.,* ,* **Note**: Passing new arrays of `users` and `teams` replaces their previous values.,* ,* **Note**: The list of users and teams in total is limited to 100 items. - */ - updateBranchProtection( - params: Github.ReposUpdateBranchProtectionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - removeBranchProtection( - params: Github.ReposRemoveBranchProtectionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getProtectedBranchRequiredStatusChecks( - params: Github.ReposGetProtectedBranchRequiredStatusChecksParams, - callback?: Github.Callback< - Github.Response< - Github.ReposGetProtectedBranchRequiredStatusChecksResponse - > - > - ): Promise< - Github.Response< - Github.ReposGetProtectedBranchRequiredStatusChecksResponse - > - >; - /** - * Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled. - */ - updateProtectedBranchRequiredStatusChecks( - params: Github.ReposUpdateProtectedBranchRequiredStatusChecksParams, - callback?: Github.Callback< - Github.Response< - Github.ReposUpdateProtectedBranchRequiredStatusChecksResponse - > - > - ): Promise< - Github.Response< - Github.ReposUpdateProtectedBranchRequiredStatusChecksResponse - > - >; - - removeProtectedBranchRequiredStatusChecks( - params: Github.ReposRemoveProtectedBranchRequiredStatusChecksParams, - callback?: Github.Callback - ): Promise; - - listProtectedBranchRequiredStatusChecksContexts( - params: Github.ReposListProtectedBranchRequiredStatusChecksContextsParams, - callback?: Github.Callback - ): Promise; - - replaceProtectedBranchRequiredStatusChecksContexts( - params: Github.ReposReplaceProtectedBranchRequiredStatusChecksContextsParams, - callback?: Github.Callback< - Github.Response< - Github.ReposReplaceProtectedBranchRequiredStatusChecksContextsResponse - > - > - ): Promise< - Github.Response< - Github.ReposReplaceProtectedBranchRequiredStatusChecksContextsResponse - > - >; - - addProtectedBranchRequiredStatusChecksContexts( - params: Github.ReposAddProtectedBranchRequiredStatusChecksContextsParams, - callback?: Github.Callback< - Github.Response< - Github.ReposAddProtectedBranchRequiredStatusChecksContextsResponse - > - > - ): Promise< - Github.Response< - Github.ReposAddProtectedBranchRequiredStatusChecksContextsResponse - > - >; - - removeProtectedBranchRequiredStatusChecksContexts( - params: Github.ReposRemoveProtectedBranchRequiredStatusChecksContextsParams, - callback?: Github.Callback< - Github.Response< - Github.ReposRemoveProtectedBranchRequiredStatusChecksContextsResponse - > - > - ): Promise< - Github.Response< - Github.ReposRemoveProtectedBranchRequiredStatusChecksContextsResponse - > - >; - - getProtectedBranchPullRequestReviewEnforcement( - params: Github.ReposGetProtectedBranchPullRequestReviewEnforcementParams, - callback?: Github.Callback - ): Promise; - /** - * Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled.,* ,* **Note**: Passing new arrays of `users` and `teams` replaces their previous values. - */ - updateProtectedBranchPullRequestReviewEnforcement( - params: Github.ReposUpdateProtectedBranchPullRequestReviewEnforcementParams, - callback?: Github.Callback< - Github.Response< - Github.ReposUpdateProtectedBranchPullRequestReviewEnforcementResponse - > - > - ): Promise< - Github.Response< - Github.ReposUpdateProtectedBranchPullRequestReviewEnforcementResponse - > - >; - - removeProtectedBranchPullRequestReviewEnforcement( - params: Github.ReposRemoveProtectedBranchPullRequestReviewEnforcementParams, - callback?: Github.Callback - ): Promise; - /** - * When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help.,* ,* **Note**: You must enable branch protection to require signed commits. - */ - getProtectedBranchRequiredSignatures( - params: Github.ReposGetProtectedBranchRequiredSignaturesParams, - callback?: Github.Callback< - Github.Response< - Github.ReposGetProtectedBranchRequiredSignaturesResponse - > - > - ): Promise< - Github.Response - >; - /** - * When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits. - */ - addProtectedBranchRequiredSignatures( - params: Github.ReposAddProtectedBranchRequiredSignaturesParams, - callback?: Github.Callback< - Github.Response< - Github.ReposAddProtectedBranchRequiredSignaturesResponse - > - > - ): Promise< - Github.Response - >; - /** - * When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits. - */ - removeProtectedBranchRequiredSignatures( - params: Github.ReposRemoveProtectedBranchRequiredSignaturesParams, - callback?: Github.Callback - ): Promise; - - getProtectedBranchAdminEnforcement( - params: Github.ReposGetProtectedBranchAdminEnforcementParams, - callback?: Github.Callback - ): Promise; - /** - * Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. - */ - addProtectedBranchAdminEnforcement( - params: Github.ReposAddProtectedBranchAdminEnforcementParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. - */ - removeProtectedBranchAdminEnforcement( - params: Github.ReposRemoveProtectedBranchAdminEnforcementParams, - callback?: Github.Callback - ): Promise; - /** - * **Note**: Teams and users `restrictions` are only available for organization-owned repositories. - */ - getProtectedBranchRestrictions( - params: Github.ReposGetProtectedBranchRestrictionsParams, - callback?: Github.Callback - ): Promise; - /** - * Disables the ability to restrict who can push to this branch. - */ - removeProtectedBranchRestrictions( - params: Github.ReposRemoveProtectedBranchRestrictionsParams, - callback?: Github.Callback - ): Promise; - /** - * Lists the teams who have push access to this branch. If you pass the `hellcat-preview` media type, the list includes child teams. - */ - listProtectedBranchTeamRestrictions( - params: Github.ReposListProtectedBranchTeamRestrictionsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. If you pass the `hellcat-preview` media type, you can include child teams.,* ,* | Type | Description |,* | ------- | ----------------------------------------------------------------------------------------------------------------------------------- |,* | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. | - */ - replaceProtectedBranchTeamRestrictions( - params: Github.ReposReplaceProtectedBranchTeamRestrictionsParams, - callback?: Github.Callback< - Github.Response< - Github.ReposReplaceProtectedBranchTeamRestrictionsResponse - > - > - ): Promise< - Github.Response< - Github.ReposReplaceProtectedBranchTeamRestrictionsResponse - > - >; - /** - * Grants the specified teams push access for this branch. If you pass the `hellcat-preview` media type, you can also give push access to child teams.,* ,* | Type | Description |,* | ------- | ----------------------------------------------------------------------------------------------------------------------------------- |,* | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. | - */ - addProtectedBranchTeamRestrictions( - params: Github.ReposAddProtectedBranchTeamRestrictionsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Removes the ability of a team to push to this branch. If you pass the `hellcat-preview` media type, you can include child teams.,* ,* | Type | Description |,* | ------- | -------------------------------------------------------------------------------------------------------------------------------------------- |,* | `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users and teams in total is limited to 100 items. | - */ - removeProtectedBranchTeamRestrictions( - params: Github.ReposRemoveProtectedBranchTeamRestrictionsParams, - callback?: Github.Callback< - Github.Response< - Github.ReposRemoveProtectedBranchTeamRestrictionsResponse - > - > - ): Promise< - Github.Response - >; - /** - * Lists the people who have push access to this branch. - */ - listProtectedBranchUserRestrictions( - params: Github.ReposListProtectedBranchUserRestrictionsParams, - callback?: Github.Callback - ): Promise; - /** - * Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.,* ,* | Type | Description |,* | ------- | ---------------------------------------------------------------------------------------------------------------------- |,* | `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. | - */ - replaceProtectedBranchUserRestrictions( - params: Github.ReposReplaceProtectedBranchUserRestrictionsParams, - callback?: Github.Callback< - Github.Response< - Github.ReposReplaceProtectedBranchUserRestrictionsResponse - > - > - ): Promise< - Github.Response< - Github.ReposReplaceProtectedBranchUserRestrictionsResponse - > - >; - /** - * Grants the specified people push access for this branch.,* ,* | Type | Description |,* | ------- | ---------------------------------------------------------------------------------------------------------------------- |,* | `array` | Usernames for people who can have push access. **Note**: The list of users and teams in total is limited to 100 items. | - */ - addProtectedBranchUserRestrictions( - params: Github.ReposAddProtectedBranchUserRestrictionsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Removes the ability of a team to push to this branch.,* ,* | Type | Description |,* | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |,* | `array` | Usernames of the people who should no longer have push access. **Note**: The list of users and teams in total is limited to 100 items. | - */ - removeProtectedBranchUserRestrictions( - params: Github.ReposRemoveProtectedBranchUserRestrictionsParams, - callback?: Github.Callback< - Github.Response< - Github.ReposRemoveProtectedBranchUserRestrictionsResponse - > - > - ): Promise< - Github.Response - >; - /** - * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.,* ,* If you pass the `hellcat-preview` media type, team members will include the members of child teams. - */ - listCollaborators( - params: Github.ReposListCollaboratorsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.,* ,* If you pass the `hellcat-preview` media type, team members will include the members of child teams. - */ - checkCollaborator( - params: Github.ReposCheckCollaboratorParams, - callback?: Github.Callback - ): Promise; - /** - * Possible values for the `permission` key: `admin`, `write`, `read`, `none`. - */ - getCollaboratorPermissionLevel( - params: Github.ReposGetCollaboratorPermissionLevelParams, - callback?: Github.Callback - ): Promise; - /** - * Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs).",* ,* The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [repository invitations API endpoints](https://developer.github.com/v3/repos/invitations/).,* ,* **Rate limits**,* ,* To prevent abuse, you are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository. - */ - addCollaborator( - params: Github.ReposAddCollaboratorParams, - callback?: Github.Callback - ): Promise; - - removeCollaborator( - params: Github.ReposRemoveCollaboratorParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Commit Comments use [these custom media types](#custom-media-types). You can read more about the use of media types in the API [here](https://developer.github.com/v3/media/).,* ,* Comments are ordered by ascending ID.,* ,* - */ - listCommitComments( - params: Github.ReposListCommitCommentsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listCommentsForCommit( - params: Github.ReposListCommentsForCommitParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - createCommitComment( - params: Github.ReposCreateCommitCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getCommitComment( - params: Github.ReposGetCommitCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - updateCommitComment( - params: Github.ReposUpdateCommitCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteCommitComment( - params: Github.ReposDeleteCommitCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listCommits( - params: Github.ReposListCommitsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Diffs with binary data will have no 'patch' property. Pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. - */ - getCommit( - params: Github.ReposGetCommitParams, - callback?: Github.Callback> - ): Promise>; - /** - * Users with read access can get the SHA-1 of a commit reference:,* ,* To access the API you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header:,* ,* ,* ,* To check if a remote reference's SHA-1 is the same as your local reference's SHA-1, make a `GET` request and provide the current SHA-1 for the local reference as the ETag.,* ,* The SHA-1 of the commit reference.,* ,* - */ - getCommitRefSha( - params: Github.ReposGetCommitRefShaParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`. For example:,* ,* ```,* GET /repos/:owner/:repo/compare/hubot:branchname...octocat:branchname,* ```,* ,* The response from the API is equivalent to running the `git log base..head` command; however, commits are returned in reverse chronological order.,* ,* Pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.,* ,* **Working with large comparisons**,* ,* The response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [Commit List API](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the range.,* ,* For comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long to generate. You can typically resolve this error by using a smaller commit range. - */ - compareCommits( - params: Github.ReposCompareCommitsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * This endpoint will return all community profile metrics, including an overall health score, repository description, the presence of documentation, detected code of conduct, detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE, README, and CONTRIBUTING files. - */ - retrieveCommunityProfileMetrics( - params: Github.ReposRetrieveCommunityProfileMetricsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * Gets the preferred README for a repository.,* ,* READMEs support [custom media types](#custom-media-types) for retrieving the raw content or rendered HTML. - */ - getReadme( - params: Github.ReposGetReadmeParams, - callback?: Github.Callback> - ): Promise>; - /** - * Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit `:path`, you will receive the contents of all files in the repository.,* ,* Files and symlinks support [a custom media type](#custom-media-types) for retrieving the raw content or rendered HTML (when supported). All content types support [a custom media type](#custom-media-types) to ensure the content is returned in a consistent object format.,* ,* **Note**:,* ,* * To get a repository's contents recursively, you can [recursively get the tree](https://developer.github.com/v3/git/trees/).,* * This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees API](https://developer.github.com/v3/git/trees/#get-a-tree).,* * This API supports files up to 1 megabyte in size.,* ,* The response will be an array of objects, one object for each item in the directory.,* ,* When listing the contents of a directory, submodules have their "type" specified as "file". Logically, the value _should_ be "submodule". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as "submodule".,* ,* If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](#response-if-content-is-a-file)).,* ,* Otherwise, the API responds with an object describing the symlink itself:,* ,* The `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit.,* ,* If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and the github.com URLs (`html_url` and `_links["html"]`) will have null values. - */ - getContents( - params: Github.ReposGetContentsParams, - callback?: Github.Callback - ): Promise; - /** - * Creates a new file in a repository. - */ - createFile( - params: Github.ReposCreateFileParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Updates a file in a repository. - */ - updateFile( - params: Github.ReposUpdateFileParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Deletes a file in a repository.,* ,* The `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.,* ,* You must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.,* ,* Both the `author` and `committer` parameters have the same keys:,* ,* | name | type | description |,* | ----- | ------ | ---------------------------------------------------- |,* | name | string | The name of the author (or committer) of the commit |,* | email | string | The email of the author (or committer) of the commit | - */ - deleteFile( - params: Github.ReposDeleteFileParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Gets a redirect URL to download an archive for a repository. The `:archive_format` can be either `tarball` or `zipball`. The `:ref` must be a valid Git reference. If you omit `:ref`, the repository’s default branch (usually `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request.,* ,* _Note_: For private repositories, these links are temporary and expire after five minutes.,* ,* To follow redirects with curl, use the `-L` switch:,* ,* - */ - getArchiveLink( - params: Github.ReposGetArchiveLinkParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listDeployKeys( - params: Github.ReposListDeployKeysParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getDeployKey( - params: Github.ReposGetDeployKeyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Here's how you can create a read-only deploy key:,* ,* - */ - addDeployKey( - params: Github.ReposAddDeployKeyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - removeDeployKey( - params: Github.ReposRemoveDeployKeyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Simple filtering of deployments is available via query parameters: - */ - listDeployments( - params: Github.ReposListDeploymentsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getDeployment( - params: Github.ReposGetDeploymentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Deployments offer a few configurable parameters with sane defaults.,* ,* The `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them before we merge a pull request.,* ,* The `environment` parameter allows deployments to be issued to different runtime environments. Teams often have multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter makes it easier to track which environments have requested deployments. The default environment is `production`.,* ,* The `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will return a failure response.,* ,* By default, [commit statuses](https://developer.github.com/v3/repos/statuses) for every submitted context must be in a `success` state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do not require any contexts or create any commit statuses, the deployment will always succeed.,* ,* The `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text field that will be passed on when a deployment event is dispatched.,* ,* The `task` parameter is used by the deployment system to allow different execution paths. In the web world this might be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an application with debugging enabled.,* ,* Users with `repo` or `repo_deployment` scopes can create a deployment for a given ref:,* ,* A simple example putting the user and room into the payload to notify back to chat networks.,* ,* A more advanced example specifying required commit statuses and bypassing auto-merging.,* ,* This error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts.,* ,* This error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`. - */ - createDeployment( - params: Github.ReposCreateDeploymentParams, - callback?: Github.Callback - ): Promise; - /** - * Users with pull access can view deployment statuses for a deployment: - */ - listDeploymentStatuses( - params: Github.ReposListDeploymentStatusesParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Users with pull access can view a deployment status for a deployment: - */ - getDeploymentStatus( - params: Github.ReposGetDeploymentStatusParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Users with `push` access can create deployment statuses for a given deployment.,* ,* GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. - */ - createDeploymentStatus( - params: Github.ReposCreateDeploymentStatusParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listDownloads( - params: Github.ReposListDownloadsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - getDownload( - params: Github.ReposGetDownloadParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteDownload( - params: Github.ReposDeleteDownloadParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listForks( - params: Github.ReposListForksParams, - callback?: Github.Callback> - ): Promise>; - /** - * Create a fork for the authenticated user.,* ,* **Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Support](https://github.com/contact). - */ - createFork( - params: Github.ReposCreateForkParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations.,* ,* - */ - listInvitations( - params: Github.ReposListInvitationsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteInvitation( - params: Github.ReposDeleteInvitationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - updateInvitation( - params: Github.ReposUpdateInvitationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * When authenticating as a user, this endpoint will list all currently open repository invitations for that user.,* ,* - */ - listInvitationsForAuthenticatedUser( - params: Github.ReposListInvitationsForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - - acceptInvitation( - params: Github.ReposAcceptInvitationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - declineInvitation( - params: Github.ReposDeclineInvitationParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - merge( - params: Github.ReposMergeParams, - callback?: Github.Callback - ): Promise; - /** - * Responses during the preview period contain two additional fields:,* ,* * `html_url`: The absolute URL (with scheme) to the rendered site. For example, `https://username.github.io`.,* * `source`: Information about the source branch and directory for the rendered site. The source field includes:,* * `branch`: The repo branch for [site source files](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/) For example, _master_ or _gh-pages_.,* * `path`: The repo directory from which the site publishes. Can be either `/` or `/docs`. - */ - getPages( - params: Github.ReposGetPagesParams, - callback?: Github.Callback> - ): Promise>; - - updateInformationAboutPagesSite( - params: Github.ReposUpdateInformationAboutPagesSiteParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - /** - * You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures.,* ,* Build requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes. - */ - requestPageBuild( - params: Github.ReposRequestPageBuildParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listPagesBuilds( - params: Github.ReposListPagesBuildsParams, - callback?: Github.Callback - ): Promise; - - getLatestPagesBuild( - params: Github.ReposGetLatestPagesBuildParams, - callback?: Github.Callback - ): Promise; - - getPagesBuild( - params: Github.ReposGetPagesBuildParams, - callback?: Github.Callback - ): Promise; - /** - * This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://developer.github.com/v3/repos/#list-tags).,* ,* Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. - */ - listReleases( - params: Github.ReposListReleasesParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * **Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://developer.github.com/v3/#hypermedia). - */ - getRelease( - params: Github.ReposGetReleaseParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * View the latest published full release for the repository. Draft releases and prereleases are not returned by this endpoint. - */ - getLatestRelease( - params: Github.ReposGetLatestReleaseParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Get a published release with the specified tag. - */ - getReleaseByTag( - params: Github.ReposGetReleaseByTagParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Users with push access to the repository can create a release. - */ - createRelease( - params: Github.ReposCreateReleaseParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Users with push access to the repository can edit a release. - */ - updateRelease( - params: Github.ReposUpdateReleaseParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Users with push access to the repository can delete a release. - */ - deleteRelease( - params: Github.ReposDeleteReleaseParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listAssetsForRelease( - params: Github.ReposListAssetsForReleaseParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * This endpoint makes use of [a Hypermedia relation](https://developer.github.com/v3/#hypermedia) to determine which URL to access. This endpoint is provided by a URI template in [the release's API response](#get-a-single-release). You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.,* ,* The asset data is expected in its raw binary form, rather than JSON. Everything else about the endpoint is the same as the rest of the API. For example, you'll still need to pass your authentication to be able to upload an asset.,* ,* Send the raw binary content of the asset as the request body.,* ,* This may leave an empty asset with a state of `"new"`. It can be safely deleted. - */ - uploadReleaseAsset( - params: Github.ReposUploadReleaseAssetParams, - callback?: Github.Callback - ): Promise; - /** - * To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://developer.github.com/v3/media/#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response. - */ - getReleaseAsset( - params: Github.ReposGetReleaseAssetParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Users with push access to the repository can edit a release asset. - */ - updateReleaseAsset( - params: Github.ReposUpdateReleaseAssetParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - deleteReleaseAsset( - params: Github.ReposDeleteReleaseAssetParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * * `total` - The Total number of commits authored by the contributor.,* ,* Weekly Hash (`weeks` array):,* ,* * `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).,* * `a` - Number of additions,* * `d` - Number of deletions,* * `c` - Number of commits,* ,* - */ - getContributorsStats( - params: Github.ReposGetContributorsStatsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`.,* ,* - */ - getCommitActivityStats( - params: Github.ReposGetCommitActivityStatsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Returns a weekly aggregate of the number of additions and deletions pushed to a repository.,* ,* - */ - getCodeFrequencyStats( - params: Github.ReposGetCodeFrequencyStatsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`.,* ,* The array order is oldest week (index 0) to most recent week.,* ,* - */ - getParticipationStats( - params: Github.ReposGetParticipationStatsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Each array contains the day number, hour number, and number of commits:,* ,* * `0-6`: Sunday - Saturday,* * `0-23`: Hour of day,* * Number of commits,* ,* For example, `[2, 14, 25]` indicates that there were 25 total commits, during the 2:00pm hour on Tuesdays. All times are based on the time zone of individual commits. - */ - getPunchCardStats( - params: Github.ReposGetPunchCardStatsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Users with push access in a repository can create commit statuses for a given SHA.,* ,* Note: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error. - */ - createStatus( - params: Github.ReposCreateStatusParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.,* ,* This resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`. - */ - listStatusesForRef( - params: Github.ReposListStatusesForRefParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.,* ,* The most recent status for each context is returned, up to 100. This field [paginates](https://developer.github.com/v3/#pagination) if there are over 100 contexts.,* ,* Additionally, a combined `state` is returned. The `state` is one of:,* ,* * **failure** if any of the contexts report as `error` or `failure`,* * **pending** if there are no statuses or a context is `pending`,* * **success** if the latest status for all contexts is `success` - */ - getCombinedStatusForRef( - params: Github.ReposGetCombinedStatusForRefParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Get the top 10 referrers over the last 14 days. - */ - getTopReferrers( - params: Github.ReposGetTopReferrersParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Get the top 10 popular contents over the last 14 days. - */ - getTopPaths( - params: Github.ReposGetTopPathsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. - */ - getViews( - params: Github.ReposGetViewsParams, - callback?: Github.Callback> - ): Promise>; - /** - * Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. - */ - getClones( - params: Github.ReposGetClonesParams, - callback?: Github.Callback> - ): Promise>; - - listHooks( - params: Github.ReposListHooksParams, - callback?: Github.Callback> - ): Promise>; - - getHook( - params: Github.ReposGetHookParams, - callback?: Github.Callback> - ): Promise>; - /** - * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can share the same `config` as long as those webhooks do not have any `events` that overlap.,* ,* **Note**: We no longer support GitHub Services as of October 1, 2018, and GitHub Services will stop working on January 31, 2019. Please see the [blog post](/changes/2018-10-01-denying-new-github-services) for details. You can use the [Replacing GitHub Services guide](https://developer.github.com/v3/guides/replacing-github-services) to help you update your services to webhooks.,* ,* Here's how you can create a hook that posts payloads in JSON format: - */ - createHook( - params: Github.ReposCreateHookParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - updateHook( - params: Github.ReposUpdateHookParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated.,* ,* **Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test` - */ - testPushHook( - params: Github.ReposTestPushHookParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * This will trigger a [ping event](https://developer.github.com/webhooks/#ping-event) to be sent to the hook. - */ - pingHook( - params: Github.ReposPingHookParams, - callback?: Github.Callback> - ): Promise>; - - deleteHook( - params: Github.ReposDeleteHookParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - search: { - /** - * Find repositories via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).,* ,* The `q` search term can also contain any combination of the supported repository search qualifiers as described by the in-browser [repository search documentation](https://help.github.com/articles/searching-for-repositories/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):,* ,* * [`created` or `pushed`](https://help.github.com/articles/searching-for-repositories/#search-by-when-a-repository-was-created-or-last-updated) Filters repositories based on date of creation, or when they were last updated.,* * [`fork`](https://help.github.com/articles/searching-for-repositories/#search-by-number-of-forks) Filters whether forked repositories should be included (`true`) or only forked repositories should be returned (`only`).,* * [`forks`](https://help.github.com/articles/searching-for-repositories/#search-by-number-of-forks) Filters repositories based on the number of forks.,* * [`in`](https://help.github.com/articles/searching-for-repositories) Qualifies which fields are searched. With this qualifier you can restrict the search to just the repository name, description, readme, or any combination of these.,* * [`language`](https://help.github.com/articles/searching-for-repositories/#search-by-language) Searches repositories based on the language they're written in.,* * [`license`](https://help.github.com/articles/searching-for-repositories/#search-by-license) Filters repositories by license or license family, using the [license keyword](https://help.github.com/articles/licensing-a-repository/#searching-github-by-license-type).,* * [`repo` or `user`](https://help.github.com/articles/searching-for-repositories/#search-within-a-users-or-organizations-repositories) Limits searches to a specific repository or user.,* * [`size`](https://help.github.com/articles/searching-for-repositories/#search-by-repository-size) Finds repositories that match a certain size (in kilobytes).,* * [`stars`](https://help.github.com/articles/searching-for-repositories/#search-by-number-of-stars) Searches repositories based on the number of stars.,* * [`topic`](https://help.github.com/articles/classifying-your-repository-with-topics/) Filters repositories based on the specified topic.,* * [`archived`](https://help.github.com/articles/searching-for-repositories/#search-based-on-whether-a-repository-is-archived) Filters whether archived repositories should be included (`true`) or not (`false`).,* ,* Suppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this.,* ,* You can search for multiple topics by adding more `topic:` instances, and including the `mercy-preview` header. For example:,* ,* In this request, we're searching for repositories with the word `tetris` in the name, the description, or the README. We're limiting the results to only find repositories where the primary language is Assembly. We're sorting by stars in descending order, so that the most popular repositories appear first in the search results.,* ,* **Highlighting repository search results**,* ,* You might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:,* ,* This produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.,* ,* When searching for repositories, you can get text match metadata for the **name** and **description** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata).,* ,* Here's an example response: - */ - repos( - params: Github.SearchReposParams, - callback?: Github.Callback - ): Promise; - /** - * Find commits via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).,* ,* **Considerations for commit search**,* ,* Only the _default branch_ is considered. In most cases, this will be the `master` branch.,* ,* The `q` search term can also contain any combination of the supported commit search qualifiers as described by the in-browser [commit search documentation](https://help.github.com/articles/searching-commits/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):,* ,* * [`author`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits authored by a user (based on email settings).,* * [`committer`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits committed by a user (based on email settings).,* * [`author-name`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits by author name.,* * [`committer-name`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits by committer name.,* * [`author-email`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits by author email.,* * [`committer-email`](https://help.github.com/articles/searching-commits#search-by-author-or-committer) Matches commits by committer email.,* * [`author-date`](https://help.github.com/articles/searching-commits#search-by-authored-or-committed-date) Matches commits by author date range.,* * [`committer-date`](https://help.github.com/articles/searching-commits/#search-by-authored-or-committed-date) Matches commits by committer date range.,* * [`merge`](https://help.github.com/articles/searching-commits#filter-merge-commits) `true` filters to merge commits, `false` filters out merge commits.,* * [`hash`](https://help.github.com/articles/searching-commits#search-by-hash) Matches commits by hash.,* * [`parent`](https://help.github.com/articles/searching-commits#search-by-parent) Matches commits that have a particular parent.,* * [`tree`](https://help.github.com/articles/searching-commits#search-by-tree) Matches commits by tree hash.,* * [`is`](https://help.github.com/articles/searching-commits#filter-to-public-or-private-repositories) Matches `public` or `private` repositories.,* * [`user`, `org`, or `repo`](https://help.github.com/articles/searching-commits#search-within-a-users-or-organizations-repositories) Limits searches to a specific user, organization, or repository.,* ,* Suppose you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:,* ,* **Highlighting code search results**,* ,* When searching for commits, you can get text match metadata for the **message** field. See the section on [text match metadata](#text-match-metadata) for full details. - */ - commits( - params: Github.SearchCommitsParams, - callback?: Github.Callback - ): Promise; - /** - * Find file contents via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).,* ,* **Note:** You must [authenticate](https://developer.github.com/v3/#authentication) to search for code across all public repositories.,* ,* **Considerations for code search**,* ,* Due to the complexity of searching code, there are a few restrictions on how searches are performed:,* ,* * Only the _default branch_ is considered. In most cases, this will be the `master` branch.,* * Only files smaller than 384 KB are searchable.,* * You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazing language:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is.,* ,* The `q` search term can also contain any combination of the supported code search qualifiers as described by the in-browser [code search documentation](https://help.github.com/articles/searching-code/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):,* ,* * [`in`](https://help.github.com/articles/searching-code#scope-the-search-fields) Qualifies which fields are searched. With this qualifier you can restrict the search to the file contents (`file`), the file path (`path`), or both.,* * [`language`](https://help.github.com/articles/searching-code#search-by-language) Searches code based on the language it's written in.,* * [`fork`](https://help.github.com/articles/searching-code#search-by-the-number-of-forks-the-parent-repository-has) Specifies that code from forked repositories should be searched (`true`). Repository forks will not be searchable unless the fork has more stars than the parent repository.,* * [`size`](https://help.github.com/articles/searching-code#search-by-the-size-of-the-parent-repository) Finds files that match a certain size (in bytes).,* * [`path`](https://help.github.com/articles/searching-code#search-by-the-location-of-a-file-within-the-repository) Specifies the path prefix that the resulting file must be under.,* * [`filename`](https://help.github.com/articles/searching-code#search-by-filename) Matches files by a substring of the filename.,* * [`extension`](https://help.github.com/articles/searching-code#search-by-the-file-extension) Matches files with a certain extension after a dot.,* * [`user` or `repo`](https://help.github.com/articles/searching-code#search-within-a-users-or-organizations-repositories) Limits searches to a specific user or repository.,* ,* Suppose you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery). Your query would look something like this:,* ,* Here, we're searching for the keyword `addClass` within a file's contents. We're making sure that we're only looking in files where the language is JavaScript. And we're scoping the search to the `repo:jquery/jquery` repository.,* ,* **Highlighting code search results**,* ,* You might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:,* ,* This produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.,* ,* When searching for code, you can get text match metadata for the file **content** and file **path** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata).,* ,* Here's an example response: - */ - code( - params: Github.SearchCodeParams, - callback?: Github.Callback - ): Promise; - /** - * Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).,* ,* The `q` search term can also contain any combination of the supported issue search qualifiers as described by the in-browser [issue search documentation](https://help.github.com/articles/searching-issues/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):,* ,* * [`type`](https://help.github.com/articles/searching-issues#search-issues-or-pull-requests) With this qualifier you can restrict the search to issues (`issue`) or pull request (`pr`) only.,* * [`in`](https://help.github.com/articles/searching-issues#scope-the-search-fields) Qualifies which fields are searched. With this qualifier you can restrict the search to just the title (`title`), body (`body`), comments (`comments`), or any combination of these.,* * [`author`](https://help.github.com/articles/searching-issues#search-by-the-author-of-an-issue-or-pull-request) Finds issues or pull requests created by a certain user.,* * [`assignee`](https://help.github.com/articles/searching-issues#search-by-the-assignee-of-an-issue-or-pull-request) Finds issues or pull requests that are assigned to a certain user.,* * [`mentions`](https://help.github.com/articles/searching-issues#search-by-a-mentioned-user-within-an-issue-or-pull-request) Finds issues or pull requests that mention a certain user.,* * [`commenter`](https://help.github.com/articles/searching-issues#search-by-a-commenter-within-an-issue-or-pull-request) Finds issues or pull requests that a certain user commented on.,* * [`involves`](https://help.github.com/articles/searching-issues#search-by-a-user-thats-involved-within-an-issue-or-pull-request) Finds issues or pull requests that were either created by a certain user, assigned to that user, mention that user, or were commented on by that user.,* * [`team`](https://help.github.com/articles/searching-issues/#search-by-a-team-thats-mentioned-within-an-issue-or-pull-request) For organizations you're a member of, finds issues or pull requests that @mention a team within the organization.,* * [`state`](https://help.github.com/articles/searching-issues#search-based-on-whether-an-issue-or-pull-request-is-open) Filter issues or pull requests based on whether they're open or closed.,* * [`labels`](https://help.github.com/articles/searching-issues#search-by-the-labels-on-an-issue) Filters issues or pull requests based on their labels.,* * [`no`](https://help.github.com/articles/searching-issues#search-by-missing-metadata-on-an-issue-or-pull-request) Filters items missing certain metadata, such as `label`, `milestone`, or `assignee`,* * [`language`](https://help.github.com/articles/searching-issues#search-by-the-main-language-of-a-repository) Searches for issues or pull requests within repositories that match a certain language.,* * [`is`](https://help.github.com/articles/searching-issues#search-based-on-the-state-of-an-issue-or-pull-request) Searches for items within repositories that match a certain state, such as `open`, `closed`, or `merged`,* * [`created` or `updated`](https://help.github.com/articles/searching-issues#search-based-on-when-an-issue-or-pull-request-was-created-or-last-updated) Filters issues or pull requests based on date of creation, or when they were last updated.,* * [`merged`](https://help.github.com/articles/searching-issues#search-based-on-when-a-pull-request-was-merged) Filters pull requests based on the date when they were merged.,* * [`status`](https://help.github.com/articles/searching-issues#search-based-on-commit-status) Filters pull requests based on the commit status.,* * [`head` or `base`](https://help.github.com/articles/searching-issues#search-based-on-branch-names) Filters pull requests based on the branch that they came from or that they are modifying.,* * [`closed`](https://help.github.com/articles/searching-issues#search-based-on-when-an-issue-or-pull-request-was-closed) Filters issues or pull requests based on the date when they were closed.,* * [`comments`](https://help.github.com/articles/searching-issues#search-by-the-number-of-comments-an-issue-or-pull-request-has) Filters issues or pull requests based on the quantity of comments.,* * [`user` or `repo`](https://help.github.com/articles/searching-issues#search-within-a-users-or-organizations-repositories) Limits searches to a specific user or repository.,* * [`project`](https://help.github.com/articles/searching-issues/#search-by-project-board) Limits searches to a specific project board in a repository or organization.,* * [`archived`](https://help.github.com/articles/searching-issues/#search-within-archived-repositories) Filters issues or pull requests based on whether they are in an archived repository.,* ,* If you know the specific SHA hash of a commit, you can use also [use it to search for pull requests](https://help.github.com/articles/searching-issues#search-by-the-commit-shas-within-a-pull-request) that contain that SHA. Note that the SHA syntax must be at least seven characters.,* ,* Let's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.,* ,* In this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results.,* ,* **Highlighting issue search results**,* ,* You might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:,* ,* This produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.,* ,* When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata).,* ,* Here's an example response: - */ - issues( - params: Github.SearchIssuesParams, - callback?: Github.Callback - ): Promise; - /** - * Find users via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).,* ,* The `q` search term can also contain any combination of the supported user search qualifiers as described by the in-browser [user search documentation](https://help.github.com/articles/searching-users/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):,* ,* * [`type`](https://help.github.com/articles/searching-users#search-for-users-or-organizations) With this qualifier you can restrict the search to just personal accounts (`user`) or just organization accounts (`org`).,* * [`in`](https://help.github.com/articles/searching-users#scope-the-search-fields) Qualifies which fields are searched. With this qualifier you can restrict the search to just the username (`login`), public email (`email`), full name (`fullname`), or any combination of these.,* * [`repos`](https://help.github.com/articles/searching-users#search-based-on-the-number-of-repositories-a-user-has) Filters users based on the number of repositories they have.,* * [`location`](https://help.github.com/articles/searching-users#search-based-on-the-location-where-a-user-resides) Filter users by the location indicated in their profile.,* * [`language`](https://help.github.com/articles/searching-users#search-based-on-the-languages-of-a-users-repositories) Search for users that have repositories that match a certain language.,* * [`created`](https://help.github.com/articles/searching-users#search-based-on-when-a-user-joined-github) Filter users based on when they joined.,* * [`followers`](https://help.github.com/articles/searching-users#search-based-on-the-number-of-followers-a-user-has) Filter users based on the number of followers they have.,* ,* Imagine you're looking for a list of popular users. You might try out this query:,* ,* Here, we're looking at users with the name Tom. We're only interested in those with more than 42 repositories, and only if they have over 1,000 followers.,* ,* **Highlighting user search results**,* ,* You might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:,* ,* This produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.,* ,* When searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata). - */ - users( - params: Github.SearchUsersParams, - callback?: Github.Callback - ): Promise; - /** - * Find topics via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination).,* ,* Results are sorted by best match by default.,* ,* The `q` search term can also contain any combination of the supported topic search qualifiers as described by the in-browser [topic search documentation](https://help.github.com/articles/searching-topics/) and [search syntax documentation](https://help.github.com/articles/search-syntax/):,* ,* * `is:curated` Finds topics that have extra information, e.g., a description, display name, or logo, because they have an entry in the [`github/explore` repository](https://github.com/github/explore).,* * `is:featured` Finds topics listed on [https://github.com/topics](https://github.com/topics). Any featured topic will also be curated.,* * `is:not-featured` Finds topics not listed on [https://github.com/topics](https://github.com/topics).,* * `is:not-curated` Finds topics that have no extra information because they haven't been added to the [`github/explore` repository](https://github.com/github/explore).,* * `repositories:` Finds topics with some number of repositories using them, e.g., `repositories:>1000`.,* ,* Suppose you want to search for topics related to Ruby that are featured on [https://github.com/topics](https://github.com/topics). Your query might look like this:,* ,* In this request, we're searching for topics with the keyword `ruby`, and we're limiting the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.,* ,* **Note:** A search for featured Ruby topics only has 6 total results, so a [Link header](https://developer.github.com/v3/#link-header) indicating pagination is not included in the response.,* ,* **Highlighting topic search results**,* ,* You might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your Accept header. For example, via cURL, the above query would look like this:,* ,* This produces the same JSON payload as above, with an extra key called `text_matches`, which is an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.,* ,* When searching for topics, you can get text match metadata for the topic's **short\_description**, **description**, **name**, or **display\_name** field. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata). - */ - topics( - params: Github.SearchTopicsParams, - callback?: Github.Callback - ): Promise; - /** - * Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://developer.github.com/v3/#pagination).,* ,* Suppose you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:,* ,* The labels that best match for the query appear first in the search results.,* ,* **Highlighting label search results**,* ,* You might want to highlight the matching search terms when displaying search results. The API offers additional metadata to support this use case. To get this metadata in your search results, specify the `text-match` media type in your `Accept` header. For example, via cURL, the above query would look like this:,* ,* This produces the same JSON payload as above, with an extra key called `text_matches`, an array of objects. These objects provide information such as the position of your search terms within the text, as well as the `property` that included the search term.,* ,* When searching for labels, you can get text match metadata for the label **name** and **description** fields. For details on the attributes present in the `text_matches` array, see [text match metadata](#text-match-metadata). - */ - labels( - params: Github.SearchLabelsParams, - callback?: Github.Callback - ): Promise; - }; - teams: { - list( - params: Github.TeamsListParams, - callback?: Github.Callback> - ): Promise>; - - get( - params: Github.TeamsGetParams, - callback?: Github.Callback> - ): Promise>; - /** - * To create a team, the authenticated user must be a member of `:org`. - */ - create( - params: Github.TeamsCreateParams, - callback?: Github.Callback> - ): Promise>; - /** - * To edit a team, the authenticated user must either be an owner of the org that the team is associated with, or a maintainer of the team.,* ,* **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`. - */ - update( - params: Github.TeamsUpdateParams, - callback?: Github.Callback> - ): Promise>; - /** - * To delete a team, the authenticated user must be a team maintainer or an owner of the org associated with the team.,* ,* If you are an organization owner and you pass the `hellcat-preview` media type, deleting a parent team will delete all of its child teams as well. - */ - delete( - params: Github.TeamsDeleteParams, - callback?: Github.Callback> - ): Promise>; - /** - * At this time, the `hellcat-preview` media type is required to use this endpoint.,* ,* - */ - listChild( - params: Github.TeamsListChildParams, - callback?: Github.Callback - ): Promise; - /** - * **Note**: If you pass the `hellcat-preview` media type, the response will include any repositories inherited through a parent team. - */ - listRepos( - params: Github.TeamsListReposParams, - callback?: Github.Callback> - ): Promise>; - /** - * **Note**: If you pass the `hellcat-preview` media type, repositories inherited through a parent team will be checked.,* ,* You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - checkManagesRepo( - params: Github.TeamsCheckManagesRepoParams, - callback?: Github.Callback - ): Promise; - /** - * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization.,* ,* If you pass the `hellcat-preview` media type, you can modify repository permissions of child teams.,* ,* Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs).",* ,* - */ - addOrUpdateRepo( - params: Github.TeamsAddOrUpdateRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. - */ - removeRepo( - params: Github.TeamsRemoveRepoParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://developer.github.com/apps/building-oauth-apps/). - */ - listForAuthenticatedUser( - params: Github.TeamsListForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists the organization projects for a team. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team. - */ - listProjects( - params: Github.TeamsListProjectsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. If you pass the `hellcat-preview` media type, the response will include projects inherited from a parent team. - */ - reviewProject( - params: Github.TeamsReviewProjectParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. - */ - addOrUpdateProject( - params: Github.TeamsAddOrUpdateProjectParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. - */ - removeProject( - params: Github.TeamsRemoveProjectParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listDiscussions( - params: Github.TeamsListDiscussionsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - getDiscussion( - params: Github.TeamsGetDiscussionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - createDiscussion( - params: Github.TeamsCreateDiscussionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - updateDiscussion( - params: Github.TeamsUpdateDiscussionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - deleteDiscussion( - params: Github.TeamsDeleteDiscussionParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listDiscussionComments( - params: Github.TeamsListDiscussionCommentsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - getDiscussionComment( - params: Github.TeamsGetDiscussionCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - createDiscussionComment( - params: Github.TeamsCreateDiscussionCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - updateDiscussionComment( - params: Github.TeamsUpdateDiscussionCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - deleteDiscussionComment( - params: Github.TeamsDeleteDiscussionCommentParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * If you pass the `hellcat-preview` media type, team members will include the members of child teams. - */ - listMembers( - params: Github.TeamsListMembersParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * The "Get team member" API (described below) is deprecated.,* ,* We recommend using the [Get team membership API](https://developer.github.com/v3/teams/members/#get-team-membership) instead. It allows you to get both active and pending memberships.,* ,* To list members in a team, the team must be visible to the authenticated user. - */ - getMember( - params: Github.TeamsGetMemberParams, - callback?: Github.Callback - ): Promise; - /** - * The "Add team member" API (described below) is deprecated.,* ,* We recommend using the [Add team membership API](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) instead. It allows you to invite new organization members to your teams.,* ,* To add a user to a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with, and the user being added must already be a member of at least one other team on the same organization.,* ,* Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs).",* ,* If you attempt to add an organization to a team, you will get this:,* ,* If you attempt to add a user to a team and that user is not a member of at least one other team on the same organization, you will get this: - */ - addMember( - params: Github.TeamsAddMemberParams, - callback?: Github.Callback> - ): Promise>; - /** - * The "Remove team member" API (described below) is deprecated.,* ,* We recommend using the [Remove team membership API](https://developer.github.com/v3/teams/members/#remove-team-membership) instead. It allows you to remove both active and pending memberships.,* ,* To remove a user from a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. NOTE: This does not delete the user, it just removes them from the team. - */ - removeMember( - params: Github.TeamsRemoveMemberParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * If you pass the `hellcat-preview` media type, team members will include the members of child teams.,* ,* To get a user's membership with a team, the team must be visible to the authenticated user.,* ,* **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). - */ - getMembership( - params: Github.TeamsGetMembershipParams, - callback?: Github.Callback - ): Promise; - /** - * If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a maintainer of the team.,* ,* If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.,* ,* If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a maintainer of the team.,* ,* If you attempt to add an organization to a team, you will get this: - */ - addOrUpdateMembership( - params: Github.TeamsAddOrUpdateMembershipParams, - callback?: Github.Callback - ): Promise; - /** - * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. NOTE: This does not delete the user, it just removes their membership from the team. - */ - removeMembership( - params: Github.TeamsRemoveMembershipParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - */ - listPendingInvitations( - params: Github.TeamsListPendingInvitationsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; - users: { - /** - * Provides publicly available information about someone with a GitHub account.,* ,* The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://developer.github.com/v3/#authentication).,* ,* The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://developer.github.com/v3/users/emails/)". - */ - getByUsername( - params: Github.UsersGetByUsernameParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists public and private profile information when authenticated through basic auth or OAuth with the `user` scope.,* ,* Lists public profile information when authenticated through OAuth without the `user` scope. - */ - getAuthenticated( - params: Github.EmptyParams, - callback?: Github.Callback - ): Promise; - /** - * **Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API. - */ - updateAuthenticated( - params: Github.UsersUpdateAuthenticatedParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.,* ,* The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this: - */ - getContextForUser( - params: Github.UsersGetContextForUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts.,* ,* Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of users. - */ - list( - params: Github.UsersListParams, - callback?: Github.Callback> - ): Promise>; - /** - * List the users you've blocked on your personal account. - */ - listBlocked( - params: Github.EmptyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * If the user is blocked:,* ,* If the user is not blocked: - */ - checkBlocked( - params: Github.UsersCheckBlockedParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - block( - params: Github.UsersBlockParams, - callback?: Github.Callback> - ): Promise>; - - unblock( - params: Github.UsersUnblockParams, - callback?: Github.Callback> - ): Promise>; - /** - * Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope. - */ - listEmails( - params: Github.UsersListEmailsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists your publicly visible email address, which you can set with the [Toggle primary email visibility](#toggle-primary-email-visibility) endpoint. This endpoint is accessible with the `user:email` scope. - */ - listPublicEmails( - params: Github.UsersListPublicEmailsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - addEmails( - params: Github.UsersAddEmailsParams, - callback?: Github.Callback> - ): Promise>; - - deleteEmails( - params: Github.UsersDeleteEmailsParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Sets the visibility for your primary email addresses. - */ - togglePrimaryEmailVisibility( - params: Github.UsersTogglePrimaryEmailVisibilityParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - - listFollowersForUser( - params: Github.UsersListFollowersForUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listFollowersForAuthenticatedUser( - params: Github.UsersListFollowersForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - - listFollowingForUser( - params: Github.UsersListFollowingForUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - - listFollowingForAuthenticatedUser( - params: Github.UsersListFollowingForAuthenticatedUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise< - Github.Response - >; - - checkFollowing( - params: Github.UsersCheckFollowingParams, - callback?: Github.Callback - ): Promise; - - checkFollowingForUser( - params: Github.UsersCheckFollowingForUserParams, - callback?: Github.Callback - ): Promise; - /** - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs).",* ,* Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. - */ - follow( - params: Github.UsersFollowParams, - callback?: Github.Callback> - ): Promise>; - /** - * Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. - */ - unfollow( - params: Github.UsersUnfollowParams, - callback?: Github.Callback> - ): Promise>; - /** - * Lists the _verified_ public SSH keys for a user. This is accessible by anyone. - */ - listPublicKeysForUser( - params: Github.UsersListPublicKeysForUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listPublicKeys( - params: Github.UsersListPublicKeysParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - getPublicKey( - params: Github.UsersGetPublicKeyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - createPublicKey( - params: Github.UsersCreatePublicKeyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - deletePublicKey( - params: Github.UsersDeletePublicKeyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists the GPG keys for a user. This information is accessible by anyone. - */ - listGpgKeysForUser( - params: Github.UsersListGpgKeysForUserParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listGpgKeys( - params: Github.UsersListGpgKeysParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - getGpgKey( - params: Github.UsersGetGpgKeyParams, - callback?: Github.Callback> - ): Promise>; - /** - * Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - createGpgKey( - params: Github.UsersCreateGpgKeyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - /** - * Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - deleteGpgKey( - params: Github.UsersDeleteGpgKeyParams, - callback?: Github.Callback< - Github.Response - > - ): Promise>; - }; -} - -export = Github; diff --git a/build/node_modules/@octokit/rest/index.js b/build/node_modules/@octokit/rest/index.js deleted file mode 100644 index 3d4d864fe..000000000 --- a/build/node_modules/@octokit/rest/index.js +++ /dev/null @@ -1,14 +0,0 @@ -const Octokit = require('./lib/core') - -const CORE_PLUGINS = [ - require('./plugins/authentication'), - require('./plugins/pagination'), - require('./plugins/register-endpoints'), - require('./plugins/rest-api-endpoints'), - require('./plugins/validate'), - - // deprecated: remove in v17 - require('octokit-pagination-methods') -] - -module.exports = Octokit.plugin(CORE_PLUGINS) diff --git a/build/node_modules/@octokit/rest/lib/constructor.js b/build/node_modules/@octokit/rest/lib/constructor.js deleted file mode 100644 index 2437030ba..000000000 --- a/build/node_modules/@octokit/rest/lib/constructor.js +++ /dev/null @@ -1,19 +0,0 @@ -module.exports = Octokit - -const endpoint = require('@octokit/request').endpoint -const Hook = require('before-after-hook') - -const parseClientOptions = require('./parse-client-options') -const requestWithDefaults = require('./request-with-defaults') - -function Octokit (plugins, options) { - const hook = new Hook() - const api = { - hook, - request: requestWithDefaults(hook, endpoint, parseClientOptions(options)) - } - - plugins.forEach(pluginFunction => pluginFunction(api, options)) - - return api -} diff --git a/build/node_modules/@octokit/rest/lib/core.js b/build/node_modules/@octokit/rest/lib/core.js deleted file mode 100644 index 23df1a620..000000000 --- a/build/node_modules/@octokit/rest/lib/core.js +++ /dev/null @@ -1,3 +0,0 @@ -const factory = require('./factory') - -module.exports = factory() diff --git a/build/node_modules/@octokit/rest/lib/factory.js b/build/node_modules/@octokit/rest/lib/factory.js deleted file mode 100644 index c56b3e7e4..000000000 --- a/build/node_modules/@octokit/rest/lib/factory.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = factory - -const Octokit = require('./constructor') -const registerPlugin = require('./register-plugin') - -function factory (plugins) { - const Api = Octokit.bind(null, plugins || []) - Api.plugin = registerPlugin.bind(null, plugins || []) - return Api -} diff --git a/build/node_modules/@octokit/rest/lib/parse-client-options.js b/build/node_modules/@octokit/rest/lib/parse-client-options.js deleted file mode 100644 index 9491470c5..000000000 --- a/build/node_modules/@octokit/rest/lib/parse-client-options.js +++ /dev/null @@ -1,52 +0,0 @@ -module.exports = parseOptions - -const getUserAgent = require('universal-user-agent') -const pick = require('lodash.pick') - -const pkg = require('../package.json') - -const OPTION_NAMES = [ - 'timeout', - 'baseUrl', - 'agent', - 'headers' -] - -function parseOptions (userOptions) { - if (!userOptions) { - userOptions = {} - } - - if (userOptions.headers) { - userOptions.headers = Object.keys(userOptions.headers).reduce((newObj, key) => { - newObj[key.toLowerCase()] = userOptions.headers[key] - return newObj - }, {}) - } - - const options = pick(userOptions, OPTION_NAMES) - - const clientDefaults = { - headers: options.headers || {}, - request: {} - } - - if (options.baseUrl) { - clientDefaults.baseUrl = options.baseUrl - } - - if (options.timeout) { - clientDefaults.request.timeout = options.timeout - } - - if (options.agent) { - clientDefaults.request.agent = options.agent - } - - const userAgentOption = clientDefaults.headers['user-agent'] - const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}` - - clientDefaults.headers['user-agent'] = [userAgentOption, defaultUserAgent].filter(Boolean).join(' ') - - return clientDefaults -} diff --git a/build/node_modules/@octokit/rest/lib/register-plugin.js b/build/node_modules/@octokit/rest/lib/register-plugin.js deleted file mode 100644 index 6a3acca08..000000000 --- a/build/node_modules/@octokit/rest/lib/register-plugin.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = registerPlugin - -const factory = require('./factory') - -function registerPlugin (plugins, pluginFunction) { - return factory(plugins.concat(pluginFunction)) -} diff --git a/build/node_modules/@octokit/rest/lib/request-with-defaults.js b/build/node_modules/@octokit/rest/lib/request-with-defaults.js deleted file mode 100644 index 0d097beab..000000000 --- a/build/node_modules/@octokit/rest/lib/request-with-defaults.js +++ /dev/null @@ -1,19 +0,0 @@ -module.exports = withDefaults - -const request = require('@octokit/request/lib/request') - -function withDefaults (hook, oldEndpoint, newDefaults) { - const endpoint = oldEndpoint.defaults(newDefaults) - - const newApi = requestWithHook.bind(null, hook, endpoint) - newApi.endpoint = endpoint - newApi.defaults = withDefaults.bind(null, hook, endpoint) - return newApi -} - -function requestWithHook (hook, endpoint, route, options) { - const endpointOptions = endpoint.merge(route, options) - return hook('request', endpointOptions, function (options) { - return request(endpoint.parse(options)) - }) -} diff --git a/build/node_modules/@octokit/rest/package.json b/build/node_modules/@octokit/rest/package.json deleted file mode 100644 index 7f28ca2be..000000000 --- a/build/node_modules/@octokit/rest/package.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "_from": "@octokit/rest@^16.1.0", - "_id": "@octokit/rest@16.2.0", - "_inBundle": false, - "_integrity": "sha512-4OyWqvF0mZhSe0NEcsXboq4WJ3HC2pThHCKWeJNd/8M10zDu0q9/Ct8u0IBzHXdgmfpE2hrJJdkIBSF2NlyB9A==", - "_location": "/@octokit/rest", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "@octokit/rest@^16.1.0", - "name": "@octokit/rest", - "escapedName": "@octokit%2frest", - "scope": "@octokit", - "rawSpec": "^16.1.0", - "saveSpec": null, - "fetchSpec": "^16.1.0" - }, - "_requiredBy": [ - "/putasset" - ], - "_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.2.0.tgz", - "_shasum": "790d4189e8befd61e5cfebc4a6171b274d0526cb", - "_spec": "@octokit/rest@^16.1.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\putasset", - "apidoc": { - "template": { - "withCompare": false - } - }, - "author": { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - }, - "bugs": { - "url": "https://github.com/octokit/rest.js/issues" - }, - "bundleDependencies": false, - "bundlesize": [ - { - "path": "./dist/octokit-rest.min.js.gz", - "maxSize": "33 kB" - } - ], - "contributors": [ - { - "name": "Mike de Boer", - "email": "info@mikedeboer.nl" - }, - { - "name": "Fabian Jakobs", - "email": "fabian@c9.io" - }, - { - "name": "Joe Gallo", - "email": "joe@brassafrax.com" - }, - { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - } - ], - "dependencies": { - "@octokit/request": "2.2.0", - "before-after-hook": "^1.2.0", - "btoa-lite": "^1.0.0", - "lodash.get": "^4.4.2", - "lodash.pick": "^4.4.0", - "lodash.set": "^4.3.2", - "lodash.uniq": "^4.5.0", - "octokit-pagination-methods": "^1.1.0", - "universal-user-agent": "^2.0.0", - "url-template": "^2.0.8" - }, - "deprecated": false, - "description": "GitHub REST API client for Node.js", - "devDependencies": { - "@gimenete/type-writer": "^0.1.3", - "@octokit/fixtures-server": "^3.0.3", - "@octokit/routes": "15.4.1", - "@types/node": "^10.1.2", - "apidoc": "^0.17.6", - "bundlesize": "^0.17.0", - "chai": "^4.1.2", - "compression-webpack-plugin": "^2.0.0", - "coveralls": "^3.0.0", - "cypress": "^3.0.0", - "dotenv": "^6.0.0", - "gh-pages-with-token": "^1.0.0", - "glob": "^7.1.2", - "http-proxy-agent": "^2.1.0", - "lodash.camelcase": "^4.3.0", - "lodash.merge": "^4.6.1", - "lodash.upperfirst": "^4.3.1", - "mkdirp": "^0.5.1", - "mocha": "^5.0.0", - "mustache": "^3.0.0", - "nock": "^10.0.0", - "npm-run-all": "^4.1.2", - "nyc": "^12.0.1", - "prettier": "^1.14.2", - "proxy": "^0.2.4", - "semantic-release": "^15.0.0", - "sinon": "^6.0.0", - "sinon-chai": "^3.0.0", - "sort-keys": "^2.0.0", - "standard": "^12.0.0", - "string-to-arraybuffer": "^1.0.0", - "typescript": "^2.9.2", - "webpack": "^4.0.0", - "webpack-bundle-analyzer": "^3.0.0", - "webpack-cli": "^3.0.0" - }, - "files": [ - "index.js", - "index.d.ts", - "lib", - "plugins" - ], - "homepage": "https://github.com/octokit/rest.js#readme", - "keywords": [ - "octokit", - "github", - "rest", - "api-client" - ], - "license": "MIT", - "name": "@octokit/rest", - "nyc": { - "ignore": [ - "test" - ] - }, - "publishConfig": { - "access": "public" - }, - "release": { - "publish": [ - "@semantic-release/npm", - { - "path": "@semantic-release/github", - "assets": [ - "dist/*", - "!dist/*.map.gz" - ] - } - ] - }, - "repository": { - "type": "git", - "url": "git+https://github.com/octokit/rest.js.git" - }, - "scripts": { - "build": "npm-run-all build:*", - "build:browser": "npm-run-all build:browser:*", - "build:browser:development": "webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json", - "build:browser:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map", - "build:docs": "node scripts/generate-api-docs", - "build:ts": "node scripts/generate-types", - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "deploy-docs": "gh-pages-with-token -d doc", - "generate-bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html", - "generate-routes": "node scripts/generate-routes", - "postbuild:docs": "apidoc -i doc/ -o doc/", - "postvalidate:ts": "tsc --noEmit --target es6 test/typescript-validate.ts", - "prebuild:browser": "mkdirp dist/", - "prebuild:docs": "mkdirp doc/", - "pretest": "standard", - "prevalidate:ts": "npm run -s build:ts", - "semantic-release": "semantic-release", - "start-fixtures-server": "octokit-fixtures-server", - "test": "nyc mocha test/mocha-node-setup.js \"test/**/*-test.js\"", - "test:browser": "cypress run --browser chrome", - "validate:ts": "tsc --target es6 --noImplicitAny index.d.ts" - }, - "standard": { - "globals": [ - "describe", - "before", - "beforeEach", - "afterEach", - "after", - "it", - "expect", - "cy" - ] - }, - "types": "index.d.ts", - "version": "16.2.0" -} diff --git a/build/node_modules/@octokit/rest/plugins/authentication/authenticate.js b/build/node_modules/@octokit/rest/plugins/authentication/authenticate.js deleted file mode 100644 index 96a283283..000000000 --- a/build/node_modules/@octokit/rest/plugins/authentication/authenticate.js +++ /dev/null @@ -1,34 +0,0 @@ -module.exports = authenticate - -function authenticate (state, options) { - if (!options) { - state.auth = false - return - } - - switch (options.type) { - case 'basic': - if (!options.username || !options.password) { - throw new Error('Basic authentication requires both a username and password to be set') - } - break - - case 'oauth': - if (!options.token && !(options.key && options.secret)) { - throw new Error('OAuth2 authentication requires a token or key & secret to be set') - } - break - - case 'token': - case 'app': - if (!options.token) { - throw new Error('Token authentication requires a token to be set') - } - break - - default: - throw new Error("Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'") - } - - state.auth = options -} diff --git a/build/node_modules/@octokit/rest/plugins/authentication/before-request.js b/build/node_modules/@octokit/rest/plugins/authentication/before-request.js deleted file mode 100644 index d47ccdae2..000000000 --- a/build/node_modules/@octokit/rest/plugins/authentication/before-request.js +++ /dev/null @@ -1,40 +0,0 @@ -module.exports = authenticationBeforeRequest - -const btoa = require('btoa-lite') -const uniq = require('lodash.uniq') - -function authenticationBeforeRequest (state, options) { - if (!state.auth.type) { - return - } - - if (state.auth.type === 'basic') { - const hash = btoa(`${state.auth.username}:${state.auth.password}`) - options.headers['authorization'] = `Basic ${hash}` - return - } - - if (state.auth.type === 'token') { - options.headers['authorization'] = `token ${state.auth.token}` - return - } - - if (state.auth.type === 'app') { - options.headers['authorization'] = `Bearer ${state.auth.token}` - const acceptHeaders = options.headers['accept'].split(',') - .concat('application/vnd.github.machine-man-preview+json') - options.headers['accept'] = uniq(acceptHeaders).filter(Boolean).join(',') - return - } - - options.url += options.url.indexOf('?') === -1 ? '?' : '&' - - if (state.auth.token) { - options.url += `access_token=${encodeURIComponent(state.auth.token)}` - return - } - - const key = encodeURIComponent(state.auth.key) - const secret = encodeURIComponent(state.auth.secret) - options.url += `client_id=${key}&client_secret=${secret}` -} diff --git a/build/node_modules/@octokit/rest/plugins/authentication/index.js b/build/node_modules/@octokit/rest/plugins/authentication/index.js deleted file mode 100644 index 015b7fa21..000000000 --- a/build/node_modules/@octokit/rest/plugins/authentication/index.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = authenticationPlugin - -const authenticate = require('./authenticate') -const beforeRequest = require('./before-request') - -function authenticationPlugin (octokit) { - const state = { - auth: false - } - octokit.authenticate = authenticate.bind(null, state) - octokit.hook.before('request', beforeRequest.bind(null, state)) -} diff --git a/build/node_modules/@octokit/rest/plugins/pagination/index.js b/build/node_modules/@octokit/rest/plugins/pagination/index.js deleted file mode 100644 index 4aa4d0b6d..000000000 --- a/build/node_modules/@octokit/rest/plugins/pagination/index.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = paginatePlugin - -const iterator = require('./iterator') -const paginate = require('./paginate') - -function paginatePlugin (octokit) { - octokit.paginate = paginate.bind(null, octokit) - octokit.paginate.iterator = iterator.bind(null, octokit) -} diff --git a/build/node_modules/@octokit/rest/plugins/pagination/iterator.js b/build/node_modules/@octokit/rest/plugins/pagination/iterator.js deleted file mode 100644 index 3c2fa49a4..000000000 --- a/build/node_modules/@octokit/rest/plugins/pagination/iterator.js +++ /dev/null @@ -1,44 +0,0 @@ -module.exports = iterator - -function iterator (octokit, options) { - const state = { - page: options.page - } - - return { - [Symbol.asyncIterator]: () => ({ - next () { - state.page = (state.page || 0) + 1 - - if (state.done) { - return Promise.resolve({ done: true }) - } - - return octokit.request(Object.assign(options, { page: state.page })) - - .then((response) => { - if (!hasNextPage(response)) { - state.done = true - } - - return { - value: response - } - }) - } - }) - } -} - -function hasNextPage (response) { - const link = response.headers.link || '' - const links = {} - - // link format: - // '; rel="next", ; rel="last"' - link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => { - links[type] = uri - }) - - return !!links.next -} diff --git a/build/node_modules/@octokit/rest/plugins/pagination/paginate.js b/build/node_modules/@octokit/rest/plugins/pagination/paginate.js deleted file mode 100644 index 77970983a..000000000 --- a/build/node_modules/@octokit/rest/plugins/pagination/paginate.js +++ /dev/null @@ -1,24 +0,0 @@ -module.exports = paginate - -const iterator = require('./iterator') - -function paginate (octokit, route, options, mapFn) { - if (typeof options === 'function') { - mapFn = options - options = undefined - } - options = octokit.request.endpoint.merge(route, options) - return gather([], iterator(octokit, options)[Symbol.asyncIterator](), mapFn) -} - -function gather (results, iterator, mapFn) { - return iterator.next() - .then(result => { - if (result.done) { - return results - } - - results.push.apply(results, mapFn ? mapFn(result.value) : result.value.data) - return gather(results, iterator, mapFn) - }) -} diff --git a/build/node_modules/@octokit/rest/plugins/register-endpoints/index.js b/build/node_modules/@octokit/rest/plugins/register-endpoints/index.js deleted file mode 100644 index 728fb46e4..000000000 --- a/build/node_modules/@octokit/rest/plugins/register-endpoints/index.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = octokitRegisterEndpoints - -const registerEndpoints = require('./register-endpoints') - -function octokitRegisterEndpoints (octokit) { - octokit.registerEndpoints = registerEndpoints.bind(null, octokit) -} diff --git a/build/node_modules/@octokit/rest/plugins/register-endpoints/register-endpoints.js b/build/node_modules/@octokit/rest/plugins/register-endpoints/register-endpoints.js deleted file mode 100644 index 82525a95b..000000000 --- a/build/node_modules/@octokit/rest/plugins/register-endpoints/register-endpoints.js +++ /dev/null @@ -1,25 +0,0 @@ -module.exports = registerEndpoints - -function registerEndpoints (octokit, routes) { - Object.keys(routes).forEach(namespaceName => { - octokit[namespaceName] = {} - - Object.keys(routes[namespaceName]).forEach(apiName => { - let apiOptions = routes[namespaceName][apiName] - - const endpointDefaults = ['method', 'url', 'headers'].reduce((map, key) => { - if (typeof apiOptions[key] !== 'undefined') { - map[key] = apiOptions[key] - } - - return map - }, {}) - - endpointDefaults.request = { - validate: apiOptions.params - } - - octokit[namespaceName][apiName] = octokit.request.defaults(endpointDefaults) - }) - }) -} diff --git a/build/node_modules/@octokit/rest/plugins/rest-api-endpoints/index.js b/build/node_modules/@octokit/rest/plugins/rest-api-endpoints/index.js deleted file mode 100644 index 529ae19b2..000000000 --- a/build/node_modules/@octokit/rest/plugins/rest-api-endpoints/index.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = octokitRestApiEndpoints - -const ROUTES = require('./routes.json') - -function octokitRestApiEndpoints (octokit) { - // Aliasing scopes for backward compatibility - // See https://github.com/octokit/rest.js/pull/1134 - ROUTES.gitdata = ROUTES.git - ROUTES.authorization = ROUTES.oauthAuthorizations - ROUTES.pullRequests = ROUTES.pulls - - octokit.registerEndpoints(ROUTES) -} diff --git a/build/node_modules/@octokit/rest/plugins/rest-api-endpoints/routes.json b/build/node_modules/@octokit/rest/plugins/rest-api-endpoints/routes.json deleted file mode 100644 index 9058a9bb3..000000000 --- a/build/node_modules/@octokit/rest/plugins/rest-api-endpoints/routes.json +++ /dev/null @@ -1,10338 +0,0 @@ -{ - "activity": { - "checkStarringRepo": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/user/starred/:owner/:repo" - }, - "deleteRepoSubscription": { - "method": "DELETE", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/subscription" - }, - "deleteThreadSubscription": { - "method": "DELETE", - "params": { - "thread_id": { - "required": true, - "type": "integer" - } - }, - "url": "/notifications/threads/:thread_id/subscription" - }, - "getRepoSubscription": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/subscription" - }, - "getThread": { - "method": "GET", - "params": { - "thread_id": { - "required": true, - "type": "integer" - } - }, - "url": "/notifications/threads/:thread_id" - }, - "getThreadSubscription": { - "method": "GET", - "params": { - "thread_id": { - "required": true, - "type": "integer" - } - }, - "url": "/notifications/threads/:thread_id/subscription" - }, - "listEventsForOrg": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/events/orgs/:org" - }, - "listEventsForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/events" - }, - "listFeeds": { - "method": "GET", - "params": {}, - "url": "/feeds" - }, - "listNotifications": { - "method": "GET", - "params": { - "all": { - "type": "boolean" - }, - "before": { - "type": "string" - }, - "page": { - "type": "integer" - }, - "participating": { - "type": "boolean" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - } - }, - "url": "/notifications" - }, - "listNotificationsForRepo": { - "method": "GET", - "params": { - "all": { - "type": "boolean" - }, - "before": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "participating": { - "type": "boolean" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "since": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/notifications" - }, - "listPublicEvents": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/events" - }, - "listPublicEventsForOrg": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/orgs/:org/events" - }, - "listPublicEventsForRepoNetwork": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/networks/:owner/:repo/events" - }, - "listPublicEventsForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/events/public" - }, - "listReceivedEventsForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/received_events" - }, - "listReceivedPublicEventsForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/received_events/public" - }, - "listRepoEvents": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/events" - }, - "listReposStarredByAuthenticatedUser": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "sort": { - "enum": [ - "created", - "updated" - ], - "type": "string" - } - }, - "url": "/user/starred" - }, - "listReposStarredByUser": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "sort": { - "enum": [ - "created", - "updated" - ], - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/starred" - }, - "listReposWatchedByUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/subscriptions" - }, - "listStargazersForRepo": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/stargazers" - }, - "listWatchedReposForAuthenticatedUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/subscriptions" - }, - "listWatchersForRepo": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/subscribers" - }, - "markAsRead": { - "method": "PUT", - "params": { - "last_read_at": { - "type": "string" - } - }, - "url": "/notifications" - }, - "markNotificationsAsReadForRepo": { - "method": "PUT", - "params": { - "last_read_at": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/notifications" - }, - "markThreadAsRead": { - "method": "PATCH", - "params": { - "thread_id": { - "required": true, - "type": "integer" - } - }, - "url": "/notifications/threads/:thread_id" - }, - "setRepoSubscription": { - "method": "PUT", - "params": { - "ignored": { - "type": "boolean" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "subscribed": { - "type": "boolean" - } - }, - "url": "/repos/:owner/:repo/subscription" - }, - "setThreadSubscription": { - "method": "PUT", - "params": { - "ignored": { - "type": "boolean" - }, - "thread_id": { - "required": true, - "type": "integer" - } - }, - "url": "/notifications/threads/:thread_id/subscription" - }, - "starRepo": { - "method": "PUT", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/user/starred/:owner/:repo" - }, - "unstarRepo": { - "method": "DELETE", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/user/starred/:owner/:repo" - } - }, - "apps": { - "addRepoToInstallation": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "PUT", - "params": { - "installation_id": { - "required": true, - "type": "integer" - }, - "repository_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/installations/:installation_id/repositories/:repository_id" - }, - "checkAccountIsAssociatedWithAny": { - "method": "GET", - "params": { - "account_id": { - "required": true, - "type": "integer" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/marketplace_listing/accounts/:account_id" - }, - "checkAccountIsAssociatedWithAnyStubbed": { - "method": "GET", - "params": { - "account_id": { - "required": true, - "type": "integer" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/marketplace_listing/stubbed/accounts/:account_id" - }, - "createContentAttachment": { - "headers": { - "accept": "application/vnd.github.corsair-preview+json" - }, - "method": "POST", - "params": { - "body": { - "required": true, - "type": "string" - }, - "content_reference_id": { - "required": true, - "type": "integer" - }, - "title": { - "required": true, - "type": "string" - } - }, - "url": "/content_references/:content_reference_id/attachments" - }, - "createFromManifest": { - "headers": { - "accept": "application/vnd.github.fury-preview+json" - }, - "method": "POST", - "params": { - "code": { - "required": true, - "type": "string" - } - }, - "url": "/app-manifests/:code/conversions" - }, - "createInstallationToken": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "POST", - "params": { - "installation_id": { - "required": true, - "type": "integer" - } - }, - "url": "/app/installations/:installation_id/access_tokens" - }, - "findOrgInstallation": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/installation" - }, - "findRepoInstallation": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/installation" - }, - "findUserInstallation": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "GET", - "params": { - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/installation" - }, - "getAuthenticated": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "GET", - "params": {}, - "url": "/app" - }, - "getBySlug": { - "method": "GET", - "params": { - "app_slug": { - "required": true, - "type": "string" - } - }, - "url": "/apps/:app_slug" - }, - "getInstallation": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "GET", - "params": { - "installation_id": { - "required": true, - "type": "integer" - } - }, - "url": "/app/installations/:installation_id" - }, - "listAccountsUserOrOrgOnPlan": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "plan_id": { - "required": true, - "type": "integer" - }, - "sort": { - "enum": [ - "created", - "updated" - ], - "type": "string" - } - }, - "url": "/marketplace_listing/plans/:plan_id/accounts" - }, - "listAccountsUserOrOrgOnPlanStubbed": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "plan_id": { - "required": true, - "type": "integer" - }, - "sort": { - "enum": [ - "created", - "updated" - ], - "type": "string" - } - }, - "url": "/marketplace_listing/stubbed/plans/:plan_id/accounts" - }, - "listInstallationReposForAuthenticatedUser": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "GET", - "params": { - "installation_id": { - "required": true, - "type": "integer" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/installations/:installation_id/repositories" - }, - "listInstallations": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/app/installations" - }, - "listInstallationsForAuthenticatedUser": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/installations" - }, - "listMarketplacePurchasesForAuthenticatedUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/marketplace_purchases" - }, - "listMarketplacePurchasesForAuthenticatedUserStubbed": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/marketplace_purchases/stubbed" - }, - "listPlans": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/marketplace_listing/plans" - }, - "listPlansStubbed": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/marketplace_listing/stubbed/plans" - }, - "listRepos": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/installation/repositories" - }, - "removeRepoFromInstallation": { - "headers": { - "accept": "application/vnd.github.machine-man-preview+json" - }, - "method": "DELETE", - "params": { - "installation_id": { - "required": true, - "type": "integer" - }, - "repository_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/installations/:installation_id/repositories/:repository_id" - } - }, - "checks": { - "create": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "POST", - "params": { - "actions": { - "type": "object[]" - }, - "actions[].description": { - "required": true, - "type": "string" - }, - "actions[].identifier": { - "required": true, - "type": "string" - }, - "actions[].label": { - "required": true, - "type": "string" - }, - "completed_at": { - "type": "string" - }, - "conclusion": { - "enum": [ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required" - ], - "type": "string" - }, - "details_url": { - "type": "string" - }, - "external_id": { - "type": "string" - }, - "head_sha": { - "required": true, - "type": "string" - }, - "name": { - "required": true, - "type": "string" - }, - "output": { - "type": "object" - }, - "output.annotations": { - "type": "object[]" - }, - "output.annotations[].annotation_level": { - "enum": [ - "notice", - "warning", - "failure" - ], - "required": true, - "type": "string" - }, - "output.annotations[].end_column": { - "type": "integer" - }, - "output.annotations[].end_line": { - "required": true, - "type": "integer" - }, - "output.annotations[].message": { - "required": true, - "type": "string" - }, - "output.annotations[].path": { - "required": true, - "type": "string" - }, - "output.annotations[].raw_details": { - "type": "string" - }, - "output.annotations[].start_column": { - "type": "integer" - }, - "output.annotations[].start_line": { - "required": true, - "type": "integer" - }, - "output.annotations[].title": { - "type": "string" - }, - "output.images": { - "type": "object[]" - }, - "output.images[].alt": { - "required": true, - "type": "string" - }, - "output.images[].caption": { - "type": "string" - }, - "output.images[].image_url": { - "required": true, - "type": "string" - }, - "output.summary": { - "required": true, - "type": "string" - }, - "output.text": { - "type": "string" - }, - "output.title": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "started_at": { - "type": "string" - }, - "status": { - "enum": [ - "queued", - "in_progress", - "completed" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/check-runs" - }, - "createSuite": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "POST", - "params": { - "head_sha": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/check-suites" - }, - "get": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "GET", - "params": { - "check_run_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/check-runs/:check_run_id" - }, - "getSuite": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "GET", - "params": { - "check_suite_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/check-suites/:check_suite_id" - }, - "listAnnotations": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "GET", - "params": { - "check_run_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/check-runs/:check_run_id/annotations" - }, - "listForRef": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "GET", - "params": { - "check_name": { - "type": "string" - }, - "filter": { - "enum": [ - "latest", - "all" - ], - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "status": { - "enum": [ - "queued", - "in_progress", - "completed" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/commits/:ref/check-runs" - }, - "listForSuite": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "GET", - "params": { - "check_name": { - "type": "string" - }, - "check_suite_id": { - "required": true, - "type": "integer" - }, - "filter": { - "enum": [ - "latest", - "all" - ], - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "status": { - "enum": [ - "queued", - "in_progress", - "completed" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs" - }, - "listSuitesForRef": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "GET", - "params": { - "app_id": { - "type": "integer" - }, - "check_name": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/commits/:ref/check-suites" - }, - "rerequestSuite": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "POST", - "params": { - "check_suite_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest" - }, - "setSuitesPreferences": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "PATCH", - "params": { - "auto_trigger_checks": { - "type": "object[]" - }, - "auto_trigger_checks[].app_id": { - "required": true, - "type": "integer" - }, - "auto_trigger_checks[].setting": { - "required": true, - "type": "boolean" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/check-suites/preferences" - }, - "update": { - "headers": { - "accept": "application/vnd.github.antiope-preview+json" - }, - "method": "PATCH", - "params": { - "actions": { - "type": "object[]" - }, - "actions[].description": { - "required": true, - "type": "string" - }, - "actions[].identifier": { - "required": true, - "type": "string" - }, - "actions[].label": { - "required": true, - "type": "string" - }, - "check_run_id": { - "required": true, - "type": "integer" - }, - "completed_at": { - "type": "string" - }, - "conclusion": { - "enum": [ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required" - ], - "type": "string" - }, - "details_url": { - "type": "string" - }, - "external_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "output": { - "type": "object" - }, - "output.annotations": { - "type": "object[]" - }, - "output.annotations[].annotation_level": { - "enum": [ - "notice", - "warning", - "failure" - ], - "required": true, - "type": "string" - }, - "output.annotations[].end_column": { - "type": "integer" - }, - "output.annotations[].end_line": { - "required": true, - "type": "integer" - }, - "output.annotations[].message": { - "required": true, - "type": "string" - }, - "output.annotations[].path": { - "required": true, - "type": "string" - }, - "output.annotations[].raw_details": { - "type": "string" - }, - "output.annotations[].start_column": { - "type": "integer" - }, - "output.annotations[].start_line": { - "required": true, - "type": "integer" - }, - "output.annotations[].title": { - "type": "string" - }, - "output.images": { - "type": "object[]" - }, - "output.images[].alt": { - "required": true, - "type": "string" - }, - "output.images[].caption": { - "type": "string" - }, - "output.images[].image_url": { - "required": true, - "type": "string" - }, - "output.summary": { - "required": true, - "type": "string" - }, - "output.text": { - "type": "string" - }, - "output.title": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "started_at": { - "type": "string" - }, - "status": { - "enum": [ - "queued", - "in_progress", - "completed" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/check-runs/:check_run_id" - } - }, - "codesOfConduct": { - "getConductCode": { - "headers": { - "accept": "application/vnd.github.scarlet-witch-preview+json" - }, - "method": "GET", - "params": { - "key": { - "required": true, - "type": "string" - } - }, - "url": "/codes_of_conduct/:key" - }, - "getForRepo": { - "headers": { - "accept": "application/vnd.github.scarlet-witch-preview+json" - }, - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/community/code_of_conduct" - }, - "listConductCodes": { - "headers": { - "accept": "application/vnd.github.scarlet-witch-preview+json" - }, - "method": "GET", - "params": {}, - "url": "/codes_of_conduct" - } - }, - "emojis": { - "get": { - "method": "GET", - "params": {}, - "url": "/emojis" - } - }, - "gists": { - "checkIsStarred": { - "method": "GET", - "params": { - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id/star" - }, - "create": { - "method": "POST", - "params": { - "description": { - "type": "string" - }, - "files": { - "required": true, - "type": "object" - }, - "files.content": { - "type": "string" - }, - "public": { - "type": "boolean" - } - }, - "url": "/gists" - }, - "createComment": { - "method": "POST", - "params": { - "body": { - "required": true, - "type": "string" - }, - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id/comments" - }, - "delete": { - "method": "DELETE", - "params": { - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id" - }, - "deleteComment": { - "method": "DELETE", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id/comments/:comment_id" - }, - "fork": { - "method": "POST", - "params": { - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id/forks" - }, - "get": { - "method": "GET", - "params": { - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id" - }, - "getComment": { - "method": "GET", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id/comments/:comment_id" - }, - "getRevision": { - "method": "GET", - "params": { - "gist_id": { - "required": true, - "type": "string" - }, - "sha": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id/:sha" - }, - "list": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - } - }, - "url": "/gists" - }, - "listComments": { - "method": "GET", - "params": { - "gist_id": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/gists/:gist_id/comments" - }, - "listCommits": { - "method": "GET", - "params": { - "gist_id": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/gists/:gist_id/commits" - }, - "listForks": { - "method": "GET", - "params": { - "gist_id": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/gists/:gist_id/forks" - }, - "listPublic": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - } - }, - "url": "/gists/public" - }, - "listPublicForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/gists" - }, - "listStarred": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - } - }, - "url": "/gists/starred" - }, - "star": { - "method": "PUT", - "params": { - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id/star" - }, - "unstar": { - "method": "DELETE", - "params": { - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id/star" - }, - "update": { - "method": "PATCH", - "params": { - "description": { - "type": "string" - }, - "files": { - "type": "object" - }, - "files.content": { - "type": "string" - }, - "files.filename": { - "type": "string" - }, - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id" - }, - "updateComment": { - "method": "PATCH", - "params": { - "body": { - "required": true, - "type": "string" - }, - "comment_id": { - "required": true, - "type": "integer" - }, - "gist_id": { - "required": true, - "type": "string" - } - }, - "url": "/gists/:gist_id/comments/:comment_id" - } - }, - "git": { - "createBlob": { - "method": "POST", - "params": { - "content": { - "required": true, - "type": "string" - }, - "encoding": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/blobs" - }, - "createCommit": { - "method": "POST", - "params": { - "author": { - "type": "object" - }, - "committer": { - "type": "object" - }, - "message": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "parents": { - "required": true, - "type": "string[]" - }, - "repo": { - "required": true, - "type": "string" - }, - "tree": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/commits" - }, - "createRef": { - "method": "POST", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/refs" - }, - "createTag": { - "method": "POST", - "params": { - "message": { - "required": true, - "type": "string" - }, - "object": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "tag": { - "required": true, - "type": "string" - }, - "tagger": { - "type": "object" - }, - "tagger.date": { - "type": "string" - }, - "tagger.email": { - "type": "string" - }, - "tagger.name": { - "type": "string" - }, - "type": { - "enum": [ - "commit", - "tree", - "blob" - ], - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/tags" - }, - "createTree": { - "method": "POST", - "params": { - "base_tree": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "tree": { - "required": true, - "type": "object[]" - }, - "tree[].content": { - "type": "string" - }, - "tree[].mode": { - "enum": [ - "100644", - "100755", - "040000", - "160000", - "120000" - ], - "type": "string" - }, - "tree[].path": { - "type": "string" - }, - "tree[].sha": { - "type": "string" - }, - "tree[].type": { - "enum": [ - "blob", - "tree", - "commit" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/trees" - }, - "deleteRef": { - "method": "DELETE", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/refs/:ref" - }, - "getBlob": { - "method": "GET", - "params": { - "file_sha": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/blobs/:file_sha" - }, - "getCommit": { - "method": "GET", - "params": { - "commit_sha": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/commits/:commit_sha" - }, - "getRef": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/refs/:ref" - }, - "getTag": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "tag_sha": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/tags/:tag_sha" - }, - "getTree": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "recursive": { - "enum": [ - 1 - ], - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "tree_sha": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/trees/:tree_sha" - }, - "listRefs": { - "method": "GET", - "params": { - "namespace": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/refs/:namespace" - }, - "updateRef": { - "method": "PATCH", - "params": { - "force": { - "type": "boolean" - }, - "owner": { - "required": true, - "type": "string" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/git/refs/:ref" - } - }, - "gitignore": { - "getTemplate": { - "method": "GET", - "params": { - "name": { - "required": true, - "type": "string" - } - }, - "url": "/gitignore/templates/:name" - }, - "listTemplates": { - "method": "GET", - "params": {}, - "url": "/gitignore/templates" - } - }, - "issues": { - "addAssignees": { - "method": "POST", - "params": { - "assignees": { - "type": "string[]" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/assignees" - }, - "addLabels": { - "method": "POST", - "params": { - "labels": { - "required": true, - "type": "string[]" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/labels" - }, - "checkAssignee": { - "method": "GET", - "params": { - "assignee": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/assignees/:assignee" - }, - "create": { - "method": "POST", - "params": { - "assignee": { - "type": "string" - }, - "assignees": { - "type": "string[]" - }, - "body": { - "type": "string" - }, - "labels": { - "type": "string[]" - }, - "milestone": { - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "title": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues" - }, - "createComment": { - "method": "POST", - "params": { - "body": { - "required": true, - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/comments" - }, - "createLabel": { - "method": "POST", - "params": { - "color": { - "required": true, - "type": "string" - }, - "description": { - "type": "string" - }, - "name": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/labels" - }, - "createMilestone": { - "method": "POST", - "params": { - "description": { - "type": "string" - }, - "due_on": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed" - ], - "type": "string" - }, - "title": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/milestones" - }, - "deleteComment": { - "method": "DELETE", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/comments/:comment_id" - }, - "deleteLabel": { - "method": "DELETE", - "params": { - "name": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/labels/:name" - }, - "deleteMilestone": { - "method": "DELETE", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/milestones/:number" - }, - "get": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number" - }, - "getComment": { - "method": "GET", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/comments/:comment_id" - }, - "getEvent": { - "method": "GET", - "params": { - "event_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/events/:event_id" - }, - "getLabel": { - "method": "GET", - "params": { - "name": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/labels/:name" - }, - "getMilestone": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/milestones/:number" - }, - "list": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "filter": { - "enum": [ - "assigned", - "created", - "mentioned", - "subscribed", - "all" - ], - "type": "string" - }, - "labels": { - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - }, - "sort": { - "enum": [ - "created", - "updated", - "comments" - ], - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed", - "all" - ], - "type": "string" - } - }, - "url": "/issues" - }, - "listAssignees": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/assignees" - }, - "listComments": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "since": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/comments" - }, - "listCommentsForRepo": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "since": { - "type": "string" - }, - "sort": { - "enum": [ - "created", - "updated" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/comments" - }, - "listEvents": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/events" - }, - "listEventsForRepo": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/events" - }, - "listEventsForTimeline": { - "headers": { - "accept": "application/vnd.github.mockingbird-preview+json" - }, - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/timeline" - }, - "listForAuthenticatedUser": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "filter": { - "enum": [ - "assigned", - "created", - "mentioned", - "subscribed", - "all" - ], - "type": "string" - }, - "labels": { - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - }, - "sort": { - "enum": [ - "created", - "updated", - "comments" - ], - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed", - "all" - ], - "type": "string" - } - }, - "url": "/user/issues" - }, - "listForOrg": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "filter": { - "enum": [ - "assigned", - "created", - "mentioned", - "subscribed", - "all" - ], - "type": "string" - }, - "labels": { - "type": "string" - }, - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - }, - "sort": { - "enum": [ - "created", - "updated", - "comments" - ], - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed", - "all" - ], - "type": "string" - } - }, - "url": "/orgs/:org/issues" - }, - "listForRepo": { - "method": "GET", - "params": { - "assignee": { - "type": "string" - }, - "creator": { - "type": "string" - }, - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "labels": { - "type": "string" - }, - "mentioned": { - "type": "string" - }, - "milestone": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "since": { - "type": "string" - }, - "sort": { - "enum": [ - "created", - "updated", - "comments" - ], - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed", - "all" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues" - }, - "listLabelsForMilestone": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/milestones/:number/labels" - }, - "listLabelsForRepo": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/labels" - }, - "listLabelsOnIssue": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/labels" - }, - "listMilestonesForRepo": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "sort": { - "enum": [ - "due_on", - "completeness" - ], - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed", - "all" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/milestones" - }, - "lock": { - "method": "PUT", - "params": { - "lock_reason": { - "enum": [ - "off-topic", - "too heated", - "resolved", - "spam" - ], - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/lock" - }, - "removeAssignees": { - "method": "DELETE", - "params": { - "assignees": { - "type": "string[]" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/assignees" - }, - "removeLabel": { - "method": "DELETE", - "params": { - "name": { - "required": true, - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/labels/:name" - }, - "removeLabels": { - "method": "DELETE", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/labels" - }, - "replaceLabels": { - "method": "PUT", - "params": { - "labels": { - "type": "string[]" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/labels" - }, - "unlock": { - "method": "DELETE", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/lock" - }, - "update": { - "method": "PATCH", - "params": { - "assignee": { - "type": "string" - }, - "assignees": { - "type": "string[]" - }, - "body": { - "type": "string" - }, - "labels": { - "type": "string[]" - }, - "milestone": { - "allowNull": true, - "type": "integer" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed" - ], - "type": "string" - }, - "title": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number" - }, - "updateComment": { - "method": "PATCH", - "params": { - "body": { - "required": true, - "type": "string" - }, - "comment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/comments/:comment_id" - }, - "updateLabel": { - "method": "PATCH", - "params": { - "color": { - "type": "string" - }, - "current_name": { - "required": true, - "type": "string" - }, - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/labels/:current_name" - }, - "updateMilestone": { - "method": "PATCH", - "params": { - "description": { - "type": "string" - }, - "due_on": { - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed" - ], - "type": "string" - }, - "title": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/milestones/:number" - } - }, - "licenses": { - "get": { - "method": "GET", - "params": { - "license": { - "required": true, - "type": "string" - } - }, - "url": "/licenses/:license" - }, - "getForRepo": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/license" - }, - "list": { - "method": "GET", - "params": {}, - "url": "/licenses" - } - }, - "markdown": { - "render": { - "method": "POST", - "params": { - "context": { - "type": "string" - }, - "mode": { - "enum": [ - "markdown", - "gfm" - ], - "type": "string" - }, - "text": { - "required": true, - "type": "string" - } - }, - "url": "/markdown" - }, - "renderRaw": { - "headers": { - "content-type": "text/plain; charset=utf-8" - }, - "method": "POST", - "params": { - "data": { - "mapTo": "data", - "required": true, - "type": "string" - } - }, - "url": "/markdown/raw" - } - }, - "meta": { - "get": { - "method": "GET", - "params": {}, - "url": "/meta" - } - }, - "migrations": { - "cancelImport": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, - "method": "DELETE", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/import" - }, - "deleteArchiveForAuthenticatedUser": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "DELETE", - "params": { - "migration_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/migrations/:migration_id/archive" - }, - "deleteArchiveForOrg": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "DELETE", - "params": { - "migration_id": { - "required": true, - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/migrations/:migration_id/archive" - }, - "getArchiveForAuthenticatedUser": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "GET", - "params": { - "migration_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/migrations/:migration_id/archive" - }, - "getArchiveForOrg": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "GET", - "params": { - "migration_id": { - "required": true, - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/migrations/:migration_id/archive" - }, - "getCommitAuthors": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "since": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/import/authors" - }, - "getImportProgress": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/import" - }, - "getLargeFiles": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/import/large_files" - }, - "getStatusForAuthenticatedUser": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "GET", - "params": { - "migration_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/migrations/:migration_id" - }, - "getStatusForOrg": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "GET", - "params": { - "migration_id": { - "required": true, - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/migrations/:migration_id" - }, - "listForAuthenticatedUser": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/migrations" - }, - "listForOrg": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/orgs/:org/migrations" - }, - "mapCommitAuthor": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, - "method": "PATCH", - "params": { - "author_id": { - "required": true, - "type": "integer" - }, - "email": { - "type": "string" - }, - "name": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/import/authors/:author_id" - }, - "setLfsPreference": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, - "method": "PATCH", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "use_lfs": { - "enum": [ - "opt_in", - "opt_out" - ], - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/import/lfs" - }, - "startForAuthenticatedUser": { - "method": "POST", - "params": { - "exclude_attachments": { - "type": "boolean" - }, - "lock_repositories": { - "type": "boolean" - }, - "repositories": { - "required": true, - "type": "string[]" - } - }, - "url": "/user/migrations" - }, - "startForOrg": { - "method": "POST", - "params": { - "exclude_attachments": { - "type": "boolean" - }, - "lock_repositories": { - "type": "boolean" - }, - "org": { - "required": true, - "type": "string" - }, - "repositories": { - "required": true, - "type": "string[]" - } - }, - "url": "/orgs/:org/migrations" - }, - "startImport": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, - "method": "PUT", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "tfvc_project": { - "type": "string" - }, - "vcs": { - "enum": [ - "subversion", - "git", - "mercurial", - "tfvc" - ], - "type": "string" - }, - "vcs_password": { - "type": "string" - }, - "vcs_url": { - "required": true, - "type": "string" - }, - "vcs_username": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/import" - }, - "unlockRepoForAuthenticatedUser": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "DELETE", - "params": { - "migration_id": { - "required": true, - "type": "integer" - }, - "repo_name": { - "required": true, - "type": "string" - } - }, - "url": "/user/migrations/:migration_id/repos/:repo_name/lock" - }, - "unlockRepoForOrg": { - "headers": { - "accept": "application/vnd.github.wyandotte-preview+json" - }, - "method": "DELETE", - "params": { - "migration_id": { - "required": true, - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - }, - "repo_name": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock" - }, - "updateImport": { - "headers": { - "accept": "application/vnd.github.barred-rock-preview+json" - }, - "method": "PATCH", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "vcs_password": { - "type": "string" - }, - "vcs_username": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/import" - } - }, - "oauthAuthorizations": { - "checkAuthorization": { - "method": "GET", - "params": { - "access_token": { - "required": true, - "type": "string" - }, - "client_id": { - "required": true, - "type": "string" - } - }, - "url": "/applications/:client_id/tokens/:access_token" - }, - "createAuthorization": { - "method": "POST", - "params": { - "client_id": { - "type": "string" - }, - "client_secret": { - "type": "string" - }, - "fingerprint": { - "type": "string" - }, - "note": { - "required": true, - "type": "string" - }, - "note_url": { - "type": "string" - }, - "scopes": { - "type": "string[]" - } - }, - "url": "/authorizations" - }, - "deleteAuthorization": { - "method": "DELETE", - "params": { - "authorization_id": { - "required": true, - "type": "integer" - } - }, - "url": "/authorizations/:authorization_id" - }, - "deleteGrant": { - "method": "DELETE", - "params": { - "grant_id": { - "required": true, - "type": "integer" - } - }, - "url": "/applications/grants/:grant_id" - }, - "getAuthorization": { - "method": "GET", - "params": { - "authorization_id": { - "required": true, - "type": "integer" - } - }, - "url": "/authorizations/:authorization_id" - }, - "getGrant": { - "method": "GET", - "params": { - "grant_id": { - "required": true, - "type": "integer" - } - }, - "url": "/applications/grants/:grant_id" - }, - "getOrCreateAuthorizationForApp": { - "method": "PUT", - "params": { - "client_id": { - "required": true, - "type": "string" - }, - "client_secret": { - "required": true, - "type": "string" - }, - "fingerprint": { - "type": "string" - }, - "note": { - "type": "string" - }, - "note_url": { - "type": "string" - }, - "scopes": { - "type": "string[]" - } - }, - "url": "/authorizations/clients/:client_id" - }, - "getOrCreateAuthorizationForAppFingerprint": { - "method": "PUT", - "params": { - "client_id": { - "required": true, - "type": "string" - }, - "client_secret": { - "required": true, - "type": "string" - }, - "fingerprint": { - "required": true, - "type": "string" - }, - "note": { - "type": "string" - }, - "note_url": { - "type": "string" - }, - "scopes": { - "type": "string[]" - } - }, - "url": "/authorizations/clients/:client_id/:fingerprint" - }, - "listAuthorizations": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/authorizations" - }, - "listGrants": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/applications/grants" - }, - "resetAuthorization": { - "method": "POST", - "params": { - "access_token": { - "required": true, - "type": "string" - }, - "client_id": { - "required": true, - "type": "string" - } - }, - "url": "/applications/:client_id/tokens/:access_token" - }, - "revokeAuthorizationForApplication": { - "method": "DELETE", - "params": { - "access_token": { - "required": true, - "type": "string" - }, - "client_id": { - "required": true, - "type": "string" - } - }, - "url": "/applications/:client_id/tokens/:access_token" - }, - "revokeGrantForApplication": { - "method": "DELETE", - "params": { - "access_token": { - "required": true, - "type": "string" - }, - "client_id": { - "required": true, - "type": "string" - } - }, - "url": "/applications/:client_id/grants/:access_token" - }, - "updateAuthorization": { - "method": "PATCH", - "params": { - "add_scopes": { - "type": "string[]" - }, - "authorization_id": { - "required": true, - "type": "integer" - }, - "fingerprint": { - "type": "string" - }, - "note": { - "type": "string" - }, - "note_url": { - "type": "string" - }, - "remove_scopes": { - "type": "string[]" - }, - "scopes": { - "type": "string[]" - } - }, - "url": "/authorizations/:authorization_id" - } - }, - "orgs": { - "addOrUpdateMembership": { - "method": "PUT", - "params": { - "org": { - "required": true, - "type": "string" - }, - "role": { - "enum": [ - "admin", - "member" - ], - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/memberships/:username" - }, - "blockUser": { - "method": "PUT", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/blocks/:username" - }, - "checkBlockedUser": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/blocks/:username" - }, - "checkMembership": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/members/:username" - }, - "checkPublicMembership": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/public_members/:username" - }, - "concealMembership": { - "method": "DELETE", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/public_members/:username" - }, - "convertMemberToOutsideCollaborator": { - "method": "PUT", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/outside_collaborators/:username" - }, - "createHook": { - "method": "POST", - "params": { - "active": { - "type": "boolean" - }, - "config": { - "required": true, - "type": "object" - }, - "config.content_type": { - "type": "string" - }, - "config.insecure_ssl": { - "type": "string" - }, - "config.secret": { - "type": "string" - }, - "config.url": { - "required": true, - "type": "string" - }, - "events": { - "type": "string[]" - }, - "name": { - "required": true, - "type": "string" - }, - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/hooks" - }, - "createInvitation": { - "method": "POST", - "params": { - "email": { - "type": "string" - }, - "invitee_id": { - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - }, - "role": { - "enum": [ - "admin", - "direct_member", - "billing_manager" - ], - "type": "string" - }, - "team_ids": { - "type": "integer[]" - } - }, - "url": "/orgs/:org/invitations" - }, - "deleteHook": { - "method": "DELETE", - "params": { - "hook_id": { - "required": true, - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/hooks/:hook_id" - }, - "get": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org" - }, - "getHook": { - "method": "GET", - "params": { - "hook_id": { - "required": true, - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/hooks/:hook_id" - }, - "getMembership": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/memberships/:username" - }, - "getMembershipForAuthenticatedUser": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - } - }, - "url": "/user/memberships/orgs/:org" - }, - "list": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - } - }, - "url": "/organizations" - }, - "listBlockedUsers": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/blocks" - }, - "listForAuthenticatedUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/orgs" - }, - "listForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/orgs" - }, - "listHooks": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/orgs/:org/hooks" - }, - "listInvitationTeams": { - "method": "GET", - "params": { - "invitation_id": { - "required": true, - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/orgs/:org/invitations/:invitation_id/teams" - }, - "listMembers": { - "method": "GET", - "params": { - "filter": { - "enum": [ - "2fa_disabled", - "all" - ], - "type": "string" - }, - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "role": { - "enum": [ - "all", - "admin", - "member" - ], - "type": "string" - } - }, - "url": "/orgs/:org/members" - }, - "listMemberships": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "state": { - "enum": [ - "active", - "pending" - ], - "type": "string" - } - }, - "url": "/user/memberships/orgs" - }, - "listOutsideCollaborators": { - "method": "GET", - "params": { - "filter": { - "enum": [ - "2fa_disabled", - "all" - ], - "type": "string" - }, - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/orgs/:org/outside_collaborators" - }, - "listPendingInvitations": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/orgs/:org/invitations" - }, - "listPublicMembers": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/orgs/:org/public_members" - }, - "pingHook": { - "method": "POST", - "params": { - "hook_id": { - "required": true, - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/hooks/:hook_id/pings" - }, - "publicizeMembership": { - "method": "PUT", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/public_members/:username" - }, - "removeMember": { - "method": "DELETE", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/members/:username" - }, - "removeMembership": { - "method": "DELETE", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/memberships/:username" - }, - "removeOutsideCollaborator": { - "method": "DELETE", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/outside_collaborators/:username" - }, - "unblockUser": { - "method": "DELETE", - "params": { - "org": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/blocks/:username" - }, - "update": { - "method": "PATCH", - "params": { - "billing_email": { - "type": "string" - }, - "company": { - "type": "string" - }, - "default_repository_permission": { - "enum": [ - "read", - "write", - "admin", - "none" - ], - "type": "string" - }, - "description": { - "type": "string" - }, - "email": { - "type": "string" - }, - "has_organization_projects": { - "type": "boolean" - }, - "has_repository_projects": { - "type": "boolean" - }, - "location": { - "type": "string" - }, - "members_allowed_repository_creation_type": { - "enum": [ - "all", - "private", - "none" - ], - "type": "string" - }, - "members_can_create_repositories": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org" - }, - "updateHook": { - "method": "PATCH", - "params": { - "active": { - "type": "boolean" - }, - "config": { - "type": "object" - }, - "config.content_type": { - "type": "string" - }, - "config.insecure_ssl": { - "type": "string" - }, - "config.secret": { - "type": "string" - }, - "config.url": { - "required": true, - "type": "string" - }, - "events": { - "type": "string[]" - }, - "hook_id": { - "required": true, - "type": "integer" - }, - "org": { - "required": true, - "type": "string" - } - }, - "url": "/orgs/:org/hooks/:hook_id" - }, - "updateMembership": { - "method": "PATCH", - "params": { - "org": { - "required": true, - "type": "string" - }, - "state": { - "enum": [ - "active" - ], - "required": true, - "type": "string" - } - }, - "url": "/user/memberships/orgs/:org" - } - }, - "projects": { - "addCollaborator": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "PUT", - "params": { - "permission": { - "enum": [ - "read", - "write", - "admin" - ], - "type": "string" - }, - "project_id": { - "required": true, - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/projects/:project_id/collaborators/:username" - }, - "createCard": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "POST", - "params": { - "column_id": { - "required": true, - "type": "integer" - }, - "content_id": { - "type": "integer" - }, - "content_type": { - "type": "string" - }, - "note": { - "type": "string" - } - }, - "url": "/projects/columns/:column_id/cards" - }, - "createColumn": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "POST", - "params": { - "name": { - "required": true, - "type": "string" - }, - "project_id": { - "required": true, - "type": "integer" - } - }, - "url": "/projects/:project_id/columns" - }, - "createForOrg": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "POST", - "params": { - "body": { - "type": "string" - }, - "name": { - "required": true, - "type": "string" - }, - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/orgs/:org/projects" - }, - "createForRepo": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "POST", - "params": { - "body": { - "type": "string" - }, - "name": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/projects" - }, - "delete": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "DELETE", - "params": { - "project_id": { - "required": true, - "type": "integer" - } - }, - "url": "/projects/:project_id" - }, - "deleteCard": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "DELETE", - "params": { - "card_id": { - "required": true, - "type": "integer" - } - }, - "url": "/projects/columns/cards/:card_id" - }, - "deleteColumn": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "DELETE", - "params": { - "column_id": { - "required": true, - "type": "integer" - } - }, - "url": "/projects/columns/:column_id" - }, - "get": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "project_id": { - "required": true, - "type": "integer" - } - }, - "url": "/projects/:project_id" - }, - "getCard": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "card_id": { - "required": true, - "type": "integer" - } - }, - "url": "/projects/columns/cards/:card_id" - }, - "getColumn": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "column_id": { - "required": true, - "type": "integer" - } - }, - "url": "/projects/columns/:column_id" - }, - "listCards": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "archived_state": { - "enum": [ - "all", - "archived", - "not_archived" - ], - "type": "string" - }, - "column_id": { - "required": true, - "type": "integer" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/projects/columns/:column_id/cards" - }, - "listCollaborators": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "affiliation": { - "enum": [ - "outside", - "direct", - "all" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "project_id": { - "required": true, - "type": "integer" - } - }, - "url": "/projects/:project_id/collaborators" - }, - "listColumns": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "project_id": { - "required": true, - "type": "integer" - } - }, - "url": "/projects/:project_id/columns" - }, - "listForOrg": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "state": { - "enum": [ - "open", - "closed", - "all" - ], - "type": "string" - } - }, - "url": "/orgs/:org/projects" - }, - "listForRepo": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed", - "all" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/projects" - }, - "moveCard": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "POST", - "params": { - "card_id": { - "required": true, - "type": "integer" - }, - "column_id": { - "type": "integer" - }, - "position": { - "required": true, - "type": "string", - "validation": "^(top|bottom|after:\\d+)$" - } - }, - "url": "/projects/columns/cards/:card_id/moves" - }, - "moveColumn": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "POST", - "params": { - "column_id": { - "required": true, - "type": "integer" - }, - "position": { - "required": true, - "type": "string", - "validation": "^(first|last|after:\\d+)$" - } - }, - "url": "/projects/columns/:column_id/moves" - }, - "removeCollaborator": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "DELETE", - "params": { - "project_id": { - "required": true, - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/projects/:project_id/collaborators/:username" - }, - "reviewUserPermissionLevel": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "project_id": { - "required": true, - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/projects/:project_id/collaborators/:username/permission" - }, - "update": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "PATCH", - "params": { - "body": { - "type": "string" - }, - "name": { - "type": "string" - }, - "organization_permission": { - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "project_id": { - "required": true, - "type": "integer" - }, - "public": { - "type": "boolean" - }, - "state": { - "enum": [ - "open", - "closed" - ], - "type": "string" - } - }, - "url": "/projects/:project_id" - }, - "updateCard": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "PATCH", - "params": { - "archived": { - "type": "boolean" - }, - "card_id": { - "required": true, - "type": "integer" - }, - "note": { - "type": "string" - } - }, - "url": "/projects/columns/cards/:card_id" - }, - "updateColumn": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "PATCH", - "params": { - "column_id": { - "required": true, - "type": "integer" - }, - "name": { - "required": true, - "type": "string" - } - }, - "url": "/projects/columns/:column_id" - } - }, - "pulls": { - "checkIfMerged": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/merge" - }, - "create": { - "method": "POST", - "params": { - "base": { - "required": true, - "type": "string" - }, - "body": { - "type": "string" - }, - "head": { - "required": true, - "type": "string" - }, - "maintainer_can_modify": { - "type": "boolean" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "title": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls" - }, - "createComment": { - "method": "POST", - "params": { - "body": { - "required": true, - "type": "string" - }, - "commit_id": { - "required": true, - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "path": { - "required": true, - "type": "string" - }, - "position": { - "required": true, - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/comments" - }, - "createCommentReply": { - "method": "POST", - "params": { - "body": { - "required": true, - "type": "string" - }, - "in_reply_to": { - "required": true, - "type": "integer" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/comments" - }, - "createFromIssue": { - "method": "POST", - "params": { - "base": { - "required": true, - "type": "string" - }, - "head": { - "required": true, - "type": "string" - }, - "issue": { - "required": true, - "type": "integer" - }, - "maintainer_can_modify": { - "type": "boolean" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls" - }, - "createReview": { - "method": "POST", - "params": { - "body": { - "type": "string" - }, - "comments": { - "type": "object[]" - }, - "comments[].body": { - "required": true, - "type": "string" - }, - "comments[].path": { - "required": true, - "type": "string" - }, - "comments[].position": { - "required": true, - "type": "integer" - }, - "commit_id": { - "type": "string" - }, - "event": { - "enum": [ - "APPROVE", - "REQUEST_CHANGES", - "COMMENT" - ], - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/reviews" - }, - "createReviewRequest": { - "method": "POST", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "reviewers": { - "type": "string[]" - }, - "team_reviewers": { - "type": "string[]" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/requested_reviewers" - }, - "deleteComment": { - "method": "DELETE", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - "deletePendingReview": { - "method": "DELETE", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "review_id": { - "required": true, - "type": "integer" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/reviews/:review_id" - }, - "deleteReviewRequest": { - "method": "DELETE", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "reviewers": { - "type": "string[]" - }, - "team_reviewers": { - "type": "string[]" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/requested_reviewers" - }, - "dismissReview": { - "method": "PUT", - "params": { - "message": { - "required": true, - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "review_id": { - "required": true, - "type": "integer" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/reviews/:review_id/dismissals" - }, - "get": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number" - }, - "getComment": { - "method": "GET", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - "getCommentsForReview": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "review_id": { - "required": true, - "type": "integer" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/reviews/:review_id/comments" - }, - "getReview": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "review_id": { - "required": true, - "type": "integer" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/reviews/:review_id" - }, - "list": { - "method": "GET", - "params": { - "base": { - "type": "string" - }, - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "head": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "sort": { - "enum": [ - "created", - "updated", - "popularity", - "long-running" - ], - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed", - "all" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls" - }, - "listComments": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "since": { - "type": "string" - }, - "sort": { - "enum": [ - "created", - "updated" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/comments" - }, - "listCommentsForRepo": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "since": { - "type": "string" - }, - "sort": { - "enum": [ - "created", - "updated" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/comments" - }, - "listCommits": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/commits" - }, - "listFiles": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/files" - }, - "listReviewRequests": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/requested_reviewers" - }, - "listReviews": { - "method": "GET", - "params": { - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/reviews" - }, - "merge": { - "method": "PUT", - "params": { - "commit_message": { - "type": "string" - }, - "commit_title": { - "type": "string" - }, - "merge_method": { - "enum": [ - "merge", - "squash", - "rebase" - ], - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/merge" - }, - "submitReview": { - "method": "POST", - "params": { - "body": { - "type": "string" - }, - "event": { - "enum": [ - "APPROVE", - "REQUEST_CHANGES", - "COMMENT" - ], - "required": true, - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "review_id": { - "required": true, - "type": "integer" - } - }, - "url": "/repos/:owner/:repo/pulls/:number/reviews/:review_id/events" - }, - "update": { - "method": "PATCH", - "params": { - "base": { - "type": "string" - }, - "body": { - "type": "string" - }, - "maintainer_can_modify": { - "type": "boolean" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "state": { - "enum": [ - "open", - "closed" - ], - "type": "string" - }, - "title": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/:number" - }, - "updateComment": { - "method": "PATCH", - "params": { - "body": { - "required": true, - "type": "string" - }, - "comment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/comments/:comment_id" - } - }, - "rateLimit": { - "get": { - "method": "GET", - "params": {}, - "url": "/rate_limit" - } - }, - "reactions": { - "createForCommitComment": { - "headers": { - "accept": "application/vnd.github.squirrel-girl-preview+json" - }, - "method": "POST", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - "createForIssue": { - "headers": { - "accept": "application/vnd.github.squirrel-girl-preview+json" - }, - "method": "POST", - "params": { - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "required": true, - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/reactions" - }, - "createForIssueComment": { - "headers": { - "accept": "application/vnd.github.squirrel-girl-preview+json" - }, - "method": "POST", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - "createForPullRequestReviewComment": { - "headers": { - "accept": "application/vnd.github.squirrel-girl-preview+json" - }, - "method": "POST", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - "createForTeamDiscussion": { - "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" - }, - "method": "POST", - "params": { - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "required": true, - "type": "string" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number/reactions" - }, - "createForTeamDiscussionComment": { - "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" - }, - "method": "POST", - "params": { - "comment_number": { - "required": true, - "type": "integer" - }, - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "required": true, - "type": "string" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - "delete": { - "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" - }, - "method": "DELETE", - "params": { - "reaction_id": { - "required": true, - "type": "integer" - } - }, - "url": "/reactions/:reaction_id" - }, - "listForCommitComment": { - "headers": { - "accept": "application/vnd.github.squirrel-girl-preview+json" - }, - "method": "GET", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - "listForIssue": { - "headers": { - "accept": "application/vnd.github.squirrel-girl-preview+json" - }, - "method": "GET", - "params": { - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "type": "string" - }, - "number": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/:number/reactions" - }, - "listForIssueComment": { - "headers": { - "accept": "application/vnd.github.squirrel-girl-preview+json" - }, - "method": "GET", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - "listForPullRequestReviewComment": { - "headers": { - "accept": "application/vnd.github.squirrel-girl-preview+json" - }, - "method": "GET", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - "listForTeamDiscussion": { - "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" - }, - "method": "GET", - "params": { - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "type": "string" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number/reactions" - }, - "listForTeamDiscussionComment": { - "headers": { - "accept": "application/vnd.github.echo-preview+json,application/vnd.github.squirrel-girl-preview+json" - }, - "method": "GET", - "params": { - "comment_number": { - "required": true, - "type": "integer" - }, - "content": { - "enum": [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray" - ], - "type": "string" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - } - }, - "repos": { - "acceptInvitation": { - "method": "PATCH", - "params": { - "invitation_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/repository_invitations/:invitation_id" - }, - "addCollaborator": { - "method": "PUT", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "permission": { - "enum": [ - "pull", - "push", - "admin" - ], - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/collaborators/:username" - }, - "addDeployKey": { - "method": "POST", - "params": { - "key": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "read_only": { - "type": "boolean" - }, - "repo": { - "required": true, - "type": "string" - }, - "title": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/keys" - }, - "addProtectedBranchAdminEnforcement": { - "method": "POST", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - "addProtectedBranchRequiredSignatures": { - "headers": { - "accept": "application/vnd.github.zzzax-preview+json" - }, - "method": "POST", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - "addProtectedBranchRequiredStatusChecksContexts": { - "method": "POST", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "contexts": { - "mapTo": "data", - "required": true, - "type": "string[]" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - "addProtectedBranchTeamRestrictions": { - "method": "POST", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "teams": { - "mapTo": "data", - "required": true, - "type": "string[]" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - "addProtectedBranchUserRestrictions": { - "method": "POST", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "users": { - "mapTo": "data", - "required": true, - "type": "string[]" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - "checkCollaborator": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/collaborators/:username" - }, - "compareCommits": { - "method": "GET", - "params": { - "base": { - "required": true, - "type": "string" - }, - "head": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/compare/:base...:head" - }, - "createCommitComment": { - "method": "POST", - "params": { - "body": { - "required": true, - "type": "string" - }, - "line": { - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "path": { - "type": "string" - }, - "position": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/commits/:sha/comments" - }, - "createDeployment": { - "method": "POST", - "params": { - "auto_merge": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "environment": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "payload": { - "type": "string" - }, - "production_environment": { - "type": "boolean" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "required_contexts": { - "type": "string[]" - }, - "task": { - "type": "string" - }, - "transient_environment": { - "type": "boolean" - } - }, - "url": "/repos/:owner/:repo/deployments" - }, - "createDeploymentStatus": { - "method": "POST", - "params": { - "auto_inactive": { - "type": "boolean" - }, - "deployment_id": { - "required": true, - "type": "integer" - }, - "description": { - "type": "string" - }, - "environment": { - "enum": [ - "production", - "staging", - "qa" - ], - "type": "string" - }, - "environment_url": { - "type": "string" - }, - "log_url": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "state": { - "enum": [ - "error", - "failure", - "inactive", - "in_progress", - "queued", - "pending", - "success" - ], - "required": true, - "type": "string" - }, - "target_url": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - "createFile": { - "method": "PUT", - "params": { - "author": { - "type": "object" - }, - "author.email": { - "required": true, - "type": "string" - }, - "author.name": { - "required": true, - "type": "string" - }, - "branch": { - "type": "string" - }, - "committer": { - "type": "object" - }, - "committer.email": { - "required": true, - "type": "string" - }, - "committer.name": { - "required": true, - "type": "string" - }, - "content": { - "required": true, - "type": "string" - }, - "message": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "path": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/contents/:path" - }, - "createForAuthenticatedUser": { - "method": "POST", - "params": { - "allow_merge_commit": { - "type": "boolean" - }, - "allow_rebase_merge": { - "type": "boolean" - }, - "allow_squash_merge": { - "type": "boolean" - }, - "auto_init": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "gitignore_template": { - "type": "string" - }, - "has_issues": { - "type": "boolean" - }, - "has_projects": { - "type": "boolean" - }, - "has_wiki": { - "type": "boolean" - }, - "homepage": { - "type": "string" - }, - "license_template": { - "type": "string" - }, - "name": { - "required": true, - "type": "string" - }, - "private": { - "type": "boolean" - }, - "team_id": { - "type": "integer" - } - }, - "url": "/user/repos" - }, - "createFork": { - "method": "POST", - "params": { - "organization": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/forks" - }, - "createHook": { - "method": "POST", - "params": { - "active": { - "type": "boolean" - }, - "config": { - "required": true, - "type": "object" - }, - "config.content_type": { - "type": "string" - }, - "config.insecure_ssl": { - "type": "string" - }, - "config.secret": { - "type": "string" - }, - "config.url": { - "required": true, - "type": "string" - }, - "events": { - "type": "string[]" - }, - "name": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/hooks" - }, - "createInOrg": { - "method": "POST", - "params": { - "allow_merge_commit": { - "type": "boolean" - }, - "allow_rebase_merge": { - "type": "boolean" - }, - "allow_squash_merge": { - "type": "boolean" - }, - "auto_init": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "gitignore_template": { - "type": "string" - }, - "has_issues": { - "type": "boolean" - }, - "has_projects": { - "type": "boolean" - }, - "has_wiki": { - "type": "boolean" - }, - "homepage": { - "type": "string" - }, - "license_template": { - "type": "string" - }, - "name": { - "required": true, - "type": "string" - }, - "org": { - "required": true, - "type": "string" - }, - "private": { - "type": "boolean" - }, - "team_id": { - "type": "integer" - } - }, - "url": "/orgs/:org/repos" - }, - "createRelease": { - "method": "POST", - "params": { - "body": { - "type": "string" - }, - "draft": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "prerelease": { - "type": "boolean" - }, - "repo": { - "required": true, - "type": "string" - }, - "tag_name": { - "required": true, - "type": "string" - }, - "target_commitish": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases" - }, - "createStatus": { - "method": "POST", - "params": { - "context": { - "type": "string" - }, - "description": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "required": true, - "type": "string" - }, - "state": { - "enum": [ - "error", - "failure", - "pending", - "success" - ], - "required": true, - "type": "string" - }, - "target_url": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/statuses/:sha" - }, - "declineInvitation": { - "method": "DELETE", - "params": { - "invitation_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/repository_invitations/:invitation_id" - }, - "delete": { - "method": "DELETE", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo" - }, - "deleteCommitComment": { - "method": "DELETE", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/comments/:comment_id" - }, - "deleteDownload": { - "method": "DELETE", - "params": { - "download_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/downloads/:download_id" - }, - "deleteFile": { - "method": "DELETE", - "params": { - "author": { - "type": "object" - }, - "branch": { - "type": "string" - }, - "committer": { - "type": "object" - }, - "message": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "path": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/contents/:path" - }, - "deleteHook": { - "method": "DELETE", - "params": { - "hook_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/hooks/:hook_id" - }, - "deleteInvitation": { - "method": "DELETE", - "params": { - "invitation_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/invitations/:invitation_id" - }, - "deleteRelease": { - "method": "DELETE", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "release_id": { - "required": true, - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases/:release_id" - }, - "deleteReleaseAsset": { - "method": "DELETE", - "params": { - "asset_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases/assets/:asset_id" - }, - "get": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo" - }, - "getArchiveLink": { - "method": "GET", - "params": { - "archive_format": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/:archive_format/:ref" - }, - "getBranch": { - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch" - }, - "getBranchProtection": { - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection" - }, - "getClones": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "per": { - "enum": [ - "day", - "week" - ], - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/traffic/clones" - }, - "getCodeFrequencyStats": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/stats/code_frequency" - }, - "getCollaboratorPermissionLevel": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/collaborators/:username/permission" - }, - "getCombinedStatusForRef": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/commits/:ref/status" - }, - "getCommit": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/commits/:sha" - }, - "getCommitActivityStats": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/stats/commit_activity" - }, - "getCommitComment": { - "method": "GET", - "params": { - "comment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/comments/:comment_id" - }, - "getCommitRefSha": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/commits/:ref" - }, - "getContents": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "path": { - "required": true, - "type": "string" - }, - "ref": { - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/contents/:path" - }, - "getContributorsStats": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/stats/contributors" - }, - "getDeployKey": { - "method": "GET", - "params": { - "key_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/keys/:key_id" - }, - "getDeployment": { - "method": "GET", - "params": { - "deployment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/deployments/:deployment_id" - }, - "getDeploymentStatus": { - "method": "GET", - "params": { - "deployment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "status_id": { - "required": true, - "type": "integer" - } - }, - "url": "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id" - }, - "getDownload": { - "method": "GET", - "params": { - "download_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/downloads/:download_id" - }, - "getHook": { - "method": "GET", - "params": { - "hook_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/hooks/:hook_id" - }, - "getLatestPagesBuild": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pages/builds/latest" - }, - "getLatestRelease": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases/latest" - }, - "getPages": { - "headers": { - "accept": "application/vnd.github.mister-fantastic-preview+json" - }, - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pages" - }, - "getPagesBuild": { - "method": "GET", - "params": { - "build_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pages/builds/:build_id" - }, - "getParticipationStats": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/stats/participation" - }, - "getProtectedBranchAdminEnforcement": { - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - "getProtectedBranchPullRequestReviewEnforcement": { - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - "getProtectedBranchRequiredSignatures": { - "headers": { - "accept": "application/vnd.github.zzzax-preview+json" - }, - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - "getProtectedBranchRequiredStatusChecks": { - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - "getProtectedBranchRestrictions": { - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - "getPunchCardStats": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/stats/punch_card" - }, - "getReadme": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "ref": { - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/readme" - }, - "getRelease": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "release_id": { - "required": true, - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases/:release_id" - }, - "getReleaseAsset": { - "method": "GET", - "params": { - "asset_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases/assets/:asset_id" - }, - "getReleaseByTag": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "tag": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases/tags/:tag" - }, - "getTopPaths": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/traffic/popular/paths" - }, - "getTopReferrers": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/traffic/popular/referrers" - }, - "getViews": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "per": { - "enum": [ - "day", - "week" - ], - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/traffic/views" - }, - "list": { - "method": "GET", - "params": { - "affiliation": { - "enum": [ - "owner", - "collaborator", - "organization_member" - ], - "type": "string" - }, - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "sort": { - "enum": [ - "created", - "updated", - "pushed", - "full_name" - ], - "type": "string" - }, - "type": { - "enum": [ - "all", - "owner", - "public", - "private", - "member" - ], - "type": "string" - }, - "visibility": { - "enum": [ - "all", - "public", - "private" - ], - "type": "string" - } - }, - "url": "/user/repos" - }, - "listAssetsForRelease": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "release_id": { - "required": true, - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases/:release_id/assets" - }, - "listBranches": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "protected": { - "type": "boolean" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches" - }, - "listCollaborators": { - "method": "GET", - "params": { - "affiliation": { - "enum": [ - "outside", - "direct", - "all" - ], - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/collaborators" - }, - "listCommentsForCommit": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/commits/:ref/comments" - }, - "listCommitComments": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/comments" - }, - "listCommits": { - "method": "GET", - "params": { - "author": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "path": { - "type": "string" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "type": "string" - }, - "since": { - "type": "string" - }, - "until": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/commits" - }, - "listContributors": { - "method": "GET", - "params": { - "anon": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/contributors" - }, - "listDeployKeys": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/keys" - }, - "listDeploymentStatuses": { - "method": "GET", - "params": { - "deployment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - "listDeployments": { - "method": "GET", - "params": { - "environment": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "ref": { - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "type": "string" - }, - "task": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/deployments" - }, - "listDownloads": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/downloads" - }, - "listForOrg": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "type": { - "enum": [ - "all", - "public", - "private", - "forks", - "sources", - "member" - ], - "type": "string" - } - }, - "url": "/orgs/:org/repos" - }, - "listForUser": { - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "sort": { - "enum": [ - "created", - "updated", - "pushed", - "full_name" - ], - "type": "string" - }, - "type": { - "enum": [ - "all", - "owner", - "member" - ], - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/repos" - }, - "listForks": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "sort": { - "enum": [ - "newest", - "oldest", - "stargazers" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/forks" - }, - "listHooks": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/hooks" - }, - "listInvitations": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/invitations" - }, - "listInvitationsForAuthenticatedUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/repository_invitations" - }, - "listLanguages": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/languages" - }, - "listPagesBuilds": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pages/builds" - }, - "listProtectedBranchRequiredStatusChecksContexts": { - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - "listProtectedBranchTeamRestrictions": { - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - "listProtectedBranchUserRestrictions": { - "method": "GET", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - "listPublic": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - } - }, - "url": "/repositories" - }, - "listReleases": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases" - }, - "listStatusesForRef": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "ref": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/commits/:ref/statuses" - }, - "listTags": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/tags" - }, - "listTeams": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/teams" - }, - "listTopics": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/topics" - }, - "merge": { - "method": "POST", - "params": { - "base": { - "required": true, - "type": "string" - }, - "commit_message": { - "type": "string" - }, - "head": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/merges" - }, - "pingHook": { - "method": "POST", - "params": { - "hook_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/hooks/:hook_id/pings" - }, - "removeBranchProtection": { - "method": "DELETE", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection" - }, - "removeCollaborator": { - "method": "DELETE", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/collaborators/:username" - }, - "removeDeployKey": { - "method": "DELETE", - "params": { - "key_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/keys/:key_id" - }, - "removeProtectedBranchAdminEnforcement": { - "method": "DELETE", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - "removeProtectedBranchPullRequestReviewEnforcement": { - "method": "DELETE", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - "removeProtectedBranchRequiredSignatures": { - "headers": { - "accept": "application/vnd.github.zzzax-preview+json" - }, - "method": "DELETE", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - "removeProtectedBranchRequiredStatusChecks": { - "method": "DELETE", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - "removeProtectedBranchRequiredStatusChecksContexts": { - "method": "DELETE", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "contexts": { - "mapTo": "data", - "required": true, - "type": "string[]" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - "removeProtectedBranchRestrictions": { - "method": "DELETE", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - "removeProtectedBranchTeamRestrictions": { - "method": "DELETE", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "teams": { - "mapTo": "data", - "required": true, - "type": "string[]" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - "removeProtectedBranchUserRestrictions": { - "method": "DELETE", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "users": { - "mapTo": "data", - "required": true, - "type": "string[]" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - "replaceProtectedBranchRequiredStatusChecksContexts": { - "method": "PUT", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "contexts": { - "mapTo": "data", - "required": true, - "type": "string[]" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - "replaceProtectedBranchTeamRestrictions": { - "method": "PUT", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "teams": { - "mapTo": "data", - "required": true, - "type": "string[]" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - "replaceProtectedBranchUserRestrictions": { - "method": "PUT", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "users": { - "mapTo": "data", - "required": true, - "type": "string[]" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - "replaceTopics": { - "method": "PUT", - "params": { - "names": { - "required": true, - "type": "string[]" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/topics" - }, - "requestPageBuild": { - "headers": { - "accept": "application/vnd.github.mister-fantastic-preview+json" - }, - "method": "POST", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pages/builds" - }, - "retrieveCommunityProfileMetrics": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/community/profile" - }, - "testPushHook": { - "method": "POST", - "params": { - "hook_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/hooks/:hook_id/tests" - }, - "transfer": { - "headers": { - "accept": "application/vnd.github.nightshade-preview+json" - }, - "method": "POST", - "params": { - "new_owner": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "team_ids": { - "type": "integer[]" - } - }, - "url": "/repos/:owner/:repo/transfer" - }, - "update": { - "method": "PATCH", - "params": { - "allow_merge_commit": { - "type": "boolean" - }, - "allow_rebase_merge": { - "type": "boolean" - }, - "allow_squash_merge": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "default_branch": { - "type": "string" - }, - "description": { - "type": "string" - }, - "has_issues": { - "type": "boolean" - }, - "has_projects": { - "type": "boolean" - }, - "has_wiki": { - "type": "boolean" - }, - "homepage": { - "type": "string" - }, - "name": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "private": { - "type": "boolean" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo" - }, - "updateBranchProtection": { - "method": "PUT", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "enforce_admins": { - "allowNull": true, - "required": true, - "type": "boolean" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "required_pull_request_reviews": { - "allowNull": true, - "required": true, - "type": "object" - }, - "required_pull_request_reviews.dismiss_stale_reviews": { - "type": "boolean" - }, - "required_pull_request_reviews.dismissal_restrictions": { - "type": "object" - }, - "required_pull_request_reviews.dismissal_restrictions.teams": { - "type": "string[]" - }, - "required_pull_request_reviews.dismissal_restrictions.users": { - "type": "string[]" - }, - "required_pull_request_reviews.require_code_owner_reviews": { - "type": "boolean" - }, - "required_pull_request_reviews.required_approving_review_count": { - "type": "integer" - }, - "required_status_checks": { - "allowNull": true, - "required": true, - "type": "object" - }, - "required_status_checks.contexts": { - "required": true, - "type": "string[]" - }, - "required_status_checks.strict": { - "required": true, - "type": "boolean" - }, - "restrictions": { - "allowNull": true, - "required": true, - "type": "object" - }, - "restrictions.teams": { - "type": "string[]" - }, - "restrictions.users": { - "type": "string[]" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection" - }, - "updateCommitComment": { - "method": "PATCH", - "params": { - "body": { - "required": true, - "type": "string" - }, - "comment_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/comments/:comment_id" - }, - "updateFile": { - "method": "PUT", - "params": { - "author": { - "type": "object" - }, - "author.email": { - "required": true, - "type": "string" - }, - "author.name": { - "required": true, - "type": "string" - }, - "branch": { - "type": "string" - }, - "committer": { - "type": "object" - }, - "committer.email": { - "required": true, - "type": "string" - }, - "committer.name": { - "required": true, - "type": "string" - }, - "content": { - "required": true, - "type": "string" - }, - "message": { - "required": true, - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "path": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "sha": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/contents/:path" - }, - "updateHook": { - "method": "PATCH", - "params": { - "active": { - "type": "boolean" - }, - "add_events": { - "type": "string[]" - }, - "config": { - "type": "object" - }, - "config.content_type": { - "type": "string" - }, - "config.insecure_ssl": { - "type": "string" - }, - "config.secret": { - "type": "string" - }, - "config.url": { - "required": true, - "type": "string" - }, - "events": { - "type": "string[]" - }, - "hook_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "remove_events": { - "type": "string[]" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/hooks/:hook_id" - }, - "updateInformationAboutPagesSite": { - "headers": { - "accept": "application/vnd.github.mister-fantastic-preview+json" - }, - "method": "PUT", - "params": { - "cname": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "source": { - "enum": [ - "\"gh-pages\"", - "\"master\"", - "\"master /docs\"" - ], - "type": "string" - } - }, - "url": "/repos/:owner/:repo/pages" - }, - "updateInvitation": { - "method": "PATCH", - "params": { - "invitation_id": { - "required": true, - "type": "integer" - }, - "owner": { - "required": true, - "type": "string" - }, - "permissions": { - "enum": [ - "read", - "write", - "admin" - ], - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/invitations/:invitation_id" - }, - "updateProtectedBranchPullRequestReviewEnforcement": { - "method": "PATCH", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "dismiss_stale_reviews": { - "type": "boolean" - }, - "dismissal_restrictions": { - "type": "object" - }, - "dismissal_restrictions.teams": { - "type": "string[]" - }, - "dismissal_restrictions.users": { - "type": "string[]" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "require_code_owner_reviews": { - "type": "boolean" - }, - "required_approving_review_count": { - "type": "integer" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - "updateProtectedBranchRequiredStatusChecks": { - "method": "PATCH", - "params": { - "branch": { - "required": true, - "type": "string" - }, - "contexts": { - "type": "string[]" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "strict": { - "type": "boolean" - } - }, - "url": "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - "updateRelease": { - "method": "PATCH", - "params": { - "body": { - "type": "string" - }, - "draft": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "prerelease": { - "type": "boolean" - }, - "release_id": { - "required": true, - "type": "integer" - }, - "repo": { - "required": true, - "type": "string" - }, - "tag_name": { - "type": "string" - }, - "target_commitish": { - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases/:release_id" - }, - "updateReleaseAsset": { - "method": "PATCH", - "params": { - "asset_id": { - "required": true, - "type": "integer" - }, - "label": { - "type": "string" - }, - "name": { - "type": "string" - }, - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - } - }, - "url": "/repos/:owner/:repo/releases/assets/:asset_id" - }, - "uploadReleaseAsset": { - "method": "POST", - "params": { - "file": { - "mapTo": "data", - "required": true, - "type": "string | object" - }, - "headers": { - "required": true, - "type": "object" - }, - "headers.content-length": { - "required": true, - "type": "integer" - }, - "headers.content-type": { - "required": true, - "type": "string" - }, - "label": { - "type": "string" - }, - "name": { - "required": true, - "type": "string" - }, - "url": { - "required": true, - "type": "string" - } - }, - "url": ":url" - } - }, - "search": { - "code": { - "method": "GET", - "params": { - "order": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "q": { - "required": true, - "type": "string" - }, - "sort": { - "enum": [ - "indexed" - ], - "type": "string" - } - }, - "url": "/search/code" - }, - "commits": { - "headers": { - "accept": "application/vnd.github.cloak-preview+json" - }, - "method": "GET", - "params": { - "order": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "q": { - "required": true, - "type": "string" - }, - "sort": { - "enum": [ - "author-date", - "committer-date" - ], - "type": "string" - } - }, - "url": "/search/commits" - }, - "issues": { - "method": "GET", - "params": { - "order": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "q": { - "required": true, - "type": "string" - }, - "sort": { - "enum": [ - "comments", - "created", - "updated" - ], - "type": "string" - } - }, - "url": "/search/issues" - }, - "labels": { - "method": "GET", - "params": { - "order": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "q": { - "required": true, - "type": "string" - }, - "repository_id": { - "required": true, - "type": "integer" - }, - "sort": { - "enum": [ - "created", - "updated" - ], - "type": "string" - } - }, - "url": "/search/labels" - }, - "repos": { - "method": "GET", - "params": { - "order": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "q": { - "required": true, - "type": "string" - }, - "sort": { - "enum": [ - "stars", - "forks", - "updated" - ], - "type": "string" - } - }, - "url": "/search/repositories" - }, - "topics": { - "method": "GET", - "params": { - "q": { - "required": true, - "type": "string" - } - }, - "url": "/search/topics" - }, - "users": { - "method": "GET", - "params": { - "order": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "q": { - "required": true, - "type": "string" - }, - "sort": { - "enum": [ - "followers", - "repositories", - "joined" - ], - "type": "string" - } - }, - "url": "/search/users" - } - }, - "teams": { - "addMember": { - "method": "PUT", - "params": { - "team_id": { - "required": true, - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/teams/:team_id/members/:username" - }, - "addOrUpdateMembership": { - "method": "PUT", - "params": { - "role": { - "enum": [ - "member", - "maintainer" - ], - "type": "string" - }, - "team_id": { - "required": true, - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/teams/:team_id/memberships/:username" - }, - "addOrUpdateProject": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "PUT", - "params": { - "permission": { - "enum": [ - "read", - "write", - "admin" - ], - "type": "string" - }, - "project_id": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/projects/:project_id" - }, - "addOrUpdateRepo": { - "method": "PUT", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "permission": { - "enum": [ - "pull", - "push", - "admin" - ], - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/repos/:owner/:repo" - }, - "checkManagesRepo": { - "method": "GET", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/repos/:owner/:repo" - }, - "create": { - "method": "POST", - "params": { - "description": { - "type": "string" - }, - "maintainers": { - "type": "string[]" - }, - "name": { - "required": true, - "type": "string" - }, - "org": { - "required": true, - "type": "string" - }, - "parent_team_id": { - "type": "integer" - }, - "permission": { - "enum": [ - "pull", - "push", - "admin" - ], - "type": "string" - }, - "privacy": { - "enum": [ - "secret", - "closed" - ], - "type": "string" - }, - "repo_names": { - "type": "string[]" - } - }, - "url": "/orgs/:org/teams" - }, - "createDiscussion": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "POST", - "params": { - "body": { - "required": true, - "type": "string" - }, - "private": { - "type": "boolean" - }, - "team_id": { - "required": true, - "type": "integer" - }, - "title": { - "required": true, - "type": "string" - } - }, - "url": "/teams/:team_id/discussions" - }, - "createDiscussionComment": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "POST", - "params": { - "body": { - "required": true, - "type": "string" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number/comments" - }, - "delete": { - "method": "DELETE", - "params": { - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id" - }, - "deleteDiscussion": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "DELETE", - "params": { - "discussion_number": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number" - }, - "deleteDiscussionComment": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "DELETE", - "params": { - "comment_number": { - "required": true, - "type": "integer" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - "get": { - "method": "GET", - "params": { - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id" - }, - "getDiscussion": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "GET", - "params": { - "discussion_number": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number" - }, - "getDiscussionComment": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "GET", - "params": { - "comment_number": { - "required": true, - "type": "integer" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - "getMember": { - "method": "GET", - "params": { - "team_id": { - "required": true, - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/teams/:team_id/members/:username" - }, - "getMembership": { - "method": "GET", - "params": { - "team_id": { - "required": true, - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/teams/:team_id/memberships/:username" - }, - "list": { - "method": "GET", - "params": { - "org": { - "required": true, - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/orgs/:org/teams" - }, - "listChild": { - "headers": { - "accept": "application/vnd.github.hellcat-preview+json" - }, - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/teams" - }, - "listDiscussionComments": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number/comments" - }, - "listDiscussions": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "GET", - "params": { - "direction": { - "enum": [ - "asc", - "desc" - ], - "type": "string" - }, - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions" - }, - "listForAuthenticatedUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/teams" - }, - "listMembers": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "role": { - "enum": [ - "member", - "maintainer", - "all" - ], - "type": "string" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/members" - }, - "listPendingInvitations": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/invitations" - }, - "listProjects": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/projects" - }, - "listRepos": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/repos" - }, - "removeMember": { - "method": "DELETE", - "params": { - "team_id": { - "required": true, - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/teams/:team_id/members/:username" - }, - "removeMembership": { - "method": "DELETE", - "params": { - "team_id": { - "required": true, - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/teams/:team_id/memberships/:username" - }, - "removeProject": { - "method": "DELETE", - "params": { - "project_id": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/projects/:project_id" - }, - "removeRepo": { - "method": "DELETE", - "params": { - "owner": { - "required": true, - "type": "string" - }, - "repo": { - "required": true, - "type": "string" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/repos/:owner/:repo" - }, - "reviewProject": { - "headers": { - "accept": "application/vnd.github.inertia-preview+json" - }, - "method": "GET", - "params": { - "project_id": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/projects/:project_id" - }, - "update": { - "method": "PATCH", - "params": { - "description": { - "type": "string" - }, - "name": { - "required": true, - "type": "string" - }, - "parent_team_id": { - "type": "integer" - }, - "permission": { - "enum": [ - "pull", - "push", - "admin" - ], - "type": "string" - }, - "privacy": { - "type": "string" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id" - }, - "updateDiscussion": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "PATCH", - "params": { - "body": { - "type": "string" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - }, - "title": { - "type": "string" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number" - }, - "updateDiscussionComment": { - "headers": { - "accept": "application/vnd.github.echo-preview+json" - }, - "method": "PATCH", - "params": { - "body": { - "required": true, - "type": "string" - }, - "comment_number": { - "required": true, - "type": "integer" - }, - "discussion_number": { - "required": true, - "type": "integer" - }, - "team_id": { - "required": true, - "type": "integer" - } - }, - "url": "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - } - }, - "users": { - "addEmails": { - "method": "POST", - "params": { - "emails": { - "required": true, - "type": "string[]" - } - }, - "url": "/user/emails" - }, - "block": { - "method": "PUT", - "params": { - "username": { - "required": true, - "type": "string" - } - }, - "url": "/user/blocks/:username" - }, - "checkBlocked": { - "method": "GET", - "params": { - "username": { - "required": true, - "type": "string" - } - }, - "url": "/user/blocks/:username" - }, - "checkFollowing": { - "method": "GET", - "params": { - "username": { - "required": true, - "type": "string" - } - }, - "url": "/user/following/:username" - }, - "checkFollowingForUser": { - "method": "GET", - "params": { - "target_user": { - "required": true, - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/following/:target_user" - }, - "createGpgKey": { - "method": "POST", - "params": { - "armored_public_key": { - "type": "string" - } - }, - "url": "/user/gpg_keys" - }, - "createPublicKey": { - "method": "POST", - "params": { - "key": { - "type": "string" - }, - "title": { - "type": "string" - } - }, - "url": "/user/keys" - }, - "deleteEmails": { - "method": "DELETE", - "params": { - "emails": { - "required": true, - "type": "string[]" - } - }, - "url": "/user/emails" - }, - "deleteGpgKey": { - "method": "DELETE", - "params": { - "gpg_key_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/gpg_keys/:gpg_key_id" - }, - "deletePublicKey": { - "method": "DELETE", - "params": { - "key_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/keys/:key_id" - }, - "follow": { - "method": "PUT", - "params": { - "username": { - "required": true, - "type": "string" - } - }, - "url": "/user/following/:username" - }, - "getAuthenticated": { - "method": "GET", - "params": {}, - "url": "/user" - }, - "getByUsername": { - "method": "GET", - "params": { - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username" - }, - "getContextForUser": { - "headers": { - "accept": "application/vnd.github.hagar-preview+json" - }, - "method": "GET", - "params": { - "subject_id": { - "type": "string" - }, - "subject_type": { - "enum": [ - "organization", - "repository", - "issue", - "pull_request" - ], - "type": "string" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/hovercard" - }, - "getGpgKey": { - "method": "GET", - "params": { - "gpg_key_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/gpg_keys/:gpg_key_id" - }, - "getPublicKey": { - "method": "GET", - "params": { - "key_id": { - "required": true, - "type": "integer" - } - }, - "url": "/user/keys/:key_id" - }, - "list": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "since": { - "type": "string" - } - }, - "url": "/users" - }, - "listBlocked": { - "method": "GET", - "params": {}, - "url": "/user/blocks" - }, - "listEmails": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/emails" - }, - "listFollowersForAuthenticatedUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/followers" - }, - "listFollowersForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/followers" - }, - "listFollowingForAuthenticatedUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/following" - }, - "listFollowingForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/following" - }, - "listGpgKeys": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/gpg_keys" - }, - "listGpgKeysForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/gpg_keys" - }, - "listPublicEmails": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/public_emails" - }, - "listPublicKeys": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - } - }, - "url": "/user/keys" - }, - "listPublicKeysForUser": { - "method": "GET", - "params": { - "page": { - "type": "integer" - }, - "per_page": { - "type": "integer" - }, - "username": { - "required": true, - "type": "string" - } - }, - "url": "/users/:username/keys" - }, - "togglePrimaryEmailVisibility": { - "method": "PATCH", - "params": { - "email": { - "required": true, - "type": "string" - }, - "visibility": { - "required": true, - "type": "string" - } - }, - "url": "/user/email/visibility" - }, - "unblock": { - "method": "DELETE", - "params": { - "username": { - "required": true, - "type": "string" - } - }, - "url": "/user/blocks/:username" - }, - "unfollow": { - "method": "DELETE", - "params": { - "username": { - "required": true, - "type": "string" - } - }, - "url": "/user/following/:username" - }, - "updateAuthenticated": { - "method": "PATCH", - "params": { - "bio": { - "type": "string" - }, - "blog": { - "type": "string" - }, - "company": { - "type": "string" - }, - "email": { - "type": "string" - }, - "hireable": { - "type": "boolean" - }, - "location": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "url": "/user" - } - } -} diff --git a/build/node_modules/@octokit/rest/plugins/validate/index.js b/build/node_modules/@octokit/rest/plugins/validate/index.js deleted file mode 100644 index 8951dee45..000000000 --- a/build/node_modules/@octokit/rest/plugins/validate/index.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = octokitValidate - -const validate = require('./validate') - -function octokitValidate (octokit) { - octokit.hook.before('request', validate) -} diff --git a/build/node_modules/@octokit/rest/plugins/validate/validate.js b/build/node_modules/@octokit/rest/plugins/validate/validate.js deleted file mode 100644 index 61e37a5f8..000000000 --- a/build/node_modules/@octokit/rest/plugins/validate/validate.js +++ /dev/null @@ -1,101 +0,0 @@ -'use strict' - -module.exports = validate - -const set = require('lodash.set') -const get = require('lodash.get') -const HttpError = require('@octokit/request/lib/http-error') - -function validate (options) { - if (!options.request.validate) { - return - } - - const { validate: params } = options.request - - Object.keys(params).forEach(parameterName => { - const parameter = get(params, parameterName) - const expectedType = parameter.type - let parentParameterName - let parentValue - let parentParamIsPresent = true - let parentParameterIsArray = false - - if (/\./.test(parameterName)) { - parentParameterName = parameterName.replace(/\.[^.]+$/, '') - parentParameterIsArray = parentParameterName.slice(-2) === '[]' - if (parentParameterIsArray) { - parentParameterName = parentParameterName.slice(0, -2) - } - parentValue = get(options, parentParameterName) - parentParamIsPresent = parentParameterName === 'headers' || (typeof parentValue === 'object' && parentValue !== null) - } - - let values = parentParameterIsArray - ? (get(options, parentParameterName) || []).map(value => value[parameterName.split(/\./).pop()]) - : [get(options, parameterName)] - - values.forEach((value, i) => { - const valueIsPresent = typeof value !== 'undefined' - const valueIsNull = value === null - const currentParameterName = parentParameterIsArray - ? parameterName.replace(/\[\]/, `[${i}]`) - : parameterName - - if (!parameter.required && !valueIsPresent) { - return - } - - // if the parent parameter is of type object but allows null - // then the child parameters can be ignored - if (!parentParamIsPresent) { - return - } - - if (parameter.allowNull && valueIsNull) { - return - } - - if (!parameter.allowNull && valueIsNull) { - throw new HttpError(`'${currentParameterName}' cannot be null`, 400) - } - - if (parameter.required && !valueIsPresent) { - throw new HttpError(`Empty value for parameter '${currentParameterName}': ${JSON.stringify(value)}`, 400) - } - - // parse to integer before checking for enum - // so that string "1" will match enum with number 1 - if (expectedType === 'integer') { - const unparsedValue = value - value = parseInt(value, 10) - if (isNaN(value)) { - throw new HttpError(`Invalid value for parameter '${currentParameterName}': ${JSON.stringify(unparsedValue)} is NaN`, 400) - } - } - - if (parameter.enum && parameter.enum.indexOf(value) === -1) { - throw new HttpError(`Invalid value for parameter '${currentParameterName}': ${JSON.stringify(value)}`, 400) - } - - if (parameter.validation) { - const regex = new RegExp(parameter.validation) - if (!regex.test(value)) { - throw new HttpError(`Invalid value for parameter '${currentParameterName}': ${JSON.stringify(value)}`, 400) - } - } - - if (expectedType === 'object' && typeof value === 'string') { - try { - value = JSON.parse(value) - } catch (exception) { - throw new HttpError(`JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify(value)}`, 400) - } - } - - set(options, parameter.mapTo || currentParameterName, value) - }) - }) - - return options -} diff --git a/build/node_modules/before-after-hook/LICENSE b/build/node_modules/before-after-hook/LICENSE deleted file mode 100644 index 225063c34..000000000 --- a/build/node_modules/before-after-hook/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018 Gregor Martynus and other contributors. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/build/node_modules/before-after-hook/README.md b/build/node_modules/before-after-hook/README.md deleted file mode 100644 index 3d3d5f3ea..000000000 --- a/build/node_modules/before-after-hook/README.md +++ /dev/null @@ -1,444 +0,0 @@ -# before-after-hook - -> asynchronous hooks for internal functionality - -[![Build Status](https://travis-ci.org/gr2m/before-after-hook.svg?branch=master)](https://travis-ci.org/gr2m/before-after-hook) -[![Coverage Status](https://coveralls.io/repos/gr2m/before-after-hook/badge.svg?branch=master)](https://coveralls.io/r/gr2m/before-after-hook?branch=master) -[![Greenkeeper badge](https://badges.greenkeeper.io/gr2m/before-after-hook.svg)](https://greenkeeper.io/) - -## Usage - -```js -// instantiate hook API -const hook = new Hook() - -// Create a hook -function getData (options) { - return hook('get', options, fetchFromDatabase) - .then(handleData) - .catch(handleGetError) -} - -// register before/error/after hooks. -// The methods can be async or return a promise -hook.before('get', beforeHook) -hook.error('get', errorHook) -hook.after('get', afterHook) - -getData({id: 123}) -``` - -The methods are executed in the following order - -1. `beforeHook` -2. `fetchFromDatabase` -3. `afterHook` -4. `getData` - -`beforeHook` can mutate `options` before it’s passed to `fetchFromDatabase`. - -If an error is thrown in `beforeHook` or `fetchFromDatabase` then `errorHook` is -called next. - -If `afterHook` throws an error then `handleGetError` is called instead -of `getData`. - -If `errorHook` throws an error then `handleGetError` is called next, otherwise -`afterHook` and `getData`. - -You can also use `hook.wrap` to achieve the same thing as shown above: - -```js -hook.wrap('get', async (getData, options) => { - await beforeHook(options) - - try { - const result = getData(options) - } catch (error) { - await errorHook(error, options) - } - - await afterHook(result, options) -}) -``` - -## Install - -``` -npm install before-after-hook -``` - -Or download [the latest `before-after-hook.min.js`](https://github.com/gr2m/before-after-hook/releases/latest). - -## API - -- [Constructor](#constructor) -- [hook.api](#hookapi) -- [hook()](#hook) -- [hook.before()](#hookbefore) -- [hook.error()](#hookerror) -- [hook.after()](#hookafter) -- [hook.wrap()](#hookwrap) -- [hook.remove()](#hookremove) - -### Constructor - -The `Hook` constructor has no options and returns a `hook` instance with the -methods below - -```js -const hook = new Hook() -``` - -### hook.api - -Use the `api` property to return the public API: - -- [hook.before()](#hookbefore) -- [hook.after()](#hookafter) -- [hook.error()](#hookerror) -- [hook.wrap()](#hookwrap) -- [hook.remove()](#hookremove) - -That way you don’t need to expose the [hook()](#hook) method to consumers of your library - -### hook() - -Invoke before and after hooks. Returns a promise. - -```js -hook(nameOrNames, [options,] method) -``` - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ArgumentTypeDescriptionRequired
nameString or Array of StringsHook name, for example 'save'. Or an array of names, see example below.Yes
optionsObjectWill be passed to all before hooks as reference, so they can mutate itNo, defaults to empty object ({})
methodFunctionCallback to be executed after all before hooks finished execution successfully. options is passed as first argumentYes
- -Resolves with whatever `method` returns or resolves with. -Rejects with error that is thrown or rejected with by - -1. Any of the before hooks, whichever rejects / throws first -2. `method` -3. Any of the after hooks, whichever rejects / throws first - -Simple Example - -```js -hook('save', record, function (record) { - return store.save(record) -}) -// shorter: hook('save', record, store.save) - -hook.before('save', function addTimestamps (record) { - const now = new Date().toISOString() - if (record.createdAt) { - record.updatedAt = now - } else { - record.createdAt = now - } -}) -``` - -Example defining multiple hooks at once. - -```js -hook(['add', 'save'], record, function (record) { - return store.save(record) -}) - -hook.before('add', function addTimestamps (record) { - if (!record.type) { - throw new Error('type property is required') - } -}) - -hook.before('save', function addTimestamps (record) { - if (!record.type) { - throw new Error('type property is required') - } -}) -``` - -Defining multiple hooks is helpful if you have similar methods for which you want to define separate hooks, but also an additional hook that gets called for all at once. The example above is equal to this: - -```js -hook('add', record, function (record) { - return hook('save', record, function (record) { - return store.save(record) - }) -}) -``` - -### hook.before() - -Add before hook for given name. Returns `hook` instance for chaining. - -```js -hook.before(name, method) -``` - - - - - - - - - - - - - - - - - - - - - - -
ArgumentTypeDescriptionRequired
nameStringHook name, for example 'save'Yes
methodFunction - Executed before the wrapped method. Called with the hook’s - options argument. Before hooks can mutate the passed options - before they are passed to the wrapped method. - Yes
- -Example - -```js -hook.before('save', function validate (record) { - if (!record.name) { - throw new Error('name property is required') - } -}) -``` - -### hook.error() - -Add error hook for given name. Returns `hook` instance for chaining. - -```js -hook.error(name, method) -``` - - - - - - - - - - - - - - - - - - - - - - -
ArgumentTypeDescriptionRequired
nameStringHook name, for example 'save'Yes
methodFunction - Executed when an error occurred in either the wrapped method or a - before hook. Called with the thrown error - and the hook’s options argument. The first method - which does not throw an error will set the result that the after hook - methods will receive. - Yes
- -Example - -```js -hook.error('save', function (error, options) { - if (error.ignore) return - throw error -}) -``` - -### hook.after() - -Add after hook for given name. Returns `hook` instance for chaining. - -```js -hook.after(name, method) -``` - - - - - - - - - - - - - - - - - - - - - - -
ArgumentTypeDescriptionRequired
nameStringHook name, for example 'save'Yes
methodFunction - Executed after wrapped method. Called with what the wrapped method - resolves with the hook’s options argument. - Yes
- -Example - -```js -hook.after('save', function (result, options) { - if (result.updatedAt) { - app.emit('update', result) - } else { - app.emit('create', result) - } -}) -``` - -### hook.wrap() - -Add wrap hook for given name. Returns `hook` instance for chaining. - -```js -hook.wrap(name, method) -``` - - - - - - - - - - - - - - - - - - - - - - -
ArgumentTypeDescriptionRequired
nameStringHook name, for example 'save'Yes
methodFunction - Receives both the wrapped method and the passed options as arguments so it can add logic before and after the wrapped method, it can handle errors and even replace the wrapped method altogether - Yes
- -Example - -```js -hook.wrap('save', async function (saveInDatabase, options) { - if (!record.name) { - throw new Error('name property is required') - } - - try { - const result = await saveInDatabase(options) - - if (result.updatedAt) { - app.emit('update', result) - } else { - app.emit('create', result) - } - - return result - } catch (error) { - if (error.ignore) return - throw error - } -}) -``` - -See also: [Test mock example](examples/test-mock-example.md) - -### hook.remove() - -Removes hook for given name. Returns `hook` instance for chaining. - -```js -hook.remove(name, hookMethod) -``` - - - - - - - - - - - - - - - - - - - - - - -
ArgumentTypeDescriptionRequired
nameStringHook name, for example 'save'Yes
beforeHookMethodFunction - Same function that was previously passed to hook.before(), hook.error(), hook.after() or hook.wrap() - Yes
- -Example - -```js -hook.remove('save', validateRecord) -``` - -## See also - -If `before-after-hook` is not for you, have a look at one of these alternatives: - -- https://github.com/keystonejs/grappling-hook -- https://github.com/sebelga/promised-hooks -- https://github.com/bnoguchi/hooks-js -- https://github.com/cb1kenobi/hook-emitter - -## License - -[Apache 2.0](LICENSE) diff --git a/build/node_modules/before-after-hook/index.js b/build/node_modules/before-after-hook/index.js deleted file mode 100644 index be349d8fa..000000000 --- a/build/node_modules/before-after-hook/index.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = Hook - -var register = require('./lib/register') -var addHook = require('./lib/add') -var removeHook = require('./lib/remove') - -function Hook () { - var state = { - registry: {} - } - - var hook = register.bind(null, state) - hook.api = { remove: removeHook.bind(null, state, null) } - hook.remove = removeHook.bind(null, state, null) - - ;['before', 'error', 'after', 'wrap'].forEach(function (kind) { - hook[kind] = hook.api[kind] = addHook.bind(null, state, kind) - hook.remove[kind] = hook.api.remove[kind] = removeHook.bind(null, state, kind) - }) - - return hook -} diff --git a/build/node_modules/before-after-hook/lib/add.js b/build/node_modules/before-after-hook/lib/add.js deleted file mode 100644 index a34e3f469..000000000 --- a/build/node_modules/before-after-hook/lib/add.js +++ /dev/null @@ -1,46 +0,0 @@ -module.exports = addHook - -function addHook (state, kind, name, hook) { - var orig = hook - if (!state.registry[name]) { - state.registry[name] = [] - } - - if (kind === 'before') { - hook = function (method, options) { - return Promise.resolve() - .then(orig.bind(null, options)) - .then(method.bind(null, options)) - } - } - - if (kind === 'after') { - hook = function (method, options) { - var result - return Promise.resolve() - .then(method.bind(null, options)) - .then(function (result_) { - result = result_ - return orig(result, options) - }) - .then(function () { - return result - }) - } - } - - if (kind === 'error') { - hook = function (method, options) { - return Promise.resolve() - .then(method.bind(null, options)) - .catch(function (error) { - return orig(error, options) - }) - } - } - - state.registry[name].push({ - hook: hook, - orig: orig - }) -} diff --git a/build/node_modules/before-after-hook/lib/register.js b/build/node_modules/before-after-hook/lib/register.js deleted file mode 100644 index 71f875147..000000000 --- a/build/node_modules/before-after-hook/lib/register.js +++ /dev/null @@ -1,29 +0,0 @@ -module.exports = register - -function register (state, name, options, method) { - if (arguments.length === 3) { - method = options - options = {} - } - - if (typeof method !== 'function') { - throw new Error('method for before hook must be a function') - } - - if (typeof options !== 'object') { - throw new Error('options for before hook must be an object') - } - - if (Array.isArray(name)) { - return name.reverse().reduce(function (callback, name) { - return register.bind(null, state, name, options, callback) - }, method)() - } - - return Promise.resolve() - .then(function () { - return (state.registry[name] || []).reduce(function (method, registered) { - return registered.hook.bind(null, method, options) - }, method)() - }) -} diff --git a/build/node_modules/before-after-hook/lib/remove.js b/build/node_modules/before-after-hook/lib/remove.js deleted file mode 100644 index 30df8d84e..000000000 --- a/build/node_modules/before-after-hook/lib/remove.js +++ /dev/null @@ -1,23 +0,0 @@ -module.exports = removeHook - -function removeHook (state, kind, name, method) { - if (kind) { - console.warn( - 'hook.remove.%s(name, method) is deprecated, use hook.remove(name, method)', - kind - ) - } - if (!state.registry[name]) { - return - } - - var index = state.registry[name] - .map(function (registered) { return registered.orig }) - .indexOf(method) - - if (index === -1) { - return - } - - state.registry[name].splice(index, 1) -} diff --git a/build/node_modules/before-after-hook/package.json b/build/node_modules/before-after-hook/package.json deleted file mode 100644 index e3c82d379..000000000 --- a/build/node_modules/before-after-hook/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "_from": "before-after-hook@^1.2.0", - "_id": "before-after-hook@1.2.0", - "_inBundle": false, - "_integrity": "sha512-wI3QtdLppHNkmM1VgRVLCrlWCKk/YexlPicYbXPs4eYdd1InrUCTFsx5bX1iUQzzMsoRXXPpM1r+p7JEJJydag==", - "_location": "/before-after-hook", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "before-after-hook@^1.2.0", - "name": "before-after-hook", - "escapedName": "before-after-hook", - "rawSpec": "^1.2.0", - "saveSpec": null, - "fetchSpec": "^1.2.0" - }, - "_requiredBy": [ - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-1.2.0.tgz", - "_shasum": "1079c10312cd4d4ad0d1676d37951ef8bfc3a563", - "_spec": "before-after-hook@^1.2.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "Gregor Martynus" - }, - "bugs": { - "url": "https://github.com/gr2m/before-after-hook/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "asynchronous before/error/after hooks for internal functionality", - "devDependencies": { - "browserify": "^16.0.0", - "gaze-cli": "^0.2.0", - "istanbul": "^0.4.0", - "istanbul-coveralls": "^1.0.3", - "mkdirp": "^0.5.1", - "rimraf": "^2.4.4", - "semantic-release": "^15.0.0", - "simple-mock": "^0.8.0", - "standard": "^12.0.1", - "tap-min": "^1.0.0", - "tap-spec": "^5.0.0", - "tape": "^4.2.2", - "uglify-js": "^3.0.0" - }, - "files": [ - "index.js", - "lib" - ], - "homepage": "https://github.com/gr2m/before-after-hook#readme", - "keywords": [ - "hook", - "hooks", - "api" - ], - "license": "Apache-2.0", - "name": "before-after-hook", - "release": { - "publish": [ - "@semantic-release/npm", - { - "path": "@semantic-release/github", - "assets": [ - "dist/*.js" - ] - } - ] - }, - "repository": { - "type": "git", - "url": "git+https://github.com/gr2m/before-after-hook.git" - }, - "scripts": { - "build": "browserify index.js --standalone=Hook > dist/before-after-hook.js", - "postbuild": "uglifyjs dist/before-after-hook.js -mc > dist/before-after-hook.min.js", - "prebuild": "rimraf dist && mkdirp dist", - "presemantic-release": "npm run build", - "pretest": "standard", - "semantic-release": "semantic-release", - "test": "npm run -s test:node | tap-spec", - "test:coverage": "istanbul cover test", - "test:coverage:upload": "istanbul-coveralls", - "test:node": "node test", - "test:watch": "gaze 'clear && node test | tap-min' 'test/**/*.js' 'index.js' 'lib/**/*.js'" - }, - "version": "1.2.0" -} diff --git a/build/node_modules/btoa-lite/.npmignore b/build/node_modules/btoa-lite/.npmignore deleted file mode 100644 index 50c74582d..000000000 --- a/build/node_modules/btoa-lite/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -node_modules -*.log -.DS_Store -bundle.js -test -test.js diff --git a/build/node_modules/btoa-lite/LICENSE.md b/build/node_modules/btoa-lite/LICENSE.md deleted file mode 100644 index ee27ba4b4..000000000 --- a/build/node_modules/btoa-lite/LICENSE.md +++ /dev/null @@ -1,18 +0,0 @@ -This software is released under the MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build/node_modules/btoa-lite/README.md b/build/node_modules/btoa-lite/README.md deleted file mode 100644 index e36492e9b..000000000 --- a/build/node_modules/btoa-lite/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# btoa-lite -![](http://img.shields.io/badge/stability-stable-orange.svg?style=flat) -![](http://img.shields.io/npm/v/btoa-lite.svg?style=flat) -![](http://img.shields.io/npm/dm/btoa-lite.svg?style=flat) -![](http://img.shields.io/npm/l/btoa-lite.svg?style=flat) - -Smallest/simplest possible means of using btoa with both Node and browserify. - -In the browser, encoding base64 strings is done using: - -``` javascript -var encoded = btoa(decoded) -``` - -However in Node, it's done like so: - -``` javascript -var encoded = new Buffer(decoded).toString('base64') -``` - -You can easily check if `Buffer` exists and switch between the approaches -accordingly, but using `Buffer` anywhere in your browser source will pull -in browserify's `Buffer` shim which is pretty hefty. This package uses -the `main` and `browser` fields in its `package.json` to perform this -check at build time and avoid pulling `Buffer` in unnecessarily. - -## Usage - -[![NPM](https://nodei.co/npm/btoa-lite.png)](https://nodei.co/npm/btoa-lite/) - -### `encoded = btoa(decoded)` - -Returns the base64-encoded value of a string. - -## License - -MIT. See [LICENSE.md](http://github.com/hughsk/btoa-lite/blob/master/LICENSE.md) for details. diff --git a/build/node_modules/btoa-lite/btoa-browser.js b/build/node_modules/btoa-lite/btoa-browser.js deleted file mode 100644 index 1b3acdbe2..000000000 --- a/build/node_modules/btoa-lite/btoa-browser.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = function _btoa(str) { - return btoa(str) -} diff --git a/build/node_modules/btoa-lite/btoa-node.js b/build/node_modules/btoa-lite/btoa-node.js deleted file mode 100644 index 0278470bb..000000000 --- a/build/node_modules/btoa-lite/btoa-node.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = function btoa(str) { - return new Buffer(str).toString('base64') -} diff --git a/build/node_modules/btoa-lite/package.json b/build/node_modules/btoa-lite/package.json deleted file mode 100644 index 86b4c6b55..000000000 --- a/build/node_modules/btoa-lite/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "_from": "btoa-lite@^1.0.0", - "_id": "btoa-lite@1.0.0", - "_inBundle": false, - "_integrity": "sha1-M3dm2hWAEhD92VbCLpxokaudAzc=", - "_location": "/btoa-lite", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "btoa-lite@^1.0.0", - "name": "btoa-lite", - "escapedName": "btoa-lite", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/btoa-lite/-/btoa-lite-1.0.0.tgz", - "_shasum": "337766da15801210fdd956c22e9c6891ab9d0337", - "_spec": "btoa-lite@^1.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "Hugh Kennedy", - "email": "hughskennedy@gmail.com", - "url": "http://hughsk.io/" - }, - "browser": "btoa-browser.js", - "bugs": { - "url": "https://github.com/hughsk/btoa-lite/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "Smallest/simplest possible means of using btoa with both Node and browserify", - "devDependencies": { - "browserify": "^10.2.4", - "smokestack": "^3.3.0", - "tap-spec": "^4.0.0", - "tape": "^4.0.0" - }, - "homepage": "https://github.com/hughsk/btoa-lite", - "keywords": [ - "btoa", - "base64", - "isomorphic", - "browser", - "node", - "shared" - ], - "license": "MIT", - "main": "btoa-node.js", - "name": "btoa-lite", - "repository": { - "type": "git", - "url": "git://github.com/hughsk/btoa-lite.git" - }, - "scripts": { - "test": "npm run test-node && npm run test-browser", - "test-browser": "browserify test | smokestack | tap-spec", - "test-node": "node test | tap-spec" - }, - "version": "1.0.0" -} diff --git a/build/node_modules/checkup/ChangeLog b/build/node_modules/checkup/ChangeLog deleted file mode 100644 index 1aa199bdc..000000000 --- a/build/node_modules/checkup/ChangeLog +++ /dev/null @@ -1,46 +0,0 @@ -2015.06.09, v1.3.0 - -feature: -- (check) throwError -> throw Error - - -2015.06.09, v1.2.1 - -fix: -- (check) throw Error -> throwError - - -2015.06.09, v1.2.0 - -feature: -- (check) crash process when error occure - - -2015.06.09, v1.1.0 - -fix: -- (chek) false positive when undefined in args - -feature: -- (check) add ability to take one parameter -- (package) v1.0.3 -- (check) scope -> global - - -2015.01.19, v1.0.3 - -fix: -- (chek) false positive when undefined in args - - -2014.11.24, v1.0.2 - -fix: -- (package) checkup -> node-checkup - - -2014.11.24, v1.0.1 - -fix: -- (checkup) Util -> check - diff --git a/build/node_modules/checkup/LICENSE b/build/node_modules/checkup/LICENSE deleted file mode 100644 index 7fc5b0ca6..000000000 --- a/build/node_modules/checkup/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 coderaiser - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build/node_modules/checkup/README.md b/build/node_modules/checkup/README.md deleted file mode 100644 index f9284d1cb..000000000 --- a/build/node_modules/checkup/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# Checkup - -Check arguments and if they wrong throw exeption. - -## Install - -``` -npm i chukup --save -``` - -## How to use? - -```js -var check = require('checkup'); - -function someFn(arg1, arg2, arg3) { - check({ - arg1: arg1, - arg2, arg2 - arg3: arg3 - }); -} - -function showName(name, callback) { - check(arguments, ['name']) - .check(arguments, ['callback']) - .type('name', name, 'string') - .type('callback', callback, 'function'); - - console.log('every thing is ok:', name); -} - -function callCallback(callback) { - check([callback], ['callback']) - .type('callback', callback, 'function'); - - callback(); -} - -``` - -## License - -MIT diff --git a/build/node_modules/checkup/lib/check.js b/build/node_modules/checkup/lib/check.js deleted file mode 100644 index de38578a6..000000000 --- a/build/node_modules/checkup/lib/check.js +++ /dev/null @@ -1,83 +0,0 @@ -(function(global) { - 'use strict'; - - if (typeof module === 'object' && module.exports) - module.exports = new checkProto(); - else if (!global.check) - global.check = new checkProto(); - - function checkProto() { - /** - * Check is all arguments with names present - * - * @param name - * @param arg - * @param type - */ - var check = function check(args, names) { - var template = ' could not be empty!'; - - if (names) - checkArray(args, names, template); - else - Object.keys(args).forEach(function(name) { - if (typeof args[name] === 'undefined') - throw Error(name + template); - }); - - return check; - }; - - function checkArray(args, names, template) { - var name, - isEmpty, - indexOf = Array.prototype.indexOf, - lenNames = names.length, - lenArgs = args.length, - lessArgs = lenArgs < lenNames, - emptyIndex = indexOf.call(args); - - if (~emptyIndex) - isEmpty = emptyIndex + 1 <= lenNames; - - if (lessArgs || isEmpty) { - if (lessArgs) - name = names[lenNames - 1]; - else - name = names[emptyIndex]; - - throw Error(name + template); - } - } - - check.check = check; - - /** - * Check is type of arg with name is equal to type - * - * @param name - * @param arg - * @param type - */ - check.type = function(name, arg, type) { - var is = getType(arg) === type; - - if (!is) - throw Error(name + ' should be ' + type); - - return check; - }; - - function getType(variable) { - var regExp = new RegExp('\\s([a-zA-Z]+)'), - str = {}.toString.call(variable), - typeBig = str.match(regExp)[1], - result = typeBig.toLowerCase(); - - return result; - } - - return check; - } - -})(this); diff --git a/build/node_modules/checkup/package.json b/build/node_modules/checkup/package.json deleted file mode 100644 index 1a289b684..000000000 --- a/build/node_modules/checkup/package.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "_from": "checkup@^1.3.0", - "_id": "checkup@1.3.0", - "_inBundle": false, - "_integrity": "sha1-04ACdv6l0PJH/8lRvnjIsC+ODXY=", - "_location": "/checkup", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "checkup@^1.3.0", - "name": "checkup", - "escapedName": "checkup", - "rawSpec": "^1.3.0", - "saveSpec": null, - "fetchSpec": "^1.3.0" - }, - "_requiredBy": [ - "/putasset" - ], - "_resolved": "https://registry.npmjs.org/checkup/-/checkup-1.3.0.tgz", - "_shasum": "d3800276fea5d0f247ffc951be78c8b02f8e0d76", - "_spec": "checkup@^1.3.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\putasset", - "author": { - "name": "coderaiser", - "email": "mnemonic.enemy@gmail.com", - "url": "https://github.com/coderaiser" - }, - "bugs": { - "url": "https://github.com/coderaiser/node-checkup/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "check arguments and if they wrong throw exeption", - "engines": { - "node": ">=0.8" - }, - "homepage": "http://github.com/coderaiser/node-checkup", - "license": "MIT", - "main": "lib/check.js", - "name": "checkup", - "repository": { - "type": "git", - "url": "git://github.com/coderaiser/node-checkup.git" - }, - "version": "1.3.0" -} diff --git a/build/node_modules/cross-spawn/CHANGELOG.md b/build/node_modules/cross-spawn/CHANGELOG.md deleted file mode 100644 index ded9620b1..000000000 --- a/build/node_modules/cross-spawn/CHANGELOG.md +++ /dev/null @@ -1,100 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - - -## [6.0.5](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.4...v6.0.5) (2018-03-02) - - -### Bug Fixes - -* avoid using deprecated Buffer constructor ([#94](https://github.com/moxystudio/node-cross-spawn/issues/94)) ([d5770df](https://github.com/moxystudio/node-cross-spawn/commit/d5770df)), closes [/nodejs.org/api/deprecations.html#deprecations_dep0005](https://github.com//nodejs.org/api/deprecations.html/issues/deprecations_dep0005) - - - - -## [6.0.4](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.3...v6.0.4) (2018-01-31) - - -### Bug Fixes - -* fix paths being incorrectly normalized on unix ([06ee3c6](https://github.com/moxystudio/node-cross-spawn/commit/06ee3c6)), closes [#90](https://github.com/moxystudio/node-cross-spawn/issues/90) - - - - -## [6.0.3](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.2...v6.0.3) (2018-01-23) - - - - -## [6.0.2](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.1...v6.0.2) (2018-01-23) - - - - -## [6.0.1](https://github.com/moxystudio/node-cross-spawn/compare/v6.0.0...v6.0.1) (2018-01-23) - - - - -# [6.0.0](https://github.com/moxystudio/node-cross-spawn/compare/5.1.0...6.0.0) (2018-01-23) - - -### Bug Fixes - -* fix certain arguments not being correctly escaped or causing batch syntax error ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)), closes [#82](https://github.com/moxystudio/node-cross-spawn/issues/82) [#51](https://github.com/moxystudio/node-cross-spawn/issues/51) -* fix commands as posix relatixe paths not working correctly, e.g.: `./my-command` ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) -* fix `options` argument being mutated ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) -* fix commands resolution when PATH was actually Path ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) - - -### Features - -* improve compliance with node's ENOENT errors ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) -* improve detection of node's shell option support ([900cf10](https://github.com/moxystudio/node-cross-spawn/commit/900cf10)) - - -### Chores - -* upgrade tooling -* upgrate project to es6 (node v4) - - -### BREAKING CHANGES - -* remove support for older nodejs versions, only `node >= 4` is supported - - - -## [5.1.0](https://github.com/moxystudio/node-cross-spawn/compare/5.0.1...5.1.0) (2017-02-26) - - -### Bug Fixes - -* fix `options.shell` support for NodeJS [v4.8](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V4.md#4.8.0) - - - -## [5.0.1](https://github.com/moxystudio/node-cross-spawn/compare/5.0.0...5.0.1) (2016-11-04) - - -### Bug Fixes - -* fix `options.shell` support for NodeJS v7 - - - -# [5.0.0](https://github.com/moxystudio/node-cross-spawn/compare/4.0.2...5.0.0) (2016-10-30) - - -## Features - -* add support for `options.shell` -* improve parsing of shebangs by using [`shebang-command`](https://github.com/kevva/shebang-command) module - - -## Chores - -* refactor some code to make it more clear -* update README caveats diff --git a/build/node_modules/cross-spawn/LICENSE b/build/node_modules/cross-spawn/LICENSE deleted file mode 100644 index 8407b9a30..000000000 --- a/build/node_modules/cross-spawn/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Made With MOXY Lda - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/cross-spawn/README.md b/build/node_modules/cross-spawn/README.md deleted file mode 100644 index e895cd7a7..000000000 --- a/build/node_modules/cross-spawn/README.md +++ /dev/null @@ -1,94 +0,0 @@ -# cross-spawn - -[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Build status][appveyor-image]][appveyor-url] [![Coverage Status][codecov-image]][codecov-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url] [![Greenkeeper badge][greenkeeper-image]][greenkeeper-url] - -[npm-url]:https://npmjs.org/package/cross-spawn -[downloads-image]:http://img.shields.io/npm/dm/cross-spawn.svg -[npm-image]:http://img.shields.io/npm/v/cross-spawn.svg -[travis-url]:https://travis-ci.org/moxystudio/node-cross-spawn -[travis-image]:http://img.shields.io/travis/moxystudio/node-cross-spawn/master.svg -[appveyor-url]:https://ci.appveyor.com/project/satazor/node-cross-spawn -[appveyor-image]:https://img.shields.io/appveyor/ci/satazor/node-cross-spawn/master.svg -[codecov-url]:https://codecov.io/gh/moxystudio/node-cross-spawn -[codecov-image]:https://img.shields.io/codecov/c/github/moxystudio/node-cross-spawn/master.svg -[david-dm-url]:https://david-dm.org/moxystudio/node-cross-spawn -[david-dm-image]:https://img.shields.io/david/moxystudio/node-cross-spawn.svg -[david-dm-dev-url]:https://david-dm.org/moxystudio/node-cross-spawn?type=dev -[david-dm-dev-image]:https://img.shields.io/david/dev/moxystudio/node-cross-spawn.svg -[greenkeeper-image]:https://badges.greenkeeper.io/moxystudio/node-cross-spawn.svg -[greenkeeper-url]:https://greenkeeper.io/ - -A cross platform solution to node's spawn and spawnSync. - - -## Installation - -`$ npm install cross-spawn` - - -## Why - -Node has issues when using spawn on Windows: - -- It ignores [PATHEXT](https://github.com/joyent/node/issues/2318) -- It does not support [shebangs](https://en.wikipedia.org/wiki/Shebang_(Unix)) -- Has problems running commands with [spaces](https://github.com/nodejs/node/issues/7367) -- Has problems running commands with posix relative paths (e.g.: `./my-folder/my-executable`) -- Has an [issue](https://github.com/moxystudio/node-cross-spawn/issues/82) with command shims (files in `node_modules/.bin/`), where arguments with quotes and parenthesis would result in [invalid syntax error](https://github.com/moxystudio/node-cross-spawn/blob/e77b8f22a416db46b6196767bcd35601d7e11d54/test/index.test.js#L149) -- No `options.shell` support on node `` where `` must not contain any arguments. -If you would like to have the shebang support improved, feel free to contribute via a pull-request. - -Remember to always test your code on Windows! - - -## Tests - -`$ npm test` -`$ npm test -- --watch` during development - -## License - -Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php). diff --git a/build/node_modules/cross-spawn/index.js b/build/node_modules/cross-spawn/index.js deleted file mode 100644 index 5509742ca..000000000 --- a/build/node_modules/cross-spawn/index.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; - -const cp = require('child_process'); -const parse = require('./lib/parse'); -const enoent = require('./lib/enoent'); - -function spawn(command, args, options) { - // Parse the arguments - const parsed = parse(command, args, options); - - // Spawn the child process - const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); - - // Hook into child process "exit" event to emit an error if the command - // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 - enoent.hookChildProcess(spawned, parsed); - - return spawned; -} - -function spawnSync(command, args, options) { - // Parse the arguments - const parsed = parse(command, args, options); - - // Spawn the child process - const result = cp.spawnSync(parsed.command, parsed.args, parsed.options); - - // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 - result.error = result.error || enoent.verifyENOENTSync(result.status, parsed); - - return result; -} - -module.exports = spawn; -module.exports.spawn = spawn; -module.exports.sync = spawnSync; - -module.exports._parse = parse; -module.exports._enoent = enoent; diff --git a/build/node_modules/cross-spawn/lib/enoent.js b/build/node_modules/cross-spawn/lib/enoent.js deleted file mode 100644 index 14df9b623..000000000 --- a/build/node_modules/cross-spawn/lib/enoent.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; - -const isWin = process.platform === 'win32'; - -function notFoundError(original, syscall) { - return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), { - code: 'ENOENT', - errno: 'ENOENT', - syscall: `${syscall} ${original.command}`, - path: original.command, - spawnargs: original.args, - }); -} - -function hookChildProcess(cp, parsed) { - if (!isWin) { - return; - } - - const originalEmit = cp.emit; - - cp.emit = function (name, arg1) { - // If emitting "exit" event and exit code is 1, we need to check if - // the command exists and emit an "error" instead - // See https://github.com/IndigoUnited/node-cross-spawn/issues/16 - if (name === 'exit') { - const err = verifyENOENT(arg1, parsed, 'spawn'); - - if (err) { - return originalEmit.call(cp, 'error', err); - } - } - - return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params - }; -} - -function verifyENOENT(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, 'spawn'); - } - - return null; -} - -function verifyENOENTSync(status, parsed) { - if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, 'spawnSync'); - } - - return null; -} - -module.exports = { - hookChildProcess, - verifyENOENT, - verifyENOENTSync, - notFoundError, -}; diff --git a/build/node_modules/cross-spawn/lib/parse.js b/build/node_modules/cross-spawn/lib/parse.js deleted file mode 100644 index 962827a94..000000000 --- a/build/node_modules/cross-spawn/lib/parse.js +++ /dev/null @@ -1,125 +0,0 @@ -'use strict'; - -const path = require('path'); -const niceTry = require('nice-try'); -const resolveCommand = require('./util/resolveCommand'); -const escape = require('./util/escape'); -const readShebang = require('./util/readShebang'); -const semver = require('semver'); - -const isWin = process.platform === 'win32'; -const isExecutableRegExp = /\.(?:com|exe)$/i; -const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; - -// `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0 -const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false; - -function detectShebang(parsed) { - parsed.file = resolveCommand(parsed); - - const shebang = parsed.file && readShebang(parsed.file); - - if (shebang) { - parsed.args.unshift(parsed.file); - parsed.command = shebang; - - return resolveCommand(parsed); - } - - return parsed.file; -} - -function parseNonShell(parsed) { - if (!isWin) { - return parsed; - } - - // Detect & add support for shebangs - const commandFile = detectShebang(parsed); - - // We don't need a shell if the command filename is an executable - const needsShell = !isExecutableRegExp.test(commandFile); - - // If a shell is required, use cmd.exe and take care of escaping everything correctly - // Note that `forceShell` is an hidden option used only in tests - if (parsed.options.forceShell || needsShell) { - // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/` - // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument - // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called, - // we need to double escape them - const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); - - // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar) - // This is necessary otherwise it will always fail with ENOENT in those cases - parsed.command = path.normalize(parsed.command); - - // Escape command & arguments - parsed.command = escape.command(parsed.command); - parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars)); - - const shellCommand = [parsed.command].concat(parsed.args).join(' '); - - parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; - parsed.command = process.env.comspec || 'cmd.exe'; - parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped - } - - return parsed; -} - -function parseShell(parsed) { - // If node supports the shell option, there's no need to mimic its behavior - if (supportsShellOption) { - return parsed; - } - - // Mimic node shell option - // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335 - const shellCommand = [parsed.command].concat(parsed.args).join(' '); - - if (isWin) { - parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe'; - parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; - parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped - } else { - if (typeof parsed.options.shell === 'string') { - parsed.command = parsed.options.shell; - } else if (process.platform === 'android') { - parsed.command = '/system/bin/sh'; - } else { - parsed.command = '/bin/sh'; - } - - parsed.args = ['-c', shellCommand]; - } - - return parsed; -} - -function parse(command, args, options) { - // Normalize arguments, similar to nodejs - if (args && !Array.isArray(args)) { - options = args; - args = null; - } - - args = args ? args.slice(0) : []; // Clone array to avoid changing the original - options = Object.assign({}, options); // Clone object to avoid changing the original - - // Build our parsed object - const parsed = { - command, - args, - options, - file: undefined, - original: { - command, - args, - }, - }; - - // Delegate further parsing to shell or non-shell - return options.shell ? parseShell(parsed) : parseNonShell(parsed); -} - -module.exports = parse; diff --git a/build/node_modules/cross-spawn/lib/util/escape.js b/build/node_modules/cross-spawn/lib/util/escape.js deleted file mode 100644 index b0bb84c3a..000000000 --- a/build/node_modules/cross-spawn/lib/util/escape.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; - -// See http://www.robvanderwoude.com/escapechars.php -const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; - -function escapeCommand(arg) { - // Escape meta chars - arg = arg.replace(metaCharsRegExp, '^$1'); - - return arg; -} - -function escapeArgument(arg, doubleEscapeMetaChars) { - // Convert to string - arg = `${arg}`; - - // Algorithm below is based on https://qntm.org/cmd - - // Sequence of backslashes followed by a double quote: - // double up all the backslashes and escape the double quote - arg = arg.replace(/(\\*)"/g, '$1$1\\"'); - - // Sequence of backslashes followed by the end of the string - // (which will become a double quote later): - // double up all the backslashes - arg = arg.replace(/(\\*)$/, '$1$1'); - - // All other backslashes occur literally - - // Quote the whole thing: - arg = `"${arg}"`; - - // Escape meta chars - arg = arg.replace(metaCharsRegExp, '^$1'); - - // Double escape meta chars if necessary - if (doubleEscapeMetaChars) { - arg = arg.replace(metaCharsRegExp, '^$1'); - } - - return arg; -} - -module.exports.command = escapeCommand; -module.exports.argument = escapeArgument; diff --git a/build/node_modules/cross-spawn/lib/util/readShebang.js b/build/node_modules/cross-spawn/lib/util/readShebang.js deleted file mode 100644 index bd4f1280c..000000000 --- a/build/node_modules/cross-spawn/lib/util/readShebang.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -const fs = require('fs'); -const shebangCommand = require('shebang-command'); - -function readShebang(command) { - // Read the first 150 bytes from the file - const size = 150; - let buffer; - - if (Buffer.alloc) { - // Node.js v4.5+ / v5.10+ - buffer = Buffer.alloc(size); - } else { - // Old Node.js API - buffer = new Buffer(size); - buffer.fill(0); // zero-fill - } - - let fd; - - try { - fd = fs.openSync(command, 'r'); - fs.readSync(fd, buffer, 0, size, 0); - fs.closeSync(fd); - } catch (e) { /* Empty */ } - - // Attempt to extract shebang (null is returned if not a shebang) - return shebangCommand(buffer.toString()); -} - -module.exports = readShebang; diff --git a/build/node_modules/cross-spawn/lib/util/resolveCommand.js b/build/node_modules/cross-spawn/lib/util/resolveCommand.js deleted file mode 100644 index 2fd5ad270..000000000 --- a/build/node_modules/cross-spawn/lib/util/resolveCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict'; - -const path = require('path'); -const which = require('which'); -const pathKey = require('path-key')(); - -function resolveCommandAttempt(parsed, withoutPathExt) { - const cwd = process.cwd(); - const hasCustomCwd = parsed.options.cwd != null; - - // If a custom `cwd` was specified, we need to change the process cwd - // because `which` will do stat calls but does not support a custom cwd - if (hasCustomCwd) { - try { - process.chdir(parsed.options.cwd); - } catch (err) { - /* Empty */ - } - } - - let resolved; - - try { - resolved = which.sync(parsed.command, { - path: (parsed.options.env || process.env)[pathKey], - pathExt: withoutPathExt ? path.delimiter : undefined, - }); - } catch (e) { - /* Empty */ - } finally { - process.chdir(cwd); - } - - // If we successfully resolved, ensure that an absolute path is returned - // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it - if (resolved) { - resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved); - } - - return resolved; -} - -function resolveCommand(parsed) { - return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true); -} - -module.exports = resolveCommand; diff --git a/build/node_modules/cross-spawn/package.json b/build/node_modules/cross-spawn/package.json deleted file mode 100644 index fe31b9dec..000000000 --- a/build/node_modules/cross-spawn/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "_from": "cross-spawn@^6.0.0", - "_id": "cross-spawn@6.0.5", - "_inBundle": false, - "_integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "_location": "/cross-spawn", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "cross-spawn@^6.0.0", - "name": "cross-spawn", - "escapedName": "cross-spawn", - "rawSpec": "^6.0.0", - "saveSpec": null, - "fetchSpec": "^6.0.0" - }, - "_requiredBy": [ - "/execa" - ], - "_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "_shasum": "4a5ec7c64dfae22c3a14124dbacdee846d80cbc4", - "_spec": "cross-spawn@^6.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\execa", - "author": { - "name": "André Cruz", - "email": "andre@moxy.studio" - }, - "bugs": { - "url": "https://github.com/moxystudio/node-cross-spawn/issues" - }, - "bundleDependencies": false, - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ] - }, - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "deprecated": false, - "description": "Cross platform child_process#spawn and child_process#spawnSync", - "devDependencies": { - "@commitlint/cli": "^6.0.0", - "@commitlint/config-conventional": "^6.0.2", - "babel-core": "^6.26.0", - "babel-jest": "^22.1.0", - "babel-preset-moxy": "^2.2.1", - "eslint": "^4.3.0", - "eslint-config-moxy": "^5.0.0", - "husky": "^0.14.3", - "jest": "^22.0.0", - "lint-staged": "^7.0.0", - "mkdirp": "^0.5.1", - "regenerator-runtime": "^0.11.1", - "rimraf": "^2.6.2", - "standard-version": "^4.2.0" - }, - "engines": { - "node": ">=4.8" - }, - "files": [ - "lib" - ], - "homepage": "https://github.com/moxystudio/node-cross-spawn", - "keywords": [ - "spawn", - "spawnSync", - "windows", - "cross-platform", - "path-ext", - "shebang", - "cmd", - "execute" - ], - "license": "MIT", - "lint-staged": { - "*.js": [ - "eslint --fix", - "git add" - ] - }, - "main": "index.js", - "name": "cross-spawn", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/moxystudio/node-cross-spawn.git" - }, - "scripts": { - "commitmsg": "commitlint -e $GIT_PARAMS", - "lint": "eslint .", - "precommit": "lint-staged", - "prerelease": "npm t && npm run lint", - "release": "standard-version", - "test": "jest --env node --coverage" - }, - "standard-version": { - "scripts": { - "posttag": "git push --follow-tags origin master && npm publish" - } - }, - "version": "6.0.5" -} diff --git a/build/node_modules/deepmerge/changelog.md b/build/node_modules/deepmerge/changelog.md deleted file mode 100644 index dc4098c47..000000000 --- a/build/node_modules/deepmerge/changelog.md +++ /dev/null @@ -1,113 +0,0 @@ -# [3.0.0](https://github.com/KyleAMathews/deepmerge/releases/tag/v3.0.0) - -- drop ES module build [#123](https://github.com/KyleAMathews/deepmerge/issues/123) - -# [2.2.1](https://github.com/KyleAMathews/deepmerge/releases/tag/v2.2.1) - -- bug: typescript export type was wrong [#121](https://github.com/KyleAMathews/deepmerge/pull/121) - -# [2.2.0](https://github.com/KyleAMathews/deepmerge/releases/tag/v2.2.0) - -- feature: added TypeScript typings [#119](https://github.com/KyleAMathews/deepmerge/pull/119) - -# [2.1.1](https://github.com/KyleAMathews/deepmerge/releases/tag/v2.1.1) - -- documentation: Rename "methods" to "api", note ESM syntax [#103](https://github.com/KyleAMathews/deepmerge/pull/103) -- documentation: Fix grammar [#107](https://github.com/KyleAMathews/deepmerge/pull/107) -- documentation: Restructure headers for clarity + some wording tweaks [108](https://github.com/KyleAMathews/deepmerge/pull/108) + [109](https://github.com/KyleAMathews/deepmerge/pull/109) - - -# [2.1.0](https://github.com/KyleAMathews/deepmerge/releases/tag/v2.1.0) - -- feature: Support a custom `isMergeableObject` function [#96](https://github.com/KyleAMathews/deepmerge/pull/96) -- documentation: note a Webpack bug that some users might need to work around [#100](https://github.com/KyleAMathews/deepmerge/pull/100) - -# [2.0.1](https://github.com/KyleAMathews/deepmerge/releases/tag/v2.0.1) - -- documentation: fix the old array merge algorithm in the readme. [#84](https://github.com/KyleAMathews/deepmerge/pull/84) - -# [2.0.0](https://github.com/KyleAMathews/deepmerge/releases/tag/v2.0.0) - -- breaking: the array merge algorithm has changed from a complicated thing to `target.concat(source).map(element => cloneUnlessOtherwiseSpecified(element, optionsArgument))` -- breaking: The `clone` option now defaults to `true` -- feature: `merge.all` now accepts an array of any size, even 0 or 1 elements - -See [pull request 77](https://github.com/KyleAMathews/deepmerge/pull/77). - -# [1.5.2](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.5.2) - -- fix: no longer attempts to merge React elements [#76](https://github.com/KyleAMathews/deepmerge/issues/76) - -# [1.5.1](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.5.1) - -- bower support: officially dropping bower support. If you use bower, please depend on the [unpkg distribution](https://unpkg.com/deepmerge/dist/umd.js). See [#63](https://github.com/KyleAMathews/deepmerge/issues/63) - -# [1.5.0](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.5.0) - -- bug fix: merging objects into arrays was allowed, and doesn't make any sense. [#65](https://github.com/KyleAMathews/deepmerge/issues/65) published as a feature release instead of a patch because it is a decent behavior change. - -# [1.4.4](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.4.4) - -- bower support: updated `main` in bower.json - -# [1.4.3](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.4.3) - -- bower support: inline is-mergeable-object in a new CommonJS build, so that people using both bower and CommonJS can bundle the library [0b34e6](https://github.com/KyleAMathews/deepmerge/commit/0b34e6e95f989f2fc8091d25f0d291c08f3d2d24) - -# [1.4.2](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.4.2) - -- performance: bump is-mergeable-object dependency version for a slight performance improvement [5906c7](https://github.com/KyleAMathews/deepmerge/commit/5906c765d691d48e83d76efbb0d4b9ca150dc12c) - -# [1.4.1](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.4.1) - -- documentation: fix unpkg link [acc45b](https://github.com/KyleAMathews/deepmerge/commit/acc45be85519c1df906a72ecb24764b622d18d47) - -# [1.4.0](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.4.0) - -- api: instead of only exporting a UMD module, expose a UMD module with `pkg.main`, a CJS module with `pkg.browser`, and an ES module with `pkg.module` [#62](https://github.com/KyleAMathews/deepmerge/pull/62) - -# [1.3.2](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.3.2) - -- documentation: note the minified/gzipped file sizes [56](https://github.com/KyleAMathews/deepmerge/pull/56) -- documentation: make data structures more readable in merge example: pull request [57](https://github.com/KyleAMathews/deepmerge/pull/57) - -# [1.3.1](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.3.1) - -- documentation: clarify and test some array merging documentation: pull request [51](https://github.com/KyleAMathews/deepmerge/pull/51) - -# [1.3.0](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.3.0) - -- feature: `merge.all`, a merge function that merges any number of objects: pull request [50](https://github.com/KyleAMathews/deepmerge/pull/50) - -# [1.2.0](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.2.0) - -- fix: an error that would be thrown when an array would be merged onto a truthy non-array value: pull request [46](https://github.com/KyleAMathews/deepmerge/pull/46) -- feature: the ability to clone: Issue [28](https://github.com/KyleAMathews/deepmerge/issues/28), pull requests [44](https://github.com/KyleAMathews/deepmerge/pull/44) and [48](https://github.com/KyleAMathews/deepmerge/pull/48) -- maintenance: added tests + travis to `.npmignore`: pull request [47](https://github.com/KyleAMathews/deepmerge/pull/47) - -# [1.1.1](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.1.1) - -- fix an issue where an error was thrown when merging an array onto a non-array: [Pull request 46](https://github.com/KyleAMathews/deepmerge/pull/46) - -# [1.1.0](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.1.0) - -- allow consumers to specify their own array merging algorithm: [Pull request 37](https://github.com/KyleAMathews/deepmerge/pull/37) - -# [1.0.3](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.0.3) - -- adding bower.json back: [Issue 38](https://github.com/KyleAMathews/deepmerge/pull/38) -- updating keywords and Github links in package.json [bc3898e](https://github.com/KyleAMathews/deepmerge/commit/bc3898e587a56f74591328f40f656b0152c1d5eb) - -# [1.0.2](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.0.2) - -- Updating the readme: dropping bower, testing that the example works: [7102fc](https://github.com/KyleAMathews/deepmerge/commit/7102fcc4ddec11e2d33205866f9f18df14e5aeb5) - -# [1.0.1](https://github.com/KyleAMathews/deepmerge/releases/tag/v1.0.1) - -- `null`, dates, and regular expressions are now properly merged in arrays: [Issue 18](https://github.com/KyleAMathews/deepmerge/pull/18), plus commit: [ef1c6b](https://github.com/KyleAMathews/deepmerge/commit/ef1c6bac8350ba12a24966f0bc7da02560827586) - -# 1.0.0 - -- Should only be a patch change, because this module is READY. [Issue 15](https://github.com/KyleAMathews/deepmerge/issues/15) -- Regular expressions are now treated like primitive values when merging: [Issue 30](https://github.com/KyleAMathews/deepmerge/pull/30) -- Dates are now treated like primitives when merging: [Issue 31](https://github.com/KyleAMathews/deepmerge/issues/31) diff --git a/build/node_modules/deepmerge/dist/es.js b/build/node_modules/deepmerge/dist/es.js deleted file mode 100644 index c7c62253d..000000000 --- a/build/node_modules/deepmerge/dist/es.js +++ /dev/null @@ -1,89 +0,0 @@ -var isMergeableObject = function isMergeableObject(value) { - return isNonNullObject(value) - && !isSpecial(value) -}; - -function isNonNullObject(value) { - return !!value && typeof value === 'object' -} - -function isSpecial(value) { - var stringValue = Object.prototype.toString.call(value); - - return stringValue === '[object RegExp]' - || stringValue === '[object Date]' - || isReactElement(value) -} - -// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 -var canUseSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; - -function isReactElement(value) { - return value.$$typeof === REACT_ELEMENT_TYPE -} - -function emptyTarget(val) { - return Array.isArray(val) ? [] : {} -} - -function cloneUnlessOtherwiseSpecified(value, options) { - return (options.clone !== false && options.isMergeableObject(value)) - ? deepmerge(emptyTarget(value), value, options) - : value -} - -function defaultArrayMerge(target, source, options) { - return target.concat(source).map(function(element) { - return cloneUnlessOtherwiseSpecified(element, options) - }) -} - -function mergeObject(target, source, options) { - var destination = {}; - if (options.isMergeableObject(target)) { - Object.keys(target).forEach(function(key) { - destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); - }); - } - Object.keys(source).forEach(function(key) { - if (!options.isMergeableObject(source[key]) || !target[key]) { - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); - } else { - destination[key] = deepmerge(target[key], source[key], options); - } - }); - return destination -} - -function deepmerge(target, source, options) { - options = options || {}; - options.arrayMerge = options.arrayMerge || defaultArrayMerge; - options.isMergeableObject = options.isMergeableObject || isMergeableObject; - - var sourceIsArray = Array.isArray(source); - var targetIsArray = Array.isArray(target); - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; - - if (!sourceAndTargetTypesMatch) { - return cloneUnlessOtherwiseSpecified(source, options) - } else if (sourceIsArray) { - return options.arrayMerge(target, source, options) - } else { - return mergeObject(target, source, options) - } -} - -deepmerge.all = function deepmergeAll(array, options) { - if (!Array.isArray(array)) { - throw new Error('first argument should be an array') - } - - return array.reduce(function(prev, next) { - return deepmerge(prev, next, options) - }, {}) -}; - -var deepmerge_1 = deepmerge; - -export default deepmerge_1; diff --git a/build/node_modules/deepmerge/dist/umd.js b/build/node_modules/deepmerge/dist/umd.js deleted file mode 100644 index 172344d70..000000000 --- a/build/node_modules/deepmerge/dist/umd.js +++ /dev/null @@ -1,97 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global.deepmerge = factory()); -}(this, (function () { 'use strict'; - -var isMergeableObject = function isMergeableObject(value) { - return isNonNullObject(value) - && !isSpecial(value) -}; - -function isNonNullObject(value) { - return !!value && typeof value === 'object' -} - -function isSpecial(value) { - var stringValue = Object.prototype.toString.call(value); - - return stringValue === '[object RegExp]' - || stringValue === '[object Date]' - || isReactElement(value) -} - -// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 -var canUseSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; - -function isReactElement(value) { - return value.$$typeof === REACT_ELEMENT_TYPE -} - -function emptyTarget(val) { - return Array.isArray(val) ? [] : {} -} - -function cloneUnlessOtherwiseSpecified(value, options) { - return (options.clone !== false && options.isMergeableObject(value)) - ? deepmerge(emptyTarget(value), value, options) - : value -} - -function defaultArrayMerge(target, source, options) { - return target.concat(source).map(function(element) { - return cloneUnlessOtherwiseSpecified(element, options) - }) -} - -function mergeObject(target, source, options) { - var destination = {}; - if (options.isMergeableObject(target)) { - Object.keys(target).forEach(function(key) { - destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); - }); - } - Object.keys(source).forEach(function(key) { - if (!options.isMergeableObject(source[key]) || !target[key]) { - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); - } else { - destination[key] = deepmerge(target[key], source[key], options); - } - }); - return destination -} - -function deepmerge(target, source, options) { - options = options || {}; - options.arrayMerge = options.arrayMerge || defaultArrayMerge; - options.isMergeableObject = options.isMergeableObject || isMergeableObject; - - var sourceIsArray = Array.isArray(source); - var targetIsArray = Array.isArray(target); - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; - - if (!sourceAndTargetTypesMatch) { - return cloneUnlessOtherwiseSpecified(source, options) - } else if (sourceIsArray) { - return options.arrayMerge(target, source, options) - } else { - return mergeObject(target, source, options) - } -} - -deepmerge.all = function deepmergeAll(array, options) { - if (!Array.isArray(array)) { - throw new Error('first argument should be an array') - } - - return array.reduce(function(prev, next) { - return deepmerge(prev, next, options) - }, {}) -}; - -var deepmerge_1 = deepmerge; - -return deepmerge_1; - -}))); diff --git a/build/node_modules/deepmerge/index.d.ts b/build/node_modules/deepmerge/index.d.ts deleted file mode 100644 index 844ec1d1f..000000000 --- a/build/node_modules/deepmerge/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T; -declare function deepmerge(x: Partial, y: Partial, options?: deepmerge.Options): T1 & T2; - -declare namespace deepmerge { - export interface Options { - arrayMerge?(target: any[], source: any[], options?: Options): any[]; - clone?: boolean; - isMergeableObject?(value: object): boolean; - } - - export function all (objects: object[], options?: Options): object; -} - -export = deepmerge; diff --git a/build/node_modules/deepmerge/index.js b/build/node_modules/deepmerge/index.js deleted file mode 100644 index e4e6c5d2a..000000000 --- a/build/node_modules/deepmerge/index.js +++ /dev/null @@ -1,64 +0,0 @@ -var defaultIsMergeableObject = require('is-mergeable-object') - -function emptyTarget(val) { - return Array.isArray(val) ? [] : {} -} - -function cloneUnlessOtherwiseSpecified(value, options) { - return (options.clone !== false && options.isMergeableObject(value)) - ? deepmerge(emptyTarget(value), value, options) - : value -} - -function defaultArrayMerge(target, source, options) { - return target.concat(source).map(function(element) { - return cloneUnlessOtherwiseSpecified(element, options) - }) -} - -function mergeObject(target, source, options) { - var destination = {} - if (options.isMergeableObject(target)) { - Object.keys(target).forEach(function(key) { - destination[key] = cloneUnlessOtherwiseSpecified(target[key], options) - }) - } - Object.keys(source).forEach(function(key) { - if (!options.isMergeableObject(source[key]) || !target[key]) { - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options) - } else { - destination[key] = deepmerge(target[key], source[key], options) - } - }) - return destination -} - -function deepmerge(target, source, options) { - options = options || {} - options.arrayMerge = options.arrayMerge || defaultArrayMerge - options.isMergeableObject = options.isMergeableObject || defaultIsMergeableObject - - var sourceIsArray = Array.isArray(source) - var targetIsArray = Array.isArray(target) - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray - - if (!sourceAndTargetTypesMatch) { - return cloneUnlessOtherwiseSpecified(source, options) - } else if (sourceIsArray) { - return options.arrayMerge(target, source, options) - } else { - return mergeObject(target, source, options) - } -} - -deepmerge.all = function deepmergeAll(array, options) { - if (!Array.isArray(array)) { - throw new Error('first argument should be an array') - } - - return array.reduce(function(prev, next) { - return deepmerge(prev, next, options) - }, {}) -} - -module.exports = deepmerge diff --git a/build/node_modules/deepmerge/license.txt b/build/node_modules/deepmerge/license.txt deleted file mode 100644 index be42284b7..000000000 --- a/build/node_modules/deepmerge/license.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2012 Nicholas Fisher - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/deepmerge/package.json b/build/node_modules/deepmerge/package.json deleted file mode 100644 index 0ab0e0791..000000000 --- a/build/node_modules/deepmerge/package.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "_from": "deepmerge@3.0.0", - "_id": "deepmerge@3.0.0", - "_inBundle": false, - "_integrity": "sha512-a8z8bkgHsAML+uHLqmMS83HHlpy3PvZOOuiTQqaa3wu8ZVg3h0hqHk6aCsGdOnZV2XMM/FRimNGjUh0KCcmHBw==", - "_location": "/deepmerge", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "deepmerge@3.0.0", - "name": "deepmerge", - "escapedName": "deepmerge", - "rawSpec": "3.0.0", - "saveSpec": null, - "fetchSpec": "3.0.0" - }, - "_requiredBy": [ - "/@octokit/endpoint" - ], - "_resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-3.0.0.tgz", - "_shasum": "ca7903b34bfa1f8c2eab6779280775a411bfc6ba", - "_spec": "deepmerge@3.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\endpoint", - "author": { - "name": "Nick Fisher" - }, - "bugs": { - "url": "https://github.com/KyleAMathews/deepmerge/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "A library for deep (recursive) merging of Javascript objects", - "devDependencies": { - "is-mergeable-object": "1.1.0", - "is-plain-object": "^2.0.4", - "jsmd": "0.3.1", - "rollup": "0.49.3", - "rollup-plugin-commonjs": "8.2.1", - "rollup-plugin-node-resolve": "3.0.0", - "tap": "12.0.1", - "ts-node": "7.0.1", - "typescript": "=2.2.2", - "uglify-js": "^3.3.12" - }, - "engines": { - "node": ">=0.10.0" - }, - "homepage": "https://github.com/KyleAMathews/deepmerge", - "keywords": [ - "merge", - "deep", - "extend", - "copy", - "clone", - "recursive" - ], - "license": "MIT", - "main": "dist/umd.js", - "name": "deepmerge", - "repository": { - "type": "git", - "url": "git://github.com/KyleAMathews/deepmerge.git" - }, - "scripts": { - "build": "rollup -c", - "size": "npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c", - "test": "npm run build && tap test/*.js && jsmd readme.md && npm run test:typescript", - "test:typescript": "tsc --noEmit test/typescript.ts && ts-node test/typescript.ts" - }, - "version": "3.0.0" -} diff --git a/build/node_modules/deepmerge/readme.md b/build/node_modules/deepmerge/readme.md deleted file mode 100644 index 02ed27ffb..000000000 --- a/build/node_modules/deepmerge/readme.md +++ /dev/null @@ -1,238 +0,0 @@ -# deepmerge - -Merges the enumerable attributes of two or more objects deeply. - -> UMD bundle is 567B minified+gzipped - - -### Migration from 1.x to 2+ - -[***Check out the changes from version 1.x to 2.0.0***](https://github.com/KyleAMathews/deepmerge/blob/master/changelog.md#200) - -For the legacy array element-merging algorithm, see [the `arrayMerge` option below](#arraymerge). - - -## Getting Started - -### Example Usage - - -```js -var x = { - foo: { bar: 3 }, - array: [{ - does: 'work', - too: [ 1, 2, 3 ] - }] -} - -var y = { - foo: { baz: 4 }, - quux: 5, - array: [{ - does: 'work', - too: [ 4, 5, 6 ] - }, { - really: 'yes' - }] -} - -var expected = { - foo: { - bar: 3, - baz: 4 - }, - array: [{ - does: 'work', - too: [ 1, 2, 3 ] - }, { - does: 'work', - too: [ 4, 5, 6 ] - }, { - really: 'yes' - }], - quux: 5 -} - -merge(x, y) // => expected -``` - - -### Installation - -With [npm](http://npmjs.org) do: - -```sh -npm install deepmerge -``` - -deepmerge can be used directly in the browser without the use of package managers/bundlers as well: [UMD version from unpkg.com](https://unpkg.com/deepmerge/dist/umd.js). - - -### Includes - -CommonJS: -``` -var merge = require('deepmerge') -``` - -ES Modules: -``` -import * as deepmerge from 'deepmerge' -``` - -(support for `import merge from 'deepmerge'` was removed because of a [Webpack bug](https://github.com/webpack/webpack/issues/6584)). - - -# API - - -## `merge(x, y, [options])` - -Merge two objects `x` and `y` deeply, returning a new merged object with the -elements from both `x` and `y`. - -If an element at the same key is present for both `x` and `y`, the value from -`y` will appear in the result. - -Merging creates a new object, so that neither `x` or `y` is modified. - -**Note:** By default, arrays are merged by concatenating them. - -## `merge.all(arrayOfObjects, [options])` - -Merges any number of objects into a single result object. - -```js -var x = { foo: { bar: 3 } } -var y = { foo: { baz: 4 } } -var z = { bar: 'yay!' } - -var expected = { foo: { bar: 3, baz: 4 }, bar: 'yay!' } - -merge.all([x, y, z]) // => expected -``` - - -## Options - -### `arrayMerge` - -There are multiple ways to merge two arrays, below are a few examples but you can also create your own custom function. - -#### Overwrite Array - -Overwrites the existing array values completely rather than concatenating them - -```js -const overwriteMerge = (destinationArray, sourceArray, options) => sourceArray - -merge( - [1, 2, 3], - [3, 2, 1], - { arrayMerge: overwriteMerge } -) // => [3, 2, 1] -``` - -#### Combine Array - -Combine arrays, such as overwriting existing defaults while also adding/keeping values that are different names - -To use the legacy (pre-version-2.0.0) array merging algorithm, use the following: - -```js -const emptyTarget = value => Array.isArray(value) ? [] : {} -const clone = (value, options) => merge(emptyTarget(value), value, options) - -function combineMerge(target, source, options) { - const destination = target.slice() - - source.forEach(function(e, i) { - if (typeof destination[i] === 'undefined') { - const cloneRequested = options.clone !== false - const shouldClone = cloneRequested && options.isMergeableObject(e) - destination[i] = shouldClone ? clone(e, options) : e - } else if (options.isMergeableObject(e)) { - destination[i] = merge(target[i], e, options) - } else if (target.indexOf(e) === -1) { - destination.push(e) - } - }) - return destination -} - -merge( - [{ a: true }], - [{ b: true }, 'ah yup'], - { arrayMerge: combineMerge } -) // => [{ a: true, b: true }, 'ah yup'] -``` - -### `isMergeableObject` - -By default, deepmerge clones every property from almost every kind of object. - -You may not want this, if your objects are of special types, and you want to copy the whole object instead of just copying its properties. - -You can accomplish this by passing in a function for the `isMergeableObject` option. - -If you only want to clone properties of plain objects, and ignore all "special" kinds of instantiated objects, you probably want to drop in [`is-plain-object`](https://github.com/jonschlinkert/is-plain-object). - -```js -const isPlainObject = require('is-plain-object') - -function SuperSpecial() { - this.special = 'oh yeah man totally' -} - -const instantiatedSpecialObject = new SuperSpecial() - -const target = { - someProperty: { - cool: 'oh for sure' - } -} - -const source = { - someProperty: instantiatedSpecialObject -} - -const defaultOutput = merge(target, source) - -defaultOutput.someProperty.cool // => 'oh for sure' -defaultOutput.someProperty.special // => 'oh yeah man totally' -defaultOutput.someProperty instanceof SuperSpecial // => false - -const customMergeOutput = merge(target, source, { - isMergeableObject: isPlainObject -}) - -customMergeOutput.someProperty.cool // => undefined -customMergeOutput.someProperty.special // => 'oh yeah man totally' -customMergeOutput.someProperty instanceof SuperSpecial // => true -``` - - -### `clone` - -*Deprecated.* - -Defaults to `true`. - -If `clone` is `false` then child objects will be copied directly instead of being cloned. This was the default behavior before version 2.x. - - -# Testing - -With [npm](http://npmjs.org) do: - -```sh -npm test -``` - - -# License - -MIT diff --git a/build/node_modules/deepmerge/rollup.config.js b/build/node_modules/deepmerge/rollup.config.js deleted file mode 100644 index 2e54080d2..000000000 --- a/build/node_modules/deepmerge/rollup.config.js +++ /dev/null @@ -1,16 +0,0 @@ -import resolve from 'rollup-plugin-node-resolve' -import commonjs from 'rollup-plugin-commonjs' - -const pkg = require(`./package.json`) - -export default { - input: `index.js`, - name: `deepmerge`, - plugins: [ - commonjs(), - resolve(), - ], - output: [ - { file: pkg.main, format: `umd` }, - ], -} diff --git a/build/node_modules/execa/index.js b/build/node_modules/execa/index.js deleted file mode 100644 index 06f39697d..000000000 --- a/build/node_modules/execa/index.js +++ /dev/null @@ -1,366 +0,0 @@ -'use strict'; -const path = require('path'); -const childProcess = require('child_process'); -const util = require('util'); -const crossSpawn = require('cross-spawn'); -const stripEof = require('strip-eof'); -const npmRunPath = require('npm-run-path'); -const isStream = require('is-stream'); -const _getStream = require('get-stream'); -const pFinally = require('p-finally'); -const onExit = require('signal-exit'); -const errname = require('./lib/errname'); -const stdio = require('./lib/stdio'); - -const TEN_MEGABYTES = 1000 * 1000 * 10; - -function handleArgs(cmd, args, opts) { - let parsed; - - opts = Object.assign({ - extendEnv: true, - env: {} - }, opts); - - if (opts.extendEnv) { - opts.env = Object.assign({}, process.env, opts.env); - } - - if (opts.__winShell === true) { - delete opts.__winShell; - parsed = { - command: cmd, - args, - options: opts, - file: cmd, - original: { - cmd, - args - } - }; - } else { - parsed = crossSpawn._parse(cmd, args, opts); - } - - opts = Object.assign({ - maxBuffer: TEN_MEGABYTES, - stripEof: true, - preferLocal: true, - localDir: parsed.options.cwd || process.cwd(), - encoding: 'utf8', - reject: true, - cleanup: true - }, parsed.options); - - opts.stdio = stdio(opts); - - if (opts.preferLocal) { - opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir})); - } - - if (opts.detached) { - // #115 - opts.cleanup = false; - } - - if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') { - // #116 - parsed.args.unshift('/q'); - } - - return { - cmd: parsed.command, - args: parsed.args, - opts, - parsed - }; -} - -function handleInput(spawned, opts) { - const input = opts.input; - - if (input === null || input === undefined) { - return; - } - - if (isStream(input)) { - input.pipe(spawned.stdin); - } else { - spawned.stdin.end(input); - } -} - -function handleOutput(opts, val) { - if (val && opts.stripEof) { - val = stripEof(val); - } - - return val; -} - -function handleShell(fn, cmd, opts) { - let file = '/bin/sh'; - let args = ['-c', cmd]; - - opts = Object.assign({}, opts); - - if (process.platform === 'win32') { - opts.__winShell = true; - file = process.env.comspec || 'cmd.exe'; - args = ['/s', '/c', `"${cmd}"`]; - opts.windowsVerbatimArguments = true; - } - - if (opts.shell) { - file = opts.shell; - delete opts.shell; - } - - return fn(file, args, opts); -} - -function getStream(process, stream, encoding, maxBuffer) { - if (!process[stream]) { - return null; - } - - let ret; - - if (encoding) { - ret = _getStream(process[stream], { - encoding, - maxBuffer - }); - } else { - ret = _getStream.buffer(process[stream], {maxBuffer}); - } - - return ret.catch(err => { - err.stream = stream; - err.message = `${stream} ${err.message}`; - throw err; - }); -} - -function makeError(result, options) { - const stdout = result.stdout; - const stderr = result.stderr; - - let err = result.error; - const code = result.code; - const signal = result.signal; - - const parsed = options.parsed; - const joinedCmd = options.joinedCmd; - const timedOut = options.timedOut || false; - - if (!err) { - let output = ''; - - if (Array.isArray(parsed.opts.stdio)) { - if (parsed.opts.stdio[2] !== 'inherit') { - output += output.length > 0 ? stderr : `\n${stderr}`; - } - - if (parsed.opts.stdio[1] !== 'inherit') { - output += `\n${stdout}`; - } - } else if (parsed.opts.stdio !== 'inherit') { - output = `\n${stderr}${stdout}`; - } - - err = new Error(`Command failed: ${joinedCmd}${output}`); - err.code = code < 0 ? errname(code) : code; - } - - err.stdout = stdout; - err.stderr = stderr; - err.failed = true; - err.signal = signal || null; - err.cmd = joinedCmd; - err.timedOut = timedOut; - - return err; -} - -function joinCmd(cmd, args) { - let joinedCmd = cmd; - - if (Array.isArray(args) && args.length > 0) { - joinedCmd += ' ' + args.join(' '); - } - - return joinedCmd; -} - -module.exports = (cmd, args, opts) => { - const parsed = handleArgs(cmd, args, opts); - const encoding = parsed.opts.encoding; - const maxBuffer = parsed.opts.maxBuffer; - const joinedCmd = joinCmd(cmd, args); - - let spawned; - try { - spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts); - } catch (err) { - return Promise.reject(err); - } - - let removeExitHandler; - if (parsed.opts.cleanup) { - removeExitHandler = onExit(() => { - spawned.kill(); - }); - } - - let timeoutId = null; - let timedOut = false; - - const cleanup = () => { - if (timeoutId) { - clearTimeout(timeoutId); - timeoutId = null; - } - - if (removeExitHandler) { - removeExitHandler(); - } - }; - - if (parsed.opts.timeout > 0) { - timeoutId = setTimeout(() => { - timeoutId = null; - timedOut = true; - spawned.kill(parsed.opts.killSignal); - }, parsed.opts.timeout); - } - - const processDone = new Promise(resolve => { - spawned.on('exit', (code, signal) => { - cleanup(); - resolve({code, signal}); - }); - - spawned.on('error', err => { - cleanup(); - resolve({error: err}); - }); - - if (spawned.stdin) { - spawned.stdin.on('error', err => { - cleanup(); - resolve({error: err}); - }); - } - }); - - function destroy() { - if (spawned.stdout) { - spawned.stdout.destroy(); - } - - if (spawned.stderr) { - spawned.stderr.destroy(); - } - } - - const handlePromise = () => pFinally(Promise.all([ - processDone, - getStream(spawned, 'stdout', encoding, maxBuffer), - getStream(spawned, 'stderr', encoding, maxBuffer) - ]).then(arr => { - const result = arr[0]; - result.stdout = arr[1]; - result.stderr = arr[2]; - - if (result.error || result.code !== 0 || result.signal !== null) { - const err = makeError(result, { - joinedCmd, - parsed, - timedOut - }); - - // TODO: missing some timeout logic for killed - // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203 - // err.killed = spawned.killed || killed; - err.killed = err.killed || spawned.killed; - - if (!parsed.opts.reject) { - return err; - } - - throw err; - } - - return { - stdout: handleOutput(parsed.opts, result.stdout), - stderr: handleOutput(parsed.opts, result.stderr), - code: 0, - failed: false, - killed: false, - signal: null, - cmd: joinedCmd, - timedOut: false - }; - }), destroy); - - crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed); - - handleInput(spawned, parsed.opts); - - spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected); - spawned.catch = onrejected => handlePromise().catch(onrejected); - - return spawned; -}; - -module.exports.stdout = function () { - // TODO: set `stderr: 'ignore'` when that option is implemented - return module.exports.apply(null, arguments).then(x => x.stdout); -}; - -module.exports.stderr = function () { - // TODO: set `stdout: 'ignore'` when that option is implemented - return module.exports.apply(null, arguments).then(x => x.stderr); -}; - -module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts); - -module.exports.sync = (cmd, args, opts) => { - const parsed = handleArgs(cmd, args, opts); - const joinedCmd = joinCmd(cmd, args); - - if (isStream(parsed.opts.input)) { - throw new TypeError('The `input` option cannot be a stream in sync mode'); - } - - const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts); - result.code = result.status; - - if (result.error || result.status !== 0 || result.signal !== null) { - const err = makeError(result, { - joinedCmd, - parsed - }); - - if (!parsed.opts.reject) { - return err; - } - - throw err; - } - - return { - stdout: handleOutput(parsed.opts, result.stdout), - stderr: handleOutput(parsed.opts, result.stderr), - code: 0, - failed: false, - signal: null, - cmd: joinedCmd, - timedOut: false - }; -}; - -module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts); - -module.exports.spawn = util.deprecate(module.exports, 'execa.spawn() is deprecated. Use execa() instead.'); diff --git a/build/node_modules/execa/lib/errname.js b/build/node_modules/execa/lib/errname.js deleted file mode 100644 index 5395e2e5a..000000000 --- a/build/node_modules/execa/lib/errname.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; -// Older verions of Node might not have `util.getSystemErrorName()`. -// In that case, fall back to a deprecated internal. -const util = require('util'); - -let uv; - -if (typeof util.getSystemErrorName === 'function') { - module.exports = util.getSystemErrorName; -} else { - try { - uv = process.binding('uv'); - - if (typeof uv.errname !== 'function') { - throw new TypeError('uv.errname is not a function'); - } - } catch (err) { - console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err); - uv = null; - } - - module.exports = code => errname(uv, code); -} - -// Used for testing the fallback behavior -module.exports.__test__ = errname; - -function errname(uv, code) { - if (uv) { - return uv.errname(code); - } - - if (!(code < 0)) { - throw new Error('err >= 0'); - } - - return `Unknown system error ${code}`; -} - diff --git a/build/node_modules/execa/lib/stdio.js b/build/node_modules/execa/lib/stdio.js deleted file mode 100644 index a82d46838..000000000 --- a/build/node_modules/execa/lib/stdio.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; -const alias = ['stdin', 'stdout', 'stderr']; - -const hasAlias = opts => alias.some(x => Boolean(opts[x])); - -module.exports = opts => { - if (!opts) { - return null; - } - - if (opts.stdio && hasAlias(opts)) { - throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`); - } - - if (typeof opts.stdio === 'string') { - return opts.stdio; - } - - const stdio = opts.stdio || []; - - if (!Array.isArray(stdio)) { - throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``); - } - - const result = []; - const len = Math.max(stdio.length, alias.length); - - for (let i = 0; i < len; i++) { - let value = null; - - if (stdio[i] !== undefined) { - value = stdio[i]; - } else if (opts[alias[i]] !== undefined) { - value = opts[alias[i]]; - } - - result[i] = value; - } - - return result; -}; diff --git a/build/node_modules/execa/license b/build/node_modules/execa/license deleted file mode 100644 index e7af2f771..000000000 --- a/build/node_modules/execa/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build/node_modules/execa/package.json b/build/node_modules/execa/package.json deleted file mode 100644 index a54d77a5d..000000000 --- a/build/node_modules/execa/package.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "_from": "execa@^0.10.0", - "_id": "execa@0.10.0", - "_inBundle": false, - "_integrity": "sha512-7XOMnz8Ynx1gGo/3hyV9loYNPWM94jG3+3T3Y8tsfSstFmETmENCMU/A/zj8Lyaj1lkgEepKepvd6240tBRvlw==", - "_location": "/execa", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "execa@^0.10.0", - "name": "execa", - "escapedName": "execa", - "rawSpec": "^0.10.0", - "saveSpec": null, - "fetchSpec": "^0.10.0" - }, - "_requiredBy": [ - "/windows-release" - ], - "_resolved": "https://registry.npmjs.org/execa/-/execa-0.10.0.tgz", - "_shasum": "ff456a8f53f90f8eccc71a96d11bdfc7f082cb50", - "_spec": "execa@^0.10.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\windows-release", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/execa/issues" - }, - "bundleDependencies": false, - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "deprecated": false, - "description": "A better `child_process`", - "devDependencies": { - "ava": "*", - "cat-names": "^1.0.2", - "coveralls": "^2.11.9", - "delay": "^2.0.0", - "is-running": "^2.0.0", - "nyc": "^11.0.2", - "tempfile": "^2.0.0", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js", - "lib" - ], - "homepage": "https://github.com/sindresorhus/execa#readme", - "keywords": [ - "exec", - "child", - "process", - "execute", - "fork", - "execfile", - "spawn", - "file", - "shell", - "bin", - "binary", - "binaries", - "npm", - "path", - "local" - ], - "license": "MIT", - "maintainers": [ - { - "name": "James Talmage", - "email": "james@talmage.io", - "url": "github.com/jamestalmage" - } - ], - "name": "execa", - "nyc": { - "reporter": [ - "text", - "lcov" - ], - "exclude": [ - "**/fixtures/**", - "**/test.js", - "**/test/**" - ] - }, - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/execa.git" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "version": "0.10.0" -} diff --git a/build/node_modules/execa/readme.md b/build/node_modules/execa/readme.md deleted file mode 100644 index 110c0166d..000000000 --- a/build/node_modules/execa/readme.md +++ /dev/null @@ -1,304 +0,0 @@ -# execa [![Build Status: Linux](https://travis-ci.org/sindresorhus/execa.svg?branch=master)](https://travis-ci.org/sindresorhus/execa) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/x5ajamxtjtt93cqv/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/execa/branch/master) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/execa/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/execa?branch=master) - -> A better [`child_process`](https://nodejs.org/api/child_process.html) - - -## Why - -- Promise interface. -- [Strips EOF](https://github.com/sindresorhus/strip-eof) from the output so you don't have to `stdout.trim()`. -- Supports [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) binaries cross-platform. -- [Improved Windows support.](https://github.com/IndigoUnited/node-cross-spawn#why) -- Higher max buffer. 10 MB instead of 200 KB. -- [Executes locally installed binaries by name.](#preferlocal) -- [Cleans up spawned processes when the parent process dies.](#cleanup) - - -## Install - -``` -$ npm install --save execa -``` - - -## Usage - -```js -const execa = require('execa'); - -execa('echo', ['unicorns']).then(result => { - console.log(result.stdout); - //=> 'unicorns' -}); - -// pipe the child process stdout to the current stdout -execa('echo', ['unicorns']).stdout.pipe(process.stdout); - -execa.shell('echo unicorns').then(result => { - console.log(result.stdout); - //=> 'unicorns' -}); - -// example of catching an error -execa.shell('exit 3').catch(error => { - console.log(error); - /* - { - message: 'Command failed: /bin/sh -c exit 3' - killed: false, - code: 3, - signal: null, - cmd: '/bin/sh -c exit 3', - stdout: '', - stderr: '', - timedOut: false - } - */ -}); - -// example of catching an error with a sync method -try { - execa.shellSync('exit 3'); -} catch (err) { - console.log(err); - /* - { - message: 'Command failed: /bin/sh -c exit 3' - code: 3, - signal: null, - cmd: '/bin/sh -c exit 3', - stdout: '', - stderr: '', - timedOut: false - } - */ -} -``` - - -## API - -### execa(file, [arguments], [options]) - -Execute a file. - -Think of this as a mix of `child_process.execFile` and `child_process.spawn`. - -Returns a [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess), which is enhanced to also be a `Promise` for a result `Object` with `stdout` and `stderr` properties. - -### execa.stdout(file, [arguments], [options]) - -Same as `execa()`, but returns only `stdout`. - -### execa.stderr(file, [arguments], [options]) - -Same as `execa()`, but returns only `stderr`. - -### execa.shell(command, [options]) - -Execute a command through the system shell. Prefer `execa()` whenever possible, as it's both faster and safer. - -Returns a [`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess). - -The `child_process` instance is enhanced to also be promise for a result object with `stdout` and `stderr` properties. - -### execa.sync(file, [arguments], [options]) - -Execute a file synchronously. - -Returns the same result object as [`child_process.spawnSync`](https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options). - -This method throws an `Error` if the command fails. - -### execa.shellSync(file, [options]) - -Execute a command synchronously through the system shell. - -Returns the same result object as [`child_process.spawnSync`](https://nodejs.org/api/child_process.html#child_process_child_process_spawnsync_command_args_options). - -### options - -Type: `Object` - -#### cwd - -Type: `string`
-Default: `process.cwd()` - -Current working directory of the child process. - -#### env - -Type: `Object`
-Default: `process.env` - -Environment key-value pairs. Extends automatically from `process.env`. Set `extendEnv` to `false` if you don't want this. - -#### extendEnv - -Type: `boolean`
-Default: `true` - -Set to `false` if you don't want to extend the environment variables when providing the `env` property. - -#### argv0 - -Type: `string` - -Explicitly set the value of `argv[0]` sent to the child process. This will be set to `command` or `file` if not specified. - -#### stdio - -Type: `Array` `string`
-Default: `pipe` - -Child's [stdio](https://nodejs.org/api/child_process.html#child_process_options_stdio) configuration. - -#### detached - -Type: `boolean` - -Prepare child to run independently of its parent process. Specific behavior [depends on the platform](https://nodejs.org/api/child_process.html#child_process_options_detached). - -#### uid - -Type: `number` - -Sets the user identity of the process. - -#### gid - -Type: `number` - -Sets the group identity of the process. - -#### shell - -Type: `boolean` `string`
-Default: `false` - -If `true`, runs `command` inside of a shell. Uses `/bin/sh` on UNIX and `cmd.exe` on Windows. A different shell can be specified as a string. The shell should understand the `-c` switch on UNIX or `/d /s /c` on Windows. - -#### stripEof - -Type: `boolean`
-Default: `true` - -[Strip EOF](https://github.com/sindresorhus/strip-eof) (last newline) from the output. - -#### preferLocal - -Type: `boolean`
-Default: `true` - -Prefer locally installed binaries when looking for a binary to execute.
-If you `$ npm install foo`, you can then `execa('foo')`. - -#### localDir - -Type: `string`
-Default: `process.cwd()` - -Preferred path to find locally installed binaries in (use with `preferLocal`). - -#### input - -Type: `string` `Buffer` `stream.Readable` - -Write some input to the `stdin` of your binary.
-Streams are not allowed when using the synchronous methods. - -#### reject - -Type: `boolean`
-Default: `true` - -Setting this to `false` resolves the promise with the error instead of rejecting it. - -#### cleanup - -Type: `boolean`
-Default: `true` - -Keep track of the spawned process and `kill` it when the parent process exits. - -#### encoding - -Type: `string`
-Default: `utf8` - -Specify the character encoding used to decode the `stdout` and `stderr` output. - -#### timeout - -Type: `number`
-Default: `0` - -If timeout is greater than `0`, the parent will send the signal identified by the `killSignal` property (the default is `SIGTERM`) if the child runs longer than timeout milliseconds. - -#### maxBuffer - -Type: `number`
-Default: `10000000` (10MB) - -Largest amount of data in bytes allowed on `stdout` or `stderr`. - -#### killSignal - -Type: `string` `number`
-Default: `SIGTERM` - -Signal value to be used when the spawned process will be killed. - -#### stdin - -Type: `string` `number` `Stream` `undefined` `null`
-Default: `pipe` - -Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio). - -#### stdout - -Type: `string` `number` `Stream` `undefined` `null`
-Default: `pipe` - -Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio). - -#### stderr - -Type: `string` `number` `Stream` `undefined` `null`
-Default: `pipe` - -Same options as [`stdio`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio). - -#### windowsVerbatimArguments - -Type: `boolean`
-Default: `false` - -If `true`, no quoting or escaping of arguments is done on Windows. Ignored on other platforms. This is set to `true` automatically when the `shell` option is `true`. - - -## Tips - -### Save and pipe output from a child process - -Let's say you want to show the output of a child process in real-time while also saving it to a variable. - -```js -const execa = require('execa'); -const getStream = require('get-stream'); - -const stream = execa('echo', ['foo']).stdout; - -stream.pipe(process.stdout); - -getStream(stream).then(value => { - console.log('child output:', value); -}); -``` - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build/node_modules/get-stream/buffer-stream.js b/build/node_modules/get-stream/buffer-stream.js deleted file mode 100644 index ae45d3d9e..000000000 --- a/build/node_modules/get-stream/buffer-stream.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; -const PassThrough = require('stream').PassThrough; - -module.exports = opts => { - opts = Object.assign({}, opts); - - const array = opts.array; - let encoding = opts.encoding; - const buffer = encoding === 'buffer'; - let objectMode = false; - - if (array) { - objectMode = !(encoding || buffer); - } else { - encoding = encoding || 'utf8'; - } - - if (buffer) { - encoding = null; - } - - let len = 0; - const ret = []; - const stream = new PassThrough({objectMode}); - - if (encoding) { - stream.setEncoding(encoding); - } - - stream.on('data', chunk => { - ret.push(chunk); - - if (objectMode) { - len = ret.length; - } else { - len += chunk.length; - } - }); - - stream.getBufferedValue = () => { - if (array) { - return ret; - } - - return buffer ? Buffer.concat(ret, len) : ret.join(''); - }; - - stream.getBufferedLength = () => len; - - return stream; -}; diff --git a/build/node_modules/get-stream/index.js b/build/node_modules/get-stream/index.js deleted file mode 100644 index 2dc5ee96a..000000000 --- a/build/node_modules/get-stream/index.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; -const bufferStream = require('./buffer-stream'); - -function getStream(inputStream, opts) { - if (!inputStream) { - return Promise.reject(new Error('Expected a stream')); - } - - opts = Object.assign({maxBuffer: Infinity}, opts); - - const maxBuffer = opts.maxBuffer; - let stream; - let clean; - - const p = new Promise((resolve, reject) => { - const error = err => { - if (err) { // null check - err.bufferedData = stream.getBufferedValue(); - } - - reject(err); - }; - - stream = bufferStream(opts); - inputStream.once('error', error); - inputStream.pipe(stream); - - stream.on('data', () => { - if (stream.getBufferedLength() > maxBuffer) { - reject(new Error('maxBuffer exceeded')); - } - }); - stream.once('error', error); - stream.on('end', resolve); - - clean = () => { - // some streams doesn't implement the `stream.Readable` interface correctly - if (inputStream.unpipe) { - inputStream.unpipe(stream); - } - }; - }); - - p.then(clean, clean); - - return p.then(() => stream.getBufferedValue()); -} - -module.exports = getStream; -module.exports.buffer = (stream, opts) => getStream(stream, Object.assign({}, opts, {encoding: 'buffer'})); -module.exports.array = (stream, opts) => getStream(stream, Object.assign({}, opts, {array: true})); diff --git a/build/node_modules/get-stream/license b/build/node_modules/get-stream/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/build/node_modules/get-stream/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/get-stream/package.json b/build/node_modules/get-stream/package.json deleted file mode 100644 index 6b8b27e25..000000000 --- a/build/node_modules/get-stream/package.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "_from": "get-stream@^3.0.0", - "_id": "get-stream@3.0.0", - "_inBundle": false, - "_integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "_location": "/get-stream", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "get-stream@^3.0.0", - "name": "get-stream", - "escapedName": "get-stream", - "rawSpec": "^3.0.0", - "saveSpec": null, - "fetchSpec": "^3.0.0" - }, - "_requiredBy": [ - "/execa" - ], - "_resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "_shasum": "8e943d1358dc37555054ecbe2edb05aa174ede14", - "_spec": "get-stream@^3.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\execa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/get-stream/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Get a stream as a string, buffer, or array", - "devDependencies": { - "ava": "*", - "into-stream": "^3.0.0", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js", - "buffer-stream.js" - ], - "homepage": "https://github.com/sindresorhus/get-stream#readme", - "keywords": [ - "get", - "stream", - "promise", - "concat", - "string", - "str", - "text", - "buffer", - "read", - "data", - "consume", - "readable", - "readablestream", - "array", - "object", - "obj" - ], - "license": "MIT", - "name": "get-stream", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/get-stream.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "3.0.0", - "xo": { - "esnext": true - } -} diff --git a/build/node_modules/get-stream/readme.md b/build/node_modules/get-stream/readme.md deleted file mode 100644 index 73b188fb4..000000000 --- a/build/node_modules/get-stream/readme.md +++ /dev/null @@ -1,117 +0,0 @@ -# get-stream [![Build Status](https://travis-ci.org/sindresorhus/get-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stream) - -> Get a stream as a string, buffer, or array - - -## Install - -``` -$ npm install --save get-stream -``` - - -## Usage - -```js -const fs = require('fs'); -const getStream = require('get-stream'); -const stream = fs.createReadStream('unicorn.txt'); - -getStream(stream).then(str => { - console.log(str); - /* - ,,))))))));, - __)))))))))))))), - \|/ -\(((((''''((((((((. - -*-==//////(('' . `)))))), - /|\ ))| o ;-. '((((( ,(, - ( `| / ) ;))))' ,_))^;(~ - | | | ,))((((_ _____------~~~-. %,;(;(>';'~ - o_); ; )))(((` ~---~ `:: \ %%~~)(v;(`('~ - ; ''''```` `: `:::|\,__,%% );`'; ~ - | _ ) / `:|`----' `-' - ______/\/~ | / / - /~;;.____/;;' / ___--,-( `;;;/ - / // _;______;'------~~~~~ /;;/\ / - // | | / ; \;;,\ - (<_ | ; /',/-----' _> - \_| ||_ //~;~~~~~~~~~ - `\_| (,~~ - \~\ - ~~ - */ -}); -``` - - -## API - -The methods returns a promise that resolves when the `end` event fires on the stream, indicating that there is no more data to be read. The stream is switched to flowing mode. - -### getStream(stream, [options]) - -Get the `stream` as a string. - -#### options - -##### encoding - -Type: `string`
-Default: `utf8` - -[Encoding](https://nodejs.org/api/buffer.html#buffer_buffer) of the incoming stream. - -##### maxBuffer - -Type: `number`
-Default: `Infinity` - -Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected. - -### getStream.buffer(stream, [options]) - -Get the `stream` as a buffer. - -It honors the `maxBuffer` option as above, but it refers to byte length rather than string length. - -### getStream.array(stream, [options]) - -Get the `stream` as an array of values. - -It honors both the `maxBuffer` and `encoding` options. The behavior changes slightly based on the encoding chosen: - -- When `encoding` is unset, it assumes an [object mode stream](https://nodesource.com/blog/understanding-object-streams/) and collects values emitted from `stream` unmodified. In this case `maxBuffer` refers to the number of items in the array (not the sum of their sizes). - -- When `encoding` is set to `buffer`, it collects an array of buffers. `maxBuffer` refers to the summed byte lengths of every buffer in the array. - -- When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array. - - -## Errors - -If the input stream emits an `error` event, the promise will be rejected with the error. The buffered data will be attached to the `bufferedData` property of the error. - -```js -getStream(streamThatErrorsAtTheEnd('unicorn')) - .catch(err => { - console.log(err.bufferedData); - //=> 'unicorn' - }); -``` - - -## FAQ - -### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)? - -This module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, buffer, or array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package. - - -## Related - -- [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build/node_modules/is-plain-object/LICENSE b/build/node_modules/is-plain-object/LICENSE deleted file mode 100644 index 3f2eca18f..000000000 --- a/build/node_modules/is-plain-object/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2017, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/is-plain-object/README.md b/build/node_modules/is-plain-object/README.md deleted file mode 100644 index 1f9d0c82d..000000000 --- a/build/node_modules/is-plain-object/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# is-plain-object [![NPM version](https://img.shields.io/npm/v/is-plain-object.svg?style=flat)](https://www.npmjs.com/package/is-plain-object) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![NPM total downloads](https://img.shields.io/npm/dt/is-plain-object.svg?style=flat)](https://npmjs.org/package/is-plain-object) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-plain-object.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-plain-object) - -> Returns true if an object was created by the `Object` constructor. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save is-plain-object -``` - -Use [isobject](https://github.com/jonschlinkert/isobject) if you only want to check if the value is an object and not an array or null. - -## Usage - -```js -var isPlainObject = require('is-plain-object'); -``` - -**true** when created by the `Object` constructor. - -```js -isPlainObject(Object.create({})); -//=> true -isPlainObject(Object.create(Object.prototype)); -//=> true -isPlainObject({foo: 'bar'}); -//=> true -isPlainObject({}); -//=> true -``` - -**false** when not created by the `Object` constructor. - -```js -isPlainObject(1); -//=> false -isPlainObject(['foo', 'bar']); -//=> false -isPlainObject([]); -//=> false -isPlainObject(new Foo); -//=> false -isPlainObject(null); -//=> false -isPlainObject(Object.create(null)); -//=> false -``` - -## About - -### Related projects - -* [is-number](https://www.npmjs.com/package/is-number): Returns true if the value is a number. comprehensive tests. | [homepage](https://github.com/jonschlinkert/is-number "Returns true if the value is a number. comprehensive tests.") -* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.") -* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 17 | [jonschlinkert](https://github.com/jonschlinkert) | -| 6 | [stevenvachon](https://github.com/stevenvachon) | -| 3 | [onokumus](https://github.com/onokumus) | -| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | - -### Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -### Running tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) - -### License - -Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 11, 2017._ \ No newline at end of file diff --git a/build/node_modules/is-plain-object/index.d.ts b/build/node_modules/is-plain-object/index.d.ts deleted file mode 100644 index 74a44e976..000000000 --- a/build/node_modules/is-plain-object/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export = isPlainObject; - -declare function isPlainObject(o: any): boolean; - -declare namespace isPlainObject {} diff --git a/build/node_modules/is-plain-object/index.js b/build/node_modules/is-plain-object/index.js deleted file mode 100644 index c3284849e..000000000 --- a/build/node_modules/is-plain-object/index.js +++ /dev/null @@ -1,37 +0,0 @@ -/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ - -'use strict'; - -var isObject = require('isobject'); - -function isObjectObject(o) { - return isObject(o) === true - && Object.prototype.toString.call(o) === '[object Object]'; -} - -module.exports = function isPlainObject(o) { - var ctor,prot; - - if (isObjectObject(o) === false) return false; - - // If has modified constructor - ctor = o.constructor; - if (typeof ctor !== 'function') return false; - - // If has modified prototype - prot = ctor.prototype; - if (isObjectObject(prot) === false) return false; - - // If constructor does not have an Object-specific method - if (prot.hasOwnProperty('isPrototypeOf') === false) { - return false; - } - - // Most likely a plain Object - return true; -}; diff --git a/build/node_modules/is-plain-object/package.json b/build/node_modules/is-plain-object/package.json deleted file mode 100644 index 18edc22fd..000000000 --- a/build/node_modules/is-plain-object/package.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "_from": "is-plain-object@^2.0.4", - "_id": "is-plain-object@2.0.4", - "_inBundle": false, - "_integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "_location": "/is-plain-object", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-plain-object@^2.0.4", - "name": "is-plain-object", - "escapedName": "is-plain-object", - "rawSpec": "^2.0.4", - "saveSpec": null, - "fetchSpec": "^2.0.4" - }, - "_requiredBy": [ - "/@octokit/endpoint", - "/@octokit/request" - ], - "_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "_shasum": "2c163b3fafb1b606d9d17928f05c2a1c38e07677", - "_spec": "is-plain-object@^2.0.4", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\request", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/is-plain-object/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Jon Schlinkert", - "url": "http://twitter.com/jonschlinkert" - }, - { - "name": "Osman Nuri Okumuş", - "url": "http://onokumus.com" - }, - { - "name": "Steven Vachon", - "url": "https://svachon.com" - }, - { - "url": "https://github.com/wtgtybhertgeghgtwtg" - } - ], - "dependencies": { - "isobject": "^3.0.1" - }, - "deprecated": false, - "description": "Returns true if an object was created by the `Object` constructor.", - "devDependencies": { - "browserify": "^14.4.0", - "chai": "^4.0.2", - "gulp-format-md": "^1.0.0", - "mocha": "^3.4.2", - "mocha-phantomjs": "^4.1.0", - "phantomjs": "^2.1.7", - "uglify-js": "^3.0.24" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.d.ts", - "index.js" - ], - "homepage": "https://github.com/jonschlinkert/is-plain-object", - "keywords": [ - "check", - "is", - "is-object", - "isobject", - "javascript", - "kind", - "kind-of", - "object", - "plain", - "type", - "typeof", - "value" - ], - "license": "MIT", - "main": "index.js", - "name": "is-plain-object", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/is-plain-object.git" - }, - "scripts": { - "browserify": "browserify index.js --standalone isPlainObject | uglifyjs --compress --mangle -o browser/is-plain-object.js", - "test": "npm run test_node && npm run browserify && npm run test_browser", - "test_browser": "mocha-phantomjs test/browser.html", - "test_node": "mocha" - }, - "types": "index.d.ts", - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "is-number", - "isobject", - "kind-of" - ] - }, - "lint": { - "reflinks": true - } - }, - "version": "2.0.4" -} diff --git a/build/node_modules/is-stream/index.js b/build/node_modules/is-stream/index.js deleted file mode 100644 index 6f7ec91a4..000000000 --- a/build/node_modules/is-stream/index.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var isStream = module.exports = function (stream) { - return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function'; -}; - -isStream.writable = function (stream) { - return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object'; -}; - -isStream.readable = function (stream) { - return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object'; -}; - -isStream.duplex = function (stream) { - return isStream.writable(stream) && isStream.readable(stream); -}; - -isStream.transform = function (stream) { - return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object'; -}; diff --git a/build/node_modules/is-stream/license b/build/node_modules/is-stream/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/build/node_modules/is-stream/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/is-stream/package.json b/build/node_modules/is-stream/package.json deleted file mode 100644 index 63124fade..000000000 --- a/build/node_modules/is-stream/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "_from": "is-stream@^1.1.0", - "_id": "is-stream@1.1.0", - "_inBundle": false, - "_integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "_location": "/is-stream", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "is-stream@^1.1.0", - "name": "is-stream", - "escapedName": "is-stream", - "rawSpec": "^1.1.0", - "saveSpec": null, - "fetchSpec": "^1.1.0" - }, - "_requiredBy": [ - "/execa" - ], - "_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "_shasum": "12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44", - "_spec": "is-stream@^1.1.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\execa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/is-stream/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Check if something is a Node.js stream", - "devDependencies": { - "ava": "*", - "tempfile": "^1.1.0", - "xo": "*" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/is-stream#readme", - "keywords": [ - "stream", - "type", - "streams", - "writable", - "readable", - "duplex", - "transform", - "check", - "detect", - "is" - ], - "license": "MIT", - "name": "is-stream", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/is-stream.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.1.0" -} diff --git a/build/node_modules/is-stream/readme.md b/build/node_modules/is-stream/readme.md deleted file mode 100644 index d8afce81d..000000000 --- a/build/node_modules/is-stream/readme.md +++ /dev/null @@ -1,42 +0,0 @@ -# is-stream [![Build Status](https://travis-ci.org/sindresorhus/is-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/is-stream) - -> Check if something is a [Node.js stream](https://nodejs.org/api/stream.html) - - -## Install - -``` -$ npm install --save is-stream -``` - - -## Usage - -```js -const fs = require('fs'); -const isStream = require('is-stream'); - -isStream(fs.createReadStream('unicorn.png')); -//=> true - -isStream({}); -//=> false -``` - - -## API - -### isStream(stream) - -#### isStream.writable(stream) - -#### isStream.readable(stream) - -#### isStream.duplex(stream) - -#### isStream.transform(stream) - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build/node_modules/isexe/.npmignore b/build/node_modules/isexe/.npmignore deleted file mode 100644 index c1cb757ac..000000000 --- a/build/node_modules/isexe/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -.nyc_output/ -coverage/ diff --git a/build/node_modules/isexe/LICENSE b/build/node_modules/isexe/LICENSE deleted file mode 100644 index 19129e315..000000000 --- a/build/node_modules/isexe/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build/node_modules/isexe/README.md b/build/node_modules/isexe/README.md deleted file mode 100644 index 35769e844..000000000 --- a/build/node_modules/isexe/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# isexe - -Minimal module to check if a file is executable, and a normal file. - -Uses `fs.stat` and tests against the `PATHEXT` environment variable on -Windows. - -## USAGE - -```javascript -var isexe = require('isexe') -isexe('some-file-name', function (err, isExe) { - if (err) { - console.error('probably file does not exist or something', err) - } else if (isExe) { - console.error('this thing can be run') - } else { - console.error('cannot be run') - } -}) - -// same thing but synchronous, throws errors -var isExe = isexe.sync('some-file-name') - -// treat errors as just "not executable" -isexe('maybe-missing-file', { ignoreErrors: true }, callback) -var isExe = isexe.sync('maybe-missing-file', { ignoreErrors: true }) -``` - -## API - -### `isexe(path, [options], [callback])` - -Check if the path is executable. If no callback provided, and a -global `Promise` object is available, then a Promise will be returned. - -Will raise whatever errors may be raised by `fs.stat`, unless -`options.ignoreErrors` is set to true. - -### `isexe.sync(path, [options])` - -Same as `isexe` but returns the value and throws any errors raised. - -### Options - -* `ignoreErrors` Treat all errors as "no, this is not executable", but - don't raise them. -* `uid` Number to use as the user id -* `gid` Number to use as the group id -* `pathExt` List of path extensions to use instead of `PATHEXT` - environment variable on Windows. diff --git a/build/node_modules/isexe/index.js b/build/node_modules/isexe/index.js deleted file mode 100644 index 553fb32b1..000000000 --- a/build/node_modules/isexe/index.js +++ /dev/null @@ -1,57 +0,0 @@ -var fs = require('fs') -var core -if (process.platform === 'win32' || global.TESTING_WINDOWS) { - core = require('./windows.js') -} else { - core = require('./mode.js') -} - -module.exports = isexe -isexe.sync = sync - -function isexe (path, options, cb) { - if (typeof options === 'function') { - cb = options - options = {} - } - - if (!cb) { - if (typeof Promise !== 'function') { - throw new TypeError('callback not provided') - } - - return new Promise(function (resolve, reject) { - isexe(path, options || {}, function (er, is) { - if (er) { - reject(er) - } else { - resolve(is) - } - }) - }) - } - - core(path, options || {}, function (er, is) { - // ignore EACCES because that just means we aren't allowed to run it - if (er) { - if (er.code === 'EACCES' || options && options.ignoreErrors) { - er = null - is = false - } - } - cb(er, is) - }) -} - -function sync (path, options) { - // my kingdom for a filtered catch - try { - return core.sync(path, options || {}) - } catch (er) { - if (options && options.ignoreErrors || er.code === 'EACCES') { - return false - } else { - throw er - } - } -} diff --git a/build/node_modules/isexe/mode.js b/build/node_modules/isexe/mode.js deleted file mode 100644 index 1995ea4a0..000000000 --- a/build/node_modules/isexe/mode.js +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = isexe -isexe.sync = sync - -var fs = require('fs') - -function isexe (path, options, cb) { - fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, options)) - }) -} - -function sync (path, options) { - return checkStat(fs.statSync(path), options) -} - -function checkStat (stat, options) { - return stat.isFile() && checkMode(stat, options) -} - -function checkMode (stat, options) { - var mod = stat.mode - var uid = stat.uid - var gid = stat.gid - - var myUid = options.uid !== undefined ? - options.uid : process.getuid && process.getuid() - var myGid = options.gid !== undefined ? - options.gid : process.getgid && process.getgid() - - var u = parseInt('100', 8) - var g = parseInt('010', 8) - var o = parseInt('001', 8) - var ug = u | g - - var ret = (mod & o) || - (mod & g) && gid === myGid || - (mod & u) && uid === myUid || - (mod & ug) && myUid === 0 - - return ret -} diff --git a/build/node_modules/isexe/package.json b/build/node_modules/isexe/package.json deleted file mode 100644 index de4cf89ec..000000000 --- a/build/node_modules/isexe/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "_from": "isexe@^2.0.0", - "_id": "isexe@2.0.0", - "_inBundle": false, - "_integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "_location": "/isexe", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "isexe@^2.0.0", - "name": "isexe", - "escapedName": "isexe", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/which" - ], - "_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "_shasum": "e8fbf374dc556ff8947a10dcb0572d633f2cfa10", - "_spec": "isexe@^2.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\which", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/isexe/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Minimal module to check if a file is executable.", - "devDependencies": { - "mkdirp": "^0.5.1", - "rimraf": "^2.5.0", - "tap": "^10.3.0" - }, - "directories": { - "test": "test" - }, - "homepage": "https://github.com/isaacs/isexe#readme", - "keywords": [], - "license": "ISC", - "main": "index.js", - "name": "isexe", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/isexe.git" - }, - "scripts": { - "postpublish": "git push origin --all; git push origin --tags", - "postversion": "npm publish", - "preversion": "npm test", - "test": "tap test/*.js --100" - }, - "version": "2.0.0" -} diff --git a/build/node_modules/isexe/test/basic.js b/build/node_modules/isexe/test/basic.js deleted file mode 100644 index d926df64b..000000000 --- a/build/node_modules/isexe/test/basic.js +++ /dev/null @@ -1,221 +0,0 @@ -var t = require('tap') -var fs = require('fs') -var path = require('path') -var fixture = path.resolve(__dirname, 'fixtures') -var meow = fixture + '/meow.cat' -var mine = fixture + '/mine.cat' -var ours = fixture + '/ours.cat' -var fail = fixture + '/fail.false' -var noent = fixture + '/enoent.exe' -var mkdirp = require('mkdirp') -var rimraf = require('rimraf') - -var isWindows = process.platform === 'win32' -var hasAccess = typeof fs.access === 'function' -var winSkip = isWindows && 'windows' -var accessSkip = !hasAccess && 'no fs.access function' -var hasPromise = typeof Promise === 'function' -var promiseSkip = !hasPromise && 'no global Promise' - -function reset () { - delete require.cache[require.resolve('../')] - return require('../') -} - -t.test('setup fixtures', function (t) { - rimraf.sync(fixture) - mkdirp.sync(fixture) - fs.writeFileSync(meow, '#!/usr/bin/env cat\nmeow\n') - fs.chmodSync(meow, parseInt('0755', 8)) - fs.writeFileSync(fail, '#!/usr/bin/env false\n') - fs.chmodSync(fail, parseInt('0644', 8)) - fs.writeFileSync(mine, '#!/usr/bin/env cat\nmine\n') - fs.chmodSync(mine, parseInt('0744', 8)) - fs.writeFileSync(ours, '#!/usr/bin/env cat\nours\n') - fs.chmodSync(ours, parseInt('0754', 8)) - t.end() -}) - -t.test('promise', { skip: promiseSkip }, function (t) { - var isexe = reset() - t.test('meow async', function (t) { - isexe(meow).then(function (is) { - t.ok(is) - t.end() - }) - }) - t.test('fail async', function (t) { - isexe(fail).then(function (is) { - t.notOk(is) - t.end() - }) - }) - t.test('noent async', function (t) { - isexe(noent).catch(function (er) { - t.ok(er) - t.end() - }) - }) - t.test('noent ignore async', function (t) { - isexe(noent, { ignoreErrors: true }).then(function (is) { - t.notOk(is) - t.end() - }) - }) - t.end() -}) - -t.test('no promise', function (t) { - global.Promise = null - var isexe = reset() - t.throws('try to meow a promise', function () { - isexe(meow) - }) - t.end() -}) - -t.test('access', { skip: accessSkip || winSkip }, function (t) { - runTest(t) -}) - -t.test('mode', { skip: winSkip }, function (t) { - delete fs.access - delete fs.accessSync - var isexe = reset() - t.ok(isexe.sync(ours, { uid: 0, gid: 0 })) - t.ok(isexe.sync(mine, { uid: 0, gid: 0 })) - runTest(t) -}) - -t.test('windows', function (t) { - global.TESTING_WINDOWS = true - var pathExt = '.EXE;.CAT;.CMD;.COM' - t.test('pathExt option', function (t) { - runTest(t, { pathExt: '.EXE;.CAT;.CMD;.COM' }) - }) - t.test('pathExt env', function (t) { - process.env.PATHEXT = pathExt - runTest(t) - }) - t.test('no pathExt', function (t) { - // with a pathExt of '', any filename is fine. - // so the "fail" one would still pass. - runTest(t, { pathExt: '', skipFail: true }) - }) - t.test('pathext with empty entry', function (t) { - // with a pathExt of '', any filename is fine. - // so the "fail" one would still pass. - runTest(t, { pathExt: ';' + pathExt, skipFail: true }) - }) - t.end() -}) - -t.test('cleanup', function (t) { - rimraf.sync(fixture) - t.end() -}) - -function runTest (t, options) { - var isexe = reset() - - var optionsIgnore = Object.create(options || {}) - optionsIgnore.ignoreErrors = true - - if (!options || !options.skipFail) { - t.notOk(isexe.sync(fail, options)) - } - t.notOk(isexe.sync(noent, optionsIgnore)) - if (!options) { - t.ok(isexe.sync(meow)) - } else { - t.ok(isexe.sync(meow, options)) - } - - t.ok(isexe.sync(mine, options)) - t.ok(isexe.sync(ours, options)) - t.throws(function () { - isexe.sync(noent, options) - }) - - t.test('meow async', function (t) { - if (!options) { - isexe(meow, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - } else { - isexe(meow, options, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - } - }) - - t.test('mine async', function (t) { - isexe(mine, options, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - }) - - t.test('ours async', function (t) { - isexe(ours, options, function (er, is) { - if (er) { - throw er - } - t.ok(is) - t.end() - }) - }) - - if (!options || !options.skipFail) { - t.test('fail async', function (t) { - isexe(fail, options, function (er, is) { - if (er) { - throw er - } - t.notOk(is) - t.end() - }) - }) - } - - t.test('noent async', function (t) { - isexe(noent, options, function (er, is) { - t.ok(er) - t.notOk(is) - t.end() - }) - }) - - t.test('noent ignore async', function (t) { - isexe(noent, optionsIgnore, function (er, is) { - if (er) { - throw er - } - t.notOk(is) - t.end() - }) - }) - - t.test('directory is not executable', function (t) { - isexe(__dirname, options, function (er, is) { - if (er) { - throw er - } - t.notOk(is) - t.end() - }) - }) - - t.end() -} diff --git a/build/node_modules/isexe/windows.js b/build/node_modules/isexe/windows.js deleted file mode 100644 index 34996734d..000000000 --- a/build/node_modules/isexe/windows.js +++ /dev/null @@ -1,42 +0,0 @@ -module.exports = isexe -isexe.sync = sync - -var fs = require('fs') - -function checkPathExt (path, options) { - var pathext = options.pathExt !== undefined ? - options.pathExt : process.env.PATHEXT - - if (!pathext) { - return true - } - - pathext = pathext.split(';') - if (pathext.indexOf('') !== -1) { - return true - } - for (var i = 0; i < pathext.length; i++) { - var p = pathext[i].toLowerCase() - if (p && path.substr(-p.length).toLowerCase() === p) { - return true - } - } - return false -} - -function checkStat (stat, path, options) { - if (!stat.isSymbolicLink() && !stat.isFile()) { - return false - } - return checkPathExt(path, options) -} - -function isexe (path, options, cb) { - fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, path, options)) - }) -} - -function sync (path, options) { - return checkStat(fs.statSync(path), path, options) -} diff --git a/build/node_modules/isobject/LICENSE b/build/node_modules/isobject/LICENSE deleted file mode 100644 index 943e71d05..000000000 --- a/build/node_modules/isobject/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2017, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/build/node_modules/isobject/README.md b/build/node_modules/isobject/README.md deleted file mode 100644 index d01feaa40..000000000 --- a/build/node_modules/isobject/README.md +++ /dev/null @@ -1,122 +0,0 @@ -# isobject [![NPM version](https://img.shields.io/npm/v/isobject.svg?style=flat)](https://www.npmjs.com/package/isobject) [![NPM monthly downloads](https://img.shields.io/npm/dm/isobject.svg?style=flat)](https://npmjs.org/package/isobject) [![NPM total downloads](https://img.shields.io/npm/dt/isobject.svg?style=flat)](https://npmjs.org/package/isobject) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/isobject.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/isobject) - -> Returns true if the value is an object and not an array or null. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install --save isobject -``` - -Install with [yarn](https://yarnpkg.com): - -```sh -$ yarn add isobject -``` - -Use [is-plain-object](https://github.com/jonschlinkert/is-plain-object) if you want only objects that are created by the `Object` constructor. - -## Install - -Install with [npm](https://www.npmjs.com/): - -```sh -$ npm install isobject -``` -Install with [bower](https://bower.io/) - -```sh -$ bower install isobject -``` - -## Usage - -```js -var isObject = require('isobject'); -``` - -**True** - -All of the following return `true`: - -```js -isObject({}); -isObject(Object.create({})); -isObject(Object.create(Object.prototype)); -isObject(Object.create(null)); -isObject({}); -isObject(new Foo); -isObject(/foo/); -``` - -**False** - -All of the following return `false`: - -```js -isObject(); -isObject(function () {}); -isObject(1); -isObject([]); -isObject(undefined); -isObject(null); -``` - -## About - -### Related projects - -* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow "Extend an object with the properties of additional objects. node.js/javascript util.") -* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.") -* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") -* [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep "Recursively merge values in a javascript object.") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Contributors - -| **Commits** | **Contributor** | -| --- | --- | -| 29 | [jonschlinkert](https://github.com/jonschlinkert) | -| 4 | [doowb](https://github.com/doowb) | -| 1 | [magnudae](https://github.com/magnudae) | -| 1 | [LeSuisse](https://github.com/LeSuisse) | -| 1 | [tmcw](https://github.com/tmcw) | - -### Building docs - -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ - -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb -``` - -### Running tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: - -```sh -$ npm install && npm test -``` - -### Author - -**Jon Schlinkert** - -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) - -### License - -Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). - -*** - -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 30, 2017._ \ No newline at end of file diff --git a/build/node_modules/isobject/index.d.ts b/build/node_modules/isobject/index.d.ts deleted file mode 100644 index 55f81c275..000000000 --- a/build/node_modules/isobject/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export = isObject; - -declare function isObject(val: any): boolean; - -declare namespace isObject {} diff --git a/build/node_modules/isobject/index.js b/build/node_modules/isobject/index.js deleted file mode 100644 index 2d59958bf..000000000 --- a/build/node_modules/isobject/index.js +++ /dev/null @@ -1,12 +0,0 @@ -/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ - -'use strict'; - -module.exports = function isObject(val) { - return val != null && typeof val === 'object' && Array.isArray(val) === false; -}; diff --git a/build/node_modules/isobject/package.json b/build/node_modules/isobject/package.json deleted file mode 100644 index ad045b69e..000000000 --- a/build/node_modules/isobject/package.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "_from": "isobject@^3.0.1", - "_id": "isobject@3.0.1", - "_inBundle": false, - "_integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", - "_location": "/isobject", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "isobject@^3.0.1", - "name": "isobject", - "escapedName": "isobject", - "rawSpec": "^3.0.1", - "saveSpec": null, - "fetchSpec": "^3.0.1" - }, - "_requiredBy": [ - "/is-plain-object" - ], - "_resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "_shasum": "4e431e92b11a9731636aa1f9c8d1ccbcfdab78df", - "_spec": "isobject@^3.0.1", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\is-plain-object", - "author": { - "name": "Jon Schlinkert", - "url": "https://github.com/jonschlinkert" - }, - "bugs": { - "url": "https://github.com/jonschlinkert/isobject/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "url": "https://github.com/LeSuisse" - }, - { - "name": "Brian Woodward", - "url": "https://twitter.com/doowb" - }, - { - "name": "Jon Schlinkert", - "url": "http://twitter.com/jonschlinkert" - }, - { - "name": "Magnús Dæhlen", - "url": "https://github.com/magnudae" - }, - { - "name": "Tom MacWright", - "url": "https://macwright.org" - } - ], - "dependencies": {}, - "deprecated": false, - "description": "Returns true if the value is an object and not an array or null.", - "devDependencies": { - "gulp-format-md": "^0.1.9", - "mocha": "^2.4.5" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.d.ts", - "index.js" - ], - "homepage": "https://github.com/jonschlinkert/isobject", - "keywords": [ - "check", - "is", - "is-object", - "isobject", - "kind", - "kind-of", - "kindof", - "native", - "object", - "type", - "typeof", - "value" - ], - "license": "MIT", - "main": "index.js", - "name": "isobject", - "repository": { - "type": "git", - "url": "git+https://github.com/jonschlinkert/isobject.git" - }, - "scripts": { - "test": "mocha" - }, - "types": "index.d.ts", - "verb": { - "related": { - "list": [ - "extend-shallow", - "is-plain-object", - "kind-of", - "merge-deep" - ] - }, - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "lint": { - "reflinks": true - }, - "reflinks": [ - "verb" - ] - }, - "version": "3.0.1" -} diff --git a/build/node_modules/lodash.get/LICENSE b/build/node_modules/lodash.get/LICENSE deleted file mode 100644 index e0c69d560..000000000 --- a/build/node_modules/lodash.get/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Copyright jQuery Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. diff --git a/build/node_modules/lodash.get/README.md b/build/node_modules/lodash.get/README.md deleted file mode 100644 index 90796144c..000000000 --- a/build/node_modules/lodash.get/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.get v4.4.2 - -The [lodash](https://lodash.com/) method `_.get` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.get -``` - -In Node.js: -```js -var get = require('lodash.get'); -``` - -See the [documentation](https://lodash.com/docs#get) or [package source](https://github.com/lodash/lodash/blob/4.4.2-npm-packages/lodash.get) for more details. diff --git a/build/node_modules/lodash.get/index.js b/build/node_modules/lodash.get/index.js deleted file mode 100644 index 0eaadec50..000000000 --- a/build/node_modules/lodash.get/index.js +++ /dev/null @@ -1,931 +0,0 @@ -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as the `TypeError` message for "Functions" methods. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]'; - -/** Used to match property names within property paths. */ -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/, - reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to match backslashes in property paths. */ -var reEscapeChar = /\\(\\)?/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var Symbol = root.Symbol, - splice = arrayProto.splice; - -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'), - nativeCreate = getNative(Object, 'create'); - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `_.get` without support for default values. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @returns {*} Returns the resolved value. - */ -function baseGet(object, path) { - path = isKey(path, object) ? [path] : castPath(path); - - var index = 0, - length = path.length; - - while (object != null && index < length) { - object = object[toKey(path[index++])]; - } - return (index && index == length) ? object : undefined; -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Casts `value` to a path array if it's not one. - * - * @private - * @param {*} value The value to inspect. - * @returns {Array} Returns the cast property path array. - */ -function castPath(value) { - return isArray(value) ? value : stringToPath(value); -} - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Checks if `value` is a property name and not a property path. - * - * @private - * @param {*} value The value to check. - * @param {Object} [object] The object to query keys on. - * @returns {boolean} Returns `true` if `value` is a property name, else `false`. - */ -function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || - (object != null && value in Object(object)); -} - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * Converts `string` to a property path array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the property path array. - */ -var stringToPath = memoize(function(string) { - string = toString(string); - - var result = []; - if (reLeadingDot.test(string)) { - result.push(''); - } - string.replace(rePropName, function(match, number, quote, string) { - result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); - }); - return result; -}); - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Creates a function that memoizes the result of `func`. If `resolver` is - * provided, it determines the cache key for storing the result based on the - * arguments provided to the memoized function. By default, the first argument - * provided to the memoized function is used as the map cache key. The `func` - * is invoked with the `this` binding of the memoized function. - * - * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` - * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `delete`, `get`, `has`, and `set`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] The function to resolve the cache key. - * @returns {Function} Returns the new memoized function. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * var other = { 'c': 3, 'd': 4 }; - * - * var values = _.memoize(_.values); - * values(object); - * // => [1, 2] - * - * values(other); - * // => [3, 4] - * - * object.a = 2; - * values(object); - * // => [1, 2] - * - * // Modify the result cache. - * values.cache.set(object, ['a', 'b']); - * values(object); - * // => ['a', 'b'] - * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; - */ -function memoize(func, resolver) { - if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - - if (cache.has(key)) { - return cache.get(key); - } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result); - return result; - }; - memoized.cache = new (memoize.Cache || MapCache); - return memoized; -} - -// Assign cache to `_.memoize`. -memoize.Cache = MapCache; - -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; -} - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - return value == null ? '' : baseToString(value); -} - -/** - * Gets the value at `path` of `object`. If the resolved value is - * `undefined`, the `defaultValue` is returned in its place. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @param {*} [defaultValue] The value returned for `undefined` resolved values. - * @returns {*} Returns the resolved value. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.get(object, 'a[0].b.c'); - * // => 3 - * - * _.get(object, ['a', '0', 'b', 'c']); - * // => 3 - * - * _.get(object, 'a.b.c', 'default'); - * // => 'default' - */ -function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, path); - return result === undefined ? defaultValue : result; -} - -module.exports = get; diff --git a/build/node_modules/lodash.get/package.json b/build/node_modules/lodash.get/package.json deleted file mode 100644 index 9a157137a..000000000 --- a/build/node_modules/lodash.get/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "_from": "lodash.get@^4.4.2", - "_id": "lodash.get@4.4.2", - "_inBundle": false, - "_integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", - "_location": "/lodash.get", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "lodash.get@^4.4.2", - "name": "lodash.get", - "escapedName": "lodash.get", - "rawSpec": "^4.4.2", - "saveSpec": null, - "fetchSpec": "^4.4.2" - }, - "_requiredBy": [ - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "_shasum": "2d177f652fa31e939b4438d5341499dfa3825e99", - "_spec": "lodash.get@^4.4.2", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine.bublitz@gmail.com", - "url": "https://github.com/phated" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "deprecated": false, - "description": "The lodash method `_.get` exported as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "get" - ], - "license": "MIT", - "name": "lodash.get", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash.git" - }, - "scripts": { - "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" - }, - "version": "4.4.2" -} diff --git a/build/node_modules/lodash.pick/LICENSE b/build/node_modules/lodash.pick/LICENSE deleted file mode 100644 index e0c69d560..000000000 --- a/build/node_modules/lodash.pick/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Copyright jQuery Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. diff --git a/build/node_modules/lodash.pick/README.md b/build/node_modules/lodash.pick/README.md deleted file mode 100644 index 587595d12..000000000 --- a/build/node_modules/lodash.pick/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.pick v4.4.0 - -The [lodash](https://lodash.com/) method `_.pick` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.pick -``` - -In Node.js: -```js -var pick = require('lodash.pick'); -``` - -See the [documentation](https://lodash.com/docs#pick) or [package source](https://github.com/lodash/lodash/blob/4.4.0-npm-packages/lodash.pick) for more details. diff --git a/build/node_modules/lodash.pick/index.js b/build/node_modules/lodash.pick/index.js deleted file mode 100644 index aeeb775f1..000000000 --- a/build/node_modules/lodash.pick/index.js +++ /dev/null @@ -1,503 +0,0 @@ -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]'; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * A faster alternative to `Function#apply`, this function invokes `func` - * with the `this` binding of `thisArg` and the arguments of `args`. - * - * @private - * @param {Function} func The function to invoke. - * @param {*} thisArg The `this` binding of `func`. - * @param {Array} args The arguments to invoke `func` with. - * @returns {*} Returns the result of `func`. - */ -function apply(func, thisArg, args) { - switch (args.length) { - case 0: return func.call(thisArg); - case 1: return func.call(thisArg, args[0]); - case 2: return func.call(thisArg, args[0], args[1]); - case 3: return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); -} - -/** - * A specialized version of `_.map` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ -function arrayMap(array, iteratee) { - var index = -1, - length = array ? array.length : 0, - result = Array(length); - - while (++index < length) { - result[index] = iteratee(array[index], index, array); - } - return result; -} - -/** - * Appends the elements of `values` to `array`. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. - */ -function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; - - while (++index < length) { - array[offset + index] = values[index]; - } - return array; -} - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Built-in value references. */ -var Symbol = root.Symbol, - propertyIsEnumerable = objectProto.propertyIsEnumerable, - spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeMax = Math.max; - -/** - * The base implementation of `_.flatten` with support for restricting flattening. - * - * @private - * @param {Array} array The array to flatten. - * @param {number} depth The maximum recursion depth. - * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. - * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. - * @param {Array} [result=[]] The initial result value. - * @returns {Array} Returns the new flattened array. - */ -function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, - length = array.length; - - predicate || (predicate = isFlattenable); - result || (result = []); - - while (++index < length) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - // Recursively flatten arrays (susceptible to call stack limits). - baseFlatten(value, depth - 1, predicate, isStrict, result); - } else { - arrayPush(result, value); - } - } else if (!isStrict) { - result[result.length] = value; - } - } - return result; -} - -/** - * The base implementation of `_.pick` without support for individual - * property identifiers. - * - * @private - * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick. - * @returns {Object} Returns the new object. - */ -function basePick(object, props) { - object = Object(object); - return basePickBy(object, props, function(value, key) { - return key in object; - }); -} - -/** - * The base implementation of `_.pickBy` without support for iteratee shorthands. - * - * @private - * @param {Object} object The source object. - * @param {string[]} props The property identifiers to pick from. - * @param {Function} predicate The function invoked per property. - * @returns {Object} Returns the new object. - */ -function basePickBy(object, props, predicate) { - var index = -1, - length = props.length, - result = {}; - - while (++index < length) { - var key = props[index], - value = object[key]; - - if (predicate(value, key)) { - result[key] = value; - } - } - return result; -} - -/** - * The base implementation of `_.rest` which doesn't validate or coerce arguments. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @returns {Function} Returns the new function. - */ -function baseRest(func, start) { - start = nativeMax(start === undefined ? (func.length - 1) : start, 0); - return function() { - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); - - while (++index < length) { - array[index] = args[start + index]; - } - index = -1; - var otherArgs = Array(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = array; - return apply(func, this, otherArgs); - }; -} - -/** - * Checks if `value` is a flattenable `arguments` object or array. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. - */ -function isFlattenable(value) { - return isArray(value) || isArguments(value) || - !!(spreadableSymbol && value && value[spreadableSymbol]); -} - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Checks if `value` is likely an `arguments` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - * else `false`. - * @example - * - * _.isArguments(function() { return arguments; }()); - * // => true - * - * _.isArguments([1, 2, 3]); - * // => false - */ -function isArguments(value) { - // Safari 8.1 makes `arguments.callee` enumerable in strict mode. - return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && - (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); -} - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -/** - * Checks if `value` is array-like. A value is considered array-like if it's - * not a function and has a `value.length` that's an integer greater than or - * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is array-like, else `false`. - * @example - * - * _.isArrayLike([1, 2, 3]); - * // => true - * - * _.isArrayLike(document.body.children); - * // => true - * - * _.isArrayLike('abc'); - * // => true - * - * _.isArrayLike(_.noop); - * // => false - */ -function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); -} - -/** - * This method is like `_.isArrayLike` except that it also checks if `value` - * is an object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array-like object, - * else `false`. - * @example - * - * _.isArrayLikeObject([1, 2, 3]); - * // => true - * - * _.isArrayLikeObject(document.body.children); - * // => true - * - * _.isArrayLikeObject('abc'); - * // => false - * - * _.isArrayLikeObject(_.noop); - * // => false - */ -function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); -} - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; -} - -/** - * Checks if `value` is a valid array-like length. - * - * **Note:** This method is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - * @example - * - * _.isLength(3); - * // => true - * - * _.isLength(Number.MIN_VALUE); - * // => false - * - * _.isLength(Infinity); - * // => false - * - * _.isLength('3'); - * // => false - */ -function isLength(value) { - return typeof value == 'number' && - value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; -} - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Creates an object composed of the picked `object` properties. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The source object. - * @param {...(string|string[])} [props] The property identifiers to pick. - * @returns {Object} Returns the new object. - * @example - * - * var object = { 'a': 1, 'b': '2', 'c': 3 }; - * - * _.pick(object, ['a', 'c']); - * // => { 'a': 1, 'c': 3 } - */ -var pick = baseRest(function(object, props) { - return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey)); -}); - -module.exports = pick; diff --git a/build/node_modules/lodash.pick/package.json b/build/node_modules/lodash.pick/package.json deleted file mode 100644 index d2e43dc83..000000000 --- a/build/node_modules/lodash.pick/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "_from": "lodash.pick@^4.4.0", - "_id": "lodash.pick@4.4.0", - "_inBundle": false, - "_integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM=", - "_location": "/lodash.pick", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "lodash.pick@^4.4.0", - "name": "lodash.pick", - "escapedName": "lodash.pick", - "rawSpec": "^4.4.0", - "saveSpec": null, - "fetchSpec": "^4.4.0" - }, - "_requiredBy": [ - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz", - "_shasum": "52f05610fff9ded422611441ed1fc123a03001b3", - "_spec": "lodash.pick@^4.4.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine.bublitz@gmail.com", - "url": "https://github.com/phated" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "deprecated": false, - "description": "The lodash method `_.pick` exported as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "pick" - ], - "license": "MIT", - "name": "lodash.pick", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash.git" - }, - "scripts": { - "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" - }, - "version": "4.4.0" -} diff --git a/build/node_modules/lodash.set/LICENSE b/build/node_modules/lodash.set/LICENSE deleted file mode 100644 index e0c69d560..000000000 --- a/build/node_modules/lodash.set/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Copyright jQuery Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. diff --git a/build/node_modules/lodash.set/README.md b/build/node_modules/lodash.set/README.md deleted file mode 100644 index 1f530bc42..000000000 --- a/build/node_modules/lodash.set/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.set v4.3.2 - -The [lodash](https://lodash.com/) method `_.set` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.set -``` - -In Node.js: -```js -var set = require('lodash.set'); -``` - -See the [documentation](https://lodash.com/docs#set) or [package source](https://github.com/lodash/lodash/blob/4.3.2-npm-packages/lodash.set) for more details. diff --git a/build/node_modules/lodash.set/index.js b/build/node_modules/lodash.set/index.js deleted file mode 100644 index 9f3ed6b18..000000000 --- a/build/node_modules/lodash.set/index.js +++ /dev/null @@ -1,990 +0,0 @@ -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as the `TypeError` message for "Functions" methods. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991; - -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]'; - -/** Used to match property names within property paths. */ -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/, - reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to match backslashes in property paths. */ -var reEscapeChar = /\\(\\)?/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var Symbol = root.Symbol, - splice = arrayProto.splice; - -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'), - nativeCreate = getNative(Object, 'create'); - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * Assigns `value` to `key` of `object` if the existing value is not equivalent - * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ -function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || - (value === undefined && !(key in object))) { - object[key] = value; - } -} - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.set`. - * - * @private - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {*} value The value to set. - * @param {Function} [customizer] The function to customize path creation. - * @returns {Object} Returns `object`. - */ -function baseSet(object, path, value, customizer) { - if (!isObject(object)) { - return object; - } - path = isKey(path, object) ? [path] : castPath(path); - - var index = -1, - length = path.length, - lastIndex = length - 1, - nested = object; - - while (nested != null && ++index < length) { - var key = toKey(path[index]), - newValue = value; - - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined; - if (newValue === undefined) { - newValue = isObject(objValue) - ? objValue - : (isIndex(path[index + 1]) ? [] : {}); - } - } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; -} - -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Casts `value` to a path array if it's not one. - * - * @private - * @param {*} value The value to inspect. - * @returns {Array} Returns the cast property path array. - */ -function castPath(value) { - return isArray(value) ? value : stringToPath(value); -} - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ -function isIndex(value, length) { - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && - (typeof value == 'number' || reIsUint.test(value)) && - (value > -1 && value % 1 == 0 && value < length); -} - -/** - * Checks if `value` is a property name and not a property path. - * - * @private - * @param {*} value The value to check. - * @param {Object} [object] The object to query keys on. - * @returns {boolean} Returns `true` if `value` is a property name, else `false`. - */ -function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || - (object != null && value in Object(object)); -} - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * Converts `string` to a property path array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the property path array. - */ -var stringToPath = memoize(function(string) { - string = toString(string); - - var result = []; - if (reLeadingDot.test(string)) { - result.push(''); - } - string.replace(rePropName, function(match, number, quote, string) { - result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match)); - }); - return result; -}); - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Creates a function that memoizes the result of `func`. If `resolver` is - * provided, it determines the cache key for storing the result based on the - * arguments provided to the memoized function. By default, the first argument - * provided to the memoized function is used as the map cache key. The `func` - * is invoked with the `this` binding of the memoized function. - * - * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` - * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `delete`, `get`, `has`, and `set`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] The function to resolve the cache key. - * @returns {Function} Returns the new memoized function. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * var other = { 'c': 3, 'd': 4 }; - * - * var values = _.memoize(_.values); - * values(object); - * // => [1, 2] - * - * values(other); - * // => [3, 4] - * - * object.a = 2; - * values(object); - * // => [1, 2] - * - * // Modify the result cache. - * values.cache.set(object, ['a', 'b']); - * values(object); - * // => ['a', 'b'] - * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; - */ -function memoize(func, resolver) { - if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - - if (cache.has(key)) { - return cache.get(key); - } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result); - return result; - }; - memoized.cache = new (memoize.Cache || MapCache); - return memoized; -} - -// Assign cache to `_.memoize`. -memoize.Cache = MapCache; - -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; -} - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return !!value && typeof value == 'object'; -} - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && objectToString.call(value) == symbolTag); -} - -/** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to process. - * @returns {string} Returns the string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - return value == null ? '' : baseToString(value); -} - -/** - * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, - * it's created. Arrays are created for missing index properties while objects - * are created for all other missing properties. Use `_.setWith` to customize - * `path` creation. - * - * **Note:** This method mutates `object`. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {*} value The value to set. - * @returns {Object} Returns `object`. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.set(object, 'a[0].b.c', 4); - * console.log(object.a[0].b.c); - * // => 4 - * - * _.set(object, ['x', '0', 'y', 'z'], 5); - * console.log(object.x[0].y.z); - * // => 5 - */ -function set(object, path, value) { - return object == null ? object : baseSet(object, path, value); -} - -module.exports = set; diff --git a/build/node_modules/lodash.set/package.json b/build/node_modules/lodash.set/package.json deleted file mode 100644 index 9b5ef0a8c..000000000 --- a/build/node_modules/lodash.set/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "_from": "lodash.set@^4.3.2", - "_id": "lodash.set@4.3.2", - "_inBundle": false, - "_integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=", - "_location": "/lodash.set", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "lodash.set@^4.3.2", - "name": "lodash.set", - "escapedName": "lodash.set", - "rawSpec": "^4.3.2", - "saveSpec": null, - "fetchSpec": "^4.3.2" - }, - "_requiredBy": [ - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", - "_shasum": "d8757b1da807dde24816b0d6a84bea1a76230b23", - "_spec": "lodash.set@^4.3.2", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine.bublitz@gmail.com", - "url": "https://github.com/phated" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "deprecated": false, - "description": "The lodash method `_.set` exported as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "set" - ], - "license": "MIT", - "name": "lodash.set", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash.git" - }, - "scripts": { - "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" - }, - "version": "4.3.2" -} diff --git a/build/node_modules/lodash.uniq/LICENSE b/build/node_modules/lodash.uniq/LICENSE deleted file mode 100644 index e0c69d560..000000000 --- a/build/node_modules/lodash.uniq/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Copyright jQuery Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. diff --git a/build/node_modules/lodash.uniq/README.md b/build/node_modules/lodash.uniq/README.md deleted file mode 100644 index a662a5e38..000000000 --- a/build/node_modules/lodash.uniq/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# lodash.uniq v4.5.0 - -The [lodash](https://lodash.com/) method `_.uniq` exported as a [Node.js](https://nodejs.org/) module. - -## Installation - -Using npm: -```bash -$ {sudo -H} npm i -g npm -$ npm i --save lodash.uniq -``` - -In Node.js: -```js -var uniq = require('lodash.uniq'); -``` - -See the [documentation](https://lodash.com/docs#uniq) or [package source](https://github.com/lodash/lodash/blob/4.5.0-npm-packages/lodash.uniq) for more details. diff --git a/build/node_modules/lodash.uniq/index.js b/build/node_modules/lodash.uniq/index.js deleted file mode 100644 index 83fce2bc4..000000000 --- a/build/node_modules/lodash.uniq/index.js +++ /dev/null @@ -1,896 +0,0 @@ -/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]'; - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -/** - * A specialized version of `_.includes` for arrays without support for - * specifying an index to search from. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludes(array, value) { - var length = array ? array.length : 0; - return !!length && baseIndexOf(array, value, 0) > -1; -} - -/** - * This function is like `arrayIncludes` except that it accepts a comparator. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @param {Function} comparator The comparator invoked per element. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludesWith(array, value, comparator) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (comparator(value, array[index])) { - return true; - } - } - return false; -} - -/** - * The base implementation of `_.findIndex` and `_.findLastIndex` without - * support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} predicate The function invoked per iteration. - * @param {number} fromIndex The index to search from. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - - while ((fromRight ? index-- : ++index < length)) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; -} - -/** - * The base implementation of `_.indexOf` without `fromIndex` bounds checks. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseIndexOf(array, value, fromIndex) { - if (value !== value) { - return baseFindIndex(array, baseIsNaN, fromIndex); - } - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; -} - -/** - * The base implementation of `_.isNaN` without support for number objects. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. - */ -function baseIsNaN(value) { - return value !== value; -} - -/** - * Checks if a cache value for `key` exists. - * - * @private - * @param {Object} cache The cache to query. - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function cacheHas(cache, key) { - return cache.has(key); -} - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} - } - return result; -} - -/** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ -function setToArray(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = value; - }); - return result; -} - -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** Built-in value references. */ -var splice = arrayProto.splice; - -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'), - Set = getNative(root, 'Set'), - nativeCreate = getNative(Object, 'create'); - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; -} - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - return true; -} - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -/** - * - * Creates an array cache object to store unique values. - * - * @private - * @constructor - * @param {Array} [values] The values to cache. - */ -function SetCache(values) { - var index = -1, - length = values ? values.length : 0; - - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); - } -} - -/** - * Adds `value` to the array cache. - * - * @private - * @name add - * @memberOf SetCache - * @alias push - * @param {*} value The value to cache. - * @returns {Object} Returns the cache instance. - */ -function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; -} - -/** - * Checks if `value` is in the array cache. - * - * @private - * @name has - * @memberOf SetCache - * @param {*} value The value to search for. - * @returns {number} Returns `true` if `value` is found, else `false`. - */ -function setCacheHas(value) { - return this.__data__.has(value); -} - -// Add methods to `SetCache`. -SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; -SetCache.prototype.has = setCacheHas; - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.uniqBy` without support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new duplicate free array. - */ -function baseUniq(array, iteratee, comparator) { - var index = -1, - includes = arrayIncludes, - length = array.length, - isCommon = true, - result = [], - seen = result; - - if (comparator) { - isCommon = false; - includes = arrayIncludesWith; - } - else if (length >= LARGE_ARRAY_SIZE) { - var set = iteratee ? null : createSet(array); - if (set) { - return setToArray(set); - } - isCommon = false; - includes = cacheHas; - seen = new SetCache; - } - else { - seen = iteratee ? [] : result; - } - outer: - while (++index < length) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - value = (comparator || value !== 0) ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee) { - seen.push(computed); - } - result.push(value); - } - else if (!includes(seen, computed, comparator)) { - if (seen !== result) { - seen.push(computed); - } - result.push(value); - } - } - return result; -} - -/** - * Creates a set object of `values`. - * - * @private - * @param {Array} values The values to add to the set. - * @returns {Object} Returns the new set. - */ -var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { - return new Set(values); -}; - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -/** - * Creates a duplicate-free version of an array, using - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons, in which only the first occurrence of each - * element is kept. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to inspect. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * _.uniq([2, 1, 2]); - * // => [2, 1] - */ -function uniq(array) { - return (array && array.length) - ? baseUniq(array) - : []; -} - -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; -} - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} - -/** - * This method returns `undefined`. - * - * @static - * @memberOf _ - * @since 2.3.0 - * @category Util - * @example - * - * _.times(2, _.noop); - * // => [undefined, undefined] - */ -function noop() { - // No operation performed. -} - -module.exports = uniq; diff --git a/build/node_modules/lodash.uniq/package.json b/build/node_modules/lodash.uniq/package.json deleted file mode 100644 index 2537bbe02..000000000 --- a/build/node_modules/lodash.uniq/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "_from": "lodash.uniq@^4.5.0", - "_id": "lodash.uniq@4.5.0", - "_inBundle": false, - "_integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", - "_location": "/lodash.uniq", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "lodash.uniq@^4.5.0", - "name": "lodash.uniq", - "escapedName": "lodash.uniq", - "rawSpec": "^4.5.0", - "saveSpec": null, - "fetchSpec": "^4.5.0" - }, - "_requiredBy": [ - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", - "_shasum": "d0225373aeb652adc1bc82e4945339a842754773", - "_spec": "lodash.uniq@^4.5.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - "bugs": { - "url": "https://github.com/lodash/lodash/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "John-David Dalton", - "email": "john.david.dalton@gmail.com", - "url": "http://allyoucanleet.com/" - }, - { - "name": "Blaine Bublitz", - "email": "blaine.bublitz@gmail.com", - "url": "https://github.com/phated" - }, - { - "name": "Mathias Bynens", - "email": "mathias@qiwi.be", - "url": "https://mathiasbynens.be/" - } - ], - "deprecated": false, - "description": "The lodash method `_.uniq` exported as a module.", - "homepage": "https://lodash.com/", - "icon": "https://lodash.com/icon.svg", - "keywords": [ - "lodash-modularized", - "uniq" - ], - "license": "MIT", - "name": "lodash.uniq", - "repository": { - "type": "git", - "url": "git+https://github.com/lodash/lodash.git" - }, - "scripts": { - "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" - }, - "version": "4.5.0" -} diff --git a/build/node_modules/macos-release/index.js b/build/node_modules/macos-release/index.js deleted file mode 100644 index b35751120..000000000 --- a/build/node_modules/macos-release/index.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; -const os = require('os'); - -const nameMap = new Map([ - [18, 'Mojave'], - [17, 'High Sierra'], - [16, 'Sierra'], - [15, 'El Capitan'], - [14, 'Yosemite'], - [13, 'Mavericks'], - [12, 'Mountain Lion'], - [11, 'Lion'], - [10, 'Snow Leopard'], - [9, 'Leopard'], - [8, 'Tiger'], - [7, 'Panther'], - [6, 'Jaguar'], - [5, 'Puma'] -]); - -module.exports = release => { - release = Number((release || os.release()).split('.')[0]); - return { - name: nameMap.get(release), - version: '10.' + (release - 4) - }; -}; diff --git a/build/node_modules/macos-release/license b/build/node_modules/macos-release/license deleted file mode 100644 index e7af2f771..000000000 --- a/build/node_modules/macos-release/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build/node_modules/macos-release/package.json b/build/node_modules/macos-release/package.json deleted file mode 100644 index 5a0e71d8a..000000000 --- a/build/node_modules/macos-release/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "_from": "macos-release@^2.0.0", - "_id": "macos-release@2.0.0", - "_inBundle": false, - "_integrity": "sha512-iCM3ZGeqIzlrH7KxYK+fphlJpCCczyHXc+HhRVbEu9uNTCrzYJjvvtefzeKTCVHd5AP/aD/fzC80JZ4ZP+dQ/A==", - "_location": "/macos-release", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "macos-release@^2.0.0", - "name": "macos-release", - "escapedName": "macos-release", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/os-name" - ], - "_resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.0.0.tgz", - "_shasum": "7dddf4caf79001a851eb4fba7fb6034f251276ab", - "_spec": "macos-release@^2.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\os-name", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/macos-release/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Get the name and version of a macOS release from the Darwin version", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=6" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/macos-release#readme", - "keywords": [ - "os", - "macos", - "osx", - "darwin", - "operating", - "system", - "platform", - "name", - "title", - "release", - "version" - ], - "license": "MIT", - "name": "macos-release", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/macos-release.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.0.0" -} diff --git a/build/node_modules/macos-release/readme.md b/build/node_modules/macos-release/readme.md deleted file mode 100644 index 6722b19c7..000000000 --- a/build/node_modules/macos-release/readme.md +++ /dev/null @@ -1,57 +0,0 @@ -# macos-release [![Build Status](https://travis-ci.org/sindresorhus/macos-release.svg?branch=master)](https://travis-ci.org/sindresorhus/macos-release) - -> Get the name and version of a macOS release from the Darwin version
-> Example: `13.2.0` → `{name: 'Mavericks', version: '10.9'}` - - -## Install - -``` -$ npm install macos-release -``` - - -## Usage - -```js -const os = require('os'); -const macosRelease = require('macos-release'); - -// On a macOS Sierra system - -macosRelease(); -//=> {name: 'Sierra', version: '10.12'} - -os.release(); -//=> 13.2.0 -// This is the Darwin kernel version - -macosRelease(os.release()); -//=> {name: 'Sierra', version: '10.12'} - -macosRelease('14.0.0'); -//=> {name: 'Yosemite', version: '10.10'} -``` - - -## API - -### macosRelease([release]) - -#### release - -Type: `string` - -By default the current operating system is used, but you can supply a custom [Darwin kernel version](http://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history), which is the output of [`os.release()`](http://nodejs.org/api/os.html#os_os_release). - - -## Related - -- [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system. Example: `macOS Sierra` -- [macos-version](https://github.com/sindresorhus/macos-version) - Get the macOS version of the current system. Example: `10.9.3` -- [win-release](https://github.com/sindresorhus/win-release) - Get the name of a Windows version from the release number: `5.1.2600` → `XP` - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build/node_modules/mime-db/HISTORY.md b/build/node_modules/mime-db/HISTORY.md deleted file mode 100644 index d454eb341..000000000 --- a/build/node_modules/mime-db/HISTORY.md +++ /dev/null @@ -1,397 +0,0 @@ -1.37.0 / 2018-10-19 -=================== - - * Add extensions to HEIC image types - * Add new upstream MIME types - -1.36.0 / 2018-08-20 -=================== - - * Add Apple file extensions from IANA - * Add extensions from IANA for `image/*` types - * Add new upstream MIME types - -1.35.0 / 2018-07-15 -=================== - - * Add extension `.owl` to `application/rdf+xml` - * Add new upstream MIME types - - Removes extension `.woff` from `application/font-woff` - -1.34.0 / 2018-06-03 -=================== - - * Add extension `.csl` to `application/vnd.citationstyles.style+xml` - * Add extension `.es` to `application/ecmascript` - * Add new upstream MIME types - * Add `UTF-8` as default charset for `text/turtle` - * Mark all XML-derived types as compressible - -1.33.0 / 2018-02-15 -=================== - - * Add extensions from IANA for `message/*` types - * Add new upstream MIME types - * Fix some incorrect OOXML types - * Remove `application/font-woff2` - -1.32.0 / 2017-11-29 -=================== - - * Add new upstream MIME types - * Update `text/hjson` to registered `application/hjson` - * Add `text/shex` with extension `.shex` - -1.31.0 / 2017-10-25 -=================== - - * Add `application/raml+yaml` with extension `.raml` - * Add `application/wasm` with extension `.wasm` - * Add new `font` type from IANA - * Add new upstream font extensions - * Add new upstream MIME types - * Add extensions for JPEG-2000 images - -1.30.0 / 2017-08-27 -=================== - - * Add `application/vnd.ms-outlook` - * Add `application/x-arj` - * Add extension `.mjs` to `application/javascript` - * Add glTF types and extensions - * Add new upstream MIME types - * Add `text/x-org` - * Add VirtualBox MIME types - * Fix `source` records for `video/*` types that are IANA - * Update `font/opentype` to registered `font/otf` - -1.29.0 / 2017-07-10 -=================== - - * Add `application/fido.trusted-apps+json` - * Add extension `.wadl` to `application/vnd.sun.wadl+xml` - * Add new upstream MIME types - * Add `UTF-8` as default charset for `text/css` - -1.28.0 / 2017-05-14 -=================== - - * Add new upstream MIME types - * Add extension `.gz` to `application/gzip` - * Update extensions `.md` and `.markdown` to be `text/markdown` - -1.27.0 / 2017-03-16 -=================== - - * Add new upstream MIME types - * Add `image/apng` with extension `.apng` - -1.26.0 / 2017-01-14 -=================== - - * Add new upstream MIME types - * Add extension `.geojson` to `application/geo+json` - -1.25.0 / 2016-11-11 -=================== - - * Add new upstream MIME types - -1.24.0 / 2016-09-18 -=================== - - * Add `audio/mp3` - * Add new upstream MIME types - -1.23.0 / 2016-05-01 -=================== - - * Add new upstream MIME types - * Add extension `.3gpp` to `audio/3gpp` - -1.22.0 / 2016-02-15 -=================== - - * Add `text/slim` - * Add extension `.rng` to `application/xml` - * Add new upstream MIME types - * Fix extension of `application/dash+xml` to be `.mpd` - * Update primary extension to `.m4a` for `audio/mp4` - -1.21.0 / 2016-01-06 -=================== - - * Add Google document types - * Add new upstream MIME types - -1.20.0 / 2015-11-10 -=================== - - * Add `text/x-suse-ymp` - * Add new upstream MIME types - -1.19.0 / 2015-09-17 -=================== - - * Add `application/vnd.apple.pkpass` - * Add new upstream MIME types - -1.18.0 / 2015-09-03 -=================== - - * Add new upstream MIME types - -1.17.0 / 2015-08-13 -=================== - - * Add `application/x-msdos-program` - * Add `audio/g711-0` - * Add `image/vnd.mozilla.apng` - * Add extension `.exe` to `application/x-msdos-program` - -1.16.0 / 2015-07-29 -=================== - - * Add `application/vnd.uri-map` - -1.15.0 / 2015-07-13 -=================== - - * Add `application/x-httpd-php` - -1.14.0 / 2015-06-25 -=================== - - * Add `application/scim+json` - * Add `application/vnd.3gpp.ussd+xml` - * Add `application/vnd.biopax.rdf+xml` - * Add `text/x-processing` - -1.13.0 / 2015-06-07 -=================== - - * Add nginx as a source - * Add `application/x-cocoa` - * Add `application/x-java-archive-diff` - * Add `application/x-makeself` - * Add `application/x-perl` - * Add `application/x-pilot` - * Add `application/x-redhat-package-manager` - * Add `application/x-sea` - * Add `audio/x-m4a` - * Add `audio/x-realaudio` - * Add `image/x-jng` - * Add `text/mathml` - -1.12.0 / 2015-06-05 -=================== - - * Add `application/bdoc` - * Add `application/vnd.hyperdrive+json` - * Add `application/x-bdoc` - * Add extension `.rtf` to `text/rtf` - -1.11.0 / 2015-05-31 -=================== - - * Add `audio/wav` - * Add `audio/wave` - * Add extension `.litcoffee` to `text/coffeescript` - * Add extension `.sfd-hdstx` to `application/vnd.hydrostatix.sof-data` - * Add extension `.n-gage` to `application/vnd.nokia.n-gage.symbian.install` - -1.10.0 / 2015-05-19 -=================== - - * Add `application/vnd.balsamiq.bmpr` - * Add `application/vnd.microsoft.portable-executable` - * Add `application/x-ns-proxy-autoconfig` - -1.9.1 / 2015-04-19 -================== - - * Remove `.json` extension from `application/manifest+json` - - This is causing bugs downstream - -1.9.0 / 2015-04-19 -================== - - * Add `application/manifest+json` - * Add `application/vnd.micro+json` - * Add `image/vnd.zbrush.pcx` - * Add `image/x-ms-bmp` - -1.8.0 / 2015-03-13 -================== - - * Add `application/vnd.citationstyles.style+xml` - * Add `application/vnd.fastcopy-disk-image` - * Add `application/vnd.gov.sk.xmldatacontainer+xml` - * Add extension `.jsonld` to `application/ld+json` - -1.7.0 / 2015-02-08 -================== - - * Add `application/vnd.gerber` - * Add `application/vnd.msa-disk-image` - -1.6.1 / 2015-02-05 -================== - - * Community extensions ownership transferred from `node-mime` - -1.6.0 / 2015-01-29 -================== - - * Add `application/jose` - * Add `application/jose+json` - * Add `application/json-seq` - * Add `application/jwk+json` - * Add `application/jwk-set+json` - * Add `application/jwt` - * Add `application/rdap+json` - * Add `application/vnd.gov.sk.e-form+xml` - * Add `application/vnd.ims.imsccv1p3` - -1.5.0 / 2014-12-30 -================== - - * Add `application/vnd.oracle.resource+json` - * Fix various invalid MIME type entries - - `application/mbox+xml` - - `application/oscp-response` - - `application/vwg-multiplexed` - - `audio/g721` - -1.4.0 / 2014-12-21 -================== - - * Add `application/vnd.ims.imsccv1p2` - * Fix various invalid MIME type entries - - `application/vnd-acucobol` - - `application/vnd-curl` - - `application/vnd-dart` - - `application/vnd-dxr` - - `application/vnd-fdf` - - `application/vnd-mif` - - `application/vnd-sema` - - `application/vnd-wap-wmlc` - - `application/vnd.adobe.flash-movie` - - `application/vnd.dece-zip` - - `application/vnd.dvb_service` - - `application/vnd.micrografx-igx` - - `application/vnd.sealed-doc` - - `application/vnd.sealed-eml` - - `application/vnd.sealed-mht` - - `application/vnd.sealed-ppt` - - `application/vnd.sealed-tiff` - - `application/vnd.sealed-xls` - - `application/vnd.sealedmedia.softseal-html` - - `application/vnd.sealedmedia.softseal-pdf` - - `application/vnd.wap-slc` - - `application/vnd.wap-wbxml` - - `audio/vnd.sealedmedia.softseal-mpeg` - - `image/vnd-djvu` - - `image/vnd-svf` - - `image/vnd-wap-wbmp` - - `image/vnd.sealed-png` - - `image/vnd.sealedmedia.softseal-gif` - - `image/vnd.sealedmedia.softseal-jpg` - - `model/vnd-dwf` - - `model/vnd.parasolid.transmit-binary` - - `model/vnd.parasolid.transmit-text` - - `text/vnd-a` - - `text/vnd-curl` - - `text/vnd.wap-wml` - * Remove example template MIME types - - `application/example` - - `audio/example` - - `image/example` - - `message/example` - - `model/example` - - `multipart/example` - - `text/example` - - `video/example` - -1.3.1 / 2014-12-16 -================== - - * Fix missing extensions - - `application/json5` - - `text/hjson` - -1.3.0 / 2014-12-07 -================== - - * Add `application/a2l` - * Add `application/aml` - * Add `application/atfx` - * Add `application/atxml` - * Add `application/cdfx+xml` - * Add `application/dii` - * Add `application/json5` - * Add `application/lxf` - * Add `application/mf4` - * Add `application/vnd.apache.thrift.compact` - * Add `application/vnd.apache.thrift.json` - * Add `application/vnd.coffeescript` - * Add `application/vnd.enphase.envoy` - * Add `application/vnd.ims.imsccv1p1` - * Add `text/csv-schema` - * Add `text/hjson` - * Add `text/markdown` - * Add `text/yaml` - -1.2.0 / 2014-11-09 -================== - - * Add `application/cea` - * Add `application/dit` - * Add `application/vnd.gov.sk.e-form+zip` - * Add `application/vnd.tmd.mediaflex.api+xml` - * Type `application/epub+zip` is now IANA-registered - -1.1.2 / 2014-10-23 -================== - - * Rebuild database for `application/x-www-form-urlencoded` change - -1.1.1 / 2014-10-20 -================== - - * Mark `application/x-www-form-urlencoded` as compressible. - -1.1.0 / 2014-09-28 -================== - - * Add `application/font-woff2` - -1.0.3 / 2014-09-25 -================== - - * Fix engine requirement in package - -1.0.2 / 2014-09-25 -================== - - * Add `application/coap-group+json` - * Add `application/dcd` - * Add `application/vnd.apache.thrift.binary` - * Add `image/vnd.tencent.tap` - * Mark all JSON-derived types as compressible - * Update `text/vtt` data - -1.0.1 / 2014-08-30 -================== - - * Fix extension ordering - -1.0.0 / 2014-08-30 -================== - - * Add `application/atf` - * Add `application/merge-patch+json` - * Add `multipart/x-mixed-replace` - * Add `source: 'apache'` metadata - * Add `source: 'iana'` metadata - * Remove badly-assumed charset data diff --git a/build/node_modules/mime-db/LICENSE b/build/node_modules/mime-db/LICENSE deleted file mode 100644 index a7ae8ee9b..000000000 --- a/build/node_modules/mime-db/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ - -The MIT License (MIT) - -Copyright (c) 2014 Jonathan Ong me@jongleberry.com - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/mime-db/README.md b/build/node_modules/mime-db/README.md deleted file mode 100644 index 48a9e3a0d..000000000 --- a/build/node_modules/mime-db/README.md +++ /dev/null @@ -1,94 +0,0 @@ -# mime-db - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-image]][node-url] -[![Build Status][travis-image]][travis-url] -[![Coverage Status][coveralls-image]][coveralls-url] - -This is a database of all mime types. -It consists of a single, public JSON file and does not include any logic, -allowing it to remain as un-opinionated as possible with an API. -It aggregates data from the following sources: - -- http://www.iana.org/assignments/media-types/media-types.xhtml -- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types -- http://hg.nginx.org/nginx/raw-file/default/conf/mime.types - -## Installation - -```bash -npm install mime-db -``` - -### Database Download - -If you're crazy enough to use this in the browser, you can just grab the -JSON file using [RawGit](https://rawgit.com/). It is recommended to replace -`master` with [a release tag](https://github.com/jshttp/mime-db/tags) as the -JSON format may change in the future. - -``` -https://cdn.rawgit.com/jshttp/mime-db/master/db.json -``` - -## Usage - -```js -var db = require('mime-db'); - -// grab data on .js files -var data = db['application/javascript']; -``` - -## Data Structure - -The JSON file is a map lookup for lowercased mime types. -Each mime type has the following properties: - -- `.source` - where the mime type is defined. - If not set, it's probably a custom media type. - - `apache` - [Apache common media types](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types) - - `iana` - [IANA-defined media types](http://www.iana.org/assignments/media-types/media-types.xhtml) - - `nginx` - [nginx media types](http://hg.nginx.org/nginx/raw-file/default/conf/mime.types) -- `.extensions[]` - known extensions associated with this mime type. -- `.compressible` - whether a file of this type can be gzipped. -- `.charset` - the default charset associated with this type, if any. - -If unknown, every property could be `undefined`. - -## Contributing - -To edit the database, only make PRs against `src/custom.json` or -`src/custom-suffix.json`. - -The `src/custom.json` file is a JSON object with the MIME type as the keys -and the values being an object with the following keys: - -- `compressible` - leave out if you don't know, otherwise `true`/`false` to - indicate whether the data represented by the type is typically compressible. -- `extensions` - include an array of file extensions that are associated with - the type. -- `notes` - human-readable notes about the type, typically what the type is. -- `sources` - include an array of URLs of where the MIME type and the associated - extensions are sourced from. This needs to be a [primary source](https://en.wikipedia.org/wiki/Primary_source); - links to type aggregating sites and Wikipedia are _not acceptable_. - -To update the build, run `npm run build`. - -## Adding Custom Media Types - -The best way to get new media types included in this library is to register -them with the IANA. The community registration procedure is outlined in -[RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types -registered with the IANA are automatically pulled into this library. - -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master -[coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master -[node-image]: https://badgen.net/npm/node/mime-db -[node-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/mime-db -[npm-url]: https://npmjs.org/package/mime-db -[npm-version-image]: https://badgen.net/npm/v/mime-db -[travis-image]: https://badgen.net/travis/jshttp/mime-db/master -[travis-url]: https://travis-ci.org/jshttp/mime-db diff --git a/build/node_modules/mime-db/db.json b/build/node_modules/mime-db/db.json deleted file mode 100644 index 81f614c64..000000000 --- a/build/node_modules/mime-db/db.json +++ /dev/null @@ -1,7688 +0,0 @@ -{ - "application/1d-interleaved-parityfec": { - "source": "iana" - }, - "application/3gpdash-qoe-report+xml": { - "source": "iana", - "compressible": true - }, - "application/3gpp-ims+xml": { - "source": "iana", - "compressible": true - }, - "application/a2l": { - "source": "iana" - }, - "application/activemessage": { - "source": "iana" - }, - "application/activity+json": { - "source": "iana", - "compressible": true - }, - "application/alto-costmap+json": { - "source": "iana", - "compressible": true - }, - "application/alto-costmapfilter+json": { - "source": "iana", - "compressible": true - }, - "application/alto-directory+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointcost+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointcostparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointprop+json": { - "source": "iana", - "compressible": true - }, - "application/alto-endpointpropparams+json": { - "source": "iana", - "compressible": true - }, - "application/alto-error+json": { - "source": "iana", - "compressible": true - }, - "application/alto-networkmap+json": { - "source": "iana", - "compressible": true - }, - "application/alto-networkmapfilter+json": { - "source": "iana", - "compressible": true - }, - "application/aml": { - "source": "iana" - }, - "application/andrew-inset": { - "source": "iana", - "extensions": ["ez"] - }, - "application/applefile": { - "source": "iana" - }, - "application/applixware": { - "source": "apache", - "extensions": ["aw"] - }, - "application/atf": { - "source": "iana" - }, - "application/atfx": { - "source": "iana" - }, - "application/atom+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atom"] - }, - "application/atomcat+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atomcat"] - }, - "application/atomdeleted+xml": { - "source": "iana", - "compressible": true - }, - "application/atomicmail": { - "source": "iana" - }, - "application/atomsvc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["atomsvc"] - }, - "application/atxml": { - "source": "iana" - }, - "application/auth-policy+xml": { - "source": "iana", - "compressible": true - }, - "application/bacnet-xdd+zip": { - "source": "iana", - "compressible": false - }, - "application/batch-smtp": { - "source": "iana" - }, - "application/bdoc": { - "compressible": false, - "extensions": ["bdoc"] - }, - "application/beep+xml": { - "source": "iana", - "compressible": true - }, - "application/calendar+json": { - "source": "iana", - "compressible": true - }, - "application/calendar+xml": { - "source": "iana", - "compressible": true - }, - "application/call-completion": { - "source": "iana" - }, - "application/cals-1840": { - "source": "iana" - }, - "application/cbor": { - "source": "iana" - }, - "application/cccex": { - "source": "iana" - }, - "application/ccmp+xml": { - "source": "iana", - "compressible": true - }, - "application/ccxml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ccxml"] - }, - "application/cdfx+xml": { - "source": "iana", - "compressible": true - }, - "application/cdmi-capability": { - "source": "iana", - "extensions": ["cdmia"] - }, - "application/cdmi-container": { - "source": "iana", - "extensions": ["cdmic"] - }, - "application/cdmi-domain": { - "source": "iana", - "extensions": ["cdmid"] - }, - "application/cdmi-object": { - "source": "iana", - "extensions": ["cdmio"] - }, - "application/cdmi-queue": { - "source": "iana", - "extensions": ["cdmiq"] - }, - "application/cdni": { - "source": "iana" - }, - "application/cea": { - "source": "iana" - }, - "application/cea-2018+xml": { - "source": "iana", - "compressible": true - }, - "application/cellml+xml": { - "source": "iana", - "compressible": true - }, - "application/cfw": { - "source": "iana" - }, - "application/clue_info+xml": { - "source": "iana", - "compressible": true - }, - "application/cms": { - "source": "iana" - }, - "application/cnrp+xml": { - "source": "iana", - "compressible": true - }, - "application/coap-group+json": { - "source": "iana", - "compressible": true - }, - "application/coap-payload": { - "source": "iana" - }, - "application/commonground": { - "source": "iana" - }, - "application/conference-info+xml": { - "source": "iana", - "compressible": true - }, - "application/cose": { - "source": "iana" - }, - "application/cose-key": { - "source": "iana" - }, - "application/cose-key-set": { - "source": "iana" - }, - "application/cpl+xml": { - "source": "iana", - "compressible": true - }, - "application/csrattrs": { - "source": "iana" - }, - "application/csta+xml": { - "source": "iana", - "compressible": true - }, - "application/cstadata+xml": { - "source": "iana", - "compressible": true - }, - "application/csvm+json": { - "source": "iana", - "compressible": true - }, - "application/cu-seeme": { - "source": "apache", - "extensions": ["cu"] - }, - "application/cwt": { - "source": "iana" - }, - "application/cybercash": { - "source": "iana" - }, - "application/dart": { - "compressible": true - }, - "application/dash+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpd"] - }, - "application/dashdelta": { - "source": "iana" - }, - "application/davmount+xml": { - "source": "iana", - "compressible": true, - "extensions": ["davmount"] - }, - "application/dca-rft": { - "source": "iana" - }, - "application/dcd": { - "source": "iana" - }, - "application/dec-dx": { - "source": "iana" - }, - "application/dialog-info+xml": { - "source": "iana", - "compressible": true - }, - "application/dicom": { - "source": "iana" - }, - "application/dicom+json": { - "source": "iana", - "compressible": true - }, - "application/dicom+xml": { - "source": "iana", - "compressible": true - }, - "application/dii": { - "source": "iana" - }, - "application/dit": { - "source": "iana" - }, - "application/dns": { - "source": "iana" - }, - "application/dns+json": { - "source": "iana", - "compressible": true - }, - "application/dns-message": { - "source": "iana" - }, - "application/docbook+xml": { - "source": "apache", - "compressible": true, - "extensions": ["dbk"] - }, - "application/dskpp+xml": { - "source": "iana", - "compressible": true - }, - "application/dssc+der": { - "source": "iana", - "extensions": ["dssc"] - }, - "application/dssc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdssc"] - }, - "application/dvcs": { - "source": "iana" - }, - "application/ecmascript": { - "source": "iana", - "compressible": true, - "extensions": ["ecma","es"] - }, - "application/edi-consent": { - "source": "iana" - }, - "application/edi-x12": { - "source": "iana", - "compressible": false - }, - "application/edifact": { - "source": "iana", - "compressible": false - }, - "application/efi": { - "source": "iana" - }, - "application/emergencycalldata.comment+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.control+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.deviceinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.ecall.msd": { - "source": "iana" - }, - "application/emergencycalldata.providerinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.serviceinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.subscriberinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/emergencycalldata.veds+xml": { - "source": "iana", - "compressible": true - }, - "application/emma+xml": { - "source": "iana", - "compressible": true, - "extensions": ["emma"] - }, - "application/emotionml+xml": { - "source": "iana", - "compressible": true - }, - "application/encaprtp": { - "source": "iana" - }, - "application/epp+xml": { - "source": "iana", - "compressible": true - }, - "application/epub+zip": { - "source": "iana", - "compressible": false, - "extensions": ["epub"] - }, - "application/eshop": { - "source": "iana" - }, - "application/exi": { - "source": "iana", - "extensions": ["exi"] - }, - "application/fastinfoset": { - "source": "iana" - }, - "application/fastsoap": { - "source": "iana" - }, - "application/fdt+xml": { - "source": "iana", - "compressible": true - }, - "application/fhir+json": { - "source": "iana", - "compressible": true - }, - "application/fhir+xml": { - "source": "iana", - "compressible": true - }, - "application/fido.trusted-apps+json": { - "compressible": true - }, - "application/fits": { - "source": "iana" - }, - "application/font-sfnt": { - "source": "iana" - }, - "application/font-tdpfr": { - "source": "iana", - "extensions": ["pfr"] - }, - "application/font-woff": { - "source": "iana", - "compressible": false - }, - "application/framework-attributes+xml": { - "source": "iana", - "compressible": true - }, - "application/geo+json": { - "source": "iana", - "compressible": true, - "extensions": ["geojson"] - }, - "application/geo+json-seq": { - "source": "iana" - }, - "application/geopackage+sqlite3": { - "source": "iana" - }, - "application/geoxacml+xml": { - "source": "iana", - "compressible": true - }, - "application/gltf-buffer": { - "source": "iana" - }, - "application/gml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["gml"] - }, - "application/gpx+xml": { - "source": "apache", - "compressible": true, - "extensions": ["gpx"] - }, - "application/gxf": { - "source": "apache", - "extensions": ["gxf"] - }, - "application/gzip": { - "source": "iana", - "compressible": false, - "extensions": ["gz"] - }, - "application/h224": { - "source": "iana" - }, - "application/held+xml": { - "source": "iana", - "compressible": true - }, - "application/hjson": { - "extensions": ["hjson"] - }, - "application/http": { - "source": "iana" - }, - "application/hyperstudio": { - "source": "iana", - "extensions": ["stk"] - }, - "application/ibe-key-request+xml": { - "source": "iana", - "compressible": true - }, - "application/ibe-pkg-reply+xml": { - "source": "iana", - "compressible": true - }, - "application/ibe-pp-data": { - "source": "iana" - }, - "application/iges": { - "source": "iana" - }, - "application/im-iscomposing+xml": { - "source": "iana", - "compressible": true - }, - "application/index": { - "source": "iana" - }, - "application/index.cmd": { - "source": "iana" - }, - "application/index.obj": { - "source": "iana" - }, - "application/index.response": { - "source": "iana" - }, - "application/index.vnd": { - "source": "iana" - }, - "application/inkml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ink","inkml"] - }, - "application/iotp": { - "source": "iana" - }, - "application/ipfix": { - "source": "iana", - "extensions": ["ipfix"] - }, - "application/ipp": { - "source": "iana" - }, - "application/isup": { - "source": "iana" - }, - "application/its+xml": { - "source": "iana", - "compressible": true - }, - "application/java-archive": { - "source": "apache", - "compressible": false, - "extensions": ["jar","war","ear"] - }, - "application/java-serialized-object": { - "source": "apache", - "compressible": false, - "extensions": ["ser"] - }, - "application/java-vm": { - "source": "apache", - "compressible": false, - "extensions": ["class"] - }, - "application/javascript": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["js","mjs"] - }, - "application/jf2feed+json": { - "source": "iana", - "compressible": true - }, - "application/jose": { - "source": "iana" - }, - "application/jose+json": { - "source": "iana", - "compressible": true - }, - "application/jrd+json": { - "source": "iana", - "compressible": true - }, - "application/json": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["json","map"] - }, - "application/json-patch+json": { - "source": "iana", - "compressible": true - }, - "application/json-seq": { - "source": "iana" - }, - "application/json5": { - "extensions": ["json5"] - }, - "application/jsonml+json": { - "source": "apache", - "compressible": true, - "extensions": ["jsonml"] - }, - "application/jwk+json": { - "source": "iana", - "compressible": true - }, - "application/jwk-set+json": { - "source": "iana", - "compressible": true - }, - "application/jwt": { - "source": "iana" - }, - "application/kpml-request+xml": { - "source": "iana", - "compressible": true - }, - "application/kpml-response+xml": { - "source": "iana", - "compressible": true - }, - "application/ld+json": { - "source": "iana", - "compressible": true, - "extensions": ["jsonld"] - }, - "application/lgr+xml": { - "source": "iana", - "compressible": true - }, - "application/link-format": { - "source": "iana" - }, - "application/load-control+xml": { - "source": "iana", - "compressible": true - }, - "application/lost+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lostxml"] - }, - "application/lostsync+xml": { - "source": "iana", - "compressible": true - }, - "application/lxf": { - "source": "iana" - }, - "application/mac-binhex40": { - "source": "iana", - "extensions": ["hqx"] - }, - "application/mac-compactpro": { - "source": "apache", - "extensions": ["cpt"] - }, - "application/macwriteii": { - "source": "iana" - }, - "application/mads+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mads"] - }, - "application/manifest+json": { - "charset": "UTF-8", - "compressible": true, - "extensions": ["webmanifest"] - }, - "application/marc": { - "source": "iana", - "extensions": ["mrc"] - }, - "application/marcxml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mrcx"] - }, - "application/mathematica": { - "source": "iana", - "extensions": ["ma","nb","mb"] - }, - "application/mathml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mathml"] - }, - "application/mathml-content+xml": { - "source": "iana", - "compressible": true - }, - "application/mathml-presentation+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-associated-procedure-description+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-deregister+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-envelope+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-msk+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-msk-response+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-protection-description+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-reception-report+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-register+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-register-response+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-schedule+xml": { - "source": "iana", - "compressible": true - }, - "application/mbms-user-service-description+xml": { - "source": "iana", - "compressible": true - }, - "application/mbox": { - "source": "iana", - "extensions": ["mbox"] - }, - "application/media-policy-dataset+xml": { - "source": "iana", - "compressible": true - }, - "application/media_control+xml": { - "source": "iana", - "compressible": true - }, - "application/mediaservercontrol+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mscml"] - }, - "application/merge-patch+json": { - "source": "iana", - "compressible": true - }, - "application/metalink+xml": { - "source": "apache", - "compressible": true, - "extensions": ["metalink"] - }, - "application/metalink4+xml": { - "source": "iana", - "compressible": true, - "extensions": ["meta4"] - }, - "application/mets+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mets"] - }, - "application/mf4": { - "source": "iana" - }, - "application/mikey": { - "source": "iana" - }, - "application/mmt-usd+xml": { - "source": "iana", - "compressible": true - }, - "application/mods+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mods"] - }, - "application/moss-keys": { - "source": "iana" - }, - "application/moss-signature": { - "source": "iana" - }, - "application/mosskey-data": { - "source": "iana" - }, - "application/mosskey-request": { - "source": "iana" - }, - "application/mp21": { - "source": "iana", - "extensions": ["m21","mp21"] - }, - "application/mp4": { - "source": "iana", - "extensions": ["mp4s","m4p"] - }, - "application/mpeg4-generic": { - "source": "iana" - }, - "application/mpeg4-iod": { - "source": "iana" - }, - "application/mpeg4-iod-xmt": { - "source": "iana" - }, - "application/mrb-consumer+xml": { - "source": "iana", - "compressible": true - }, - "application/mrb-publish+xml": { - "source": "iana", - "compressible": true - }, - "application/msc-ivr+xml": { - "source": "iana", - "compressible": true - }, - "application/msc-mixer+xml": { - "source": "iana", - "compressible": true - }, - "application/msword": { - "source": "iana", - "compressible": false, - "extensions": ["doc","dot"] - }, - "application/mud+json": { - "source": "iana", - "compressible": true - }, - "application/mxf": { - "source": "iana", - "extensions": ["mxf"] - }, - "application/n-quads": { - "source": "iana" - }, - "application/n-triples": { - "source": "iana" - }, - "application/nasdata": { - "source": "iana" - }, - "application/news-checkgroups": { - "source": "iana" - }, - "application/news-groupinfo": { - "source": "iana" - }, - "application/news-transmission": { - "source": "iana" - }, - "application/nlsml+xml": { - "source": "iana", - "compressible": true - }, - "application/node": { - "source": "iana" - }, - "application/nss": { - "source": "iana" - }, - "application/ocsp-request": { - "source": "iana" - }, - "application/ocsp-response": { - "source": "iana" - }, - "application/octet-stream": { - "source": "iana", - "compressible": false, - "extensions": ["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"] - }, - "application/oda": { - "source": "iana", - "extensions": ["oda"] - }, - "application/odx": { - "source": "iana" - }, - "application/oebps-package+xml": { - "source": "iana", - "compressible": true, - "extensions": ["opf"] - }, - "application/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["ogx"] - }, - "application/omdoc+xml": { - "source": "apache", - "compressible": true, - "extensions": ["omdoc"] - }, - "application/onenote": { - "source": "apache", - "extensions": ["onetoc","onetoc2","onetmp","onepkg"] - }, - "application/oxps": { - "source": "iana", - "extensions": ["oxps"] - }, - "application/p2p-overlay+xml": { - "source": "iana", - "compressible": true - }, - "application/parityfec": { - "source": "iana" - }, - "application/passport": { - "source": "iana" - }, - "application/patch-ops-error+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xer"] - }, - "application/pdf": { - "source": "iana", - "compressible": false, - "extensions": ["pdf"] - }, - "application/pdx": { - "source": "iana" - }, - "application/pgp-encrypted": { - "source": "iana", - "compressible": false, - "extensions": ["pgp"] - }, - "application/pgp-keys": { - "source": "iana" - }, - "application/pgp-signature": { - "source": "iana", - "extensions": ["asc","sig"] - }, - "application/pics-rules": { - "source": "apache", - "extensions": ["prf"] - }, - "application/pidf+xml": { - "source": "iana", - "compressible": true - }, - "application/pidf-diff+xml": { - "source": "iana", - "compressible": true - }, - "application/pkcs10": { - "source": "iana", - "extensions": ["p10"] - }, - "application/pkcs12": { - "source": "iana" - }, - "application/pkcs7-mime": { - "source": "iana", - "extensions": ["p7m","p7c"] - }, - "application/pkcs7-signature": { - "source": "iana", - "extensions": ["p7s"] - }, - "application/pkcs8": { - "source": "iana", - "extensions": ["p8"] - }, - "application/pkcs8-encrypted": { - "source": "iana" - }, - "application/pkix-attr-cert": { - "source": "iana", - "extensions": ["ac"] - }, - "application/pkix-cert": { - "source": "iana", - "extensions": ["cer"] - }, - "application/pkix-crl": { - "source": "iana", - "extensions": ["crl"] - }, - "application/pkix-pkipath": { - "source": "iana", - "extensions": ["pkipath"] - }, - "application/pkixcmp": { - "source": "iana", - "extensions": ["pki"] - }, - "application/pls+xml": { - "source": "iana", - "compressible": true, - "extensions": ["pls"] - }, - "application/poc-settings+xml": { - "source": "iana", - "compressible": true - }, - "application/postscript": { - "source": "iana", - "compressible": true, - "extensions": ["ai","eps","ps"] - }, - "application/ppsp-tracker+json": { - "source": "iana", - "compressible": true - }, - "application/problem+json": { - "source": "iana", - "compressible": true - }, - "application/problem+xml": { - "source": "iana", - "compressible": true - }, - "application/provenance+xml": { - "source": "iana", - "compressible": true - }, - "application/prs.alvestrand.titrax-sheet": { - "source": "iana" - }, - "application/prs.cww": { - "source": "iana", - "extensions": ["cww"] - }, - "application/prs.hpub+zip": { - "source": "iana", - "compressible": false - }, - "application/prs.nprend": { - "source": "iana" - }, - "application/prs.plucker": { - "source": "iana" - }, - "application/prs.rdf-xml-crypt": { - "source": "iana" - }, - "application/prs.xsf+xml": { - "source": "iana", - "compressible": true - }, - "application/pskc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["pskcxml"] - }, - "application/qsig": { - "source": "iana" - }, - "application/raml+yaml": { - "compressible": true, - "extensions": ["raml"] - }, - "application/raptorfec": { - "source": "iana" - }, - "application/rdap+json": { - "source": "iana", - "compressible": true - }, - "application/rdf+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rdf","owl"] - }, - "application/reginfo+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rif"] - }, - "application/relax-ng-compact-syntax": { - "source": "iana", - "extensions": ["rnc"] - }, - "application/remote-printing": { - "source": "iana" - }, - "application/reputon+json": { - "source": "iana", - "compressible": true - }, - "application/resource-lists+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rl"] - }, - "application/resource-lists-diff+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rld"] - }, - "application/rfc+xml": { - "source": "iana", - "compressible": true - }, - "application/riscos": { - "source": "iana" - }, - "application/rlmi+xml": { - "source": "iana", - "compressible": true - }, - "application/rls-services+xml": { - "source": "iana", - "compressible": true, - "extensions": ["rs"] - }, - "application/route-apd+xml": { - "source": "iana", - "compressible": true - }, - "application/route-s-tsid+xml": { - "source": "iana", - "compressible": true - }, - "application/route-usd+xml": { - "source": "iana", - "compressible": true - }, - "application/rpki-ghostbusters": { - "source": "iana", - "extensions": ["gbr"] - }, - "application/rpki-manifest": { - "source": "iana", - "extensions": ["mft"] - }, - "application/rpki-publication": { - "source": "iana" - }, - "application/rpki-roa": { - "source": "iana", - "extensions": ["roa"] - }, - "application/rpki-updown": { - "source": "iana" - }, - "application/rsd+xml": { - "source": "apache", - "compressible": true, - "extensions": ["rsd"] - }, - "application/rss+xml": { - "source": "apache", - "compressible": true, - "extensions": ["rss"] - }, - "application/rtf": { - "source": "iana", - "compressible": true, - "extensions": ["rtf"] - }, - "application/rtploopback": { - "source": "iana" - }, - "application/rtx": { - "source": "iana" - }, - "application/samlassertion+xml": { - "source": "iana", - "compressible": true - }, - "application/samlmetadata+xml": { - "source": "iana", - "compressible": true - }, - "application/sbml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sbml"] - }, - "application/scaip+xml": { - "source": "iana", - "compressible": true - }, - "application/scim+json": { - "source": "iana", - "compressible": true - }, - "application/scvp-cv-request": { - "source": "iana", - "extensions": ["scq"] - }, - "application/scvp-cv-response": { - "source": "iana", - "extensions": ["scs"] - }, - "application/scvp-vp-request": { - "source": "iana", - "extensions": ["spq"] - }, - "application/scvp-vp-response": { - "source": "iana", - "extensions": ["spp"] - }, - "application/sdp": { - "source": "iana", - "extensions": ["sdp"] - }, - "application/secevent+jwt": { - "source": "iana" - }, - "application/senml+cbor": { - "source": "iana" - }, - "application/senml+json": { - "source": "iana", - "compressible": true - }, - "application/senml+xml": { - "source": "iana", - "compressible": true - }, - "application/senml-exi": { - "source": "iana" - }, - "application/sensml+cbor": { - "source": "iana" - }, - "application/sensml+json": { - "source": "iana", - "compressible": true - }, - "application/sensml+xml": { - "source": "iana", - "compressible": true - }, - "application/sensml-exi": { - "source": "iana" - }, - "application/sep+xml": { - "source": "iana", - "compressible": true - }, - "application/sep-exi": { - "source": "iana" - }, - "application/session-info": { - "source": "iana" - }, - "application/set-payment": { - "source": "iana" - }, - "application/set-payment-initiation": { - "source": "iana", - "extensions": ["setpay"] - }, - "application/set-registration": { - "source": "iana" - }, - "application/set-registration-initiation": { - "source": "iana", - "extensions": ["setreg"] - }, - "application/sgml": { - "source": "iana" - }, - "application/sgml-open-catalog": { - "source": "iana" - }, - "application/shf+xml": { - "source": "iana", - "compressible": true, - "extensions": ["shf"] - }, - "application/sieve": { - "source": "iana" - }, - "application/simple-filter+xml": { - "source": "iana", - "compressible": true - }, - "application/simple-message-summary": { - "source": "iana" - }, - "application/simplesymbolcontainer": { - "source": "iana" - }, - "application/slate": { - "source": "iana" - }, - "application/smil": { - "source": "iana" - }, - "application/smil+xml": { - "source": "iana", - "compressible": true, - "extensions": ["smi","smil"] - }, - "application/smpte336m": { - "source": "iana" - }, - "application/soap+fastinfoset": { - "source": "iana" - }, - "application/soap+xml": { - "source": "iana", - "compressible": true - }, - "application/sparql-query": { - "source": "iana", - "extensions": ["rq"] - }, - "application/sparql-results+xml": { - "source": "iana", - "compressible": true, - "extensions": ["srx"] - }, - "application/spirits-event+xml": { - "source": "iana", - "compressible": true - }, - "application/sql": { - "source": "iana" - }, - "application/srgs": { - "source": "iana", - "extensions": ["gram"] - }, - "application/srgs+xml": { - "source": "iana", - "compressible": true, - "extensions": ["grxml"] - }, - "application/sru+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sru"] - }, - "application/ssdl+xml": { - "source": "apache", - "compressible": true, - "extensions": ["ssdl"] - }, - "application/ssml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["ssml"] - }, - "application/stix+json": { - "source": "iana", - "compressible": true - }, - "application/tamp-apex-update": { - "source": "iana" - }, - "application/tamp-apex-update-confirm": { - "source": "iana" - }, - "application/tamp-community-update": { - "source": "iana" - }, - "application/tamp-community-update-confirm": { - "source": "iana" - }, - "application/tamp-error": { - "source": "iana" - }, - "application/tamp-sequence-adjust": { - "source": "iana" - }, - "application/tamp-sequence-adjust-confirm": { - "source": "iana" - }, - "application/tamp-status-query": { - "source": "iana" - }, - "application/tamp-status-response": { - "source": "iana" - }, - "application/tamp-update": { - "source": "iana" - }, - "application/tamp-update-confirm": { - "source": "iana" - }, - "application/tar": { - "compressible": true - }, - "application/taxii+json": { - "source": "iana", - "compressible": true - }, - "application/tei+xml": { - "source": "iana", - "compressible": true, - "extensions": ["tei","teicorpus"] - }, - "application/thraud+xml": { - "source": "iana", - "compressible": true, - "extensions": ["tfi"] - }, - "application/timestamp-query": { - "source": "iana" - }, - "application/timestamp-reply": { - "source": "iana" - }, - "application/timestamped-data": { - "source": "iana", - "extensions": ["tsd"] - }, - "application/tlsrpt+gzip": { - "source": "iana" - }, - "application/tlsrpt+json": { - "source": "iana", - "compressible": true - }, - "application/tnauthlist": { - "source": "iana" - }, - "application/trickle-ice-sdpfrag": { - "source": "iana" - }, - "application/trig": { - "source": "iana" - }, - "application/ttml+xml": { - "source": "iana", - "compressible": true - }, - "application/tve-trigger": { - "source": "iana" - }, - "application/ulpfec": { - "source": "iana" - }, - "application/urc-grpsheet+xml": { - "source": "iana", - "compressible": true - }, - "application/urc-ressheet+xml": { - "source": "iana", - "compressible": true - }, - "application/urc-targetdesc+xml": { - "source": "iana", - "compressible": true - }, - "application/urc-uisocketdesc+xml": { - "source": "iana", - "compressible": true - }, - "application/vcard+json": { - "source": "iana", - "compressible": true - }, - "application/vcard+xml": { - "source": "iana", - "compressible": true - }, - "application/vemmi": { - "source": "iana" - }, - "application/vividence.scriptfile": { - "source": "apache" - }, - "application/vnd.1000minds.decision-model+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-prose+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-prose-pc3ch+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp-v2x-local-service-information": { - "source": "iana" - }, - "application/vnd.3gpp.access-transfer-events+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.bsf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.gmop+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mc-signalling-ear": { - "source": "iana" - }, - "application/vnd.3gpp.mcdata-payload": { - "source": "iana" - }, - "application/vnd.3gpp.mcdata-signalling": { - "source": "iana" - }, - "application/vnd.3gpp.mcptt-affiliation-command+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-floor-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-location-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-mbms-usage-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mcptt-signed+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.mid-call+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.pic-bw-large": { - "source": "iana", - "extensions": ["plb"] - }, - "application/vnd.3gpp.pic-bw-small": { - "source": "iana", - "extensions": ["psb"] - }, - "application/vnd.3gpp.pic-bw-var": { - "source": "iana", - "extensions": ["pvb"] - }, - "application/vnd.3gpp.sms": { - "source": "iana" - }, - "application/vnd.3gpp.sms+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.srvcc-ext+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.srvcc-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.state-and-event-info+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp.ussd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp2.bcmcsinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.3gpp2.sms": { - "source": "iana" - }, - "application/vnd.3gpp2.tcap": { - "source": "iana", - "extensions": ["tcap"] - }, - "application/vnd.3lightssoftware.imagescal": { - "source": "iana" - }, - "application/vnd.3m.post-it-notes": { - "source": "iana", - "extensions": ["pwn"] - }, - "application/vnd.accpac.simply.aso": { - "source": "iana", - "extensions": ["aso"] - }, - "application/vnd.accpac.simply.imp": { - "source": "iana", - "extensions": ["imp"] - }, - "application/vnd.acucobol": { - "source": "iana", - "extensions": ["acu"] - }, - "application/vnd.acucorp": { - "source": "iana", - "extensions": ["atc","acutc"] - }, - "application/vnd.adobe.air-application-installer-package+zip": { - "source": "apache", - "compressible": false, - "extensions": ["air"] - }, - "application/vnd.adobe.flash.movie": { - "source": "iana" - }, - "application/vnd.adobe.formscentral.fcdt": { - "source": "iana", - "extensions": ["fcdt"] - }, - "application/vnd.adobe.fxp": { - "source": "iana", - "extensions": ["fxp","fxpl"] - }, - "application/vnd.adobe.partial-upload": { - "source": "iana" - }, - "application/vnd.adobe.xdp+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdp"] - }, - "application/vnd.adobe.xfdf": { - "source": "iana", - "extensions": ["xfdf"] - }, - "application/vnd.aether.imp": { - "source": "iana" - }, - "application/vnd.afpc.afplinedata": { - "source": "iana" - }, - "application/vnd.afpc.modca": { - "source": "iana" - }, - "application/vnd.ah-barcode": { - "source": "iana" - }, - "application/vnd.ahead.space": { - "source": "iana", - "extensions": ["ahead"] - }, - "application/vnd.airzip.filesecure.azf": { - "source": "iana", - "extensions": ["azf"] - }, - "application/vnd.airzip.filesecure.azs": { - "source": "iana", - "extensions": ["azs"] - }, - "application/vnd.amadeus+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.amazon.ebook": { - "source": "apache", - "extensions": ["azw"] - }, - "application/vnd.amazon.mobi8-ebook": { - "source": "iana" - }, - "application/vnd.americandynamics.acc": { - "source": "iana", - "extensions": ["acc"] - }, - "application/vnd.amiga.ami": { - "source": "iana", - "extensions": ["ami"] - }, - "application/vnd.amundsen.maze+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.android.package-archive": { - "source": "apache", - "compressible": false, - "extensions": ["apk"] - }, - "application/vnd.anki": { - "source": "iana" - }, - "application/vnd.anser-web-certificate-issue-initiation": { - "source": "iana", - "extensions": ["cii"] - }, - "application/vnd.anser-web-funds-transfer-initiation": { - "source": "apache", - "extensions": ["fti"] - }, - "application/vnd.antix.game-component": { - "source": "iana", - "extensions": ["atx"] - }, - "application/vnd.apache.thrift.binary": { - "source": "iana" - }, - "application/vnd.apache.thrift.compact": { - "source": "iana" - }, - "application/vnd.apache.thrift.json": { - "source": "iana" - }, - "application/vnd.api+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.apothekende.reservation+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.apple.installer+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mpkg"] - }, - "application/vnd.apple.keynote": { - "source": "iana", - "extensions": ["keynote"] - }, - "application/vnd.apple.mpegurl": { - "source": "iana", - "extensions": ["m3u8"] - }, - "application/vnd.apple.numbers": { - "source": "iana", - "extensions": ["numbers"] - }, - "application/vnd.apple.pages": { - "source": "iana", - "extensions": ["pages"] - }, - "application/vnd.apple.pkpass": { - "compressible": false, - "extensions": ["pkpass"] - }, - "application/vnd.arastra.swi": { - "source": "iana" - }, - "application/vnd.aristanetworks.swi": { - "source": "iana", - "extensions": ["swi"] - }, - "application/vnd.artisan+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.artsquare": { - "source": "iana" - }, - "application/vnd.astraea-software.iota": { - "source": "iana", - "extensions": ["iota"] - }, - "application/vnd.audiograph": { - "source": "iana", - "extensions": ["aep"] - }, - "application/vnd.autopackage": { - "source": "iana" - }, - "application/vnd.avalon+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.avistar+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.balsamiq.bmml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.balsamiq.bmpr": { - "source": "iana" - }, - "application/vnd.banana-accounting": { - "source": "iana" - }, - "application/vnd.bbf.usp.msg": { - "source": "iana" - }, - "application/vnd.bbf.usp.msg+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.bekitzur-stech+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.bint.med-content": { - "source": "iana" - }, - "application/vnd.biopax.rdf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.blink-idb-value-wrapper": { - "source": "iana" - }, - "application/vnd.blueice.multipass": { - "source": "iana", - "extensions": ["mpm"] - }, - "application/vnd.bluetooth.ep.oob": { - "source": "iana" - }, - "application/vnd.bluetooth.le.oob": { - "source": "iana" - }, - "application/vnd.bmi": { - "source": "iana", - "extensions": ["bmi"] - }, - "application/vnd.businessobjects": { - "source": "iana", - "extensions": ["rep"] - }, - "application/vnd.byu.uapi+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cab-jscript": { - "source": "iana" - }, - "application/vnd.canon-cpdl": { - "source": "iana" - }, - "application/vnd.canon-lips": { - "source": "iana" - }, - "application/vnd.capasystems-pg+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cendio.thinlinc.clientconf": { - "source": "iana" - }, - "application/vnd.century-systems.tcp_stream": { - "source": "iana" - }, - "application/vnd.chemdraw+xml": { - "source": "iana", - "compressible": true, - "extensions": ["cdxml"] - }, - "application/vnd.chess-pgn": { - "source": "iana" - }, - "application/vnd.chipnuts.karaoke-mmd": { - "source": "iana", - "extensions": ["mmd"] - }, - "application/vnd.cinderella": { - "source": "iana", - "extensions": ["cdy"] - }, - "application/vnd.cirpack.isdn-ext": { - "source": "iana" - }, - "application/vnd.citationstyles.style+xml": { - "source": "iana", - "compressible": true, - "extensions": ["csl"] - }, - "application/vnd.claymore": { - "source": "iana", - "extensions": ["cla"] - }, - "application/vnd.cloanto.rp9": { - "source": "iana", - "extensions": ["rp9"] - }, - "application/vnd.clonk.c4group": { - "source": "iana", - "extensions": ["c4g","c4d","c4f","c4p","c4u"] - }, - "application/vnd.cluetrust.cartomobile-config": { - "source": "iana", - "extensions": ["c11amc"] - }, - "application/vnd.cluetrust.cartomobile-config-pkg": { - "source": "iana", - "extensions": ["c11amz"] - }, - "application/vnd.coffeescript": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.document": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.document-template": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.presentation": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.presentation-template": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.spreadsheet": { - "source": "iana" - }, - "application/vnd.collabio.xodocuments.spreadsheet-template": { - "source": "iana" - }, - "application/vnd.collection+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.collection.doc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.collection.next+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.comicbook+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.comicbook-rar": { - "source": "iana" - }, - "application/vnd.commerce-battelle": { - "source": "iana" - }, - "application/vnd.commonspace": { - "source": "iana", - "extensions": ["csp"] - }, - "application/vnd.contact.cmsg": { - "source": "iana", - "extensions": ["cdbcmsg"] - }, - "application/vnd.coreos.ignition+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.cosmocaller": { - "source": "iana", - "extensions": ["cmc"] - }, - "application/vnd.crick.clicker": { - "source": "iana", - "extensions": ["clkx"] - }, - "application/vnd.crick.clicker.keyboard": { - "source": "iana", - "extensions": ["clkk"] - }, - "application/vnd.crick.clicker.palette": { - "source": "iana", - "extensions": ["clkp"] - }, - "application/vnd.crick.clicker.template": { - "source": "iana", - "extensions": ["clkt"] - }, - "application/vnd.crick.clicker.wordbank": { - "source": "iana", - "extensions": ["clkw"] - }, - "application/vnd.criticaltools.wbs+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wbs"] - }, - "application/vnd.ctc-posml": { - "source": "iana", - "extensions": ["pml"] - }, - "application/vnd.ctct.ws+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.cups-pdf": { - "source": "iana" - }, - "application/vnd.cups-postscript": { - "source": "iana" - }, - "application/vnd.cups-ppd": { - "source": "iana", - "extensions": ["ppd"] - }, - "application/vnd.cups-raster": { - "source": "iana" - }, - "application/vnd.cups-raw": { - "source": "iana" - }, - "application/vnd.curl": { - "source": "iana" - }, - "application/vnd.curl.car": { - "source": "apache", - "extensions": ["car"] - }, - "application/vnd.curl.pcurl": { - "source": "apache", - "extensions": ["pcurl"] - }, - "application/vnd.cyan.dean.root+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.cybank": { - "source": "iana" - }, - "application/vnd.d2l.coursepackage1p0+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.dart": { - "source": "iana", - "compressible": true, - "extensions": ["dart"] - }, - "application/vnd.data-vision.rdz": { - "source": "iana", - "extensions": ["rdz"] - }, - "application/vnd.datapackage+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.dataresource+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.debian.binary-package": { - "source": "iana" - }, - "application/vnd.dece.data": { - "source": "iana", - "extensions": ["uvf","uvvf","uvd","uvvd"] - }, - "application/vnd.dece.ttml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["uvt","uvvt"] - }, - "application/vnd.dece.unspecified": { - "source": "iana", - "extensions": ["uvx","uvvx"] - }, - "application/vnd.dece.zip": { - "source": "iana", - "extensions": ["uvz","uvvz"] - }, - "application/vnd.denovo.fcselayout-link": { - "source": "iana", - "extensions": ["fe_launch"] - }, - "application/vnd.desmume.movie": { - "source": "iana" - }, - "application/vnd.dir-bi.plate-dl-nosuffix": { - "source": "iana" - }, - "application/vnd.dm.delegation+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dna": { - "source": "iana", - "extensions": ["dna"] - }, - "application/vnd.document+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.dolby.mlp": { - "source": "apache", - "extensions": ["mlp"] - }, - "application/vnd.dolby.mobile.1": { - "source": "iana" - }, - "application/vnd.dolby.mobile.2": { - "source": "iana" - }, - "application/vnd.doremir.scorecloud-binary-document": { - "source": "iana" - }, - "application/vnd.dpgraph": { - "source": "iana", - "extensions": ["dpg"] - }, - "application/vnd.dreamfactory": { - "source": "iana", - "extensions": ["dfac"] - }, - "application/vnd.drive+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ds-keypoint": { - "source": "apache", - "extensions": ["kpxx"] - }, - "application/vnd.dtg.local": { - "source": "iana" - }, - "application/vnd.dtg.local.flash": { - "source": "iana" - }, - "application/vnd.dtg.local.html": { - "source": "iana" - }, - "application/vnd.dvb.ait": { - "source": "iana", - "extensions": ["ait"] - }, - "application/vnd.dvb.dvbj": { - "source": "iana" - }, - "application/vnd.dvb.esgcontainer": { - "source": "iana" - }, - "application/vnd.dvb.ipdcdftnotifaccess": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgaccess": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgaccess2": { - "source": "iana" - }, - "application/vnd.dvb.ipdcesgpdd": { - "source": "iana" - }, - "application/vnd.dvb.ipdcroaming": { - "source": "iana" - }, - "application/vnd.dvb.iptv.alfec-base": { - "source": "iana" - }, - "application/vnd.dvb.iptv.alfec-enhancement": { - "source": "iana" - }, - "application/vnd.dvb.notif-aggregate-root+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-container+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-generic+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-ia-msglist+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-ia-registration-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-ia-registration-response+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.notif-init+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.dvb.pfr": { - "source": "iana" - }, - "application/vnd.dvb.service": { - "source": "iana", - "extensions": ["svc"] - }, - "application/vnd.dxr": { - "source": "iana" - }, - "application/vnd.dynageo": { - "source": "iana", - "extensions": ["geo"] - }, - "application/vnd.dzr": { - "source": "iana" - }, - "application/vnd.easykaraoke.cdgdownload": { - "source": "iana" - }, - "application/vnd.ecdis-update": { - "source": "iana" - }, - "application/vnd.ecip.rlp": { - "source": "iana" - }, - "application/vnd.ecowin.chart": { - "source": "iana", - "extensions": ["mag"] - }, - "application/vnd.ecowin.filerequest": { - "source": "iana" - }, - "application/vnd.ecowin.fileupdate": { - "source": "iana" - }, - "application/vnd.ecowin.series": { - "source": "iana" - }, - "application/vnd.ecowin.seriesrequest": { - "source": "iana" - }, - "application/vnd.ecowin.seriesupdate": { - "source": "iana" - }, - "application/vnd.efi.img": { - "source": "iana" - }, - "application/vnd.efi.iso": { - "source": "iana" - }, - "application/vnd.emclient.accessrequest+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.enliven": { - "source": "iana", - "extensions": ["nml"] - }, - "application/vnd.enphase.envoy": { - "source": "iana" - }, - "application/vnd.eprints.data+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.epson.esf": { - "source": "iana", - "extensions": ["esf"] - }, - "application/vnd.epson.msf": { - "source": "iana", - "extensions": ["msf"] - }, - "application/vnd.epson.quickanime": { - "source": "iana", - "extensions": ["qam"] - }, - "application/vnd.epson.salt": { - "source": "iana", - "extensions": ["slt"] - }, - "application/vnd.epson.ssf": { - "source": "iana", - "extensions": ["ssf"] - }, - "application/vnd.ericsson.quickcall": { - "source": "iana" - }, - "application/vnd.espass-espass+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.eszigno3+xml": { - "source": "iana", - "compressible": true, - "extensions": ["es3","et3"] - }, - "application/vnd.etsi.aoc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.asic-e+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.etsi.asic-s+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.etsi.cug+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvcommand+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvdiscovery+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsad-bc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsad-cod+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsad-npvr+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvservice+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvsync+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.iptvueprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.mcid+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.mheg5": { - "source": "iana" - }, - "application/vnd.etsi.overload-control-policy-dataset+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.pstn+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.sci+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.simservs+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.timestamp-token": { - "source": "iana" - }, - "application/vnd.etsi.tsl+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.etsi.tsl.der": { - "source": "iana" - }, - "application/vnd.eudora.data": { - "source": "iana" - }, - "application/vnd.evolv.ecig.profile": { - "source": "iana" - }, - "application/vnd.evolv.ecig.settings": { - "source": "iana" - }, - "application/vnd.evolv.ecig.theme": { - "source": "iana" - }, - "application/vnd.exstream-empower+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.ezpix-album": { - "source": "iana", - "extensions": ["ez2"] - }, - "application/vnd.ezpix-package": { - "source": "iana", - "extensions": ["ez3"] - }, - "application/vnd.f-secure.mobile": { - "source": "iana" - }, - "application/vnd.fastcopy-disk-image": { - "source": "iana" - }, - "application/vnd.fdf": { - "source": "iana", - "extensions": ["fdf"] - }, - "application/vnd.fdsn.mseed": { - "source": "iana", - "extensions": ["mseed"] - }, - "application/vnd.fdsn.seed": { - "source": "iana", - "extensions": ["seed","dataless"] - }, - "application/vnd.ffsns": { - "source": "iana" - }, - "application/vnd.filmit.zfc": { - "source": "iana" - }, - "application/vnd.fints": { - "source": "iana" - }, - "application/vnd.firemonkeys.cloudcell": { - "source": "iana" - }, - "application/vnd.flographit": { - "source": "iana", - "extensions": ["gph"] - }, - "application/vnd.fluxtime.clip": { - "source": "iana", - "extensions": ["ftc"] - }, - "application/vnd.font-fontforge-sfd": { - "source": "iana" - }, - "application/vnd.framemaker": { - "source": "iana", - "extensions": ["fm","frame","maker","book"] - }, - "application/vnd.frogans.fnc": { - "source": "iana", - "extensions": ["fnc"] - }, - "application/vnd.frogans.ltf": { - "source": "iana", - "extensions": ["ltf"] - }, - "application/vnd.fsc.weblaunch": { - "source": "iana", - "extensions": ["fsc"] - }, - "application/vnd.fujitsu.oasys": { - "source": "iana", - "extensions": ["oas"] - }, - "application/vnd.fujitsu.oasys2": { - "source": "iana", - "extensions": ["oa2"] - }, - "application/vnd.fujitsu.oasys3": { - "source": "iana", - "extensions": ["oa3"] - }, - "application/vnd.fujitsu.oasysgp": { - "source": "iana", - "extensions": ["fg5"] - }, - "application/vnd.fujitsu.oasysprs": { - "source": "iana", - "extensions": ["bh2"] - }, - "application/vnd.fujixerox.art-ex": { - "source": "iana" - }, - "application/vnd.fujixerox.art4": { - "source": "iana" - }, - "application/vnd.fujixerox.ddd": { - "source": "iana", - "extensions": ["ddd"] - }, - "application/vnd.fujixerox.docuworks": { - "source": "iana", - "extensions": ["xdw"] - }, - "application/vnd.fujixerox.docuworks.binder": { - "source": "iana", - "extensions": ["xbd"] - }, - "application/vnd.fujixerox.docuworks.container": { - "source": "iana" - }, - "application/vnd.fujixerox.hbpl": { - "source": "iana" - }, - "application/vnd.fut-misnet": { - "source": "iana" - }, - "application/vnd.futoin+cbor": { - "source": "iana" - }, - "application/vnd.futoin+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.fuzzysheet": { - "source": "iana", - "extensions": ["fzs"] - }, - "application/vnd.genomatix.tuxedo": { - "source": "iana", - "extensions": ["txd"] - }, - "application/vnd.geo+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.geocube+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.geogebra.file": { - "source": "iana", - "extensions": ["ggb"] - }, - "application/vnd.geogebra.tool": { - "source": "iana", - "extensions": ["ggt"] - }, - "application/vnd.geometry-explorer": { - "source": "iana", - "extensions": ["gex","gre"] - }, - "application/vnd.geonext": { - "source": "iana", - "extensions": ["gxt"] - }, - "application/vnd.geoplan": { - "source": "iana", - "extensions": ["g2w"] - }, - "application/vnd.geospace": { - "source": "iana", - "extensions": ["g3w"] - }, - "application/vnd.gerber": { - "source": "iana" - }, - "application/vnd.globalplatform.card-content-mgt": { - "source": "iana" - }, - "application/vnd.globalplatform.card-content-mgt-response": { - "source": "iana" - }, - "application/vnd.gmx": { - "source": "iana", - "extensions": ["gmx"] - }, - "application/vnd.google-apps.document": { - "compressible": false, - "extensions": ["gdoc"] - }, - "application/vnd.google-apps.presentation": { - "compressible": false, - "extensions": ["gslides"] - }, - "application/vnd.google-apps.spreadsheet": { - "compressible": false, - "extensions": ["gsheet"] - }, - "application/vnd.google-earth.kml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["kml"] - }, - "application/vnd.google-earth.kmz": { - "source": "iana", - "compressible": false, - "extensions": ["kmz"] - }, - "application/vnd.gov.sk.e-form+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.gov.sk.e-form+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.gov.sk.xmldatacontainer+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.grafeq": { - "source": "iana", - "extensions": ["gqf","gqs"] - }, - "application/vnd.gridmp": { - "source": "iana" - }, - "application/vnd.groove-account": { - "source": "iana", - "extensions": ["gac"] - }, - "application/vnd.groove-help": { - "source": "iana", - "extensions": ["ghf"] - }, - "application/vnd.groove-identity-message": { - "source": "iana", - "extensions": ["gim"] - }, - "application/vnd.groove-injector": { - "source": "iana", - "extensions": ["grv"] - }, - "application/vnd.groove-tool-message": { - "source": "iana", - "extensions": ["gtm"] - }, - "application/vnd.groove-tool-template": { - "source": "iana", - "extensions": ["tpl"] - }, - "application/vnd.groove-vcard": { - "source": "iana", - "extensions": ["vcg"] - }, - "application/vnd.hal+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hal+xml": { - "source": "iana", - "compressible": true, - "extensions": ["hal"] - }, - "application/vnd.handheld-entertainment+xml": { - "source": "iana", - "compressible": true, - "extensions": ["zmm"] - }, - "application/vnd.hbci": { - "source": "iana", - "extensions": ["hbci"] - }, - "application/vnd.hc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hcl-bireports": { - "source": "iana" - }, - "application/vnd.hdt": { - "source": "iana" - }, - "application/vnd.heroku+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hhe.lesson-player": { - "source": "iana", - "extensions": ["les"] - }, - "application/vnd.hp-hpgl": { - "source": "iana", - "extensions": ["hpgl"] - }, - "application/vnd.hp-hpid": { - "source": "iana", - "extensions": ["hpid"] - }, - "application/vnd.hp-hps": { - "source": "iana", - "extensions": ["hps"] - }, - "application/vnd.hp-jlyt": { - "source": "iana", - "extensions": ["jlt"] - }, - "application/vnd.hp-pcl": { - "source": "iana", - "extensions": ["pcl"] - }, - "application/vnd.hp-pclxl": { - "source": "iana", - "extensions": ["pclxl"] - }, - "application/vnd.httphone": { - "source": "iana" - }, - "application/vnd.hydrostatix.sof-data": { - "source": "iana", - "extensions": ["sfd-hdstx"] - }, - "application/vnd.hyper+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hyper-item+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hyperdrive+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.hzn-3d-crossword": { - "source": "iana" - }, - "application/vnd.ibm.afplinedata": { - "source": "iana" - }, - "application/vnd.ibm.electronic-media": { - "source": "iana" - }, - "application/vnd.ibm.minipay": { - "source": "iana", - "extensions": ["mpy"] - }, - "application/vnd.ibm.modcap": { - "source": "iana", - "extensions": ["afp","listafp","list3820"] - }, - "application/vnd.ibm.rights-management": { - "source": "iana", - "extensions": ["irm"] - }, - "application/vnd.ibm.secure-container": { - "source": "iana", - "extensions": ["sc"] - }, - "application/vnd.iccprofile": { - "source": "iana", - "extensions": ["icc","icm"] - }, - "application/vnd.ieee.1905": { - "source": "iana" - }, - "application/vnd.igloader": { - "source": "iana", - "extensions": ["igl"] - }, - "application/vnd.imagemeter.folder+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.imagemeter.image+zip": { - "source": "iana", - "compressible": false - }, - "application/vnd.immervision-ivp": { - "source": "iana", - "extensions": ["ivp"] - }, - "application/vnd.immervision-ivu": { - "source": "iana", - "extensions": ["ivu"] - }, - "application/vnd.ims.imsccv1p1": { - "source": "iana" - }, - "application/vnd.ims.imsccv1p2": { - "source": "iana" - }, - "application/vnd.ims.imsccv1p3": { - "source": "iana" - }, - "application/vnd.ims.lis.v2.result+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolconsumerprofile+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolproxy+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolproxy.id+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolsettings+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.ims.lti.v2.toolsettings.simple+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.informedcontrol.rms+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.informix-visionary": { - "source": "iana" - }, - "application/vnd.infotech.project": { - "source": "iana" - }, - "application/vnd.infotech.project+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.innopath.wamp.notification": { - "source": "iana" - }, - "application/vnd.insors.igm": { - "source": "iana", - "extensions": ["igm"] - }, - "application/vnd.intercon.formnet": { - "source": "iana", - "extensions": ["xpw","xpx"] - }, - "application/vnd.intergeo": { - "source": "iana", - "extensions": ["i2g"] - }, - "application/vnd.intertrust.digibox": { - "source": "iana" - }, - "application/vnd.intertrust.nncp": { - "source": "iana" - }, - "application/vnd.intu.qbo": { - "source": "iana", - "extensions": ["qbo"] - }, - "application/vnd.intu.qfx": { - "source": "iana", - "extensions": ["qfx"] - }, - "application/vnd.iptc.g2.catalogitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.conceptitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.knowledgeitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.newsitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.newsmessage+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.packageitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.iptc.g2.planningitem+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ipunplugged.rcprofile": { - "source": "iana", - "extensions": ["rcprofile"] - }, - "application/vnd.irepository.package+xml": { - "source": "iana", - "compressible": true, - "extensions": ["irp"] - }, - "application/vnd.is-xpr": { - "source": "iana", - "extensions": ["xpr"] - }, - "application/vnd.isac.fcs": { - "source": "iana", - "extensions": ["fcs"] - }, - "application/vnd.jam": { - "source": "iana", - "extensions": ["jam"] - }, - "application/vnd.japannet-directory-service": { - "source": "iana" - }, - "application/vnd.japannet-jpnstore-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-payment-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-registration": { - "source": "iana" - }, - "application/vnd.japannet-registration-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-setstore-wakeup": { - "source": "iana" - }, - "application/vnd.japannet-verification": { - "source": "iana" - }, - "application/vnd.japannet-verification-wakeup": { - "source": "iana" - }, - "application/vnd.jcp.javame.midlet-rms": { - "source": "iana", - "extensions": ["rms"] - }, - "application/vnd.jisp": { - "source": "iana", - "extensions": ["jisp"] - }, - "application/vnd.joost.joda-archive": { - "source": "iana", - "extensions": ["joda"] - }, - "application/vnd.jsk.isdn-ngn": { - "source": "iana" - }, - "application/vnd.kahootz": { - "source": "iana", - "extensions": ["ktz","ktr"] - }, - "application/vnd.kde.karbon": { - "source": "iana", - "extensions": ["karbon"] - }, - "application/vnd.kde.kchart": { - "source": "iana", - "extensions": ["chrt"] - }, - "application/vnd.kde.kformula": { - "source": "iana", - "extensions": ["kfo"] - }, - "application/vnd.kde.kivio": { - "source": "iana", - "extensions": ["flw"] - }, - "application/vnd.kde.kontour": { - "source": "iana", - "extensions": ["kon"] - }, - "application/vnd.kde.kpresenter": { - "source": "iana", - "extensions": ["kpr","kpt"] - }, - "application/vnd.kde.kspread": { - "source": "iana", - "extensions": ["ksp"] - }, - "application/vnd.kde.kword": { - "source": "iana", - "extensions": ["kwd","kwt"] - }, - "application/vnd.kenameaapp": { - "source": "iana", - "extensions": ["htke"] - }, - "application/vnd.kidspiration": { - "source": "iana", - "extensions": ["kia"] - }, - "application/vnd.kinar": { - "source": "iana", - "extensions": ["kne","knp"] - }, - "application/vnd.koan": { - "source": "iana", - "extensions": ["skp","skd","skt","skm"] - }, - "application/vnd.kodak-descriptor": { - "source": "iana", - "extensions": ["sse"] - }, - "application/vnd.las.las+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.las.las+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lasxml"] - }, - "application/vnd.leap+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.liberty-request+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.llamagraphics.life-balance.desktop": { - "source": "iana", - "extensions": ["lbd"] - }, - "application/vnd.llamagraphics.life-balance.exchange+xml": { - "source": "iana", - "compressible": true, - "extensions": ["lbe"] - }, - "application/vnd.lotus-1-2-3": { - "source": "iana", - "extensions": ["123"] - }, - "application/vnd.lotus-approach": { - "source": "iana", - "extensions": ["apr"] - }, - "application/vnd.lotus-freelance": { - "source": "iana", - "extensions": ["pre"] - }, - "application/vnd.lotus-notes": { - "source": "iana", - "extensions": ["nsf"] - }, - "application/vnd.lotus-organizer": { - "source": "iana", - "extensions": ["org"] - }, - "application/vnd.lotus-screencam": { - "source": "iana", - "extensions": ["scm"] - }, - "application/vnd.lotus-wordpro": { - "source": "iana", - "extensions": ["lwp"] - }, - "application/vnd.macports.portpkg": { - "source": "iana", - "extensions": ["portpkg"] - }, - "application/vnd.mapbox-vector-tile": { - "source": "iana" - }, - "application/vnd.marlin.drm.actiontoken+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.marlin.drm.conftoken+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.marlin.drm.license+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.marlin.drm.mdcf": { - "source": "iana" - }, - "application/vnd.mason+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.maxmind.maxmind-db": { - "source": "iana" - }, - "application/vnd.mcd": { - "source": "iana", - "extensions": ["mcd"] - }, - "application/vnd.medcalcdata": { - "source": "iana", - "extensions": ["mc1"] - }, - "application/vnd.mediastation.cdkey": { - "source": "iana", - "extensions": ["cdkey"] - }, - "application/vnd.meridian-slingshot": { - "source": "iana" - }, - "application/vnd.mfer": { - "source": "iana", - "extensions": ["mwf"] - }, - "application/vnd.mfmp": { - "source": "iana", - "extensions": ["mfm"] - }, - "application/vnd.micro+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.micrografx.flo": { - "source": "iana", - "extensions": ["flo"] - }, - "application/vnd.micrografx.igx": { - "source": "iana", - "extensions": ["igx"] - }, - "application/vnd.microsoft.portable-executable": { - "source": "iana" - }, - "application/vnd.microsoft.windows.thumbnail-cache": { - "source": "iana" - }, - "application/vnd.miele+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.mif": { - "source": "iana", - "extensions": ["mif"] - }, - "application/vnd.minisoft-hp3000-save": { - "source": "iana" - }, - "application/vnd.mitsubishi.misty-guard.trustweb": { - "source": "iana" - }, - "application/vnd.mobius.daf": { - "source": "iana", - "extensions": ["daf"] - }, - "application/vnd.mobius.dis": { - "source": "iana", - "extensions": ["dis"] - }, - "application/vnd.mobius.mbk": { - "source": "iana", - "extensions": ["mbk"] - }, - "application/vnd.mobius.mqy": { - "source": "iana", - "extensions": ["mqy"] - }, - "application/vnd.mobius.msl": { - "source": "iana", - "extensions": ["msl"] - }, - "application/vnd.mobius.plc": { - "source": "iana", - "extensions": ["plc"] - }, - "application/vnd.mobius.txf": { - "source": "iana", - "extensions": ["txf"] - }, - "application/vnd.mophun.application": { - "source": "iana", - "extensions": ["mpn"] - }, - "application/vnd.mophun.certificate": { - "source": "iana", - "extensions": ["mpc"] - }, - "application/vnd.motorola.flexsuite": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.adsi": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.fis": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.gotap": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.kmr": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.ttc": { - "source": "iana" - }, - "application/vnd.motorola.flexsuite.wem": { - "source": "iana" - }, - "application/vnd.motorola.iprm": { - "source": "iana" - }, - "application/vnd.mozilla.xul+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xul"] - }, - "application/vnd.ms-3mfdocument": { - "source": "iana" - }, - "application/vnd.ms-artgalry": { - "source": "iana", - "extensions": ["cil"] - }, - "application/vnd.ms-asf": { - "source": "iana" - }, - "application/vnd.ms-cab-compressed": { - "source": "iana", - "extensions": ["cab"] - }, - "application/vnd.ms-color.iccprofile": { - "source": "apache" - }, - "application/vnd.ms-excel": { - "source": "iana", - "compressible": false, - "extensions": ["xls","xlm","xla","xlc","xlt","xlw"] - }, - "application/vnd.ms-excel.addin.macroenabled.12": { - "source": "iana", - "extensions": ["xlam"] - }, - "application/vnd.ms-excel.sheet.binary.macroenabled.12": { - "source": "iana", - "extensions": ["xlsb"] - }, - "application/vnd.ms-excel.sheet.macroenabled.12": { - "source": "iana", - "extensions": ["xlsm"] - }, - "application/vnd.ms-excel.template.macroenabled.12": { - "source": "iana", - "extensions": ["xltm"] - }, - "application/vnd.ms-fontobject": { - "source": "iana", - "compressible": true, - "extensions": ["eot"] - }, - "application/vnd.ms-htmlhelp": { - "source": "iana", - "extensions": ["chm"] - }, - "application/vnd.ms-ims": { - "source": "iana", - "extensions": ["ims"] - }, - "application/vnd.ms-lrm": { - "source": "iana", - "extensions": ["lrm"] - }, - "application/vnd.ms-office.activex+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-officetheme": { - "source": "iana", - "extensions": ["thmx"] - }, - "application/vnd.ms-opentype": { - "source": "apache", - "compressible": true - }, - "application/vnd.ms-outlook": { - "compressible": false, - "extensions": ["msg"] - }, - "application/vnd.ms-package.obfuscated-opentype": { - "source": "apache" - }, - "application/vnd.ms-pki.seccat": { - "source": "apache", - "extensions": ["cat"] - }, - "application/vnd.ms-pki.stl": { - "source": "apache", - "extensions": ["stl"] - }, - "application/vnd.ms-playready.initiator+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-powerpoint": { - "source": "iana", - "compressible": false, - "extensions": ["ppt","pps","pot"] - }, - "application/vnd.ms-powerpoint.addin.macroenabled.12": { - "source": "iana", - "extensions": ["ppam"] - }, - "application/vnd.ms-powerpoint.presentation.macroenabled.12": { - "source": "iana", - "extensions": ["pptm"] - }, - "application/vnd.ms-powerpoint.slide.macroenabled.12": { - "source": "iana", - "extensions": ["sldm"] - }, - "application/vnd.ms-powerpoint.slideshow.macroenabled.12": { - "source": "iana", - "extensions": ["ppsm"] - }, - "application/vnd.ms-powerpoint.template.macroenabled.12": { - "source": "iana", - "extensions": ["potm"] - }, - "application/vnd.ms-printdevicecapabilities+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-printing.printticket+xml": { - "source": "apache", - "compressible": true - }, - "application/vnd.ms-printschematicket+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.ms-project": { - "source": "iana", - "extensions": ["mpp","mpt"] - }, - "application/vnd.ms-tnef": { - "source": "iana" - }, - "application/vnd.ms-windows.devicepairing": { - "source": "iana" - }, - "application/vnd.ms-windows.nwprinting.oob": { - "source": "iana" - }, - "application/vnd.ms-windows.printerpairing": { - "source": "iana" - }, - "application/vnd.ms-windows.wsd.oob": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.lic-chlg-req": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.lic-resp": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.meter-chlg-req": { - "source": "iana" - }, - "application/vnd.ms-wmdrm.meter-resp": { - "source": "iana" - }, - "application/vnd.ms-word.document.macroenabled.12": { - "source": "iana", - "extensions": ["docm"] - }, - "application/vnd.ms-word.template.macroenabled.12": { - "source": "iana", - "extensions": ["dotm"] - }, - "application/vnd.ms-works": { - "source": "iana", - "extensions": ["wps","wks","wcm","wdb"] - }, - "application/vnd.ms-wpl": { - "source": "iana", - "extensions": ["wpl"] - }, - "application/vnd.ms-xpsdocument": { - "source": "iana", - "compressible": false, - "extensions": ["xps"] - }, - "application/vnd.msa-disk-image": { - "source": "iana" - }, - "application/vnd.mseq": { - "source": "iana", - "extensions": ["mseq"] - }, - "application/vnd.msign": { - "source": "iana" - }, - "application/vnd.multiad.creator": { - "source": "iana" - }, - "application/vnd.multiad.creator.cif": { - "source": "iana" - }, - "application/vnd.music-niff": { - "source": "iana" - }, - "application/vnd.musician": { - "source": "iana", - "extensions": ["mus"] - }, - "application/vnd.muvee.style": { - "source": "iana", - "extensions": ["msty"] - }, - "application/vnd.mynfc": { - "source": "iana", - "extensions": ["taglet"] - }, - "application/vnd.ncd.control": { - "source": "iana" - }, - "application/vnd.ncd.reference": { - "source": "iana" - }, - "application/vnd.nearst.inv+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.nervana": { - "source": "iana" - }, - "application/vnd.netfpx": { - "source": "iana" - }, - "application/vnd.neurolanguage.nlu": { - "source": "iana", - "extensions": ["nlu"] - }, - "application/vnd.nimn": { - "source": "iana" - }, - "application/vnd.nintendo.nitro.rom": { - "source": "iana" - }, - "application/vnd.nintendo.snes.rom": { - "source": "iana" - }, - "application/vnd.nitf": { - "source": "iana", - "extensions": ["ntf","nitf"] - }, - "application/vnd.noblenet-directory": { - "source": "iana", - "extensions": ["nnd"] - }, - "application/vnd.noblenet-sealer": { - "source": "iana", - "extensions": ["nns"] - }, - "application/vnd.noblenet-web": { - "source": "iana", - "extensions": ["nnw"] - }, - "application/vnd.nokia.catalogs": { - "source": "iana" - }, - "application/vnd.nokia.conml+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.conml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.iptv.config+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.isds-radio-presets": { - "source": "iana" - }, - "application/vnd.nokia.landmark+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.landmark+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.landmarkcollection+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.n-gage.ac+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.n-gage.data": { - "source": "iana", - "extensions": ["ngdat"] - }, - "application/vnd.nokia.n-gage.symbian.install": { - "source": "iana", - "extensions": ["n-gage"] - }, - "application/vnd.nokia.ncd": { - "source": "iana" - }, - "application/vnd.nokia.pcd+wbxml": { - "source": "iana" - }, - "application/vnd.nokia.pcd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.nokia.radio-preset": { - "source": "iana", - "extensions": ["rpst"] - }, - "application/vnd.nokia.radio-presets": { - "source": "iana", - "extensions": ["rpss"] - }, - "application/vnd.novadigm.edm": { - "source": "iana", - "extensions": ["edm"] - }, - "application/vnd.novadigm.edx": { - "source": "iana", - "extensions": ["edx"] - }, - "application/vnd.novadigm.ext": { - "source": "iana", - "extensions": ["ext"] - }, - "application/vnd.ntt-local.content-share": { - "source": "iana" - }, - "application/vnd.ntt-local.file-transfer": { - "source": "iana" - }, - "application/vnd.ntt-local.ogw_remote-access": { - "source": "iana" - }, - "application/vnd.ntt-local.sip-ta_remote": { - "source": "iana" - }, - "application/vnd.ntt-local.sip-ta_tcp_stream": { - "source": "iana" - }, - "application/vnd.oasis.opendocument.chart": { - "source": "iana", - "extensions": ["odc"] - }, - "application/vnd.oasis.opendocument.chart-template": { - "source": "iana", - "extensions": ["otc"] - }, - "application/vnd.oasis.opendocument.database": { - "source": "iana", - "extensions": ["odb"] - }, - "application/vnd.oasis.opendocument.formula": { - "source": "iana", - "extensions": ["odf"] - }, - "application/vnd.oasis.opendocument.formula-template": { - "source": "iana", - "extensions": ["odft"] - }, - "application/vnd.oasis.opendocument.graphics": { - "source": "iana", - "compressible": false, - "extensions": ["odg"] - }, - "application/vnd.oasis.opendocument.graphics-template": { - "source": "iana", - "extensions": ["otg"] - }, - "application/vnd.oasis.opendocument.image": { - "source": "iana", - "extensions": ["odi"] - }, - "application/vnd.oasis.opendocument.image-template": { - "source": "iana", - "extensions": ["oti"] - }, - "application/vnd.oasis.opendocument.presentation": { - "source": "iana", - "compressible": false, - "extensions": ["odp"] - }, - "application/vnd.oasis.opendocument.presentation-template": { - "source": "iana", - "extensions": ["otp"] - }, - "application/vnd.oasis.opendocument.spreadsheet": { - "source": "iana", - "compressible": false, - "extensions": ["ods"] - }, - "application/vnd.oasis.opendocument.spreadsheet-template": { - "source": "iana", - "extensions": ["ots"] - }, - "application/vnd.oasis.opendocument.text": { - "source": "iana", - "compressible": false, - "extensions": ["odt"] - }, - "application/vnd.oasis.opendocument.text-master": { - "source": "iana", - "extensions": ["odm"] - }, - "application/vnd.oasis.opendocument.text-template": { - "source": "iana", - "extensions": ["ott"] - }, - "application/vnd.oasis.opendocument.text-web": { - "source": "iana", - "extensions": ["oth"] - }, - "application/vnd.obn": { - "source": "iana" - }, - "application/vnd.ocf+cbor": { - "source": "iana" - }, - "application/vnd.oftn.l10n+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.contentaccessdownload+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.contentaccessstreaming+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.cspg-hexbinary": { - "source": "iana" - }, - "application/vnd.oipf.dae.svg+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.dae.xhtml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.mippvcontrolmessage+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.pae.gem": { - "source": "iana" - }, - "application/vnd.oipf.spdiscovery+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.spdlist+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.ueprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oipf.userprofile+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.olpc-sugar": { - "source": "iana", - "extensions": ["xo"] - }, - "application/vnd.oma-scws-config": { - "source": "iana" - }, - "application/vnd.oma-scws-http-request": { - "source": "iana" - }, - "application/vnd.oma-scws-http-response": { - "source": "iana" - }, - "application/vnd.oma.bcast.associated-procedure-parameter+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.drm-trigger+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.imd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.ltkm": { - "source": "iana" - }, - "application/vnd.oma.bcast.notification+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.provisioningtrigger": { - "source": "iana" - }, - "application/vnd.oma.bcast.sgboot": { - "source": "iana" - }, - "application/vnd.oma.bcast.sgdd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.sgdu": { - "source": "iana" - }, - "application/vnd.oma.bcast.simple-symbol-container": { - "source": "iana" - }, - "application/vnd.oma.bcast.smartcard-trigger+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.sprov+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.bcast.stkm": { - "source": "iana" - }, - "application/vnd.oma.cab-address-book+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-feature-handler+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-pcc+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-subs-invite+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.cab-user-prefs+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.dcd": { - "source": "iana" - }, - "application/vnd.oma.dcdc": { - "source": "iana" - }, - "application/vnd.oma.dd2+xml": { - "source": "iana", - "compressible": true, - "extensions": ["dd2"] - }, - "application/vnd.oma.drm.risd+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.group-usage-list+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.lwm2m+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.lwm2m+tlv": { - "source": "iana" - }, - "application/vnd.oma.pal+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.detailed-progress-report+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.final-report+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.groups+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.invocation-descriptor+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.poc.optimized-progress-report+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.push": { - "source": "iana" - }, - "application/vnd.oma.scidm.messages+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oma.xcap-directory+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.omads-email+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.omads-file+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.omads-folder+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.omaloc-supl-init": { - "source": "iana" - }, - "application/vnd.onepager": { - "source": "iana" - }, - "application/vnd.onepagertamp": { - "source": "iana" - }, - "application/vnd.onepagertamx": { - "source": "iana" - }, - "application/vnd.onepagertat": { - "source": "iana" - }, - "application/vnd.onepagertatp": { - "source": "iana" - }, - "application/vnd.onepagertatx": { - "source": "iana" - }, - "application/vnd.openblox.game+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openblox.game-binary": { - "source": "iana" - }, - "application/vnd.openeye.oeb": { - "source": "iana" - }, - "application/vnd.openofficeorg.extension": { - "source": "apache", - "extensions": ["oxt"] - }, - "application/vnd.openstreetmap.data+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.custom-properties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawing+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.extended-properties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation": { - "source": "iana", - "compressible": false, - "extensions": ["pptx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide": { - "source": "iana", - "extensions": ["sldx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow": { - "source": "iana", - "extensions": ["ppsx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.template": { - "source": "iana", - "extensions": ["potx"] - }, - "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { - "source": "iana", - "compressible": false, - "extensions": ["xlsx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template": { - "source": "iana", - "extensions": ["xltx"] - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.theme+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.themeoverride+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.vmldrawing": { - "source": "iana" - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { - "source": "iana", - "compressible": false, - "extensions": ["docx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template": { - "source": "iana", - "extensions": ["dotx"] - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-package.core-properties+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.openxmlformats-package.relationships+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oracle.resource+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.orange.indata": { - "source": "iana" - }, - "application/vnd.osa.netdeploy": { - "source": "iana" - }, - "application/vnd.osgeo.mapguide.package": { - "source": "iana", - "extensions": ["mgp"] - }, - "application/vnd.osgi.bundle": { - "source": "iana" - }, - "application/vnd.osgi.dp": { - "source": "iana", - "extensions": ["dp"] - }, - "application/vnd.osgi.subsystem": { - "source": "iana", - "extensions": ["esa"] - }, - "application/vnd.otps.ct-kip+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.oxli.countgraph": { - "source": "iana" - }, - "application/vnd.pagerduty+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.palm": { - "source": "iana", - "extensions": ["pdb","pqa","oprc"] - }, - "application/vnd.panoply": { - "source": "iana" - }, - "application/vnd.paos.xml": { - "source": "iana" - }, - "application/vnd.patentdive": { - "source": "iana" - }, - "application/vnd.pawaafile": { - "source": "iana", - "extensions": ["paw"] - }, - "application/vnd.pcos": { - "source": "iana" - }, - "application/vnd.pg.format": { - "source": "iana", - "extensions": ["str"] - }, - "application/vnd.pg.osasli": { - "source": "iana", - "extensions": ["ei6"] - }, - "application/vnd.piaccess.application-licence": { - "source": "iana" - }, - "application/vnd.picsel": { - "source": "iana", - "extensions": ["efif"] - }, - "application/vnd.pmi.widget": { - "source": "iana", - "extensions": ["wg"] - }, - "application/vnd.poc.group-advertisement+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.pocketlearn": { - "source": "iana", - "extensions": ["plf"] - }, - "application/vnd.powerbuilder6": { - "source": "iana", - "extensions": ["pbd"] - }, - "application/vnd.powerbuilder6-s": { - "source": "iana" - }, - "application/vnd.powerbuilder7": { - "source": "iana" - }, - "application/vnd.powerbuilder7-s": { - "source": "iana" - }, - "application/vnd.powerbuilder75": { - "source": "iana" - }, - "application/vnd.powerbuilder75-s": { - "source": "iana" - }, - "application/vnd.preminet": { - "source": "iana" - }, - "application/vnd.previewsystems.box": { - "source": "iana", - "extensions": ["box"] - }, - "application/vnd.proteus.magazine": { - "source": "iana", - "extensions": ["mgz"] - }, - "application/vnd.psfs": { - "source": "iana" - }, - "application/vnd.publishare-delta-tree": { - "source": "iana", - "extensions": ["qps"] - }, - "application/vnd.pvi.ptid1": { - "source": "iana", - "extensions": ["ptid"] - }, - "application/vnd.pwg-multiplexed": { - "source": "iana" - }, - "application/vnd.pwg-xhtml-print+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.qualcomm.brew-app-res": { - "source": "iana" - }, - "application/vnd.quarantainenet": { - "source": "iana" - }, - "application/vnd.quark.quarkxpress": { - "source": "iana", - "extensions": ["qxd","qxt","qwd","qwt","qxl","qxb"] - }, - "application/vnd.quobject-quoxdocument": { - "source": "iana" - }, - "application/vnd.radisys.moml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-conf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-conn+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-dialog+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-audit-stream+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-conf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-base+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-fax-detect+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-group+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-speech+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.radisys.msml-dialog-transform+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.rainstor.data": { - "source": "iana" - }, - "application/vnd.rapid": { - "source": "iana" - }, - "application/vnd.rar": { - "source": "iana" - }, - "application/vnd.realvnc.bed": { - "source": "iana", - "extensions": ["bed"] - }, - "application/vnd.recordare.musicxml": { - "source": "iana", - "extensions": ["mxl"] - }, - "application/vnd.recordare.musicxml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["musicxml"] - }, - "application/vnd.renlearn.rlprint": { - "source": "iana" - }, - "application/vnd.restful+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.rig.cryptonote": { - "source": "iana", - "extensions": ["cryptonote"] - }, - "application/vnd.rim.cod": { - "source": "apache", - "extensions": ["cod"] - }, - "application/vnd.rn-realmedia": { - "source": "apache", - "extensions": ["rm"] - }, - "application/vnd.rn-realmedia-vbr": { - "source": "apache", - "extensions": ["rmvb"] - }, - "application/vnd.route66.link66+xml": { - "source": "iana", - "compressible": true, - "extensions": ["link66"] - }, - "application/vnd.rs-274x": { - "source": "iana" - }, - "application/vnd.ruckus.download": { - "source": "iana" - }, - "application/vnd.s3sms": { - "source": "iana" - }, - "application/vnd.sailingtracker.track": { - "source": "iana", - "extensions": ["st"] - }, - "application/vnd.sbm.cid": { - "source": "iana" - }, - "application/vnd.sbm.mid2": { - "source": "iana" - }, - "application/vnd.scribus": { - "source": "iana" - }, - "application/vnd.sealed.3df": { - "source": "iana" - }, - "application/vnd.sealed.csf": { - "source": "iana" - }, - "application/vnd.sealed.doc": { - "source": "iana" - }, - "application/vnd.sealed.eml": { - "source": "iana" - }, - "application/vnd.sealed.mht": { - "source": "iana" - }, - "application/vnd.sealed.net": { - "source": "iana" - }, - "application/vnd.sealed.ppt": { - "source": "iana" - }, - "application/vnd.sealed.tiff": { - "source": "iana" - }, - "application/vnd.sealed.xls": { - "source": "iana" - }, - "application/vnd.sealedmedia.softseal.html": { - "source": "iana" - }, - "application/vnd.sealedmedia.softseal.pdf": { - "source": "iana" - }, - "application/vnd.seemail": { - "source": "iana", - "extensions": ["see"] - }, - "application/vnd.sema": { - "source": "iana", - "extensions": ["sema"] - }, - "application/vnd.semd": { - "source": "iana", - "extensions": ["semd"] - }, - "application/vnd.semf": { - "source": "iana", - "extensions": ["semf"] - }, - "application/vnd.shana.informed.formdata": { - "source": "iana", - "extensions": ["ifm"] - }, - "application/vnd.shana.informed.formtemplate": { - "source": "iana", - "extensions": ["itp"] - }, - "application/vnd.shana.informed.interchange": { - "source": "iana", - "extensions": ["iif"] - }, - "application/vnd.shana.informed.package": { - "source": "iana", - "extensions": ["ipk"] - }, - "application/vnd.shootproof+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.sigrok.session": { - "source": "iana" - }, - "application/vnd.simtech-mindmapper": { - "source": "iana", - "extensions": ["twd","twds"] - }, - "application/vnd.siren+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.smaf": { - "source": "iana", - "extensions": ["mmf"] - }, - "application/vnd.smart.notebook": { - "source": "iana" - }, - "application/vnd.smart.teacher": { - "source": "iana", - "extensions": ["teacher"] - }, - "application/vnd.software602.filler.form+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.software602.filler.form-xml-zip": { - "source": "iana" - }, - "application/vnd.solent.sdkm+xml": { - "source": "iana", - "compressible": true, - "extensions": ["sdkm","sdkd"] - }, - "application/vnd.spotfire.dxp": { - "source": "iana", - "extensions": ["dxp"] - }, - "application/vnd.spotfire.sfs": { - "source": "iana", - "extensions": ["sfs"] - }, - "application/vnd.sqlite3": { - "source": "iana" - }, - "application/vnd.sss-cod": { - "source": "iana" - }, - "application/vnd.sss-dtf": { - "source": "iana" - }, - "application/vnd.sss-ntf": { - "source": "iana" - }, - "application/vnd.stardivision.calc": { - "source": "apache", - "extensions": ["sdc"] - }, - "application/vnd.stardivision.draw": { - "source": "apache", - "extensions": ["sda"] - }, - "application/vnd.stardivision.impress": { - "source": "apache", - "extensions": ["sdd"] - }, - "application/vnd.stardivision.math": { - "source": "apache", - "extensions": ["smf"] - }, - "application/vnd.stardivision.writer": { - "source": "apache", - "extensions": ["sdw","vor"] - }, - "application/vnd.stardivision.writer-global": { - "source": "apache", - "extensions": ["sgl"] - }, - "application/vnd.stepmania.package": { - "source": "iana", - "extensions": ["smzip"] - }, - "application/vnd.stepmania.stepchart": { - "source": "iana", - "extensions": ["sm"] - }, - "application/vnd.street-stream": { - "source": "iana" - }, - "application/vnd.sun.wadl+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wadl"] - }, - "application/vnd.sun.xml.calc": { - "source": "apache", - "extensions": ["sxc"] - }, - "application/vnd.sun.xml.calc.template": { - "source": "apache", - "extensions": ["stc"] - }, - "application/vnd.sun.xml.draw": { - "source": "apache", - "extensions": ["sxd"] - }, - "application/vnd.sun.xml.draw.template": { - "source": "apache", - "extensions": ["std"] - }, - "application/vnd.sun.xml.impress": { - "source": "apache", - "extensions": ["sxi"] - }, - "application/vnd.sun.xml.impress.template": { - "source": "apache", - "extensions": ["sti"] - }, - "application/vnd.sun.xml.math": { - "source": "apache", - "extensions": ["sxm"] - }, - "application/vnd.sun.xml.writer": { - "source": "apache", - "extensions": ["sxw"] - }, - "application/vnd.sun.xml.writer.global": { - "source": "apache", - "extensions": ["sxg"] - }, - "application/vnd.sun.xml.writer.template": { - "source": "apache", - "extensions": ["stw"] - }, - "application/vnd.sus-calendar": { - "source": "iana", - "extensions": ["sus","susp"] - }, - "application/vnd.svd": { - "source": "iana", - "extensions": ["svd"] - }, - "application/vnd.swiftview-ics": { - "source": "iana" - }, - "application/vnd.symbian.install": { - "source": "apache", - "extensions": ["sis","sisx"] - }, - "application/vnd.syncml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xsm"] - }, - "application/vnd.syncml.dm+wbxml": { - "source": "iana", - "extensions": ["bdm"] - }, - "application/vnd.syncml.dm+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdm"] - }, - "application/vnd.syncml.dm.notification": { - "source": "iana" - }, - "application/vnd.syncml.dmddf+wbxml": { - "source": "iana" - }, - "application/vnd.syncml.dmddf+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.syncml.dmtnds+wbxml": { - "source": "iana" - }, - "application/vnd.syncml.dmtnds+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.syncml.ds.notification": { - "source": "iana" - }, - "application/vnd.tableschema+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.tao.intent-module-archive": { - "source": "iana", - "extensions": ["tao"] - }, - "application/vnd.tcpdump.pcap": { - "source": "iana", - "extensions": ["pcap","cap","dmp"] - }, - "application/vnd.think-cell.ppttc+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.tmd.mediaflex.api+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.tml": { - "source": "iana" - }, - "application/vnd.tmobile-livetv": { - "source": "iana", - "extensions": ["tmo"] - }, - "application/vnd.tri.onesource": { - "source": "iana" - }, - "application/vnd.trid.tpt": { - "source": "iana", - "extensions": ["tpt"] - }, - "application/vnd.triscape.mxs": { - "source": "iana", - "extensions": ["mxs"] - }, - "application/vnd.trueapp": { - "source": "iana", - "extensions": ["tra"] - }, - "application/vnd.truedoc": { - "source": "iana" - }, - "application/vnd.ubisoft.webplayer": { - "source": "iana" - }, - "application/vnd.ufdl": { - "source": "iana", - "extensions": ["ufd","ufdl"] - }, - "application/vnd.uiq.theme": { - "source": "iana", - "extensions": ["utz"] - }, - "application/vnd.umajin": { - "source": "iana", - "extensions": ["umj"] - }, - "application/vnd.unity": { - "source": "iana", - "extensions": ["unityweb"] - }, - "application/vnd.uoml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["uoml"] - }, - "application/vnd.uplanet.alert": { - "source": "iana" - }, - "application/vnd.uplanet.alert-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.bearer-choice": { - "source": "iana" - }, - "application/vnd.uplanet.bearer-choice-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.cacheop": { - "source": "iana" - }, - "application/vnd.uplanet.cacheop-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.channel": { - "source": "iana" - }, - "application/vnd.uplanet.channel-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.list": { - "source": "iana" - }, - "application/vnd.uplanet.list-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.listcmd": { - "source": "iana" - }, - "application/vnd.uplanet.listcmd-wbxml": { - "source": "iana" - }, - "application/vnd.uplanet.signal": { - "source": "iana" - }, - "application/vnd.uri-map": { - "source": "iana" - }, - "application/vnd.valve.source.material": { - "source": "iana" - }, - "application/vnd.vcx": { - "source": "iana", - "extensions": ["vcx"] - }, - "application/vnd.vd-study": { - "source": "iana" - }, - "application/vnd.vectorworks": { - "source": "iana" - }, - "application/vnd.vel+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.verimatrix.vcas": { - "source": "iana" - }, - "application/vnd.vidsoft.vidconference": { - "source": "iana" - }, - "application/vnd.visio": { - "source": "iana", - "extensions": ["vsd","vst","vss","vsw"] - }, - "application/vnd.visionary": { - "source": "iana", - "extensions": ["vis"] - }, - "application/vnd.vividence.scriptfile": { - "source": "iana" - }, - "application/vnd.vsf": { - "source": "iana", - "extensions": ["vsf"] - }, - "application/vnd.wap.sic": { - "source": "iana" - }, - "application/vnd.wap.slc": { - "source": "iana" - }, - "application/vnd.wap.wbxml": { - "source": "iana", - "extensions": ["wbxml"] - }, - "application/vnd.wap.wmlc": { - "source": "iana", - "extensions": ["wmlc"] - }, - "application/vnd.wap.wmlscriptc": { - "source": "iana", - "extensions": ["wmlsc"] - }, - "application/vnd.webturbo": { - "source": "iana", - "extensions": ["wtb"] - }, - "application/vnd.wfa.p2p": { - "source": "iana" - }, - "application/vnd.wfa.wsc": { - "source": "iana" - }, - "application/vnd.windows.devicepairing": { - "source": "iana" - }, - "application/vnd.wmc": { - "source": "iana" - }, - "application/vnd.wmf.bootstrap": { - "source": "iana" - }, - "application/vnd.wolfram.mathematica": { - "source": "iana" - }, - "application/vnd.wolfram.mathematica.package": { - "source": "iana" - }, - "application/vnd.wolfram.player": { - "source": "iana", - "extensions": ["nbp"] - }, - "application/vnd.wordperfect": { - "source": "iana", - "extensions": ["wpd"] - }, - "application/vnd.wqd": { - "source": "iana", - "extensions": ["wqd"] - }, - "application/vnd.wrq-hp3000-labelled": { - "source": "iana" - }, - "application/vnd.wt.stf": { - "source": "iana", - "extensions": ["stf"] - }, - "application/vnd.wv.csp+wbxml": { - "source": "iana" - }, - "application/vnd.wv.csp+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.wv.ssp+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.xacml+json": { - "source": "iana", - "compressible": true - }, - "application/vnd.xara": { - "source": "iana", - "extensions": ["xar"] - }, - "application/vnd.xfdl": { - "source": "iana", - "extensions": ["xfdl"] - }, - "application/vnd.xfdl.webform": { - "source": "iana" - }, - "application/vnd.xmi+xml": { - "source": "iana", - "compressible": true - }, - "application/vnd.xmpie.cpkg": { - "source": "iana" - }, - "application/vnd.xmpie.dpkg": { - "source": "iana" - }, - "application/vnd.xmpie.plan": { - "source": "iana" - }, - "application/vnd.xmpie.ppkg": { - "source": "iana" - }, - "application/vnd.xmpie.xlim": { - "source": "iana" - }, - "application/vnd.yamaha.hv-dic": { - "source": "iana", - "extensions": ["hvd"] - }, - "application/vnd.yamaha.hv-script": { - "source": "iana", - "extensions": ["hvs"] - }, - "application/vnd.yamaha.hv-voice": { - "source": "iana", - "extensions": ["hvp"] - }, - "application/vnd.yamaha.openscoreformat": { - "source": "iana", - "extensions": ["osf"] - }, - "application/vnd.yamaha.openscoreformat.osfpvg+xml": { - "source": "iana", - "compressible": true, - "extensions": ["osfpvg"] - }, - "application/vnd.yamaha.remote-setup": { - "source": "iana" - }, - "application/vnd.yamaha.smaf-audio": { - "source": "iana", - "extensions": ["saf"] - }, - "application/vnd.yamaha.smaf-phrase": { - "source": "iana", - "extensions": ["spf"] - }, - "application/vnd.yamaha.through-ngn": { - "source": "iana" - }, - "application/vnd.yamaha.tunnel-udpencap": { - "source": "iana" - }, - "application/vnd.yaoweme": { - "source": "iana" - }, - "application/vnd.yellowriver-custom-menu": { - "source": "iana", - "extensions": ["cmp"] - }, - "application/vnd.youtube.yt": { - "source": "iana" - }, - "application/vnd.zul": { - "source": "iana", - "extensions": ["zir","zirz"] - }, - "application/vnd.zzazz.deck+xml": { - "source": "iana", - "compressible": true, - "extensions": ["zaz"] - }, - "application/voicexml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["vxml"] - }, - "application/voucher-cms+json": { - "source": "iana", - "compressible": true - }, - "application/vq-rtcpxr": { - "source": "iana" - }, - "application/wasm": { - "compressible": true, - "extensions": ["wasm"] - }, - "application/watcherinfo+xml": { - "source": "iana", - "compressible": true - }, - "application/webpush-options+json": { - "source": "iana", - "compressible": true - }, - "application/whoispp-query": { - "source": "iana" - }, - "application/whoispp-response": { - "source": "iana" - }, - "application/widget": { - "source": "iana", - "extensions": ["wgt"] - }, - "application/winhlp": { - "source": "apache", - "extensions": ["hlp"] - }, - "application/wita": { - "source": "iana" - }, - "application/wordperfect5.1": { - "source": "iana" - }, - "application/wsdl+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wsdl"] - }, - "application/wspolicy+xml": { - "source": "iana", - "compressible": true, - "extensions": ["wspolicy"] - }, - "application/x-7z-compressed": { - "source": "apache", - "compressible": false, - "extensions": ["7z"] - }, - "application/x-abiword": { - "source": "apache", - "extensions": ["abw"] - }, - "application/x-ace-compressed": { - "source": "apache", - "extensions": ["ace"] - }, - "application/x-amf": { - "source": "apache" - }, - "application/x-apple-diskimage": { - "source": "apache", - "extensions": ["dmg"] - }, - "application/x-arj": { - "compressible": false, - "extensions": ["arj"] - }, - "application/x-authorware-bin": { - "source": "apache", - "extensions": ["aab","x32","u32","vox"] - }, - "application/x-authorware-map": { - "source": "apache", - "extensions": ["aam"] - }, - "application/x-authorware-seg": { - "source": "apache", - "extensions": ["aas"] - }, - "application/x-bcpio": { - "source": "apache", - "extensions": ["bcpio"] - }, - "application/x-bdoc": { - "compressible": false, - "extensions": ["bdoc"] - }, - "application/x-bittorrent": { - "source": "apache", - "extensions": ["torrent"] - }, - "application/x-blorb": { - "source": "apache", - "extensions": ["blb","blorb"] - }, - "application/x-bzip": { - "source": "apache", - "compressible": false, - "extensions": ["bz"] - }, - "application/x-bzip2": { - "source": "apache", - "compressible": false, - "extensions": ["bz2","boz"] - }, - "application/x-cbr": { - "source": "apache", - "extensions": ["cbr","cba","cbt","cbz","cb7"] - }, - "application/x-cdlink": { - "source": "apache", - "extensions": ["vcd"] - }, - "application/x-cfs-compressed": { - "source": "apache", - "extensions": ["cfs"] - }, - "application/x-chat": { - "source": "apache", - "extensions": ["chat"] - }, - "application/x-chess-pgn": { - "source": "apache", - "extensions": ["pgn"] - }, - "application/x-chrome-extension": { - "extensions": ["crx"] - }, - "application/x-cocoa": { - "source": "nginx", - "extensions": ["cco"] - }, - "application/x-compress": { - "source": "apache" - }, - "application/x-conference": { - "source": "apache", - "extensions": ["nsc"] - }, - "application/x-cpio": { - "source": "apache", - "extensions": ["cpio"] - }, - "application/x-csh": { - "source": "apache", - "extensions": ["csh"] - }, - "application/x-deb": { - "compressible": false - }, - "application/x-debian-package": { - "source": "apache", - "extensions": ["deb","udeb"] - }, - "application/x-dgc-compressed": { - "source": "apache", - "extensions": ["dgc"] - }, - "application/x-director": { - "source": "apache", - "extensions": ["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"] - }, - "application/x-doom": { - "source": "apache", - "extensions": ["wad"] - }, - "application/x-dtbncx+xml": { - "source": "apache", - "compressible": true, - "extensions": ["ncx"] - }, - "application/x-dtbook+xml": { - "source": "apache", - "compressible": true, - "extensions": ["dtb"] - }, - "application/x-dtbresource+xml": { - "source": "apache", - "compressible": true, - "extensions": ["res"] - }, - "application/x-dvi": { - "source": "apache", - "compressible": false, - "extensions": ["dvi"] - }, - "application/x-envoy": { - "source": "apache", - "extensions": ["evy"] - }, - "application/x-eva": { - "source": "apache", - "extensions": ["eva"] - }, - "application/x-font-bdf": { - "source": "apache", - "extensions": ["bdf"] - }, - "application/x-font-dos": { - "source": "apache" - }, - "application/x-font-framemaker": { - "source": "apache" - }, - "application/x-font-ghostscript": { - "source": "apache", - "extensions": ["gsf"] - }, - "application/x-font-libgrx": { - "source": "apache" - }, - "application/x-font-linux-psf": { - "source": "apache", - "extensions": ["psf"] - }, - "application/x-font-pcf": { - "source": "apache", - "extensions": ["pcf"] - }, - "application/x-font-snf": { - "source": "apache", - "extensions": ["snf"] - }, - "application/x-font-speedo": { - "source": "apache" - }, - "application/x-font-sunos-news": { - "source": "apache" - }, - "application/x-font-type1": { - "source": "apache", - "extensions": ["pfa","pfb","pfm","afm"] - }, - "application/x-font-vfont": { - "source": "apache" - }, - "application/x-freearc": { - "source": "apache", - "extensions": ["arc"] - }, - "application/x-futuresplash": { - "source": "apache", - "extensions": ["spl"] - }, - "application/x-gca-compressed": { - "source": "apache", - "extensions": ["gca"] - }, - "application/x-glulx": { - "source": "apache", - "extensions": ["ulx"] - }, - "application/x-gnumeric": { - "source": "apache", - "extensions": ["gnumeric"] - }, - "application/x-gramps-xml": { - "source": "apache", - "extensions": ["gramps"] - }, - "application/x-gtar": { - "source": "apache", - "extensions": ["gtar"] - }, - "application/x-gzip": { - "source": "apache" - }, - "application/x-hdf": { - "source": "apache", - "extensions": ["hdf"] - }, - "application/x-httpd-php": { - "compressible": true, - "extensions": ["php"] - }, - "application/x-install-instructions": { - "source": "apache", - "extensions": ["install"] - }, - "application/x-iso9660-image": { - "source": "apache", - "extensions": ["iso"] - }, - "application/x-java-archive-diff": { - "source": "nginx", - "extensions": ["jardiff"] - }, - "application/x-java-jnlp-file": { - "source": "apache", - "compressible": false, - "extensions": ["jnlp"] - }, - "application/x-javascript": { - "compressible": true - }, - "application/x-latex": { - "source": "apache", - "compressible": false, - "extensions": ["latex"] - }, - "application/x-lua-bytecode": { - "extensions": ["luac"] - }, - "application/x-lzh-compressed": { - "source": "apache", - "extensions": ["lzh","lha"] - }, - "application/x-makeself": { - "source": "nginx", - "extensions": ["run"] - }, - "application/x-mie": { - "source": "apache", - "extensions": ["mie"] - }, - "application/x-mobipocket-ebook": { - "source": "apache", - "extensions": ["prc","mobi"] - }, - "application/x-mpegurl": { - "compressible": false - }, - "application/x-ms-application": { - "source": "apache", - "extensions": ["application"] - }, - "application/x-ms-shortcut": { - "source": "apache", - "extensions": ["lnk"] - }, - "application/x-ms-wmd": { - "source": "apache", - "extensions": ["wmd"] - }, - "application/x-ms-wmz": { - "source": "apache", - "extensions": ["wmz"] - }, - "application/x-ms-xbap": { - "source": "apache", - "extensions": ["xbap"] - }, - "application/x-msaccess": { - "source": "apache", - "extensions": ["mdb"] - }, - "application/x-msbinder": { - "source": "apache", - "extensions": ["obd"] - }, - "application/x-mscardfile": { - "source": "apache", - "extensions": ["crd"] - }, - "application/x-msclip": { - "source": "apache", - "extensions": ["clp"] - }, - "application/x-msdos-program": { - "extensions": ["exe"] - }, - "application/x-msdownload": { - "source": "apache", - "extensions": ["exe","dll","com","bat","msi"] - }, - "application/x-msmediaview": { - "source": "apache", - "extensions": ["mvb","m13","m14"] - }, - "application/x-msmetafile": { - "source": "apache", - "extensions": ["wmf","wmz","emf","emz"] - }, - "application/x-msmoney": { - "source": "apache", - "extensions": ["mny"] - }, - "application/x-mspublisher": { - "source": "apache", - "extensions": ["pub"] - }, - "application/x-msschedule": { - "source": "apache", - "extensions": ["scd"] - }, - "application/x-msterminal": { - "source": "apache", - "extensions": ["trm"] - }, - "application/x-mswrite": { - "source": "apache", - "extensions": ["wri"] - }, - "application/x-netcdf": { - "source": "apache", - "extensions": ["nc","cdf"] - }, - "application/x-ns-proxy-autoconfig": { - "compressible": true, - "extensions": ["pac"] - }, - "application/x-nzb": { - "source": "apache", - "extensions": ["nzb"] - }, - "application/x-perl": { - "source": "nginx", - "extensions": ["pl","pm"] - }, - "application/x-pilot": { - "source": "nginx", - "extensions": ["prc","pdb"] - }, - "application/x-pkcs12": { - "source": "apache", - "compressible": false, - "extensions": ["p12","pfx"] - }, - "application/x-pkcs7-certificates": { - "source": "apache", - "extensions": ["p7b","spc"] - }, - "application/x-pkcs7-certreqresp": { - "source": "apache", - "extensions": ["p7r"] - }, - "application/x-rar-compressed": { - "source": "apache", - "compressible": false, - "extensions": ["rar"] - }, - "application/x-redhat-package-manager": { - "source": "nginx", - "extensions": ["rpm"] - }, - "application/x-research-info-systems": { - "source": "apache", - "extensions": ["ris"] - }, - "application/x-sea": { - "source": "nginx", - "extensions": ["sea"] - }, - "application/x-sh": { - "source": "apache", - "compressible": true, - "extensions": ["sh"] - }, - "application/x-shar": { - "source": "apache", - "extensions": ["shar"] - }, - "application/x-shockwave-flash": { - "source": "apache", - "compressible": false, - "extensions": ["swf"] - }, - "application/x-silverlight-app": { - "source": "apache", - "extensions": ["xap"] - }, - "application/x-sql": { - "source": "apache", - "extensions": ["sql"] - }, - "application/x-stuffit": { - "source": "apache", - "compressible": false, - "extensions": ["sit"] - }, - "application/x-stuffitx": { - "source": "apache", - "extensions": ["sitx"] - }, - "application/x-subrip": { - "source": "apache", - "extensions": ["srt"] - }, - "application/x-sv4cpio": { - "source": "apache", - "extensions": ["sv4cpio"] - }, - "application/x-sv4crc": { - "source": "apache", - "extensions": ["sv4crc"] - }, - "application/x-t3vm-image": { - "source": "apache", - "extensions": ["t3"] - }, - "application/x-tads": { - "source": "apache", - "extensions": ["gam"] - }, - "application/x-tar": { - "source": "apache", - "compressible": true, - "extensions": ["tar"] - }, - "application/x-tcl": { - "source": "apache", - "extensions": ["tcl","tk"] - }, - "application/x-tex": { - "source": "apache", - "extensions": ["tex"] - }, - "application/x-tex-tfm": { - "source": "apache", - "extensions": ["tfm"] - }, - "application/x-texinfo": { - "source": "apache", - "extensions": ["texinfo","texi"] - }, - "application/x-tgif": { - "source": "apache", - "extensions": ["obj"] - }, - "application/x-ustar": { - "source": "apache", - "extensions": ["ustar"] - }, - "application/x-virtualbox-hdd": { - "compressible": true, - "extensions": ["hdd"] - }, - "application/x-virtualbox-ova": { - "compressible": true, - "extensions": ["ova"] - }, - "application/x-virtualbox-ovf": { - "compressible": true, - "extensions": ["ovf"] - }, - "application/x-virtualbox-vbox": { - "compressible": true, - "extensions": ["vbox"] - }, - "application/x-virtualbox-vbox-extpack": { - "compressible": false, - "extensions": ["vbox-extpack"] - }, - "application/x-virtualbox-vdi": { - "compressible": true, - "extensions": ["vdi"] - }, - "application/x-virtualbox-vhd": { - "compressible": true, - "extensions": ["vhd"] - }, - "application/x-virtualbox-vmdk": { - "compressible": true, - "extensions": ["vmdk"] - }, - "application/x-wais-source": { - "source": "apache", - "extensions": ["src"] - }, - "application/x-web-app-manifest+json": { - "compressible": true, - "extensions": ["webapp"] - }, - "application/x-www-form-urlencoded": { - "source": "iana", - "compressible": true - }, - "application/x-x509-ca-cert": { - "source": "apache", - "extensions": ["der","crt","pem"] - }, - "application/x-xfig": { - "source": "apache", - "extensions": ["fig"] - }, - "application/x-xliff+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xlf"] - }, - "application/x-xpinstall": { - "source": "apache", - "compressible": false, - "extensions": ["xpi"] - }, - "application/x-xz": { - "source": "apache", - "extensions": ["xz"] - }, - "application/x-zmachine": { - "source": "apache", - "extensions": ["z1","z2","z3","z4","z5","z6","z7","z8"] - }, - "application/x400-bp": { - "source": "iana" - }, - "application/xacml+xml": { - "source": "iana", - "compressible": true - }, - "application/xaml+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xaml"] - }, - "application/xcap-att+xml": { - "source": "iana", - "compressible": true - }, - "application/xcap-caps+xml": { - "source": "iana", - "compressible": true - }, - "application/xcap-diff+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xdf"] - }, - "application/xcap-el+xml": { - "source": "iana", - "compressible": true - }, - "application/xcap-error+xml": { - "source": "iana", - "compressible": true - }, - "application/xcap-ns+xml": { - "source": "iana", - "compressible": true - }, - "application/xcon-conference-info+xml": { - "source": "iana", - "compressible": true - }, - "application/xcon-conference-info-diff+xml": { - "source": "iana", - "compressible": true - }, - "application/xenc+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xenc"] - }, - "application/xhtml+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xhtml","xht"] - }, - "application/xhtml-voice+xml": { - "source": "apache", - "compressible": true - }, - "application/xliff+xml": { - "source": "iana", - "compressible": true - }, - "application/xml": { - "source": "iana", - "compressible": true, - "extensions": ["xml","xsl","xsd","rng"] - }, - "application/xml-dtd": { - "source": "iana", - "compressible": true, - "extensions": ["dtd"] - }, - "application/xml-external-parsed-entity": { - "source": "iana" - }, - "application/xml-patch+xml": { - "source": "iana", - "compressible": true - }, - "application/xmpp+xml": { - "source": "iana", - "compressible": true - }, - "application/xop+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xop"] - }, - "application/xproc+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xpl"] - }, - "application/xslt+xml": { - "source": "iana", - "compressible": true, - "extensions": ["xslt"] - }, - "application/xspf+xml": { - "source": "apache", - "compressible": true, - "extensions": ["xspf"] - }, - "application/xv+xml": { - "source": "iana", - "compressible": true, - "extensions": ["mxml","xhvml","xvml","xvm"] - }, - "application/yang": { - "source": "iana", - "extensions": ["yang"] - }, - "application/yang-data+json": { - "source": "iana", - "compressible": true - }, - "application/yang-data+xml": { - "source": "iana", - "compressible": true - }, - "application/yang-patch+json": { - "source": "iana", - "compressible": true - }, - "application/yang-patch+xml": { - "source": "iana", - "compressible": true - }, - "application/yin+xml": { - "source": "iana", - "compressible": true, - "extensions": ["yin"] - }, - "application/zip": { - "source": "iana", - "compressible": false, - "extensions": ["zip"] - }, - "application/zlib": { - "source": "iana" - }, - "application/zstd": { - "source": "iana" - }, - "audio/1d-interleaved-parityfec": { - "source": "iana" - }, - "audio/32kadpcm": { - "source": "iana" - }, - "audio/3gpp": { - "source": "iana", - "compressible": false, - "extensions": ["3gpp"] - }, - "audio/3gpp2": { - "source": "iana" - }, - "audio/aac": { - "source": "iana" - }, - "audio/ac3": { - "source": "iana" - }, - "audio/adpcm": { - "source": "apache", - "extensions": ["adp"] - }, - "audio/amr": { - "source": "iana" - }, - "audio/amr-wb": { - "source": "iana" - }, - "audio/amr-wb+": { - "source": "iana" - }, - "audio/aptx": { - "source": "iana" - }, - "audio/asc": { - "source": "iana" - }, - "audio/atrac-advanced-lossless": { - "source": "iana" - }, - "audio/atrac-x": { - "source": "iana" - }, - "audio/atrac3": { - "source": "iana" - }, - "audio/basic": { - "source": "iana", - "compressible": false, - "extensions": ["au","snd"] - }, - "audio/bv16": { - "source": "iana" - }, - "audio/bv32": { - "source": "iana" - }, - "audio/clearmode": { - "source": "iana" - }, - "audio/cn": { - "source": "iana" - }, - "audio/dat12": { - "source": "iana" - }, - "audio/dls": { - "source": "iana" - }, - "audio/dsr-es201108": { - "source": "iana" - }, - "audio/dsr-es202050": { - "source": "iana" - }, - "audio/dsr-es202211": { - "source": "iana" - }, - "audio/dsr-es202212": { - "source": "iana" - }, - "audio/dv": { - "source": "iana" - }, - "audio/dvi4": { - "source": "iana" - }, - "audio/eac3": { - "source": "iana" - }, - "audio/encaprtp": { - "source": "iana" - }, - "audio/evrc": { - "source": "iana" - }, - "audio/evrc-qcp": { - "source": "iana" - }, - "audio/evrc0": { - "source": "iana" - }, - "audio/evrc1": { - "source": "iana" - }, - "audio/evrcb": { - "source": "iana" - }, - "audio/evrcb0": { - "source": "iana" - }, - "audio/evrcb1": { - "source": "iana" - }, - "audio/evrcnw": { - "source": "iana" - }, - "audio/evrcnw0": { - "source": "iana" - }, - "audio/evrcnw1": { - "source": "iana" - }, - "audio/evrcwb": { - "source": "iana" - }, - "audio/evrcwb0": { - "source": "iana" - }, - "audio/evrcwb1": { - "source": "iana" - }, - "audio/evs": { - "source": "iana" - }, - "audio/fwdred": { - "source": "iana" - }, - "audio/g711-0": { - "source": "iana" - }, - "audio/g719": { - "source": "iana" - }, - "audio/g722": { - "source": "iana" - }, - "audio/g7221": { - "source": "iana" - }, - "audio/g723": { - "source": "iana" - }, - "audio/g726-16": { - "source": "iana" - }, - "audio/g726-24": { - "source": "iana" - }, - "audio/g726-32": { - "source": "iana" - }, - "audio/g726-40": { - "source": "iana" - }, - "audio/g728": { - "source": "iana" - }, - "audio/g729": { - "source": "iana" - }, - "audio/g7291": { - "source": "iana" - }, - "audio/g729d": { - "source": "iana" - }, - "audio/g729e": { - "source": "iana" - }, - "audio/gsm": { - "source": "iana" - }, - "audio/gsm-efr": { - "source": "iana" - }, - "audio/gsm-hr-08": { - "source": "iana" - }, - "audio/ilbc": { - "source": "iana" - }, - "audio/ip-mr_v2.5": { - "source": "iana" - }, - "audio/isac": { - "source": "apache" - }, - "audio/l16": { - "source": "iana" - }, - "audio/l20": { - "source": "iana" - }, - "audio/l24": { - "source": "iana", - "compressible": false - }, - "audio/l8": { - "source": "iana" - }, - "audio/lpc": { - "source": "iana" - }, - "audio/melp": { - "source": "iana" - }, - "audio/melp1200": { - "source": "iana" - }, - "audio/melp2400": { - "source": "iana" - }, - "audio/melp600": { - "source": "iana" - }, - "audio/midi": { - "source": "apache", - "extensions": ["mid","midi","kar","rmi"] - }, - "audio/mobile-xmf": { - "source": "iana" - }, - "audio/mp3": { - "compressible": false, - "extensions": ["mp3"] - }, - "audio/mp4": { - "source": "iana", - "compressible": false, - "extensions": ["m4a","mp4a"] - }, - "audio/mp4a-latm": { - "source": "iana" - }, - "audio/mpa": { - "source": "iana" - }, - "audio/mpa-robust": { - "source": "iana" - }, - "audio/mpeg": { - "source": "iana", - "compressible": false, - "extensions": ["mpga","mp2","mp2a","mp3","m2a","m3a"] - }, - "audio/mpeg4-generic": { - "source": "iana" - }, - "audio/musepack": { - "source": "apache" - }, - "audio/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["oga","ogg","spx"] - }, - "audio/opus": { - "source": "iana" - }, - "audio/parityfec": { - "source": "iana" - }, - "audio/pcma": { - "source": "iana" - }, - "audio/pcma-wb": { - "source": "iana" - }, - "audio/pcmu": { - "source": "iana" - }, - "audio/pcmu-wb": { - "source": "iana" - }, - "audio/prs.sid": { - "source": "iana" - }, - "audio/qcelp": { - "source": "iana" - }, - "audio/raptorfec": { - "source": "iana" - }, - "audio/red": { - "source": "iana" - }, - "audio/rtp-enc-aescm128": { - "source": "iana" - }, - "audio/rtp-midi": { - "source": "iana" - }, - "audio/rtploopback": { - "source": "iana" - }, - "audio/rtx": { - "source": "iana" - }, - "audio/s3m": { - "source": "apache", - "extensions": ["s3m"] - }, - "audio/silk": { - "source": "apache", - "extensions": ["sil"] - }, - "audio/smv": { - "source": "iana" - }, - "audio/smv-qcp": { - "source": "iana" - }, - "audio/smv0": { - "source": "iana" - }, - "audio/sp-midi": { - "source": "iana" - }, - "audio/speex": { - "source": "iana" - }, - "audio/t140c": { - "source": "iana" - }, - "audio/t38": { - "source": "iana" - }, - "audio/telephone-event": { - "source": "iana" - }, - "audio/tone": { - "source": "iana" - }, - "audio/uemclip": { - "source": "iana" - }, - "audio/ulpfec": { - "source": "iana" - }, - "audio/usac": { - "source": "iana" - }, - "audio/vdvi": { - "source": "iana" - }, - "audio/vmr-wb": { - "source": "iana" - }, - "audio/vnd.3gpp.iufp": { - "source": "iana" - }, - "audio/vnd.4sb": { - "source": "iana" - }, - "audio/vnd.audiokoz": { - "source": "iana" - }, - "audio/vnd.celp": { - "source": "iana" - }, - "audio/vnd.cisco.nse": { - "source": "iana" - }, - "audio/vnd.cmles.radio-events": { - "source": "iana" - }, - "audio/vnd.cns.anp1": { - "source": "iana" - }, - "audio/vnd.cns.inf1": { - "source": "iana" - }, - "audio/vnd.dece.audio": { - "source": "iana", - "extensions": ["uva","uvva"] - }, - "audio/vnd.digital-winds": { - "source": "iana", - "extensions": ["eol"] - }, - "audio/vnd.dlna.adts": { - "source": "iana" - }, - "audio/vnd.dolby.heaac.1": { - "source": "iana" - }, - "audio/vnd.dolby.heaac.2": { - "source": "iana" - }, - "audio/vnd.dolby.mlp": { - "source": "iana" - }, - "audio/vnd.dolby.mps": { - "source": "iana" - }, - "audio/vnd.dolby.pl2": { - "source": "iana" - }, - "audio/vnd.dolby.pl2x": { - "source": "iana" - }, - "audio/vnd.dolby.pl2z": { - "source": "iana" - }, - "audio/vnd.dolby.pulse.1": { - "source": "iana" - }, - "audio/vnd.dra": { - "source": "iana", - "extensions": ["dra"] - }, - "audio/vnd.dts": { - "source": "iana", - "extensions": ["dts"] - }, - "audio/vnd.dts.hd": { - "source": "iana", - "extensions": ["dtshd"] - }, - "audio/vnd.dvb.file": { - "source": "iana" - }, - "audio/vnd.everad.plj": { - "source": "iana" - }, - "audio/vnd.hns.audio": { - "source": "iana" - }, - "audio/vnd.lucent.voice": { - "source": "iana", - "extensions": ["lvp"] - }, - "audio/vnd.ms-playready.media.pya": { - "source": "iana", - "extensions": ["pya"] - }, - "audio/vnd.nokia.mobile-xmf": { - "source": "iana" - }, - "audio/vnd.nortel.vbk": { - "source": "iana" - }, - "audio/vnd.nuera.ecelp4800": { - "source": "iana", - "extensions": ["ecelp4800"] - }, - "audio/vnd.nuera.ecelp7470": { - "source": "iana", - "extensions": ["ecelp7470"] - }, - "audio/vnd.nuera.ecelp9600": { - "source": "iana", - "extensions": ["ecelp9600"] - }, - "audio/vnd.octel.sbc": { - "source": "iana" - }, - "audio/vnd.presonus.multitrack": { - "source": "iana" - }, - "audio/vnd.qcelp": { - "source": "iana" - }, - "audio/vnd.rhetorex.32kadpcm": { - "source": "iana" - }, - "audio/vnd.rip": { - "source": "iana", - "extensions": ["rip"] - }, - "audio/vnd.rn-realaudio": { - "compressible": false - }, - "audio/vnd.sealedmedia.softseal.mpeg": { - "source": "iana" - }, - "audio/vnd.vmx.cvsd": { - "source": "iana" - }, - "audio/vnd.wave": { - "compressible": false - }, - "audio/vorbis": { - "source": "iana", - "compressible": false - }, - "audio/vorbis-config": { - "source": "iana" - }, - "audio/wav": { - "compressible": false, - "extensions": ["wav"] - }, - "audio/wave": { - "compressible": false, - "extensions": ["wav"] - }, - "audio/webm": { - "source": "apache", - "compressible": false, - "extensions": ["weba"] - }, - "audio/x-aac": { - "source": "apache", - "compressible": false, - "extensions": ["aac"] - }, - "audio/x-aiff": { - "source": "apache", - "extensions": ["aif","aiff","aifc"] - }, - "audio/x-caf": { - "source": "apache", - "compressible": false, - "extensions": ["caf"] - }, - "audio/x-flac": { - "source": "apache", - "extensions": ["flac"] - }, - "audio/x-m4a": { - "source": "nginx", - "extensions": ["m4a"] - }, - "audio/x-matroska": { - "source": "apache", - "extensions": ["mka"] - }, - "audio/x-mpegurl": { - "source": "apache", - "extensions": ["m3u"] - }, - "audio/x-ms-wax": { - "source": "apache", - "extensions": ["wax"] - }, - "audio/x-ms-wma": { - "source": "apache", - "extensions": ["wma"] - }, - "audio/x-pn-realaudio": { - "source": "apache", - "extensions": ["ram","ra"] - }, - "audio/x-pn-realaudio-plugin": { - "source": "apache", - "extensions": ["rmp"] - }, - "audio/x-realaudio": { - "source": "nginx", - "extensions": ["ra"] - }, - "audio/x-tta": { - "source": "apache" - }, - "audio/x-wav": { - "source": "apache", - "extensions": ["wav"] - }, - "audio/xm": { - "source": "apache", - "extensions": ["xm"] - }, - "chemical/x-cdx": { - "source": "apache", - "extensions": ["cdx"] - }, - "chemical/x-cif": { - "source": "apache", - "extensions": ["cif"] - }, - "chemical/x-cmdf": { - "source": "apache", - "extensions": ["cmdf"] - }, - "chemical/x-cml": { - "source": "apache", - "extensions": ["cml"] - }, - "chemical/x-csml": { - "source": "apache", - "extensions": ["csml"] - }, - "chemical/x-pdb": { - "source": "apache" - }, - "chemical/x-xyz": { - "source": "apache", - "extensions": ["xyz"] - }, - "font/collection": { - "source": "iana", - "extensions": ["ttc"] - }, - "font/otf": { - "source": "iana", - "compressible": true, - "extensions": ["otf"] - }, - "font/sfnt": { - "source": "iana" - }, - "font/ttf": { - "source": "iana", - "extensions": ["ttf"] - }, - "font/woff": { - "source": "iana", - "extensions": ["woff"] - }, - "font/woff2": { - "source": "iana", - "extensions": ["woff2"] - }, - "image/aces": { - "source": "iana", - "extensions": ["exr"] - }, - "image/apng": { - "compressible": false, - "extensions": ["apng"] - }, - "image/avci": { - "source": "iana" - }, - "image/avcs": { - "source": "iana" - }, - "image/bmp": { - "source": "iana", - "compressible": true, - "extensions": ["bmp"] - }, - "image/cgm": { - "source": "iana", - "extensions": ["cgm"] - }, - "image/dicom-rle": { - "source": "iana", - "extensions": ["drle"] - }, - "image/emf": { - "source": "iana", - "extensions": ["emf"] - }, - "image/fits": { - "source": "iana", - "extensions": ["fits"] - }, - "image/g3fax": { - "source": "iana", - "extensions": ["g3"] - }, - "image/gif": { - "source": "iana", - "compressible": false, - "extensions": ["gif"] - }, - "image/heic": { - "source": "iana", - "extensions": ["heic"] - }, - "image/heic-sequence": { - "source": "iana", - "extensions": ["heics"] - }, - "image/heif": { - "source": "iana", - "extensions": ["heif"] - }, - "image/heif-sequence": { - "source": "iana", - "extensions": ["heifs"] - }, - "image/ief": { - "source": "iana", - "extensions": ["ief"] - }, - "image/jls": { - "source": "iana", - "extensions": ["jls"] - }, - "image/jp2": { - "source": "iana", - "compressible": false, - "extensions": ["jp2","jpg2"] - }, - "image/jpeg": { - "source": "iana", - "compressible": false, - "extensions": ["jpeg","jpg","jpe"] - }, - "image/jpm": { - "source": "iana", - "compressible": false, - "extensions": ["jpm"] - }, - "image/jpx": { - "source": "iana", - "compressible": false, - "extensions": ["jpx","jpf"] - }, - "image/ktx": { - "source": "iana", - "extensions": ["ktx"] - }, - "image/naplps": { - "source": "iana" - }, - "image/pjpeg": { - "compressible": false - }, - "image/png": { - "source": "iana", - "compressible": false, - "extensions": ["png"] - }, - "image/prs.btif": { - "source": "iana", - "extensions": ["btif"] - }, - "image/prs.pti": { - "source": "iana", - "extensions": ["pti"] - }, - "image/pwg-raster": { - "source": "iana" - }, - "image/sgi": { - "source": "apache", - "extensions": ["sgi"] - }, - "image/svg+xml": { - "source": "iana", - "compressible": true, - "extensions": ["svg","svgz"] - }, - "image/t38": { - "source": "iana", - "extensions": ["t38"] - }, - "image/tiff": { - "source": "iana", - "compressible": false, - "extensions": ["tif","tiff"] - }, - "image/tiff-fx": { - "source": "iana", - "extensions": ["tfx"] - }, - "image/vnd.adobe.photoshop": { - "source": "iana", - "compressible": true, - "extensions": ["psd"] - }, - "image/vnd.airzip.accelerator.azv": { - "source": "iana", - "extensions": ["azv"] - }, - "image/vnd.cns.inf2": { - "source": "iana" - }, - "image/vnd.dece.graphic": { - "source": "iana", - "extensions": ["uvi","uvvi","uvg","uvvg"] - }, - "image/vnd.djvu": { - "source": "iana", - "extensions": ["djvu","djv"] - }, - "image/vnd.dvb.subtitle": { - "source": "iana", - "extensions": ["sub"] - }, - "image/vnd.dwg": { - "source": "iana", - "extensions": ["dwg"] - }, - "image/vnd.dxf": { - "source": "iana", - "extensions": ["dxf"] - }, - "image/vnd.fastbidsheet": { - "source": "iana", - "extensions": ["fbs"] - }, - "image/vnd.fpx": { - "source": "iana", - "extensions": ["fpx"] - }, - "image/vnd.fst": { - "source": "iana", - "extensions": ["fst"] - }, - "image/vnd.fujixerox.edmics-mmr": { - "source": "iana", - "extensions": ["mmr"] - }, - "image/vnd.fujixerox.edmics-rlc": { - "source": "iana", - "extensions": ["rlc"] - }, - "image/vnd.globalgraphics.pgb": { - "source": "iana" - }, - "image/vnd.microsoft.icon": { - "source": "iana", - "extensions": ["ico"] - }, - "image/vnd.mix": { - "source": "iana" - }, - "image/vnd.mozilla.apng": { - "source": "iana" - }, - "image/vnd.ms-modi": { - "source": "iana", - "extensions": ["mdi"] - }, - "image/vnd.ms-photo": { - "source": "apache", - "extensions": ["wdp"] - }, - "image/vnd.net-fpx": { - "source": "iana", - "extensions": ["npx"] - }, - "image/vnd.radiance": { - "source": "iana" - }, - "image/vnd.sealed.png": { - "source": "iana" - }, - "image/vnd.sealedmedia.softseal.gif": { - "source": "iana" - }, - "image/vnd.sealedmedia.softseal.jpg": { - "source": "iana" - }, - "image/vnd.svf": { - "source": "iana" - }, - "image/vnd.tencent.tap": { - "source": "iana", - "extensions": ["tap"] - }, - "image/vnd.valve.source.texture": { - "source": "iana", - "extensions": ["vtf"] - }, - "image/vnd.wap.wbmp": { - "source": "iana", - "extensions": ["wbmp"] - }, - "image/vnd.xiff": { - "source": "iana", - "extensions": ["xif"] - }, - "image/vnd.zbrush.pcx": { - "source": "iana", - "extensions": ["pcx"] - }, - "image/webp": { - "source": "apache", - "extensions": ["webp"] - }, - "image/wmf": { - "source": "iana", - "extensions": ["wmf"] - }, - "image/x-3ds": { - "source": "apache", - "extensions": ["3ds"] - }, - "image/x-cmu-raster": { - "source": "apache", - "extensions": ["ras"] - }, - "image/x-cmx": { - "source": "apache", - "extensions": ["cmx"] - }, - "image/x-freehand": { - "source": "apache", - "extensions": ["fh","fhc","fh4","fh5","fh7"] - }, - "image/x-icon": { - "source": "apache", - "compressible": true, - "extensions": ["ico"] - }, - "image/x-jng": { - "source": "nginx", - "extensions": ["jng"] - }, - "image/x-mrsid-image": { - "source": "apache", - "extensions": ["sid"] - }, - "image/x-ms-bmp": { - "source": "nginx", - "compressible": true, - "extensions": ["bmp"] - }, - "image/x-pcx": { - "source": "apache", - "extensions": ["pcx"] - }, - "image/x-pict": { - "source": "apache", - "extensions": ["pic","pct"] - }, - "image/x-portable-anymap": { - "source": "apache", - "extensions": ["pnm"] - }, - "image/x-portable-bitmap": { - "source": "apache", - "extensions": ["pbm"] - }, - "image/x-portable-graymap": { - "source": "apache", - "extensions": ["pgm"] - }, - "image/x-portable-pixmap": { - "source": "apache", - "extensions": ["ppm"] - }, - "image/x-rgb": { - "source": "apache", - "extensions": ["rgb"] - }, - "image/x-tga": { - "source": "apache", - "extensions": ["tga"] - }, - "image/x-xbitmap": { - "source": "apache", - "extensions": ["xbm"] - }, - "image/x-xcf": { - "compressible": false - }, - "image/x-xpixmap": { - "source": "apache", - "extensions": ["xpm"] - }, - "image/x-xwindowdump": { - "source": "apache", - "extensions": ["xwd"] - }, - "message/cpim": { - "source": "iana" - }, - "message/delivery-status": { - "source": "iana" - }, - "message/disposition-notification": { - "source": "iana", - "extensions": [ - "disposition-notification" - ] - }, - "message/external-body": { - "source": "iana" - }, - "message/feedback-report": { - "source": "iana" - }, - "message/global": { - "source": "iana", - "extensions": ["u8msg"] - }, - "message/global-delivery-status": { - "source": "iana", - "extensions": ["u8dsn"] - }, - "message/global-disposition-notification": { - "source": "iana", - "extensions": ["u8mdn"] - }, - "message/global-headers": { - "source": "iana", - "extensions": ["u8hdr"] - }, - "message/http": { - "source": "iana", - "compressible": false - }, - "message/imdn+xml": { - "source": "iana", - "compressible": true - }, - "message/news": { - "source": "iana" - }, - "message/partial": { - "source": "iana", - "compressible": false - }, - "message/rfc822": { - "source": "iana", - "compressible": true, - "extensions": ["eml","mime"] - }, - "message/s-http": { - "source": "iana" - }, - "message/sip": { - "source": "iana" - }, - "message/sipfrag": { - "source": "iana" - }, - "message/tracking-status": { - "source": "iana" - }, - "message/vnd.si.simp": { - "source": "iana" - }, - "message/vnd.wfa.wsc": { - "source": "iana", - "extensions": ["wsc"] - }, - "model/3mf": { - "source": "iana" - }, - "model/gltf+json": { - "source": "iana", - "compressible": true, - "extensions": ["gltf"] - }, - "model/gltf-binary": { - "source": "iana", - "compressible": true, - "extensions": ["glb"] - }, - "model/iges": { - "source": "iana", - "compressible": false, - "extensions": ["igs","iges"] - }, - "model/mesh": { - "source": "iana", - "compressible": false, - "extensions": ["msh","mesh","silo"] - }, - "model/stl": { - "source": "iana" - }, - "model/vnd.collada+xml": { - "source": "iana", - "compressible": true, - "extensions": ["dae"] - }, - "model/vnd.dwf": { - "source": "iana", - "extensions": ["dwf"] - }, - "model/vnd.flatland.3dml": { - "source": "iana" - }, - "model/vnd.gdl": { - "source": "iana", - "extensions": ["gdl"] - }, - "model/vnd.gs-gdl": { - "source": "apache" - }, - "model/vnd.gs.gdl": { - "source": "iana" - }, - "model/vnd.gtw": { - "source": "iana", - "extensions": ["gtw"] - }, - "model/vnd.moml+xml": { - "source": "iana", - "compressible": true - }, - "model/vnd.mts": { - "source": "iana", - "extensions": ["mts"] - }, - "model/vnd.opengex": { - "source": "iana" - }, - "model/vnd.parasolid.transmit.binary": { - "source": "iana" - }, - "model/vnd.parasolid.transmit.text": { - "source": "iana" - }, - "model/vnd.rosette.annotated-data-model": { - "source": "iana" - }, - "model/vnd.usdz+zip": { - "source": "iana", - "compressible": false - }, - "model/vnd.valve.source.compiled-map": { - "source": "iana" - }, - "model/vnd.vtu": { - "source": "iana", - "extensions": ["vtu"] - }, - "model/vrml": { - "source": "iana", - "compressible": false, - "extensions": ["wrl","vrml"] - }, - "model/x3d+binary": { - "source": "apache", - "compressible": false, - "extensions": ["x3db","x3dbz"] - }, - "model/x3d+fastinfoset": { - "source": "iana" - }, - "model/x3d+vrml": { - "source": "apache", - "compressible": false, - "extensions": ["x3dv","x3dvz"] - }, - "model/x3d+xml": { - "source": "iana", - "compressible": true, - "extensions": ["x3d","x3dz"] - }, - "model/x3d-vrml": { - "source": "iana" - }, - "multipart/alternative": { - "source": "iana", - "compressible": false - }, - "multipart/appledouble": { - "source": "iana" - }, - "multipart/byteranges": { - "source": "iana" - }, - "multipart/digest": { - "source": "iana" - }, - "multipart/encrypted": { - "source": "iana", - "compressible": false - }, - "multipart/form-data": { - "source": "iana", - "compressible": false - }, - "multipart/header-set": { - "source": "iana" - }, - "multipart/mixed": { - "source": "iana", - "compressible": false - }, - "multipart/multilingual": { - "source": "iana" - }, - "multipart/parallel": { - "source": "iana" - }, - "multipart/related": { - "source": "iana", - "compressible": false - }, - "multipart/report": { - "source": "iana" - }, - "multipart/signed": { - "source": "iana", - "compressible": false - }, - "multipart/vnd.bint.med-plus": { - "source": "iana" - }, - "multipart/voice-message": { - "source": "iana" - }, - "multipart/x-mixed-replace": { - "source": "iana" - }, - "text/1d-interleaved-parityfec": { - "source": "iana" - }, - "text/cache-manifest": { - "source": "iana", - "compressible": true, - "extensions": ["appcache","manifest"] - }, - "text/calendar": { - "source": "iana", - "extensions": ["ics","ifb"] - }, - "text/calender": { - "compressible": true - }, - "text/cmd": { - "compressible": true - }, - "text/coffeescript": { - "extensions": ["coffee","litcoffee"] - }, - "text/css": { - "source": "iana", - "charset": "UTF-8", - "compressible": true, - "extensions": ["css"] - }, - "text/csv": { - "source": "iana", - "compressible": true, - "extensions": ["csv"] - }, - "text/csv-schema": { - "source": "iana" - }, - "text/directory": { - "source": "iana" - }, - "text/dns": { - "source": "iana" - }, - "text/ecmascript": { - "source": "iana" - }, - "text/encaprtp": { - "source": "iana" - }, - "text/enriched": { - "source": "iana" - }, - "text/fwdred": { - "source": "iana" - }, - "text/grammar-ref-list": { - "source": "iana" - }, - "text/html": { - "source": "iana", - "compressible": true, - "extensions": ["html","htm","shtml"] - }, - "text/jade": { - "extensions": ["jade"] - }, - "text/javascript": { - "source": "iana", - "compressible": true - }, - "text/jcr-cnd": { - "source": "iana" - }, - "text/jsx": { - "compressible": true, - "extensions": ["jsx"] - }, - "text/less": { - "extensions": ["less"] - }, - "text/markdown": { - "source": "iana", - "compressible": true, - "extensions": ["markdown","md"] - }, - "text/mathml": { - "source": "nginx", - "extensions": ["mml"] - }, - "text/mizar": { - "source": "iana" - }, - "text/n3": { - "source": "iana", - "compressible": true, - "extensions": ["n3"] - }, - "text/parameters": { - "source": "iana" - }, - "text/parityfec": { - "source": "iana" - }, - "text/plain": { - "source": "iana", - "compressible": true, - "extensions": ["txt","text","conf","def","list","log","in","ini"] - }, - "text/provenance-notation": { - "source": "iana" - }, - "text/prs.fallenstein.rst": { - "source": "iana" - }, - "text/prs.lines.tag": { - "source": "iana", - "extensions": ["dsc"] - }, - "text/prs.prop.logic": { - "source": "iana" - }, - "text/raptorfec": { - "source": "iana" - }, - "text/red": { - "source": "iana" - }, - "text/rfc822-headers": { - "source": "iana" - }, - "text/richtext": { - "source": "iana", - "compressible": true, - "extensions": ["rtx"] - }, - "text/rtf": { - "source": "iana", - "compressible": true, - "extensions": ["rtf"] - }, - "text/rtp-enc-aescm128": { - "source": "iana" - }, - "text/rtploopback": { - "source": "iana" - }, - "text/rtx": { - "source": "iana" - }, - "text/sgml": { - "source": "iana", - "extensions": ["sgml","sgm"] - }, - "text/shex": { - "extensions": ["shex"] - }, - "text/slim": { - "extensions": ["slim","slm"] - }, - "text/strings": { - "source": "iana" - }, - "text/stylus": { - "extensions": ["stylus","styl"] - }, - "text/t140": { - "source": "iana" - }, - "text/tab-separated-values": { - "source": "iana", - "compressible": true, - "extensions": ["tsv"] - }, - "text/troff": { - "source": "iana", - "extensions": ["t","tr","roff","man","me","ms"] - }, - "text/turtle": { - "source": "iana", - "charset": "UTF-8", - "extensions": ["ttl"] - }, - "text/ulpfec": { - "source": "iana" - }, - "text/uri-list": { - "source": "iana", - "compressible": true, - "extensions": ["uri","uris","urls"] - }, - "text/vcard": { - "source": "iana", - "compressible": true, - "extensions": ["vcard"] - }, - "text/vnd.a": { - "source": "iana" - }, - "text/vnd.abc": { - "source": "iana" - }, - "text/vnd.ascii-art": { - "source": "iana" - }, - "text/vnd.curl": { - "source": "iana", - "extensions": ["curl"] - }, - "text/vnd.curl.dcurl": { - "source": "apache", - "extensions": ["dcurl"] - }, - "text/vnd.curl.mcurl": { - "source": "apache", - "extensions": ["mcurl"] - }, - "text/vnd.curl.scurl": { - "source": "apache", - "extensions": ["scurl"] - }, - "text/vnd.debian.copyright": { - "source": "iana" - }, - "text/vnd.dmclientscript": { - "source": "iana" - }, - "text/vnd.dvb.subtitle": { - "source": "iana", - "extensions": ["sub"] - }, - "text/vnd.esmertec.theme-descriptor": { - "source": "iana" - }, - "text/vnd.fly": { - "source": "iana", - "extensions": ["fly"] - }, - "text/vnd.fmi.flexstor": { - "source": "iana", - "extensions": ["flx"] - }, - "text/vnd.gml": { - "source": "iana" - }, - "text/vnd.graphviz": { - "source": "iana", - "extensions": ["gv"] - }, - "text/vnd.hgl": { - "source": "iana" - }, - "text/vnd.in3d.3dml": { - "source": "iana", - "extensions": ["3dml"] - }, - "text/vnd.in3d.spot": { - "source": "iana", - "extensions": ["spot"] - }, - "text/vnd.iptc.newsml": { - "source": "iana" - }, - "text/vnd.iptc.nitf": { - "source": "iana" - }, - "text/vnd.latex-z": { - "source": "iana" - }, - "text/vnd.motorola.reflex": { - "source": "iana" - }, - "text/vnd.ms-mediapackage": { - "source": "iana" - }, - "text/vnd.net2phone.commcenter.command": { - "source": "iana" - }, - "text/vnd.radisys.msml-basic-layout": { - "source": "iana" - }, - "text/vnd.si.uricatalogue": { - "source": "iana" - }, - "text/vnd.sun.j2me.app-descriptor": { - "source": "iana", - "extensions": ["jad"] - }, - "text/vnd.trolltech.linguist": { - "source": "iana" - }, - "text/vnd.wap.si": { - "source": "iana" - }, - "text/vnd.wap.sl": { - "source": "iana" - }, - "text/vnd.wap.wml": { - "source": "iana", - "extensions": ["wml"] - }, - "text/vnd.wap.wmlscript": { - "source": "iana", - "extensions": ["wmls"] - }, - "text/vtt": { - "charset": "UTF-8", - "compressible": true, - "extensions": ["vtt"] - }, - "text/x-asm": { - "source": "apache", - "extensions": ["s","asm"] - }, - "text/x-c": { - "source": "apache", - "extensions": ["c","cc","cxx","cpp","h","hh","dic"] - }, - "text/x-component": { - "source": "nginx", - "extensions": ["htc"] - }, - "text/x-fortran": { - "source": "apache", - "extensions": ["f","for","f77","f90"] - }, - "text/x-gwt-rpc": { - "compressible": true - }, - "text/x-handlebars-template": { - "extensions": ["hbs"] - }, - "text/x-java-source": { - "source": "apache", - "extensions": ["java"] - }, - "text/x-jquery-tmpl": { - "compressible": true - }, - "text/x-lua": { - "extensions": ["lua"] - }, - "text/x-markdown": { - "compressible": true, - "extensions": ["mkd"] - }, - "text/x-nfo": { - "source": "apache", - "extensions": ["nfo"] - }, - "text/x-opml": { - "source": "apache", - "extensions": ["opml"] - }, - "text/x-org": { - "compressible": true, - "extensions": ["org"] - }, - "text/x-pascal": { - "source": "apache", - "extensions": ["p","pas"] - }, - "text/x-processing": { - "compressible": true, - "extensions": ["pde"] - }, - "text/x-sass": { - "extensions": ["sass"] - }, - "text/x-scss": { - "extensions": ["scss"] - }, - "text/x-setext": { - "source": "apache", - "extensions": ["etx"] - }, - "text/x-sfv": { - "source": "apache", - "extensions": ["sfv"] - }, - "text/x-suse-ymp": { - "compressible": true, - "extensions": ["ymp"] - }, - "text/x-uuencode": { - "source": "apache", - "extensions": ["uu"] - }, - "text/x-vcalendar": { - "source": "apache", - "extensions": ["vcs"] - }, - "text/x-vcard": { - "source": "apache", - "extensions": ["vcf"] - }, - "text/xml": { - "source": "iana", - "compressible": true, - "extensions": ["xml"] - }, - "text/xml-external-parsed-entity": { - "source": "iana" - }, - "text/yaml": { - "extensions": ["yaml","yml"] - }, - "video/1d-interleaved-parityfec": { - "source": "iana" - }, - "video/3gpp": { - "source": "iana", - "extensions": ["3gp","3gpp"] - }, - "video/3gpp-tt": { - "source": "iana" - }, - "video/3gpp2": { - "source": "iana", - "extensions": ["3g2"] - }, - "video/bmpeg": { - "source": "iana" - }, - "video/bt656": { - "source": "iana" - }, - "video/celb": { - "source": "iana" - }, - "video/dv": { - "source": "iana" - }, - "video/encaprtp": { - "source": "iana" - }, - "video/h261": { - "source": "iana", - "extensions": ["h261"] - }, - "video/h263": { - "source": "iana", - "extensions": ["h263"] - }, - "video/h263-1998": { - "source": "iana" - }, - "video/h263-2000": { - "source": "iana" - }, - "video/h264": { - "source": "iana", - "extensions": ["h264"] - }, - "video/h264-rcdo": { - "source": "iana" - }, - "video/h264-svc": { - "source": "iana" - }, - "video/h265": { - "source": "iana" - }, - "video/iso.segment": { - "source": "iana" - }, - "video/jpeg": { - "source": "iana", - "extensions": ["jpgv"] - }, - "video/jpeg2000": { - "source": "iana" - }, - "video/jpm": { - "source": "apache", - "extensions": ["jpm","jpgm"] - }, - "video/mj2": { - "source": "iana", - "extensions": ["mj2","mjp2"] - }, - "video/mp1s": { - "source": "iana" - }, - "video/mp2p": { - "source": "iana" - }, - "video/mp2t": { - "source": "iana", - "extensions": ["ts"] - }, - "video/mp4": { - "source": "iana", - "compressible": false, - "extensions": ["mp4","mp4v","mpg4"] - }, - "video/mp4v-es": { - "source": "iana" - }, - "video/mpeg": { - "source": "iana", - "compressible": false, - "extensions": ["mpeg","mpg","mpe","m1v","m2v"] - }, - "video/mpeg4-generic": { - "source": "iana" - }, - "video/mpv": { - "source": "iana" - }, - "video/nv": { - "source": "iana" - }, - "video/ogg": { - "source": "iana", - "compressible": false, - "extensions": ["ogv"] - }, - "video/parityfec": { - "source": "iana" - }, - "video/pointer": { - "source": "iana" - }, - "video/quicktime": { - "source": "iana", - "compressible": false, - "extensions": ["qt","mov"] - }, - "video/raptorfec": { - "source": "iana" - }, - "video/raw": { - "source": "iana" - }, - "video/rtp-enc-aescm128": { - "source": "iana" - }, - "video/rtploopback": { - "source": "iana" - }, - "video/rtx": { - "source": "iana" - }, - "video/smpte291": { - "source": "iana" - }, - "video/smpte292m": { - "source": "iana" - }, - "video/ulpfec": { - "source": "iana" - }, - "video/vc1": { - "source": "iana" - }, - "video/vc2": { - "source": "iana" - }, - "video/vnd.cctv": { - "source": "iana" - }, - "video/vnd.dece.hd": { - "source": "iana", - "extensions": ["uvh","uvvh"] - }, - "video/vnd.dece.mobile": { - "source": "iana", - "extensions": ["uvm","uvvm"] - }, - "video/vnd.dece.mp4": { - "source": "iana" - }, - "video/vnd.dece.pd": { - "source": "iana", - "extensions": ["uvp","uvvp"] - }, - "video/vnd.dece.sd": { - "source": "iana", - "extensions": ["uvs","uvvs"] - }, - "video/vnd.dece.video": { - "source": "iana", - "extensions": ["uvv","uvvv"] - }, - "video/vnd.directv.mpeg": { - "source": "iana" - }, - "video/vnd.directv.mpeg-tts": { - "source": "iana" - }, - "video/vnd.dlna.mpeg-tts": { - "source": "iana" - }, - "video/vnd.dvb.file": { - "source": "iana", - "extensions": ["dvb"] - }, - "video/vnd.fvt": { - "source": "iana", - "extensions": ["fvt"] - }, - "video/vnd.hns.video": { - "source": "iana" - }, - "video/vnd.iptvforum.1dparityfec-1010": { - "source": "iana" - }, - "video/vnd.iptvforum.1dparityfec-2005": { - "source": "iana" - }, - "video/vnd.iptvforum.2dparityfec-1010": { - "source": "iana" - }, - "video/vnd.iptvforum.2dparityfec-2005": { - "source": "iana" - }, - "video/vnd.iptvforum.ttsavc": { - "source": "iana" - }, - "video/vnd.iptvforum.ttsmpeg2": { - "source": "iana" - }, - "video/vnd.motorola.video": { - "source": "iana" - }, - "video/vnd.motorola.videop": { - "source": "iana" - }, - "video/vnd.mpegurl": { - "source": "iana", - "extensions": ["mxu","m4u"] - }, - "video/vnd.ms-playready.media.pyv": { - "source": "iana", - "extensions": ["pyv"] - }, - "video/vnd.nokia.interleaved-multimedia": { - "source": "iana" - }, - "video/vnd.nokia.mp4vr": { - "source": "iana" - }, - "video/vnd.nokia.videovoip": { - "source": "iana" - }, - "video/vnd.objectvideo": { - "source": "iana" - }, - "video/vnd.radgamettools.bink": { - "source": "iana" - }, - "video/vnd.radgamettools.smacker": { - "source": "iana" - }, - "video/vnd.sealed.mpeg1": { - "source": "iana" - }, - "video/vnd.sealed.mpeg4": { - "source": "iana" - }, - "video/vnd.sealed.swf": { - "source": "iana" - }, - "video/vnd.sealedmedia.softseal.mov": { - "source": "iana" - }, - "video/vnd.uvvu.mp4": { - "source": "iana", - "extensions": ["uvu","uvvu"] - }, - "video/vnd.vivo": { - "source": "iana", - "extensions": ["viv"] - }, - "video/vp8": { - "source": "iana" - }, - "video/webm": { - "source": "apache", - "compressible": false, - "extensions": ["webm"] - }, - "video/x-f4v": { - "source": "apache", - "extensions": ["f4v"] - }, - "video/x-fli": { - "source": "apache", - "extensions": ["fli"] - }, - "video/x-flv": { - "source": "apache", - "compressible": false, - "extensions": ["flv"] - }, - "video/x-m4v": { - "source": "apache", - "extensions": ["m4v"] - }, - "video/x-matroska": { - "source": "apache", - "compressible": false, - "extensions": ["mkv","mk3d","mks"] - }, - "video/x-mng": { - "source": "apache", - "extensions": ["mng"] - }, - "video/x-ms-asf": { - "source": "apache", - "extensions": ["asf","asx"] - }, - "video/x-ms-vob": { - "source": "apache", - "extensions": ["vob"] - }, - "video/x-ms-wm": { - "source": "apache", - "extensions": ["wm"] - }, - "video/x-ms-wmv": { - "source": "apache", - "compressible": false, - "extensions": ["wmv"] - }, - "video/x-ms-wmx": { - "source": "apache", - "extensions": ["wmx"] - }, - "video/x-ms-wvx": { - "source": "apache", - "extensions": ["wvx"] - }, - "video/x-msvideo": { - "source": "apache", - "extensions": ["avi"] - }, - "video/x-sgi-movie": { - "source": "apache", - "extensions": ["movie"] - }, - "video/x-smv": { - "source": "apache", - "extensions": ["smv"] - }, - "x-conference/x-cooltalk": { - "source": "apache", - "extensions": ["ice"] - }, - "x-shader/x-fragment": { - "compressible": true - }, - "x-shader/x-vertex": { - "compressible": true - } -} diff --git a/build/node_modules/mime-db/index.js b/build/node_modules/mime-db/index.js deleted file mode 100644 index 551031f69..000000000 --- a/build/node_modules/mime-db/index.js +++ /dev/null @@ -1,11 +0,0 @@ -/*! - * mime-db - * Copyright(c) 2014 Jonathan Ong - * MIT Licensed - */ - -/** - * Module exports. - */ - -module.exports = require('./db.json') diff --git a/build/node_modules/mime-db/package.json b/build/node_modules/mime-db/package.json deleted file mode 100644 index ec514def5..000000000 --- a/build/node_modules/mime-db/package.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "_from": "mime-db@~1.37.0", - "_id": "mime-db@1.37.0", - "_inBundle": false, - "_integrity": "sha512-R3C4db6bgQhlIhPU48fUtdVmKnflq+hRdad7IyKhtFj06VPNVdk2RhiYL3UjQIlso8L+YxAtFkobT0VK+S/ybg==", - "_location": "/mime-db", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "mime-db@~1.37.0", - "name": "mime-db", - "escapedName": "mime-db", - "rawSpec": "~1.37.0", - "saveSpec": null, - "fetchSpec": "~1.37.0" - }, - "_requiredBy": [ - "/mime-types" - ], - "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.37.0.tgz", - "_shasum": "0b6a0ce6fdbe9576e25f1f2d2fde8830dc0ad0d8", - "_spec": "mime-db@~1.37.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\mime-types", - "bugs": { - "url": "https://github.com/jshttp/mime-db/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Douglas Christopher Wilson", - "email": "doug@somethingdoug.com" - }, - { - "name": "Jonathan Ong", - "email": "me@jongleberry.com", - "url": "http://jongleberry.com" - }, - { - "name": "Robert Kieffer", - "email": "robert@broofa.com", - "url": "http://github.com/broofa" - } - ], - "deprecated": false, - "description": "Media Type Database", - "devDependencies": { - "bluebird": "3.5.2", - "co": "4.6.0", - "cogent": "1.0.1", - "csv-parse": "2.5.0", - "eslint": "5.7.0", - "eslint-config-standard": "12.0.0", - "eslint-plugin-import": "2.14.0", - "eslint-plugin-node": "7.0.1", - "eslint-plugin-promise": "4.0.1", - "eslint-plugin-standard": "4.0.0", - "gnode": "0.1.2", - "mocha": "5.2.0", - "nyc": "13.1.0", - "raw-body": "2.3.3", - "stream-to-array": "2.3.0" - }, - "engines": { - "node": ">= 0.6" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "README.md", - "db.json", - "index.js" - ], - "homepage": "https://github.com/jshttp/mime-db#readme", - "keywords": [ - "mime", - "db", - "type", - "types", - "database", - "charset", - "charsets" - ], - "license": "MIT", - "name": "mime-db", - "repository": { - "type": "git", - "url": "git+https://github.com/jshttp/mime-db.git" - }, - "scripts": { - "build": "node scripts/build", - "fetch": "node scripts/fetch-apache && gnode scripts/fetch-iana && node scripts/fetch-nginx", - "lint": "eslint .", - "test": "mocha --reporter spec --bail --check-leaks test/", - "test-cov": "nyc --reporter=html --reporter=text npm test", - "test-travis": "nyc --reporter=text npm test", - "update": "npm run fetch && npm run build" - }, - "version": "1.37.0" -} diff --git a/build/node_modules/mime-types/HISTORY.md b/build/node_modules/mime-types/HISTORY.md deleted file mode 100644 index dd7f4f8e9..000000000 --- a/build/node_modules/mime-types/HISTORY.md +++ /dev/null @@ -1,285 +0,0 @@ -2.1.21 / 2018-10-19 -=================== - - * deps: mime-db@~1.37.0 - - Add extensions to HEIC image types - - Add new upstream MIME types - -2.1.20 / 2018-08-26 -=================== - - * deps: mime-db@~1.36.0 - - Add Apple file extensions from IANA - - Add extensions from IANA for `image/*` types - - Add new upstream MIME types - -2.1.19 / 2018-07-17 -=================== - - * deps: mime-db@~1.35.0 - - Add extension `.csl` to `application/vnd.citationstyles.style+xml` - - Add extension `.es` to `application/ecmascript` - - Add extension `.owl` to `application/rdf+xml` - - Add new upstream MIME types - - Add UTF-8 as default charset for `text/turtle` - -2.1.18 / 2018-02-16 -=================== - - * deps: mime-db@~1.33.0 - - Add `application/raml+yaml` with extension `.raml` - - Add `application/wasm` with extension `.wasm` - - Add `text/shex` with extension `.shex` - - Add extensions for JPEG-2000 images - - Add extensions from IANA for `message/*` types - - Add new upstream MIME types - - Update font MIME types - - Update `text/hjson` to registered `application/hjson` - -2.1.17 / 2017-09-01 -=================== - - * deps: mime-db@~1.30.0 - - Add `application/vnd.ms-outlook` - - Add `application/x-arj` - - Add extension `.mjs` to `application/javascript` - - Add glTF types and extensions - - Add new upstream MIME types - - Add `text/x-org` - - Add VirtualBox MIME types - - Fix `source` records for `video/*` types that are IANA - - Update `font/opentype` to registered `font/otf` - -2.1.16 / 2017-07-24 -=================== - - * deps: mime-db@~1.29.0 - - Add `application/fido.trusted-apps+json` - - Add extension `.wadl` to `application/vnd.sun.wadl+xml` - - Add extension `.gz` to `application/gzip` - - Add new upstream MIME types - - Update extensions `.md` and `.markdown` to be `text/markdown` - -2.1.15 / 2017-03-23 -=================== - - * deps: mime-db@~1.27.0 - - Add new mime types - - Add `image/apng` - -2.1.14 / 2017-01-14 -=================== - - * deps: mime-db@~1.26.0 - - Add new mime types - -2.1.13 / 2016-11-18 -=================== - - * deps: mime-db@~1.25.0 - - Add new mime types - -2.1.12 / 2016-09-18 -=================== - - * deps: mime-db@~1.24.0 - - Add new mime types - - Add `audio/mp3` - -2.1.11 / 2016-05-01 -=================== - - * deps: mime-db@~1.23.0 - - Add new mime types - -2.1.10 / 2016-02-15 -=================== - - * deps: mime-db@~1.22.0 - - Add new mime types - - Fix extension of `application/dash+xml` - - Update primary extension for `audio/mp4` - -2.1.9 / 2016-01-06 -================== - - * deps: mime-db@~1.21.0 - - Add new mime types - -2.1.8 / 2015-11-30 -================== - - * deps: mime-db@~1.20.0 - - Add new mime types - -2.1.7 / 2015-09-20 -================== - - * deps: mime-db@~1.19.0 - - Add new mime types - -2.1.6 / 2015-09-03 -================== - - * deps: mime-db@~1.18.0 - - Add new mime types - -2.1.5 / 2015-08-20 -================== - - * deps: mime-db@~1.17.0 - - Add new mime types - -2.1.4 / 2015-07-30 -================== - - * deps: mime-db@~1.16.0 - - Add new mime types - -2.1.3 / 2015-07-13 -================== - - * deps: mime-db@~1.15.0 - - Add new mime types - -2.1.2 / 2015-06-25 -================== - - * deps: mime-db@~1.14.0 - - Add new mime types - -2.1.1 / 2015-06-08 -================== - - * perf: fix deopt during mapping - -2.1.0 / 2015-06-07 -================== - - * Fix incorrectly treating extension-less file name as extension - - i.e. `'path/to/json'` will no longer return `application/json` - * Fix `.charset(type)` to accept parameters - * Fix `.charset(type)` to match case-insensitive - * Improve generation of extension to MIME mapping - * Refactor internals for readability and no argument reassignment - * Prefer `application/*` MIME types from the same source - * Prefer any type over `application/octet-stream` - * deps: mime-db@~1.13.0 - - Add nginx as a source - - Add new mime types - -2.0.14 / 2015-06-06 -=================== - - * deps: mime-db@~1.12.0 - - Add new mime types - -2.0.13 / 2015-05-31 -=================== - - * deps: mime-db@~1.11.0 - - Add new mime types - -2.0.12 / 2015-05-19 -=================== - - * deps: mime-db@~1.10.0 - - Add new mime types - -2.0.11 / 2015-05-05 -=================== - - * deps: mime-db@~1.9.1 - - Add new mime types - -2.0.10 / 2015-03-13 -=================== - - * deps: mime-db@~1.8.0 - - Add new mime types - -2.0.9 / 2015-02-09 -================== - - * deps: mime-db@~1.7.0 - - Add new mime types - - Community extensions ownership transferred from `node-mime` - -2.0.8 / 2015-01-29 -================== - - * deps: mime-db@~1.6.0 - - Add new mime types - -2.0.7 / 2014-12-30 -================== - - * deps: mime-db@~1.5.0 - - Add new mime types - - Fix various invalid MIME type entries - -2.0.6 / 2014-12-30 -================== - - * deps: mime-db@~1.4.0 - - Add new mime types - - Fix various invalid MIME type entries - - Remove example template MIME types - -2.0.5 / 2014-12-29 -================== - - * deps: mime-db@~1.3.1 - - Fix missing extensions - -2.0.4 / 2014-12-10 -================== - - * deps: mime-db@~1.3.0 - - Add new mime types - -2.0.3 / 2014-11-09 -================== - - * deps: mime-db@~1.2.0 - - Add new mime types - -2.0.2 / 2014-09-28 -================== - - * deps: mime-db@~1.1.0 - - Add new mime types - - Add additional compressible - - Update charsets - -2.0.1 / 2014-09-07 -================== - - * Support Node.js 0.6 - -2.0.0 / 2014-09-02 -================== - - * Use `mime-db` - * Remove `.define()` - -1.0.2 / 2014-08-04 -================== - - * Set charset=utf-8 for `text/javascript` - -1.0.1 / 2014-06-24 -================== - - * Add `text/jsx` type - -1.0.0 / 2014-05-12 -================== - - * Return `false` for unknown types - * Set charset=utf-8 for `application/json` - -0.1.0 / 2014-05-02 -================== - - * Initial release diff --git a/build/node_modules/mime-types/LICENSE b/build/node_modules/mime-types/LICENSE deleted file mode 100644 index 06166077b..000000000 --- a/build/node_modules/mime-types/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -(The MIT License) - -Copyright (c) 2014 Jonathan Ong -Copyright (c) 2015 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build/node_modules/mime-types/README.md b/build/node_modules/mime-types/README.md deleted file mode 100644 index b68b52e61..000000000 --- a/build/node_modules/mime-types/README.md +++ /dev/null @@ -1,107 +0,0 @@ -# mime-types - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][travis-image]][travis-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -The ultimate javascript content-type utility. - -Similar to [the `mime@1.x` module](https://www.npmjs.com/package/mime), except: - -- __No fallbacks.__ Instead of naively returning the first available type, - `mime-types` simply returns `false`, so do - `var type = mime.lookup('unrecognized') || 'application/octet-stream'`. -- No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`. -- No `.define()` functionality -- Bug fixes for `.lookup(path)` - -Otherwise, the API is compatible with `mime` 1.x. - -## Install - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install mime-types -``` - -## Adding Types - -All mime types are based on [mime-db](https://www.npmjs.com/package/mime-db), -so open a PR there if you'd like to add mime types. - -## API - -```js -var mime = require('mime-types') -``` - -All functions return `false` if input is invalid or not found. - -### mime.lookup(path) - -Lookup the content-type associated with a file. - -```js -mime.lookup('json') // 'application/json' -mime.lookup('.md') // 'text/markdown' -mime.lookup('file.html') // 'text/html' -mime.lookup('folder/file.js') // 'application/javascript' -mime.lookup('folder/.htaccess') // false - -mime.lookup('cats') // false -``` - -### mime.contentType(type) - -Create a full content-type header given a content-type or extension. - -```js -mime.contentType('markdown') // 'text/x-markdown; charset=utf-8' -mime.contentType('file.json') // 'application/json; charset=utf-8' - -// from a full path -mime.contentType(path.extname('/path/to/file.json')) // 'application/json; charset=utf-8' -``` - -### mime.extension(type) - -Get the default extension for a content-type. - -```js -mime.extension('application/octet-stream') // 'bin' -``` - -### mime.charset(type) - -Lookup the implied default charset of a content-type. - -```js -mime.charset('text/markdown') // 'UTF-8' -``` - -### var type = mime.types[extension] - -A map of content-types by extension. - -### [extensions...] = mime.extensions[type] - -A map of extensions by content-type. - -## License - -[MIT](LICENSE) - -[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-types/master -[coveralls-url]: https://coveralls.io/r/jshttp/mime-types?branch=master -[node-version-image]: https://badgen.net/npm/node/mime-types -[node-version-url]: https://nodejs.org/en/download -[npm-downloads-image]: https://badgen.net/npm/dm/mime-types -[npm-url]: https://npmjs.org/package/mime-types -[npm-version-image]: https://badgen.net/npm/v/mime-types -[travis-image]: https://badgen.net/travis/jshttp/mime-types/master -[travis-url]: https://travis-ci.org/jshttp/mime-types diff --git a/build/node_modules/mime-types/index.js b/build/node_modules/mime-types/index.js deleted file mode 100644 index b9f34d599..000000000 --- a/build/node_modules/mime-types/index.js +++ /dev/null @@ -1,188 +0,0 @@ -/*! - * mime-types - * Copyright(c) 2014 Jonathan Ong - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module dependencies. - * @private - */ - -var db = require('mime-db') -var extname = require('path').extname - -/** - * Module variables. - * @private - */ - -var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ -var TEXT_TYPE_REGEXP = /^text\//i - -/** - * Module exports. - * @public - */ - -exports.charset = charset -exports.charsets = { lookup: charset } -exports.contentType = contentType -exports.extension = extension -exports.extensions = Object.create(null) -exports.lookup = lookup -exports.types = Object.create(null) - -// Populate the extensions/types maps -populateMaps(exports.extensions, exports.types) - -/** - * Get the default charset for a MIME type. - * - * @param {string} type - * @return {boolean|string} - */ - -function charset (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - var mime = match && db[match[1].toLowerCase()] - - if (mime && mime.charset) { - return mime.charset - } - - // default text/* to utf-8 - if (match && TEXT_TYPE_REGEXP.test(match[1])) { - return 'UTF-8' - } - - return false -} - -/** - * Create a full Content-Type header given a MIME type or extension. - * - * @param {string} str - * @return {boolean|string} - */ - -function contentType (str) { - // TODO: should this even be in this module? - if (!str || typeof str !== 'string') { - return false - } - - var mime = str.indexOf('/') === -1 - ? exports.lookup(str) - : str - - if (!mime) { - return false - } - - // TODO: use content-type or other module - if (mime.indexOf('charset') === -1) { - var charset = exports.charset(mime) - if (charset) mime += '; charset=' + charset.toLowerCase() - } - - return mime -} - -/** - * Get the default extension for a MIME type. - * - * @param {string} type - * @return {boolean|string} - */ - -function extension (type) { - if (!type || typeof type !== 'string') { - return false - } - - // TODO: use media-typer - var match = EXTRACT_TYPE_REGEXP.exec(type) - - // get extensions - var exts = match && exports.extensions[match[1].toLowerCase()] - - if (!exts || !exts.length) { - return false - } - - return exts[0] -} - -/** - * Lookup the MIME type for a file path/extension. - * - * @param {string} path - * @return {boolean|string} - */ - -function lookup (path) { - if (!path || typeof path !== 'string') { - return false - } - - // get the extension ("ext" or ".ext" or full path) - var extension = extname('x.' + path) - .toLowerCase() - .substr(1) - - if (!extension) { - return false - } - - return exports.types[extension] || false -} - -/** - * Populate the extensions and types maps. - * @private - */ - -function populateMaps (extensions, types) { - // source preference (least -> most) - var preference = ['nginx', 'apache', undefined, 'iana'] - - Object.keys(db).forEach(function forEachMimeType (type) { - var mime = db[type] - var exts = mime.extensions - - if (!exts || !exts.length) { - return - } - - // mime -> extensions - extensions[type] = exts - - // extension -> mime - for (var i = 0; i < exts.length; i++) { - var extension = exts[i] - - if (types[extension]) { - var from = preference.indexOf(db[types[extension]].source) - var to = preference.indexOf(mime.source) - - if (types[extension] !== 'application/octet-stream' && - (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) { - // skip the remapping - continue - } - } - - // set the extension -> mime - types[extension] = type - } - }) -} diff --git a/build/node_modules/mime-types/package.json b/build/node_modules/mime-types/package.json deleted file mode 100644 index b64a4c55e..000000000 --- a/build/node_modules/mime-types/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "_from": "mime-types@^2.1.21", - "_id": "mime-types@2.1.21", - "_inBundle": false, - "_integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", - "_location": "/mime-types", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "mime-types@^2.1.21", - "name": "mime-types", - "escapedName": "mime-types", - "rawSpec": "^2.1.21", - "saveSpec": null, - "fetchSpec": "^2.1.21" - }, - "_requiredBy": [ - "/putasset" - ], - "_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.21.tgz", - "_shasum": "28995aa1ecb770742fe6ae7e58f9181c744b3f96", - "_spec": "mime-types@^2.1.21", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\putasset", - "bugs": { - "url": "https://github.com/jshttp/mime-types/issues" - }, - "bundleDependencies": false, - "contributors": [ - { - "name": "Douglas Christopher Wilson", - "email": "doug@somethingdoug.com" - }, - { - "name": "Jeremiah Senkpiel", - "email": "fishrock123@rocketmail.com", - "url": "https://searchbeam.jit.su" - }, - { - "name": "Jonathan Ong", - "email": "me@jongleberry.com", - "url": "http://jongleberry.com" - } - ], - "dependencies": { - "mime-db": "~1.37.0" - }, - "deprecated": false, - "description": "The ultimate javascript content-type utility.", - "devDependencies": { - "eslint": "5.7.0", - "eslint-config-standard": "12.0.0", - "eslint-plugin-import": "2.14.0", - "eslint-plugin-node": "7.0.1", - "eslint-plugin-promise": "4.0.1", - "eslint-plugin-standard": "4.0.0", - "mocha": "5.2.0", - "nyc": "13.1.0" - }, - "engines": { - "node": ">= 0.6" - }, - "files": [ - "HISTORY.md", - "LICENSE", - "index.js" - ], - "homepage": "https://github.com/jshttp/mime-types#readme", - "keywords": [ - "mime", - "types" - ], - "license": "MIT", - "name": "mime-types", - "repository": { - "type": "git", - "url": "git+https://github.com/jshttp/mime-types.git" - }, - "scripts": { - "lint": "eslint .", - "test": "mocha --reporter spec test/test.js", - "test-cov": "nyc --reporter=html --reporter=text npm test", - "test-travis": "nyc --reporter=text npm test" - }, - "version": "2.1.21" -} diff --git a/build/node_modules/minimist/.travis.yml b/build/node_modules/minimist/.travis.yml deleted file mode 100644 index 74c57bf15..000000000 --- a/build/node_modules/minimist/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" - - "0.12" - - "iojs" -before_install: - - npm install -g npm@~1.4.6 diff --git a/build/node_modules/minimist/LICENSE b/build/node_modules/minimist/LICENSE deleted file mode 100644 index ee27ba4b4..000000000 --- a/build/node_modules/minimist/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -This software is released under the MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build/node_modules/minimist/example/parse.js b/build/node_modules/minimist/example/parse.js deleted file mode 100644 index abff3e8ee..000000000 --- a/build/node_modules/minimist/example/parse.js +++ /dev/null @@ -1,2 +0,0 @@ -var argv = require('../')(process.argv.slice(2)); -console.dir(argv); diff --git a/build/node_modules/minimist/index.js b/build/node_modules/minimist/index.js deleted file mode 100644 index 6a0559d58..000000000 --- a/build/node_modules/minimist/index.js +++ /dev/null @@ -1,236 +0,0 @@ -module.exports = function (args, opts) { - if (!opts) opts = {}; - - var flags = { bools : {}, strings : {}, unknownFn: null }; - - if (typeof opts['unknown'] === 'function') { - flags.unknownFn = opts['unknown']; - } - - if (typeof opts['boolean'] === 'boolean' && opts['boolean']) { - flags.allBools = true; - } else { - [].concat(opts['boolean']).filter(Boolean).forEach(function (key) { - flags.bools[key] = true; - }); - } - - var aliases = {}; - Object.keys(opts.alias || {}).forEach(function (key) { - aliases[key] = [].concat(opts.alias[key]); - aliases[key].forEach(function (x) { - aliases[x] = [key].concat(aliases[key].filter(function (y) { - return x !== y; - })); - }); - }); - - [].concat(opts.string).filter(Boolean).forEach(function (key) { - flags.strings[key] = true; - if (aliases[key]) { - flags.strings[aliases[key]] = true; - } - }); - - var defaults = opts['default'] || {}; - - var argv = { _ : [] }; - Object.keys(flags.bools).forEach(function (key) { - setArg(key, defaults[key] === undefined ? false : defaults[key]); - }); - - var notFlags = []; - - if (args.indexOf('--') !== -1) { - notFlags = args.slice(args.indexOf('--')+1); - args = args.slice(0, args.indexOf('--')); - } - - function argDefined(key, arg) { - return (flags.allBools && /^--[^=]+$/.test(arg)) || - flags.strings[key] || flags.bools[key] || aliases[key]; - } - - function setArg (key, val, arg) { - if (arg && flags.unknownFn && !argDefined(key, arg)) { - if (flags.unknownFn(arg) === false) return; - } - - var value = !flags.strings[key] && isNumber(val) - ? Number(val) : val - ; - setKey(argv, key.split('.'), value); - - (aliases[key] || []).forEach(function (x) { - setKey(argv, x.split('.'), value); - }); - } - - function setKey (obj, keys, value) { - var o = obj; - keys.slice(0,-1).forEach(function (key) { - if (o[key] === undefined) o[key] = {}; - o = o[key]; - }); - - var key = keys[keys.length - 1]; - if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') { - o[key] = value; - } - else if (Array.isArray(o[key])) { - o[key].push(value); - } - else { - o[key] = [ o[key], value ]; - } - } - - function aliasIsBoolean(key) { - return aliases[key].some(function (x) { - return flags.bools[x]; - }); - } - - for (var i = 0; i < args.length; i++) { - var arg = args[i]; - - if (/^--.+=/.test(arg)) { - // Using [\s\S] instead of . because js doesn't support the - // 'dotall' regex modifier. See: - // http://stackoverflow.com/a/1068308/13216 - var m = arg.match(/^--([^=]+)=([\s\S]*)$/); - var key = m[1]; - var value = m[2]; - if (flags.bools[key]) { - value = value !== 'false'; - } - setArg(key, value, arg); - } - else if (/^--no-.+/.test(arg)) { - var key = arg.match(/^--no-(.+)/)[1]; - setArg(key, false, arg); - } - else if (/^--.+/.test(arg)) { - var key = arg.match(/^--(.+)/)[1]; - var next = args[i + 1]; - if (next !== undefined && !/^-/.test(next) - && !flags.bools[key] - && !flags.allBools - && (aliases[key] ? !aliasIsBoolean(key) : true)) { - setArg(key, next, arg); - i++; - } - else if (/^(true|false)$/.test(next)) { - setArg(key, next === 'true', arg); - i++; - } - else { - setArg(key, flags.strings[key] ? '' : true, arg); - } - } - else if (/^-[^-]+/.test(arg)) { - var letters = arg.slice(1,-1).split(''); - - var broken = false; - for (var j = 0; j < letters.length; j++) { - var next = arg.slice(j+2); - - if (next === '-') { - setArg(letters[j], next, arg) - continue; - } - - if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) { - setArg(letters[j], next.split('=')[1], arg); - broken = true; - break; - } - - if (/[A-Za-z]/.test(letters[j]) - && /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) { - setArg(letters[j], next, arg); - broken = true; - break; - } - - if (letters[j+1] && letters[j+1].match(/\W/)) { - setArg(letters[j], arg.slice(j+2), arg); - broken = true; - break; - } - else { - setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg); - } - } - - var key = arg.slice(-1)[0]; - if (!broken && key !== '-') { - if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1]) - && !flags.bools[key] - && (aliases[key] ? !aliasIsBoolean(key) : true)) { - setArg(key, args[i+1], arg); - i++; - } - else if (args[i+1] && /true|false/.test(args[i+1])) { - setArg(key, args[i+1] === 'true', arg); - i++; - } - else { - setArg(key, flags.strings[key] ? '' : true, arg); - } - } - } - else { - if (!flags.unknownFn || flags.unknownFn(arg) !== false) { - argv._.push( - flags.strings['_'] || !isNumber(arg) ? arg : Number(arg) - ); - } - if (opts.stopEarly) { - argv._.push.apply(argv._, args.slice(i + 1)); - break; - } - } - } - - Object.keys(defaults).forEach(function (key) { - if (!hasKey(argv, key.split('.'))) { - setKey(argv, key.split('.'), defaults[key]); - - (aliases[key] || []).forEach(function (x) { - setKey(argv, x.split('.'), defaults[key]); - }); - } - }); - - if (opts['--']) { - argv['--'] = new Array(); - notFlags.forEach(function(key) { - argv['--'].push(key); - }); - } - else { - notFlags.forEach(function(key) { - argv._.push(key); - }); - } - - return argv; -}; - -function hasKey (obj, keys) { - var o = obj; - keys.slice(0,-1).forEach(function (key) { - o = (o[key] || {}); - }); - - var key = keys[keys.length - 1]; - return key in o; -} - -function isNumber (x) { - if (typeof x === 'number') return true; - if (/^0x[0-9a-f]+$/i.test(x)) return true; - return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x); -} - diff --git a/build/node_modules/minimist/package.json b/build/node_modules/minimist/package.json deleted file mode 100644 index ac329102c..000000000 --- a/build/node_modules/minimist/package.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "_from": "minimist@^1.2.0", - "_id": "minimist@1.2.0", - "_inBundle": false, - "_integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "_location": "/minimist", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "minimist@^1.2.0", - "name": "minimist", - "escapedName": "minimist", - "rawSpec": "^1.2.0", - "saveSpec": null, - "fetchSpec": "^1.2.0" - }, - "_requiredBy": [ - "/putasset" - ], - "_resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "_shasum": "a35008b20f41383eec1fb914f4cd5df79a264284", - "_spec": "minimist@^1.2.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\putasset", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "bugs": { - "url": "https://github.com/substack/minimist/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "parse argument options", - "devDependencies": { - "covert": "^1.0.0", - "tap": "~0.4.0", - "tape": "^3.5.0" - }, - "homepage": "https://github.com/substack/minimist", - "keywords": [ - "argv", - "getopt", - "parser", - "optimist" - ], - "license": "MIT", - "main": "index.js", - "name": "minimist", - "repository": { - "type": "git", - "url": "git://github.com/substack/minimist.git" - }, - "scripts": { - "coverage": "covert test/*.js", - "test": "tap test/*.js" - }, - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/6..latest", - "ff/5", - "firefox/latest", - "chrome/10", - "chrome/latest", - "safari/5.1", - "safari/latest", - "opera/12" - ] - }, - "version": "1.2.0" -} diff --git a/build/node_modules/minimist/readme.markdown b/build/node_modules/minimist/readme.markdown deleted file mode 100644 index 30a74cf8c..000000000 --- a/build/node_modules/minimist/readme.markdown +++ /dev/null @@ -1,91 +0,0 @@ -# minimist - -parse argument options - -This module is the guts of optimist's argument parser without all the -fanciful decoration. - -[![browser support](https://ci.testling.com/substack/minimist.png)](http://ci.testling.com/substack/minimist) - -[![build status](https://secure.travis-ci.org/substack/minimist.png)](http://travis-ci.org/substack/minimist) - -# example - -``` js -var argv = require('minimist')(process.argv.slice(2)); -console.dir(argv); -``` - -``` -$ node example/parse.js -a beep -b boop -{ _: [], a: 'beep', b: 'boop' } -``` - -``` -$ node example/parse.js -x 3 -y 4 -n5 -abc --beep=boop foo bar baz -{ _: [ 'foo', 'bar', 'baz' ], - x: 3, - y: 4, - n: 5, - a: true, - b: true, - c: true, - beep: 'boop' } -``` - -# methods - -``` js -var parseArgs = require('minimist') -``` - -## var argv = parseArgs(args, opts={}) - -Return an argument object `argv` populated with the array arguments from `args`. - -`argv._` contains all the arguments that didn't have an option associated with -them. - -Numeric-looking arguments will be returned as numbers unless `opts.string` or -`opts.boolean` is set for that argument name. - -Any arguments after `'--'` will not be parsed and will end up in `argv._`. - -options can be: - -* `opts.string` - a string or array of strings argument names to always treat as -strings -* `opts.boolean` - a boolean, string or array of strings to always treat as -booleans. if `true` will treat all double hyphenated arguments without equal signs -as boolean (e.g. affects `--foo`, not `-f` or `--foo=bar`) -* `opts.alias` - an object mapping string names to strings or arrays of string -argument names to use as aliases -* `opts.default` - an object mapping string argument names to default values -* `opts.stopEarly` - when true, populate `argv._` with everything after the -first non-option -* `opts['--']` - when true, populate `argv._` with everything before the `--` -and `argv['--']` with everything after the `--`. Here's an example: -* `opts.unknown` - a function which is invoked with a command line parameter not -defined in the `opts` configuration object. If the function returns `false`, the -unknown option is not added to `argv`. - -``` -> require('./')('one two three -- four five --six'.split(' '), { '--': true }) -{ _: [ 'one', 'two', 'three' ], - '--': [ 'four', 'five', '--six' ] } -``` - -Note that with `opts['--']` set, parsing for arguments still stops after the -`--`. - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install minimist -``` - -# license - -MIT diff --git a/build/node_modules/minimist/test/all_bool.js b/build/node_modules/minimist/test/all_bool.js deleted file mode 100644 index ac835483d..000000000 --- a/build/node_modules/minimist/test/all_bool.js +++ /dev/null @@ -1,32 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('flag boolean true (default all --args to boolean)', function (t) { - var argv = parse(['moo', '--honk', 'cow'], { - boolean: true - }); - - t.deepEqual(argv, { - honk: true, - _: ['moo', 'cow'] - }); - - t.deepEqual(typeof argv.honk, 'boolean'); - t.end(); -}); - -test('flag boolean true only affects double hyphen arguments without equals signs', function (t) { - var argv = parse(['moo', '--honk', 'cow', '-p', '55', '--tacos=good'], { - boolean: true - }); - - t.deepEqual(argv, { - honk: true, - tacos: 'good', - p: 55, - _: ['moo', 'cow'] - }); - - t.deepEqual(typeof argv.honk, 'boolean'); - t.end(); -}); diff --git a/build/node_modules/minimist/test/bool.js b/build/node_modules/minimist/test/bool.js deleted file mode 100644 index 14b0717ce..000000000 --- a/build/node_modules/minimist/test/bool.js +++ /dev/null @@ -1,166 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('flag boolean default false', function (t) { - var argv = parse(['moo'], { - boolean: ['t', 'verbose'], - default: { verbose: false, t: false } - }); - - t.deepEqual(argv, { - verbose: false, - t: false, - _: ['moo'] - }); - - t.deepEqual(typeof argv.verbose, 'boolean'); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); - -}); - -test('boolean groups', function (t) { - var argv = parse([ '-x', '-z', 'one', 'two', 'three' ], { - boolean: ['x','y','z'] - }); - - t.deepEqual(argv, { - x : true, - y : false, - z : true, - _ : [ 'one', 'two', 'three' ] - }); - - t.deepEqual(typeof argv.x, 'boolean'); - t.deepEqual(typeof argv.y, 'boolean'); - t.deepEqual(typeof argv.z, 'boolean'); - t.end(); -}); -test('boolean and alias with chainable api', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var opts = { - herp: { alias: 'h', boolean: true } - }; - var aliasedArgv = parse(aliased, { - boolean: 'herp', - alias: { h: 'herp' } - }); - var propertyArgv = parse(regular, { - boolean: 'herp', - alias: { h: 'herp' } - }); - var expected = { - herp: true, - h: true, - '_': [ 'derp' ] - }; - - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); -}); - -test('boolean and alias with options hash', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var opts = { - alias: { 'h': 'herp' }, - boolean: 'herp' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var expected = { - herp: true, - h: true, - '_': [ 'derp' ] - }; - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); -}); - -test('boolean and alias array with options hash', function (t) { - var aliased = [ '-h', 'derp' ]; - var regular = [ '--herp', 'derp' ]; - var alt = [ '--harp', 'derp' ]; - var opts = { - alias: { 'h': ['herp', 'harp'] }, - boolean: 'h' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var altPropertyArgv = parse(alt, opts); - var expected = { - harp: true, - herp: true, - h: true, - '_': [ 'derp' ] - }; - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.same(altPropertyArgv, expected); - t.end(); -}); - -test('boolean and alias using explicit true', function (t) { - var aliased = [ '-h', 'true' ]; - var regular = [ '--herp', 'true' ]; - var opts = { - alias: { h: 'herp' }, - boolean: 'h' - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - var expected = { - herp: true, - h: true, - '_': [ ] - }; - - t.same(aliasedArgv, expected); - t.same(propertyArgv, expected); - t.end(); -}); - -// regression, see https://github.com/substack/node-optimist/issues/71 -test('boolean and --x=true', function(t) { - var parsed = parse(['--boool', '--other=true'], { - boolean: 'boool' - }); - - t.same(parsed.boool, true); - t.same(parsed.other, 'true'); - - parsed = parse(['--boool', '--other=false'], { - boolean: 'boool' - }); - - t.same(parsed.boool, true); - t.same(parsed.other, 'false'); - t.end(); -}); - -test('boolean --boool=true', function (t) { - var parsed = parse(['--boool=true'], { - default: { - boool: false - }, - boolean: ['boool'] - }); - - t.same(parsed.boool, true); - t.end(); -}); - -test('boolean --boool=false', function (t) { - var parsed = parse(['--boool=false'], { - default: { - boool: true - }, - boolean: ['boool'] - }); - - t.same(parsed.boool, false); - t.end(); -}); diff --git a/build/node_modules/minimist/test/dash.js b/build/node_modules/minimist/test/dash.js deleted file mode 100644 index 5a4fa5be4..000000000 --- a/build/node_modules/minimist/test/dash.js +++ /dev/null @@ -1,31 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('-', function (t) { - t.plan(5); - t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] }); - t.deepEqual(parse([ '-' ]), { _: [ '-' ] }); - t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] }); - t.deepEqual( - parse([ '-b', '-' ], { boolean: 'b' }), - { b: true, _: [ '-' ] } - ); - t.deepEqual( - parse([ '-s', '-' ], { string: 's' }), - { s: '-', _: [] } - ); -}); - -test('-a -- b', function (t) { - t.plan(3); - t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] }); - t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); - t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] }); -}); - -test('move arguments after the -- into their own `--` array', function(t) { - t.plan(1); - t.deepEqual( - parse([ '--name', 'John', 'before', '--', 'after' ], { '--': true }), - { name: 'John', _: [ 'before' ], '--': [ 'after' ] }); -}); diff --git a/build/node_modules/minimist/test/default_bool.js b/build/node_modules/minimist/test/default_bool.js deleted file mode 100644 index 780a31127..000000000 --- a/build/node_modules/minimist/test/default_bool.js +++ /dev/null @@ -1,35 +0,0 @@ -var test = require('tape'); -var parse = require('../'); - -test('boolean default true', function (t) { - var argv = parse([], { - boolean: 'sometrue', - default: { sometrue: true } - }); - t.equal(argv.sometrue, true); - t.end(); -}); - -test('boolean default false', function (t) { - var argv = parse([], { - boolean: 'somefalse', - default: { somefalse: false } - }); - t.equal(argv.somefalse, false); - t.end(); -}); - -test('boolean default to null', function (t) { - var argv = parse([], { - boolean: 'maybe', - default: { maybe: null } - }); - t.equal(argv.maybe, null); - var argv = parse(['--maybe'], { - boolean: 'maybe', - default: { maybe: null } - }); - t.equal(argv.maybe, true); - t.end(); - -}) diff --git a/build/node_modules/minimist/test/dotted.js b/build/node_modules/minimist/test/dotted.js deleted file mode 100644 index d8b3e856e..000000000 --- a/build/node_modules/minimist/test/dotted.js +++ /dev/null @@ -1,22 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('dotted alias', function (t) { - var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); - t.equal(argv.a.b, 22); - t.equal(argv.aa.bb, 22); - t.end(); -}); - -test('dotted default', function (t) { - var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); - t.equal(argv.a.b, 11); - t.equal(argv.aa.bb, 11); - t.end(); -}); - -test('dotted default with no alias', function (t) { - var argv = parse('', {default: {'a.b': 11}}); - t.equal(argv.a.b, 11); - t.end(); -}); diff --git a/build/node_modules/minimist/test/kv_short.js b/build/node_modules/minimist/test/kv_short.js deleted file mode 100644 index f813b3050..000000000 --- a/build/node_modules/minimist/test/kv_short.js +++ /dev/null @@ -1,16 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('short -k=v' , function (t) { - t.plan(1); - - var argv = parse([ '-b=123' ]); - t.deepEqual(argv, { b: 123, _: [] }); -}); - -test('multi short -k=v' , function (t) { - t.plan(1); - - var argv = parse([ '-a=whatever', '-b=robots' ]); - t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] }); -}); diff --git a/build/node_modules/minimist/test/long.js b/build/node_modules/minimist/test/long.js deleted file mode 100644 index 5d3a1e09d..000000000 --- a/build/node_modules/minimist/test/long.js +++ /dev/null @@ -1,31 +0,0 @@ -var test = require('tape'); -var parse = require('../'); - -test('long opts', function (t) { - t.deepEqual( - parse([ '--bool' ]), - { bool : true, _ : [] }, - 'long boolean' - ); - t.deepEqual( - parse([ '--pow', 'xixxle' ]), - { pow : 'xixxle', _ : [] }, - 'long capture sp' - ); - t.deepEqual( - parse([ '--pow=xixxle' ]), - { pow : 'xixxle', _ : [] }, - 'long capture eq' - ); - t.deepEqual( - parse([ '--host', 'localhost', '--port', '555' ]), - { host : 'localhost', port : 555, _ : [] }, - 'long captures sp' - ); - t.deepEqual( - parse([ '--host=localhost', '--port=555' ]), - { host : 'localhost', port : 555, _ : [] }, - 'long captures eq' - ); - t.end(); -}); diff --git a/build/node_modules/minimist/test/num.js b/build/node_modules/minimist/test/num.js deleted file mode 100644 index 2cc77f4d6..000000000 --- a/build/node_modules/minimist/test/num.js +++ /dev/null @@ -1,36 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('nums', function (t) { - var argv = parse([ - '-x', '1234', - '-y', '5.67', - '-z', '1e7', - '-w', '10f', - '--hex', '0xdeadbeef', - '789' - ]); - t.deepEqual(argv, { - x : 1234, - y : 5.67, - z : 1e7, - w : '10f', - hex : 0xdeadbeef, - _ : [ 789 ] - }); - t.deepEqual(typeof argv.x, 'number'); - t.deepEqual(typeof argv.y, 'number'); - t.deepEqual(typeof argv.z, 'number'); - t.deepEqual(typeof argv.w, 'string'); - t.deepEqual(typeof argv.hex, 'number'); - t.deepEqual(typeof argv._[0], 'number'); - t.end(); -}); - -test('already a number', function (t) { - var argv = parse([ '-x', 1234, 789 ]); - t.deepEqual(argv, { x : 1234, _ : [ 789 ] }); - t.deepEqual(typeof argv.x, 'number'); - t.deepEqual(typeof argv._[0], 'number'); - t.end(); -}); diff --git a/build/node_modules/minimist/test/parse.js b/build/node_modules/minimist/test/parse.js deleted file mode 100644 index 7b4a2a17c..000000000 --- a/build/node_modules/minimist/test/parse.js +++ /dev/null @@ -1,197 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('parse args', function (t) { - t.deepEqual( - parse([ '--no-moo' ]), - { moo : false, _ : [] }, - 'no' - ); - t.deepEqual( - parse([ '-v', 'a', '-v', 'b', '-v', 'c' ]), - { v : ['a','b','c'], _ : [] }, - 'multi' - ); - t.end(); -}); - -test('comprehensive', function (t) { - t.deepEqual( - parse([ - '--name=meowmers', 'bare', '-cats', 'woo', - '-h', 'awesome', '--multi=quux', - '--key', 'value', - '-b', '--bool', '--no-meep', '--multi=baz', - '--', '--not-a-flag', 'eek' - ]), - { - c : true, - a : true, - t : true, - s : 'woo', - h : 'awesome', - b : true, - bool : true, - key : 'value', - multi : [ 'quux', 'baz' ], - meep : false, - name : 'meowmers', - _ : [ 'bare', '--not-a-flag', 'eek' ] - } - ); - t.end(); -}); - -test('flag boolean', function (t) { - var argv = parse([ '-t', 'moo' ], { boolean: 't' }); - t.deepEqual(argv, { t : true, _ : [ 'moo' ] }); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); -}); - -test('flag boolean value', function (t) { - var argv = parse(['--verbose', 'false', 'moo', '-t', 'true'], { - boolean: [ 't', 'verbose' ], - default: { verbose: true } - }); - - t.deepEqual(argv, { - verbose: false, - t: true, - _: ['moo'] - }); - - t.deepEqual(typeof argv.verbose, 'boolean'); - t.deepEqual(typeof argv.t, 'boolean'); - t.end(); -}); - -test('newlines in params' , function (t) { - var args = parse([ '-s', "X\nX" ]) - t.deepEqual(args, { _ : [], s : "X\nX" }); - - // reproduce in bash: - // VALUE="new - // line" - // node program.js --s="$VALUE" - args = parse([ "--s=X\nX" ]) - t.deepEqual(args, { _ : [], s : "X\nX" }); - t.end(); -}); - -test('strings' , function (t) { - var s = parse([ '-s', '0001234' ], { string: 's' }).s; - t.equal(s, '0001234'); - t.equal(typeof s, 'string'); - - var x = parse([ '-x', '56' ], { string: 'x' }).x; - t.equal(x, '56'); - t.equal(typeof x, 'string'); - t.end(); -}); - -test('stringArgs', function (t) { - var s = parse([ ' ', ' ' ], { string: '_' })._; - t.same(s.length, 2); - t.same(typeof s[0], 'string'); - t.same(s[0], ' '); - t.same(typeof s[1], 'string'); - t.same(s[1], ' '); - t.end(); -}); - -test('empty strings', function(t) { - var s = parse([ '-s' ], { string: 's' }).s; - t.equal(s, ''); - t.equal(typeof s, 'string'); - - var str = parse([ '--str' ], { string: 'str' }).str; - t.equal(str, ''); - t.equal(typeof str, 'string'); - - var letters = parse([ '-art' ], { - string: [ 'a', 't' ] - }); - - t.equal(letters.a, ''); - t.equal(letters.r, true); - t.equal(letters.t, ''); - - t.end(); -}); - - -test('string and alias', function(t) { - var x = parse([ '--str', '000123' ], { - string: 's', - alias: { s: 'str' } - }); - - t.equal(x.str, '000123'); - t.equal(typeof x.str, 'string'); - t.equal(x.s, '000123'); - t.equal(typeof x.s, 'string'); - - var y = parse([ '-s', '000123' ], { - string: 'str', - alias: { str: 's' } - }); - - t.equal(y.str, '000123'); - t.equal(typeof y.str, 'string'); - t.equal(y.s, '000123'); - t.equal(typeof y.s, 'string'); - t.end(); -}); - -test('slashBreak', function (t) { - t.same( - parse([ '-I/foo/bar/baz' ]), - { I : '/foo/bar/baz', _ : [] } - ); - t.same( - parse([ '-xyz/foo/bar/baz' ]), - { x : true, y : true, z : '/foo/bar/baz', _ : [] } - ); - t.end(); -}); - -test('alias', function (t) { - var argv = parse([ '-f', '11', '--zoom', '55' ], { - alias: { z: 'zoom' } - }); - t.equal(argv.zoom, 55); - t.equal(argv.z, argv.zoom); - t.equal(argv.f, 11); - t.end(); -}); - -test('multiAlias', function (t) { - var argv = parse([ '-f', '11', '--zoom', '55' ], { - alias: { z: [ 'zm', 'zoom' ] } - }); - t.equal(argv.zoom, 55); - t.equal(argv.z, argv.zoom); - t.equal(argv.z, argv.zm); - t.equal(argv.f, 11); - t.end(); -}); - -test('nested dotted objects', function (t) { - var argv = parse([ - '--foo.bar', '3', '--foo.baz', '4', - '--foo.quux.quibble', '5', '--foo.quux.o_O', - '--beep.boop' - ]); - - t.same(argv.foo, { - bar : 3, - baz : 4, - quux : { - quibble : 5, - o_O : true - } - }); - t.same(argv.beep, { boop : true }); - t.end(); -}); diff --git a/build/node_modules/minimist/test/parse_modified.js b/build/node_modules/minimist/test/parse_modified.js deleted file mode 100644 index ab620dc5e..000000000 --- a/build/node_modules/minimist/test/parse_modified.js +++ /dev/null @@ -1,9 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('parse with modifier functions' , function (t) { - t.plan(1); - - var argv = parse([ '-b', '123' ], { boolean: 'b' }); - t.deepEqual(argv, { b: true, _: [123] }); -}); diff --git a/build/node_modules/minimist/test/short.js b/build/node_modules/minimist/test/short.js deleted file mode 100644 index d513a1c25..000000000 --- a/build/node_modules/minimist/test/short.js +++ /dev/null @@ -1,67 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('numeric short args', function (t) { - t.plan(2); - t.deepEqual(parse([ '-n123' ]), { n: 123, _: [] }); - t.deepEqual( - parse([ '-123', '456' ]), - { 1: true, 2: true, 3: 456, _: [] } - ); -}); - -test('short', function (t) { - t.deepEqual( - parse([ '-b' ]), - { b : true, _ : [] }, - 'short boolean' - ); - t.deepEqual( - parse([ 'foo', 'bar', 'baz' ]), - { _ : [ 'foo', 'bar', 'baz' ] }, - 'bare' - ); - t.deepEqual( - parse([ '-cats' ]), - { c : true, a : true, t : true, s : true, _ : [] }, - 'group' - ); - t.deepEqual( - parse([ '-cats', 'meow' ]), - { c : true, a : true, t : true, s : 'meow', _ : [] }, - 'short group next' - ); - t.deepEqual( - parse([ '-h', 'localhost' ]), - { h : 'localhost', _ : [] }, - 'short capture' - ); - t.deepEqual( - parse([ '-h', 'localhost', '-p', '555' ]), - { h : 'localhost', p : 555, _ : [] }, - 'short captures' - ); - t.end(); -}); - -test('mixed short bool and capture', function (t) { - t.same( - parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]), - { - f : true, p : 555, h : 'localhost', - _ : [ 'script.js' ] - } - ); - t.end(); -}); - -test('short and long', function (t) { - t.deepEqual( - parse([ '-h', 'localhost', '-fp', '555', 'script.js' ]), - { - f : true, p : 555, h : 'localhost', - _ : [ 'script.js' ] - } - ); - t.end(); -}); diff --git a/build/node_modules/minimist/test/stop_early.js b/build/node_modules/minimist/test/stop_early.js deleted file mode 100644 index bdf9fbcb0..000000000 --- a/build/node_modules/minimist/test/stop_early.js +++ /dev/null @@ -1,15 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('stops parsing on the first non-option when stopEarly is set', function (t) { - var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], { - stopEarly: true - }); - - t.deepEqual(argv, { - aaa: 'bbb', - _: ['ccc', '--ddd'] - }); - - t.end(); -}); diff --git a/build/node_modules/minimist/test/unknown.js b/build/node_modules/minimist/test/unknown.js deleted file mode 100644 index 462a36bdd..000000000 --- a/build/node_modules/minimist/test/unknown.js +++ /dev/null @@ -1,102 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('boolean and alias is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '-h', 'true', '--derp', 'true' ]; - var regular = [ '--herp', 'true', '-d', 'true' ]; - var opts = { - alias: { h: 'herp' }, - boolean: 'h', - unknown: unknownFn - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - - t.same(unknown, ['--derp', '-d']); - t.end(); -}); - -test('flag boolean true any double hyphen argument is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var argv = parse(['--honk', '--tacos=good', 'cow', '-p', '55'], { - boolean: true, - unknown: unknownFn - }); - t.same(unknown, ['--tacos=good', 'cow', '-p']); - t.same(argv, { - honk: true, - _: [] - }); - t.end(); -}); - -test('string and alias is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '-h', 'hello', '--derp', 'goodbye' ]; - var regular = [ '--herp', 'hello', '-d', 'moon' ]; - var opts = { - alias: { h: 'herp' }, - string: 'h', - unknown: unknownFn - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - - t.same(unknown, ['--derp', '-d']); - t.end(); -}); - -test('default and alias is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '-h', 'hello' ]; - var regular = [ '--herp', 'hello' ]; - var opts = { - default: { 'h': 'bar' }, - alias: { 'h': 'herp' }, - unknown: unknownFn - }; - var aliasedArgv = parse(aliased, opts); - var propertyArgv = parse(regular, opts); - - t.same(unknown, []); - t.end(); - unknownFn(); // exercise fn for 100% coverage -}); - -test('value following -- is not unknown', function (t) { - var unknown = []; - function unknownFn(arg) { - unknown.push(arg); - return false; - } - var aliased = [ '--bad', '--', 'good', 'arg' ]; - var opts = { - '--': true, - unknown: unknownFn - }; - var argv = parse(aliased, opts); - - t.same(unknown, ['--bad']); - t.same(argv, { - '--': ['good', 'arg'], - '_': [] - }) - t.end(); -}); diff --git a/build/node_modules/minimist/test/whitespace.js b/build/node_modules/minimist/test/whitespace.js deleted file mode 100644 index 8a52a58ce..000000000 --- a/build/node_modules/minimist/test/whitespace.js +++ /dev/null @@ -1,8 +0,0 @@ -var parse = require('../'); -var test = require('tape'); - -test('whitespace should be whitespace' , function (t) { - t.plan(1); - var x = parse([ '-x', '\t' ]).x; - t.equal(x, '\t'); -}); diff --git a/build/node_modules/nice-try/CHANGELOG.md b/build/node_modules/nice-try/CHANGELOG.md deleted file mode 100644 index 9e6baf2fb..000000000 --- a/build/node_modules/nice-try/CHANGELOG.md +++ /dev/null @@ -1,21 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - -## [1.0.5] - 2018-08-25 - -### Changed - -- Removed `prepublish` script from `package.json` - -## [1.0.4] - 2017-08-08 - -### New - -- Added a changelog - -### Changed - -- Ignore `yarn.lock` and `package-lock.json` files \ No newline at end of file diff --git a/build/node_modules/nice-try/LICENSE b/build/node_modules/nice-try/LICENSE deleted file mode 100644 index 681c8f507..000000000 --- a/build/node_modules/nice-try/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Tobias Reich - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/nice-try/README.md b/build/node_modules/nice-try/README.md deleted file mode 100644 index 5b83b7882..000000000 --- a/build/node_modules/nice-try/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# nice-try - -[![Travis Build Status](https://travis-ci.org/electerious/nice-try.svg?branch=master)](https://travis-ci.org/electerious/nice-try) [![AppVeyor Status](https://ci.appveyor.com/api/projects/status/8tqb09wrwci3xf8l?svg=true)](https://ci.appveyor.com/project/electerious/nice-try) [![Coverage Status](https://coveralls.io/repos/github/electerious/nice-try/badge.svg?branch=master)](https://coveralls.io/github/electerious/nice-try?branch=master) [![Dependencies](https://david-dm.org/electerious/nice-try.svg)](https://david-dm.org/electerious/nice-try#info=dependencies) [![Greenkeeper badge](https://badges.greenkeeper.io/electerious/nice-try.svg)](https://greenkeeper.io/) - -A function that tries to execute a function and discards any error that occurs. - -## Install - -``` -npm install nice-try -``` - -## Usage - -```js -const niceTry = require('nice-try') - -niceTry(() => JSON.parse('true')) // true -niceTry(() => JSON.parse('truee')) // undefined -niceTry() // undefined -niceTry(true) // undefined -``` - -## API - -### Parameters - -- `fn` `{Function}` Function that might or might not throw an error. - -### Returns - -- `{?*}` Return-value of the function when no error occurred. \ No newline at end of file diff --git a/build/node_modules/nice-try/package.json b/build/node_modules/nice-try/package.json deleted file mode 100644 index 53059495b..000000000 --- a/build/node_modules/nice-try/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "_from": "nice-try@^1.0.4", - "_id": "nice-try@1.0.5", - "_inBundle": false, - "_integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "_location": "/nice-try", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "nice-try@^1.0.4", - "name": "nice-try", - "escapedName": "nice-try", - "rawSpec": "^1.0.4", - "saveSpec": null, - "fetchSpec": "^1.0.4" - }, - "_requiredBy": [ - "/cross-spawn" - ], - "_resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "_shasum": "a3378a7696ce7d223e88fc9b764bd7ef1089e366", - "_spec": "nice-try@^1.0.4", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\cross-spawn", - "authors": [ - "Tobias Reich " - ], - "bugs": { - "url": "https://github.com/electerious/nice-try/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Tries to execute a function and discards any error that occurs", - "devDependencies": { - "chai": "^4.1.2", - "coveralls": "^3.0.0", - "mocha": "^5.1.1", - "nyc": "^12.0.1" - }, - "files": [ - "src" - ], - "homepage": "https://github.com/electerious/nice-try", - "keywords": [ - "try", - "catch", - "error" - ], - "license": "MIT", - "main": "src/index.js", - "name": "nice-try", - "repository": { - "type": "git", - "url": "git+https://github.com/electerious/nice-try.git" - }, - "scripts": { - "coveralls": "nyc report --reporter=text-lcov | coveralls", - "test": "nyc node_modules/mocha/bin/_mocha" - }, - "version": "1.0.5" -} diff --git a/build/node_modules/nice-try/src/index.js b/build/node_modules/nice-try/src/index.js deleted file mode 100644 index 837506f2c..000000000 --- a/build/node_modules/nice-try/src/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict' - -/** - * Tries to execute a function and discards any error that occurs. - * @param {Function} fn - Function that might or might not throw an error. - * @returns {?*} Return-value of the function when no error occurred. - */ -module.exports = function(fn) { - - try { return fn() } catch (e) {} - -} \ No newline at end of file diff --git a/build/node_modules/node-fetch/CHANGELOG.md b/build/node_modules/node-fetch/CHANGELOG.md deleted file mode 100644 index 85b2e2ad0..000000000 --- a/build/node_modules/node-fetch/CHANGELOG.md +++ /dev/null @@ -1,240 +0,0 @@ - -Changelog -========= - - -# 2.x release - -## v2.3.0 - -- New: `AbortSignal` support, with README example. -- Enhance: handle invalid `Location` header during redirect by rejecting them explicitly with `FetchError`. -- Fix: update `browser.js` to support react-native environment, where `self` isn't available globally. - -## v2.2.1 - -- Fix: `compress` flag shouldn't overwrite existing `Accept-Encoding` header. -- Fix: multiple `import` rules, where `PassThrough` etc. doesn't have a named export when using node <10 and `--exerimental-modules` flag. -- Other: Better README. - -## v2.2.0 - -- Enhance: Support all `ArrayBuffer` view types -- Enhance: Support Web Workers -- Enhance: Support Node.js' `--experimental-modules` mode; deprecate `.es.js` file -- Fix: Add `__esModule` property to the exports object -- Other: Better example in README for writing response to a file -- Other: More tests for Agent - -## v2.1.2 - -- Fix: allow `Body` methods to work on `ArrayBuffer`-backed `Body` objects -- Fix: reject promise returned by `Body` methods when the accumulated `Buffer` exceeds the maximum size -- Fix: support custom `Host` headers with any casing -- Fix: support importing `fetch()` from TypeScript in `browser.js` -- Fix: handle the redirect response body properly - -## v2.1.1 - -Fix packaging errors in v2.1.0. - -## v2.1.0 - -- Enhance: allow using ArrayBuffer as the `body` of a `fetch()` or `Request` -- Fix: store HTTP headers of a `Headers` object internally with the given case, for compatibility with older servers that incorrectly treated header names in a case-sensitive manner -- Fix: silently ignore invalid HTTP headers -- Fix: handle HTTP redirect responses without a `Location` header just like non-redirect responses -- Fix: include bodies when following a redirection when appropriate - -## v2.0.0 - -This is a major release. Check [our upgrade guide](https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md) for an overview on some key differences between v1 and v2. - -### General changes - -- Major: Node.js 0.10.x and 0.12.x support is dropped -- Major: `require('node-fetch/lib/response')` etc. is now unsupported; use `require('node-fetch').Response` or ES6 module imports -- Enhance: start testing on Node.js v4.x, v6.x, v8.x LTS, as well as v9.x stable -- Enhance: use Rollup to produce a distributed bundle (less memory overhead and faster startup) -- Enhance: make `Object.prototype.toString()` on Headers, Requests, and Responses return correct class strings -- Other: rewrite in ES2015 using Babel -- Other: use Codecov for code coverage tracking -- Other: update package.json script for npm 5 -- Other: `encoding` module is now optional (alpha.7) -- Other: expose browser.js through package.json, avoid bundling mishaps (alpha.9) -- Other: allow TypeScript to `import` node-fetch by exposing default (alpha.9) - -### HTTP requests - -- Major: overwrite user's `Content-Length` if we can be sure our information is correct (per spec) -- Fix: errors in a response are caught before the body is accessed -- Fix: support WHATWG URL objects, created by `whatwg-url` package or `require('url').URL` in Node.js 7+ - -### Response and Request classes - -- Major: `response.text()` no longer attempts to detect encoding, instead always opting for UTF-8 (per spec); use `response.textConverted()` for the v1 behavior -- Major: make `response.json()` throw error instead of returning an empty object on 204 no-content respose (per spec; reverts behavior changed in v1.6.2) -- Major: internal methods are no longer exposed -- Major: throw error when a `GET` or `HEAD` Request is constructed with a non-null body (per spec) -- Enhance: add `response.arrayBuffer()` (also applies to Requests) -- Enhance: add experimental `response.blob()` (also applies to Requests) -- Enhance: `URLSearchParams` is now accepted as a body -- Enhance: wrap `response.json()` json parsing error as `FetchError` -- Fix: fix Request and Response with `null` body - -### Headers class - -- Major: remove `headers.getAll()`; make `get()` return all headers delimited by commas (per spec) -- Enhance: make Headers iterable -- Enhance: make Headers constructor accept an array of tuples -- Enhance: make sure header names and values are valid in HTTP -- Fix: coerce Headers prototype function parameters to strings, where applicable - -### Documentation - -- Enhance: more comprehensive API docs -- Enhance: add a list of default headers in README - - -# 1.x release - -## backport releases (v1.7.0 and beyond) - -See [changelog on 1.x branch](https://github.com/bitinn/node-fetch/blob/1.x/CHANGELOG.md) for details. - -## v1.6.3 - -- Enhance: error handling document to explain `FetchError` design -- Fix: support `form-data` 2.x releases (requires `form-data` >= 2.1.0) - -## v1.6.2 - -- Enhance: minor document update -- Fix: response.json() returns empty object on 204 no-content response instead of throwing a syntax error - -## v1.6.1 - -- Fix: if `res.body` is a non-stream non-formdata object, we will call `body.toString` and send it as a string -- Fix: `counter` value is incorrectly set to `follow` value when wrapping Request instance -- Fix: documentation update - -## v1.6.0 - -- Enhance: added `res.buffer()` api for convenience, it returns body as a Node.js buffer -- Enhance: better old server support by handling raw deflate response -- Enhance: skip encoding detection for non-HTML/XML response -- Enhance: minor document update -- Fix: HEAD request doesn't need decompression, as body is empty -- Fix: `req.body` now accepts a Node.js buffer - -## v1.5.3 - -- Fix: handle 204 and 304 responses when body is empty but content-encoding is gzip/deflate -- Fix: allow resolving response and cloned response in any order -- Fix: avoid setting `content-length` when `form-data` body use streams -- Fix: send DELETE request with content-length when body is present -- Fix: allow any url when calling new Request, but still reject non-http(s) url in fetch - -## v1.5.2 - -- Fix: allow node.js core to handle keep-alive connection pool when passing a custom agent - -## v1.5.1 - -- Fix: redirect mode `manual` should work even when there is no redirection or broken redirection - -## v1.5.0 - -- Enhance: rejected promise now use custom `Error` (thx to @pekeler) -- Enhance: `FetchError` contains `err.type` and `err.code`, allows for better error handling (thx to @pekeler) -- Enhance: basic support for redirect mode `manual` and `error`, allows for location header extraction (thx to @jimmywarting for the initial PR) - -## v1.4.1 - -- Fix: wrapping Request instance with FormData body again should preserve the body as-is - -## v1.4.0 - -- Enhance: Request and Response now have `clone` method (thx to @kirill-konshin for the initial PR) -- Enhance: Request and Response now have proper string and buffer body support (thx to @kirill-konshin) -- Enhance: Body constructor has been refactored out (thx to @kirill-konshin) -- Enhance: Headers now has `forEach` method (thx to @tricoder42) -- Enhance: back to 100% code coverage -- Fix: better form-data support (thx to @item4) -- Fix: better character encoding detection under chunked encoding (thx to @dsuket for the initial PR) - -## v1.3.3 - -- Fix: make sure `Content-Length` header is set when body is string for POST/PUT/PATCH requests -- Fix: handle body stream error, for cases such as incorrect `Content-Encoding` header -- Fix: when following certain redirects, use `GET` on subsequent request per Fetch Spec -- Fix: `Request` and `Response` constructors now parse headers input using `Headers` - -## v1.3.2 - -- Enhance: allow auto detect of form-data input (no `FormData` spec on node.js, this is form-data specific feature) - -## v1.3.1 - -- Enhance: allow custom host header to be set (server-side only feature, as it's a forbidden header on client-side) - -## v1.3.0 - -- Enhance: now `fetch.Request` is exposed as well - -## v1.2.1 - -- Enhance: `Headers` now normalized `Number` value to `String`, prevent common mistakes - -## v1.2.0 - -- Enhance: now fetch.Headers and fetch.Response are exposed, making testing easier - -## v1.1.2 - -- Fix: `Headers` should only support `String` and `Array` properties, and ignore others - -## v1.1.1 - -- Enhance: now req.headers accept both plain object and `Headers` instance - -## v1.1.0 - -- Enhance: timeout now also applies to response body (in case of slow response) -- Fix: timeout is now cleared properly when fetch is done/has failed - -## v1.0.6 - -- Fix: less greedy content-type charset matching - -## v1.0.5 - -- Fix: when `follow = 0`, fetch should not follow redirect -- Enhance: update tests for better coverage -- Enhance: code formatting -- Enhance: clean up doc - -## v1.0.4 - -- Enhance: test iojs support -- Enhance: timeout attached to socket event only fire once per redirect - -## v1.0.3 - -- Fix: response size limit should reject large chunk -- Enhance: added character encoding detection for xml, such as rss/atom feed (encoding in DTD) - -## v1.0.2 - -- Fix: added res.ok per spec change - -## v1.0.0 - -- Enhance: better test coverage and doc - - -# 0.x release - -## v0.1 - -- Major: initial public release diff --git a/build/node_modules/node-fetch/LICENSE.md b/build/node_modules/node-fetch/LICENSE.md deleted file mode 100644 index 660ffecb5..000000000 --- a/build/node_modules/node-fetch/LICENSE.md +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 David Frank - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/build/node_modules/node-fetch/README.md b/build/node_modules/node-fetch/README.md deleted file mode 100644 index b8b3926c8..000000000 --- a/build/node_modules/node-fetch/README.md +++ /dev/null @@ -1,533 +0,0 @@ -node-fetch -========== - -[![npm version][npm-image]][npm-url] -[![build status][travis-image]][travis-url] -[![coverage status][codecov-image]][codecov-url] -[![install size][install-size-image]][install-size-url] - -A light-weight module that brings `window.fetch` to Node.js - -(We are looking for [v2 maintainers and collaborators](https://github.com/bitinn/node-fetch/issues/252)) - - - -- [Motivation](#motivation) -- [Features](#features) -- [Difference from client-side fetch](#difference-from-client-side-fetch) -- [Installation](#installation) -- [Loading and configuring the module](#loading-and-configuring-the-module) -- [Common Usage](#common-usage) - - [Plain text or HTML](#plain-text-or-html) - - [JSON](#json) - - [Simple Post](#simple-post) - - [Post with JSON](#post-with-json) - - [Post with form parameters](#post-with-form-parameters) - - [Handling exceptions](#handling-exceptions) - - [Handling client and server errors](#handling-client-and-server-errors) -- [Advanced Usage](#advanced-usage) - - [Streams](#streams) - - [Buffer](#buffer) - - [Accessing Headers and other Meta data](#accessing-headers-and-other-meta-data) - - [Post data using a file stream](#post-data-using-a-file-stream) - - [Post with form-data (detect multipart)](#post-with-form-data-detect-multipart) - - [Request cancellation with AbortSignal](#request-cancellation-with-abortsignal) -- [API](#api) - - [fetch(url[, options])](#fetchurl-options) - - [Options](#options) - - [Class: Request](#class-request) - - [Class: Response](#class-response) - - [Class: Headers](#class-headers) - - [Interface: Body](#interface-body) - - [Class: FetchError](#class-fetcherror) -- [License](#license) -- [Acknowledgement](#acknowledgement) - - - -## Motivation - -Instead of implementing `XMLHttpRequest` in Node.js to run browser-specific [Fetch polyfill](https://github.com/github/fetch), why not go from native `http` to `fetch` API directly? Hence `node-fetch`, minimal code for a `window.fetch` compatible API on Node.js runtime. - -See Matt Andrews' [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) or Leonardo Quixada's [cross-fetch](https://github.com/lquixada/cross-fetch) for isomorphic usage (exports `node-fetch` for server-side, `whatwg-fetch` for client-side). - -## Features - -- Stay consistent with `window.fetch` API. -- Make conscious trade-off when following [WHATWG fetch spec][whatwg-fetch] and [stream spec](https://streams.spec.whatwg.org/) implementation details, document known differences. -- Use native promise, but allow substituting it with [insert your favorite promise library]. -- Use native Node streams for body, on both request and response. -- Decode content encoding (gzip/deflate) properly, and convert string output (such as `res.text()` and `res.json()`) to UTF-8 automatically. -- Useful extensions such as timeout, redirect limit, response size limit, [explicit errors](ERROR-HANDLING.md) for troubleshooting. - -## Difference from client-side fetch - -- See [Known Differences](LIMITS.md) for details. -- If you happen to use a missing feature that `window.fetch` offers, feel free to open an issue. -- Pull requests are welcomed too! - -## Installation - -Current stable release (`2.x`) - -```sh -$ npm install node-fetch --save -``` - -## Loading and configuring the module -We suggest you load the module via `require`, pending the stabalizing of es modules in node: -```js -const fetch = require('node-fetch'); -``` - -If you are using a Promise library other than native, set it through fetch.Promise: -```js -const Bluebird = require('bluebird'); - -fetch.Promise = Bluebird; -``` - -## Common Usage - -NOTE: The documentation below is up-to-date with `2.x` releases, [see `1.x` readme](https://github.com/bitinn/node-fetch/blob/1.x/README.md), [changelog](https://github.com/bitinn/node-fetch/blob/1.x/CHANGELOG.md) and [2.x upgrade guide](UPGRADE-GUIDE.md) for the differences. - -#### Plain text or HTML -```js -fetch('https://github.com/') - .then(res => res.text()) - .then(body => console.log(body)); -``` - -#### JSON - -```js - -fetch('https://api.github.com/users/github') - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Simple Post -```js -fetch('https://httpbin.org/post', { method: 'POST', body: 'a=1' }) - .then(res => res.json()) // expecting a json response - .then(json => console.log(json)); -``` - -#### Post with JSON - -```js -const body = { a: 1 }; - -fetch('https://httpbin.org/post', { - method: 'post', - body: JSON.stringify(body), - headers: { 'Content-Type': 'application/json' }, - }) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Post with form parameters -`URLSearchParams` is available in Node.js as of v7.5.0. See [official documentation](https://nodejs.org/api/url.html#url_class_urlsearchparams) for more usage methods. - -NOTE: The `Content-Type` header is only set automatically to `x-www-form-urlencoded` when an instance of `URLSearchParams` is given as such: - -```js -const { URLSearchParams } = require('url'); - -const params = new URLSearchParams(); -params.append('a', 1); - -fetch('https://httpbin.org/post', { method: 'POST', body: params }) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Handling exceptions -NOTE: 3xx-5xx responses are *NOT* exceptions, and should be handled in `then()`, see the next section. - -Adding a catch to the fetch promise chain will catch *all* exceptions, such as errors originating from node core libraries, like network errors, and operational errors which are instances of FetchError. See the [error handling document](ERROR-HANDLING.md) for more details. - -```js -fetch('https://domain.invalid/') - .catch(err => console.error(err)); -``` - -#### Handling client and server errors -It is common to create a helper function to check that the response contains no client (4xx) or server (5xx) error responses: - -```js -function checkStatus(res) { - if (res.ok) { // res.status >= 200 && res.status < 300 - return res; - } else { - throw MyCustomError(res.statusText); - } -} - -fetch('https://httpbin.org/status/400') - .then(checkStatus) - .then(res => console.log('will not get here...')) -``` - -## Advanced Usage - -#### Streams -The "Node.js way" is to use streams when possible: - -```js -fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png') - .then(res => { - const dest = fs.createWriteStream('./octocat.png'); - res.body.pipe(dest); - }); -``` - -#### Buffer -If you prefer to cache binary data in full, use buffer(). (NOTE: buffer() is a `node-fetch` only API) - -```js -const fileType = require('file-type'); - -fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png') - .then(res => res.buffer()) - .then(buffer => fileType(buffer)) - .then(type => { /* ... */ }); -``` - -#### Accessing Headers and other Meta data -```js -fetch('https://github.com/') - .then(res => { - console.log(res.ok); - console.log(res.status); - console.log(res.statusText); - console.log(res.headers.raw()); - console.log(res.headers.get('content-type')); - }); -``` - -#### Post data using a file stream - -```js -const { createReadStream } = require('fs'); - -const stream = createReadStream('input.txt'); - -fetch('https://httpbin.org/post', { method: 'POST', body: stream }) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Post with form-data (detect multipart) - -```js -const FormData = require('form-data'); - -const form = new FormData(); -form.append('a', 1); - -fetch('https://httpbin.org/post', { method: 'POST', body: form }) - .then(res => res.json()) - .then(json => console.log(json)); - -// OR, using custom headers -// NOTE: getHeaders() is non-standard API - -const form = new FormData(); -form.append('a', 1); - -const options = { - method: 'POST', - body: form, - headers: form.getHeaders() -} - -fetch('https://httpbin.org/post', options) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Request cancellation with AbortSignal - -> NOTE: You may only cancel streamed requests on Node >= v8.0.0 - -You may cancel requests with `AbortController`. A suggested implementation is [`abort-controller`](https://www.npmjs.com/package/abort-controller). - -An example of timing out a request after 150ms could be achieved as follows: - -```js -import AbortContoller from 'abort-controller'; - -const controller = new AbortController(); -const timeout = setTimeout( - () => { controller.abort(); }, - 150, -); - -fetch(url, { signal: controller.signal }) - .then(res => res.json()) - .then( - data => { - useData(data) - }, - err => { - if (err.name === 'AbortError') { - // request was aborted - } - }, - ) - .finally(() => { - clearTimeout(timeout); - }); -``` - -See [test cases](https://github.com/bitinn/node-fetch/blob/master/test/test.js) for more examples. - - -## API - -### fetch(url[, options]) - -- `url` A string representing the URL for fetching -- `options` [Options](#fetch-options) for the HTTP(S) request -- Returns: Promise<[Response](#class-response)> - -Perform an HTTP(S) fetch. - -`url` should be an absolute url, such as `https://example.com/`. A path-relative URL (`/file/under/root`) or protocol-relative URL (`//can-be-http-or-https.com/`) will result in a rejected promise. - - -### Options - -The default values are shown after each option key. - -```js -{ - // These properties are part of the Fetch Standard - method: 'GET', - headers: {}, // request headers. format is the identical to that accepted by the Headers constructor (see below) - body: null, // request body. can be null, a string, a Buffer, a Blob, or a Node.js Readable stream - redirect: 'follow', // set to `manual` to extract redirect headers, `error` to reject redirect - signal: null, // pass an instance of AbortSignal to optionally abort requests - - // The following properties are node-fetch extensions - follow: 20, // maximum redirect count. 0 to not follow redirect - timeout: 0, // req/res timeout in ms, it resets on redirect. 0 to disable (OS limit applies). Signal is recommended instead. - compress: true, // support gzip/deflate content encoding. false to disable - size: 0, // maximum response body size in bytes. 0 to disable - agent: null // http(s).Agent instance, allows custom proxy, certificate, dns lookup etc. -} -``` - -##### Default Headers - -If no values are set, the following request headers will be sent automatically: - -Header | Value -------------------- | -------------------------------------------------------- -`Accept-Encoding` | `gzip,deflate` _(when `options.compress === true`)_ -`Accept` | `*/*` -`Connection` | `close` _(when no `options.agent` is present)_ -`Content-Length` | _(automatically calculated, if possible)_ -`Transfer-Encoding` | `chunked` _(when `req.body` is a stream)_ -`User-Agent` | `node-fetch/1.0 (+https://github.com/bitinn/node-fetch)` - - -### Class: Request - -An HTTP(S) request containing information about URL, method, headers, and the body. This class implements the [Body](#iface-body) interface. - -Due to the nature of Node.js, the following properties are not implemented at this moment: - -- `type` -- `destination` -- `referrer` -- `referrerPolicy` -- `mode` -- `credentials` -- `cache` -- `integrity` -- `keepalive` - -The following node-fetch extension properties are provided: - -- `follow` -- `compress` -- `counter` -- `agent` - -See [options](#fetch-options) for exact meaning of these extensions. - -#### new Request(input[, options]) - -*(spec-compliant)* - -- `input` A string representing a URL, or another `Request` (which will be cloned) -- `options` [Options][#fetch-options] for the HTTP(S) request - -Constructs a new `Request` object. The constructor is identical to that in the [browser](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request). - -In most cases, directly `fetch(url, options)` is simpler than creating a `Request` object. - - -### Class: Response - -An HTTP(S) response. This class implements the [Body](#iface-body) interface. - -The following properties are not implemented in node-fetch at this moment: - -- `Response.error()` -- `Response.redirect()` -- `type` -- `redirected` -- `trailer` - -#### new Response([body[, options]]) - -*(spec-compliant)* - -- `body` A string or [Readable stream][node-readable] -- `options` A [`ResponseInit`][response-init] options dictionary - -Constructs a new `Response` object. The constructor is identical to that in the [browser](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response). - -Because Node.js does not implement service workers (for which this class was designed), one rarely has to construct a `Response` directly. - -#### response.ok - -*(spec-compliant)* - -Convenience property representing if the request ended normally. Will evaluate to true if the response status was greater than or equal to 200 but smaller than 300. - - -### Class: Headers - -This class allows manipulating and iterating over a set of HTTP headers. All methods specified in the [Fetch Standard][whatwg-fetch] are implemented. - -#### new Headers([init]) - -*(spec-compliant)* - -- `init` Optional argument to pre-fill the `Headers` object - -Construct a new `Headers` object. `init` can be either `null`, a `Headers` object, an key-value map object, or any iterable object. - -```js -// Example adapted from https://fetch.spec.whatwg.org/#example-headers-class - -const meta = { - 'Content-Type': 'text/xml', - 'Breaking-Bad': '<3' -}; -const headers = new Headers(meta); - -// The above is equivalent to -const meta = [ - [ 'Content-Type', 'text/xml' ], - [ 'Breaking-Bad', '<3' ] -]; -const headers = new Headers(meta); - -// You can in fact use any iterable objects, like a Map or even another Headers -const meta = new Map(); -meta.set('Content-Type', 'text/xml'); -meta.set('Breaking-Bad', '<3'); -const headers = new Headers(meta); -const copyOfHeaders = new Headers(headers); -``` - - -### Interface: Body - -`Body` is an abstract interface with methods that are applicable to both `Request` and `Response` classes. - -The following methods are not yet implemented in node-fetch at this moment: - -- `formData()` - -#### body.body - -*(deviation from spec)* - -* Node.js [`Readable` stream][node-readable] - -The data encapsulated in the `Body` object. Note that while the [Fetch Standard][whatwg-fetch] requires the property to always be a WHATWG `ReadableStream`, in node-fetch it is a Node.js [`Readable` stream][node-readable]. - -#### body.bodyUsed - -*(spec-compliant)* - -* `Boolean` - -A boolean property for if this body has been consumed. Per spec, a consumed body cannot be used again. - -#### body.arrayBuffer() -#### body.blob() -#### body.json() -#### body.text() - -*(spec-compliant)* - -* Returns: Promise - -Consume the body and return a promise that will resolve to one of these formats. - -#### body.buffer() - -*(node-fetch extension)* - -* Returns: Promise<Buffer> - -Consume the body and return a promise that will resolve to a Buffer. - -#### body.textConverted() - -*(node-fetch extension)* - -* Returns: Promise<String> - -Identical to `body.text()`, except instead of always converting to UTF-8, encoding sniffing will be performed and text converted to UTF-8, if possible. - -(This API requires an optional dependency on npm package [encoding](https://www.npmjs.com/package/encoding), which you need to install manually. `webpack` users may see [a warning message](https://github.com/bitinn/node-fetch/issues/412#issuecomment-379007792) due to this optional dependency.) - - -### Class: FetchError - -*(node-fetch extension)* - -An operational error in the fetching process. See [ERROR-HANDLING.md][] for more info. - - -### Class: AbortError - -*(node-fetch extension)* - -An Error thrown when the request is aborted in response to an `AbortSignal`'s `abort` event. It has a `name` property of `AbortError`. See [ERROR-HANDLING.MD][] for more info. - -## Acknowledgement - -Thanks to [github/fetch](https://github.com/github/fetch) for providing a solid implementation reference. - -`node-fetch` v1 was maintained by [@bitinn](https://github.com/bitinn), v2 is currently maintained by [@TimothyGu](https://github.com/timothygu), v2 readme is written by [@jkantr](https://github.com/jkantr). - -## License - -MIT - -[npm-image]: https://img.shields.io/npm/v/node-fetch.svg?style=flat-square -[npm-url]: https://www.npmjs.com/package/node-fetch -[travis-image]: https://img.shields.io/travis/bitinn/node-fetch.svg?style=flat-square -[travis-url]: https://travis-ci.org/bitinn/node-fetch -[codecov-image]: https://img.shields.io/codecov/c/github/bitinn/node-fetch.svg?style=flat-square -[codecov-url]: https://codecov.io/gh/bitinn/node-fetch -[install-size-image]: https://packagephobia.now.sh/badge?p=node-fetch -[install-size-url]: https://packagephobia.now.sh/result?p=node-fetch -[whatwg-fetch]: https://fetch.spec.whatwg.org/ -[response-init]: https://fetch.spec.whatwg.org/#responseinit -[node-readable]: https://nodejs.org/api/stream.html#stream_readable_streams -[mdn-headers]: https://developer.mozilla.org/en-US/docs/Web/API/Headers -[LIMITS.md]: https://github.com/bitinn/node-fetch/blob/master/LIMITS.md -[ERROR-HANDLING.md]: https://github.com/bitinn/node-fetch/blob/master/ERROR-HANDLING.md -[UPGRADE-GUIDE.md]: https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md diff --git a/build/node_modules/node-fetch/browser.js b/build/node_modules/node-fetch/browser.js deleted file mode 100644 index 0ad5de004..000000000 --- a/build/node_modules/node-fetch/browser.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -// ref: https://github.com/tc39/proposal-global -var getGlobal = function () { - // the only reliable means to get the global object is - // `Function('return this')()` - // However, this causes CSP violations in Chrome apps. - if (typeof self !== 'undefined') { return self; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - throw new Error('unable to locate global object'); -} - -var global = getGlobal(); - -module.exports = exports = global.fetch; - -// Needed for TypeScript and Webpack. -exports.default = global.fetch.bind(global); - -exports.Headers = global.Headers; -exports.Request = global.Request; -exports.Response = global.Response; \ No newline at end of file diff --git a/build/node_modules/node-fetch/lib/index.es.js b/build/node_modules/node-fetch/lib/index.es.js deleted file mode 100644 index b46c850f4..000000000 --- a/build/node_modules/node-fetch/lib/index.es.js +++ /dev/null @@ -1,1612 +0,0 @@ -process.emitWarning("The .es.js file is deprecated. Use .mjs instead."); - -import Stream from 'stream'; -import http from 'http'; -import Url from 'url'; -import https from 'https'; -import zlib from 'zlib'; - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js -// (MIT licensed) - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (typeof body === 'string') ; else if (isURLSearchParams(body)) ; else if (body instanceof Blob) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') ; else if (ArrayBuffer.isView(body)) ; else if (body instanceof Stream) ; else { - // none of the above - // coerce to string - body = String(body); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } - -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - // body is null - if (this.body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is string - if (typeof this.body === 'string') { - return Body.Promise.resolve(Buffer.from(this.body)); - } - - // body is blob - if (this.body instanceof Blob) { - return Body.Promise.resolve(this.body[BUFFER]); - } - - // body is buffer - if (Buffer.isBuffer(this.body)) { - return Body.Promise.resolve(this.body); - } - - // body is ArrayBuffer - if (Object.prototype.toString.call(this.body) === '[object ArrayBuffer]') { - return Body.Promise.resolve(Buffer.from(this.body)); - } - - // body is ArrayBufferView - if (ArrayBuffer.isView(this.body)) { - return Body.Promise.resolve(Buffer.from(this.body.buffer, this.body.byteOffset, this.body.byteLength)); - } - - // istanbul ignore if: should never happen - if (!(this.body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - _this4.body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - _this4.body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - _this4.body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers: new Headers(opts.headers) - }; - } - - get url() { - return this[INTERNALS$1].url; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parse_url(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parse_url(`${input}`); - } - input = {}; - } else { - parsedURL = parse_url(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (init.body != null) { - const contentType = extractContentType(this); - if (contentType !== null && !headers.has('Content-Type')) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - if (!headers.has('Connection') && !request.agent) { - headers.set('Connection', 'close'); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent: request.agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; -const resolve_url = Url.resolve; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - request.body.destroy(error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - finalize(); - }); - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - const locationURL = location === null ? null : resolve_url(request.url, location); - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal - }; - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -export default fetch; -export { Headers, Request, Response, FetchError }; diff --git a/build/node_modules/node-fetch/lib/index.js b/build/node_modules/node-fetch/lib/index.js deleted file mode 100644 index 888708952..000000000 --- a/build/node_modules/node-fetch/lib/index.js +++ /dev/null @@ -1,1621 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var Stream = _interopDefault(require('stream')); -var http = _interopDefault(require('http')); -var Url = _interopDefault(require('url')); -var https = _interopDefault(require('https')); -var zlib = _interopDefault(require('zlib')); - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js -// (MIT licensed) - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (typeof body === 'string') ; else if (isURLSearchParams(body)) ; else if (body instanceof Blob) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') ; else if (ArrayBuffer.isView(body)) ; else if (body instanceof Stream) ; else { - // none of the above - // coerce to string - body = String(body); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } - -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - // body is null - if (this.body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is string - if (typeof this.body === 'string') { - return Body.Promise.resolve(Buffer.from(this.body)); - } - - // body is blob - if (this.body instanceof Blob) { - return Body.Promise.resolve(this.body[BUFFER]); - } - - // body is buffer - if (Buffer.isBuffer(this.body)) { - return Body.Promise.resolve(this.body); - } - - // body is ArrayBuffer - if (Object.prototype.toString.call(this.body) === '[object ArrayBuffer]') { - return Body.Promise.resolve(Buffer.from(this.body)); - } - - // body is ArrayBufferView - if (ArrayBuffer.isView(this.body)) { - return Body.Promise.resolve(Buffer.from(this.body.buffer, this.body.byteOffset, this.body.byteLength)); - } - - // istanbul ignore if: should never happen - if (!(this.body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - _this4.body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - _this4.body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - _this4.body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers: new Headers(opts.headers) - }; - } - - get url() { - return this[INTERNALS$1].url; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parse_url(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parse_url(`${input}`); - } - input = {}; - } else { - parsedURL = parse_url(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (init.body != null) { - const contentType = extractContentType(this); - if (contentType !== null && !headers.has('Content-Type')) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - if (!headers.has('Connection') && !request.agent) { - headers.set('Connection', 'close'); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent: request.agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; -const resolve_url = Url.resolve; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - request.body.destroy(error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - finalize(); - }); - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - const locationURL = location === null ? null : resolve_url(request.url, location); - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal - }; - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -module.exports = exports = fetch; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = exports; -exports.Headers = Headers; -exports.Request = Request; -exports.Response = Response; -exports.FetchError = FetchError; diff --git a/build/node_modules/node-fetch/lib/index.mjs b/build/node_modules/node-fetch/lib/index.mjs deleted file mode 100644 index 1f7b37677..000000000 --- a/build/node_modules/node-fetch/lib/index.mjs +++ /dev/null @@ -1,1610 +0,0 @@ -import Stream from 'stream'; -import http from 'http'; -import Url from 'url'; -import https from 'https'; -import zlib from 'zlib'; - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js -// (MIT licensed) - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (typeof body === 'string') ; else if (isURLSearchParams(body)) ; else if (body instanceof Blob) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') ; else if (ArrayBuffer.isView(body)) ; else if (body instanceof Stream) ; else { - // none of the above - // coerce to string - body = String(body); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } - -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - // body is null - if (this.body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is string - if (typeof this.body === 'string') { - return Body.Promise.resolve(Buffer.from(this.body)); - } - - // body is blob - if (this.body instanceof Blob) { - return Body.Promise.resolve(this.body[BUFFER]); - } - - // body is buffer - if (Buffer.isBuffer(this.body)) { - return Body.Promise.resolve(this.body); - } - - // body is ArrayBuffer - if (Object.prototype.toString.call(this.body) === '[object ArrayBuffer]') { - return Body.Promise.resolve(Buffer.from(this.body)); - } - - // body is ArrayBufferView - if (ArrayBuffer.isView(this.body)) { - return Body.Promise.resolve(Buffer.from(this.body.buffer, this.body.byteOffset, this.body.byteLength)); - } - - // istanbul ignore if: should never happen - if (!(this.body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - _this4.body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - _this4.body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - _this4.body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers: new Headers(opts.headers) - }; - } - - get url() { - return this[INTERNALS$1].url; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parse_url(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parse_url(`${input}`); - } - input = {}; - } else { - parsedURL = parse_url(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (init.body != null) { - const contentType = extractContentType(this); - if (contentType !== null && !headers.has('Content-Type')) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - if (!headers.has('Connection') && !request.agent) { - headers.set('Connection', 'close'); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent: request.agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; -const resolve_url = Url.resolve; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - request.body.destroy(error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - finalize(); - }); - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - const locationURL = location === null ? null : resolve_url(request.url, location); - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal - }; - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -export default fetch; -export { Headers, Request, Response, FetchError }; diff --git a/build/node_modules/node-fetch/package.json b/build/node_modules/node-fetch/package.json deleted file mode 100644 index 9eeb829eb..000000000 --- a/build/node_modules/node-fetch/package.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "_from": "node-fetch@^2.3.0", - "_id": "node-fetch@2.3.0", - "_inBundle": false, - "_integrity": "sha512-MOd8pV3fxENbryESLgVIeaGKrdl+uaYhCSSVkjeOb/31/njTpcis5aWfdqgNlHIrKOLRbMnfPINPOML2CIFeXA==", - "_location": "/node-fetch", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "node-fetch@^2.3.0", - "name": "node-fetch", - "escapedName": "node-fetch", - "rawSpec": "^2.3.0", - "saveSpec": null, - "fetchSpec": "^2.3.0" - }, - "_requiredBy": [ - "/@octokit/request" - ], - "_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.3.0.tgz", - "_shasum": "1a1d940bbfb916a1d3e0219f037e89e71f8c5fa5", - "_spec": "node-fetch@^2.3.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\request", - "author": { - "name": "David Frank" - }, - "browser": "./browser.js", - "bugs": { - "url": "https://github.com/bitinn/node-fetch/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "A light-weight module that brings window.fetch to node.js", - "devDependencies": { - "abort-controller": "^1.0.2", - "abortcontroller-polyfill": "^1.1.9", - "babel-core": "^6.26.0", - "babel-plugin-istanbul": "^4.1.5", - "babel-preset-env": "^1.6.1", - "babel-register": "^6.16.3", - "chai": "^3.5.0", - "chai-as-promised": "^7.1.1", - "chai-iterator": "^1.1.1", - "chai-string": "~1.3.0", - "codecov": "^3.0.0", - "cross-env": "^5.1.3", - "form-data": "^2.3.1", - "is-builtin-module": "^1.0.0", - "mocha": "^5.0.0", - "nyc": "11.9.0", - "parted": "^0.1.1", - "promise": "^8.0.1", - "resumer": "0.0.0", - "rollup": "^0.63.4", - "rollup-plugin-babel": "^3.0.3", - "string-to-arraybuffer": "^1.0.0", - "url-search-params": "^1.0.2", - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "files": [ - "lib/index.js", - "lib/index.mjs", - "lib/index.es.js", - "browser.js" - ], - "homepage": "https://github.com/bitinn/node-fetch", - "keywords": [ - "fetch", - "http", - "promise" - ], - "license": "MIT", - "main": "lib/index", - "module": "lib/index.mjs", - "name": "node-fetch", - "repository": { - "type": "git", - "url": "git+https://github.com/bitinn/node-fetch.git" - }, - "scripts": { - "build": "cross-env BABEL_ENV=rollup rollup -c", - "coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json", - "prepare": "npm run build", - "report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js", - "test": "cross-env BABEL_ENV=test mocha --require babel-register test/test.js" - }, - "version": "2.3.0" -} diff --git a/build/node_modules/npm-run-path/index.js b/build/node_modules/npm-run-path/index.js deleted file mode 100644 index 56f31e471..000000000 --- a/build/node_modules/npm-run-path/index.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; -const path = require('path'); -const pathKey = require('path-key'); - -module.exports = opts => { - opts = Object.assign({ - cwd: process.cwd(), - path: process.env[pathKey()] - }, opts); - - let prev; - let pth = path.resolve(opts.cwd); - const ret = []; - - while (prev !== pth) { - ret.push(path.join(pth, 'node_modules/.bin')); - prev = pth; - pth = path.resolve(pth, '..'); - } - - // ensure the running `node` binary is used - ret.push(path.dirname(process.execPath)); - - return ret.concat(opts.path).join(path.delimiter); -}; - -module.exports.env = opts => { - opts = Object.assign({ - env: process.env - }, opts); - - const env = Object.assign({}, opts.env); - const path = pathKey({env}); - - opts.path = env[path]; - env[path] = module.exports(opts); - - return env; -}; diff --git a/build/node_modules/npm-run-path/license b/build/node_modules/npm-run-path/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/build/node_modules/npm-run-path/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/npm-run-path/package.json b/build/node_modules/npm-run-path/package.json deleted file mode 100644 index a34195a32..000000000 --- a/build/node_modules/npm-run-path/package.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "_from": "npm-run-path@^2.0.0", - "_id": "npm-run-path@2.0.2", - "_inBundle": false, - "_integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "_location": "/npm-run-path", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "npm-run-path@^2.0.0", - "name": "npm-run-path", - "escapedName": "npm-run-path", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/execa" - ], - "_resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "_shasum": "35a9232dfa35d7067b4cb2ddf2357b1871536c5f", - "_spec": "npm-run-path@^2.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\execa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/npm-run-path/issues" - }, - "bundleDependencies": false, - "dependencies": { - "path-key": "^2.0.0" - }, - "deprecated": false, - "description": "Get your PATH prepended with locally installed binaries", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/npm-run-path#readme", - "keywords": [ - "npm", - "run", - "path", - "package", - "bin", - "binary", - "binaries", - "script", - "cli", - "command-line", - "execute", - "executable" - ], - "license": "MIT", - "name": "npm-run-path", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/npm-run-path.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.0.2", - "xo": { - "esnext": true - } -} diff --git a/build/node_modules/npm-run-path/readme.md b/build/node_modules/npm-run-path/readme.md deleted file mode 100644 index 4ff4722a6..000000000 --- a/build/node_modules/npm-run-path/readme.md +++ /dev/null @@ -1,81 +0,0 @@ -# npm-run-path [![Build Status](https://travis-ci.org/sindresorhus/npm-run-path.svg?branch=master)](https://travis-ci.org/sindresorhus/npm-run-path) - -> Get your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) prepended with locally installed binaries - -In [npm run scripts](https://docs.npmjs.com/cli/run-script) you can execute locally installed binaries by name. This enables the same outside npm. - - -## Install - -``` -$ npm install --save npm-run-path -``` - - -## Usage - -```js -const childProcess = require('child_process'); -const npmRunPath = require('npm-run-path'); - -console.log(process.env.PATH); -//=> '/usr/local/bin' - -console.log(npmRunPath()); -//=> '/Users/sindresorhus/dev/foo/node_modules/.bin:/Users/sindresorhus/dev/node_modules/.bin:/Users/sindresorhus/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/usr/local/bin' - -// `foo` is a locally installed binary -childProcess.execFileSync('foo', { - env: npmRunPath.env() -}); -``` - - -## API - -### npmRunPath([options]) - -#### options - -##### cwd - -Type: `string`
-Default: `process.cwd()` - -Working directory. - -##### path - -Type: `string`
-Default: [`PATH`](https://github.com/sindresorhus/path-key) - -PATH to be appended.
-Set it to an empty string to exclude the default PATH. - -### npmRunPath.env([options]) - -#### options - -##### cwd - -Type: `string`
-Default: `process.cwd()` - -Working directory. - -##### env - -Type: `Object` - -Accepts an object of environment variables, like `process.env`, and modifies the PATH using the correct [PATH key](https://github.com/sindresorhus/path-key). Use this if you're modifying the PATH for use in the `child_process` options. - - -## Related - -- [npm-run-path-cli](https://github.com/sindresorhus/npm-run-path-cli) - CLI for this module -- [execa](https://github.com/sindresorhus/execa) - Execute a locally installed binary - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build/node_modules/octokit-pagination-methods/.travis.yml b/build/node_modules/octokit-pagination-methods/.travis.yml deleted file mode 100644 index 7241e463b..000000000 --- a/build/node_modules/octokit-pagination-methods/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -language: node_js -cache: - directories: - - ~/.npm - -# Trigger a push build on master and greenkeeper branches + PRs build on every branches -# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) -branches: - only: - - master - - /^greenkeeper.*$/ - -branches: - except: - - /^v\d+\.\d+\.\d+$/ - -jobs: - include: - - stage: test - node_js: 6 - - node_js: 8 - install: npm ci - - node_js: 10 - install: npm ci - - node_js: lts/* - script: npm run coverage:upload - - stage: release - env: semantic-release - node_js: lts/* - install: npm ci - script: npm run semantic-release - -stages: - - test - - name: release - if: branch = master AND type IN (push) diff --git a/build/node_modules/octokit-pagination-methods/CODE_OF_CONDUCT.md b/build/node_modules/octokit-pagination-methods/CODE_OF_CONDUCT.md deleted file mode 100644 index 8124607bc..000000000 --- a/build/node_modules/octokit-pagination-methods/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at opensource+octokit@github.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/build/node_modules/octokit-pagination-methods/LICENSE b/build/node_modules/octokit-pagination-methods/LICENSE deleted file mode 100644 index 4c0d268a2..000000000 --- a/build/node_modules/octokit-pagination-methods/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License - -Copyright (c) 2012 Cloud9 IDE, Inc. (Mike de Boer) -Copyright (c) 2017-2018 Octokit contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/octokit-pagination-methods/README.md b/build/node_modules/octokit-pagination-methods/README.md deleted file mode 100644 index 0dd63416e..000000000 --- a/build/node_modules/octokit-pagination-methods/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# octokit-pagination-methods - -> Legacy Octokit pagination methods from v15 - -[![Build Status](https://travis-ci.com/gr2m/octokit-pagination-methods.svg?branch=master)](https://travis-ci.com/gr2m/octokit-pagination-methods) -[![Coverage Status](https://coveralls.io/repos/gr2m/octokit-pagination-methods/badge.svg?branch=master)](https://coveralls.io/github/gr2m/octokit-pagination-methods?branch=master) -[![Greenkeeper badge](https://badges.greenkeeper.io/gr2m/octokit-pagination-methods.svg)](https://greenkeeper.io/) - -Several pagination methods such as `octokit.hasNextPage()` and `octokit.getNextPage()` have been removed from `@octokit/request` in v16.0.0 in favor of `octokit.paginate()`. This plugin brings back the methods to ease the upgrade to v16. - -## Usage - -```js -const Octokit = require('@octokit/rest') - .plugin('octokit-pagination-methods') -const octokit = new Octokit() - -octokit.issues.getForRepo() - - .then(async response => { - // returns true/false - octokit.hasNextPage(response) - octokit.hasPreviousPage(response) - octokit.hasFirstPage(response) - octokit.hasLastPage(response) - - // fetch other pages - const nextPage = await octokit.getNextPage(response) - const previousPage = await octokit.getPreviousPage(response) - const firstPage = await octokit.getFirstPage(response) - const lastPage = await octokit.getLastPage(response) - }) -``` - -## Credit - -These methods have originally been created for `node-github` by [@mikedeboer](https://github.com/mikedeboer) -while working at Cloud9 IDE, Inc. It was adopted and renamed by GitHub in 2017. - -## LICENSE - -[MIT](LICENSE) diff --git a/build/node_modules/octokit-pagination-methods/index.js b/build/node_modules/octokit-pagination-methods/index.js deleted file mode 100644 index f7474a72e..000000000 --- a/build/node_modules/octokit-pagination-methods/index.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = paginationMethodsPlugin - -function paginationMethodsPlugin (octokit) { - octokit.getFirstPage = require('./lib/get-first-page').bind(null, octokit) - octokit.getLastPage = require('./lib/get-last-page').bind(null, octokit) - octokit.getNextPage = require('./lib/get-next-page').bind(null, octokit) - octokit.getPreviousPage = require('./lib/get-previous-page').bind(null, octokit) - octokit.hasFirstPage = require('./lib/has-first-page') - octokit.hasLastPage = require('./lib/has-last-page') - octokit.hasNextPage = require('./lib/has-next-page') - octokit.hasPreviousPage = require('./lib/has-previous-page') -} diff --git a/build/node_modules/octokit-pagination-methods/lib/deprecate.js b/build/node_modules/octokit-pagination-methods/lib/deprecate.js deleted file mode 100644 index c56f7ab67..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/deprecate.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = deprecate - -const loggedMessages = {} - -function deprecate (message) { - if (loggedMessages[message]) { - return - } - - console.warn(`DEPRECATED (@octokit/rest): ${message}`) - loggedMessages[message] = 1 -} diff --git a/build/node_modules/octokit-pagination-methods/lib/get-first-page.js b/build/node_modules/octokit-pagination-methods/lib/get-first-page.js deleted file mode 100644 index 5f2dff9e9..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/get-first-page.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = getFirstPage - -const getPage = require('./get-page') - -function getFirstPage (octokit, link, headers) { - return getPage(octokit, link, 'first', headers) -} diff --git a/build/node_modules/octokit-pagination-methods/lib/get-last-page.js b/build/node_modules/octokit-pagination-methods/lib/get-last-page.js deleted file mode 100644 index 9f8624625..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/get-last-page.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = getLastPage - -const getPage = require('./get-page') - -function getLastPage (octokit, link, headers) { - return getPage(octokit, link, 'last', headers) -} diff --git a/build/node_modules/octokit-pagination-methods/lib/get-next-page.js b/build/node_modules/octokit-pagination-methods/lib/get-next-page.js deleted file mode 100644 index fbd5e94e3..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/get-next-page.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = getNextPage - -const getPage = require('./get-page') - -function getNextPage (octokit, link, headers) { - return getPage(octokit, link, 'next', headers) -} diff --git a/build/node_modules/octokit-pagination-methods/lib/get-page-links.js b/build/node_modules/octokit-pagination-methods/lib/get-page-links.js deleted file mode 100644 index 585eadbeb..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/get-page-links.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = getPageLinks - -function getPageLinks (link) { - link = link.link || link.headers.link || '' - - const links = {} - - // link format: - // '; rel="next", ; rel="last"' - link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => { - links[type] = uri - }) - - return links -} diff --git a/build/node_modules/octokit-pagination-methods/lib/get-page.js b/build/node_modules/octokit-pagination-methods/lib/get-page.js deleted file mode 100644 index d60fe734a..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/get-page.js +++ /dev/null @@ -1,38 +0,0 @@ -module.exports = getPage - -const deprecate = require('./deprecate') -const getPageLinks = require('./get-page-links') -const HttpError = require('./http-error') - -function getPage (octokit, link, which, headers) { - deprecate(`octokit.get${which.charAt(0).toUpperCase() + which.slice(1)}Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - const url = getPageLinks(link)[which] - - if (!url) { - const urlError = new HttpError(`No ${which} page found`, 404) - return Promise.reject(urlError) - } - - const requestOptions = { - url, - headers: applyAcceptHeader(link, headers) - } - - const promise = octokit.request(requestOptions) - - return promise -} - -function applyAcceptHeader (res, headers) { - const previous = res.headers && res.headers['x-github-media-type'] - - if (!previous || (headers && headers.accept)) { - return headers - } - headers = headers || {} - headers.accept = 'application/vnd.' + previous - .replace('; param=', '.') - .replace('; format=', '+') - - return headers -} diff --git a/build/node_modules/octokit-pagination-methods/lib/get-previous-page.js b/build/node_modules/octokit-pagination-methods/lib/get-previous-page.js deleted file mode 100644 index 0477eeb8a..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/get-previous-page.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = getPreviousPage - -const getPage = require('./get-page') - -function getPreviousPage (octokit, link, headers) { - return getPage(octokit, link, 'prev', headers) -} diff --git a/build/node_modules/octokit-pagination-methods/lib/has-first-page.js b/build/node_modules/octokit-pagination-methods/lib/has-first-page.js deleted file mode 100644 index 3814b1f68..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/has-first-page.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = hasFirstPage - -const deprecate = require('./deprecate') -const getPageLinks = require('./get-page-links') - -function hasFirstPage (link) { - deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - return getPageLinks(link).first -} diff --git a/build/node_modules/octokit-pagination-methods/lib/has-last-page.js b/build/node_modules/octokit-pagination-methods/lib/has-last-page.js deleted file mode 100644 index 10c12e357..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/has-last-page.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = hasLastPage - -const deprecate = require('./deprecate') -const getPageLinks = require('./get-page-links') - -function hasLastPage (link) { - deprecate(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - return getPageLinks(link).last -} diff --git a/build/node_modules/octokit-pagination-methods/lib/has-next-page.js b/build/node_modules/octokit-pagination-methods/lib/has-next-page.js deleted file mode 100644 index 1015ccd72..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/has-next-page.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = hasNextPage - -const deprecate = require('./deprecate') -const getPageLinks = require('./get-page-links') - -function hasNextPage (link) { - deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - return getPageLinks(link).next -} diff --git a/build/node_modules/octokit-pagination-methods/lib/has-previous-page.js b/build/node_modules/octokit-pagination-methods/lib/has-previous-page.js deleted file mode 100644 index 49e09260b..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/has-previous-page.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = hasPreviousPage - -const deprecate = require('./deprecate') -const getPageLinks = require('./get-page-links') - -function hasPreviousPage (link) { - deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) - return getPageLinks(link).prev -} diff --git a/build/node_modules/octokit-pagination-methods/lib/http-error.js b/build/node_modules/octokit-pagination-methods/lib/http-error.js deleted file mode 100644 index 8eb9f2f6c..000000000 --- a/build/node_modules/octokit-pagination-methods/lib/http-error.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = class HttpError extends Error { - constructor (message, code, headers) { - super(message) - - // Maintains proper stack trace (only available on V8) - /* istanbul ignore next */ - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor) - } - - this.name = 'HttpError' - this.code = code - this.headers = headers - } -} diff --git a/build/node_modules/octokit-pagination-methods/package.json b/build/node_modules/octokit-pagination-methods/package.json deleted file mode 100644 index c6ac5c8bb..000000000 --- a/build/node_modules/octokit-pagination-methods/package.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "_from": "octokit-pagination-methods@^1.1.0", - "_id": "octokit-pagination-methods@1.1.0", - "_inBundle": false, - "_integrity": "sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ==", - "_location": "/octokit-pagination-methods", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "octokit-pagination-methods@^1.1.0", - "name": "octokit-pagination-methods", - "escapedName": "octokit-pagination-methods", - "rawSpec": "^1.1.0", - "saveSpec": null, - "fetchSpec": "^1.1.0" - }, - "_requiredBy": [ - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz", - "_shasum": "cf472edc9d551055f9ef73f6e42b4dbb4c80bea4", - "_spec": "octokit-pagination-methods@^1.1.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - }, - "bugs": { - "url": "https://github.com/gr2m/octokit-pagination-methods/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "Legacy Octokit pagination methods from v15", - "devDependencies": { - "@octokit/rest": "github:octokit/rest.js#next", - "coveralls": "^3.0.2", - "nock": "^10.0.2", - "semantic-release": "^15.10.8", - "simple-mock": "^0.8.0", - "standard": "^12.0.1", - "standard-markdown": "^5.0.1", - "tap": "^12.0.1" - }, - "directories": { - "test": "test" - }, - "homepage": "https://github.com/gr2m/octokit-pagination-methods#readme", - "keywords": [ - "octokit", - "github", - "api", - "rest", - "plugin" - ], - "license": "MIT", - "main": "index.js", - "name": "octokit-pagination-methods", - "publishConfig": { - "access": "public", - "tag": "latest" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/gr2m/octokit-pagination-methods.git" - }, - "scripts": { - "coverage": "tap --coverage-report=html", - "coverage:upload": "npm run test && tap --coverage-report=text-lcov | coveralls", - "pretest": "standard && standard-markdown *.md", - "semantic-release": "semantic-release", - "test": "tap --coverage test.js" - }, - "version": "1.1.0" -} diff --git a/build/node_modules/octokit-pagination-methods/test.js b/build/node_modules/octokit-pagination-methods/test.js deleted file mode 100644 index d16f4a2a3..000000000 --- a/build/node_modules/octokit-pagination-methods/test.js +++ /dev/null @@ -1,93 +0,0 @@ -const test = require('tap').test -const nock = require('nock') - -const Octokit = require('@octokit/rest') - .plugin(require('.')) - -test('@octokit/pagination-methods', (t) => { - nock('https://api.github.com', { - reqheaders: { - authorization: 'token secrettoken123' - } - }) - .get('/organizations') - .query({ page: 3, per_page: 1 }) - .reply(200, [{}], { - 'Link': '; rel="next", ; rel="first", ; rel="prev"', - 'X-GitHub-Media-Type': 'octokit.v3; format=json' - }) - .get('/organizations') - .query({ page: 1, per_page: 1 }) - .reply(200, [{}]) - .get('/organizations') - .query({ page: 2, per_page: 1 }) - .reply(200, [{}]) - .get('/organizations') - .query({ page: 4, per_page: 1 }) - .reply(404, {}) - - const octokit = new Octokit() - - octokit.authenticate({ - type: 'token', - token: 'secrettoken123' - }) - - return octokit.orgs.getAll({ - page: 3, - per_page: 1 - }) - - .then((response) => { - t.ok(octokit.hasNextPage(response)) - t.ok(octokit.hasPreviousPage(response)) - t.ok(octokit.hasFirstPage(response)) - t.notOk(octokit.hasLastPage(response)) - - const noop = () => {} - - return Promise.all([ - octokit.getFirstPage(response) - .then(response => { - t.doesNotThrow(() => { - octokit.hasPreviousPage(response) - }) - t.notOk(octokit.hasPreviousPage(response)) - }), - octokit.getPreviousPage(response, { foo: 'bar', accept: 'application/vnd.octokit.v3+json' }), - octokit.getNextPage(response).catch(noop), - octokit.getLastPage(response, { foo: 'bar' }) - .catch(error => { - t.equals(error.code, 404) - }), - // test error with promise - octokit.getLastPage(response).catch(noop) - ]) - }) - - .catch(t.error) -}) - -test('carries accept header correctly', () => { - nock('https://api.github.com', { - reqheaders: { - accept: 'application/vnd.github.hellcat-preview+json' - } - }) - .get('/user/teams') - .query({ per_page: 1 }) - .reply(200, [{}], { - 'Link': '; rel="next"', - 'X-GitHub-Media-Type': 'github; param=hellcat-preview; format=json' - }) - .get('/user/teams') - .query({ page: 2, per_page: 1 }) - .reply(200, []) - - const octokit = new Octokit() - - return octokit.users.getTeams({ per_page: 1 }) - .then(response => { - return octokit.getNextPage(response) - }) -}) diff --git a/build/node_modules/os-name/index.js b/build/node_modules/os-name/index.js deleted file mode 100644 index cdcfc5d9d..000000000 --- a/build/node_modules/os-name/index.js +++ /dev/null @@ -1,44 +0,0 @@ -'use strict'; -const os = require('os'); -const macosRelease = require('macos-release'); -const winRelease = require('windows-release'); - -module.exports = (platform, release) => { - if (!platform && release) { - throw new Error('You can\'t specify a `release` without specifying `platform`'); - } - - platform = platform || os.platform(); - - let id; - - if (platform === 'darwin') { - if (!release && os.platform() === 'darwin') { - release = os.release(); - } - - const prefix = release ? (Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X') : 'macOS'; - id = release ? macosRelease(release).name : ''; - return prefix + (id ? ' ' + id : ''); - } - - if (platform === 'linux') { - if (!release && os.platform() === 'linux') { - release = os.release(); - } - - id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : ''; - return 'Linux' + (id ? ' ' + id : ''); - } - - if (platform === 'win32') { - if (!release && os.platform() === 'win32') { - release = os.release(); - } - - id = release ? winRelease(release) : ''; - return 'Windows' + (id ? ' ' + id : ''); - } - - return platform; -}; diff --git a/build/node_modules/os-name/license b/build/node_modules/os-name/license deleted file mode 100644 index e7af2f771..000000000 --- a/build/node_modules/os-name/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build/node_modules/os-name/package.json b/build/node_modules/os-name/package.json deleted file mode 100644 index 841f5cc69..000000000 --- a/build/node_modules/os-name/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "_from": "os-name@^3.0.0", - "_id": "os-name@3.0.0", - "_inBundle": false, - "_integrity": "sha512-7c74tib2FsdFbQ3W+qj8Tyd1R3Z6tuVRNNxXjJcZ4NgjIEQU9N/prVMqcW29XZPXGACqaXN3jq58/6hoaoXH6g==", - "_location": "/os-name", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "os-name@^3.0.0", - "name": "os-name", - "escapedName": "os-name", - "rawSpec": "^3.0.0", - "saveSpec": null, - "fetchSpec": "^3.0.0" - }, - "_requiredBy": [ - "/universal-user-agent" - ], - "_resolved": "https://registry.npmjs.org/os-name/-/os-name-3.0.0.tgz", - "_shasum": "e1434dbfddb8e74b44c98b56797d951b7648a5d9", - "_spec": "os-name@^3.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\universal-user-agent", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/os-name/issues" - }, - "bundleDependencies": false, - "dependencies": { - "macos-release": "^2.0.0", - "windows-release": "^3.1.0" - }, - "deprecated": false, - "description": "Get the name of the current operating system. Example: macOS Sierra", - "devDependencies": { - "ava": "^0.25.0", - "xo": "^0.23.0" - }, - "engines": { - "node": ">=6" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/os-name#readme", - "keywords": [ - "os", - "operating", - "system", - "platform", - "name", - "title", - "release", - "version", - "macos", - "windows", - "linux" - ], - "license": "MIT", - "name": "os-name", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/os-name.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "3.0.0" -} diff --git a/build/node_modules/os-name/readme.md b/build/node_modules/os-name/readme.md deleted file mode 100644 index 35812b253..000000000 --- a/build/node_modules/os-name/readme.md +++ /dev/null @@ -1,64 +0,0 @@ -# os-name [![Build Status](https://travis-ci.org/sindresorhus/os-name.svg?branch=master)](https://travis-ci.org/sindresorhus/os-name) - -> Get the name of the current operating system
-> Example: `macOS Sierra` - -Useful for analytics and debugging. - - -## Install - -``` -$ npm install os-name -``` - - -## Usage - -```js -const os = require('os'); -const osName = require('os-name'); - -// On a macOS Sierra system - -osName(); -//=> 'macOS Sierra' - -osName(os.platform(), os.release()); -//=> 'macOS Sierra' - -osName('darwin', '14.0.0'); -//=> 'OS X Yosemite' - -osName('linux', '3.13.0-24-generic'); -//=> 'Linux 3.13' - -osName('win32', '6.3.9600'); -//=> 'Windows 8.1' -``` - - -## API - -### osName([platform, release]) - -By default, the name of the current operating system is returned. - -You can optionally supply a custom [`os.platform()`](https://nodejs.org/api/os.html#os_os_platform) and [`os.release()`](https://nodejs.org/api/os.html#os_os_release). - -Check out [`getos`](https://github.com/wblankenship/getos) if you need the Linux distribution name. - - -## Contributing - -Production systems depend on this package for logging / tracking. Please be careful when introducing new output, and adhere to existing output format (whitespace, capitalization, etc.). - - -## Related - -- [os-name-cli](https://github.com/sindresorhus/os-name-cli) - CLI for this module - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build/node_modules/p-finally/index.js b/build/node_modules/p-finally/index.js deleted file mode 100644 index 52b7b49c5..000000000 --- a/build/node_modules/p-finally/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; -module.exports = (promise, onFinally) => { - onFinally = onFinally || (() => {}); - - return promise.then( - val => new Promise(resolve => { - resolve(onFinally()); - }).then(() => val), - err => new Promise(resolve => { - resolve(onFinally()); - }).then(() => { - throw err; - }) - ); -}; diff --git a/build/node_modules/p-finally/license b/build/node_modules/p-finally/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/build/node_modules/p-finally/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/p-finally/package.json b/build/node_modules/p-finally/package.json deleted file mode 100644 index 66182a44c..000000000 --- a/build/node_modules/p-finally/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "_from": "p-finally@^1.0.0", - "_id": "p-finally@1.0.0", - "_inBundle": false, - "_integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "_location": "/p-finally", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "p-finally@^1.0.0", - "name": "p-finally", - "escapedName": "p-finally", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/execa" - ], - "_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "_shasum": "3fbcfb15b899a44123b34b6dcc18b724336a2cae", - "_spec": "p-finally@^1.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\execa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/p-finally/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/p-finally#readme", - "keywords": [ - "promise", - "finally", - "handler", - "function", - "async", - "await", - "promises", - "settled", - "ponyfill", - "polyfill", - "shim", - "bluebird" - ], - "license": "MIT", - "name": "p-finally", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/p-finally.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.0", - "xo": { - "esnext": true - } -} diff --git a/build/node_modules/p-finally/readme.md b/build/node_modules/p-finally/readme.md deleted file mode 100644 index 09ef36416..000000000 --- a/build/node_modules/p-finally/readme.md +++ /dev/null @@ -1,47 +0,0 @@ -# p-finally [![Build Status](https://travis-ci.org/sindresorhus/p-finally.svg?branch=master)](https://travis-ci.org/sindresorhus/p-finally) - -> [`Promise#finally()`](https://github.com/tc39/proposal-promise-finally) [ponyfill](https://ponyfill.com) - Invoked when the promise is settled regardless of outcome - -Useful for cleanup. - - -## Install - -``` -$ npm install --save p-finally -``` - - -## Usage - -```js -const pFinally = require('p-finally'); - -const dir = createTempDir(); - -pFinally(write(dir), () => cleanup(dir)); -``` - - -## API - -### pFinally(promise, [onFinally]) - -Returns a `Promise`. - -#### onFinally - -Type: `Function` - -Note: Throwing or returning a rejected promise will reject `promise` with the rejection reason. - - -## Related - -- [p-try](https://github.com/sindresorhus/p-try) - `Promise#try()` ponyfill - Starts a promise chain -- [More…](https://github.com/sindresorhus/promise-fun) - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build/node_modules/path-key/index.js b/build/node_modules/path-key/index.js deleted file mode 100644 index 62c8250ab..000000000 --- a/build/node_modules/path-key/index.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; -module.exports = opts => { - opts = opts || {}; - - const env = opts.env || process.env; - const platform = opts.platform || process.platform; - - if (platform !== 'win32') { - return 'PATH'; - } - - return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path'; -}; diff --git a/build/node_modules/path-key/license b/build/node_modules/path-key/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/build/node_modules/path-key/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/path-key/package.json b/build/node_modules/path-key/package.json deleted file mode 100644 index 25da713ac..000000000 --- a/build/node_modules/path-key/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "_from": "path-key@^2.0.1", - "_id": "path-key@2.0.1", - "_inBundle": false, - "_integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "_location": "/path-key", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "path-key@^2.0.1", - "name": "path-key", - "escapedName": "path-key", - "rawSpec": "^2.0.1", - "saveSpec": null, - "fetchSpec": "^2.0.1" - }, - "_requiredBy": [ - "/cross-spawn", - "/npm-run-path" - ], - "_resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "_shasum": "411cadb574c5a140d3a4b1910d40d80cc9f40b40", - "_spec": "path-key@^2.0.1", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\cross-spawn", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/path-key/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Get the PATH environment variable key cross-platform", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/path-key#readme", - "keywords": [ - "path", - "key", - "environment", - "env", - "variable", - "var", - "get", - "cross-platform", - "windows" - ], - "license": "MIT", - "name": "path-key", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/path-key.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.0.1", - "xo": { - "esnext": true - } -} diff --git a/build/node_modules/path-key/readme.md b/build/node_modules/path-key/readme.md deleted file mode 100644 index cb5710aac..000000000 --- a/build/node_modules/path-key/readme.md +++ /dev/null @@ -1,51 +0,0 @@ -# path-key [![Build Status](https://travis-ci.org/sindresorhus/path-key.svg?branch=master)](https://travis-ci.org/sindresorhus/path-key) - -> Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform - -It's usually `PATH`, but on Windows it can be any casing like `Path`... - - -## Install - -``` -$ npm install --save path-key -``` - - -## Usage - -```js -const pathKey = require('path-key'); - -const key = pathKey(); -//=> 'PATH' - -const PATH = process.env[key]; -//=> '/usr/local/bin:/usr/bin:/bin' -``` - - -## API - -### pathKey([options]) - -#### options - -##### env - -Type: `Object`
-Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env) - -Use a custom environment variables object. - -#### platform - -Type: `string`
-Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform) - -Get the PATH key for a specific platform. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/build/node_modules/putasset/ChangeLog b/build/node_modules/putasset/ChangeLog deleted file mode 100644 index 6c0cc3300..000000000 --- a/build/node_modules/putasset/ChangeLog +++ /dev/null @@ -1,261 +0,0 @@ -2018.11.30, v4.0.1 - -fix: -- (puttaset) mime-types - - -2018.11.29, v4.0.0 - -feature: -- (package) @octokit/rest v16.1.0 -- (package) nyc v13.1.0 -- (package) eslint v5.9.0 -- (packge) rm os-homedir -- (package) redrun v7.0.0 - - -2018.05.03, v3.1.9 - -feature: -- (package) wraptile v2.0.0 -- (package) redrun v6.0.0 - - -2018.02.09, v3.1.8 - -feature: -- (package) try-catch v2.0.0 - - -2018.01.31, v3.1.7 - -feature: -- (package) es6-promisify v6.0.0 - - -2018.01.30, v3.1.6 - -fix: -- (putasset) GitHubApi -> github - - -2018.01.30, v3.1.5 - -fix: -- (putasset) octokit - - -2018.01.30, v3.1.4 - -feature: -- (package) dependencies: github -> @octokit/rest - - -2018.01.23, v3.1.3 - -fix: -- (putasset) uploadAsset - - -2018.01.23, v3.1.2 - -fix: -- (putasset) path - - -2018.01.23, v3.1.1 - -fix: -- (putasset) loud - - -2018.01.17, v3.1.0 - -feature: -- (putasset) async -> promise - - -2018.01.17, v3.0.5 - -fix: -- (putasset) creatdReadStream -> creatReadStream - - -2018.01.17, v3.0.4 - -fix: -- (putasset) creadReadStream -> creatReadStream - - -2018.01.16, v3.0.3 - -fix: -- (putasset) upload - - -2018.01.15, v3.0.2 - -fix: -- (package) rm build step - - -2018.01.15, v3.0.1 - -fix: -- (package) babel - -feature: -- (package) github v13.1.0 - - -2017.10.30, v3.0.0 - -feature: -- (package) github v12.0.1 -- (package) drop support of node <= 4 -- (package) coveralls v3.0.0 - - -2017.09.08, v2.1.7 - -feature: -- (package) github v11.0.0 - - -2017.08.28, v2.1.6 - -feature: -- (package) github v10.0.0 - - -2017.08.11, v2.1.5 - -fix: -- (putasset) add filename check - -feature: -- (package) eslint v4.0.0 -- (package) nyc v11.0.2 - - -2017.03.06, v2.1.4 - -fix: -- (putasset) owner - - -2017.03.06, v2.1.3 - -feature: -- (putasset) release: improve error message - - -2017.03.06, v2.1.2 - -fix: -- (putasset) owner -> owner: user - - -2017.03.06, v2.1.1 - -fix: -- (putasset) add path to filename - - -2017.03.06, v2.1.0 - -feature: -- (putasset) add --loud - - -2017.03.06, v2.0.0 - -feature: -- (putasset) putasset-legacy -> putasset_ -- (putasset) add support of env var PUTASSET_TOKEN - - -2017.02.21, v1.0.12 - -fix: -- (putasset) release.id -> release.data.id - - -2017.02.20, v1.0.11 - -feature: -- (package) github v9.0.0 - - -2017.01.12, v1.0.10 - -feature: -- (package) github v8.0.0 - - -2016.12.05, v1.0.9 - -feature: -- (package) github v7.0.0 -- (package) nyc v10.0.0 - - -2016.11.23, v1.0.8 - -feature: -- (package) currify v2.0.0 -- (package) nyc v9.0.1 - - -2016.11.01, v1.0.7 - -feature: -- (package) github v6.0.1 - - -2016.10.13, v1.0.6 - -feature: -- (package) github v5.2.0: user -> owner - - -2016.10.09, v1.0.5 - -feature: -- (package) github v1.4.0 - - -2016.09.16, v1.0.4 - -feature: -- (package) github v3.1.0 -- (package) nyc v8.1.0 - - -2016.07.19, v1.0.3 - -fix: -- (putasset) exec -> tryCatch - -feature: -- (package) redrun v5.0.0 -- (package) nyc v7.0.0 -- (package) eslint v3.0.0 - - -2016.07.02, v1.0.2 - -fix: -- (package) add legacy:package, legacy:help - - -2016.06.27, v1.0.1 - -fix: -- (putasset) -o, --owner -> -u, --user - -feature: -- (package) github v2.0.0 -- (package) add coveralls -- (package) redrun v4.0.0 - diff --git a/build/node_modules/putasset/LICENSE b/build/node_modules/putasset/LICENSE deleted file mode 100644 index 416353f35..000000000 --- a/build/node_modules/putasset/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016-now coderaiser - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build/node_modules/putasset/README.md b/build/node_modules/putasset/README.md deleted file mode 100644 index 7cd716fe0..000000000 --- a/build/node_modules/putasset/README.md +++ /dev/null @@ -1,75 +0,0 @@ -# Putasset [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] - -Upload asset to release on github. - -## Install - -``` -npm i putasset -g -``` -## How to use? - -### Global - -``` -$ putasset -Usage: putasset [options] -Options: - -h, --help : display this help and exit, - -v, --version : output version information and exit, - -r, --repo : name of repository, - -o, --owner : owner of repository, - -t, --tag : tag of repository (shoul exist!), - -f, --filename : path to asset - -tn, --token : github token - -l, --loud : output filename, owner, repo and tag before upload - -$ putasset -tn "token from url" \ --r putasset -o coderaiser -t v1.0.0 \ --f "release.zip" -``` -To set token environment variable `PUTASSET_TOKEN` could be used. - -### Local - -``` -npm i putasset --save -``` - -Data will be read before execution in next order (left is more important): - -`command line -> ~/.putasset.json` - -### Example - -```js -const putasset = require('putasset'), -const token = 'token from https://github.com/settings/applications'; - -putasset(token, { - owner: 'coderaiser', - repo: 'putasset', - tag: 'v1.0.0', - filename: 'realease.zip' -}).catch((error) => { - console.error(error.message); -}); -``` - -## Related - -- [grizzly](https://github.com/coderaiser/node-grizzly "Grizzly") - Create release on github with help of node. - -## License - -MIT - -[NPMIMGURL]: https://img.shields.io/npm/v/putasset.svg?style=flat -[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/node-putasset/master.svg?style=flat -[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/node-putasset.svg?style=flat -[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat -[NPMURL]: https://npmjs.org/package/putasset "npm" -[BuildStatusURL]: https://travis-ci.org/coderaiser/node-putasset "Build Status" -[DependencyStatusURL]: https://david-dm.org/coderaiser/node-putasset "Dependency Status" -[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License" - diff --git a/build/node_modules/putasset/bin/putasset.js b/build/node_modules/putasset/bin/putasset.js deleted file mode 100644 index 3429c0831..000000000 --- a/build/node_modules/putasset/bin/putasset.js +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/env node - -'use strict'; - -const putasset = require('..'); -const readjson = require('readjson'); -const check = require('checkup'); -const tryCatch = require('try-catch'); - -const TOKEN = process.env.PUTASSET_TOKEN; - -const argv = process.argv; -const args = require('minimist')(argv.slice(2), { - string: ['repo', 'owner', 'tag', 'filename', 'token'], - boolean: ['loud'], - alias: { - v: 'version', - h: 'help', - r: 'repo', - u: 'owner', - user: 'owner', - o: 'owner', - t: 'tag', - f: 'filename', - l: 'loud', - tn: 'token' - } -}); - -const argsEmpty = Object.keys(args).length === 1; - -if (args.version) - version(); -else if (args.help || argsEmpty) - help(); -else - main(); - -function main() { - if (!args.filename) - exit(Error('filename could not be empty!')); - - const home = require('os').homedir(); - const path = require('path'); - const tokenPath = path.join(home, '.putasset.json'); - - const repo = args.repo; - const owner = args.owner; - const tag = args.tag; - const filename = path.join(process.cwd(), args.filename); - const name = args.filename; - - if (args.loud) - console.log(`Uploading file "${name}" to ${owner}/${repo}@${tag}`); - - let token; - const [e] = tryCatch(() => { - check([ - repo, - owner, - tag, - name, - ], [ - 'repo', - 'owner', - 'tag', - 'filename' - ]); - - token = TOKEN || args.token || readjson.sync(tokenPath).token; - }); - - - if (e) - return log(e); - - putasset(token, { - repo, - owner, - tag, - filename, - }).catch(log); -} - -function exit(error) { - log(error); - process.exit(1); -} - -function log(error) { - if (error) - console.error(error.message); -} - -function version() { - console.log('v' + info().version); -} - -function info() { - return require('../package'); -} - -function help() { - const bin = require('../help'); - const usage = `Usage: ${info().name} [options]`; - - console.log(usage); - console.log('Options:'); - - Object.keys(bin).forEach(function(name) { - console.log(` ${name} ${bin[name]}`); - }); -} - diff --git a/build/node_modules/putasset/help.json b/build/node_modules/putasset/help.json deleted file mode 100644 index 3b4f69040..000000000 --- a/build/node_modules/putasset/help.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "-h, --help ": "display this help and exit", - "-v, --version ": "output version information and exit", - "-r, --repo ": "name of repository", - "-o, --owner ": "owner of repository", - "-t, --tag ": "tag of repository (shoul exist!)", - "-f, --file ": "path to asset", - "-tn, --token ": "github token ", - "-l, --loud ": "output filename, repo, owner and tag before upload" -} diff --git a/build/node_modules/putasset/lib/putasset.js b/build/node_modules/putasset/lib/putasset.js deleted file mode 100644 index 010af9498..000000000 --- a/build/node_modules/putasset/lib/putasset.js +++ /dev/null @@ -1,79 +0,0 @@ -'use strict'; - -const {promisify} = require('util'); -const path = require('path'); -const fs = require('fs'); -const stat = promisify(fs.stat); - -const github = require('@octokit/rest')(); -const mime = require('mime-types'); -const tryToCatch = require('try-to-catch'); - -module.exports = async (token, {owner, repo, tag, filename}) => { - check(token, {owner, repo, tag, filename}); - - const type = 'oauth'; - github.authenticate({ - type, - token, - }); - - const [url, {size}] = await Promise.all([ - getReleaseUrl(owner, repo, tag), - stat(filename), - ]); - - await uploadAsset({ - owner, - repo, - filename, - size, - url, - }); -}; - -async function uploadAsset({owner, repo, filename, size, url}) { - const name = path.basename(filename); - - return github.repos.uploadReleaseAsset({ - url, - file: fs.createReadStream(filename), - headers: { - 'content-type': mime.lookup(filename), - 'content-length': size, - }, - name, - owner, - repo, - }); -} - -async function getReleaseUrl(owner, repo, tag) { - const [e, release] = await tryToCatch(github.repos.getReleaseByTag, { - owner, - repo, - tag, - }); - - if (e) - throw Error(`Release: ${e.message}`); - - return release.data.upload_url; -} - -function check(token, {owner, repo, tag, filename}) { - const items = [ - {token, name: 'token'}, - {owner, name: 'owner'}, - {repo, name: 'repo'}, - {tag, name: 'tag'}, - {filename, name: 'filename'} - ]; - - items.filter((item) => { - return typeof item[item.name] !== 'string'; - }).forEach(({name}) => { - throw Error(`${name} must to be a string!`); - }); -} - diff --git a/build/node_modules/putasset/package.json b/build/node_modules/putasset/package.json deleted file mode 100644 index 174cf9894..000000000 --- a/build/node_modules/putasset/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "_from": "putasset", - "_id": "putasset@4.0.1", - "_inBundle": false, - "_integrity": "sha512-T/NBhm+VqQ9t6Hspy7rToqemoH0CAvU5xKrm6tbqpFJMo8YkRyjWV+Ot5F08FnUL/f+WyF32mF1b56ol0mw5Rg==", - "_location": "/putasset", - "_phantomChildren": {}, - "_requested": { - "type": "tag", - "registry": true, - "raw": "putasset", - "name": "putasset", - "escapedName": "putasset", - "rawSpec": "", - "saveSpec": null, - "fetchSpec": "latest" - }, - "_requiredBy": [ - "#USER", - "/" - ], - "_resolved": "https://registry.npmjs.org/putasset/-/putasset-4.0.1.tgz", - "_shasum": "0891f941490c2935b44cdc87f5773dcac3b885aa", - "_spec": "putasset", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\putasset", - "author": { - "name": "coderaiser", - "email": "mnemonic.enemy@gmail.com", - "url": "http://coderaiser.github.io/" - }, - "bin": { - "putasset": "bin/putasset.js" - }, - "bugs": { - "url": "https://github.com/coderaiser/node-putasset/issues" - }, - "bundleDependencies": false, - "dependencies": { - "@octokit/rest": "^16.1.0", - "checkup": "^1.3.0", - "mime-types": "^2.1.21", - "minimist": "^1.2.0", - "readjson": "^1.1.0", - "try-catch": "^2.0.0", - "try-to-catch": "^1.1.1" - }, - "deprecated": false, - "description": "upload asset to release on github", - "devDependencies": { - "coveralls": "^3.0.0", - "eslint": "^5.9.0", - "nodemon": "^1.9.2", - "nyc": "^13.1.0", - "redrun": "^7.0.0", - "tape": "^4.6.0", - "try-to-tape": "^1.1.0", - "version-io": "^2.0.1" - }, - "engines": { - "node": ">=8.3.0" - }, - "homepage": "https://github.com/coderaiser/node-putasset#readme", - "keywords": [ - "github", - "release", - "asset", - "upload" - ], - "license": "MIT", - "main": "lib/putasset.js", - "name": "putasset", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/coderaiser/node-putasset.git" - }, - "scripts": { - "coverage": "nyc npm test", - "eslint:bin": "eslint -c .eslint-bin.rc bin", - "eslint:lib": "eslint lib test", - "lint": "redrun eslint:*", - "report": "nyc report --reporter=text-lcov | coveralls", - "test": "tape 'test/**/*.js'", - "test:run": "bin/putasset.js --filename ./README.md --repo node-putasset --owner coderaiser --tag \"v`version`\"", - "watch": "nodemon --watch lib --watch test -d 0.3 --exec", - "watch:test": "npm run watch -- npm test" - }, - "version": "4.0.1" -} diff --git a/build/node_modules/putasset/test/putasset.js b/build/node_modules/putasset/test/putasset.js deleted file mode 100644 index 659a3f009..000000000 --- a/build/node_modules/putasset/test/putasset.js +++ /dev/null @@ -1,48 +0,0 @@ -'use strict'; - -const tryToCatch = require('try-to-catch'); -const tryTo = require('try-to-tape'); -const test = tryTo(require('tape')); -const putasset = require('..'); - -const empty = () => {}; - -const owner = 'coderaiser'; -const repo = 'putasset'; -const tag = 'v1.0.0'; - -test('arguments: token', async (t) => { - const [e] = await tryToCatch(putasset, 123, {owner, repo, tag}); - - t.equal(e.message, 'token must to be a string!', 'should throw when token not string'); - t.end(); -}); - -test('arguments: owner', async (t) => { - const [e] = await tryToCatch(putasset, '', {repo}, empty); - - t.equal(e.message, 'owner must to be a string!', 'should throw when token not string'); - t.end(); -}); - -test('arguments: repo', async (t) => { - const [e] = await tryToCatch(putasset, '', {owner}, empty); - - t.equal(e.message, 'repo must to be a string!', 'should throw when repo not string'); - t.end(); -}); - -test('arguments: tag', async (t) => { - const [e] = await tryToCatch(putasset, '', {owner, repo}, empty); - - t.equal(e.message, 'tag must to be a string!', 'should throw when tag not string'); - t.end(); -}); - -test('arguments: filename', async (t) => { - const [e] = await tryToCatch(putasset, '', {owner, repo, tag}, empty); - - t.equal(e.message, 'filename must to be a string!', 'should throw when filename not string'); - t.end(); -}); - diff --git a/build/node_modules/readjson/.eslintrc b/build/node_modules/readjson/.eslintrc deleted file mode 100644 index 038f1782d..000000000 --- a/build/node_modules/readjson/.eslintrc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "env": { - "node": true - }, - "parserOptions": { - "ecmaVersion": 6, - "sourceType": "module" - }, - "rules": { - "indent": ["error", 4] - }, - "extends": [ - "eslint:recommended", - "plugin:node/recommended" - ], - "plugins": [ - "node" - ] -} diff --git a/build/node_modules/readjson/.nyc_output/b2db08d95cee4b6ccd35bd881611c458.json b/build/node_modules/readjson/.nyc_output/b2db08d95cee4b6ccd35bd881611c458.json deleted file mode 100644 index ef99a448f..000000000 --- a/build/node_modules/readjson/.nyc_output/b2db08d95cee4b6ccd35bd881611c458.json +++ /dev/null @@ -1 +0,0 @@ -{"/home/coderaiser/node-readjson/lib/readjson.js":{"path":"/home/coderaiser/node-readjson/lib/readjson.js","statementMap":{"0":{"start":{"line":3,"column":9},"end":{"line":3,"column":22}},"1":{"start":{"line":4,"column":15},"end":{"line":4,"column":35}},"2":{"start":{"line":6,"column":0},"end":{"line":22,"column":2}},"3":{"start":{"line":7,"column":4},"end":{"line":7,"column":16}},"4":{"start":{"line":8,"column":4},"end":{"line":8,"column":22}},"5":{"start":{"line":10,"column":4},"end":{"line":21,"column":7}},"6":{"start":{"line":14,"column":8},"end":{"line":18,"column":9}},"7":{"start":{"line":15,"column":12},"end":{"line":15,"column":48}},"8":{"start":{"line":16,"column":12},"end":{"line":16,"column":30}},"9":{"start":{"line":17,"column":12},"end":{"line":17,"column":29}},"10":{"start":{"line":20,"column":8},"end":{"line":20,"column":30}},"11":{"start":{"line":24,"column":0},"end":{"line":24,"column":27}},"12":{"start":{"line":27,"column":4},"end":{"line":27,"column":16}},"13":{"start":{"line":29,"column":15},"end":{"line":29,"column":44}},"14":{"start":{"line":30,"column":15},"end":{"line":30,"column":31}},"15":{"start":{"line":32,"column":4},"end":{"line":32,"column":16}},"16":{"start":{"line":35,"column":0},"end":{"line":42,"column":2}},"17":{"start":{"line":36,"column":4},"end":{"line":36,"column":16}},"18":{"start":{"line":38,"column":17},"end":{"line":38,"column":37}},"19":{"start":{"line":39,"column":15},"end":{"line":39,"column":24}},"20":{"start":{"line":41,"column":4},"end":{"line":41,"column":16}},"21":{"start":{"line":45,"column":4},"end":{"line":46,"column":46}},"22":{"start":{"line":46,"column":8},"end":{"line":46,"column":46}},"23":{"start":{"line":50,"column":4},"end":{"line":51,"column":52}},"24":{"start":{"line":51,"column":8},"end":{"line":51,"column":52}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":17},"end":{"line":6,"column":18}},"loc":{"start":{"line":6,"column":42},"end":{"line":22,"column":1}},"line":6},"1":{"name":"(anonymous_1)","decl":{"start":{"line":10,"column":30},"end":{"line":10,"column":31}},"loc":{"start":{"line":10,"column":52},"end":{"line":21,"column":5}},"line":10},"2":{"name":"sync","decl":{"start":{"line":26,"column":9},"end":{"line":26,"column":13}},"loc":{"start":{"line":26,"column":20},"end":{"line":33,"column":1}},"line":26},"3":{"name":"(anonymous_3)","decl":{"start":{"line":35,"column":26},"end":{"line":35,"column":27}},"loc":{"start":{"line":35,"column":41},"end":{"line":42,"column":1}},"line":35},"4":{"name":"check","decl":{"start":{"line":44,"column":9},"end":{"line":44,"column":14}},"loc":{"start":{"line":44,"column":21},"end":{"line":47,"column":1}},"line":44},"5":{"name":"checkCB","decl":{"start":{"line":49,"column":9},"end":{"line":49,"column":16}},"loc":{"start":{"line":49,"column":27},"end":{"line":52,"column":1}},"line":49}},"branchMap":{"0":{"loc":{"start":{"line":14,"column":8},"end":{"line":18,"column":9}},"type":"if","locations":[{"start":{"line":14,"column":8},"end":{"line":18,"column":9}},{"start":{"line":14,"column":8},"end":{"line":18,"column":9}}],"line":14},"1":{"loc":{"start":{"line":45,"column":4},"end":{"line":46,"column":46}},"type":"if","locations":[{"start":{"line":45,"column":4},"end":{"line":46,"column":46}},{"start":{"line":45,"column":4},"end":{"line":46,"column":46}}],"line":45},"2":{"loc":{"start":{"line":50,"column":4},"end":{"line":51,"column":52}},"type":"if","locations":[{"start":{"line":50,"column":4},"end":{"line":51,"column":52}},{"start":{"line":50,"column":4},"end":{"line":51,"column":52}}],"line":50}},"s":{"0":1,"1":1,"2":1,"3":4,"4":3,"5":2,"6":2,"7":1,"8":1,"9":1,"10":2,"11":1,"12":2,"13":1,"14":1,"15":1,"16":1,"17":2,"18":1,"19":1,"20":1,"21":8,"22":3,"23":3,"24":1},"f":{"0":4,"1":2,"2":2,"3":2,"4":8,"5":3},"b":{"0":[1,1],"1":[3,5],"2":[1,2]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"bd650340ed898baba72f45c2ab665766da9af5c2","contentHash":"84ab38b83158b8400b444e5a3a6a9f8a_11.4.1"}} \ No newline at end of file diff --git a/build/node_modules/readjson/ChangeLog b/build/node_modules/readjson/ChangeLog deleted file mode 100644 index 8bc03ed97..000000000 --- a/build/node_modules/readjson/ChangeLog +++ /dev/null @@ -1,59 +0,0 @@ -2018.02.09, v1.1.4 - -feature: -- (travis) 6, 8 -- (package) jscs, jshint -> eslint -- (package) try-catch v2.0.0 -- (package) coveralls v3.0.0 -- (package) nyc v11.0.2 -- (package) nyc v10.0.0 -- (package) nyc v9.0.1 -- (package) nyc v8.1.0 -- (package) redrun v5.0.0 -- (package) nyc v7.0.0 -- (package) redrun v4.0.0 -- (package) npm-run-all -> redrun -- (package) add jscs v3.0.3 -- (package) coveralls v2.11.6 -- (package) nyc v6.1.1 -- (package) nyc v5.3.0 -- (travis) test -> coverage -- (readjson) add coveralls - - -2015.12.15, v1.1.3 - -feature: -- (npmignore) add test - - -2015.12.15, v1.1.2 - -feature: -- (readjson) add jshint, jscs -- (readjson) add tests - - -2015.09.18, v1.1.1 - -feature: -- (package) keywords - - -2015.06.22, v1.1.0 - -feature: -- (readjson) add sync, sync.try - - -2015.01.09, v1.0.2 - -feature: -- (readjson) get tryCatch error when occures - - -2014.12.19, v1.0.1 - -feature: -- (readjson) add tryCatch - diff --git a/build/node_modules/readjson/LICENSE b/build/node_modules/readjson/LICENSE deleted file mode 100644 index c52100f40..000000000 --- a/build/node_modules/readjson/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2015 coderaiser - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/build/node_modules/readjson/README.md b/build/node_modules/readjson/README.md deleted file mode 100644 index 97bd6c7c2..000000000 --- a/build/node_modules/readjson/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# readjson [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] - -Read file and parse it as json. - -## Install - -``` -npm i readjson --save -``` -## How to use? - -```js -var readjson = require('readjson'); - -readjson('./package.json', function(error, json) { - if (error) - console.error(error.message); - else - console.log([ - json.name, json.version - ].join(' ')); -}); - -try { - readjson.sync('./package.json'); -} catch(error) { - console.log(error.message); -} - -readjson.sync.try('./package.json'); -``` - -## License - -MIT - -[NPMIMGURL]: https://img.shields.io/npm/v/readjson.svg?style=flat -[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/node-readjson/master.svg?style=flat -[DependencyStatusIMGURL]: https://img.shields.io/gemnasium/coderaiser/node-readjson.svg?style=flat -[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat -[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/node-readjson/badge.svg?branch=master&service=github -[NPMURL]: https://npmjs.org/package/readjson "npm" -[BuildStatusURL]: https://travis-ci.org/coderaiser/node-readjson "Build Status" -[DependencyStatusURL]: https://gemnasium.com/coderaiser/node-readjson "Dependency Status" -[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License" -[CoverageURL]: https://coveralls.io/github/coderaiser/node-readjson?branch=master diff --git a/build/node_modules/readjson/lib/readjson.js b/build/node_modules/readjson/lib/readjson.js deleted file mode 100644 index 5d2705ffb..000000000 --- a/build/node_modules/readjson/lib/readjson.js +++ /dev/null @@ -1,53 +0,0 @@ -'use strict'; - -var fs = require('fs'); -var tryCatch = require('try-catch'); - -module.exports = function(name, callback) { - check(name); - checkCB(callback); - - fs.readFile(name, 'utf8', function(error, data) { - var result; - var json; - - if (!error) { - result = tryCatch(JSON.parse, data); - error = result[0]; - json = result[1]; - } - - callback(error, json); - }); -}; - -module.exports.sync = sync; - -function sync(name) { - check(name); - - var data = fs.readFileSync(name, 'utf8'); - var json = JSON.parse(data); - - return json; -} - -module.exports.sync.try = function(name) { - check(name); - - var result = tryCatch(sync, name); - var data = result[1]; - - return data; -}; - -function check(name) { - if (typeof name !== 'string') - throw Error('name should be string!'); -} - -function checkCB(callback) { - if (typeof callback !== 'function') - throw Error('callback should be function!'); -} - diff --git a/build/node_modules/readjson/package.json b/build/node_modules/readjson/package.json deleted file mode 100644 index 4aecf713c..000000000 --- a/build/node_modules/readjson/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "_from": "readjson@^1.1.0", - "_id": "readjson@1.1.4", - "_inBundle": false, - "_integrity": "sha512-H4dRk2S67w3HtE1apnw5wlHpN9qkJ0pen0AcEvyAfnrPfskZIyUOYLXpfN6olDQZI+eUlxg0Yo4lJ2bymujOUA==", - "_location": "/readjson", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "readjson@^1.1.0", - "name": "readjson", - "escapedName": "readjson", - "rawSpec": "^1.1.0", - "saveSpec": null, - "fetchSpec": "^1.1.0" - }, - "_requiredBy": [ - "/putasset" - ], - "_resolved": "https://registry.npmjs.org/readjson/-/readjson-1.1.4.tgz", - "_shasum": "89501f648453dcda9b15399b3fb10c38249662c7", - "_spec": "readjson@^1.1.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\putasset", - "author": { - "name": "coderaiser", - "email": "mnemonic.enemy@gmail.com", - "url": "http://coderaiser.github.io/" - }, - "bugs": { - "url": "https://github.com/coderaiser/node-readjson/issues" - }, - "bundleDependencies": false, - "dependencies": { - "try-catch": "^2.0.0" - }, - "deprecated": false, - "description": "Read file and parse it as json.", - "devDependencies": { - "coveralls": "^3.0.0", - "eslint": "^4.17.0", - "eslint-plugin-node": "^6.0.0", - "nyc": "^11.0.2", - "redrun": "^5.0.1", - "tape": "^4.2.2" - }, - "homepage": "https://github.com/coderaiser/node-readjson#readme", - "keywords": [ - "read", - "parse", - "json" - ], - "license": "MIT", - "main": "lib/readjson.js", - "name": "readjson", - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/coderaiser/node-readjson.git" - }, - "scripts": { - "coverage": "nyc npm test", - "lint": "eslint lib test", - "report": "nyc report --reporter=text-lcov | coveralls", - "test": "tape test/*.js" - }, - "version": "1.1.4" -} diff --git a/build/node_modules/semver/LICENSE b/build/node_modules/semver/LICENSE deleted file mode 100644 index 19129e315..000000000 --- a/build/node_modules/semver/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build/node_modules/semver/README.md b/build/node_modules/semver/README.md deleted file mode 100644 index e0edbb733..000000000 --- a/build/node_modules/semver/README.md +++ /dev/null @@ -1,399 +0,0 @@ -semver(1) -- The semantic versioner for npm -=========================================== - -## Install - -```bash -npm install --save semver -```` - -## Usage - -As a node module: - -```js -const semver = require('semver') - -semver.valid('1.2.3') // '1.2.3' -semver.valid('a.b.c') // null -semver.clean(' =v1.2.3 ') // '1.2.3' -semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true -semver.gt('1.2.3', '9.8.7') // false -semver.lt('1.2.3', '9.8.7') // true -semver.valid(semver.coerce('v2')) // '2.0.0' -semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7' -``` - -As a command-line utility: - -``` -$ semver -h - -A JavaScript implementation of the http://semver.org/ specification -Copyright Isaac Z. Schlueter - -Usage: semver [options] [ [...]] -Prints valid versions sorted by SemVer precedence - -Options: --r --range - Print versions that match the specified range. - --i --increment [] - Increment a version by the specified level. Level can - be one of: major, minor, patch, premajor, preminor, - prepatch, or prerelease. Default level is 'patch'. - Only one version may be specified. - ---preid - Identifier to be used to prefix premajor, preminor, - prepatch or prerelease version increments. - --l --loose - Interpret versions and ranges loosely - --p --include-prerelease - Always include prerelease versions in range matching - --c --coerce - Coerce a string into SemVer if possible - (does not imply --loose) - -Program exits successfully if any valid version satisfies -all supplied ranges, and prints all satisfying versions. - -If no satisfying versions are found, then exits failure. - -Versions are printed in ascending order, so supplying -multiple versions to the utility will just sort them. -``` - -## Versions - -A "version" is described by the `v2.0.0` specification found at -. - -A leading `"="` or `"v"` character is stripped off and ignored. - -## Ranges - -A `version range` is a set of `comparators` which specify versions -that satisfy the range. - -A `comparator` is composed of an `operator` and a `version`. The set -of primitive `operators` is: - -* `<` Less than -* `<=` Less than or equal to -* `>` Greater than -* `>=` Greater than or equal to -* `=` Equal. If no operator is specified, then equality is assumed, - so this operator is optional, but MAY be included. - -For example, the comparator `>=1.2.7` would match the versions -`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6` -or `1.1.0`. - -Comparators can be joined by whitespace to form a `comparator set`, -which is satisfied by the **intersection** of all of the comparators -it includes. - -A range is composed of one or more comparator sets, joined by `||`. A -version matches a range if and only if every comparator in at least -one of the `||`-separated comparator sets is satisfied by the version. - -For example, the range `>=1.2.7 <1.3.0` would match the versions -`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, -or `1.1.0`. - -The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, -`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`. - -### Prerelease Tags - -If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then -it will only be allowed to satisfy comparator sets if at least one -comparator with the same `[major, minor, patch]` tuple also has a -prerelease tag. - -For example, the range `>1.2.3-alpha.3` would be allowed to match the -version `1.2.3-alpha.7`, but it would *not* be satisfied by -`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater -than" `1.2.3-alpha.3` according to the SemVer sort rules. The version -range only accepts prerelease tags on the `1.2.3` version. The -version `3.4.5` *would* satisfy the range, because it does not have a -prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`. - -The purpose for this behavior is twofold. First, prerelease versions -frequently are updated very quickly, and contain many breaking changes -that are (by the author's design) not yet fit for public consumption. -Therefore, by default, they are excluded from range matching -semantics. - -Second, a user who has opted into using a prerelease version has -clearly indicated the intent to use *that specific* set of -alpha/beta/rc versions. By including a prerelease tag in the range, -the user is indicating that they are aware of the risk. However, it -is still not appropriate to assume that they have opted into taking a -similar risk on the *next* set of prerelease versions. - -#### Prerelease Identifiers - -The method `.inc` takes an additional `identifier` string argument that -will append the value of the string as a prerelease identifier: - -```javascript -semver.inc('1.2.3', 'prerelease', 'beta') -// '1.2.4-beta.0' -``` - -command-line example: - -```bash -$ semver 1.2.3 -i prerelease --preid beta -1.2.4-beta.0 -``` - -Which then can be used to increment further: - -```bash -$ semver 1.2.4-beta.0 -i prerelease -1.2.4-beta.1 -``` - -### Advanced Range Syntax - -Advanced range syntax desugars to primitive comparators in -deterministic ways. - -Advanced ranges may be combined in the same way as primitive -comparators using white space or `||`. - -#### Hyphen Ranges `X.Y.Z - A.B.C` - -Specifies an inclusive set. - -* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4` - -If a partial version is provided as the first version in the inclusive -range, then the missing pieces are replaced with zeroes. - -* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4` - -If a partial version is provided as the second version in the -inclusive range, then all versions that start with the supplied parts -of the tuple are accepted, but nothing that would be greater than the -provided tuple parts. - -* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0` -* `1.2.3 - 2` := `>=1.2.3 <3.0.0` - -#### X-Ranges `1.2.x` `1.X` `1.2.*` `*` - -Any of `X`, `x`, or `*` may be used to "stand in" for one of the -numeric values in the `[major, minor, patch]` tuple. - -* `*` := `>=0.0.0` (Any version satisfies) -* `1.x` := `>=1.0.0 <2.0.0` (Matching major version) -* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions) - -A partial version range is treated as an X-Range, so the special -character is in fact optional. - -* `""` (empty string) := `*` := `>=0.0.0` -* `1` := `1.x.x` := `>=1.0.0 <2.0.0` -* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0` - -#### Tilde Ranges `~1.2.3` `~1.2` `~1` - -Allows patch-level changes if a minor version is specified on the -comparator. Allows minor-level changes if not. - -* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0` -* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`) -* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`) -* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0` -* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`) -* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`) -* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. - -#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4` - -Allows changes that do not modify the left-most non-zero digit in the -`[major, minor, patch]` tuple. In other words, this allows patch and -minor updates for versions `1.0.0` and above, patch updates for -versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`. - -Many authors treat a `0.x` version as if the `x` were the major -"breaking-change" indicator. - -Caret ranges are ideal when an author may make breaking changes -between `0.2.4` and `0.3.0` releases, which is a common practice. -However, it presumes that there will *not* be breaking changes between -`0.2.4` and `0.2.5`. It allows for changes that are presumed to be -additive (but non-breaking), according to commonly observed practices. - -* `^1.2.3` := `>=1.2.3 <2.0.0` -* `^0.2.3` := `>=0.2.3 <0.3.0` -* `^0.0.3` := `>=0.0.3 <0.0.4` -* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. -* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the - `0.0.3` version *only* will be allowed, if they are greater than or - equal to `beta`. So, `0.0.3-pr.2` would be allowed. - -When parsing caret ranges, a missing `patch` value desugars to the -number `0`, but will allow flexibility within that value, even if the -major and minor versions are both `0`. - -* `^1.2.x` := `>=1.2.0 <2.0.0` -* `^0.0.x` := `>=0.0.0 <0.1.0` -* `^0.0` := `>=0.0.0 <0.1.0` - -A missing `minor` and `patch` values will desugar to zero, but also -allow flexibility within those values, even if the major version is -zero. - -* `^1.x` := `>=1.0.0 <2.0.0` -* `^0.x` := `>=0.0.0 <1.0.0` - -### Range Grammar - -Putting all this together, here is a Backus-Naur grammar for ranges, -for the benefit of parser authors: - -```bnf -range-set ::= range ( logical-or range ) * -logical-or ::= ( ' ' ) * '||' ( ' ' ) * -range ::= hyphen | simple ( ' ' simple ) * | '' -hyphen ::= partial ' - ' partial -simple ::= primitive | partial | tilde | caret -primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial -partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? -xr ::= 'x' | 'X' | '*' | nr -nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) * -tilde ::= '~' partial -caret ::= '^' partial -qualifier ::= ( '-' pre )? ( '+' build )? -pre ::= parts -build ::= parts -parts ::= part ( '.' part ) * -part ::= nr | [-0-9A-Za-z]+ -``` - -## Functions - -All methods and classes take a final `options` object argument. All -options in this object are `false` by default. The options supported -are: - -- `loose` Be more forgiving about not-quite-valid semver strings. - (Any resulting output will always be 100% strict compliant, of - course.) For backwards compatibility reasons, if the `options` - argument is a boolean value instead of an object, it is interpreted - to be the `loose` param. -- `includePrerelease` Set to suppress the [default - behavior](https://github.com/npm/node-semver#prerelease-tags) of - excluding prerelease tagged versions from ranges unless they are - explicitly opted into. - -Strict-mode Comparators and Ranges will be strict about the SemVer -strings that they parse. - -* `valid(v)`: Return the parsed version, or null if it's not valid. -* `inc(v, release)`: Return the version incremented by the release - type (`major`, `premajor`, `minor`, `preminor`, `patch`, - `prepatch`, or `prerelease`), or null if it's not valid - * `premajor` in one call will bump the version up to the next major - version and down to a prerelease of that major version. - `preminor`, and `prepatch` work the same way. - * If called from a non-prerelease version, the `prerelease` will work the - same as `prepatch`. It increments the patch version, then makes a - prerelease. If the input version is already a prerelease it simply - increments it. -* `prerelease(v)`: Returns an array of prerelease components, or null - if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]` -* `major(v)`: Return the major version number. -* `minor(v)`: Return the minor version number. -* `patch(v)`: Return the patch version number. -* `intersects(r1, r2, loose)`: Return true if the two supplied ranges - or comparators intersect. - -### Comparison - -* `gt(v1, v2)`: `v1 > v2` -* `gte(v1, v2)`: `v1 >= v2` -* `lt(v1, v2)`: `v1 < v2` -* `lte(v1, v2)`: `v1 <= v2` -* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent, - even if they're not the exact same string. You already know how to - compare strings. -* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`. -* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call - the corresponding function above. `"==="` and `"!=="` do simple - string comparison, but are included for completeness. Throws if an - invalid comparison string is provided. -* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if - `v2` is greater. Sorts in ascending order if passed to `Array.sort()`. -* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions - in descending order when passed to `Array.sort()`. -* `diff(v1, v2)`: Returns difference between two versions by the release type - (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`), - or null if the versions are the same. - -### Comparators - -* `intersects(comparator)`: Return true if the comparators intersect - -### Ranges - -* `validRange(range)`: Return the valid range or null if it's not valid -* `satisfies(version, range)`: Return true if the version satisfies the - range. -* `maxSatisfying(versions, range)`: Return the highest version in the list - that satisfies the range, or `null` if none of them do. -* `minSatisfying(versions, range)`: Return the lowest version in the list - that satisfies the range, or `null` if none of them do. -* `gtr(version, range)`: Return `true` if version is greater than all the - versions possible in the range. -* `ltr(version, range)`: Return `true` if version is less than all the - versions possible in the range. -* `outside(version, range, hilo)`: Return true if the version is outside - the bounds of the range in either the high or low direction. The - `hilo` argument must be either the string `'>'` or `'<'`. (This is - the function called by `gtr` and `ltr`.) -* `intersects(range)`: Return true if any of the ranges comparators intersect - -Note that, since ranges may be non-contiguous, a version might not be -greater than a range, less than a range, *or* satisfy a range! For -example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` -until `2.0.0`, so the version `1.2.10` would not be greater than the -range (because `2.0.1` satisfies, which is higher), nor less than the -range (since `1.2.8` satisfies, which is lower), and it also does not -satisfy the range. - -If you want to know if a version satisfies or does not satisfy a -range, use the `satisfies(version, range)` function. - -### Coercion - -* `coerce(version)`: Coerces a string to semver if possible - -This aims to provide a very forgiving translation of a non-semver -string to semver. It looks for the first digit in a string, and -consumes all remaining characters which satisfy at least a partial semver -(e.g., `1`, `1.2`, `1.2.3`) up to the max permitted length (256 characters). -Longer versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). -All surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes `3.4.0`). -Only text which lacks digits will fail coercion (`version one` is not valid). -The maximum length for any semver component considered for coercion is 16 characters; -longer components will be ignored (`10000000000000000.4.7.4` becomes `4.7.4`). -The maximum value for any semver component is `Integer.MAX_SAFE_INTEGER || (2**53 - 1)`; -higher value components are invalid (`9999999999999999.4.7.4` is likely invalid). diff --git a/build/node_modules/semver/bin/semver b/build/node_modules/semver/bin/semver deleted file mode 100644 index 9100ed42b..000000000 --- a/build/node_modules/semver/bin/semver +++ /dev/null @@ -1,153 +0,0 @@ -#!/usr/bin/env node -// Standalone semver comparison program. -// Exits successfully and prints matching version(s) if -// any supplied version is valid and passes all tests. - -var argv = process.argv.slice(2) - , versions = [] - , range = [] - , gt = [] - , lt = [] - , eq = [] - , inc = null - , version = require("../package.json").version - , loose = false - , includePrerelease = false - , coerce = false - , identifier = undefined - , semver = require("../semver") - , reverse = false - , options = {} - -main() - -function main () { - if (!argv.length) return help() - while (argv.length) { - var a = argv.shift() - var i = a.indexOf('=') - if (i !== -1) { - a = a.slice(0, i) - argv.unshift(a.slice(i + 1)) - } - switch (a) { - case "-rv": case "-rev": case "--rev": case "--reverse": - reverse = true - break - case "-l": case "--loose": - loose = true - break - case "-p": case "--include-prerelease": - includePrerelease = true - break - case "-v": case "--version": - versions.push(argv.shift()) - break - case "-i": case "--inc": case "--increment": - switch (argv[0]) { - case "major": case "minor": case "patch": case "prerelease": - case "premajor": case "preminor": case "prepatch": - inc = argv.shift() - break - default: - inc = "patch" - break - } - break - case "--preid": - identifier = argv.shift() - break - case "-r": case "--range": - range.push(argv.shift()) - break - case "-c": case "--coerce": - coerce = true - break - case "-h": case "--help": case "-?": - return help() - default: - versions.push(a) - break - } - } - - var options = { loose: loose, includePrerelease: includePrerelease } - - versions = versions.map(function (v) { - return coerce ? (semver.coerce(v) || {version: v}).version : v - }).filter(function (v) { - return semver.valid(v) - }) - if (!versions.length) return fail() - if (inc && (versions.length !== 1 || range.length)) - return failInc() - - for (var i = 0, l = range.length; i < l ; i ++) { - versions = versions.filter(function (v) { - return semver.satisfies(v, range[i], options) - }) - if (!versions.length) return fail() - } - return success(versions) -} - -function failInc () { - console.error("--inc can only be used on a single version with no range") - fail() -} - -function fail () { process.exit(1) } - -function success () { - var compare = reverse ? "rcompare" : "compare" - versions.sort(function (a, b) { - return semver[compare](a, b, options) - }).map(function (v) { - return semver.clean(v, options) - }).map(function (v) { - return inc ? semver.inc(v, inc, options, identifier) : v - }).forEach(function (v,i,_) { console.log(v) }) -} - -function help () { - console.log(["SemVer " + version - ,"" - ,"A JavaScript implementation of the http://semver.org/ specification" - ,"Copyright Isaac Z. Schlueter" - ,"" - ,"Usage: semver [options] [ [...]]" - ,"Prints valid versions sorted by SemVer precedence" - ,"" - ,"Options:" - ,"-r --range " - ," Print versions that match the specified range." - ,"" - ,"-i --increment []" - ," Increment a version by the specified level. Level can" - ," be one of: major, minor, patch, premajor, preminor," - ," prepatch, or prerelease. Default level is 'patch'." - ," Only one version may be specified." - ,"" - ,"--preid " - ," Identifier to be used to prefix premajor, preminor," - ," prepatch or prerelease version increments." - ,"" - ,"-l --loose" - ," Interpret versions and ranges loosely" - ,"" - ,"-p --include-prerelease" - ," Always include prerelease versions in range matching" - ,"" - ,"-c --coerce" - ," Coerce a string into SemVer if possible" - ," (does not imply --loose)" - ,"" - ,"Program exits successfully if any valid version satisfies" - ,"all supplied ranges, and prints all satisfying versions." - ,"" - ,"If no satisfying versions are found, then exits failure." - ,"" - ,"Versions are printed in ascending order, so supplying" - ,"multiple versions to the utility will just sort them." - ].join("\n")) -} diff --git a/build/node_modules/semver/package.json b/build/node_modules/semver/package.json deleted file mode 100644 index 9997cb291..000000000 --- a/build/node_modules/semver/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "_from": "semver@^5.5.0", - "_id": "semver@5.6.0", - "_inBundle": false, - "_integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", - "_location": "/semver", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "semver@^5.5.0", - "name": "semver", - "escapedName": "semver", - "rawSpec": "^5.5.0", - "saveSpec": null, - "fetchSpec": "^5.5.0" - }, - "_requiredBy": [ - "/cross-spawn" - ], - "_resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "_shasum": "7e74256fbaa49c75aa7c7a205cc22799cac80004", - "_spec": "semver@^5.5.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\cross-spawn", - "bin": { - "semver": "./bin/semver" - }, - "bugs": { - "url": "https://github.com/npm/node-semver/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "The semantic version parser used by npm.", - "devDependencies": { - "tap": "^12.0.1" - }, - "files": [ - "bin", - "range.bnf", - "semver.js" - ], - "homepage": "https://github.com/npm/node-semver#readme", - "license": "ISC", - "main": "semver.js", - "name": "semver", - "repository": { - "type": "git", - "url": "git+https://github.com/npm/node-semver.git" - }, - "scripts": { - "test": "tap test/*.js --cov -J" - }, - "version": "5.6.0" -} diff --git a/build/node_modules/semver/range.bnf b/build/node_modules/semver/range.bnf deleted file mode 100644 index d4c6ae0d7..000000000 --- a/build/node_modules/semver/range.bnf +++ /dev/null @@ -1,16 +0,0 @@ -range-set ::= range ( logical-or range ) * -logical-or ::= ( ' ' ) * '||' ( ' ' ) * -range ::= hyphen | simple ( ' ' simple ) * | '' -hyphen ::= partial ' - ' partial -simple ::= primitive | partial | tilde | caret -primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial -partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? -xr ::= 'x' | 'X' | '*' | nr -nr ::= '0' | [1-9] ( [0-9] ) * -tilde ::= '~' partial -caret ::= '^' partial -qualifier ::= ( '-' pre )? ( '+' build )? -pre ::= parts -build ::= parts -parts ::= part ( '.' part ) * -part ::= nr | [-0-9A-Za-z]+ diff --git a/build/node_modules/semver/semver.js b/build/node_modules/semver/semver.js deleted file mode 100644 index 0cc57350c..000000000 --- a/build/node_modules/semver/semver.js +++ /dev/null @@ -1,1352 +0,0 @@ -exports = module.exports = SemVer; - -// The debug function is excluded entirely from the minified version. -/* nomin */ var debug; -/* nomin */ if (typeof process === 'object' && - /* nomin */ process.env && - /* nomin */ process.env.NODE_DEBUG && - /* nomin */ /\bsemver\b/i.test(process.env.NODE_DEBUG)) - /* nomin */ debug = function() { - /* nomin */ var args = Array.prototype.slice.call(arguments, 0); - /* nomin */ args.unshift('SEMVER'); - /* nomin */ console.log.apply(console, args); - /* nomin */ }; -/* nomin */ else - /* nomin */ debug = function() {}; - -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -exports.SEMVER_SPEC_VERSION = '2.0.0'; - -var MAX_LENGTH = 256; -var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991; - -// Max safe segment length for coercion. -var MAX_SAFE_COMPONENT_LENGTH = 16; - -// The actual regexps go on exports.re -var re = exports.re = []; -var src = exports.src = []; -var R = 0; - -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. - -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. - -var NUMERICIDENTIFIER = R++; -src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'; -var NUMERICIDENTIFIERLOOSE = R++; -src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'; - - -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. - -var NONNUMERICIDENTIFIER = R++; -src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'; - - -// ## Main Version -// Three dot-separated numeric identifiers. - -var MAINVERSION = R++; -src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' + - '(' + src[NUMERICIDENTIFIER] + ')\\.' + - '(' + src[NUMERICIDENTIFIER] + ')'; - -var MAINVERSIONLOOSE = R++; -src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[NUMERICIDENTIFIERLOOSE] + ')'; - -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. - -var PRERELEASEIDENTIFIER = R++; -src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] + - '|' + src[NONNUMERICIDENTIFIER] + ')'; - -var PRERELEASEIDENTIFIERLOOSE = R++; -src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] + - '|' + src[NONNUMERICIDENTIFIER] + ')'; - - -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. - -var PRERELEASE = R++; -src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] + - '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'; - -var PRERELEASELOOSE = R++; -src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] + - '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'; - -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. - -var BUILDIDENTIFIER = R++; -src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'; - -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. - -var BUILD = R++; -src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] + - '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'; - - -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. - -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. - -var FULL = R++; -var FULLPLAIN = 'v?' + src[MAINVERSION] + - src[PRERELEASE] + '?' + - src[BUILD] + '?'; - -src[FULL] = '^' + FULLPLAIN + '$'; - -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] + - src[PRERELEASELOOSE] + '?' + - src[BUILD] + '?'; - -var LOOSE = R++; -src[LOOSE] = '^' + LOOSEPLAIN + '$'; - -var GTLT = R++; -src[GTLT] = '((?:<|>)?=?)'; - -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -var XRANGEIDENTIFIERLOOSE = R++; -src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'; -var XRANGEIDENTIFIER = R++; -src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'; - -var XRANGEPLAIN = R++; -src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + - '(?:' + src[PRERELEASE] + ')?' + - src[BUILD] + '?' + - ')?)?'; - -var XRANGEPLAINLOOSE = R++; -src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:' + src[PRERELEASELOOSE] + ')?' + - src[BUILD] + '?' + - ')?)?'; - -var XRANGE = R++; -src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'; -var XRANGELOOSE = R++; -src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'; - -// Coercion. -// Extract anything that could conceivably be a part of a valid semver -var COERCE = R++; -src[COERCE] = '(?:^|[^\\d])' + - '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:$|[^\\d])'; - -// Tilde ranges. -// Meaning is "reasonably at or greater than" -var LONETILDE = R++; -src[LONETILDE] = '(?:~>?)'; - -var TILDETRIM = R++; -src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'; -re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g'); -var tildeTrimReplace = '$1~'; - -var TILDE = R++; -src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'; -var TILDELOOSE = R++; -src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'; - -// Caret ranges. -// Meaning is "at least and backwards compatible with" -var LONECARET = R++; -src[LONECARET] = '(?:\\^)'; - -var CARETTRIM = R++; -src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'; -re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g'); -var caretTrimReplace = '$1^'; - -var CARET = R++; -src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'; -var CARETLOOSE = R++; -src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'; - -// A simple gt/lt/eq thing, or just "" to indicate "any version" -var COMPARATORLOOSE = R++; -src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'; -var COMPARATOR = R++; -src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'; - - -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -var COMPARATORTRIM = R++; -src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] + - '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'; - -// this one has to use the /g flag -re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g'); -var comparatorTrimReplace = '$1$2$3'; - - -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -var HYPHENRANGE = R++; -src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' + - '\\s+-\\s+' + - '(' + src[XRANGEPLAIN] + ')' + - '\\s*$'; - -var HYPHENRANGELOOSE = R++; -src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' + - '\\s+-\\s+' + - '(' + src[XRANGEPLAINLOOSE] + ')' + - '\\s*$'; - -// Star ranges basically just allow anything at all. -var STAR = R++; -src[STAR] = '(<|>)?=?\\s*\\*'; - -// Compile to actual regexp objects. -// All are flag-free, unless they were created above with a flag. -for (var i = 0; i < R; i++) { - debug(i, src[i]); - if (!re[i]) - re[i] = new RegExp(src[i]); -} - -exports.parse = parse; -function parse(version, options) { - if (!options || typeof options !== 'object') - options = { loose: !!options, includePrerelease: false } - - if (version instanceof SemVer) - return version; - - if (typeof version !== 'string') - return null; - - if (version.length > MAX_LENGTH) - return null; - - var r = options.loose ? re[LOOSE] : re[FULL]; - if (!r.test(version)) - return null; - - try { - return new SemVer(version, options); - } catch (er) { - return null; - } -} - -exports.valid = valid; -function valid(version, options) { - var v = parse(version, options); - return v ? v.version : null; -} - - -exports.clean = clean; -function clean(version, options) { - var s = parse(version.trim().replace(/^[=v]+/, ''), options); - return s ? s.version : null; -} - -exports.SemVer = SemVer; - -function SemVer(version, options) { - if (!options || typeof options !== 'object') - options = { loose: !!options, includePrerelease: false } - if (version instanceof SemVer) { - if (version.loose === options.loose) - return version; - else - version = version.version; - } else if (typeof version !== 'string') { - throw new TypeError('Invalid Version: ' + version); - } - - if (version.length > MAX_LENGTH) - throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters') - - if (!(this instanceof SemVer)) - return new SemVer(version, options); - - debug('SemVer', version, options); - this.options = options; - this.loose = !!options.loose; - - var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL]); - - if (!m) - throw new TypeError('Invalid Version: ' + version); - - this.raw = version; - - // these are actually numbers - this.major = +m[1]; - this.minor = +m[2]; - this.patch = +m[3]; - - if (this.major > MAX_SAFE_INTEGER || this.major < 0) - throw new TypeError('Invalid major version') - - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) - throw new TypeError('Invalid minor version') - - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) - throw new TypeError('Invalid patch version') - - // numberify any prerelease numeric ids - if (!m[4]) - this.prerelease = []; - else - this.prerelease = m[4].split('.').map(function(id) { - if (/^[0-9]+$/.test(id)) { - var num = +id; - if (num >= 0 && num < MAX_SAFE_INTEGER) - return num; - } - return id; - }); - - this.build = m[5] ? m[5].split('.') : []; - this.format(); -} - -SemVer.prototype.format = function() { - this.version = this.major + '.' + this.minor + '.' + this.patch; - if (this.prerelease.length) - this.version += '-' + this.prerelease.join('.'); - return this.version; -}; - -SemVer.prototype.toString = function() { - return this.version; -}; - -SemVer.prototype.compare = function(other) { - debug('SemVer.compare', this.version, this.options, other); - if (!(other instanceof SemVer)) - other = new SemVer(other, this.options); - - return this.compareMain(other) || this.comparePre(other); -}; - -SemVer.prototype.compareMain = function(other) { - if (!(other instanceof SemVer)) - other = new SemVer(other, this.options); - - return compareIdentifiers(this.major, other.major) || - compareIdentifiers(this.minor, other.minor) || - compareIdentifiers(this.patch, other.patch); -}; - -SemVer.prototype.comparePre = function(other) { - if (!(other instanceof SemVer)) - other = new SemVer(other, this.options); - - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) - return -1; - else if (!this.prerelease.length && other.prerelease.length) - return 1; - else if (!this.prerelease.length && !other.prerelease.length) - return 0; - - var i = 0; - do { - var a = this.prerelease[i]; - var b = other.prerelease[i]; - debug('prerelease compare', i, a, b); - if (a === undefined && b === undefined) - return 0; - else if (b === undefined) - return 1; - else if (a === undefined) - return -1; - else if (a === b) - continue; - else - return compareIdentifiers(a, b); - } while (++i); -}; - -// preminor will bump the version up to the next minor release, and immediately -// down to pre-release. premajor and prepatch work the same way. -SemVer.prototype.inc = function(release, identifier) { - switch (release) { - case 'premajor': - this.prerelease.length = 0; - this.patch = 0; - this.minor = 0; - this.major++; - this.inc('pre', identifier); - break; - case 'preminor': - this.prerelease.length = 0; - this.patch = 0; - this.minor++; - this.inc('pre', identifier); - break; - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0; - this.inc('patch', identifier); - this.inc('pre', identifier); - break; - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) - this.inc('patch', identifier); - this.inc('pre', identifier); - break; - - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) - this.major++; - this.minor = 0; - this.patch = 0; - this.prerelease = []; - break; - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) - this.minor++; - this.patch = 0; - this.prerelease = []; - break; - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) - this.patch++; - this.prerelease = []; - break; - // This probably shouldn't be used publicly. - // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. - case 'pre': - if (this.prerelease.length === 0) - this.prerelease = [0]; - else { - var i = this.prerelease.length; - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++; - i = -2; - } - } - if (i === -1) // didn't increment anything - this.prerelease.push(0); - } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - if (this.prerelease[0] === identifier) { - if (isNaN(this.prerelease[1])) - this.prerelease = [identifier, 0]; - } else - this.prerelease = [identifier, 0]; - } - break; - - default: - throw new Error('invalid increment argument: ' + release); - } - this.format(); - this.raw = this.version; - return this; -}; - -exports.inc = inc; -function inc(version, release, loose, identifier) { - if (typeof(loose) === 'string') { - identifier = loose; - loose = undefined; - } - - try { - return new SemVer(version, loose).inc(release, identifier).version; - } catch (er) { - return null; - } -} - -exports.diff = diff; -function diff(version1, version2) { - if (eq(version1, version2)) { - return null; - } else { - var v1 = parse(version1); - var v2 = parse(version2); - if (v1.prerelease.length || v2.prerelease.length) { - for (var key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return 'pre'+key; - } - } - } - return 'prerelease'; - } - for (var key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return key; - } - } - } - } -} - -exports.compareIdentifiers = compareIdentifiers; - -var numeric = /^[0-9]+$/; -function compareIdentifiers(a, b) { - var anum = numeric.test(a); - var bnum = numeric.test(b); - - if (anum && bnum) { - a = +a; - b = +b; - } - - return (anum && !bnum) ? -1 : - (bnum && !anum) ? 1 : - a < b ? -1 : - a > b ? 1 : - 0; -} - -exports.rcompareIdentifiers = rcompareIdentifiers; -function rcompareIdentifiers(a, b) { - return compareIdentifiers(b, a); -} - -exports.major = major; -function major(a, loose) { - return new SemVer(a, loose).major; -} - -exports.minor = minor; -function minor(a, loose) { - return new SemVer(a, loose).minor; -} - -exports.patch = patch; -function patch(a, loose) { - return new SemVer(a, loose).patch; -} - -exports.compare = compare; -function compare(a, b, loose) { - return new SemVer(a, loose).compare(new SemVer(b, loose)); -} - -exports.compareLoose = compareLoose; -function compareLoose(a, b) { - return compare(a, b, true); -} - -exports.rcompare = rcompare; -function rcompare(a, b, loose) { - return compare(b, a, loose); -} - -exports.sort = sort; -function sort(list, loose) { - return list.sort(function(a, b) { - return exports.compare(a, b, loose); - }); -} - -exports.rsort = rsort; -function rsort(list, loose) { - return list.sort(function(a, b) { - return exports.rcompare(a, b, loose); - }); -} - -exports.gt = gt; -function gt(a, b, loose) { - return compare(a, b, loose) > 0; -} - -exports.lt = lt; -function lt(a, b, loose) { - return compare(a, b, loose) < 0; -} - -exports.eq = eq; -function eq(a, b, loose) { - return compare(a, b, loose) === 0; -} - -exports.neq = neq; -function neq(a, b, loose) { - return compare(a, b, loose) !== 0; -} - -exports.gte = gte; -function gte(a, b, loose) { - return compare(a, b, loose) >= 0; -} - -exports.lte = lte; -function lte(a, b, loose) { - return compare(a, b, loose) <= 0; -} - -exports.cmp = cmp; -function cmp(a, op, b, loose) { - var ret; - switch (op) { - case '===': - if (typeof a === 'object') a = a.version; - if (typeof b === 'object') b = b.version; - ret = a === b; - break; - case '!==': - if (typeof a === 'object') a = a.version; - if (typeof b === 'object') b = b.version; - ret = a !== b; - break; - case '': case '=': case '==': ret = eq(a, b, loose); break; - case '!=': ret = neq(a, b, loose); break; - case '>': ret = gt(a, b, loose); break; - case '>=': ret = gte(a, b, loose); break; - case '<': ret = lt(a, b, loose); break; - case '<=': ret = lte(a, b, loose); break; - default: throw new TypeError('Invalid operator: ' + op); - } - return ret; -} - -exports.Comparator = Comparator; -function Comparator(comp, options) { - if (!options || typeof options !== 'object') - options = { loose: !!options, includePrerelease: false } - - if (comp instanceof Comparator) { - if (comp.loose === !!options.loose) - return comp; - else - comp = comp.value; - } - - if (!(this instanceof Comparator)) - return new Comparator(comp, options); - - debug('comparator', comp, options); - this.options = options; - this.loose = !!options.loose; - this.parse(comp); - - if (this.semver === ANY) - this.value = ''; - else - this.value = this.operator + this.semver.version; - - debug('comp', this); -} - -var ANY = {}; -Comparator.prototype.parse = function(comp) { - var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]; - var m = comp.match(r); - - if (!m) - throw new TypeError('Invalid comparator: ' + comp); - - this.operator = m[1]; - if (this.operator === '=') - this.operator = ''; - - // if it literally is just '>' or '' then allow anything. - if (!m[2]) - this.semver = ANY; - else - this.semver = new SemVer(m[2], this.options.loose); -}; - -Comparator.prototype.toString = function() { - return this.value; -}; - -Comparator.prototype.test = function(version) { - debug('Comparator.test', version, this.options.loose); - - if (this.semver === ANY) - return true; - - if (typeof version === 'string') - version = new SemVer(version, this.options); - - return cmp(version, this.operator, this.semver, this.options); -}; - -Comparator.prototype.intersects = function(comp, options) { - if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required'); - } - - if (!options || typeof options !== 'object') - options = { loose: !!options, includePrerelease: false } - - var rangeTmp; - - if (this.operator === '') { - rangeTmp = new Range(comp.value, options); - return satisfies(this.value, rangeTmp, options); - } else if (comp.operator === '') { - rangeTmp = new Range(this.value, options); - return satisfies(comp.semver, rangeTmp, options); - } - - var sameDirectionIncreasing = - (this.operator === '>=' || this.operator === '>') && - (comp.operator === '>=' || comp.operator === '>'); - var sameDirectionDecreasing = - (this.operator === '<=' || this.operator === '<') && - (comp.operator === '<=' || comp.operator === '<'); - var sameSemVer = this.semver.version === comp.semver.version; - var differentDirectionsInclusive = - (this.operator === '>=' || this.operator === '<=') && - (comp.operator === '>=' || comp.operator === '<='); - var oppositeDirectionsLessThan = - cmp(this.semver, '<', comp.semver, options) && - ((this.operator === '>=' || this.operator === '>') && - (comp.operator === '<=' || comp.operator === '<')); - var oppositeDirectionsGreaterThan = - cmp(this.semver, '>', comp.semver, options) && - ((this.operator === '<=' || this.operator === '<') && - (comp.operator === '>=' || comp.operator === '>')); - - return sameDirectionIncreasing || sameDirectionDecreasing || - (sameSemVer && differentDirectionsInclusive) || - oppositeDirectionsLessThan || oppositeDirectionsGreaterThan; -}; - - -exports.Range = Range; -function Range(range, options) { - if (!options || typeof options !== 'object') - options = { loose: !!options, includePrerelease: false } - - if (range instanceof Range) { - if (range.loose === !!options.loose && - range.includePrerelease === !!options.includePrerelease) { - return range; - } else { - return new Range(range.raw, options); - } - } - - if (range instanceof Comparator) { - return new Range(range.value, options); - } - - if (!(this instanceof Range)) - return new Range(range, options); - - this.options = options; - this.loose = !!options.loose; - this.includePrerelease = !!options.includePrerelease - - // First, split based on boolean or || - this.raw = range; - this.set = range.split(/\s*\|\|\s*/).map(function(range) { - return this.parseRange(range.trim()); - }, this).filter(function(c) { - // throw out any that are not relevant for whatever reason - return c.length; - }); - - if (!this.set.length) { - throw new TypeError('Invalid SemVer Range: ' + range); - } - - this.format(); -} - -Range.prototype.format = function() { - this.range = this.set.map(function(comps) { - return comps.join(' ').trim(); - }).join('||').trim(); - return this.range; -}; - -Range.prototype.toString = function() { - return this.range; -}; - -Range.prototype.parseRange = function(range) { - var loose = this.options.loose; - range = range.trim(); - // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]; - range = range.replace(hr, hyphenReplace); - debug('hyphen replace', range); - // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace); - debug('comparator trim', range, re[COMPARATORTRIM]); - - // `~ 1.2.3` => `~1.2.3` - range = range.replace(re[TILDETRIM], tildeTrimReplace); - - // `^ 1.2.3` => `^1.2.3` - range = range.replace(re[CARETTRIM], caretTrimReplace); - - // normalize spaces - range = range.split(/\s+/).join(' '); - - // At this point, the range is completely trimmed and - // ready to be split into comparators. - - var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]; - var set = range.split(' ').map(function(comp) { - return parseComparator(comp, this.options); - }, this).join(' ').split(/\s+/); - if (this.options.loose) { - // in loose mode, throw out any that are not valid comparators - set = set.filter(function(comp) { - return !!comp.match(compRe); - }); - } - set = set.map(function(comp) { - return new Comparator(comp, this.options); - }, this); - - return set; -}; - -Range.prototype.intersects = function(range, options) { - if (!(range instanceof Range)) { - throw new TypeError('a Range is required'); - } - - return this.set.some(function(thisComparators) { - return thisComparators.every(function(thisComparator) { - return range.set.some(function(rangeComparators) { - return rangeComparators.every(function(rangeComparator) { - return thisComparator.intersects(rangeComparator, options); - }); - }); - }); - }); -}; - -// Mostly just for testing and legacy API reasons -exports.toComparators = toComparators; -function toComparators(range, options) { - return new Range(range, options).set.map(function(comp) { - return comp.map(function(c) { - return c.value; - }).join(' ').trim().split(' '); - }); -} - -// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -function parseComparator(comp, options) { - debug('comp', comp, options); - comp = replaceCarets(comp, options); - debug('caret', comp); - comp = replaceTildes(comp, options); - debug('tildes', comp); - comp = replaceXRanges(comp, options); - debug('xrange', comp); - comp = replaceStars(comp, options); - debug('stars', comp); - return comp; -} - -function isX(id) { - return !id || id.toLowerCase() === 'x' || id === '*'; -} - -// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 -function replaceTildes(comp, options) { - return comp.trim().split(/\s+/).map(function(comp) { - return replaceTilde(comp, options); - }).join(' '); -} - -function replaceTilde(comp, options) { - if (!options || typeof options !== 'object') - options = { loose: !!options, includePrerelease: false } - var r = options.loose ? re[TILDELOOSE] : re[TILDE]; - return comp.replace(r, function(_, M, m, p, pr) { - debug('tilde', comp, _, M, m, p, pr); - var ret; - - if (isX(M)) - ret = ''; - else if (isX(m)) - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; - else if (isX(p)) - // ~1.2 == >=1.2.0 <1.3.0 - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; - else if (pr) { - debug('replaceTilde pr', pr); - if (pr.charAt(0) !== '-') - pr = '-' + pr; - ret = '>=' + M + '.' + m + '.' + p + pr + - ' <' + M + '.' + (+m + 1) + '.0'; - } else - // ~1.2.3 == >=1.2.3 <1.3.0 - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0'; - - debug('tilde return', ret); - return ret; - }); -} - -// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 -// ^1.2.3 --> >=1.2.3 <2.0.0 -// ^1.2.0 --> >=1.2.0 <2.0.0 -function replaceCarets(comp, options) { - return comp.trim().split(/\s+/).map(function(comp) { - return replaceCaret(comp, options); - }).join(' '); -} - -function replaceCaret(comp, options) { - debug('caret', comp, options); - if (!options || typeof options !== 'object') - options = { loose: !!options, includePrerelease: false } - var r = options.loose ? re[CARETLOOSE] : re[CARET]; - return comp.replace(r, function(_, M, m, p, pr) { - debug('caret', comp, _, M, m, p, pr); - var ret; - - if (isX(M)) - ret = ''; - else if (isX(m)) - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; - else if (isX(p)) { - if (M === '0') - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; - else - ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'; - } else if (pr) { - debug('replaceCaret pr', pr); - if (pr.charAt(0) !== '-') - pr = '-' + pr; - if (M === '0') { - if (m === '0') - ret = '>=' + M + '.' + m + '.' + p + pr + - ' <' + M + '.' + m + '.' + (+p + 1); - else - ret = '>=' + M + '.' + m + '.' + p + pr + - ' <' + M + '.' + (+m + 1) + '.0'; - } else - ret = '>=' + M + '.' + m + '.' + p + pr + - ' <' + (+M + 1) + '.0.0'; - } else { - debug('no pr'); - if (M === '0') { - if (m === '0') - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + m + '.' + (+p + 1); - else - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0'; - } else - ret = '>=' + M + '.' + m + '.' + p + - ' <' + (+M + 1) + '.0.0'; - } - - debug('caret return', ret); - return ret; - }); -} - -function replaceXRanges(comp, options) { - debug('replaceXRanges', comp, options); - return comp.split(/\s+/).map(function(comp) { - return replaceXRange(comp, options); - }).join(' '); -} - -function replaceXRange(comp, options) { - comp = comp.trim(); - if (!options || typeof options !== 'object') - options = { loose: !!options, includePrerelease: false } - var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]; - return comp.replace(r, function(ret, gtlt, M, m, p, pr) { - debug('xRange', comp, ret, gtlt, M, m, p, pr); - var xM = isX(M); - var xm = xM || isX(m); - var xp = xm || isX(p); - var anyX = xp; - - if (gtlt === '=' && anyX) - gtlt = ''; - - if (xM) { - if (gtlt === '>' || gtlt === '<') { - // nothing is allowed - ret = '<0.0.0'; - } else { - // nothing is forbidden - ret = '*'; - } - } else if (gtlt && anyX) { - // replace X with 0 - if (xm) - m = 0; - if (xp) - p = 0; - - if (gtlt === '>') { - // >1 => >=2.0.0 - // >1.2 => >=1.3.0 - // >1.2.3 => >= 1.2.4 - gtlt = '>='; - if (xm) { - M = +M + 1; - m = 0; - p = 0; - } else if (xp) { - m = +m + 1; - p = 0; - } - } else if (gtlt === '<=') { - // <=0.7.x is actually <0.8.0, since any 0.7.x should - // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<'; - if (xm) - M = +M + 1; - else - m = +m + 1; - } - - ret = gtlt + M + '.' + m + '.' + p; - } else if (xm) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; - } else if (xp) { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; - } - - debug('xRange return', ret); - - return ret; - }); -} - -// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -function replaceStars(comp, options) { - debug('replaceStars', comp, options); - // Looseness is ignored here. star is always as loose as it gets! - return comp.trim().replace(re[STAR], ''); -} - -// This function is passed to string.replace(re[HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0 -function hyphenReplace($0, - from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr, tb) { - - if (isX(fM)) - from = ''; - else if (isX(fm)) - from = '>=' + fM + '.0.0'; - else if (isX(fp)) - from = '>=' + fM + '.' + fm + '.0'; - else - from = '>=' + from; - - if (isX(tM)) - to = ''; - else if (isX(tm)) - to = '<' + (+tM + 1) + '.0.0'; - else if (isX(tp)) - to = '<' + tM + '.' + (+tm + 1) + '.0'; - else if (tpr) - to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr; - else - to = '<=' + to; - - return (from + ' ' + to).trim(); -} - - -// if ANY of the sets match ALL of its comparators, then pass -Range.prototype.test = function(version) { - if (!version) - return false; - - if (typeof version === 'string') - version = new SemVer(version, this.options); - - for (var i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version, this.options)) - return true; - } - return false; -}; - -function testSet(set, version, options) { - for (var i = 0; i < set.length; i++) { - if (!set[i].test(version)) - return false; - } - - if (!options) - options = {} - - if (version.prerelease.length && !options.includePrerelease) { - // Find the set of versions that are allowed to have prereleases - // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 - // That should allow `1.2.3-pr.2` to pass. - // However, `1.2.4-alpha.notready` should NOT be allowed, - // even though it's within the range set by the comparators. - for (var i = 0; i < set.length; i++) { - debug(set[i].semver); - if (set[i].semver === ANY) - continue; - - if (set[i].semver.prerelease.length > 0) { - var allowed = set[i].semver; - if (allowed.major === version.major && - allowed.minor === version.minor && - allowed.patch === version.patch) - return true; - } - } - - // Version has a -pre, but it's not one of the ones we like. - return false; - } - - return true; -} - -exports.satisfies = satisfies; -function satisfies(version, range, options) { - try { - range = new Range(range, options); - } catch (er) { - return false; - } - return range.test(version); -} - -exports.maxSatisfying = maxSatisfying; -function maxSatisfying(versions, range, options) { - var max = null; - var maxSV = null; - try { - var rangeObj = new Range(range, options); - } catch (er) { - return null; - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { // satisfies(v, range, options) - if (!max || maxSV.compare(v) === -1) { // compare(max, v, true) - max = v; - maxSV = new SemVer(max, options); - } - } - }) - return max; -} - -exports.minSatisfying = minSatisfying; -function minSatisfying(versions, range, options) { - var min = null; - var minSV = null; - try { - var rangeObj = new Range(range, options); - } catch (er) { - return null; - } - versions.forEach(function (v) { - if (rangeObj.test(v)) { // satisfies(v, range, options) - if (!min || minSV.compare(v) === 1) { // compare(min, v, true) - min = v; - minSV = new SemVer(min, options); - } - } - }) - return min; -} - -exports.validRange = validRange; -function validRange(range, options) { - try { - // Return '*' instead of '' so that truthiness works. - // This will throw if it's invalid anyway - return new Range(range, options).range || '*'; - } catch (er) { - return null; - } -} - -// Determine if version is less than all the versions possible in the range -exports.ltr = ltr; -function ltr(version, range, options) { - return outside(version, range, '<', options); -} - -// Determine if version is greater than all the versions possible in the range. -exports.gtr = gtr; -function gtr(version, range, options) { - return outside(version, range, '>', options); -} - -exports.outside = outside; -function outside(version, range, hilo, options) { - version = new SemVer(version, options); - range = new Range(range, options); - - var gtfn, ltefn, ltfn, comp, ecomp; - switch (hilo) { - case '>': - gtfn = gt; - ltefn = lte; - ltfn = lt; - comp = '>'; - ecomp = '>='; - break; - case '<': - gtfn = lt; - ltefn = gte; - ltfn = gt; - comp = '<'; - ecomp = '<='; - break; - default: - throw new TypeError('Must provide a hilo val of "<" or ">"'); - } - - // If it satisifes the range it is not outside - if (satisfies(version, range, options)) { - return false; - } - - // From now on, variable terms are as if we're in "gtr" mode. - // but note that everything is flipped for the "ltr" function. - - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i]; - - var high = null; - var low = null; - - comparators.forEach(function(comparator) { - if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0') - } - high = high || comparator; - low = low || comparator; - if (gtfn(comparator.semver, high.semver, options)) { - high = comparator; - } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator; - } - }); - - // If the edge version comparator has a operator then our version - // isn't outside it - if (high.operator === comp || high.operator === ecomp) { - return false; - } - - // If the lowest version comparator has an operator and our version - // is less than it then it isn't higher than the range - if ((!low.operator || low.operator === comp) && - ltefn(version, low.semver)) { - return false; - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false; - } - } - return true; -} - -exports.prerelease = prerelease; -function prerelease(version, options) { - var parsed = parse(version, options); - return (parsed && parsed.prerelease.length) ? parsed.prerelease : null; -} - -exports.intersects = intersects; -function intersects(r1, r2, options) { - r1 = new Range(r1, options) - r2 = new Range(r2, options) - return r1.intersects(r2) -} - -exports.coerce = coerce; -function coerce(version) { - if (version instanceof SemVer) - return version; - - if (typeof version !== 'string') - return null; - - var match = version.match(re[COERCE]); - - if (match == null) - return null; - - return parse((match[1] || '0') + '.' + (match[2] || '0') + '.' + (match[3] || '0')); -} diff --git a/build/node_modules/shebang-command/index.js b/build/node_modules/shebang-command/index.js deleted file mode 100644 index 2de70b074..000000000 --- a/build/node_modules/shebang-command/index.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; -var shebangRegex = require('shebang-regex'); - -module.exports = function (str) { - var match = str.match(shebangRegex); - - if (!match) { - return null; - } - - var arr = match[0].replace(/#! ?/, '').split(' '); - var bin = arr[0].split('/').pop(); - var arg = arr[1]; - - return (bin === 'env' ? - arg : - bin + (arg ? ' ' + arg : '') - ); -}; diff --git a/build/node_modules/shebang-command/license b/build/node_modules/shebang-command/license deleted file mode 100644 index 0f8cf79c3..000000000 --- a/build/node_modules/shebang-command/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Kevin Martensson (github.com/kevva) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/shebang-command/package.json b/build/node_modules/shebang-command/package.json deleted file mode 100644 index 884ec31f9..000000000 --- a/build/node_modules/shebang-command/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "_from": "shebang-command@^1.2.0", - "_id": "shebang-command@1.2.0", - "_inBundle": false, - "_integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "_location": "/shebang-command", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "shebang-command@^1.2.0", - "name": "shebang-command", - "escapedName": "shebang-command", - "rawSpec": "^1.2.0", - "saveSpec": null, - "fetchSpec": "^1.2.0" - }, - "_requiredBy": [ - "/cross-spawn" - ], - "_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "_shasum": "44aac65b695b03398968c39f363fee5deafdf1ea", - "_spec": "shebang-command@^1.2.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\cross-spawn", - "author": { - "name": "Kevin Martensson", - "email": "kevinmartensson@gmail.com", - "url": "github.com/kevva" - }, - "bugs": { - "url": "https://github.com/kevva/shebang-command/issues" - }, - "bundleDependencies": false, - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "deprecated": false, - "description": "Get the command from a shebang", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/kevva/shebang-command#readme", - "keywords": [ - "cmd", - "command", - "parse", - "shebang" - ], - "license": "MIT", - "name": "shebang-command", - "repository": { - "type": "git", - "url": "git+https://github.com/kevva/shebang-command.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.2.0", - "xo": { - "ignores": [ - "test.js" - ] - } -} diff --git a/build/node_modules/shebang-command/readme.md b/build/node_modules/shebang-command/readme.md deleted file mode 100644 index 16b0be4d7..000000000 --- a/build/node_modules/shebang-command/readme.md +++ /dev/null @@ -1,39 +0,0 @@ -# shebang-command [![Build Status](https://travis-ci.org/kevva/shebang-command.svg?branch=master)](https://travis-ci.org/kevva/shebang-command) - -> Get the command from a shebang - - -## Install - -``` -$ npm install --save shebang-command -``` - - -## Usage - -```js -const shebangCommand = require('shebang-command'); - -shebangCommand('#!/usr/bin/env node'); -//=> 'node' - -shebangCommand('#!/bin/bash'); -//=> 'bash' -``` - - -## API - -### shebangCommand(string) - -#### string - -Type: `string` - -String containing a shebang. - - -## License - -MIT © [Kevin Martensson](http://github.com/kevva) diff --git a/build/node_modules/shebang-regex/index.js b/build/node_modules/shebang-regex/index.js deleted file mode 100644 index d052d2e05..000000000 --- a/build/node_modules/shebang-regex/index.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -module.exports = /^#!.*/; diff --git a/build/node_modules/shebang-regex/license b/build/node_modules/shebang-regex/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/build/node_modules/shebang-regex/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/shebang-regex/package.json b/build/node_modules/shebang-regex/package.json deleted file mode 100644 index 3b185419c..000000000 --- a/build/node_modules/shebang-regex/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "_from": "shebang-regex@^1.0.0", - "_id": "shebang-regex@1.0.0", - "_inBundle": false, - "_integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "_location": "/shebang-regex", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "shebang-regex@^1.0.0", - "name": "shebang-regex", - "escapedName": "shebang-regex", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/shebang-command" - ], - "_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "_shasum": "da42f49740c0b42db2ca9728571cb190c98efea3", - "_spec": "shebang-regex@^1.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\shebang-command", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/shebang-regex/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Regular expression for matching a shebang", - "devDependencies": { - "ava": "0.0.4" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/shebang-regex#readme", - "keywords": [ - "re", - "regex", - "regexp", - "shebang", - "match", - "test" - ], - "license": "MIT", - "name": "shebang-regex", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/shebang-regex.git" - }, - "scripts": { - "test": "node test.js" - }, - "version": "1.0.0" -} diff --git a/build/node_modules/shebang-regex/readme.md b/build/node_modules/shebang-regex/readme.md deleted file mode 100644 index ef75e51b5..000000000 --- a/build/node_modules/shebang-regex/readme.md +++ /dev/null @@ -1,29 +0,0 @@ -# shebang-regex [![Build Status](https://travis-ci.org/sindresorhus/shebang-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/shebang-regex) - -> Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) - - -## Install - -``` -$ npm install --save shebang-regex -``` - - -## Usage - -```js -var shebangRegex = require('shebang-regex'); -var str = '#!/usr/bin/env node\nconsole.log("unicorns");'; - -shebangRegex.test(str); -//=> true - -shebangRegex.exec(str)[0]; -//=> '#!/usr/bin/env node' -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/build/node_modules/signal-exit/CHANGELOG.md b/build/node_modules/signal-exit/CHANGELOG.md deleted file mode 100644 index e2f70d225..000000000 --- a/build/node_modules/signal-exit/CHANGELOG.md +++ /dev/null @@ -1,27 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - - -## [3.0.1](https://github.com/tapjs/signal-exit/compare/v3.0.0...v3.0.1) (2016-09-08) - - -### Bug Fixes - -* do not listen on SIGBUS, SIGFPE, SIGSEGV and SIGILL ([#40](https://github.com/tapjs/signal-exit/issues/40)) ([5b105fb](https://github.com/tapjs/signal-exit/commit/5b105fb)) - - - - -# [3.0.0](https://github.com/tapjs/signal-exit/compare/v2.1.2...v3.0.0) (2016-06-13) - - -### Bug Fixes - -* get our test suite running on Windows ([#23](https://github.com/tapjs/signal-exit/issues/23)) ([6f3eda8](https://github.com/tapjs/signal-exit/commit/6f3eda8)) -* hooking SIGPROF was interfering with profilers see [#21](https://github.com/tapjs/signal-exit/issues/21) ([#24](https://github.com/tapjs/signal-exit/issues/24)) ([1248a4c](https://github.com/tapjs/signal-exit/commit/1248a4c)) - - -### BREAKING CHANGES - -* signal-exit no longer wires into SIGPROF diff --git a/build/node_modules/signal-exit/LICENSE.txt b/build/node_modules/signal-exit/LICENSE.txt deleted file mode 100644 index eead04a12..000000000 --- a/build/node_modules/signal-exit/LICENSE.txt +++ /dev/null @@ -1,16 +0,0 @@ -The ISC License - -Copyright (c) 2015, Contributors - -Permission to use, copy, modify, and/or distribute this software -for any purpose with or without fee is hereby granted, provided -that the above copyright notice and this permission notice -appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE -LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build/node_modules/signal-exit/README.md b/build/node_modules/signal-exit/README.md deleted file mode 100644 index 8ebccabec..000000000 --- a/build/node_modules/signal-exit/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# signal-exit - -[![Build Status](https://travis-ci.org/tapjs/signal-exit.png)](https://travis-ci.org/tapjs/signal-exit) -[![Coverage](https://coveralls.io/repos/tapjs/signal-exit/badge.svg?branch=master)](https://coveralls.io/r/tapjs/signal-exit?branch=master) -[![NPM version](https://img.shields.io/npm/v/signal-exit.svg)](https://www.npmjs.com/package/signal-exit) -[![Windows Tests](https://img.shields.io/appveyor/ci/bcoe/signal-exit/master.svg?label=Windows%20Tests)](https://ci.appveyor.com/project/bcoe/signal-exit) -[![Standard Version](https://img.shields.io/badge/release-standard%20version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version) - -When you want to fire an event no matter how a process exits: - -* reaching the end of execution. -* explicitly having `process.exit(code)` called. -* having `process.kill(pid, sig)` called. -* receiving a fatal signal from outside the process - -Use `signal-exit`. - -```js -var onExit = require('signal-exit') - -onExit(function (code, signal) { - console.log('process exited!') -}) -``` - -## API - -`var remove = onExit(function (code, signal) {}, options)` - -The return value of the function is a function that will remove the -handler. - -Note that the function *only* fires for signals if the signal would -cause the proces to exit. That is, there are no other listeners, and -it is a fatal signal. - -## Options - -* `alwaysLast`: Run this handler after any other signal or exit - handlers. This causes `process.emit` to be monkeypatched. diff --git a/build/node_modules/signal-exit/index.js b/build/node_modules/signal-exit/index.js deleted file mode 100644 index 337f691ed..000000000 --- a/build/node_modules/signal-exit/index.js +++ /dev/null @@ -1,157 +0,0 @@ -// Note: since nyc uses this module to output coverage, any lines -// that are in the direct sync flow of nyc's outputCoverage are -// ignored, since we can never get coverage for them. -var assert = require('assert') -var signals = require('./signals.js') - -var EE = require('events') -/* istanbul ignore if */ -if (typeof EE !== 'function') { - EE = EE.EventEmitter -} - -var emitter -if (process.__signal_exit_emitter__) { - emitter = process.__signal_exit_emitter__ -} else { - emitter = process.__signal_exit_emitter__ = new EE() - emitter.count = 0 - emitter.emitted = {} -} - -// Because this emitter is a global, we have to check to see if a -// previous version of this library failed to enable infinite listeners. -// I know what you're about to say. But literally everything about -// signal-exit is a compromise with evil. Get used to it. -if (!emitter.infinite) { - emitter.setMaxListeners(Infinity) - emitter.infinite = true -} - -module.exports = function (cb, opts) { - assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler') - - if (loaded === false) { - load() - } - - var ev = 'exit' - if (opts && opts.alwaysLast) { - ev = 'afterexit' - } - - var remove = function () { - emitter.removeListener(ev, cb) - if (emitter.listeners('exit').length === 0 && - emitter.listeners('afterexit').length === 0) { - unload() - } - } - emitter.on(ev, cb) - - return remove -} - -module.exports.unload = unload -function unload () { - if (!loaded) { - return - } - loaded = false - - signals.forEach(function (sig) { - try { - process.removeListener(sig, sigListeners[sig]) - } catch (er) {} - }) - process.emit = originalProcessEmit - process.reallyExit = originalProcessReallyExit - emitter.count -= 1 -} - -function emit (event, code, signal) { - if (emitter.emitted[event]) { - return - } - emitter.emitted[event] = true - emitter.emit(event, code, signal) -} - -// { : , ... } -var sigListeners = {} -signals.forEach(function (sig) { - sigListeners[sig] = function listener () { - // If there are no other listeners, an exit is coming! - // Simplest way: remove us and then re-send the signal. - // We know that this will kill the process, so we can - // safely emit now. - var listeners = process.listeners(sig) - if (listeners.length === emitter.count) { - unload() - emit('exit', null, sig) - /* istanbul ignore next */ - emit('afterexit', null, sig) - /* istanbul ignore next */ - process.kill(process.pid, sig) - } - } -}) - -module.exports.signals = function () { - return signals -} - -module.exports.load = load - -var loaded = false - -function load () { - if (loaded) { - return - } - loaded = true - - // This is the number of onSignalExit's that are in play. - // It's important so that we can count the correct number of - // listeners on signals, and don't wait for the other one to - // handle it instead of us. - emitter.count += 1 - - signals = signals.filter(function (sig) { - try { - process.on(sig, sigListeners[sig]) - return true - } catch (er) { - return false - } - }) - - process.emit = processEmit - process.reallyExit = processReallyExit -} - -var originalProcessReallyExit = process.reallyExit -function processReallyExit (code) { - process.exitCode = code || 0 - emit('exit', process.exitCode, null) - /* istanbul ignore next */ - emit('afterexit', process.exitCode, null) - /* istanbul ignore next */ - originalProcessReallyExit.call(process, process.exitCode) -} - -var originalProcessEmit = process.emit -function processEmit (ev, arg) { - if (ev === 'exit') { - if (arg !== undefined) { - process.exitCode = arg - } - var ret = originalProcessEmit.apply(this, arguments) - emit('exit', process.exitCode, null) - /* istanbul ignore next */ - emit('afterexit', process.exitCode, null) - return ret - } else { - return originalProcessEmit.apply(this, arguments) - } -} diff --git a/build/node_modules/signal-exit/package.json b/build/node_modules/signal-exit/package.json deleted file mode 100644 index 290cafade..000000000 --- a/build/node_modules/signal-exit/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "_from": "signal-exit@^3.0.0", - "_id": "signal-exit@3.0.2", - "_inBundle": false, - "_integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "_location": "/signal-exit", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "signal-exit@^3.0.0", - "name": "signal-exit", - "escapedName": "signal-exit", - "rawSpec": "^3.0.0", - "saveSpec": null, - "fetchSpec": "^3.0.0" - }, - "_requiredBy": [ - "/execa" - ], - "_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "_shasum": "b5fdc08f1287ea1178628e415e25132b73646c6d", - "_spec": "signal-exit@^3.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\execa", - "author": { - "name": "Ben Coe", - "email": "ben@npmjs.com" - }, - "bugs": { - "url": "https://github.com/tapjs/signal-exit/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "when you want to fire an event no matter how a process exits.", - "devDependencies": { - "chai": "^3.5.0", - "coveralls": "^2.11.10", - "nyc": "^8.1.0", - "standard": "^7.1.2", - "standard-version": "^2.3.0", - "tap": "^8.0.1" - }, - "files": [ - "index.js", - "signals.js" - ], - "homepage": "https://github.com/tapjs/signal-exit", - "keywords": [ - "signal", - "exit" - ], - "license": "ISC", - "main": "index.js", - "name": "signal-exit", - "repository": { - "type": "git", - "url": "git+https://github.com/tapjs/signal-exit.git" - }, - "scripts": { - "coverage": "nyc report --reporter=text-lcov | coveralls", - "pretest": "standard", - "release": "standard-version", - "test": "tap --timeout=240 ./test/*.js --cov" - }, - "version": "3.0.2" -} diff --git a/build/node_modules/signal-exit/signals.js b/build/node_modules/signal-exit/signals.js deleted file mode 100644 index 3bd67a8a5..000000000 --- a/build/node_modules/signal-exit/signals.js +++ /dev/null @@ -1,53 +0,0 @@ -// This is not the set of all possible signals. -// -// It IS, however, the set of all signals that trigger -// an exit on either Linux or BSD systems. Linux is a -// superset of the signal names supported on BSD, and -// the unknown signals just fail to register, so we can -// catch that easily enough. -// -// Don't bother with SIGKILL. It's uncatchable, which -// means that we can't fire any callbacks anyway. -// -// If a user does happen to register a handler on a non- -// fatal signal like SIGWINCH or something, and then -// exit, it'll end up firing `process.emit('exit')`, so -// the handler will be fired anyway. -// -// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised -// artificially, inherently leave the process in a -// state from which it is not safe to try and enter JS -// listeners. -module.exports = [ - 'SIGABRT', - 'SIGALRM', - 'SIGHUP', - 'SIGINT', - 'SIGTERM' -] - -if (process.platform !== 'win32') { - module.exports.push( - 'SIGVTALRM', - 'SIGXCPU', - 'SIGXFSZ', - 'SIGUSR2', - 'SIGTRAP', - 'SIGSYS', - 'SIGQUIT', - 'SIGIOT' - // should detect profiler and enable/disable accordingly. - // see #21 - // 'SIGPROF' - ) -} - -if (process.platform === 'linux') { - module.exports.push( - 'SIGIO', - 'SIGPOLL', - 'SIGPWR', - 'SIGSTKFLT', - 'SIGUNUSED' - ) -} diff --git a/build/node_modules/strip-eof/index.js b/build/node_modules/strip-eof/index.js deleted file mode 100644 index a17d0afd3..000000000 --- a/build/node_modules/strip-eof/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; -module.exports = function (x) { - var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt(); - var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt(); - - if (x[x.length - 1] === lf) { - x = x.slice(0, x.length - 1); - } - - if (x[x.length - 1] === cr) { - x = x.slice(0, x.length - 1); - } - - return x; -}; diff --git a/build/node_modules/strip-eof/license b/build/node_modules/strip-eof/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/build/node_modules/strip-eof/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/build/node_modules/strip-eof/package.json b/build/node_modules/strip-eof/package.json deleted file mode 100644 index 47d488bef..000000000 --- a/build/node_modules/strip-eof/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "_from": "strip-eof@^1.0.0", - "_id": "strip-eof@1.0.0", - "_inBundle": false, - "_integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "_location": "/strip-eof", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "strip-eof@^1.0.0", - "name": "strip-eof", - "escapedName": "strip-eof", - "rawSpec": "^1.0.0", - "saveSpec": null, - "fetchSpec": "^1.0.0" - }, - "_requiredBy": [ - "/execa" - ], - "_resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "_shasum": "bb43ff5598a6eb05d89b59fcd129c983313606bf", - "_spec": "strip-eof@^1.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\execa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/strip-eof/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "description": "Strip the End-Of-File (EOF) character from a string/buffer", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/strip-eof#readme", - "keywords": [ - "strip", - "trim", - "remove", - "delete", - "eof", - "end", - "file", - "newline", - "linebreak", - "character", - "string", - "buffer" - ], - "license": "MIT", - "name": "strip-eof", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/strip-eof.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "1.0.0" -} diff --git a/build/node_modules/strip-eof/readme.md b/build/node_modules/strip-eof/readme.md deleted file mode 100644 index 45ffe0436..000000000 --- a/build/node_modules/strip-eof/readme.md +++ /dev/null @@ -1,28 +0,0 @@ -# strip-eof [![Build Status](https://travis-ci.org/sindresorhus/strip-eof.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-eof) - -> Strip the [End-Of-File](https://en.wikipedia.org/wiki/End-of-file) (EOF) character from a string/buffer - - -## Install - -``` -$ npm install --save strip-eof -``` - - -## Usage - -```js -const stripEof = require('strip-eof'); - -stripEof('foo\nbar\n\n'); -//=> 'foo\nbar\n' - -stripEof(new Buffer('foo\nbar\n\n')).toString(); -//=> 'foo\nbar\n' -``` - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/build/node_modules/try-catch/ChangeLog b/build/node_modules/try-catch/ChangeLog deleted file mode 100644 index 30aa7d6f9..000000000 --- a/build/node_modules/try-catch/ChangeLog +++ /dev/null @@ -1,24 +0,0 @@ -2018.02.08, v2.0.0 - -feature: -- (try-catch) changed the way arguments returned - - -2014.11.24, v1.0.2 - -feature: -- (trammel) rm util-io -- (size) rm exec - - -2014.11.20, v1.0.1 - -feature: -- (trammel) util-io v1.6.3 - - -2014.11.19, v1.0.0 - -feature: -- (size) trammel.get -> trammel - diff --git a/build/node_modules/try-catch/LICENSE b/build/node_modules/try-catch/LICENSE deleted file mode 100644 index ea7654c1c..000000000 --- a/build/node_modules/try-catch/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014-2018 coderaiser - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build/node_modules/try-catch/README.md b/build/node_modules/try-catch/README.md deleted file mode 100644 index a2750524b..000000000 --- a/build/node_modules/try-catch/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# TryCatch - -`Try-catch` wrapper. - -## Example - -```js -const tryCatch = require('tryCatch'); -const {parse} = JSON; -const [error, result] = tryCatch(parse, 'hello'); - -if (error) - console.error(error.message); - -``` - -## License - -MIT - diff --git a/build/node_modules/try-catch/lib/try-catch.js b/build/node_modules/try-catch/lib/try-catch.js deleted file mode 100644 index ebd6832ca..000000000 --- a/build/node_modules/try-catch/lib/try-catch.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function tryCatch(fn) { - var args = [].slice.call(arguments, 1); - - try { - return [null, fn.apply(null, args)]; - } catch(e) { - return [e]; - } -}; - diff --git a/build/node_modules/try-catch/package.json b/build/node_modules/try-catch/package.json deleted file mode 100644 index fb5330d7b..000000000 --- a/build/node_modules/try-catch/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "_from": "try-catch@^2.0.0", - "_id": "try-catch@2.0.0", - "_inBundle": false, - "_integrity": "sha512-RPXpVjsbtWgymwGq5F/OWDFsjEzdvzwHFaMjWWW6f/p6+uk/N7YSKJHQfIfGqITfj8qH4cBqCLMnhKZBaKk7Kg==", - "_location": "/try-catch", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "try-catch@^2.0.0", - "name": "try-catch", - "escapedName": "try-catch", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/putasset", - "/readjson" - ], - "_resolved": "https://registry.npmjs.org/try-catch/-/try-catch-2.0.0.tgz", - "_shasum": "a491141d597f8b72b46757fe1c47059341a16aed", - "_spec": "try-catch@^2.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\putasset", - "author": { - "name": "coderaiser", - "email": "mnemonic.enemy@gmail.com", - "url": "https://github.com/coderaiser" - }, - "bugs": { - "url": "https://github.com/coderaiser/try-catch/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "try-catch wrapper", - "devDependencies": { - "coveralls": "^3.0.0", - "eslint": "^4.17.0", - "nyc": "^11.4.1", - "tape": "^4.8.0" - }, - "engines": { - "node": ">=0.4" - }, - "homepage": "http://github.com/coderaiser/try-catch", - "license": "MIT", - "main": "lib/try-catch.js", - "name": "try-catch", - "repository": { - "type": "git", - "url": "git://github.com/coderaiser/try-catch.git" - }, - "scripts": { - "coverage": "nyc npm test", - "lint": "eslint lib test", - "report": "nyc report --reporter=text-lcov | coveralls", - "test": "tape 'test/*.js'" - }, - "version": "2.0.0" -} diff --git a/build/node_modules/try-to-catch/ChangeLog b/build/node_modules/try-to-catch/ChangeLog deleted file mode 100644 index 2ab25b3cb..000000000 --- a/build/node_modules/try-to-catch/ChangeLog +++ /dev/null @@ -1,28 +0,0 @@ -2018.11.08, v1.1.1 - -fix: -- (try-to-catch) wraptile -> noArg - - -2018.11.08, v1.1.0 - -feature: -- (try-to-catch) add support of a functions -- (package) redrun v7.0.2 -- (package) nyc v13.0.1 -- (package) eslint v5.6.0 -- (package) babel v7.0.0 -- (package) redrun v6.0.0 - - -2018.02.13, v1.0.2 - -fix: -- (package) legacy - - -2018.02.12, v1.0.1 - -feature: -- (package) keywords: then - diff --git a/build/node_modules/try-to-catch/LICENSE b/build/node_modules/try-to-catch/LICENSE deleted file mode 100644 index eaec9a10f..000000000 --- a/build/node_modules/try-to-catch/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) coderaiser - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/build/node_modules/try-to-catch/README.md b/build/node_modules/try-to-catch/README.md deleted file mode 100644 index d8fdf6a15..000000000 --- a/build/node_modules/try-to-catch/README.md +++ /dev/null @@ -1,88 +0,0 @@ -# Try to Catch [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] - -[NPMIMGURL]: https://img.shields.io/npm/v/try-to-catch.svg?style=flat&longCache=true -[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/try-to-catch/master.svg?style=flat&longCache=true -[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/try-to-catch.svg?style=flat&longCache=true -[NPMURL]: https://npmjs.org/package/try-to-catch "npm" -[BuildStatusURL]: https://travis-ci.org/coderaiser/try-to-catch "Build Status" -[DependencyStatusURL]: https://david-dm.org/coderaiser/try-to-catch "Dependency Status" - -[CoverageURL]: https://coveralls.io/github/coderaiser/try-to-catch?branch=master -[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/try-to-catch/badge.svg?branch=master&service=github - -Functional `try-catch` wrapper for `promises`. - -## Install - -``` -npm i try-to-catch -``` - -## API - -### tryToCatch(fn, [...args]) - -Wrap function to avoid `try-catch` block, resolves `[error, result]`; - -### Example - -Simplest example with `async-await`: - -```js -const tryToCatch = require('try-to-catch'); -await tryToCatch(Promise.reject('hi')); -// returns -[ Error: hi] -``` - -Can be used with functions: - -```js -const tryToCatch = require('try-to-catch'); -await tryToCatch(() => 5); -// returns -[null, 5] -``` - -Advanced example: - -```js -const fs = require('fs'); -const tryToCatch = require('try-to-catch'); -const {promisify} = require('util'); -const readFile = promisify(fs.readFile); -const readDir = promisify(fs.readdir); - -read(process.argv[2]) - .then(console.log) - .catch(console.error); - -async function read(path) { - const [error, data] = await tryToCatch(readFile, path, 'utf8'); - - if (!error) - return data; - - if (error.code !== 'EISDIR') - return error; - - return await readDir(path); -} -``` - -## Environments - -In old `node.js` environments that not fully supports `es2015`, `try-to-catch` can be used with: - -```js -var tryToCatch = require('try-to-catch/legacy'); -``` - -## Related - -- [try-catch](https://github.com/coderaiser/try-catch "try-catch") - functional try-catch wrapper. - -## License - -MIT - diff --git a/build/node_modules/try-to-catch/legacy/index.js b/build/node_modules/try-to-catch/legacy/index.js deleted file mode 100644 index 8ea9a5047..000000000 --- a/build/node_modules/try-to-catch/legacy/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./try-to-catch') diff --git a/build/node_modules/try-to-catch/legacy/try-to-catch.js b/build/node_modules/try-to-catch/legacy/try-to-catch.js deleted file mode 100644 index 28866b6f7..000000000 --- a/build/node_modules/try-to-catch/legacy/try-to-catch.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; - -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } - -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } - -function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } - -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } - -var success = function success(a) { - return [null, a]; -}; - -var fail = function fail(a) { - return [a]; -}; - -var noArg = function noArg(f, a) { - return function () { - return f.apply(void 0, _toConsumableArray(a)); - }; -}; - -module.exports = function (fn) { - check(fn); - - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - return Promise.resolve().then(noArg(fn, args)).then(success).catch(fail); -}; - -function check(fn) { - if (typeof fn !== 'function') throw Error('fn should be a function!'); -} \ No newline at end of file diff --git a/build/node_modules/try-to-catch/lib/try-to-catch.js b/build/node_modules/try-to-catch/lib/try-to-catch.js deleted file mode 100644 index 7e8de7fea..000000000 --- a/build/node_modules/try-to-catch/lib/try-to-catch.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -const success = (a) => [null, a]; -const fail = (a) => [a]; - -const noArg = (f, a) => () => f(...a); - -module.exports = (fn, ...args) => { - check(fn); - - return Promise.resolve() - .then(noArg(fn, args)) - .then(success) - .catch(fail); -}; - -function check(fn) { - if (typeof fn !== 'function') - throw Error('fn should be a function!'); -} - diff --git a/build/node_modules/try-to-catch/package.json b/build/node_modules/try-to-catch/package.json deleted file mode 100644 index 2033621d0..000000000 --- a/build/node_modules/try-to-catch/package.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "_from": "try-to-catch@^1.1.1", - "_id": "try-to-catch@1.1.1", - "_inBundle": false, - "_integrity": "sha512-ikUlS+/BcImLhNYyIgZcEmq4byc31QpC+46/6Jm5ECWkVFhf8SM2Fp/0pMVXPX6vk45SMCwrP4Taxucne8I0VA==", - "_location": "/try-to-catch", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "try-to-catch@^1.1.1", - "name": "try-to-catch", - "escapedName": "try-to-catch", - "rawSpec": "^1.1.1", - "saveSpec": null, - "fetchSpec": "^1.1.1" - }, - "_requiredBy": [ - "/putasset" - ], - "_resolved": "https://registry.npmjs.org/try-to-catch/-/try-to-catch-1.1.1.tgz", - "_shasum": "770162dd13b9a0e55da04db5b7f888956072038a", - "_spec": "try-to-catch@^1.1.1", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\putasset", - "author": { - "name": "coderaiser", - "email": "mnemonic.enemy@gmail.com", - "url": "https://github.com/coderaiser" - }, - "bugs": { - "url": "https://github.com/coderaiser/try-to-catch/issues" - }, - "bundleDependencies": false, - "dependencies": {}, - "deprecated": false, - "description": "function try-catch wrapper for promises", - "devDependencies": { - "@babel/cli": "^7.0.0", - "@babel/core": "^7.0.0", - "@babel/preset-env": "^7.0.0", - "coveralls": "^3.0.0", - "eslint": "^5.6.0", - "nodemon": "^1.14.12", - "nyc": "^13.0.1", - "redrun": "^7.0.2", - "tape": "^4.8.0", - "try-to-tape": "^1.0.0" - }, - "homepage": "http://github.com/coderaiser/try-to-catch", - "keywords": [ - "try", - "catch", - "function", - "promise", - "async", - "await", - "try-catch", - "then" - ], - "license": "MIT", - "main": "lib/try-to-catch.js", - "name": "try-to-catch", - "repository": { - "type": "git", - "url": "git://github.com/coderaiser/try-to-catch.git" - }, - "scripts": { - "build": "babel lib -d legacy", - "coverage": "nyc npm test", - "legacy": "echo \"module.exports = require('./try-to-catch')\" > legacy/index.js", - "lint": "eslint lib test", - "report": "nyc report --reporter=text-lcov | coveralls", - "test": "tape 'test/*.js'", - "watch:test": "nodemon -w lib -w test -x \"npm test\"", - "wisdom": "redrun build legacy" - }, - "version": "1.1.1" -} diff --git a/build/node_modules/universal-user-agent/.travis.yml b/build/node_modules/universal-user-agent/.travis.yml deleted file mode 100644 index d54089575..000000000 --- a/build/node_modules/universal-user-agent/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: node_js -cache: - directories: - - ~/.npm - - node_modules/cypress/dist - -# Trigger a push build on master and greenkeeper branches + PRs build on every branches -# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) -branches: - only: - - master - - /^greenkeeper.*$/ - -stages: - - test - - name: release - if: branch = master AND type IN (push) - -jobs: - include: - - stage: test - node_js: 6 - script: npm run test - - node_js: 8 - script: npm run test - - node_js: 10 - env: Node 10 & coverage upload - script: - - npm run test - - npm run coverage:upload - - node_js: lts/* - env: browser tests - script: npm run test:browser - - - stage: release - node_js: lts/* - env: semantic-release - script: npm run semantic-release diff --git a/build/node_modules/universal-user-agent/LICENSE.md b/build/node_modules/universal-user-agent/LICENSE.md deleted file mode 100644 index f105ab0c0..000000000 --- a/build/node_modules/universal-user-agent/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -# [ISC License](https://spdx.org/licenses/ISC) - -Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build/node_modules/universal-user-agent/README.md b/build/node_modules/universal-user-agent/README.md deleted file mode 100644 index 59e809ed8..000000000 --- a/build/node_modules/universal-user-agent/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# universal-user-agent - -> Get a user agent string in both browser and node - -[![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent) -[![Build Status](https://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent) -[![Coverage Status](https://coveralls.io/repos/github/gr2m/universal-user-agent/badge.svg)](https://coveralls.io/github/gr2m/universal-user-agent) -[![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) - -```js -const getUserAgent = require('universal-user-agent') -const userAgent = getUserAgent() - -// userAgent will look like this -// in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0" -// in node: Node.js/v8.9.4 (macOS High Sierra; x64) -``` - -## Credits - -The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent). - -## License - -[ISC](LICENSE.md) diff --git a/build/node_modules/universal-user-agent/browser.js b/build/node_modules/universal-user-agent/browser.js deleted file mode 100644 index eb1274439..000000000 --- a/build/node_modules/universal-user-agent/browser.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = getUserAgentBrowser - -function getUserAgentBrowser () { - /* global navigator */ - return navigator.userAgent -} diff --git a/build/node_modules/universal-user-agent/cypress.json b/build/node_modules/universal-user-agent/cypress.json deleted file mode 100644 index a1ff4b85e..000000000 --- a/build/node_modules/universal-user-agent/cypress.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "integrationFolder": "test", - "video": false -} diff --git a/build/node_modules/universal-user-agent/index.js b/build/node_modules/universal-user-agent/index.js deleted file mode 100644 index 321b90e5a..000000000 --- a/build/node_modules/universal-user-agent/index.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = getUserAgentNode - -const osName = require('os-name') - -function getUserAgentNode () { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})` -} diff --git a/build/node_modules/universal-user-agent/package.json b/build/node_modules/universal-user-agent/package.json deleted file mode 100644 index f4822dc43..000000000 --- a/build/node_modules/universal-user-agent/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "_from": "universal-user-agent@^2.0.0", - "_id": "universal-user-agent@2.0.2", - "_inBundle": false, - "_integrity": "sha512-nOwvHWLH3dBazyuzbECPA5uVFNd7AlgviXRHgR4yf48QqitIvpdncRrxMbZNMpPPEfgz30I9ubd1XmiJiqsTrg==", - "_location": "/universal-user-agent", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "universal-user-agent@^2.0.0", - "name": "universal-user-agent", - "escapedName": "universal-user-agent", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/@octokit/endpoint", - "/@octokit/request", - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-2.0.2.tgz", - "_shasum": "b0322da546100c658adcf4965110a56ed238aee6", - "_spec": "universal-user-agent@^2.0.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "Gregor Martynus", - "url": "https://github.com/gr2m" - }, - "browser": "browser.js", - "bugs": { - "url": "https://github.com/gr2m/universal-user-agent/issues" - }, - "bundleDependencies": false, - "dependencies": { - "os-name": "^3.0.0" - }, - "deprecated": false, - "description": "Get a user agent string in both browser and node", - "devDependencies": { - "chai": "^4.1.2", - "coveralls": "^3.0.2", - "cypress": "^3.1.0", - "mocha": "^5.2.0", - "nyc": "^13.0.1", - "semantic-release": "^15.9.15", - "sinon": "^6.3.3", - "sinon-chai": "^3.2.0", - "standard": "^12.0.1", - "test": "^0.6.0", - "travis-deploy-once": "^5.0.7" - }, - "homepage": "https://github.com/gr2m/universal-user-agent#readme", - "keywords": [], - "license": "ISC", - "main": "index.js", - "name": "universal-user-agent", - "repository": { - "type": "git", - "url": "git+https://github.com/gr2m/universal-user-agent.git" - }, - "scripts": { - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "pretest": "standard", - "semantic-release": "semantic-release", - "test": "nyc mocha \"test/*-test.js\"", - "test:browser": "cypress run --browser chrome", - "travis-deploy-once": "travis-deploy-once" - }, - "standard": { - "globals": [ - "describe", - "it", - "beforeEach", - "afterEach", - "expect" - ] - }, - "version": "2.0.2" -} diff --git a/build/node_modules/universal-user-agent/test/smoke-test.js b/build/node_modules/universal-user-agent/test/smoke-test.js deleted file mode 100644 index 0462c4446..000000000 --- a/build/node_modules/universal-user-agent/test/smoke-test.js +++ /dev/null @@ -1,34 +0,0 @@ -// make tests run in both Node & Express -if (!global.cy) { - const chai = require('chai') - const sinon = require('sinon') - const sinonChai = require('sinon-chai') - chai.use(sinonChai) - global.expect = chai.expect - - let sandbox - beforeEach(() => { - sandbox = sinon.createSandbox() - global.cy = { - stub: function () { - return sandbox.stub.apply(sandbox, arguments) - }, - log () { - console.log.apply(console, arguments) - } - } - }) - - afterEach(() => { - sandbox.restore() - }) -} - -const getUserAgent = require('..') - -describe('smoke', () => { - it('works', () => { - expect(getUserAgent()).to.be.a('string') - expect(getUserAgent().length).to.be.above(10) - }) -}) diff --git a/build/node_modules/url-template/.gitmodules b/build/node_modules/url-template/.gitmodules deleted file mode 100644 index c7d8f4244..000000000 --- a/build/node_modules/url-template/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "uritemplate-test"] - path = uritemplate-test - url = https://github.com/uri-templates/uritemplate-test diff --git a/build/node_modules/url-template/.npmignore b/build/node_modules/url-template/.npmignore deleted file mode 100644 index 096746c14..000000000 --- a/build/node_modules/url-template/.npmignore +++ /dev/null @@ -1 +0,0 @@ -/node_modules/ \ No newline at end of file diff --git a/build/node_modules/url-template/LICENSE b/build/node_modules/url-template/LICENSE deleted file mode 100644 index ae46ad7b8..000000000 --- a/build/node_modules/url-template/LICENSE +++ /dev/null @@ -1,25 +0,0 @@ -Copyright (c) 2012-2014, Bram Stein -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - 3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, -INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY -OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, -EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/build/node_modules/url-template/README.md b/build/node_modules/url-template/README.md deleted file mode 100644 index a22749d0c..000000000 --- a/build/node_modules/url-template/README.md +++ /dev/null @@ -1,32 +0,0 @@ -## A JavaScript URI template implementation - -This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested. - -## Installation - -For use with Node.js you can install it through npm: - - $ npm install url-template - -If you want to use it in a browser, copy `lib/url-template.js` into your project and use the global `urltemplate` instance. Alternatively you can use [Bower](http://bower.io/) to install this package: - - $ bower install url-template - -## Example - - var template = require('url-template'); - - ... - - var emailUrl = template.parse('/{email}/{folder}/{id}'); - - // Returns '/user@domain/test/42' - emailUrl.expand({ - email: 'user@domain', - folder: 'test', - id: 42 - }); - -## A note on error handling and reporting - -The RFC states that errors in the templates could optionally be handled and reported to the user. This implementation takes a slightly different approach in that it tries to do a best effort template expansion and leaves erroneous expressions in the returned URI instead of throwing errors. So for example, the incorrect expression `{unclosed` will return `{unclosed` as output. The leaves incorrect URLs to be handled by your URL library of choice. diff --git a/build/node_modules/url-template/lib/url-template.js b/build/node_modules/url-template/lib/url-template.js deleted file mode 100644 index 8d6aae1f6..000000000 --- a/build/node_modules/url-template/lib/url-template.js +++ /dev/null @@ -1,192 +0,0 @@ -(function (root, factory) { - if (typeof exports === 'object') { - module.exports = factory(); - } else if (typeof define === 'function' && define.amd) { - define([], factory); - } else { - root.urltemplate = factory(); - } -}(this, function () { - /** - * @constructor - */ - function UrlTemplate() { - } - - /** - * @private - * @param {string} str - * @return {string} - */ - UrlTemplate.prototype.encodeReserved = function (str) { - return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) { - if (!/%[0-9A-Fa-f]/.test(part)) { - part = encodeURI(part).replace(/%5B/g, '[').replace(/%5D/g, ']'); - } - return part; - }).join(''); - }; - - /** - * @private - * @param {string} str - * @return {string} - */ - UrlTemplate.prototype.encodeUnreserved = function (str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase(); - }); - } - - /** - * @private - * @param {string} operator - * @param {string} value - * @param {string} key - * @return {string} - */ - UrlTemplate.prototype.encodeValue = function (operator, value, key) { - value = (operator === '+' || operator === '#') ? this.encodeReserved(value) : this.encodeUnreserved(value); - - if (key) { - return this.encodeUnreserved(key) + '=' + value; - } else { - return value; - } - }; - - /** - * @private - * @param {*} value - * @return {boolean} - */ - UrlTemplate.prototype.isDefined = function (value) { - return value !== undefined && value !== null; - }; - - /** - * @private - * @param {string} - * @return {boolean} - */ - UrlTemplate.prototype.isKeyOperator = function (operator) { - return operator === ';' || operator === '&' || operator === '?'; - }; - - /** - * @private - * @param {Object} context - * @param {string} operator - * @param {string} key - * @param {string} modifier - */ - UrlTemplate.prototype.getValues = function (context, operator, key, modifier) { - var value = context[key], - result = []; - - if (this.isDefined(value) && value !== '') { - if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { - value = value.toString(); - - if (modifier && modifier !== '*') { - value = value.substring(0, parseInt(modifier, 10)); - } - - result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); - } else { - if (modifier === '*') { - if (Array.isArray(value)) { - value.filter(this.isDefined).forEach(function (value) { - result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); - }, this); - } else { - Object.keys(value).forEach(function (k) { - if (this.isDefined(value[k])) { - result.push(this.encodeValue(operator, value[k], k)); - } - }, this); - } - } else { - var tmp = []; - - if (Array.isArray(value)) { - value.filter(this.isDefined).forEach(function (value) { - tmp.push(this.encodeValue(operator, value)); - }, this); - } else { - Object.keys(value).forEach(function (k) { - if (this.isDefined(value[k])) { - tmp.push(this.encodeUnreserved(k)); - tmp.push(this.encodeValue(operator, value[k].toString())); - } - }, this); - } - - if (this.isKeyOperator(operator)) { - result.push(this.encodeUnreserved(key) + '=' + tmp.join(',')); - } else if (tmp.length !== 0) { - result.push(tmp.join(',')); - } - } - } - } else { - if (operator === ';') { - if (this.isDefined(value)) { - result.push(this.encodeUnreserved(key)); - } - } else if (value === '' && (operator === '&' || operator === '?')) { - result.push(this.encodeUnreserved(key) + '='); - } else if (value === '') { - result.push(''); - } - } - return result; - }; - - /** - * @param {string} template - * @return {function(Object):string} - */ - UrlTemplate.prototype.parse = function (template) { - var that = this; - var operators = ['+', '#', '.', '/', ';', '?', '&']; - - return { - expand: function (context) { - return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { - if (expression) { - var operator = null, - values = []; - - if (operators.indexOf(expression.charAt(0)) !== -1) { - operator = expression.charAt(0); - expression = expression.substr(1); - } - - expression.split(/,/g).forEach(function (variable) { - var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); - values.push.apply(values, that.getValues(context, operator, tmp[1], tmp[2] || tmp[3])); - }); - - if (operator && operator !== '+') { - var separator = ','; - - if (operator === '?') { - separator = '&'; - } else if (operator !== '#') { - separator = operator; - } - return (values.length !== 0 ? operator : '') + values.join(separator); - } else { - return values.join(','); - } - } else { - return that.encodeReserved(literal); - } - }); - } - }; - }; - - return new UrlTemplate(); -})); diff --git a/build/node_modules/url-template/package.json b/build/node_modules/url-template/package.json deleted file mode 100644 index c96d92f7b..000000000 --- a/build/node_modules/url-template/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "_from": "url-template@^2.0.8", - "_id": "url-template@2.0.8", - "_inBundle": false, - "_integrity": "sha1-/FZaPMy/93MMd19WQflVV5FDnyE=", - "_location": "/url-template", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "url-template@^2.0.8", - "name": "url-template", - "escapedName": "url-template", - "rawSpec": "^2.0.8", - "saveSpec": null, - "fetchSpec": "^2.0.8" - }, - "_requiredBy": [ - "/@octokit/endpoint", - "/@octokit/rest" - ], - "_resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz", - "_shasum": "fc565a3cccbff7730c775f5641f9555791439f21", - "_spec": "url-template@^2.0.8", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\@octokit\\rest", - "author": { - "name": "Bram Stein", - "email": "b.l.stein@gmail.com", - "url": "http://www.bramstein.com" - }, - "bugs": { - "url": "https://github.com/bramstein/url-template/issues" - }, - "bundleDependencies": false, - "decription": "A URI template implementation (RFC 6570 compliant)", - "deprecated": false, - "description": "This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.", - "devDependencies": { - "expect.js": "=0.2.0", - "mocha": "=1.6.0" - }, - "directories": { - "lib": "./lib" - }, - "homepage": "https://github.com/bramstein/url-template#readme", - "keywords": [ - "uri-template", - "uri template", - "uri", - "url", - "rfc 6570", - "url template", - "url-template" - ], - "license": "BSD", - "main": "./lib/url-template.js", - "name": "url-template", - "repository": { - "type": "git", - "url": "git://github.com/bramstein/url-template.git" - }, - "scripts": { - "test": "mocha --reporter spec" - }, - "version": "2.0.8" -} diff --git a/build/node_modules/url-template/test/index.html b/build/node_modules/url-template/test/index.html deleted file mode 100644 index 727d63d7e..000000000 --- a/build/node_modules/url-template/test/index.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - Mocha Tests - - - -
- - - - - - - - - - diff --git a/build/node_modules/url-template/test/uritemplate-test.js b/build/node_modules/url-template/test/uritemplate-test.js deleted file mode 100644 index ec12cb18b..000000000 --- a/build/node_modules/url-template/test/uritemplate-test.js +++ /dev/null @@ -1,32 +0,0 @@ -var template, expect, examples; - -if (typeof require !== 'undefined') { - template = require('../lib/url-template.js'); - expect = require("expect.js"); - examples = require('../uritemplate-test/spec-examples-by-section.json'); -} else { - template = window.urltemplate; - expect = window.expect; - examples = window.examples; -} - -function createTestContext(c) { - return function (t, r) { - if (typeof r === 'string') { - expect(template.parse(t).expand(c)).to.eql(r); - } else { - expect(r.indexOf(template.parse(t).expand(c)) >= 0).to.be.ok(); - } - }; -} - -describe('spec-examples', function () { - Object.keys(examples).forEach(function (section) { - var assert = createTestContext(examples[section].variables); - examples[section].testcases.forEach(function (testcase) { - it(section + ' ' + testcase[0], function () { - assert(testcase[0], testcase[1]); - }); - }); - }); -}); diff --git a/build/node_modules/url-template/test/url-template-test.js b/build/node_modules/url-template/test/url-template-test.js deleted file mode 100644 index d9ff457a8..000000000 --- a/build/node_modules/url-template/test/url-template-test.js +++ /dev/null @@ -1,373 +0,0 @@ -var template, expect; - -if (typeof require !== 'undefined') { - template = require('../lib/url-template.js'); - expect = require("expect.js"); -} else { - template = window.urltemplate; - expect = window.expect; -} - -function createTestContext(c) { - return function (t, r) { - expect(template.parse(t).expand(c)).to.eql(r); - }; -} - -describe('uri-template', function () { - describe('Level 1', function () { - var assert = createTestContext({ - 'var': 'value', - 'some.value': 'some', - 'some_value': 'value', - 'Some%20Thing': 'hello', - 'foo': 'bar', - 'hello': 'Hello World!', - 'bool': false, - 'toString': 'string', - 'number': 42, - 'float': 3.14, - 'undef': undefined, - 'null': null, - 'chars': 'šö䟜ñꀣ¥‡ÑÒÓÔÕÖ×ØÙÚàáâãäåæçÿü', - 'surrogatepairs': '\uD834\uDF06' - }); - - it('empty string', function () { - assert('', ''); - }); - - it('encodes non expressions correctly', function () { - assert('hello/world', 'hello/world'); - assert('Hello World!/{foo}', 'Hello%20World!/bar'); - assert(':/?#[]@!$&()*+,;=\'', ':/?#[]@!$&()*+,;=\''); - assert('%20', '%20'); - assert('%xyz', '%25xyz'); - assert('%', '%25'); - }); - - it('expand plain ASCII strings', function () { - assert('{var}', 'value'); - }); - - it('expand non-ASCII strings', function () { - assert('{chars}', '%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF%C3%BC'); - }); - - it('expands and encodes surrogate pairs correctly', function () { - assert('{surrogatepairs}', '%F0%9D%8C%86'); - }); - - it('expand expressions with dot and underscore', function () { - assert('{some.value}', 'some'); - assert('{some_value}', 'value'); - }); - - it('expand expressions with encoding', function () { - assert('{Some%20Thing}', 'hello'); - }); - - it('expand expressions with reserved JavaScript names', function () { - assert('{toString}', 'string'); - }); - - it('expand variables that are not strings', function () { - assert('{number}', '42'); - assert('{float}', '3.14'); - assert('{bool}', 'false'); - }); - - it('expand variables that are undefined or null', function () { - assert('{undef}', ''); - assert('{null}', ''); - }); - - it('expand multiple values', function () { - assert('{var}/{foo}', 'value/bar'); - }); - - it('escape invalid characters correctly', function () { - assert('{hello}', 'Hello%20World%21'); - }); - }); - - describe('Level 2', function () { - var assert = createTestContext({ - 'var': 'value', - 'hello': 'Hello World!', - 'path': '/foo/bar' - }); - - it('reserved expansion of basic strings', function () { - assert('{+var}', 'value'); - assert('{+hello}', 'Hello%20World!'); - }); - - it('preserves paths', function() { - assert('{+path}/here', '/foo/bar/here'); - assert('here?ref={+path}', 'here?ref=/foo/bar'); - }); - }); - - describe('Level 3', function () { - var assert = createTestContext({ - 'var' : 'value', - 'hello' : 'Hello World!', - 'empty' : '', - 'path' : '/foo/bar', - 'x' : '1024', - 'y' : '768' - }); - - it('variables without an operator', function () { - assert('map?{x,y}', 'map?1024,768'); - assert('{x,hello,y}', '1024,Hello%20World%21,768'); - }); - - it('variables with the reserved expansion operator', function () { - assert('{+x,hello,y}', '1024,Hello%20World!,768'); - assert('{+path,x}/here', '/foo/bar,1024/here'); - }); - - it('variables with the fragment expansion operator', function () { - assert('{#x,hello,y}', '#1024,Hello%20World!,768'); - assert('{#path,x}/here', '#/foo/bar,1024/here'); - }); - - it('variables with the dot operator', function () { - assert('X{.var}', 'X.value'); - assert('X{.x,y}', 'X.1024.768'); - }); - - it('variables with the path operator', function () { - assert('{/var}', '/value'); - assert('{/var,x}/here', '/value/1024/here'); - }); - - it('variables with the parameter operator', function () { - assert('{;x,y}', ';x=1024;y=768'); - assert('{;x,y,empty}', ';x=1024;y=768;empty'); - }); - - it('variables with the query operator', function () { - assert('{?x,y}', '?x=1024&y=768'); - assert('{?x,y,empty}', '?x=1024&y=768&empty='); - }); - - it('variables with the query continuation operator', function () { - assert('?fixed=yes{&x}', '?fixed=yes&x=1024'); - assert('{&x,y,empty}', '&x=1024&y=768&empty='); - }); - }); - - describe('Level 4', function () { - var assert = createTestContext({ - 'var': 'value', - 'hello': 'Hello World!', - 'path': '/foo/bar', - 'list': ['red', 'green', 'blue'], - 'keys': { - 'semi': ';', - 'dot': '.', - 'comma': ',' - }, - "chars": { - 'ü': 'ü' - }, - 'number': 2133, - 'emptystring': '', - 'emptylist': [], - 'emptyobject': {}, - 'undefinedlistitem': [1,,2], - 'undefinedobjectitem': { key: null, hello: 'world', 'empty': '', '': 'nothing' } - }); - - it('variable empty list', function () { - assert('{/emptylist}', ''); - assert('{/emptylist*}', ''); - assert('{?emptylist}', '?emptylist='); - assert('{?emptylist*}', ''); - }); - - it('variable empty object', function () { - assert('{/emptyobject}', ''); - assert('{/emptyobject*}', ''); - assert('{?emptyobject}', '?emptyobject='); - assert('{?emptyobject*}', ''); - }); - - it('variable undefined list item', function () { - assert('{undefinedlistitem}', '1,2'); - assert('{undefinedlistitem*}', '1,2'); - assert('{?undefinedlistitem*}', '?undefinedlistitem=1&undefinedlistitem=2'); - }); - - it('variable undefined object item', function () { - assert('{undefinedobjectitem}', 'hello,world,empty,,,nothing'); - assert('{undefinedobjectitem*}', 'hello=world,empty=,nothing'); - }); - - it('variable empty string', function () { - assert('{emptystring}', ''); - assert('{+emptystring}', ''); - assert('{#emptystring}', '#'); - assert('{.emptystring}', '.'); - assert('{/emptystring}', '/'); - assert('{;emptystring}', ';emptystring'); - assert('{?emptystring}', '?emptystring='); - assert('{&emptystring}', '&emptystring='); - }); - - it('variable modifiers prefix', function () { - assert('{var:3}', 'val'); - assert('{var:30}', 'value'); - assert('{+path:6}/here', '/foo/b/here'); - assert('{#path:6}/here', '#/foo/b/here'); - assert('X{.var:3}', 'X.val'); - assert('{/var:1,var}', '/v/value'); - assert('{;hello:5}', ';hello=Hello'); - assert('{?var:3}', '?var=val'); - assert('{&var:3}', '&var=val'); - }); - - it('variable modifier prefix converted to string', function () { - assert('{number:3}', '213'); - }); - - it('variable list expansion', function () { - assert('{list}', 'red,green,blue'); - assert('{+list}', 'red,green,blue'); - assert('{#list}', '#red,green,blue'); - assert('{/list}', '/red,green,blue'); - assert('{;list}', ';list=red,green,blue'); - assert('{.list}', '.red,green,blue'); - assert('{?list}', '?list=red,green,blue'); - assert('{&list}', '&list=red,green,blue'); - }); - - it('variable associative array expansion', function () { - assert('{keys}', 'semi,%3B,dot,.,comma,%2C'); - assert('{keys*}', 'semi=%3B,dot=.,comma=%2C'); - assert('{+keys}', 'semi,;,dot,.,comma,,'); - assert('{#keys}', '#semi,;,dot,.,comma,,'); - assert('{.keys}', '.semi,%3B,dot,.,comma,%2C'); - assert('{/keys}', '/semi,%3B,dot,.,comma,%2C'); - assert('{;keys}', ';keys=semi,%3B,dot,.,comma,%2C'); - assert('{?keys}', '?keys=semi,%3B,dot,.,comma,%2C'); - assert('{&keys}', '&keys=semi,%3B,dot,.,comma,%2C'); - }); - - it('variable list explode', function () { - assert('{list*}', 'red,green,blue'); - assert('{+list*}', 'red,green,blue'); - assert('{#list*}', '#red,green,blue'); - assert('{/list*}', '/red/green/blue'); - assert('{;list*}', ';list=red;list=green;list=blue'); - assert('{.list*}', '.red.green.blue'); - assert('{?list*}', '?list=red&list=green&list=blue'); - assert('{&list*}', '&list=red&list=green&list=blue'); - - assert('{/list*,path:4}', '/red/green/blue/%2Ffoo'); - }); - - it('variable associative array explode', function () { - assert('{+keys*}', 'semi=;,dot=.,comma=,'); - assert('{#keys*}', '#semi=;,dot=.,comma=,'); - assert('{/keys*}', '/semi=%3B/dot=./comma=%2C'); - assert('{;keys*}', ';semi=%3B;dot=.;comma=%2C'); - assert('{?keys*}', '?semi=%3B&dot=.&comma=%2C'); - assert('{&keys*}', '&semi=%3B&dot=.&comma=%2C') - }); - - it('encodes associative arrays correctly', function () { - assert('{chars*}', '%C3%BC=%C3%BC'); - }); - }); - - describe('Encoding', function () { - var assert = createTestContext({ - restricted: ":/?#[]@!$&()*+,;='", - percent: '%', - encoded: '%25', - 'pctencoded%20name': '', - mapWithEncodedName: { - 'encoded%20name': '' - }, - mapWithRestrictedName: { - 'restricted=name': '' - }, - mapWidthUmlautName: { - 'ümlaut': '' - } - }); - - it('passes through percent encoded values', function () { - assert('{percent}', '%25'); - assert('{+encoded}', '%25'); - }); - - it('encodes restricted characters correctly', function () { - assert('{restricted}', '%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{+restricted}', ':/?#[]@!$&()*+,;=\''); - assert('{#restricted}', '#:/?#[]@!$&()*+,;=\''); - assert('{/restricted}', '/%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{;restricted}', ';restricted=%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{.restricted}', '.%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{?restricted}', '?restricted=%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - assert('{&restricted}', '&restricted=%3A%2F%3F%23%5B%5D%40%21%24%26%28%29%2A%2B%2C%3B%3D%27'); - }); - }); - describe('Error handling (or the lack thereof)', function () { - var assert = createTestContext({ - foo: 'test', - keys: { - foo: 'bar' - } - }); - - it('does not expand invalid expressions', function () { - assert('{test', '{test'); - assert('test}', 'test}'); - assert('{{test}}', '{}'); // TODO: Is this acceptable? - }); - - it('does not expand with incorrect operators', function () { - assert('{@foo}', ''); // TODO: This will try to match a variable called `@foo` which will fail because it is not in our context. We could catch this by ignoring reserved operators? - assert('{$foo}', ''); // TODO: Same story, but $ is not a reserved operator. - assert('{++foo}', ''); - }); - - it('ignores incorrect prefixes', function () { - assert('{foo:test}', 'test'); // TODO: Invalid prefixes are ignored. We could throw an error. - assert('{foo:2test}', 'te'); // TODO: Best effort is OK? - }); - - it('prefix applied to the wrong context', function () { - assert('{keys:1}', 'foo,bar'); - }); - }); - describe('Skipping undefined arguments', function () { - var assert = createTestContext({ - 'var': 'value', - 'number': 2133, - 'emptystring': '', - 'emptylist': [], - 'emptyobject': {}, - 'undefinedlistitem': [1,,2], - }); - it('variable undefined list item', function () { - assert('{undefinedlistitem}', '1,2'); - assert('{undefinedlistitem*}', '1,2'); - assert('{?undefinedlistitem*}', '?undefinedlistitem=1&undefinedlistitem=2'); - }); - - it('query with empty/undefined arguments', function () { - assert('{?var,number}', '?var=value&number=2133'); - assert('{?undef}', ''); - assert('{?emptystring}', '?emptystring='); - assert('{?emptylist}', '?emptylist='); - assert('{?emptyobject}', '?emptyobject='); - assert('{?undef,var,emptystring}', '?var=value&emptystring='); - }); - }); -}); diff --git a/build/node_modules/url-template/uritemplate-test/README.md b/build/node_modules/url-template/uritemplate-test/README.md deleted file mode 100644 index 3eb519da6..000000000 --- a/build/node_modules/url-template/uritemplate-test/README.md +++ /dev/null @@ -1,90 +0,0 @@ - -URI Template Tests -================== - -This is a set of tests for implementations of -[RFC6570](http://tools.ietf.org/html/rfc6570) - URI Template. It is designed -to be reused by any implementation, to improve interoperability and -implementation quality. - -If your project uses Git for version control, you can make uritemplate-tests into a [submodule](http://help.github.com/submodules/). - -Test Format ------------ - -Each test file is a [JSON](http://tools.ietf.org/html/RFC6627) document -containing an object whose properties are groups of related tests. -Alternatively, all tests are available in XML as well, with the XML files -being generated by transform-json-tests.xslt which uses json2xml.xslt as a -general-purpose JSON-to-XML parsing library. - -Each group, in turn, is an object with three children: - -* level - the level of the tests covered, as per the RFC (optional; if absent, - assume level 4). -* variables - an object representing the variables that are available to the - tests in the suite -* testcases - a list of testcases, where each case is a two-member list, the - first being the template, the second being the result of expanding the - template with the provided variables. - -Note that the result string can be a few different things: - -* string - if the second member is a string, the result of expansion is - expected to match it, character-for-character. -* list - if the second member is a list of strings, the result of expansion - is expected to match one of them; this allows for templates that can - expand into different, equally-acceptable URIs. -* false - if the second member is boolean false, expansion is expected to - fail (i.e., the template was invalid). - -For example: - - { - "Level 1 Examples" : - { - "level": 1, - "variables": { - "var" : "value", - "hello" : "Hello World!" - }, - "testcases" : [ - ["{var}", "value"], - ["{hello}", "Hello%20World%21"] - ] - } - } - - -Tests Included --------------- - -The following test files are included: - -* spec-examples.json - The complete set of example templates from the RFC -* spec-examples-by-section.json - The examples, section by section -* extended-tests.json - more complex test cases -* negative-tests.json - invalid templates - -For all these test files, XML versions with the names *.xml can be -generated with the transform-json-tests.xslt XSLT stylesheet. The XSLT -contains the names of the above test files as a parameter, and can be -started with any XML as input (i.e., the XML input is ignored). - -License -------- - - Copyright 2011-2012 The Authors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/build/node_modules/url-template/uritemplate-test/extended-tests.json b/build/node_modules/url-template/uritemplate-test/extended-tests.json deleted file mode 100644 index fd6974449..000000000 --- a/build/node_modules/url-template/uritemplate-test/extended-tests.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "Additional Examples 1":{ - "level":4, - "variables":{ - "id" : "person", - "token" : "12345", - "fields" : ["id", "name", "picture"], - "format" : "json", - "q" : "URI Templates", - "page" : "5", - "lang" : "en", - "geocode" : ["37.76","-122.427"], - "first_name" : "John", - "last.name" : "Doe", - "Some%20Thing" : "foo", - "number" : 6, - "long" : 37.76, - "lat" : -122.427, - "group_id" : "12345", - "query" : "PREFIX dc: SELECT ?book ?who WHERE { ?book dc:creator ?who }", - "uri" : "http://example.org/?uri=http%3A%2F%2Fexample.org%2F", - "word" : "drücken", - "Stra%C3%9Fe" : "Grüner Weg", - "random" : "šö䟜ñꀣ¥‡ÑÒÓÔÕÖ×ØÙÚàáâãäåæçÿ", - "assoc_special_chars" : - { "šö䟜ñꀣ¥‡ÑÒÓÔÕ" : "Ö×ØÙÚàáâãäåæçÿ" } - }, - "testcases":[ - - [ "{/id*}" , "/person" ], - [ "{/id*}{?fields,first_name,last.name,token}" , [ - "/person?fields=id,name,picture&first_name=John&last.name=Doe&token=12345", - "/person?fields=id,picture,name&first_name=John&last.name=Doe&token=12345", - "/person?fields=picture,name,id&first_name=John&last.name=Doe&token=12345", - "/person?fields=picture,id,name&first_name=John&last.name=Doe&token=12345", - "/person?fields=name,picture,id&first_name=John&last.name=Doe&token=12345", - "/person?fields=name,id,picture&first_name=John&last.name=Doe&token=12345"] - ], - ["/search.{format}{?q,geocode,lang,locale,page,result_type}", - [ "/search.json?q=URI%20Templates&geocode=37.76,-122.427&lang=en&page=5", - "/search.json?q=URI%20Templates&geocode=-122.427,37.76&lang=en&page=5"] - ], - ["/test{/Some%20Thing}", "/test/foo" ], - ["/set{?number}", "/set?number=6"], - ["/loc{?long,lat}" , "/loc?long=37.76&lat=-122.427"], - ["/base{/group_id,first_name}/pages{/page,lang}{?format,q}","/base/12345/John/pages/5/en?format=json&q=URI%20Templates"], - ["/sparql{?query}", "/sparql?query=PREFIX%20dc%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%20SELECT%20%3Fbook%20%3Fwho%20WHERE%20%7B%20%3Fbook%20dc%3Acreator%20%3Fwho%20%7D"], - ["/go{?uri}", "/go?uri=http%3A%2F%2Fexample.org%2F%3Furi%3Dhttp%253A%252F%252Fexample.org%252F"], - ["/service{?word}", "/service?word=dr%C3%BCcken"], - ["/lookup{?Stra%C3%9Fe}", "/lookup?Stra%C3%9Fe=Gr%C3%BCner%20Weg"], - ["{random}" , "%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF"], - ["{?assoc_special_chars*}", "?%C5%A1%C3%B6%C3%A4%C5%B8%C5%93%C3%B1%C3%AA%E2%82%AC%C2%A3%C2%A5%E2%80%A1%C3%91%C3%92%C3%93%C3%94%C3%95=%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%BF"] - ] - }, - "Additional Examples 2":{ - "level":4, - "variables":{ - "id" : ["person","albums"], - "token" : "12345", - "fields" : ["id", "name", "picture"], - "format" : "atom", - "q" : "URI Templates", - "page" : "10", - "start" : "5", - "lang" : "en", - "geocode" : ["37.76","-122.427"] - }, - "testcases":[ - - [ "{/id*}" , ["/person/albums","/albums/person"] ], - [ "{/id*}{?fields,token}" , [ - "/person/albums?fields=id,name,picture&token=12345", - "/person/albums?fields=id,picture,name&token=12345", - "/person/albums?fields=picture,name,id&token=12345", - "/person/albums?fields=picture,id,name&token=12345", - "/person/albums?fields=name,picture,id&token=12345", - "/person/albums?fields=name,id,picture&token=12345", - "/albums/person?fields=id,name,picture&token=12345", - "/albums/person?fields=id,picture,name&token=12345", - "/albums/person?fields=picture,name,id&token=12345", - "/albums/person?fields=picture,id,name&token=12345", - "/albums/person?fields=name,picture,id&token=12345", - "/albums/person?fields=name,id,picture&token=12345"] - ] - ] - }, - "Additional Examples 3: Empty Variables":{ - "variables" : { - "empty_list" : [], - "empty_assoc" : {} - }, - "testcases":[ - [ "{/empty_list}", [ "" ] ], - [ "{/empty_list*}", [ "" ] ], - [ "{?empty_list}", [ ""] ], - [ "{?empty_list*}", [ "" ] ], - [ "{?empty_assoc}", [ "" ] ], - [ "{?empty_assoc*}", [ "" ] ] - ] - }, - "Additional Examples 4: Numeric Keys":{ - "variables" : { - "42" : "The Answer to the Ultimate Question of Life, the Universe, and Everything", - "1337" : ["leet", "as","it", "can","be"], - "german" : { - "11": "elf", - "12": "zwölf" - } - }, - "testcases":[ - [ "{42}", "The%20Answer%20to%20the%20Ultimate%20Question%20of%20Life%2C%20the%20Universe%2C%20and%20Everything"], - [ "{?42}", "?42=The%20Answer%20to%20the%20Ultimate%20Question%20of%20Life%2C%20the%20Universe%2C%20and%20Everything"], - [ "{1337}", "leet,as,it,can,be"], - [ "{?1337*}", "?1337=leet&1337=as&1337=it&1337=can&1337=be"], - [ "{?german*}", [ "?11=elf&12=zw%C3%B6lf", "?12=zw%C3%B6lf&11=elf"] ] - ] - } -} diff --git a/build/node_modules/url-template/uritemplate-test/json2xml.xslt b/build/node_modules/url-template/uritemplate-test/json2xml.xslt deleted file mode 100644 index 59b3548c0..000000000 --- a/build/node_modules/url-template/uritemplate-test/json2xml.xslt +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \b - - - - - - - - - - - \v - - - - - \f - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/build/node_modules/url-template/uritemplate-test/negative-tests.json b/build/node_modules/url-template/uritemplate-test/negative-tests.json deleted file mode 100644 index 552a6bf07..000000000 --- a/build/node_modules/url-template/uritemplate-test/negative-tests.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "Failure Tests":{ - "level":4, - "variables":{ - "id" : "thing", - "var" : "value", - "hello" : "Hello World!", - "with space" : "fail", - " leading_space" : "Hi!", - "trailing_space " : "Bye!", - "empty" : "", - "path" : "/foo/bar", - "x" : "1024", - "y" : "768", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "example" : "red", - "searchTerms" : "uri templates", - "~thing" : "some-user", - "default-graph-uri" : ["http://www.example/book/","http://www.example/papers/"], - "query" : "PREFIX dc: SELECT ?book ?who WHERE { ?book dc:creator ?who }" - - }, - "testcases":[ - [ "{/id*", false ], - [ "/id*}", false ], - [ "{/?id}", false ], - [ "{var:prefix}", false ], - [ "{hello:2*}", false ] , - [ "{??hello}", false ] , - [ "{!hello}", false ] , - [ "{with space}", false], - [ "{ leading_space}", false], - [ "{trailing_space }", false], - [ "{=path}", false ] , - [ "{$var}", false ], - [ "{|var*}", false ], - [ "{*keys?}", false ], - [ "{?empty=default,var}", false ], - [ "{var}{-prefix|/-/|var}" , false ], - [ "?q={searchTerms}&c={example:color?}" , false ], - [ "x{?empty|foo=none}" , false ], - [ "/h{#hello+}" , false ], - [ "/h#{hello+}" , false ], - [ "{keys:1}", false ], - [ "{+keys:1}", false ], - [ "{;keys:1*}", false ], - [ "?{-join|&|var,list}" , false ], - [ "/people/{~thing}", false], - [ "/{default-graph-uri}", false ], - [ "/sparql{?query,default-graph-uri}", false ], - [ "/sparql{?query){&default-graph-uri*}", false ], - [ "/resolution{?x, y}" , false ] - - ] - } -} \ No newline at end of file diff --git a/build/node_modules/url-template/uritemplate-test/spec-examples-by-section.json b/build/node_modules/url-template/uritemplate-test/spec-examples-by-section.json deleted file mode 100644 index 5aef18205..000000000 --- a/build/node_modules/url-template/uritemplate-test/spec-examples-by-section.json +++ /dev/null @@ -1,439 +0,0 @@ -{ - "3.2.1 Variable Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{count}", "one,two,three"], - ["{count*}", "one,two,three"], - ["{/count}", "/one,two,three"], - ["{/count*}", "/one/two/three"], - ["{;count}", ";count=one,two,three"], - ["{;count*}", ";count=one;count=two;count=three"], - ["{?count}", "?count=one,two,three"], - ["{?count*}", "?count=one&count=two&count=three"], - ["{&count*}", "&count=one&count=two&count=three"] - ] - }, - "3.2.2 Simple String Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{var}", "value"], - ["{hello}", "Hello%20World%21"], - ["{half}", "50%25"], - ["O{empty}X", "OX"], - ["O{undef}X", "OX"], - ["{x,y}", "1024,768"], - ["{x,hello,y}", "1024,Hello%20World%21,768"], - ["?{x,empty}", "?1024,"], - ["?{x,undef}", "?1024"], - ["?{undef,y}", "?768"], - ["{var:3}", "val"], - ["{var:30}", "value"], - ["{list}", "red,green,blue"], - ["{list*}", "red,green,blue"], - ["{keys}", [ - "comma,%2C,dot,.,semi,%3B", - "comma,%2C,semi,%3B,dot,.", - "dot,.,comma,%2C,semi,%3B", - "dot,.,semi,%3B,comma,%2C", - "semi,%3B,comma,%2C,dot,.", - "semi,%3B,dot,.,comma,%2C" - ]], - ["{keys*}", [ - "comma=%2C,dot=.,semi=%3B", - "comma=%2C,semi=%3B,dot=.", - "dot=.,comma=%2C,semi=%3B", - "dot=.,semi=%3B,comma=%2C", - "semi=%3B,comma=%2C,dot=.", - "semi=%3B,dot=.,comma=%2C" - ]] - ] - }, - "3.2.3 Reserved Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{+var}", "value"], - ["{/var,empty}", "/value/"], - ["{/var,undef}", "/value"], - ["{+hello}", "Hello%20World!"], - ["{+half}", "50%25"], - ["{base}index", "http%3A%2F%2Fexample.com%2Fhome%2Findex"], - ["{+base}index", "http://example.com/home/index"], - ["O{+empty}X", "OX"], - ["O{+undef}X", "OX"], - ["{+path}/here", "/foo/bar/here"], - ["{+path:6}/here", "/foo/b/here"], - ["here?ref={+path}", "here?ref=/foo/bar"], - ["up{+path}{var}/here", "up/foo/barvalue/here"], - ["{+x,hello,y}", "1024,Hello%20World!,768"], - ["{+path,x}/here", "/foo/bar,1024/here"], - ["{+list}", "red,green,blue"], - ["{+list*}", "red,green,blue"], - ["{+keys}", [ - "comma,,,dot,.,semi,;", - "comma,,,semi,;,dot,.", - "dot,.,comma,,,semi,;", - "dot,.,semi,;,comma,,", - "semi,;,comma,,,dot,.", - "semi,;,dot,.,comma,," - ]], - ["{+keys*}", [ - "comma=,,dot=.,semi=;", - "comma=,,semi=;,dot=.", - "dot=.,comma=,,semi=;", - "dot=.,semi=;,comma=,", - "semi=;,comma=,,dot=.", - "semi=;,dot=.,comma=," - ]] - ] - }, - "3.2.4 Fragment Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{#var}", "#value"], - ["{#hello}", "#Hello%20World!"], - ["{#half}", "#50%25"], - ["foo{#empty}", "foo#"], - ["foo{#undef}", "foo"], - ["{#x,hello,y}", "#1024,Hello%20World!,768"], - ["{#path,x}/here", "#/foo/bar,1024/here"], - ["{#path:6}/here", "#/foo/b/here"], - ["{#list}", "#red,green,blue"], - ["{#list*}", "#red,green,blue"], - ["{#keys}", [ - "#comma,,,dot,.,semi,;", - "#comma,,,semi,;,dot,.", - "#dot,.,comma,,,semi,;", - "#dot,.,semi,;,comma,,", - "#semi,;,comma,,,dot,.", - "#semi,;,dot,.,comma,," - ]] - ] - }, - "3.2.5 Label Expansion with Dot-Prefix" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{.who}", ".fred"], - ["{.who,who}", ".fred.fred"], - ["{.half,who}", ".50%25.fred"], - ["www{.dom*}", "www.example.com"], - ["X{.var}", "X.value"], - ["X{.var:3}", "X.val"], - ["X{.empty}", "X."], - ["X{.undef}", "X"], - ["X{.list}", "X.red,green,blue"], - ["X{.list*}", "X.red.green.blue"], - ["{#keys}", [ - "#comma,,,dot,.,semi,;", - "#comma,,,semi,;,dot,.", - "#dot,.,comma,,,semi,;", - "#dot,.,semi,;,comma,,", - "#semi,;,comma,,,dot,.", - "#semi,;,dot,.,comma,," - ]], - ["{#keys*}", [ - "#comma=,,dot=.,semi=;", - "#comma=,,semi=;,dot=.", - "#dot=.,comma=,,semi=;", - "#dot=.,semi=;,comma=,", - "#semi=;,comma=,,dot=.", - "#semi=;,dot=.,comma=," - ]], - ["X{.empty_keys}", "X"], - ["X{.empty_keys*}", "X"] - ] - }, - "3.2.6 Path Segment Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{/who}", "/fred"], - ["{/who,who}", "/fred/fred"], - ["{/half,who}", "/50%25/fred"], - ["{/who,dub}", "/fred/me%2Ftoo"], - ["{/var}", "/value"], - ["{/var,empty}", "/value/"], - ["{/var,undef}", "/value"], - ["{/var,x}/here", "/value/1024/here"], - ["{/var:1,var}", "/v/value"], - ["{/list}", "/red,green,blue"], - ["{/list*}", "/red/green/blue"], - ["{/list*,path:4}", "/red/green/blue/%2Ffoo"], - ["{/keys}", [ - "/comma,%2C,dot,.,semi,%3B", - "/comma,%2C,semi,%3B,dot,.", - "/dot,.,comma,%2C,semi,%3B", - "/dot,.,semi,%3B,comma,%2C", - "/semi,%3B,comma,%2C,dot,.", - "/semi,%3B,dot,.,comma,%2C" - ]], - ["{/keys*}", [ - "/comma=%2C/dot=./semi=%3B", - "/comma=%2C/semi=%3B/dot=.", - "/dot=./comma=%2C/semi=%3B", - "/dot=./semi=%3B/comma=%2C", - "/semi=%3B/comma=%2C/dot=.", - "/semi=%3B/dot=./comma=%2C" - ]] - ] - }, - "3.2.7 Path-Style Parameter Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{;who}", ";who=fred"], - ["{;half}", ";half=50%25"], - ["{;empty}", ";empty"], - ["{;hello:5}", ";hello=Hello"], - ["{;v,empty,who}", ";v=6;empty;who=fred"], - ["{;v,bar,who}", ";v=6;who=fred"], - ["{;x,y}", ";x=1024;y=768"], - ["{;x,y,empty}", ";x=1024;y=768;empty"], - ["{;x,y,undef}", ";x=1024;y=768"], - ["{;list}", ";list=red,green,blue"], - ["{;list*}", ";list=red;list=green;list=blue"], - ["{;keys}", [ - ";keys=comma,%2C,dot,.,semi,%3B", - ";keys=comma,%2C,semi,%3B,dot,.", - ";keys=dot,.,comma,%2C,semi,%3B", - ";keys=dot,.,semi,%3B,comma,%2C", - ";keys=semi,%3B,comma,%2C,dot,.", - ";keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{;keys*}", [ - ";comma=%2C;dot=.;semi=%3B", - ";comma=%2C;semi=%3B;dot=.", - ";dot=.;comma=%2C;semi=%3B", - ";dot=.;semi=%3B;comma=%2C", - ";semi=%3B;comma=%2C;dot=.", - ";semi=%3B;dot=.;comma=%2C" - ]] - ] - }, - "3.2.8 Form-Style Query Expansion" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{?who}", "?who=fred"], - ["{?half}", "?half=50%25"], - ["{?x,y}", "?x=1024&y=768"], - ["{?x,y,empty}", "?x=1024&y=768&empty="], - ["{?x,y,undef}", "?x=1024&y=768"], - ["{?var:3}", "?var=val"], - ["{?list}", "?list=red,green,blue"], - ["{?list*}", "?list=red&list=green&list=blue"], - ["{?keys}", [ - "?keys=comma,%2C,dot,.,semi,%3B", - "?keys=comma,%2C,semi,%3B,dot,.", - "?keys=dot,.,comma,%2C,semi,%3B", - "?keys=dot,.,semi,%3B,comma,%2C", - "?keys=semi,%3B,comma,%2C,dot,.", - "?keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{?keys*}", [ - "?comma=%2C&dot=.&semi=%3B", - "?comma=%2C&semi=%3B&dot=.", - "?dot=.&comma=%2C&semi=%3B", - "?dot=.&semi=%3B&comma=%2C", - "?semi=%3B&comma=%2C&dot=.", - "?semi=%3B&dot=.&comma=%2C" - ]] - ] - }, - "3.2.9 Form-Style Query Continuation" : - { - "variables": { - "count" : ["one", "two", "three"], - "dom" : ["example", "com"], - "dub" : "me/too", - "hello" : "Hello World!", - "half" : "50%", - "var" : "value", - "who" : "fred", - "base" : "http://example.com/home/", - "path" : "/foo/bar", - "list" : ["red", "green", "blue"], - "keys" : { "semi" : ";", "dot" : ".", "comma" : ","}, - "v" : "6", - "x" : "1024", - "y" : "768", - "empty" : "", - "empty_keys" : [], - "undef" : null - }, - "testcases" : [ - ["{&who}", "&who=fred"], - ["{&half}", "&half=50%25"], - ["?fixed=yes{&x}", "?fixed=yes&x=1024"], - ["{&var:3}", "&var=val"], - ["{&x,y,empty}", "&x=1024&y=768&empty="], - ["{&x,y,undef}", "&x=1024&y=768"], - ["{&list}", "&list=red,green,blue"], - ["{&list*}", "&list=red&list=green&list=blue"], - ["{&keys}", [ - "&keys=comma,%2C,dot,.,semi,%3B", - "&keys=comma,%2C,semi,%3B,dot,.", - "&keys=dot,.,comma,%2C,semi,%3B", - "&keys=dot,.,semi,%3B,comma,%2C", - "&keys=semi,%3B,comma,%2C,dot,.", - "&keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{&keys*}", [ - "&comma=%2C&dot=.&semi=%3B", - "&comma=%2C&semi=%3B&dot=.", - "&dot=.&comma=%2C&semi=%3B", - "&dot=.&semi=%3B&comma=%2C", - "&semi=%3B&comma=%2C&dot=.", - "&semi=%3B&dot=.&comma=%2C" - ]] - ] - } -} diff --git a/build/node_modules/url-template/uritemplate-test/spec-examples.json b/build/node_modules/url-template/uritemplate-test/spec-examples.json deleted file mode 100644 index 2e8e942da..000000000 --- a/build/node_modules/url-template/uritemplate-test/spec-examples.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Level 1 Examples" : - { - "level": 1, - "variables": { - "var" : "value", - "hello" : "Hello World!" - }, - "testcases" : [ - ["{var}", "value"], - ["{hello}", "Hello%20World%21"] - ] - }, - "Level 2 Examples" : - { - "level": 2, - "variables": { - "var" : "value", - "hello" : "Hello World!", - "path" : "/foo/bar" - }, - "testcases" : [ - ["{+var}", "value"], - ["{+hello}", "Hello%20World!"], - ["{+path}/here", "/foo/bar/here"], - ["here?ref={+path}", "here?ref=/foo/bar"] - ] - }, - "Level 3 Examples" : - { - "level": 3, - "variables": { - "var" : "value", - "hello" : "Hello World!", - "empty" : "", - "path" : "/foo/bar", - "x" : "1024", - "y" : "768" - }, - "testcases" : [ - ["map?{x,y}", "map?1024,768"], - ["{x,hello,y}", "1024,Hello%20World%21,768"], - ["{+x,hello,y}", "1024,Hello%20World!,768"], - ["{+path,x}/here", "/foo/bar,1024/here"], - ["{#x,hello,y}", "#1024,Hello%20World!,768"], - ["{#path,x}/here", "#/foo/bar,1024/here"], - ["X{.var}", "X.value"], - ["X{.x,y}", "X.1024.768"], - ["{/var}", "/value"], - ["{/var,x}/here", "/value/1024/here"], - ["{;x,y}", ";x=1024;y=768"], - ["{;x,y,empty}", ";x=1024;y=768;empty"], - ["{?x,y}", "?x=1024&y=768"], - ["{?x,y,empty}", "?x=1024&y=768&empty="], - ["?fixed=yes{&x}", "?fixed=yes&x=1024"], - ["{&x,y,empty}", "&x=1024&y=768&empty="] - ] - }, - "Level 4 Examples" : - { - "level": 4, - "variables": { - "var": "value", - "hello": "Hello World!", - "path": "/foo/bar", - "list": ["red", "green", "blue"], - "keys": {"semi": ";", "dot": ".", "comma":","} - }, - "testcases": [ - ["{var:3}", "val"], - ["{var:30}", "value"], - ["{list}", "red,green,blue"], - ["{list*}", "red,green,blue"], - ["{keys}", [ - "comma,%2C,dot,.,semi,%3B", - "comma,%2C,semi,%3B,dot,.", - "dot,.,comma,%2C,semi,%3B", - "dot,.,semi,%3B,comma,%2C", - "semi,%3B,comma,%2C,dot,.", - "semi,%3B,dot,.,comma,%2C" - ]], - ["{keys*}", [ - "comma=%2C,dot=.,semi=%3B", - "comma=%2C,semi=%3B,dot=.", - "dot=.,comma=%2C,semi=%3B", - "dot=.,semi=%3B,comma=%2C", - "semi=%3B,comma=%2C,dot=.", - "semi=%3B,dot=.,comma=%2C" - ]], - ["{+path:6}/here", "/foo/b/here"], - ["{+list}", "red,green,blue"], - ["{+list*}", "red,green,blue"], - ["{+keys}", [ - "comma,,,dot,.,semi,;", - "comma,,,semi,;,dot,.", - "dot,.,comma,,,semi,;", - "dot,.,semi,;,comma,,", - "semi,;,comma,,,dot,.", - "semi,;,dot,.,comma,," - ]], - ["{+keys*}", [ - "comma=,,dot=.,semi=;", - "comma=,,semi=;,dot=.", - "dot=.,comma=,,semi=;", - "dot=.,semi=;,comma=,", - "semi=;,comma=,,dot=.", - "semi=;,dot=.,comma=," - ]], - ["{#path:6}/here", "#/foo/b/here"], - ["{#list}", "#red,green,blue"], - ["{#list*}", "#red,green,blue"], - ["{#keys}", [ - "#comma,,,dot,.,semi,;", - "#comma,,,semi,;,dot,.", - "#dot,.,comma,,,semi,;", - "#dot,.,semi,;,comma,,", - "#semi,;,comma,,,dot,.", - "#semi,;,dot,.,comma,," - ]], - ["{#keys*}", [ - "#comma=,,dot=.,semi=;", - "#comma=,,semi=;,dot=.", - "#dot=.,comma=,,semi=;", - "#dot=.,semi=;,comma=,", - "#semi=;,comma=,,dot=.", - "#semi=;,dot=.,comma=," - ]], - ["X{.var:3}", "X.val"], - ["X{.list}", "X.red,green,blue"], - ["X{.list*}", "X.red.green.blue"], - ["X{.keys}", [ - "X.comma,%2C,dot,.,semi,%3B", - "X.comma,%2C,semi,%3B,dot,.", - "X.dot,.,comma,%2C,semi,%3B", - "X.dot,.,semi,%3B,comma,%2C", - "X.semi,%3B,comma,%2C,dot,.", - "X.semi,%3B,dot,.,comma,%2C" - ]], - ["{/var:1,var}", "/v/value"], - ["{/list}", "/red,green,blue"], - ["{/list*}", "/red/green/blue"], - ["{/list*,path:4}", "/red/green/blue/%2Ffoo"], - ["{/keys}", [ - "/comma,%2C,dot,.,semi,%3B", - "/comma,%2C,semi,%3B,dot,.", - "/dot,.,comma,%2C,semi,%3B", - "/dot,.,semi,%3B,comma,%2C", - "/semi,%3B,comma,%2C,dot,.", - "/semi,%3B,dot,.,comma,%2C" - ]], - ["{/keys*}", [ - "/comma=%2C/dot=./semi=%3B", - "/comma=%2C/semi=%3B/dot=.", - "/dot=./comma=%2C/semi=%3B", - "/dot=./semi=%3B/comma=%2C", - "/semi=%3B/comma=%2C/dot=.", - "/semi=%3B/dot=./comma=%2C" - ]], - ["{;hello:5}", ";hello=Hello"], - ["{;list}", ";list=red,green,blue"], - ["{;list*}", ";list=red;list=green;list=blue"], - ["{;keys}", [ - ";keys=comma,%2C,dot,.,semi,%3B", - ";keys=comma,%2C,semi,%3B,dot,.", - ";keys=dot,.,comma,%2C,semi,%3B", - ";keys=dot,.,semi,%3B,comma,%2C", - ";keys=semi,%3B,comma,%2C,dot,.", - ";keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{;keys*}", [ - ";comma=%2C;dot=.;semi=%3B", - ";comma=%2C;semi=%3B;dot=.", - ";dot=.;comma=%2C;semi=%3B", - ";dot=.;semi=%3B;comma=%2C", - ";semi=%3B;comma=%2C;dot=.", - ";semi=%3B;dot=.;comma=%2C" - ]], - ["{?var:3}", "?var=val"], - ["{?list}", "?list=red,green,blue"], - ["{?list*}", "?list=red&list=green&list=blue"], - ["{?keys}", [ - "?keys=comma,%2C,dot,.,semi,%3B", - "?keys=comma,%2C,semi,%3B,dot,.", - "?keys=dot,.,comma,%2C,semi,%3B", - "?keys=dot,.,semi,%3B,comma,%2C", - "?keys=semi,%3B,comma,%2C,dot,.", - "?keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{?keys*}", [ - "?comma=%2C&dot=.&semi=%3B", - "?comma=%2C&semi=%3B&dot=.", - "?dot=.&comma=%2C&semi=%3B", - "?dot=.&semi=%3B&comma=%2C", - "?semi=%3B&comma=%2C&dot=.", - "?semi=%3B&dot=.&comma=%2C" - ]], - ["{&var:3}", "&var=val"], - ["{&list}", "&list=red,green,blue"], - ["{&list*}", "&list=red&list=green&list=blue"], - ["{&keys}", [ - "&keys=comma,%2C,dot,.,semi,%3B", - "&keys=comma,%2C,semi,%3B,dot,.", - "&keys=dot,.,comma,%2C,semi,%3B", - "&keys=dot,.,semi,%3B,comma,%2C", - "&keys=semi,%3B,comma,%2C,dot,.", - "&keys=semi,%3B,dot,.,comma,%2C" - ]], - ["{&keys*}", [ - "&comma=%2C&dot=.&semi=%3B", - "&comma=%2C&semi=%3B&dot=.", - "&dot=.&comma=%2C&semi=%3B", - "&dot=.&semi=%3B&comma=%2C", - "&semi=%3B&comma=%2C&dot=.", - "&semi=%3B&dot=.&comma=%2C" - ]] - ] - } -} diff --git a/build/node_modules/url-template/uritemplate-test/transform-json-tests.xslt b/build/node_modules/url-template/uritemplate-test/transform-json-tests.xslt deleted file mode 100644 index d956b6bdb..000000000 --- a/build/node_modules/url-template/uritemplate-test/transform-json-tests.xslt +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/build/node_modules/which/CHANGELOG.md b/build/node_modules/which/CHANGELOG.md deleted file mode 100644 index 3d83d2694..000000000 --- a/build/node_modules/which/CHANGELOG.md +++ /dev/null @@ -1,152 +0,0 @@ -# Changes - - -## 1.3.1 - -* update deps -* update travis - -## v1.3.0 - -* Add nothrow option to which.sync -* update tap - -## v1.2.14 - -* appveyor: drop node 5 and 0.x -* travis-ci: add node 6, drop 0.x - -## v1.2.13 - -* test: Pass missing option to pass on windows -* update tap -* update isexe to 2.0.0 -* neveragain.tech pledge request - -## v1.2.12 - -* Removed unused require - -## v1.2.11 - -* Prevent changelog script from being included in package - -## v1.2.10 - -* Use env.PATH only, not env.Path - -## v1.2.9 - -* fix for paths starting with ../ -* Remove unused `is-absolute` module - -## v1.2.8 - -* bullet items in changelog that contain (but don't start with) # - -## v1.2.7 - -* strip 'update changelog' changelog entries out of changelog - -## v1.2.6 - -* make the changelog bulleted - -## v1.2.5 - -* make a changelog, and keep it up to date -* don't include tests in package -* Properly handle relative-path executables -* appveyor -* Attach error code to Not Found error -* Make tests pass on Windows - -## v1.2.4 - -* Fix typo - -## v1.2.3 - -* update isexe, fix regression in pathExt handling - -## v1.2.2 - -* update deps, use isexe module, test windows - -## v1.2.1 - -* Sometimes windows PATH entries are quoted -* Fixed a bug in the check for group and user mode bits. This bug was introduced during refactoring for supporting strict mode. -* doc cli - -## v1.2.0 - -* Add support for opt.all and -as cli flags -* test the bin -* update travis -* Allow checking for multiple programs in bin/which -* tap 2 - -## v1.1.2 - -* travis -* Refactored and fixed undefined error on Windows -* Support strict mode - -## v1.1.1 - -* test +g exes against secondary groups, if available -* Use windows exe semantics on cygwin & msys -* cwd should be first in path on win32, not last -* Handle lower-case 'env.Path' on Windows -* Update docs -* use single-quotes - -## v1.1.0 - -* Add tests, depend on is-absolute - -## v1.0.9 - -* which.js: root is allowed to execute files owned by anyone - -## v1.0.8 - -* don't use graceful-fs - -## v1.0.7 - -* add license to package.json - -## v1.0.6 - -* isc license - -## 1.0.5 - -* Awful typo - -## 1.0.4 - -* Test for path absoluteness properly -* win: Allow '' as a pathext if cmd has a . in it - -## 1.0.3 - -* Remove references to execPath -* Make `which.sync()` work on Windows by honoring the PATHEXT variable. -* Make `isExe()` always return true on Windows. -* MIT - -## 1.0.2 - -* Only files can be exes - -## 1.0.1 - -* Respect the PATHEXT env for win32 support -* should 0755 the bin -* binary -* guts -* package -* 1st diff --git a/build/node_modules/which/LICENSE b/build/node_modules/which/LICENSE deleted file mode 100644 index 19129e315..000000000 --- a/build/node_modules/which/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/build/node_modules/which/README.md b/build/node_modules/which/README.md deleted file mode 100644 index 8c0b0cbf7..000000000 --- a/build/node_modules/which/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# which - -Like the unix `which` utility. - -Finds the first instance of a specified executable in the PATH -environment variable. Does not cache the results, so `hash -r` is not -needed when the PATH changes. - -## USAGE - -```javascript -var which = require('which') - -// async usage -which('node', function (er, resolvedPath) { - // er is returned if no "node" is found on the PATH - // if it is found, then the absolute path to the exec is returned -}) - -// sync usage -// throws if not found -var resolved = which.sync('node') - -// if nothrow option is used, returns null if not found -resolved = which.sync('node', {nothrow: true}) - -// Pass options to override the PATH and PATHEXT environment vars. -which('node', { path: someOtherPath }, function (er, resolved) { - if (er) - throw er - console.log('found at %j', resolved) -}) -``` - -## CLI USAGE - -Same as the BSD `which(1)` binary. - -``` -usage: which [-as] program ... -``` - -## OPTIONS - -You may pass an options object as the second argument. - -- `path`: Use instead of the `PATH` environment variable. -- `pathExt`: Use instead of the `PATHEXT` environment variable. -- `all`: Return all matches, instead of just the first one. Note that - this means the function returns an array of strings instead of a - single string. diff --git a/build/node_modules/which/bin/which b/build/node_modules/which/bin/which deleted file mode 100644 index 7cee3729e..000000000 --- a/build/node_modules/which/bin/which +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env node -var which = require("../") -if (process.argv.length < 3) - usage() - -function usage () { - console.error('usage: which [-as] program ...') - process.exit(1) -} - -var all = false -var silent = false -var dashdash = false -var args = process.argv.slice(2).filter(function (arg) { - if (dashdash || !/^-/.test(arg)) - return true - - if (arg === '--') { - dashdash = true - return false - } - - var flags = arg.substr(1).split('') - for (var f = 0; f < flags.length; f++) { - var flag = flags[f] - switch (flag) { - case 's': - silent = true - break - case 'a': - all = true - break - default: - console.error('which: illegal option -- ' + flag) - usage() - } - } - return false -}) - -process.exit(args.reduce(function (pv, current) { - try { - var f = which.sync(current, { all: all }) - if (all) - f = f.join('\n') - if (!silent) - console.log(f) - return pv; - } catch (e) { - return 1; - } -}, 0)) diff --git a/build/node_modules/which/package.json b/build/node_modules/which/package.json deleted file mode 100644 index 66634d2f8..000000000 --- a/build/node_modules/which/package.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "_from": "which@^1.2.9", - "_id": "which@1.3.1", - "_inBundle": false, - "_integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "_location": "/which", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "which@^1.2.9", - "name": "which", - "escapedName": "which", - "rawSpec": "^1.2.9", - "saveSpec": null, - "fetchSpec": "^1.2.9" - }, - "_requiredBy": [ - "/cross-spawn" - ], - "_resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "_shasum": "a45043d54f5805316da8d62f9f50918d3da70b0a", - "_spec": "which@^1.2.9", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\cross-spawn", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me" - }, - "bin": { - "which": "./bin/which" - }, - "bugs": { - "url": "https://github.com/isaacs/node-which/issues" - }, - "bundleDependencies": false, - "dependencies": { - "isexe": "^2.0.0" - }, - "deprecated": false, - "description": "Like which(1) unix command. Find the first instance of an executable in the PATH.", - "devDependencies": { - "mkdirp": "^0.5.0", - "rimraf": "^2.6.2", - "tap": "^12.0.1" - }, - "files": [ - "which.js", - "bin/which" - ], - "homepage": "https://github.com/isaacs/node-which#readme", - "license": "ISC", - "main": "which.js", - "name": "which", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/node-which.git" - }, - "scripts": { - "changelog": "bash gen-changelog.sh", - "postversion": "npm run changelog && git add CHANGELOG.md && git commit -m 'update changelog - '${npm_package_version}", - "test": "tap test/*.js --cov" - }, - "version": "1.3.1" -} diff --git a/build/node_modules/which/which.js b/build/node_modules/which/which.js deleted file mode 100644 index 4347f91a1..000000000 --- a/build/node_modules/which/which.js +++ /dev/null @@ -1,135 +0,0 @@ -module.exports = which -which.sync = whichSync - -var isWindows = process.platform === 'win32' || - process.env.OSTYPE === 'cygwin' || - process.env.OSTYPE === 'msys' - -var path = require('path') -var COLON = isWindows ? ';' : ':' -var isexe = require('isexe') - -function getNotFoundError (cmd) { - var er = new Error('not found: ' + cmd) - er.code = 'ENOENT' - - return er -} - -function getPathInfo (cmd, opt) { - var colon = opt.colon || COLON - var pathEnv = opt.path || process.env.PATH || '' - var pathExt = [''] - - pathEnv = pathEnv.split(colon) - - var pathExtExe = '' - if (isWindows) { - pathEnv.unshift(process.cwd()) - pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM') - pathExt = pathExtExe.split(colon) - - - // Always test the cmd itself first. isexe will check to make sure - // it's found in the pathExt set. - if (cmd.indexOf('.') !== -1 && pathExt[0] !== '') - pathExt.unshift('') - } - - // If it has a slash, then we don't bother searching the pathenv. - // just check the file itself, and that's it. - if (cmd.match(/\//) || isWindows && cmd.match(/\\/)) - pathEnv = [''] - - return { - env: pathEnv, - ext: pathExt, - extExe: pathExtExe - } -} - -function which (cmd, opt, cb) { - if (typeof opt === 'function') { - cb = opt - opt = {} - } - - var info = getPathInfo(cmd, opt) - var pathEnv = info.env - var pathExt = info.ext - var pathExtExe = info.extExe - var found = [] - - ;(function F (i, l) { - if (i === l) { - if (opt.all && found.length) - return cb(null, found) - else - return cb(getNotFoundError(cmd)) - } - - var pathPart = pathEnv[i] - if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"') - pathPart = pathPart.slice(1, -1) - - var p = path.join(pathPart, cmd) - if (!pathPart && (/^\.[\\\/]/).test(cmd)) { - p = cmd.slice(0, 2) + p - } - ;(function E (ii, ll) { - if (ii === ll) return F(i + 1, l) - var ext = pathExt[ii] - isexe(p + ext, { pathExt: pathExtExe }, function (er, is) { - if (!er && is) { - if (opt.all) - found.push(p + ext) - else - return cb(null, p + ext) - } - return E(ii + 1, ll) - }) - })(0, pathExt.length) - })(0, pathEnv.length) -} - -function whichSync (cmd, opt) { - opt = opt || {} - - var info = getPathInfo(cmd, opt) - var pathEnv = info.env - var pathExt = info.ext - var pathExtExe = info.extExe - var found = [] - - for (var i = 0, l = pathEnv.length; i < l; i ++) { - var pathPart = pathEnv[i] - if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"') - pathPart = pathPart.slice(1, -1) - - var p = path.join(pathPart, cmd) - if (!pathPart && /^\.[\\\/]/.test(cmd)) { - p = cmd.slice(0, 2) + p - } - for (var j = 0, ll = pathExt.length; j < ll; j ++) { - var cur = p + pathExt[j] - var is - try { - is = isexe.sync(cur, { pathExt: pathExtExe }) - if (is) { - if (opt.all) - found.push(cur) - else - return cur - } - } catch (ex) {} - } - } - - if (opt.all && found.length) - return found - - if (opt.nothrow) - return null - - throw getNotFoundError(cmd) -} diff --git a/build/node_modules/windows-release/index.js b/build/node_modules/windows-release/index.js deleted file mode 100644 index 58c0bcec5..000000000 --- a/build/node_modules/windows-release/index.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; -const os = require('os'); -const execa = require('execa'); - -// Reference: https://www.gaijin.at/en/lstwinver.php -const names = new Map([ - ['10.0', '10'], - ['6.3', '8.1'], - ['6.2', '8'], - ['6.1', '7'], - ['6.0', 'Vista'], - ['5.2', 'Server 2003'], - ['5.1', 'XP'], - ['5.0', '2000'], - ['4.9', 'ME'], - ['4.1', '98'], - ['4.0', '95'] -]); - -module.exports = release => { - const version = /\d+\.\d/.exec(release || os.release()); - - if (release && !version) { - throw new Error('`release` argument doesn\'t match `n.n`'); - } - - const ver = (version || [])[0]; - - // Server 2008, 2012 and 2016 versions are ambiguous with desktop versions and must be detected at runtime. - // If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version - // then use `wmic` to get the OS caption: https://msdn.microsoft.com/en-us/library/aa394531(v=vs.85).aspx - // If the resulting caption contains the year 2008, 2012 or 2016, it is a server version, so return a server OS name. - if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) { - const stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || ''; - const year = (stdout.match(/2008|2012|2016/) || [])[0]; - if (year) { - return `Server ${year}`; - } - } - - return names.get(ver); -}; diff --git a/build/node_modules/windows-release/license b/build/node_modules/windows-release/license deleted file mode 100644 index e7af2f771..000000000 --- a/build/node_modules/windows-release/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build/node_modules/windows-release/package.json b/build/node_modules/windows-release/package.json deleted file mode 100644 index dec69b3bc..000000000 --- a/build/node_modules/windows-release/package.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "_from": "windows-release@^3.1.0", - "_id": "windows-release@3.1.0", - "_inBundle": false, - "_integrity": "sha512-hBb7m7acFgQPQc222uEQTmdcGLeBmQLNLFIh0rDk3CwFOBrfjefLzEfEfmpMq8Af/n/GnFf3eYf203FY1PmudA==", - "_location": "/windows-release", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "windows-release@^3.1.0", - "name": "windows-release", - "escapedName": "windows-release", - "rawSpec": "^3.1.0", - "saveSpec": null, - "fetchSpec": "^3.1.0" - }, - "_requiredBy": [ - "/os-name" - ], - "_resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.1.0.tgz", - "_shasum": "8d4a7e266cbf5a233f6c717dac19ce00af36e12e", - "_spec": "windows-release@^3.1.0", - "_where": "F:\\Development\\MyBot.run(clean-repo)\\build\\node_modules\\os-name", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/windows-release/issues" - }, - "bundleDependencies": false, - "dependencies": { - "execa": "^0.10.0" - }, - "deprecated": false, - "description": "Get the name of a Windows version from the release number: `5.1.2600` → `XP`", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=6" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/windows-release#readme", - "keywords": [ - "os", - "win", - "win32", - "windows", - "operating", - "system", - "platform", - "name", - "title", - "release", - "version" - ], - "license": "MIT", - "name": "windows-release", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/windows-release.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "3.1.0" -} diff --git a/build/node_modules/windows-release/readme.md b/build/node_modules/windows-release/readme.md deleted file mode 100644 index 66557eabb..000000000 --- a/build/node_modules/windows-release/readme.md +++ /dev/null @@ -1,56 +0,0 @@ -# windows-release [![Build Status](https://travis-ci.org/sindresorhus/windows-release.svg?branch=master)](https://travis-ci.org/sindresorhus/windows-release) - -> Get the name of a Windows version from the release number: `5.1.2600` → `XP` - - -## Install - -``` -$ npm install windows-release -``` - - -## Usage - -```js -const os = require('os'); -const windowsRelease = require('windows-release'); - -// On a Windows XP system - -windowsRelease(); -//=> 'XP' - -os.release(); -//=> '5.1.2600' - -windowsRelease(os.release()); -//=> 'XP' - -windowsRelease('4.9.3000'); -//=> 'ME' -``` - - -## API - -### windowsRelease([release]) - -#### release - -Type: `string` - -By default, the current OS is used, but you can supply a custom release number, which is the output of [`os.release()`](https://nodejs.org/api/os.html#os_os_release). - -Note: Most Windows Server versions cannot be detected based on the release number alone. There is runtime detection in place to work around this, but it will only be used if no argument is supplied, or the supplied argument matches `os.release()`. - - -## Related - -- [os-name](https://github.com/sindresorhus/os-name) - Get the name of the current operating system -- [macos-release](https://github.com/sindresorhus/macos-release) - Get the name and version of a macOS release from the Darwin version - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com)