This isn't strictly an answer to the question posted, but I think answers what you are actually trying to achieve:
If you need to view FileGDBs in QGIS on Windows XP / 7 you can do it using the standalone installer for 1.7.4 (Not the master build and using GDAL 1.8, but it works for me!)
The installer for QGIS won't install the ogr driver DLL, but you should be able to nab this from your master install here: *INSTALL DIR\bin\gdalplugins\1.8\ogr_FileGDB.dll*. The ESRI fileGDB API DLL (FileGDBAPI.dll) can be obtained from the ESRI fileGDB API download, and needs to be placed in the INSTALL DIR\bin directory.
QGIS 1.7.4 doesn't seem to be aware of fileGDB support (I guess this needs an update to the QGIS interface) but like a number of other 'unlisted in QGIS but supported by GDAL/OGR' formats, fileGDBs can be opened by choosing Add vector layer, selecting the Directory source type and then choosing the file geodatabase (remember that the ESRI API driver only reads v10 fileGDBs).
The resulting layer in Quantum is read-only, but there appears to be a bug in QGIS 1.7.4 that results in the Edit toggle button in the Fields tab of the layer properties not being disabled for some read only datasets. Toggling this on read only formats is normally a sure fire way to crash QGIS, but given that OGR supports writing to fileGDBs you do seem to be able to edit them through QGIS, though this obviously isn't properly implemented at the moment!