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.

104 lines
2.1 KiB

  1. //*************************************************************
  2. //
  3. // Copyright (c) Microsoft Corporation 1998
  4. // All rights reserved
  5. //
  6. // fdeploy.hxx
  7. //
  8. // Precompiled header file for appmgext project.
  9. //
  10. //*************************************************************
  11. #ifndef _FDEPLOY_HXX_
  12. #define _FDEPLOY_HXX_
  13. #include <nt.h>
  14. #include <ntrtl.h>
  15. #include <nturtl.h>
  16. #include <windows.h>
  17. #include <winbasep.h>
  18. #include <malloc.h>
  19. #include <olectl.h>
  20. #include "rsop.hxx"
  21. #include <wbemcli.h>
  22. #include <userenv.h>
  23. #include <shlobj.h>
  24. #include <lm.h>
  25. #define SECURITY_WIN32
  26. #include <security.h>
  27. #include <dsgetdc.h>
  28. #include <cscapi.h>
  29. #include "resource.h"
  30. #include "rdrschem.h"
  31. #include "fdevents.h"
  32. #include "events.hxx"
  33. #include "debug.hxx"
  34. #include "usrinfo.hxx"
  35. #include "redir.hxx"
  36. #include "log.hxx"
  37. #include "filedb.hxx"
  38. #include "util.hxx"
  39. #include <shlobjp.h>
  40. #define TARGETPATHLIMIT MAX_PATH
  41. #define FDEPLOYEXTENSIONGUID L"{25537BA6-77A8-11D2-9B6C-0000F8080861}"
  42. extern HINSTANCE ghDllInstance;
  43. extern WCHAR gwszStatus[12];
  44. extern WCHAR gwszNumber[20];
  45. extern CSavedSettings gSavedSettings[]; //instantiated in fdeploy.cxx
  46. extern BOOL g_bCSCEnabled; //instantiated in fdeploy.cxx
  47. extern PFNSTATUSMESSAGECALLBACK gpStatusCallback; //instantiated in fdeploy.cxx
  48. extern CUsrInfo gUserInfo;
  49. extern const WCHAR * gwszUserName;
  50. inline void * __cdecl
  51. operator new (size_t Size)
  52. {
  53. return LocalAlloc(0, Size);
  54. }
  55. inline void __cdecl
  56. operator delete (void * pMem)
  57. {
  58. LocalFree( pMem );
  59. }
  60. inline WCHAR *
  61. StatusToString( DWORD Status )
  62. {
  63. wcscpy (gwszStatus, L"%%");
  64. _ultow (Status, gwszStatus + 2, 10);
  65. return gwszStatus;
  66. }
  67. inline WCHAR *
  68. NumberToString( DWORD Number )
  69. {
  70. _ultow (Number, gwszNumber, 10);
  71. return gwszNumber;
  72. }
  73. DWORD ProcessGroupPolicyInternal (
  74. DWORD dwFlags,
  75. HANDLE hUserToken,
  76. HKEY hKeyRoot,
  77. PGROUP_POLICY_OBJECT pDeletedGPOList,
  78. PGROUP_POLICY_OBJECT pChangedGPOList,
  79. ASYNCCOMPLETIONHANDLE pHandle,
  80. BOOL* pbAbort,
  81. PFNSTATUSMESSAGECALLBACK pStatusCallback,
  82. CRsopContext* pRsopContext );
  83. void ReinitGlobals (void);
  84. #endif