-
Notifications
You must be signed in to change notification settings - Fork 668
Update Dokan 1.1.0 application to Dokany 2.0.0
Liryna edited this page Jun 7, 2022
·
8 revisions
This page does not contain the new features / API added in 2.0.0. It just described how to migrate your 1.1.0 Dokan filesystem to 2.0.0. See the Changelog for the added features and API.
-
DokanInit
needs to be called beforeDokanMain
and when Dokan is no longer used by your application you will need to callDokanShutdown
to release the allocated internal resource byDokanInit
. -
DOKAN_OPTION_ENABLE_FCB_GARBAGE_COLLECTION
no longer exists and was enabled by default. -
DOKAN_OPTION_*
values were reassigned. Be sure to use them fromdokan.h
or update your values. -
DOKAN_OPTIONS.ThreadCount
was replaced byDOKAN_OPTIONS.SingleThread
if single thread mode is wanted. Otherwise the library will allocate the number of threads regarding the workload. -
PFillFindStreamData
used byDOKAN_OPERATIONS.FindStreams
now returnsFALSE
if the buffer is full, otherwiseTRUE
. Also the second parameter is no longer theDOKAN_FILE_INFO
but the new pointerFindStreamContext
provided byDOKAN_OPERATIONS.FindStreams
. -
DOKAN_OPERATIONS.FindStreams
has a new parameterMountPoint
that contains the requested mount point at mount time or a possible new assign drive letter ifDOKAN_OPTION_MOUNT_MANAGER
was used and the requested drive letter was not available. -
DokanGetMountPointList
now returns the newDOKAN_MOUNT_POINT_INFO
struct instead ofDOKAN_CONTROL
which can also be freed byDokanReleaseMountPointList
. -
DokanNotify*
functions now require theDOKAN_HANDLE
created by the new APIDokanCreateFileSystem
. - Previously
FindFilesWithPattern
could returnSTATUS_NOT_IMPLEMENTED
andFindFiles
would be called right after to process the request. This is no longer the case. IfFindFilesWithPattern
is assigned to theDOKAN_OPERATIONS
struct, it will be called andSTATUS_NOT_IMPLEMENTED
will fail the request. So ifFindFilesWithPattern
is not implemented, it must not be assigned toDOKAN_OPERATIONS
struct. Note: This has changed in future release see next section. - It is now mandatory to provide an
DOKAN_OPTIONS.UNCName
whenDOKAN_OPTION_NETWORK
is enabled.
-
FindFilesWithPattern
Dokan v1 logic whereSTATUS_NOT_IMPLEMENTED
could be returned to force theFindFiles
usage and let the library do the filtering is again possible.
Dokan
Project Home | Wiki | Releases | Issues