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.

64 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1993 - 1998.
  5. //
  6. // File: priv.h
  7. //
  8. // Contents: precompiled header for shgina.dll
  9. //
  10. //----------------------------------------------------------------------------
  11. #ifndef _PRIV_H_
  12. #define _PRIV_H_
  13. #include <nt.h>
  14. #include <ntrtl.h>
  15. #include <nturtl.h>
  16. #include <windows.h>
  17. #include <oleauto.h> // for IEnumVARIANT
  18. #include <lmcons.h> // for NET_API_STATUS
  19. #define DISALLOW_Assert // Force to use ASSERT instead of Assert
  20. #define DISALLOW_DebugMsg // Force to use TraceMsg instead of DebugMsg
  21. #include <debug.h>
  22. #include <ccstock.h>
  23. #include <shlguid.h>
  24. #include <shlobj.h>
  25. #include <shlobjp.h>
  26. #include <shgina.h> // our IDL generated header file
  27. #include <commctrl.h> // these are needed
  28. #include <comctrlp.h> // for HDPA
  29. #include <shlwapi.h> // these are needed
  30. #include <shlwapip.h> // for QISearch
  31. #include <w4warn.h>
  32. #include <msginaexports.h>
  33. // dll ref counting functions
  34. STDAPI_(void) DllAddRef(void);
  35. STDAPI_(void) DllRelease(void);
  36. // class factory helper function
  37. HRESULT CSHGinaFactory_Create(REFCLSID rclsid, REFIID riid, LPVOID * ppvObj);
  38. // helper for setting permissions on newly created files and reg keys
  39. #include <aclapi.h> // for SE_OBJECT_TYPE
  40. BOOL SetDacl(LPTSTR pszTarget, SE_OBJECT_TYPE seType, LPCTSTR pszStringSD);
  41. // global hinstance
  42. extern HINSTANCE g_hinst;
  43. #define HINST_THISDLL g_hinst
  44. // global dll refrence count
  45. extern LONG g_cRef;
  46. #endif // _PRIV_H_