Bounty Ended with 50 reputation awarded by Dmitry Janushkevich
2 Spellchecking
source | link

thisThis works for me:

ea=here()
ti = idaapi.opinfo_t()
f=f = idc.GetFlags(ea)
if  idaapi.get_opinfo(ea, 0, f, ti):
   print ("tid=%08x - %s" % (ti.tid, idaapi.get_struc_name(ti.tid)))

soSo ti.tid then contains the strid.

this works for me:

ea=here()
ti = idaapi.opinfo_t()
f= idc.GetFlags(ea)
if  idaapi.get_opinfo(ea, 0, f, ti):
   print "tid=%08x - %s" % (ti.tid, idaapi.get_struc_name(ti.tid))

so ti.tid then contains the strid

This works for me:

ea=here()
ti = idaapi.opinfo_t()
f = idc.GetFlags(ea)
if idaapi.get_opinfo(ea, 0, f, ti):
   print ("tid=%08x - %s" % (ti.tid, idaapi.get_struc_name(ti.tid)))

So ti.tid then contains the strid.

1
source | link

this works for me:

ea=here()
ti = idaapi.opinfo_t()
f= idc.GetFlags(ea)
if  idaapi.get_opinfo(ea, 0, f, ti):
   print "tid=%08x - %s" % (ti.tid, idaapi.get_struc_name(ti.tid))

so ti.tid then contains the strid