Remove NtGdiDeleteDC
authorBrandon Turner <turnerb7@msu.edu>
Sat, 7 Jan 2006 01:06:48 +0000 (01:06 +0000)
committerBrandon Turner <turnerb7@msu.edu>
Sat, 7 Jan 2006 01:06:48 +0000 (01:06 +0000)
svn path=/trunk/; revision=20635

13 files changed:
reactos/include/win32k/ntgdibad.h
reactos/lib/gdi32/gdi32.def
reactos/lib/gdi32/misc/gdientry.c
reactos/subsys/system/usetup/bootsup.c
reactos/subsys/win32k/ntuser/cursoricon.c
reactos/subsys/win32k/ntuser/desktop.c
reactos/subsys/win32k/ntuser/metric.c
reactos/subsys/win32k/ntuser/windc.c
reactos/subsys/win32k/ntuser/winsta.c
reactos/subsys/win32k/objects/bitmaps.c
reactos/subsys/win32k/objects/dc.c
reactos/subsys/win32k/objects/dib.c
reactos/tools/nci/w32ksvc.db

index bfb2941..edc23be 100644 (file)
@@ -348,9 +348,6 @@ NtGdiDPtoLP (
        int     Count\r
        );\r
 \r
-/* Use NtGdiDeleteObjectApp. */\r
-BOOL STDCALL  NtGdiDeleteDC(HDC  hDC);\r
-\r
 /* Meta are user-mode. */\r
 BOOL\r
 STDCALL\r
index 195e6e3..bf6d97d 100644 (file)
@@ -91,7 +91,7 @@ CreateScalableFontResourceW@16
 CreateSolidBrush@4
 DPtoLP@12=NtGdiDPtoLP@12
 DeleteColorSpace@4
-DeleteDC@4=NtGdiDeleteDC@4
+DeleteDC@4=NtGdiDeleteObjectApp@4
 DeleteEnhMetaFile@4
 DeleteMetaFile@4
 DeleteObject@4
index 78c75b8..1a24005 100644 (file)
@@ -83,7 +83,7 @@ DdCreateDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
   if ((ULONG_PTR)newHdc != pDirectDrawGlobalInternal->hDD)
   {
     pDirectDrawGlobalInternal->hDD = (ULONG_PTR) NtGdiDdCreateDirectDrawObject(newHdc);
-    NtGdiDeleteDC(newHdc);
+    NtGdiDeleteObjectApp(newHdc);
   }
 
    /* pDirectDrawGlobal->hDD = pDirectDrawGlobalInternal->hDD; ? */
index 22ce216..fa739fc 100644 (file)
@@ -245,7 +245,7 @@ CreateFreeLoaderIniForDos(PWCHAR IniPath,
                    NULL,
                    INSERT_LAST,
                    L"Options",
-                   L"/DEBUGPORT=SCREEN /NOGUIBOOT");
+                   L"/DEBUGPORT=COM1 /NOGUIBOOT");
 
   /* Create "DOS" section */
   IniSection = IniCacheAppendSection(IniCache,
@@ -356,7 +356,7 @@ CreateFreeLoaderIniForReactos(PWCHAR IniPath,
                    NULL,
                    INSERT_LAST,
                    L"Options",
-                   L"/DEBUGPORT=SCREEN /NOGUIBOOT");
+                   L"/DEBUGPORT=COM1 /NOGUIBOOT");
 
   /* Save the ini file */
   IniCacheSave(IniCache, IniPath);
index f061296..475510d 100644 (file)
@@ -1312,7 +1312,7 @@ DoStretchBlt(HDC DcDest, int XDest, int YDest, int WidthDest, int HeightDest,
       }
       if (NULL == BitmapStretched)
       {
-         NtGdiDeleteDC(DcStretched);
+         NtGdiDeleteObjectApp(DcStretched);
          DPRINT1("Failed to create temporary bitmap\n");
          return;
       }
