Blender  V2.93
Macros | Typedefs | Enumerations | Functions
GHOST_SystemWin32.cpp File Reference
#include "GHOST_SystemWin32.h"
#include "GHOST_ContextD3D.h"
#include "GHOST_EventDragnDrop.h"
#include <commctrl.h>
#include <psapi.h>
#include <shellapi.h>
#include <shlobj.h>
#include <tlhelp32.h>
#include <windowsx.h>
#include "utf_winfunc.h"
#include "utfconv.h"
#include "GHOST_DisplayManagerWin32.h"
#include "GHOST_EventButton.h"
#include "GHOST_EventCursor.h"
#include "GHOST_EventKey.h"
#include "GHOST_EventWheel.h"
#include "GHOST_TimerManager.h"
#include "GHOST_TimerTask.h"
#include "GHOST_WindowManager.h"
#include "GHOST_WindowWin32.h"
#include "GHOST_ContextWGL.h"

Go to the source code of this file.

Macros

#define _WIN32_IE   0x0501 /* shipped before XP, so doesn't impose additional requirements */
 
#define VK_MINUS   0xBD
 
#define VK_SEMICOLON   0xBA
 
#define VK_PERIOD   0xBE
 
#define VK_COMMA   0xBC
 
#define VK_QUOTE   0xDE
 
#define VK_BACK_QUOTE   0xC0
 
#define VK_SLASH   0xBF
 
#define VK_BACK_SLASH   0xDC
 
#define VK_EQUALS   0xBB
 
#define VK_OPEN_BRACKET   0xDB
 
#define VK_CLOSE_BRACKET   0xDD
 
#define VK_GR_LESS   0xE2
 
#define VK_MEDIA_NEXT_TRACK   0xB0
 
#define VK_MEDIA_PREV_TRACK   0xB1
 
#define VK_MEDIA_STOP   0xB2
 
#define VK_MEDIA_PLAY_PAUSE   0xB3
 
#define WM_DPICHANGED   0x02E0
 
#define WM_POINTERENTER   0x0249
 
#define WM_POINTERDOWN   0x0246
 
#define WM_POINTERUPDATE   0x0245
 
#define WM_POINTERUP   0x0247
 
#define WM_POINTERLEAVE   0x024A
 
#define BROKEN_PEEK_TOUCHPAD
 
#define DEVICE_COUNT   1
 
#define USER_DEFAULT_SCREEN_DPI   96
 
#define DPI_ENUMS_DECLARED
 

Typedefs

typedef enum PROCESS_DPI_AWARENESS PROCESS_DPI_AWARENESS
 
typedef enum MONITOR_DPI_TYPE MONITOR_DPI_TYPE
 
typedef HRESULT(API * GHOST_WIN32_SetProcessDpiAwareness) (PROCESS_DPI_AWARENESS)
 
typedef BOOL(API * GHOST_WIN32_EnableNonClientDpiScaling) (HWND)
 

Enumerations

enum  PROCESS_DPI_AWARENESS { PROCESS_DPI_UNAWARE = 0 , PROCESS_SYSTEM_DPI_AWARE = 1 , PROCESS_PER_MONITOR_DPI_AWARE = 2 }
 
enum  MONITOR_DPI_TYPE { MDT_EFFECTIVE_DPI = 0 , MDT_ANGULAR_DPI = 1 , MDT_RAW_DPI = 2 , MDT_DEFAULT = MDT_EFFECTIVE_DPI }
 

Functions

static void initRawInput ()
 
static DWORD GetParentProcessID (void)
 
static bool getProcessName (int pid, char *buffer, int max_len)
 
static bool isStartedFromCommandPrompt ()
 

Macro Definition Documentation

◆ _WIN32_IE

#define _WIN32_IE   0x0501 /* shipped before XP, so doesn't impose additional requirements */

Definition at line 29 of file GHOST_SystemWin32.cpp.

◆ BROKEN_PEEK_TOUCHPAD

#define BROKEN_PEEK_TOUCHPAD

Definition at line 144 of file GHOST_SystemWin32.cpp.

◆ DEVICE_COUNT

#define DEVICE_COUNT   1

◆ DPI_ENUMS_DECLARED

#define DPI_ENUMS_DECLARED

Definition at line 192 of file GHOST_SystemWin32.cpp.

◆ USER_DEFAULT_SCREEN_DPI

#define USER_DEFAULT_SCREEN_DPI   96

Definition at line 190 of file GHOST_SystemWin32.cpp.

◆ VK_BACK_QUOTE

#define VK_BACK_QUOTE   0xC0

Definition at line 79 of file GHOST_SystemWin32.cpp.

◆ VK_BACK_SLASH

#define VK_BACK_SLASH   0xDC

Definition at line 85 of file GHOST_SystemWin32.cpp.

◆ VK_CLOSE_BRACKET

#define VK_CLOSE_BRACKET   0xDD

Definition at line 94 of file GHOST_SystemWin32.cpp.

◆ VK_COMMA

#define VK_COMMA   0xBC

Definition at line 73 of file GHOST_SystemWin32.cpp.

