int TwGetCurrentWindow()
Returns the current window context identifier previously set by TwSetCurrentWindow.
Current window context identifier. 0 denotes the default context created by TwInit at initialization.
TwSetCurrentWindow, TwWindowExists