OfficeIMO

API Reference

Class

Parser

Namespace OfficeIMO.Word.WordMacro

Minimal parser for extracting module names from a VBA project.

Inheritance

  • Object
  • Parser

Methods

GetModuleNames(System.IO.Stream stream) #

Reads module names from the provided VBA project stream.

Parameters

stream System.IO.Stream required
Stream containing vbaProject.bin.

Returns

List of module names.

ParseDirectory(System.Byte[] arg1) #

Parses directory entries from a byte buffer.

Parameters

arg1 System.Byte[] required
ReadChain(System.IO.Stream arg1, System.IO.BinaryReader arg2, System.Int32 arg3, System.Int32 arg4, System.Collections.Generic.List{System.Int32} arg5) #

Reads a chain of sectors from the compound file.

Parameters

arg1 System.IO.Stream required
arg2 System.IO.BinaryReader required
arg3 System.Int32 required
arg4 System.Int32 required
arg5 System.Collections.Generic.List{System.Int32} required
ReadFat(System.IO.Stream arg1, System.IO.BinaryReader arg2, System.Collections.Generic.List{System.Int32} arg3, System.Int32 arg4) #

Reads the File Allocation Table sectors.

Parameters

arg1 System.IO.Stream required
arg2 System.IO.BinaryReader required
arg3 System.Collections.Generic.List{System.Int32} required
arg4 System.Int32 required
RemoveModule(System.Byte[] data, System.String moduleName) #

Removes a module stream with the given name from the VBA project data.

Parameters

data System.Byte[] required
Binary VBA project.
moduleName System.String required
Module name to remove.

Returns

true when the module was removed.