[DiscordArchive] so i just assume with is a void * and that's it?
[DiscordArchive] so i just assume with is a void * and that's it?
Archived author: Skarn • Posted: 2018-10-13T13:52:37.766000+00:00
Original source
so i just assume with is a void * and that's it?
Archived author: schlumpf • Posted: 2018-10-13T13:53:16.922000+00:00
Original source
You don’t assume anything. Just don’t. It is sizeof(HANDLE) bytes of memory you copy. Don’t bother what it is.
Archived author: Skarn • Posted: 2018-10-13T13:53:51.328000+00:00
Original source
but I need to pass stuff to it?
Archived author: Quantam • Posted: 2018-10-13T13:53:59.237000+00:00
Original source
Windows defines HANDLE as void *, and some userland Windows libraries store pointers to internal data structures in it
Archived author: schlumpf • Posted: 2018-10-13T13:54:52.207000+00:00
Original source
You don’t need to pass stuff to the handle? You just pass it into the functions.
Archived author: schlumpf • Posted: 2018-10-13T13:55:06.524000+00:00
Original source
There is no difference to it being an int or anything.
Archived author: Skarn • Posted: 2018-10-13T13:55:09.648000+00:00
Original source
yeah but handle is the type of file argument?
Archived author: Skarn • Posted: 2018-10-13T13:55:10.633000+00:00
Original source
no?
Archived author: Skarn • Posted: 2018-10-13T13:55:29.145000+00:00
Original source
ugh, that stuff stops making sense to me
Archived author: Quantam • Posted: 2018-10-13T13:55:33.875000+00:00
Original source
I'm saying it's safe to treat it as a void * so long as you don't dereference it