/* このソースは MFC Programmer's SourceBook (http://www.codeguru.com/)を参考にしました */\r
\r
#define STRICT\r
+// IPv6対応\r
+#include <winsock2.h>\r
#include <windows.h>\r
#include <stdio.h>\r
#include <stdlib.h>\r
int Ret;\r
\r
Ret = -1;\r
- if((GetWindowLong(hWnd, GWL_STYLE) & LVS_TYPEMASK) == LVS_REPORT )\r
+ // 64ビット対応\r
+// if((GetWindowLong(hWnd, GWL_STYLE) & LVS_TYPEMASK) == LVS_REPORT )\r
+ if((GetWindowLongPtr(hWnd, GWL_STYLE) & LVS_TYPEMASK) == LVS_REPORT )\r
{\r
row = ListView_GetTopIndex(hWnd);\r
bottom = row + ListView_GetCountPerPage(hWnd);\r