Skip to content

Swift definitions for structures, enumerations and functions defined in [MS-OVBA]

Notifications You must be signed in to change notification settings

hughbe/VBAFileReader

Repository files navigation

VBAFileReader

Swift definitions for structures, enumerations and functions defined in MS-OVBA

Example Usage

Add the following line to your project's SwiftPM dependencies:

.package(url: "https://github.com/hughbe/VBAReader", from: "1.0.0"),
import CompoundFileReader
import MsgReader

let data = Data(contentsOfFile: "<path-to-file>.doc")!
let parentFile = try CompoundFile(data: data)
var rootStorage = parentFile.rootStorage
let file = try VBAFile(storage: rootStorage.children["Macros"]!)
for module in file.vbaStorage.modules {
    print(module.sourceCode)
}

About

Swift definitions for structures, enumerations and functions defined in [MS-OVBA]

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages