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.

90 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. Hours.cpp : Defines the class behaviors for the application.
  5. File History:
  6. JonY May-96 created
  7. --*/
  8. #include "stdafx.h"
  9. #include "Hours.h"
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15. CHoursApp NEAR theApp;
  16. const GUID CDECL BASED_CODE _tlid =
  17. { 0xa44ea7aa, 0x9d58, 0x11cf, { 0xa3, 0x5f, 0, 0xaa, 0, 0xb6, 0x74, 0x3b } };
  18. const WORD _wVerMajor = 1;
  19. const WORD _wVerMinor = 0;
  20. ////////////////////////////////////////////////////////////////////////////
  21. // CHoursApp::InitInstance - DLL initialization
  22. BOOL CHoursApp::InitInstance()
  23. {
  24. BOOL bInit = COleControlModule::InitInstance();
  25. if (bInit)
  26. {
  27. }
  28. return bInit;
  29. }
  30. ////////////////////////////////////////////////////////////////////////////
  31. // CHoursApp::ExitInstance - DLL termination
  32. int CHoursApp::ExitInstance()
  33. {
  34. return COleControlModule::ExitInstance();
  35. }
  36. /////////////////////////////////////////////////////////////////////////////
  37. // DllRegisterServer - Adds entries to the system registry
  38. STDAPI DllRegisterServer(void)
  39. {
  40. AFX_MANAGE_STATE(_afxModuleAddrThis);
  41. if (!AfxOleRegisterTypeLib(AfxGetInstanceHandle(), _tlid))
  42. return ResultFromScode(SELFREG_E_TYPELIB);
  43. if (!COleObjectFactoryEx::UpdateRegistryAll(TRUE))
  44. return ResultFromScode(SELFREG_E_CLASS);
  45. return NOERROR;
  46. }
  47. /////////////////////////////////////////////////////////////////////////////
  48. // DllUnregisterServer - Removes entries from the system registry
  49. STDAPI DllUnregisterServer(void)
  50. {
  51. AFX_MANAGE_STATE(_afxModuleAddrThis);
  52. if (!AfxOleUnregisterTypeLib(_tlid))
  53. return ResultFromScode(SELFREG_E_TYPELIB);
  54. if (!COleObjectFactoryEx::UpdateRegistryAll(FALSE))
  55. return ResultFromScode(SELFREG_E_CLASS);
  56. return NOERROR;
  57. }