| 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 |  | 
|---|
| 18 | DATA32 segment | 
|---|
| 19 | f48CallGate: | 
|---|
| 20 | ulOffset        dd 0 | 
|---|
| 21 | usCGSelector    dw 0 | 
|---|
| 22 | DATA32 ends | 
|---|
| 23 |  | 
|---|
| 24 |  | 
|---|
| 25 | CODE32 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) | 
|---|
| 32 | libCallThruCallGate 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 | 
|---|
| 39 | libCallThruCallGate endp | 
|---|
| 40 |  | 
|---|
| 41 | CODE32 ends | 
|---|
| 42 | end | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.