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.

77 lines
2.1 KiB

  1. /***********************************************************************
  2. *
  3. * CPROFILE.H
  4. * This module contains typedefs and defines required for
  5. * the CPROFILE utility.
  6. *
  7. * Copyright Citrix Systems Inc. 1997
  8. * Copyright (c) 1998-1999 Microsoft Corporation
  9. *
  10. *************************************************************************/
  11. #ifndef RC_INVOKED
  12. #include <ntlsa.h>
  13. #include <ntmsv1_0.h>
  14. #endif
  15. #include <string.h>
  16. /*
  17. * General application definitions.
  18. */
  19. #define SUCCESS 0
  20. #define FAILURE 1
  21. /* StringTable Defines */
  22. #define IDS_USAGE_CMDLINE 301
  23. #define IDS_USAGE_DESCR1 302
  24. #define IDS_USAGE_DESCR2 303
  25. #define IDS_USAGE_OPTION_LIST 304
  26. #define IDS_USAGE_LOPTION 305
  27. #define IDS_USAGE_IOPTION 306
  28. #define IDS_USAGE_VOPTION 307
  29. #define IDS_USAGE_HOPTION 308
  30. #define IDS_MSG_PROCESSING 310
  31. #define IDS_MSG_MODIFY_PROMPT 311
  32. #define IDS_UI_YES_CHAR 312
  33. #define IDS_UI_NO_CHAR 313
  34. #define IDS_UI_QUIT_CHAR 314
  35. #define IDS_ERROR_INVALID_PARAMETERS 320
  36. #define IDS_ERROR_MALLOC 321
  37. #define IDS_ERROR_PRIVILEGE_NOT_AVAILABLE 322
  38. #define IDS_ERROR_MISSING_PROFILE_LIST 323
  39. #define IDS_ERROR_MISSING_LPROFILE 324
  40. #define IDS_ERROR_BAD_LPROFILE 325
  41. #define IDS_ERROR_SAVING_PROFILE 326
  42. #define IDS_ERROR_OPENING_PROFILE 327
  43. #define IDS_ERROR_INVALID_USER_RESP 328
  44. #define IDS_ERROR_MISSING_RESOURCES 330
  45. #define IDS_ERROR_BAD_PROFILE 331
  46. #define IDS_ERROR_PROFILE_LOAD_ERR 332
  47. #define IDS_ERROR_PROFILE_INUSE 333
  48. #define IDS_ERROR_NOT_ADMIN 334
  49. #define IDS_ERROR_NOT_TS 335
  50. extern HKEY hkeyCurrentUser;
  51. /*
  52. * Function prototypes
  53. */
  54. BOOL APIENTRY EnablePrivilege(DWORD Privilege, BOOL Enable);
  55. VOID InitializeGlobalSids();
  56. void ClearDisabledClasses(void);
  57. BOOL APIENTRY ClearTempUserProfile();
  58. BOOL APIENTRY OpenUserProfile(LPTSTR szFileName, PSID *pUserSid);
  59. BOOL APIENTRY SaveUserProfile(PSID UserSid, LPTSTR lpFilePath);