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.

84 lines
2.4 KiB

  1. /***************************************************************************/
  2. /* DLL.C */
  3. /* Copyright (C) 1995-96 SYWARE Inc., All rights reserved */
  4. /***************************************************************************/
  5. // Commenting #define out - causing compiler error - not sure if needed, compiles
  6. // okay without it.
  7. //#define WINVER 0x0400
  8. #include "precomp.h"
  9. #include "wbemidl.h"
  10. #include <comdef.h>
  11. //smart pointer
  12. _COM_SMARTPTR_TYPEDEF(IWbemServices, IID_IWbemServices);
  13. _COM_SMARTPTR_TYPEDEF(IEnumWbemClassObject, IID_IEnumWbemClassObject);
  14. //_COM_SMARTPTR_TYPEDEF(IWbemContext, IID_IWbemContext );
  15. _COM_SMARTPTR_TYPEDEF(IWbemLocator, IID_IWbemLocator);
  16. #include "drdbdr.h"
  17. /***************************************************************************/
  18. HINSTANCE NEAR s_hModule; /* Saved module handle. */
  19. /***************************************************************************/
  20. class CTheApp : public CWinApp
  21. {
  22. virtual BOOL InitInstance ();
  23. };
  24. BOOL CTheApp :: InitInstance ()
  25. {
  26. //Enable3dControlsStatic ();
  27. s_hModule = AfxGetInstanceHandle ();
  28. return TRUE;
  29. }
  30. CTheApp theApp;
  31. #if 0
  32. #ifdef WIN32
  33. int __stdcall DllMain(HANDLE hInst,DWORD ul_reason_being_called,LPVOID lpReserved)
  34. {
  35. switch (ul_reason_being_called) {
  36. case DLL_PROCESS_ATTACH:
  37. s_hModule = (HINSTANCE) hInst;
  38. break;
  39. case DLL_THREAD_ATTACH:
  40. break;
  41. case DLL_PROCESS_DETACH:
  42. break;
  43. case DLL_THREAD_DETACH:
  44. break;
  45. default:
  46. break;
  47. }
  48. return TRUE;
  49. UNREFERENCED_PARAMETER(lpReserved);
  50. }
  51. #endif
  52. #endif
  53. /***************************************************************************/
  54. #ifndef WIN32
  55. int _export FAR PASCAL libmain(
  56. HANDLE hModule,
  57. short wDataSeg,
  58. short cbHeapSize,
  59. UCHAR FAR *lszCmdLine)
  60. {
  61. s_hModule = hModule;
  62. return TRUE;
  63. }
  64. #endif
  65. /***************************************************************************/
  66. /* Entry point to cause DM to load using ordinals */
  67. void EXPFUNC FAR PASCAL LoadByOrdinal(void)
  68. {
  69. }
  70. /***************************************************************************/