API reference › Rendering & Viewer
rasSetWindowHandle
Store the cache's update/render background-thread
void __stdcall rasSetThreadPriority(IPGC CachePtr, TPDFThreadPriority UpdateThread, TPDFThreadPriority RenderThread);
void __stdcall rasSetWindowHandle(IPGC CachePtr, HWND hWnd);
procedure rasSetThreadPriority(CachePtr: IPGC; UpdateThread, RenderThread: TPDFThreadPriority); stdcall;
procedure rasSetWindowHandle(CachePtr: IPGC; hWnd: HWND); stdcall;
Purpose. Store the cache's update/render background-thread priorities, and the host window handle used for invalidation/repaint signaling.
Description. Both are plain field stores (UpdPriority/ RndPriority; WndHandle). This chapter did not trace whether the stored thread priorities are ever actually applied to a real OS thread (vs. remaining descriptive cache state alongside the many other "retained but not independently verified as consumed" fields documented across this SDK) — treat as confirmed-stored, not confirmed-effective, pending a deeper trace of the tile-render worker (Rendering, Painting, and the Tile Pipeline).
Parameters.
| Parameter | Description |
|---|---|
CachePtr | Target page cache. |
UpdateThread, RenderThread | Stored priority ordinals. |
hWnd | Stored window handle. |
Return value. None.
C# (P/Invoke)
public static extern void rasSetWindowHandle(IntPtr CachePtr, UIntPtr hWnd);
Rasterizer/Rendering
rasSetWindowHandle
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.