Partager via


CeUnmountDBVol (EDB) (Windows CE 5.0)

Send Feedback

This function is used to unmount a volume that was previously mounted by calling the CeMountDbVolEx (EDB) function.

BOOL CeUnmountDBVol(  PCEGUIDpGuid);

Parameters

  • pGuid
    Specifies the CEGUID of the mounted volume to be unmounted. You can mount a volume by using the CeMountDbVolEx function.

Return Values

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

Return Value Description
ERROR_INVALID_PARAMETER pGuid is NULL.
ERROR_NOT_FOUND Indicates that the volume identified by pGuid is not currently mounted.

Remarks

This function is used to unmount a volume that was previously mounted by calling the CeMountDbVolEx function. A single database volume can be mounted more than once by different applications. Each time the volume is mounted, a reference count is incremented. A mounted database volume does not fully unmount and close until all applications that mounted the volume call the CeUnmountDbVol function. When a volume is finally unmounted, all cached data is flushed.

Note   If there are open handles on databases within a volume, CeUnmountDbVol does not unmount the volume, but still returns TRUE.

Requirements

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

See Also

CeMountDbVolEx (EDB)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.