Opened 7 years ago

Closed 7 years ago

#67 closed enhancement (fixed)

Use CADH.SYS for hard kill if present on system

Reported by: Gregg Young Owned by: Gregg Young
Priority: minor Milestone: 2.9.0
Component: core Version:
Keywords: Cc:

Description


Change History (3)

comment:1 by Gregg Young, 7 years ago

From OpenXF86 in common.c ~350:

if (DosOpen
	((PSZ) "/dev/fastio$", (PHFILE) & hfd, &action, 0, FILE_SYSTEM,
	 FILE_OPEN,
	 OPEN_SHARE_DENYNONE | OPEN_FLAGS_NOINHERIT | OPEN_ACCESS_READONLY,
	 0) != 0)
	return 0;
    else
	return hfd;

For OpenCADH would become:

if (DosOpen
	((PSZ) "/DEV/CADH$$$$", (PHFILE) & hfd, &action, 0, FILE_SYSTEM,
	 FILE_OPEN,
	 OPEN_SHARE_DENYNONE | OPEN_FLAGS_NOINHERIT | OPEN_ACCESS_READONLY,
	 0) != 0)
	return 0;
    else
	return hfd;

In Death common.c ~375

if ((hfd = OpenXF86()) == 0)
	return FALSE;
    param = pid;

    if (DosDevIOCtl
	(hfd, 0x76, 0x65, (PULONG *) & param, sizeof(USHORT), &plen, NULL, 0,
	 NULL) != 0) {
	DosClose(hfd);

We would add for CADH

if ((hfd = OpenCADH()) == 0)
	return FALSE;
    param = pid;

    if (DosDevIOCtl
	(hfd, 0x80, 0x05, (PULONG *) & param, sizeof(USHORT), &plen, NULL, 0,
	 NULL) != 0) {
	DosClose(hfd);

Need to also add checks for menu items being present and usable or not. See XF86Installed common.c ~365.

comment:2 by Gregg Young, 7 years ago

Owner: set to Gregg Young
Status: newaccepted

comment:3 by Gregg Young, 7 years ago

Resolution: fixed
Status: acceptedclosed

CS [136]

Note: See TracTickets for help on using tickets.