Retrieve current option settings
File
File: dtsearch.h
Syntax
Group
Remarks
Call dtssGetOptions2 first with a null buffer and pointer to an int to get the size of the variable-length data, then allocate the buffer and call again with a buffer large enough to hold the data. The dtsOptionsReader class provides a simple wrapper around this process. Example:
dtsOptions2 options;
int sizeNeeded = 0;
dtssGetOptions2(options, 0, 0, &sizeNeeded);
char *dataBuffer = new char[sizeNeeded];
if (dataBuffer)
dtssGetOptions2(options, dataBuffer, sizeNeeded, &sizeNeeded);