X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinstuff.h;h=c0e06dce4f3f8287b7de7173c70b9a21d4a7e01a;hb=05f22632eb45c9b8d17e8ffe7aa97e2590f8f11c;hp=5e95a9df6b1e3304997a8940675fcd2704f89911;hpb=9f4b758db2ac6cf86f30bd22068267bbbe3982e1;p=PuTTY.git diff --git a/windows/winstuff.h b/windows/winstuff.h index 5e95a9df..c0e06dce 100644 --- a/windows/winstuff.h +++ b/windows/winstuff.h @@ -96,9 +96,9 @@ struct FontSpec { #define STR1(x) #x #define STR(x) STR1(x) #define GET_WINDOWS_FUNCTION_PP(module, name) \ - p_##name = module ? (t_##name) GetProcAddress(module, STR(name)) : NULL + (p_##name = module ? (t_##name) GetProcAddress(module, STR(name)) : NULL) #define GET_WINDOWS_FUNCTION(module, name) \ - p_##name = module ? (t_##name) GetProcAddress(module, #name) : NULL + (p_##name = module ? (t_##name) GetProcAddress(module, #name) : NULL) /* * Global variables. Most modules declare these `extern', but @@ -138,17 +138,23 @@ typedef struct terminal_tag Terminal; typedef HDC Context; +typedef unsigned int uint32; /* int is 32-bits on Win32 and Win64. */ +#define PUTTY_UINT32_DEFINED + #ifndef NO_GSSAPI /* * GSS-API stuff */ +#define GSS_CC CALLBACK +/* typedef struct Ssh_gss_buf { - int length; + size_t length; char *value; } Ssh_gss_buf; #define SSH_GSS_EMPTY_BUF (Ssh_gss_buf) {0,NULL} typedef void *Ssh_gss_name; +*/ #endif /* @@ -216,6 +222,8 @@ GLOBAL void *logctx; "All Files (*.*)\0*\0\0\0") #define FILTER_WAVE_FILES ("Wave Files (*.wav)\0*.WAV\0" \ "All Files (*.*)\0*\0\0\0") +#define FILTER_DYNLIB_FILES ("Dynamic Library Files (*.dll)\0*.dll\0" \ + "All Files (*.*)\0*\0\0\0") /* * On some versions of Windows, it has been known for WM_TIMER to @@ -440,6 +448,7 @@ void show_help(HWND hwnd); */ extern OSVERSIONINFO osVersion; BOOL init_winver(void); +HMODULE load_system32_dll(const char *libname); /* * Exports from sizetip.c.