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.

79 lines
2.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2002.
  5. //
  6. // File: Loghours.cpp
  7. //
  8. // Contents:
  9. //
  10. //----------------------------------------------------------------------------
  11. // LogHours.cpp : Defines the initialization routines for the DLL.
  12. //
  13. #include "stdafx.h"
  14. #include <locale.h>
  15. #include "LogHours.h"
  16. #ifdef _DEBUG
  17. #define new DEBUG_NEW
  18. #undef THIS_FILE
  19. static char THIS_FILE[] = __FILE__;
  20. #endif
  21. //
  22. // Note!
  23. //
  24. // If this DLL is dynamically linked against the MFC
  25. // DLLs, any functions exported from this DLL which
  26. // call into MFC must have the AFX_MANAGE_STATE macro
  27. // added at the very beginning of the function.
  28. //
  29. // For example:
  30. //
  31. // extern "C" BOOL PASCAL EXPORT ExportedFunction()
  32. // {
  33. // AFX_MANAGE_STATE(AfxGetStaticModuleState());
  34. // // normal function body here
  35. // }
  36. //
  37. // It is very important that this macro appear in each
  38. // function, prior to any calls into MFC. This means that
  39. // it must appear as the first statement within the
  40. // function, even before any object variable declarations
  41. // as their constructors may generate calls into the MFC
  42. // DLL.
  43. //
  44. // Please see MFC Technical Notes 33 and 58 for additional
  45. // details.
  46. //
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CLogHoursApp
  49. BEGIN_MESSAGE_MAP(CLogHoursApp, CWinApp)
  50. //{{AFX_MSG_MAP(CLogHoursApp)
  51. // NOTE - the ClassWizard will add and remove mapping macros here.
  52. // DO NOT EDIT what you see in these blocks of generated code!
  53. //}}AFX_MSG_MAP
  54. END_MESSAGE_MAP()
  55. /////////////////////////////////////////////////////////////////////////////
  56. // CLogHoursApp construction
  57. CLogHoursApp::CLogHoursApp()
  58. {
  59. // TODO: add construction code here,
  60. // Place all significant initialization in InitInstance
  61. }
  62. BOOL CLogHoursApp::InitInstance ()
  63. {
  64. _wsetlocale (LC_ALL, L"");
  65. return TRUE;
  66. }
  67. /////////////////////////////////////////////////////////////////////////////
  68. // The one and only CLogHoursApp object
  69. CLogHoursApp theApp;