Win32-Dokan version 0.01
========================

Inteface for Dokan library (user mode file system for windows)

This module provides interface to Dokan library. You can create new
filesystem using Win32::Dokan, and Win32::Dokan::FS module.


INSTALLATION

To install this module type the following:

  1. Copy dokan.h from Dokan source files.

   To complie Dokan.xs, you need C header file "dokan.h" from Dokan
   source file. copy it into same directory Win32-Dokan is extracted.

  2. Build in usual way.

   perl Makefile.PL
   make
   make test
   make install


EXAMPLE

You can find example script "mirror.pl" in "examples" directory.
Edit first follwing line to fit your Windows environment:

  in "mirror.pl"
  ----------------------------------------------
  $dokan->mount('W', Mirror->new("D:/tmp"));
  ----------------------------------------------

  'W' is drive letter to mount example filesystem. (Yes, it MUST NOT be used.)
  "D:/tmp" is mirrored directory.

Run the script. "D:/tmp" will be appeard as drive 'W:'.

To unmount 'W:', run the dokanctl.exe command line this:

  dokanctl /u w:

dokanctl.exe may be found in 'C:\Program Files\Dokan\DokanLibrary'
or specifed place when you install Dokan library.


DEPENDENCIES

This module requires these other modules and libraries:

  Dokan rerated files:
    Dokan.dll (must be found in %windir%\System32 or %PATH%)
    dokan.h (provided with Dokan source)

  CPAN modules:
    Class::Accessor

OTHERS

* ActivePerl 5.8 with VC++ 2008

After run 'perl Makefile.PL', edit Makefile.

1. Change MD to MT

  before:
    CCFLAGS = -nologo -Gf -W3 -MD -Zi ...(snipped)...
    OPTIMIZE = -MD -Zi -DNDEBUG -O1

  after:
    CCFLAGS = -nologo -Gf -W3 -MT -Zi ...(snipped)...
    OPTIMIZE = -MT -Zi -DNDEBUG -O1

2. Change msvcrt.lib to libcmt.lib

  before:
  LIBC = msvcrt.lib
  LDLOADLIBS = ...(snipped)... msvcrt.lib

  after:
  LIBC = libcmt.lib
  LDLOADLIBS = ...(snipped)... libcmt.lib


COPYRIGHT AND LICENSE

Copyright 2009 Toshimitsu FUJIWARA <tttfjw at gmail.com>, all rights reserved.

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
