Ignore:
Timestamp:
Oct 1, 2000, 4:58:21 AM (25 years ago)
Author:
bird
Message:

Implemented tool for generating calltab for kernel imports. (mkcalltab)
Implemented API for accessing memory in another process. (*ProcessReadWrite)
Added kernel imports needed to implemented ProcessReadWrite.
Removed unused kernel imports.

Location:
trunk/src/win32k/ldr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/ldr

    • Property svn:ignore set to
      calltaba.asm
  • trunk/src/win32k/ldr/mytkExecPgm.asm

    r4164 r4347  
    1 ; $Id: mytkExecPgm.asm,v 1.11 2000-09-02 21:08:10 bird Exp $
     1; $Id: mytkExecPgm.asm,v 1.12 2000-10-01 02:58:19 bird Exp $
    22;
    33; mytkExecPgm - tkExecPgm overload
     
    2525;   Imported Functions and variables.
    2626;
    27     extrn  _g_tkExecPgm:PROC
     27    extrn  g_tkExecPgm:PROC
    2828
    2929    ; Scans strings until empy-string is reached.
     
    3232    ; return: cx size - CF clear
    3333    ;         ax error- CF set
    34     extrn  _f_FuStrLenZ:PROC
     34    extrn  f_FuStrLenZ:PROC
    3535
    3636    ; Stringlength
     
    3939    ; return: cx size - CF clear
    4040    ;         ax error- CF set
    41     extrn  _f_FuStrLen:PROC
     41    extrn  f_FuStrLen:PROC
    4242
    4343    ;memcpy
     
    4848    ;return: success CF clear
    4949    ;        failure CF set
    50     extrn  _f_FuBuff:PROC
     50    extrn  f_FuBuff:PROC
    5151
    5252
     
    8585;   Exported symbols
    8686;
    87     public mytkExecPgm
     87    public myg_tkExecPgm
    8888    public tkExecPgmCopyEnv
    8989
     
    130130;
    131131;
    132 mytkExecPgm PROC FAR
     132myg_tkExecPgm PROC FAR
    133133cchFilename = -4h
    134134cchArgs     = -08h
     
    176176    mov     di, dx                      ; bx:di is now filename address
    177177    push    cs                          ; Problem calling far into the calltab segement.
    178     call    near ptr FLAT:_f_FuStrLen
     178    call    near ptr FLAT:f_FuStrLen
    179179    jc      tkepgm_backout              ; If the FuStrLen call failed we bail out!
    180180
     
    195195    mov     di, [ebp + OffArg]          ; bx:di -> arguments
    196196    push    cs                          ; Problem calling far into the calltab segement.
    197     call    near ptr FLAT:_f_FuStrLenZ
     197    call    near ptr FLAT:f_FuStrLenZ
    198198    jc      tkepgm_backout
    199199
     
    269269    mov     cx, [ebp + cchFilename]     ; cx = length of area to copy
    270270    push    cs                          ; Problem calling far into the calltab segement.
    271     call    near ptr FLAT:_f_FuBuff
     271    call    near ptr FLAT:f_FuBuff
    272272    jc      tkepgm_backout2             ; In case of error back (quite unlikely).
    273273
     
    290290    mov     cx, [ebp + cchArgs]         ; cx = length of area to copy
    291291    push    cs                          ; Problem calling far into the calltab segement.
    292     call    near ptr FLAT:_f_FuBuff
     292    call    near ptr FLAT:f_FuBuff
    293293    jc      tkepgm_backout2             ; In case of error back (quite unlikely).
    294294
    295295
    296296    ;
    297     ; Setup new input parameters (call _g_tkExecPgm)
     297    ; Setup new input parameters (call g_tkExecPgm)
    298298    ;
    299299    ; ds:dx is to become &achTkExecPgmFilename[0]
     
    312312
    313313    ;
    314     ; Call _g_tkExecPgm
     314    ; Call g_tkExecPgm
    315315    ;
    316316tkepgm_callbehind:
    317317    push    cs                          ; Problem calling far into the calltab segement.
    318     call    near ptr FLAT:_g_tkExecPgm
     318    call    near ptr FLAT:g_tkExecPgm
    319319    pushfd                              ; preserve flags
    320320    push    eax                         ; preserve result.
     
    409409    mov     si, [ebp + OffArg]
    410410
    411 mytkExecPgm_CalltkExecPgm:
    412     push    cs                          ; Problem calling far into the calltab segement.
    413     call    near ptr FLAT:_g_tkExecPgm
     411myg_tkExecPgm_CalltkExecPgm:
     412    push    cs                          ; Problem calling far into the calltab segement.
     413    call    near ptr FLAT:g_tkExecPgm
    414414    leave
    415415    retf
    416 mytkExecPgm ENDP
     416myg_tkExecPgm ENDP
    417417
    418418
     
    543543    xor     ecx, ecx
    544544    push    cs                          ; Problem calling far into the calltab segement.
    545     call    near ptr FLAT:_f_FuStrLenZ
     545    call    near ptr FLAT:f_FuStrLenZ
    546546    jc      tkepel_err_ret
    547547    movzx   eax, cx
Note: See TracChangeset for help on using the changeset viewer.