Επεξεργασία

Κοινή χρήση μέσω


Win32DeleteFile function (shlobj_core.h)

[Win32DeleteFile is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Deletes a file.

Syntax

BOOL Win32DeleteFile(
  [in] PCWSTR pszPath
);

Parameters

[in] pszPath

Type: PCWSTR

A pointer to a buffer that contains the full name of the file to delete.

Return value

Type: BOOL

TRUE if the file was successfully deleted; otherwise FALSE.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlobj_core.h (include Shlobj.h)
DLL Shell32.dll
API set ext-ms-win-shell-shell32-l1-2-1 (introduced in Windows 10, version 10.0.10240)