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: 23
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (107.22.25.119)
3 sec.Example: 'Drawing standard Windows icons'
7 sec.Function: 'GetFileTime'
6.55 min.Example: 'How to upload a local file to FTP server using FtpPutFile'
6.62 min.Function: 'WSAEventSelect'
Function group: 'Windows Sockets 2 (Winsock)'
1.82 hrs.Example: 'Using Common Controls: the Header Control'
1.83 hrs.Example: 'Reading and setting system access privileges for the current process'
2.16 hrs.Example: 'An alternative way of setting Form.Closable to False'
2.17 hrs.Example: 'Adding and deleting User Accounts'
2.76 hrs.Function: 'SetMapMode'
 Function: 'FindText'
Function group: 'Common Dialog Box'
Google
Advertise here!