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. Including header file in C#

Including header file in C#

Scheduled Pinned Locked Moved C#
csharpquestion
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.
  • A Offline
    A Offline
    Aisha Ikram
    wrote on last edited by
    #1

    PWLX_NOTIFICATION_INFO for winlogin notification package is defined in Winwlx.h file. how i will use it in C#, where i can't include header files ???:confused: @!$h@

    C I 2 Replies Last reply
    0
    • A Aisha Ikram

      PWLX_NOTIFICATION_INFO for winlogin notification package is defined in Winwlx.h file. how i will use it in C#, where i can't include header files ???:confused: @!$h@

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Wrong language - C and C++ allow you to include header files. Find the header file, find the text you are looking for ("PWLX_NOTIFICATION_INFO") and find out what it equates to. In C# write something like:

      const uint PWLX_NOTIFICATION_INFO = 0x80001234;

      or what ever the value might be. Then repeat for as many values in the set as there are.


      "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar Coming soon: The Second EuroCPian Event

      1 Reply Last reply
      0
      • A Aisha Ikram

        PWLX_NOTIFICATION_INFO for winlogin notification package is defined in Winwlx.h file. how i will use it in C#, where i can't include header files ???:confused: @!$h@

        I Offline
        I Offline
        Ian Darling
        wrote on last edited by
        #3

        Aisha Ikram wrote: PWLX_NOTIFICATION_INFO for winlogin notification package is defined in Winwlx.h file. how i will use it in C#, where i can't include header files ??? Use P/Invoke to call the relevant APIs, and as Colin pointed out, declare your own constants. See also http://www.pinvoke.net[^] (and update it if you have anything new).


        Ian Darling "If we've learned anything from history, it's that those who feed trolls are condemned to repetitive conversations. Or something like that." - Eric Lippert

        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