Share via


CeEnumDBVolumes (CEDB) (Windows CE 5.0)

Send Feedback

This function enumerates all mounted database volumes and returns the name for each.

This function does not work with EDB databases. For more information on EDB, see EDB Functions.

A RAPI version of this function exists called CeEnumDBVolumes (RAPI).

BOOL CeEnumDBVolumes( PCEGUID pceguid,LPWSTR lpBuf,DWORD dwNumChars);

Parameters

  • pceguid
    [in] Pointer to the CEGUID value returned by CREATE_INVALIDGUID. To begin enumeration, set this parameter to the pointer value.
  • lpBuf
    [out] Pointer to the allocated buffer that receives the database volume names.
  • dwNumChars
    [in] Length, in characters, of the buffer.

Return Values

TRUE indicates success. FALSE indicates failure. To get extended error information, call GetLastError. The following table lists possible values for GetLastError.

Value Description
ERROR_INVALID_PARAMETER Indicates that one of the parameters is invalid.
ERROR_NO_MORE_ITEMS Indicates that there are no more mounted volumes to enumerate.
ERROR_INSUFFICIENT_BUFFER Indicates that the specified buffer was not large enough.

Remarks

To enumerate all mounted volumes, the operating system sets up the process of enumerating all database volumes. On the first successful completion, pceguid and lpBuf are set to the CEGUID and the database volume name of the first of the database volumes, respectively.

To continue enumeration, call CeEnumDBVolumes with the previously returned CEGUID and continue until an error occurs. If the return value is ERROR_INSUFFICIENT_BUFFER, reallocate the buffer and use the pceguid that was returned from the failure to resume the enumeration. This prevents the necessity to completely restart the process.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Windbase.h.
Link Library: Coredll.lib.

See Also

CREATE_INVALIDGUID

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.