Pretend there are 0 terminal server sessions and processes.

This commit is contained in:
Hans Leidekker 2005-03-24 15:08:48 +00:00 committed by Alexandre Julliard
parent 3ef45c7805
commit caf62a40ff

View file

@ -61,7 +61,7 @@ void WINAPI WTSCloseServer(HANDLE hServer)
BOOL WINAPI WTSDisconnectSession(HANDLE hServer, DWORD SessionId, BOOL bWait) BOOL WINAPI WTSDisconnectSession(HANDLE hServer, DWORD SessionId, BOOL bWait)
{ {
FIXME("Stub %p 0x%08lx %d\n", hServer, SessionId, bWait); FIXME("Stub %p 0x%08lx %d\n", hServer, SessionId, bWait);
return FALSE; return TRUE;
} }
/************************************************************ /************************************************************
@ -72,7 +72,13 @@ BOOL WINAPI WTSEnumerateProcessesA(HANDLE hServer, DWORD Reserved, DWORD Version
{ {
FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version, FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
ppProcessInfo, pCount); ppProcessInfo, pCount);
return FALSE;
if (!ppProcessInfo || !pCount) return FALSE;
*pCount = 0;
*ppProcessInfo = NULL;
return TRUE;
} }
/************************************************************ /************************************************************
@ -83,7 +89,13 @@ BOOL WINAPI WTSEnumerateProcessesW(HANDLE hServer, DWORD Reserved, DWORD Version
{ {
FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version, FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
ppProcessInfo, pCount); ppProcessInfo, pCount);
return FALSE;
if (!ppProcessInfo || !pCount) return FALSE;
*pCount = 0;
*ppProcessInfo = NULL;
return TRUE;
} }
/************************************************************ /************************************************************
@ -94,7 +106,13 @@ BOOL WINAPI WTSEnumerateSessionsA(HANDLE hServer, DWORD Reserved, DWORD Version,
{ {
FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version, FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
ppSessionInfo, pCount); ppSessionInfo, pCount);
return FALSE;
if (!ppSessionInfo || !pCount) return FALSE;
*pCount = 0;
*ppSessionInfo = NULL;
return TRUE;
} }
/************************************************************ /************************************************************
@ -105,7 +123,13 @@ BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
{ {
FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version, FIXME("Stub %p 0x%08lx 0x%08lx %p %p\n", hServer, Reserved, Version,
ppSessionInfo, pCount); ppSessionInfo, pCount);
return FALSE;
if (!ppSessionInfo || !pCount) return FALSE;
*pCount = 0;
*ppSessionInfo = NULL;
return TRUE;
} }
/************************************************************ /************************************************************