Skip to content

Commit

Permalink
- Add in function usage of Set / Get File security (Not Tested)
Browse files Browse the repository at this point in the history
- Make sure solution builds in debug
  • Loading branch information
smurfiv_cp authored and smurfiv_cp committed Apr 27, 2011
1 parent 7e9946f commit e1d365b
Show file tree
Hide file tree
Showing 15 changed files with 58 additions and 28 deletions.
14 changes: 9 additions & 5 deletions Liquesce/ChangeLog.rtf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fprq2\fcharset0 Tahoma;}{\f1\fnil\fcharset0 Courier New;}{\f2\fmodern\fprq1\fcharset0 Courier New;}{\f3\fnil Courier New;}}
{\colortbl ;\red0\green0\blue0;\red0\green0\blue255;}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\cf1\lang2057\ul\b\f0\fs20 Welcome to the \i Liquesce \i0 Changelog\cf0\ulnone\b0\f1\par
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\cf1\lang2057\ul\b\f0\fs20 Welcome to the \i Liquesce \i0 Changelog\cf0\ulnone\b0\f1\par
\cf1\f0\par
Currently this is just a place holder for all the cool stuff that will be happening to this project :-)\par
\par
Keep an open eye on the \cf2\ul\b http://liquesce.codeplex.com/\cf1\ulnone\b0 site.\par
Keep an open eye on the \cf2\ul\b{\field{\*\fldinst{HYPERLINK "http://liquesce.codeplex.com/"}}{\fldrslt{\ul\cf2 http://liquesce.codeplex.com/}}}\cf1\ulnone\b0\f0\fs20 site.\par
\par
\cf0\ul\b Some Helpful Information:\ulnone\b0\par
\ul How to get an install log to send if you have a problem:\ulnone\par
Expand All @@ -22,11 +22,14 @@ Keep an open eye on the \cf2\ul\b http://liquesce.codeplex.com/\cf1\ulnone\b0 s
\ulnone\b0 - Fix Issues\par
\par
\ul\b Issue\ulnone\b0\par
- Win 7 (64) <-> win 7 (64) Maybe a Dokan bug see ticket http://code.google.com/p/dokan/issues/detail?id=168\par
- Win 7 (64) <-> win 7 (64) Maybe a Dokan bug see ticket {\field{\*\fldinst{HYPERLINK "http://code.google.com/p/dokan/issues/detail?id=168"}}{\fldrslt{\ul\cf2 http://code.google.com/p/dokan/issues/detail?id=168}}}\f0\fs20\par
\cf1\par
\par
\cf0\ul\b Done\par
\par
2011-04-27\par
\ulnone\b0 - Add correction for IsDirectory in CreateFile open\par
- Add in function usage of Set / Get File security (Not Tested)\ul\b\par
\par
2011-03-09 - Alpha\par
\ulnone\b0 - SetFileTime fixes\par
Expand Down Expand Up @@ -54,14 +57,14 @@ Bring the code upto the changes needed to implement Dokan 0.6.0 \par
Fix DriveLetter to mountPoint conversion \par
Update Dokan.dll binary for dll referencing \par
Implement the #etFileSecurity functions to route through to the Native API's \par
Fix for http://code.google.com/p/dokan/issues/detail?id=198 \par
Fix for {\field{\*\fldinst{HYPERLINK "http://code.google.com/p/dokan/issues/detail?id=198"}}{\fldrslt{\ul\cf2 http://code.google.com/p/dokan/issues/detail?id=198}}}\f0\fs20 \par
Revert back to the char drive letter, Seems to be a bit more reliable (Needs proving) \par
\par
\par
\ul\b 2010-11-25 \ulnone\b0\par
- Fix Write at end of file logic \par
- Start to test the code for the ShareEnabler \par
- Use the Native Read / Write Kernel Api's so that memory is not duplicated in the system; See http://code.google.com/p/dokan/issues/detail?id=174 \par
- Use the Native Read / Write Kernel Api's so that memory is not duplicated in the system; See {\field{\*\fldinst{HYPERLINK "http://code.google.com/p/dokan/issues/detail?id=174"}}{\fldrslt{\ul\cf2 http://code.google.com/p/dokan/issues/detail?id=174}}}\f0\fs20 \par
- Fix the recreation of the share by forcing a delete first. \par
- Changed the way the data is stored in the DokanNet proxy(By removing it !) \par
- All CreateFiles will now increment the counter to try and find who did what \par
Expand Down Expand Up @@ -200,3 +203,4 @@ you can easily find out on which physical disk a file or folder is placed by liq
- Installer installs the service and enables it through the local firewall (May not be needed now using WCF ?) \par
- Service Starts and defaults to the C: drive as the source, producing a Mirror, N as the drive letter\ul\b\par
}
4 changes: 2 additions & 2 deletions Liquesce/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2011.3.15.639")]
[assembly: AssemblyFileVersion("2011.3.15.639")]
[assembly: AssemblyVersion("2011.4.27.640")]
[assembly: AssemblyFileVersion("2011.4.27.640")]
4 changes: 2 additions & 2 deletions LiquesceFaçade/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2011.3.15.431")]
[assembly: AssemblyFileVersion("2011.3.15.431")]
[assembly: AssemblyVersion("2011.4.27.432")]
[assembly: AssemblyFileVersion("2011.4.27.432")]
3 changes: 2 additions & 1 deletion LiquesceSvc/LiquesceOps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public int CreateFile(string dokanPath, uint rawAccessMode, uint rawShare, uint
if (Directory.Exists(actualLocation))
{
actualErrorCode = OpenDirectory(dokanPath, info);
// info.IsDirectory = true;
return actualErrorCode;
}
switch (rawCreationDisposition)
Expand Down Expand Up @@ -1015,7 +1016,7 @@ public int GetFileSecurityNative(string file, ref SECURITY_INFORMATION rawReques
return dokanReturn;
}

public int SetFileSecurityNative(string file, ref SECURITY_INFORMATION rawSecurityInformation, ref SECURITY_DESCRIPTOR rawSecurityDescriptor, ref uint rawSecurityDescriptorLengthNeeded, DokanFileInfo info)
public int SetFileSecurityNative(string file, ref SECURITY_INFORMATION rawSecurityInformation, ref SECURITY_DESCRIPTOR rawSecurityDescriptor, uint rawSecurityDescriptorLength, DokanFileInfo info)
{
Log.Trace("Unmount IN SetFileSecurity[{0}]", info.ProcessId);
int dokanReturn = Dokan.DOKAN_ERROR;
Expand Down
4 changes: 2 additions & 2 deletions LiquesceSvc/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2011.3.15.639")]
[assembly: AssemblyFileVersion("2011.3.15.639")]
[assembly: AssemblyVersion("2011.4.27.641")]
[assembly: AssemblyFileVersion("2011.4.27.641")]
4 changes: 2 additions & 2 deletions LiquesceSvcMEF/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2011.3.15.17")]
[assembly: AssemblyFileVersion("2011.3.15.17")]
[assembly: AssemblyVersion("2011.4.27.18")]
[assembly: AssemblyFileVersion("2011.4.27.18")]
4 changes: 2 additions & 2 deletions LiquesceTray/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2011.3.15.60")]
[assembly: AssemblyFileVersion("2011.3.15.60")]
[assembly: AssemblyVersion("2011.4.27.61")]
[assembly: AssemblyFileVersion("2011.4.27.61")]
4 changes: 2 additions & 2 deletions LiquesceTrayMEF/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2011.3.15.2")]
[assembly: AssemblyFileVersion("2011.3.15.2")]
[assembly: AssemblyVersion("2011.4.27.3")]
[assembly: AssemblyFileVersion("2011.4.27.3")]
4 changes: 2 additions & 2 deletions ServiceMEFs/FolderMEF/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2011.3.15.12")]
[assembly: AssemblyFileVersion("2011.3.15.12")]
[assembly: AssemblyVersion("2011.4.27.13")]
[assembly: AssemblyFileVersion("2011.4.27.13")]
23 changes: 23 additions & 0 deletions ServiceMEFs/PriorityMEF/PriorityMEF.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System.ComponentModel.Composition;
using LiquesceSvcMEF;

namespace PriorityMEF
{
[Export(typeof(ICreateFactory))]
[ExportMetadata("Description", "Priority")]
public class PriorityMEF : ICreateFactory
{
#region Implementation of ICreateFactory

/// <summary>
/// Creates a new class object that implements IServicePlugin
/// </summary>
/// <returns></returns>
public IServicePlugin Create()
{
return new PriorityMEFImpl();
}

#endregion
}
}
4 changes: 2 additions & 2 deletions ServiceMEFs/PriorityMEF/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2011.3.15.13")]
[assembly: AssemblyFileVersion("2011.3.15.13")]
[assembly: AssemblyVersion("2011.4.27.15")]
[assembly: AssemblyFileVersion("2011.4.27.15")]
4 changes: 3 additions & 1 deletion ThirdParty/DokanNet/Dokan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public static int DokanMain(DokanOptions options, IDokanOperations operations)
UnlockFile = proxy.UnlockFileProxy,
GetDiskFreeSpace = proxy.GetDiskFreeSpaceProxy,
GetVolumeInformation = proxy.GetVolumeInformationProxy,
Unmount = proxy.UnmountProxy
Unmount = proxy.UnmountProxy,
GetFileSecurity = proxy.GetFileSecurity,
SetFileSecurity = proxy.SetFileSecurity
};

return DokanDll.DokanMain(ref dokanOptions, ref dokanOperations);
Expand Down
2 changes: 1 addition & 1 deletion ThirdParty/DokanNet/IDokanOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ int SetFileTimeNative(string filename, ref ComTypes.FILETIME rawCreationTime, re

int GetFileSecurityNative(string file, ref SECURITY_INFORMATION rawRequestedInformation, ref SECURITY_DESCRIPTOR rawSecurityDescriptor, uint rawSecurityDescriptorLength, ref uint rawSecurityDescriptorLengthNeeded, DokanFileInfo info);

int SetFileSecurityNative(string file, ref SECURITY_INFORMATION rawSecurityInformation, ref SECURITY_DESCRIPTOR rawSecurityDescriptor, ref uint rawSecurityDescriptorLengthNeeded, DokanFileInfo info);
int SetFileSecurityNative(string file, ref SECURITY_INFORMATION rawSecurityInformation, ref SECURITY_DESCRIPTOR rawSecurityDescriptor, uint rawSecurityDescriptorLength, DokanFileInfo info);
}
}
4 changes: 2 additions & 2 deletions ThirdParty/DokanNet/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("2011.3.15.265")]
[assembly: AssemblyFileVersion("2011.3.15.265")]
[assembly: AssemblyVersion("2011.4.27.266")]
[assembly: AssemblyFileVersion("2011.4.27.266")]
4 changes: 2 additions & 2 deletions ThirdParty/DokanNet/Proxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -852,12 +852,12 @@ public delegate int SetFileSecurityDelegate( IntPtr rawFileName, ref SECURITY_IN
ref SECURITY_DESCRIPTOR rawSecurityDescriptor, uint rawSecurityDescriptorLength, ref DOKAN_FILE_INFO rawFileInfo);

public int SetFileSecurity( IntPtr rawFileName, ref SECURITY_INFORMATION rawSecurityInformation,
ref SECURITY_DESCRIPTOR rawSecurityDescriptor, ref uint rawSecurityDescriptorLengthNeeded, ref DOKAN_FILE_INFO rawFileInfo)
ref SECURITY_DESCRIPTOR rawSecurityDescriptor, uint rawSecurityDescriptorLength, ref DOKAN_FILE_INFO rawFileInfo)
{
try
{
string file = GetFileName(rawFileName);
return operations.SetFileSecurityNative(file, ref rawSecurityInformation, ref rawSecurityDescriptor, ref rawSecurityDescriptorLengthNeeded, ConvertFileInfo(ref rawFileInfo));
return operations.SetFileSecurityNative(file, ref rawSecurityInformation, ref rawSecurityDescriptor, rawSecurityDescriptorLength, ConvertFileInfo(ref rawFileInfo));
}
catch (Exception ex)
{
Expand Down

0 comments on commit e1d365b

Please sign in to comment.