GetCachedSigningLevel function (securitybaseapi.h)

Retrieves the cached signing level.

Syntax

BOOL GetCachedSigningLevel(
  [in]                HANDLE File,
  [Out]               PULONG Flags,
  [Out]               PULONG SigningLevel,
  [Out, optional]     PUCHAR Thumbprint,
  [In, Out, optional] PULONG ThumbprintSize,
  [Out, optional]     PULONG ThumbprintAlgorithm
);

Parameters

[in] File

Handle to a file.

[Out] Flags

Pointer to the flags set on the file. The following Flags are supported:

Flag Value
SIGNING_LEVEL_FILE_CACHE_FLAG_NOT_VALIDATED 0x01
SIGNING_LEVEL_FILE_CACHE_FLAG_VALIDATE_ONLY 0x04

Using these flags together (SIGNING_LEVEL_FILE_CACHE_FLAG_NOT_VALIDATED | SIGNING_LEVEL_FILE_CACHE_FLAG_VALIDATE_ONLY) indicates that the file was validated.

[Out] SigningLevel

Pointer to the signing level.

[Out, optional] Thumbprint

Pointer to the thumbprint.

[In, Out, optional] ThumbprintSize

Pointer to the thumbprint size.

[Out, optional] ThumbprintAlgorithm

Pointer to the thumbprint algorithm.

Return value

If the function succeeds, it returns TRUE.

If the function fails, it returns FALSE. To get extended error information, call GetLastError. GetLastError may return one of the error codes defined in WinError.h.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header securitybaseapi.h (include Windows.h)
Library kernel32.lib
DLL kernel32.dll

See also

SetCachedSigningLevel