source: trunk/src/win32k/lib/libCallThruCallGate.asm@ 8706

Last change on this file since 8706 was 5224, checked in by bird, 25 years ago

CallGate changes.

File size: 892 bytes
Line 
1; $Id: libCallThruCallGate.asm,v 1.1 2001-02-21 07:47:57 bird Exp $
2;
3; Calls Win32k thru the call gate.
4;
5; Copyright (c) 2001 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
6;
7; Project Odin Software License can be found in LICENSE.TXT
8;
9 .386p
10
11;
12; Exported symbols
13;
14 public libCallThruCallGate
15 public usCGSelector
16
17
18DATA32 segment
19f48CallGate:
20 ulOffset dd 0
21 usCGSelector dw 0
22DATA32 ends
23
24
25CODE32 segment
26 assume CS:CODE32, DS:FLAT, SS:NOTHING
27;;
28;
29; @cproto APIRET APIENTRY libWin32kCallThruCallGate(ULONG ulFunction, PVOID pvParam);
30; @returns CS value.
31; @author knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
32libCallThruCallGate proc near
33 ASSUME ds:FLAT, ss:FLAT
34 push dword ptr [esp+08h]
35 push dword ptr [esp+08h]
36 call fword ptr ds:[ulOffset]
37 add esp, 8
38 ret
39libCallThruCallGate endp
40
41CODE32 ends
42end
Note: See TracBrowser for help on using the repository browser.