Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. ; Import Section
  3.  
  4.     dd      0, 0, 0, RVA kernel32, RVA kernel32tbl
  5.     dd      0, 0, 0, RVA user32, RVA user32tbl
  6.     dd      0, 0, 0, RVA gdi32, RVA gdi32tbl
  7.     dd      0, 0, 0, 0, 0
  8.  
  9. kernel32tbl:
  10. ;{W32}
  11.     GetLocalTime dd RVA _GetLocalTime
  12. ;{W32}
  13.     SetFilePointer dd RVA _SetFilePointer
  14. ;{W32}
  15.     GetFileAttributes dd RVA _GetFileAttributes
  16. ;{W32}
  17.     SetCurrentDir dd RVA _SetCurrentDir
  18. ;{W32}
  19.     GetConsoleScrBufInfo dd RVA _GetConsoleScrBufInfo
  20. ;{W32}
  21.     GetConsoleMode dd RVA _GetConsoleMode
  22. ;{W32}
  23.     GetStdHandle dd RVA _GetStdHandle
  24. ;{W32}
  25.     FreeConsole dd RVA _FreeConsole
  26. ;{W32}
  27.     AllocConsole dd RVA _AllocConsole
  28. ;{W32}
  29.     CreateThread dd RVA _CreateThread
  30. ;{W32}
  31.     Sleep dd RVA _Sleep
  32. ;{W32}
  33.     MulDiv dd RVA _MulDiv
  34. ;{W32}
  35.     VirtualFree dd RVA _VirtualFree
  36. ;{W32}
  37.     VirtualAlloc dd RVA _VirtualAlloc
  38. ;{W32}
  39.     GetFileSize dd RVA _GetFileSize
  40. ;{W32}
  41.     WriteFile dd RVA _WriteFile
  42. ;{W32}
  43.     ReadFile dd RVA _ReadFile
  44. ;{W32}
  45.     CloseHandle dd RVA _CloseHandle
  46. ;{W32}
  47.     CreateFile dd RVA _CreateFile
  48. ;{W32}
  49.     CreateFileAnsi dd RVA _CreateFileAnsi
  50. ;{W32}
  51.     GetTickCount dd RVA _GetTickCount
  52. ;{W32}
  53.     FindClose dd RVA _FindClose
  54. ;{W32}
  55.     FindNextFile dd RVA _FindNextFile
  56. ;{W32}
  57.     FindFirstFile dd RVA _FindFirstFile
  58. ;{W32}
  59.     GetProcessHeap dd RVA _GetProcessHeap
  60. ;{W32}
  61.     GetModuleFileName dd RVA _GetModuleFileName
  62. ;{W32}
  63.     OutputDebugString dd RVA _OutputDebugString
  64. ;{W32}
  65.     HeapCreate dd RVA _HeapCreate
  66. ;{W32}
  67.     HeapAlloc dd RVA _HeapAlloc
  68. ;{W32}
  69.     HeapReAlloc dd RVA _HeapReAlloc
  70. ;{W32}
  71.     HeapFree dd RVA _HeapFree
  72. ;{W32}
  73.     HeapDestroy dd RVA _HeapDestroy
  74. ;{W32}
  75.     GetModuleHandle dd RVA _GetModuleHandle
  76. ;{W32}
  77.     ExitProcess dd RVA _ExitProcess
  78.     dd      0
  79.  
  80. user32tbl:
  81. ;{W32}
  82.     OffsetRect dd RVA _OffsetRect
  83. ;{W32}
  84.     AdjustWindowRect dd RVA _AdjustWindowRect
  85. ;{W32}
  86.     MessageBeep dd RVA _MessageBeep
  87. ;{W32}
  88.     GetCursorPos dd RVA _GetCursorPos
  89. ;{W32}
  90.     TrackPopupMenu dd RVA _TrackPopupMenu
  91. ;{W32}
  92.     AppendMenu dd RVA _AppendMenu
  93. ;{W32}
  94.     DestroyMenu dd RVA _DestroyMenu
  95. ;{W32}
  96.     CreatePopupMenu dd RVA _CreatePopupMenu
  97. ;{W32}
  98.     GetFocus dd RVA _GetFocus
  99. ;{W32}
  100.     GetWindowTextLen dd RVA _GetWindowTextLen
  101. ;{W32}
  102.     GetWindowText dd RVA _GetWindowText
  103. ;{W32}
  104.     GetDlgItem dd RVA _GetDlgItem
  105. ;{W32}
  106.     PostMessage dd RVA _PostMessage
  107. ;{W32}
  108.     SendMessage dd RVA _SendMessage
  109. ;{W32}
  110.     InflateRect dd RVA _InflateRect
  111. ;{W32}
  112.     EndDialog dd RVA _EndDialog
  113. ;{W32}
  114.     DlgBoxParam dd RVA _DlgBoxParam
  115. ;{W32}
  116.     GetSystemMetrics dd RVA _GetSystemMetrics
  117. ;{W32}
  118.     DrawIcon dd RVA _DrawIcon
  119. ;{W32}
  120.     DrawText dd RVA _DrawText
  121. ;{W32}
  122.     ReleaseCapture dd RVA _ReleaseCapture
  123. ;{W32}
  124.     SetCapture dd RVA _SetCapture
  125. ;{W32}
  126.     SetWindowText dd RVA _SetWindowText
  127. ;{W32}
  128.     SetCursor dd RVA _SetCursor
  129. ;{W32}
  130.     ReleaseDC dd RVA _ReleaseDC
  131. ;{W32}
  132.     GetDC dd RVA _GetDC
  133. ;{W32}
  134.     FrameRect dd RVA _FrameRect
  135. ;{W32}
  136.     FillRect dd RVA _FillRect
  137. ;{W32}
  138.     EndPaint dd RVA _EndPaint
  139. ;{W32}
  140.     BeginPaint dd RVA _BeginPaint
  141. ;{W32}
  142.     UpdateWindow dd RVA _UpdateWindow
  143. ;{W32}
  144.     PostQuitMessage dd RVA _PostQuitMessage
  145. ;{W32}
  146.     LoadBitmap dd RVA _LoadBitmap
  147. ;{W32}
  148.     LoadImage dd RVA _LoadImage
  149. ;{W32}
  150.     LoadIcon dd RVA _LoadIcon
  151. ;{W32}
  152.     LoadCursor dd RVA _LoadCursor
  153. ;{W32}
  154.     GetWindowRect dd RVA _GetWindowRect
  155. ;{W32}
  156.     GetClientRect dd RVA _GetClientRect
  157. ;{W32}
  158.     ShowWindow dd RVA _ShowWindow
  159. ;{W32}
  160.     CreateWindowEx dd RVA _CreateWindowEx
  161. ;{W32}
  162.     DefWindowProc dd RVA _DefWindowProc
  163. ;{W32}
  164.     RegisterClass dd RVA _RegisterClass
  165. ;{W32}
  166.     GetClassInfo dd RVA _GetClassInfo
  167. ;{W32}
  168.     SetWindowLong dd RVA _SetWindowLong
  169. ;{W32}
  170.     GetWindowLong dd RVA _GetWindowLong
  171. ;{W32}
  172.     GetMessage dd RVA _GetMessage
  173. ;{W32}
  174.     DispatchMessage dd RVA _DispatchMessage
  175. ;{W32}
  176.     TranslateMessage dd RVA _TranslateMessage
  177. ;{W32}
  178.     TranslateAccelerator dd RVA _TranslateAccelerator
  179. ;{W32}
  180.     CreateAcceleratorTable dd RVA _CreateAcceleratorTable
  181. ;{W32}
  182.     InvalidateRect dd RVA _InvalidateRect
  183. ;{W32}
  184.     MoveWindow dd RVA _MoveWindow
  185. ;{W32}
  186.     IsWindowVisible dd RVA _IsWindowVisible
  187. ;{W32}
  188.     MessageBox dd RVA _MessageBox
  189.     dd      0
  190.  
  191. gdi32tbl:
  192. ;{W32}
  193.     TextOut dd RVA _TextOut
  194. ;{W32}
  195.     MoveToEx dd RVA _MoveToEx
  196. ;{W32}
  197.     SetTextAlign dd RVA _SetTextAlign
  198. ;{W32}
  199.     BitBlt dd RVA _BitBlt
  200. ;{W32}
  201.     CreateCompatibleBitmap dd RVA _CreateCompatibleBitmap
  202. ;{W32}
  203.     DeleteDC dd RVA _DeleteDC
  204. ;{W32}
  205.     SetTextColor dd RVA _SetTextColor
  206. ;{W32}
  207.     CreatePatternBrush dd RVA _CreatePatternBrush
  208. ;{W32}
  209.     GetStockObject dd RVA _GetStockObject
  210. ;{W32}
  211.     CreatePen dd RVA _CreatePen
  212. ;{W32}
  213.     Polyline dd RVA _Polyline
  214. ;{W32}
  215.     CreateSolidBrush dd RVA _CreateSolidBrush
  216. ;{W32}
  217.     DeleteObject dd RVA _DeleteObject
  218. ;{W32}
  219.     CreateFontIndirect dd RVA _CreateFontIndirect
  220. ;{W32}
  221.     GetDeviceCaps dd RVA _GetDeviceCaps
  222. ;{W32}
  223.     GetTextExtentPoint32 dd RVA _GetTextExtentPoint32
  224. ;{W32}
  225.     SetBkMode dd RVA _SetBkMode
  226. ;{W32}
  227.     SelectObject dd RVA _SelectObject
  228. ;{W32}
  229.     CreateCompatibleDC dd RVA _CreateCompatibleDC
  230.     dd      0
  231.  
  232. ; --- Modules
  233.  
  234. kernel32    db 'KERNEL32.DLL', 0
  235. user32      db 'USER32.DLL', 0
  236. gdi32       db 'GDI32.DLL', 0
  237.  
  238. ; --- Table
  239.  
  240. align 2
  241. _GetLocalTime dw 0
  242. db 'GetLocalTime',0
  243.  
  244. align 2
  245. _SetFilePointer dw 0
  246. db 'SetFilePointer',0
  247.  
  248. align 2
  249. _GetFileAttributes dw 0
  250. db 'GetFileAttributesA',0
  251.  
  252. align 2
  253. _SetCurrentDir dw 0
  254. db 'SetCurrentDirectoryW',0
  255.  
  256. align 2
  257. _OffsetRect dw 0
  258. db 'OffsetRect',0
  259.  
  260. align 2
  261. _GetConsoleScrBufInfo dw 0
  262. db 'GetConsoleScreenBufferInfo',0
  263.  
  264. align 2
  265. _GetConsoleMode dw 0
  266. db 'GetConsoleMode',0
  267.  
  268. align 2
  269. _FreeConsole dw 0
  270. db 'FreeConsole',0
  271.  
  272. align 2
  273. _GetStdHandle dw 0
  274. db 'GetStdHandle',0
  275.  
  276. align 2
  277. _AllocConsole dw 0
  278. db 'AllocConsole',0
  279.  
  280. align 2
  281. _CreateThread dw 0
  282. db 'CreateThread',0
  283.  
  284. align 2
  285. _Sleep dw 0
  286. db 'Sleep',0
  287.  
  288. align 2
  289. _AdjustWindowRect dw 0
  290. db 'AdjustWindowRect',0
  291.  
  292. align 2
  293. _MessageBeep dw 0
  294. db 'MessageBeep',0
  295.  
  296. align 2
  297. _TextOut dw 0
  298. db 'TextOutW',0
  299.  
  300. align 2
  301. _MoveToEx dw 0
  302. db 'MoveToEx',0
  303.  
  304. align 2
  305. _SetTextAlign dw 0
  306. db 'SetTextAlign',0
  307.  
  308. align 2
  309. _BitBlt dw 0
  310. db 'BitBlt',0
  311.  
  312. align 2
  313. _CreateCompatibleBitmap dw 0
  314. db 'CreateCompatibleBitmap',0
  315.  
  316. align 2
  317. _DeleteDC dw 0
  318. db 'DeleteDC',0
  319.  
  320. align 2
  321. _MulDiv dw 0
  322. db 'MulDiv',0
  323.  
  324. align 2
  325. _GetCursorPos dw 0
  326. db 'GetCursorPos',0
  327.  
  328. align 2
  329. _TrackPopupMenu dw 0
  330. db 'TrackPopupMenu',0
  331.  
  332. align 2
  333. _AppendMenu dw 0
  334. db 'AppendMenuW',0
  335.  
  336. align 2
  337. _DestroyMenu dw 0
  338. db 'DestroyMenu',0
  339.  
  340. align 2
  341. _CreatePopupMenu dw 0
  342. db 'CreatePopupMenu',0
  343.  
  344. align 2
  345. _GetFocus dw 0
  346. db 'GetFocus',0
  347.  
  348. align 2
  349. _SetTextColor dw 0
  350. db 'SetTextColor',0
  351.  
  352. align 2
  353. _GetWindowTextLen dw 0
  354. db 'GetWindowTextLengthW',0
  355.  
  356. align 2
  357. _GetWindowText dw 0
  358. db 'GetWindowTextW',0
  359.  
  360. align 2
  361. _CreatePatternBrush dw 0
  362. db 'CreatePatternBrush',0
  363.  
  364. align 2
  365. _GetDlgItem dw 0
  366. db 'GetDlgItem',0
  367.  
  368. align 2
  369. _VirtualFree dw 0
  370. db 'VirtualFree',0
  371.  
  372. align 2
  373. _VirtualAlloc dw 0
  374. db 'VirtualAlloc',0
  375.  
  376. align 2
  377. _ImageList_AddMasked dw 0
  378. db 'ImageList_AddMasked',0
  379.  
  380. align 2
  381. _ImageList_Create dw 0
  382. db 'ImageList_Create',0
  383.  
  384. align 2
  385. _PostMessage dw 0
  386. db 'PostMessageW',0
  387.  
  388. align 2
  389. _SendMessage dw 0
  390. db 'SendMessageW',0
  391.  
  392. align 2
  393. _GetFileSize dw 0
  394. db 'GetFileSize',0
  395.  
  396. align 2
  397. _WriteFile dw 0
  398. db 'WriteFile',0
  399.  
  400. align 2
  401. _ReadFile dw 0
  402. db 'ReadFile',0
  403.  
  404. align 2
  405. _CloseHandle dw 0
  406. db 'CloseHandle',0
  407.  
  408. align 2
  409. _CreateFile dw 0
  410. db 'CreateFileW',0
  411.  
  412. align 2
  413. _CreateFileAnsi dw 0
  414. db 'CreateFileA',0
  415.  
  416. align 2
  417. _InflateRect dw 0
  418. db 'InflateRect',0
  419.  
  420. align 2
  421. _EndDialog dw 0
  422. db 'EndDialog',0
  423.  
  424. align 2
  425. _DlgBoxParam dw 0
  426. db 'DialogBoxIndirectParamW',0
  427.  
  428. align 2
  429. _GetSystemMetrics dw 0
  430. db 'GetSystemMetrics',0
  431.  
  432. align 2
  433. _GetStockObject dw 0
  434. db 'GetStockObject',0
  435.  
  436. align 2
  437. _GetTickCount dw 0
  438. db 'GetTickCount',0
  439.  
  440. align 2
  441. _FindClose dw 0
  442. db 'FindClose',0
  443.  
  444. align 2
  445. _FindNextFile dw 0
  446. db 'FindNextFileW',0
  447.  
  448. align 2
  449. _FindFirstFile dw 0
  450. db 'FindFirstFileW',0
  451.  
  452. align 2
  453. _DrawText dw 0
  454. db 'DrawTextW',0
  455.  
  456. align 2
  457. _DrawIcon dw 0
  458. db 'DrawIcon',0
  459.  
  460. align 2
  461. _CreatePen dw 0
  462. db 'CreatePen',0
  463.  
  464. align 2
  465. _Polyline dw 0
  466. db 'Polyline',0
  467.  
  468. align 2
  469. _CreateSolidBrush dw 0
  470. db 'CreateSolidBrush',0
  471.  
  472. align 2
  473. _DeleteObject dw 0
  474. db 'DeleteObject',0
  475.  
  476. align 2
  477. _SetCapture dw 0
  478. db 'SetCapture',0
  479.  
  480. align 2
  481. _ReleaseCapture dw 0
  482. db 'ReleaseCapture',0
  483.  
  484. align 2
  485. _SetWindowText dw 0
  486. db 'SetWindowTextW',0
  487.  
  488. align 2
  489. _InitCommonControlsEx dw 0
  490. db 'InitCommonControlsEx',0
  491.  
  492. align 2
  493. _SetCursor dw 0
  494. db 'SetCursor',0
  495.  
  496. align 2
  497. _GetProcessHeap dw 0
  498. db 'GetProcessHeap',0
  499.  
  500. align 2
  501. _CreateFontIndirect dw 0
  502. db 'CreateFontIndirectW',0
  503.  
  504. align 2
  505. _GetDeviceCaps dw 0
  506. db 'GetDeviceCaps',0
  507.  
  508. align 2
  509. _ReleaseDC dw 0
  510. db 'ReleaseDC',0
  511.  
  512. align 2
  513. _GetDC dw 0
  514. db 'GetDC',0
  515.  
  516. align 2
  517. _GetTextExtentPoint32 dw 0
  518. db 'GetTextExtentPoint32W',0
  519.  
  520. align 2
  521. _GetModuleFileName dw 0
  522. db 'GetModuleFileNameW',0
  523.  
  524. align 2
  525. _FrameRect dw 0
  526. db 'FrameRect',0
  527.  
  528. align 2
  529. _FillRect dw 0
  530. db 'FillRect',0
  531.  
  532. align 2
  533. _SetBkMode dw 0
  534. db 'SetBkMode',0
  535.  
  536. align 2
  537. _EndPaint dw 0
  538. db 'EndPaint',0
  539.  
  540. align 2
  541. _BeginPaint dw 0
  542. db 'BeginPaint',0
  543.  
  544. align 2
  545. _SelectObject dw 0
  546. db 'SelectObject',0
  547.  
  548. align 2
  549. _OutputDebugString dw 0
  550. db 'OutputDebugStringW',0
  551.  
  552. align 2
  553. _HeapCreate dw 0
  554. db 'HeapCreate',0
  555.  
  556. align 2
  557. _HeapAlloc dw 0
  558. db 'HeapAlloc',0
  559.  
  560. align 2
  561. _HeapReAlloc dw 0
  562. db 'HeapReAlloc',0
  563.  
  564. align 2
  565. _HeapFree dw 0
  566. db 'HeapFree',0
  567.  
  568. align 2
  569. _HeapDestroy dw 0
  570. db 'HeapDestroy',0
  571.  
  572. align 2
  573. _IsWindowVisible dw 0
  574. db 'IsWindowVisible',0
  575.  
  576. align 2
  577. _MoveWindow dw 0
  578. db 'MoveWindow',0
  579.  
  580. align 2
  581. _InvalidateRect dw 0
  582. db 'InvalidateRect',0
  583.  
  584. align 2
  585. _UpdateWindow dw 0
  586. db 'UpdateWindow',0
  587.  
  588. align 2
  589. _CreateAcceleratorTable dw 0
  590. db 'CreateAcceleratorTableW',0
  591.  
  592. align 2
  593. _TranslateAccelerator dw 0
  594. db 'TranslateAccelerator',0
  595.  
  596. align 2
  597. _TranslateMessage dw 0
  598. db 'TranslateMessage',0
  599.  
  600. align 2
  601. _DispatchMessage dw 0
  602. db 'DispatchMessageW',0
  603.  
  604. align 2
  605. _GetMessage dw 0
  606. db 'GetMessageW',0
  607.  
  608. align 2
  609. _PostQuitMessage dw 0
  610. db 'PostQuitMessage',0
  611.  
  612. align 2
  613. _LoadBitmap dw 0
  614. db 'LoadBitmapW',0
  615.  
  616. align 2
  617. _LoadImage dw 0
  618. db 'LoadImageW',0
  619.  
  620. align 2
  621. _LoadIcon dw 0
  622. db 'LoadIconW',0
  623.  
  624. align 2
  625. _LoadCursor dw 0
  626. db 'LoadCursorW',0
  627.  
  628. align 2
  629. _GetWindowRect dw 0
  630. db 'GetWindowRect',0
  631.  
  632. align 2
  633. _GetClientRect dw 0
  634. db 'GetClientRect',0
  635.  
  636. align 2
  637. _ShowWindow dw 0
  638. db 'ShowWindow',0
  639.  
  640. align 2
  641. _CreateWindowEx dw 0
  642. db 'CreateWindowExW',0
  643.  
  644. align 2
  645. _DefWindowProc dw 0
  646. db 'DefWindowProcW',0
  647.  
  648. align 2
  649. _RegisterClass dw 0
  650. db 'RegisterClassW',0
  651.  
  652. align 2
  653. _GetClassInfo dw 0
  654. db 'GetClassInfoW',0
  655.  
  656. align 2
  657. _SetWindowLong dw 0
  658. db 'SetWindowLongW',0
  659.  
  660. align 2
  661. _GetWindowLong dw 0
  662. db 'GetWindowLongW',0
  663.  
  664. align 2
  665. _GetModuleHandle dw 0
  666. db 'GetModuleHandleW',0
  667.  
  668. align 2
  669. _CreateCompatibleDC dw 0
  670. db 'CreateCompatibleDC',0
  671.  
  672. align 2
  673. _ExitProcess dw 0
  674. db 'ExitProcess',0
  675.  
  676. align 2
  677. _MessageBox dw 0
  678. db 'MessageBoxW',0
  679.  
  680. ;<EOF>
  681.