internal static bool ModAddPublic2(ModPtr pmod, string szPublic, ushort isect, int off, CV_PUBSYMFLAGS_e cvpsf = 0) { szPublic += '\0'; fixed(byte *mb = Encoding.UTF8.GetBytes(szPublic)) return(ModAddPublic2(pmod, mb, isect, off, cvpsf)); }
internal static extern bool ModClose(ModPtr ppdb);
internal static extern bool ModAddPublic2(ModPtr pmod, byte *szPublic, ushort isect, int off, CV_PUBSYMFLAGS_e cvpsf = 0);
internal static extern bool DBIOpenModW(DbiPtr pdbi, char *szModule, char *szFile, out ModPtr ppmod);
internal static bool DBIOpenModW(DbiPtr pdbi, string szModule, string szFile, out ModPtr ppmod) { szFile += '\0'; szModule += '\0'; fixed(char *fp = szFile) fixed(char *mp = szModule) return(DBIOpenModW(pdbi, mp, fp, out ppmod)); }