ReactOS 0.4.15-dev-8058-ga7cbb60
mswhelper.h
Go to the documentation of this file.
1#ifndef _MSWHELPER_H
2#define _MSWHELPER_H
3
4#include <ws2spi.h>
5
6typedef struct {
10 BYTE* bufendptr; // Pointer to the first "unused" byte
11 BOOL bufok; // FALSE if on mswBuffer-Function fails
13
14void
16 _Out_ PMSW_BUFFER mswBuf,
19
20BOOL
22 _Inout_ PMSW_BUFFER mswBuf,
24
25BOOL
27 _Inout_ PMSW_BUFFER mswBuf,
29
30BYTE*
32 _Inout_ PMSW_BUFFER mswBuf);
33
34BOOL
36 _Inout_ PMSW_BUFFER mswBuf,
37 _In_ void *dataToAppend,
39
40BOOL
42 _Inout_ PMSW_BUFFER mswBuf,
43 _In_ char* str);
44
45BOOL
47 _Inout_ PMSW_BUFFER mswBuf,
48 _In_ WCHAR* str);
49
50BOOL
52 _Inout_ PMSW_BUFFER mswBuf,
53 _In_ void* ptr);
54
55BOOL
57 _Inout_ PMSW_BUFFER mswBuf,
58 _In_ void **lst,
59 _In_ DWORD itemByteLength,
60 _In_opt_ int deltaofs);
61
62BOOL
64 _Inout_ PMSW_BUFFER mswBuf,
65 _In_ void **lst,
66 _In_opt_ int ptrofs);
67
68BOOL
70 _Inout_ PMSW_BUFFER mswBuf,
72 _In_ char** hostAliasesA,
73 _In_ char* hostnameA,
74 _In_ DWORD ip4addr);
75
76BOOL
78 _Inout_ PMSW_BUFFER mswBuf,
80 _In_ char* serviceNameA,
81 _In_ char** serviceAliasesA,
82 _In_ char* protocolNameA,
83 _In_ WORD port);
84
85BOOL
87 _Inout_ PMSW_BUFFER mswBuf,
89 _In_ DWORD ip4addr);
90
91WCHAR*
93 _In_opt_ HANDLE hHeap,
94 _In_ char* aStr);
95
96char*
98 _In_opt_ HANDLE hHeap,
99 _In_ WCHAR* wStr);
100
101WCHAR*
103 _In_opt_ HANDLE hHeap,
104 _In_ WCHAR* wStr);
105
106char*
108 _In_opt_ HANDLE hHeap,
109 _In_ char* aStr);
110
111/* strary:
112 ptr1 ... ptrn \0
113 data1 ... datan
114*/
115char**
117 _In_opt_ HANDLE hHeap,
118 _In_ char** aStrAry);
119
120/* strary:
121 ptr1 ... ptrn \0
122 data1 ... datan
123*/
124char**
126 _In_opt_ HANDLE hHeap,
127 _In_ WCHAR** aStrAry);
128
129#endif // _MSWHELPER_H
USHORT port
Definition: uri.c:228
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
size_t bufferSize
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLuint buffer
Definition: glext.h:5915
GLenum GLsizei dataSize
Definition: glext.h:11123
static PVOID ptr
Definition: dispmode.c:27
#define _Inout_
Definition: ms_sal.h:378
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
BOOL mswBufferIncUsed(_Inout_ PMSW_BUFFER mswBuf, _In_ DWORD count)
Definition: mswhelper.c:39
WCHAR * StrA2WHeapAlloc(_In_opt_ HANDLE hHeap, _In_ char *aStr)
Definition: mswhelper.c:399
char * StrW2AHeapAlloc(_In_opt_ HANDLE hHeap, _In_ WCHAR *wStr)
Definition: mswhelper.c:442
BOOL mswBufferCheck(_Inout_ PMSW_BUFFER mswBuf, _In_ DWORD count)
Definition: mswhelper.c:28
char ** StrAryCpyHeapAllocWToA(_In_opt_ HANDLE hHeap, _In_ WCHAR **aStrAry)
Definition: mswhelper.c:596
BOOL mswBufferAppendAddr_AddrInfoW(_Inout_ PMSW_BUFFER mswBuf, _Inout_ LPWSAQUERYSETW lpRes, _In_ DWORD ip4addr)
Definition: mswhelper.c:352
BOOL mswBufferAppendStrW(_Inout_ PMSW_BUFFER mswBuf, _In_ WCHAR *str)
Definition: mswhelper.c:78
struct MSW_BUFFER * PMSW_BUFFER
BOOL mswBufferAppendBlob_Hostent(_Inout_ PMSW_BUFFER mswBuf, _Inout_ LPWSAQUERYSETW lpRes, _In_ char **hostAliasesA, _In_ char *hostnameA, _In_ DWORD ip4addr)
Definition: mswhelper.c:227
BOOL mswBufferAppendStrA(_Inout_ PMSW_BUFFER mswBuf, _In_ char *str)
Definition: mswhelper.c:71
BOOL mswBufferAppendPtr(_Inout_ PMSW_BUFFER mswBuf, _In_ void *ptr)
Definition: mswhelper.c:86
void mswBufferInit(_Out_ PMSW_BUFFER mswBuf, _In_ BYTE *buffer, _In_ DWORD bufferSize)
char ** StrAryCpyHeapAllocA(_In_opt_ HANDLE hHeap, _In_ char **aStrAry)
Definition: mswhelper.c:530
BOOL mswBufferAppendStrLstA(_Inout_ PMSW_BUFFER mswBuf, _In_ void **lst, _In_opt_ int ptrofs)
Definition: mswhelper.c:160
BYTE * mswBufferEndPtr(_Inout_ PMSW_BUFFER mswBuf)
Definition: mswhelper.c:51
WCHAR * StrCpyHeapAllocW(_In_opt_ HANDLE hHeap, _In_ WCHAR *wStr)
Definition: mswhelper.c:484
char * StrCpyHeapAllocA(_In_opt_ HANDLE hHeap, _In_ char *aStr)
Definition: mswhelper.c:507
BOOL mswBufferAppendLst(_Inout_ PMSW_BUFFER mswBuf, _In_ void **lst, _In_ DWORD itemByteLength, _In_opt_ int deltaofs)
Definition: mswhelper.c:104
BOOL mswBufferAppendBlob_Servent(_Inout_ PMSW_BUFFER mswBuf, _Inout_ LPWSAQUERYSETW lpRes, _In_ char *serviceNameA, _In_ char **serviceAliasesA, _In_ char *protocolNameA, _In_ WORD port)
Definition: mswhelper.c:294
BOOL mswBufferAppend(_Inout_ PMSW_BUFFER mswBuf, _In_ void *dataToAppend, _In_ DWORD dataSize)
Definition: mswhelper.c:57
const WCHAR * str
static LPWSAQUERYSETW
Definition: sock.c:90
BOOL bufok
Definition: mswhelper.h:11
DWORD bytesUsed
Definition: mswhelper.h:7
DWORD bytesMax
Definition: mswhelper.h:8
BYTE * bufendptr
Definition: mswhelper.h:10
BYTE * buffer
Definition: mswhelper.h:9
__wchar_t WCHAR
Definition: xmlstorage.h:180
unsigned char BYTE
Definition: xxhash.c:193