mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 02:02:29 +00:00
[KERNEL32] Fix a FIXME in GetNamedPipeHandleStateW and stub a private function for a left unimplemented function
This commit is contained in:
parent
3832f83a32
commit
19cef7806c
1 changed files with 30 additions and 6 deletions
|
@ -20,6 +20,20 @@ LONG ProcessPipeId;
|
||||||
|
|
||||||
/* FUNCTIONS ******************************************************************/
|
/* FUNCTIONS ******************************************************************/
|
||||||
|
|
||||||
|
static
|
||||||
|
BOOL
|
||||||
|
NpGetUserNamep(HANDLE hNamedPipe,
|
||||||
|
LPWSTR lpUserName,
|
||||||
|
DWORD nMaxUserNameSize)
|
||||||
|
{
|
||||||
|
/* FIXME - open the thread token, call ImpersonateNamedPipeClient() and
|
||||||
|
retrieve the user name with GetUserName(), revert the impersonation
|
||||||
|
and finally restore the thread token */
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
*/
|
*/
|
||||||
|
@ -935,18 +949,28 @@ GetNamedPipeHandleStateW(HANDLE hNamedPipe,
|
||||||
*lpMaxCollectionCount = RemoteInfo.MaximumCollectionCount;
|
*lpMaxCollectionCount = RemoteInfo.MaximumCollectionCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(lpCollectDataTimeout != NULL)
|
if (lpCollectDataTimeout != NULL)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
LARGE_INTEGER CollectDataTime;
|
||||||
*lpCollectDataTimeout = 0;
|
|
||||||
|
/* Convert time and return it */
|
||||||
|
RemoteInfo.CollectDataTime.QuadPart *= -1;
|
||||||
|
CollectDataTime = RtlExtendedLargeIntegerDivide(RemoteInfo.CollectDataTime, 10000, NULL);
|
||||||
|
/* In case of overflow, just return MAX - 1 */
|
||||||
|
if (CollectDataTime.HighPart != 0)
|
||||||
|
{
|
||||||
|
*lpCollectDataTimeout = -2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*lpCollectDataTimeout = CollectDataTime.LowPart;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lpUserName != NULL)
|
if (lpUserName != NULL)
|
||||||
{
|
{
|
||||||
/* FIXME - open the thread token, call ImpersonateNamedPipeClient() and
|
return NpGetUserNamep(hNamedPipe, lpUserName, nMaxUserNameSize);
|
||||||
retrieve the user name with GetUserName(), revert the impersonation
|
|
||||||
and finally restore the thread token */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue