home *** CD-ROM | disk | FTP | other *** search
-
- // ---------------------------------------------------------------------
- //
- // LIBMAIN.CPP - QuickTime for Windows Sample Decompressor
- //
- // Version 1.1
- //
- // (c) 1988-1993 Apple Computer, Inc. All Rights Reserved.
- //
- // ---------------------------------------------------------------------
-
-
- // Windows header files
- #include <windows.h>
- #include <windowsx.h>
-
- // Compiler header files
- #include <string.h>
-
- // Application header files
- #include "prototyp.hp"
-
- // Local data
- static HINSTANCE hInstThisMod ;
-
- /* function LibMain:
- DLL Initialization
- */
- int FAR PASCAL LibMain( HINSTANCE hInstance
- , WORD wDataSeg
- , WORD wHeapSize
- , LPSTR lpszCmdLine
- )
- {
- // perform common initialization
- if ( wHeapSize > 0)
- UnlockData( 0) ;
- hInstThisMod = hInstance ; // save instance handle
-
- // successful return
- return 1 ;
- } // LibMain
-
- /* function GetInstOfThisMod:
- Get the instance handle of this module
- */
- HINSTANCE GetInstOfThisMod()
- {
- return hInstThisMod ;
- } // GetInstOfThisMod
-