AdsSetDefault

Sets the default directory recorded for the session.

Syntax

UNSIGNED32 AdsSetDefault(UNSIGNED8 *pucPath);

Parameters

Parameter Type Description
pucPath UNSIGNED8* Default directory path. A null or empty string clears it.

Return Value

AE_SUCCESS (0).

Description

AdsSetDefault records a default directory string that AdsGetDefault returns. In ADS this is the directory used to resolve relative table names. OpenADS resolves paths against the connection’s own data path, so the value is stored for ACE API parity and round-trips through AdsGetDefault.

Example

AdsSetDefault((UNSIGNED8 *)"C:\\DATA\\APP");

UNSIGNED8 buf[260];
UNSIGNED16 len = sizeof(buf);
AdsGetDefault(buf, &len);   // "C:\DATA\APP"

See Also


AdsGetDefault →


This site uses Just the Docs, a documentation theme for Jekyll.