Using Win32 functions in Visual FoxPro
Image Gallery
functions
•
examples
•
solutions
•
updates
•
about
•
links
•
articles
•
login
•
Code examples:
How to display a Task Dialog (Vista)
Reading STARTUPINFO structure for the current VFP session
Returning some basic information for the specified INF file
Verifying a file using the Authenticode policy provider
WAV file recorder
An alternative way of setting Form.Closable to False
Copying strings through the global memory block
Displaying the drive type value
How to get Special Folders paths
How to print picture stored in enhanced-format metafile (*.emf)
Pocket PC: retrieving data from the Contacts Database
Retrieving list of supported paper names (for example, Letter or Legal) for a given printer
Using the GetTempFileName
Current directory of the application
Displaying Windows shell folders in TreeView control with Visual FoxPro FLL
Enhanced GetFont dialog
Enumerating Processes -- Win9*
Enumerating sessions established on a server
How to enumerate sessions and processes on a specified terminal server
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Retrieving long values associated with the class of the VFP window
Using the MessageBox Win32 function
GDI+ fun: roach-infested desktop
How to retrieve version information for the specified file
Other pages with examples:
<<
>>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[18]
19
20
21
22
23
24
Using the RestartDialog function -- restarting Windows
User rating: 0/10 (0 votes)
Rate this code sample:
~
More code examples
Listed functions
Add comment
W32 Constants
Translate this page
Versions:
click to open
Before you begin:
See also:
How to initiate System shutdown (WinNT only)
Closing Windows
Enabling the SE_SHUTDOWN_NAME privilege for the application
Members area. Log in to view this example.
User name:
Password:
Forgot your password?
Sign up for
the Membership
User rating: 0/10 (0 votes)
Rate this code sample:
~
700 bytes
Created: 2002-12-30 22:40:36
Modified: 2009-01-03 15:26:33
Visits in 7 days: 102
Listed functions:
GetActiveWindow
RestartDialog
My comment:
To shut down the local computer, the calling thread must have the SE_SHUTDOWN_NAME privilege.
Word Index links for this example:
Thread
local computer
calling thread
System Shutdown
Frames not supported by your user agent
Translate this page:
Spanish
Portuguese
German
French
Italian
FreeTranslation.com
offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.
Log in to post a comment
functions
•
examples
•
solutions
•
updates
•
about
•
links
•
articles
•
login
•
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.17.109.248)
4 sec.
Example: 'Using the heap of the calling process to allocate memory blocks'
2.29 hrs.
Example: 'Enumerating network resources'
Function: 'GetDiskFreeSpace'
Function group: 'File System'
10.28 hrs.
Example: 'How to create MD-5 and SHA-1 hash values from a string'
Language: 'C#'
Function: 'CloseEnhMetaFile'
Function group: 'Metafile'
14.89 hrs.
Example: 'How to block the ALT+TAB shortcut (WinXP)'
Example: 'Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera'
15.23 hrs.
All Functions
Example: 'Browsing Windows Known Folders (Special Folders)'
Function: 'GdipSetTextRenderingHint'
Function group: 'GDI+ Graphics'
More last topics visited ...
Advertise here!