Closed gonutz closed 6 years ago
This merge request was originally created to have the CopyMemory function in here but when nothing happened for a while, I just continued developing my fork of this repo further. I did not know at that time that the additional commits would end up in this pull request as well so now there are many merge conflicts which I will not bother to fix in my fork. I am leaving this open for now, there is a bug fix for RegSetString in one of the commits:
https://github.com/AllenDang/w32/pull/59/commits/ce4981a62af9ded13a08de4f53efdf0b5e16f935
that should be incorporated here. The function does not work correctly without the fix.
This is useful for copying data between unsafe pointers, e.g. when using GlobalAlloc. I had to import C just to get C.memcpy but want users without a C-compiler to be able to go get my code.