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.

96 lines
2.7 KiB

  1. // Copyright (C) 1996-1997 Microsoft Corporation. All rights reserved.
  2. #include "header.h"
  3. #define INITOBJECTS // define the descriptions for our objects
  4. #include "LocalSrv.H"
  5. #include "LocalObj.H"
  6. #include "olectl.h"
  7. #include "hhifc.H"
  8. #include "Resource.H"
  9. #include "hhctrl.H"
  10. #include "cathelp.H"
  11. #include "CtrlObj.H"
  12. #ifdef VSBLDENV
  13. #include "hhifc.c"
  14. #include "hhsort.c"
  15. #include "hhfind.c"
  16. #else
  17. #include "hhifc_i.c"
  18. #include "hhsort_i.c"
  19. #include "hhfind_i.c"
  20. #endif
  21. #include "iterror.h"
  22. #include "itSort.h"
  23. #include "itSortid.h"
  24. #include "atlinc.h" // includes for ATL.
  25. #include "hhsyssrt.h"
  26. #include "hhfinder.h"
  27. //=--------------------------------------------------------------------------=
  28. // our Libid. This should be the LIBID from the Type library, or NULL if you
  29. // don't have one.
  30. const CLSID *g_pLibid = &LIBID_HHCTRLLib;
  31. //=--------------------------------------------------------------------------=
  32. // Set this up if you want to have a window proc for your parking window. This
  33. // is really only interesting for Sub-classed controls that want, in design
  34. // mode, certain messages that are sent only to the parent window.
  35. WNDPROC g_ParkingWindowProc = NULL;
  36. //=--------------------------------------------------------------------------=
  37. // Localization Information
  38. //
  39. // We need the following two pieces of information:
  40. // a. whether or not this DLL uses satellite DLLs for localization. if
  41. // not, then the lcidLocale is ignored, and we just always get resources
  42. // from the server module file.
  43. // b. the ambient LocaleID for this in-proc server. Controls calling
  44. // GetResourceHandle() will set this up automatically, but anybody
  45. // else will need to be sure that it's set up properly.
  46. //
  47. const VARIANT_BOOL g_fSatelliteLocalization = FALSE;
  48. LCID g_lcidLocale = MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT);
  49. //=--------------------------------------------------------------------------=
  50. // This Table describes all the automatible objects in your automation server.
  51. // See AutomationObject.H for a description of what goes in this structure
  52. // and what it's used for.
  53. OBJECTINFO g_ObjectInfo[] = {
  54. CONTROLOBJECT(HHCtrl),
  55. EMPTYOBJECT
  56. };
  57. //=--------------------------------------------------------------------------=
  58. // CRT stubs
  59. //=--------------------------------------------------------------------------=
  60. // these two things are here so the CRTs aren't needed.
  61. //
  62. // basically, the CRTs define this to suck in a bunch of stuff. we'll just
  63. // define them here so we don't get an unresolved external.
  64. //
  65. // TODO: if you are going to use the CRTs, then remove this line.
  66. //
  67. #if 0
  68. extern "C" int __cdecl _fltused = 1;
  69. extern "C" int _cdecl _purecall(void)
  70. {
  71. FAIL("Pure virtual function called.");
  72. return 0;
  73. }
  74. #endif