Freigeben über


IDWriteFontFile::GetReferenceKey Method

Obtains the pointer to the reference key of a font file. The returned pointer is valid until the font file object is released.

Syntax

virtual HRESULT GetReferenceKey(
  [out]  const void ** fontFileReferenceKey,
  [out]  UINT32 * fontFileReferenceKeySize
) = 0;

Parameter

  • fontFileReferenceKey [out]
    When this method returns, contains an address of a pointer to the font file reference key. Note that the pointer value is only valid until the font file object it is obtained from is released. This parameter is passed uninitialized.

  • fontFileReferenceKeySize [out]
    When this method returns, contains the size of the font file reference key in bytes. This parameter is passed uninitialized.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Anforderungen

Mindestens unterstützter Client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista

Mindestens unterstützter Server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008

Header

Dwrite.h

Bibliothek

Dwrite.lib

DLL

Dwrite.dll

Siehe auch

IDWriteFontFile