Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#ifndef _EXPORTS_H_
#define _EXPORTS_H_
typedef struct _LOADED_IMAGE { PSTR ModuleName; HANDLE hFile; PUCHAR MappedAddress; PIMAGE_NT_HEADERS32 FileHeader; PIMAGE_SECTION_HEADER LastRvaSection; ULONG NumberOfSections; PIMAGE_SECTION_HEADER Sections; ULONG Characteristics; BOOLEAN fSystemImage; BOOLEAN fDOSImage; LIST_ENTRY Links; ULONG SizeOfImage; } LOADED_IMAGE, *PLOADED_IMAGE;
typedef struct _EXPORT_ENUM { /*user area - BEGIN*/ PCSTR ExportFunction; DWORD ExportFunctionOrd; /*user area - END*/
PLOADED_IMAGE Image; PIMAGE_EXPORT_DIRECTORY ImageDescriptor; PDWORD ExportNamesAddr; PUSHORT ExportOrdAddr; DWORD CurrExportNr; } EXPORT_ENUM, *PEXPORT_ENUM;
BOOL LoadModule(PCSTR ModuleName, PLOADED_IMAGE ModuleImage); BOOL UnloadModule(PLOADED_IMAGE ModuleImage); BOOL EnumFirstExport(PLOADED_IMAGE ModuleImage, PEXPORT_ENUM ModuleExports); BOOL EnumNextExport(PEXPORT_ENUM ModuleExports);
#endif //_EXPORTS_H_
|