Article # 102, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
How to get the GeodeHandle of a driver
Q. I want to get the Geode Handle of a driver (from C) so that I can use that handle as an argument to GeodeInfoDriver (to get the strategy routine). The techdocs say that I could use GeodeUseDriver, but "it is much easier to automatically load the drivers you need by indicating them in your geode parameters file." Well, if I put the driver in my .gp file, how can I get the handle of it? Or really, how do I use a driver that I put in my .gp file? A. If you know the geode is already loaded, as you do in this case, and you know the permanent name of the geode, (i.e., "serial", "mouse"), you can do: driverHandle = GeodeFind( "mouse ", GEODE_NAME_SIZE, GA_DRIVER, 0 ); If the driver you're looking for is of one of the types listed in GeodeDefaultDriverType, you can use GeodeGetDefaultDriver.