ImageRemoveCertificate function (imagehlp.h)

Removes the specified certificate from the given file.


BOOL IMAGEAPI ImageRemoveCertificate(
  [in] HANDLE FileHandle,
  [in] DWORD  Index


[in] FileHandle

A handle to the image file to be modified. This handle must be opened for FILE_READ_DATA and FILE_WRITE_DATA access.

[in] Index

The index of the certificate to be removed.

Return value

If the function succeeds, the return value is TRUE.

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


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.


Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header imagehlp.h
Library Imagehlp.lib
DLL Imagehlp.dll

See also


ImageHlp Functions