home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
com
/
inole2
/
chap18
/
cosmo1.0
/
exit.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-03
|
914b
|
47 lines
/*
* EXIT.C
*
* Functions for final cleanup of the COSMO application. Calls any
* OLE specific functions.
*
* Copyright(c) Microsoft Corp. 1992-1994 All Rights Reserved
* Win32 version, January 1994
*/
#include <windows.h>
#include <ole.h>
#include "cosmo.h"
#include "oleglobl.h"
/*
* FApplicationExit
*
* Purpose:
* Provides final cleanup of any objects and other actions that
* must occur at closing time.
*
* Parameters:
* pGlob LPGLOBALS to global variable block.
*
* Return Value:
* BOOL TRUE if everything succeeds, FALSE otherwise.
*/
BOOL WINAPI FApplicationExit(LPGLOBALS pGlob)
{
BOOL fRet=TRUE;
//Free the stringtable.
if (NULL!=pGlob->hStringMem)
LocalFree(pGlob->hStringMem);
#ifdef MAKEOLESERVER
fRet=FOLEExit(pOLE);
#endif //MAKEOLESERVER
return fRet;
}