JoePub
November 17th, 2005, 05:34 AM
Hi All,
I am writing a Managed C++ app that uses RAW Windows API's. Now this particular API (PostQueuedCompletionStatus) uses a completion key value which is of type ULONG_PTR, now it is not used directly by the API, it is only used as a custom value which is then returned from the API call GetQueuedCompletionStatus. Now I want to use the ULONG_PTR as a pointer to a __gc managed class, what is the best approach for this? Can I convert the __gc class to an IntPtr before the PostQueuedCompletionStatus and then back again when using GetQueuedCompletionStatut?
Thanks
I am writing a Managed C++ app that uses RAW Windows API's. Now this particular API (PostQueuedCompletionStatus) uses a completion key value which is of type ULONG_PTR, now it is not used directly by the API, it is only used as a custom value which is then returned from the API call GetQueuedCompletionStatus. Now I want to use the ULONG_PTR as a pointer to a __gc managed class, what is the best approach for this? Can I convert the __gc class to an IntPtr before the PostQueuedCompletionStatus and then back again when using GetQueuedCompletionStatut?
Thanks