Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
dllmain.c
#include "windows.h" |
static HINSTANCE ghInst=0; |
/* ----------------------------------------------------------- */ |
BOOL WINAPI DllMain(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved) |
{ |
ghInst = hInst; |
switch( ul_reason_for_call ) { |
case DLL_PROCESS_ATTACH: |
break; |
case DLL_THREAD_ATTACH: |
break; |
case DLL_THREAD_DETACH: |
break; |
case DLL_PROCESS_DETACH: |
break; |
} |
return TRUE; |
} |
/* ----------------------------------------------------------- */ |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-08-29