Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. who sets the last error?

who sets the last error?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chintoo723
    wrote on last edited by
    #1

    Who sets the last error? is it the kernel? or the windows subsystem that calls the system calls using Nt* calls?

    M M 2 Replies Last reply
    0
    • C Chintoo723

      Who sets the last error? is it the kernel? or the windows subsystem that calls the system calls using Nt* calls?

      M Offline
      M Offline
      mark novak
      wrote on last edited by
      #2

      Whoever detects the error and then calls SetLastError().

      1 Reply Last reply
      0
      • C Chintoo723

        Who sets the last error? is it the kernel? or the windows subsystem that calls the system calls using Nt* calls?

        M Offline
        M Offline
        Marc Soleda
        wrote on last edited by
        #3

        There's a last error value per thread: GetLastError[^] As this link explians, the value is set by any who calls SetLastError Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups