| title |
usesgetlasterror | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
language-reference |
| f1_keywords |
|
| dev_langs |
|
| helpviewer_keywords |
usesgetlasterror attribute |
|
| ms.assetid |
d149e33d-35a7-46cb-9137-ae6883d86122 |
| caps.latest.revision |
9 |
| author |
mikeblome |
| ms.author |
mblome |
| manager |
ghogen |
| translation.priority.ht |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
Tells the caller that if there is an error when calling that function, then the caller can then call GetLastError to retrieve the error code.
Remarks
The usesgetlasterror C++ attribute has the same functionality as the usesgetlasterror MIDL attribute.
See the idl_module example for a sample of how to use usesgetlasterror.
|
|
| Applies to |
module attribute |
| Repeatable |
No |
| Required attributes |
None |
| Invalid attributes |
None |
For more information about the attribute contexts, see Attribute Contexts.
IDL Attributes