CryptoSys API Library Manual

WIPE_File

WIPE_File securely wipes and deletes a file using 7-pass DOD standards.

VB6/VBA Syntax

Public Declare Function WIPE_File Lib "diCryptoSys.dll" (ByVal strFileName As String, ByVal nOptions As Long) As Long

nRet = WIPE_File(strFileName, nOptions)

Parameters

strFileName
[in] String specifying the file to be deleted.
nOptions
[in] Long option flags: not used in this release. Specify zero.

C/C++ Syntax

long _stdcall WIPE_File(const char *szFileName, long flags);

Returns (VB6/C)

Long: If successful, the return value is zero; otherwise it returns an error code.

.NET Equivalent

Wipe.File Method

Remarks

Wipes a file using the 7-pass DOD Standard according to [NISPOM] before deleting.

Example

Dim nRet as Long
Dim strFileName as String
strFileName = "ToDelete.txt"
nRet = WIPE_File(strFileName, 0)
If nRet = 0 Then
	Debug.Print "Deleted File '" & strFileName & "' OK"
Else
	Debug.Print "ERROR: Unable to delete file '" & strFileName & "'"
End If

See Also

WIPE_Data

[Contents] [Index]

[HOME]   [NEXT: ZLIB_Deflate...]

Copyright © 2001-9 D.I. Management Services Pty Ltd. All rights reserved.