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.

56 lines
1.8 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Copyright � 2001 Microsoft Corporation. All rights reserved.
  3. // PragmaUnsafe.cpp : Implementation of DLL Exports.
  4. //
  5. #include "stdafx.h"
  6. #include "resource.h"
  7. #include "PragmaUnsafeModule.h"
  8. #include <pftDll.h>
  9. /////////////////////////////////////////////////////////////////////////////
  10. // Global Initialization
  11. CComModule _Module;
  12. /////////////////////////////////////////////////////////////////////////////
  13. // Object Map
  14. //
  15. BEGIN_OBJECT_MAP(ObjectMap)
  16. OBJECT_ENTRY(CLSID_PragmaUnsafeModule, CPragmaUnsafeModule)
  17. END_OBJECT_MAP()
  18. /////////////////////////////////////////////////////////////////////////////
  19. // Processes DLL exports
  20. //
  21. class CPragmaUnsafeDll :
  22. public PftDll<CPragmaUnsafeDll, IDR_PragmaUnsafe, &CATID_PREfastDefectModules>
  23. {
  24. // Overrides
  25. public:
  26. // Uncomment any one of these to change the behavior of the base class
  27. // template. See <pftDll.h> for the exact default behavior for each
  28. // method.
  29. //
  30. // static bool OnDllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID pReserved);
  31. // static bool OnProcessAttach(HINSTANCE hInstance, bool fDynamic);
  32. // static void OnProcessDetach(HINSTANCE hInstance, bool fDynamic);
  33. // static void OnThreadAttach(HINSTANCE hInstance);
  34. // static void OnThreadDetach(HINSTANCE hInstance);
  35. // static bool OnDisableThreadLibraryCalls();
  36. // static HRESULT OnDllCanUnloadNow();
  37. // static HRESULT OnDllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv);
  38. // static HRESULT OnDllRegisterServer();
  39. // static HRESULT OnDllUnregisterServer();
  40. // static HRESULT OnRegisterCategory();
  41. };
  42. /////////////////////////////////////////////////////////////////////////////
  43. // DLL Exports
  44. //
  45. PFT_DECLARE_TypicalComDll(CPragmaUnsafeDll)