Using Win32 functions in Visual FoxPro Image Gallery
Window
..msdn
BringWindowToTop
CloseWindow
CreateWindow
CreateWindowEx
DestroyWindow
EndTask
FindWindow
FindWindowEx
GetAncestor
GetClientRect
GetDesktopWindow
GetForegroundWindow
GetGUIThreadInfo
GetParent
GetShellWindow
GetWindow
GetWindowInfo
GetWindowPlacement
GetWindowRect
GetWindowText
GetWindowTextLength
GetWindowThreadProcessId
InternalGetWindowText
IsChild
IsIconic
IsWindow
IsWindowVisible
IsZoomed
MoveWindow
RealGetWindowClass
SetForegroundWindow
SetLayeredWindowAttributes
SetParent
SetWindowPos
SetWindowText
ShowWindow
SwitchToThisWindow
Code examples:
Retrieveing information about the active window (even if it is not owned by the calling process)
GetGUIThreadInfo
..msdn    Add comment     W32 Constants      Translate this page
Retrieves information about the active window or a specified graphical user interface (GUI) thread.
Code examples:
Retrieveing information about the active window (even if it is not owned by the calling process)
Declaration:
BOOL GetGUIThreadInfo(
    DWORD idThread,
    LPGUITHREADINFO lpgui
);
FoxPro declaration:
DECLARE INTEGER GetGUIThreadInfo IN user32;
    INTEGER   idThread,;
    STRING  @ lpgui
Parameters:
idThread
[in] Identifies the thread for which information is to be retrieved.

lpgui
[out] Pointer to a GUITHREADINFO structure that receives information describing the thread.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
MSDN: This function succeeds even if the active window is not owned by the calling process. If the specified thread does not exist or have an input queue, the function will fail.

This function is useful for retrieving out-of-context information about a thread. The information retrieved is the same as if an application retrieved the information about itself.
Word Index links for the GetGUIThreadInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-01-18 10:57:15
Modified: 2003-01-18 10:59:34
Visited in last 7 days: 14
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.237.159)
15 sec.Function: 'DrawIcon'
31 sec.Function: 'FindFirstVolume'
45 sec.Function: 'AllocConsole'
57 sec.Function: 'GetMenuContextHelpId'
1.13 min.Function: 'CreatePipe'
1.33 min.Function: 'GdipCreateTexture'
1.53 min.Function: 'BitBlt'
1.7 min.Function: 'CryptEnumProviders'
1.9 min.Function: 'GetBestInterface'
2.1 min.Function: 'CopyFileTransacted'
Google
Advertise here!