Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
1022 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name
  4. dllinit.cxx
  5. Abstract:
  6. Author:
  7. Mark Enstrom (marke) 23-Jun-1996
  8. Enviornment:
  9. User Mode
  10. Revision History:
  11. --*/
  12. #include "precomp.hxx"
  13. #pragma hdrstop
  14. PGDI_SHARED_MEMORY pGdiSharedMemory = NULL;
  15. PENTRY pGdiSharedHandleTable = NULL;
  16. PDEVCAPS pGdiDevCaps = NULL;
  17. W32PID gW32PID;
  18. INT gbCheckHandleLevel = 0;
  19. /*++
  20. Routine Description:
  21. Arguments
  22. Return Value
  23. --*/
  24. BOOLEAN
  25. GdxDllInitialize(
  26. PVOID pvDllHandle,
  27. ULONG ulReason,
  28. PCONTEXT pcontext)
  29. {
  30. NTSTATUS status = 0;
  31. INT i;
  32. BOOLEAN fServer;
  33. PTEB pteb = NtCurrentTeb();
  34. BOOL bRet = TRUE;
  35. switch (ulReason)
  36. {
  37. case DLL_PROCESS_ATTACH:
  38. case DLL_THREAD_ATTACH:
  39. break;
  40. case DLL_PROCESS_DETACH:
  41. case DLL_THREAD_DETACH:
  42. break;
  43. }
  44. return(bRet);
  45. pvDllHandle;
  46. pcontext;
  47. }