Ignore:
Timestamp:
Jul 10, 2001, 7:19:34 AM (24 years ago)
Author:
bird
Message:

Kill API coding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/dev32/devfirst.asm

    r6218 r6280  
    1 ; $Id: devfirst.asm,v 1.8 2001-07-08 02:55:25 bird Exp $
     1; $Id: devfirst.asm,v 1.9 2001-07-10 05:19:34 bird Exp $
    22;
    33; DevFirst - entrypoint and segment definitions
     
    5757    extrn WIN32KCLOSE:FAR
    5858    .286p
     59    extrn h_POST_SIGNAL:FAR
    5960    extrn _strategy:near
    6061
     
    312313
    313314
     315;;
     316; Post signal to one or more processes.
     317; @cproto   extern ULONG POST_SIGNAL32(USHORT usSignal, USHORT usAction, USHORT usSignalArg, USHORT usPIDSGR);
     318; @returns  NO_ERROR on success.
     319;           On error ERROR_NOT_DESCENDANT, ERROR_SIGNAL_REFUSED,
     320;           ERROR_INVALID_PROCID, ERROR_ZOMBIE_PROCESS, ERROR_SIGNAL_PENDING. (it seems)
     321; @param    ax          Signal number.
     322; @param    dx          Action.
     323;                       0 - the process and all children.
     324;                       1 - only the process
     325;                       2 - the process and all it's decendants.
     326;                       3 - all processes in that screen group.
     327; @param    cx          Signal argument.
     328; @param    [ebp+14h]   Process Id or Screen Group Id.
     329; @uses     eax, edx, ecx
     330; @status   completely implemented.
     331; @author   knut st. osmundsen (knut.stange.osmundsen@mynd.no)
     332; @remark   Used by importTabInit.
     333POST_SIGNAL32 proc near
     334    push    ebp
     335    mov     ebp, esp
     336    push    ebx
     337
     338    movzx   eax, ax                     ; signal
     339    movzx   ebx, dx                     ; action
     340    movzx   ecx, cx                     ; argument
     341    movzx   edx, word ptr [ebp+14h]     ; pid
     342
     343    jmp     far ptr CODE16:Thunk16_POST_SIGNAL32
     344Thunk32_POST_SIGNAL32::
     345    jc      cps_error                   ; jump on error
     346    xor     eax, eax                    ; just to make sure it's all empty.
     347    jmp     cps_end
     348
     349cps_error:
     350    movzx   eax, ax                     ; make sure upper part is empty as well.
     351
     352cps_end:
     353    pop     ebx
     354    leave
     355    ret
     356POST_SIGNAL32 endp
    314357CODE32 ends
     358
     359CODE16 segment
     360Thunk16_POST_SIGNAL32::
     361    call    far ptr h_POST_SIGNAL
     362    jmp     far ptr FLAT:Thunk32_POST_SIGNAL32
     363CODE16 ends
     364
     365
     366
    315367
    316368CODE16_INIT segment
Note: See TracChangeset for help on using the changeset viewer.