Use Slim Reader/Writer lock to replace CRITICAL_SECTION (better performance).
[gdipp.git] / gdipp_server / rpc_server.h
blob7c61925e00b19bc1031f62070e47d4f9271f3d03
1 #pragma once
3 #include "gdipp_config/render_config_static.h"
5 namespace gdipp
8 class renderer;
10 // actual session handle structure
11 struct rpc_session
13 unsigned short bits_per_pixel;
14 HDC font_holder;
15 void *font_id;
17 LOGFONT is not directly mapped to a font
18 instead, it is just a hint of how to create a font
19 font links may affect the mapping result
20 therefore, LOGFONT is part of session information
22 LOGFONTW log_font;
23 BYTE *outline_metrics_buf;
24 unsigned long outline_metrics_size;
25 const render_config_static *render_config;
26 FT_Render_Mode render_mode;
27 uint128_t render_trait;
28 renderer *renderer;
31 DWORD WINAPI start_gdipp_rpc_server(LPVOID lpParameter);
32 bool stop_gdipp_rpc_server();