I need to use Memory-Mapped Files to implement some virtual file system in c.
I was included winbase.h for this case , but i have many errors from this library like:
Error 1 error C2061: syntax error : identifier 'PVOID' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 250 1 FileIO
Error 2 error C2059: syntax error : '}' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 251 1 FileIO
Error 3 error C2061: syntax error : identifier 'hEvent' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 253 1 FileIO
Error 4 error C2059: syntax error : ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 253 1 FileIO
Error 5 error C2059: syntax error : '}' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 254 1 FileIO
Error 6 error C2061: syntax error : identifier 'LPOVERLAPPED' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 258 1 FileIO
Error 7 error C2059: syntax error : '}' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 261 1 FileIO
Error 8 error C2061: syntax error : identifier 'LPVOID' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 265 1 FileIO
Error 9 error C2061: syntax error : identifier 'bInheritHandle' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 266 1 FileIO
Error 10 error C2059: syntax error : ';' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 266 1 FileIO
Error 11 error C2059: syntax error : '}' c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h 267 1 FileIO
Error 12 error C2016: C requires that a struct or union has at least one member c:
…
I was included intsafe.h before winbase.h. Is i need another libraries to be included to be able to use winbase.h in my c application?
Thanks for advice
Include windows.h instead of winbase.h.
winbase.h doesn’t include many of the typedef’s for things like PVOID.