GetNativeString Function

Retrieves a string from a native parameter.

int GetNativeString(int param, char[] buffer, int maxlength, int& bytes)

Parameters

int param

Parameter number, starting from 1.

char[] buffer

Buffer to store the string in.

int maxlength

Maximum length of the buffer.

int& bytes

Optionally store the number of bytes written.

Return Value

SP_ERROR_NONE on success, any other integer on failure.

Errors

Invalid parameter number or calling from a non-native function.

Notes

Output conditions are undefined on failure.