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. Function Parameters

Function Parameters

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 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.
  • F Offline
    F Offline
    Fad B
    wrote on last edited by
    #1

    Hi How to know the parameters of an exported function from a dll. like NTDeleteFile exported from NTDLL.dll Thanks :rose:

    S M A 3 Replies Last reply
    0
    • F Fad B

      Hi How to know the parameters of an exported function from a dll. like NTDeleteFile exported from NTDLL.dll Thanks :rose:

      S Offline
      S Offline
      skaanji
      wrote on last edited by
      #2

      you can undecorate parameters of C++ functions using dependency walker but unfortunately it does not work with C functions

      1 Reply Last reply
      0
      • F Fad B

        Hi How to know the parameters of an exported function from a dll. like NTDeleteFile exported from NTDLL.dll Thanks :rose:

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        It's quite simple, you just disassemble the function and work it out from the stack. ;P Seriously, why do you want to use NtDeleteFile rather than the Win32 DeleteFile? NtDeleteFile knows nothing of current directories and requires a fully specified path, in NT object manager format. In general, it's better to use the Win32 functions. If you're looking to reuse a DLL for which you don't have documentation, my advice is not to bother. If the function is undocumented, you should consider it to be an implementation detail which could change in future versions of the DLL. Don't use it.

        1 Reply Last reply
        0
        • F Fad B

          Hi How to know the parameters of an exported function from a dll. like NTDeleteFile exported from NTDLL.dll Thanks :rose:

          A Offline
          A Offline
          Alexander M
          wrote on last edited by
          #4

          http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/NT%20Objects/File/NtDeleteFile.html[^] Don't try it, just do it! ;-)

          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