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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Get int value of DWORD parameter

Get int value of DWORD parameter

Scheduled Pinned Locked Moved C#
tutorialcsharpquestion
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.
  • T Offline
    T Offline
    TheDudeJuan
    wrote on last edited by
    #1

    Hi, I use the windows apis a lot and often I have to to give a parameter with the DWORD type. From my understanding the equivalent in c# is int... So when I have a parameter like "DWM_TNP_RECTDESTINATION" it's int value is 0x1. But I only know that since I found an example where they used the code. But now I have another parameter (DWMWA_EXTENDED_FRAME_BOUNDS) from the dwmapi.dll and I don't know how to get the int value since I can't find an example where it is used :S Isn't there an easier way to get the value instead of finding someone who knows? :P

    $? :D

    L L 2 Replies Last reply
    0
    • T TheDudeJuan

      Hi, I use the windows apis a lot and often I have to to give a parameter with the DWORD type. From my understanding the equivalent in c# is int... So when I have a parameter like "DWM_TNP_RECTDESTINATION" it's int value is 0x1. But I only know that since I found an example where they used the code. But now I have another parameter (DWMWA_EXTENDED_FRAME_BOUNDS) from the dwmapi.dll and I don't know how to get the int value since I can't find an example where it is used :S Isn't there an easier way to get the value instead of finding someone who knows? :P

      $? :D

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

      TheDudeJuan wrote:

      Isn't there an easier way to get the value instead of finding someone who knows?

      These values are generally stored in the C/C++ header files associated with the API. So you need to look up the tag in the MSDN documentation and at the bottom of the page there is usually a reference to the associated C++ header file (see this link[^]). Open this file (stored in the SDK directory) to fnd the values. This may mean that you will need to download the Windows SDK from Microsoft.

      1 Reply Last reply
      0
      • T TheDudeJuan

        Hi, I use the windows apis a lot and often I have to to give a parameter with the DWORD type. From my understanding the equivalent in c# is int... So when I have a parameter like "DWM_TNP_RECTDESTINATION" it's int value is 0x1. But I only know that since I found an example where they used the code. But now I have another parameter (DWMWA_EXTENDED_FRAME_BOUNDS) from the dwmapi.dll and I don't know how to get the int value since I can't find an example where it is used :S Isn't there an easier way to get the value instead of finding someone who knows? :P

        $? :D

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

        Google says its 9. Just type the symbol in the search box and read the first 20 excerpts. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


        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