#include "ws2_32.h"
#include <ndk/iofuncs.h>
#include <ndk/obfuncs.h>
#include <io.h>
#include <fcntl.h>
Go to the source code of this file.
◆ WINVER_WIN8
◆ run_open_osfhandle()
Definition at line 16 of file open_osfhandle.c.
17{
23
27 return;
28
31
35 {
37 ULONG Characteristics;
40
43 Characteristics = dwWinVersion >=
WINVER_WIN8 ? 0x20000 : 0;
44 ok(
DeviceInfo.Characteristics == Characteristics,
"Expected 0x%lx, got: 0x%lx\n", Characteristics,
DeviceInfo.Characteristics);
45 }
46
49
50 ok(
handle != -1,
"Expected a valid handle (%i)\n",
err);
52 {
53
54
56 }
57 else
58 {
60 }
61}
NTSTATUS NTAPI RtlGetVersion(IN OUT PRTL_OSVERSIONINFOW lpVersionInformation)
DWORD WINAPI GetFileType(HANDLE hFile)
@ FileFsDeviceInformation
GLuint GLuint GLsizei GLenum type
#define FILE_DEVICE_NAMED_PIPE
_CRTIMP int *__cdecl _errno(void)
_Check_return_opt_ _CRTIMP int __cdecl _close(_In_ int _FileHandle)
_CRTIMP int __cdecl _open_osfhandle(_In_ intptr_t _OSFileHandle, _In_ int _Flags)
NTSTATUS NTAPI NtQueryVolumeInformationFile(HANDLE FileHandle, PIO_STATUS_BLOCK IoStatusBlock, PVOID FsInformation, ULONG Length, FS_INFORMATION_CLASS FsInformationClass)
SOCKET WSAAPI WSASocketA(IN INT af, IN INT type, IN INT protocol, IN LPWSAPROTOCOL_INFOA lpProtocolInfo, IN GROUP g, IN DWORD dwFlags)
Referenced by START_TEST().
◆ START_TEST()
START_TEST |
( |
open_osfhandle |
| ) |
|
Definition at line 63 of file open_osfhandle.c.
64{
67 ok(iResult == 0,
"WSAStartup failed, iResult == %d\n", iResult);
70}
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
static void run_open_osfhandle(void)
int PASCAL FAR WSACleanup(void)