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. what does the WINAPI macro do?

what does the WINAPI macro do?

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 4 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.
  • N Offline
    N Offline
    namaskaaram
    wrote on last edited by
    #1

    int WINAPI function1(param); int is the return value,function1 is teh function name, then what does WINAPI do?

    N S H 3 Replies Last reply
    0
    • N namaskaaram

      int WINAPI function1(param); int is the return value,function1 is teh function name, then what does WINAPI do?

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      It's a calling convention for system functions. WINAPI expands to _stdcall.


      Nibu thomas Software Developer

      1 Reply Last reply
      0
      • N namaskaaram

        int WINAPI function1(param); int is the return value,function1 is teh function name, then what does WINAPI do?

        S Offline
        S Offline
        Stephen Hewitt
        wrote on last edited by
        #3

        It's a macro which expands to the appropriate calling convention. It's a macro so it can be defined differently on different platforms. On x86 based platforms it's __stdcall but on others it could be defined differently. Steve

        1 Reply Last reply
        0
        • N namaskaaram

          int WINAPI function1(param); int is the return value,function1 is teh function name, then what does WINAPI do?

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          maybe it is some helpful to you http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/msmod_10.asp[^]

          N 1 Reply Last reply
          0
          • H Hamid Taebi

            maybe it is some helpful to you http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/msmod_10.asp[^]

            N Offline
            N Offline
            namaskaaram
            wrote on last edited by
            #5

            thank u all!!!!! :-)

            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