home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / dllmain.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-11  |  573 b   |  27 lines

  1. /*
  2.  *    dllmain.c
  3.  *    Copyright 1995, NeXT Computer, Inc.
  4.  *
  5.  */
  6.  
  7. #include <winnt-pdo.h>
  8. #include <windows.h>
  9. #include "NSRegisterDLL.h"
  10.  
  11. int APIENTRY DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) 
  12. {    
  13.     switch( ul_reason_for_call ) {
  14.     case DLL_PROCESS_ATTACH:
  15.          // NSRegisterDLL will initialize the Objective-C information in this module
  16.         return NSRegisterDLL (hModule);
  17.         break;
  18.     case DLL_THREAD_ATTACH:
  19.         break;
  20.     case DLL_THREAD_DETACH:
  21.         break;
  22.     case DLL_PROCESS_DETACH:
  23.         break;
  24.     }
  25.     return TRUE;
  26. }
  27.