::GetCursorPos failed with rc = 8: Not enough storage is available to process this command in the following code: POINT pt = {0}; if (!::GetCursorPos(&pt)) { //make a stink ... } Seriously though, how much storage is required to figure out where the mouse cursor is located :-) I Googled but could not find any other instances of this error. Client is running Terminal Services. I think my solution will be to ignore any errors from this API, but I was wondering if anybody could provide some insight as to why this error is occurring. Thanks, --Chris
That error code is often used when a more appropriate code is not available and they don't bother to create a new error code. wrote in message news:e2b0c243-909e-4bd1-92ce-f40b65d99fc2@f36g2000hsa.googlegroups.com... > ::GetCursorPos failed with rc = 8: Not enough storage is available to > process this command in the following code: > > POINT pt = {0}; > if (!::GetCursorPos(&pt)) > { > //make a stink ... > } > > Seriously though, how much storage is required to figure out where the > mouse cursor is located :-) > > I Googled but could not find any other instances of this error. > Client is running Terminal Services. I think my solution will be to > ignore any errors from this API, but I was wondering if anybody could > provide some insight as to why this error is occurring. > > Thanks, > > --Chris > >