Using Win32 functions in Visual FoxPro Image Gallery
Remote Application Programming (RAPI)
..msdn
CeCloseHandle
CeCopyFile
CeCreateDatabase
CeCreateDirectory
CeCreateFile
CeCreateProcess
CeDeleteDatabase
CeDeleteFile
CeDeleteRecord
CeEnumDBVolumes
CeFindAllFiles
CeFindFirstDatabaseEx
CeFindFirstFile
CeFindNextDatabaseEx
CeGetFileSize
CeGetLastError
CeGetSpecialFolderPath
CeGetStoreInformation
CeGetSystemInfo
CeGetSystemPowerStatusEx
CeGetTempPath
CeGetVersionEx
CeGlobalMemoryStatus
CeMoveFile
CeOidGetInfoEx
CeOpenDatabase
CeRapiFreeBuffer
CeRapiGetError
CeRapiInit
CeRapiInitEx
CeRapiInvoke
CeRapiUninit
CeReadFile
CeReadRecordProps
CeRegCloseKey
CeRegCreateKeyEx
CeRegDeleteKey
CeRegDeleteValue
CeRegEnumKeyEx
CeRegEnumValue
CeRegOpenKeyEx
CeRegQueryInfoKey
CeRegQueryValueEx
CeRegSetValueEx
CeRemoveDirectory
CeSeekDatabase
CeSetFilePointer
CeWriteFile
CeWriteRecordProps
Code examples:
Pocket PC: custom RAPI class for operating with the Object Store Databases
CeOpenDatabase
..msdn    Add comment     W32 Constants      Translate this page
This function opens an existing database on any database volume, including mounted databases.
Code examples:
Pocket PC: custom RAPI class for operating with the Object Store Databases
Declaration:
HANDLE CeOpenDatabaseEx( 
  PCEGUID pceguid, 
  PCEOID poid,
  LPWSTR lpszName, 
  CEPROPID propid, 
  DWORD dwFlags,
  CENOTIFYREQUEST* pRequest
);
FoxPro declaration:
DECLARE CeOpenDatabase IN rapi;
    INTEGER poid,;
    STRING  lpszName,;
    INTEGER propid,;
    INTEGER dwFlags,;
    INTEGER hwndNotify

Parameters:
pceguid
[in] Pointer to the CEGUID that contains the globally unique identifier of a mounted database.

poid
[in] Pointer to the object identifier of the database to be opened.

lpszName
[in] Long pointer to the null-terminated string that contains the name of the database to be opened. This is used along with pceguid to specify the database if the value pointed to by poid is 0.

propid
[in] Property identifier of the primary sort key for the database.

dwFlags
[in] Specifies an action flag.

pRequest
[in] Pointer to a CENOTIFICATION structure that requests notifications be sent to an identified window.
Return value:
A handle to the open database indicates success. INVALID_HANDLE_VALUE (-1) indicates failure.
My comment:
An application must use the CeCloseHandle (RAPI) function to close the handle returned by the CeOpenDatabaseEx (RAPI) function.

Changes to Windows CE databases are committed after each individual call, not when opening and closing a database.
Word Index links for the CeOpenDatabase :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-06-29 10:59:49
Modified: 2004-06-29 11:03:18
Visited in last 7 days: 13
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.228.64)
2 sec.Example: 'Displaying dimmed window behind VFP top-level form'
8 sec.Function: 'CommDlgExtendedError'
14 sec.Example: 'Opening the Page Setup dialog box to specify the attributes of a printed page'
21 sec.Function: 'ChooseFont'
49 sec.Example: 'Class for sound recording'
Google
Advertise here!