@@ -1320,7 +1320,7 @@ DoStretchBlt(HDC DcDest, int XDest, int YDest, int WidthDest, int HeightDest,
       if (NULL == OldBitmap)
       {
          NtGdiDeleteObject(BitmapStretched);
-         NtGdiDeleteDC(DcStretched);
+         NtGdiDeleteObjectApp(DcStretched);
          DPRINT1("Failed to create temporary bitmap\n");
          return;
       }
@@ -1334,7 +1334,7 @@ DoStretchBlt(HDC DcDest, int XDest, int YDest, int WidthDest, int HeightDest,
       }
       NtGdiSelectObject(DcStretched, OldBitmap);
       NtGdiDeleteObject(BitmapStretched);
-      NtGdiDeleteDC(DcStretched);
+      NtGdiDeleteObjectApp(DcStretched);
    }
 }
 #else
@@ -1439,7 +1439,7 @@ NtUserDrawIconEx(
       hbmOff = NtGdiCreateCompatibleBitmap(hdc, cxWidth, cyHeight);
       if(!hbmOff)
       {
-         NtGdiDeleteDC(hdcOff);
+         NtGdiDeleteObjectApp(hdcOff);
          goto done;
       }
       hOldOffBrush = NtGdiSelectObject(hdcOff, hbrFlickerFreeDraw);
@@ -1511,10 +1511,10 @@ cleanup:
       NtGdiSelectObject(hdcOff, hOldOffBmp);
       NtGdiSelectObject(hdcOff, hOldOffBrush);
       NtGdiDeleteObject(hbmOff);
-      NtGdiDeleteDC(hdcOff);
+      NtGdiDeleteObjectApp(hdcOff);
    }
    if(hdcMem)
-      NtGdiDeleteDC(hdcMem);
+      NtGdiDeleteObjectApp(hdcMem);
 
 done:
    ObDereferenceObject(WinSta);
index fd993c2..b744971 100644 (file)
@@ -1320,7 +1320,7 @@ NtUserPaintDesktop(HDC hDC)
                             0);
             } 
             NtGdiSelectObject(hWallpaperDC, hOldBitmap); 
-            NtGdiDeleteDC(hWallpaperDC);
+            NtGdiDeleteObjectApp(hWallpaperDC);
          }
       }
    }
index 8e28af6..9e9d3da 100644 (file)
@@ -171,7 +171,7 @@ UserGetSystemMetrics(ULONG Index)
                   Height = ScreenDC->GDIInfo->ulVertRes;
                   DC_UnlockDc(ScreenDC);
                }
-               NtGdiDeleteDC(ScreenDCHandle);
+               NtGdiDeleteObjectApp(ScreenDCHandle);
             }
             return SM_CXSCREEN == Index ? Width : Height;
          }
index e7500f7..7d37f0e 100644 (file)
@@ -647,7 +647,7 @@ DceFreeDCE(PDCE dce, BOOLEAN Force)
       DC_SetOwnership(dce->hDC, PsGetCurrentProcess());
    }
 
-   NtGdiDeleteDC(dce->hDC);
+   NtGdiDeleteObjectApp(dce->hDC);
    if (dce->hClipRgn && ! (dce->DCXFlags & DCX_KEEPCLIPRGN))
    {
       NtGdiDeleteObject(dce->hClipRgn);
index 6f61932..f258f03 100644 (file)
@@ -371,7 +371,7 @@ IntEndDesktopGraphics(VOID)
    if (NULL != ScreenDeviceContext)
    {
       DC_SetOwnership(ScreenDeviceContext, PsGetCurrentProcess());
-      NtGdiDeleteDC(ScreenDeviceContext);
+      NtGdiDeleteObjectApp(ScreenDeviceContext);
       ScreenDeviceContext = NULL;
    }
    IntHideDesktop(IntGetActiveDesktop());
index 1800c5f..78441a4 100644 (file)
@@ -729,7 +729,7 @@ NtGdiGetPixel(HDC hDC, INT XPos, INT YPos)
                                }
                                NtGdiDeleteObject ( hBmpTmp );
                        }
-                       NtGdiDeleteDC ( hDCTmp );
+                       NtGdiDeleteObjectApp ( hDCTmp );
                }
        }
 
@@ -941,9 +941,9 @@ NtGdiMaskBlt (
        NtGdiDeleteObject(hBitmap2);
        NtGdiDeleteObject(hBitmap3);
 
-       NtGdiDeleteDC(hDC1);
-       NtGdiDeleteDC(hDC2);
-       NtGdiDeleteDC(hDCMask);
+       NtGdiDeleteObjectApp(hDC1);
+       NtGdiDeleteObjectApp(hDC2);
+       NtGdiDeleteObjectApp(hDCMask);
 
        return TRUE;
 }
