-
Notifications
You must be signed in to change notification settings - Fork 690
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.
-
DokanInitneeds to be called beforeDokanMainand when Dokan is no longer used by your application you will need to callDokanShutdownto release the allocated internal resource byDokanInit. -
DOKAN_OPTION_ENABLE_FCB_GARBAGE_COLLECTIONno longer exists and was enabled by default. -
DOKAN_OPTION_*values were reassigned. Be sure to use them fromdokan.hor update your values. -
DOKAN_OPTIONS.ThreadCountwas replaced byDOKAN_OPTIONS.SingleThreadif single thread mode is wanted. Otherwise the library will allocate the number of threads regarding the workload. -
PFillFindStreamDataused byDOKAN_OPERATIONS.FindStreamsnow returnsFALSEif the buffer is full, otherwiseTRUE. Also the second parameter is no longer theDOKAN_FILE_INFObut the new pointerFindStreamContextprovided byDOKAN_OPERATIONS.FindStreams. -
DOKAN_OPERATIONS.FindStreamshas a new parameterMountPointthat contains the requested mount point at mount time or a possible new assign drive letter ifDOKAN_OPTION_MOUNT_MANAGERwas used and the requested drive letter was not available. -
DokanGetMountPointListnow returns the newDOKAN_MOUNT_POINT_INFOstruct instead ofDOKAN_CONTROLwhich can also be freed byDokanReleaseMountPointList. -
DokanNotify*functions now require theDOKAN_HANDLEcreated by the new APIDokanCreateFileSystem. - Previously
FindFilesWithPatterncould returnSTATUS_NOT_IMPLEMENTEDandFindFileswould be called right after to process the request. This is no longer the case. IfFindFilesWithPatternis assigned to theDOKAN_OPERATIONSstruct, it will be called andSTATUS_NOT_IMPLEMENTEDwill fail the request. So ifFindFilesWithPatternis not implemented, it must not be assigned toDOKAN_OPERATIONSstruct. Note: This has changed in future release see next section. - It is now mandatory to provide an
DOKAN_OPTIONS.UNCNamewhenDOKAN_OPTION_NETWORKis enabled.
-
FindFilesWithPatternDokan v1 logic whereSTATUS_NOT_IMPLEMENTEDcould be returned to force theFindFilesusage and let the library do the filtering is again possible.
Dokan
Project Home | Wiki | Releases | Issues