Compartir a través de


CeGetTempPath (RAPI) (Windows CE 5.0)

Send Feedback

This function gets the path to the directory designated for temporary files.

CeGetTempPath is a remote application programming interface (RAPI), which enables an application running on a desktop computer to make function calls on a Windows CE–based device.

DWORD CeGetTempPath( DWORDnBufferLength,LPWSTRlpBuffer);

Parameters

  • nBufferLength
    [in] Size of lpBuffer in characters.
  • lpBuffer
    [out] Long pointer to the buffer for the folder path. The returned string ends in a backslash (\).

Return Values

The return value is the length, in characters, of the string copied to lpBuffer, not including the terminating null character. If the return value is greater than nBufferLength, the return value is the size of the buffer required to hold the path.

If CeGetTempPath fails, the return value is 0. To determine if a function failed because of RAPI errors, call CeRapiGetError. To determine if a function failed because of non-RAPI errors, call CeGetLastError.

Remarks

The CeGetTempPath function gets the temporary file path as follows:

  1. The path specified by the TMP environment variable.

  2. The path specified by the TEMP environment variable, if TMP is not defined.

    Note   that the concept of a current directory does not exist in Windows CE. The full path must be specified.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Rapi.h.
Link Library: Rapi.lib.

See Also

RAPI Functions | CeGetLastError | CeRapiGetError

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.