48 ok(
dwSize >= 1024,
"The size is correct\n");
53 ok(
dwSize >= 1500,
"The size is correct\n");
60 ok(pNetApiBufferReallocate(0, 1500, &
p) ==
NERR_Success,
"Reallocate with OldBuffer = NULL failed\n");
61 ok(
p !=
NULL,
"No memory got allocated\n");
64 ok(pNetApiBufferAllocate(1024, &
p) ==
NERR_Success,
"Memory not reserved\n");
66 ok(
p ==
NULL,
"Pointer not cleared\n");
72 ok(
dwSize < 0xFFFFFFFF,
"The size of the 0-length buffer\n");
78 res = pNetApiBufferAllocate(0,
NULL);
80 "returned %d with 0x%x (expected ERROR_INVALID_PARAMETER with "
84 res = pNetApiBufferAllocate(1024,
NULL);
86 "returned %d with 0x%x (expected ERROR_INVALID_PARAMETER with "
94 pNetApiBufferAllocate=(
void*)
GetProcAddress(hnetapi32,
"NetApiBufferAllocate");
95 pNetApiBufferFree=(
void*)
GetProcAddress(hnetapi32,
"NetApiBufferFree");
96 pNetApiBufferReallocate=(
void*)
GetProcAddress(hnetapi32,
"NetApiBufferReallocate");
97 pNetApiBufferSize=(
void*)
GetProcAddress(hnetapi32,
"NetApiBufferSize");
99 if (pNetApiBufferAllocate && pNetApiBufferFree && pNetApiBufferReallocate && pNetApiBufferSize)
102 win_skip(
"Needed functions are not available\n");
#define ERROR_INVALID_PARAMETER
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static LPVOID *static LPDWORD
static void run_apibuf_tests(void)
DWORD WINAPI GetLastError(void)