Searched defs:hNative (Results 1 - 15 of 15) sorted by relevance

/vbox/src/VBox/Runtime/r3/win/
H A DRTHandleGetStandard-win.cpp65 HANDLE hNative = GetStdHandle(dwStdHandle); local
66 if (hNative == INVALID_HANDLE_VALUE)
70 if (!GetHandleInformation(hNative, &dwInfo))
75 DWORD dwType = GetFileType(hNative);
89 if (!GetNamedPipeInfo(hNative, &fInfo, NULL, NULL, &cMaxInstances))
104 rc = RTFileFromNative(&h.u.hFile, (RTHCUINTPTR)hNative);
108 rc = RTPipeFromNative(&h.u.hPipe, (RTHCUINTPTR)hNative,
114 rc = rtSocketCreateForNative(&h.u.hSocket, (RTHCUINTPTR)hNative);
H A Dfileio-win.cpp367 HANDLE hNative = GetStdHandle(dwStdHandle); local
368 if (hNative == INVALID_HANDLE_VALUE)
371 RTFILE hFile = (RTFILE)(uintptr_t)hNative;
372 AssertReturn((HANDLE)(uintptr_t)hFile == hNative, NIL_RTFILE);
H A Dpipe-win.cpp442 HANDLE hNative = (HANDLE)hNativePipe; local
443 AssertReturn(GetFileType(hNative) == FILE_TYPE_PIPE, VERR_INVALID_HANDLE);
447 if (!GetNamedPipeInfo(hNative, &fInfo, NULL, NULL, &cMaxInstances))
454 if (!GetNamedPipeHandleState(hNative, &fState, &cInstances, NULL, NULL, NULL, 0))
475 pThis->hPipe = hNative;
493 if (DuplicateHandle(GetCurrentProcess() /*hSrcProcess*/, hNative /*hSrcHandle*/,
527 && !SetHandleInformation(hNative,
540 CloseHandle(hNative);
/vbox/src/VBox/Runtime/testcase/
H A DtstRTPipe.cpp102 RTHCINTPTR hNative = RTPipeToNative(hPipeR); local
103 RTTESTI_CHECK_RETV(hNative != -1);
106 RTStrPrintf(szNative, sizeof(szNative), "%RHi", hNative);
165 RTHCINTPTR hNative = RTPipeToNative(hPipeW); local
166 RTTESTI_CHECK_RETV(hNative != -1);
169 RTStrPrintf(szNative, sizeof(szNative), "%RHi", hNative);
/vbox/src/VBox/HostServices/SharedOpenGL/render/
H A Drenderspu_init.c559 HANDLE hNative; local
561 hNative = OpenThread(SYNCHRONIZE|THREAD_QUERY_INFORMATION|THREAD_TERMINATE,
563 if (!hNative)
573 if (hNative && WaitForSingleObject(hNative, 3000)==WAIT_TIMEOUT)
576 if (!TerminateThread(hNative, 1))
583 if (hNative)
585 CloseHandle(hNative);
H A Drenderspu_cocoa.c320 static VBoxGLhandleARB crHndlSearchVBox(GLhandleARB hNative) argument
322 CRASSERT(!(((uintptr_t)hNative) >> 32));
323 return (VBoxGLhandleARB)((uintptr_t)hNative);
331 static VBoxGLhandleARB crHndlAcquireVBox(GLhandleARB hNative) argument
333 CRASSERT(!(((uintptr_t)hNative) >> 32));
334 return (VBoxGLhandleARB)((uintptr_t)hNative);
344 GLhandleARB hNative = crHndlReleaseVBox(obj); local
345 if (!hNative)
351 render_spu.pfnDeleteObject(hNative);
357 GLhandleARB hNative local
396 GLhandleARB hNative = render_spu.pfnGetHandle(pname); local
410 GLhandleARB hNative = crHndlSearchNative(obj); local
422 GLhandleARB hNative = crHndlSearchNative(obj); local
434 GLhandleARB hNative = crHndlSearchNative(obj); local
[all...]
/vbox/src/VBox/Runtime/include/internal/
H A Dldr.h457 uintptr_t hNative; member in struct:RTLDRMODNATIVE
/vbox/src/VBox/Runtime/r3/posix/
H A Dpipe-posix.cpp252 int hNative = (int)hNativePipe; local
254 AssertReturn(fstat(hNative, &st) == 0, RTErrConvertFromErrno(errno));
257 int fFd = fcntl(hNative, F_GETFL, 0);
271 pThis->fd = hNative;
278 if (fcntl(hNative, F_SETFD, fFlags & RTPIPE_N_INHERIT ? 0 : FD_CLOEXEC) == 0)
/vbox/src/VBox/Runtime/r3/
H A Dpoll.cpp756 RTHCINTPTR hNative = -1; local
765 rc = rtPipePollGetHandle(uh.hPipe, fEvents, &hNative);
772 rc = rtSocketPollGetHandle(uh.hSocket, fEvents, &hNative);
825 pThis->pahNative[i] = (HANDLE)hNative;
827 pThis->pahNative[i] = hNative;
829 pThis->paPollFds[i].fd = (int)hNative;
908 RTHCINTPTR const hNative = pThis->pahNative[i]; local
950 APIRET orc = DosDeleteMuxWaitSem(pThis->hmux, (HSEM)hNative);
959 rtPollSetOs2RemoveSocket(pThis, pThis->cReadSockets + pThis->cWriteSockets, &pThis->cXcptSockets, (int)hNative);
961 rtPollSetOs2RemoveSocket(pThis, pThis->cReadSockets, &pThis->cWriteSockets, (int)hNative);
[all...]
H A Dtcp.cpp953 RTHCUINTPTR hNative = RTSocketToNative(Sock); local
954 if (RT_SUCCESS(rc) && rtTcpSetBlockingMode(hNative, false /*fBlocking*/) == 0)
968 FD_SET(hNative, &FdSetR);
972 FD_SET(hNative, &FdSetE);
977 rc = select(hNative + 1, &FdSetR, NULL, &FdSetE, &TvTimeout);
982 if (FD_ISSET(hNative, &FdSetE))
997 ssize_t cbRead = recv(hNative, &abBitBucket[0], sizeof(abBitBucket), MSG_NOSIGNAL);
H A Dsocket.cpp142 RTSOCKETNATIVE hNative; member in struct:RTSOCKETINT
357 if (ioctlsocket(pThis->hNative, FIONBIO, &uBlocking))
361 int fFlags = fcntl(pThis->hNative, F_GETFL, 0);
369 if (fcntl(pThis->hNative, F_SETFL, fFlags) == -1)
400 * @param hNative The native handle.
402 int rtSocketCreateForNative(RTSOCKETINT **ppSocket, RTSOCKETNATIVE hNative) argument
409 pThis->hNative = hNative;
451 RTSOCKETNATIVE hNative = socket(iDomain, iType, iProtocol); local
452 if (hNative
504 RTSOCKETNATIVE hNative = pThis->hNative; local
[all...]
/vbox/src/VBox/HostDrivers/Support/
H A DSUPR3HardenedVerify.cpp1256 * @param hNative The native handle to the object @a pszPath
1264 static int supR3HardenedQueryFsObjectByHandle(RTHCUINTPTR hNative, PSUPR3HARDENEDFSOBJSTATE pFsObjState, argument
1276 if (fstat((int)hNative, &pFsObjState->Stat) != 0)
1448 * @param hNative The native handle to the object @a pszPath
1457 static int supR3HardenedVerifySameFsObject(RTHCUINTPTR hNative, PCSUPR3HARDENEDFSOBJSTATE pFsObjState, argument
1461 int rc = supR3HardenedQueryFsObjectByHandle(hNative, &FsObjState2, pszPath, pErrInfo);
/vbox/src/VBox/Runtime/r3/os2/
H A Dpipe-os2.cpp272 HPIPE hNative = (HPIPE)hNativePipe; local
275 APIRET orc = DosQueryHType(hNative, &ulType, &ulAttr);
285 orc = DosQueryNPipeInfo(hNative, 1, &Buf, sizeof(Buf));
296 orc = DosQueryNPHState(hNative, &fPipeState);
308 orc = DosQueryFHState(hNative, &fFileState);
317 orc = DosSetFHState(hNative, (fFileState & (OPEN_FLAGS_WRITE_THROUGH | OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NO_CACHE))
333 pThis->hPipe = hNative;
/vbox/src/VBox/Additions/common/crOpenGL/
H A Dload.c403 HANDLE hNative; local
406 hNative = OpenThread(SYNCHRONIZE|THREAD_QUERY_INFORMATION|THREAD_TERMINATE,
408 if (!hNative)
414 crDebug("Got handle %p for thread %#x", hNative, RTThreadGetNative(stub.hSyncThread));
429 if (WaitForSingleObject(hNative, 100)==WAIT_TIMEOUT)
432 if (!TerminateThread(hNative, 1))
437 if (GetExitCodeThread(hNative, &ec))
439 crDebug("Thread %p exited with ec=%i", hNative, ec);
451 if (hNative)
453 CloseHandle(hNative);
[all...]
/vbox/src/VBox/ExtPacks/VBoxDTrace/include/
H A DVBoxDTraceTypes.h229 RTNATIVETHREAD hNative; member in struct:VBoxDtThread

Completed in 454 milliseconds