|
using System;
using System.Runtime.InteropServices;
namespace ShellLib
{
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("91956D21-9276-11D1-921A-006097DF5BD4")]
public interface ICurrentWorkingDirectory
{
/// <summary>
/// Retrieves the current working directory.
/// </summary>
[PreserveSig]
Int32 GetDirectory(
[MarshalAs(UnmanagedType.LPWStr)]
String pwzPath, // Address of a buffer. On return, it will hold a null-terminated Unicode string with
// the current working directory's fully qualified path.
UInt32 cchSize); // Size of the buffer in Unicode characters, including the terminating NULL character.
/// <summary>
/// Sets the current working directory.
/// </summary>
[PreserveSig]
Int32 SetDirectory(
[MarshalAs(UnmanagedType.LPWStr)]
String pwzPath); // Address of a null-terminated Unicode string with the fully qualified path of the
// new working directory.
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Arik Poznanski is a senior software developer at Verint. He completed two B.Sc. degrees in Mathematics & Computer Science, summa cum laude, from the Technion in Israel.
Arik has extensive knowledge and experience in many Microsoft technologies, including .NET with C#, WPF, Silverlight, WinForms, Interop, COM/ATL programming, C++ Win32 programming and reverse engineering (assembly, IL).