28 ERR(
"Level = %d, unsupported!\n",
Level);
86 ERR(
"Level = %d, unsupported!\n",
Level);
102 ERR(
"_RpcAddMonitor failed with exception code %lu!\n", dwErrorCode);
105FIXME(
"AddMonitorW Error Code %lu\n", dwErrorCode);
119 TRACE(
"DeleteMonitorA(%s, %s, %s)\n",
pName, pEnvironment, pMonitorName);
152 FIXME(
"DeleteMonitorW(%S, %S, %S)\n",
pName, pEnvironment, pMonitorName);
162 ERR(
"_RpcDeleteMonitor failed with exception code %lu!\n", dwErrorCode);
178 DWORD numentries = 0;
181 FIXME(
"EnumMonitorsA(%s, %d, %p, %d, %p, %p)\n",
debugstr_a(
pName),
Level, pMonitors, cbBuf,
pcbNeeded, pcReturned);
183 if ( Level < 1 || Level > 2 )
185 ERR(
"Level = %d, unsupported!\n",
Level);
198 needed = cbBuf *
sizeof(
WCHAR);
212 numentries = pcReturned ? *pcReturned : 0;
234 while (
index < numentries)
261 len = entrysize * numentries;
268 while ((
index < numentries) && pMonitors)
298 if (pcReturned) *pcReturned = (
res) ? numentries : 0;
303 FIXME(
"returning %d with %d (%d byte for %d entries)\n", (
res),
GetLastError(), needed, numentries);
314 FIXME(
"EnumMonitorsW(%S, %lu, %p, %lu, %p, %p)\n",
pName,
Level, pMonitors, cbBuf,
pcbNeeded, pcReturned);
316 if ( Level < 1 || Level > 2 )
318 ERR(
"Level = %d, unsupported!\n",
Level);
331 ERR(
"_RpcEnumMonitors failed with exception code %lu!\n", dwErrorCode);
static const WCHAR nameW[]
BOOL WINAPI AddMonitorW(PWSTR pName, DWORD Level, PBYTE pMonitors)
BOOL WINAPI EnumMonitorsW(PWSTR pName, DWORD Level, PBYTE pMonitors, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
BOOL WINAPI DeleteMonitorW(PWSTR pName, PWSTR pEnvironment, PWSTR pMonitorName)
DWORD _RpcAddMonitor(WINSPOOL_HANDLE pName, WINSPOOL_MONITOR_CONTAINER *pMonitorContainer)
DWORD _RpcDeleteMonitor(WINSPOOL_HANDLE pName, WCHAR *pEnvironment, WCHAR *pMonitorName)
DWORD _RpcEnumMonitors(WINSPOOL_HANDLE pName, DWORD Level, BYTE *pMonitor, DWORD cbBuf, DWORD *pcbNeeded, DWORD *pcReturned)
BOOL WINAPI DeleteMonitorA(PSTR pName, PSTR pEnvironment, PSTR pMonitorName)
BOOL WINAPI EnumMonitorsA(PSTR pName, DWORD Level, PBYTE pMonitors, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
BOOL WINAPI AddMonitorA(PSTR pName, DWORD Level, PBYTE pMonitors)
#define ERROR_INSUFFICIENT_BUFFER
#define HeapFree(x, y, z)
#define WideCharToMultiByte
#define MultiByteToWideChar
#define EXCEPTION_EXECUTE_HANDLER
BOOL WINAPI MarshallUpStructuresArray(DWORD cbSize, PVOID pStructuresArray, DWORD cElements, const MARSHALLING_INFO *pInfo, DWORD cbStructureSize, BOOL bSomeBoolean)
static const MARSHALLING * pMonitorInfoMarshalling[]
#define RpcExceptionCode()
union _WINSPOOL_MONITOR_CONTAINER::@3438 MonitorInfo
WINSPOOL_MONITOR_INFO_2 * pMonitorInfo2
DWORD WINAPI GetLastError(void)
_In_ DWORD _Out_ PDWORD pcbNeeded
#define ERROR_INVALID_LEVEL
struct _MONITOR_INFO_2A MONITOR_INFO_2A
struct _MONITOR_INFO_2A * LPMONITOR_INFO_2A
struct _MONITOR_INFO_2W * LPMONITOR_INFO_2W
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level