Re: GetLastError reported the following

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



William DePalo [MVP VC++] wrote:
In my WriteFile(Handle, inbuff, bufflenght, &byteswritten, NULL), the last
parameter is NULL.  Is this why it is complaining?


Because the device was initially opened for overlapped I/O you must pass a a pointer to validly filled in overlapped structure as the last parameter.


In TAPI, where do you declare where a function is to use Overlapped or
non-Overlapped Reads and Writes?


You don't because you don't open the device. The device was earlier opened, however, for overlapped access.

Note that Unimodem only support Overlapped mode.

--
Michael Dunn (Microsoft MVP) is a TAPI Developer and Tester
TAPI web page:  http://www.rainyjay.com/tapi/tapi.htm
TAPI discussions belong in the newsgroup, and not in private email.
"I'm not insane, I'm just choosy about the reality I accept."
.



Relevant Pages

  • Re: Extracting hCall from dwCallsOffset
    ... below loops thru the number of hCall handles defined and extracts each ... Now this line does some pointer arithmetics to calculate a pointer p to the ... 1st byte of the i-th hCall. ... Microsoft MVP for TAPI / Windows SDK ...
    (microsoft.public.win32.programmer.tapi)
  • Re: How to read values (CallerID) from LINECALLINFO-Structure in V
    ... To manage the pointerproblem of reading back the CallerID wrote the ... ByVal Length As Integer) As String ... '// Marshal the structure to the pointer ... Regarding TAPI and .NET see KB article "841712 - Telephony Application ...
    (microsoft.public.win32.programmer.tapi)
  • Re: GetLastError reported the following
    ... >>> pointer to validly filled in overlapped structure as the last parameter. ... See my TAPI and TSPI FAQ: ... > How do I know I am using Unimodem, ... * Please post all messages and replies to the newsgroup so all may ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Getting my own phone number with TAPI
    ... is when I pick-up my phone, it occurs a TAPI event and the application ... making/initiating an outgoing call manually? ... my application don't process incoming calls with a call_state ... Create a new pointer as ITBasicCallControl ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Getting my own phone number with TAPI
    ... is when I pick-up my phone, it occurs a TAPI event and the application ... making/initiating an outgoing call manually? ... my application don't process incoming calls with a call_state ... Create a new pointer as ITBasicCallControl ...
    (microsoft.public.win32.programmer.tapi)