46 if (!DuplicatedString) GoOn =
FALSE;
57 DuplicatedString =
NULL;
63 return DuplicatedString;
92 if (!DuplicatedString) GoOn =
FALSE;
103 DuplicatedString =
NULL;
109 return DuplicatedString;
132 if (AnsiSet->lpszServiceInstanceName)
139 if (AnsiSet->lpServiceClassId)
147 if (AnsiSet->lpVersion)
155 if (AnsiSet->lpszComment)
163 if (AnsiSet->lpNSProviderId)
171 if (AnsiSet->lpszContext)
179 if (AnsiSet->lpszQueryString)
187 if (AnsiSet->lpafpProtocols)
195 if (AnsiSet->lpcsaBuffer)
201 for (
i = 0;
i < AnsiSet->dwNumberOfCsAddrs;
i++)
204 if (AnsiSet->lpcsaBuffer[
i].LocalAddr.lpSockaddr)
208 Size += AnsiSet->lpcsaBuffer[
i].LocalAddr.iSockaddrLength;
211 if (AnsiSet->lpcsaBuffer[
i].RemoteAddr.lpSockaddr)
215 Size += AnsiSet->lpcsaBuffer[
i].RemoteAddr.iSockaddrLength;
231 if (AnsiSet->lpBlob)
Size += AnsiSet->lpBlob->cbSize;
282 if ((Blob->pBlobData) && (Blob->cbSize))
304 for (
i = 0;
i < Addresses;
i++)
307 if ((Csaddr[
i].LocalAddr.lpSockaddr) &&
308 (Csaddr[
i].LocalAddr.iSockaddrLength))
311 RelativeCsaddr[
i].LocalAddr.lpSockaddr =
313 Csaddr[
i].LocalAddr.iSockaddrLength,
316 Csaddr[
i].LocalAddr.lpSockaddr,
317 Csaddr[
i].LocalAddr.iSockaddrLength);
322 Csaddr[
i].LocalAddr.lpSockaddr =
NULL;
323 Csaddr[
i].LocalAddr.iSockaddrLength = 0;
327 if ((Csaddr[
i].RemoteAddr.lpSockaddr) &&
328 (Csaddr[
i].RemoteAddr.iSockaddrLength))
331 RelativeCsaddr[
i].RemoteAddr.lpSockaddr =
333 Csaddr[
i].RemoteAddr.iSockaddrLength,
336 Csaddr[
i].RemoteAddr.lpSockaddr,
337 Csaddr[
i].RemoteAddr.iSockaddrLength);
342 Csaddr[
i].RemoteAddr.lpSockaddr =
NULL;
343 Csaddr[
i].RemoteAddr.iSockaddrLength = 0;
357 AnsiString = AnsiSet->lpszServiceInstanceName;
370 RelativeSet->lpszServiceInstanceName =
NULL;
374 if (AnsiSet->lpServiceClassId)
381 *(RelativeSet->lpServiceClassId) = *(AnsiSet->lpServiceClassId);
386 RelativeSet->lpServiceClassId =
NULL;
390 if (AnsiSet->lpVersion)
397 *(RelativeSet->lpVersion) = *(AnsiSet->lpVersion);
402 RelativeSet->lpVersion =
NULL;
419 RelativeSet->lpszComment =
NULL;
423 if (AnsiSet->lpNSProviderId)
430 *(RelativeSet->lpNSProviderId) = *(AnsiSet->lpNSProviderId);
435 RelativeSet->lpNSProviderId =
NULL;
452 RelativeSet->lpszContext =
NULL;
469 RelativeSet->lpszQueryString =
NULL;
473 if ((AnsiSet->lpafpProtocols) && (AnsiSet->dwNumberOfProtocols))
477 AnsiSet->dwNumberOfProtocols *
482 AnsiSet->lpafpProtocols,
483 AnsiSet->dwNumberOfProtocols *
sizeof(
AFPROTOCOLS));
488 RelativeSet->lpafpProtocols =
NULL;
489 RelativeSet->dwNumberOfProtocols = 0;
493 if ((AnsiSet->lpcsaBuffer) && (AnsiSet->dwNumberOfCsAddrs))
497 AnsiSet->dwNumberOfCsAddrs *
503 AnsiSet->lpcsaBuffer,
508 RelativeSet->lpcsaBuffer,
509 AnsiSet->dwNumberOfCsAddrs,
510 AnsiSet->lpcsaBuffer);
515 RelativeSet->lpcsaBuffer =
NULL;
516 RelativeSet->dwNumberOfCsAddrs = 0;
526 *(RelativeSet->lpBlob) = *(AnsiSet->lpBlob);
534 RelativeSet->lpBlob =
NULL;
561 RelativeSet->lpszServiceInstanceName =
NULL;
565 if (UnicodeSet->lpServiceClassId)
572 *(RelativeSet->lpServiceClassId) = *(UnicodeSet->lpServiceClassId);
577 RelativeSet->lpServiceClassId =
NULL;
581 if (UnicodeSet->lpVersion)
588 *(RelativeSet->lpVersion) = *(UnicodeSet->lpVersion);
593 RelativeSet->lpVersion =
NULL;
611 RelativeSet->lpszComment =
NULL;
615 if (UnicodeSet->lpNSProviderId)
622 *(RelativeSet->lpNSProviderId) = *(UnicodeSet->lpNSProviderId);
627 RelativeSet->lpNSProviderId =
NULL;
645 RelativeSet->lpszContext =
NULL;
663 RelativeSet->lpszQueryString =
NULL;
667 if ((UnicodeSet->lpafpProtocols) && (UnicodeSet->dwNumberOfProtocols))
671 UnicodeSet->dwNumberOfProtocols *
676 UnicodeSet->lpafpProtocols,
677 UnicodeSet->dwNumberOfProtocols *
sizeof(
AFPROTOCOLS));
682 RelativeSet->lpafpProtocols =
NULL;
683 RelativeSet->dwNumberOfProtocols = 0;
687 if ((UnicodeSet->lpcsaBuffer) && (UnicodeSet->dwNumberOfCsAddrs))
691 UnicodeSet->dwNumberOfCsAddrs *
697 UnicodeSet->lpcsaBuffer,
698 UnicodeSet->dwNumberOfCsAddrs *
sizeof(
CSADDR_INFO));
702 RelativeSet->lpcsaBuffer,
703 UnicodeSet->dwNumberOfCsAddrs,
704 UnicodeSet->lpcsaBuffer);
709 RelativeSet->lpcsaBuffer =
NULL;
710 RelativeSet->dwNumberOfCsAddrs = 0;
714 if (UnicodeSet->lpBlob)
720 *(RelativeSet->lpBlob) = *(UnicodeSet->lpBlob);
728 RelativeSet->lpBlob =
NULL;
791 *NewSet = *UnicodeSet;
813 SIZE_T AnsiSize, UnicodeSize;
849 UnicodeCopy->lpszServiceInstanceName = ServiceCopy;
865 UnicodeCopy->lpszContext = ContextCopy;
881 UnicodeCopy->lpszComment = CommentCopy;
897 UnicodeCopy->lpszQueryString = QueryCopy;
902 if (UnicodeSize > *SetSize)
905 *SetSize = UnicodeSize;
934 SIZE_T UnicodeSize, AnsiSize;
958 if (UnicodeCopy->lpszServiceInstanceName)
974 if (UnicodeCopy->lpszContext)
990 if (UnicodeCopy->lpszComment)
1006 if (UnicodeCopy->lpszQueryString)
1023 if (AnsiSize > *SetSize)
1026 *SetSize = AnsiSize;
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
UINT32 void void ** ReturnValue
#define HeapFree(x, y, z)
#define WideCharToMultiByte
#define MultiByteToWideChar
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
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_In_ NDIS_ERROR_CODE ErrorCode
_In_ ULONG _In_ ULONG _In_ ULONG Length
SIZE_T WSAAPI WSAComputeQuerySetSizeA(IN LPWSAQUERYSETA AnsiSet)
INT WSAAPI MapUnicodeQuerySetToAnsi(IN LPWSAQUERYSETW UnicodeSet, IN OUT PSIZE_T SetSize, OUT LPWSAQUERYSETA AnsiSet)
VOID WSAAPI CopyQuerySetIndirectW(IN PWS_BUFFER Buffer, IN OUT LPWSAQUERYSETW RelativeSet, IN LPWSAQUERYSETW UnicodeSet)
INT WSAAPI WSABuildQuerySetBufferW(IN LPWSAQUERYSETW UnicodeSet, IN SIZE_T BufferSize, OUT LPWSAQUERYSETW RelativeSet)
SIZE_T WSAAPI WSAComputeQuerySetSizeW(IN LPWSAQUERYSETW UnicodeSet)
PVOID WSAAPI WsBufferAllocate(IN PWS_BUFFER Buffer, IN SIZE_T Size, IN DWORD Align)
VOID WSAAPI CopyQuerySetIndirectA(IN PWS_BUFFER Buffer, IN OUT LPWSAQUERYSETA RelativeSet, IN LPWSAQUERYSETA AnsiSet)
INT WSAAPI CopyQuerySetW(IN LPWSAQUERYSETW UnicodeSet, OUT LPWSAQUERYSETW *UnicodeCopy)
VOID WSAAPI CopyBlobIndirect(IN PWS_BUFFER Buffer, IN OUT LPBLOB RelativeBlob, IN LPBLOB Blob)
SIZE_T WSAAPI ComputeQuerySetSize(IN LPWSAQUERYSETA AnsiSet, IN BOOLEAN IsUnicode)
SIZE_T WSAAPI ComputeStringSize(IN LPSTR String, IN BOOLEAN IsUnicode)
INT WSAAPI MapAnsiQuerySetToUnicode(IN LPWSAQUERYSETA AnsiSet, IN OUT PSIZE_T SetSize, OUT LPWSAQUERYSETW UnicodeSet)
INT WSAAPI WSABuildQuerySetBufferA(IN LPWSAQUERYSETA AnsiSet, IN SIZE_T BufferSize, OUT LPWSAQUERYSETA RelativeSet)
LPSTR WSAAPI AnsiDupFromUnicode(IN LPCWSTR UnicodeString)
LPWSTR WSAAPI UnicodeDupFromAnsi(IN LPCSTR AnsiString)
VOID WSAAPI CopyAddrInfoArrayIndirect(IN PWS_BUFFER Buffer, IN OUT LPCSADDR_INFO RelativeCsaddr, IN DWORD Addresses, IN LPCSADDR_INFO Csaddr)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
LPSTR lpszServiceInstanceName
#define RtlCopyMemory(Destination, Source, Length)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
struct _WSAQuerySetA * LPWSAQUERYSETA
struct _WSAQuerySetA WSAQUERYSETA
struct _AFPROTOCOLS AFPROTOCOLS
struct _WSAVersion WSAVERSION
#define WSA_NOT_ENOUGH_MEMORY
struct _CSADDR_INFO CSADDR_INFO