Definition at line 11 of file recyclebin_generic.cpp.
◆ RecycleBinGeneric()
RecycleBinGeneric::RecycleBinGeneric |
( |
| ) |
|
◆ ~RecycleBinGeneric()
RecycleBinGeneric::~RecycleBinGeneric |
( |
| ) |
|
|
virtual |
◆ DeleteFile()
Definition at line 72 of file recyclebin_generic.cpp.
73{
75
76
78 DWORD dwBufferLength = 0;
80 {
83 {
84 if (szFullName)
87 }
88 else if (
len < dwBufferLength)
89 break;
90 if (szFullName)
94 if (!szFullName)
96 }
97
98
100#ifndef __REACTOS__
102 {
105 }
106#else
107 swprintf(szVolume,
L"%c:\\", szFullName[0]);
108#endif
109
110
111 if (szVolume[0] == '\\' &&
112 szVolume[1] == '\\' &&
113 (szVolume[2] == '.' || szVolume[2] == '?') &&
114 szVolume[3] == '\\')
115 {
117 }
118
119 IRecycleBin *prb;
122 {
125 }
126
127 hr = prb->DeleteFile(szFullName);
129 prb->Release();
131}
#define ERROR_NOT_ENOUGH_MEMORY
BOOL WINAPI GetVolumePathNameW(IN LPCWSTR lpszFileName, IN LPWSTR lpszVolumePathName, IN DWORD cchBufferLength)
DWORD WINAPI GetFullPathNameW(IN LPCWSTR lpFileName, IN DWORD nBufferLength, OUT LPWSTR lpBuffer, OUT LPWSTR *lpFilePart)
HRESULT WINAPI GetDefaultRecycleBin(IN LPCWSTR pszVolume OPTIONAL, OUT IRecycleBin **pprb)
VOID WINAPI CoTaskMemFree(LPVOID ptr)
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
DWORD WINAPI GetLastError(void)
#define HRESULT_FROM_WIN32(x)
◆ EmptyRecycleBin()
Definition at line 133 of file recyclebin_generic.cpp.
134{
135 TRACE(
"(%p)\n",
this);
136
138 if (dwLogicalDrives == 0)
140
141 for (
DWORD i = 0;
i <
'Z' -
'A' + 1;
i++)
142 {
143 if (!(dwLogicalDrives & (1 <<
i)))
144 continue;
145
149 continue;
150
151 IRecycleBin *prb;
155
156 hr = prb->EmptyRecycleBin();
158 }
159
161}
UINT WINAPI GetDriveTypeW(IN LPCWSTR lpRootPathName)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
DWORD WINAPI GetLogicalDrives(void)
◆ EnumObjects()
STDMETHODIMP RecycleBinGeneric::EnumObjects |
( |
IRecycleBinEnumList ** |
ppEnumList | ) |
|
|
override |
Definition at line 163 of file recyclebin_generic.cpp.
164{
165 TRACE(
"(%p, %p)\n",
this, ppEnumList);
167}
EXTERN_C HRESULT RecycleBinGenericEnum_Constructor(OUT IRecycleBinEnumList **pprbel)
◆ QueryInterface()
Definition at line 31 of file recyclebin_generic.cpp.
32{
34
37
39 *
ppvObject =
static_cast<IRecycleBin *
>(
this);
40 else
41 {
44 }
45
48}
static ULONG WINAPI AddRef(IStream *iface)
#define IsEqualIID(riid1, riid2)
EXTERN_C const IID IID_IRecycleBin
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
◆ STDMETHODIMP_() [1/2]
RecycleBinGeneric::STDMETHODIMP_ |
( |
ULONG |
| ) |
|
|
override |
◆ STDMETHODIMP_() [2/2]
RecycleBinGeneric::STDMETHODIMP_ |
( |
ULONG |
| ) |
|
|
override |
◆ m_ref
LONG RecycleBinGeneric::m_ref |
|
protected |
The documentation for this class was generated from the following file: