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.

96 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. SASecRPC.idl
  5. Abstract:
  6. Scheduling Agent security RPC interface definition. This interface
  7. is used to securely set/get account information.
  8. SASetAccountInformation
  9. SAGetAccountInformation
  10. Author:
  11. Mark Blanford (markbl) 06 - June - 1996
  12. Environment:
  13. User Mode - Win32 - MIDL
  14. Revision History:
  15. 06-Jun-1996 markbl
  16. Created
  17. --*/
  18. //
  19. // Interface Attributes
  20. //
  21. [
  22. uuid(378E52B0-C0A9-11CF-822D-00AA0051E40F),
  23. version(1.0),
  24. #ifdef __midl
  25. ms_union,
  26. #endif // __midl
  27. pointer_default(unique)
  28. ]
  29. //
  30. // Interface Keyword
  31. //
  32. interface sasec
  33. //
  34. // Interface Body
  35. //
  36. {
  37. import "wtypes.idl";
  38. #include <lmcons.h>
  39. #define MAX_BUFFER_SIZE (DNLEN+UNLEN+1+1)
  40. // Domain + User + separator + 1 null
  41. //
  42. // ---------------------------------------------------------------//
  43. //
  44. typedef [handle] LPCWSTR SASEC_HANDLE;
  45. HRESULT
  46. SASetAccountInformation(
  47. [ in, string, unique ] SASEC_HANDLE Handle,
  48. [ in, string ] LPCWSTR pwszJobName,
  49. [ in, string ] LPCWSTR pwszAccount,
  50. [ in, string, unique ] LPCWSTR pwszPassword,
  51. [ in ] DWORD dwJobFlags);
  52. HRESULT
  53. SASetNSAccountInformation(
  54. [ in, string, unique ] SASEC_HANDLE Handle,
  55. [ in, string, unique ] LPCWSTR pwszAccount,
  56. [ in, string, unique ] LPCWSTR pwszPassword);
  57. HRESULT
  58. SAGetNSAccountInformation(
  59. [ in, string, unique ] SASEC_HANDLE Handle,
  60. [ in, range(0, MAX_BUFFER_SIZE) ] DWORD ccBufferSize,
  61. [ in, out, , size_is(ccBufferSize) ]
  62. WCHAR wszBuffer[]);
  63. HRESULT
  64. SAGetAccountInformation(
  65. [ in, string, unique ] SASEC_HANDLE Handle,
  66. [ in, string ] LPCWSTR pwszJobName,
  67. [ in, range(0, MAX_BUFFER_SIZE) ] DWORD ccBufferSize,
  68. [ in, out, , size_is(ccBufferSize) ]
  69. WCHAR wszBuffer[]);
  70. }