Changeset 1844 for trunk/src/kernel32/windllpe2lx.cpp
- Timestamp:
- Nov 26, 1999, 1:05:20 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/windllpe2lx.cpp
r1325 r1844 1 /* $Id: windllpe2lx.cpp,v 1. 3 1999-10-17 01:49:08 birdExp $ */1 /* $Id: windllpe2lx.cpp,v 1.4 1999-11-26 00:05:19 sandervl Exp $ */ 2 2 3 3 /* … … 168 168 169 169 /** 170 * Gets pointer to an exported procedure by procedure name.171 * @returns Address of exported procedure. 0UL if not found.172 * @param name Exported procedure name.173 * @status completely implemented.174 * @author Sander van Leeuwen175 * @remark176 */177 ULONG Win32Pe2LxDll::getApi(char *name)178 {179 APIRET rc;180 ULONG ulApiAddr;181 182 rc = DosQueryProcAddr(hinstance, 0, name, (PFN *)&ulApiAddr);183 return rc == NO_ERROR ? ulApiAddr : 0;184 }185 186 187 /**188 * Gets pointer to an exported procedure by ordinal.189 * @returns Pointer to an exported procedure. 0UL if not found.190 * @param ordinal Export ordinal number.191 * @status completely implemented.192 * @author Sander van Leeuwen193 * @remark FIXME:194 * This function should be implemented for both Exe and Dll images!195 * It could be done similar in both peldr image and pe2lx images by196 * accessing PE structures.197 */198 ULONG Win32Pe2LxDll::getApi(int ordinal)199 {200 APIRET rc;201 ULONG ulApiAddr;202 203 rc = DosQueryProcAddr(hinstance, ordinal, NULL, (PFN *)&ulApiAddr);204 205 return rc == NO_ERROR ? ulApiAddr : 0;206 }207 208 209 /**210 170 * Simple question: -Native LX dll? 211 171 * -No!
Note:
See TracChangeset
for help on using the changeset viewer.