Partager via


GetForegroundInfo (Compact 2013)

3/28/2014

This function retrieves information about the current foreground thread.

Syntax

BOOL WINAPI GetForegroundInfo(
  GET_FOREGROUND_INFO* pgfi
);

Parameters

  • pgfi
    [out] Pointer to the GET_FOREGROUND_INFO structure that receives information about the current foreground thread.

Return Value

Returns TRUE if successful and FALSE otherwise.

Remarks

This function is linked during the build process.

GetForegroundInfo is used by other more specialized functions such as GetForegroundKeyboardTarget, GetForegroundKeyboardLayoutHandle, and ImmGetConversionStatusForeground. Use the more specialized functions whenever possible.

Requirements

Header

pwinuser.h

See Also

Reference

Keyboard Functions
GET_FOREGROUND_INFO
GetForegroundKeyboardTarget
GetForegroundKeyboardLayoutHandle

Other Resources

ImmGetConversionStatusForeground