PMONITOR
IntCreateMonitorObject()
{
- return UserCreateObject(gHandleTable, NULL, NULL, otMonitor, sizeof(MONITOR));
+ return UserCreateObject(gHandleTable, NULL, NULL, NULL, TYPE_MONITOR, sizeof(MONITOR));
}
/* IntDestroyMonitorObject
/* Destroy monitor object */
UserDereferenceObject(pMonitor);
- UserDeleteObject(UserHMGetHandle(pMonitor), otMonitor);
+ UserDeleteObject(UserHMGetHandle(pMonitor), TYPE_MONITOR);
}
/* UserGetMonitorObject
return NULL;
}
- pMonitor = (PMONITOR)UserGetObject(gHandleTable, hMonitor, otMonitor);
+ pMonitor = (PMONITOR)UserGetObject(gHandleTable, hMonitor, TYPE_MONITOR);
if (!pMonitor)
{
EngSetLastError(ERROR_INVALID_MONITOR_HANDLE);
TRACE("Couldnt create monitor object\n");
return STATUS_INSUFFICIENT_RESOURCES;
}
-
+
pMonitor->hDev = hDev;
pMonitor->cWndStack = 0;
{
if (pMonitor->hDev == hDev)
break;
-
+
pLink = &pMonitor->pMonitorNext;
pMonitor = pMonitor->pMonitorNext;
}
* from MONITORINFO will be filled.
*
* pDevice
- * Pointer to a UNICODE_STRING which will recieve the device's name. The
+ * Pointer to a UNICODE_STRING which will receive the device's name. The
* length should be CCHDEVICENAME
* Can be NULL
*
IN POINT pt,
IN DWORD dwFlags)
{
- INT cMonitors;
RECTL rc;
HMONITOR hMonitor = NULL;
UserEnterShared();
/* Find intersecting monitor */
- cMonitors = IntGetMonitorsFromRect(&rc, &hMonitor, NULL, 1, dwFlags);
+ IntGetMonitorsFromRect(&rc, &hMonitor, NULL, 1, dwFlags);
UserLeave();
return hMonitor;