Share via


CeUnmountDBVol (CEDB) (Windows Embedded CE 6.0)

1/6/2010

This function unmounts a database volume.

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

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

Syntax

BOOL CeUnmountDBVol(  
  PCEGUID pceguid
);

Parameters

  • pceguid
    [in] Pointer to the CEGUID that contains the globally unique identifier (GUID) of a mounted database to be unmounted.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

All cached data is flushed to permanent storage. A single database volume can be mounted more than once by a different application. Each time the volume is mounted, a reference count is incremented. A mounted database volume does not unmount until all applications that mounted the volume call this function.

After calling this function, pGuidbecomes invalid. As a result, if you call CeEnumDBVolumes (CEDB) after unmounting the volume, the call fails.

It is not necessary to call this function on the object store. The object store cannot be unmounted. You can treat it as a special database volume that is always mounted.

Requirements

Header windbase.h
Library coredll.lib
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

CEDB Functions
CeMountDBVol (CEDB)