File Index Symbol Index

#include <winapifamily.h>
/**************************************************************************** * * * windef.h -- Basic Windows Type Definitions * * * * Copyright (c) Microsoft Corporation. All rights reserved. * * * ****************************************************************************/
#ifndef _WINDEF_
#define _WINDEF_
#pragma once
#ifdef __cplusplus
extern
"C"
{
#endif
#ifdef _M_CEE_PURE
#define WINAPI_INLINE __clrcall
#endif
#include <minwindef.h>
#ifndef WINVER
#define WINVER 0x0500
#endif /* WINVER */
#ifndef NT_INCLUDED
#include <winnt.h> #endif /* NT_INCLUDED */
#ifndef WIN_INTERNAL
#pragma region Application Family or OneCore Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion
#ifdef WINABLE
#pragma region Desktop Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
DECLARE_HANDLE (HEVENT);
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#pragma endregion
#endif #endif
#pragma region Application Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
#if !defined(_MAC) || !defined(GDI_INTERNAL)
#ifdef STRICT
#else
DECLARE_HANDLE(HGDIOBJ); #endif #endif
#if !defined(_MAC) || !defined(WIN_INTERNAL)
#if !defined(_MAC) || !defined(GDI_INTERNAL)
#if(WINVER >= 0x0400)
#if !defined(_MAC) || !defined(GDI_INTERNAL)
#if !defined(_MAC) || !defined(GDI_INTERNAL)
#if !defined(_MAC) || !defined(WIN_INTERNAL)
#if !defined(_MAC) || !defined(GDI_INTERNAL)
#if(WINVER >= 0x0400)
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion
#if(WINVER >= 0x0500)
#ifndef _MAC
#pragma region Application Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion
#endif
#pragma region Desktop Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#pragma endregion
#endif /* WINVER >= 0x0500 */
#pragma region Application Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
#ifndef _MAC
typedef
HICON
HCURSOR
;
/* HICONs & HCURSORs are polymorphic */
#else
DECLARE_HANDLE(HCURSOR); /* HICONs & HCURSORs are not polymorphic */ #endif
typedef
DWORD
COLORREF
;
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion #pragma region Desktop Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
typedef
DWORD
*
LPCOLORREF
;
#define HFILE_ERROR ((HFILE)-1)
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
#pragma endregion #pragma region Application Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
typedef
struct
tagRECT
{
LONG
left
;
LONG
top
;
LONG
right
;
LONG
bottom
;
typedef
struct
_RECTL
/* rcl */
{
LONG
left
;
LONG
top
;
LONG
right
;
LONG
bottom
; }
RECTL
, *
PRECTL
, *
LPRECTL
;
typedef
struct
tagPOINT
{
LONG
x
;
LONG
y
;
typedef
struct
_POINTL
/* ptl */
{
LONG
x
;
LONG
y
; }
POINTL
, *
PPOINTL
;
typedef
struct
tagSIZE
{
LONG
cx
;
LONG
cy
; }
SIZE
, *
PSIZE
, *
LPSIZE
;
typedef
SIZE
SIZEL
;
typedef
SIZE
*
PSIZEL
, *
LPSIZEL
;
typedef
struct
tagPOINTS
{
#ifndef _MAC
SHORT
x
;
SHORT
y
;
#else
SHORT y;
SHORT x; #endif
}
POINTS
, *
PPOINTS
, *
LPPOINTS
;
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
#pragma endregion
/* mode selections for the device mode function */
#define DM_UPDATE 1
#define DM_COPY 2
#define DM_PROMPT 4
#define DM_MODIFY 8
#define DM_IN_BUFFER DM_MODIFY
#define DM_IN_PROMPT DM_PROMPT
#define DM_OUT_BUFFER DM_COPY
#define DM_OUT_DEFAULT DM_UPDATE
/* device capabilities indices */
#define DC_FIELDS 1
#define DC_PAPERS 2
#define DC_PAPERSIZE 3
#define DC_MINEXTENT 4
#define DC_MAXEXTENT 5
#define DC_BINS 6
#define DC_DUPLEX 7
#define DC_SIZE 8
#define DC_EXTRA 9
#define DC_VERSION 10
#define DC_DRIVER 11
#define DC_BINNAMES 12
#define DC_ENUMRESOLUTIONS 13
#define DC_FILEDEPENDENCIES 14
#define DC_TRUETYPE 15
#define DC_PAPERNAMES 16
#define DC_ORIENTATION 17
#define DC_COPIES 18
#ifdef __cplusplus
}
#endif
#pragma region Desktop Family
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#define _DPI_AWARENESS_CONTEXTS_
typedef
enum
DPI_AWARENESS
{
DPI_AWARENESS_INVALID
= -
1
,
DPI_AWARENESS_UNAWARE
=
0
,
DPI_AWARENESS_SYSTEM_AWARE
=
1
,
DPI_AWARENESS_PER_MONITOR_AWARE
=
2
}
DPI_AWARENESS
;
#define DPI_AWARENESS_CONTEXT_UNAWARE ((DPI_AWARENESS_CONTEXT)-1)
#define DPI_AWARENESS_CONTEXT_SYSTEM_AWARE ((DPI_AWARENESS_CONTEXT)-2)
#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE ((DPI_AWARENESS_CONTEXT)-3)
#define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((DPI_AWARENESS_CONTEXT)-4)
#define DPI_AWARENESS_CONTEXT_UNAWARE_GDISCALED ((DPI_AWARENESS_CONTEXT)-5)
typedef
enum
DPI_HOSTING_BEHAVIOR
{
DPI_HOSTING_BEHAVIOR_INVALID
= -
1
,
DPI_HOSTING_BEHAVIOR_DEFAULT
=
0
,
DPI_HOSTING_BEHAVIOR_MIXED
=
1
}
DPI_HOSTING_BEHAVIOR
;
#endif
#endif /* _WINDEF_ */