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.

127 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. atsvc.idl
  5. Abstract:
  6. This is the IDL file that describes the RPC interface for the (remotable)
  7. APIs that reside in the schedule == scheduler == at == job service.
  8. This consists of the following APIs:
  9. NetJobEnum
  10. NetJobAdd
  11. NetJobDel
  12. NetJobControl - BUGBUG not implemented yet
  13. Also contains the RPC specific data structures for these APIs.
  14. Author:
  15. Vladimir Z. Vulovic (vladimv) 06 - November - 1992
  16. Environment:
  17. User Mode - Win32 - MIDL
  18. Revision History:
  19. 06-Nov-1992 vladimv
  20. Created
  21. --*/
  22. //
  23. // Interface Attributes
  24. //
  25. [
  26. uuid(1FF70682-0A51-30E8-076D-740BE8CEE98B),
  27. version(1.0),
  28. #ifdef __midl
  29. ms_union,
  30. #endif // __midl
  31. pointer_default(unique)
  32. ]
  33. //
  34. // Interface Keyword
  35. //
  36. interface atsvc
  37. //
  38. // Interface Body
  39. //
  40. {
  41. import "imports.idl";
  42. #include <lmcons.h>
  43. //
  44. // BUGBUG - take this definition out when midl understands LPWSTR etc
  45. //
  46. #ifdef UNICODE
  47. #define LPTSTR wchar_t *
  48. #endif
  49. //
  50. // ---------------------------------------------------------------//
  51. //
  52. typedef [handle] LPCWSTR ATSVC_HANDLE;
  53. //
  54. // Schedule service data structures.
  55. //
  56. typedef struct _AT_ENUM_CONTAINER {
  57. DWORD EntriesRead;
  58. [size_is( EntriesRead)] LPAT_ENUM Buffer;
  59. } AT_ENUM_CONTAINER, *PAT_ENUM_CONTAINER, *LPAT_ENUM_CONTAINER;
  60. //
  61. // Schedule service API-s.
  62. //
  63. NET_API_STATUS
  64. NetrJobAdd(
  65. [in,string,unique] ATSVC_HANDLE ServerName,
  66. [in] LPAT_INFO pAtInfo,
  67. [out] LPDWORD pJobId
  68. );
  69. NET_API_STATUS
  70. NetrJobDel(
  71. [in,string,unique] ATSVC_HANDLE ServerName,
  72. [in] DWORD MinJobId,
  73. [in] DWORD MaxJobId
  74. );
  75. NET_API_STATUS
  76. NetrJobEnum(
  77. [in,string,unique] ATSVC_HANDLE ServerName,
  78. [in,out] LPAT_ENUM_CONTAINER pEnumContainer,
  79. [in] DWORD PreferedMaximumLength,
  80. [out] LPDWORD pTotalEntries,
  81. [in,out,unique] LPDWORD pResumeHandle
  82. );
  83. NET_API_STATUS
  84. NetrJobGetInfo(
  85. [in,string,unique] ATSVC_HANDLE ServerName,
  86. [in] DWORD JobId,
  87. [out] LPAT_INFO * ppAtInfo
  88. );
  89. }