Message81093
| Author |
loewis |
| Recipients |
amaury.forgeotdarc, kristjan.jonsson, loewis, mhammond, ocean-city |
| Date |
2009年02月03日.19:52:16 |
| SpamBayes Score |
3.341305e-08 |
| Marked as misclassified |
No |
| Message-id |
<1233690741.15.0.914400920732.issue4804@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
As for checking CRT handles: it seems that __pioinfo is exported from
msvcr90.dll. So we could check whether osfile has the FOPEN flag set,
and we could check whether fh >= 0. Unfortunately, there seems to be no
way to check for _nhandle. However, that might not be necessary: IIUC,
we just need to check whether M=fh>>IOINFO_L2E is smaller than
IOINFO_ARRAYS and __pioinfo[M] is not null. |
|