Using Win32 functions in Visual FoxPro Image Gallery
Process and Thread
..msdn
AssignProcessToJobObject
CommandLineToArgvW
CreateJobObject
CreateProcess
CreateProcessAsUser
CreateProcessWithLogonW
ExitProcess
FreeEnvironmentStrings
GetCommandLine
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetEnvironmentStrings
GetEnvironmentVariable
GetPriorityClass
GetProcessIoCounters
GetProcessTimes
GetProcessVersion
GetStartupInfo
GetThreadPriority
IsWow64Process
OpenProcess
RegisterServiceProcess
SetEnvironmentVariable
SetPriorityClass
SetThreadPriority
Sleep
TerminateJobObject
TerminateProcess
WinExec
Code examples:
How to check whether the system is 32-bit or 64-bit
Obtaining names and positions for shortcuts located on the Windows Desktop
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: 52  
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 (23.22.212.158)
2.9 hrs.Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
 Function: 'GetBestInterface'
3.72 hrs.Example: 'Yet another modal dialog: now HTML-based'
 Example: 'Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.'
4.3 hrs.Example: 'Building a tree of subdirectories for a given path using FindFile functions'
Language: 'C#'
6.26 hrs.Function: 'EnumPorts'
7.07 hrs.Function: 'GdipGetImageWidth'
9.33 hrs.Function: 'SQLTables'
Function group: 'ODBC API'
13.95 hrs.Example: 'Extended MessageBox Class'
 Function: 'BeginUpdateResource'
Google
Advertise here!