#ifndef _COMMONUTIL_H
#define _COMMONUTIL_H

FORCEINLINE
HFONT 
CommonDuplicateFont(
    _In_ HFONT Font
    )
{
    LOGFONT logFont;

    if (GetObject(Font, sizeof(LOGFONT), &logFont))
        return CreateFontIndirect(&logFont);
    else
        return NULL;
}

#endif