ReactOS 0.4.15-dev-7704-gc07eb9f
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 379 of file dc.c.

380{
381 return 0;
382}

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}
static HDC hDC
Definition: 3dtext.c:33
#define FALSE
Definition: types.h:117
EXTINLINE INT NtUserxReleaseDC(HDC hDC)
Definition: ntwrapper.h:636
BOOL WINAPI GdiReleaseDC(HDC hdc)
Definition: dc.c:379

◆ WindowFromDC()

HWND WINAPI WindowFromDC ( HDC  hDC)

Definition at line 58 of file dc.c.

59{
61}
EXTINLINE HWND NtUserxWindowFromDC(HDC hDC)
Definition: ntwrapper.h:591