GetCodeInfo

3.0

  void GetCodeInfo(lpProc, lpSegInfo)    
  FARPROC lpProc; /* function address or module handle */
  SEGINFO FAR* lpSegInfo; /* address of structure for segment information */

The GetCodeInfo function retrieves a pointer to a structure containing information about a code segment.

Parameters

lpProc

Specifies the procedure-instance address of the function (typically, returned by the MakeProcInstance function) in the segment for which information is to be retrieved, or it specifies a module handle (typically, returned by the GetModuleHandle function) and segment number.

lpSegInfo

Points to a SEGINFO structure that will be filled with information about the code segment. The SEGINFO structure has the following form:

typedef struct tagSEGINFO {
    UINT    offSegment;
    UINT    cbSegment;
    UINT    flags;
    UINT    cbAlloc;
    HGLOBAL h;
    UINT    alignShift;
    UINT    reserved[2];
} SEGINFO;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

Return Value

This function does not return a value.

See Also

GetModuleHandle, MakeProcInstance