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

Kill API - initial coding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win32k.h

    r6212 r6291  
    1 /* $Id: win32k.h,v 1.12 2001-07-08 02:50:35 bird Exp $
     1/* $Id: win32k.h,v 1.13 2001-07-10 05:31:36 bird Exp $
    22 *
    33 * Top level make file for the Win32k library.
     
    3535#define K32_QUERYCALLGATE       0x08
    3636#define K32_SETENVIRONMENT      0x09
    37 #define K32_LASTIOCTLFUNCTION   K32_SETENVIRONMENT
     37#define K32_KILLPROCESSEX       0x0a
     38#define K32_LASTIOCTLFUNCTION   K32_KILLPROCESSEX
    3839
    3940
     
    8586
    8687
     88/*
     89 * DosKillProcessEx extra flags.
     90 * (DKP_PROCESS and DKP_PROCESSTREE is defined in the OS/2 toolkit headers.)
     91 */
     92#define DKP_ALLDECENDANTS               0x00000002UL/* Kill process all its decendants. */
     93#define DKP_SCREENGROUP                 0x00000003UL/* Kill all processes in that screen group. */
     94#define DKP_ACTION_MASK                 0x00000003UL/* Mask for actions (validation) */
     95#define DKP_FLAG_MASK                   (DKP_FLAG_KILL9) /* Mask for flags (validation) */
     96#define DKP_FLAG_KILL9                  0x80000000UL/* Very forceful kill */
     97                                                    /*  - not necessarily properly cleaned up. */
     98
     99
    87100/* NOINC */
    88101#ifndef INCL_16                         /* We don't need this in 16-bit code. */
     
    420433typedef struct _k32QueryCallGate *      PK32QUERYCALLGATE;
    421434
     435
    422436struct _k32SetEnvironment
    423437{
     
    429443typedef struct _k32SetEnvironment       K32SETENVIRONMENT;
    430444typedef struct _k32SetEnvironment *     PK32SETENVIRONMENT;
     445
     446
     447struct _k32KillProcessEx
     448{
     449    K32HDR      hdr;                    /* Common parameter header */
     450    ULONG       flAction;               /* Action flags. (see k32KillProcessEx for details.) */
     451    PID         pid;                    /* The identity of the process or root in process tree to be killed. */
     452};
     453typedef struct _k32KillProcessEx        K32KILLPROCESSEX;
     454typedef struct _k32KillProcessEx *      PK32KILLPROCESSEX;
    431455
    432456#pragma pack()
     
    447471/* "Extra OS2 APIs" */
    448472APIRET APIENTRY  DosAllocMemEx(PPVOID ppv, ULONG cb, ULONG flag);
     473APIRET APIENTRY  DosKillProcessEx(ULONG flAction, PID pid);
    449474APIRET APIENTRY  W32kQueryOTEs(HMODULE hMTE, PQOTEBUFFER pQOte, ULONG cbQOte);
    450475APIRET APIENTRY  W32kQuerySystemMemInfo(PK32SYSTEMMEMINFO pMemInfo);
Note: See TracChangeset for help on using the changeset viewer.