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.

119 lines
2.4 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 "AtSvcInc.idl";
  42. #include <lmcons.h>
  43. //
  44. // ---------------------------------------------------------------//
  45. //
  46. typedef [handle] LPWSTR ATSVC_HANDLE;
  47. //
  48. // Schedule service data structures.
  49. //
  50. typedef struct _AT_ENUM_CONTAINER {
  51. DWORD EntriesRead;
  52. [size_is( EntriesRead)] LPAT_ENUM Buffer;
  53. } AT_ENUM_CONTAINER, *PAT_ENUM_CONTAINER, *LPAT_ENUM_CONTAINER;
  54. //
  55. // Schedule service API-s.
  56. //
  57. NET_API_STATUS
  58. NetrJobAdd(
  59. [in,string,unique] ATSVC_HANDLE ServerName,
  60. [in] LPAT_INFO pAtInfo,
  61. [out] LPDWORD pJobId
  62. );
  63. NET_API_STATUS
  64. NetrJobDel(
  65. [in,string,unique] ATSVC_HANDLE ServerName,
  66. [in] DWORD MinJobId,
  67. [in] DWORD MaxJobId
  68. );
  69. NET_API_STATUS
  70. NetrJobEnum(
  71. [in,string,unique] ATSVC_HANDLE ServerName,
  72. [in,out] LPAT_ENUM_CONTAINER pEnumContainer,
  73. [in] DWORD PreferedMaximumLength,
  74. [out] LPDWORD pTotalEntries,
  75. [in,out,unique] LPDWORD pResumeHandle
  76. );
  77. NET_API_STATUS
  78. NetrJobGetInfo(
  79. [in,string,unique] ATSVC_HANDLE ServerName,
  80. [in] DWORD JobId,
  81. [out] LPAT_INFO * ppAtInfo
  82. );
  83. }