stevedonovan / winapi

Minimal but useful Lua bindings to the Windows API
http://stevedonovan.github.com/winapi/api.html
Other
192 stars 40 forks source link

Delete reg key #5

Open moteus opened 12 years ago

moteus commented 12 years ago

Can you add binding to RegDeleteKey?

stevedonovan commented 12 years ago

Sure, sounds like a good idea. Any other APIs that would be useful?

moteus commented 12 years ago

You can look at afxLua. I use it, but there no src.

stevedonovan commented 12 years ago

You can look at afxLua.

I remember that - no source is not a problem, coding is not difficult. Choosing a good API is difficult ;)

For example, it would be useful to provide simple prompt dialogs, so you could ask a user for a string. But then when to stop?

moteus commented 12 years ago

Choosing a good API is difficult ;) I know that. :)

I tried to start use winapi several times and every time i fail with it. Main problem is multithreaded and buffer overflow (setenv('xxxx', ('1'):rep(1300))).

stevedonovan commented 12 years ago

Hah, now I take back my words - writing good C is hard ;) I should allocate those buffers dynamically!

moteus commented 12 years ago

Any other APIs that would be useful?

May be FindFirst/FindNext. AfxLua has very convinient interface (IMHO)

pkulchenko commented 10 years ago

@stevedonovan, I'd like to support this ticket. Thank you!