Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Sets the cached signing level.
Syntax
BOOL SetCachedSigningLevel(
[in] PHANDLE SourceFiles,
[in] ULONG SourceFileCount,
[in] ULONG Flags,
[in, optional] HANDLE TargetFile
);
Parameters
[in] SourceFiles
Pointer to a set of source file handles.
[in] SourceFileCount
The source file count.
[in] Flags
The flags set for 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 should be validated.
[in, optional] TargetFile
The target file.
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 |