If hget < 1 Then MsgBox "Íå óäàëîñü ïîëó÷èòü äîñòóï ê ôàéëó": ExitSub
GetFileSizeEx hget, nSize
If nSize < 1 Then MsgBox "Ôàéë íóëåâîãî ðàçìåðà, ÷å òàì èñêàòü òî": ExitSub
mAdress = GlobalAlloc(GMEM_FIXED, 64001)
If mAdress < 1 Then MsgBox "Íå óäàëîñü âûäåëèòü ïàìÿòü": ExitSub
str = mAdress
DoWhile pos < (nSize * 10000) + 64000
ar = SetFilePointer(hget, pos, 0, FILE_BEGIN)
If ar <> pos Then MsgBox "Íå íàéäåíà ïîçèöèÿ â ôàéëå": ExitSub
ar = ReadFile(hget, ByVal str, 64000, 0, 0)
If ar <> 1 Then MsgBox "Íå óäàëîñü ïðî÷èòàòü èç ôàéëà": ExitSub
iff = InStr(1, str, findString)
If iff > 0 Then Print (("Àäðåñ íàéäåí íà ïîçèöèè " & iff + pos)), vbExclamation: ExitDo