Skip to content

Latest commit

 

History

History
84 lines (65 loc) · 2.75 KB

nf-imagehlp-getimageunusedheaderbytes.md

File metadata and controls

84 lines (65 loc) · 2.75 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:imagehlp.GetImageUnusedHeaderBytes
GetImageUnusedHeaderBytes function (imagehlp.h)
Retrieves the offset and size of the part of the PE header that is currently unused.
GetImageUnusedHeaderBytes
GetImageUnusedHeaderBytes function
_win32_getimageunusedheaderbytes
base.getimageunusedheaderbytes
imagehlp/GetImageUnusedHeaderBytes
base\getimageunusedheaderbytes.htm
Debug
4ad9c833-693b-4c19-b397-f97f166efadc
12/05/2018
GetImageUnusedHeaderBytes, GetImageUnusedHeaderBytes function, _win32_getimageunusedheaderbytes, base.getimageunusedheaderbytes, imagehlp/GetImageUnusedHeaderBytes
imagehlp.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Imagehlp.lib
Imagehlp.dll
Windows
19H1
GetImageUnusedHeaderBytes
imagehlp/GetImageUnusedHeaderBytes
c++
APIRef
kbSyntax
DllExport
Imagehlp.dll
GetImageUnusedHeaderBytes

GetImageUnusedHeaderBytes function

-description

Retrieves the offset and size of the part of the PE header that is currently unused.

-parameters

-param LoadedImage [in]

A pointer to a LOADED_IMAGE structure that is returned from a call to MapAndLoad or ImageLoad.

-param SizeUnusedHeaderBytes [out]

A pointer to a variable to receive the size, in bytes, of the part of the image's header which is unused.

-returns

If the function succeeds, the return value is the offset from the base address of the first unused header byte.

If the function fails, the return value is zero. To retrieve extended error information, call GetLastError.

-remarks

All ImageHlp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.

-see-also

ImageHlp Functions

LOADED_IMAGE