AddPortUnit.pas
上传用户:gdszzsp
上传日期:2007-01-08
资源大小:621k
文件大小:26k
源码类别:

远程控制编程

开发平台:

Delphi

  1. unit AddPortUnit;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Classes, Graphics,
  5.   Controls, Forms, Dialogs, StdCtrls;
  6. type
  7.   TAddPort=class(TForm)
  8.     CaptionLabel: TLabel;
  9.     CloseButton: TFlatSpeedButton;
  10.     Label1: TLabel;
  11.     OutlookBtn1: TOutlookBtn;
  12.     OutlookBtn2: TOutlookBtn;
  13.     FlatEdit1: TFlatEdit;
  14.     FlatEdit2: TFlatEdit;
  15.     FlatEdit3: TFlatEdit;
  16.     procedure CaptionLabelMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
  17.     procedure CaptionLabelMouseMove(Sender: TObject; Shift: TShiftState; X: Integer; Y: Integer);
  18.     procedure CaptionLabelMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
  19.     procedure CloseButtonClick(Sender: TObject);
  20.     procedure FormCreate(Sender: TObject);
  21.     procedure FormPaint(Sender: TObject);
  22.     procedure FormResize(Sender: TObject);
  23.     procedure OutlookBtn1Click(Sender: TObject);
  24.     procedure OutlookBtn2Click(Sender: TObject);
  25.   private
  26.     { Private declarations }
  27.   public
  28.     { Public declarations }
  29.   end ;
  30. var
  31.   AddPort: TAddPort;
  32. {This file is generated by DeDe v2.34 (c) 1999 by DaFixer}
  33. implementation
  34. {$R *.DFM}
  35. procedure TAddPort.CaptionLabelMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
  36. begin
  37. {
  38. 005091F8   55                     push    ebp
  39. 005091F9   8BEC                   mov     ebp, esp
  40. 005091FB   53                     push    ebx
  41. 005091FC   8BD8                   mov     ebx, eax
  42. 005091FE   8B83C4020000           mov     eax, [ebx+$02C4]
  43. 00509204   8B4024                 mov     eax, [eax+$24]
  44. 00509207   E8D032F3FF             call    0043C4DC
  45. 0050920C   50                     push    eax
  46. * Reference to: SHBrowseForFolderA.SetCapture
  47. |
  48. 0050920D   E866E6EFFF             call    00407878
  49. 00509212   C783EC020000FFFFFFFF   mov     dword ptr [ebx+$02EC], $FFFFFFFF
  50. 0050921C   8B450C                 mov     eax, [ebp+$0C]
  51. 0050921F   8983E4020000           mov     [ebx+$02E4], eax
  52. 00509225   8B4508                 mov     eax, [ebp+$08]
  53. 00509228   8983E8020000           mov     [ebx+$02E8], eax
  54. 0050922E   5B                     pop     ebx
  55. 0050922F   5D                     pop     ebp
  56. 00509230   C20C                   ret     $0C
  57. }
  58.  end ; 
  59. procedure TAddPort.CaptionLabelMouseMove(Sender: TObject; Shift: TShiftState; X: Integer; Y: Integer);
  60. begin
  61. {
  62. 00509234   55                     push    ebp
  63. 00509235   8BEC                   mov     ebp, esp
  64. 00509237   53                     push    ebx
  65. 00509238   56                     push    esi
  66. 00509239   8BD8                   mov     ebx, eax
  67. 0050923B   83BBEC02000000         cmp     dword ptr [ebx+$02EC], +$00
  68. 00509242   7433                   jz      00509277
  69. 00509244   8B83C4020000           mov     eax, [ebx+$02C4]
  70. 0050924A   8B7024                 mov     esi, [eax+$24]
  71. 0050924D   8B83E4020000           mov     eax, [ebx+$02E4]
  72. 00509253   2B450C                 sub     eax, dword ptr [ebp+$0C]
  73. 00509256   8B5630                 mov     edx, [esi+$30]
  74. 00509259   2BD0                   sub     edx, eax
  75. 0050925B   8BC6                   mov     eax, esi
  76. 0050925D   E84ACCF2FF             call    00435EAC
  77. 00509262   8B83E8020000           mov     eax, [ebx+$02E8]
  78. 00509268   2B4508                 sub     eax, dword ptr [ebp+$08]
  79. 0050926B   8B5634                 mov     edx, [esi+$34]
  80. 0050926E   2BD0                   sub     edx, eax
  81. 00509270   8BC6                   mov     eax, esi
  82. 00509272   E859CCF2FF             call    00435ED0
  83. 00509277   5E                     pop     esi
  84. 00509278   5B                     pop     ebx
  85. 00509279   5D                     pop     ebp
  86. 0050927A   C208                   ret     $08
  87. }
  88.  end ; 
  89. procedure TAddPort.CaptionLabelMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
  90. begin
  91. {
  92. 00509280   55                     push    ebp
  93. 00509281   8BEC                   mov     ebp, esp
  94. 00509283   53                     push    ebx
  95. 00509284   56                     push    esi
  96. 00509285   8BD8                   mov     ebx, eax
  97. 00509287   83BBEC02000000         cmp     dword ptr [ebx+$02EC], +$00
  98. 0050928E   7440                   jz      005092D0
  99. 00509290   8B83C4020000           mov     eax, [ebx+$02C4]
  100. 00509296   8B7024                 mov     esi, [eax+$24]
  101. * Reference to: SHBrowseForFolderA.ReleaseCapture
  102. |
  103. 00509299   E88AE5EFFF             call    00407828
  104. 0050929E   33C0                   xor     eax, eax
  105. 005092A0   8983EC020000           mov     [ebx+$02EC], eax
  106. 005092A6   8B83E4020000           mov     eax, [ebx+$02E4]
  107. 005092AC   2B450C                 sub     eax, dword ptr [ebp+$0C]
  108. 005092AF   8B5630                 mov     edx, [esi+$30]
  109. 005092B2   2BD0                   sub     edx, eax
  110. 005092B4   8BC6                   mov     eax, esi
  111. 005092B6   E8F1CBF2FF             call    00435EAC
  112. 005092BB   8B83E8020000           mov     eax, [ebx+$02E8]
  113. 005092C1   2B4508                 sub     eax, dword ptr [ebp+$08]
  114. 005092C4   8B5634                 mov     edx, [esi+$34]
  115. 005092C7   2BD0                   sub     edx, eax
  116. 005092C9   8BC6                   mov     eax, esi
  117. 005092CB   E800CCF2FF             call    00435ED0
  118. 005092D0   5E                     pop     esi
  119. 005092D1   5B                     pop     ebx
  120. 005092D2   5D                     pop     ebp
  121. 005092D3   C20C                   ret     $0C
  122. }
  123.  end ; 
  124. procedure TAddPort.CloseButtonClick(Sender: TObject);
  125. begin
  126. {
  127. 005091F0   E8D766F4FF             call    0044F8CC
  128. 005091F5   C3                     ret
  129. }
  130.  end ; 
  131. procedure TAddPort.FormCreate(Sender: TObject);
  132. begin
  133. {
  134. 005091E8   E80BFEFFFF             call    00508FF8
  135. 005091ED   C3                     ret
  136. }
  137.  end ; 
  138. procedure TAddPort.FormPaint(Sender: TObject);
  139. begin
  140. {
  141. 00509460   53                     push    ebx
  142. 00509461   56                     push    esi
  143. 00509462   57                     push    edi
  144. 00509463   55                     push    ebp
  145. 00509464   83C4E0                 add     esp, -$20
  146. 00509467   8BD8                   mov     ebx, eax
  147. 00509469   8B2DDC495400           mov     ebp, [$5449DC]
  148. 0050946F   8B733C                 mov     esi, [ebx+$3C]
  149. 00509472   83EE05                 sub     esi, +$05
  150. 00509475   83EE18                 sub     esi, +$18
  151. 00509478   7C5D                   jl      005094D7
  152. 0050947A   46                     inc     esi
  153. 0050947B   BF18000000             mov     edi, $00000018
  154. 00509480   6A01                   push    $01
  155. 00509482   8D442404               lea     eax, [esp+$04]
  156. 00509486   50                     push    eax
  157. 00509487   B904000000             mov     ecx, $00000004
  158. 0050948C   BA1A000000             mov     edx, $0000001A
  159. 00509491   B801000000             mov     eax, $00000001
  160. 00509496   E8A574F0FF             call    00410940
  161. 0050949B   54                     push    esp
  162. 0050949C   6A01                   push    $01
  163. 0050949E   8D442418               lea     eax, [esp+$18]
  164. 005094A2   50                     push    eax
  165. 005094A3   B904000000             mov     ecx, $00000004
  166. 005094A8   8BD7                   mov     edx, edi
  167. 005094AA   33C0                   xor     eax, eax
  168. 005094AC   E88F74F0FF             call    00410940
  169. 005094B1   8D442414               lea     eax, [esp+$14]
  170. 005094B5   50                     push    eax
  171. 005094B6   8B4500                 mov     eax, [ebp+$00]
  172. 005094B9   8B80E80A0000           mov     eax, [eax+$0AE8]
  173. 005094BF   E8CC9EF1FF             call    00423390
  174. 005094C4   50                     push    eax
  175. 005094C5   8BC3                   mov     eax, ebx
  176. 005094C7   E83440F4FF             call    0044D500
  177. 005094CC   59                     pop     ecx
  178. 005094CD   5A                     pop     edx
  179. 005094CE   E8794BF1FF             call    0041E04C
  180. 005094D3   47                     inc     edi
  181. 005094D4   4E                     dec     esi
  182. 005094D5   75A9                   jnz     00509480
  183. 005094D7   8B733C                 mov     esi, [ebx+$3C]
  184. 005094DA   83EE05                 sub     esi, +$05
  185. 005094DD   83EE18                 sub     esi, +$18
  186. 005094E0   7C61                   jl      00509543
  187. 005094E2   46                     inc     esi
  188. 005094E3   BF18000000             mov     edi, $00000018
  189. 005094E8   6A01                   push    $01
  190. 005094EA   8D442404               lea     eax, [esp+$04]
  191. 005094EE   50                     push    eax
  192. 005094EF   B904000000             mov     ecx, $00000004
  193. 005094F4   BA1A000000             mov     edx, $0000001A
  194. 005094F9   B830000000             mov     eax, $00000030
  195. 005094FE   E83D74F0FF             call    00410940
  196. 00509503   54                     push    esp
  197. 00509504   6A01                   push    $01
  198. 00509506   8D442418               lea     eax, [esp+$18]
  199. 0050950A   50                     push    eax
  200. 0050950B   8B4338                 mov     eax, [ebx+$38]
  201. 0050950E   83E804                 sub     eax, +$04
  202. 00509511   B904000000             mov     ecx, $00000004
  203. 00509516   8BD7                   mov     edx, edi
  204. 00509518   E82374F0FF             call    00410940
  205. 0050951D   8D442414               lea     eax, [esp+$14]
  206. 00509521   50                     push    eax
  207. 00509522   8B4500                 mov     eax, [ebp+$00]
  208. 00509525   8B80E80A0000           mov     eax, [eax+$0AE8]
  209. 0050952B   E8609EF1FF             call    00423390
  210. 00509530   50                     push    eax
  211. 00509531   8BC3                   mov     eax, ebx
  212. 00509533   E8C83FF4FF             call    0044D500
  213. 00509538   59                     pop     ecx
  214. 00509539   5A                     pop     edx
  215. 0050953A   E80D4BF1FF             call    0041E04C
  216. 0050953F   47                     inc     edi
  217. 00509540   4E                     dec     esi
  218. 00509541   75A5                   jnz     005094E8
  219. 00509543   8B7338                 mov     esi, [ebx+$38]
  220. 00509546   83EE18                 sub     esi, +$18
  221. 00509549   83EE18                 sub     esi, +$18
  222. 0050954C   7C5D                   jl      005095AB
  223. 0050954E   46                     inc     esi
  224. 0050954F   BF18000000             mov     edi, $00000018
  225. 00509554   6A18                   push    $18
  226. 00509556   8D442404               lea     eax, [esp+$04]
  227. 0050955A   50                     push    eax
  228. 0050955B   B901000000             mov     ecx, $00000001
  229. 00509560   BA01000000             mov     edx, $00000001
  230. 00509565   B81A000000             mov     eax, $0000001A
  231. 0050956A   E8D173F0FF             call    00410940
  232. 0050956F   54                     push    esp
  233. 00509570   6A18                   push    $18
  234. 00509572   8D442418               lea     eax, [esp+$18]
  235. 00509576   50                     push    eax
  236. 00509577   B901000000             mov     ecx, $00000001
  237. 0050957C   33D2                   xor     edx, edx
  238. 0050957E   8BC7                   mov     eax, edi
  239. 00509580   E8BB73F0FF             call    00410940
  240. 00509585   8D442414               lea     eax, [esp+$14]
  241. 00509589   50                     push    eax
  242. 0050958A   8B4500                 mov     eax, [ebp+$00]
  243. 0050958D   8B80E80A0000           mov     eax, [eax+$0AE8]
  244. 00509593   E8F89DF1FF             call    00423390
  245. 00509598   50                     push    eax
  246. 00509599   8BC3                   mov     eax, ebx
  247. 0050959B   E8603FF4FF             call    0044D500
  248. 005095A0   59                     pop     ecx
  249. 005095A1   5A                     pop     edx
  250. 005095A2   E8A54AF1FF             call    0041E04C
  251. 005095A7   47                     inc     edi
  252. 005095A8   4E                     dec     esi
  253. 005095A9   75A9                   jnz     00509554
  254. 005095AB   8B7338                 mov     esi, [ebx+$38]
  255. 005095AE   83EE04                 sub     esi, +$04
  256. 005095B1   83EE04                 sub     esi, +$04
  257. 005095B4   7C61                   jl      00509617
  258. 005095B6   46                     inc     esi
  259. 005095B7   BF04000000             mov     edi, $00000004
  260. 005095BC   6A04                   push    $04
  261. 005095BE   8D442404               lea     eax, [esp+$04]
  262. 005095C2   50                     push    eax
  263. 005095C3   B901000000             mov     ecx, $00000001
  264. 005095C8   BA1C000000             mov     edx, $0000001C
  265. 005095CD   B81A000000             mov     eax, $0000001A
  266. 005095D2   E86973F0FF             call    00410940
  267. 005095D7   54                     push    esp
  268. 005095D8   6A04                   push    $04
  269. 005095DA   8D442418               lea     eax, [esp+$18]
  270. 005095DE   50                     push    eax
  271. 005095DF   8B533C                 mov     edx, [ebx+$3C]
  272. 005095E2   83EA04                 sub     edx, +$04
  273. 005095E5   B901000000             mov     ecx, $00000001
  274. 005095EA   8BC7                   mov     eax, edi
  275. 005095EC   E84F73F0FF             call    00410940
  276. 005095F1   8D442414               lea     eax, [esp+$14]
  277. 005095F5   50                     push    eax
  278. 005095F6   8B4500                 mov     eax, [ebp+$00]
  279. 005095F9   8B80E80A0000           mov     eax, [eax+$0AE8]
  280. 005095FF   E88C9DF1FF             call    00423390
  281. 00509604   50                     push    eax
  282. 00509605   8BC3                   mov     eax, ebx
  283. 00509607   E8F43EF4FF             call    0044D500
  284. 0050960C   59                     pop     ecx
  285. 0050960D   5A                     pop     edx
  286. 0050960E   E8394AF1FF             call    0041E04C
  287. 00509613   47                     inc     edi
  288. 00509614   4E                     dec     esi
  289. 00509615   75A5                   jnz     005095BC
  290. 00509617   6A18                   push    $18
  291. 00509619   8D442404               lea     eax, [esp+$04]
  292. 0050961D   50                     push    eax
  293. 0050961E   B918000000             mov     ecx, $00000018
  294. 00509623   BA01000000             mov     edx, $00000001
  295. 00509628   B801000000             mov     eax, $00000001
  296. 0050962D   E80E73F0FF             call    00410940
  297. 00509632   54                     push    esp
  298. 00509633   6A18                   push    $18
  299. 00509635   8D442418               lea     eax, [esp+$18]
  300. 00509639   50                     push    eax
  301. 0050963A   B918000000             mov     ecx, $00000018
  302. 0050963F   33D2                   xor     edx, edx
  303. 00509641   33C0                   xor     eax, eax
  304. 00509643   E8F872F0FF             call    00410940
  305. 00509648   8D442414               lea     eax, [esp+$14]
  306. 0050964C   50                     push    eax
  307. 0050964D   8B4500                 mov     eax, [ebp+$00]
  308. 00509650   8B80E80A0000           mov     eax, [eax+$0AE8]
  309. 00509656   E8359DF1FF             call    00423390
  310. 0050965B   50                     push    eax
  311. 0050965C   8BC3                   mov     eax, ebx
  312. 0050965E   E89D3EF4FF             call    0044D500
  313. 00509663   59                     pop     ecx
  314. 00509664   5A                     pop     edx
  315. 00509665   E8E249F1FF             call    0041E04C
  316. 0050966A   6A18                   push    $18
  317. 0050966C   8D442404               lea     eax, [esp+$04]
  318. 00509670   50                     push    eax
  319. 00509671   B918000000             mov     ecx, $00000018
  320. 00509676   BA01000000             mov     edx, $00000001
  321. 0050967B   B81C000000             mov     eax, $0000001C
  322. 00509680   E8BB72F0FF             call    00410940
  323. 00509685   54                     push    esp
  324. 00509686   6A18                   push    $18
  325. 00509688   8D442418               lea     eax, [esp+$18]
  326. 0050968C   50                     push    eax
  327. 0050968D   8B4338                 mov     eax, [ebx+$38]
  328. 00509690   83E818                 sub     eax, +$18
  329. 00509693   B918000000             mov     ecx, $00000018
  330. 00509698   33D2                   xor     edx, edx
  331. 0050969A   E8A172F0FF             call    00410940
  332. 0050969F   8D442414               lea     eax, [esp+$14]
  333. 005096A3   50                     push    eax
  334. 005096A4   8B4500                 mov     eax, [ebp+$00]
  335. 005096A7   8B80E80A0000           mov     eax, [eax+$0AE8]
  336. 005096AD   E8DE9CF1FF             call    00423390
  337. 005096B2   50                     push    eax
  338. 005096B3   8BC3                   mov     eax, ebx
  339. 005096B5   E8463EF4FF             call    0044D500
  340. 005096BA   59                     pop     ecx
  341. 005096BB   5A                     pop     edx
  342. 005096BC   E88B49F1FF             call    0041E04C
  343. 005096C1   6A04                   push    $04
  344. 005096C3   8D442404               lea     eax, [esp+$04]
  345. 005096C7   50                     push    eax
  346. 005096C8   B904000000             mov     ecx, $00000004
  347. 005096CD   BA1C000000             mov     edx, $0000001C
  348. 005096D2   B801000000             mov     eax, $00000001
  349. 005096D7   E86472F0FF             call    00410940
  350. 005096DC   54                     push    esp
  351. 005096DD   6A04                   push    $04
  352. 005096DF   8D442418               lea     eax, [esp+$18]
  353. 005096E3   50                     push    eax
  354. 005096E4   8B533C                 mov     edx, [ebx+$3C]
  355. 005096E7   83EA04                 sub     edx, +$04
  356. 005096EA   B904000000             mov     ecx, $00000004
  357. 005096EF   33C0                   xor     eax, eax
  358. 005096F1   E84A72F0FF             call    00410940
  359. 005096F6   8D442414               lea     eax, [esp+$14]
  360. 005096FA   50                     push    eax
  361. 005096FB   8B4500                 mov     eax, [ebp+$00]
  362. 005096FE   8B80E80A0000           mov     eax, [eax+$0AE8]
  363. 00509704   E8879CF1FF             call    00423390
  364. 00509709   50                     push    eax
  365. 0050970A   8BC3                   mov     eax, ebx
  366. 0050970C   E8EF3DF4FF             call    0044D500
  367. 00509711   59                     pop     ecx
  368. 00509712   5A                     pop     edx
  369. 00509713   E83449F1FF             call    0041E04C
  370. 00509718   6A04                   push    $04
  371. 0050971A   8D442404               lea     eax, [esp+$04]
  372. 0050971E   50                     push    eax
  373. 0050971F   B904000000             mov     ecx, $00000004
  374. 00509724   BA1C000000             mov     edx, $0000001C
  375. 00509729   B830000000             mov     eax, $00000030
  376. 0050972E   E80D72F0FF             call    00410940
  377. 00509733   54                     push    esp
  378. 00509734   6A04                   push    $04
  379. 00509736   8D442418               lea     eax, [esp+$18]
  380. 0050973A   50                     push    eax
  381. 0050973B   8B533C                 mov     edx, [ebx+$3C]
  382. 0050973E   83EA04                 sub     edx, +$04
  383. 00509741   8B4338                 mov     eax, [ebx+$38]
  384. 00509744   83E804                 sub     eax, +$04
  385. 00509747   B904000000             mov     ecx, $00000004
  386. 0050974C   E8EF71F0FF             call    00410940
  387. 00509751   8D442414               lea     eax, [esp+$14]
  388. 00509755   50                     push    eax
  389. 00509756   8B4500                 mov     eax, [ebp+$00]
  390. 00509759   8B80E80A0000           mov     eax, [eax+$0AE8]
  391. 0050975F   E82C9CF1FF             call    00423390
  392. 00509764   50                     push    eax
  393. 00509765   8BC3                   mov     eax, ebx
  394. 00509767   E8943DF4FF             call    0044D500
  395. 0050976C   59                     pop     ecx
  396. 0050976D   5A                     pop     edx
  397. 0050976E   E8D948F1FF             call    0041E04C
  398. 00509773   8BC3                   mov     eax, ebx
  399. 00509775   E8863DF4FF             call    0044D500
  400. 0050977A   8B4014                 mov     eax, [eax+$14]
  401. 0050977D   8B5500                 mov     edx, [ebp+$00]
  402. 00509780   8B92180B0000           mov     edx, [edx+$0B18]
  403. 00509786   E89143F1FF             call    0041DB1C
  404. 0050978B   8B433C                 mov     eax, [ebx+$3C]
  405. 0050978E   83E81C                 sub     eax, +$1C
  406. 00509791   50                     push    eax
  407. 00509792   8D442404               lea     eax, [esp+$04]
  408. 00509796   50                     push    eax
  409. 00509797   8B4B38                 mov     ecx, [ebx+$38]
  410. 0050979A   83E908                 sub     ecx, +$08
  411. 0050979D   BA18000000             mov     edx, $00000018
  412. 005097A2   B804000000             mov     eax, $00000004
  413. 005097A7   E89471F0FF             call    00410940
  414. 005097AC   54                     push    esp
  415. 005097AD   8BC3                   mov     eax, ebx
  416. 005097AF   E84C3DF4FF             call    0044D500
  417. 005097B4   5A                     pop     edx
  418. 005097B5   E8424AF1FF             call    0041E1FC
  419. 005097BA   83C420                 add     esp, +$20
  420. 005097BD   5D                     pop     ebp
  421. 005097BE   5F                     pop     edi
  422. 005097BF   5E                     pop     esi
  423. 005097C0   5B                     pop     ebx
  424. 005097C1   C3                     ret
  425. }
  426.  end ; 
  427. procedure TAddPort.FormResize(Sender: TObject);
  428. begin
  429. {
  430. 005097C4   8B10                   mov     edx, [eax]
  431. 005097C6   FF5278                 call    dword ptr [edx+$78]
  432. 005097C9   C3                     ret
  433. }
  434.  end ; 
  435. procedure TAddPort.OutlookBtn1Click(Sender: TObject);
  436. begin
  437. {
  438. 005092E0   55                     push    ebp
  439. 005092E1   8BEC                   mov     ebp, esp
  440. 005092E3   33C9                   xor     ecx, ecx
  441. 005092E5   51                     push    ecx
  442. 005092E6   51                     push    ecx
  443. 005092E7   51                     push    ecx
  444. 005092E8   51                     push    ecx
  445. 005092E9   53                     push    ebx
  446. 005092EA   56                     push    esi
  447. 005092EB   8BD8                   mov     ebx, eax
  448. 005092ED   33C0                   xor     eax, eax
  449. 005092EF   55                     push    ebp
  450. * Possible String Reference to: "閎