X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tools%2Fprotoparse.h;h=8a6bf82a189f23b7f0daf61a862ca7a19b7c1c9c;hb=ea43585b82e86b5c393ead41963ba6c2eca157c7;hp=469c12f869e3b737b92734ff5e1128a2eae559a6;hpb=93b5bd181600ddf5097d133c52cdc7b1d4a2c7c8;p=ia32rtools.git diff --git a/tools/protoparse.h b/tools/protoparse.h index 469c12f..8a6bf82 100644 --- a/tools/protoparse.h +++ b/tools/protoparse.h @@ -22,6 +22,7 @@ struct parsed_proto_arg { struct parsed_type type; struct parsed_proto *pp; // fptr or struct void *datap; + unsigned int is_saved:1; // not set here, for tool use }; struct parsed_proto { @@ -191,12 +192,14 @@ static const char *known_ptr_types[] = { "HACCEL", "HANDLE", "HBITMAP", + "HBRUSH", "HCALL", "HCURSOR", "HDC", "HFONT", "HGDIOBJ", "HGLOBAL", + "HHOOK", "HICON", "HINSTANCE", "HIMC", // DWORD in mingw, ptr in wine.. @@ -216,6 +219,7 @@ static const char *known_ptr_types[] = { "PDWORD", "PFILETIME", "PLARGE_INTEGER", + "PHANDLE", "PHKEY", "PLONG", "PMEMORY_BASIC_INFORMATION", @@ -223,6 +227,9 @@ static const char *known_ptr_types[] = { "PVOID", "PCVOID", "PWORD", + "REFCLSID", + "REFIID", + "HOOKPROC", "DLGPROC", "TIMERPROC", "WNDENUMPROC", @@ -511,7 +518,7 @@ static int parse_protostr(char *protostr, struct parsed_proto *pp) pp->is_stdcall = 0; // custom pp->is_userstack = 1; } - else if (IS(cconv, "WINAPI")) + else if (IS(cconv, "WINAPI") || IS(cconv, "PASCAL")) pp->is_stdcall = 1; else { printf("%s:%d:%zd: unhandled cconv: '%s'\n",