107 {
111
114
116
117 if (symlink.length() > 0) {
119 mmp->SymbolicLinkNameLength = (
USHORT)(symlink.length() *
sizeof(
WCHAR));
120 memcpy((
uint8_t*)mmp + mmp->SymbolicLinkNameOffset, symlink.data(), symlink.length() *
sizeof(
WCHAR));
121 }
122
123 if (unique_id.length() > 0) {
124 if (mmp->SymbolicLinkNameLength == 0)
126 else
127 mmp->UniqueIdOffset = mmp->SymbolicLinkNameOffset + mmp->SymbolicLinkNameLength;
128
129 mmp->UniqueIdLength = (
USHORT)(unique_id.length() *
sizeof(
WCHAR));
130 memcpy((
uint8_t*)mmp + mmp->UniqueIdOffset, unique_id.data(), unique_id.length() *
sizeof(
WCHAR));
131 }
132
134 if (mmp->SymbolicLinkNameLength == 0 && mmp->UniqueIdOffset == 0)
136 else if (mmp->SymbolicLinkNameLength != 0)
137 mmp->DeviceNameOffset = mmp->SymbolicLinkNameOffset + mmp->SymbolicLinkNameLength;
138 else
139 mmp->DeviceNameOffset = mmp->UniqueIdOffset + mmp->UniqueIdLength;
140
143 }
144
147
150
153
154 buf2.resize(mmps->Size);
156
159
162
163 for (
ULONG i = 0;
i < mmps->NumberOfMountPoints;
i++) {
164 wstring_view mpsl, mpdn;
165 string_view mpuid;
166
167 if (mmps->MountPoints[
i].SymbolicLinkNameLength)
168 mpsl = wstring_view((
WCHAR*)((
uint8_t*)mmps + mmps->MountPoints[
i].SymbolicLinkNameOffset), mmps->MountPoints[
i].SymbolicLinkNameLength /
sizeof(
WCHAR));
169
170 if (mmps->MountPoints[
i].UniqueIdLength)
171 mpuid = string_view((
char*)((
uint8_t*)mmps + mmps->MountPoints[
i].UniqueIdOffset), mmps->MountPoints[
i].UniqueIdLength);
172
173 if (mmps->MountPoints[
i].DeviceNameLength)
174 mpdn = wstring_view((
WCHAR*)((
uint8_t*)mmps + mmps->MountPoints[
i].DeviceNameOffset), mmps->MountPoints[
i].DeviceNameLength /
sizeof(
WCHAR));
175
176#ifndef __REACTOS__
177 v.emplace_back(mpsl, mpuid, mpdn);
178#else
180#endif
181 }
182
184}
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
#define IOCTL_MOUNTMGR_QUERY_POINTS