ReactOS  0.4.14-dev-854-gb9426a3
dc.c File Reference
#include <user32.h>
Include dependency graph for dc.c:

Go to the source code of this file.

Functions

BOOL WINAPI GdiReleaseDC (HDC hdc)
 
int WINAPI ReleaseDC (HWND hWnd, HDC hDC)
 
HWND WINAPI WindowFromDC (HDC hDC)
 

Function Documentation

◆ GdiReleaseDC()

BOOL WINAPI GdiReleaseDC ( HDC  hdc)

Definition at line 390 of file dc.c.

391 {
392  return 0;
393 }

Referenced by ReleaseDC().

◆ ReleaseDC()

int WINAPI ReleaseDC ( HWND  hWnd,
HDC  hDC 
)

Definition at line 39 of file dc.c.

41 {
42  // From msdn: if the DC was not released return zero.
43  // if the DC was released return one.
44 
45  if (!hDC) return FALSE; // Null hDC return zero.
46 
47  GdiReleaseDC ( hDC ); // Release locals.
48 
49  return NtUserxReleaseDC(hDC);
50 }
EXTINLINE INT NtUserxReleaseDC(HDC hDC)
Definition: ntwrapper.h:636
static HDC hDC
Definition: 3dtext.c:33
BOOL WINAPI GdiReleaseDC(HDC hdc)
Definition: dc.c:390

Referenced by test_CreateCompatibleDC(), test_DC_bitmap(), test_DeleteDC(), test_desktop_colorres(), test_gamma(), and test_savedc_2().

◆ WindowFromDC()

HWND WINAPI WindowFromDC ( HDC  hDC)

Definition at line 58 of file dc.c.

59 {
60  return NtUserxWindowFromDC(hDC);
61 }
EXTINLINE HWND NtUserxWindowFromDC(HDC hDC)
Definition: ntwrapper.h:591
static HDC hDC
Definition: 3dtext.c:33