◆ VK_EQUALS

#define VK_EQUALS   0xBB

Definition at line 88 of file GHOST_SystemWin32.cpp.

◆ VK_GR_LESS

#define VK_GR_LESS   0xE2

Definition at line 97 of file GHOST_SystemWin32.cpp.

◆ VK_MEDIA_NEXT_TRACK

#define VK_MEDIA_NEXT_TRACK   0xB0

Definition at line 101 of file GHOST_SystemWin32.cpp.

◆ VK_MEDIA_PLAY_PAUSE

#define VK_MEDIA_PLAY_PAUSE   0xB3

Definition at line 110 of file GHOST_SystemWin32.cpp.

◆ VK_MEDIA_PREV_TRACK

#define VK_MEDIA_PREV_TRACK   0xB1

Definition at line 104 of file GHOST_SystemWin32.cpp.

◆ VK_MEDIA_STOP

#define VK_MEDIA_STOP   0xB2

Definition at line 107 of file GHOST_SystemWin32.cpp.

◆ VK_MINUS

#define VK_MINUS   0xBD

Definition at line 64 of file GHOST_SystemWin32.cpp.

◆ VK_OPEN_BRACKET

#define VK_OPEN_BRACKET   0xDB

Definition at line 91 of file GHOST_SystemWin32.cpp.

◆ VK_PERIOD

#define VK_PERIOD   0xBE

Definition at line 70 of file GHOST_SystemWin32.cpp.

◆ VK_QUOTE

#define VK_QUOTE   0xDE

Definition at line 76 of file GHOST_SystemWin32.cpp.

◆ VK_SEMICOLON

#define VK_SEMICOLON   0xBA

Definition at line 67 of file GHOST_SystemWin32.cpp.

◆ VK_SLASH

#define VK_SLASH   0xBF

Definition at line 82 of file GHOST_SystemWin32.cpp.

◆ WM_DPICHANGED

#define WM_DPICHANGED   0x02E0

Definition at line 115 of file GHOST_SystemWin32.cpp.

◆ WM_POINTERDOWN

#define WM_POINTERDOWN   0x0246

Definition at line 123 of file GHOST_SystemWin32.cpp.

◆ WM_POINTERENTER

#define WM_POINTERENTER   0x0249

Definition at line 120 of file GHOST_SystemWin32.cpp.

◆ WM_POINTERLEAVE

#define WM_POINTERLEAVE   0x024A

Definition at line 132 of file GHOST_SystemWin32.cpp.

◆ WM_POINTERUP

#define WM_POINTERUP   0x0247

Definition at line 129 of file GHOST_SystemWin32.cpp.

◆ WM_POINTERUPDATE

#define WM_POINTERUPDATE   0x0245

Definition at line 126 of file GHOST_SystemWin32.cpp.

Typedef Documentation

◆ GHOST_WIN32_EnableNonClientDpiScaling

typedef BOOL(API * GHOST_WIN32_EnableNonClientDpiScaling) (HWND)

Definition at line 195 of file GHOST_SystemWin32.cpp.

◆ GHOST_WIN32_SetProcessDpiAwareness

typedef HRESULT(API * GHOST_WIN32_SetProcessDpiAwareness) (PROCESS_DPI_AWARENESS)

Definition at line 194 of file GHOST_SystemWin32.cpp.

◆ MONITOR_DPI_TYPE

◆ PROCESS_DPI_AWARENESS

Enumeration Type Documentation

◆ MONITOR_DPI_TYPE

Enumerator
MDT_EFFECTIVE_DPI 
MDT_ANGULAR_DPI 
MDT_RAW_DPI 
MDT_DEFAULT 

Definition at line 183 of file GHOST_SystemWin32.cpp.

◆ PROCESS_DPI_AWARENESS

Enumerator
PROCESS_DPI_UNAWARE 
PROCESS_SYSTEM_DPI_AWARE 
PROCESS_PER_MONITOR_DPI_AWARE 

Definition at line 177 of file GHOST_SystemWin32.cpp.

Function Documentation

◆ GetParentProcessID()

static DWORD GetParentProcessID ( void  )
static

Definition at line 1967 of file GHOST_SystemWin32.cpp.

Referenced by isStartedFromCommandPrompt().

◆ getProcessName()

static bool getProcessName ( int  pid,
char *  buffer,
int  max_len 
)
static

Definition at line 1991 of file GHOST_SystemWin32.cpp.

References buffer, FALSE, and result.

Referenced by isStartedFromCommandPrompt().

◆ initRawInput()

static void initRawInput ( )
static

Definition at line 146 of file GHOST_SystemWin32.cpp.

References DEVICE_COUNT, blender::compositor::devices, and GHOST_PRINTF.

Referenced by GHOST_SystemWin32::init().

◆ isStartedFromCommandPrompt()

static bool isStartedFromCommandPrompt ( )
static

Definition at line 2003 of file GHOST_SystemWin32.cpp.

References GetParentProcessID(), getProcessName(), and NULL.

Referenced by GHOST_SystemWin32::toggleConsole().