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
SwitchDesktop
..msdn    Add comment     W32 Constants      Translate this page
Makes a desktop visible and activates it. This enables the desktop to receive input from the user.
Code examples:
How to prevent users from accessing the Windows Desktop and from switching to other applications
Declaration:
 
BOOL SwitchDesktop(
    HDESK hDesktop
);
 
 
FoxPro declaration:
 
DECLARE INTEGER SwitchDesktop IN user32;
    INTEGER hDesktop
 
Parameters:
hDesktop
[in] Handle to the desktop to be made visible and active. This handle is returned by the CreateDesktop and OpenDesktop functions.
Return value:
If the function succeeds, the return value is nonzero.
Usage:
 
* use random name for new desktop
cNewdesktop = "desktop_" + SUBSTR(SYS(2015), 3)
 
hNewDesktop = CreateDesktop(cNewdesktop,;
    0,0,0, GENERIC_ALL, 0)
 
= SetThreadDesktop(m.hNewDesktop)
= SwitchDesktop(m.hNewDesktop)
 
My comment:
See also: CreateDesktop, OpenDesktop
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-09-04 16:21:56
Modified: 2008-01-05 11:35:22
Visited in last 7 days: 9
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 (50.19.155.235)
1.16 hrs.
Function group: 'Window Station and Desktop'
3.72 hrs.Example: 'Deleting files into the Recycle Bin'
 Example: 'Deleting a file stored on the FTP server'
7.26 hrs.Function: 'ExitProcess'
 Example: 'Obtaining names of local and global groups for current user (WinNT/XP/2K)'
17.13 hrs.Example: 'Using the Semaphore object'
 Function: 'SetFilePointerEx'
Function group: 'File Management'
1 day(s)Example: 'Displaying the associated icons and descriptions for files and folders'
 Example: 'Using Beep and Sleep functions to make the old tin buzz sing (WinNT only?)'
 Example: 'How to create MD-5 and SHA-1 hash values from a string'
Google
Advertise here!