ReactOS 0.4.15-dev-7693-gd0e2924
TmpFile Struct Reference

Public Member Functions

void Create (LPCWSTR Folder)
 
 ~TmpFile ()
 

Public Attributes

WCHAR Buffer [MAX_PATH] = {}
 

Detailed Description

Definition at line 21 of file SHGetAttributesFromDataObject.cpp.

Constructor & Destructor Documentation

◆ ~TmpFile()

TmpFile::~TmpFile ( )
inline

Definition at line 30 of file SHGetAttributesFromDataObject.cpp.

31 {
32 if (Buffer[0])
33 {
36 }
37 }
Definition: bufpool.h:45
#define FILE_ATTRIBUTE_NORMAL
Definition: compat.h:137
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
Definition: delete.c:39
BOOL WINAPI SetFileAttributesW(LPCWSTR lpFileName, DWORD dwFileAttributes)
Definition: fileinfo.c:794

Member Function Documentation

◆ Create()

void TmpFile::Create ( LPCWSTR  Folder)
inline

Definition at line 25 of file SHGetAttributesFromDataObject.cpp.

26 {
27 GetTempFileNameW(Folder, L"SHG", 0, Buffer);
28 }
UINT WINAPI GetTempFileNameW(IN LPCWSTR lpPathName, IN LPCWSTR lpPrefixString, IN UINT uUnique, OUT LPWSTR lpTempFileName)
Definition: filename.c:84
#define L(x)
Definition: ntvdm.h:50

Referenced by test_MultipleFiles().

Member Data Documentation

◆ Buffer

WCHAR TmpFile::Buffer[MAX_PATH] = {}

Definition at line 23 of file SHGetAttributesFromDataObject.cpp.

Referenced by test_MultipleFiles().


The documentation for this struct was generated from the following file: