CryptoSys PKI Pro Manual

WIPE_File

Wipe and delete a file using secure 7-pass DOD standards.

VBA/VB6 Syntax

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

nRet = WIPE_File(strFileName, nOptions)

C/C++ Syntax

long __stdcall WIPE_File(const char *szFileName, long nOptions);

Parameters

szFileName
[in] specifying the file to be deleted.
nOptions
[in] Option flags [New in v12.0]. Select one of:
PKI_WIPEFILE_DOD7 (0) to use DOD 7-pass (default)
PKI_WIPEFILE_SIMPLE to overwrite with single pass of zero bytes (quicker but less secure).

Returns (VBA/C)

If successful, the return value is zero; otherwise it returns a nonzero error code.

.NET Equivalent

Wipe.File Method

C++ (STL) Equivalent

static bool dipki::Wipe::File (const std::string fileName, Opts opts=Opts::Dod7Pass)

Python Equivalent

static Wipe.file(filename, opts=Options.DEFAULT)

Remarks

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

Example

nRet = WIPE_File("ToDelete.txt", 0)

See Also

[Contents] [Index]

[PREV: WIPE_Data...]   [Contents]   [Index]   
   [NEXT: X509_CertExpiresOn...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.