GetLastError
E724275
GetLastError is a Windows API function that retrieves the calling thread’s most recent error code, commonly used for diagnosing failures in system and application calls.
All labels observed (1)
| Label | Occurrences |
|---|---|
| GetLastError canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T8288303 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: GetLastError Context triple: [Kernel32, exportsFunction, GetLastError]
-
A.
Last Last
"Last Last" is a 2022 Afrobeats song by Nigerian artist Burna Boy that blends emotional lyrics about heartbreak with a sample of Toni Braxton’s "He Wasn't Man Enough."
-
B.
Last Post
"Last Post" is a 1928 modernist novel by Ford Madox Ford that continues the story begun in his earlier work "Parade's End," exploring the psychological and social aftermath of World War I among the English upper class.
-
C.
Got Me Wrong
"Got Me Wrong" is a song by the American rock band Alice in Chains, known for its acoustic style and appearance on the EP "Sap" and the "Clerks" film soundtrack.
-
D.
Last Column
The Last Column is a steel beam from the World Trade Center site that became a powerful symbol of remembrance and resilience, serving as a central artifact in the National September 11 Memorial & Museum.
-
E.
My Last
"My Last" is a popular hip-hop single by Big Sean featuring Chris Brown, known for its celebratory theme and catchy, melodic hook.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: GetLastError Target entity description: GetLastError is a Windows API function that retrieves the calling thread’s most recent error code, commonly used for diagnosing failures in system and application calls.
-
A.
Last Last
"Last Last" is a 2022 Afrobeats song by Nigerian artist Burna Boy that blends emotional lyrics about heartbreak with a sample of Toni Braxton’s "He Wasn't Man Enough."
-
B.
Last Post
"Last Post" is a 1928 modernist novel by Ford Madox Ford that continues the story begun in his earlier work "Parade's End," exploring the psychological and social aftermath of World War I among the English upper class.
-
C.
Got Me Wrong
"Got Me Wrong" is a song by the American rock band Alice in Chains, known for its acoustic style and appearance on the EP "Sap" and the "Clerks" film soundtrack.
-
D.
Last Column
The Last Column is a steel beam from the World Trade Center site that became a powerful symbol of remembrance and resilience, serving as a central artifact in the National September 11 Memorial & Museum.
-
E.
My Last
"My Last" is a popular hip-hop single by Big Sean featuring Chris Brown, known for its celebratory theme and catchy, melodic hook.
- F. None of above. chosen
Statements (30)
| Predicate | Object |
|---|---|
| instanceOf | Windows API function ⓘ |
| availableOn |
Windows desktop applications
ⓘ
Windows server applications ⓘ |
| belongsToLibrary | Kernel32.dll ⓘ |
| callingConvention | stdcall ⓘ |
| category | error handling API ⓘ |
| declaredInHeader | windows.h ⓘ |
| definedIn | Windows API NERFINISHED ⓘ |
| documentationURL | https://learn.microsoft.com/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror ⓘ |
| errorCodesDefinedIn | WinError.h NERFINISHED ⓘ |
| errorCodesInterpretedBy | FormatMessage NERFINISHED ⓘ |
| errorCodeSource | per-thread last-error code maintained by the system ⓘ |
| exportedBy | Kernel32.dll NERFINISHED ⓘ |
| language |
C
ⓘ
C++ ⓘ |
| mustBeCalledAfter | failing Windows API function ⓘ |
| relatedFunction |
FormatMessage
NERFINISHED
ⓘ
SetLastError ⓘ WSAGetLastError NERFINISHED ⓘ |
| requires | including windows.h in source code ⓘ |
| retrieves | calling thread’s last-error code value ⓘ |
| returnsNonZeroMeaning | an error code indicating the last error ⓘ |
| returnsZeroMeaning | no extended error information is available ⓘ |
| returnType | DWORD ⓘ |
| targetPlatform | Microsoft Windows NERFINISHED ⓘ |
| threadLocal | true ⓘ |
| threadSafetyNote | last-error code is maintained per thread, not per process ⓘ |
| usedFor |
diagnosing failures in Windows API calls
ⓘ
diagnosing failures in application calls that use Win32 API ⓘ diagnosing failures in system calls ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: GetLastError Description of subject: GetLastError is a Windows API function that retrieves the calling thread’s most recent error code, commonly used for diagnosing failures in system and application calls.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.