PDFium Delphi Component Docs

PdfLibraryConfigurationSealed functie

Unit: PDFium
Rapporteert of de procesbrede native configuratie nog gewijzigd kan worden

Syntaxis

function PdfLibraryConfigurationSealed: Boolean;

Parameters

Geen

Retourwaarde

Boolean

Beschrijving

PdfLibraryConfigurationSealed geeft True terug zodra een LoadLibrary-aanroep is gestart, waarmee de native configuratie voor het proces wordt vastgelegd

Zolang False wordt teruggegeven, kan ConfigurePdfLibrary de opgeslagen instellingen nog vervangen; nadat True is teruggegeven, verhoogt ConfigurePdfLibrary EPdfError

De vlag wordt gezet aan het begin van de eerste native load en wordt niet gewist door UnloadLibrary, zodat de eerste load permanent de initialisatie-instellingen kiest

De controle draait onder dezelfde critical section als LoadLibrary en ConfigurePdfLibrary, dus het antwoord is race-vrij

Opmerkingen

Voorbeeld

if not PdfLibraryConfigurationSealed then
  ConfigurePdfLibrary(TPdfLibraryConfiguration.Hardened);

Zie ook

ConfigurePdfLibrary, GetPdfLibraryConfiguration, TPdf.LoadLibrary