source: trunk/src/user32/callwrap.asm@ 22012

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
13DATA32 segment dword use32 public 'DATA'
14DATA32 ends
15CONST32_RO segment dword use32 public 'CONST'
16CONST32_RO ends
17BSS32 segment dword use32 public 'BSS'
18BSS32 ends
19DGROUP group BSS32, DATA32
20 assume cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT
21
22CODE32 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
68CODE32 ENDS
69
70 END
Note: See TracBrowser for help on using the repository browser.