Jump to content

DosForceSystemDump: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
==Description==
DosForceSystemDump initiates a stand-alone dump. The system terminates abruptly without shutdown as soon as the dump is inititated.  
DosForceSystemDump initiates a stand-alone dump. The system terminates abruptly without shutdown as soon as the dump is inititated.  


==Syntax==
==Syntax==
<PRE>
  APIRET APIENTRY DosForceSystemDump (ULONG reserved)
#define INCL_DOSMISC
#include os2.h>


    APIRET APIENTRY DosForceSystemDump (ULONG reserved)
</PRE>
==Parameters==
==Parameters==
; reserved(ULONG) input
;reserved(ULONG) input


==Return Code==
==Return Code==
  ulrc (APIRET) returns
  ulrc (APIRET) returns
DosForceSystemDump returns the following value
DosForceSystemDump returns the following value
* 87 ERROR_INVALID_PARAMETER


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


==Example Code==
==Example Code==
Line 28: Line 19:
int main(int argc, char *argv[], char *envp[]){
int main(int argc, char *argv[], char *envp[]){
   APIRET rc;
   APIRET rc;
   rc=DosForceSystemDump(0L);  /* will kill the system with a system dump */
   rc=DosForceSystemDump(0L);  /* will kill the system with a system dump */
                                 /* does not return unless an error occurs */
                                 /* does not return unless an error occurs */
   printf("DosForceSystemDump returned %u\n",rc);
   printf("DosForceSystemDump returned %u\n",rc);
   return rc;
   return rc;
}
}
</PRE>
</PRE>
==Related Functions==
==Related Functions==
* [[OS2 API:CPI:DosDumpProcess|DosDumpProcess]]
* [[DosDumpProcess]]
* [[OS2 API:CPI:DosSysTrace|DosSysTrace]]
* [[DosSysTrace]]
 


[[Category:The OS/2 API Project]]
[[Category:Dos]]

Revision as of 04:00, 6 January 2017

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

Syntax

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

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