Rediger

Del via


NDdeGetErrorString function

[Network DDE is no longer supported. Nddeapi.dll is present on Windows Vista, but all function calls return NDDE_NOT_IMPLEMENTED.]

Converts an error code returned by a network DDE function into an error string that explains the returned error code.

Syntax

UINT NDdeGetErrorString(
  _In_  UINT   uErrorCode,
  _Out_ LPTSTR lpszErrorString,
  _In_  DWORD  cBufSize
);

Parameters

uErrorCode [in]

The error code to be converted into an error string.

lpszErrorString [out]

A pointer to a buffer that receives the translated error string. This parameter cannot be NULL. If the buffer is not large enough to store the complete error string, the string is truncated.

cBufSize [in]

The size of the buffer to receive the error string, in TCHARs.

Return value

If the function succeeds, the return value is zero.

If the function fails, the return value is a nonzero error code. If the lpszErrorString buffer is not large enough to accept the complete error string, and the string is truncated, the function returns the value NDDE_INTERNAL_ERROR.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Nddeapi.h
Library
Nddeapi.lib
DLL
Nddeapi.dll
Unicode and ANSI names
NDdeGetErrorStringW (Unicode) and NDdeGetErrorStringA (ANSI)

See also

Network Dynamic Data Exchange Overview

Network DDE Functions