diff options
Diffstat (limited to 'private/nw/vwipxspx/dll/vwmisc.c')
-rw-r--r-- | private/nw/vwipxspx/dll/vwmisc.c | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/private/nw/vwipxspx/dll/vwmisc.c b/private/nw/vwipxspx/dll/vwmisc.c new file mode 100644 index 000000000..2d7821dee --- /dev/null +++ b/private/nw/vwipxspx/dll/vwmisc.c @@ -0,0 +1,74 @@ +/*++ + +Copyright (c) 1993 Microsoft Corporation + +Module Name: + + vwmisc.c + +Abstract: + + ntVdm netWare (Vw) IPX/SPX Functions + + Vw: The peoples' network + + Contains miscellaneous (non-IPX/SPX) functions + + Contents: + VwTerminateProgram + +Author: + + Richard L Firth (rfirth) 30-Sep-1993 + +Environment: + + User-mode Win32 + +Revision History: + + 30-Sep-1993 rfirth + Created + +--*/ + +#include "vw.h" +#pragma hdrstop + +// +// functions +// + + +VOID +VwTerminateProgram( + VOID + ) + +/*++ + +Routine Description: + + When a DOS program terminates, we must close any open sockets that were + specified as SHORT_LIVED + +Arguments: + + None. + +Return Value: + + None. + +--*/ + +{ + IPXDBGPRINT((__FILE__, __LINE__, + FUNCTION_ANY, + IPXDBG_LEVEL_INFO, + "VwTerminateProgram: PDB=%04x\n", + getCX() + )); + + KillShortLivedSockets(getCX()); +} |