如果是想从tilib中添加的话,可以使用Til2Idb(需要在tilib窗口中添加til, 也可以使用LoadTil加载tilib); 如果是从头文件中, 可以使用tilib.exe生成til, 然后加入数据库中, 也可以Parse C header file.
Til2Idb
** Copy information from type library to database
Copy structure, union, or enum definition from the type library
to the IDA database.
idx - the position of the new type in the list of
types (structures or enums)
-1 means at the end of the list
type_name - name of type to copy
returns: BADNODE-failed, otherwise the type id
(structure id or enum id)