Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 111 of file utils.c.
Referenced by FindDevices().
{ PDEVICE_LIST pNewDevice; DPRINT("AddDeviceToList()\n"); pNewDevice = (PDEVICE_LIST) HeapAlloc(Heap, 0, sizeof(DEVICE_LIST) + lstrlen(Name) * sizeof(WCHAR)); if ( !pNewDevice ) { SetLastError(ERROR_NOT_ENOUGH_MEMORY); return FALSE; } pNewDevice->DeviceType = DeviceType; pNewDevice->CardIndex = CardIndex; lstrcpy(pNewDevice->Name, Name); pNewDevice->DeviceInstanceData = NULL; pNewDevice->Next = *pList; *pList = pNewDevice; DPRINT("Success!\n"); return TRUE; }