index 6dd08f6..639fb37 100644 (file)
@@ -165,7 +165,7 @@ NtGdiCreateCompatibleDC(HDC hDC)
     {
       if (NULL != DisplayDC)
         {
-          NtGdiDeleteDC(DisplayDC);
+          NtGdiDeleteObjectApp(DisplayDC);
         }
       return NULL;
     }
@@ -176,7 +176,7 @@ NtGdiCreateCompatibleDC(HDC hDC)
       DC_UnlockDc(OrigDC);
       if (NULL != DisplayDC)
         {
-          NtGdiDeleteDC(DisplayDC);
+          NtGdiDeleteObjectApp(DisplayDC);
         }
       return  NULL;
     }
@@ -213,7 +213,7 @@ NtGdiCreateCompatibleDC(HDC hDC)
       DC_FreeDC( hNewDC );
       if (NULL != DisplayDC)
         {
-          NtGdiDeleteDC(DisplayDC);
+          NtGdiDeleteObjectApp(DisplayDC);
         }
       return NULL;
     }
@@ -233,7 +233,7 @@ NtGdiCreateCompatibleDC(HDC hDC)
   DC_UnlockDc(OrigDC);
   if (NULL != DisplayDC)
     {
-      NtGdiDeleteDC(DisplayDC);
+      NtGdiDeleteObjectApp(DisplayDC);
     }
 
   hVisRgn = NtGdiCreateRectRgn(0, 0, 1, 1);
@@ -1060,7 +1060,7 @@ NtGdiCreateIC(PUNICODE_STRING Driver,
 }
 
 BOOL STDCALL
-NtGdiDeleteDC(HDC  DCHandle)
+NtGdiDeleteObjectApp(HANDLE  DCHandle)
 {
   PDC  DCToDelete;
 
@@ -1092,7 +1092,7 @@ NtGdiDeleteDC(HDC  DCHandle)
     DC_SetNextDC (DCToDelete, DC_GetNextDC (savedDC));
     DCToDelete->saveLevel--;
     DC_UnlockDc( savedDC );
-    NtGdiDeleteDC (savedHDC);
+    NtGdiDeleteObjectApp (savedHDC);
   }
 
   /*  Free GDI resources allocated to this DC  */
@@ -1991,7 +1991,7 @@ NtGdiRestoreDC(HDC  hDC, INT  SaveLevel)
       {
       DC_UnlockDc( dcs );
       }
-    NtGdiDeleteDC (hdcs);
+    NtGdiDeleteObjectApp (hdcs);
   }
   DC_UnlockDc( dc );
   return  success;
@@ -2034,7 +2034,7 @@ NtGdiSaveDC(HDC  hDC)
      */
   if (!PATH_AssignGdiPath (&dcs->w.path, &dc->w.path))
   {
-    NtGdiDeleteDC (hdcs);
+    NtGdiDeleteObjectApp (hdcs);
     return 0;
   }
 #endif
index 4f19471..77959e6 100644 (file)
@@ -579,7 +579,7 @@ INT STDCALL NtGdiStretchDIBits(HDC  hDC,
                       SrcWidth, SrcHeight, ROP, 0);
 
    NtGdiSelectObject(hdcMem, hOldBitmap);
-   NtGdiDeleteDC(hdcMem);
+   NtGdiDeleteObjectApp(hdcMem);
    NtGdiDeleteObject(hBitmap);
 
    return SrcHeight;
@@ -799,7 +799,7 @@ HBITMAP STDCALL NtGdiCreateDIBSection(HDC hDC,
   }
 
   if (bDesktopDC)
-    NtGdiDeleteDC(hDC);
+    NtGdiDeleteObjectApp(hDC);
 
   return hbitmap;
 }
index 06b1be2..25fd871 100644 (file)
@@ -52,7 +52,7 @@ NtGdiCreateScalableFontResource               4
 NtGdiCreateSolidBrush                  2
 NtGdiDPtoLP                            3
 NtGdiDeleteColorSpace                  1
-NtGdiDeleteDC                          1
+NtGdiDeleteObjectApp                   1
 NtGdiDeleteEnhMetaFile                 1
 NtGdiDeleteMetaFile                    1
 NtGdiDeleteObject                      1