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.

73 lines
2.4 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 CLASSES_PATH L"\\Classes"
  28. #define CLASSES_SUBSTRING L"_Classes"
  29. #define CLASSES_DELETED L"\\ClassesRemoved"
  30. #define TERMSRV_APP_PATH L"\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Terminal Server"
  31. BOOL TermsrvCreateRegEntry(IN HANDLE hKey,
  32. IN POBJECT_ATTRIBUTES pObjAttr,
  33. IN ULONG TitleIndex,
  34. IN PUNICODE_STRING pUniClass OPTIONAL,
  35. IN ULONG ulCreateOpt);
  36. BOOL TermsrvOpenRegEntry(OUT PHANDLE pUserhKey,
  37. IN ACCESS_MASK DesiredAccess,
  38. IN POBJECT_ATTRIBUTES pUserObjectAttr);
  39. BOOL TermsrvSetValueKey(HANDLE hKey,
  40. PUNICODE_STRING ValueName,
  41. ULONG TitleIndex,
  42. ULONG Type,
  43. PVOID Data,
  44. ULONG DataSize);
  45. BOOL TermsrvDeleteKey(HANDLE hKey);
  46. BOOL TermsrvDeleteValue(HANDLE hKey,
  47. PUNICODE_STRING pUniValue);
  48. BOOL TermsrvRestoreKey(IN HANDLE hKey,
  49. IN HANDLE hFile,
  50. IN ULONG Flags);
  51. BOOL TermsrvSetKeySecurity(IN HANDLE hKey,
  52. IN SECURITY_INFORMATION SecInfo,
  53. IN PSECURITY_DESCRIPTOR pSecDesc);
  54. BOOL TermsrvOpenUserClasses(IN ACCESS_MASK DesiredAccess,
  55. OUT PHANDLE pUserhKey) ;
  56. NTSTATUS TermsrvGetPreSetValue( IN HANDLE hKey,
  57. IN PUNICODE_STRING pValueName,
  58. IN ULONG Type,
  59. OUT PVOID *Data
  60. );
  61. BOOL TermsrvRemoveClassesKey();