SetThreadDpiHostingBehavior function user32

DPI_HOSTING_BEHAVIOR SetThreadDpiHostingBehavior(
  1. DPI_HOSTING_BEHAVIOR value
)

Sets the thread's DPI_HOSTING_BEHAVIOR.

This behavior allows windows created in the thread to host child windows with a different DPI_AWARENESS_CONTEXT.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-setthreaddpihostingbehavior.

Implementation

@pragma('vm:prefer-inline')
DPI_HOSTING_BEHAVIOR SetThreadDpiHostingBehavior(DPI_HOSTING_BEHAVIOR value) =>
    .new(_SetThreadDpiHostingBehavior(value));