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

Last change on this file was 21916, checked in by dmik, 14 years ago

Merge branch gcc-kmk to trunk.

File size: 894 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.