/* File: D:\WACKER\term.c (Created: 23-Nov-1993) * * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI * All rights reserved * * $Revision: 1.22 $ * $Date: 1995/10/09 16:48:39 $ */ #include #pragma hdrstop #include #if !defined(NDEBUG) #include // 'MemDefaultPoolFlags = MEM_POOL_SERIALIZE' is required by Smartheap // if app is multithreaded. // #if !defined(NO_SMARTHEAP) unsigned MemDefaultPoolFlags = MEM_POOL_SERIALIZE; #endif #endif /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- * FUNCTION: * WinMain * * DESCRIPTION: * Entry point for wacker * */ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nCmdShow) { int i; if (hPrevInst) return FALSE; /* --- Initialize Smartheap memory manager for debug version only. --- */ #if !defined(NDEBUG) #if !defined(NO_SMARTHEAP) MemRegisterTask(); #endif #endif /* --- Initialize this instance of the program --- */ if (!InitInstance(hInst, (LPTSTR)lpCmdLine, nCmdShow)) return FALSE; /* --- Process messages until the end --- */ i = MessageLoop(); /* --- Report any memory leaks in debug version only. --- */ #if !defined(NDEBUG) #if !defined(NO_SMARTHEAP) dbgMemReportLeakage(MemDefaultPool, 1, 1); //lint !e522 #endif #endif return i; }