Changeset 6280 for trunk/src/win32k/dev32/devfirst.asm
- Timestamp:
- Jul 10, 2001, 7:19:34 AM (24 years ago)
- 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:25bird Exp $1 ; $Id: devfirst.asm,v 1.9 2001-07-10 05:19:34 bird Exp $ 2 2 ; 3 3 ; DevFirst - entrypoint and segment definitions … … 57 57 extrn WIN32KCLOSE:FAR 58 58 .286p 59 extrn h_POST_SIGNAL:FAR 59 60 extrn _strategy:near 60 61 … … 312 313 313 314 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. 333 POST_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 344 Thunk32_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 349 cps_error: 350 movzx eax, ax ; make sure upper part is empty as well. 351 352 cps_end: 353 pop ebx 354 leave 355 ret 356 POST_SIGNAL32 endp 314 357 CODE32 ends 358 359 CODE16 segment 360 Thunk16_POST_SIGNAL32:: 361 call far ptr h_POST_SIGNAL 362 jmp far ptr FLAT:Thunk32_POST_SIGNAL32 363 CODE16 ends 364 365 366 315 367 316 368 CODE16_INIT segment
Note:
See TracChangeset
for help on using the changeset viewer.