 |
RemoveDirectoryTransacted ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Deletes an existing empty directory as a transacted operation. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL WINAPI RemoveDirectoryTransacted(
__in LPCTSTR lpPathName,
__in HANDLE hTransaction
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER RemoveDirectoryTransacted IN kernel32;
STRING lpPathName,;
INTEGER hTransaction
|
 |
 |
 |
| Parameters: |
 |
lpPathName [in]
The path of the directory to be removed. The path must specify an empty directory, and the calling process must have delete access to the directory.
hTransaction [in]
A handle to the transaction. This handle is returned by the CreateTransaction function. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| Usage: |
 |
nResult = RemoveDirectoryTransacted( m.cFilename,;
m.hTransaction )
IF nResult = 0
RollbackTransaction( m.hTransaction )
ELSE
CommitTransaction( m.hTransaction )
ENDIF
|
 |
 |
| My comment: |
 |
Minimal OS: Vista
To recursively delete the files in a directory, use the SHFileOperation function.
See also: DeleteFileTransacted, CreateTransaction, CommitTransaction, RollbackTransaction, RemoveDirectory |
 |
 |
| Word Index links for the RemoveDirectoryTransacted : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2010-05-24 12:09:40 | | Modified: | 2010-05-24 12:14:00 | Visited in last 7 days: 7 |