Public Member Functions | |
| HRESULT | EnumDirectoryContent ([in] BSTR szDirectoryPath,[in] BSTR szFilter,[out, retval] LPSAFEARRAY *ppFileInfoArray) |
| HRESULT | StartDirectoryChangesMonitor ([in] BSTR szDirectory,[out, retval] void **ppHandle) |
| HRESULT | ReadDirectoryChanges ([in] void *pHandle,[in] BYTE *pBuffer,[in] DWORD nBufferSize,[out, retval] DWORD *pBytesReturned) |
| HRESULT | StopDirectoryChangesMonitor ([in] void *pHandle) |
| HRESULT | CreateFile ([in] BSTR pszFilePath) |
| HRESULT | WriteFile ([in] BSTR pszFilePath,[in] BYTE *pBuffer,[in] DWORD nSize) |
| HRESULT | ReadFile ([in] BSTR pszFilePath,[in] BYTE *pBuffer,[in] DWORD nBufferSize) |
| HRESULT | FileExist ([in] BSTR szFilePath,[out, retval] BOOL *bExist) |
| HRESULT | GetUniqueFileName ([in] BSTR bszDirectory,[in] BSTR bszBaseName,[in] BSTR bszExt,[in] RtDWORD dwMaxAttempts,[out, retval] BSTR *pbszUniqueName) |
| HRESULT | GetFileInfo ([in] BSTR szFilePath,[out, retval] IRsFileInfo **ppFileInfo) |
| HRESULT | DeleteFile ([in] BSTR szFilePath,[in] BOOL bAllowUndo) |
| HRESULT | RenameFile ([in] BSTR szFilePath,[in] BSTR szNewFileName) |
| HRESULT | RenameDirectory ([in] BSTR szFilePath,[in] BSTR szNewFileName) |
| HRESULT | CopyFile ([in] BSTR bszSourceFilePath,[in] BSTR bszDestinationFilePath) |
| HRESULT | MoveFile ([in] BSTR bszSourceFilePath,[in] BSTR bszDestinationFilePath) |
| HRESULT | CreateDirectory ([in] BSTR szDirectoryPath) |
| HRESULT | DeleteDirectory ([in] BSTR szDirectoryPath,[in] BOOL bAllowUndo) |
| HRESULT | CreateDirectoryRecursive ([in] BSTR szDirectoryPath) |
| HRESULT IRfFileSupport::EnumDirectoryContent | ( | [in] BSTR | szDirectoryPath, | |
| [in] BSTR | szFilter, | |||
| [out, retval] LPSAFEARRAY * | ppFileInfoArray | |||
| ) |
Enumerate directory content.
| szFilter | [in] Specify the filter for the enumeration.
|
Standard HRESULT processing can be applied to the result.
| HRESULT IRfFileSupport::StartDirectoryChangesMonitor | ( | [in] BSTR | szDirectory, | |
| [out, retval] void ** | ppHandle | |||
| ) |
Use this method to attach to a directory events monitoring.
| szDirectory | [in] Specify the directory which you want to monitor. |
Standard HRESULT processing can be applied to the result.
| HRESULT IRfFileSupport::ReadDirectoryChanges | ( | [in] void * | pHandle, | |
| [in] BYTE * | pBuffer, | |||
| [in] DWORD | nBufferSize, | |||
| [out, retval] DWORD * | pBytesReturned | |||
| ) |
Call this method to read the events of the monitored directory.
| pHandle | [in] Directory monitor handle. | |
| pBuffer | [in] Specify pointer to the buffer where the events will be copied.
| |
| nBufferSize | [in] Size of the buffer you specified. |
Standard HRESULT processing can be applied to the result.
| HRESULT IRfFileSupport::StopDirectoryChangesMonitor | ( | [in] void * | pHandle | ) |
Stop the directory monitoring and release the monitor handle.
| pHandle | [in] Handle of the directory monitor you received by StartDirectoryChangesMonitor calling. |
| HRESULT IRfFileSupport::CreateFile | ( | [in] BSTR | pszFilePath | ) |
Call the method to ensure the file exist.
| pszFilePath | [in] File path of the file you want to check/create. |
| HRESULT IRfFileSupport::WriteFile | ( | [in] BSTR | pszFilePath, | |
| [in] BYTE * | pBuffer, | |||
| [in] DWORD | nSize | |||
| ) |
Write buffer to specified file.
| pszFilePath | [in] Specify the file path to which you want write the buffer. | |
| pBuffer | [in] Pointer to buffer you want to write. | |
| nSize | [in] Size of the buffer. |
| HRESULT IRfFileSupport::ReadFile | ( | [in] BSTR | pszFilePath, | |
| [in] BYTE * | pBuffer, | |||
| [in] DWORD | nBufferSize | |||
| ) |
Read buffer from specified file.
| pszFilePath | [in] The file path from which you want read the buffer. | |
| pBuffer | [in] Pointer of the buffer where the data will be read. | |
| nBufferSize | [in] Size of the buffer. |
| HRESULT IRfFileSupport::FileExist | ( | [in] BSTR | szFilePath, | |
| [out, retval] BOOL * | bExist | |||
| ) |
Call to check if a file or directory exist.
| szFilePath | [in] File path you want to check. |
S_OK if the path exist or S_FALSE if it doesn't.
| HRESULT IRfFileSupport::GetUniqueFileName | ( | [in] BSTR | bszDirectory, | |
| [in] BSTR | bszBaseName, | |||
| [in] BSTR | bszExt, | |||
| [in] RtDWORD | dwMaxAttempts, | |||
| [out, retval] BSTR * | pbszUniqueName | |||
| ) |
Call to get unique name in a directory.
| bszDirectory | [in] The directory in which you want get unique file name. | |
| bszBaseName | [in] Base name of the file name. | |
| bszExt | [in] Extension of the file name. | |
| dwMaxAttempts | [in] Specify the maximum attempts to find unique name. |
Standard HRESULT processing can be applied to the result.
| HRESULT IRfFileSupport::GetFileInfo | ( | [in] BSTR | szFilePath, | |
| [out, retval] IRsFileInfo ** | ppFileInfo | |||
| ) |
Call to get file information.
| szFilePath | [in] File path of the file you want it's file information. |
Standard HRESULT processing can be applied to the result.
| HRESULT IRfFileSupport::DeleteFile | ( | [in] BSTR | szFilePath, | |
| [in] BOOL | bAllowUndo | |||
| ) |
Remove specified file.
| szFilePath | [in] File path you want to delete. | |
| bAllowUndo | [in] If TRUE, the file will be moved to Recycle Bin.
|
| HRESULT IRfFileSupport::RenameFile | ( | [in] BSTR | szFilePath, | |
| [in] BSTR | szNewFileName | |||
| ) |
Rename specified file.
| szFilePath | [in] File path you want to rename. | |
| szNewFileName | [in] New file name of the file. |
| HRESULT IRfFileSupport::RenameDirectory | ( | [in] BSTR | szFilePath, | |
| [in] BSTR | szNewFileName | |||
| ) |
Rename specified directory.
| szFilePath | [in] File path of the directory you want to rename. | |
| szNewFileName | [in] New file name of the directory. |
| HRESULT IRfFileSupport::CopyFile | ( | [in] BSTR | bszSourceFilePath, | |
| [in] BSTR | bszDestinationFilePath | |||
| ) |
Copy file.
| bszSourceFilePath | [in] The source path of the file. | |
| bszDestinationFilePath | [in] The destination path of the file. |
| HRESULT IRfFileSupport::MoveFile | ( | [in] BSTR | bszSourceFilePath, | |
| [in] BSTR | bszDestinationFilePath | |||
| ) |
Move file from source to destionation path.
| bszSourceFilePath | [in] The source path of the file. | |
| bszDestinationFilePath | [in] The destination path of the file. |
| HRESULT IRfFileSupport::CreateDirectory | ( | [in] BSTR | szDirectoryPath | ) |
Create specified directory.
| szDirectoryPath | [in] Specify the directory path you want to create. |
| HRESULT IRfFileSupport::DeleteDirectory | ( | [in] BSTR | szDirectoryPath, | |
| [in] BOOL | bAllowUndo | |||
| ) |
Remove specified directory.
| szDirectoryPath | [in] Specify the directory path you want to remove. | |
| bAllowUndo | [in] If TRUE, the directory will be moved to Recycle Bin.
|
| HRESULT IRfFileSupport::CreateDirectoryRecursive | ( | [in] BSTR | szDirectoryPath | ) |
Recursively creates directory with all subpaths specified.
| szDirectoryPath | [in] Specify the directory path you want to create. |
1.5.5