Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WapClose - which handle to close

0 views
Skip to first unread message

coder

unread,
Jun 22, 2009, 8:45:05 AM6/22/09
to
Hi, we are developing a C++ app for WM6 using VS2008. We are using
the Wap API, when one calls wapopen you get 2 handles , one for the
port and one for the received msg in the case of opening on the receive
port.

hResult = WapOpen( wlLayer, dwRecvPort, &hWapRecv, &hWapRecvMsgEvent );

Does one need to use WapClose to close both handles, the SDK sample only
shows closing

of the port handle. Do i really need to do this

WapClose(hWapRecv);

WapClose(hWapRecvMsgEvent );

If not how to close the message handle??

__________ Information from ESET Smart Security, version of virus signature database 4177 (20090622) __________

The message was checked by ESET Smart Security.

http://www.eset.com


Peter Foot

unread,
Jun 22, 2009, 9:59:09 AM6/22/09
to
The second is an event handle so if anything you would close it with
CloseHandle. If you read the help documentation for WapOpen you'll see that
the WAP API closes this for you when you call WapClose with the hWapRecv
handle.

Peter


"coder" <co...@hotmail.com> wrote in message
news:eFWo6dz8...@TK2MSFTNGP05.phx.gbl...

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4177 (20090622) __________

The message was checked by ESET NOD32 Antivirus.

part000.txt - decompression could not complete (possible reasons: insufficient free memory or disk space, or a problem with temp folders)

http://www.eset.com

0 new messages