2 * ATSvc Service definitions
4 * Copyright 2018 Dmitry Timoshkov
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25 uuid(1ff70682
-0a51
-30e8
-076d
-740be8cee98b
),
26 implicit_handle
(handle_t atsvc_handle
),
28 pointer_default(unique)
32 const DWORD APE_AT_ID_NOT_FOUND
= 0x00000ede;
34 typedef [handle] const WCHAR
*ATSVC_HANDLE
;
36 typedef struct _AT_ENUM
41 unsigned char DaysOfWeek
;
43 [string] WCHAR
*Command
;
44 } AT_ENUM
, *PAT_ENUM
, *LPAT_ENUM
;
46 typedef struct _AT_INFO
50 unsigned char DaysOfWeek
;
52 [string] WCHAR
*Command
;
53 } AT_INFO
, *PAT_INFO
, *LPAT_INFO
;
55 typedef struct _AT_ENUM_CONTAINER
58 [size_is(EntriesRead
)] LPAT_ENUM Buffer
;
59 } AT_ENUM_CONTAINER
, *PAT_ENUM_CONTAINER
, *LPAT_ENUM_CONTAINER
;
61 DWORD NetrJobAdd
([in,string,unique] ATSVC_HANDLE ServerName
,
62 [in] LPAT_INFO pAtInfo
, [out] LPDWORD pJobId
);
64 DWORD NetrJobDel
([in,string,unique] ATSVC_HANDLE ServerName
,
65 [in] DWORD MinJobId
, [in] DWORD MaxJobId
);
67 DWORD NetrJobEnum
([in,string,unique] ATSVC_HANDLE ServerName
,
68 [in,out] LPAT_ENUM_CONTAINER pEnumContainer
, [in] DWORD PreferredMaximumLength
,
69 [out] LPDWORD pTotalEntries
, [in,out,unique] LPDWORD pResumeHandle
);
71 DWORD NetrJobGetInfo
([in,string,unique] ATSVC_HANDLE ServerName
,
72 [in] DWORD JobId
, [out] LPAT_INFO
*ppAtInfo
);