Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
420 B

  1. #define _KERNEL32_
  2. #include "windows.h"
  3. void
  4. SxspCrtRaiseExit(
  5. PCSTR pszCaller,
  6. int crtError
  7. );
  8. BOOL
  9. WINAPI
  10. TerminateProcess(
  11. IN HANDLE hProcess,
  12. IN UINT uExitCode
  13. )
  14. {
  15. SxspCrtRaiseExit(__FUNCTION__, (int)uExitCode);
  16. return FALSE;
  17. }
  18. #if !defined(_M_IX86) && !defined(_X86_)
  19. const extern FARPROC __imp_TerminateProcess = (FARPROC)&TerminateProcess;
  20. #endif