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.

116 lines
2.6 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 "pcommon.h"
  40. #include <shlobjp.h>
  41. #define STRSAFE_LIB
  42. #include <strsafe.h>
  43. #define TARGETPATHLIMIT MAX_PATH
  44. #define FDEPLOYEXTENSIONGUID L"{25537BA6-77A8-11D2-9B6C-0000F8080861}"
  45. extern HINSTANCE ghDllInstance;
  46. extern WCHAR gwszStatus[20];
  47. extern WCHAR gwszNumber[20];
  48. extern CSavedSettings gSavedSettings[]; //instantiated in fdeploy.cxx
  49. extern BOOL g_bCSCEnabled; //instantiated in fdeploy.cxx
  50. extern PFNSTATUSMESSAGECALLBACK gpStatusCallback; //instantiated in fdeploy.cxx
  51. extern CUsrInfo gUserInfo;
  52. extern const WCHAR * gwszUserName;
  53. inline void * __cdecl
  54. operator new (size_t Size)
  55. {
  56. return LocalAlloc(LMEM_ZEROINIT, Size);
  57. }
  58. inline void __cdecl
  59. operator delete (void * pMem)
  60. {
  61. LocalFree( pMem );
  62. }
  63. inline WCHAR *
  64. StatusToString( DWORD Status )
  65. {
  66. if ( SUCCEEDED(StringCchCopy(gwszStatus, 20, L"%%")) )
  67. {
  68. // gwszStatus is 20 characters, while 2^32 is only 10, so we have enough space
  69. _ultow (Status, gwszStatus + 2, 10);
  70. }
  71. else
  72. {
  73. gwszStatus[0] = L'\0';
  74. }
  75. return gwszStatus;
  76. }
  77. inline WCHAR *
  78. NumberToString( DWORD Number )
  79. {
  80. // gwszNumber is 20 characters, while 2^32 is only 10, so we have enough space
  81. _ultow (Number, gwszNumber, 10);
  82. return gwszNumber;
  83. }
  84. DWORD ProcessGroupPolicyInternal (
  85. DWORD dwFlags,
  86. HANDLE hUserToken,
  87. HKEY hKeyRoot,
  88. PGROUP_POLICY_OBJECT pDeletedGPOList,
  89. PGROUP_POLICY_OBJECT pChangedGPOList,
  90. ASYNCCOMPLETIONHANDLE pHandle,
  91. BOOL* pbAbort,
  92. PFNSTATUSMESSAGECALLBACK pStatusCallback,
  93. CRsopContext* pRsopContext );
  94. void ReinitGlobals (void);
  95. #endif