haspds_GetLastErrorMessage
Retrieves a message description related to the last error that occurred.
haspds_error_t __stdcall
haspds_GetLastErrorMessage
(
char* pBuffer,
unsigned long* pSize
)
Parameters
| 
                                                                         pBuffer  | 
                                                                    
                                                                         Points to the buffer where the error message will be returned.  | 
                                                                
| 
                                                                         pSize  | 
                                                                    
                                                                         Points to an unsigned long that specifies the size of the buffer on input, and the size of the returned error message  | 
                                                                
Return Values
| 
                                                                     HASPDS_STATUS_OK  | 
                                                                
                                                                     Function successfully executed  | 
                                                            
| 
                                                                     HASPDS_STATUS_SMALL_BUFFER  | 
                                                                
                                                                     Buffer too small  | 
                                                            
| 
                                                                     HASPDS_STATUS_FAILED  | 
                                                                
                                                                     Function failed to execute  | 
                                                            
Usage Notes
If the value of pBuffer is 0, in pSize the function will return the necessary buffer size for the error message.
