Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
winentry.cpp File Reference
#include <windows.h>

Go to the source code of this file.

Functions

BOOL WINAPI DllMain (HINSTANCE hDLL, DWORD dwReason, LPVOID lpReserved)

Variables

char szAppName [] = "NPSpy"
HINSTANCE hInst = NULL

Function Documentation

BOOL WINAPI DllMain ( HINSTANCE  hDLL,
DWORD  dwReason,
LPVOID  lpReserved 
)

Definition at line 44 of file winentry.cpp.

{
#ifdef DEBUG
  char szReason[80];

  switch (dwReason)
  {
    case DLL_PROCESS_ATTACH:
      strcpy(szReason, "DLL_PROCESS_ATTACH");
      break;
    case DLL_THREAD_ATTACH:
      strcpy(szReason, "DLL_THREAD_ATTACH");
      break;
    case DLL_PROCESS_DETACH:
      strcpy(szReason, "DLL_PROCESS_DETACH");
      break;
    case DLL_THREAD_DETACH:
      strcpy(szReason, "DLL_THREAD_DETACH");
      break;
  }
#endif

  hInst = hDLL;
  return TRUE;
}

Variable Documentation

Definition at line 42 of file winentry.cpp.

char szAppName[] = "NPSpy"

Definition at line 41 of file winentry.cpp.