Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
WAV file recorder
Winsock: retrieving information from a host database for a given host name
Converting path to original case
Current System information
How to test file attributes (key method for FileExists and DirectoryExists routines)
Reading keys in the specified section of the Win.ini file
Retrieveing information about the active window (even if it is not owned by the calling process)
Retrieving IP statistics for the computer
Retrieving the names of all sections in an initialization file
Enumerating connections made to a shared resource for the local computer (WinNT only)
Listing INF files in a specified directory
Pocket PC: System Registry Viewer
Reading and setting explicit Application User Model ID for the current process (Win7)
Retrieving configuration information for the specified workstation (Win2000/XP)
Retrieving list of Global Atom names
Retrieving various system metrics
Using GetBinaryType (WinNT only) to determine the type of an executable file
Using InternetGoOnline function
Using Multimedia Command Strings to play MIDI files
Creating hash values for the list of names
Enumerating ODBC drivers available on the local computer
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
Memory usage info for current VFP session (WinNT only)
Retrieving graphic capabilities of your display
How to check whether the system is 32-bit or 64-bit

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Before you begin:
The IsWow64Process function determines whether the specified process is running under WOW64.
 
DO declare
 
LOCAL nHandle, lWow64Process
 
nHandle = GetCurrentProcess()
lWow64Process = 0
 
IsWow64Process(nHandle, @lWow64Process)
 
CloseHandle(nHandle)
 
? IIF(lWow64Process = 0, "32-bit", "64-bit")
* end of main
 
PROCEDURE declare
    DECLARE INTEGER GetCurrentProcess IN kernel32
 
    DECLARE INTEGER CloseHandle IN kernel32 INTEGER hObject    
 
    DECLARE INTEGER IsWow64Process IN kernel32;
        INTEGER hProcess, INTEGER @Wow64Process
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
447 bytes  
Created: 2012-02-07 10:35:08  
Modified: 2012-02-07 10:47:27  
Visits in 7 days: 46  
Listed functions:
CloseHandle
GetCurrentProcess
IsWow64Process
Printer friendly API declarations
My comment:
Note that the minimum supported client:is Windows XP with SP2.

By calling API functions LoadLibrary and GetProcAddress it is possible to determine whether the IsWow64Process is included in the present Kernel32.dll library.
Word Index links for this example:
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.


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.20.7.65)
3 sec.Example: 'How to retrieve version information for the specified file'
3.32 hrs.Example: 'How to create a service object'
 Example: 'How to display Windows On-Screen Keyboard'
3.34 hrs.Function: 'JetBeginSession'
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
3.43 hrs.Example: 'Finding out if the current user is the Guest account'
4.72 hrs.Example: 'Exporting DLL icon resources as .ICO files'
 Function: 'GdipResetWorldTransform'
Function group: 'GDI+ Graphics'
5.67 hrs.Function: 'mixerGetLineControls'
Function group: 'Windows Multimedia'
6.67 hrs.Function: 'SizeofResource'
 Function: 'GlobalFree'
Function group: 'Memory Management'
Google
Advertise here!