mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
implement SPI_SETNONCLIENTMETRICS in IntSystemParametersInfo and UserSystemParametersInfo
svn path=/trunk/; revision=25360
This commit is contained in:
parent
dafa988988
commit
15b82d28e7
1 changed files with 9 additions and 2 deletions
|
@ -1282,6 +1282,12 @@ IntSystemParametersInfo(
|
|||
*((NONCLIENTMETRICSW*)pvParam) = pMetrics;
|
||||
return TRUE;
|
||||
}
|
||||
case SPI_SETNONCLIENTMETRICS:
|
||||
{
|
||||
ASSERT(pvParam);
|
||||
pMetrics = *((NONCLIENTMETRICSW*)pvParam);
|
||||
return TRUE;
|
||||
}
|
||||
case SPI_GETFOCUSBORDERHEIGHT:
|
||||
{
|
||||
ASSERT(pvParam);
|
||||
|
@ -1445,10 +1451,11 @@ UserSystemParametersInfo(
|
|||
return( TRUE);
|
||||
}
|
||||
case SPI_GETNONCLIENTMETRICS:
|
||||
case SPI_SETNONCLIENTMETRICS:
|
||||
{
|
||||
NONCLIENTMETRICSW metrics;
|
||||
|
||||
Status = MmCopyFromCaller(&metrics.cbSize, pvParam, sizeof(UINT));
|
||||
Status = MmCopyFromCaller(&metrics, pvParam, sizeof(NONCLIENTMETRICSW));
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
|
@ -1465,7 +1472,7 @@ UserSystemParametersInfo(
|
|||
return( FALSE);
|
||||
}
|
||||
|
||||
Status = MmCopyToCaller(pvParam, &metrics.cbSize, sizeof(NONCLIENTMETRICSW));
|
||||
Status = MmCopyToCaller(pvParam, &metrics, sizeof(NONCLIENTMETRICSW));
|
||||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
|
|
Loading…
Reference in a new issue