/reactos/dll/win32/winhttp/ |
H A D | handle.c | 45 static struct object_header **handles; variable 63 if ((handle > 0) && (handle <= max_handles) && handles[handle - 1]) in grab_object() 64 hdr = addref_object( handles[handle - 1] ); in grab_object() 101 handles = p; in alloc_handle() 108 handles = p; in alloc_handle() 112 if (handles[handle]) ERR("handle isn't free but should be\n"); in alloc_handle() 114 handles[handle] = addref_object( hdr ); in alloc_handle() 134 if (handles[handle]) in free_handle() 136 hdr = handles[handle]; in free_handle() 138 handles[handle] = NULL; in free_handle() [all …]
|
/reactos/dll/opengl/glu32/src/libtess/ |
H A D | priorityq-heap.c | 71 pq->handles = (PQhandleElem *)memAlloc( (INIT_SIZE + 1) * sizeof(pq->handles[0]) ); in pqNewPriorityQ() 72 if (pq->handles == NULL) { in pqNewPriorityQ() 83 pq->handles[1].key = NULL; in pqNewPriorityQ() 90 memFree( pq->handles ); in pqDeletePriorityQ() 99 PQhandleElem *h = pq->handles; in FloatDown() 129 PQhandleElem *h = pq->handles; in FloatUp() 182 pq->handles = (PQhandleElem *)memRealloc( pq->handles, in pqInsert() 185 sizeof( pq->handles[0] ))); in pqInsert() 186 if (pq->handles == NULL) { in pqInsert() 214 PQhandleElem *h = pq->handles; in pqExtractMin() [all …]
|
H A D | priorityq-heap.h | 88 PQhandleElem *handles; member 104 #define __gl_pqHeapMinimum(pq) ((pq)->handles[(pq)->nodes[1].handle].key)
|
/reactos/boot/freeldr/freeldr/arch/uefi/ |
H A D | uefidisk.c | 62 static EFI_HANDLE* handles = NULL; variable 164 … GlobalSystemTable->BootServices->HandleProtocol(handles[UefiDriveNumber], &bioGuid, (void**)&bio); in UefiDiskOpen() 400 handles = MmAllocateMemoryWithType(handle_size, LoaderFirmwareTemporary); in UefiSetupBlockDevices() 409 … Status = GlobalSystemTable->BootServices->HandleProtocol(handles[i], &bioGuid, (void**)&bio); in UefiSetupBlockDevices() 410 if (handles[i] == PublicBootHandle) in UefiSetupBlockDevices() 432 else if (handles[i] == PublicBootHandle) in UefiSetupBlockDevices() 440 … GlobalSystemTable->BootServices->HandleProtocol(handles[increment], &bioGuid, (void**)&bio); in UefiSetupBlockDevices() 469 …GlobalSystemTable->BootServices->HandleProtocol(handles[UefiBootRootIdentifier], &bioGuid, (void**… in UefiSetBootpath() 566 … GlobalSystemTable->BootServices->HandleProtocol(handles[UefiDriveNumber], &bioGuid, (void**)&bio); in UefiDiskReadLogicalSectors() 579 … GlobalSystemTable->BootServices->HandleProtocol(handles[UefiDriveNumber], &bioGuid, (void**)&bio); in UefiDiskGetDriveGeometry() [all …]
|
/reactos/win32ss/gdi/gdi32/wine/mfdrv/ |
H A D | objects.c | 45 if(physDev->handles[index] == 0) break; in MFDRV_AddHandle() 48 physDev->handles = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, in MFDRV_AddHandle() 49 physDev->handles, in MFDRV_AddHandle() 50 physDev->handles_size * sizeof(physDev->handles[0])); in MFDRV_AddHandle() 52 physDev->handles[index] = get_full_gdi_handle( obj ); in MFDRV_AddHandle() 69 if (index < physDev->handles_size && physDev->handles[index]) in MFDRV_RemoveHandle() 71 physDev->handles[index] = 0; in MFDRV_RemoveHandle() 87 if(physDev->handles[index] == obj) break; in MFDRV_FindObject() 116 physDev->handles[index] = 0; in MFDRV_DeleteObject()
|
H A D | init.c | 260 …physDev->handles = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, HANDLE_LIST_INC * sizeof(physDev-… in MFDRV_AllocMetaFile() 299 if(physDev->handles[index]) in MFDRV_DeleteDC() 300 GDI_hdc_not_using_object(physDev->handles[index], dev->hdc); in MFDRV_DeleteDC() 301 HeapFree( GetProcessHeap(), 0, physDev->handles ); in MFDRV_DeleteDC()
|
/reactos/win32ss/user/ntuser/ |
H A D | object.c | 327 HandleCounts[gHandleTable->handles[i].type]++; in DbgUserDumpHandleTable() 347 if (!ht->handles[index].type) in handle_to_entry() 350 if (generation == ht->handles[index].generation || !generation || generation == 0xffff) in handle_to_entry() 351 return &ht->handles[index]; in handle_to_entry() 357 int index = ptr - ht->handles; in entry_to_handle() 391 if (!(new_handles = UserHeapReAlloc( ht->handles, new_size * sizeof(*ht->handles) ))) in alloc_user_entry() 393 ht->handles = new_handles; in alloc_user_entry() 398 entry = &ht->handles[ht->nb_handles++]; in alloc_user_entry() 410 ht->handles = mem; in UserInitHandleTable() 763 Entry = &Table->handles[i]; in UserDestroyObjectsForOwner()
|
/reactos/win32ss/gdi/gdi32/wine/enhmfdrv/ |
H A D | objects.c | 41 if(physDev->handles[index] == 0) break; in EMFDRV_AddHandle() 44 physDev->handles = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, in EMFDRV_AddHandle() 45 physDev->handles, in EMFDRV_AddHandle() 46 physDev->handles_size * sizeof(physDev->handles[0])); in EMFDRV_AddHandle() 48 physDev->handles[index] = get_full_gdi_handle( obj ); in EMFDRV_AddHandle() 66 if(physDev->handles[index] == obj) break; in EMFDRV_FindObject() 93 physDev->handles[index - 1] = 0; in EMFDRV_DeleteObject()
|
H A D | init.c | 181 if(physDev->handles[index]) in EMFDRV_DeleteDC() 182 GDI_hdc_not_using_object(physDev->handles[index], dev->hdc); in EMFDRV_DeleteDC() 183 HeapFree( GetProcessHeap(), 0, physDev->handles ); in EMFDRV_DeleteDC() 348 …physDev->handles = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, HANDLE_LIST_INC * sizeof(physDev-… in CreateEnhMetaFileW()
|
/reactos/modules/rostests/winetests/ole32/ |
H A D | compobj.c | 2565 HANDLE *handles = arg, event, thread; in test_CoWaitForMultipleHandles_thread() local 2654 HANDLE handles[2], thread; in test_CoWaitForMultipleHandles() local 2678 handles[0] = CreateSemaphoreA(NULL, 1, 1, NULL); in test_CoWaitForMultipleHandles() 2680 handles[1] = CreateSemaphoreA(NULL, 1, 1, NULL); in test_CoWaitForMultipleHandles() 2757 ReleaseSemaphore(handles[0], 1, NULL); in test_CoWaitForMultipleHandles() 2758 ReleaseSemaphore(handles[1], 1, NULL); in test_CoWaitForMultipleHandles() 2778 ReleaseSemaphore(handles[0], 1, NULL); in test_CoWaitForMultipleHandles() 2779 ReleaseSemaphore(handles[1], 1, NULL); in test_CoWaitForMultipleHandles() 2838 if (hr != S_OK) ReleaseSemaphore(handles[1], 1, NULL); in test_CoWaitForMultipleHandles() 3029 CloseHandle(handles[0]); in test_CoWaitForMultipleHandles() [all …]
|
/reactos/drivers/bus/acpi/busmgr/ |
H A D | power.c | 168 result = acpi_power_get_state(list->handles[i], &state1); in acpi_power_get_list_state() 368 int ret = acpi_power_on(dev->wakeup.resources.handles[i], dev); in acpi_enable_wakeup_device_power() 425 dev->wakeup.resources.handles[i], dev); in acpi_disable_wakeup_device_power() 509 result = acpi_power_on(tl->handles[i], device); in acpi_power_transition() 522 result = acpi_power_off_device(cl->handles[i], device); in acpi_power_transition()
|
/reactos/modules/rostests/winetests/msvcrt/ |
H A D | file.c | 1397 handle_ptr[i] = handles[i]; in create_io_inherit_block() 1462 HANDLE handles[3]; in test_file_inherit() local 1503 handles[0] = GetStdHandle( STD_INPUT_HANDLE ); in test_file_inherit() 1506 handles[2] = GetStdHandle( STD_ERROR_HANDLE ); in test_file_inherit() 1507 create_io_inherit_block( &startup, 3, handles ); in test_file_inherit() 1509 CloseHandle( handles[1] ); in test_file_inherit() 1515 create_io_inherit_block( &startup, 3, handles ); in test_file_inherit() 1518 CloseHandle( handles[1] ); in test_file_inherit() 1527 CloseHandle( handles[1] ); in test_file_inherit() 1536 CloseHandle( handles[1] ); in test_file_inherit() [all …]
|
/reactos/win32ss/gdi/gdi32/wine/ |
H A D | metadc.c | 50 HGDIOBJ *handles; member 502 if (metadc->handles[index] == 0) break; in metadc_add_handle() 507 metadc->handles, in metadc_add_handle() 510 metadc->handles[index] = get_full_gdi_handle( obj ); in metadc_add_handle() 523 if (index < metadc->handles_size && metadc->handles[index]) in metadc_remove_handle() 525 metadc->handles[index] = 0; in metadc_remove_handle() 1010 if (metadc->handles[index] == obj) return index; in metadc_find_object() 1034 metadc->handles[index] = 0; in METADC_DeleteObject() 1312 if(metadc->handles[index]) in metadc_free() 1314 HeapFree( GetProcessHeap(), 0, metadc->handles ); in metadc_free() [all …]
|
H A D | metafile.c | 540 BOOL WINAPI PlayMetaFileRecord( HDC hdc, HANDLETABLE *ht, METARECORD *mr, UINT handles ) in PlayMetaFileRecord() argument 546 TRACE("(%p %p %p %u) function %04x\n", hdc, ht, mr, handles, mr->rdFunction); in PlayMetaFileRecord() 760 MF_AddHandle(ht, handles, in PlayMetaFileRecord() 771 MF_AddHandle(ht, handles, CreateDIBPatternBrushPt( infohdr, mr->rdParm[1] )); in PlayMetaFileRecord() 788 MF_AddHandle(ht, handles, CreatePenIndirect( &pen )); in PlayMetaFileRecord() 809 MF_AddHandle(ht, handles, CreateFontIndirectA( &font )); in PlayMetaFileRecord() 819 MF_AddHandle(ht, handles, CreateBrushIndirect( &brush )); in PlayMetaFileRecord() 824 MF_AddHandle(ht, handles, CreatePalette((LPLOGPALETTE)mr->rdParm)); in PlayMetaFileRecord() 922 MF_AddHandle(ht, handles, hrgn); in PlayMetaFileRecord() 957 MF_AddHandle(ht, handles, CreateDIBPatternBrushPt( mr->rdParm + 2, mr->rdParm[1] )); in PlayMetaFileRecord()
|
/reactos/sdk/lib/rtl/ |
H A D | wait.c | 48 HANDLE handles[2] = { Wait->CancelEvent, Wait->Object }; in Wait_thread_proc() local 57 handles, in Wait_thread_proc()
|
/reactos/modules/rostests/apitests/fltlib/ |
H A D | handles.c | 42 START_TEST(handles) in START_TEST() argument
|
H A D | CMakeLists.txt | 4 handles.c
|
/reactos/modules/rosapps/applications/devutils/gdihv/ |
H A D | gdihv.rc | 13 PUSHBUTTON "Refresh handles", IDC_REFRESHHANDLE, 200, 230, 80, 14, WS_CLIPSIBLINGS | WS_TABSTOP
|
/reactos/modules/rostests/winetests/kernel32/ |
H A D | change.c | 336 HANDLE handles[2]; in test_ffcnMultipleThreads() local 352 handles[0] = FindFirstChangeNotificationA(path, FALSE, filter); in test_ffcnMultipleThreads() 353 … ok(handles[0] != INVALID_HANDLE_VALUE, "FindFirstChangeNotification error: %d\n", GetLastError()); in test_ffcnMultipleThreads() 359 handles[1] = CreateThread(NULL, 0, NotificationThread, handles[0], 0, in test_ffcnMultipleThreads() 361 ok(handles[1] != NULL, "CreateThread error: %d\n", GetLastError()); in test_ffcnMultipleThreads() 363 status = WaitForMultipleObjects(2, handles, FALSE, 5000); in test_ffcnMultipleThreads() 365 ok(GetExitCodeThread(handles[1], &exitcode), "Could not retrieve thread exit code\n"); in test_ffcnMultipleThreads()
|
H A D | process.c | 3815 HANDLE handles[4]; in test_ProcThreadAttributeList() local 3842 memset(handles, 0, sizeof(handles)); in test_ProcThreadAttributeList() 3861 …cThreadAttribute(&list, 0, PROC_THREAD_ATTRIBUTE_PARENT_PROCESS, handles, sizeof(handles[0]), NULL… in test_ProcThreadAttributeList() 3867 expect_list.attrs[0].value = handles; in test_ProcThreadAttributeList() 3870 …cThreadAttribute(&list, 0, PROC_THREAD_ATTRIBUTE_PARENT_PROCESS, handles, sizeof(handles[0]), NULL… in test_ProcThreadAttributeList() 3874 …ProcThreadAttribute(&list, 0, PROC_THREAD_ATTRIBUTE_HANDLE_LIST, handles, sizeof(handles) - 1, NUL… in test_ProcThreadAttributeList() 3878 …ProcThreadAttribute(&list, 0, PROC_THREAD_ATTRIBUTE_HANDLE_LIST, handles, sizeof(handles), NULL, N… in test_ProcThreadAttributeList() 3883 expect_list.attrs[1].size = sizeof(handles); in test_ProcThreadAttributeList() 3884 expect_list.attrs[1].value = handles; in test_ProcThreadAttributeList() 3887 …ProcThreadAttribute(&list, 0, PROC_THREAD_ATTRIBUTE_HANDLE_LIST, handles, sizeof(handles), NULL, N… in test_ProcThreadAttributeList() [all …]
|
/reactos/dll/win32/mpr/ |
H A D | wnet.c | 113 HANDLE* handles; member 632 if (!ret->specific.handles) in _createConnectedEnumerator() 1444 HANDLE* handles; in _enumerateConnectedW() local 1455 handles = enumerator->specific.handles; in _enumerateConnectedW() 1472 if (handles[index] == 0) in _enumerateConnectedW() 1477 NULL, &handles[index]); in _enumerateConnectedW() 1482 ret = providerTable->table[index].enumResource(handles[index], in _enumerateConnectedW() 1765 HANDLE *handles; in WNetCloseEnum() local 1790 handles = enumerator->specific.handles; in WNetCloseEnum() 1794 providerTable->table[index].closeEnum(handles[index]); in WNetCloseEnum() [all …]
|
/reactos/dll/win32/mciwave/ |
H A D | mciwave.c | 102 HANDLE handles[2]; in MCI_SendCommandAsync() local 122 if ((sca->evt = handles[1] = CreateEventW(NULL, FALSE, FALSE, NULL)) == NULL || in MCI_SendCommandAsync() 123 (handles[0] = CreateThread(NULL, 0, MCI_SCAStarter, sca, 0, NULL)) == 0) { in MCI_SendCommandAsync() 125 if (handles[1]) CloseHandle(handles[1]); in MCI_SendCommandAsync() 130 SetThreadPriority(handles[0], THREAD_PRIORITY_TIME_CRITICAL); in MCI_SendCommandAsync() 135 WaitForMultipleObjects(2, handles, FALSE, INFINITE); in MCI_SendCommandAsync() 136 CloseHandle(handles[0]); in MCI_SendCommandAsync() 137 CloseHandle(handles[1]); in MCI_SendCommandAsync()
|
/reactos/dll/directx/wine/d3dx9_36/ |
H A D | shader.c | 822 struct ctab_constant *handles; in get_constant_by_name() local 832 handles = table->constants; in get_constant_by_name() 837 handles = constant->constants; in get_constant_by_name() 845 if (strlen(handles[i].desc.Name) == length && !strncmp(handles[i].desc.Name, name, length)) in get_constant_by_name() 850 return get_constant_by_name(NULL, &handles[i], part); in get_constant_by_name() 853 return get_constant_element_by_name(&handles[i], part); in get_constant_by_name() 856 TRACE("Returning parameter %p\n", &handles[i]); in get_constant_by_name() 857 return &handles[i]; in get_constant_by_name() 2251 iface, debugstr_a(profile), flags, handles, fragment_count, buffer, errors); in d3dx9_fragment_linker_LinkShader() 2261 iface, debugstr_a(profile), flags, handles, fragment_count, shader, errors); in d3dx9_fragment_linker_LinkVertexShader() [all …]
|
/reactos/base/shell/cmd/ |
H A D | todo.txt | 4 This is pretty straightforward. When doing this, make sure to take into account the way MS handles …
|
H A D | readme2.txt | 8 We also setup some global vars like default io handles and nErrorLevel and set %prompt% to $P$G. 20 from this info it will do some switching around with the handles for where things go and send them …
|