Source code of Windows XP (NT5)
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.

68 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. winfax.c
  5. Abstract:
  6. This module contains routines for the winfax dllinit.
  7. Author:
  8. Wesley Witt (wesw) 22-Jan-1996
  9. --*/
  10. #include "faxapi.h"
  11. #pragma hdrstop
  12. OSVERSIONINFOA OsVersion;
  13. HINSTANCE MyhInstance;
  14. DWORD
  15. WinFaxDllEntry(
  16. HINSTANCE hInstance,
  17. DWORD Reason,
  18. LPVOID Context
  19. )
  20. /*++
  21. Routine Description:
  22. DLL initialization function.
  23. Arguments:
  24. hInstance - Instance handle
  25. Reason - Reason for the entrypoint being called
  26. Context - Context record
  27. Return Value:
  28. TRUE - Initialization succeeded
  29. FALSE - Initialization failed
  30. --*/
  31. {
  32. if (Reason == DLL_PROCESS_ATTACH) {
  33. MyhInstance = hInstance;
  34. RpcpInitRpcServer();
  35. DisableThreadLibraryCalls( hInstance );
  36. HeapInitialize(NULL,NULL,NULL,0);
  37. OsVersion.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
  38. GetVersionExA( &OsVersion );
  39. }
  40. if (Reason == DLL_PROCESS_DETACH) {
  41. HeapCleanup();
  42. }
  43. return TRUE;
  44. }