34 #define SIP(String, Integer) { (String), (PVOID)(Integer) }
51 _In_ HWND ParentWindowHandle,
75 ULONG sessionId = (ULONG)lParam;
77 BOOLEAN haveWinStationInfo;
79 BOOLEAN haveClientInfo;
83 SetProp(hwndDlg, L
"SessionId", (HANDLE)sessionId);
108 if (haveWinStationInfo)
116 if (haveWinStationInfo)
119 PhpConnectStatePairs,
120 sizeof(PhpConnectStatePairs),
125 SetDlgItemText(hwndDlg,
IDC_STATE, stateString);
129 if (haveWinStationInfo && winStationInfo.
LogonTime.QuadPart != 0)
131 SYSTEMTIME systemTime;
140 if (haveWinStationInfo && winStationInfo.
ConnectTime.QuadPart != 0)
142 SYSTEMTIME systemTime;
151 if (haveWinStationInfo && winStationInfo.
DisconnectTime.QuadPart != 0)
153 SYSTEMTIME systemTime;
162 if (haveWinStationInfo && winStationInfo.
LastInputTime.QuadPart != 0)
164 SYSTEMTIME systemTime;
173 if (haveClientInfo && clientInfo.
ClientName[0] != 0)
175 WCHAR addressString[65];
181 struct in6_addr address;
190 out = (PUSHORT)address.u.Word;
192 for (i = 8; i != 0; i--)
194 *out = _byteswap_ushort(*in);
214 SendMessage(hwndDlg, WM_NEXTDLGCTL, (WPARAM)GetDlgItem(hwndDlg, IDOK),
TRUE);
219 RemoveProp(hwndDlg, L
"SessionId");
224 switch (LOWORD(wParam))
228 EndDialog(hwndDlg, IDOK);