Error no More Items 259 (0x103): Fix it With 4 Steps
Adjusting your code can fix this error
2 min. read
Published on
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
ERROR_NO_MORE_ITEMS is a developer error, and sometimes it comes in the form of 259 (0x103) No more data is available message. Although it’s unlikely you’ll encounter it, we’ll show you a couple of methods you can use to fix it.
How can I fix ERROR_NO_MORE_ITEMS?
1. Assign only necessary flags to SetupDiGetClassDevs
- Open your code.
- Locate the SetupDiGetClassDevs function.
- Change it to include DIGCF_PRESENT flag like this:
deviceInfoSet = SetupDiGetClassDevs(
&classGuid,
NULL,
NULL,
DIGCF_PRESENT
);
If you add additional flags, you might get the devices that aren’t there, which will cause this error to appear.
Other users reported that the DIGCF_PROFILE flag worked for them, so try using it as well.
2. Modify the INF file
- Open your INF file.
- Add the following:
[USB_Install.Wdf] KmdfService=WINUSB, WinUsb_Install
[WinUsb_Install] KmdfLibraryVersion=1.11 - Save changes.
- Remember to generate GUID from Visual Studio and add it to the registry.
3. Install CfsDep2.inf separately
- On the PVS Server, run the following command:
rundll32.exe setupapi,InstallHinfSection DefaultInstall 129 c:\Program Files\Citrix\Provisioning Services\drivers\cfsdep2.inf
- After doing that, check if the problem is resolved.
This can happen when upgrading from PVS 6.1 to PVS 7.6, but it might affect other versions as well.
4. Check your data
- If you’re sending less data than requested, you might get this error.
- This is especially true with overlapped operations.
- In cases such as these, a completion indication might be triggered causing the error.
ERROR_NO_MORE_ITEMS is somewhat rare, and unless you’re a developer, you most likely won’t encounter it. But if you do, don’t hesitate to try our solutions.
We covered similar errors in the past such as Error_Delete_Pending and ERROR_NOTIFICATION_GUID_ALREADY_DEFINED, so feel free to check them out.
User forum
0 messages