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.

86 lines
2.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: svrapp.cpp
  8. //
  9. //--------------------------------------------------------------------------
  10. // SvrApp.cpp : Defines the class behaviors for the application.
  11. //
  12. #include "stdafx.h"
  13. #include "SvrApp.h"
  14. #include "SvrAppDlg.h"
  15. #include <SCardLib.h>
  16. #include <CalServe.h>
  17. #ifdef _DEBUG
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CSvrAppApp
  24. BEGIN_MESSAGE_MAP(CSvrAppApp, CWinApp)
  25. //{{AFX_MSG_MAP(CSvrAppApp)
  26. // NOTE - the ClassWizard will add and remove mapping macros here.
  27. // DO NOT EDIT what you see in these blocks of generated code!
  28. //}}AFX_MSG
  29. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  30. END_MESSAGE_MAP()
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CSvrAppApp construction
  33. CSvrAppApp::CSvrAppApp()
  34. {
  35. // TODO: add construction code here,
  36. // Place all significant initialization in InitInstance
  37. }
  38. /////////////////////////////////////////////////////////////////////////////
  39. // The one and only CSvrAppApp object
  40. CSvrAppApp theApp;
  41. /////////////////////////////////////////////////////////////////////////////
  42. // CSvrAppApp initialization
  43. BOOL CSvrAppApp::InitInstance()
  44. {
  45. // Standard initialization
  46. // If you are not using these features and wish to reduce the size
  47. // of your final executable, you should remove from the following
  48. // the specific initialization routines you do not need.
  49. #ifdef _AFXDLL
  50. Enable3dControls(); // Call this when using MFC in a shared DLL
  51. #else
  52. Enable3dControlsStatic(); // Call this when linking to MFC statically
  53. #endif
  54. CSvrAppDlg dlg;
  55. m_pMainWnd = &dlg;
  56. int nResponse = dlg.DoModal();
  57. if (nResponse == IDOK)
  58. {
  59. // TODO: Place code here to handle when the dialog is
  60. // dismissed with OK
  61. }
  62. else if (nResponse == IDCANCEL)
  63. {
  64. // TODO: Place code here to handle when the dialog is
  65. // dismissed with Cancel
  66. }
  67. // Since the dialog has been closed, return FALSE so that we exit the
  68. // application, rather than start the application's message pump.
  69. return FALSE;
  70. }