#include <apitest.h>
#include <windef.h>
#include <winbase.h>
#include <spoolss.h>
Go to the source code of this file.
◆ WIN32_NO_STATUS
◆ START_TEST()
Definition at line 15 of file AlignRpcPtr.c.
16{
18 char* pInputBuffer;
19 char* pOutputBuffer;
22
23
25
26
30 ok(pOutputBuffer == pInputBuffer,
"pOutputBuffer != pInputBuffer\n");
32
33
37 ok(pOutputBuffer == pInputBuffer,
"pOutputBuffer != pInputBuffer\n");
39
40
41
42
46 ok(pOutputBuffer != pInputBuffer,
"pOutputBuffer == pInputBuffer\n");
49
50
54 ok(pOutputBuffer != pInputBuffer,
"pOutputBuffer == pInputBuffer\n");
56
57
61
62
63
64
65
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");
73
74
77
78
79
81
82
85 ok(pcbBuffer == &
cbBuffer,
"pcbBuffer != &cbBuffer\n");
87
89}
_ACRTIMP int __cdecl strcmp(const char *, const char *)
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)