I am trying to override this C structure in Lua using the 0.50 module, but I have two char arrays at the end. Both szLibraryPath, and are szLibraryNameinitially defined as
char szLibraryPath[MAX_PATH]in C. Can this be done with aliens?
LIBRARY_ITEM_DATA = alien.defstruct{
{ "hFile", "long" },
{ "BaseOfDll", "long" },
{ "hFileMapping", "long" },
{ "hFileMappingView", "long" },
{ "szLibraryPath", "byte" }, -- fix to MAX_PATH
{ "szLibraryName", "byte" } -- fix to MAX_PATH
}
user239147
source
share