Martin v. Löwis <mar...@v.loewis.de> added the comment: See, for example, the link you gave in msg115750. It has this sample code in it (listed in the "Examples" section):
FNFCIREAD(fnFileRead) { DWORD dwBytesRead = 0; UNREFERENCED_PARAMETER(pv); if( ReadFile((HANDLE)hf, memory, cb, &dwBytesRead, NULL) == FALSE ) { dwBytesRead = (DWORD)-1; *err = GetLastError(); } return dwBytesRead; } ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9784> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com