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.

113 lines
2.0 KiB

  1. /*
  2. File sdolib.h
  3. Provides a simple library for dealing with SDO's to
  4. set ras user related settings.
  5. Paul Mayfield, 5/7/98
  6. */
  7. #ifndef __mprapi_sdolib_h
  8. #define __mprapi_sdolib_h
  9. //
  10. // Initialize and cleanup the sdo library
  11. //
  12. DWORD SdoInit (
  13. OUT PHANDLE phSdo);
  14. //
  15. // Frees resources held by the SDO library
  16. DWORD SdoCleanup (
  17. IN HANDLE hSdo);
  18. //
  19. // Connects to an SDO server
  20. //
  21. DWORD SdoConnect (
  22. IN HANDLE hSdo,
  23. IN PWCHAR pszServer,
  24. IN BOOL bLocal,
  25. OUT PHANDLE phServer);
  26. //
  27. // Disconnects from an SDO server
  28. //
  29. DWORD SdoDisconnect (
  30. IN HANDLE hSdo,
  31. IN HANDLE hServer);
  32. //
  33. // Opens an Sdo user for manipulation
  34. //
  35. DWORD SdoOpenUser(
  36. IN HANDLE hSdo,
  37. IN HANDLE hServer,
  38. IN PWCHAR pszUser,
  39. OUT PHANDLE phUser);
  40. //
  41. // Closes an Sdo user
  42. //
  43. DWORD SdoCloseUser(
  44. IN HANDLE hSdo,
  45. IN HANDLE hUser);
  46. //
  47. // Commits changes made to user
  48. //
  49. DWORD SdoCommitUser(
  50. IN HANDLE hSdo,
  51. IN HANDLE hUser,
  52. IN BOOL bCommit);
  53. //
  54. // SDO equivalent of MprAdminUserGetInfo
  55. //
  56. DWORD SdoUserGetInfo (
  57. IN HANDLE hSdo,
  58. IN HANDLE hUser,
  59. IN DWORD dwLevel,
  60. OUT LPBYTE pRasUser);
  61. //
  62. // SDO equivalent of MprAdminUserSetInfo
  63. //
  64. DWORD SdoUserSetInfo (
  65. IN HANDLE hSdo,
  66. IN HANDLE hUser,
  67. IN DWORD dwLevel,
  68. IN LPBYTE pRasUser);
  69. //
  70. // Opens the default profile
  71. //
  72. DWORD SdoOpenDefaultProfile(
  73. IN HANDLE hSdo,
  74. IN HANDLE hServer,
  75. OUT PHANDLE phProfile);
  76. //
  77. // Closes a profile
  78. //
  79. DWORD SdoCloseProfile(
  80. IN HANDLE hSdo,
  81. IN HANDLE hProfile);
  82. //
  83. // Sets data in the profile.
  84. //
  85. DWORD SdoSetProfileData(
  86. IN HANDLE hSdo,
  87. IN HANDLE hProfile,
  88. IN DWORD dwFlags);
  89. //
  90. // Read information from the given profile
  91. //
  92. DWORD SdoGetProfileData(
  93. IN HANDLE hSdo,
  94. IN HANDLE hProfile,
  95. OUT LPDWORD lpdwFlags);
  96. #endif