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.0 KiB

  1. #include "isapi.h"
  2. #pragma hdrstop
  3. HINSTANCE hInstance;
  4. extern "C"
  5. DWORD
  6. FaxIsapiDllInit(
  7. HINSTANCE hModule,
  8. DWORD Reason,
  9. LPVOID Context
  10. )
  11. /*++
  12. Routine Description:
  13. DLL initialization function.
  14. Arguments:
  15. hInstance - Instance handle
  16. Reason - Reason for the entrypoint being called
  17. Context - Context record
  18. Return Value:
  19. TRUE - Initialization succeeded
  20. FALSE - Initialization failed
  21. --*/
  22. {
  23. if (Reason == DLL_PROCESS_ATTACH) {
  24. hInstance = hModule;
  25. DisableThreadLibraryCalls( hInstance );
  26. }
  27. if (Reason == DLL_PROCESS_DETACH) {
  28. }
  29. return TRUE;
  30. }
  31. BOOL WINAPI
  32. GetExtensionVersion(
  33. HSE_VERSION_INFO *pVer
  34. )
  35. {
  36. pVer->dwExtensionVersion = MAKELONG( HSE_VERSION_MINOR, HSE_VERSION_MAJOR );
  37. strncpy( pVer->lpszExtensionDesc, "Fax ISAPI DLL", HSE_MAX_EXT_DLL_NAME_LEN );
  38. HeapInitialize( NULL, NULL, NULL, 0 );
  39. return TRUE;
  40. }
  41. BOOL WINAPI
  42. TerminateExtension(
  43. DWORD dwFlags
  44. )
  45. {
  46. return TRUE;
  47. }