xref: /reactos/dll/win32/mstask/stubs.c (revision 8a978a17)
1 
2 #include "precomp.h"
3 #include <atsvc_c.h>
4 
5 WINE_DEFAULT_DEBUG_CHANNEL(mstask);
6 
7 typedef PWSTR SASEC_HANDLE;
8 
9 HRESULT
10 WINAPI
11 ConvertAtJobsToTasks(void)
12 {
13     UNIMPLEMENTED;
14     return E_NOTIMPL;
15 }
16 
17 // See https://docs.microsoft.com/en-us/windows/win32/api/atacct/nf-atacct-getnetscheduleaccountinformation
18 HRESULT
19 WINAPI
20 GetNetScheduleAccountInformation(
21     _In_z_ LPCWSTR pwszServerName,
22     _In_ DWORD ccAccount,
23     _Out_bytecap_(ccAccount) WCHAR wszAccount[])
24 {
25     UNIMPLEMENTED;
26     return E_NOTIMPL;
27 }
28 
29 // For the following functions see https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-TSCH/%5BMS-TSCH%5D.pdf
30 
31 NET_API_STATUS
32 WINAPI
33 NetrJobAdd(
34     _In_z_ ATSVC_HANDLE ServerName,
35     _In_ LPAT_INFO pAtInfo,
36     _Out_ LPDWORD pJobId)
37 {
38     UNIMPLEMENTED;
39     return E_NOTIMPL;
40 }
41 
42 NET_API_STATUS
43 WINAPI
44 NetrJobDel(
45     _In_z_ ATSVC_HANDLE ServerName,
46     _In_ DWORD MinJobId,
47     _In_ DWORD MaxJobId)
48 {
49     UNIMPLEMENTED;
50     return E_NOTIMPL;
51 }
52 
53 NET_API_STATUS
54 WINAPI
55 NetrJobEnum(
56     _In_z_ ATSVC_HANDLE ServerName,
57     _Inout_ LPAT_ENUM_CONTAINER pEnumContainer,
58     _In_ DWORD PreferedMaximumLength,
59     _Out_ LPDWORD pTotalEntries,
60     _Inout_ LPDWORD pResumeHandle)
61 {
62     UNIMPLEMENTED;
63     return E_NOTIMPL;
64 }
65 
66 NET_API_STATUS
67 WINAPI
68 NetrJobGetInfo(
69     _In_z_ ATSVC_HANDLE ServerName,
70     _In_ DWORD JobId,
71     _Outptr_ LPAT_INFO* ppAtInfo)
72 {
73     UNIMPLEMENTED;
74     return E_NOTIMPL;
75 }
76 
77 #define MAX_BUFFER_SIZE 273
78 
79 HRESULT
80 WINAPI
81 SAGetAccountInformation(
82     _In_z_ SASEC_HANDLE Handle,
83     _In_z_ const wchar_t* pwszJobName,
84     _In_range_(0, MAX_BUFFER_SIZE) DWORD ccBufferSize,
85     _Inout_updates_z_(ccBufferSize) wchar_t wszBuffer[])
86 {
87     UNIMPLEMENTED;
88     return E_NOTIMPL;
89 }
90 
91 HRESULT
92 WINAPI
93 SAGetNSAccountInformation(
94     _In_z_ SASEC_HANDLE Handle,
95     _In_range_(0, MAX_BUFFER_SIZE) DWORD ccBufferSize,
96     _Inout_updates_z_(ccBufferSize) wchar_t wszBuffer[])
97 {
98     UNIMPLEMENTED;
99     return E_NOTIMPL;
100 }
101 
102 HRESULT
103 WINAPI
104 SASetAccountInformation(
105     _In_z_ SASEC_HANDLE Handle,
106     _In_z_ const wchar_t* pwszJobName,
107     _In_z_ const wchar_t* pwszAccount,
108     _In_z_ const wchar_t* pwszPassword,
109     _In_ DWORD dwJobFlags)
110 {
111     UNIMPLEMENTED;
112     return E_NOTIMPL;
113 }
114 
115 HRESULT
116 WINAPI
117 SASetNSAccountInformation(
118     _In_z_ SASEC_HANDLE Handle,
119     _In_z_ const wchar_t* pwszAccount,
120     _In_z_ const wchar_t* pwszPassword)
121 {
122     UNIMPLEMENTED;
123     return E_NOTIMPL;
124 }
125 
126 HRESULT
127 WINAPI
128 SetNetScheduleAccountInformation(
129     _In_z_ LPCWSTR pwszServerName,
130     _In_z_ LPCWSTR pwszAccount,
131     _In_z_ LPCWSTR pwszPassword)
132 {
133     UNIMPLEMENTED;
134     return E_NOTIMPL;
135 }
136