Lines Matching defs:hFile
98 static long PopFileLength (int hFile)
100 long lCurrentPos = _llseek (hFile, 0L, 1) ;
101 long lFileLength = _llseek (hFile, 0L, 2) ;
103 _llseek (hFile, lCurrentPos, 0) ;
112 int hFile ;
115 if (-1 == (hFile = _lopen (lpstrFileName, OF_READ | OF_SHARE_DENY_WRITE)))
118 if ((lLength = PopFileLength (hFile)) >= 32000)
120 _lclose (hFile) ;
126 _lclose (hFile) ;
131 _lread (hFile, lpstrBuffer, (WORD) lLength) ;
132 _lclose (hFile) ;
145 int hFile ;
149 if (-1 == (hFile = _lopen (lpstrFileName, OF_WRITE | OF_SHARE_EXCLUSIVE)))
150 if (-1 == (hFile = _lcreat (lpstrFileName, 0)))
157 if (wLength != _lwrite (hFile, lpstrBuffer, wLength))
159 _lclose (hFile) ;
163 _lclose (hFile) ;