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.

135 lines
5.3 KiB

  1. ////////////////////////////////////////////////////////////////
  2. //
  3. // Refgp.h
  4. //
  5. // Refresh Group Policy exe
  6. //
  7. //
  8. ////////////////////////////////////////////////////////////////
  9. #ifndef RC_INVOKED
  10. #include <nt.h>
  11. #include <ntrtl.h>
  12. #include <nturtl.h>
  13. #endif
  14. #include <windows.h>
  15. #include <lm.h>
  16. #define SECURITY_WIN32
  17. #include <tchar.h>
  18. #include <stdio.h>
  19. #include <shlobj.h>
  20. #include <shellapi.h>
  21. #include <shlwapi.h>
  22. #include "userenv.h"
  23. #include "userenvp.h"
  24. #define IDS_USAGE_FIRST 101
  25. #define IDS_USAGE1 101
  26. #define IDS_USAGE2 102
  27. #define IDS_USAGE3 103
  28. #define IDS_USAGE4 104
  29. #define IDS_USAGE5 105
  30. #define IDS_USAGE6 106
  31. #define IDS_USAGE7 107
  32. #define IDS_USAGE8 108
  33. #define IDS_USAGE9 109
  34. #define IDS_USAGE10 110
  35. #define IDS_USAGE11 111
  36. #define IDS_USAGE12 112
  37. #define IDS_USAGE13 113
  38. #define IDS_USAGE14 114
  39. #define IDS_USAGE15 115
  40. #define IDS_USAGE16 116
  41. #define IDS_USAGE17 117
  42. #define IDS_USAGE18 118
  43. #define IDS_USAGE19 119
  44. #define IDS_USAGE20 120
  45. #define IDS_USAGE21 121
  46. #define IDS_USAGE22 122
  47. #define IDS_USAGE23 123
  48. #define IDS_USAGE24 124
  49. #define IDS_USAGE25 125
  50. #define IDS_USAGE26 126
  51. #define IDS_USAGE27 127
  52. #define IDS_USAGE28 128
  53. #define IDS_USAGE29 129
  54. #define IDS_USAGE30 130
  55. #define IDS_USAGE31 131
  56. #define IDS_USAGE32 132
  57. #define IDS_USAGE33 133
  58. #define IDS_USAGE34 134
  59. #define IDS_USAGE35 135
  60. #define IDS_USAGE36 136
  61. #define IDS_USAGE37 137
  62. #define IDS_USAGE38 138
  63. #define IDS_USAGE39 139
  64. #define IDS_USAGE40 140
  65. #define IDS_USAGE41 141
  66. #define IDS_USAGE42 142
  67. #define IDS_USAGE43 143
  68. #define IDS_USAGE44 144
  69. #define IDS_USAGE45 145
  70. #define IDS_USAGE46 146
  71. #define IDS_USAGE_LAST 146
  72. #define IDS_REFRESH_LAUNCHED 201
  73. #define IDS_REFRESH_FAILED 202
  74. #define IDS_POLWAIT_FAILED 203
  75. #define IDS_POLWAIT_TIMEDOUT 204
  76. #define IDS_REFRESH_BACKGND_SUCCESS 205
  77. #define IDS_NEED_LOGOFF 206
  78. #define IDS_NEED_REBOOT 207
  79. #define IDS_PROMPT_REBOOT 208
  80. #define IDS_PROMPT_LOGOFF 209
  81. #define IDS_YES 210
  82. #define IDS_NO 211
  83. #define IDS_REFRESH_POLICY_FAILED 212
  84. #define IDS_COULDNT_REBOOT 213
  85. #define IDS_COULDNT_LOGOFF 214
  86. #define IDS_NOTIFY_MACHINE_FG 215
  87. #define IDS_NOTIFY_USER_FG 216
  88. #define IDS_REBOOTING 217
  89. #define IDS_LOGGING_OFF 218
  90. #define IDS_OUT_OF_MEMORY 219
  91. #define IDS_REFRESH_BACKGND_TRIGGERED 220
  92. #define IDS_SPACE 221
  93. #define IDS_SET_MODE_FAILED 222
  94. #define IDS_NEED_LOGOFF_SYNC 223
  95. #define IDS_NEED_REBOOT_SYNC 224
  96. #define IDS_TARGET 301
  97. #define IDS_USER 302
  98. #define IDS_MACHINE 303
  99. #define IDS_BOTH 304
  100. #define IDS_TIME 305
  101. #define IDS_FORCE 306
  102. #define IDS_LOGOFF 307
  103. #define IDS_BOOT 308
  104. #define IDS_SYNC 309
  105. #include <stdio.h>
  106. #include <locale.h>
  107. #include <winnlsp.h>
  108. #ifdef __cplusplus
  109. extern "C" {
  110. #endif
  111. LPTSTR GetSidString(HANDLE UserToken);
  112. VOID DeleteSidString(LPTSTR SidString);
  113. PSID GetUserSid (HANDLE UserToken);
  114. VOID DeleteUserSid(PSID Sid);
  115. NTSTATUS AllocateAndInitSidFromString (const WCHAR* lpszSidStr, PSID* ppSid);
  116. NTSTATUS LoadSidAuthFromString (const WCHAR* pString, PSID_IDENTIFIER_AUTHORITY pSidAuth);
  117. NTSTATUS GetIntFromUnicodeString (const WCHAR* szNum, ULONG Base, PULONG pValue);
  118. #ifdef __cplusplus
  119. }
  120. #endif