Last change
on this file since 22012 was 21356, checked in by rlwalsh, 16 years ago |
eliminate VACPP warning & info msgs - see Ticket #1
|
File size:
1.6 KB
|
Line | |
---|
1 | ; $Id: callwrap.asm,v 1.2 2004-05-11 09:08:19 sandervl Exp $
|
---|
2 |
|
---|
3 | ;/*
|
---|
4 | ; * Project Odin Software License can be found in LICENSE.TXT
|
---|
5 | ; * Win32 Exception handling + misc functions for OS/2
|
---|
6 | ; *
|
---|
7 | ; * Copyright 2003 Innotek Systemberatung GmbH (sandervl@innotek.de)
|
---|
8 | ; *
|
---|
9 | ; */
|
---|
10 | .386p
|
---|
11 | NAME helper
|
---|
12 |
|
---|
13 | DATA32 segment dword use32 public 'DATA'
|
---|
14 | DATA32 ends
|
---|
15 | CONST32_RO segment dword use32 public 'CONST'
|
---|
16 | CONST32_RO ends
|
---|
17 | BSS32 segment dword use32 public 'BSS'
|
---|
18 | BSS32 ends
|
---|
19 | DGROUP group BSS32, DATA32
|
---|
20 | assume cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT
|
---|
21 |
|
---|
22 | CODE32 SEGMENT DWORD PUBLIC USE32 'CODE'
|
---|
23 |
|
---|
24 | PUBLIC _WrapCallback2
|
---|
25 | ; WrapCallback(PFN lpfnFunction, DWORD param1, DWORD param2)
|
---|
26 | _WrapCallback2 proc near
|
---|
27 | push ebp
|
---|
28 | push ebx
|
---|
29 | push ecx
|
---|
30 | push edx
|
---|
31 | push edi
|
---|
32 | push esi
|
---|
33 | mov ebp, esp
|
---|
34 |
|
---|
35 | push dword ptr [ebp+36]
|
---|
36 | push dword ptr [ebp+32]
|
---|
37 | call dword ptr [ebp+28]
|
---|
38 |
|
---|
39 | mov esp, ebp
|
---|
40 |
|
---|
41 | pop esi
|
---|
42 | pop edi
|
---|
43 | pop edx
|
---|
44 | pop ecx
|
---|
45 | pop ebx
|
---|
46 |
|
---|
47 | pop ebp
|
---|
48 | ret
|
---|
49 | _WrapCallback2 endp
|
---|
50 |
|
---|
51 |
|
---|
52 | PUBLIC _WrapCallback4@20
|
---|
53 | ; WrapCallback4(PFN lpfnFunction, DWORD hwnd, DWORD msg, DWORD wParam, DWORD lParam)
|
---|
54 | _WrapCallback4@20 proc near
|
---|
55 | push ebp
|
---|
56 | mov ebp, esp
|
---|
57 | push dword ptr [ebp+24]
|
---|
58 | push dword ptr [ebp+20]
|
---|
59 | push dword ptr [ebp+16]
|
---|
60 | push dword ptr [ebp+12]
|
---|
61 | call dword ptr [ebp+08]
|
---|
62 |
|
---|
63 | mov esp, ebp
|
---|
64 | pop ebp
|
---|
65 | ret 20
|
---|
66 | _WrapCallback4@20 endp
|
---|
67 |
|
---|
68 | CODE32 ENDS
|
---|
69 |
|
---|
70 | END
|
---|
Note:
See
TracBrowser
for help on using the repository browser.