Returns the first extension contained in buffer.
#include <smsutapi.h> CCODE NWSMGetFirstExtension ( void SM_HUGE *buffer, UINT32 *size, NWSM_EXTENSION_INFORMATION SM_HUGE **extension, SMS_HANDLE SM_HUGE *handle);
(IN) Points to the start of the extension buffer.
(IN) Size of the extension buffer.
(OUT) Points to the required extension information.
(OUT) Points to the extension handle, used to maintain context information.
The following table lists the return values associated with the function.
NWSMGetFirstExtension returns the first extension encountered in buffer. To get the next extension in buffer, call NWSMGetNextExtension. To end the retrieval of extensions call NWSMCloseExtension.
buffer should point to the start of the extension buffer. The size parameter should be set to the byte count of information present in the buffer parameter.
On errors NWSMCloseExtension need not be called.