Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Obtaining a handle to the desktop associated with the calling thread
Using the GetTempFileName
Winsock: retrieving the host information corresponding to a network address
Converting long file names to the short format and vice versa
GDI+: creating scaled copy of image file
How to download a file from HTTP server using URL Monikers functions
How to generate GUID values
How to perform Base64 encoding/decoding using Cryptography API Functions
Retrieving information about the specified icon
Testing Transparent Menu Class with top-level form (requires VFP9)
Using the CreateFile
Creating a directory on the FTP
OS version and revision
Pocket PC: creating backup for the System Registry
String representation for disk or memory capacity
Using the Semaphore object to allow only one instance of VFP application running
Adding supplementary data to AVI files
Clipping mouse cursor area
How to get Special Folders paths
PocketPC: custom RAPI class for executing routines on remote Windows CE device
Reading virtual key status values and key names
Using shared memory to exchange data between two FoxPro applications
Using SQLBrowseConnect to connect to a data source through a number of iterative calls (SQL Server)
Using the MessageBox Win32 function
GetProcessVersion points at target OS

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
 
DECLARE INTEGER GetCurrentProcessId IN kernel32
 
DECLARE INTEGER GetProcessVersion IN kernel32;
    INTEGER ProcessId
 
#DEFINE _FFFF 0x0000ffff
#DEFINE FFFF_  0xffff0000
 
    LOCAL lnProcId, lnProcVer
 
    * can be replaced with 0, specifying the current process
    lnProcId = GetCurrentProcessId()
 
    lnProcVer = GetProcessVersion (lnProcId)
 
    ? "Process Id:", lnProcId
    ? "Process Version:", lnProcVer
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
411 bytes  
Created: 2001-10-25 20:13:07  
Modified: 2005-12-27 10:35:57  
Visits in 7 days: 66  
Listed functions:
GetCurrentProcessId
GetProcessVersion
Printer friendly API declarations
My comment:
Under VFP3 this function returns value 196618 (decimal), that means 0x0003000a -- major version 3, and minor version 10.
VFP6 returns 262144 -- major version 4, and minor version 0. So does Delphi 5.

From that I could suppose that VFP was designed primarily for Windows 3.1x, most evidently. Nevertheless I don"t insist on this idea, just because VB6 -- the dearest child of Bill G. -- returns 0 (z-z-z-zero!).

That is why the only conclusion I come to is that Microsoft does not care much of this function.
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.76.170)
10.7 hrs.Example: 'Displaying Windows shell folders in TreeView control with Visual FoxPro FLL'
 Example: 'Uploading file to the FTP server using InternetWriteFile'
16.14 hrs.Example: 'How to empty the Recycle Bin'
 Example: 'Quering waveform-audio output devices'
20.65 hrs.Example: 'Saving available locale records into a cursor'
 Example: 'Enumerating network resources'
21.58 hrs.Function: 'GetAncestor'
Function group: 'Window'
 Function: 'WTSEnumerateServers'
22.15 hrs.Example: 'Accessing Adobe Reader 7.0 main menu from VFP application'
1 day(s)Example: 'How to make a VFP form fading out when released (GDI+ version)'
Google
Advertise here!