Hi
I'm testing something where I need access to these "WinAPI" FindFirstFileW , FindNextFileNameW, FindFirstFileW and some other? can they be added myself and if so how? And the structure WIN32_FIND_DATAW(which I presume is identical to WIN32_FIND_DATA, except for use of unicode chars for filenames.
WIN32_FIND_DATAW, FindFirstFileW and so on
Re: WIN32_FIND_DATAW, FindFirstFileW and so on
If you compile as unicode, PB will automaticly use the "W" Api versions.
Code: Select all
Define hSearch, WinFind.WIN32_FIND_DATA
hSearch = FindFirstFile_("*", @WinFind)
If hSearch <> #INVALID_HANDLE_VALUE
Repeat
Debug PeekS(@WinFind\cFileName[0])
Until FindNextFile_(hSearch, @WinFind) = #False
FindClose_(hSearch)
EndIf
Re: WIN32_FIND_DATAW, FindFirstFileW and so on
Ah, oki.. Thanks for that info.