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
OpenInputDesktop
..msdn    Add comment     W32 Constants      Translate this page
Opens the desktop that receives user input.
Code examples:
How to prevent users from accessing the Windows Desktop and from switching to other applications
Declaration:
HDESK OpenInputDesktop(
    DWORD dwFlags,
    BOOL fInherit,
    ACCESS_MASK dwDesiredAccess
);
FoxPro declaration:
DECLARE INTEGER OpenInputDesktop IN user32;
    LONG    dwFlags,;
    INTEGER fInherit,;
    INTEGER dwDesiredAccess

Parameters:
dwFlags
[in] This parameter can be 0 or 1.

fInherit
[in] If this value is TRUE, new processes inherit the handle. Otherwise, this handle is not inherited.

dwDesiredAccess
[in] Access to the desktop.
Return value:
If the function succeeds, the return value is a handle to the desktop that receives user input.
My comment:
When you are finished using the handle, call the CloseDesktop function to close it.

See also: CloseDesktop, SetProcessWindowStation, SwitchDesktop
Word Index links for the OpenInputDesktop :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-09-04 16:17:05
Modified: 2005-09-04 16:19:05
Visited in last 7 days: 25
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.196.72.162)
5 sec.Function: 'SHCreateDirectory'
12 sec.Function: 'InternetTimeFromSystemTime'
17 sec.Function: 'GetAncestor'
24 sec.Function: 'GetBestRoute'
31 sec.Function: 'RasEnumAutodialAddresses'
39 sec.Function: 'GetDC'
45 sec.Function: 'CloseDesktop'
51 sec.Function: 'CreateService'
57 sec.Function: 'HttpQueryInfo'
1.05 min.
Function group: 'Debugging'
Google
Advertise here!