Using Win32 functions in Visual FoxPro Image Gallery
Function Groups:
All Functions 1306
Atom 1
Authentication 14
Authorization 6
Bitmap 9
Brush 2
Clipboard 20
Color 1
Common Dialog Box 12
Console 12
Coordinate Space and Transformation 9
Cryptography Reference 28
Cursor 5
Data Decompression Library 3
Debugging 2
Desktop Window Manager (DWM) 1
Device Context 13
Device Input and Output 1
Dialog Box 6
DNS Functions 1
Dynamic-Link Library 6
Error Handling 10
Event Logging 10
Extensible Storage Engine (ESE, Jet Blue) 23
File Management 49
File Mapping 4
File System 19
Filled Shape 2
Font and Text 13
GDI+ 6
GDI+ Bitmap 10
GDI+ Brush 4
GDI+ Font 9
GDI+ Graphics 28
GDI+ Image 20
GDI+ ImageAttributes 3
GDI+ Matrix 10
GDI+ PathGradient Brush 3
GDI+ Pen 2
GDI+ StringFormat 2
GDI+ Text 2
Handle and Object 4
Hook 2
HTTP Functions (WinHTTP) 12
Icon 7
Internet Functions (WinInet) 49
IP Helper 24
Kernel Transaction Manager 3
Keyboard Input 22
Mailslot 3
Memory Management 26
Menu 18
Message and Message Queue 12
Metafile 6
Monitor Configuration (Vista) 8
Mouse Input 8
MSHTML Reference 1
Multilingual User Interface 4
Multiple Display Monitors 2
National Language Support 20
Network Management 34
Painting and Drawing 17
Path 3
Performance Monitoring 12
Pipe 5
PnP Configuration Manager 6
Power Management 6
Printing and Print Spooler 35
Process and Thread 31
Raw Input 4
Region 7
Registry 21
Remote Access Service (RAS) 5
Remote Application Programming (RAPI) 49
Remote Procedure Call (RPC) 7
Resource 10
Security 22
Service 11
Setup API functions 7
Shell Functions 39
Shell Lightweight Utility APIs -- misc. functions 2
Shell Lightweight Utility APIs -- Path Functions 20
Shell Lightweight Utility APIs -- string functions 4
Simple MAPI 9
String 10
Synchronization 13
System Information 23
System Shutdown 5
Terminal Services 10
Time 16
Unicode and Character Set 2
URL Monikers 7
Version Information 2
Virtual Hard Disk (Win7) 4
Window 37
Window Class 8
Window Procedure 3
Window Property 3
Window Station and Desktop 7
Windows Controls 8
Windows Multimedia 76
Windows Networking 18
Windows Sockets 2 (Winsock) 38
Remote Application Programming (RAPI)            ..msdn    Add comment
CeCloseHandle This function closes an open object handle.
CeCopyFile This function copies an existing file to a new file.
CeCreateDatabase This function creates a new database.
CeCreateDirectory This function creates a new directory.
CeCreateFile This function creates, opens, or truncates a file, pipe, communications resource, disk device, or console. It returns a handle that can be used to access the object. It can also open and return a handle to a directory.
CeCreateProcess This function is used to run a new program. It creates a new process and its primary thread. The new process executes the specified executable file.
CeDeleteDatabase This function removes a database from the object store.
CeDeleteFile This function deletes an existing file from the object store.
CeDeleteRecord This function deletes a record from a database.
CeEnumDBVolumes This function enumerates all mounted database volumes and returns the name for each.
CeFindAllFiles This function retrieves information about all files and directories in the given directory of the Windows CE object store.
CeFindFirstDatabaseEx This function opens an enumeration context for all databases in a database volume.
CeFindFirstFile This function searches a directory for a file whose name matches the specified filename. CeFindFirstFile examines subdirectory names as well as filenames.
CeFindNextDatabaseEx This function retrieves the next database in an enumeration context.
CeGetFileSize This function retrieves the size, in bytes, of the specified file.
CeGetLastError This function returns the calling thread"s last-error code value.
CeGetSpecialFolderPath This function gets the path to a special shell folder.
CeGetStoreInformation This function fills in a STORE_INFORMATION structure with the size of the object store and the amount of free space currently in the object store.
CeGetSystemInfo This function returns information about the current system.
CeGetSystemPowerStatusEx This function retrieves the power status of the system.
CeGetTempPath This function gets the path to the directory designated for temporary files.
CeGetVersionEx This function obtains extended information about the version of the operating system that is currently running.
CeGlobalMemoryStatus This function gets information on the physical and virtual memory of the system.
CeMoveFile This function renames an existing file or a directory including all its children.
CeOidGetInfoEx This function retrieves information about an object in the object store or a mounted database volume.
CeOpenDatabase This function opens an existing database on any database volume, including mounted databases.
CeRapiFreeBuffer This function frees the memory on the desktop computer allocated by a call to CeFindAllDatabases, CeFindAllFiles, or CeReadRecordProps.
CeRapiGetError This function reports remote API related failures. CeRapiGetError can be used to determine if a call failed due to a failure in the remote API.
CeRapiInit This function attempts to initialize the Windows CE remote application programming interface (RAPI).
CeRapiInitEx This function attempts to initialize the Windows CE remote application programming interface (RAPI) and initially returns an event handle.
CeRapiInvoke This function can be used as a general-purpose mechanism to remotely execute a routine on the Windows CE device.
CeRapiUninit This function uninitializes the Windows CE remote application programming interface (RAPI).
CeReadFile This function reads data from a file, starting at the position indicated by the file pointer.
CeReadRecordProps This function reads properties from the current record.
CeRegCloseKey This function releases the handle of the specified key.
CeRegCreateKeyEx This function creates the specified key. If the key already exists in the registry, the function opens it.
CeRegDeleteKey This function deletes a named subkey from the specified registry key. The subkey to be deleted cannot have any subkeys.
CeRegDeleteValue This function removes a named value from the specified registry key.
CeRegEnumKeyEx This function enumerates subkeys of the specified open registry key.
CeRegEnumValue This function enumerates the values for the specified open registry key. CeRegEnumValue copies one indexed value name and data block for the key each time it is called.
CeRegOpenKeyEx This function opens the specified key.
CeRegQueryInfoKey This function retrieves information about a specified registry key.
CeRegQueryValueEx This function retrieves the type and data for a specified value name associated with an open registry key.
CeRegSetValueEx This function stores data in the value field of an open registry key. It can also set additional value and type information for the specified key.
CeRemoveDirectory This function deletes an existing empty directory.
CeSeekDatabase This function seeks the specified record in an open database.
CeSetFilePointer This function moves the file pointer of an open file.
CeWriteFile This function writes data to a file on remote Windows CE device.
CeWriteRecordProps This function writes a set of properties to a single record, creating the record if necessary.
Code examples:
Pocket PC: custom RAPI class for operating with files and folders on mobile device
Pocket PC: base class
Pocket PC: custom RAPI class for operating with the System Registry
Pocket PC: custom RAPI class for operating with the Object Store Databases
PocketPC: custom RAPI class for executing routines on remote Windows CE device
User Contributed Notes:
A.M. | 2006-08-24 16:59:45
Creating Mobile Solutions for Visual FoxPro Developers
Jamie | 2007-01-24 20:29:58
I'm just wondering if the rapi classes here are newer or older than the ones that you provided with the Foxpro Advisor article in December 2004.

I would have thought that these ones are more up to date but I'm not so sure.
A.M. | 2007-01-24 22:57:09
Hi Jamie,

Functionally they are similar if not identical. The Advisor version's code is probably cleaner and leaner.

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 (
9 sec.Example: 'The original LoadPicture() function in VFP returns valid handles to bitmaps, icons, cursors, and metafiles'
22 sec.Project
33 sec.Function: 'timeGetDevCaps'
Function group: 'Windows Multimedia'
45 sec.Function: 'SQLManageDataSources'
56 sec.
1.17 min.Function: 'GdipGetFontCollectionFamilyList'
Function group: 'GDI+ Font'
1.33 min.Example: 'Peer-to-peer LAN messenger built with Mailslot API functions'
1.6 min.Function: 'GdipRotateMatrix'
Function group: 'GDI+ Matrix'
1.8 min.Function: 'waveInReset'
Function group: 'Windows Multimedia'
2 min.Function: 'FindClose'
Function group: 'File Management'
Advertise here!