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.

93 lines
2.5 KiB

  1. // UMDlg.cpp : Defines the initialization routines for the DLL.
  2. // Author: J. Eckhardt, ECO Kommunikation
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. #include <afxwin.h> // MFC core and standard components
  6. #include <afxext.h> // MFC extensions
  7. #include "UManDlg.h"
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13. //
  14. // Note!
  15. //
  16. // If this DLL is dynamically linked against the MFC
  17. // DLLs, any functions exported from this DLL which
  18. // call into MFC must have the AFX_MANAGE_STATE macro
  19. // added at the very beginning of the function.
  20. //
  21. // For example:
  22. //
  23. // extern "C" BOOL PASCAL EXPORT ExportedFunction()
  24. // {
  25. // AFX_MANAGE_STATE(AfxGetStaticModuleState());
  26. // // normal function body here
  27. // }
  28. //
  29. // It is very important that this macro appear in each
  30. // function, prior to any calls into MFC. This means that
  31. // it must appear as the first statement within the
  32. // function, even before any object variable declarations
  33. // as their constructors may generate calls into the MFC
  34. // DLL.
  35. //
  36. // Please see MFC Technical Notes 33 and 58 for additional
  37. // details.
  38. //
  39. /////////////////////////////////////////////////////////////////////////////
  40. // CUMDlgApp
  41. BEGIN_MESSAGE_MAP(CUMDlgApp, CWinApp)
  42. //{{AFX_MSG_MAP(CUMDlgApp)
  43. // NOTE - the ClassWizard will add and remove mapping macros here.
  44. // DO NOT EDIT what you see in these blocks of generated code!
  45. //}}AFX_MSG_MAP
  46. ON_COMMAND( ID_HELP, OnHelp )
  47. END_MESSAGE_MAP()
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CUMDlgApp construction
  50. CUMDlgApp::CUMDlgApp()
  51. {
  52. // TODO: add construction code here,
  53. // Place all significant initialization in InitInstance
  54. }
  55. /////////////////////////////////////////////////////////////////////////////
  56. // The one and only CUMDlgApp object
  57. CUMDlgApp theApp;
  58. /*BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID pvReserved)
  59. {
  60. // Perform actions based on the reason for calling.
  61. switch( fdwReason )
  62. {
  63. case DLL_PROCESS_ATTACH:
  64. // Initialize once for each new process.
  65. // Return FALSE to fail DLL load.
  66. break;
  67. case DLL_THREAD_ATTACH:
  68. // Do thread-specific initialization.
  69. break;
  70. case DLL_THREAD_DETACH:
  71. // Do thread-specific cleanup.
  72. break;
  73. case DLL_PROCESS_DETACH:
  74. // Perform any necessary cleanup.
  75. break;
  76. }
  77. return TRUE; // Successful DLL_PROCESS_ATTACH.
  78. }
  79. */