winapi icon indicating copy to clipboard operation
winapi copied to clipboard

Minimal but useful Lua bindings to the Windows API

Results 28 winapi issues
Sort by recently updated
recently updated
newest added

Project page URL should be https://stevedonovan.github.io/winapi/api.html (not http://stevedonovan.github.com/winapi/api.html )

#define WBUFF 2048 Fixed buffer size, it is easy to lose useful data, because the buffer may not be big enough The best solution is to dynamically allocate memory

1. The lack of'rb' in the Chinese system will cause problems 2. lack '\\\\' temp -> c:\windows\temp

For example, on line winapi.c:2080 `lcb_call(parms,-1,0,REF_IDX); // pass it a new File reference` In wutils.c:119 `BOOL call_lua_direct(lua_State *L, Ref ref, int idx, const char *text, int flags) {` ` if...

Switched `lua_call` in `call_lua_direct` to `lua_pcall`. The error handler which is passed in will print the error and traceback, then tear down. This is in preference to crashing.

When an error is encountered in the callback for `watch_for_file_changes`, the program will crash saying `lua5.1.exe has stopped working` rather than providing a useful error message. Repro: ```lua require("winapi") watcher,...

Hi I would love to use this project, but I don´t know how to build it. thank you

the: lcb_buf(this)[bytesRead] = '\0'; will write past buffer when bytesRead == lcb_bufsz(this)

things like working with avi's, etc?

Running the tes-processes sample, many processes have empty name. Running on Windows 7 x64. Lua 5.3 and MingW compiled.