winapi.hpp File Reference

Windows API definitions that may not be visible in older Microsoft SDKs. More...

Classes

struct  _TOUCHINPUT
 

Macros

#define TWF_FINETOUCH
 
#define TWF_WANTPALM
 
#define TABLET_CONFIG_NONE
 The input digitizer does not have touch capabilities. More...
 
#define NID_INTEGRATED_TOUCH
 An integrated touch digitizer is used for input. More...
 
#define NID_EXTERNAL_TOUCH
 An external touch digitizer is used for input. More...
 
#define NID_INTEGRATED_PEN
 An integrated pen digitizer is used for input. More...
 
#define NID_EXTERNAL_PEN
 An external pen digitizer is used for input. More...
 
#define NID_MULTI_INPUT
 An input digitizer with support for multiple inputs is used for input. More...
 
#define NID_READY
 The input digitizer is ready for input. More...
 
#define TOUCHEVENTF_MOVE
 Movement has occurred. More...
 
#define TOUCHEVENTF_DOWN
 The corresponding touch point was established through a new contact. More...
 
#define TOUCHEVENTF_UP
 A touch point was removed. More...
 
#define TOUCHEVENTF_INRANGE
 A touch point is in range. More...
 
#define TOUCHEVENTF_PRIMARY
 Indicates that this TOUCHINPUT structure corresponds to a primary contact point. More...
 
#define TOUCHEVENTF_NOCOALESCE
 When received using GetTouchInputInfo, this input was not coalesced. More...
 
#define TOUCHEVENTF_PALM
 The touch event came from the user's palm. More...
 
#define TOUCHINPUTMASKF_CONTACTAREA
 cxContact and cyContact are valid. More...
 
#define TOUCHINPUTMASKF_EXTRAINFO
 dwExtraInfo is valid. More...
 
#define TOUCHINPUTMASKF_TIMEFROMSYSTEM
 The system time was set in the TOUCHINPUT structure. More...
 
#define SM_DIGITIZER
 
#define WM_TOUCH
 
#define WM_GESTURE
 
#define TABLET_DISABLE_PRESSANDHOLD
 
#define TABLET_DISABLE_PENTAPFEEDBACK
 
#define TABLET_DISABLE_PENBARRELFEEDBACK
 
#define TABLET_DISABLE_TOUCHUIFORCEON
 
#define TABLET_DISABLE_TOUCHUIFORCEOFF
 
#define TABLET_DISABLE_TOUCHSWITCH
 
#define TABLET_DISABLE_FLICKS
 
#define TABLET_ENABLE_FLICKSONCONTEXT
 
#define TABLET_ENABLE_FLICKLEARNINGMODE
 
#define TABLET_DISABLE_SMOOTHSCROLLING
 
#define TABLET_DISABLE_FLICKFALLBACKKEYS
 
#define TABLET_ENABLE_MULTITOUCHDATA
 
#define MICROSOFT_TABLETPENSERVICE_PROPERTY
 

Typedefs

typedef struct _TOUCHINPUT TOUCHINPUT
 
typedef struct _TOUCHINPUTPTOUCHINPUT
 

Enumerations

enum  KzsWindowsFunctionStyle { KZS_WINDOWS_FUNCTION_ANSI, KZS_WINDOWS_FUNCTION_UNICODE }
 

