XThread Get/Set Last Error

This commit is contained in:
Dr. Chat
2015-09-25 18:22:13 -05:00
parent ee92f75a84
commit 3cbc65ac29
2 changed files with 13 additions and 0 deletions

View File

@@ -122,6 +122,9 @@ class XThread : public XObject {
static uint32_t GetCurrentThreadHandle();
static uint32_t GetCurrentThreadId();
static uint32_t GetLastError();
static void SetLastError(uint32_t error_code);
const CreationParams* creation_params() const { return &creation_params_; }
uint32_t tls_ptr() const { return tls_address_; }
uint32_t pcr_ptr() const { return pcr_address_; }