× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Manuel Cerda wrote:
All,
I am having some difficulties with retrieving the list of exported procedures with api QBNLMODI.
I want to use the format MODL0100
Here is what the documentation says :
[...]
**Note:* Do not use the generic header entry size for this format. Use the Size of this entry field returned in this format for the size of each entry.*
[...]
This format is different than the one I use usually as I cannot retrieve the header first.
I cannot use QUSRTVUS to retrieve the list.

Why can't you use QUSRTVUS? As far as I could tell from a (somewhat quick) look at the documentation, the MODL0100 format returns a list of exports in a user space, so I'd expect QUSRTVUS would be the way to go.

The way I read that documentation, you _do_ need to retrieve the generic header, just don't use the "size of each entry" field from the header. You still need to know the offset to the list data, which is provided in the generic header.

As for processing this list data, it seems that you need to read the entry header defined by format MODL0100, get the offset of the exported symbol name, process the exported symbol name, then move to (exported symbol name offset + length of exported symbol name) to read the next entry header.

I haven't personally used this API, I wasn't able to find an example at think400.dk which is what I usually do when I'm unclear about the usage of an API. I hope my interpretation of the documentation is useful even though it is untested.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.