branch update for HEAD-2003091401
[reactos.git] / lib / user32 / windows / dc.c
index 7437e8d..bfb95a6 100644 (file)
@@ -34,6 +34,9 @@
 
 /* FUNCTIONS *****************************************************************/
 
+/*
+ * @implemented
+ */
 HDC
 STDCALL
 GetDC(
@@ -42,6 +45,10 @@ GetDC(
   return NtUserGetDC(hWnd);
 }
 
+
+/*
+ * @implemented
+ */
 HDC
 STDCALL
 GetDCEx(
@@ -51,6 +58,11 @@ GetDCEx(
 {
   return NtUserGetDCEx(hWnd, hrgnClip, flags);
 }
+
+
+/*
+ * @implemented
+ */
 HDC
 STDCALL
 GetWindowDC(
@@ -58,18 +70,29 @@ GetWindowDC(
 {
   return (HDC)NtUserGetWindowDC(hWnd);
 }
+
+
+/*
+ * @unimplemented
+ */
 int
 STDCALL
 ReleaseDC(
   HWND hWnd,
   HDC hDC)
 {
+  UNIMPLEMENTED;
   return 0;
 }
+
+
+/*
+ * @implemented
+ */
 HWND
 STDCALL
 WindowFromDC(
   HDC hDC)
 {
-  return (HWND)0;
+  return (HWND)NtUserCallOneParam((DWORD)hDC, ONEPARAM_ROUTINE_WINDOWFROMDC);
 }