Export (0) Print
Expand All

ImageGetCertificateHeader function

Retrieves the header of the specified certificate, up to, but not including, the section offset array.

Syntax


BOOL ImageGetCertificateHeader(
  _In_     HANDLE FileHandle,
  _In_     DWORD CertificateIndex,
  _Inout_  LPWIN_CERTIFICATE CertificateHeader
);

Parameters

FileHandle [in]

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

CertificateIndex [in]

The index of the certificate whose header is to be returned.

CertificateHeader [in, out]

A pointer to the WIN_CERTIFICATE structure that receives the certificate header.

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.

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.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Imagehlp.h

Library

Imagehlp.lib

DLL

Imagehlp.dll

See also

ImageHlp Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft