The value of MAX_DISPLAYPATH_INFO_STRING in msdisplaypath.h is apparently wrong. It should be 4096 characters. Change your chaineW variable to be 4096 characters .
HTH,
Keith
BTW, the example above leaks the DisplayPath.
The value of MAX_DISPLAYPATH_INFO_STRING in msdisplaypath.h is apparently wrong. It should be 4096 characters. Change your chaineW variable to be 4096 characters .
HTH,
Keith
BTW, the example above leaks the DisplayPath.