Tag Archives: os/2

DevHlp_CloseFile

Description

This devhlp closes a file opened by DevHlp_OpenFile.

Calling convention

  • ES:DI = point to a SYICloseFile structure
  • DL = 080h

Returns

  • CY=0, AX = 0, okay
  • CY=1, AX = APIRET error code

Data structures

; assembler structure
SYICloseFile	struc
length		dw	2	; length of structure (must be 2)
SYICloseFile	ends

 

Restrictions

Valid at INIT time only. See also restrictions of DevHlp_OpenFile

DevHlp_KillProc

Description

This is a special entry into DosKillProcess, which is more rigid in killing processes: the killed process won’t be able to execute its kill signal handler, thus open files might not be closed properly. A process currently operating in ring 0 will terminate as soon as it returns to ring 3 (this means, a process blocked in the kernel, e.g. on a pending I/O, can still not be killed). This devhlp corresponds to the SESKillProcess API.
Calling convention

  • BX = Pid of process to kill, 0 = current process
  • DL = 07dh

Returns

  • CY=0, AX = 0, okay
  • CY=1, AX = APIRET error code

Data structures

None.

Restrictions

Valid at TASK time only.

Republished without permission from Holger Veit’s long gone webpages – MKG