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.

117 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. util.h
  5. Abstract:
  6. This module defines the shared data structure and function prototypes
  7. for the security manager
  8. Author:
  9. Jin Huang (jinhuang) 23-Jan-1997
  10. Revision History:
  11. --*/
  12. #ifndef _UTIL_
  13. #define _UTIL_
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #include <nt.h>
  18. #include <ntrtl.h>
  19. #include <nturtl.h>
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. //
  24. // Windows Headers
  25. //
  26. #include <windows.h>
  27. //#include <rpc.h>
  28. //
  29. // C Runtime Header
  30. //
  31. #include <malloc.h>
  32. #include <memory.h>
  33. #include <process.h>
  34. #include <signal.h>
  35. #include <string.h>
  36. #include <stddef.h>
  37. #include <stdio.h>
  38. #include <stdlib.h>
  39. #include <scesvc.h>
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. //
  44. // function definitions
  45. //
  46. SCESTATUS
  47. SmbsvcpDosErrorToSceStatus(
  48. DWORD rc
  49. );
  50. DWORD
  51. SmbsvcpRegQueryIntValue(
  52. IN HKEY hKeyRoot,
  53. IN PWSTR SubKey,
  54. IN PWSTR ValueName,
  55. OUT DWORD *Value
  56. );
  57. DWORD
  58. SmbsvcpRegSetIntValue(
  59. IN HKEY hKeyRoot,
  60. IN PWSTR SubKey,
  61. IN PWSTR ValueName,
  62. IN DWORD Value
  63. );
  64. DWORD
  65. SmbsvcpRegQueryValue(
  66. IN HKEY hKeyRoot,
  67. IN PWSTR SubKey,
  68. IN PCWSTR ValueName,
  69. OUT PVOID *Value,
  70. OUT LPDWORD pRegType
  71. );
  72. DWORD
  73. SmbsvcpRegSetValue(
  74. IN HKEY hKeyRoot,
  75. IN PWSTR SubKey,
  76. IN PWSTR ValueName,
  77. IN DWORD RegType,
  78. IN BYTE *Value,
  79. IN DWORD ValueLen
  80. );
  81. DWORD
  82. SmbsvcpSceStatusToDosError(
  83. IN SCESTATUS SceStatus
  84. );
  85. #ifdef __cplusplus
  86. }
  87. #endif
  88. #endif