The Windows Win32 File Management Programming

 

 

 

 

HOME

 

 

What do we have in this session?

 

This tutorial demonstrates the Windows files and streams manipulations. Information and program examples include compressed and encrypted files.

  1. Brief Intro

  2. File Attributes

    Files and Clusters

  3. Creating, Deleting, and Maintaining Files: File Names, Paths & Namespaces

  4. Basic Naming Conventions

    Path Names and Namespaces

  5. Maximum Path Length

  6. Relative Paths

    Short and Long File Names and Paths

  7. Creating and Opening Files

  8. CreateFile() Scenarios

  9. File Attributes and Directories

  10. Moving and Replacing Files

    Closing and Deleting Files

    De-fragmenting Files

    Minimizing interactions between de-fragmentation and shadow copies

    Limitations under Windows 2000

    Retrieving File Type Information

    Determining the Size of a File

    Searching for One or More Files

    Setting and Getting the Timestamp of a File

  11. File Type, Size and Timestamp Program Example

  12. Determining the Current Character Set Code Page

  13. AreFileApisANSI() Program Example

    Reading From and Writing to Files

    Positioning a File Pointer

    Reading From or Writing To Files Using a Scatter-Gather Scheme

    Flushing System-Buffered I/O Data to Disk

    Truncating or Extending Files

    File and Directory Linking

    File Compression and Decompression

    The NTFS File System File Compression

    Compression Attribute

    Compression State

    Obtaining the Size of a Compressed File

  14. Compressed File (Attributes) Program Example

  15. File Compression and Decompression Libraries

  16. Decompressing a Single File

    Decompressing Multiple Files

    Reading from Compressed Files

    Using Windows Compressed Functions Program Example

  17. Cabinets

  18. File Encryption

    Handling Encrypted Files and Directories

 

 

 

 

    Encrypted Files and User Keys

    Backup and Restore of Encrypted Files

  1. Adding Users to an Encrypted File Program Example

  2. The self-signed Certificate

  3. File Security and Access Rights

  4. Input and Output (I/O)

  5. I/O Concepts

    File Buffering

    Alignment and File Access Requirements

    File Caching

    Synchronous and Asynchronous I/O

    Synchronous and Asynchronous I/O Considerations

  6. Canceling Pending I/O Operations

  7. Cancellation Considerations

    Operations That Cannot Be Canceled

    Canceling Asynchronous I/O

  8. Canceling Synchronous I/O

  9. Alertable I/O

  10. I/O Completion Ports

  11. How I/O Completion Ports Work

    Threads and Concurrency

    Supported I/O Functions

    Network I/O Concepts

    Description of a Network I/O Operation

  12. Microsoft SMB Protocol and CIFS Protocol Overview

  13. Opportunistic Locks

    Sparse Files

    Sparse File Operations

    Obtaining the Size of a Sparse File

  14. Sparse Files and Disk Quotas

    Symbolic Links

    Symbolic Link Effects on File Systems Functions

    Programming Considerations

    Creating Symbolic Links

    Example of an Absolute Symbolic Link

    Example of a Relative Symbolic Links

  15. More File Management Program Examples

      Appending One File to Another File Program Example

    1. Creating and Using a Temporary File Program Example

    2. Locking and Unlocking Byte Ranges in Files Program Example

    3. Opening a File for Reading or Writing

    4. Open a File for Writing Program Example

    5. Open a File for Reading Program Example

    6. Retrieving and Changing File Attributes

    7. Testing for the End of a File (EOF)

    8. Using Streams Program Example

    9. Alternate File Stream

  16. File Management Reference

      File Management Control Codes

      File Management Enumerations

    1. File Management Functions

    2. File Management Structures

< Windows Directory Index | Win32 Programming | Windows Files 1 >