15 #define RzIOW32_HANDLE(x) (((RzIOW32 *)x)->hnd)
25 return ReadFile(RzIOW32_HANDLE(
fd),
buf,
count, &ret,
NULL) ? ret : -1;
31 CloseHandle(RzIOW32_HANDLE(
fd));
40 SetFilePointer(RzIOW32_HANDLE(
fd),
offset, 0, !whence ? FILE_BEGIN : whence == 1 ? FILE_CURRENT
46 static bool w32__plugin_open(
RzIO *io,
const char *
pathname,
bool many) {
47 return (!strncmp(
pathname,
"w32://", 6));
51 if (!strncmp(
pathname,
"w32://", 6)) {
57 LPTSTR filename_ = rz_sys_conv_utf8_to_win(
filename);
58 w32->
hnd = CreateFile(filename_,
59 GENERIC_READ | (rw ? GENERIC_WRITE : 0),
60 FILE_SHARE_READ | FILE_SHARE_WRITE,
61 NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL,
NULL);
72 if (io &&
fd &&
fd->data &&
cmd && !strcmp(
cmd,
"winbase")) {
87 .check = w32__plugin_open,
89 .system = w32__system,
93 #ifndef RZ_PLUGIN_INCORE
RZ_API RzLibStruct rizin_plugin
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
RZ_API void Ht_() free(HtName_(Ht) *ht)
struct rz_io_plugin_t rz_io_plugin_w32
#define INVALID_HANDLE_VALUE
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char pathname
RZ_API RzIODesc * rz_io_desc_new(RzIO *io, RzIOPlugin *plugin, const char *uri, int flags, int mode, void *data)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode fd[]