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.

75 lines
2.5 KiB

  1. /*************************************************************************
  2. *
  3. * regmap.h
  4. *
  5. * Function declarations for Citrix registry merging/mapping
  6. *
  7. * copyright notice: Copyright 1996, Citrix Systems Inc.
  8. * Copyright (C) 1997-1999 Microsoft Corp.
  9. *
  10. * Author: Bill Madden
  11. *
  12. * $Log: N:\NT\PRIVATE\WINDOWS\SCREG\WINREG\SERVER\CITRIX\VCS\REGMAP.H $
  13. *
  14. * Rev 1.2 06 May 1996 11:51:42 terryt
  15. * FaxWorks Btrieve force good install values
  16. *
  17. * Rev 1.1 29 Mar 1996 15:42:00 Charlene
  18. * multiuser file associations via CLASSES key
  19. *
  20. * Rev 1.0 24 Jan 1996 10:53:32 billm
  21. * Initial revision.
  22. *
  23. *************************************************************************/
  24. #include <winsta.h>
  25. #include <syslib.h>
  26. #define IS_NEWLINE_CHAR( c ) ((c == 0x0D) || (c == 0x0A))
  27. #define SOFTWARE_PATH L"\\Software"
  28. #define CLASSES_PATH L"\\Classes"
  29. #define CLASSES_SUBSTRING L"_Classes"
  30. #define CLASSES_DELETED L"\\ClassesRemoved"
  31. #define REGISTRY_ENTRIES L"Software\\Microsoft\\Windows NT\\CurrentVersion\\Terminal Server\\Compatibility\\Registry Entries"
  32. #define TERMSRV_APP_PATH L"\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Terminal Server"
  33. BOOL TermsrvCreateRegEntry(IN HANDLE hKey,
  34. IN POBJECT_ATTRIBUTES pObjAttr,
  35. IN ULONG TitleIndex,
  36. IN PUNICODE_STRING pUniClass OPTIONAL,
  37. IN ULONG ulCreateOpt);
  38. BOOL TermsrvOpenRegEntry(OUT PHANDLE pUserhKey,
  39. IN ACCESS_MASK DesiredAccess,
  40. IN POBJECT_ATTRIBUTES pUserObjectAttr);
  41. BOOL TermsrvSetValueKey(HANDLE hKey,
  42. PUNICODE_STRING ValueName,
  43. ULONG TitleIndex,
  44. ULONG Type,
  45. PVOID Data,
  46. ULONG DataSize);
  47. BOOL TermsrvDeleteKey(HANDLE hKey);
  48. BOOL TermsrvDeleteValue(HANDLE hKey,
  49. PUNICODE_STRING pUniValue);
  50. BOOL TermsrvRestoreKey(IN HANDLE hKey,
  51. IN HANDLE hFile,
  52. IN ULONG Flags);
  53. BOOL TermsrvSetKeySecurity(IN HANDLE hKey,
  54. IN SECURITY_INFORMATION SecInfo,
  55. IN PSECURITY_DESCRIPTOR pSecDesc);
  56. BOOL TermsrvOpenUserClasses(IN ACCESS_MASK DesiredAccess,
  57. OUT PHANDLE pUserhKey) ;
  58. NTSTATUS TermsrvGetPreSetValue( IN HANDLE hKey,
  59. IN PUNICODE_STRING pValueName,
  60. IN ULONG Type,
  61. OUT PVOID *Data
  62. );
  63. BOOL TermsrvRemoveClassesKey();