Functions

 DECLARE_HANDLE (HTOUCHINPUT)
 
 BOOL (WINAPI *kzsWinapiCloseTouchInputHandle)(__in HTOUCHINPUT hTouchInput)
 
 HGLRC (WINAPI *kzsWglCreateContext)(HDC hdc)
 
 kzInt (WINAPI *kzsWglChoosePixelFormat)(HDC hdc
 
const kzByte *WINAPI * kzsWin32GlGetString (kzUint name)
 
 PROC (WINAPI *kzsWglGetProcAddress)(LPCSTR name)
 
kzBool kzsWindowsLoadFunctions (HMODULE *out_module)
 Get the addresses of all necessary functions not visible in the basic WINAPI. More...
 
kzBool kzsWindowsUnloadFunctions (HMODULE module)
 Unload the specified module (hencefrom functions were loaded). More...
 

Variables

__in UINT cInputs
 
__in UINT __out PTOUCHINPUT pInputs
 
__in UINT __out PTOUCHINPUT __in kzInt cbSize
 
__in ULONG ulFlags
 
HGLRC hglrc
 
const PIXELFORMATDESCRIPTOR * ppfd
 
kzInt iPixelFormat
 
const kzIntpiAttribIList
 
const kzInt const FLOAT * pfAttribFList
 
const kzInt const FLOAT UINT nMaxFormats
 
const kzInt const FLOAT UINT kzIntpiFormats
 
const kzInt const FLOAT UINT kzInt UINT * nNumFormats
 

Detailed Description

Windows API definitions that may not be visible in older Microsoft SDKs.

The contents of this file are taken from MSDN.

Copyright 2008-2017 by Rightware. All rights reserved.

Macro Definition Documentation

#define TWF_FINETOUCH
#define TWF_WANTPALM
#define TABLET_CONFIG_NONE

The input digitizer does not have touch capabilities.

#define NID_INTEGRATED_TOUCH

An integrated touch digitizer is used for input.

#define NID_EXTERNAL_TOUCH

An external touch digitizer is used for input.

#define NID_INTEGRATED_PEN

An integrated pen digitizer is used for input.

#define NID_EXTERNAL_PEN

An external pen digitizer is used for input.

#define NID_MULTI_INPUT

An input digitizer with support for multiple inputs is used for input.

#define NID_READY

The input digitizer is ready for input.

If this value is unset, it may mean that the tablet service is stopped, the digitizer is not supported, or digitizer drivers have not been installed.

#define TOUCHEVENTF_MOVE

Movement has occurred.

Cannot be combined with TOUCHEVENTF_DOWN.

#define TOUCHEVENTF_DOWN

The corresponding touch point was established through a new contact.

Cannot be combined with TOUCHEVENTF_MOVE or TOUCHEVENTF_UP.

#define TOUCHEVENTF_UP

A touch point was removed.

#define TOUCHEVENTF_INRANGE

A touch point is in range.

This flag is used to enable touch hover support on compatible hardware. Applications that do not want support for hover can ignore this flag.

#define TOUCHEVENTF_PRIMARY

Indicates that this TOUCHINPUT structure corresponds to a primary contact point.

See the following text for more information on primary touch points.

#define TOUCHEVENTF_NOCOALESCE

When received using GetTouchInputInfo, this input was not coalesced.

#define TOUCHEVENTF_PALM

The touch event came from the user's palm.

#define TOUCHINPUTMASKF_CONTACTAREA

cxContact and cyContact are valid.

See the following text for more information on primary touch points.

#define TOUCHINPUTMASKF_EXTRAINFO

dwExtraInfo is valid.

#define TOUCHINPUTMASKF_TIMEFROMSYSTEM

The system time was set in the TOUCHINPUT structure.

#define SM_DIGITIZER
#define WM_TOUCH
#define WM_GESTURE
#define TABLET_DISABLE_PRESSANDHOLD
#define TABLET_DISABLE_PENTAPFEEDBACK
#define TABLET_DISABLE_PENBARRELFEEDBACK
#define TABLET_DISABLE_TOUCHUIFORCEON
#define TABLET_DISABLE_TOUCHUIFORCEOFF
#define TABLET_DISABLE_TOUCHSWITCH
#define TABLET_DISABLE_FLICKS
#define TABLET_ENABLE_FLICKSONCONTEXT
#define TABLET_ENABLE_FLICKLEARNINGMODE
#define TABLET_DISABLE_SMOOTHSCROLLING
#define TABLET_DISABLE_FLICKFALLBACKKEYS
#define TABLET_ENABLE_MULTITOUCHDATA
#define MICROSOFT_TABLETPENSERVICE_PROPERTY

Typedef Documentation

typedef struct _TOUCHINPUT TOUCHINPUT
typedef struct _TOUCHINPUT * PTOUCHINPUT

Enumeration Type Documentation

Enumerator
KZS_WINDOWS_FUNCTION_ANSI 
KZS_WINDOWS_FUNCTION_UNICODE 

Function Documentation

DECLARE_HANDLE ( HTOUCHINPUT  )
BOOL ( WINAPI *  kzsWinapiCloseTouchInputHandle)
HGLRC ( WINAPI *  kzsWglCreateContext)
kzInt ( WINAPI *  kzsWglChoosePixelFormat)
const kzByte* WINAPI* kzsWin32GlGetString ( kzUint  name)
PROC ( WINAPI *  kzsWglGetProcAddress)
kzBool kzsWindowsLoadFunctions ( HMODULE *  out_module)

Get the addresses of all necessary functions not visible in the basic WINAPI.

kzBool kzsWindowsUnloadFunctions ( HMODULE  module)

Unload the specified module (hencefrom functions were loaded).

Variable Documentation

__in UINT cInputs
__in UINT __out PTOUCHINPUT pInputs
__in UINT __out PTOUCHINPUT __in kzInt cbSize
__in ULONG ulFlags
HGLRC hglrc
kzInt const PIXELFORMATDESCRIPTOR * ppfd
kzInt iPixelFormat
const kzInt* piAttribIList
const kzInt const FLOAT* pfAttribFList
const kzInt const FLOAT UINT nMaxFormats
const kzInt const FLOAT UINT kzInt* piFormats
const kzInt const FLOAT UINT kzInt UINT* nNumFormats