10#define WIN32_NO_STATUS
29 pOutputBuffer = (
char*)
AlignRpcPtr(pInputBuffer, &cbBuffer);
30 ok(pOutputBuffer == pInputBuffer,
"pOutputBuffer != pInputBuffer\n");
31 ok(cbBuffer == 8,
"cbBuffer is %lu\n", cbBuffer);
36 pOutputBuffer = (
char*)
AlignRpcPtr(pInputBuffer, &cbBuffer);
37 ok(pOutputBuffer == pInputBuffer,
"pOutputBuffer != pInputBuffer\n");
38 ok(cbBuffer == 4,
"cbBuffer is %lu\n", cbBuffer);
45 pOutputBuffer = (
char*)
AlignRpcPtr(pInputBuffer, &cbBuffer);
46 ok(pOutputBuffer != pInputBuffer,
"pOutputBuffer == pInputBuffer\n");
47 ok(cbBuffer == 8,
"cbBuffer is %lu\n", cbBuffer);
53 pOutputBuffer = (
char*)
AlignRpcPtr(pInputBuffer, &cbBuffer);
54 ok(pOutputBuffer != pInputBuffer,
"pOutputBuffer == pInputBuffer\n");
55 ok(cbBuffer == 4,
"cbBuffer is %lu\n", cbBuffer);
60 ok(cbBuffer == 4,
"cbBuffer is %lu\n", cbBuffer);
66 strcpy(pOutputBuffer,
"abc");
67 strcpy(pInputBuffer,
"XXXXXXXXX");
70 ok(
strcmp(pInputBuffer,
"abc") == 0,
"pInputBuffer is %s\n", pInputBuffer);
71 ok(pcbBuffer == &cbBuffer,
"pcbBuffer != &cbBuffer\n");
72 ok(cbBuffer == 8,
"cbBuffer is %lu\n", cbBuffer);
83 cbBuffer = 0xFFFFFFFD;
85 ok(pcbBuffer == &cbBuffer,
"pcbBuffer != &cbBuffer\n");
86 ok(cbBuffer == 0,
"cbBuffer is %lu\n", cbBuffer);
int strcmp(const char *String1, const char *String2)
char * strcpy(char *DstString, const char *SrcString)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
PVOID WINAPI AlignRpcPtr(PVOID pBuffer, PDWORD pcbBuffer)
PDWORD WINAPI UndoAlignRpcPtr(PVOID pDestinationBuffer, PVOID pSourceBuffer, DWORD cbBuffer, PDWORD pcbNeeded)