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#
  4. PInvoke

PInvoke

Scheduled Pinned Locked Moved C#
questioncsharpjsontutorialannouncement
5 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.
  • S Offline
    S Offline
    Saksida Bojan
    wrote on last edited by
    #1

    How does .NET handles a winapi that doesn't exsist on current OS, for example: If it was proggramed on Windows 7 64bit and then attempted to use on Windows XP 32 bit? API IsWow64Process does exsist in 64 bit OS, but does it exsist in 32bit version? edit: Re-edited question

    L 1 Reply Last reply
    0
    • S Saksida Bojan

      How does .NET handles a winapi that doesn't exsist on current OS, for example: If it was proggramed on Windows 7 64bit and then attempted to use on Windows XP 32 bit? API IsWow64Process does exsist in 64 bit OS, but does it exsist in 32bit version? edit: Re-edited question

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      P/Invoke problems are signaled through exceptions, see here[^] for some details. So you may choose to use some try-catch construct. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

      S 1 Reply Last reply
      0
      • L Luc Pattyn

        P/Invoke problems are signaled through exceptions, see here[^] for some details. So you may choose to use some try-catch construct. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        S Offline
        S Offline
        Saksida Bojan
        wrote on last edited by
        #3

        Thank you, as other question does IsWow64Process exsist in 32 bit Windows?

        L L 2 Replies Last reply
        0
        • S Saksida Bojan

          Thank you, as other question does IsWow64Process exsist in 32 bit Windows?

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          I don't know. Read the documentation. Google. Try it. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

          1 Reply Last reply
          0
          • S Saksida Bojan

            Thank you, as other question does IsWow64Process exsist in 32 bit Windows?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Then you get an exception "EntryPointNotFoundException" -> Function doesn't exists. IsWow64Process is also in Win32. See this: http://msdn.microsoft.com/en-us/library/ms684139%28VS.85%29.aspx[^]

            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