Jump to content

DosForceSystemDump: Difference between revisions

From EDM2
Created page with "==Description== DosForceSystemDump initiates a stand-alone dump. The system terminates abruptly without shutdown as soon as the dump is inititated. ==Syntax== <PRE> #define ..."
 
Line 18: Line 18:


* 87        ERROR_INVALID_PARAMETER
* 87        ERROR_INVALID_PARAMETER
==Linkage Definition:==
IMPORTS DosForceSystemDump = DOSCALLS.444


==Remarks==
==Remarks==


==Example Code==
==Example Code==

Revision as of 23:30, 24 June 2016

Description

DosForceSystemDump initiates a stand-alone dump. The system terminates abruptly without shutdown as soon as the dump is inititated.

Syntax

#define INCL_DOSMISC
#include  os2.h>

    APIRET APIENTRY DosForceSystemDump (ULONG reserved) 

Parameters

reserved(ULONG) input

Return Code

ulrc (APIRET) returns

DosForceSystemDump returns the following value

  • 87 ERROR_INVALID_PARAMETER

Linkage Definition:

IMPORTS DosForceSystemDump = DOSCALLS.444 

Remarks

Example Code

int main(int argc, char *argv[], char *envp[]){
   APIRET rc;

   rc=DosForceSystemDump(0L);   /* will kill the system with a system dump */
                                /* does not return unless an error occurs */

   printf("DosForceSystemDump returned %u\n",rc);

   return rc;
}

Related Functions