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. Zero copy on windows

Zero copy on windows

Scheduled Pinned Locked Moved C / C++ / MFC
comjsonquestion
4 Posts 2 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.
  • V Offline
    V Offline
    vikramlinux
    wrote on last edited by
    #1

    Hi All, Is there any facility/API available on windows which will give me file copying functionality where number of copy operations involved are minimal? Usually kernel mode APIs and DMA stuff creates few number of redudent buffer copy operations. Can we avoid it? On unix they have such functionality http://www.linuxjournal.com/article/6345[^]

    J 1 Reply Last reply
    0
    • V vikramlinux

      Hi All, Is there any facility/API available on windows which will give me file copying functionality where number of copy operations involved are minimal? Usually kernel mode APIs and DMA stuff creates few number of redudent buffer copy operations. Can we avoid it? On unix they have such functionality http://www.linuxjournal.com/article/6345[^]

      J Offline
      J Offline
      Jose David Pujo
      wrote on last edited by
      #2

      I'm almost sure that there isn't any thing like that in Windows API. The standard functions: CopyFile, CopyFileEx, MoveFile don't work as you want: http://msdn.microsoft.com/en-us/library/aa363851(VS.85).aspx[^] PD: If you find such functionallity please post it. :laugh:

      J 1 Reply Last reply
      0
      • J Jose David Pujo

        I'm almost sure that there isn't any thing like that in Windows API. The standard functions: CopyFile, CopyFileEx, MoveFile don't work as you want: http://msdn.microsoft.com/en-us/library/aa363851(VS.85).aspx[^] PD: If you find such functionallity please post it. :laugh:

        J Offline
        J Offline
        Jose David Pujo
        wrote on last edited by
        #3

        Hi again, I remembered a way to copy files across network: TransmitFile Function The TransmitFile function transmits file data over a connected socket handle. This function uses the operating system's cache manager to retrieve the file data, and provides high-performance file data transfer over sockets. Note This function is a Microsoft-specific extension to the Windows Sockets specification. http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx[^] Hope this one works...

        V 1 Reply Last reply
        0
        • J Jose David Pujo

          Hi again, I remembered a way to copy files across network: TransmitFile Function The TransmitFile function transmits file data over a connected socket handle. This function uses the operating system's cache manager to retrieve the file data, and provides high-performance file data transfer over sockets. Note This function is a Microsoft-specific extension to the Windows Sockets specification. http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx[^] Hope this one works...

          V Offline
          V Offline
          vikramlinux
          wrote on last edited by
          #4

          Hey, That is really a good information. Thanks.

          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