I don't know if has any thing to do with what ever but, I know that MS has for some time now tried to
get people to stop using some old functions in the API.. One of them that I came across while porting some
32 bit code is the "OpenFIle" API which accepts a OFSTRUCT.
That function still works as it did long ago which was originally a windows 3.x function but, it slows!!!!!!!!!!!!!!!!!
down now, delay returns each time you call it...
So any use of this function needs to be replaced with CreateFile.
I found this while porting some serial port code which I was using this to scan ports, I also notice it has a slow down
in normal use, too.
There are a few obsolete IO functions MS has been trying to get coders to stop using and force them to upgrade the
code..
There are other IO obsolete functions they at are trying very hard to remove..
-hread, _hwrite, -lclose, _Icreate, _Iseek and those like it..
any old code that uses these will still work but if you use these functions in newer code, I have found an extreme
delay before they return..
So you may want to check your code and update it.