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. Disk space lists: any examples?

Disk space lists: any examples?

Scheduled Pinned Locked Moved C / C++ / MFC
databasehelptutorialquestionannouncement
1 Posts 1 Posters 5 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I have an INF file with the following sections in it: [Version] Signature="$Windows NT$" Provider=Gooroos Software [Install] CopyFiles=CopyFiles [CopyFiles] file1 [DestinationDirs] CopyFiles=11 ; Same as %windir%\system32 [SourceDiskNames] 1="Installation" [SourceDiskFiles] file1=1 I can use this INF to install file1 just fine. However, if I try to create a disk space list for the Install section, I get an error. I.e: SetupAddInstallSectionToDiskSpaceList(diskSpaceList, m_hInf, 0, "Install", 0, 0); fails and GetLastError() returns a code of -536870654. If I change the section name from "Install" to "CopyFiles", then the call succeeds, but when I query the drive list I get back an empty string. I.e: SetupQueryDrivesInDiskSpaceList(diskSpaceList, NULL, 0, &driveListSize) returns a list size of 1 character (i.e. just the terminating null byte). Obviously I'm doing something wrong, so does anyone have an example of using a disk space list which actually works? Thanx.

    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