Results 1 to 19 of 19

Thread: XP Library: Registry, Files, Folders, Drives, Mouse and more! [Update 2]

Threaded View

  1. #1

    Thread Starter
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    XP Library: Registry, Files, Folders, Drives, Mouse and more! [Update 2]

    Attached is the set of classes I use to interact with XP from VB6. The various functions adhere to Microsoft's "Designed for XP" logo program, which means that they should transition well to Vista.

    The library is five classes in total; one main class that holds an instance of the four dependent classes, giving you a simple, unified entrypoint for all your OS needs.

    Some key features:
    • File/Folder Copy, Delete, Rename, and Move using SHFileOperation, which allows for both a progress meter (for long operations) and the recycle bin.
    • Retrieve the size of a file, even if it's larger than 2 gig
    • Retrieve the paths to special folders (eg: My Documents)
    • Manipulate the Registry; read/write keys and values at any location
    • Use common dialogs (eg: Open File) with API; no dependencies needed
    • Control the mouse position and cursor, including the ability to hide it
    • Enumerate logical drives and retrieve a drive's Serial #
    There are many more useful functions included in the library. In addition to the five classes, the zip includes an extensive ReadMe.txt describing how to use each function. This ReadMe is reproduced in the next six posts.

    You are free to use this code in any way you see fit.

    Note: If anyone has a better way to do any of the functions, I encourage you to post them so I can update the library.

    Update 1: Details of this update are listed in post 9 below.

    Update 2: Details of this update are listed in post 18 below.

    Attached are the complete libraries, as of update 2:
    Attached Files Attached Files
    • File Type: zip XP.zip (29.1 KB, 1819 views)
    Last edited by Ellis Dee; May 18th, 2008 at 12:50 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width