Using Win32 functions in Visual FoxPro Image Gallery
Window Station and Desktop
..msdn
CloseDesktop
CreateDesktop
GetThreadDesktop
OpenDesktop
OpenInputDesktop
SetThreadDesktop
SwitchDesktop
Code examples:
How to prevent users from accessing the Windows Desktop and from switching to other applications
Obtaining a handle to the desktop associated with the calling thread
GetThreadDesktop
..msdn    Add comment     W32 Constants      Translate this page
The GetThreadDesktop function retrieves a handle to the desktop associated with a specified thread.
Code examples:
How to prevent users from accessing the Windows Desktop and from switching to other applications
Obtaining a handle to the desktop associated with the calling thread
Declaration:
HDESK GetThreadDesktop(
  DWORD dwThreadId   // thread identifier
);
FoxPro declaration:
DECLARE INTEGER GetThreadDesktop IN user32;
    INTEGER dwThreadId
Parameters:
dwThreadId
[in] Handle to the thread for which to return the desktop handle. The GetCurrentThreadId and CreateProcess functions return thread identifiers.
Return value:
If the function succeeds, the return value is a handle to the desktop associated with the specified thread.
Usage:
LOCAL nThreadId, hDesktop

nThreadId = GetCurrentThreadId()
hDesktop = GetThreadDesktop(m.nThreadId)
My comment:
Windows 95/98/Me: The system does not support multiple desktops, so GetThreadDesktop always returns the same value.
Word Index links for the GetThreadDesktop :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-01-02 18:20:57
Modified: 2008-01-05 11:29:39
Visited in last 7 days: 28
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.91.171.137)
7 sec.Function: 'closesocket'
14 sec.Function: 'DragAcceptFiles'
21 sec.Function: 'SwitchToThisWindow'
28 sec.Function: 'GetObjectType'
35 sec.Function: 'InternetConnect'
43 sec.Function: 'RegSetValueEx'
51 sec.
Function group: 'Remote Procedure Call (RPC)'
1.02 min.Function: 'DrawCaption'
1.13 min.
Function group: 'GDI+ ImageAttributes'
1.28 min.Function: 'GetRawInputDeviceList'
Google
Advertise here!