ReactOS  0.4.15-dev-5618-g8866b9d
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  }
BOOL WINAPI SetFileAttributesW(LPCWSTR lpFileName, DWORD dwFileAttributes)
Definition: fileinfo.c:794
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
Definition: delete.c:39
Definition: bufpool.h:45
#define FILE_ATTRIBUTE_NORMAL
Definition: compat.h:137

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  }
#define L(x)
Definition: ntvdm.h:50
Definition: bufpool.h:45
UINT WINAPI GetTempFileNameW(IN LPCWSTR lpPathName, IN LPCWSTR lpPrefixString, IN UINT uUnique, OUT LPWSTR lpTempFileName)
Definition: filename.c:84

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: