Using Win32 functions in Visual FoxPro Image Gallery
Window Station and Desktop
Code examples:
How to prevent users from accessing the Windows Desktop and from switching to other applications
..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
HDESK OpenInputDesktop(
    DWORD dwFlags,
    BOOL fInherit,
    ACCESS_MASK dwDesiredAccess
FoxPro declaration:
DECLARE INTEGER OpenInputDesktop IN user32;
    LONG    dwFlags,;
    INTEGER fInherit,;
    INTEGER dwDesiredAccess

[in] This parameter can be 0 or 1.

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

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

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
23 sec.Function: 'CryptGetKeyParam'
44 sec.Function: 'LookupAccountName'
1.13 min.Function: 'waveInReset'
1.48 min.Function: 'EnumClipboardFormats'
1.92 min.Function: 'JetAddColumn'
Advertise here!