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.

74 lines
1001 B

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. vwmisc.c
  5. Abstract:
  6. ntVdm netWare (Vw) IPX/SPX Functions
  7. Vw: The peoples' network
  8. Contains miscellaneous (non-IPX/SPX) functions
  9. Contents:
  10. VwTerminateProgram
  11. Author:
  12. Richard L Firth (rfirth) 30-Sep-1993
  13. Environment:
  14. User-mode Win32
  15. Revision History:
  16. 30-Sep-1993 rfirth
  17. Created
  18. --*/
  19. #include "vw.h"
  20. #pragma hdrstop
  21. //
  22. // functions
  23. //
  24. VOID
  25. VwTerminateProgram(
  26. VOID
  27. )
  28. /*++
  29. Routine Description:
  30. When a DOS program terminates, we must close any open sockets that were
  31. specified as SHORT_LIVED
  32. Arguments:
  33. None.
  34. Return Value:
  35. None.
  36. --*/
  37. {
  38. IPXDBGPRINT((__FILE__, __LINE__,
  39. FUNCTION_ANY,
  40. IPXDBG_LEVEL_INFO,
  41. "VwTerminateProgram: PDB=%04x\n",
  42. getCX()
  43. ));
  44. KillShortLivedSockets(getCX());
  45. }