Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 302946 Details for
Bug 443165
Internal error: Segmentation fault (program cc1)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
pre-processed input (bad-eol.i)
bad-eol.i (text/plain), 1.16 MB, created by
John Reiser
on 2008-04-18 21:52:23 UTC
(
hide
)
Description:
pre-processed input (bad-eol.i)
Filename:
MIME Type:
Creator:
John Reiser
Created:
2008-04-18 21:52:23 UTC
Size:
1.16 MB
patch
obsolete
># 1 "menu.c" ># 1 "/data/wine-0.9.60/dlls/user32/tests//" ># 1 "<built-in>" ># 1 "<command-line>" ># 1 "menu.c" ># 24 "menu.c" ># 1 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stdarg.h" 1 3 4 ># 43 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stdarg.h" 3 4 >typedef __builtin_va_list __gnuc_va_list; ># 105 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stdarg.h" 3 4 >typedef __gnuc_va_list va_list; ># 25 "menu.c" 2 ># 1 "/usr/include/stdio.h" 1 3 4 ># 28 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 335 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 360 "/usr/include/sys/cdefs.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 361 "/usr/include/sys/cdefs.h" 2 3 4 ># 336 "/usr/include/features.h" 2 3 4 ># 359 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 5 "/usr/include/gnu/stubs.h" 2 3 4 > > ># 1 "/usr/include/gnu/stubs-32.h" 1 3 4 ># 8 "/usr/include/gnu/stubs.h" 2 3 4 ># 360 "/usr/include/features.h" 2 3 4 ># 29 "/usr/include/stdio.h" 2 3 4 > > > > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 1 3 4 ># 214 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 3 4 >typedef unsigned int size_t; ># 35 "/usr/include/stdio.h" 2 3 4 > ># 1 "/usr/include/bits/types.h" 1 3 4 ># 28 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned char __u_char; >typedef unsigned short int __u_short; >typedef unsigned int __u_int; >typedef unsigned long int __u_long; > > >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef signed short int __int16_t; >typedef unsigned short int __uint16_t; >typedef signed int __int32_t; >typedef unsigned int __uint32_t; > > > > >__extension__ typedef signed long long int __int64_t; >__extension__ typedef unsigned long long int __uint64_t; > > > > > > > >__extension__ typedef long long int __quad_t; >__extension__ typedef unsigned long long int __u_quad_t; ># 131 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/typesizes.h" 1 3 4 ># 132 "/usr/include/bits/types.h" 2 3 4 > > >__extension__ typedef __u_quad_t __dev_t; >__extension__ typedef unsigned int __uid_t; >__extension__ typedef unsigned int __gid_t; >__extension__ typedef unsigned long int __ino_t; >__extension__ typedef __u_quad_t __ino64_t; >__extension__ typedef unsigned int __mode_t; >__extension__ typedef unsigned int __nlink_t; >__extension__ typedef long int __off_t; >__extension__ typedef __quad_t __off64_t; >__extension__ typedef int __pid_t; >__extension__ typedef struct { int __val[2]; } __fsid_t; >__extension__ typedef long int __clock_t; >__extension__ typedef unsigned long int __rlim_t; >__extension__ typedef __u_quad_t __rlim64_t; >__extension__ typedef unsigned int __id_t; >__extension__ typedef long int __time_t; >__extension__ typedef unsigned int __useconds_t; >__extension__ typedef long int __suseconds_t; > >__extension__ typedef int __daddr_t; >__extension__ typedef long int __swblk_t; >__extension__ typedef int __key_t; > > >__extension__ typedef int __clockid_t; > > >__extension__ typedef void * __timer_t; > > >__extension__ typedef long int __blksize_t; > > > > >__extension__ typedef long int __blkcnt_t; >__extension__ typedef __quad_t __blkcnt64_t; > > >__extension__ typedef unsigned long int __fsblkcnt_t; >__extension__ typedef __u_quad_t __fsblkcnt64_t; > > >__extension__ typedef unsigned long int __fsfilcnt_t; >__extension__ typedef __u_quad_t __fsfilcnt64_t; > >__extension__ typedef int __ssize_t; > > > >typedef __off64_t __loff_t; >typedef __quad_t *__qaddr_t; >typedef char *__caddr_t; > > >__extension__ typedef int __intptr_t; > > >__extension__ typedef unsigned int __socklen_t; ># 37 "/usr/include/stdio.h" 2 3 4 ># 45 "/usr/include/stdio.h" 3 4 >struct _IO_FILE; > > > >typedef struct _IO_FILE FILE; > > > > > ># 65 "/usr/include/stdio.h" 3 4 >typedef struct _IO_FILE __FILE; ># 75 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/libio.h" 1 3 4 ># 32 "/usr/include/libio.h" 3 4 ># 1 "/usr/include/_G_config.h" 1 3 4 ># 15 "/usr/include/_G_config.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 1 3 4 ># 16 "/usr/include/_G_config.h" 2 3 4 > > > > ># 1 "/usr/include/wchar.h" 1 3 4 ># 78 "/usr/include/wchar.h" 3 4 >typedef struct >{ > int __count; > union > { > > unsigned int __wch; > > > > char __wchb[4]; > } __value; >} __mbstate_t; ># 21 "/usr/include/_G_config.h" 2 3 4 > >typedef struct >{ > __off_t __pos; > __mbstate_t __state; >} _G_fpos_t; >typedef struct >{ > __off64_t __pos; > __mbstate_t __state; >} _G_fpos64_t; ># 53 "/usr/include/_G_config.h" 3 4 >typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); >typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); ># 33 "/usr/include/libio.h" 2 3 4 ># 170 "/usr/include/libio.h" 3 4 >struct _IO_jump_t; struct _IO_FILE; ># 180 "/usr/include/libio.h" 3 4 >typedef void _IO_lock_t; > > > > > >struct _IO_marker { > struct _IO_marker *_next; > struct _IO_FILE *_sbuf; > > > > int _pos; ># 203 "/usr/include/libio.h" 3 4 >}; > > >enum __codecvt_result >{ > __codecvt_ok, > __codecvt_partial, > __codecvt_error, > __codecvt_noconv >}; ># 271 "/usr/include/libio.h" 3 4 >struct _IO_FILE { > int _flags; > > > > > char* _IO_read_ptr; > char* _IO_read_end; > char* _IO_read_base; > char* _IO_write_base; > char* _IO_write_ptr; > char* _IO_write_end; > char* _IO_buf_base; > char* _IO_buf_end; > > char *_IO_save_base; > char *_IO_backup_base; > char *_IO_save_end; > > struct _IO_marker *_markers; > > struct _IO_FILE *_chain; > > int _fileno; > > > > int _flags2; > > __off_t _old_offset; > > > > unsigned short _cur_column; > signed char _vtable_offset; > char _shortbuf[1]; > > > > _IO_lock_t *_lock; ># 319 "/usr/include/libio.h" 3 4 > __off64_t _offset; ># 328 "/usr/include/libio.h" 3 4 > void *__pad1; > void *__pad2; > void *__pad3; > void *__pad4; > size_t __pad5; > > int _mode; > > char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; > >}; > > >typedef struct _IO_FILE _IO_FILE; > > >struct _IO_FILE_plus; > >extern struct _IO_FILE_plus _IO_2_1_stdin_; >extern struct _IO_FILE_plus _IO_2_1_stdout_; >extern struct _IO_FILE_plus _IO_2_1_stderr_; ># 364 "/usr/include/libio.h" 3 4 >typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); > > > > > > > >typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, > size_t __n); > > > > > > > >typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); > > >typedef int __io_close_fn (void *__cookie); ># 416 "/usr/include/libio.h" 3 4 >extern int __underflow (_IO_FILE *); >extern int __uflow (_IO_FILE *); >extern int __overflow (_IO_FILE *, int); ># 458 "/usr/include/libio.h" 3 4 >extern int _IO_getc (_IO_FILE *__fp); >extern int _IO_putc (int __c, _IO_FILE *__fp); >extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__)); >extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__)); > >extern int _IO_peekc_locked (_IO_FILE *__fp); > > > > > >extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__)); >extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__)); >extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__)); ># 488 "/usr/include/libio.h" 3 4 >extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, > __gnuc_va_list, int *__restrict); >extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, > __gnuc_va_list); >extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t); >extern size_t _IO_sgetn (_IO_FILE *, void *, size_t); > >extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); >extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int); > >extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__)); ># 76 "/usr/include/stdio.h" 2 3 4 ># 89 "/usr/include/stdio.h" 3 4 > > >typedef _G_fpos_t fpos_t; > > > > ># 141 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 142 "/usr/include/stdio.h" 2 3 4 > > > >extern struct _IO_FILE *stdin; >extern struct _IO_FILE *stdout; >extern struct _IO_FILE *stderr; > > > > > > > > > >extern int remove (__const char *__filename) __attribute__ ((__nothrow__)); > >extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__)); > > > > > > > > > > > > > > >extern FILE *tmpfile (void) ; ># 188 "/usr/include/stdio.h" 3 4 >extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ; > > > > > >extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ; ># 206 "/usr/include/stdio.h" 3 4 >extern char *tempnam (__const char *__dir, __const char *__pfx) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > > > > > > > > >extern int fclose (FILE *__stream); > > > > >extern int fflush (FILE *__stream); > ># 231 "/usr/include/stdio.h" 3 4 >extern int fflush_unlocked (FILE *__stream); ># 245 "/usr/include/stdio.h" 3 4 > > > > > > >extern FILE *fopen (__const char *__restrict __filename, > __const char *__restrict __modes) ; > > > > >extern FILE *freopen (__const char *__restrict __filename, > __const char *__restrict __modes, > FILE *__restrict __stream) ; ># 274 "/usr/include/stdio.h" 3 4 > ># 285 "/usr/include/stdio.h" 3 4 >extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ; ># 306 "/usr/include/stdio.h" 3 4 > > > >extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__)); > > > >extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, > int __modes, size_t __n) __attribute__ ((__nothrow__)); > > > > > >extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, > size_t __size) __attribute__ ((__nothrow__)); > > >extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__)); > > > > > > > > >extern int fprintf (FILE *__restrict __stream, > __const char *__restrict __format, ...); > > > > >extern int printf (__const char *__restrict __format, ...); > >extern int sprintf (char *__restrict __s, > __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); > > > > > >extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg); > > > > >extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); > >extern int vsprintf (char *__restrict __s, __const char *__restrict __format, > __gnuc_va_list __arg) __attribute__ ((__nothrow__)); > > > > > >extern int snprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); > >extern int vsnprintf (char *__restrict __s, size_t __maxlen, > __const char *__restrict __format, __gnuc_va_list __arg) > __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); > ># 400 "/usr/include/stdio.h" 3 4 > > > > > >extern int fscanf (FILE *__restrict __stream, > __const char *__restrict __format, ...) ; > > > > >extern int scanf (__const char *__restrict __format, ...) ; > >extern int sscanf (__const char *__restrict __s, > __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); ># 443 "/usr/include/stdio.h" 3 4 > ># 506 "/usr/include/stdio.h" 3 4 > > > > > >extern int fgetc (FILE *__stream); >extern int getc (FILE *__stream); > > > > > >extern int getchar (void); > ># 530 "/usr/include/stdio.h" 3 4 >extern int getc_unlocked (FILE *__stream); >extern int getchar_unlocked (void); ># 541 "/usr/include/stdio.h" 3 4 >extern int fgetc_unlocked (FILE *__stream); > > > > > > > > > > > >extern int fputc (int __c, FILE *__stream); >extern int putc (int __c, FILE *__stream); > > > > > >extern int putchar (int __c); > ># 574 "/usr/include/stdio.h" 3 4 >extern int fputc_unlocked (int __c, FILE *__stream); > > > > > > > >extern int putc_unlocked (int __c, FILE *__stream); >extern int putchar_unlocked (int __c); > > > > > > >extern int getw (FILE *__stream); > > >extern int putw (int __w, FILE *__stream); > > > > > > > > >extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) > ; > > > > > > >extern char *gets (char *__s) ; > ># 655 "/usr/include/stdio.h" 3 4 > > > > > >extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); > > > > > >extern int puts (__const char *__s); > > > > > > >extern int ungetc (int __c, FILE *__stream); > > > > > > >extern size_t fread (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; > > > > >extern size_t fwrite (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __s) ; > ># 708 "/usr/include/stdio.h" 3 4 >extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; >extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, > size_t __n, FILE *__restrict __stream) ; > > > > > > > > >extern int fseek (FILE *__stream, long int __off, int __whence); > > > > >extern long int ftell (FILE *__stream) ; > > > > >extern void rewind (FILE *__stream); > ># 744 "/usr/include/stdio.h" 3 4 >extern int fseeko (FILE *__stream, __off_t __off, int __whence); > > > > >extern __off_t ftello (FILE *__stream) ; ># 763 "/usr/include/stdio.h" 3 4 > > > > > > >extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); > > > > >extern int fsetpos (FILE *__stream, __const fpos_t *__pos); ># 786 "/usr/include/stdio.h" 3 4 > ># 795 "/usr/include/stdio.h" 3 4 > > >extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__)); > >extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ; > >extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ; > > > > >extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); >extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; >extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; > > > > > > > > >extern void perror (__const char *__s); > > > > > > ># 1 "/usr/include/bits/sys_errlist.h" 1 3 4 ># 27 "/usr/include/bits/sys_errlist.h" 3 4 >extern int sys_nerr; >extern __const char *__const sys_errlist[]; ># 825 "/usr/include/stdio.h" 2 3 4 > > > > >extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ; > > > > >extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; ># 844 "/usr/include/stdio.h" 3 4 >extern FILE *popen (__const char *__command, __const char *__modes) ; > > > > > >extern int pclose (FILE *__stream); > > > > > >extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); ># 884 "/usr/include/stdio.h" 3 4 >extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__)); > > > >extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ; > > >extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__)); ># 905 "/usr/include/stdio.h" 3 4 ># 1 "/usr/include/bits/stdio.h" 1 3 4 ># 36 "/usr/include/bits/stdio.h" 3 4 >extern __inline int >vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg) >{ > return vfprintf (stdout, __fmt, __arg); >} > > > >extern __inline int >getchar (void) >{ > return _IO_getc (stdin); >} > > > > >extern __inline int >fgetc_unlocked (FILE *__fp) >{ > return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); >} > > > > > >extern __inline int >getc_unlocked (FILE *__fp) >{ > return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); >} > > >extern __inline int >getchar_unlocked (void) >{ > return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); >} > > > > >extern __inline int >putchar (int __c) >{ > return _IO_putc (__c, stdout); >} > > > > >extern __inline int >fputc_unlocked (int __c, FILE *__stream) >{ > return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > > > > >extern __inline int >putc_unlocked (int __c, FILE *__stream) >{ > return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); >} > > >extern __inline int >putchar_unlocked (int __c) >{ > return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); >} ># 125 "/usr/include/bits/stdio.h" 3 4 >extern __inline int >__attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream) >{ > return (((__stream)->_flags & 0x10) != 0); >} > > >extern __inline int >__attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream) >{ > return (((__stream)->_flags & 0x20) != 0); >} ># 906 "/usr/include/stdio.h" 2 3 4 ># 914 "/usr/include/stdio.h" 3 4 > ># 26 "menu.c" 2 ># 1 "/usr/include/string.h" 1 3 4 ># 28 "/usr/include/string.h" 3 4 > > > > > ># 1 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 1 3 4 ># 34 "/usr/include/string.h" 2 3 4 > > > > >extern void *memcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memmove (void *__dest, __const void *__src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, > int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memchr (__const void *__s, int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 82 "/usr/include/string.h" 3 4 > > >extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strcat (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncat (char *__restrict __dest, __const char *__restrict __src, > size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcoll (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern size_t strxfrm (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > ># 130 "/usr/include/string.h" 3 4 >extern char *strdup (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); ># 165 "/usr/include/string.h" 3 4 > > >extern char *strchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern char *strrchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 181 "/usr/include/string.h" 3 4 > > > >extern size_t strcspn (__const char *__s, __const char *__reject) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern size_t strspn (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strpbrk (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strstr (__const char *__haystack, __const char *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *strtok (char *__restrict __s, __const char *__restrict __delim) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > > >extern char *__strtok_r (char *__restrict __s, > __const char *__restrict __delim, > char **__restrict __save_ptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); > >extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, > char **__restrict __save_ptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); ># 240 "/usr/include/string.h" 3 4 > > >extern size_t strlen (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 254 "/usr/include/string.h" 3 4 > > >extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); > ># 270 "/usr/include/string.h" 3 4 >extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); ># 294 "/usr/include/string.h" 3 4 >extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern void bcopy (__const void *__src, void *__dest, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *index (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern char *rindex (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > >extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); ># 331 "/usr/include/string.h" 3 4 >extern int strcasecmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); ># 354 "/usr/include/string.h" 3 4 >extern char *strsep (char **__restrict __stringp, > __const char *__restrict __delim) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); ># 420 "/usr/include/string.h" 3 4 ># 1 "/usr/include/bits/string.h" 1 3 4 ># 421 "/usr/include/string.h" 2 3 4 > > ># 1 "/usr/include/bits/string2.h" 1 3 4 ># 52 "/usr/include/bits/string2.h" 3 4 ># 1 "/usr/include/endian.h" 1 3 4 ># 37 "/usr/include/endian.h" 3 4 ># 1 "/usr/include/bits/endian.h" 1 3 4 ># 38 "/usr/include/endian.h" 2 3 4 ># 53 "/usr/include/bits/string2.h" 2 3 4 ># 394 "/usr/include/bits/string2.h" 3 4 >extern void *__rawmemchr (const void *__s, int __c); ># 969 "/usr/include/bits/string2.h" 3 4 >extern __inline size_t __strcspn_c1 (__const char *__s, int __reject); >extern __inline size_t >__strcspn_c1 (__const char *__s, int __reject) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject) > ++__result; > return __result; >} > >extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, > int __reject2); >extern __inline size_t >__strcspn_c2 (__const char *__s, int __reject1, int __reject2) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2) > ++__result; > return __result; >} > >extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, > int __reject2, int __reject3); >extern __inline size_t >__strcspn_c3 (__const char *__s, int __reject1, int __reject2, > int __reject3) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2 && __s[__result] != __reject3) > ++__result; > return __result; >} ># 1045 "/usr/include/bits/string2.h" 3 4 >extern __inline size_t __strspn_c1 (__const char *__s, int __accept); >extern __inline size_t >__strspn_c1 (__const char *__s, int __accept) >{ > register size_t __result = 0; > > while (__s[__result] == __accept) > ++__result; > return __result; >} > >extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline size_t >__strspn_c2 (__const char *__s, int __accept1, int __accept2) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2) > ++__result; > return __result; >} > >extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline size_t >__strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2 > || __s[__result] == __accept3) > ++__result; > return __result; >} ># 1121 "/usr/include/bits/string2.h" 3 4 >extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline char * >__strpbrk_c2 (__const char *__s, int __accept1, int __accept2) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} > >extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline char * >__strpbrk_c3 (__const char *__s, int __accept1, int __accept2, > int __accept3) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 > && *__s != __accept3) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} ># 1172 "/usr/include/bits/string2.h" 3 4 >extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp); >extern __inline char * >__strtok_r_1c (char *__s, char __sep, char **__nextp) >{ > char *__result; > if (__s == ((void *)0)) > __s = *__nextp; > while (*__s == __sep) > ++__s; > __result = ((void *)0); > if (*__s != '\0') > { > __result = __s++; > while (*__s != '\0') > if (*__s++ == __sep) > { > __s[-1] = '\0'; > break; > } > } > *__nextp = __s; > return __result; >} ># 1204 "/usr/include/bits/string2.h" 3 4 >extern char *__strsep_g (char **__stringp, __const char *__delim); ># 1222 "/usr/include/bits/string2.h" 3 4 >extern __inline char *__strsep_1c (char **__s, char __reject); >extern __inline char * >__strsep_1c (char **__s, char __reject) >{ > register char *__retval = *__s; > if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0)) > *(*__s)++ = '\0'; > return __retval; >} > >extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2); >extern __inline char * >__strsep_2c (char **__s, char __reject1, char __reject2) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} > >extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2, > char __reject3); >extern __inline char * >__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} ># 1298 "/usr/include/bits/string2.h" 3 4 ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 1 3 4 ># 34 "/usr/include/stdlib.h" 2 3 4 > > ># 469 "/usr/include/stdlib.h" 3 4 > > >extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > >extern void *calloc (size_t __nmemb, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > ># 891 "/usr/include/stdlib.h" 3 4 > ># 1299 "/usr/include/bits/string2.h" 2 3 4 > > > > >extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); ># 1322 "/usr/include/bits/string2.h" 3 4 >extern char *__strndup (__const char *__string, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); ># 424 "/usr/include/string.h" 2 3 4 ># 432 "/usr/include/string.h" 3 4 > ># 27 "menu.c" 2 ># 1 "/usr/include/assert.h" 1 3 4 ># 66 "/usr/include/assert.h" 3 4 > > > >extern void __assert_fail (__const char *__assertion, __const char *__file, > unsigned int __line, __const char *__function) > __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > >extern void __assert_perror_fail (int __errnum, __const char *__file, > unsigned int __line, > __const char *__function) > __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > > >extern void __assert (const char *__assertion, const char *__file, int __line) > __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > ># 28 "menu.c" 2 > > > ># 1 "../../../include/windef.h" 1 ># 188 "../../../include/windef.h" >typedef void *LPVOID; >typedef const void *LPCVOID; >typedef int BOOL, *PBOOL, *LPBOOL; >typedef unsigned char BYTE, *PBYTE, *LPBYTE; >typedef unsigned char UCHAR, *PUCHAR; >typedef unsigned short WORD, *PWORD, *LPWORD; >typedef unsigned short USHORT, *PUSHORT; >typedef int INT, *PINT, *LPINT; >typedef unsigned int UINT, *PUINT; >typedef float FLOAT, *PFLOAT; >typedef char *PSZ; > > > > > >typedef int *LPLONG; >typedef unsigned int DWORD, *PDWORD, *LPDWORD; >typedef unsigned int ULONG, *PULONG; ># 234 "../../../include/windef.h" ># 1 "../../../include/winnt.h" 1 ># 24 "../../../include/winnt.h" ># 1 "../../../include/basetsd.h" 1 ># 81 "../../../include/basetsd.h" >typedef signed char INT8, *PINT8; >typedef signed short INT16, *PINT16; >typedef signed int INT32, *PINT32; >typedef unsigned char UINT8, *PUINT8; >typedef unsigned short UINT16, *PUINT16; >typedef unsigned int UINT32, *PUINT32; >typedef signed int LONG32, *PLONG32; >typedef unsigned int ULONG32, *PULONG32; >typedef unsigned int DWORD32, *PDWORD32; ># 98 "../../../include/basetsd.h" >typedef signed long long __attribute__((aligned(8))) INT64, *PINT64; >typedef unsigned long long __attribute__((aligned(8))) UINT64, *PUINT64; >typedef signed long long __attribute__((aligned(8))) LONG64, *PLONG64; >typedef unsigned long long __attribute__((aligned(8))) ULONG64, *PULONG64; >typedef unsigned long long __attribute__((aligned(8))) DWORD64, *PDWORD64; ># 202 "../../../include/basetsd.h" >typedef long INT_PTR, *PINT_PTR; >typedef unsigned long UINT_PTR, *PUINT_PTR; >typedef long LONG_PTR, *PLONG_PTR; >typedef unsigned long ULONG_PTR, *PULONG_PTR; >typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR; > > > > > >typedef signed short HALF_PTR, *PHALF_PTR; >typedef unsigned short UHALF_PTR, *PUHALF_PTR; ># 241 "../../../include/basetsd.h" >typedef LONG_PTR SSIZE_T, *PSSIZE_T; >typedef ULONG_PTR SIZE_T, *PSIZE_T; > >typedef ULONG_PTR KAFFINITY, *PKAFFINITY; ># 25 "../../../include/winnt.h" 2 ># 1 "../../../include/guiddef.h" 1 ># 21 "../../../include/guiddef.h" >typedef struct _GUID >{ > > > > unsigned int Data1; > > unsigned short Data2; > unsigned short Data3; > unsigned char Data4[ 8 ]; >} GUID; ># 61 "../../../include/guiddef.h" >typedef GUID *LPGUID; > > > > >typedef const GUID *LPCGUID; > > > > > >typedef GUID IID,*LPIID; >typedef GUID CLSID,*LPCLSID; >typedef GUID FMTID,*LPFMTID; ># 120 "../../../include/guiddef.h" >extern const IID GUID_NULL; ># 26 "../../../include/winnt.h" 2 > > ># 1 "/usr/include/ctype.h" 1 3 4 ># 30 "/usr/include/ctype.h" 3 4 > ># 48 "/usr/include/ctype.h" 3 4 >enum >{ > _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), > _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), > _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), > _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), > _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), > _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), > _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), > _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), > _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), > _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), > _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), > _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) >}; ># 81 "/usr/include/ctype.h" 3 4 >extern __const unsigned short int **__ctype_b_loc (void) > __attribute__ ((__nothrow__)) __attribute__ ((__const)); >extern __const __int32_t **__ctype_tolower_loc (void) > __attribute__ ((__nothrow__)) __attribute__ ((__const)); >extern __const __int32_t **__ctype_toupper_loc (void) > __attribute__ ((__nothrow__)) __attribute__ ((__const)); ># 96 "/usr/include/ctype.h" 3 4 > > > > > > >extern int isalnum (int) __attribute__ ((__nothrow__)); >extern int isalpha (int) __attribute__ ((__nothrow__)); >extern int iscntrl (int) __attribute__ ((__nothrow__)); >extern int isdigit (int) __attribute__ ((__nothrow__)); >extern int islower (int) __attribute__ ((__nothrow__)); >extern int isgraph (int) __attribute__ ((__nothrow__)); >extern int isprint (int) __attribute__ ((__nothrow__)); >extern int ispunct (int) __attribute__ ((__nothrow__)); >extern int isspace (int) __attribute__ ((__nothrow__)); >extern int isupper (int) __attribute__ ((__nothrow__)); >extern int isxdigit (int) __attribute__ ((__nothrow__)); > > > >extern int tolower (int __c) __attribute__ ((__nothrow__)); > > >extern int toupper (int __c) __attribute__ ((__nothrow__)); > > ># 142 "/usr/include/ctype.h" 3 4 >extern int isascii (int __c) __attribute__ ((__nothrow__)); > > > >extern int toascii (int __c) __attribute__ ((__nothrow__)); > > > >extern int _toupper (int) __attribute__ ((__nothrow__)); >extern int _tolower (int) __attribute__ ((__nothrow__)); ># 190 "/usr/include/ctype.h" 3 4 >extern __inline int >__attribute__ ((__nothrow__)) tolower (int __c) >{ > return __c >= -128 && __c < 256 ? (*__ctype_tolower_loc ())[__c] : __c; >} > >extern __inline int >__attribute__ ((__nothrow__)) toupper (int __c) >{ > return __c >= -128 && __c < 256 ? (*__ctype_toupper_loc ())[__c] : __c; >} ># 323 "/usr/include/ctype.h" 3 4 > ># 29 "../../../include/winnt.h" 2 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 1 3 4 ># 152 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 3 4 >typedef int ptrdiff_t; ># 326 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 3 4 >typedef long int wchar_t; ># 30 "../../../include/winnt.h" 2 ># 332 "../../../include/winnt.h" >typedef void *PVOID; >typedef void *PVOID64; >typedef BYTE BOOLEAN, *PBOOLEAN; >typedef char CHAR, *PCHAR; >typedef short SHORT, *PSHORT; > > > >typedef int LONG, *PLONG; > > > > > > >typedef unsigned short WCHAR, *PWCHAR; ># 357 "../../../include/winnt.h" >typedef signed long long __attribute__((aligned(8))) LONGLONG, *PLONGLONG; >typedef unsigned long long __attribute__((aligned(8))) ULONGLONG, *PULONGLONG; ># 367 "../../../include/winnt.h" >typedef ULONGLONG __attribute__((aligned(8))) DWORDLONG, *PDWORDLONG; > > > > >typedef CHAR *PCH, *LPCH; >typedef const CHAR *PCCH, *LPCCH; >typedef CHAR *PSTR, *LPSTR, *NPSTR; >typedef const CHAR *PCSTR, *LPCSTR; > > >typedef WCHAR *PWCH, *LPWCH; >typedef const WCHAR *PCWCH, *LPCWCH; >typedef WCHAR *PWSTR, *LPWSTR, *NWPSTR; >typedef const WCHAR *PCWSTR, *LPCWSTR; ># 399 "../../../include/winnt.h" >typedef CHAR TCHAR, *PTCHAR; > > >typedef LPSTR PTSTR, LPTSTR; >typedef LPCSTR PCTSTR, LPCTSTR; > > > > > > >typedef char CCHAR; >typedef DWORD LCID, *PLCID; >typedef WORD LANGID; >typedef DWORD EXECUTION_STATE; > > >typedef LONG HRESULT; > > > > >typedef void *HANDLE; >typedef HANDLE *PHANDLE, *LPHANDLE; > > > > > > > >typedef BYTE FCHAR; >typedef WORD FSHORT; >typedef DWORD FLONG; ># 536 "../../../include/winnt.h" >typedef struct _MEMORY_BASIC_INFORMATION >{ > LPVOID BaseAddress; > LPVOID AllocationBase; > DWORD AllocationProtect; > SIZE_T RegionSize; > DWORD State; > DWORD Protect; > DWORD Type; >} MEMORY_BASIC_INFORMATION, *PMEMORY_BASIC_INFORMATION; ># 605 "../../../include/winnt.h" >typedef struct _LIST_ENTRY { > struct _LIST_ENTRY *Flink; > struct _LIST_ENTRY *Blink; >} LIST_ENTRY, *PLIST_ENTRY, * PRLIST_ENTRY; > >typedef struct _SINGLE_LIST_ENTRY { > struct _SINGLE_LIST_ENTRY *Next; >} SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY; ># 652 "../../../include/winnt.h" >typedef union _SLIST_HEADER { > ULONGLONG Alignment; > struct { > SINGLE_LIST_ENTRY Next; > WORD Depth; > WORD Sequence; > } ; >} SLIST_HEADER, *PSLIST_HEADER; > > > >__attribute__((visibility ("hidden"))) PSINGLE_LIST_ENTRY __attribute__((__stdcall__)) RtlFirstEntrySList(const SLIST_HEADER*); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) RtlInitializeSListHead(PSLIST_HEADER); >__attribute__((visibility ("hidden"))) PSINGLE_LIST_ENTRY __attribute__((__stdcall__)) RtlInterlockedFlushSList(PSLIST_HEADER); >__attribute__((visibility ("hidden"))) PSINGLE_LIST_ENTRY __attribute__((__stdcall__)) RtlInterlockedPopEntrySList(PSLIST_HEADER); >__attribute__((visibility ("hidden"))) PSINGLE_LIST_ENTRY __attribute__((__stdcall__)) RtlInterlockedPushEntrySList(PSLIST_HEADER, PSINGLE_LIST_ENTRY); >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) RtlQueryDepthSList(PSLIST_HEADER); ># 689 "../../../include/winnt.h" >typedef enum _HEAP_INFORMATION_CLASS { > HeapCompatibilityInformation, >} HEAP_INFORMATION_CLASS; ># 732 "../../../include/winnt.h" >typedef struct _FLOATING_SAVE_AREA >{ > DWORD ControlWord; > DWORD StatusWord; > DWORD TagWord; > DWORD ErrorOffset; > DWORD ErrorSelector; > DWORD DataOffset; > DWORD DataSelector; > BYTE RegisterArea[80]; > DWORD Cr0NpxState; >} FLOATING_SAVE_AREA, *PFLOATING_SAVE_AREA; > > > >typedef struct _CONTEXT86 >{ > DWORD ContextFlags; > > > DWORD Dr0; > DWORD Dr1; > DWORD Dr2; > DWORD Dr3; > DWORD Dr6; > DWORD Dr7; > > > FLOATING_SAVE_AREA FloatSave; > > > DWORD SegGs; > DWORD SegFs; > DWORD SegEs; > DWORD SegDs; > > > DWORD Edi; > DWORD Esi; > DWORD Ebx; > DWORD Edx; > DWORD Ecx; > DWORD Eax; > > > DWORD Ebp; > DWORD Eip; > DWORD SegCs; > DWORD EFlags; > DWORD Esp; > DWORD SegSs; > > BYTE ExtendedRegisters[512]; >} CONTEXT86; ># 813 "../../../include/winnt.h" >typedef CONTEXT86 CONTEXT; > > > > > > > >typedef struct _LDT_ENTRY { > WORD LimitLow; > WORD BaseLow; > union { > struct { > BYTE BaseMid; > BYTE Flags1; > BYTE Flags2; > BYTE BaseHi; > } Bytes; > struct { > unsigned BaseMid: 8; > unsigned Type : 5; > unsigned Dpl : 2; > unsigned Pres : 1; > unsigned LimitHi : 4; > unsigned Sys : 1; > unsigned Reserved_0 : 1; > unsigned Default_Big : 1; > unsigned Granularity : 1; > unsigned BaseHi : 8; > } Bits; > } HighWord; >} LDT_ENTRY, *PLDT_ENTRY; ># 1452 "../../../include/winnt.h" >typedef CONTEXT *PCONTEXT; ># 1928 "../../../include/winnt.h" >typedef struct _EXCEPTION_RECORD >{ > DWORD ExceptionCode; > DWORD ExceptionFlags; > struct _EXCEPTION_RECORD *ExceptionRecord; > > PVOID ExceptionAddress; > DWORD NumberParameters; > ULONG_PTR ExceptionInformation[15]; >} EXCEPTION_RECORD, *PEXCEPTION_RECORD; > > > > > > >typedef struct _EXCEPTION_POINTERS >{ > PEXCEPTION_RECORD ExceptionRecord; > PCONTEXT ContextRecord; >} EXCEPTION_POINTERS, *PEXCEPTION_POINTERS; ># 1957 "../../../include/winnt.h" >struct _EXCEPTION_REGISTRATION_RECORD; > >typedef DWORD (*PEXCEPTION_HANDLER)(PEXCEPTION_RECORD,struct _EXCEPTION_REGISTRATION_RECORD*, > PCONTEXT,struct _EXCEPTION_REGISTRATION_RECORD **); > >typedef struct _EXCEPTION_REGISTRATION_RECORD >{ > struct _EXCEPTION_REGISTRATION_RECORD *Prev; > PEXCEPTION_HANDLER Handler; >} EXCEPTION_REGISTRATION_RECORD; > > > > > >typedef LONG (__attribute__((__stdcall__)) *PVECTORED_EXCEPTION_HANDLER)(PEXCEPTION_POINTERS ExceptionInfo); > >typedef struct _NT_TIB >{ > struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList; > PVOID StackBase; > PVOID StackLimit; > PVOID SubSystemTib; > union { > PVOID FiberData; > DWORD Version; > } ; > PVOID ArbitraryUserPointer; > struct _NT_TIB *Self; >} NT_TIB, *PNT_TIB; > >struct _TEB; > > >extern inline struct _TEB * __attribute__((__stdcall__)) NtCurrentTeb(void); >extern inline struct _TEB * __attribute__((__stdcall__)) NtCurrentTeb(void) >{ > struct _TEB *teb; > __asm__(".byte 0x64\n\tmovl (0x18),%0" : "=r" (teb)); > return teb; >} ># 2023 "../../../include/winnt.h" ># 1 "../../../include/pshpack2.h" 1 ># 105 "../../../include/pshpack2.h" >#pragma pack(2) ># 2024 "../../../include/winnt.h" 2 >typedef struct _IMAGE_DOS_HEADER { > WORD e_magic; > WORD e_cblp; > WORD e_cp; > WORD e_crlc; > WORD e_cparhdr; > WORD e_minalloc; > WORD e_maxalloc; > WORD e_ss; > WORD e_sp; > WORD e_csum; > WORD e_ip; > WORD e_cs; > WORD e_lfarlc; > WORD e_ovno; > WORD e_res[4]; > WORD e_oemid; > WORD e_oeminfo; > WORD e_res2[10]; > DWORD e_lfanew; >} IMAGE_DOS_HEADER, *PIMAGE_DOS_HEADER; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 2046 "../../../include/winnt.h" 2 ># 2058 "../../../include/winnt.h" ># 1 "../../../include/pshpack2.h" 1 ># 105 "../../../include/pshpack2.h" >#pragma pack(2) ># 2059 "../../../include/winnt.h" 2 >typedef struct >{ > WORD ne_magic; > BYTE ne_ver; > BYTE ne_rev; > WORD ne_enttab; > WORD ne_cbenttab; > LONG ne_crc; > WORD ne_flags; > WORD ne_autodata; > WORD ne_heap; > WORD ne_stack; > DWORD ne_csip; > DWORD ne_sssp; > WORD ne_cseg; > WORD ne_cmod; > WORD ne_cbnrestab; > WORD ne_segtab; > WORD ne_rsrctab; > WORD ne_restab; > WORD ne_modtab; > WORD ne_imptab; > DWORD ne_nrestab; > WORD ne_cmovent; > WORD ne_align; > WORD ne_cres; > BYTE ne_exetyp; > BYTE ne_flagsothers; > WORD ne_pretthunks; > WORD ne_psegrefbytes; > WORD ne_swaparea; > WORD ne_expver; >} IMAGE_OS2_HEADER, *PIMAGE_OS2_HEADER; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 2093 "../../../include/winnt.h" 2 > ># 1 "../../../include/pshpack2.h" 1 ># 105 "../../../include/pshpack2.h" >#pragma pack(2) ># 2095 "../../../include/winnt.h" 2 >typedef struct _IMAGE_VXD_HEADER { > WORD e32_magic; > BYTE e32_border; > BYTE e32_worder; > DWORD e32_level; > WORD e32_cpu; > WORD e32_os; > DWORD e32_ver; > DWORD e32_mflags; > DWORD e32_mpages; > DWORD e32_startobj; > DWORD e32_eip; > DWORD e32_stackobj; > DWORD e32_esp; > DWORD e32_pagesize; > DWORD e32_lastpagesize; > DWORD e32_fixupsize; > DWORD e32_fixupsum; > DWORD e32_ldrsize; > DWORD e32_ldrsum; > DWORD e32_objtab; > DWORD e32_objcnt; > DWORD e32_objmap; > DWORD e32_itermap; > DWORD e32_rsrctab; > DWORD e32_rsrccnt; > DWORD e32_restab; > DWORD e32_enttab; > DWORD e32_dirtab; > DWORD e32_dircnt; > DWORD e32_fpagetab; > DWORD e32_frectab; > DWORD e32_impmod; > DWORD e32_impmodcnt; > DWORD e32_impproc; > DWORD e32_pagesum; > DWORD e32_datapage; > DWORD e32_preload; > DWORD e32_nrestab; > DWORD e32_cbnrestab; > DWORD e32_nressum; > DWORD e32_autodata; > DWORD e32_debuginfo; > DWORD e32_debuglen; > DWORD e32_instpreload; > DWORD e32_instdemand; > DWORD e32_heapsize; > BYTE e32_res3[12]; > DWORD e32_winresoff; > DWORD e32_winreslen; > WORD e32_devid; > WORD e32_ddkver; >} IMAGE_VXD_HEADER, *PIMAGE_VXD_HEADER; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 2149 "../../../include/winnt.h" 2 ># 2286 "../../../include/winnt.h" >typedef struct _IMAGE_FILE_HEADER { > WORD Machine; > WORD NumberOfSections; > DWORD TimeDateStamp; > DWORD PointerToSymbolTable; > DWORD NumberOfSymbols; > WORD SizeOfOptionalHeader; > WORD Characteristics; >} IMAGE_FILE_HEADER, *PIMAGE_FILE_HEADER; > >typedef struct _IMAGE_DATA_DIRECTORY { > DWORD VirtualAddress; > DWORD Size; >} IMAGE_DATA_DIRECTORY, *PIMAGE_DATA_DIRECTORY; > > > >typedef struct _IMAGE_OPTIONAL_HEADER64 { > WORD Magic; > BYTE MajorLinkerVersion; > BYTE MinorLinkerVersion; > DWORD SizeOfCode; > DWORD SizeOfInitializedData; > DWORD SizeOfUninitializedData; > DWORD AddressOfEntryPoint; > DWORD BaseOfCode; > ULONGLONG ImageBase; > DWORD SectionAlignment; > DWORD FileAlignment; > WORD MajorOperatingSystemVersion; > WORD MinorOperatingSystemVersion; > WORD MajorImageVersion; > WORD MinorImageVersion; > WORD MajorSubsystemVersion; > WORD MinorSubsystemVersion; > DWORD Win32VersionValue; > DWORD SizeOfImage; > DWORD SizeOfHeaders; > DWORD CheckSum; > WORD Subsystem; > WORD DllCharacteristics; > ULONGLONG SizeOfStackReserve; > ULONGLONG SizeOfStackCommit; > ULONGLONG SizeOfHeapReserve; > ULONGLONG SizeOfHeapCommit; > DWORD LoaderFlags; > DWORD NumberOfRvaAndSizes; > IMAGE_DATA_DIRECTORY DataDirectory[16]; >} IMAGE_OPTIONAL_HEADER64, *PIMAGE_OPTIONAL_HEADER64; > >typedef struct _IMAGE_NT_HEADERS64 { > DWORD Signature; > IMAGE_FILE_HEADER FileHeader; > IMAGE_OPTIONAL_HEADER64 OptionalHeader; >} IMAGE_NT_HEADERS64, *PIMAGE_NT_HEADERS64; > >typedef struct _IMAGE_OPTIONAL_HEADER { > > > > WORD Magic; > BYTE MajorLinkerVersion; > BYTE MinorLinkerVersion; > DWORD SizeOfCode; > DWORD SizeOfInitializedData; > DWORD SizeOfUninitializedData; > DWORD AddressOfEntryPoint; > DWORD BaseOfCode; > DWORD BaseOfData; > > > > DWORD ImageBase; > DWORD SectionAlignment; > DWORD FileAlignment; > WORD MajorOperatingSystemVersion; > WORD MinorOperatingSystemVersion; > WORD MajorImageVersion; > WORD MinorImageVersion; > WORD MajorSubsystemVersion; > WORD MinorSubsystemVersion; > DWORD Win32VersionValue; > DWORD SizeOfImage; > DWORD SizeOfHeaders; > DWORD CheckSum; > WORD Subsystem; > WORD DllCharacteristics; > DWORD SizeOfStackReserve; > DWORD SizeOfStackCommit; > DWORD SizeOfHeapReserve; > DWORD SizeOfHeapCommit; > DWORD LoaderFlags; > DWORD NumberOfRvaAndSizes; > IMAGE_DATA_DIRECTORY DataDirectory[16]; > >} IMAGE_OPTIONAL_HEADER32, *PIMAGE_OPTIONAL_HEADER32; > >typedef struct _IMAGE_NT_HEADERS { > DWORD Signature; > IMAGE_FILE_HEADER FileHeader; > IMAGE_OPTIONAL_HEADER32 OptionalHeader; >} IMAGE_NT_HEADERS32, *PIMAGE_NT_HEADERS32; > > > > > > > >typedef IMAGE_NT_HEADERS32 IMAGE_NT_HEADERS; >typedef PIMAGE_NT_HEADERS32 PIMAGE_NT_HEADERS; >typedef IMAGE_OPTIONAL_HEADER32 IMAGE_OPTIONAL_HEADER; >typedef PIMAGE_OPTIONAL_HEADER32 PIMAGE_OPTIONAL_HEADER; > > > > >typedef struct _IMAGE_SECTION_HEADER { > BYTE Name[8]; > union { > DWORD PhysicalAddress; > DWORD VirtualSize; > } Misc; > DWORD VirtualAddress; > DWORD SizeOfRawData; > DWORD PointerToRawData; > DWORD PointerToRelocations; > DWORD PointerToLinenumbers; > WORD NumberOfRelocations; > WORD NumberOfLinenumbers; > DWORD Characteristics; >} IMAGE_SECTION_HEADER, *PIMAGE_SECTION_HEADER; ># 2481 "../../../include/winnt.h" ># 1 "../../../include/pshpack2.h" 1 ># 105 "../../../include/pshpack2.h" >#pragma pack(2) ># 2482 "../../../include/winnt.h" 2 > >typedef struct _IMAGE_SYMBOL { > union { > BYTE ShortName[8]; > struct { > DWORD Short; > DWORD Long; > } Name; > DWORD LongName[2]; > } N; > DWORD Value; > SHORT SectionNumber; > WORD Type; > BYTE StorageClass; > BYTE NumberOfAuxSymbols; >} IMAGE_SYMBOL; >typedef IMAGE_SYMBOL *PIMAGE_SYMBOL; > > > >typedef struct _IMAGE_LINENUMBER { > union { > DWORD SymbolTableIndex; > DWORD VirtualAddress; > } Type; > WORD Linenumber; >} IMAGE_LINENUMBER; >typedef IMAGE_LINENUMBER *PIMAGE_LINENUMBER; > > > >typedef union _IMAGE_AUX_SYMBOL { > struct { > DWORD TagIndex; > union { > struct { > WORD Linenumber; > WORD Size; > } LnSz; > DWORD TotalSize; > } Misc; > union { > struct { > DWORD PointerToLinenumber; > DWORD PointerToNextFunction; > } Function; > struct { > WORD Dimension[4]; > } Array; > } FcnAry; > WORD TvIndex; > } Sym; > struct { > BYTE Name[18]; > } File; > struct { > DWORD Length; > WORD NumberOfRelocations; > WORD NumberOfLinenumbers; > DWORD CheckSum; > SHORT Number; > BYTE Selection; > } Section; >} IMAGE_AUX_SYMBOL; >typedef IMAGE_AUX_SYMBOL *PIMAGE_AUX_SYMBOL; > > > ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 2551 "../../../include/winnt.h" 2 ># 2654 "../../../include/winnt.h" >typedef struct _IMAGE_EXPORT_DIRECTORY { > DWORD Characteristics; > DWORD TimeDateStamp; > WORD MajorVersion; > WORD MinorVersion; > DWORD Name; > DWORD Base; > DWORD NumberOfFunctions; > DWORD NumberOfNames; > DWORD AddressOfFunctions; > DWORD AddressOfNames; > DWORD AddressOfNameOrdinals; >} IMAGE_EXPORT_DIRECTORY,*PIMAGE_EXPORT_DIRECTORY; > > >typedef struct _IMAGE_IMPORT_BY_NAME { > WORD Hint; > BYTE Name[1]; >} IMAGE_IMPORT_BY_NAME,*PIMAGE_IMPORT_BY_NAME; > ># 1 "../../../include/pshpack8.h" 1 ># 105 "../../../include/pshpack8.h" >#pragma pack(8) ># 2675 "../../../include/winnt.h" 2 > >typedef struct _IMAGE_THUNK_DATA64 { > union { > ULONGLONG ForwarderString; > ULONGLONG Function; > ULONGLONG Ordinal; > ULONGLONG AddressOfData; > } u1; >} IMAGE_THUNK_DATA64,*PIMAGE_THUNK_DATA64; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 2685 "../../../include/winnt.h" 2 > >typedef struct _IMAGE_THUNK_DATA32 { > union { > DWORD ForwarderString; > DWORD Function; > DWORD Ordinal; > DWORD AddressOfData; > } u1; >} IMAGE_THUNK_DATA32,*PIMAGE_THUNK_DATA32; > > > >typedef struct _IMAGE_IMPORT_DESCRIPTOR { > union { > DWORD Characteristics; > DWORD OriginalFirstThunk; > } ; > DWORD TimeDateStamp; > > > > > > > DWORD ForwarderChain; > DWORD Name; > > DWORD FirstThunk; >} IMAGE_IMPORT_DESCRIPTOR,*PIMAGE_IMPORT_DESCRIPTOR; ># 2732 "../../../include/winnt.h" >typedef IMAGE_THUNK_DATA32 IMAGE_THUNK_DATA; >typedef PIMAGE_THUNK_DATA32 PIMAGE_THUNK_DATA; > > >typedef struct _IMAGE_BOUND_IMPORT_DESCRIPTOR >{ > DWORD TimeDateStamp; > WORD OffsetModuleName; > WORD NumberOfModuleForwarderRefs; > >} IMAGE_BOUND_IMPORT_DESCRIPTOR, *PIMAGE_BOUND_IMPORT_DESCRIPTOR; > >typedef struct _IMAGE_BOUND_FORWARDER_REF >{ > DWORD TimeDateStamp; > WORD OffsetModuleName; > WORD Reserved; >} IMAGE_BOUND_FORWARDER_REF, *PIMAGE_BOUND_FORWARDER_REF; > >typedef struct _IMAGE_BASE_RELOCATION >{ > DWORD VirtualAddress; > DWORD SizeOfBlock; > >} IMAGE_BASE_RELOCATION,*PIMAGE_BASE_RELOCATION; > ># 1 "../../../include/pshpack2.h" 1 ># 105 "../../../include/pshpack2.h" >#pragma pack(2) ># 2759 "../../../include/winnt.h" 2 > >typedef struct _IMAGE_RELOCATION >{ > union { > DWORD VirtualAddress; > DWORD RelocCount; > } ; > DWORD SymbolTableIndex; > WORD Type; >} IMAGE_RELOCATION, *PIMAGE_RELOCATION; > ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 2771 "../../../include/winnt.h" 2 ># 2954 "../../../include/winnt.h" >typedef struct _IMAGE_ARCHIVE_MEMBER_HEADER >{ > BYTE Name[16]; > BYTE Date[12]; > BYTE UserID[6]; > BYTE GroupID[6]; > BYTE Mode[8]; > BYTE Size[10]; > BYTE EndHeader[2]; >} IMAGE_ARCHIVE_MEMBER_HEADER, *PIMAGE_ARCHIVE_MEMBER_HEADER; > > > >typedef struct _IMPORT_OBJECT_HEADER >{ > WORD Sig1; > WORD Sig2; > WORD Version; > WORD Machine; > DWORD TimeDateStamp; > DWORD SizeOfData; > union > { > WORD Ordinal; > WORD Hint; > } ; > WORD Type : 2; > WORD NameType : 3; > WORD Reserved : 11; >} IMPORT_OBJECT_HEADER; > > > >typedef enum IMPORT_OBJECT_TYPE >{ > IMPORT_OBJECT_CODE = 0, > IMPORT_OBJECT_DATA = 1, > IMPORT_OBJECT_CONST = 2 >} IMPORT_OBJECT_TYPE; > >typedef enum IMPORT_OBJECT_NAME_TYPE >{ > IMPORT_OBJECT_ORDINAL = 0, > IMPORT_OBJECT_NAME = 1, > IMPORT_OBJECT_NAME_NO_PREFIX = 2, > IMPORT_OBJECT_NAME_UNDECORATE = 3 >} IMPORT_OBJECT_NAME_TYPE; > >typedef struct _ANON_OBJECT_HEADER >{ > WORD Sig1; > WORD Sig2; > WORD Version; > WORD Machine; > DWORD TimeDateStamp; > CLSID ClassID; > DWORD SizeOfData; >} ANON_OBJECT_HEADER; > > > > >typedef struct _IMAGE_RESOURCE_DIRECTORY { > DWORD Characteristics; > DWORD TimeDateStamp; > WORD MajorVersion; > WORD MinorVersion; > WORD NumberOfNamedEntries; > WORD NumberOfIdEntries; > >} IMAGE_RESOURCE_DIRECTORY,*PIMAGE_RESOURCE_DIRECTORY; > > > > >typedef struct _IMAGE_RESOURCE_DIRECTORY_ENTRY { > union { > struct { > > > > > unsigned NameOffset:31; > unsigned NameIsString:1; > > } ; > DWORD Name; > struct { > > > > > WORD Id; > WORD __pad; > > } ; > } ; > union { > DWORD OffsetToData; > struct { > > > > > unsigned OffsetToDirectory:31; > unsigned DataIsDirectory:1; > > } ; > } ; >} IMAGE_RESOURCE_DIRECTORY_ENTRY,*PIMAGE_RESOURCE_DIRECTORY_ENTRY; > > >typedef struct _IMAGE_RESOURCE_DIRECTORY_STRING { > WORD Length; > CHAR NameString[ 1 ]; >} IMAGE_RESOURCE_DIRECTORY_STRING,*PIMAGE_RESOURCE_DIRECTORY_STRING; > >typedef struct _IMAGE_RESOURCE_DIR_STRING_U { > WORD Length; > WCHAR NameString[ 1 ]; >} IMAGE_RESOURCE_DIR_STRING_U,*PIMAGE_RESOURCE_DIR_STRING_U; > >typedef struct _IMAGE_RESOURCE_DATA_ENTRY { > DWORD OffsetToData; > DWORD Size; > DWORD CodePage; > DWORD Reserved; >} IMAGE_RESOURCE_DATA_ENTRY,*PIMAGE_RESOURCE_DATA_ENTRY; > > >typedef void (__attribute__((__stdcall__)) *PIMAGE_TLS_CALLBACK)( > LPVOID DllHandle,DWORD Reason,LPVOID Reserved >); > >typedef struct _IMAGE_TLS_DIRECTORY64 { > ULONGLONG StartAddressOfRawData; > ULONGLONG EndAddressOfRawData; > ULONGLONG AddressOfIndex; > ULONGLONG AddressOfCallBacks; > DWORD SizeOfZeroFill; > DWORD Characteristics; >} IMAGE_TLS_DIRECTORY64, *PIMAGE_TLS_DIRECTORY64; > >typedef struct _IMAGE_TLS_DIRECTORY32 { > DWORD StartAddressOfRawData; > DWORD EndAddressOfRawData; > DWORD AddressOfIndex; > DWORD AddressOfCallBacks; > DWORD SizeOfZeroFill; > DWORD Characteristics; >} IMAGE_TLS_DIRECTORY32, *PIMAGE_TLS_DIRECTORY32; > > > > > >typedef IMAGE_TLS_DIRECTORY32 IMAGE_TLS_DIRECTORY; >typedef PIMAGE_TLS_DIRECTORY32 PIMAGE_TLS_DIRECTORY; > > >typedef struct _IMAGE_DEBUG_DIRECTORY { > DWORD Characteristics; > DWORD TimeDateStamp; > WORD MajorVersion; > WORD MinorVersion; > DWORD Type; > DWORD SizeOfData; > DWORD AddressOfRawData; > DWORD PointerToRawData; >} IMAGE_DEBUG_DIRECTORY, *PIMAGE_DEBUG_DIRECTORY; ># 3137 "../../../include/winnt.h" >typedef enum ReplacesCorHdrNumericDefines >{ > COMIMAGE_FLAGS_ILONLY = 0x00000001, > COMIMAGE_FLAGS_32BITREQUIRED = 0x00000002, > COMIMAGE_FLAGS_IL_LIBRARY = 0x00000004, > COMIMAGE_FLAGS_STRONGNAMESIGNED = 0x00000008, > COMIMAGE_FLAGS_TRACKDEBUGDATA = 0x00010000, > > COR_VERSION_MAJOR_V2 = 2, > COR_VERSION_MAJOR = COR_VERSION_MAJOR_V2, > COR_VERSION_MINOR = 0, > COR_DELETED_NAME_LENGTH = 8, > COR_VTABLEGAP_NAME_LENGTH = 8, > > NATIVE_TYPE_MAX_CB = 1, > COR_ILMETHOD_SECT_SMALL_MAX_DATASIZE = 0xff, > > IMAGE_COR_MIH_METHODRVA = 0x01, > IMAGE_COR_MIH_EHRVA = 0x02, > IMAGE_COR_MIH_BASICBLOCK = 0x08, > > COR_VTABLE_32BIT = 0x01, > COR_VTABLE_64BIT = 0x02, > COR_VTABLE_FROM_UNMANAGED = 0x04, > COR_VTABLE_CALL_MOST_DERIVED = 0x10, > > IMAGE_COR_EATJ_THUNK_SIZE = 32, > > MAX_CLASS_NAME = 1024, > MAX_PACKAGE_NAME = 1024, >} ReplacesCorHdrNumericDefines; > >typedef struct IMAGE_COR20_HEADER >{ > DWORD cb; > WORD MajorRuntimeVersion; > WORD MinorRuntimeVersion; > > IMAGE_DATA_DIRECTORY MetaData; > DWORD Flags; > DWORD EntryPointToken; > > IMAGE_DATA_DIRECTORY Resources; > IMAGE_DATA_DIRECTORY StrongNameSignature; > IMAGE_DATA_DIRECTORY CodeManagerTable; > IMAGE_DATA_DIRECTORY VTableFixups; > IMAGE_DATA_DIRECTORY ExportAddressTableJumps; > IMAGE_DATA_DIRECTORY ManagedNativeHeader; > >} IMAGE_COR20_HEADER, *PIMAGE_COR20_HEADER; > >typedef struct _IMAGE_COFF_SYMBOLS_HEADER { > DWORD NumberOfSymbols; > DWORD LvaToFirstSymbol; > DWORD NumberOfLinenumbers; > DWORD LvaToFirstLinenumber; > DWORD RvaToFirstByteOfCode; > DWORD RvaToLastByteOfCode; > DWORD RvaToFirstByteOfData; > DWORD RvaToLastByteOfData; >} IMAGE_COFF_SYMBOLS_HEADER, *PIMAGE_COFF_SYMBOLS_HEADER; > > > > > > >typedef struct _FPO_DATA { > DWORD ulOffStart; > DWORD cbProcSize; > DWORD cdwLocals; > WORD cdwParams; > WORD cbProlog : 8; > WORD cbRegs : 3; > WORD fHasSEH : 1; > WORD fUseBP : 1; > WORD reserved : 1; > WORD cbFrame : 2; >} FPO_DATA, *PFPO_DATA; > >typedef struct _IMAGE_LOAD_CONFIG_DIRECTORY { > DWORD Size; > DWORD TimeDateStamp; > WORD MajorVersion; > WORD MinorVersion; > DWORD GlobalFlagsClear; > DWORD GlobalFlagsSet; > DWORD CriticalSectionDefaultTimeout; > DWORD DeCommitFreeBlockThreshold; > DWORD DeCommitTotalFreeThreshold; > PVOID LockPrefixTable; > DWORD MaximumAllocationSize; > DWORD VirtualMemoryThreshold; > DWORD ProcessHeapFlags; > DWORD ProcessAffinityMask; > WORD CSDVersion; > WORD Reserved1; > PVOID EditList; > DWORD SecurityCookie; > DWORD SEHandlerTable; > DWORD SEHandlerCount; >} IMAGE_LOAD_CONFIG_DIRECTORY, *PIMAGE_LOAD_CONFIG_DIRECTORY; > >typedef struct _IMAGE_FUNCTION_ENTRY { > DWORD StartingAddress; > DWORD EndingAddress; > DWORD EndOfPrologue; >} IMAGE_FUNCTION_ENTRY, *PIMAGE_FUNCTION_ENTRY; > > > >typedef struct _IMAGE_DEBUG_MISC { > DWORD DataType; > DWORD Length; > BYTE Unicode; > BYTE Reserved[ 3 ]; > BYTE Data[ 1 ]; >} IMAGE_DEBUG_MISC, *PIMAGE_DEBUG_MISC; > > > >typedef struct _IMAGE_SEPARATE_DEBUG_HEADER { > WORD Signature; > WORD Flags; > WORD Machine; > WORD Characteristics; > DWORD TimeDateStamp; > DWORD CheckSum; > DWORD ImageBase; > DWORD SizeOfImage; > DWORD NumberOfSections; > DWORD ExportedNamesSize; > DWORD DebugDirectorySize; > DWORD SectionAlignment; > DWORD Reserved[ 2 ]; >} IMAGE_SEPARATE_DEBUG_HEADER,*PIMAGE_SEPARATE_DEBUG_HEADER; > > > > >typedef struct tagMESSAGE_RESOURCE_ENTRY { > WORD Length; > WORD Flags; > BYTE Text[1]; >} MESSAGE_RESOURCE_ENTRY,*PMESSAGE_RESOURCE_ENTRY; > > >typedef struct tagMESSAGE_RESOURCE_BLOCK { > DWORD LowId; > DWORD HighId; > DWORD OffsetToEntries; >} MESSAGE_RESOURCE_BLOCK,*PMESSAGE_RESOURCE_BLOCK; > >typedef struct tagMESSAGE_RESOURCE_DATA { > DWORD NumberOfBlocks; > MESSAGE_RESOURCE_BLOCK Blocks[ 1 ]; >} MESSAGE_RESOURCE_DATA,*PMESSAGE_RESOURCE_DATA; ># 3306 "../../../include/winnt.h" >typedef PVOID PACCESS_TOKEN; >typedef PVOID PSECURITY_DESCRIPTOR; >typedef PVOID PSID; > > > > > >typedef enum _TOKEN_INFORMATION_CLASS { > TokenUser = 1, > TokenGroups, > TokenPrivileges, > TokenOwner, > TokenPrimaryGroup, > TokenDefaultDacl, > TokenSource, > TokenType, > TokenImpersonationLevel, > TokenStatistics, > TokenRestrictedSids, > TokenSessionId, > TokenGroupsAndPrivileges, > TokenSessionReference, > TokenSandBoxInert >} TOKEN_INFORMATION_CLASS; ># 3363 "../../../include/winnt.h" >typedef DWORD ACCESS_MASK, *PACCESS_MASK; > >typedef struct _GENERIC_MAPPING { > ACCESS_MASK GenericRead; > ACCESS_MASK GenericWrite; > ACCESS_MASK GenericExecute; > ACCESS_MASK GenericAll; >} GENERIC_MAPPING, *PGENERIC_MAPPING; > > > >typedef struct { > BYTE Value[6]; >} SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY; > > > > >typedef struct _SID { > BYTE Revision; > BYTE SubAuthorityCount; > SID_IDENTIFIER_AUTHORITY IdentifierAuthority; > DWORD SubAuthority[1]; >} SID,*PISID; ># 3409 "../../../include/winnt.h" >typedef struct _ACL { > BYTE AclRevision; > BYTE Sbz1; > WORD AclSize; > WORD AceCount; > WORD Sbz2; >} ACL, *PACL; > >typedef enum _ACL_INFORMATION_CLASS >{ > AclRevisionInformation = 1, > AclSizeInformation >} ACL_INFORMATION_CLASS; > >typedef struct _ACL_REVISION_INFORMATION >{ > DWORD AclRevision; >} ACL_REVISION_INFORMATION, *PACL_REVISION_INFORMATION; > >typedef struct _ACL_SIZE_INFORMATION >{ > DWORD AceCount; > DWORD AclBytesInUse; > DWORD AclBytesFree; >} ACL_SIZE_INFORMATION, *PACL_SIZE_INFORMATION; ># 3503 "../../../include/winnt.h" >typedef DWORD SECURITY_INFORMATION, *PSECURITY_INFORMATION; >typedef WORD SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL; > > >typedef struct { > BYTE Revision; > BYTE Sbz1; > SECURITY_DESCRIPTOR_CONTROL Control; > DWORD Owner; > DWORD Group; > DWORD Sacl; > DWORD Dacl; >} SECURITY_DESCRIPTOR_RELATIVE, *PISECURITY_DESCRIPTOR_RELATIVE; > >typedef struct { > BYTE Revision; > BYTE Sbz1; > SECURITY_DESCRIPTOR_CONTROL Control; > PSID Owner; > PSID Group; > PACL Sacl; > PACL Dacl; >} SECURITY_DESCRIPTOR, *PISECURITY_DESCRIPTOR; ># 3535 "../../../include/winnt.h" >typedef struct _SID_AND_ATTRIBUTES { > PSID Sid; > DWORD Attributes; >} SID_AND_ATTRIBUTES, *PSID_AND_ATTRIBUTES; ># 3639 "../../../include/winnt.h" >typedef enum { > WinNullSid = 0, > WinWorldSid = 1, > WinLocalSid = 2, > WinCreatorOwnerSid = 3, > WinCreatorGroupSid = 4, > WinCreatorOwnerServerSid = 5, > WinCreatorGroupServerSid = 6, > WinNtAuthoritySid = 7, > WinDialupSid = 8, > WinNetworkSid = 9, > WinBatchSid = 10, > WinInteractiveSid = 11, > WinServiceSid = 12, > WinAnonymousSid = 13, > WinProxySid = 14, > WinEnterpriseControllersSid = 15, > WinSelfSid = 16, > WinAuthenticatedUserSid = 17, > WinRestrictedCodeSid = 18, > WinTerminalServerSid = 19, > WinRemoteLogonIdSid = 20, > WinLogonIdsSid = 21, > WinLocalSystemSid = 22, > WinLocalServiceSid = 23, > WinNetworkServiceSid = 24, > WinBuiltinDomainSid = 25, > WinBuiltinAdministratorsSid = 26, > WinBuiltinUsersSid = 27, > WinBuiltinGuestsSid = 28, > WinBuiltinPowerUsersSid = 29, > WinBuiltinAccountOperatorsSid = 30, > WinBuiltinSystemOperatorsSid = 31, > WinBuiltinPrintOperatorsSid = 32, > WinBuiltinBackupOperatorsSid = 33, > WinBuiltinReplicatorSid = 34, > WinBuiltinPreWindows2000CompatibleAccessSid = 35, > WinBuiltinRemoteDesktopUsersSid = 36, > WinBuiltinNetworkConfigurationOperatorsSid = 37, > WinAccountAdministratorSid = 38, > WinAccountGuestSid = 39, > WinAccountKrbtgtSid = 40, > WinAccountDomainAdminsSid = 41, > WinAccountDomainUsersSid = 42, > WinAccountDomainGuestsSid = 43, > WinAccountComputersSid = 44, > WinAccountControllersSid = 45, > WinAccountCertAdminsSid = 46, > WinAccountSchemaAdminsSid = 47, > WinAccountEnterpriseAdminsSid = 48, > WinAccountPolicyAdminsSid = 49, > WinAccountRasAndIasServersSid = 50, > WinNTLMAuthenticationSid = 51, > WinDigestAuthenticationSid = 52, > WinSChannelAuthenticationSid = 53, > WinThisOrganizationSid = 54, > WinOtherOrganizationSid = 55, > WinBuiltinIncomingForestTrustBuildersSid = 56, > WinBuiltinPerfMonitoringUsersSid = 57, > WinBuiltinPerfLoggingUsersSid = 58, > WinBuiltinAuthorizationAccessSid = 59, > WinBuiltinTerminalServerLicenseServersSid = 60, > WinBuiltinDCOMUsersSid = 61 >} WELL_KNOWN_SID_TYPE; > > > > > >typedef struct _TOKEN_USER { > SID_AND_ATTRIBUTES User; >} TOKEN_USER, *PTOKEN_USER; > > > > > >typedef struct _TOKEN_GROUPS { > DWORD GroupCount; > SID_AND_ATTRIBUTES Groups[1]; >} TOKEN_GROUPS, *PTOKEN_GROUPS; > > > > > >typedef union _LARGE_INTEGER { > struct { > > > > > DWORD LowPart; > LONG HighPart; > > } u; > > struct { > > > > > DWORD LowPart; > LONG HighPart; > > }; > > LONGLONG QuadPart; >} LARGE_INTEGER, *PLARGE_INTEGER; > >typedef union _ULARGE_INTEGER { > struct { > > > > > DWORD LowPart; > DWORD HighPart; > > } u; > > struct { > > > > > DWORD LowPart; > DWORD HighPart; > > }; > > ULONGLONG QuadPart; >} ULARGE_INTEGER, *PULARGE_INTEGER; > > > > > >typedef struct _LUID { > DWORD LowPart; > LONG HighPart; >} LUID, *PLUID; > ># 1 "../../../include/pshpack4.h" 1 ># 105 "../../../include/pshpack4.h" >#pragma pack(4) ># 3783 "../../../include/winnt.h" 2 >typedef struct _LUID_AND_ATTRIBUTES { > LUID Luid; > DWORD Attributes; >} LUID_AND_ATTRIBUTES, *PLUID_AND_ATTRIBUTES; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 3788 "../../../include/winnt.h" 2 > > > > > >typedef struct _PRIVILEGE_SET { > DWORD PrivilegeCount; > DWORD Control; > LUID_AND_ATTRIBUTES Privilege[1]; >} PRIVILEGE_SET, *PPRIVILEGE_SET; > > > > > >typedef struct _TOKEN_PRIVILEGES { > DWORD PrivilegeCount; > LUID_AND_ATTRIBUTES Privileges[1]; >} TOKEN_PRIVILEGES, *PTOKEN_PRIVILEGES; > > > > > >typedef struct _TOKEN_OWNER { > PSID Owner; >} TOKEN_OWNER, *PTOKEN_OWNER; > > > > > >typedef struct _TOKEN_PRIMARY_GROUP { > PSID PrimaryGroup; >} TOKEN_PRIMARY_GROUP, *PTOKEN_PRIMARY_GROUP; > > > > > > >typedef struct _TOKEN_DEFAULT_DACL { > PACL DefaultDacl; >} TOKEN_DEFAULT_DACL, *PTOKEN_DEFAULT_DACL; > > > > > > > >typedef struct _TOKEN_SOURCE { > char SourceName[8]; > LUID SourceIdentifier; >} TOKEN_SOURCE, *PTOKEN_SOURCE; > > > > > >typedef enum tagTOKEN_TYPE { > TokenPrimary = 1, > TokenImpersonation >} TOKEN_TYPE; > > > > > >typedef enum _SECURITY_IMPERSONATION_LEVEL { > SecurityAnonymous, > SecurityIdentification, > SecurityImpersonation, > SecurityDelegation >} SECURITY_IMPERSONATION_LEVEL, *PSECURITY_IMPERSONATION_LEVEL; > > > > >typedef BOOLEAN SECURITY_CONTEXT_TRACKING_MODE, > * PSECURITY_CONTEXT_TRACKING_MODE; > > > > >typedef struct _SECURITY_QUALITY_OF_SERVICE { > DWORD Length; > SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; > SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode; > BOOLEAN EffectiveOnly; >} SECURITY_QUALITY_OF_SERVICE, *PSECURITY_QUALITY_OF_SERVICE; > > > > > ># 1 "../../../include/pshpack4.h" 1 ># 105 "../../../include/pshpack4.h" >#pragma pack(4) ># 3885 "../../../include/winnt.h" 2 >typedef struct _TOKEN_STATISTICS { > LUID TokenId; > LUID AuthenticationId; > LARGE_INTEGER ExpirationTime; > TOKEN_TYPE TokenType; > SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; > DWORD DynamicCharged; > DWORD DynamicAvailable; > DWORD GroupCount; > DWORD PrivilegeCount; > LUID ModifiedId; >} TOKEN_STATISTICS; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 3898 "../../../include/winnt.h" 2 > > > > > > >typedef struct _ACE_HEADER { > BYTE AceType; > BYTE AceFlags; > WORD AceSize; >} ACE_HEADER,*PACE_HEADER; ># 3935 "../../../include/winnt.h" >typedef struct _ACCESS_ALLOWED_ACE { > ACE_HEADER Header; > DWORD Mask; > DWORD SidStart; >} ACCESS_ALLOWED_ACE,*PACCESS_ALLOWED_ACE; > >typedef struct _ACCESS_DENIED_ACE { > ACE_HEADER Header; > DWORD Mask; > DWORD SidStart; >} ACCESS_DENIED_ACE,*PACCESS_DENIED_ACE; > >typedef struct _SYSTEM_AUDIT_ACE { > ACE_HEADER Header; > DWORD Mask; > DWORD SidStart; >} SYSTEM_AUDIT_ACE,*PSYSTEM_AUDIT_ACE; > >typedef struct _SYSTEM_ALARM_ACE { > ACE_HEADER Header; > DWORD Mask; > DWORD SidStart; >} SYSTEM_ALARM_ACE,*PSYSTEM_ALARM_ACE; > >typedef enum tagSID_NAME_USE { > SidTypeUser = 1, > SidTypeGroup, > SidTypeDomain, > SidTypeAlias, > SidTypeWellKnownGroup, > SidTypeDeletedAccount, > SidTypeInvalid, > SidTypeUnknown >} SID_NAME_USE,*PSID_NAME_USE; ># 4043 "../../../include/winnt.h" >typedef struct _QUOTA_LIMITS { > SIZE_T PagedPoolLimit; > SIZE_T NonPagedPoolLimit; > SIZE_T MinimumWorkingSetSize; > SIZE_T MaximumWorkingSetSize; > SIZE_T PagefileLimit; > LARGE_INTEGER TimeLimit; >} QUOTA_LIMITS, *PQUOTA_LIMITS; > > > > > > >typedef struct _QUOTA_LIMITS_EX { > SIZE_T PagedPoolLimit; > SIZE_T NonPagedPoolLimit; > SIZE_T MinimumWorkingSetSize; > SIZE_T MaximumWorkingSetSize; > SIZE_T PagefileLimit; > LARGE_INTEGER TimeLimit; > SIZE_T Reserved1; > SIZE_T Reserved2; > SIZE_T Reserved3; > SIZE_T Reserved4; > DWORD Flags; > DWORD Reserved5; >} QUOTA_LIMITS_EX, *PQUOTA_LIMITS_EX; ># 4196 "../../../include/winnt.h" >typedef enum _LATENCY_TIME { > LT_DONT_CARE, > LT_LOWEST_LATENCY >} LATENCY_TIME, *PLATENCY_TIME; ># 4210 "../../../include/winnt.h" >typedef enum _POWER_ACTION { > PowerActionNone = 0, > PowerActionReserved, > PowerActionSleep, > PowerActionHibernate, > PowerActionShutdown, > PowerActionShutdownReset, > PowerActionShutdownOff, > PowerActionWarmEject >} POWER_ACTION, >*PPOWER_ACTION; > >typedef enum _SYSTEM_POWER_STATE { > PowerSystemUnspecified = 0, > PowerSystemWorking = 1, > PowerSystemSleeping1 = 2, > PowerSystemSleeping2 = 3, > PowerSystemSleeping3 = 4, > PowerSystemHibernate = 5, > PowerSystemShutdown = 6, > PowerSystemMaximum = 7 >} SYSTEM_POWER_STATE, >*PSYSTEM_POWER_STATE; > >typedef enum _DEVICE_POWER_STATE { > PowerDeviceUnspecified, > PowerDeviceD0, > PowerDeviceD1, > PowerDeviceD2, > PowerDeviceD3, > PowerDeviceMaximum >} DEVICE_POWER_STATE, *PDEVICE_POWER_STATE; > >typedef enum _POWER_INFORMATION_LEVEL { > SystemPowerPolicyAc, > SystemPowerPolicyDc, > VerifySystemPolicyAc, > VerifySystemPolicyDc, > SystemPowerCapabilities, > SystemBatteryState, > SystemPowerStateHandler, > ProcessorStateHandler, > SystemPowerPolicyCurrent, > AdministratorPowerPolicy, > SystemReserveHiberFile, > ProcessorInformation, > SystemPowerInformation, > ProcessorStateHandler2, > LastWakeTime, > LastSleepTime, > SystemExecutionState, > SystemPowerStateNotifyHandler, > ProcessorPowerPolicyAc, > ProcessorPowerPolicyDc, > VerifyProcessorPowerPolicyAc, > VerifyProcessorPowerPolicyDc, > ProcessorPowerPolicyCurrent >} POWER_INFORMATION_LEVEL; > >typedef struct _ADMINISTRATOR_POWER_POLICY { > SYSTEM_POWER_STATE MinSleep; > SYSTEM_POWER_STATE MaxSleep; > ULONG MinVideoTimeout; > ULONG MaxVideoTimeout; > ULONG MinSpindownTimeout; > ULONG MaxSpindownTimeout; >} ADMINISTRATOR_POWER_POLICY, *PADMINISTRATOR_POWER_POLICY; > >typedef struct { > ULONG Granularity; > ULONG Capacity; >} BATTERY_REPORTING_SCALE, >*PBATTERY_REPORTING_SCALE; > >typedef struct { > POWER_ACTION Action; > ULONG Flags; > ULONG EventCode; >} POWER_ACTION_POLICY, >*PPOWER_ACTION_POLICY; > >typedef struct _PROCESSOR_POWER_INFORMATION { > ULONG Number; > ULONG MaxMhz; > ULONG CurrentMhz; > ULONG MhzLimit; > ULONG MaxIdleState; > ULONG CurrentIdleState; >} PROCESSOR_POWER_INFORMATION, >*PPROCESSOR_POWER_INFORMATION; > >typedef struct _PROCESSOR_POWER_POLICY_INFO { > ULONG TimeCheck; > ULONG DemoteLimit; > ULONG PromoteLimit; > UCHAR DemotePercent; > UCHAR PromotePercent; > UCHAR Spare[2]; > ULONG AllowDemotion:1; > ULONG AllowPromotion:1; > ULONG Reserved:30; >} PROCESSOR_POWER_POLICY_INFO, >*PPROCESSOR_POWER_POLICY_INFO; > >typedef struct _PROCESSOR_POWER_POLICY { > DWORD Revision; > BYTE DynamicThrottle; > BYTE Spare[3]; > DWORD DisableCStates:1; > DWORD Reserved:31; > DWORD PolicyCount; > PROCESSOR_POWER_POLICY_INFO Policy[3]; >} PROCESSOR_POWER_POLICY, >*PPROCESSOR_POWER_POLICY; > >typedef struct { > BOOLEAN AcOnLine; > BOOLEAN BatteryPresent; > BOOLEAN Charging; > BOOLEAN Discharging; > BOOLEAN Spare1[4]; > ULONG MaxCapacity; > ULONG RemainingCapacity; > ULONG Rate; > ULONG EstimatedTime; > ULONG DefaultAlert1; > ULONG DefaultAlert2; >} SYSTEM_BATTERY_STATE, >*PSYSTEM_BATTERY_STATE; > >typedef struct { > BOOLEAN PowerButtonPresent; > BOOLEAN SleepButtonPresent; > BOOLEAN LidPresent; > BOOLEAN SystemS1; > BOOLEAN SystemS2; > BOOLEAN SystemS3; > BOOLEAN SystemS4; > BOOLEAN SystemS5; > BOOLEAN HiberFilePresent; > BOOLEAN FullWake; > BOOLEAN VideoDimPresent; > BOOLEAN ApmPresent; > BOOLEAN UpsPresent; > BOOLEAN ThermalControl; > BOOLEAN ProcessorThrottle; > UCHAR ProcessorMinThrottle; > UCHAR ProcessorMaxThrottle; > UCHAR spare2[4]; > BOOLEAN DiskSpinDown; > UCHAR spare3[8]; > BOOLEAN SystemBatteriesPresent; > BOOLEAN BatteriesAreShortTerm; > BATTERY_REPORTING_SCALE BatteryScale[3]; > SYSTEM_POWER_STATE AcOnLineWake; > SYSTEM_POWER_STATE SoftLidWake; > SYSTEM_POWER_STATE RtcWake; > SYSTEM_POWER_STATE MinDeviceWakeState; > SYSTEM_POWER_STATE DefaultLowLatencyWake; >} SYSTEM_POWER_CAPABILITIES, >*PSYSTEM_POWER_CAPABILITIES; > >typedef struct _SYSTEM_POWER_INFORMATION { > ULONG MaxIdlenessAllowed; > ULONG Idleness; > ULONG TimeRemaining; > UCHAR CoolingMode; >} SYSTEM_POWER_INFORMATION, >*PSYSTEM_POWER_INFORMATION; > >typedef struct _SYSTEM_POWER_LEVEL { > BOOLEAN Enable; > UCHAR Spare[3]; > ULONG BatteryLevel; > POWER_ACTION_POLICY PowerPolicy; > SYSTEM_POWER_STATE MinSystemState; >} SYSTEM_POWER_LEVEL, >*PSYSTEM_POWER_LEVEL; > >typedef struct _SYSTEM_POWER_POLICY { > ULONG Revision; > POWER_ACTION_POLICY PowerButton; > POWER_ACTION_POLICY SleepButton; > POWER_ACTION_POLICY LidClose; > SYSTEM_POWER_STATE LidOpenWake; > ULONG Reserved; > POWER_ACTION_POLICY Idle; > ULONG IdleTimeout; > UCHAR IdleSensitivity; > UCHAR DynamicThrottle; > UCHAR Spare2[2]; > SYSTEM_POWER_STATE MinSleep; > SYSTEM_POWER_STATE MaxSleep; > SYSTEM_POWER_STATE ReducedLatencySleep; > ULONG WinLogonFlags; > ULONG Spare3; > ULONG DozeS4Timeout; > ULONG BroadcastCapacityResolution; > SYSTEM_POWER_LEVEL DischargePolicy[4]; > ULONG VideoTimeout; > BOOLEAN VideoDimDisplay; > ULONG VideoReserved[3]; > ULONG SpindownTimeout; > BOOLEAN OptimizeForPower; > UCHAR FanThrottleTolerance; > UCHAR ForcedThrottle; > UCHAR MinThrottle; > POWER_ACTION_POLICY OverThrottled; >} SYSTEM_POWER_POLICY, >*PSYSTEM_POWER_POLICY; > >typedef union _FILE_SEGMENT_ELEMENT { > PVOID64 Buffer; > ULONGLONG Alignment; >} FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT; > >typedef struct _FILE_NOTIFY_INFORMATION { > DWORD NextEntryOffset; > DWORD Action; > DWORD FileNameLength; > WCHAR FileName[1]; >} FILE_NOTIFY_INFORMATION, *PFILE_NOTIFY_INFORMATION; ># 4461 "../../../include/winnt.h" >typedef struct _TAPE_CREATE_PARTITION { > DWORD Method; > DWORD Count; > DWORD Size; >} TAPE_CREATE_PARTITION, *PTAPE_CREATE_PARTITION; > >typedef struct _TAPE_ERASE { > DWORD Type; > BOOLEAN Immediate; >} TAPE_ERASE, *PTAPE_ERASE; > >typedef struct _TAPE_PREPARE { > DWORD Operation; > BOOLEAN Immediate; >} TAPE_PREPARE, *PTAPE_PREPARE; > >typedef struct _TAPE_SET_DRIVE_PARAMETERS { > BOOLEAN ECC; > BOOLEAN Compression; > BOOLEAN DataPadding; > BOOLEAN ReportSetmarks; > ULONG EOTWarningZoneSize; >} TAPE_SET_DRIVE_PARAMETERS, *PTAPE_SET_DRIVE_PARAMETERS; > >typedef struct _TAPE_SET_MEDIA_PARAMETERS { > ULONG BlockSize; >} TAPE_SET_MEDIA_PARAMETERS, *PTAPE_SET_MEDIA_PARAMETERS; > >typedef struct _TAPE_WRITE_MARKS { > DWORD Type; > DWORD Count; > BOOLEAN Immediate; >} TAPE_WRITE_MARKS, *PTAPE_WRITE_MARKS; > >typedef struct _TAPE_GET_POSITION { > ULONG Type; > ULONG Partition; > ULONG OffsetLow; > ULONG OffsetHigh; >} TAPE_GET_POSITION, *PTAPE_GET_POSITION; > >typedef struct _TAPE_SET_POSITION { > ULONG Method; > ULONG Partition; > LARGE_INTEGER Offset; > BOOLEAN Immediate; >} TAPE_SET_POSITION, *PTAPE_SET_POSITION; > >typedef struct _TAPE_GET_DRIVE_PARAMETERS { > BOOLEAN ECC; > BOOLEAN Compression; > BOOLEAN DataPadding; > BOOLEAN ReportSetmarks; > DWORD DefaultBlockSize; > DWORD MaximumBlockSize; > DWORD MinimumBlockSize; > DWORD MaximumPartitionCount; > DWORD FeaturesLow; > DWORD FeaturesHigh; > DWORD EOTWarningZoneSize; >} TAPE_GET_DRIVE_PARAMETERS, *PTAPE_GET_DRIVE_PARAMETERS; > >typedef struct _TAPE_GET_MEDIA_PARAMETERS { > LARGE_INTEGER Capacity; > LARGE_INTEGER Remaining; > DWORD BlockSize; > DWORD PartitionCount; > BOOLEAN WriteProtected; >} TAPE_GET_MEDIA_PARAMETERS, *PTAPE_GET_MEDIA_PARAMETERS; ># 4636 "../../../include/winnt.h" >typedef enum _CM_SERVICE_NODE_TYPE >{ > DriverType = 0x00000001, > FileSystemType = 0x00000002, > Win32ServiceOwnProcess = 0x00000010, > Win32ServiceShareProcess = 0x00000020, > AdapterType = 0x00000004, > RecognizerType = 0x00000008 >} SERVICE_NODE_TYPE; > >typedef enum _CM_SERVICE_LOAD_TYPE >{ > BootLoad = 0x00000000, > SystemLoad = 0x00000001, > AutoLoad = 0x00000002, > DemandLoad = 0x00000003, > DisableLoad = 0x00000004 >} SERVICE_LOAD_TYPE; > >typedef enum _CM_ERROR_CONTROL_TYPE >{ > IgnoreError = 0x00000000, > NormalError = 0x00000001, > SevereError = 0x00000002, > CriticalError = 0x00000003 >} SERVICE_ERROR_TYPE; ># 4671 "../../../include/winnt.h" ># 1 "../../../include/guiddef.h" 1 ># 4672 "../../../include/winnt.h" 2 > >typedef struct _OBJECT_TYPE_LIST { > WORD Level; > WORD Sbz; > GUID *ObjectType; >} OBJECT_TYPE_LIST, *POBJECT_TYPE_LIST; > >typedef struct _RTL_CRITICAL_SECTION_DEBUG >{ > WORD Type; > WORD CreatorBackTraceIndex; > struct _RTL_CRITICAL_SECTION *CriticalSection; > LIST_ENTRY ProcessLocksList; > DWORD EntryCount; > DWORD ContentionCount; > > > > DWORD Spare[ 2 ]; > >} RTL_CRITICAL_SECTION_DEBUG, *PRTL_CRITICAL_SECTION_DEBUG, RTL_RESOURCE_DEBUG, *PRTL_RESOURCE_DEBUG; > >typedef struct _RTL_CRITICAL_SECTION { > PRTL_CRITICAL_SECTION_DEBUG DebugInfo; > LONG LockCount; > LONG RecursionCount; > HANDLE OwningThread; > HANDLE LockSemaphore; > ULONG_PTR SpinCount; >} RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION; > >typedef void (__attribute__((__stdcall__)) * WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN ); >typedef void (__attribute__((__stdcall__)) * PFLS_CALLBACK_FUNCTION) ( PVOID ); > ># 1 "../../../include/pshpack8.h" 1 ># 105 "../../../include/pshpack8.h" >#pragma pack(8) ># 4707 "../../../include/winnt.h" 2 >typedef struct _IO_COUNTERS { > ULONGLONG __attribute__((aligned(8))) ReadOperationCount; > ULONGLONG __attribute__((aligned(8))) WriteOperationCount; > ULONGLONG __attribute__((aligned(8))) OtherOperationCount; > ULONGLONG __attribute__((aligned(8))) ReadTransferCount; > ULONGLONG __attribute__((aligned(8))) WriteTransferCount; > ULONGLONG __attribute__((aligned(8))) OtherTransferCount; >} IO_COUNTERS, *PIO_COUNTERS; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 4716 "../../../include/winnt.h" 2 > >typedef struct { > DWORD dwOSVersionInfoSize; > DWORD dwMajorVersion; > DWORD dwMinorVersion; > DWORD dwBuildNumber; > DWORD dwPlatformId; > CHAR szCSDVersion[128]; >} OSVERSIONINFOA, *POSVERSIONINFOA, *LPOSVERSIONINFOA; > >typedef struct { > DWORD dwOSVersionInfoSize; > DWORD dwMajorVersion; > DWORD dwMinorVersion; > DWORD dwBuildNumber; > DWORD dwPlatformId; > WCHAR szCSDVersion[128]; >} OSVERSIONINFOW, *POSVERSIONINFOW, *LPOSVERSIONINFOW, RTL_OSVERSIONINFOW, *PRTL_OSVERSIONINFOW; > >typedef OSVERSIONINFOA OSVERSIONINFO; >typedef POSVERSIONINFOA POSVERSIONINFO; >typedef LPOSVERSIONINFOA LPOSVERSIONINFO; > >typedef struct { > DWORD dwOSVersionInfoSize; > DWORD dwMajorVersion; > DWORD dwMinorVersion; > DWORD dwBuildNumber; > DWORD dwPlatformId; > CHAR szCSDVersion[128]; > WORD wServicePackMajor; > WORD wServicePackMinor; > WORD wSuiteMask; > BYTE wProductType; > BYTE wReserved; >} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA; > >typedef struct { > DWORD dwOSVersionInfoSize; > DWORD dwMajorVersion; > DWORD dwMinorVersion; > DWORD dwBuildNumber; > DWORD dwPlatformId; > WCHAR szCSDVersion[128]; > WORD wServicePackMajor; > WORD wServicePackMinor; > WORD wSuiteMask; > BYTE wProductType; > BYTE wReserved; >} OSVERSIONINFOEXW, *POSVERSIONINFOEXW, *LPOSVERSIONINFOEXW, RTL_OSVERSIONINFOEXW, *PRTL_OSVERSIONINFOEXW; > >typedef OSVERSIONINFOEXA OSVERSIONINFOEX; >typedef POSVERSIONINFOEXA POSVERSIONINFOEX; >typedef LPOSVERSIONINFOEXA LPOSVERSIONINFOEX; > >__attribute__((visibility ("hidden"))) ULONGLONG __attribute__((__stdcall__)) VerSetConditionMask(ULONGLONG,DWORD,BYTE); ># 4812 "../../../include/winnt.h" >typedef struct _ACTIVATION_CONTEXT_DETAILED_INFORMATION { > DWORD dwFlags; > DWORD ulFormatVersion; > DWORD ulAssemblyCount; > DWORD ulRootManifestPathType; > DWORD ulRootManifestPathChars; > DWORD ulRootConfigurationPathType; > DWORD ulRootConfigurationPathChars; > DWORD ulAppDirPathType; > DWORD ulAppDirPathChars; > PCWSTR lpRootManifestPath; > PCWSTR lpRootConfigurationPath; > PCWSTR lpAppDirPath; >} ACTIVATION_CONTEXT_DETAILED_INFORMATION, *PACTIVATION_CONTEXT_DETAILED_INFORMATION; > >typedef struct _ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION { > DWORD ulFlags; > DWORD ulEncodedAssemblyIdentityLength; > DWORD ulManifestPathType; > DWORD ulManifestPathLength; > LARGE_INTEGER liManifestLastWriteTime; > DWORD ulPolicyPathType; > DWORD ulPolicyPathLength; > LARGE_INTEGER liPolicyLastWriteTime; > DWORD ulMetadataSatelliteRosterIndex; > DWORD ulManifestVersionMajor; > DWORD ulManifestVersionMinor; > DWORD ulPolicyVersionMajor; > DWORD ulPolicyVersionMinor; > DWORD ulAssemblyDirectoryNameLength; > PCWSTR lpAssemblyEncodedAssemblyIdentity; > PCWSTR lpAssemblyManifestPath; > PCWSTR lpAssemblyPolicyPath; > PCWSTR lpAssemblyDirectoryName; > DWORD ulFileCount; >} ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION, *PACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION; > >typedef struct _ACTIVATION_CONTEXT_QUERY_INDEX { > DWORD ulAssemblyIndex; > DWORD ulFileIndexInAssembly; >} ACTIVATION_CONTEXT_QUERY_INDEX, *PACTIVATION_CONTEXT_QUERY_INDEX; > >typedef const struct _ACTIVATION_CONTEXT_QUERY_INDEX *PCACTIVATION_CONTEXT_QUERY_INDEX; > >typedef struct _ASSEMBLY_FILE_DETAILED_INFORMATION { > DWORD ulFlags; > DWORD ulFilenameLength; > DWORD ulPathLength; > PCWSTR lpFileName; > PCWSTR lpFilePath; >} ASSEMBLY_FILE_DETAILED_INFORMATION, *PASSEMBLY_FILE_DETAILED_INFORMATION; > >typedef const ASSEMBLY_FILE_DETAILED_INFORMATION *PCASSEMBLY_FILE_DETAILED_INFORMATION; > >typedef enum _ACTIVATION_CONTEXT_INFO_CLASS { > ActivationContextBasicInformation = 1, > ActivationContextDetailedInformation = 2, > AssemblyDetailedInformationInActivationContext = 3, > FileInformationInAssemblyOfAssemblyInActivationContext = 4, > MaxActivationContextInfoClass, > > AssemblyDetailedInformationInActivationContxt = 3, > FileInformationInAssemblyOfAssemblyInActivationContxt = 4 >} ACTIVATION_CONTEXT_INFO_CLASS; ># 235 "../../../include/windef.h" 2 > > > >typedef UINT_PTR WPARAM; >typedef LONG_PTR LPARAM; >typedef LONG_PTR LRESULT; > > > >typedef WORD ATOM; >typedef DWORD COLORREF, *LPCOLORREF; > > > > >typedef int HFILE; >typedef struct HACCEL__ { int unused; } *HACCEL; >typedef struct HBITMAP__ { int unused; } *HBITMAP; >typedef struct HBRUSH__ { int unused; } *HBRUSH; >typedef struct HCOLORSPACE__ { int unused; } *HCOLORSPACE; >typedef struct HDC__ { int unused; } *HDC; >typedef struct HDESK__ { int unused; } *HDESK; >typedef struct HENHMETAFILE__ { int unused; } *HENHMETAFILE; >typedef struct HFONT__ { int unused; } *HFONT; >typedef struct HGLRC__ { int unused; } *HGLRC; >typedef struct HHOOK__ { int unused; } *HHOOK; >typedef struct HICON__ { int unused; } *HICON; >typedef struct HINSTANCE__ { int unused; } *HINSTANCE; >typedef struct HKEY__ { int unused; } *HKEY; >typedef HKEY *PHKEY; >typedef struct HKL__ { int unused; } *HKL; >typedef struct HMENU__ { int unused; } *HMENU; >typedef struct HMETAFILE__ { int unused; } *HMETAFILE; >typedef struct HMONITOR__ { int unused; } *HMONITOR; >typedef struct HPALETTE__ { int unused; } *HPALETTE; >typedef struct HPEN__ { int unused; } *HPEN; >typedef struct HRGN__ { int unused; } *HRGN; >typedef struct HRSRC__ { int unused; } *HRSRC; >typedef struct HTASK__ { int unused; } *HTASK; >typedef struct HWINEVENTHOOK__ { int unused; } *HWINEVENTHOOK; >typedef struct HWINSTA__ { int unused; } *HWINSTA; >typedef struct HWND__ { int unused; } *HWND; > > > >typedef HINSTANCE HMODULE; >typedef HANDLE HGDIOBJ; >typedef HANDLE HGLOBAL; >typedef HANDLE HLOCAL; >typedef HANDLE GLOBALHANDLE; >typedef HANDLE LOCALHANDLE; >typedef HICON HCURSOR; > > > >typedef INT_PTR (__attribute__((__stdcall__)) *FARPROC)(); >typedef INT_PTR (__attribute__((__stdcall__)) *NEARPROC)(); >typedef INT_PTR (__attribute__((__stdcall__)) *PROC)(); ># 324 "../../../include/windef.h" >typedef struct tagSIZE >{ > LONG cx; > LONG cy; >} SIZE, *PSIZE, *LPSIZE; > >typedef SIZE SIZEL, *PSIZEL, *LPSIZEL; > > >typedef struct tagPOINT >{ > LONG x; > LONG y; >} POINT, *PPOINT, *LPPOINT; > >typedef struct _POINTL >{ > LONG x; > LONG y; >} POINTL, *PPOINTL; > > > >typedef struct tagPOINTS >{ > > > > > SHORT x; > SHORT y; > >} POINTS, *PPOINTS, *LPPOINTS; > >typedef struct _FILETIME { > > > > > DWORD dwLowDateTime; > DWORD dwHighDateTime; > >} FILETIME, *PFILETIME, *LPFILETIME; > > > >typedef struct tagRECT >{ > LONG left; > LONG top; > LONG right; > LONG bottom; >} RECT, *PRECT, *LPRECT; >typedef const RECT *LPCRECT; > >typedef struct _RECTL >{ > LONG left; > LONG top; > LONG right; > LONG bottom; >} RECTL, *PRECTL, *LPRECTL; > >typedef const RECTL *LPCRECTL; ># 32 "menu.c" 2 ># 1 "../../../include/winbase.h" 1 ># 22 "../../../include/winbase.h" ># 1 "../../../include/winerror.h" 1 ># 93 "../../../include/winerror.h" >static inline HRESULT HRESULT_FROM_WIN32(unsigned long x) >{ > return (HRESULT)x > 0 ? ((HRESULT) ((x & 0x0000FFFF) | (7 << 16) | 0x80000000)) : (HRESULT)x; >} ># 23 "../../../include/winbase.h" 2 ># 44 "../../../include/winbase.h" >typedef DWORD (__attribute__((__stdcall__)) *LPTHREAD_START_ROUTINE)(LPVOID); > >typedef void (__attribute__((__stdcall__)) *PFIBER_START_ROUTINE)( LPVOID lpFiberParameter ); >typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE; > >typedef RTL_CRITICAL_SECTION CRITICAL_SECTION; >typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION; >typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION; > >typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG; >typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG; >typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG; > >typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK; ># 69 "../../../include/winbase.h" >typedef struct _EXCEPTION_DEBUG_INFO { > EXCEPTION_RECORD ExceptionRecord; > DWORD dwFirstChance; >} EXCEPTION_DEBUG_INFO; > >typedef struct _CREATE_THREAD_DEBUG_INFO { > HANDLE hThread; > LPVOID lpThreadLocalBase; > LPTHREAD_START_ROUTINE lpStartAddress; >} CREATE_THREAD_DEBUG_INFO; > >typedef struct _CREATE_PROCESS_DEBUG_INFO { > HANDLE hFile; > HANDLE hProcess; > HANDLE hThread; > LPVOID lpBaseOfImage; > DWORD dwDebugInfoFileOffset; > DWORD nDebugInfoSize; > LPVOID lpThreadLocalBase; > LPTHREAD_START_ROUTINE lpStartAddress; > LPVOID lpImageName; > WORD fUnicode; >} CREATE_PROCESS_DEBUG_INFO; > >typedef struct _EXIT_THREAD_DEBUG_INFO { > DWORD dwExitCode; >} EXIT_THREAD_DEBUG_INFO; > >typedef struct _EXIT_PROCESS_DEBUG_INFO { > DWORD dwExitCode; >} EXIT_PROCESS_DEBUG_INFO; > >typedef struct _LOAD_DLL_DEBUG_INFO { > HANDLE hFile; > LPVOID lpBaseOfDll; > DWORD dwDebugInfoFileOffset; > DWORD nDebugInfoSize; > LPVOID lpImageName; > WORD fUnicode; >} LOAD_DLL_DEBUG_INFO; > >typedef struct _UNLOAD_DLL_DEBUG_INFO { > LPVOID lpBaseOfDll; >} UNLOAD_DLL_DEBUG_INFO; > >typedef struct _OUTPUT_DEBUG_STRING_INFO { > LPSTR lpDebugStringData; > WORD fUnicode; > WORD nDebugStringLength; >} OUTPUT_DEBUG_STRING_INFO; > >typedef struct _RIP_INFO { > DWORD dwError; > DWORD dwType; >} RIP_INFO; > >typedef struct _DEBUG_EVENT { > DWORD dwDebugEventCode; > DWORD dwProcessId; > DWORD dwThreadId; > union { > EXCEPTION_DEBUG_INFO Exception; > CREATE_THREAD_DEBUG_INFO CreateThread; > CREATE_PROCESS_DEBUG_INFO CreateProcessInfo; > EXIT_THREAD_DEBUG_INFO ExitThread; > EXIT_PROCESS_DEBUG_INFO ExitProcess; > LOAD_DLL_DEBUG_INFO LoadDll; > UNLOAD_DLL_DEBUG_INFO UnloadDll; > OUTPUT_DEBUG_STRING_INFO DebugString; > RIP_INFO RipInfo; > } u; >} DEBUG_EVENT, *LPDEBUG_EVENT; > >typedef PCONTEXT LPCONTEXT; >typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD; >typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS; > >typedef LONG (__attribute__((__stdcall__)) *PTOP_LEVEL_EXCEPTION_FILTER)(PEXCEPTION_POINTERS); >typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER; > > >typedef struct _OFSTRUCT >{ > BYTE cBytes; > BYTE fFixedDisk; > WORD nErrCode; > WORD Reserved1; > WORD Reserved2; > CHAR szPathName[128]; >} OFSTRUCT, *POFSTRUCT, *LPOFSTRUCT; ># 214 "../../../include/winbase.h" >typedef struct _SECURITY_ATTRIBUTES >{ > DWORD nLength; > LPVOID lpSecurityDescriptor; > BOOL bInheritHandle; >} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; ># 237 "../../../include/winbase.h" >typedef struct _WIN32_FIND_DATAA >{ > DWORD dwFileAttributes; > FILETIME ftCreationTime; > FILETIME ftLastAccessTime; > FILETIME ftLastWriteTime; > DWORD nFileSizeHigh; > DWORD nFileSizeLow; > DWORD dwReserved0; > DWORD dwReserved1; > CHAR cFileName[260]; > CHAR cAlternateFileName[14]; >} WIN32_FIND_DATAA, *PWIN32_FIND_DATAA, *LPWIN32_FIND_DATAA; > >typedef struct _WIN32_FIND_DATAW >{ > DWORD dwFileAttributes; > FILETIME ftCreationTime; > FILETIME ftLastAccessTime; > FILETIME ftLastWriteTime; > DWORD nFileSizeHigh; > DWORD nFileSizeLow; > DWORD dwReserved0; > DWORD dwReserved1; > WCHAR cFileName[260]; > WCHAR cAlternateFileName[14]; >} WIN32_FIND_DATAW, *PWIN32_FIND_DATAW, *LPWIN32_FIND_DATAW; > >typedef WIN32_FIND_DATAA WIN32_FIND_DATA; >typedef PWIN32_FIND_DATAA PWIN32_FIND_DATA; >typedef LPWIN32_FIND_DATAA LPWIN32_FIND_DATA; > >typedef enum _FINDEX_INFO_LEVELS >{ > FindExInfoStandard, > FindExInfoMaxInfoLevel >} FINDEX_INFO_LEVELS; > >typedef enum _FINDEX_SEARCH_OPS >{ > FindExSearchNameMatch, > FindExSearchLimitToDirectories, > FindExSearchLimitToDevices, > FindExSearchMaxSearchOp >} FINDEX_SEARCH_OPS; > >typedef struct _PROCESS_HEAP_ENTRY >{ > LPVOID lpData; > DWORD cbData; > BYTE cbOverhead; > BYTE iRegionIndex; > WORD wFlags; > union { > struct { > HANDLE hMem; > DWORD dwReserved[3]; > } Block; > struct { > DWORD dwCommittedSize; > DWORD dwUnCommittedSize; > LPVOID lpFirstBlock; > LPVOID lpLastBlock; > } Region; > } ; >} PROCESS_HEAP_ENTRY, *PPROCESS_HEAP_ENTRY, *LPPROCESS_HEAP_ENTRY; ># 477 "../../../include/winbase.h" >typedef struct tagMEMORYSTATUS >{ > DWORD dwLength; > DWORD dwMemoryLoad; > SIZE_T dwTotalPhys; > SIZE_T dwAvailPhys; > SIZE_T dwTotalPageFile; > SIZE_T dwAvailPageFile; > SIZE_T dwTotalVirtual; > SIZE_T dwAvailVirtual; >} MEMORYSTATUS, *LPMEMORYSTATUS; > ># 1 "../../../include/pshpack8.h" 1 ># 105 "../../../include/pshpack8.h" >#pragma pack(8) ># 490 "../../../include/winbase.h" 2 >typedef struct tagMEMORYSTATUSEX { > DWORD dwLength; > DWORD dwMemoryLoad; > DWORDLONG __attribute__((aligned(8))) ullTotalPhys; > DWORDLONG __attribute__((aligned(8))) ullAvailPhys; > DWORDLONG __attribute__((aligned(8))) ullTotalPageFile; > DWORDLONG __attribute__((aligned(8))) ullAvailPageFile; > DWORDLONG __attribute__((aligned(8))) ullTotalVirtual; > DWORDLONG __attribute__((aligned(8))) ullAvailVirtual; > DWORDLONG __attribute__((aligned(8))) ullAvailExtendedVirtual; >} MEMORYSTATUSEX, *LPMEMORYSTATUSEX; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 502 "../../../include/winbase.h" 2 > > >typedef struct _SYSTEMTIME{ > WORD wYear; > WORD wMonth; > WORD wDayOfWeek; > WORD wDay; > WORD wHour; > WORD wMinute; > WORD wSecond; > WORD wMilliseconds; >} SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME; > > > >typedef struct _OVERLAPPED { > > > > > ULONG_PTR Internal; > ULONG_PTR InternalHigh; > > union { > struct { > > > > > DWORD Offset; > DWORD OffsetHigh; > > } ; > PVOID Pointer; > } ; > HANDLE hEvent; >} OVERLAPPED, *LPOVERLAPPED; > >typedef void (__attribute__((__stdcall__)) *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD,DWORD,LPOVERLAPPED); ># 557 "../../../include/winbase.h" >typedef struct _STARTUPINFOA{ > DWORD cb; > LPSTR lpReserved; > LPSTR lpDesktop; > LPSTR lpTitle; > DWORD dwX; > DWORD dwY; > DWORD dwXSize; > DWORD dwYSize; > DWORD dwXCountChars; > DWORD dwYCountChars; > DWORD dwFillAttribute; > DWORD dwFlags; > WORD wShowWindow; > WORD cbReserved2; > BYTE *lpReserved2; > HANDLE hStdInput; > HANDLE hStdOutput; > HANDLE hStdError; >} STARTUPINFOA, *LPSTARTUPINFOA; > >typedef struct _STARTUPINFOW{ > DWORD cb; > LPWSTR lpReserved; > LPWSTR lpDesktop; > LPWSTR lpTitle; > DWORD dwX; > DWORD dwY; > DWORD dwXSize; > DWORD dwYSize; > DWORD dwXCountChars; > DWORD dwYCountChars; > DWORD dwFillAttribute; > DWORD dwFlags; > WORD wShowWindow; > WORD cbReserved2; > BYTE *lpReserved2; > HANDLE hStdInput; > HANDLE hStdOutput; > HANDLE hStdError; >} STARTUPINFOW, *LPSTARTUPINFOW; > >typedef STARTUPINFOA STARTUPINFO; >typedef LPSTARTUPINFOA LPSTARTUPINFO; > >typedef struct _PROCESS_INFORMATION{ > HANDLE hProcess; > HANDLE hThread; > DWORD dwProcessId; > DWORD dwThreadId; >} PROCESS_INFORMATION, *PPROCESS_INFORMATION, *LPPROCESS_INFORMATION; > >typedef struct _TIME_DYNAMIC_ZONE_INFORMATION >{ > LONG Bias; > WCHAR StandardName[32]; > SYSTEMTIME StandardDate; > LONG StandardBias; > WCHAR DaylightName[32]; > SYSTEMTIME DaylightDate; > LONG DaylightBias; > WCHAR TimeZoneKeyName[128]; > BOOLEAN DynamicDaylightTimeDisabled; >} DYNAMIC_TIME_ZONE_INFORMATION, *PDYNAMIC_TIME_ZONE_INFORMATION; > >typedef struct _TIME_ZONE_INFORMATION{ > LONG Bias; > WCHAR StandardName[32]; > SYSTEMTIME StandardDate; > LONG StandardBias; > WCHAR DaylightName[32]; > SYSTEMTIME DaylightDate; > LONG DaylightBias; >} TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION; ># 706 "../../../include/winbase.h" >typedef struct _BY_HANDLE_FILE_INFORMATION >{ > DWORD dwFileAttributes; > FILETIME ftCreationTime; > FILETIME ftLastAccessTime; > FILETIME ftLastWriteTime; > DWORD dwVolumeSerialNumber; > DWORD nFileSizeHigh; > DWORD nFileSizeLow; > DWORD nNumberOfLinks; > DWORD nFileIndexHigh; > DWORD nFileIndexLow; >} BY_HANDLE_FILE_INFORMATION, *PBY_HANDLE_FILE_INFORMATION, *LPBY_HANDLE_FILE_INFORMATION ; ># 752 "../../../include/winbase.h" >typedef struct _SYSTEM_POWER_STATUS >{ > BYTE ACLineStatus; > BYTE BatteryFlag; > BYTE BatteryLifePercent; > BYTE Reserved1; > DWORD BatteryLifeTime; > DWORD BatteryFullLifeTime; >} SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS; > > >typedef struct _SYSTEM_INFO >{ > union { > DWORD dwOemId; > struct { > WORD wProcessorArchitecture; > WORD wReserved; > } ; > } ; > DWORD dwPageSize; > LPVOID lpMinimumApplicationAddress; > LPVOID lpMaximumApplicationAddress; > DWORD dwActiveProcessorMask; > DWORD dwNumberOfProcessors; > DWORD dwProcessorType; > DWORD dwAllocationGranularity; > WORD wProcessorLevel; > WORD wProcessorRevision; >} SYSTEM_INFO, *LPSYSTEM_INFO; > >typedef BOOL (__attribute__((__stdcall__)) *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG_PTR); >typedef BOOL (__attribute__((__stdcall__)) *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG_PTR); >typedef BOOL (__attribute__((__stdcall__)) *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG_PTR); >typedef BOOL (__attribute__((__stdcall__)) *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG_PTR); >typedef BOOL (__attribute__((__stdcall__)) *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG_PTR); >typedef BOOL (__attribute__((__stdcall__)) *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG_PTR); > >typedef ENUMRESTYPEPROCA ENUMRESTYPEPROC; >typedef ENUMRESNAMEPROCA ENUMRESNAMEPROC; >typedef ENUMRESLANGPROCA ENUMRESLANGPROC; ># 803 "../../../include/winbase.h" >typedef PLDT_ENTRY LPLDT_ENTRY; > >typedef enum _GET_FILEEX_INFO_LEVELS { > GetFileExInfoStandard >} GET_FILEEX_INFO_LEVELS; > >typedef struct _WIN32_FILE_ATTRIBUTES_DATA { > DWORD dwFileAttributes; > FILETIME ftCreationTime; > FILETIME ftLastAccessTime; > FILETIME ftLastWriteTime; > DWORD nFileSizeHigh; > DWORD nFileSizeLow; >} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA; > > > > > >typedef DWORD (__attribute__((__stdcall__)) *LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_INTEGER, > LARGE_INTEGER, DWORD, DWORD, HANDLE, > HANDLE, LPVOID); ># 931 "../../../include/winbase.h" >typedef struct tagACTCTXA { > ULONG cbSize; > DWORD dwFlags; > LPCSTR lpSource; > USHORT wProcessorArchitecture; > LANGID wLangId; > LPCSTR lpAssemblyDirectory; > LPCSTR lpResourceName; > LPCSTR lpApplicationName; > HMODULE hModule; >} ACTCTXA, *PACTCTXA; > >typedef struct tagACTCTXW { > ULONG cbSize; > DWORD dwFlags; > LPCWSTR lpSource; > USHORT wProcessorArchitecture; > LANGID wLangId; > LPCWSTR lpAssemblyDirectory; > LPCWSTR lpResourceName; > LPCWSTR lpApplicationName; > HMODULE hModule; >} ACTCTXW, *PACTCTXW; > >typedef ACTCTXA ACTCTX; >typedef PACTCTXA PACTCTX; > >typedef const ACTCTXA *PCACTCTXA; >typedef const ACTCTXW *PCACTCTXW; >typedef PCACTCTXA PCACTCTX; > >typedef struct tagACTCTX_SECTION_KEYED_DATA_2600 { > ULONG cbSize; > ULONG ulDataFormatVersion; > PVOID lpData; > ULONG ulLength; > PVOID lpSectionGlobalData; > ULONG ulSectionGlobalDataLength; > PVOID lpSectionBase; > ULONG ulSectionTotalLength; > HANDLE hActCtx; > ULONG ulAssemblyRosterIndex; >} ACTCTX_SECTION_KEYED_DATA_2600, *PACTCTX_SECTION_KEYED_DATA_2600; >typedef const ACTCTX_SECTION_KEYED_DATA_2600 *PCACTCTX_SECTION_KEYED_DATA_2600; > >typedef struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA { > PVOID lpInformation; > PVOID lpSectionBase; > ULONG ulSectionLength; > PVOID lpSectionGlobalDataBase; > ULONG ulSectionGlobalDataLength; >} ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, *PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; >typedef const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA *PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; > >typedef struct tagACTCTX_SECTION_KEYED_DATA { > ULONG cbSize; > ULONG ulDataFormatVersion; > PVOID lpData; > ULONG ulLength; > PVOID lpSectionGlobalData; > ULONG ulSectionGlobalDataLength; > PVOID lpSectionBase; > ULONG ulSectionTotalLength; > HANDLE hActCtx; > ULONG ulAssemblyRosterIndex; > > > ULONG ulFlags; > ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA AssemblyMetadata; >} ACTCTX_SECTION_KEYED_DATA, *PACTCTX_SECTION_KEYED_DATA; >typedef const ACTCTX_SECTION_KEYED_DATA *PCACTCTX_SECTION_KEYED_DATA; > >typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION { > HANDLE hActCtx; > DWORD dwFlags; >} ACTIVATION_CONTEXT_BASIC_INFORMATION, *PACTIVATION_CONTEXT_BASIC_INFORMATION; > >typedef BOOL (__attribute__((__stdcall__)) *PQUERYACTCTXW_FUNC)(DWORD,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T *); > >typedef struct tagCOMSTAT >{ > DWORD fCtsHold : 1; > DWORD fDsrHold : 1; > DWORD fRlsdHold : 1; > DWORD fXoffHold : 1; > DWORD fXoffSent : 1; > DWORD fEof : 1; > DWORD fTxim : 1; > DWORD fReserved : 25; > DWORD cbInQue; > DWORD cbOutQue; >} COMSTAT, *LPCOMSTAT; > >typedef struct tagDCB >{ > DWORD DCBlength; > DWORD BaudRate; > unsigned fBinary :1; > unsigned fParity :1; > unsigned fOutxCtsFlow :1; > unsigned fOutxDsrFlow :1; > unsigned fDtrControl :2; > unsigned fDsrSensitivity :1; > unsigned fTXContinueOnXoff :1; > unsigned fOutX :1; > unsigned fInX :1; > unsigned fErrorChar :1; > unsigned fNull :1; > unsigned fRtsControl :2; > unsigned fAbortOnError :1; > unsigned fDummy2 :17; > WORD wReserved; > WORD XonLim; > WORD XoffLim; > BYTE ByteSize; > BYTE Parity; > BYTE StopBits; > char XonChar; > char XoffChar; > char ErrorChar; > char EofChar; > char EvtChar; > WORD wReserved1; >} DCB, *LPDCB; > >typedef struct tagCOMMCONFIG { > DWORD dwSize; > WORD wVersion; > WORD wReserved; > DCB dcb; > DWORD dwProviderSubType; > DWORD dwProviderOffset; > DWORD dwProviderSize; > DWORD wcProviderData[1]; >} COMMCONFIG, *LPCOMMCONFIG; > >typedef struct tagCOMMPROP { > WORD wPacketLength; > WORD wPacketVersion; > DWORD dwServiceMask; > DWORD dwReserved1; > DWORD dwMaxTxQueue; > DWORD dwMaxRxQueue; > DWORD dwMaxBaud; > DWORD dwProvSubType; > DWORD dwProvCapabilities; > DWORD dwSettableParams; > DWORD dwSettableBaud; > WORD wSettableData; > WORD wSettableStopParity; > DWORD dwCurrentTxQueue; > DWORD dwCurrentRxQueue; > DWORD dwProvSpec1; > DWORD dwProvSpec2; > WCHAR wcProvChar[1]; >} COMMPROP, *LPCOMMPROP; ># 1161 "../../../include/winbase.h" >typedef struct tagCOMMTIMEOUTS { > DWORD ReadIntervalTimeout; > DWORD ReadTotalTimeoutMultiplier; > DWORD ReadTotalTimeoutConstant; > DWORD WriteTotalTimeoutMultiplier; > DWORD WriteTotalTimeoutConstant; >} COMMTIMEOUTS,*LPCOMMTIMEOUTS; > > > > > > >typedef void (__attribute__((__stdcall__)) *PAPCFUNC)(ULONG_PTR); >typedef void (__attribute__((__stdcall__)) *PTIMERAPCROUTINE)(LPVOID,DWORD,DWORD); > >typedef enum _COMPUTER_NAME_FORMAT >{ > ComputerNameNetBIOS, > ComputerNameDnsHostname, > ComputerNameDnsDomain, > ComputerNameDnsFullyQualified, > ComputerNamePhysicalNetBIOS, > ComputerNamePhysicalDnsHostname, > ComputerNamePhysicalDnsDomain, > ComputerNamePhysicalDnsFullyQualified, > ComputerNameMax >} COMPUTER_NAME_FORMAT; ># 1199 "../../../include/winbase.h" >typedef struct tagHW_PROFILE_INFOA { > DWORD dwDockInfo; > CHAR szHwProfileGuid[39]; > CHAR szHwProfileName[80]; >} HW_PROFILE_INFOA, *LPHW_PROFILE_INFOA; > >typedef struct tagHW_PROFILE_INFOW { > DWORD dwDockInfo; > WCHAR szHwProfileGuid[39]; > WCHAR szHwProfileName[80]; >} HW_PROFILE_INFOW, *LPHW_PROFILE_INFOW; > >typedef HW_PROFILE_INFOA HW_PROFILE_INFO; >typedef LPHW_PROFILE_INFOA LPHW_PROFILE_INFO; ># 1234 "../../../include/winbase.h" ># 1 "../../../include/pshpack8.h" 1 ># 105 "../../../include/pshpack8.h" >#pragma pack(8) ># 1235 "../../../include/winbase.h" 2 >typedef struct _WIN32_STREAM_ID { > DWORD dwStreamId; > DWORD dwStreamAttributes; > LARGE_INTEGER __attribute__((aligned(8))) Size; > DWORD dwStreamNameSize; > WCHAR cStreamName[1]; >} WIN32_STREAM_ID, *LPWIN32_STREAM_ID; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 1243 "../../../include/winbase.h" 2 ># 1263 "../../../include/winbase.h" >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ActivateActCtx(HANDLE,ULONG_PTR *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AddAccessAllowedAce(PACL,DWORD,DWORD,PSID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AddAccessAllowedAceEx(PACL,DWORD,DWORD,DWORD,PSID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AddAccessDeniedAce(PACL,DWORD,DWORD,PSID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AddAccessDeniedAceEx(PACL,DWORD,DWORD,DWORD,PSID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AddAce(PACL,DWORD,DWORD,LPVOID,DWORD); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) AddAtomA(LPCSTR); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) AddAtomW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AddAuditAccessAce(PACL,DWORD,DWORD,PSID,BOOL,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AddAuditAccessAceEx(PACL,DWORD,DWORD,DWORD,PSID,BOOL,BOOL); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) AddRefActCtx(HANDLE); >__attribute__((visibility ("hidden"))) PVOID __attribute__((__stdcall__)) AddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLER); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AdjustTokenGroups(HANDLE,BOOL,PTOKEN_GROUPS,DWORD,PTOKEN_GROUPS,PDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AccessCheck(PSECURITY_DESCRIPTOR,HANDLE,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AccessCheckAndAuditAlarmA(LPCSTR,LPVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPBOOL,LPBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AccessCheckAndAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,DWORD,PGENERIC_MAPPING,BOOL,LPDWORD,LPBOOL,LPBOOL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AccessCheckByType(PSECURITY_DESCRIPTOR,PSID,HANDLE,DWORD,POBJECT_TYPE_LIST,DWORD,PGENERIC_MAPPING,PPRIVILEGE_SET,LPDWORD,LPDWORD,LPBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AdjustTokenPrivileges(HANDLE,BOOL,PTOKEN_PRIVILEGES,DWORD,PTOKEN_PRIVILEGES,PDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY,BYTE,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,PSID *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AllocateLocallyUniqueId(PLUID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AreAllAccessesGranted(DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AreAnyAccessesGranted(DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AreFileApisANSI(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AssignProcessToJobObject(HANDLE,HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BackupEventLogA(HANDLE,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BackupEventLogW(HANDLE,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BackupRead(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BackupSeek(HANDLE,DWORD,DWORD,LPDWORD,LPDWORD,LPVOID*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BackupWrite(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) Beep(DWORD,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) BeginUpdateResourceA(LPCSTR,BOOL); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) BeginUpdateResourceW(LPCWSTR,BOOL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BindIoCompletionCallback(HANDLE,LPOVERLAPPED_COMPLETION_ROUTINE,ULONG); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BuildCommDCBA(LPCSTR,LPDCB); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BuildCommDCBW(LPCWSTR,LPDCB); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BuildCommDCBAndTimeoutsA(LPCSTR,LPDCB,LPCOMMTIMEOUTS); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BuildCommDCBAndTimeoutsW(LPCWSTR,LPDCB,LPCOMMTIMEOUTS); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CallNamedPipeA(LPCSTR,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CallNamedPipeW(LPCWSTR,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CancelIo(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CancelWaitableTimer(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CheckTokenMembership(HANDLE,PSID,PBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ClearCommBreak(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ClearCommError(HANDLE,LPDWORD,LPCOMSTAT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ClearEventLogA(HANDLE,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ClearEventLogW(HANDLE,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CloseEventLog(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CloseHandle(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CommConfigDialogA(LPCSTR,HWND,LPCOMMCONFIG); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CommConfigDialogW(LPCWSTR,HWND,LPCOMMCONFIG); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ConnectNamedPipe(HANDLE,LPOVERLAPPED); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ContinueDebugEvent(DWORD,DWORD,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) ConvertToGlobalHandle(HANDLE hSrc); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CopyFileA(LPCSTR,LPCSTR,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CopyFileW(LPCWSTR,LPCWSTR,BOOL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CopyFileExA(LPCSTR, LPCSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CopyFileExW(LPCWSTR, LPCWSTR, LPPROGRESS_ROUTINE, LPVOID, LPBOOL, DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CopySid(DWORD,PSID,PSID); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) CompareFileTime(const FILETIME*,const FILETIME*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ConvertFiberToThread(void); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) ConvertThreadToFiber(LPVOID); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) ConvertThreadToFiberEx(LPVOID,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateActCtxA(PCACTCTXA); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateActCtxW(PCACTCTXW); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateEventA(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateEventW(LPSECURITY_ATTRIBUTES,BOOL,BOOL,LPCWSTR); > >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) CreateFiber(SIZE_T,LPFIBER_START_ROUTINE,LPVOID); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) CreateFiberEx(SIZE_T,SIZE_T,DWORD,LPFIBER_START_ROUTINE,LPVOID); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateFileA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateFileW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES,DWORD,DWORD,HANDLE); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateFileMappingA(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateFileMappingW(HANDLE,LPSECURITY_ATTRIBUTES,DWORD,DWORD,DWORD,LPCWSTR); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateIoCompletionPort(HANDLE,HANDLE,ULONG_PTR,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateJobObjectA(LPSECURITY_ATTRIBUTES,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateJobObjectW(LPSECURITY_ATTRIBUTES,LPCWSTR); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateMailslotA(LPCSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateMailslotW(LPCWSTR,DWORD,DWORD,LPSECURITY_ATTRIBUTES); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateMutexA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateMutexW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateNamedPipeA(LPCSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateNamedPipeW(LPCWSTR,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPSECURITY_ATTRIBUTES); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreatePipe(PHANDLE,PHANDLE,LPSECURITY_ATTRIBUTES,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR*,BOOL,HANDLE,PGENERIC_MAPPING); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateProcessW(LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateProcessAsUserA(HANDLE,LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateProcessAsUserW(HANDLE,LPCWSTR,LPWSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCWSTR,LPSTARTUPINFOW,LPPROCESS_INFORMATION); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateRemoteThread(HANDLE,LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateRestrictedToken(HANDLE,DWORD,DWORD,PSID_AND_ATTRIBUTES,DWORD,PLUID_AND_ATTRIBUTES,DWORD,PSID_AND_ATTRIBUTES,PHANDLE); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateSemaphoreA(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) CreateTapePartition(HANDLE,DWORD,DWORD,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateThread(LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateTimerQueue(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateTimerQueueTimer(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,DWORD,DWORD,ULONG); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateWellKnownSid(WELL_KNOWN_SID_TYPE,PSID,PSID,DWORD*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeactivateActCtx(DWORD,ULONG_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DebugActiveProcess(DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DebugActiveProcessStop(DWORD); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) DebugBreak(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DebugBreakProcess(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DebugSetProcessKillOnExit(BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DecryptFileA(LPCSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DecryptFileW(LPCWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DefineDosDeviceA(DWORD,LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DefineDosDeviceW(DWORD,LPCWSTR,LPCWSTR); > > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteAce(PACL,DWORD); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) DeleteAtom(ATOM); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) DeleteCriticalSection(CRITICAL_SECTION *lpCrit); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) DeleteFiber(LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteFileA(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteFileW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteTimerQueueEx(HANDLE,HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteTimerQueueTimer(HANDLE,HANDLE,HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteVolumeMountPointA(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteVolumeMountPointW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeregisterEventSource(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeviceIoControl(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DisableThreadLibraryCalls(HMODULE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DisconnectNamedPipe(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DnsHostnameToComputerNameA(LPCSTR,LPSTR,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DnsHostnameToComputerNameW(LPCWSTR,LPWSTR,LPDWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DosDateTimeToFileTime(WORD,WORD,LPFILETIME); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DuplicateHandle(HANDLE,HANDLE,HANDLE,HANDLE*,DWORD,BOOL,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DuplicateToken(HANDLE,SECURITY_IMPERSONATION_LEVEL,PHANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DuplicateTokenEx(HANDLE,DWORD,LPSECURITY_ATTRIBUTES,SECURITY_IMPERSONATION_LEVEL,TOKEN_TYPE,PHANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EscapeCommFunction(HANDLE,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EncryptFileA(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EncryptFileW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EndUpdateResourceA(HANDLE,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EndUpdateResourceW(HANDLE,BOOL); > >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) EnterCriticalSection(CRITICAL_SECTION *lpCrit); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumResourceLanguagesA(HMODULE,LPCSTR,LPCSTR,ENUMRESLANGPROCA,LONG_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumResourceLanguagesW(HMODULE,LPCWSTR,LPCWSTR,ENUMRESLANGPROCW,LONG_PTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumResourceNamesA(HMODULE,LPCSTR,ENUMRESNAMEPROCA,LONG_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumResourceNamesW(HMODULE,LPCWSTR,ENUMRESNAMEPROCW,LONG_PTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumResourceTypesA(HMODULE,ENUMRESTYPEPROCA,LONG_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumResourceTypesW(HMODULE,ENUMRESTYPEPROCW,LONG_PTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EqualSid(PSID, PSID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EqualPrefixSid(PSID,PSID); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) EraseTape(HANDLE,DWORD,BOOL); >__attribute__((visibility ("hidden"))) void __attribute__((noreturn)) __attribute__((__stdcall__)) ExitProcess(DWORD); >__attribute__((visibility ("hidden"))) void __attribute__((noreturn)) __attribute__((__stdcall__)) ExitThread(DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) ExpandEnvironmentStringsA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) ExpandEnvironmentStringsW(LPCWSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) FatalAppExitA(UINT,LPCSTR); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) FatalAppExitW(UINT,LPCWSTR); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) FatalExit(int); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FileEncryptionStatusA(LPCSTR,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FileEncryptionStatusW(LPCWSTR,LPDWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FileTimeToDosDateTime(const FILETIME*,LPWORD,LPWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FileTimeToLocalFileTime(const FILETIME*,LPFILETIME); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FileTimeToSystemTime(const FILETIME*,LPSYSTEMTIME); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindActCtxSectionStringA(DWORD,const GUID *,ULONG,LPCSTR,PACTCTX_SECTION_KEYED_DATA); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindActCtxSectionStringW(DWORD,const GUID *,ULONG,LPCWSTR,PACTCTX_SECTION_KEYED_DATA); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindActCtxSectionGuid(DWORD,const GUID *,ULONG,const GUID *,PACTCTX_SECTION_KEYED_DATA); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) FindAtomA(LPCSTR); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) FindAtomW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindClose(HANDLE); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstChangeNotificationA(LPCSTR,BOOL,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstChangeNotificationW(LPCWSTR,BOOL,DWORD); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstFileA(LPCSTR,LPWIN32_FIND_DATAA); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstFileW(LPCWSTR,LPWIN32_FIND_DATAW); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstFileExA(LPCSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstFileExW(LPCWSTR,FINDEX_INFO_LEVELS,LPVOID,FINDEX_SEARCH_OPS,LPVOID,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindFirstFreeAce(PACL,LPVOID*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindNextChangeNotification(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindNextFileA(HANDLE,LPWIN32_FIND_DATAA); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindNextFileW(HANDLE,LPWIN32_FIND_DATAW); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindCloseChangeNotification(HANDLE); >__attribute__((visibility ("hidden"))) HRSRC __attribute__((__stdcall__)) FindResourceA(HMODULE,LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) HRSRC __attribute__((__stdcall__)) FindResourceW(HMODULE,LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) HRSRC __attribute__((__stdcall__)) FindResourceExA(HMODULE,LPCSTR,LPCSTR,WORD); >__attribute__((visibility ("hidden"))) HRSRC __attribute__((__stdcall__)) FindResourceExW(HMODULE,LPCWSTR,LPCWSTR,WORD); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstVolumeA(LPSTR,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstVolumeW(LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstVolumeMountPointA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) FindFirstVolumeMountPointW(LPCWSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindNextVolumeA(HANDLE,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindNextVolumeW(HANDLE,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindNextVolumeMountPointA(HANDLE,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindNextVolumeMountPointW(HANDLE,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindVolumeClose(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FindVolumeMountPointClose(HANDLE); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) FlsAlloc(PFLS_CALLBACK_FUNCTION); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FlsFree(DWORD); >__attribute__((visibility ("hidden"))) PVOID __attribute__((__stdcall__)) FlsGetValue(DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FlsSetValue(DWORD,PVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FlushFileBuffers(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FlushInstructionCache(HANDLE,LPCVOID,SIZE_T); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FlushViewOfFile(LPCVOID,SIZE_T); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) FormatMessageA(DWORD,LPCVOID,DWORD,DWORD,LPSTR,DWORD,va_list*); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) FormatMessageW(DWORD,LPCVOID,DWORD,DWORD,LPWSTR,DWORD,va_list*); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FreeEnvironmentStringsA(LPSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FreeEnvironmentStringsW(LPWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FreeLibrary(HMODULE); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) FreeLibraryAndExitThread(HINSTANCE,DWORD); > > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FreeResource(HGLOBAL); >__attribute__((visibility ("hidden"))) PVOID __attribute__((__stdcall__)) FreeSid(PSID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetAce(PACL,DWORD,LPVOID*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetAtomNameA(ATOM,LPSTR,INT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetAtomNameW(ATOM,LPWSTR,INT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType ); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetBinaryTypeW( LPCWSTR lpApplicationName, LPDWORD lpBinaryType ); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCurrentActCtx(HANDLE *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCommConfig(HANDLE,LPCOMMCONFIG,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCommMask(HANDLE,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCommModemStatus(HANDLE,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCommProperties(HANDLE,LPCOMMPROP); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCommState(HANDLE,LPDCB); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCommTimeouts(HANDLE,LPCOMMTIMEOUTS); >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) GetCommandLineA(void); >__attribute__((visibility ("hidden"))) LPWSTR __attribute__((__stdcall__)) GetCommandLineW(void); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetCompressedFileSizeA(LPCSTR,LPDWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetCompressedFileSizeW(LPCWSTR,LPDWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetComputerNameA(LPSTR,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetComputerNameW(LPWSTR,LPDWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetComputerNameExA(COMPUTER_NAME_FORMAT,LPSTR,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetComputerNameExW(COMPUTER_NAME_FORMAT,LPWSTR,LPDWORD); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetCurrentDirectoryA(UINT,LPSTR); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetCurrentDirectoryW(UINT,LPWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCurrentHwProfileA(LPHW_PROFILE_INFOA); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCurrentHwProfileW(LPHW_PROFILE_INFOW); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) GetCurrentProcess(void); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) GetCurrentThread(void); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,LPDWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetDevicePowerState(HANDLE,BOOL*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetDiskFreeSpaceA(LPCSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetDiskFreeSpaceW(LPCWSTR,LPDWORD,LPDWORD,LPDWORD,LPDWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetDiskFreeSpaceExA(LPCSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PULARGE_INTEGER); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetDllDirectoryA(DWORD,LPSTR); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetDllDirectoryW(DWORD,LPWSTR); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetDriveTypeA(LPCSTR); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetDriveTypeW(LPCWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetDynamicTimeZoneInformation(PDYNAMIC_TIME_ZONE_INFORMATION); >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) GetEnvironmentStringsA(void); >__attribute__((visibility ("hidden"))) LPWSTR __attribute__((__stdcall__)) GetEnvironmentStringsW(void); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetEnvironmentVariableA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetEnvironmentVariableW(LPCWSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetExitCodeProcess(HANDLE,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetExitCodeThread(HANDLE,LPDWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetFileAttributesA(LPCSTR); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetFileAttributesW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetFileAttributesExA(LPCSTR,GET_FILEEX_INFO_LEVELS,LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetFileAttributesExW(LPCWSTR,GET_FILEEX_INFO_LEVELS,LPVOID); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetFileInformationByHandle(HANDLE,BY_HANDLE_FILE_INFORMATION*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetFileSize(HANDLE,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetFileSizeEx(HANDLE,PLARGE_INTEGER); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetFileTime(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetFileType(HANDLE); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetFullPathNameA(LPCSTR,DWORD,LPSTR,LPSTR*); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetFullPathNameW(LPCWSTR,DWORD,LPWSTR,LPWSTR*); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetHandleInformation(HANDLE,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetLengthSid(PSID); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GetLocalTime(LPSYSTEMTIME); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetLogicalDrives(void); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetLogicalDriveStringsA(UINT,LPSTR); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetLogicalDriveStringsW(UINT,LPWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetLongPathNameA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetLongPathNameW(LPCWSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMailslotInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetModuleFileNameA(HMODULE,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetModuleFileNameW(HMODULE,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) HMODULE __attribute__((__stdcall__)) GetModuleHandleA(LPCSTR); >__attribute__((visibility ("hidden"))) HMODULE __attribute__((__stdcall__)) GetModuleHandleW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetModuleHandleExA(DWORD,LPCSTR,HMODULE*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetModuleHandleExW(DWORD,LPCWSTR,HMODULE*); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetNamedPipeHandleStateA(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetNamedPipeHandleStateW(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetNamedPipeInfo(HANDLE,LPDWORD,LPDWORD,LPDWORD,LPDWORD); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GetNativeSystemInfo(LPSYSTEM_INFO); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetNumberOfEventLogRecords(HANDLE,PDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetOldestEventLogRecord(HANDLE,PDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetPriorityClass(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,PDWORD); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetPrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT,LPCSTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetPrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetPrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetPrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR); > >__attribute__((visibility ("hidden"))) FARPROC __attribute__((__stdcall__)) GetProcAddress(HMODULE,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetProcessAffinityMask(HANDLE,PDWORD_PTR,PDWORD_PTR); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetProcessHeaps(DWORD,PHANDLE); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetProcessId(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetProcessIoCounters(HANDLE,PIO_COUNTERS); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetProcessPriorityBoost(HANDLE,PBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetProcessShutdownParameters(LPDWORD,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetProcessTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetProcessVersion(DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetProcessWorkingSetSize(HANDLE,PSIZE_T,PSIZE_T); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetProfileIntA(LPCSTR,LPCSTR,INT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetProfileIntW(LPCWSTR,LPCWSTR,INT); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetProfileSectionA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetProfileSectionW(LPCWSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPWSTR,UINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetQueuedCompletionStatus(HANDLE,LPDWORD,PULONG_PTR,LPOVERLAPPED*,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR_CONTROL,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID *,LPBOOL); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID *,LPBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,LPBOOL,PACL *,LPBOOL); >__attribute__((visibility ("hidden"))) PSID_IDENTIFIER_AUTHORITY __attribute__((__stdcall__)) GetSidIdentifierAuthority(PSID); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetSidLengthRequired(BYTE); >__attribute__((visibility ("hidden"))) PDWORD __attribute__((__stdcall__)) GetSidSubAuthority(PSID,DWORD); >__attribute__((visibility ("hidden"))) PUCHAR __attribute__((__stdcall__)) GetSidSubAuthorityCount(PSID); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetShortPathNameA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetShortPathNameW(LPCWSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GetStartupInfoA(LPSTARTUPINFOA); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GetStartupInfoW(LPSTARTUPINFOW); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) GetStdHandle(DWORD); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetSystemDirectoryA(LPSTR,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetSystemDirectoryW(LPWSTR,UINT); > >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GetSystemInfo(LPSYSTEM_INFO); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetSystemPowerStatus(LPSYSTEM_POWER_STATUS); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GetSystemTime(LPSYSTEMTIME); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetSystemTimeAdjustment(PDWORD,PDWORD,PBOOL); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GetSystemTimeAsFileTime(LPFILETIME); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetSystemWindowsDirectoryA(LPSTR,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetSystemWindowsDirectoryW(LPWSTR,UINT); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetTapeParameters(HANDLE,DWORD,LPDWORD,LPVOID); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetTapePosition(HANDLE,DWORD,LPDWORD,LPDWORD,LPDWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetTapeStatus(HANDLE); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetTempFileNameA(LPCSTR,LPCSTR,UINT,LPSTR); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetTempFileNameW(LPCWSTR,LPCWSTR,UINT,LPWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetTempPathA(DWORD,LPSTR); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetTempPathW(DWORD,LPWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetThreadId(HANDLE); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetTickCount(void); >__attribute__((visibility ("hidden"))) ULONGLONG __attribute__((__stdcall__)) GetTickCount64(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetTimeZoneInformation(LPTIME_ZONE_INFORMATION); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetThreadContext(HANDLE,CONTEXT *); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetThreadPriority(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetThreadPriorityBoost(HANDLE,PBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetThreadSelectorEntry(HANDLE,DWORD,LPLDT_ENTRY); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetThreadTimes(HANDLE,LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetUserNameA(LPSTR,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetUserNameW(LPWSTR,LPDWORD); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetVersion(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVersionExA(OSVERSIONINFOA*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVersionExW(OSVERSIONINFOW*); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVolumeInformationA(LPCSTR,LPSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVolumeInformationW(LPCWSTR,LPWSTR,DWORD,LPDWORD,LPDWORD,LPDWORD,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVolumeNameForVolumeMountPointA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVolumeNameForVolumeMountPointW(LPCWSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVolumePathNameA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVolumePathNameW(LPCWSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVolumePathNamesForVolumeNameA(LPCSTR,LPSTR,DWORD,PDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetVolumePathNamesForVolumeNameW(LPCWSTR,LPWSTR,DWORD,PDWORD); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetWindowsDirectoryA(LPSTR,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetWindowsDirectoryW(LPWSTR,UINT); > >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) GlobalAddAtomA(LPCSTR); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) GlobalAddAtomW(LPCWSTR); > >__attribute__((visibility ("hidden"))) HGLOBAL __attribute__((__stdcall__)) GlobalAlloc(UINT,SIZE_T); >__attribute__((visibility ("hidden"))) SIZE_T __attribute__((__stdcall__)) GlobalCompact(DWORD); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) GlobalDeleteAtom(ATOM); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) GlobalFindAtomA(LPCSTR); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) GlobalFindAtomW(LPCWSTR); > >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GlobalFix(HGLOBAL); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GlobalFlags(HGLOBAL); >__attribute__((visibility ("hidden"))) HGLOBAL __attribute__((__stdcall__)) GlobalFree(HGLOBAL); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GlobalGetAtomNameA(ATOM,LPSTR,INT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GlobalGetAtomNameW(ATOM,LPWSTR,INT); > >__attribute__((visibility ("hidden"))) HGLOBAL __attribute__((__stdcall__)) GlobalHandle(LPCVOID); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) GlobalLock(HGLOBAL); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GlobalMemoryStatus(LPMEMORYSTATUS); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GlobalMemoryStatusEx(LPMEMORYSTATUSEX); >__attribute__((visibility ("hidden"))) HGLOBAL __attribute__((__stdcall__)) GlobalReAlloc(HGLOBAL,SIZE_T,UINT); >__attribute__((visibility ("hidden"))) SIZE_T __attribute__((__stdcall__)) GlobalSize(HGLOBAL); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GlobalUnfix(HGLOBAL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GlobalUnlock(HGLOBAL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GlobalUnWire(HGLOBAL); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) GlobalWire(HGLOBAL); > >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) HeapAlloc(HANDLE,DWORD,SIZE_T); >__attribute__((visibility ("hidden"))) SIZE_T __attribute__((__stdcall__)) HeapCompact(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) HeapCreate(DWORD,SIZE_T,SIZE_T); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HeapDestroy(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HeapFree(HANDLE,DWORD,LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HeapLock(HANDLE); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) HeapReAlloc(HANDLE,DWORD,LPVOID,SIZE_T); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HeapQueryInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T,PSIZE_T); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HeapSetInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T); >__attribute__((visibility ("hidden"))) SIZE_T __attribute__((__stdcall__)) HeapSize(HANDLE,DWORD,LPCVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HeapUnlock(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HeapValidate(HANDLE,DWORD,LPCVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HeapWalk(HANDLE,LPPROCESS_HEAP_ENTRY); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InitAtomTable(DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InitializeAcl(PACL,DWORD,DWORD); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) InitializeCriticalSection(CRITICAL_SECTION *lpCrit); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InitializeCriticalSectionAndSpinCount(CRITICAL_SECTION *,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InitializeSid(PSID,PSID_IDENTIFIER_AUTHORITY,BYTE); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) InitializeSListHead(PSLIST_HEADER); >__attribute__((visibility ("hidden"))) PSINGLE_LIST_ENTRY __attribute__((__stdcall__)) InterlockedFlushSList(PSLIST_HEADER); >__attribute__((visibility ("hidden"))) PSINGLE_LIST_ENTRY __attribute__((__stdcall__)) InterlockedPopEntrySList(PSLIST_HEADER); >__attribute__((visibility ("hidden"))) PSINGLE_LIST_ENTRY __attribute__((__stdcall__)) InterlockedPushEntrySList(PSLIST_HEADER, PSINGLE_LIST_ENTRY); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsBadCodePtr(FARPROC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsBadHugeReadPtr(LPCVOID,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsBadHugeWritePtr(LPVOID,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsBadReadPtr(LPCVOID,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsBadStringPtrA(LPCSTR,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsBadStringPtrW(LPCWSTR,UINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsBadWritePtr(LPVOID,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsDebuggerPresent(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsSystemResumeAutomatic(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsTextUnicode(LPCVOID,INT,LPINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsTokenRestricted(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsValidAcl(PACL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsValidSid(PSID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsWellKnownSid(PSID,WELL_KNOWN_SID_TYPE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsWow64Process(HANDLE,PBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ImpersonateLoggedOnUser(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ImpersonateNamedPipeClient(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsProcessorFeaturePresent(DWORD); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) LeaveCriticalSection(CRITICAL_SECTION *lpCrit); >__attribute__((visibility ("hidden"))) HMODULE __attribute__((__stdcall__)) LoadLibraryA(LPCSTR); >__attribute__((visibility ("hidden"))) HMODULE __attribute__((__stdcall__)) LoadLibraryW(LPCWSTR); > >__attribute__((visibility ("hidden"))) HMODULE __attribute__((__stdcall__)) LoadLibraryExA(LPCSTR,HANDLE,DWORD); >__attribute__((visibility ("hidden"))) HMODULE __attribute__((__stdcall__)) LoadLibraryExW(LPCWSTR,HANDLE,DWORD); > >__attribute__((visibility ("hidden"))) HINSTANCE __attribute__((__stdcall__)) LoadModule(LPCSTR,LPVOID); >__attribute__((visibility ("hidden"))) HGLOBAL __attribute__((__stdcall__)) LoadResource(HMODULE,HRSRC); >__attribute__((visibility ("hidden"))) HLOCAL __attribute__((__stdcall__)) LocalAlloc(UINT,SIZE_T); >__attribute__((visibility ("hidden"))) SIZE_T __attribute__((__stdcall__)) LocalCompact(UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) LocalFlags(HLOCAL); >__attribute__((visibility ("hidden"))) HLOCAL __attribute__((__stdcall__)) LocalFree(HLOCAL); >__attribute__((visibility ("hidden"))) HLOCAL __attribute__((__stdcall__)) LocalHandle(LPCVOID); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) LocalLock(HLOCAL); >__attribute__((visibility ("hidden"))) HLOCAL __attribute__((__stdcall__)) LocalReAlloc(HLOCAL,SIZE_T,UINT); >__attribute__((visibility ("hidden"))) SIZE_T __attribute__((__stdcall__)) LocalShrink(HGLOBAL,UINT); >__attribute__((visibility ("hidden"))) SIZE_T __attribute__((__stdcall__)) LocalSize(HLOCAL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LocalUnlock(HLOCAL); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) LockResource(HGLOBAL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupAccountNameA(LPCSTR,LPCSTR,PSID,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupAccountNameW(LPCWSTR,LPCWSTR,PSID,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupAccountSidA(LPCSTR,PSID,LPSTR,LPDWORD,LPSTR,LPDWORD,PSID_NAME_USE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupAccountSidW(LPCWSTR,PSID,LPWSTR,LPDWORD,LPWSTR,LPDWORD,PSID_NAME_USE); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LocalFileTimeToFileTime(const FILETIME*,LPFILETIME); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LockFile(HANDLE,DWORD,DWORD,DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LockFileEx(HANDLE, DWORD, DWORD, DWORD, DWORD, LPOVERLAPPED); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LogonUserA(LPCSTR,LPCSTR,LPCSTR,DWORD,DWORD,PHANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LogonUserW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,PHANDLE); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupPrivilegeDisplayNameA(LPCSTR,LPCSTR,LPSTR,LPDWORD,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupPrivilegeDisplayNameW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,LPDWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupPrivilegeNameA(LPCSTR,PLUID,LPSTR,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupPrivilegeNameW(LPCWSTR,PLUID,LPWSTR,LPDWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupPrivilegeValueA(LPCSTR,LPCSTR,PLUID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LookupPrivilegeValueW(LPCWSTR,LPCWSTR,PLUID); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MakeAbsoluteSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD,PACL,LPDWORD,PACL,LPDWORD,PSID,LPDWORD,PSID,LPDWORD); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MakeSelfRelativeSD(PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR,LPDWORD); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) MapGenericMask(PDWORD,PGENERIC_MAPPING); >__attribute__((visibility ("hidden"))) HMODULE __attribute__((__stdcall__)) MapHModuleSL(WORD); >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) MapHModuleLS(HMODULE); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) MapViewOfFile(HANDLE,DWORD,DWORD,DWORD,SIZE_T); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) MapViewOfFileEx(HANDLE,DWORD,DWORD,DWORD,SIZE_T,LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MoveFileA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MoveFileW(LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MoveFileExA(LPCSTR,LPCSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MoveFileExW(LPCWSTR,LPCWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MoveFileWithProgressA(LPCSTR,LPCSTR,LPPROGRESS_ROUTINE,LPVOID,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MoveFileWithProgressW(LPCWSTR,LPCWSTR,LPPROGRESS_ROUTINE,LPVOID,DWORD); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) MulDiv(INT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) NeedCurrentDirectoryForExePathA(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) NeedCurrentDirectoryForExePathW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) NotifyChangeEventLog(HANDLE,HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ObjectCloseAuditAlarmA(LPCSTR,LPVOID,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ObjectCloseAuditAlarmW(LPCWSTR,LPVOID,BOOL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ObjectDeleteAuditAlarmA(LPCSTR,LPVOID,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ObjectDeleteAuditAlarmW(LPCWSTR,LPVOID,BOOL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ObjectOpenAuditAlarmA(LPCSTR,LPVOID,LPSTR,LPSTR,PSECURITY_DESCRIPTOR,HANDLE,DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,LPBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ObjectOpenAuditAlarmW(LPCWSTR,LPVOID,LPWSTR,LPWSTR,PSECURITY_DESCRIPTOR,HANDLE,DWORD,DWORD,PPRIVILEGE_SET,BOOL,BOOL,LPBOOL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ObjectPrivilegeAuditAlarmA(LPCSTR,LPVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ObjectPrivilegeAuditAlarmW(LPCWSTR,LPVOID,HANDLE,DWORD,PPRIVILEGE_SET,BOOL); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenBackupEventLogA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenBackupEventLogW(LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenEventA(DWORD,BOOL,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenEventW(DWORD,BOOL,LPCWSTR); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenEventLogA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenEventLogW(LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) HFILE __attribute__((__stdcall__)) OpenFile(LPCSTR,OFSTRUCT*,UINT); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenFileMappingA(DWORD,BOOL,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenFileMappingW(DWORD,BOOL,LPCWSTR); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenMutexA(DWORD,BOOL,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenMutexW(DWORD,BOOL,LPCWSTR); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenProcess(DWORD,BOOL,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OpenProcessToken(HANDLE,DWORD,PHANDLE); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenSemaphoreA(DWORD,BOOL,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenSemaphoreW(DWORD,BOOL,LPCWSTR); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenThread(DWORD,BOOL,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OpenThreadToken(HANDLE,DWORD,BOOL,PHANDLE); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenWaitableTimerA(DWORD,BOOL,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) OpenWaitableTimerW(DWORD,BOOL,LPCWSTR); > >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) OutputDebugStringA(LPCSTR); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) OutputDebugStringW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PeekNamedPipe(HANDLE,PVOID,DWORD,PDWORD,PDWORD,PDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PostQueuedCompletionStatus(HANDLE,DWORD,ULONG_PTR,LPOVERLAPPED); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) PrepareTape(HANDLE,DWORD,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ProcessIdToSessionId(DWORD,DWORD*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PrivilegeCheck(HANDLE,PPRIVILEGE_SET,LPBOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PrivilegedServiceAuditAlarmA(LPCSTR,LPCSTR,HANDLE,PPRIVILEGE_SET,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PrivilegedServiceAuditAlarmW(LPCWSTR,LPCWSTR,HANDLE,PPRIVILEGE_SET,BOOL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PulseEvent(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PurgeComm(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) QueryActCtxW(DWORD,HANDLE,PVOID,ULONG,PVOID,SIZE_T,SIZE_T *); >__attribute__((visibility ("hidden"))) USHORT __attribute__((__stdcall__)) QueryDepthSList(PSLIST_HEADER); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) QueryDosDeviceA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) QueryPerformanceCounter(LARGE_INTEGER*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) QueryPerformanceFrequency(LARGE_INTEGER*); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) QueueUserWorkItem(LPTHREAD_START_ROUTINE,PVOID,ULONG); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) RaiseException(DWORD,DWORD,DWORD,const ULONG_PTR *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReadEventLogA(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReadEventLogW(HANDLE,DWORD,DWORD,LPVOID,DWORD,DWORD *,DWORD *); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReadDirectoryChangesW(HANDLE,LPVOID,DWORD,BOOL,DWORD,LPDWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReadFile(HANDLE,LPVOID,DWORD,LPDWORD,LPOVERLAPPED); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReadFileEx(HANDLE,LPVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReadFileScatter(HANDLE,FILE_SEGMENT_ELEMENT*,DWORD,LPDWORD,LPOVERLAPPED); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReadProcessMemory(HANDLE,LPCVOID,LPVOID,SIZE_T,SIZE_T*); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) RegisterEventSourceA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) RegisterEventSourceW(LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RegisterWaitForSingleObject(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) RegisterWaitForSingleObjectEx(HANDLE,WAITORTIMERCALLBACK,PVOID,ULONG,ULONG); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) ReleaseActCtx(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReleaseMutex(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReleaseSemaphore(HANDLE,LONG,LPLONG); >__attribute__((visibility ("hidden"))) ULONG __attribute__((__stdcall__)) RemoveVectoredExceptionHandler(PVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReplaceFileA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPVOID,LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReplaceFileW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPVOID,LPVOID); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RemoveDirectoryA(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RemoveDirectoryW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReportEventA(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCSTR *,LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReportEventW(HANDLE,WORD,WORD,DWORD,PSID,WORD,DWORD,LPCWSTR *,LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RequestWakeupLatency(LATENCY_TIME latency); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ResetEvent(HANDLE); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) ResumeThread(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RevertToSelf(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SearchPathA(LPCSTR,LPCSTR,LPCSTR,DWORD,LPSTR,LPSTR*); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SearchPathW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPWSTR*); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetAclInformation(PACL,LPVOID,DWORD,ACL_INFORMATION_CLASS); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCommConfig(HANDLE,LPCOMMCONFIG,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCommBreak(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCommMask(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCommState(HANDLE,LPDCB); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCommTimeouts(HANDLE,LPCOMMTIMEOUTS); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetComputerNameA(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetComputerNameW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetComputerNameExA(COMPUTER_NAME_FORMAT,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetComputerNameExW(COMPUTER_NAME_FORMAT,LPCWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetCriticalSectionSpinCount(LPCRITICAL_SECTION,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCurrentDirectoryA(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCurrentDirectoryW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDefaultCommConfigA(LPCSTR,LPCOMMCONFIG,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDefaultCommConfigW(LPCWSTR,LPCOMMCONFIG,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDllDirectoryA(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDllDirectoryW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDynamicTimeZoneInformation(const DYNAMIC_TIME_ZONE_INFORMATION*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetEndOfFile(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetEnvironmentVariableA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetEnvironmentVariableW(LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) SetErrorMode(UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetEvent(HANDLE); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) SetFileApisToANSI(void); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) SetFileApisToOEM(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetFileAttributesA(LPCSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetFileAttributesW(LPCWSTR,DWORD); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetFilePointer(HANDLE,LONG,LPLONG,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetFilePointerEx(HANDLE,LARGE_INTEGER,LARGE_INTEGER*,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetFileSecurityA(LPCSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetFileSecurityW(LPCWSTR,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetFileTime(HANDLE,const FILETIME*,const FILETIME*,const FILETIME*); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) SetHandleCount(UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetHandleInformation(HANDLE,DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetKernelObjectSecurity(HANDLE,SECURITY_INFORMATION,PSECURITY_DESCRIPTOR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetLocalTime(const SYSTEMTIME*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMailslotInfo(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetNamedPipeHandleState(HANDLE,LPDWORD,LPDWORD,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetPriorityClass(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetPrivateObjectSecurity(SECURITY_INFORMATION,PSECURITY_DESCRIPTOR,PSECURITY_DESCRIPTOR*,PGENERIC_MAPPING,HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetProcessAffinityMask(HANDLE,DWORD_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetProcessPriorityBoost(HANDLE,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetProcessShutdownParameters(DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetProcessWorkingSetSize(HANDLE,SIZE_T,SIZE_T); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSecurityDescriptorControl(PSECURITY_DESCRIPTOR,SECURITY_DESCRIPTOR_CONTROL,SECURITY_DESCRIPTOR_CONTROL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR,PSID,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR,PSID,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR,BOOL,PACL,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetStdHandle(DWORD,HANDLE); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSystemPowerState(BOOL,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSystemTime(const SYSTEMTIME*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSystemTimeAdjustment(DWORD,BOOL); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetTapeParameters(HANDLE,DWORD,LPVOID); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetTapePosition(HANDLE,DWORD,DWORD,DWORD,DWORD,BOOL); >__attribute__((visibility ("hidden"))) DWORD_PTR __attribute__((__stdcall__)) SetThreadAffinityMask(HANDLE,DWORD_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetThreadContext(HANDLE,const CONTEXT *); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetThreadExecutionState(EXECUTION_STATE); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetThreadIdealProcessor(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetThreadPriority(HANDLE,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetThreadPriorityBoost(HANDLE,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetThreadToken(PHANDLE,HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetTimeZoneInformation(const TIME_ZONE_INFORMATION *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetTokenInformation(HANDLE,TOKEN_INFORMATION_CLASS,LPVOID,DWORD); >__attribute__((visibility ("hidden"))) LPTOP_LEVEL_EXCEPTION_FILTER __attribute__((__stdcall__)) SetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetVolumeLabelA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetVolumeLabelW(LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetVolumeMountPointA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetVolumeMountPointW(LPCSTR,LPCSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetupComm(HANDLE,DWORD,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SignalObjectAndWait(HANDLE,HANDLE,DWORD,BOOL); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SizeofResource(HMODULE,HRSRC); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) Sleep(DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SleepEx(DWORD,BOOL); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SuspendThread(HANDLE); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) SwitchToFiber(LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SwitchToThread(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SystemTimeToFileTime(const SYSTEMTIME*,LPFILETIME); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SystemTimeToTzSpecificLocalTime(LPTIME_ZONE_INFORMATION,LPSYSTEMTIME,LPSYSTEMTIME); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TerminateProcess(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TerminateThread(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) TlsAlloc(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TlsFree(DWORD); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) TlsGetValue(DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TlsSetValue(DWORD,LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TransactNamedPipe(HANDLE,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TransmitCommChar(HANDLE,CHAR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TryEnterCriticalSection(CRITICAL_SECTION *lpCrit); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TzSpecificLocalTimeToSystemTime(LPTIME_ZONE_INFORMATION,LPSYSTEMTIME,LPSYSTEMTIME); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) UnhandledExceptionFilter(PEXCEPTION_POINTERS); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnlockFile(HANDLE,DWORD,DWORD,DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnlockFileEx(HANDLE,DWORD,DWORD,DWORD,LPOVERLAPPED); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnmapViewOfFile(LPCVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnregisterWait(HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnregisterWaitEx(HANDLE,HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UpdateResourceA(HANDLE,LPCSTR,LPCSTR,WORD,LPVOID,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UpdateResourceW(HANDLE,LPCWSTR,LPCWSTR,WORD,LPVOID,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) VerifyVersionInfoA(LPOSVERSIONINFOEXA,DWORD,DWORDLONG); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) VerifyVersionInfoW(LPOSVERSIONINFOEXW,DWORD,DWORDLONG); > >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) VirtualAlloc(LPVOID,SIZE_T,DWORD,DWORD); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) VirtualAllocEx(HANDLE,LPVOID,SIZE_T,DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) VirtualFree(LPVOID,SIZE_T,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) VirtualFreeEx(HANDLE,LPVOID,SIZE_T,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) VirtualLock(LPVOID,SIZE_T); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) VirtualProtect(LPVOID,SIZE_T,DWORD,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) VirtualProtectEx(HANDLE,LPVOID,SIZE_T,DWORD,LPDWORD); >__attribute__((visibility ("hidden"))) SIZE_T __attribute__((__stdcall__)) VirtualQuery(LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T); >__attribute__((visibility ("hidden"))) SIZE_T __attribute__((__stdcall__)) VirtualQueryEx(HANDLE,LPCVOID,PMEMORY_BASIC_INFORMATION,SIZE_T); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) VirtualUnlock(LPVOID,SIZE_T); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WaitCommEvent(HANDLE,LPDWORD,LPOVERLAPPED); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WaitForDebugEvent(LPDEBUG_EVENT,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) WaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) WaitForMultipleObjectsEx(DWORD,const HANDLE*,BOOL,DWORD,BOOL); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) WaitForSingleObject(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) WaitForSingleObjectEx(HANDLE,DWORD,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WaitNamedPipeA(LPCSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WaitNamedPipeW(LPCWSTR,DWORD); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) WinExec(LPCSTR,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WriteFile(HANDLE,LPCVOID,DWORD,LPDWORD,LPOVERLAPPED); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WriteFileEx(HANDLE,LPCVOID,DWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WriteFileGather(HANDLE,FILE_SEGMENT_ELEMENT*,DWORD,LPDWORD,LPOVERLAPPED); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WritePrivateProfileSectionA(LPCSTR,LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WritePrivateProfileSectionW(LPCWSTR,LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WritePrivateProfileStringA(LPCSTR,LPCSTR,LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WritePrivateProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WritePrivateProfileStructA(LPCSTR,LPCSTR,LPVOID,UINT,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WritePrivateProfileStructW(LPCWSTR,LPCWSTR,LPVOID,UINT,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WriteProcessMemory(HANDLE,LPVOID,LPCVOID,SIZE_T,SIZE_T*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WriteProfileSectionA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WriteProfileSectionW(LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WriteProfileStringA(LPCSTR,LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WriteProfileStringW(LPCWSTR,LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) WriteTapemark(HANDLE,DWORD,DWORD,BOOL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ZombifyActCtx(HANDLE); > >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) lstrcatA(LPSTR,LPCSTR); >__attribute__((visibility ("hidden"))) LPWSTR __attribute__((__stdcall__)) lstrcatW(LPWSTR,LPCWSTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) lstrcmpA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) lstrcmpW(LPCWSTR,LPCWSTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) lstrcmpiA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) lstrcmpiW(LPCWSTR,LPCWSTR); >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) lstrcpyA(LPSTR,LPCSTR); >__attribute__((visibility ("hidden"))) LPWSTR __attribute__((__stdcall__)) lstrcpyW(LPWSTR,LPCWSTR); >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) lstrcpynA(LPSTR,LPCSTR,INT); >__attribute__((visibility ("hidden"))) LPWSTR __attribute__((__stdcall__)) lstrcpynW(LPWSTR,LPCWSTR,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) lstrlenA(LPCSTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) lstrlenW(LPCWSTR); ># 2221 "../../../include/winbase.h" >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) _hread(HFILE,LPVOID,LONG); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) _hwrite(HFILE,LPCSTR,LONG); >__attribute__((visibility ("hidden"))) HFILE __attribute__((__stdcall__)) _lcreat(LPCSTR,INT); >__attribute__((visibility ("hidden"))) HFILE __attribute__((__stdcall__)) _lclose(HFILE); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) _llseek(HFILE,LONG,INT); >__attribute__((visibility ("hidden"))) HFILE __attribute__((__stdcall__)) _lopen(LPCSTR,INT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) _lread(HFILE,LPVOID,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) _lwrite(HFILE,LPCSTR,UINT); ># 2238 "../../../include/winbase.h" >typedef struct tagSYSLEVEL >{ > CRITICAL_SECTION crst; > INT level; >} SYSLEVEL; ># 2261 "../../../include/winbase.h" >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) DisposeLZ32Handle(HANDLE); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) DosFileHandleToWin32Handle(HFILE); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetProcessDword(DWORD,INT); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) GetpWin16Lock(SYSLEVEL**); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) MapLS(LPCVOID); >__attribute__((visibility ("hidden"))) LPVOID __attribute__((__stdcall__)) MapSL(DWORD); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) ReleaseThunkLock(DWORD*); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) RestoreThunkLock(DWORD); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) UnMapLS(DWORD); >__attribute__((visibility ("hidden"))) HFILE __attribute__((__stdcall__)) Win32HandleToDosFileHandle(HANDLE); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) _CheckNotSysLevel(SYSLEVEL *lock); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) _ConfirmWin16Lock(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) _ConfirmSysLevel(SYSLEVEL*); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) _EnterSysLevel(SYSLEVEL*); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) _LeaveSysLevel(SYSLEVEL*); > > > > >extern char *wine_get_unix_file_name( LPCWSTR dos ); >extern WCHAR *wine_get_dos_file_name( LPCSTR str ); ># 2367 "../../../include/winbase.h" >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetCurrentProcessId(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetCurrentThreadId(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetLastError(void); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) GetProcessHeap(void); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) InterlockedCompareExchange(LONG volatile*,LONG,LONG); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) InterlockedDecrement(LONG volatile*); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) InterlockedExchange(LONG volatile*,LONG); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) InterlockedExchangeAdd(LONG volatile*,LONG); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) InterlockedIncrement(LONG volatile*); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) SetLastError(DWORD); > > > >static inline PVOID __attribute__((__stdcall__)) InterlockedCompareExchangePointer( PVOID volatile *dest, PVOID xchg, PVOID compare ) >{ > > > > > > > return (PVOID)InterlockedCompareExchange( (LONG volatile*)dest, (LONG)xchg, (LONG)compare ); > >} > >static inline PVOID __attribute__((__stdcall__)) InterlockedExchangePointer( PVOID volatile *dest, PVOID val ) >{ > > > > > > > return (PVOID)InterlockedExchange( (LONG volatile*)dest, (LONG)val ); > >} ># 2411 "../../../include/winbase.h" >int __attribute__((__stdcall__)) WinMain(HINSTANCE,HINSTANCE,LPSTR,int); ># 33 "menu.c" 2 ># 1 "../../../include/wingdi.h" 1 ># 33 "../../../include/wingdi.h" >typedef struct _ABCFLOAT { > FLOAT abcfA; > FLOAT abcfB; > FLOAT abcfC; >} ABCFLOAT, *PABCFLOAT, *LPABCFLOAT; > > > >typedef struct >{ > WORD wFirst; > WORD wSecond; > INT iKernAmount; >} KERNINGPAIR, *LPKERNINGPAIR; > >typedef struct tagPIXELFORMATDESCRIPTOR { > WORD nSize; > WORD nVersion; > DWORD dwFlags; > BYTE iPixelType; > BYTE cColorBits; > BYTE cRedBits; > BYTE cRedShift; > BYTE cGreenBits; > BYTE cGreenShift; > BYTE cBlueBits; > BYTE cBlueShift; > BYTE cAlphaBits; > BYTE cAlphaShift; > BYTE cAccumBits; > BYTE cAccumRedBits; > BYTE cAccumGreenBits; > BYTE cAccumBlueBits; > BYTE cAccumAlphaBits; > BYTE cDepthBits; > BYTE cStencilBits; > BYTE cAuxBuffers; > BYTE iLayerType; > BYTE bReserved; > DWORD dwLayerMask; > DWORD dwVisibleMask; > DWORD dwDamageMask; >} PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESCRIPTOR, *LPPIXELFORMATDESCRIPTOR; ># 103 "../../../include/wingdi.h" >typedef struct tagCOLORADJUSTMENT >{ > WORD caSize; > WORD caFlags; > WORD caIlluminantIndex; > WORD caRedGamma; > WORD caGreenGamma; > WORD caBlueGamma; > WORD caReferenceBlack; > WORD caReferenceWhite; > SHORT caContrast; > SHORT caBrightness; > SHORT caColorfulness; > SHORT caRedGreenTint; >} COLORADJUSTMENT, *PCOLORADJUSTMENT, *LPCOLORADJUSTMENT; ># 149 "../../../include/wingdi.h" >typedef LONG FXPT16DOT16, *LPFXPT16DOT16; >typedef LONG FXPT2DOT30, *LPFXPT2DOT30; >typedef LONG LCSCSTYPE; >typedef LONG LCSGAMUTMATCH; ># 165 "../../../include/wingdi.h" >typedef struct tagCIEXYZ >{ > FXPT2DOT30 ciexyzX; > FXPT2DOT30 ciexyzY; > FXPT2DOT30 ciexyzZ; >} CIEXYZ, *LPCIEXYZ; > >typedef struct tagCIEXYZTRIPLE >{ > CIEXYZ ciexyzRed; > CIEXYZ ciexyzGreen; > CIEXYZ ciexyzBlue; >} CIEXYZTRIPLE, *LPCIEXYZTRIPLE; > >typedef struct tagLOGCOLORSPACEA >{ > DWORD lcsSignature; > DWORD lcsVersion; > DWORD lcsSize; > LCSCSTYPE lcsCSType; > LCSGAMUTMATCH lcsIntent; > CIEXYZTRIPLE lcsEndpoints; > DWORD lcsGammaRed; > DWORD lcsGammaGreen; > DWORD lcsGammaBlue; > CHAR lcsFilename[260]; >} LOGCOLORSPACEA, *LPLOGCOLORSPACEA; > > typedef struct tagLOGCOLORSPACEW >{ > DWORD lcsSignature; > DWORD lcsVersion; > DWORD lcsSize; > LCSCSTYPE lcsCSType; > LCSGAMUTMATCH lcsIntent; > CIEXYZTRIPLE lcsEndpoints; > DWORD lcsGammaRed; > DWORD lcsGammaGreen; > DWORD lcsGammaBlue; > WCHAR lcsFilename[260]; >} LOGCOLORSPACEW, *LPLOGCOLORSPACEW; > >typedef LPLOGCOLORSPACEA LPLOGCOLORSPACE; >typedef LOGCOLORSPACEA LOGCOLORSPACE; ># 444 "../../../include/wingdi.h" >typedef INT (__attribute__((__stdcall__)) *ICMENUMPROCA)(LPSTR lpszFilename,LPARAM lParam); >typedef INT (__attribute__((__stdcall__)) *ICMENUMPROCW)(LPWSTR lpszFilename,LPARAM lParam); >typedef ICMENUMPROCA ICMENUMPROC; ># 461 "../../../include/wingdi.h" >typedef struct >{ > LONG paXCount; > LONG paYCount; > LONG paXExt; > LONG paYExt; > BYTE paRGBs; >} PELARRAY, *PPELARRAY, *LPPELARRAY; > > > >typedef struct >{ > INT bmType; > INT bmWidth; > INT bmHeight; > INT bmWidthBytes; > WORD bmPlanes; > WORD bmBitsPixel; > LPVOID bmBits; >} BITMAP, *PBITMAP, *LPBITMAP; > > > > >typedef struct >{ > UINT lbStyle; > COLORREF lbColor; > ULONG_PTR lbHatch; >} LOGBRUSH, *PLOGBRUSH, *LPLOGBRUSH; > >typedef struct >{ > UINT lbStyle; > COLORREF lbColor; > ULONG lbHatch; >} LOGBRUSH32, *PLOGBRUSH32, *LPLOGBRUSH32; > >typedef LOGBRUSH PATTERN, *PPATTERN, *LPPATTERN; ># 533 "../../../include/wingdi.h" >typedef struct tagLOGFONTA >{ > LONG lfHeight; > LONG lfWidth; > LONG lfEscapement; > LONG lfOrientation; > LONG lfWeight; > BYTE lfItalic; > BYTE lfUnderline; > BYTE lfStrikeOut; > BYTE lfCharSet; > BYTE lfOutPrecision; > BYTE lfClipPrecision; > BYTE lfQuality; > BYTE lfPitchAndFamily; > CHAR lfFaceName[32]; >} LOGFONTA, *PLOGFONTA, *LPLOGFONTA; > >typedef struct tagLOGFONTW >{ > LONG lfHeight; > LONG lfWidth; > LONG lfEscapement; > LONG lfOrientation; > LONG lfWeight; > BYTE lfItalic; > BYTE lfUnderline; > BYTE lfStrikeOut; > BYTE lfCharSet; > BYTE lfOutPrecision; > BYTE lfClipPrecision; > BYTE lfQuality; > BYTE lfPitchAndFamily; > WCHAR lfFaceName[32]; >} LOGFONTW, *PLOGFONTW, *LPLOGFONTW; > >typedef LOGFONTA LOGFONT; >typedef PLOGFONTA PLOGFONT; >typedef LPLOGFONTA LPLOGFONT; > >typedef struct >{ > LOGFONTA elfLogFont; > BYTE elfFullName[64]; > BYTE elfStyle[32]; >} ENUMLOGFONTA, *LPENUMLOGFONTA; > >typedef struct >{ > LOGFONTW elfLogFont; > WCHAR elfFullName[64]; > WCHAR elfStyle[32]; >} ENUMLOGFONTW, *LPENUMLOGFONTW; > >typedef ENUMLOGFONTA ENUMLOGFONT; >typedef LPENUMLOGFONTA LPENUMLOGFONT; > >typedef struct >{ > LOGFONTA elfLogFont; > BYTE elfFullName[64]; > BYTE elfStyle[32]; > BYTE elfScript[32]; >} ENUMLOGFONTEXA,*LPENUMLOGFONTEXA; > >typedef struct >{ > LOGFONTW elfLogFont; > WCHAR elfFullName[64]; > WCHAR elfStyle[32]; > WCHAR elfScript[32]; >} ENUMLOGFONTEXW,*LPENUMLOGFONTEXW; > >typedef ENUMLOGFONTEXA ENUMLOGFONTEX; >typedef LPENUMLOGFONTEXA LPENUMLOGFONTEX; ># 621 "../../../include/wingdi.h" >typedef struct >{ > DWORD fsUsb[4]; > DWORD fsCsb[2]; >} FONTSIGNATURE, *PFONTSIGNATURE, *LPFONTSIGNATURE; > >typedef struct >{ > UINT ciCharset; > UINT ciACP; > FONTSIGNATURE fs; >} CHARSETINFO, *PCHARSETINFO, *LPCHARSETINFO; > > > > > > >typedef struct >{ > DWORD lsUsb[4]; > DWORD lsCsbDefault[2]; > DWORD lsCsbSupported[2]; >} LOCALESIGNATURE, *PLOCALESIGNATURE, *LPLOCALESIGNATURE; ># 670 "../../../include/wingdi.h" >typedef struct tagXFORM >{ > FLOAT eM11; > FLOAT eM12; > FLOAT eM21; > FLOAT eM22; > FLOAT eDx; > FLOAT eDy; >} XFORM, *PXFORM, *LPXFORM; ># 790 "../../../include/wingdi.h" >typedef struct tagTEXTMETRICA >{ > LONG tmHeight; > LONG tmAscent; > LONG tmDescent; > LONG tmInternalLeading; > LONG tmExternalLeading; > LONG tmAveCharWidth; > LONG tmMaxCharWidth; > LONG tmWeight; > LONG tmOverhang; > LONG tmDigitizedAspectX; > LONG tmDigitizedAspectY; > BYTE tmFirstChar; > BYTE tmLastChar; > BYTE tmDefaultChar; > BYTE tmBreakChar; > BYTE tmItalic; > BYTE tmUnderlined; > BYTE tmStruckOut; > BYTE tmPitchAndFamily; > BYTE tmCharSet; >} TEXTMETRICA, *LPTEXTMETRICA, *PTEXTMETRICA; > >typedef struct tagTEXTMETRICW >{ > LONG tmHeight; > LONG tmAscent; > LONG tmDescent; > LONG tmInternalLeading; > LONG tmExternalLeading; > LONG tmAveCharWidth; > LONG tmMaxCharWidth; > LONG tmWeight; > LONG tmOverhang; > LONG tmDigitizedAspectX; > LONG tmDigitizedAspectY; > WCHAR tmFirstChar; > WCHAR tmLastChar; > WCHAR tmDefaultChar; > WCHAR tmBreakChar; > BYTE tmItalic; > BYTE tmUnderlined; > BYTE tmStruckOut; > BYTE tmPitchAndFamily; > BYTE tmCharSet; >} TEXTMETRICW, *LPTEXTMETRICW, *PTEXTMETRICW; > >typedef TEXTMETRICA TEXTMETRIC; >typedef PTEXTMETRICA PTEXTMETRIC; >typedef LPTEXTMETRICA LPTEXTMETRIC; > > > >typedef struct tagPANOSE >{ > BYTE bFamilyType; > BYTE bSerifStyle; > BYTE bWeight; > BYTE bProportion; > BYTE bContrast; > BYTE bStrokeVariation; > BYTE bArmStyle; > BYTE bLetterform; > BYTE bMidline; > BYTE bXHeight; >} PANOSE, *LPPANOSE; ># 980 "../../../include/wingdi.h" >typedef struct >{ > LOGFONTA elfLogFont; > BYTE elfFullName[64]; > BYTE elfStyle[32]; > DWORD elfVersion; > DWORD elfStyleSize; > DWORD elfMatch; > DWORD elfReserved; > BYTE elfVendorId[4]; > DWORD elfCulture; > PANOSE elfPanose; >} EXTLOGFONTA, *PEXTLOGFONTA, *LPEXTLOGFONTA; > >typedef struct >{ > LOGFONTW elfLogFont; > WCHAR elfFullName[64]; > WCHAR elfStyle[32]; > DWORD elfVersion; > DWORD elfStyleSize; > DWORD elfMatch; > DWORD elfReserved; > BYTE elfVendorId[4]; > DWORD elfCulture; > PANOSE elfPanose; >} EXTLOGFONTW, *PEXTLOGFONTW, *LPEXTLOGFONTW; > >typedef EXTLOGFONTA EXTLOGFONT; >typedef PEXTLOGFONTA PEXTLOGFONT; >typedef LPEXTLOGFONTA LPEXTLOGFONT; > > > > >typedef struct _OUTLINETEXTMETRICA >{ > UINT otmSize; > TEXTMETRICA otmTextMetrics; > BYTE otmFiller; > PANOSE otmPanoseNumber; > UINT otmfsSelection; > UINT otmfsType; > INT otmsCharSlopeRise; > INT otmsCharSlopeRun; > INT otmItalicAngle; > UINT otmEMSquare; > INT otmAscent; > INT otmDescent; > UINT otmLineGap; > UINT otmsCapEmHeight; > UINT otmsXHeight; > RECT otmrcFontBox; > INT otmMacAscent; > INT otmMacDescent; > UINT otmMacLineGap; > UINT otmusMinimumPPEM; > POINT otmptSubscriptSize; > POINT otmptSubscriptOffset; > POINT otmptSuperscriptSize; > POINT otmptSuperscriptOffset; > UINT otmsStrikeoutSize; > INT otmsStrikeoutPosition; > INT otmsUnderscoreSize; > INT otmsUnderscorePosition; > LPSTR otmpFamilyName; > LPSTR otmpFaceName; > LPSTR otmpStyleName; > LPSTR otmpFullName; >} OUTLINETEXTMETRICA, *POUTLINETEXTMETRICA, *LPOUTLINETEXTMETRICA; > >typedef struct _OUTLINETEXTMETRICW >{ > UINT otmSize; > TEXTMETRICW otmTextMetrics; > BYTE otmFiller; > PANOSE otmPanoseNumber; > UINT otmfsSelection; > UINT otmfsType; > INT otmsCharSlopeRise; > INT otmsCharSlopeRun; > INT otmItalicAngle; > UINT otmEMSquare; > INT otmAscent; > INT otmDescent; > UINT otmLineGap; > UINT otmsCapEmHeight; > UINT otmsXHeight; > RECT otmrcFontBox; > INT otmMacAscent; > INT otmMacDescent; > UINT otmMacLineGap; > UINT otmusMinimumPPEM; > POINT otmptSubscriptSize; > POINT otmptSubscriptOffset; > POINT otmptSuperscriptSize; > POINT otmptSuperscriptOffset; > UINT otmsStrikeoutSize; > INT otmsStrikeoutPosition; > INT otmsUnderscoreSize; > INT otmsUnderscorePosition; > LPSTR otmpFamilyName; > LPSTR otmpFaceName; > LPSTR otmpStyleName; > LPSTR otmpFullName; >} OUTLINETEXTMETRICW, *POUTLINETEXTMETRICW, *LPOUTLINETEXTMETRICW; > >typedef OUTLINETEXTMETRICA OUTLINETEXTMETRIC; >typedef POUTLINETEXTMETRICA POUTLINETEXTMETRIC; >typedef LPOUTLINETEXTMETRICA LPOUTLINETEXTMETRIC; > >typedef struct >{ > INT x; > INT y; > UINT n; > LPCSTR lpstr; > UINT uiFlags; > RECT rcl; > INT *pdx; >} POLYTEXTA, *PPOLYTEXTA, *LPPOLYTEXTA; > >typedef struct >{ > INT x; > INT y; > UINT n; > LPCWSTR lpstr; > UINT uiFlags; > RECT rcl; > INT *pdx; >} POLYTEXTW, *PPOLYTEXTW, *LPPOLYTEXTW; > >typedef POLYTEXTA POLYTEXT; >typedef PPOLYTEXTA PPOLYTEXT; >typedef LPPOLYTEXTA LPPOLYTEXT; ># 1131 "../../../include/wingdi.h" >typedef struct >{ > LONG tmHeight; > LONG tmAscent; > LONG tmDescent; > LONG tmInternalLeading; > LONG tmExternalLeading; > LONG tmAveCharWidth; > LONG tmMaxCharWidth; > LONG tmWeight; > LONG tmOverhang; > LONG tmDigitizedAspectX; > LONG tmDigitizedAspectY; > BYTE tmFirstChar; > BYTE tmLastChar; > BYTE tmDefaultChar; > BYTE tmBreakChar; > BYTE tmItalic; > BYTE tmUnderlined; > BYTE tmStruckOut; > BYTE tmPitchAndFamily; > BYTE tmCharSet; > DWORD ntmFlags; > UINT ntmSizeEM; > UINT ntmCellHeight; > UINT ntmAvgWidth; >} NEWTEXTMETRICA, *PNEWTEXTMETRICA, *LPNEWTEXTMETRICA; > >typedef struct >{ > LONG tmHeight; > LONG tmAscent; > LONG tmDescent; > LONG tmInternalLeading; > LONG tmExternalLeading; > LONG tmAveCharWidth; > LONG tmMaxCharWidth; > LONG tmWeight; > LONG tmOverhang; > LONG tmDigitizedAspectX; > LONG tmDigitizedAspectY; > WCHAR tmFirstChar; > WCHAR tmLastChar; > WCHAR tmDefaultChar; > WCHAR tmBreakChar; > BYTE tmItalic; > BYTE tmUnderlined; > BYTE tmStruckOut; > BYTE tmPitchAndFamily; > BYTE tmCharSet; > DWORD ntmFlags; > UINT ntmSizeEM; > UINT ntmCellHeight; > UINT ntmAvgWidth; >} NEWTEXTMETRICW, *PNEWTEXTMETRICW, *LPNEWTEXTMETRICW; > >typedef NEWTEXTMETRICA NEWTEXTMETRIC; >typedef PNEWTEXTMETRICA PNEWTEXTMETRIC; >typedef LPNEWTEXTMETRICA LPNEWTEXTMETRIC; > >typedef struct >{ > NEWTEXTMETRICA ntmTm; > FONTSIGNATURE ntmFontSig; >} NEWTEXTMETRICEXA; > >typedef struct >{ > NEWTEXTMETRICW ntmTm; > FONTSIGNATURE ntmFontSig; >} NEWTEXTMETRICEXW; > >typedef NEWTEXTMETRICEXA NEWTEXTMETRICEX; > > > > >typedef int (__attribute__((__stdcall__)) *OLDFONTENUMPROCA)(const LOGFONTA *, const TEXTMETRICA *, DWORD, LPARAM); >typedef int (__attribute__((__stdcall__)) *OLDFONTENUMPROCW)(const LOGFONTW *, const TEXTMETRICW *, DWORD, LPARAM); > > > > >typedef OLDFONTENUMPROCA OLDFONTENUMPROC; > >typedef OLDFONTENUMPROCA FONTENUMPROCA; >typedef OLDFONTENUMPROCW FONTENUMPROCW; >typedef FONTENUMPROCA FONTENUMPROC; > >typedef INT (__attribute__((__stdcall__)) *GOBJENUMPROC)(LPVOID, LPARAM); >typedef void (__attribute__((__stdcall__)) *LINEDDAPROC)(INT, INT, LPARAM); ># 1278 "../../../include/wingdi.h" >typedef struct >{ > UINT gmBlackBoxX; > UINT gmBlackBoxY; > POINT gmptGlyphOrigin; > SHORT gmCellIncX; > SHORT gmCellIncY; >} GLYPHMETRICS, *LPGLYPHMETRICS; ># 1301 "../../../include/wingdi.h" >typedef struct >{ > WORD fract; > SHORT value; >} FIXED; > >typedef struct tagPOINTFX >{ > FIXED x; > FIXED y; >} POINTFX, *LPPOINTFX; > >typedef struct tagTTPOLYCURVE >{ > WORD wType; > WORD cpfx; > POINTFX apfx[1]; >} TTPOLYCURVE, *LPTTPOLYCURVE; > >typedef struct tagTTPOLYGONHEADER >{ > DWORD cb; > DWORD dwType; > POINTFX pfxStart; >} TTPOLYGONHEADER, *LPTTPOLYGONHEADER; > >typedef struct >{ > FIXED eM11; > FIXED eM12; > FIXED eM21; > FIXED eM22; >} MAT2, *LPMAT2; > > >typedef struct >{ > INT abcA; > UINT abcB; > INT abcC; >} ABC, *PABC, *LPABC; ># 1385 "../../../include/wingdi.h" >typedef struct tagGCP_RESULTSA{ > DWORD lStructSize; > LPSTR lpOutString; > UINT *lpOrder; > INT *lpDx; > INT *lpCaretPos; > LPSTR lpClass; > LPWSTR lpGlyphs; > UINT nGlyphs; > UINT nMaxFit; >} GCP_RESULTSA, *LPGCP_RESULTSA; > >typedef struct tagGCP_RESULTSW >{ > DWORD lStructSize; > LPWSTR lpOutString; > UINT *lpOrder; > INT *lpDx; > INT *lpCaretPos; > LPSTR lpClass; > LPWSTR lpGlyphs; > UINT nGlyphs; > UINT nMaxFit; >} GCP_RESULTSW, *LPGCP_RESULTSW; > >typedef GCP_RESULTSA GCP_RESULTS; >typedef LPGCP_RESULTSA LPGCP_RESULTS; > > >typedef struct >{ > SHORT nSize; > SHORT wFlags; > SHORT nLanguageID; >} RASTERIZER_STATUS, *LPRASTERIZER_STATUS; ># 1434 "../../../include/wingdi.h" >typedef struct { > FLOAT x; > FLOAT y; >} POINTFLOAT, *PPOINTFLOAT; > >typedef struct { > FLOAT gmfBlackBoxX; > FLOAT gmfBlackBoxY; > POINTFLOAT gmfptGlyphOrigin; > FLOAT gmfCellIncX; > FLOAT gmfCellIncY; >} GLYPHMETRICSFLOAT, *PGLYPHMETRICSFLOAT, *LPGLYPHMETRICSFLOAT; > >typedef struct { > WORD nSize; > WORD nVersion; > DWORD dwFlags; > BYTE iPixelType; > BYTE cColorBits; > BYTE cRedBits; > BYTE cRedShift; > BYTE cGreenBits; > BYTE cGreenShift; > BYTE cBlueBits; > BYTE cBlueShift; > BYTE cAlphaBits; > BYTE cAlphaShift; > BYTE cAccumBits; > BYTE cAccumRedBits; > BYTE cAccumGreenBits; > BYTE cAccumBlueBits; > BYTE cAccumAlphaBits; > BYTE cDepthBits; > BYTE cStencilBits; > BYTE cAuxBuffers; > BYTE iLayerPlane; > BYTE bReserved; > COLORREF crTransparent; >} LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR, *LPLAYERPLANEDESCRIPTOR; ># 1482 "../../../include/wingdi.h" >typedef struct tagPALETTEENTRY >{ > BYTE peRed, peGreen, peBlue, peFlags; >} PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY; ># 1495 "../../../include/wingdi.h" >typedef struct tagLOGPALETTE >{ > WORD palVersion; > WORD palNumEntries; > PALETTEENTRY palPalEntry[1]; >} LOGPALETTE, *PLOGPALETTE, *LPLOGPALETTE, *NPLOGPALETTE; > > > > >typedef struct >{ > UINT lopnStyle; > POINT lopnWidth; > COLORREF lopnColor; >} LOGPEN, *LPLOGPEN; > > >typedef struct tagEXTLOGPEN >{ > DWORD elpPenStyle; > DWORD elpWidth; > UINT elpBrushStyle; > COLORREF elpColor; > ULONG_PTR elpHatch; > DWORD elpNumEntries; > DWORD elpStyleEntry[1]; >} EXTLOGPEN, *PEXTLOGPEN, *NPEXTLOGPEN, *LPEXTLOGPEN; ># 1769 "../../../include/wingdi.h" >typedef struct { > BYTE rgbBlue; > BYTE rgbGreen; > BYTE rgbRed; > BYTE rgbReserved; >} RGBQUAD, *LPRGBQUAD; > >typedef struct { > BYTE rgbtBlue; > BYTE rgbtGreen; > BYTE rgbtRed; >} RGBTRIPLE; > ># 1 "../../../include/pshpack2.h" 1 ># 105 "../../../include/pshpack2.h" >#pragma pack(2) ># 1783 "../../../include/wingdi.h" 2 >typedef struct >{ > WORD bfType; > DWORD bfSize; > WORD bfReserved1; > WORD bfReserved2; > DWORD bfOffBits; >} BITMAPFILEHEADER, *PBITMAPFILEHEADER, *LPBITMAPFILEHEADER; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 1792 "../../../include/wingdi.h" 2 > > > >typedef struct >{ > DWORD biSize; > LONG biWidth; > LONG biHeight; > WORD biPlanes; > WORD biBitCount; > DWORD biCompression; > DWORD biSizeImage; > LONG biXPelsPerMeter; > LONG biYPelsPerMeter; > DWORD biClrUsed; > DWORD biClrImportant; >} BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER; > >typedef struct >{ > DWORD bV4Size; > LONG bV4Width; > LONG bV4Height; > WORD bV4Planes; > WORD bV4BitCount; > DWORD bV4V4Compression; > DWORD bV4SizeImage; > LONG bV4XPelsPerMeter; > LONG bV4YPelsPerMeter; > DWORD bV4ClrUsed; > DWORD bV4ClrImportant; > DWORD bV4RedMask; > DWORD bV4GreenMask; > DWORD bV4BlueMask; > DWORD bV4AlphaMask; > DWORD bV4CSType; > CIEXYZTRIPLE bV4Endpoints; > DWORD bV4GammaRed; > DWORD bV4GammaGreen; > DWORD bV4GammaBlue; >} BITMAPV4HEADER, *PBITMAPV4HEADER; > >typedef struct { > DWORD bV5Size; > LONG bV5Width; > LONG bV5Height; > WORD bV5Planes; > WORD bV5BitCount; > DWORD bV5Compression; > DWORD bV5SizeImage; > LONG bV5XPelsPerMeter; > LONG bV5YPelsPerMeter; > DWORD bV5ClrUsed; > DWORD bV5ClrImportant; > DWORD bV5RedMask; > DWORD bV5GreenMask; > DWORD bV5BlueMask; > DWORD bV5AlphaMask; > DWORD bV5CSType; > CIEXYZTRIPLE bV5Endpoints; > DWORD bV5GammaRed; > DWORD bV5GammaGreen; > DWORD bV5GammaBlue; > DWORD bV5Intent; > DWORD bV5ProfileData; > DWORD bV5ProfileSize; > DWORD bV5Reserved; >} BITMAPV5HEADER, *LPBITMAPV5HEADER, *PBITMAPV5HEADER; ># 1871 "../../../include/wingdi.h" >typedef struct tagBITMAPINFO >{ > BITMAPINFOHEADER bmiHeader; > RGBQUAD bmiColors[1]; >} BITMAPINFO, *PBITMAPINFO, *LPBITMAPINFO; > >typedef struct >{ > DWORD bcSize; > WORD bcWidth; > WORD bcHeight; > WORD bcPlanes; > WORD bcBitCount; >} BITMAPCOREHEADER, *PBITMAPCOREHEADER, *LPBITMAPCOREHEADER; > >typedef struct >{ > BITMAPCOREHEADER bmciHeader; > RGBTRIPLE bmciColors[1]; >} BITMAPCOREINFO, *PBITMAPCOREINFO, *LPBITMAPCOREINFO; > > > > > >typedef struct >{ > BITMAP dsBm; > BITMAPINFOHEADER dsBmih; > DWORD dsBitfields[3]; > HANDLE dshSection; > DWORD dsOffset; >} DIBSECTION, *PDIBSECTION, *LPDIBSECTION; ># 1932 "../../../include/wingdi.h" ># 1 "../../../include/pshpack2.h" 1 ># 105 "../../../include/pshpack2.h" >#pragma pack(2) ># 1933 "../../../include/wingdi.h" 2 >typedef struct >{ > WORD mtType; > WORD mtHeaderSize; > WORD mtVersion; > DWORD mtSize; > WORD mtNoObjects; > DWORD mtMaxRecord; > WORD mtNoParameters; >} METAHEADER, *PMETAHEADER, *LPMETAHEADER; ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 1944 "../../../include/wingdi.h" 2 > > >typedef struct >{ > DWORD rdSize; > WORD rdFunction; > WORD rdParm[1]; >} METARECORD, *PMETARECORD, *LPMETARECORD; > > > >typedef struct >{ > HGDIOBJ objectHandle[1]; >} HANDLETABLE, *PHANDLETABLE, *LPHANDLETABLE; > > > >typedef struct >{ > LONG mm; > LONG xExt; > LONG yExt; > HMETAFILE hMF; >} METAFILEPICT, *LPMETAFILEPICT; ># 2052 "../../../include/wingdi.h" >typedef INT (__attribute__((__stdcall__)) *MFENUMPROC)(HDC,HANDLETABLE*,METARECORD*, > INT,LPARAM); > > > > > >typedef struct { > DWORD iType; > DWORD nSize; > RECTL rclBounds; > RECTL rclFrame; > DWORD dSignature; > DWORD nVersion; > DWORD nBytes; > DWORD nRecords; > WORD nHandles; > WORD sReserved; > DWORD nDescription; > DWORD offDescription; > DWORD nPalEntries; > SIZEL szlDevice; > SIZEL szlMillimeters; > DWORD cbPixelFormat; > DWORD offPixelFormat; > DWORD bOpenGL; > SIZEL szlMicrometers; >} ENHMETAHEADER, *PENHMETAHEADER, *LPENHMETAHEADER; > >typedef struct { > DWORD iType; > DWORD nSize; > DWORD dParm[1]; >} ENHMETARECORD, *LPENHMETARECORD; > >typedef struct { > DWORD iType; > DWORD nSize; >} EMR, *PEMR; > >typedef struct { > POINTL ptlReference; > DWORD nChars; > DWORD offString; > DWORD fOptions; > RECTL rcl; > DWORD offDx; >} EMRTEXT, *PEMRTEXT; > >typedef struct { > EMR emr; >} EMRABORTPATH, *PEMRABORTPATH, > EMRBEGINPATH, *PEMRBEGINPATH, > EMRENDPATH, *PEMRENDPATH, > EMRCLOSEFIGURE, *PEMRCLOSEFIGURE, > EMRFLATTENPATH, *PEMRFLATTENPATH, > EMRWIDENPATH, *PEMRWIDENPATH, > EMRSETMETARGN, *PEMRSETMETARGN, > EMRSAVEDC, *PEMRSAVEDC, > EMRREALIZEPALETTE, *PEMRREALIZEPALETTE; > >typedef struct { > EMR emr; > POINTL ptlCenter; > DWORD nRadius; > FLOAT eStartAngle; > FLOAT eSweepAngle; >} EMRANGLEARC, *PEMRANGLEARC; > >typedef struct { > EMR emr; > RECTL rclBox; > POINTL ptlStart; > POINTL ptlEnd; >} EMRARC, *PEMRARC, > EMRARCTO, *PEMRARCTO, > EMRCHORD, *PEMRCHORD, > EMRPIE, *PEMRPIE; > >typedef struct { > EMR emr; > RECTL rclBounds; > LONG xDest; > LONG yDest; > LONG cxDest; > LONG cyDest; > DWORD dwRop; > LONG xSrc; > LONG ySrc; > XFORM xformSrc; > COLORREF crBkColorSrc; > DWORD iUsageSrc; > DWORD offBmiSrc; > DWORD cbBmiSrc; > DWORD offBitsSrc; > DWORD cbBitsSrc; >} EMRBITBLT, *PEMRBITBLT; > >typedef struct { > EMR emr; > DWORD ihBrush; > LOGBRUSH32 lb; >} EMRCREATEBRUSHINDIRECT, *PEMRCREATEBRUSHINDIRECT; > >typedef struct { > EMR emr; > DWORD ihCS; > LOGCOLORSPACEA lcs; >} EMRCREATECOLORSPACE, *PEMRCREATECOLORSPACE; > >typedef struct { > EMR emr; > DWORD ihCS; > LOGCOLORSPACEW lcs; > DWORD dwFlags; > DWORD cbData; > BYTE Data[1]; >} EMRCREATECOLORSPACEW, *PEMRCREATECOLORSPACEW; > >typedef struct { > EMR emr; > DWORD ihBrush; > DWORD iUsage; > DWORD offBmi; > DWORD cbBmi; > DWORD offBits; > DWORD cbBits; >} EMRCREATEDIBPATTERNBRUSHPT, *PEMRCREATEDIBPATTERNBRUSHPT; > >typedef struct { > EMR emr; > DWORD ihBrush; > DWORD iUsage; > DWORD offBmi; > DWORD cbBmi; > DWORD offBits; > DWORD cbBits; >} EMRCREATEMONOBRUSH, *PEMRCREATEMONOBRUSH; > >typedef struct { > EMR emr; > DWORD ihPal; > LOGPALETTE lgpl; >} EMRCREATEPALETTE, *PEMRCREATEPALETTE; > >typedef struct { > EMR emr; > DWORD ihPen; > LOGPEN lopn; >} EMRCREATEPEN, *PEMRCREATEPEN; > >typedef struct { > EMR emr; > DWORD ihCS; >} EMRDELETECOLORSPACE, *PEMRDELETECOLORSPACE, > EMRSELECTCOLORSPACE, *PEMRSELECTCOLORSPACE, > EMRSETCOLORSPACE, *PEMRSETCOLORSPACE; > >typedef struct { > EMR emr; > DWORD ihObject; >} EMRDELETEOBJECT, *PEMRDELETEOBJECT, > EMRSELECTOBJECT, *PEMRSELECTOBJECT; > >typedef struct { > EMR emr; > RECTL rclBox; >} EMRELLIPSE, *PEMRELLIPSE, > EMRRECTANGLE, *PEMRRECTANGLE; > >typedef struct { > EMR emr; > DWORD nPalEntries; > DWORD offPalEntries; > DWORD nSizeLast; >} EMREOF, *PEMREOF; > >typedef struct { > EMR emr; > RECTL rclClip; >} EMREXCLUDECLIPRECT, *PEMREXCLUDECLIPRECT, > EMRINTERSECTCLIPRECT, *PEMRINTERSECTCLIPRECT; > >typedef struct { > EMR emr; > DWORD ihFont; > EXTLOGFONTW elfw; >} EMREXTCREATEFONTINDIRECTW, *PEMREXTCREATEFONTINDIRECTW; > >typedef struct { > EMR emr; > DWORD ihPen; > DWORD offBmi; > DWORD cbBmi; > DWORD offBits; > DWORD cbBits; > EXTLOGPEN elp; >} EMREXTCREATEPEN, *PEMREXTCREATEPEN; > >typedef struct { > EMR emr; > POINTL ptlStart; > COLORREF crColor; > DWORD iMode; >} EMREXTFLOODFILL, *PEMREXTFLOODFILL; > >typedef struct { > EMR emr; > DWORD cbRgnData; > DWORD iMode; > BYTE RgnData[1]; >} EMREXTSELECTCLIPRGN, *PEMREXTSELECTCLIPRGN; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD iGraphicsMode; > FLOAT exScale; > FLOAT eyScale; > EMRTEXT emrtext; >} EMREXTTEXTOUTA, *PEMREXTTEXTOUTA, > EMREXTTEXTOUTW, *PEMREXTTEXTOUTW; > >typedef struct { > EMR emr; > RECTL rclBounds; >} EMRFILLPATH, *PEMRFILLPATH, > EMRSTROKEANDFILLPATH, *PEMRSTROKEANDFILLPATH, > EMRSTROKEPATH, *PEMRSTROKEPATH; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD cbRgnData; > DWORD ihBrush; > BYTE RgnData[1]; >} EMRFILLRGN, *PEMRFILLRGN; > >typedef struct { > DWORD dSignature; > DWORD nVersion; > DWORD cbData; > DWORD offData; >} EMRFORMAT, *PEMRFORMAT; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD cbRgnData; > DWORD ihBrush; > SIZEL szlStroke; > BYTE RgnData[1]; >} EMRFRAMERGN, *PEMRFRAMERGN; > >typedef struct { > EMR emr; > DWORD cbData; > BYTE Data[1]; >} EMRGDICOMMENT, *PEMRGDICOMMENT; ># 2323 "../../../include/wingdi.h" >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD cbRgnData; > BYTE RgnData[1]; >} EMRINVERTRGN, *PEMRINVERTRGN, > EMRPAINTRGN, *PEMRPAINTRGN; > >typedef struct { > EMR emr; > POINTL ptl; >} EMRLINETO, *PEMRLINETO, > EMRMOVETOEX, *PEMRMOVETOEX; > >typedef struct { > EMR emr; > RECTL rclBounds; > LONG xDest; > LONG yDest; > LONG cxDest; > LONG cyDest; > DWORD dwRop; > LONG xSrc; > LONG ySrc; > XFORM xformSrc; > COLORREF crBkColorSrc; > DWORD iUsageSrc; > DWORD offBmiSrc; > DWORD cbBmiSrc; > DWORD offBitsSrc; > DWORD cbBitsSrc; > LONG xMask; > LONG yMask; > DWORD iUsageMask; > DWORD offBmiMask; > DWORD cbBmiMask; > DWORD offBitsMask; > DWORD cbBitsMask; >} EMRMASKBLT, *PEMRMASKBLT; > >typedef struct { > EMR emr; > XFORM xform; > DWORD iMode; >} EMRMODIFYWORLDTRANSFORM, *PEMRMODIFYWORLDTRANSFORM; > >typedef struct { > EMR emr; > POINTL ptlOffset; >} EMROFFSETCLIPRGN, *PEMROFFSETCLIPRGN; > >typedef struct { > EMR emr; > RECTL rclBounds; > POINTL aptlDest[3]; > LONG xSrc; > LONG ySrc; > LONG cxSrc; > LONG cySrc; > XFORM xformSrc; > COLORREF crBkColorSrc; > DWORD iUsageSrc; > DWORD offBmiSrc; > DWORD cbBmiSrc; > DWORD offBitsSrc; > DWORD cbBitsSrc; > LONG xMask; > LONG yMask; > DWORD iUsageMask; > DWORD offBmiMask; > DWORD cbBmiMask; > DWORD offBitsMask; > DWORD cbBitsMask; >} EMRPLGBLT, *PEMRPLGBLT; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD cptl; > POINTL aptl[1]; >} EMRPOLYLINE, *PEMRPOLYLINE, > EMRPOLYBEZIER, *PEMRPOLYBEZIER, > EMRPOLYGON, *PEMRPOLYGON, > EMRPOLYBEZIERTO, *PEMRPOLYBEZIERTO, > EMRPOLYLINETO, *PEMRPOLYLINETO; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD cpts; > POINTS apts[1]; >} EMRPOLYLINE16, *PEMRPOLYLINE16, > EMRPOLYBEZIER16, *PEMRPOLYBEZIER16, > EMRPOLYGON16, *PEMRPOLYGON16, > EMRPOLYBEZIERTO16, *PEMRPOLYBEZIERTO16, > EMRPOLYLINETO16, *PEMRPOLYLINETO16; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD cpts; > POINTS apts[1]; > BYTE abTypes[1]; >} EMRPOLYDRAW16, *PEMRPOLYDRAW16; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD nPolys; > DWORD cpts; > DWORD aPolyCounts[1]; > POINTS apts[1]; >} EMRPOLYPOLYLINE16, *PEMRPOLYPOLYLINE16, > EMRPOLYPOLYGON16, *PEMRPOLYPOLYGON16; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD cptl; > POINTL aptl[1]; > BYTE abTypes[1]; >} EMRPOLYDRAW, *PEMRPOLYDRAW; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD nPolys; > DWORD cptl; > DWORD aPolyCounts[1]; > POINTL aptl[1]; >} EMRPOLYPOLYLINE, *PEMRPOLYPOLYLINE, > EMRPOLYPOLYGON, *PEMRPOLYPOLYGON; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD iGraphicsMode; > FLOAT exScale; > FLOAT eyScale; > LONG cStrings; > EMRTEXT aemrtext[1]; >} EMRPOLYTEXTOUTA, *PEMRPOLYTEXTOUTA, > EMRPOLYTEXTOUTW, *PEMRPOLYTEXTOUTW; > >typedef struct { > EMR emr; > DWORD ihPal; > DWORD cEntries; >} EMRRESIZEPALETTE, *PEMRRESIZEPALETTE; > >typedef struct { > EMR emr; > LONG iRelative; >} EMRRESTOREDC, *PEMRRESTOREDC; > >typedef struct { > EMR emr; > RECTL rclBox; > SIZEL szlCorner; >} EMRROUNDRECT, *PEMRROUNDRECT; > >typedef struct { > EMR emr; > LONG xNum; > LONG xDenom; > LONG yNum; > LONG yDenom; >} EMRSCALEVIEWPORTEXTEX, *PEMRSCALEVIEWPORTEXTEX, > EMRSCALEWINDOWEXTEX, *PEMRSCALEWINDOWEXTEX; > >typedef struct { > EMR emr; > DWORD iMode; >} EMRSELECTCLIPPATH, *PEMRSELECTCLIPPATH, > EMRSETBKMODE, *PEMRSETBKMODE, > EMRSETMAPMODE, *PEMRSETMAPMODE, > EMRSETPOLYFILLMODE, *PEMRSETPOLYFILLMODE, > EMRSETROP2, *PEMRSETROP2, > EMRSETSTRETCHBLTMODE, *PEMRSETSTRETCHBLTMODE, > EMRSETTEXTALIGN, *PEMRSETTEXTALIGN, > EMRSETICMMODE, *PEMRSETICMMODE, > EMRSETLAYOUT, *PEMRSETLAYOUT; > >typedef struct { > EMR emr; > DWORD ihPal; >} EMRSELECTPALETTE, *PEMRSELECTPALETTE; > >typedef struct { > EMR emr; > DWORD iArcDirection; >} EMRSETARCDIRECTION, *PEMRSETARCDIRECTION; > >typedef struct { > EMR emr; > COLORREF crColor; >} EMRSETBKCOLOR, *PEMRSETBKCOLOR, > EMRSETTEXTCOLOR, *PEMRSETTEXTCOLOR; > >typedef struct { > EMR emr; > POINTL ptlOrigin; >} EMRSETBRUSHORGEX, *PEMRSETBRUSHORGEX, > EMRSETVIEWPORTORGEX, *PEMRSETVIEWPORTORGEX, > EMRSETWINDOWORGEX, *PEMRSETWINDOWORGEX; > >typedef struct { > EMR emr; > COLORADJUSTMENT ColorAdjustment; >} EMRSETCOLORADJUSTMENT, *PEMRSETCOLORADJUSTMENT; > >typedef struct { > EMR emr; > RECTL rclBounds; > LONG xDest; > LONG yDest; > LONG xSrc; > LONG ySrc; > LONG cxSrc; > LONG cySrc; > DWORD offBmiSrc; > DWORD cbBmiSrc; > DWORD offBitsSrc; > DWORD cbBitsSrc; > DWORD iUsageSrc; > DWORD iStartScan; > DWORD cScans; >} EMRSETDIBITSTODEVICE, *PEMRSETDIBITSTODEVICE; > >typedef struct { > EMR emr; > DWORD dwFlags; >} EMRSETMAPPERFLAGS, *PEMRSETMAPPERFLAGS; > >typedef struct { > EMR emr; > FLOAT eMiterLimit; >} EMRSETMITERLIMIT, *PEMRSETMITERLIMIT; > >typedef struct { > EMR emr; > DWORD ihPal; > DWORD iStart; > DWORD cEntries; > PALETTEENTRY aPalEntries[1]; >} EMRSETPALETTEENTRIES, *PEMRSETPALETTEENTRIES; > >typedef struct { > EMR emr; > POINTL ptlPixel; > COLORREF crColor; >} EMRSETPIXELV, *PEMRSETPIXELV; > >typedef struct { > EMR emr; > SIZEL szlExtent; >} EMRSETVIEWPORTEXTEX, *PEMRSETVIEWPORTEXTEX, > EMRSETWINDOWEXTEX, *PEMRSETWINDOWEXTEX; > >typedef struct { > EMR emr; > XFORM xform; >} EMRSETWORLDTRANSFORM, *PEMRSETWORLDTRANSFORM; > >typedef struct { > EMR emr; > RECTL rclBounds; > LONG xDest; > LONG yDest; > LONG cxDest; > LONG cyDest; > DWORD dwRop; > LONG xSrc; > LONG ySrc; > XFORM xformSrc; > COLORREF crBkColorSrc; > DWORD iUsageSrc; > DWORD offBmiSrc; > DWORD cbBmiSrc; > DWORD offBitsSrc; > DWORD cbBitsSrc; > LONG cxSrc; > LONG cySrc; >} EMRSTRETCHBLT, *PEMRSTRETCHBLT; > >typedef struct { > EMR emr; > RECTL rclBounds; > LONG xDest; > LONG yDest; > LONG cxDest; > LONG cyDest; > DWORD dwRop; > LONG xSrc; > LONG ySrc; > XFORM xformSrc; > COLORREF crBkColorSrc; > DWORD iUsageSrc; > DWORD offBmiSrc; > DWORD cbBmiSrc; > DWORD offBitsSrc; > DWORD cbBitsSrc; > LONG cxSrc; > LONG cySrc; >} EMRALPHABLEND, *PEMRALPHABLEND; > >typedef struct { > EMR emr; > RECTL rclBounds; > LONG xDest; > LONG yDest; > LONG xSrc; > LONG ySrc; > LONG cxSrc; > LONG cySrc; > DWORD offBmiSrc; > DWORD cbBmiSrc; > DWORD offBitsSrc; > DWORD cbBitsSrc; > DWORD iUsageSrc; > DWORD dwRop; > LONG cxDest; > LONG cyDest; >} EMRSTRETCHDIBITS, *PEMRSTRETCHDIBITS; > >typedef struct { > EMR emr; > PIXELFORMATDESCRIPTOR pfd; >} EMRPIXELFORMAT, *PEMRPIXELFORMAT; > >typedef struct tagEMRGLSRECORD { > EMR emr; > DWORD cbData; > BYTE Data[1]; >} EMRGLSRECORD, *PEMRGLSRECORD; > >typedef struct { > EMR emr; > RECTL rclBounds; > DWORD cbData; > BYTE Data[1]; >} EMRGLSBOUNDEDRECORD, *PEMRGLSBOUNDEDRECORD; > >typedef INT (__attribute__((__stdcall__)) *ENHMFENUMPROC)(HDC, HANDLETABLE *, > const ENHMETARECORD *, INT, LPARAM); ># 2809 "../../../include/wingdi.h" >typedef struct >{ > BYTE dmDeviceName[32]; > WORD dmSpecVersion; > WORD dmDriverVersion; > WORD dmSize; > WORD dmDriverExtra; > DWORD dmFields; > union { > struct { > short dmOrientation; > short dmPaperSize; > short dmPaperLength; > short dmPaperWidth; > short dmScale; > short dmCopies; > short dmDefaultSource; > short dmPrintQuality; > } ; > struct { > POINTL dmPosition; > DWORD dmDisplayOrientation; > DWORD dmDisplayFixedOutput; > } ; > } ; > short dmColor; > short dmDuplex; > short dmYResolution; > short dmTTOption; > short dmCollate; > BYTE dmFormName[32]; > WORD dmLogPixels; > DWORD dmBitsPerPel; > DWORD dmPelsWidth; > DWORD dmPelsHeight; > union { > DWORD dmDisplayFlags; > DWORD dmNup; > } ; > DWORD dmDisplayFrequency; > DWORD dmICMMethod; > DWORD dmICMIntent; > DWORD dmMediaType; > DWORD dmDitherType; > DWORD dmReserved1; > DWORD dmReserved2; > DWORD dmPanningWidth; > DWORD dmPanningHeight; >} DEVMODEA, *PDEVMODEA, *LPDEVMODEA; > >typedef struct >{ > WCHAR dmDeviceName[32]; > WORD dmSpecVersion; > WORD dmDriverVersion; > WORD dmSize; > WORD dmDriverExtra; > DWORD dmFields; > union { > struct { > short dmOrientation; > short dmPaperSize; > short dmPaperLength; > short dmPaperWidth; > short dmScale; > short dmCopies; > short dmDefaultSource; > short dmPrintQuality; > } ; > struct { > POINTL dmPosition; > DWORD dmDisplayOrientation; > DWORD dmDisplayFixedOutput; > } ; > } ; > short dmColor; > short dmDuplex; > short dmYResolution; > short dmTTOption; > short dmCollate; > WCHAR dmFormName[32]; > WORD dmLogPixels; > DWORD dmBitsPerPel; > DWORD dmPelsWidth; > DWORD dmPelsHeight; > union { > DWORD dmDisplayFlags; > DWORD dmNup; > } ; > DWORD dmDisplayFrequency; > DWORD dmICMMethod; > DWORD dmICMIntent; > DWORD dmMediaType; > DWORD dmDitherType; > DWORD dmReserved1; > DWORD dmReserved2; > DWORD dmPanningWidth; > DWORD dmPanningHeight; >} DEVMODEW, *PDEVMODEW, *LPDEVMODEW; > >typedef DEVMODEA DEVMODE; >typedef PDEVMODEA PDEVMODE; >typedef LPDEVMODEA LPDEVMODE; ># 3139 "../../../include/wingdi.h" >typedef struct >{ > INT cbSize; > LPCSTR lpszDocName; > LPCSTR lpszOutput; > LPCSTR lpszDatatype; > DWORD fwType; >} DOCINFOA, *LPDOCINFOA; > >typedef struct >{ > INT cbSize; > LPCWSTR lpszDocName; > LPCWSTR lpszOutput; > LPCWSTR lpszDatatype; > DWORD fwType; >} DOCINFOW, *LPDOCINFOW; > >typedef DOCINFOA DOCINFO; >typedef LPDOCINFOA LPDOCINFO; ># 3170 "../../../include/wingdi.h" >typedef struct _RGNDATAHEADER { > DWORD dwSize; > DWORD iType; > DWORD nCount; > DWORD nRgnSize; > RECT rcBound; >} RGNDATAHEADER,*PRGNDATAHEADER; > >typedef struct _RGNDATA { > RGNDATAHEADER rdh; > char Buffer[1]; >} RGNDATA,*PRGNDATA,*LPRGNDATA; > >typedef BOOL (__attribute__((__stdcall__)) *ABORTPROC)(HDC, INT); > >typedef struct { > DWORD cb; > CHAR DeviceName[32]; > CHAR DeviceString[128]; > DWORD StateFlags; > CHAR DeviceID[128]; > CHAR DeviceKey[128]; >} DISPLAY_DEVICEA,*PDISPLAY_DEVICEA,*LPDISPLAY_DEVICEA; > >typedef struct { > DWORD cb; > WCHAR DeviceName[32]; > WCHAR DeviceString[128]; > DWORD StateFlags; > WCHAR DeviceID[128]; > WCHAR DeviceKey[128]; >} DISPLAY_DEVICEW,*PDISPLAY_DEVICEW,*LPDISPLAY_DEVICEW; >typedef DISPLAY_DEVICEA DISPLAY_DEVICE; >typedef PDISPLAY_DEVICEA PDISPLAY_DEVICE; >typedef LPDISPLAY_DEVICEA LPDISPLAY_DEVICE; ># 3213 "../../../include/wingdi.h" >typedef USHORT COLOR16; > >typedef struct _TRIVERTEX >{ > LONG x; > LONG y; > COLOR16 Red; > COLOR16 Green; > COLOR16 Blue; > COLOR16 Alpha; >} TRIVERTEX, *PTRIVERTEX, *LPTRIVERTEX; > >typedef struct _GRADIENT_TRIANGLE >{ > ULONG Vertex1; > ULONG Vertex2; > ULONG Vertex3; >} GRADIENT_TRIANGLE, *PGRADIENT_TRIANGLE, *LPGRADIENT_TRIANGLE; > >typedef struct _GRADIENT_RECT >{ > ULONG UpperLeft; > ULONG LowerRight; >} GRADIENT_RECT, *PGRADIENT_RECT, *LPGRADIENT_RECT; > > > > >typedef struct _BLENDFUNCTION >{ > BYTE BlendOp; > BYTE BlendFlags; > BYTE SourceConstantAlpha; > BYTE AlphaFormat; >} BLENDFUNCTION, *PBLENDFUNCTION; ># 3268 "../../../include/wingdi.h" >typedef struct _DRAWPATRECT >{ > POINT ptPosition; > POINT ptSize; > WORD wStyle; > WORD wPattern; >} DRAWPATRECT, *PDRAWPATRECT; > >typedef struct tagWCRANGE { > WCHAR wcLow; > USHORT cGlyphs; >} WCRANGE, *PWCRANGE, *LPWCRANGE; > >typedef struct tagGLYPHSET { > DWORD cbThis; > DWORD flAccel; > DWORD cGlyphsSupported; > DWORD cRanges; > WCRANGE ranges[1]; >} GLYPHSET, *PGLYPHSET, *LPGLYPHSET; > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) AbortDoc(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AbortPath(HDC); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) AddFontResourceA(LPCSTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) AddFontResourceW(LPCWSTR); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) AddFontResourceExA(LPCSTR, DWORD, PVOID); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) AddFontResourceExW(LPCWSTR, DWORD, PVOID); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) AddFontMemResourceEx(PVOID, DWORD, PVOID, DWORD *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AlphaBlend(HDC,int,int,int,int,HDC,int,int,int,int,BLENDFUNCTION); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AngleArc(HDC, INT, INT, DWORD, FLOAT, FLOAT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AnimatePalette(HPALETTE,UINT,UINT,const PALETTEENTRY*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) Arc(HDC,INT,INT,INT,INT,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ArcTo(HDC, INT, INT, INT, INT, INT, INT, INT, INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BeginPath(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BitBlt(HDC,INT,INT,INT,INT,HDC,INT,INT,DWORD); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ChoosePixelFormat(HDC,const PIXELFORMATDESCRIPTOR*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) Chord(HDC,INT,INT,INT,INT,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) HENHMETAFILE __attribute__((__stdcall__)) CloseEnhMetaFile(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CloseFigure(HDC); >__attribute__((visibility ("hidden"))) HMETAFILE __attribute__((__stdcall__)) CloseMetaFile(HDC); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) CombineRgn(HRGN,HRGN,HRGN,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CombineTransform(LPXFORM,const XFORM *,const XFORM *); >__attribute__((visibility ("hidden"))) HENHMETAFILE __attribute__((__stdcall__)) CopyEnhMetaFileA(HENHMETAFILE,LPCSTR); >__attribute__((visibility ("hidden"))) HENHMETAFILE __attribute__((__stdcall__)) CopyEnhMetaFileW(HENHMETAFILE,LPCWSTR); > >__attribute__((visibility ("hidden"))) HMETAFILE __attribute__((__stdcall__)) CopyMetaFileA(HMETAFILE,LPCSTR); >__attribute__((visibility ("hidden"))) HMETAFILE __attribute__((__stdcall__)) CopyMetaFileW(HMETAFILE,LPCWSTR); > >__attribute__((visibility ("hidden"))) HBITMAP __attribute__((__stdcall__)) CreateBitmap(INT,INT,UINT,UINT,LPCVOID); >__attribute__((visibility ("hidden"))) HBITMAP __attribute__((__stdcall__)) CreateBitmapIndirect(const BITMAP*); >__attribute__((visibility ("hidden"))) HBRUSH __attribute__((__stdcall__)) CreateBrushIndirect(const LOGBRUSH*); >__attribute__((visibility ("hidden"))) HCOLORSPACE __attribute__((__stdcall__)) CreateColorSpaceA(LPLOGCOLORSPACEA); >__attribute__((visibility ("hidden"))) HCOLORSPACE __attribute__((__stdcall__)) CreateColorSpaceW(LPLOGCOLORSPACEW); > >__attribute__((visibility ("hidden"))) HBITMAP __attribute__((__stdcall__)) CreateCompatibleBitmap(HDC,INT,INT); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) CreateCompatibleDC(HDC); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) CreateDCA(LPCSTR,LPCSTR,LPCSTR,const DEVMODEA*); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) CreateDCW(LPCWSTR,LPCWSTR,LPCWSTR,const DEVMODEW*); > >__attribute__((visibility ("hidden"))) HBITMAP __attribute__((__stdcall__)) CreateDIBitmap(HDC,const BITMAPINFOHEADER*,DWORD,LPCVOID,const BITMAPINFO*,UINT); >__attribute__((visibility ("hidden"))) HBRUSH __attribute__((__stdcall__)) CreateDIBPatternBrush(HGLOBAL,UINT); >__attribute__((visibility ("hidden"))) HBRUSH __attribute__((__stdcall__)) CreateDIBPatternBrushPt(const void*,UINT); >__attribute__((visibility ("hidden"))) HBITMAP __attribute__((__stdcall__)) CreateDIBSection(HDC, const BITMAPINFO *, UINT, void **, HANDLE, DWORD offset); >__attribute__((visibility ("hidden"))) HBITMAP __attribute__((__stdcall__)) CreateDiscardableBitmap(HDC,INT,INT); >__attribute__((visibility ("hidden"))) HRGN __attribute__((__stdcall__)) CreateEllipticRgn(INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) HRGN __attribute__((__stdcall__)) CreateEllipticRgnIndirect(const RECT *); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) CreateEnhMetaFileA(HDC,LPCSTR,const RECT*,LPCSTR); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) CreateEnhMetaFileW(HDC,LPCWSTR,const RECT*,LPCWSTR); > >__attribute__((visibility ("hidden"))) HFONT __attribute__((__stdcall__)) CreateFontA(INT,INT,INT,INT,INT,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPCSTR); >__attribute__((visibility ("hidden"))) HFONT __attribute__((__stdcall__)) CreateFontW(INT,INT,INT,INT,INT,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,DWORD,LPCWSTR); > >__attribute__((visibility ("hidden"))) HFONT __attribute__((__stdcall__)) CreateFontIndirectA(const LOGFONTA*); >__attribute__((visibility ("hidden"))) HFONT __attribute__((__stdcall__)) CreateFontIndirectW(const LOGFONTW*); > >__attribute__((visibility ("hidden"))) HPALETTE __attribute__((__stdcall__)) CreateHalftonePalette(HDC); >__attribute__((visibility ("hidden"))) HBRUSH __attribute__((__stdcall__)) CreateHatchBrush(INT,COLORREF); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) CreateICA(LPCSTR,LPCSTR,LPCSTR,const DEVMODEA*); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) CreateICW(LPCWSTR,LPCWSTR,LPCWSTR,const DEVMODEW*); > >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) CreateMetaFileA(LPCSTR); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) CreateMetaFileW(LPCWSTR); > >__attribute__((visibility ("hidden"))) HPALETTE __attribute__((__stdcall__)) CreatePalette(const LOGPALETTE*); >__attribute__((visibility ("hidden"))) HBRUSH __attribute__((__stdcall__)) CreatePatternBrush(HBITMAP); >__attribute__((visibility ("hidden"))) HPEN __attribute__((__stdcall__)) CreatePen(INT,INT,COLORREF); >__attribute__((visibility ("hidden"))) HPEN __attribute__((__stdcall__)) CreatePenIndirect(const LOGPEN*); >__attribute__((visibility ("hidden"))) HRGN __attribute__((__stdcall__)) CreatePolyPolygonRgn(const POINT*,const INT*,INT,INT); >__attribute__((visibility ("hidden"))) HRGN __attribute__((__stdcall__)) CreatePolygonRgn(const POINT*,INT,INT); >__attribute__((visibility ("hidden"))) HRGN __attribute__((__stdcall__)) CreateRectRgn(INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) HRGN __attribute__((__stdcall__)) CreateRectRgnIndirect(const RECT*); >__attribute__((visibility ("hidden"))) HRGN __attribute__((__stdcall__)) CreateRoundRectRgn(INT,INT,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateScalableFontResourceA(DWORD,LPCSTR,LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateScalableFontResourceW(DWORD,LPCWSTR,LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) HBRUSH __attribute__((__stdcall__)) CreateSolidBrush(COLORREF); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DPtoLP(HDC,LPPOINT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteColorSpace(HCOLORSPACE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteDC(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteEnhMetaFile(HENHMETAFILE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteMetaFile(HMETAFILE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteObject(HGDIOBJ); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DescribePixelFormat(HDC,int,UINT,LPPIXELFORMATDESCRIPTOR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DrawEscape(HDC,INT,INT,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) Ellipse(HDC,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EndDoc(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EndPath(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumEnhMetaFile(HDC,HENHMETAFILE,ENHMFENUMPROC,LPVOID,const RECT*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumFontFamiliesA(HDC,LPCSTR,FONTENUMPROCA,LPARAM); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumFontFamiliesW(HDC,LPCWSTR,FONTENUMPROCW,LPARAM); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumFontFamiliesExA(HDC,LPLOGFONTA,FONTENUMPROCA,LPARAM,DWORD); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumFontFamiliesExW(HDC,LPLOGFONTW,FONTENUMPROCW,LPARAM,DWORD); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumFontsA(HDC,LPCSTR,FONTENUMPROCA,LPARAM); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumFontsW(HDC,LPCWSTR,FONTENUMPROCW,LPARAM); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumICMProfilesA(HDC,ICMENUMPROCA,LPARAM); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumICMProfilesW(HDC,ICMENUMPROCW,LPARAM); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumMetaFile(HDC,HMETAFILE,MFENUMPROC,LPARAM); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumObjects(HDC,INT,GOBJENUMPROC,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EqualRgn(HRGN,HRGN); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) Escape(HDC,INT,INT,LPCSTR,LPVOID); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ExcludeClipRect(HDC,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) HPEN __attribute__((__stdcall__)) ExtCreatePen(DWORD,DWORD,const LOGBRUSH*,DWORD,const DWORD*); >__attribute__((visibility ("hidden"))) HRGN __attribute__((__stdcall__)) ExtCreateRegion(const XFORM*,DWORD,const RGNDATA*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ExtEscape(HDC,INT,INT,LPCSTR,INT,LPSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ExtFloodFill(HDC,INT,INT,COLORREF,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ExtSelectClipRgn(HDC,HRGN,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ExtTextOutA(HDC,INT,INT,UINT,const RECT*,LPCSTR,UINT,const INT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ExtTextOutW(HDC,INT,INT,UINT,const RECT*,LPCWSTR,UINT,const INT*); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FillPath(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FillRgn(HDC,HRGN,HBRUSH); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FixBrushOrgEx(HDC,INT,INT,LPPOINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FlattenPath(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FloodFill(HDC,INT,INT,COLORREF); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FrameRgn(HDC,HRGN,HBRUSH,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GdiAlphaBlend(HDC,int,int,int,int,HDC,int,int,int,int,BLENDFUNCTION); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GdiComment(HDC,UINT,const BYTE *); >__attribute__((visibility ("hidden"))) DEVMODEW * __attribute__((__stdcall__)) GdiConvertToDevmodeW(const DEVMODEA *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GdiFlush(void); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GdiGetCodePage(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GdiGradientFill(HDC,PTRIVERTEX,ULONG,PVOID,ULONG,ULONG); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GdiIsMetaFileDC(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GdiIsMetaPrintDC(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GdiIsPlayMetafileDC(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GdiTransparentBlt(HDC,int,int,int,int,HDC,int,int,int,int,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetArcDirection(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetAspectRatioFilterEx(HDC,LPSIZE); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) GetBitmapBits(HBITMAP,LONG,LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetBitmapDimensionEx(HBITMAP,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetBrushOrgEx(HDC,LPPOINT); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) GetBkColor(HDC); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetBkMode(HDC); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetBoundsRect(HDC,LPRECT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharABCWidthsA(HDC,UINT,UINT,LPABC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharABCWidthsW(HDC,UINT,UINT,LPABC); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharABCWidthsFloatA(HDC,UINT,UINT,LPABCFLOAT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharABCWidthsFloatW(HDC,UINT,UINT,LPABCFLOAT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharABCWidthsI(HDC,UINT,UINT,LPWORD,LPABC); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetCharacterPlacementA(HDC,LPCSTR,INT,INT,GCP_RESULTSA*,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetCharacterPlacementW(HDC,LPCWSTR,INT,INT,GCP_RESULTSW*,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharWidth32A(HDC,UINT,UINT,LPINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharWidth32W(HDC,UINT,UINT,LPINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharWidthA(HDC,UINT,UINT,LPINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharWidthI(HDC,UINT,UINT,LPWORD,LPINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharWidthW(HDC,UINT,UINT,LPINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharWidthFloatA(HDC,UINT,UINT,PFLOAT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCharWidthFloatW(HDC,UINT,UINT,PFLOAT); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetClipBox(HDC,LPRECT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetClipRgn(HDC,HRGN); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetColorAdjustment(HDC, LPCOLORADJUSTMENT); >__attribute__((visibility ("hidden"))) HCOLORSPACE __attribute__((__stdcall__)) GetColorSpace(HDC); >__attribute__((visibility ("hidden"))) HGDIOBJ __attribute__((__stdcall__)) GetCurrentObject(HDC,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCurrentPositionEx(HDC,LPPOINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetDeviceCaps(HDC,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetDeviceGammaRamp(HDC,LPVOID); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) GetDCBrushColor(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetDCOrgEx(HDC,LPPOINT); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) GetDCPenColor(HDC); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetDIBColorTable(HDC,UINT,UINT,RGBQUAD*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetDIBits(HDC,HBITMAP,UINT,UINT,LPVOID,LPBITMAPINFO,UINT); >__attribute__((visibility ("hidden"))) HENHMETAFILE __attribute__((__stdcall__)) GetEnhMetaFileA(LPCSTR); >__attribute__((visibility ("hidden"))) HENHMETAFILE __attribute__((__stdcall__)) GetEnhMetaFileW(LPCWSTR); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetEnhMetaFileBits(HENHMETAFILE,UINT,LPBYTE); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetEnhMetaFileDescriptionA(HENHMETAFILE,UINT,LPSTR); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetEnhMetaFileDescriptionW(HENHMETAFILE,UINT,LPWSTR); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetEnhMetaFileHeader(HENHMETAFILE,UINT,LPENHMETAHEADER); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetEnhMetaFilePaletteEntries(HENHMETAFILE,UINT,LPPALETTEENTRY); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetFontData(HDC,DWORD,DWORD,LPVOID,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetFontLanguageInfo(HDC); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetFontUnicodeRanges(HDC,LPGLYPHSET); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetGlyphIndicesA(HDC,LPCSTR,INT,LPWORD,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetGlyphIndicesW(HDC,LPCWSTR,INT,LPWORD,DWORD); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetGlyphOutlineA(HDC,UINT,UINT,LPGLYPHMETRICS,DWORD,LPVOID,const MAT2*); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetGlyphOutlineW(HDC,UINT,UINT,LPGLYPHMETRICS,DWORD,LPVOID,const MAT2*); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetGraphicsMode(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetICMProfileA(HDC,LPDWORD,LPSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetICMProfileW(HDC,LPDWORD,LPWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetKerningPairsA(HDC,DWORD,LPKERNINGPAIR); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetKerningPairsW(HDC,DWORD,LPKERNINGPAIR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetLayout(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetLogColorSpaceA(HCOLORSPACE,LPLOGCOLORSPACEA,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetLogColorSpaceW(HCOLORSPACE,LPLOGCOLORSPACEW,DWORD); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetMapMode(HDC); >__attribute__((visibility ("hidden"))) HMETAFILE __attribute__((__stdcall__)) GetMetaFileA(LPCSTR); >__attribute__((visibility ("hidden"))) HMETAFILE __attribute__((__stdcall__)) GetMetaFileW(LPCWSTR); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetMetaFileBitsEx(HMETAFILE,UINT,LPVOID); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetMetaRgn(HDC,HRGN); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMiterLimit(HDC, PFLOAT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetNearestColor(HDC,DWORD); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetNearestPaletteIndex(HPALETTE,COLORREF); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetObjectA(HGDIOBJ,INT,LPVOID); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetObjectW(HGDIOBJ,INT,LPVOID); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetObjectType(HGDIOBJ); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetOutlineTextMetricsA(HDC,UINT,LPOUTLINETEXTMETRICA); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetOutlineTextMetricsW(HDC,UINT,LPOUTLINETEXTMETRICW); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetPaletteEntries(HPALETTE,UINT,UINT,LPPALETTEENTRY); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetPath(HDC,LPPOINT,LPBYTE,INT); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) GetPixel(HDC,INT,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetPixelFormat(HDC); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetPolyFillMode(HDC); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetRandomRgn(HDC,HRGN,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetRasterizerCaps(LPRASTERIZER_STATUS,UINT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetRegionData(HRGN,DWORD,LPRGNDATA); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetRelAbs(HDC,DWORD); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetRgnBox(HRGN,LPRECT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetROP2(HDC); >__attribute__((visibility ("hidden"))) HGDIOBJ __attribute__((__stdcall__)) GetStockObject(INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetStretchBltMode(HDC); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetSystemPaletteEntries(HDC,UINT,UINT,LPPALETTEENTRY); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetSystemPaletteUse(HDC); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetTextAlign(HDC); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetTextCharacterExtra(HDC); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetTextCharset(HDC); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetTextCharsetInfo(HDC,LPFONTSIGNATURE,DWORD); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) GetTextColor(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextExtentExPointA(HDC,LPCSTR,INT,INT,LPINT,LPINT,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextExtentExPointW(HDC,LPCWSTR,INT,INT,LPINT,LPINT,LPSIZE); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextExtentPointA(HDC,LPCSTR,INT,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextExtentPointW(HDC,LPCWSTR,INT,LPSIZE); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextExtentPoint32A(HDC,LPCSTR,INT,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextExtentPoint32W(HDC,LPCWSTR,INT,LPSIZE); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextExtentExPointI(HDC,const WORD*,INT,INT,LPINT,LPINT,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextExtentPointI(HDC,const WORD*,INT,LPSIZE); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetTextFaceA(HDC,INT,LPSTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetTextFaceW(HDC,INT,LPWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextMetricsA(HDC,LPTEXTMETRICA); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTextMetricsW(HDC,LPTEXTMETRICW); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetViewportExtEx(HDC,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetViewportOrgEx(HDC,LPPOINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetWindowExtEx(HDC,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetWindowOrgEx(HDC,LPPOINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetWinMetaFileBits(HENHMETAFILE,UINT,LPBYTE,INT,HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetWorldTransform(HDC,LPXFORM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GradientFill(HDC,PTRIVERTEX,ULONG,PVOID,ULONG,ULONG); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) IntersectClipRect(HDC,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InvertRgn(HDC,HRGN); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LineDDA(INT,INT,INT,INT,LINEDDAPROC,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LineTo(HDC,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LPtoDP(HDC,LPPOINT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MaskBlt(HDC,INT,INT,INT,INT,HDC,INT,INT,HBITMAP,INT,INT,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ModifyWorldTransform(HDC,const XFORM *, DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MoveToEx(HDC,INT,INT,LPPOINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) OffsetClipRgn(HDC,INT,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) OffsetRgn(HRGN,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OffsetViewportOrgEx(HDC,INT,INT,LPPOINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OffsetWindowOrgEx(HDC,INT,INT,LPPOINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PaintRgn(HDC,HRGN); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PatBlt(HDC,INT,INT,INT,INT,DWORD); >__attribute__((visibility ("hidden"))) HRGN __attribute__((__stdcall__)) PathToRegion(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) Pie(HDC,INT,INT,INT,INT,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PlayEnhMetaFile(HDC,HENHMETAFILE,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PlayEnhMetaFileRecord(HDC,LPHANDLETABLE,const ENHMETARECORD*,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PlayMetaFile(HDC,HMETAFILE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PlayMetaFileRecord(HDC,LPHANDLETABLE,LPMETARECORD,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PlgBlt(HDC,const POINT*,HDC,INT,INT,INT,INT,HBITMAP,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PolyBezier(HDC,const POINT*,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PolyBezierTo(HDC,const POINT*,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PolyDraw(HDC,const POINT*,const BYTE*,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PolyPolygon(HDC,const POINT*,const INT*,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PolyPolyline(HDC,const POINT*,const DWORD*,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) Polygon(HDC,const POINT*,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) Polyline(HDC,const POINT*,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PolylineTo(HDC,const POINT*,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PtInRegion(HRGN,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PtVisible(HDC,INT,INT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) RealizePalette(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) Rectangle(HDC,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RectInRegion(HRGN,const RECT *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RectVisible(HDC,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RemoveFontResourceA(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RemoveFontResourceW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RemoveFontResourceExA(LPCSTR, DWORD, PVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RemoveFontResourceExW(LPCWSTR, DWORD, PVOID); > >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) ResetDCA(HDC,const DEVMODEA *); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) ResetDCW(HDC,const DEVMODEW *); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ResizePalette(HPALETTE,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RestoreDC(HDC,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RoundRect(HDC,INT,INT,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SaveDC(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ScaleViewportExtEx(HDC,INT,INT,INT,INT,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ScaleWindowExtEx(HDC,INT,INT,INT,INT,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SelectClipPath(HDC,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SelectClipRgn(HDC,HRGN); >__attribute__((visibility ("hidden"))) HGDIOBJ __attribute__((__stdcall__)) SelectObject(HDC,HGDIOBJ); >__attribute__((visibility ("hidden"))) HPALETTE __attribute__((__stdcall__)) SelectPalette(HDC,HPALETTE,BOOL); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetAbortProc(HDC,ABORTPROC); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetArcDirection(HDC,INT); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) SetBitmapBits(HBITMAP,LONG,LPCVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetBitmapDimensionEx(HBITMAP,INT,INT,LPSIZE); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) SetBkColor(HDC,COLORREF); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetBkMode(HDC,INT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) SetBoundsRect(HDC,const RECT*,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetBrushOrgEx(HDC,INT,INT,LPPOINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetColorAdjustment(HDC,const COLORADJUSTMENT*); >__attribute__((visibility ("hidden"))) HCOLORSPACE __attribute__((__stdcall__)) SetColorSpace(HDC,HCOLORSPACE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDeviceGammaRamp(HDC,LPVOID); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) SetDCBrushColor(HDC,COLORREF); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) SetDCPenColor(HDC, COLORREF); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) SetDIBColorTable(HDC,UINT,UINT,const RGBQUAD*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetDIBits(HDC,HBITMAP,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetDIBitsToDevice(HDC,INT,INT,DWORD,DWORD,INT,INT,UINT,UINT,LPCVOID,const BITMAPINFO*,UINT); >__attribute__((visibility ("hidden"))) HENHMETAFILE __attribute__((__stdcall__)) SetEnhMetaFileBits(UINT,const BYTE *); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetGraphicsMode(HDC,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetICMMode(HDC,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetICMProfileA(HDC,LPSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetICMProfileW(HDC,LPWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetLayout(HDC,DWORD); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetMapMode(HDC,INT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetMapperFlags(HDC,DWORD); >__attribute__((visibility ("hidden"))) HMETAFILE __attribute__((__stdcall__)) SetMetaFileBitsEx(UINT,const BYTE*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetMetaRgn(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMiterLimit(HDC, FLOAT, PFLOAT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) SetPaletteEntries(HPALETTE,UINT,UINT,const PALETTEENTRY*); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) SetPixel(HDC,INT,INT,COLORREF); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetPixelV(HDC,INT,INT,COLORREF); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetPixelFormat(HDC,int,const PIXELFORMATDESCRIPTOR*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetPolyFillMode(HDC,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetRectRgn(HRGN,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetRelAbs(HDC,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetROP2(HDC,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetStretchBltMode(HDC,INT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) SetSystemPaletteUse(HDC,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) SetTextAlign(HDC,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetTextCharacterExtra(HDC,INT); >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) SetTextColor(HDC,COLORREF); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetTextJustification(HDC,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetViewportExtEx(HDC,INT,INT,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetViewportOrgEx(HDC,INT,INT,LPPOINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetWindowExtEx(HDC,INT,INT,LPSIZE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetWindowOrgEx(HDC,INT,INT,LPPOINT); >__attribute__((visibility ("hidden"))) HENHMETAFILE __attribute__((__stdcall__)) SetWinMetaFileBits(UINT,const BYTE*,HDC,const METAFILEPICT *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetWorldTransform(HDC,const XFORM*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) StartDocA(HDC,const DOCINFOA*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) StartDocW(HDC,const DOCINFOW*); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) StartPage(HDC); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EndPage(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) StretchBlt(HDC,INT,INT,INT,INT,HDC,INT,INT,INT,INT,DWORD); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) StretchDIBits(HDC,INT,INT,INT,INT,INT,INT,INT,INT,const void*,const BITMAPINFO*,UINT,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) StrokeAndFillPath(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) StrokePath(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SwapBuffers(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TextOutA(HDC,INT,INT,LPCSTR,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TextOutW(HDC,INT,INT,LPCWSTR,INT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TranslateCharsetInfo(LPDWORD,LPCHARSETINFO,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TransparentBlt(HDC,int,int,int,int,HDC,int,int,int,int,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnrealizeObject(HGDIOBJ); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UpdateColors(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UpdateICMRegKeyA(DWORD,LPSTR,LPSTR,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UpdateICMRegKeyW(DWORD,LPWSTR,LPWSTR,UINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WidenPath(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PolyTextOutA(HDC,const POLYTEXTA*,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PolyTextOutW(HDC,const POLYTEXTW*,INT); ># 3711 "../../../include/wingdi.h" >__attribute__((visibility ("hidden"))) HGLRC __attribute__((__stdcall__)) wglCreateContext(HDC); >__attribute__((visibility ("hidden"))) HGLRC __attribute__((__stdcall__)) wglCreateLayerContext(HDC,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) wglCopyContext(HGLRC,HGLRC,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) wglDeleteContext(HGLRC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) wglDescribeLayerPlane(HDC,INT,INT,UINT,LPLAYERPLANEDESCRIPTOR); >__attribute__((visibility ("hidden"))) HGLRC __attribute__((__stdcall__)) wglGetCurrentContext(void); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) wglGetCurrentDC(void); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) wglGetLayerPaletteEntries(HDC,INT,INT,INT,const COLORREF *); >__attribute__((visibility ("hidden"))) PROC __attribute__((__stdcall__)) wglGetProcAddress(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) wglMakeCurrent(HDC,HGLRC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) wglRealizeLayerPalette(HDC,INT,BOOL); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) wglSetLayerPaletteEntries(HDC,INT,INT,INT,const COLORREF *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) wglShareLists(HGLRC,HGLRC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) wglSwapLayerBuffers(HDC,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) wglUseFontBitmaps(HDC,DWORD,DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) wglUseFontOutlines(HDC,DWORD,DWORD,DWORD,FLOAT,FLOAT,INT,LPGLYPHMETRICSFLOAT); ># 34 "menu.c" 2 ># 1 "../../../include/winuser.h" 1 ># 39 "../../../include/winuser.h" >typedef INT_PTR (__attribute__((__stdcall__)) *DLGPROC)(HWND,UINT,WPARAM,LPARAM); >typedef BOOL (__attribute__((__stdcall__)) *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int); >typedef INT (__attribute__((__stdcall__)) *EDITWORDBREAKPROCA)(LPSTR,INT,INT,INT); >typedef INT (__attribute__((__stdcall__)) *EDITWORDBREAKPROCW)(LPWSTR,INT,INT,INT); >typedef BOOL (__attribute__((__stdcall__)) *GRAYSTRINGPROC)(HDC,LPARAM,INT); >typedef LRESULT (__attribute__((__stdcall__)) *HOOKPROC)(INT,WPARAM,LPARAM); >typedef BOOL (__attribute__((__stdcall__)) *NAMEENUMPROCA)(LPSTR,LPARAM); >typedef BOOL (__attribute__((__stdcall__)) *NAMEENUMPROCW)(LPWSTR,LPARAM); >typedef BOOL (__attribute__((__stdcall__)) *PROPENUMPROCA)(HWND,LPCSTR,HANDLE); >typedef BOOL (__attribute__((__stdcall__)) *PROPENUMPROCW)(HWND,LPCWSTR,HANDLE); >typedef BOOL (__attribute__((__stdcall__)) *PROPENUMPROCEXA)(HWND,LPSTR,HANDLE,ULONG_PTR); >typedef BOOL (__attribute__((__stdcall__)) *PROPENUMPROCEXW)(HWND,LPWSTR,HANDLE,ULONG_PTR); >typedef void (__attribute__((__stdcall__)) *SENDASYNCPROC)(HWND,UINT,ULONG_PTR,LRESULT); >typedef void (__attribute__((__stdcall__)) *TIMERPROC)(HWND,UINT,UINT_PTR,DWORD); >typedef void (__attribute__((__stdcall__)) *WINEVENTPROC)(HWINEVENTHOOK,DWORD,HWND,LONG,LONG, > DWORD,DWORD); >typedef BOOL (__attribute__((__stdcall__)) *WNDENUMPROC)(HWND,LPARAM); ># 76 "../../../include/winuser.h" >typedef NAMEENUMPROCA WINSTAENUMPROCA; >typedef NAMEENUMPROCA DESKTOPENUMPROCA; >typedef NAMEENUMPROCW WINSTAENUMPROCW; >typedef NAMEENUMPROCW DESKTOPENUMPROCW; > >typedef LRESULT (__attribute__((__stdcall__)) *WNDPROC)(HWND,UINT,WPARAM,LPARAM); > >typedef DESKTOPENUMPROCA DESKTOPENUMPROC; >typedef EDITWORDBREAKPROCA EDITWORDBREAKPROC; >typedef NAMEENUMPROCA NAMEENUMPROC; >typedef PROPENUMPROCA PROPENUMPROC; >typedef PROPENUMPROCEXA PROPENUMPROCEX; >typedef WINSTAENUMPROCA WINSTAENUMPROC; > > >typedef HANDLE HDWP; ># 101 "../../../include/winuser.h" >typedef struct tagUSEROBJECTFLAGS { > BOOL fInherit; > BOOL fReserved; > DWORD dwFlags; >} USEROBJECTFLAGS, *PUSEROBJECTFLAGS; > >typedef struct tagBSMINFO { > UINT cbSize; > HDESK hdesk; > HWND hwnd; > LUID luid; >} BSMINFO, *PBSMINFO; ># 147 "../../../include/winuser.h" >typedef struct tagFILTERKEYS >{ > UINT cbSize; > DWORD dwFlags; > DWORD iWaitMSec; > DWORD iDelayMSec; > DWORD iRepeatMSec; > DWORD iBounceMSec; >} FILTERKEYS, *LPFILTERKEYS; ># 164 "../../../include/winuser.h" >typedef struct tagTOGGLEKEYS >{ > DWORD cbSize; > DWORD dwFlags; >} TOGGLEKEYS, *LPTOGGLEKEYS; ># 180 "../../../include/winuser.h" >typedef struct tagMOUSEKEYS >{ > UINT cbSize; > DWORD dwFlags; > DWORD iMaxSpeed; > DWORD iTimeToMaxSpeed; > DWORD iCtrlSpeed; > DWORD dwReserved1; > DWORD dwReserved2; >} MOUSEKEYS, *LPMOUSEKEYS; > > > > > >typedef struct tagMOUSEMOVEPOINT { > int x; > int y; > DWORD time; > ULONG_PTR dwExtraInfo; >} MOUSEMOVEPOINT,*PMOUSEMOVEPOINT,*LPMOUSEMOVEPOINT; ># 213 "../../../include/winuser.h" >typedef struct tagSTICKYKEYS >{ > DWORD cbSize; > DWORD dwFlags; >} STICKYKEYS, *LPSTICKYKEYS; > > > > > > >typedef struct tagACCESSTIMEOUT >{ > UINT cbSize; > DWORD dwFlags; > DWORD iTimeOutMSec; >} ACCESSTIMEOUT, *LPACCESSTIMEOUT; > > > > > > > >typedef struct tagSERIALKEYSA >{ > UINT cbSize; > DWORD dwFlags; > LPSTR lpszActivePort; > LPSTR lpszPort; > UINT iBaudRate; > UINT iPortState; > UINT iActive; >} SERIALKEYSA, *LPSERIALKEYSA; > >typedef struct tagSERIALKEYSW { > UINT cbSize; > DWORD dwFlags; > LPWSTR lpszActivePort; > LPWSTR lpszPort; > UINT iBaudRate; > UINT iPortState; > UINT iActive; >} SERIALKEYSW,*LPSERIALKEYSW; > >typedef SERIALKEYSA SERIALKEYS; >typedef LPSERIALKEYSA LPSERIALKEYS; ># 278 "../../../include/winuser.h" >typedef struct tagSOUNDSENTRYA >{ > UINT cbSize; > DWORD dwFlags; > DWORD iFSTextEffect; > DWORD iFSTextEffectMSec; > DWORD iFSTextEffectColorBits; > DWORD iFSGrafEffect; > DWORD iFSGrafEffectMSec; > DWORD iFSGrafEffectColor; > DWORD iWindowsEffect; > DWORD iWindowsEffectMSec; > LPSTR lpszWindowsEffectDLL; > DWORD iWindowsEffectOrdinal; >} SOUNDSENTRYA, *LPSOUNDSENTRYA; > >typedef struct tagSOUNDSENTRYW >{ > UINT cbSize; > DWORD dwFlags; > DWORD iFSTextEffect; > DWORD iFSTextEffectMSec; > DWORD iFSTextEffectColorBits; > DWORD iFSGrafEffect; > DWORD iFSGrafEffectMSec; > DWORD iFSGrafEffectColor; > DWORD iWindowsEffect; > DWORD iWindowsEffectMSec; > LPWSTR lpszWindowsEffectDLL; > DWORD iWindowsEffectOrdinal; >} SOUNDSENTRYW, *LPSOUNDSENTRYW; > >typedef SOUNDSENTRYA SOUNDSENTRY; >typedef LPSOUNDSENTRYA LPSOUNDSENTRY; ># 322 "../../../include/winuser.h" >typedef struct tagHIGHCONTRASTA >{ > UINT cbSize; > DWORD dwFlags; > LPSTR lpszDefaultScheme; >} HIGHCONTRASTA, *LPHIGHCONTRASTA; > >typedef struct tagHIGHCONTRASTW >{ > UINT cbSize; > DWORD dwFlags; > LPWSTR lpszDefaultScheme; >} HIGHCONTRASTW, *LPHIGHCONTRASTW; > >typedef HIGHCONTRASTA HIGHCONTRAST; >typedef LPHIGHCONTRASTA LPHIGHCONTRAST; > >typedef struct tagEVENTMSG >{ > UINT message; > UINT paramL; > UINT paramH; > DWORD time; > HWND hwnd; >} EVENTMSG, *PEVENTMSG, *LPEVENTMSG; > > >typedef struct tagKBDLLHOOKSTRUCT >{ > DWORD vkCode; > DWORD scanCode; > DWORD flags; > DWORD time; > ULONG_PTR dwExtraInfo; >} KBDLLHOOKSTRUCT, *LPKBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT; > > > > > > > >typedef struct tagMSLLHOOKSTRUCT >{ > POINT pt; > DWORD mouseData; > DWORD flags; > DWORD time; > ULONG_PTR dwExtraInfo; >} MSLLHOOKSTRUCT, *LPMSLLHOOKSTRUCT, *PMSLLHOOKSTRUCT; > > > > > >typedef struct >{ > POINT pt; > HWND hwnd; > UINT wHitTestCode; > ULONG_PTR dwExtraInfo; >} MOUSEHOOKSTRUCT, *PMOUSEHOOKSTRUCT, *LPMOUSEHOOKSTRUCT; > > > > >typedef struct >{ > HWND hwnd; > UINT message; > WPARAM wParam; > LPARAM lParam; >} HARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT; > > > > >typedef struct tagDEBUGHOOKINFO >{ > DWORD idThread; > DWORD idThreadInstaller; > LPARAM lParam; > WPARAM wParam; > INT code; >} DEBUGHOOKINFO, *PDEBUGHOOKINFO, *LPDEBUGHOOKINFO; ># 423 "../../../include/winuser.h" >typedef struct tagMOUSEINPUT >{ > LONG dx; > LONG dy; > DWORD mouseData; > DWORD dwFlags; > DWORD time; > ULONG_PTR dwExtraInfo; >} MOUSEINPUT, *PMOUSEINPUT, *LPMOUSEINPUT; > >typedef struct tagKEYBDINPUT >{ > WORD wVk; > WORD wScan; > DWORD dwFlags; > DWORD time; > ULONG_PTR dwExtraInfo; >} KEYBDINPUT, *PKEYBDINPUT, *LPKEYBDINPUT; > >typedef struct tagHARDWAREINPUT >{ > DWORD uMsg; > WORD wParamL; > WORD wParamH; >} HARDWAREINPUT, *PHARDWAREINPUT, *LPHARDWAREINPUT; > > > > > >typedef struct tagINPUT >{ > DWORD type; > union > { > MOUSEINPUT mi; > KEYBDINPUT ki; > HARDWAREINPUT hi; > } ; >} INPUT, *PINPUT, *LPINPUT; > >typedef struct HRAWINPUT__ { int unused; } *HRAWINPUT; > >typedef struct tagRAWINPUTDEVICELIST >{ > HANDLE hDevice; > DWORD dwType; >} RAWINPUTDEVICELIST, *PRAWINPUTDEVICELIST; > >typedef struct tagRAWHID { > DWORD dwSizeHid; > DWORD dwCount; > BYTE bRawData; >} RAWHID, *LPRAWHID; > >typedef struct tagRAWKEYBOARD { > USHORT MakeCode; > USHORT Flags; > USHORT Reserved; > USHORT VKey; > UINT Message; > ULONG ExtraInformation; >} RAWKEYBOARD, *PRAWKEYBOARD, *LPRAWKEYBOARD; > >typedef struct tagRAWMOUSE { > USHORT usFlags; > union { > ULONG ulButtons; > struct { > USHORT usButtonFlags; > USHORT usButtonData; > } ; > } ; > ULONG ulRawButtons; > LONG lLastX; > LONG lLastY; > ULONG ulExtraInformation; >} RAWMOUSE, *PRAWMOUSE, *LPRAWMOUSE; > >typedef struct tagRAWINPUTHEADER { > DWORD dwType; > DWORD dwSize; > HANDLE hDevice; > WPARAM wParam; >} RAWINPUTHEADER, *PRAWINPUTHEADER; > >typedef struct tagRAWINPUT { > RAWINPUTHEADER header; > union { > RAWMOUSE mouse; > RAWKEYBOARD keyboard; > RAWHID hid; > } data; >} RAWINPUT, *PRAWINPUT, *LPRAWINPUT; > >typedef struct tagRAWINPUTDEVICE { > USHORT usUsagePage; > USHORT usUsage; > DWORD dwFlags; > HWND hwndTarget; >} RAWINPUTDEVICE, *PRAWINPUTDEVICE, *LPRAWINPUTDEVICE; > >typedef struct tagRID_DEVICE_INFO_MOUSE { > DWORD dwId; > DWORD dwNumberOfButtons; > DWORD dwSampleRate; > BOOL fHasHorizontalWheel; >} RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE; > >typedef struct tagRID_DEVICE_INFO_KEYBOARD { > DWORD dwType; > DWORD dwSubType; > DWORD dwKeyboardMode; > DWORD dwNumberOfFunctionKeys; > DWORD dwNumberOfIndicators; > DWORD dwNumberOfKeysTotal; >} RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD; > >typedef struct tagRID_DEVICE_INFO_HID { > DWORD dwVendorId; > DWORD dwProductId; > DWORD dwVersionNumber; > USHORT usUsagePage; > USHORT usUsage; >} RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID; > >typedef struct tagRID_DEVICE_INFO { > DWORD cbSize; > DWORD dwType; > union { > RID_DEVICE_INFO_MOUSE mouse; > RID_DEVICE_INFO_KEYBOARD keyboard; > RID_DEVICE_INFO_HID hid; > } ; >} RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO; > > >typedef struct tagGUITHREADINFO >{ > DWORD cbSize; > DWORD flags; > HWND hwndActive; > HWND hwndFocus; > HWND hwndCapture; > HWND hwndMenuOwner; > HWND hwndMoveSize; > HWND hwndCaret; > RECT rcCaret; >} GUITHREADINFO, *PGUITHREADINFO, *LPGUITHREADINFO; ># 593 "../../../include/winuser.h" >typedef struct tagANIMATIONINFO >{ > UINT cbSize; > INT iMinAnimate; >} ANIMATIONINFO, *LPANIMATIONINFO; > >typedef struct tagNMHDR >{ > HWND hwndFrom; > UINT_PTR idFrom; > UINT code; >} NMHDR, *LPNMHDR; > >typedef struct tagDRAWTEXTPARAMS >{ > UINT cbSize; > INT iTabLength; > INT iLeftMargin; > INT iRightMargin; > UINT uiLengthDrawn; >} DRAWTEXTPARAMS,*LPDRAWTEXTPARAMS; > > > >typedef struct >{ > LPARAM lParam; > WPARAM wParam; > UINT message; > HWND hwnd; >} CWPSTRUCT, *PCWPSTRUCT, *LPCWPSTRUCT; > >typedef struct >{ > LRESULT lResult; > LPARAM lParam; > WPARAM wParam; > DWORD message; > HWND hwnd; >} CWPRETSTRUCT, *PCWPRETSTRUCT, *LPCWPRETSTRUCT; > >typedef struct tagWINDOWPLACEMENT >{ > UINT length; > UINT flags; > UINT showCmd; > POINT ptMinPosition; > POINT ptMaxPosition; > RECT rcNormalPosition; >} WINDOWPLACEMENT, *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT; ># 924 "../../../include/winuser.h" >__attribute__((visibility ("hidden"))) COLORREF __attribute__((__stdcall__)) GetSysColor(INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSysColors(INT,const INT*,const COLORREF*); ># 1497 "../../../include/winuser.h" >typedef struct tagCREATESTRUCTA >{ > LPVOID lpCreateParams; > HINSTANCE hInstance; > HMENU hMenu; > HWND hwndParent; > INT cy; > INT cx; > INT y; > INT x; > LONG style; > LPCSTR lpszName; > LPCSTR lpszClass; > DWORD dwExStyle; >} CREATESTRUCTA, *LPCREATESTRUCTA; > >typedef struct tagCREATESTRUCTW >{ > LPVOID lpCreateParams; > HINSTANCE hInstance; > HMENU hMenu; > HWND hwndParent; > INT cy; > INT cx; > INT y; > INT x; > LONG style; > LPCWSTR lpszName; > LPCWSTR lpszClass; > DWORD dwExStyle; >} CREATESTRUCTW, *LPCREATESTRUCTW; > >typedef CREATESTRUCTA CREATESTRUCT; >typedef LPCREATESTRUCTA LPCREATESTRUCT; > >typedef struct tagPAINTSTRUCT >{ > HDC hdc; > BOOL fErase; > RECT rcPaint; > BOOL fRestore; > BOOL fIncUpdate; > BYTE rgbReserved[32]; >} PAINTSTRUCT, *PPAINTSTRUCT, *LPPAINTSTRUCT; > >typedef struct tagCLIENTCREATESTRUCT >{ > HMENU hWindowMenu; > UINT idFirstChild; >} CLIENTCREATESTRUCT, *LPCLIENTCREATESTRUCT; > > >typedef struct tagMDICREATESTRUCTA >{ > LPCSTR szClass; > LPCSTR szTitle; > HINSTANCE hOwner; > INT x; > INT y; > INT cx; > INT cy; > DWORD style; > LPARAM lParam; >} MDICREATESTRUCTA, *LPMDICREATESTRUCTA; > >typedef struct tagMDICREATESTRUCTW >{ > LPCWSTR szClass; > LPCWSTR szTitle; > HINSTANCE hOwner; > INT x; > INT y; > INT cx; > INT cy; > DWORD style; > LPARAM lParam; >} MDICREATESTRUCTW, *LPMDICREATESTRUCTW; > >typedef MDICREATESTRUCTA MDICREATESTRUCT; >typedef LPMDICREATESTRUCTA LPMDICREATESTRUCT; ># 1585 "../../../include/winuser.h" >typedef struct tagSTYLESTRUCT { > DWORD styleOld; > DWORD styleNew; >} STYLESTRUCT, *LPSTYLESTRUCT; ># 1630 "../../../include/winuser.h" >typedef struct tagMINMAXINFO >{ > POINT ptReserved; > POINT ptMaxSize; > POINT ptMaxPosition; > POINT ptMinTrackSize; > POINT ptMaxTrackSize; >} MINMAXINFO, *PMINMAXINFO, *LPMINMAXINFO; ># 1661 "../../../include/winuser.h" >typedef struct tagWINDOWPOS >{ > HWND hwnd; > HWND hwndInsertAfter; > INT x; > INT y; > INT cx; > INT cy; > UINT flags; >} WINDOWPOS, *PWINDOWPOS, *LPWINDOWPOS; ># 1690 "../../../include/winuser.h" >typedef struct >{ > RECT rgrc[3]; > WINDOWPOS *lppos; >} NCCALCSIZE_PARAMS, *LPNCCALCSIZE_PARAMS; ># 1891 "../../../include/winuser.h" >typedef struct tagWNDCLASSA >{ > UINT style; > WNDPROC lpfnWndProc; > INT cbClsExtra; > INT cbWndExtra; > HINSTANCE hInstance; > HICON hIcon; > HCURSOR hCursor; > HBRUSH hbrBackground; > LPCSTR lpszMenuName; > LPCSTR lpszClassName; >} WNDCLASSA, *PWNDCLASSA, *LPWNDCLASSA; > >typedef struct tagWNDCLASSW >{ > UINT style; > WNDPROC lpfnWndProc; > INT cbClsExtra; > INT cbWndExtra; > HINSTANCE hInstance; > HICON hIcon; > HCURSOR hCursor; > HBRUSH hbrBackground; > LPCWSTR lpszMenuName; > LPCWSTR lpszClassName; >} WNDCLASSW, *PWNDCLASSW, *LPWNDCLASSW; > >typedef WNDCLASSA WNDCLASS; >typedef PWNDCLASSA PWNDCLASS; >typedef LPWNDCLASSA LPWNDCLASS; > >typedef struct tagCOPYDATASTRUCT { > ULONG_PTR dwData; > DWORD cbData; > PVOID lpData; >} COPYDATASTRUCT, *PCOPYDATASTRUCT; > >typedef struct tagMDINEXTMENU { > HMENU hmenuIn; > HMENU hmenuNext; > HWND hwndNext; >} MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU; > >typedef struct tagMULTIKEYHELPA >{ > DWORD mkSize; > CHAR mkKeylist; > CHAR szKeyphrase[1]; >} MULTIKEYHELPA, *PMULTIKEYHELPA, *LPMULTIKEYHELPA; > >typedef struct tagMULTIKEYHELPW >{ > DWORD mkSize; > WCHAR mkKeylist; > WCHAR szKeyphrase[1]; >} MULTIKEYHELPW, *PMULTIKEYHELPW, *LPMULTIKEYHELPW; > >typedef MULTIKEYHELPA MULTIKEYHELP; >typedef PMULTIKEYHELPA PMULTIKEYHELP; >typedef LPMULTIKEYHELPA LPMULTIKEYHELP; > >typedef struct tagHELPWININFOA { > int wStructSize; > int x; > int y; > int dx; > int dy; > int wMax; > CHAR rgchMember[2]; >} HELPWININFOA, *PHELPWININFOA, *LPHELPWININFOA; > >typedef struct tagHELPWININFOW { > int wStructSize; > int x; > int y; > int dx; > int dy; > int wMax; > WCHAR rgchMember[2]; >} HELPWININFOW, *PHELPWININFOW, *LPHELPWININFOW; > >typedef HELPWININFOA HELPWININFO; >typedef PHELPWININFOA PHELPWININFO; >typedef LPHELPWININFOA LPHELPWININFO; ># 2031 "../../../include/winuser.h" >typedef struct tagWNDCLASSEXA >{ > UINT cbSize; > UINT style; > WNDPROC lpfnWndProc; > INT cbClsExtra; > INT cbWndExtra; > HINSTANCE hInstance; > HICON hIcon; > HCURSOR hCursor; > HBRUSH hbrBackground; > LPCSTR lpszMenuName; > LPCSTR lpszClassName; > HICON hIconSm; >} WNDCLASSEXA, *PWNDCLASSEXA, *LPWNDCLASSEXA; > >typedef struct tagWNDCLASSEXW >{ > UINT cbSize; > UINT style; > WNDPROC lpfnWndProc; > INT cbClsExtra; > INT cbWndExtra; > HINSTANCE hInstance; > HICON hIcon; > HCURSOR hCursor; > HBRUSH hbrBackground; > LPCWSTR lpszMenuName; > LPCWSTR lpszClassName; > HICON hIconSm; >} WNDCLASSEXW, *PWNDCLASSEXW, *LPWNDCLASSEXW; > >typedef WNDCLASSEXA WNDCLASSEX; >typedef PWNDCLASSEXA PWNDCLASSEX; >typedef LPWNDCLASSEXA LPWNDCLASSEX; > >typedef struct tagMSG >{ > HWND hwnd; > UINT message; > WPARAM wParam; > LPARAM lParam; > DWORD time; > POINT pt; >} MSG, *PMSG, *LPMSG; ># 2086 "../../../include/winuser.h" >typedef struct _ICONINFO { > BOOL fIcon; > DWORD xHotspot; > DWORD yHotspot; > HBITMAP hbmMask; > HBITMAP hbmColor; >} ICONINFO, *PICONINFO; > > >typedef struct tagCURSORINFO >{ > DWORD cbSize; > DWORD flags; > HCURSOR hCursor; > POINT ptScreenPos; >} CURSORINFO, *PCURSORINFO, *LPCURSORINFO; > > > > >typedef struct tagACCEL >{ > > > > > > BYTE fVirt; > WORD key; > WORD cmd; > >} ACCEL, *LPACCEL; ># 2141 "../../../include/winuser.h" >typedef struct tagTPMPARAMS >{ > UINT cbSize; > RECT rcExclude; >} TPMPARAMS, *LPTPMPARAMS; > > > > > >typedef struct tagCOMBOBOXINFO >{ > DWORD cbSize; > RECT rcItem; > RECT rcButton; > DWORD stateButton; > HWND hwndCombo; > HWND hwndItem; > HWND hwndList; >} COMBOBOXINFO, *PCOMBOBOXINFO, *LPCOMBOBOXINFO; > >typedef struct tagMENUITEMINFOA { > UINT cbSize; > UINT fMask; > UINT fType; > UINT fState; > UINT wID; > HMENU hSubMenu; > HBITMAP hbmpChecked; > HBITMAP hbmpUnchecked; > ULONG_PTR dwItemData; > LPSTR dwTypeData; > UINT cch; > HBITMAP hbmpItem; >} MENUITEMINFOA, *LPMENUITEMINFOA; > >typedef struct tagMENUITEMINFOW { > UINT cbSize; > UINT fMask; > UINT fType; > UINT fState; > UINT wID; > HMENU hSubMenu; > HBITMAP hbmpChecked; > HBITMAP hbmpUnchecked; > ULONG_PTR dwItemData; > LPWSTR dwTypeData; > UINT cch; > HBITMAP hbmpItem; >} MENUITEMINFOW, *LPMENUITEMINFOW; > >typedef MENUITEMINFOA MENUITEMINFO; >typedef LPMENUITEMINFOA LPMENUITEMINFO; >typedef const MENUITEMINFOA *LPCMENUITEMINFOA; >typedef const MENUITEMINFOW *LPCMENUITEMINFOW; >typedef LPCMENUITEMINFOA LPCMENUITEMINFO; > >typedef struct tagMENUBARINFO { > DWORD cbSize; > RECT rcBar; > HMENU hMenu; > HWND hwndMenu; > BOOL fBarFocused:1; > BOOL fFocused:1; >} MENUBARINFO, *PMENUBARINFO, *LPMENUBARINFO; > >typedef struct tagMENUINFO { > DWORD cbSize; > DWORD fMask; > DWORD dwStyle; > UINT cyMax; > HBRUSH hbrBack; > DWORD dwContextHelpID; > ULONG_PTR dwMenuData; >} MENUINFO, *LPMENUINFO; > >typedef const MENUINFO *LPCMENUINFO; ># 2233 "../../../include/winuser.h" >typedef struct { > WORD versionNumber; > WORD offset; >} MENUITEMTEMPLATEHEADER, *PMENUITEMTEMPLATEHEADER; > > >typedef struct { > WORD mtOption; > WORD mtID; > WCHAR mtString[1]; >} MENUITEMTEMPLATE, *PMENUITEMTEMPLATE; > > >typedef void MENUTEMPLATE; >typedef PVOID *LPMENUTEMPLATE; ># 2412 "../../../include/winuser.h" >typedef struct tagSCROLLINFO >{ > UINT cbSize; > UINT fMask; > INT nMin; > INT nMax; > UINT nPage; > INT nPos; > INT nTrackPos; >} SCROLLINFO, *LPSCROLLINFO; > >typedef const SCROLLINFO *LPCSCROLLINFO; > > > >typedef struct tagSCROLLBARINFO >{ > DWORD cbSize; > RECT rcScrollBar; > INT dxyLineButton; > INT xyThumbTop; > INT xyThumbBottom; > INT reserved; > DWORD rgstate[5 +1]; >} SCROLLBARINFO, *PSCROLLBARINFO, *LPSCROLLBARINFO; ># 2650 "../../../include/winuser.h" >typedef struct tagHELPINFO >{ > UINT cbSize; > INT iContextType; > INT iCtrlId; > HANDLE hItemHandle; > DWORD_PTR dwContextId; > POINT MousePos; >} HELPINFO,*LPHELPINFO; > >typedef void (__attribute__((__stdcall__)) *MSGBOXCALLBACK)(LPHELPINFO lpHelpInfo); > >typedef struct tagMSGBOXPARAMSA >{ > UINT cbSize; > HWND hwndOwner; > HINSTANCE hInstance; > LPCSTR lpszText; > LPCSTR lpszCaption; > DWORD dwStyle; > LPCSTR lpszIcon; > DWORD_PTR dwContextHelpId; > MSGBOXCALLBACK lpfnMsgBoxCallback; > DWORD dwLanguageId; >} MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA; > >typedef struct tagMSGBOXPARAMSW >{ > UINT cbSize; > HWND hwndOwner; > HINSTANCE hInstance; > LPCWSTR lpszText; > LPCWSTR lpszCaption; > DWORD dwStyle; > LPCWSTR lpszIcon; > DWORD_PTR dwContextHelpId; > MSGBOXCALLBACK lpfnMsgBoxCallback; > DWORD dwLanguageId; >} MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW; > >typedef MSGBOXPARAMSA MSGBOXPARAMS; >typedef PMSGBOXPARAMSA PMSGBOXPARAMS; >typedef LPMSGBOXPARAMSA LPMSGBOXPARAMS; ># 2704 "../../../include/winuser.h" >typedef struct tagMONITORINFO >{ > DWORD cbSize; > RECT rcMonitor; > RECT rcWork; > DWORD dwFlags; >} MONITORINFO, *LPMONITORINFO; > >typedef struct tagMONITORINFOEXA >{ > DWORD cbSize; > RECT rcMonitor; > RECT rcWork; > DWORD dwFlags; > CHAR szDevice[32]; >} MONITORINFOEXA, *LPMONITORINFOEXA; > >typedef struct tagMONITORINFOEXW >{ > DWORD cbSize; > RECT rcMonitor; > RECT rcWork; > DWORD dwFlags; > WCHAR szDevice[32]; >} MONITORINFOEXW, *LPMONITORINFOEXW; > >typedef MONITORINFOEXA MONITORINFOEX; >typedef LPMONITORINFOEXA LPMONITORINFOEX; > >typedef BOOL (__attribute__((__stdcall__)) *MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM); > ># 1 "../../../include/pshpack2.h" 1 ># 105 "../../../include/pshpack2.h" >#pragma pack(2) ># 2736 "../../../include/winuser.h" 2 > >typedef struct tagDLGTEMPLATE >{ > DWORD style; > DWORD dwExtendedStyle; > WORD cdit; > short x; > short y; > short cx; > short cy; >} DLGTEMPLATE; > >typedef DLGTEMPLATE *LPDLGTEMPLATEA; >typedef DLGTEMPLATE *LPDLGTEMPLATEW; >typedef LPDLGTEMPLATEA LPDLGTEMPLATE; >typedef const DLGTEMPLATE *LPCDLGTEMPLATEA; >typedef const DLGTEMPLATE *LPCDLGTEMPLATEW; >typedef LPCDLGTEMPLATEA LPCDLGTEMPLATE; > >typedef struct tagDLGITEMTEMPLATE >{ > DWORD style; > DWORD dwExtendedStyle; > short x; > short y; > short cx; > short cy; > WORD id; >} DLGITEMTEMPLATE; > >typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA; >typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW; >typedef PDLGITEMTEMPLATEA PDLGITEMTEMPLATE; >typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA; >typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW; >typedef LPDLGITEMTEMPLATEA LPDLGITEMTEMPLATE; > ># 1 "../../../include/poppack.h" 1 ># 253 "../../../include/poppack.h" >#pragma pack() ># 2774 "../../../include/winuser.h" 2 ># 2789 "../../../include/winuser.h" >typedef struct tagCBT_CREATEWNDA >{ > CREATESTRUCTA *lpcs; > HWND hwndInsertAfter; >} CBT_CREATEWNDA, *LPCBT_CREATEWNDA; > >typedef struct tagCBT_CREATEWNDW >{ > CREATESTRUCTW *lpcs; > HWND hwndInsertAfter; >} CBT_CREATEWNDW, *LPCBT_CREATEWNDW; > >typedef CBT_CREATEWNDA CBT_CREATEWND; >typedef LPCBT_CREATEWNDA LPCBT_CREATEWND; > >typedef struct tagCBTACTIVATESTRUCT >{ > BOOL fMouse; > HWND hWndActive; >} CBTACTIVATESTRUCT, *LPCBTACTIVATESTRUCT; ># 3083 "../../../include/winuser.h" >typedef struct tagNONCLIENTMETRICSA { > UINT cbSize; > INT iBorderWidth; > INT iScrollWidth; > INT iScrollHeight; > INT iCaptionWidth; > INT iCaptionHeight; > LOGFONTA lfCaptionFont; > INT iSmCaptionWidth; > INT iSmCaptionHeight; > LOGFONTA lfSmCaptionFont; > INT iMenuWidth; > INT iMenuHeight; > LOGFONTA lfMenuFont; > LOGFONTA lfStatusFont; > LOGFONTA lfMessageFont; >} NONCLIENTMETRICSA, *PNONCLIENTMETRICSA, *LPNONCLIENTMETRICSA; > >typedef struct tagNONCLIENTMETRICSW { > UINT cbSize; > INT iBorderWidth; > INT iScrollWidth; > INT iScrollHeight; > INT iCaptionWidth; > INT iCaptionHeight; > LOGFONTW lfCaptionFont; > INT iSmCaptionWidth; > INT iSmCaptionHeight; > LOGFONTW lfSmCaptionFont; > INT iMenuWidth; > INT iMenuHeight; > LOGFONTW lfMenuFont; > LOGFONTW lfStatusFont; > LOGFONTW lfMessageFont; >} NONCLIENTMETRICSW, *PNONCLIENTMETRICSW, *LPNONCLIENTMETRICSW; > >typedef NONCLIENTMETRICSA NONCLIENTMETRICS; >typedef PNONCLIENTMETRICSA PNONCLIENTMETRICS; >typedef LPNONCLIENTMETRICSA LPNONCLIENTMETRICS; > >typedef struct tagICONMETRICSA { > UINT cbSize; > int iHorzSpacing; > int iVertSpacing; > int iTitleWrap; > LOGFONTA lfFont; >} ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA; > >typedef struct tagICONMETRICSW { > UINT cbSize; > int iHorzSpacing; > int iVertSpacing; > int iTitleWrap; > LOGFONTW lfFont; >} ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW; > >typedef ICONMETRICSA ICONMETRICS; >typedef PICONMETRICSA PICONMETRICS; >typedef LPICONMETRICSA LPICONMETRICS; > >typedef struct tagUPDATELAYEREDWINDOWINFO >{ > DWORD cbSize; > HDC hdcDst; > POINT const* pptDst; > SIZE const* psize; > HDC hdcSrc; > POINT const* pptSrc; > COLORREF crKey; > BLENDFUNCTION const* pblend; > DWORD dwFlags; > RECT const* prcDirty; >} UPDATELAYEREDWINDOWINFO, *PUPDATELAYEREDWINDOWINFO; ># 3173 "../../../include/winuser.h" >typedef struct tagMINIMIZEDMETRICS { > UINT cbSize; > int iWidth; > int iHorzGap; > int iVertGap; > int iArrange; >} MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS; ># 3286 "../../../include/winuser.h" >typedef struct { > UINT cbSize; > HWND hwnd; > DWORD dwFlags; > UINT uCount; > DWORD dwTimeout; >} FLASHWINFO, *PFLASHWINFO; ># 3591 "../../../include/winuser.h" >typedef struct tagDRAWITEMSTRUCT >{ > UINT CtlType; > UINT CtlID; > UINT itemID; > UINT itemAction; > UINT itemState; > HWND hwndItem; > HDC hDC; > RECT rcItem; > ULONG_PTR itemData; >} DRAWITEMSTRUCT, *PDRAWITEMSTRUCT, *LPDRAWITEMSTRUCT; > > >typedef struct tagMEASUREITEMSTRUCT >{ > UINT CtlType; > UINT CtlID; > UINT itemID; > UINT itemWidth; > UINT itemHeight; > ULONG_PTR itemData; >} MEASUREITEMSTRUCT, *PMEASUREITEMSTRUCT, *LPMEASUREITEMSTRUCT; > > >typedef struct tagDELETEITEMSTRUCT >{ > UINT CtlType; > UINT CtlID; > UINT itemID; > HWND hwndItem; > ULONG_PTR itemData; >} DELETEITEMSTRUCT, *PDELETEITEMSTRUCT, *LPDELETEITEMSTRUCT; > > >typedef struct tagCOMPAREITEMSTRUCT >{ > UINT CtlType; > UINT CtlID; > HWND hwndItem; > UINT itemID1; > ULONG_PTR itemData1; > UINT itemID2; > ULONG_PTR itemData2; > DWORD dwLocaleId; >} COMPAREITEMSTRUCT, *PCOMPAREITEMSTRUCT, *LPCOMPAREITEMSTRUCT; ># 3847 "../../../include/winuser.h" >typedef struct tagTRACKMOUSEEVENT { > DWORD cbSize; > DWORD dwFlags; > HWND hwndTrack; > DWORD dwHoverTime; >} TRACKMOUSEEVENT, *LPTRACKMOUSEEVENT; ># 4049 "../../../include/winuser.h" >typedef PVOID HDEVNOTIFY; >typedef HDEVNOTIFY *PHDEVNOTIFY; > > > > > > > >typedef struct tagWINDOWINFO { > DWORD cbSize; > RECT rcWindow; > RECT rcClient; > DWORD dwStyle; > DWORD dwExStyle; > DWORD dwWindowStatus; > UINT cxWindowBorders; > UINT cyWindowBorders; > ATOM atomWindowType; > WORD wCreatorVersion; >} WINDOWINFO, *PWINDOWINFO, *LPWINDOWINFO; > > > > > >typedef struct tagTITLEBARINFO { > DWORD cbSize; > RECT rcTitleBar; > DWORD rgstate[5 +1]; >} TITLEBARINFO, *PTITLEBARINFO, *LPTITLEBARINFO; > > >typedef struct tagLASTINPUTINFO { > UINT cbSize; > DWORD dwTime; >} LASTINPUTINFO, *PLASTINPUTINFO; > > >typedef struct >{ > DWORD cbSize; > INT cItems; > INT cColumns; > INT cRows; > INT iColFocus; > INT iRowFocus; > INT cxItem; > INT cyItem; > POINT ptStart; >} ALTTABINFO, *PALTTABINFO, *LPALTTABINFO; ># 4277 "../../../include/winuser.h" >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) ChangeDisplaySettingsA(LPDEVMODEA,DWORD); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) ChangeDisplaySettingsW(LPDEVMODEW,DWORD); > >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) ChangeDisplaySettingsExA(LPCSTR,LPDEVMODEA,HWND,DWORD,LPVOID); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) ChangeDisplaySettingsExW(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID); > >__attribute__((visibility ("hidden"))) HDESK __attribute__((__stdcall__)) CreateDesktopA(LPCSTR,LPCSTR,LPDEVMODEA,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES); >__attribute__((visibility ("hidden"))) HDESK __attribute__((__stdcall__)) CreateDesktopW(LPCWSTR,LPCWSTR,LPDEVMODEW,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDisplayDevicesA(LPCSTR,DWORD,LPDISPLAY_DEVICEA,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDisplayDevicesW(LPCWSTR,DWORD,LPDISPLAY_DEVICEW,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDisplaySettingsA(LPCSTR,DWORD,LPDEVMODEA); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDisplaySettingsW(LPCWSTR,DWORD,LPDEVMODEW); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDisplaySettingsExA(LPCSTR,DWORD,LPDEVMODEA,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDisplaySettingsExW(LPCWSTR,DWORD,LPDEVMODEW,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UpdateLayeredWindow(HWND,HDC,POINT*,SIZE*,HDC,POINT*,COLORREF,BLENDFUNCTION*,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UpdateLayeredWindowIndirect(HWND,UPDATELAYEREDWINDOWINFO const*); > > >__attribute__((visibility ("hidden"))) HKL __attribute__((__stdcall__)) ActivateKeyboardLayout(HKL,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AdjustWindowRect(LPRECT,DWORD,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AdjustWindowRectEx(LPRECT,DWORD,BOOL,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AllowSetForegroundWindow(DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AnimateWindow(HWND,DWORD,DWORD); ># 4322 "../../../include/winuser.h" >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AnyPopup(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AppendMenuA(HMENU,UINT,UINT_PTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AppendMenuW(HMENU,UINT,UINT_PTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) ArrangeIconicWindows(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) AttachThreadInput(DWORD,DWORD,BOOL); >__attribute__((visibility ("hidden"))) HDWP __attribute__((__stdcall__)) BeginDeferWindowPos(INT); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) BeginPaint(HWND,LPPAINTSTRUCT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) BringWindowToTop(HWND); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) BroadcastSystemMessageA(DWORD,LPDWORD,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) BroadcastSystemMessageW(DWORD,LPDWORD,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) BroadcastSystemMessageExA(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) BroadcastSystemMessageExW(DWORD,LPDWORD,UINT,WPARAM,LPARAM,PBSMINFO); > >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) CalcChildScroll(HWND, INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CallMsgFilterA(LPMSG,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CallMsgFilterW(LPMSG,INT); > >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) CallNextHookEx(HHOOK,INT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) CallWindowProcA(WNDPROC,HWND,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) CallWindowProcW(WNDPROC,HWND,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) CascadeWindows(HWND, UINT, const RECT *, UINT, const HWND *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ChangeClipboardChain(HWND,HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ChangeMenuA(HMENU,UINT,LPCSTR,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ChangeMenuW(HMENU,UINT,LPCWSTR,UINT,UINT); > >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) CharLowerA(LPSTR); >__attribute__((visibility ("hidden"))) LPWSTR __attribute__((__stdcall__)) CharLowerW(LPWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) CharLowerBuffA(LPSTR,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) CharLowerBuffW(LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) CharNextA(LPCSTR); >__attribute__((visibility ("hidden"))) LPWSTR __attribute__((__stdcall__)) CharNextW(LPCWSTR); > >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) CharNextExA(WORD,LPCSTR,DWORD); > >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) CharPrevA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) LPWSTR __attribute__((__stdcall__)) CharPrevW(LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) CharPrevExA(WORD,LPCSTR,LPCSTR,DWORD); > >__attribute__((visibility ("hidden"))) LPSTR __attribute__((__stdcall__)) CharUpperA(LPSTR); >__attribute__((visibility ("hidden"))) LPWSTR __attribute__((__stdcall__)) CharUpperW(LPWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) CharUpperBuffA(LPSTR,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) CharUpperBuffW(LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CharToOemA(LPCSTR,LPSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CharToOemW(LPCWSTR,LPSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CharToOemBuffA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CharToOemBuffW(LPCWSTR,LPSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CheckDlgButton(HWND,INT,UINT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) CheckMenuItem(HMENU,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CheckMenuRadioItem(HMENU,UINT,UINT,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CheckRadioButton(HWND,int,int,int); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) ChildWindowFromPoint(HWND,POINT); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) ChildWindowFromPointEx(HWND,POINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ClientToScreen(HWND,LPPOINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ClipCursor(const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CloseClipboard(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CloseDesktop(HDESK); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CloseWindow(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CloseWindowStation(HWINSTA); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) CopyAcceleratorTableA(HACCEL,LPACCEL,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) CopyAcceleratorTableW(HACCEL,LPACCEL,INT); > > >__attribute__((visibility ("hidden"))) HICON __attribute__((__stdcall__)) CopyIcon(HICON); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) CopyImage(HANDLE,UINT,INT,INT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CopyRect(RECT*,const RECT*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) CountClipboardFormats(void); >__attribute__((visibility ("hidden"))) HACCEL __attribute__((__stdcall__)) CreateAcceleratorTableA(LPACCEL,INT); >__attribute__((visibility ("hidden"))) HACCEL __attribute__((__stdcall__)) CreateAcceleratorTableW(LPACCEL,INT); > >__attribute__((visibility ("hidden"))) HICON __attribute__((__stdcall__)) CreateIconIndirect(PICONINFO); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) CreateCaret(HWND,HBITMAP,INT,INT); >__attribute__((visibility ("hidden"))) HCURSOR __attribute__((__stdcall__)) CreateCursor(HINSTANCE,INT,INT,INT,INT,LPCVOID,LPCVOID); > > > > > > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) CreateDialogIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) CreateDialogIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM); > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) CreateDialogParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) CreateDialogParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM); > >__attribute__((visibility ("hidden"))) HICON __attribute__((__stdcall__)) CreateIcon(HINSTANCE,INT,INT,BYTE,BYTE,LPCVOID,LPCVOID); >__attribute__((visibility ("hidden"))) HICON __attribute__((__stdcall__)) CreateIconFromResource(LPBYTE,UINT,BOOL,DWORD); >__attribute__((visibility ("hidden"))) HICON __attribute__((__stdcall__)) CreateIconFromResourceEx(LPBYTE,UINT,BOOL,DWORD,INT,INT,UINT); >__attribute__((visibility ("hidden"))) HMENU __attribute__((__stdcall__)) CreateMenu(void); >__attribute__((visibility ("hidden"))) HMENU __attribute__((__stdcall__)) CreatePopupMenu(void); > > > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) CreateWindowExA(DWORD,LPCSTR,LPCSTR,DWORD,INT,INT,INT,INT,HWND,HMENU,HINSTANCE,LPVOID); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) CreateWindowExW(DWORD,LPCWSTR,LPCWSTR,DWORD,INT,INT,INT,INT,HWND,HMENU,HINSTANCE,LPVOID); > >__attribute__((visibility ("hidden"))) HWINSTA __attribute__((__stdcall__)) CreateWindowStationA(LPCSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES); >__attribute__((visibility ("hidden"))) HWINSTA __attribute__((__stdcall__)) CreateWindowStationW(LPCWSTR,DWORD,ACCESS_MASK,LPSECURITY_ATTRIBUTES); > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) CreateMDIWindowA(LPCSTR,LPCSTR,DWORD,INT,INT,INT,INT,HWND,HINSTANCE,LPARAM); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) CreateMDIWindowW(LPCWSTR,LPCWSTR,DWORD,INT,INT,INT,INT,HWND,HINSTANCE,LPARAM); > >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DefDlgProcA(HWND,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DefDlgProcW(HWND,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) HDWP __attribute__((__stdcall__)) DeferWindowPos(HDWP,HWND,HWND,INT,INT,INT,INT,UINT); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DefFrameProcA(HWND,HWND,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DefFrameProcW(HWND,HWND,UINT,WPARAM,LPARAM); > > >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DefMDIChildProcA(HWND,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DefMDIChildProcW(HWND,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DefRawInputProc(PRAWINPUT*,INT,UINT); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DefWindowProcA(HWND,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DefWindowProcW(HWND,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DeleteMenu(HMENU,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DestroyAcceleratorTable(HACCEL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DestroyCaret(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DestroyCursor(HCURSOR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DestroyIcon(HICON); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DestroyMenu(HMENU); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DestroyWindow(HWND); > > > > > > >__attribute__((visibility ("hidden"))) INT_PTR __attribute__((__stdcall__)) DialogBoxIndirectParamA(HINSTANCE,LPCDLGTEMPLATEA,HWND,DLGPROC,LPARAM); >__attribute__((visibility ("hidden"))) INT_PTR __attribute__((__stdcall__)) DialogBoxIndirectParamW(HINSTANCE,LPCDLGTEMPLATEW,HWND,DLGPROC,LPARAM); > >__attribute__((visibility ("hidden"))) INT_PTR __attribute__((__stdcall__)) DialogBoxParamA(HINSTANCE,LPCSTR,HWND,DLGPROC,LPARAM); >__attribute__((visibility ("hidden"))) INT_PTR __attribute__((__stdcall__)) DialogBoxParamW(HINSTANCE,LPCWSTR,HWND,DLGPROC,LPARAM); > >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DispatchMessageA(const MSG*); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) DispatchMessageW(const MSG*); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DlgDirListA(HWND,LPSTR,INT,INT,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DlgDirListW(HWND,LPWSTR,INT,INT,UINT); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DlgDirListComboBoxA(HWND,LPSTR,INT,INT,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DlgDirListComboBoxW(HWND,LPWSTR,INT,INT,UINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DlgDirSelectComboBoxExA(HWND,LPSTR,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DlgDirSelectComboBoxExW(HWND,LPWSTR,INT,INT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DlgDirSelectExA(HWND,LPSTR,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DlgDirSelectExW(HWND,LPWSTR,INT,INT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DragDetect(HWND,POINT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) DragObject(HWND,HWND,UINT,ULONG_PTR,HCURSOR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawAnimatedRects(HWND,int,const RECT*,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawCaption(HWND,HDC,const RECT*,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawCaptionTempA(HWND,HDC,const RECT*,HFONT,HICON,LPCSTR,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawCaptionTempW(HWND,HDC,const RECT*,HFONT,HICON,LPCWSTR,UINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawEdge(HDC,LPRECT,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawFocusRect(HDC,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawFrameControl(HDC,LPRECT,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawIcon(HDC,INT,INT,HICON); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawIconEx(HDC,INT,INT,HICON,INT,INT,UINT,HBRUSH,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawMenuBar(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawStateA(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) DrawStateW(HDC,HBRUSH,DRAWSTATEPROC,LPARAM,WPARAM,INT,INT,INT,INT,UINT); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DrawTextA(HDC,LPCSTR,INT,LPRECT,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DrawTextW(HDC,LPCWSTR,INT,LPRECT,UINT); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DrawTextExA(HDC,LPSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) DrawTextExW(HDC,LPWSTR,INT,LPRECT,UINT,LPDRAWTEXTPARAMS); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EmptyClipboard(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnableMenuItem(HMENU,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnableScrollBar(HWND,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnableWindow(HWND,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EndDeferWindowPos(HDWP); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EndDialog(HWND,INT_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EndMenu(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EndPaint(HWND,const PAINTSTRUCT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumChildWindows(HWND,WNDENUMPROC,LPARAM); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) EnumClipboardFormats(UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDesktopsA(HWINSTA,DESKTOPENUMPROCA,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDesktopsW(HWINSTA,DESKTOPENUMPROCW,LPARAM); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDesktopWindows(HDESK,WNDENUMPROC,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumPropsA(HWND,PROPENUMPROCA); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumPropsW(HWND,PROPENUMPROCW); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumPropsExA(HWND,PROPENUMPROCEXA,LPARAM); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumWindows(WNDENUMPROC,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumWindowStationsA(WINSTAENUMPROCA,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EnumWindowStationsW(WINSTAENUMPROCW,LPARAM); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) EqualRect(const RECT*,const RECT*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ExcludeUpdateRgn(HDC,HWND); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ExitWindowsEx(UINT,DWORD); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) FillRect(HDC,const RECT*,HBRUSH); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) FindWindowA(LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) FindWindowW(LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) FindWindowExA(HWND,HWND,LPCSTR,LPCSTR); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) FindWindowExW(HWND,HWND,LPCWSTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FlashWindow(HWND,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) FlashWindowEx(PFLASHWINFO); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) FrameRect(HDC,const RECT*,HBRUSH); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetActiveWindow(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetAltTabInfoA(HWND,INT,PALTTABINFO,LPSTR,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetAltTabInfoW(HWND,INT,PALTTABINFO,LPWSTR,UINT); > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetAncestor(HWND,UINT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetAppCompatFlags(HTASK); >__attribute__((visibility ("hidden"))) SHORT __attribute__((__stdcall__)) GetAsyncKeyState(INT); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetCapture(void); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetCaretBlinkTime(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCaretPos(LPPOINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetClassInfoA(HINSTANCE,LPCSTR,WNDCLASSA *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetClassInfoW(HINSTANCE,LPCWSTR,WNDCLASSW *); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetClassInfoExA(HINSTANCE,LPCSTR,WNDCLASSEXA *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetClassInfoExW(HINSTANCE,LPCWSTR,WNDCLASSEXW *); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetClassLongA(HWND,INT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetClassLongW(HWND,INT); ># 4571 "../../../include/winuser.h" >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetClassNameA(HWND,LPSTR,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetClassNameW(HWND,LPWSTR,INT); > >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) GetClassWord(HWND,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetClientRect(HWND,LPRECT); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) GetClipboardData(UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetClipboardFormatNameA(UINT,LPSTR,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetClipboardFormatNameW(UINT,LPWSTR,INT); > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetClipboardOwner(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetClipboardSequenceNumber(void); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetClipboardViewer(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetClipCursor(LPRECT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetComboBoxInfo(HWND,PCOMBOBOXINFO); >__attribute__((visibility ("hidden"))) HCURSOR __attribute__((__stdcall__)) GetCursor(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCursorInfo(PCURSORINFO); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetCursorPos(LPPOINT); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) GetDC(HWND); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) GetDCEx(HWND,HRGN,DWORD); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetDesktopWindow(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetDialogBaseUnits(void); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetDlgCtrlID(HWND); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetDlgItem(HWND,INT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetDlgItemInt(HWND,INT,BOOL*,BOOL); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetDlgItemTextA(HWND,INT,LPSTR,INT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetDlgItemTextW(HWND,INT,LPWSTR,INT); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetDoubleClickTime(void); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetFocus(void); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetForegroundWindow(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetGUIThreadInfo(DWORD,GUITHREADINFO*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetIconInfo(HICON,PICONINFO); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetInputState(void); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetInternalWindowPos(HWND,LPRECT,LPPOINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetKBCodePage(void); >__attribute__((visibility ("hidden"))) HKL __attribute__((__stdcall__)) GetKeyboardLayout(DWORD); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetKeyboardLayoutList(INT,HKL *); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetKeyboardState(LPBYTE); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetKeyboardType(INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetKeyNameTextA(LONG,LPSTR,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetKeyNameTextW(LONG,LPWSTR,INT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetKeyboardLayoutNameA(LPSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetKeyboardLayoutNameW(LPWSTR); > >__attribute__((visibility ("hidden"))) SHORT __attribute__((__stdcall__)) GetKeyState(INT); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetLastActivePopup(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetLastInputInfo(PLASTINPUTINFO); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetRawInputBuffer(PRAWINPUT,PUINT,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetRawInputData(HRAWINPUT,UINT,LPVOID,PUINT,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetRawInputDeviceInfoA(HANDLE,UINT,LPVOID,PUINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetRawInputDeviceInfoW(HANDLE,UINT,LPVOID,PUINT); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetRawInputDeviceList(PRAWINPUTDEVICELIST,PUINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetLayeredWindowAttributes(HWND,COLORREF*,BYTE*,DWORD*); >__attribute__((visibility ("hidden"))) HMENU __attribute__((__stdcall__)) GetMenu(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMenuBarInfo(HWND,LONG,LONG,PMENUBARINFO); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetMenuCheckMarkDimensions(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetMenuContextHelpId(HMENU); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetMenuDefaultItem(HMENU,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMenuInfo(HMENU,LPMENUINFO); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetMenuItemCount(HMENU); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetMenuItemID(HMENU,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMenuItemInfoW(HMENU,UINT,BOOL,MENUITEMINFOW*); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMenuItemRect(HWND,HMENU,UINT,LPRECT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetMenuState(HMENU,UINT,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetMenuStringA(HMENU,UINT,LPSTR,INT,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetMenuStringW(HMENU,UINT,LPWSTR,INT,UINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMessageA(LPMSG,HWND,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMessageW(LPMSG,HWND,UINT,UINT); > >__attribute__((visibility ("hidden"))) LPARAM __attribute__((__stdcall__)) GetMessageExtraInfo(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetMessagePos(void); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) GetMessageTime(void); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMonitorInfoA(HMONITOR,LPMONITORINFO); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetMonitorInfoW(HMONITOR,LPMONITORINFO); > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetNextDlgGroupItem(HWND,HWND,BOOL); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetNextDlgTabItem(HWND,HWND,BOOL); > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetOpenClipboardWindow(void); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetParent(HWND); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetPriorityClipboardFormat(UINT*,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetProcessDefaultLayout(DWORD*); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) GetPropA(HWND,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) GetPropW(HWND,LPCWSTR); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetQueueStatus(UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetScrollInfo(HWND,INT,LPSCROLLINFO); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetScrollBarInfo(HWND,LONG,LPSCROLLBARINFO); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetScrollPos(HWND,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetScrollRange(HWND,INT,LPINT,LPINT); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetShellWindow(void); >__attribute__((visibility ("hidden"))) HMENU __attribute__((__stdcall__)) GetSubMenu(HMENU,INT); >__attribute__((visibility ("hidden"))) HBRUSH __attribute__((__stdcall__)) GetSysColorBrush(INT); > >__attribute__((visibility ("hidden"))) HMENU __attribute__((__stdcall__)) GetSystemMenu(HWND,BOOL); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetSystemMetrics(INT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetTabbedTextExtentA(HDC,LPCSTR,INT,INT,const INT*); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetTabbedTextExtentW(HDC,LPCWSTR,INT,INT,const INT*); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetTitleBarInfo(HWND,PTITLEBARINFO); >__attribute__((visibility ("hidden"))) HDESK __attribute__((__stdcall__)) GetThreadDesktop(DWORD); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetTopWindow(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetUpdateRect(HWND,LPRECT,BOOL); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetUpdateRgn(HWND,HRGN,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD,LPDWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD,LPDWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR,DWORD,LPDWORD); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) GetWindow(HWND,UINT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetWindowContextHelpId(HWND); >__attribute__((visibility ("hidden"))) HDC __attribute__((__stdcall__)) GetWindowDC(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetWindowInfo(HWND, PWINDOWINFO); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) GetWindowLongA(HWND,INT); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) GetWindowLongW(HWND,INT); ># 4699 "../../../include/winuser.h" >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetWindowModuleFileNameA(HWND,LPSTR,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) GetWindowModuleFileNameW(HWND,LPWSTR,UINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetWindowPlacement(HWND,LPWINDOWPLACEMENT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GetWindowRect(HWND,LPRECT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetWindowRgn(HWND,HRGN); >__attribute__((visibility ("hidden"))) HWINSTA __attribute__((__stdcall__)) GetProcessWindowStation(void); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetWindowTextA(HWND,LPSTR,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetWindowTextW(HWND,LPWSTR,INT); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetWindowTextLengthA(HWND); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) GetWindowTextLengthW(HWND); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) GetWindowThreadProcessId(HWND,LPDWORD); >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) GetWindowWord(HWND,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GrayStringA(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) GrayStringW(HDC,HBRUSH,GRAYSTRINGPROC,LPARAM,INT,INT,INT,INT,INT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HideCaret(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) HiliteMenuItem(HWND,HMENU,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InflateRect(LPRECT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InSendMessage(void); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) InSendMessageEx(LPVOID); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InsertMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InsertMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InsertMenuItemA(HMENU,UINT,BOOL,const MENUITEMINFOA*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InsertMenuItemW(HMENU,UINT,BOOL,const MENUITEMINFOW*); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) InternalGetWindowText(HWND,LPWSTR,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IntersectRect(LPRECT,const RECT*,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InvalidateRect(HWND,const RECT*,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InvalidateRgn(HWND,HRGN,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) InvertRect(HDC,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsCharAlphaA(CHAR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsCharAlphaW(WCHAR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsCharAlphaNumericA(CHAR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsCharAlphaNumericW(WCHAR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsCharLowerA(CHAR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsCharLowerW(WCHAR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsCharUpperA(CHAR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsCharUpperW(WCHAR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsChild(HWND,HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsClipboardFormatAvailable(UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsDialogMessageA(HWND,LPMSG); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsDialogMessageW(HWND,LPMSG); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) IsDlgButtonChecked(HWND,int); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsHungAppWindow(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsIconic(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsMenu(HMENU); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsRectEmpty(const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsWinEventHookInstalled(DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsWindow(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsWindowEnabled(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsWindowUnicode(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsWindowVisible(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) IsZoomed(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) KillSystemTimer(HWND,UINT_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) KillTimer(HWND,UINT_PTR); >__attribute__((visibility ("hidden"))) HACCEL __attribute__((__stdcall__)) LoadAcceleratorsA(HINSTANCE,LPCSTR); >__attribute__((visibility ("hidden"))) HACCEL __attribute__((__stdcall__)) LoadAcceleratorsW(HINSTANCE,LPCWSTR); > >__attribute__((visibility ("hidden"))) HBITMAP __attribute__((__stdcall__)) LoadBitmapA(HINSTANCE,LPCSTR); >__attribute__((visibility ("hidden"))) HBITMAP __attribute__((__stdcall__)) LoadBitmapW(HINSTANCE,LPCWSTR); > >__attribute__((visibility ("hidden"))) HCURSOR __attribute__((__stdcall__)) LoadCursorA(HINSTANCE,LPCSTR); >__attribute__((visibility ("hidden"))) HCURSOR __attribute__((__stdcall__)) LoadCursorW(HINSTANCE,LPCWSTR); > >__attribute__((visibility ("hidden"))) HCURSOR __attribute__((__stdcall__)) LoadCursorFromFileA(LPCSTR); >__attribute__((visibility ("hidden"))) HCURSOR __attribute__((__stdcall__)) LoadCursorFromFileW(LPCWSTR); > >__attribute__((visibility ("hidden"))) HICON __attribute__((__stdcall__)) LoadIconA(HINSTANCE,LPCSTR); >__attribute__((visibility ("hidden"))) HICON __attribute__((__stdcall__)) LoadIconW(HINSTANCE,LPCWSTR); > >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) LoadImageA(HINSTANCE,LPCSTR,UINT,INT,INT,UINT); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) LoadImageW(HINSTANCE,LPCWSTR,UINT,INT,INT,UINT); > >__attribute__((visibility ("hidden"))) HKL __attribute__((__stdcall__)) LoadKeyboardLayoutA(LPCSTR,UINT); >__attribute__((visibility ("hidden"))) HKL __attribute__((__stdcall__)) LoadKeyboardLayoutW(LPCWSTR,UINT); > >__attribute__((visibility ("hidden"))) HMENU __attribute__((__stdcall__)) LoadMenuA(HINSTANCE,LPCSTR); >__attribute__((visibility ("hidden"))) HMENU __attribute__((__stdcall__)) LoadMenuW(HINSTANCE,LPCWSTR); > >__attribute__((visibility ("hidden"))) HMENU __attribute__((__stdcall__)) LoadMenuIndirectA(LPCVOID); >__attribute__((visibility ("hidden"))) HMENU __attribute__((__stdcall__)) LoadMenuIndirectW(LPCVOID); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) LoadStringA(HINSTANCE,UINT,LPSTR,INT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) LoadStringW(HINSTANCE,UINT,LPWSTR,INT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LockSetForegroundWindow(UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) LockWindowUpdate(HWND); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) LookupIconIdFromDirectory(LPBYTE,BOOL); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) LookupIconIdFromDirectoryEx(LPBYTE,BOOL,INT,INT,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) MapVirtualKeyA(UINT,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) MapVirtualKeyW(UINT,UINT); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) MapVirtualKeyExA(UINT,UINT,HKL); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) MapVirtualKeyExW(UINT,UINT,HKL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MapDialogRect(HWND,LPRECT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) MapWindowPoints(HWND,HWND,LPPOINT,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) MenuItemFromPoint(HWND,HMENU,POINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MessageBeep(UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) MessageBoxA(HWND,LPCSTR,LPCSTR,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) MessageBoxW(HWND,LPCWSTR,LPCWSTR,UINT); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) MessageBoxExA(HWND,LPCSTR,LPCSTR,UINT,WORD); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) MessageBoxExW(HWND,LPCWSTR,LPCWSTR,UINT,WORD); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) MessageBoxIndirectA(LPMSGBOXPARAMSA); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) MessageBoxIndirectW(LPMSGBOXPARAMSW); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ModifyMenuA(HMENU,UINT,UINT,UINT_PTR,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ModifyMenuW(HMENU,UINT,UINT,UINT_PTR,LPCWSTR); > >__attribute__((visibility ("hidden"))) HMONITOR __attribute__((__stdcall__)) MonitorFromPoint(POINT,DWORD); >__attribute__((visibility ("hidden"))) HMONITOR __attribute__((__stdcall__)) MonitorFromRect(LPRECT,DWORD); >__attribute__((visibility ("hidden"))) HMONITOR __attribute__((__stdcall__)) MonitorFromWindow(HWND,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) MoveWindow(HWND,INT,INT,INT,INT,BOOL); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) MsgWaitForMultipleObjects(DWORD,const HANDLE*,BOOL,DWORD,DWORD); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) MsgWaitForMultipleObjectsEx(DWORD,const HANDLE*,DWORD,DWORD,DWORD); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) NotifyWinEvent(DWORD,HWND,LONG,LONG); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) OemKeyScan(WORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OemToCharA(LPCSTR,LPSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OemToCharW(LPCSTR,LPWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OemToCharBuffA(LPCSTR,LPSTR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OemToCharBuffW(LPCSTR,LPWSTR,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OffsetRect(LPRECT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OpenClipboard(HWND); >__attribute__((visibility ("hidden"))) HDESK __attribute__((__stdcall__)) OpenDesktopA(LPCSTR,DWORD,BOOL,ACCESS_MASK); >__attribute__((visibility ("hidden"))) HDESK __attribute__((__stdcall__)) OpenDesktopW(LPCWSTR,DWORD,BOOL,ACCESS_MASK); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) OpenIcon(HWND); >__attribute__((visibility ("hidden"))) HDESK __attribute__((__stdcall__)) OpenInputDesktop(DWORD,BOOL,ACCESS_MASK); >__attribute__((visibility ("hidden"))) HWINSTA __attribute__((__stdcall__)) OpenWindowStationA(LPCSTR,BOOL,ACCESS_MASK); >__attribute__((visibility ("hidden"))) HWINSTA __attribute__((__stdcall__)) OpenWindowStationW(LPCWSTR,BOOL,ACCESS_MASK); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PaintDesktop(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PeekMessageA(LPMSG,HWND,UINT,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PeekMessageW(LPMSG,HWND,UINT,UINT,UINT); > > > > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PostMessageA(HWND,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PostMessageW(HWND,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) PostQuitMessage(INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PostThreadMessageA(DWORD,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PostThreadMessageW(DWORD,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) PrivateExtractIconExW(LPCWSTR,int,HICON*,HICON*,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) PrivateExtractIconsA(LPCSTR,int,int,int,HICON*,UINT*,UINT,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) PrivateExtractIconsW(LPCWSTR,int,int,int,HICON*,UINT*,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) PtInRect(const RECT*,POINT); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) RealChildWindowFromPoint(HWND,POINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) RealGetWindowClassA(HWND,LPSTR,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) RealGetWindowClassW(HWND,LPWSTR,UINT); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RedrawWindow(HWND,const RECT*,HRGN,UINT); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) RegisterClassA(const WNDCLASSA *); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) RegisterClassW(const WNDCLASSW *); > >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) RegisterClassExA(const WNDCLASSEXA *); >__attribute__((visibility ("hidden"))) ATOM __attribute__((__stdcall__)) RegisterClassExW(const WNDCLASSEXW *); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) RegisterClipboardFormatA(LPCSTR); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) RegisterClipboardFormatW(LPCWSTR); > >__attribute__((visibility ("hidden"))) HDEVNOTIFY __attribute__((__stdcall__)) RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD); >__attribute__((visibility ("hidden"))) HDEVNOTIFY __attribute__((__stdcall__)) RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RegisterHotKey(HWND,INT,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RegisterRawInputDevices(PRAWINPUTDEVICE,UINT,UINT); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) RegisterWindowMessageA(LPCSTR); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) RegisterWindowMessageW(LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReleaseCapture(void); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ReleaseDC(HWND,HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) RemoveMenu(HMENU,UINT,UINT); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) RemovePropA(HWND,LPCSTR); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) RemovePropW(HWND,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ReplyMessage(LRESULT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ScreenToClient(HWND,LPPOINT); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) ScrollChildren(HWND,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ScrollDC(HDC,INT,INT,const RECT*,const RECT*,HRGN,LPRECT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ScrollWindow(HWND,INT,INT,const RECT*,const RECT*); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ScrollWindowEx(HWND,INT,INT,const RECT*,const RECT*,HRGN,LPRECT,UINT); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) SendDlgItemMessageA(HWND,INT,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) SendDlgItemMessageW(HWND,INT,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) SendInput(UINT,LPINPUT,int); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) SendMessageA(HWND,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) SendMessageW(HWND,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SendMessageCallbackA(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SendMessageCallbackW(HWND,UINT,WPARAM,LPARAM,SENDASYNCPROC,ULONG_PTR); > >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) SendMessageTimeoutA(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR); >__attribute__((visibility ("hidden"))) LRESULT __attribute__((__stdcall__)) SendMessageTimeoutW(HWND,UINT,WPARAM,LPARAM,UINT,UINT,PDWORD_PTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM); > >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) SetActiveWindow(HWND); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) SetCapture(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCaretBlinkTime(UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCaretPos(INT,INT); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetClassLongA(HWND,INT,LONG); >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) SetClassLongW(HWND,INT,LONG); ># 4928 "../../../include/winuser.h" >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) SetClassWord(HWND,INT,WORD); >__attribute__((visibility ("hidden"))) HANDLE __attribute__((__stdcall__)) SetClipboardData(UINT,HANDLE); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) SetClipboardViewer(HWND); >__attribute__((visibility ("hidden"))) HCURSOR __attribute__((__stdcall__)) SetCursor(HCURSOR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetCursorPos(INT,INT); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) SetDebugErrorLevel(DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDeskWallPaper(LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDlgItemInt(HWND,INT,UINT,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDlgItemTextA(HWND,INT,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDlgItemTextW(HWND,INT,LPCWSTR); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetDoubleClickTime(UINT); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) SetFocus(HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetForegroundWindow(HWND); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) SetInternalWindowPos(HWND,UINT,LPRECT,LPPOINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetKeyboardState(LPBYTE); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) SetLastErrorEx(DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetLayeredWindowAttributes(HWND,COLORREF,BYTE,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMenu(HWND,HMENU); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMenuContextHelpId(HMENU,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMenuDefaultItem(HMENU,UINT,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMenuInfo(HMENU,LPCMENUINFO); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMenuItemBitmaps(HMENU,UINT,UINT,HBITMAP,HBITMAP); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMenuItemInfoA(HMENU,UINT,BOOL,const MENUITEMINFOA*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMenuItemInfoW(HMENU,UINT,BOOL,const MENUITEMINFOW*); > >__attribute__((visibility ("hidden"))) LPARAM __attribute__((__stdcall__)) SetMessageExtraInfo(LPARAM); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetMessageQueue(INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetProcessDefaultLayout(DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetProcessWindowStation(HWINSTA); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) SetParent(HWND,HWND); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetPropA(HWND,LPCSTR,HANDLE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetPropW(HWND,LPCWSTR,HANDLE); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetRect(LPRECT,INT,INT,INT,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetRectEmpty(LPRECT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetScrollInfo(HWND,INT,const SCROLLINFO*,BOOL); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetScrollPos(HWND,INT,INT,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetScrollRange(HWND,INT,INT,INT,BOOL); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSystemCursor(HCURSOR,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetSystemMenu(HWND,HMENU); >__attribute__((visibility ("hidden"))) UINT_PTR __attribute__((__stdcall__)) SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetThreadDesktop(HDESK); >__attribute__((visibility ("hidden"))) UINT_PTR __attribute__((__stdcall__)) SetTimer(HWND,UINT_PTR,UINT,TIMERPROC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetUserObjectInformationA(HANDLE,INT,LPVOID,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetUserObjectInformationW(HANDLE,INT,LPVOID,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetUserObjectSecurity(HANDLE,PSECURITY_INFORMATION,PSECURITY_DESCRIPTOR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetWindowContextHelpId(HWND,DWORD); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) SetWindowLongA(HWND,INT,LONG); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) SetWindowLongW(HWND,INT,LONG); ># 4989 "../../../include/winuser.h" >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetWindowPlacement(HWND,const WINDOWPLACEMENT*); >__attribute__((visibility ("hidden"))) HHOOK __attribute__((__stdcall__)) SetWindowsHookA(INT,HOOKPROC); >__attribute__((visibility ("hidden"))) HHOOK __attribute__((__stdcall__)) SetWindowsHookW(INT,HOOKPROC); > >__attribute__((visibility ("hidden"))) HHOOK __attribute__((__stdcall__)) SetWindowsHookExA(INT,HOOKPROC,HINSTANCE,DWORD); >__attribute__((visibility ("hidden"))) HHOOK __attribute__((__stdcall__)) SetWindowsHookExW(INT,HOOKPROC,HINSTANCE,DWORD); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetWindowPos(HWND,HWND,INT,INT,INT,INT,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) SetWindowRgn(HWND,HRGN,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetWindowTextA(HWND,LPCSTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SetWindowTextW(HWND,LPCWSTR); > >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) SetWindowWord(HWND,INT,WORD); >__attribute__((visibility ("hidden"))) HWINEVENTHOOK __attribute__((__stdcall__)) SetWinEventHook(DWORD,DWORD,HMODULE,WINEVENTPROC,DWORD,DWORD,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ShowCaret(HWND); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ShowCursor(BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ShowScrollBar(HWND,INT,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ShowOwnedPopups(HWND,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ShowWindow(HWND,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ShowWindowAsync(HWND,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SubtractRect(LPRECT,const RECT*,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SwapMouseButton(BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SwitchDesktop(HDESK); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) SwitchToThisWindow(HWND,BOOL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SystemParametersInfoA(UINT,UINT,LPVOID,UINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) SystemParametersInfoW(UINT,UINT,LPVOID,UINT); > >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) TabbedTextOutA(HDC,INT,INT,LPCSTR,INT,INT,const INT*,INT); >__attribute__((visibility ("hidden"))) LONG __attribute__((__stdcall__)) TabbedTextOutW(HDC,INT,INT,LPCWSTR,INT,INT,const INT*,INT); > >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) TileWindows (HWND,UINT,const RECT *,UINT,const HWND *); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ToAscii(UINT,UINT,LPBYTE,LPWORD,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ToAsciiEx(UINT,UINT,LPBYTE,LPWORD,UINT,HKL); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ToUnicode(UINT,UINT,PBYTE,LPWSTR,int,UINT); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) ToUnicodeEx(UINT,UINT,LPBYTE,LPWSTR,int,UINT,HKL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TrackMouseEvent(LPTRACKMOUSEEVENT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TrackPopupMenu(HMENU,UINT,INT,INT,INT,HWND,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND,LPTPMPARAMS); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) TranslateAcceleratorA(HWND,HACCEL,LPMSG); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) TranslateAcceleratorW(HWND,HACCEL,LPMSG); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TranslateMDISysAccel(HWND,LPMSG); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) TranslateMessage(const MSG*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnhookWinEvent(HWINEVENTHOOK); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnhookWindowsHook(INT,HOOKPROC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnhookWindowsHookEx(HHOOK); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnloadKeyboardLayout(HKL); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnionRect(LPRECT,const RECT*,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnregisterClassA(LPCSTR,HINSTANCE); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnregisterClassW(LPCWSTR,HINSTANCE); > >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnregisterDeviceNotification(HDEVNOTIFY); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UnregisterHotKey(HWND,INT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) UpdateWindow(HWND); >__attribute__((visibility ("hidden"))) UINT __attribute__((__stdcall__)) UserRealizePalette(HDC); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ValidateRect(HWND,const RECT*); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) ValidateRgn(HWND,HRGN); >__attribute__((visibility ("hidden"))) SHORT __attribute__((__stdcall__)) VkKeyScanA(CHAR); >__attribute__((visibility ("hidden"))) SHORT __attribute__((__stdcall__)) VkKeyScanW(WCHAR); > >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) VkKeyScanExA(CHAR, HKL); >__attribute__((visibility ("hidden"))) WORD __attribute__((__stdcall__)) VkKeyScanExW(WCHAR, HKL); > >__attribute__((visibility ("hidden"))) DWORD __attribute__((__stdcall__)) WaitForInputIdle(HANDLE,DWORD); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WaitMessage(void); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) WindowFromDC(HDC); >__attribute__((visibility ("hidden"))) HWND __attribute__((__stdcall__)) WindowFromPoint(POINT); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WinHelpA(HWND,LPCSTR,UINT,ULONG_PTR); >__attribute__((visibility ("hidden"))) BOOL __attribute__((__stdcall__)) WinHelpW(HWND,LPCWSTR,UINT,ULONG_PTR); > >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) keybd_event(BYTE,BYTE,DWORD,ULONG_PTR); >__attribute__((visibility ("hidden"))) void __attribute__((__stdcall__)) mouse_event(DWORD,DWORD,DWORD,DWORD,ULONG_PTR); >__attribute__((visibility ("hidden"))) INT __attribute__((__cdecl__)) wsprintfA(LPSTR,LPCSTR,...); >__attribute__((visibility ("hidden"))) INT __attribute__((__cdecl__)) wsprintfW(LPWSTR,LPCWSTR,...); > >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) wvsprintfA(LPSTR,LPCSTR,va_list); >__attribute__((visibility ("hidden"))) INT __attribute__((__stdcall__)) wvsprintfW(LPWSTR,LPCWSTR,va_list); > > > > > >WORD __attribute__((__stdcall__)) SYSTEM_KillSystemTimer( WORD ); ># 35 "menu.c" 2 > ># 1 "../../../include/wine/test.h" 1 ># 25 "../../../include/wine/test.h" ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 1 3 4 ># 34 "/usr/include/stdlib.h" 2 3 4 > > ># 96 "/usr/include/stdlib.h" 3 4 > > >typedef struct > { > int quot; > int rem; > } div_t; > > > >typedef struct > { > long int quot; > long int rem; > } ldiv_t; > > > ># 140 "/usr/include/stdlib.h" 3 4 >extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ; > > > > >extern double atof (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern int atoi (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern long int atol (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ extern long long int atoll (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern double strtod (__const char *__restrict __nptr, > char **__restrict __endptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > ># 182 "/usr/include/stdlib.h" 3 4 > > >extern long int strtol (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >extern unsigned long int strtoul (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >__extension__ >extern long long int strtoq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >__extension__ >extern unsigned long long int strtouq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ >extern long long int strtoll (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >__extension__ >extern unsigned long long int strtoull (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > ># 277 "/usr/include/stdlib.h" 3 4 > >extern __inline double >__attribute__ ((__nothrow__)) atof (__const char *__nptr) >{ > return strtod (__nptr, (char **) ((void *)0)); >} >extern __inline int >__attribute__ ((__nothrow__)) atoi (__const char *__nptr) >{ > return (int) strtol (__nptr, (char **) ((void *)0), 10); >} >extern __inline long int >__attribute__ ((__nothrow__)) atol (__const char *__nptr) >{ > return strtol (__nptr, (char **) ((void *)0), 10); >} > > > > >__extension__ extern __inline long long int >__attribute__ ((__nothrow__)) atoll (__const char *__nptr) >{ > return strtoll (__nptr, (char **) ((void *)0), 10); >} > ># 311 "/usr/include/stdlib.h" 3 4 >extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ; > > >extern long int a64l (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > ># 1 "/usr/include/sys/types.h" 1 3 4 ># 29 "/usr/include/sys/types.h" 3 4 > > > > > > >typedef __u_char u_char; >typedef __u_short u_short; >typedef __u_int u_int; >typedef __u_long u_long; >typedef __quad_t quad_t; >typedef __u_quad_t u_quad_t; >typedef __fsid_t fsid_t; > > > > >typedef __loff_t loff_t; > > > >typedef __ino_t ino_t; ># 62 "/usr/include/sys/types.h" 3 4 >typedef __dev_t dev_t; > > > > >typedef __gid_t gid_t; > > > > >typedef __mode_t mode_t; > > > > >typedef __nlink_t nlink_t; > > > > >typedef __uid_t uid_t; > > > > > >typedef __off_t off_t; ># 100 "/usr/include/sys/types.h" 3 4 >typedef __pid_t pid_t; > > > > >typedef __id_t id_t; > > > > >typedef __ssize_t ssize_t; > > > > > >typedef __daddr_t daddr_t; >typedef __caddr_t caddr_t; > > > > > >typedef __key_t key_t; ># 133 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 75 "/usr/include/time.h" 3 4 > > >typedef __time_t time_t; > > > ># 93 "/usr/include/time.h" 3 4 >typedef __clockid_t clockid_t; ># 105 "/usr/include/time.h" 3 4 >typedef __timer_t timer_t; ># 134 "/usr/include/sys/types.h" 2 3 4 ># 147 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 1 3 4 ># 148 "/usr/include/sys/types.h" 2 3 4 > > > >typedef unsigned long int ulong; >typedef unsigned short int ushort; >typedef unsigned int uint; ># 195 "/usr/include/sys/types.h" 3 4 >typedef int int8_t __attribute__ ((__mode__ (__QI__))); >typedef int int16_t __attribute__ ((__mode__ (__HI__))); >typedef int int32_t __attribute__ ((__mode__ (__SI__))); >typedef int int64_t __attribute__ ((__mode__ (__DI__))); > > >typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); >typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); > >typedef int register_t __attribute__ ((__mode__ (__word__))); ># 220 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/sys/select.h" 1 3 4 ># 31 "/usr/include/sys/select.h" 3 4 ># 1 "/usr/include/bits/select.h" 1 3 4 ># 32 "/usr/include/sys/select.h" 2 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 24 "/usr/include/bits/sigset.h" 3 4 >typedef int __sig_atomic_t; > > > > >typedef struct > { > unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; > } __sigset_t; ># 35 "/usr/include/sys/select.h" 2 3 4 > > > >typedef __sigset_t sigset_t; > > > > > ># 1 "/usr/include/time.h" 1 3 4 ># 121 "/usr/include/time.h" 3 4 >struct timespec > { > __time_t tv_sec; > long int tv_nsec; > }; ># 45 "/usr/include/sys/select.h" 2 3 4 > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 69 "/usr/include/bits/time.h" 3 4 >struct timeval > { > __time_t tv_sec; > __suseconds_t tv_usec; > }; ># 47 "/usr/include/sys/select.h" 2 3 4 > > >typedef __suseconds_t suseconds_t; > > > > > >typedef long int __fd_mask; ># 67 "/usr/include/sys/select.h" 3 4 >typedef struct > { > > > > > > > __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))]; > > > } fd_set; > > > > > > >typedef __fd_mask fd_mask; ># 99 "/usr/include/sys/select.h" 3 4 > ># 109 "/usr/include/sys/select.h" 3 4 >extern int select (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > struct timeval *__restrict __timeout); ># 121 "/usr/include/sys/select.h" 3 4 >extern int pselect (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > const struct timespec *__restrict __timeout, > const __sigset_t *__restrict __sigmask); > > > ># 221 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/sysmacros.h" 1 3 4 ># 30 "/usr/include/sys/sysmacros.h" 3 4 >__extension__ >extern unsigned int gnu_dev_major (unsigned long long int __dev) > __attribute__ ((__nothrow__)); >__extension__ >extern unsigned int gnu_dev_minor (unsigned long long int __dev) > __attribute__ ((__nothrow__)); >__extension__ >extern unsigned long long int gnu_dev_makedev (unsigned int __major, > unsigned int __minor) > __attribute__ ((__nothrow__)); > > >__extension__ extern __inline unsigned int >__attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev) >{ > return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); >} > >__extension__ extern __inline unsigned int >__attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev) >{ > return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); >} > >__extension__ extern __inline unsigned long long int >__attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) >{ > return ((__minor & 0xff) | ((__major & 0xfff) << 8) > | (((unsigned long long int) (__minor & ~0xff)) << 12) > | (((unsigned long long int) (__major & ~0xfff)) << 32)); >} ># 224 "/usr/include/sys/types.h" 2 3 4 ># 235 "/usr/include/sys/types.h" 3 4 >typedef __blkcnt_t blkcnt_t; > > > >typedef __fsblkcnt_t fsblkcnt_t; > > > >typedef __fsfilcnt_t fsfilcnt_t; ># 270 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ># 36 "/usr/include/bits/pthreadtypes.h" 3 4 >typedef unsigned long int pthread_t; > > >typedef union >{ > char __size[36]; > long int __align; >} pthread_attr_t; > > >typedef struct __pthread_internal_slist >{ > struct __pthread_internal_slist *__next; >} __pthread_slist_t; > > > > >typedef union >{ > struct __pthread_mutex_s > { > int __lock; > unsigned int __count; > int __owner; > > > int __kind; > unsigned int __nusers; > __extension__ union > { > int __spins; > __pthread_slist_t __list; > }; > } __data; > char __size[24]; > long int __align; >} pthread_mutex_t; > >typedef union >{ > char __size[4]; > long int __align; >} pthread_mutexattr_t; > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __futex; > __extension__ unsigned long long int __total_seq; > __extension__ unsigned long long int __wakeup_seq; > __extension__ unsigned long long int __woken_seq; > void *__mutex; > unsigned int __nwaiters; > unsigned int __broadcast_seq; > } __data; > char __size[48]; > __extension__ long long int __align; >} pthread_cond_t; > >typedef union >{ > char __size[4]; > long int __align; >} pthread_condattr_t; > > > >typedef unsigned int pthread_key_t; > > > >typedef int pthread_once_t; > > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __nr_readers; > unsigned int __readers_wakeup; > unsigned int __writer_wakeup; > unsigned int __nr_readers_queued; > unsigned int __nr_writers_queued; > > > unsigned char __flags; > unsigned char __shared; > unsigned char __pad1; > unsigned char __pad2; > int __writer; > } __data; > char __size[32]; > long int __align; >} pthread_rwlock_t; > >typedef union >{ > char __size[8]; > long int __align; >} pthread_rwlockattr_t; > > > > > >typedef volatile int pthread_spinlock_t; > > > > >typedef union >{ > char __size[20]; > long int __align; >} pthread_barrier_t; > >typedef union >{ > char __size[4]; > int __align; >} pthread_barrierattr_t; ># 271 "/usr/include/sys/types.h" 2 3 4 > > > ># 321 "/usr/include/stdlib.h" 2 3 4 > > > > > > >extern long int random (void) __attribute__ ((__nothrow__)); > > >extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__)); > > > > > >extern char *initstate (unsigned int __seed, char *__statebuf, > size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > >extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > >struct random_data > { > int32_t *fptr; > int32_t *rptr; > int32_t *state; > int rand_type; > int rand_deg; > int rand_sep; > int32_t *end_ptr; > }; > >extern int random_r (struct random_data *__restrict __buf, > int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int srandom_r (unsigned int __seed, struct random_data *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > >extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, > size_t __statelen, > struct random_data *__restrict __buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); > >extern int setstate_r (char *__restrict __statebuf, > struct random_data *__restrict __buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int rand (void) __attribute__ ((__nothrow__)); > >extern void srand (unsigned int __seed) __attribute__ ((__nothrow__)); > > > > >extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__)); > > > > > > > >extern double drand48 (void) __attribute__ ((__nothrow__)); >extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int lrand48 (void) __attribute__ ((__nothrow__)); >extern long int nrand48 (unsigned short int __xsubi[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int mrand48 (void) __attribute__ ((__nothrow__)); >extern long int jrand48 (unsigned short int __xsubi[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern void srand48 (long int __seedval) __attribute__ ((__nothrow__)); >extern unsigned short int *seed48 (unsigned short int __seed16v[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); >extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >struct drand48_data > { > unsigned short int __x[3]; > unsigned short int __old_x[3]; > unsigned short int __c; > unsigned short int __init; > unsigned long long int __a; > }; > > >extern int drand48_r (struct drand48_data *__restrict __buffer, > double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int erand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int lrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int nrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int mrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int jrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int srand48_r (long int __seedval, struct drand48_data *__buffer) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > >extern int seed48_r (unsigned short int __seed16v[3], > struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int lcong48_r (unsigned short int __param[7], > struct drand48_data *__buffer) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); ># 479 "/usr/include/stdlib.h" 3 4 > > > > > > >extern void *realloc (void *__ptr, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__warn_unused_result__)); > >extern void free (void *__ptr) __attribute__ ((__nothrow__)); > > > > >extern void cfree (void *__ptr) __attribute__ ((__nothrow__)); > > > ># 1 "/usr/include/alloca.h" 1 3 4 ># 25 "/usr/include/alloca.h" 3 4 ># 1 "/usr/lib/gcc/i386-redhat-linux/4.3.0/include/stddef.h" 1 3 4 ># 26 "/usr/include/alloca.h" 2 3 4 > > > > > > > >extern void *alloca (size_t __size) __attribute__ ((__nothrow__)); > > > > > > ># 498 "/usr/include/stdlib.h" 2 3 4 > > > > >extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > > > > >extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > >extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > ># 543 "/usr/include/stdlib.h" 3 4 > > >extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >extern char *__secure_getenv (__const char *__name) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int setenv (__const char *__name, __const char *__value, int __replace) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > >extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)); > > > > > > >extern int clearenv (void) __attribute__ ((__nothrow__)); ># 583 "/usr/include/stdlib.h" 3 4 >extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 594 "/usr/include/stdlib.h" 3 4 >extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; ># 614 "/usr/include/stdlib.h" 3 4 >extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 640 "/usr/include/stdlib.h" 3 4 > > > > > >extern int system (__const char *__command) ; > ># 662 "/usr/include/stdlib.h" 3 4 >extern char *realpath (__const char *__restrict __name, > char *__restrict __resolved) __attribute__ ((__nothrow__)) ; > > > > > > >typedef int (*__compar_fn_t) (__const void *, __const void *); ># 680 "/usr/include/stdlib.h" 3 4 > > > >extern void *bsearch (__const void *__key, __const void *__base, > size_t __nmemb, size_t __size, __compar_fn_t __compar) > __attribute__ ((__nonnull__ (1, 2, 5))) ; > > > >extern void qsort (void *__base, size_t __nmemb, size_t __size, > __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); ># 699 "/usr/include/stdlib.h" 3 4 >extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; >extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > > > > > > > > > > > > >extern div_t div (int __numer, int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; >extern ldiv_t ldiv (long int __numer, long int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > ># 735 "/usr/include/stdlib.h" 3 4 >extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *gcvt (double __value, int __ndigit, char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; > > > > >extern char *qecvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qfcvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qgcvt (long double __value, int __ndigit, char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; > > > > >extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); >extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); > >extern int qecvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); >extern int qfcvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); > > > > > > > >extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ; > > >extern int mbtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ; > > >extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ; > > > >extern size_t mbstowcs (wchar_t *__restrict __pwcs, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); > >extern size_t wcstombs (char *__restrict __s, > __const wchar_t *__restrict __pwcs, size_t __n) > __attribute__ ((__nothrow__)); > > > > > > > > >extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 840 "/usr/include/stdlib.h" 3 4 >extern int posix_openpt (int __oflag) ; ># 875 "/usr/include/stdlib.h" 3 4 >extern int getloadavg (double __loadavg[], int __nelem) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 891 "/usr/include/stdlib.h" 3 4 > ># 26 "../../../include/wine/test.h" 2 ># 47 "../../../include/wine/test.h" >extern int winetest_debug; > > >extern int winetest_interactive; > > >extern const char *winetest_platform; > >extern void winetest_set_location( const char* file, int line ); >extern void winetest_start_todo( const char* platform ); >extern int winetest_loop_todo(void); >extern void winetest_end_todo( const char* platform ); >extern int winetest_get_mainargs( char*** pargv ); >extern void winetest_wait_child_process( HANDLE process ); ># 73 "../../../include/wine/test.h" >extern int winetest_ok( int condition, const char *msg, ... ) __attribute__((format (printf,2,3) )); >extern void winetest_skip( const char *msg, ... ) __attribute__((format (printf,1,2))); >extern void winetest_trace( const char *msg, ... ) __attribute__((format (printf,1,2))); ># 37 "menu.c" 2 > >static ATOM atomMenuCheckClass; > >static BOOL (__attribute__((__stdcall__)) *pGetMenuInfo)(HMENU,LPCMENUINFO); >static UINT (__attribute__((__stdcall__)) *pSendInput)(UINT, INPUT*, size_t); >static BOOL (__attribute__((__stdcall__)) *pSetMenuInfo)(HMENU,LPCMENUINFO); > >static void init_function_pointers(void) >{ > HMODULE hdll = GetModuleHandleA("user32"); > > > > > > > pGetMenuInfo = (void*)GetProcAddress(hdll, "GetMenuInfo"); if(!pGetMenuInfo) (winetest_set_location("menu.c", 53), 0) ? (void)0 : winetest_trace("GetProcAddress(%s) failed\n", "GetMenuInfo"); > pSendInput = (void*)GetProcAddress(hdll, "SendInput"); if(!pSendInput) (winetest_set_location("menu.c", 54), 0) ? (void)0 : winetest_trace("GetProcAddress(%s) failed\n", "SendInput"); > pSetMenuInfo = (void*)GetProcAddress(hdll, "SetMenuInfo"); if(!pSetMenuInfo) (winetest_set_location("menu.c", 55), 0) ? (void)0 : winetest_trace("GetProcAddress(%s) failed\n", "SetMenuInfo"); > > >} > >static LRESULT __attribute__((__stdcall__)) menu_check_wnd_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) >{ > switch (msg) > { > case 0x0211: > > SetWindowLongA(hwnd, (-21), 1); > > > return PostMessageA(hwnd, 0x001f, 0, 0); > } > return DefWindowProcA(hwnd, msg, wparam, lparam); >} > > > >typedef struct >{ > DWORD type; > union > { > MOUSEINPUT mi; > KEYBDINPUT ki; > HARDWAREINPUT hi; > } u; >} TEST_INPUT; > > > >static BOOL bMenuVisible; >static HMENU hMenus[4]; > > > > > >static struct { > LPCSTR text; > SIZE size; > SIZE sc_size; >} MOD_txtsizes[] = { > { "Pinot &Noir" }, > { "&Merlot\bF4" }, > { "Shira&z\tAlt+S" }, > { "" }, > { ((void *)0) } >}; > >static unsigned int MOD_maxid; >static RECT MOD_rc[8]; >static int MOD_avec, MOD_hic; >static int MOD_odheight; >static SIZE MODsizes[8]= { {10, 10},{10, 10}, > {10, 10},{10, 10}}; >static int MOD_GotDrawItemMsg = 0; > >static LRESULT __attribute__((__stdcall__)) menu_ownerdraw_wnd_proc(HWND hwnd, UINT msg, > WPARAM wparam, LPARAM lparam) >{ > switch (msg) > { > case 0x002c: > { > MEASUREITEMSTRUCT* pmis = (MEASUREITEMSTRUCT*)lparam; > if( winetest_debug) > (winetest_set_location("menu.c", 125), 0) ? (void)0 : winetest_trace("WM_MEASUREITEM received data %lx size %dx%d\n", > pmis->itemData, pmis->itemWidth, pmis->itemHeight); > MOD_odheight = pmis->itemHeight; > pmis->itemWidth = MODsizes[pmis->itemData].cx; > pmis->itemHeight = MODsizes[pmis->itemData].cy; > return 1; > } > case 0x002b: > { > DRAWITEMSTRUCT * pdis; > TEXTMETRIC tm; > HPEN oldpen; > char chrs[]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; > SIZE sz; > int i; > pdis = (DRAWITEMSTRUCT *) lparam; > if( winetest_debug) { > RECT rc; > GetMenuItemRect( hwnd, (HMENU)pdis->hwndItem, pdis->itemData ,&rc); > (winetest_set_location("menu.c", 144), 0) ? (void)0 : winetest_trace("WM_DRAWITEM received hwnd %p hmenu %p itemdata %ld item %d rc %d,%d-%d,%d itemrc: %d,%d-%d,%d\n", > hwnd, (HMENU)pdis->hwndItem, pdis->itemData, > pdis->itemID, pdis->rcItem.left, pdis->rcItem.top, > pdis->rcItem.right,pdis->rcItem.bottom, > rc.left,rc.top,rc.right,rc.bottom); > oldpen=SelectObject( pdis->hDC, GetStockObject( > pdis->itemState & 0x0001 ? 6 :7)); > Rectangle( pdis->hDC, pdis->rcItem.left,pdis->rcItem.top, > pdis->rcItem.right,pdis->rcItem.bottom ); > SelectObject( pdis->hDC, oldpen); > } > > if( ! MOD_txtsizes[0].size.cx) > for(i = 0; MOD_txtsizes[i].text; i++) { > char buf[100], *p; > RECT rc={0,0,0,0}; > strcpy( buf, MOD_txtsizes[i].text); > if( ( p = (__extension__ (__builtin_constant_p ('\t') && !__builtin_constant_p (buf) && ('\t') == '\0' ? (char *) __rawmemchr (buf, '\t') : __builtin_strchr (buf, '\t'))))) { > *p = '\0'; > DrawTextA( pdis->hDC, p + 1, -1, &rc, > 0x00000020|0x00000400); > MOD_txtsizes[i].sc_size.cx= rc.right - rc.left; > MOD_txtsizes[i].sc_size.cy= rc.bottom - rc.top; > } > DrawTextA( pdis->hDC, buf, -1, &rc, > 0x00000020|0x00000400); > MOD_txtsizes[i].size.cx= rc.right - rc.left; > MOD_txtsizes[i].size.cy= rc.bottom - rc.top; > } > > if( pdis->itemData > MOD_maxid) return 1; > > MOD_rc[pdis->itemData] = pdis->rcItem; > > GetTextExtentPointA( pdis->hDC, chrs, 52, &sz ); > MOD_avec = (sz.cx + 26)/52; > GetTextMetricsA( pdis->hDC, &tm); > MOD_hic = tm.tmHeight; > MOD_GotDrawItemMsg = 1; > return 1; > } > case 0x0121: > { > PostMessageA(hwnd, 0x001f, 0, 0); > return 1; > } > > } > return DefWindowProcA(hwnd, msg, wparam, lparam); >} > >static void register_menu_check_class(void) >{ > WNDCLASS wc = > { > 0, > menu_check_wnd_proc, > 0, > 0, > GetModuleHandleA(((void *)0)), > ((void *)0), > LoadCursorA(((void *)0), (LPSTR)((ULONG_PTR)((WORD)(32512)))), > (HBRUSH)(15 +1), > ((void *)0), > "WineMenuCheck", > }; > > atomMenuCheckClass = RegisterClassA(&wc); >} > > > >static void test_menu_locked_by_window(void) >{ > BOOL ret; > HMENU hmenu; > HWND hwnd = CreateWindowExA(0, ((LPTSTR)((ULONG_PTR)((WORD)(atomMenuCheckClass)))), ((void *)0), > 0x10000000L, ((INT)0x80000000), ((INT)0x80000000), 200, 200, > ((void *)0), ((void *)0), ((void *)0), ((void *)0)); > (winetest_set_location("menu.c", 223), 0) ? 0 : winetest_ok(hwnd != ((void *)0), "CreateWindowEx failed with error %d\n", GetLastError()); > hmenu = CreateMenu(); > (winetest_set_location("menu.c", 225), 0) ? 0 : winetest_ok(hmenu != ((void *)0), "CreateMenu failed with error %d\n", GetLastError()); > ret = InsertMenuA(hmenu, 0, 0x0000, 0, "&Test"); > (winetest_set_location("menu.c", 227), 0) ? 0 : winetest_ok(ret, "InsertMenu failed with error %d\n", GetLastError()); > ret = SetMenu(hwnd, hmenu); > (winetest_set_location("menu.c", 229), 0) ? 0 : winetest_ok(ret, "SetMenu failed with error %d\n", GetLastError()); > ret = DestroyMenu(hmenu); > (winetest_set_location("menu.c", 231), 0) ? 0 : winetest_ok(ret, "DestroyMenu failed with error %d\n", GetLastError()); > > ret = DrawMenuBar(hwnd); > for (winetest_start_todo("wine"); winetest_loop_todo(); winetest_end_todo("wine")) { > (winetest_set_location("menu.c", 235), 0) ? 0 : winetest_ok(ret, "DrawMenuBar failed with error %d\n", GetLastError()); > } > ret = IsMenu(GetMenu(hwnd)); > (winetest_set_location("menu.c", 238), 0) ? 0 : winetest_ok(!ret, "Menu handle should have been destroyed\n"); > > SendMessageA(hwnd, 0x0112, 0xf100, 0); > > ret = GetWindowLongA(hwnd, (-21)); > for (winetest_start_todo("wine"); winetest_loop_todo(); winetest_end_todo("wine")) { > (winetest_set_location("menu.c", 244), 0) ? 0 : winetest_ok(ret, "WM_INITMENU should have been sent\n"); > } > > DestroyWindow(hwnd); >} > >static void test_menu_ownerdraw(void) >{ > int i,j,k; > BOOL ret; > HMENU hmenu; > LONG leftcol; > HWND hwnd = CreateWindowExA(0, ((LPTSTR)((ULONG_PTR)((WORD)(atomMenuCheckClass)))), ((void *)0), > 0x10000000L, ((INT)0x80000000), ((INT)0x80000000), 200, 200, > ((void *)0), ((void *)0), ((void *)0), ((void *)0)); > (winetest_set_location("menu.c", 259), 0) ? 0 : winetest_ok(hwnd != ((void *)0), "CreateWindowEx failed with error %d\n", GetLastError()); > if( !hwnd) return; > SetWindowLongA( hwnd, (-4), (LONG)menu_ownerdraw_wnd_proc); > hmenu = CreatePopupMenu(); > (winetest_set_location("menu.c", 263), 0) ? 0 : winetest_ok(hmenu != ((void *)0), "CreateMenu failed with error %d\n", GetLastError()); > if( !hmenu) { DestroyWindow(hwnd);return;} > k=0; > for( j=0;j<2;j++) > for(i=0;i<2;i++) { > ret = AppendMenuA( hmenu, 0x0100 | > (i==0 ? 0x0040 : 0), k, (LPCTSTR) k); > k++; > (winetest_set_location("menu.c", 271), 0) ? 0 : winetest_ok( ret, "AppendMenu failed for %d\n", k-1); > } > MOD_maxid = k-1; > ((k <= sizeof(MOD_rc)/sizeof(RECT)) ? (void) (0) : __assert_fail ("k <= sizeof(MOD_rc)/sizeof(RECT)", "menu.c", 274, __PRETTY_FUNCTION__)); > > ret = TrackPopupMenu( hmenu, 0x100, 100,100, 0, hwnd, ((void *)0)); > > > (winetest_set_location("menu.c", 279), 0) ? 0 : winetest_ok( MOD_rc[0].right + 4 == MOD_rc[2].left, > "item rectangles are not separated by 4 pixels space\n"); > > (winetest_set_location("menu.c", 282), 0) ? 0 : winetest_ok( MOD_rc[0].bottom - MOD_rc[0].top == 10, > "menu item has wrong height: %d should be %d\n", > MOD_rc[0].bottom - MOD_rc[0].top, 10); > > (winetest_set_location("menu.c", 286), 0) ? 0 : winetest_ok( MOD_rc[0].bottom - MOD_rc[1].top == 0, > "There should not be a space between the rows, gap is %d\n", > MOD_rc[0].bottom - MOD_rc[1].top); > > > (winetest_set_location("menu.c", 291), 0) ? 0 : winetest_ok( MOD_odheight == ((WORD)((DWORD_PTR)(GetDialogBaseUnits()) >> 16)) || > MOD_odheight == MOD_hic, > "Wrong height field in MEASUREITEMSTRUCT, expected %d or %d actual %d\n", > ((WORD)((DWORD_PTR)(GetDialogBaseUnits()) >> 16)), MOD_hic, MOD_odheight); > > > leftcol= MOD_rc[0].left; > ModifyMenuA( hmenu, 0, 0x0000| 0x0100| 0x0800, 0, 0); > > ret = TrackPopupMenu( hmenu, 0x100, 100,100, 0, hwnd, ((void *)0)); > > (winetest_set_location("menu.c", 302), 0) ? 0 : winetest_ok( leftcol == MOD_rc[0].left + 4, > "columns should be 4 pixels to the left (actual %d).\n", > leftcol - MOD_rc[0].left); > > (winetest_set_location("menu.c", 306), 0) ? 0 : winetest_ok( MOD_rc[0].right - MOD_rc[0].left == 2 * MOD_avec + 10, > "width of owner drawn menu item is wrong. Got %d expected %d\n", > MOD_rc[0].right - MOD_rc[0].left , 2*MOD_avec + 10); > > (winetest_set_location("menu.c", 310), 0) ? 0 : winetest_ok( MOD_rc[0].bottom - MOD_rc[0].top == 10, > "Height is incorrect. Got %d expected %d\n", > MOD_rc[0].bottom - MOD_rc[0].top, 10); > > > ret = DestroyMenu(hmenu); > (winetest_set_location("menu.c", 316), 0) ? 0 : winetest_ok(ret, "DestroyMenu failed with error %d\n", GetLastError()); > hmenu = CreateMenu(); > (winetest_set_location("menu.c", 318), 0) ? 0 : winetest_ok(hmenu != ((void *)0), "CreateMenu failed with error %d\n", GetLastError()); > if( !hmenu) { DestroyWindow(hwnd);return;} > MOD_maxid=1; > for(i=0;i<2;i++) { > ret = AppendMenuA( hmenu, 0x0100 , i, 0); > (winetest_set_location("menu.c", 323), 0) ? 0 : winetest_ok( ret, "AppendMenu failed for %d\n", i); > } > ret = SetMenu( hwnd, hmenu); > UpdateWindow( hwnd); > (winetest_set_location("menu.c", 327), 0) ? 0 : winetest_ok(ret, "SetMenu failed with error %d\n", GetLastError()); > > (winetest_set_location("menu.c", 329), 0) ? 0 : winetest_ok( MOD_rc[0].right - MOD_rc[0].left == 2 * MOD_avec + 10, > "width of owner drawn menu item is wrong. Got %d expected %d\n", > MOD_rc[0].right - MOD_rc[0].left , 2*MOD_avec + 10); > > (winetest_set_location("menu.c", 333), 0) ? 0 : winetest_ok( MOD_rc[0].bottom - MOD_rc[0].top == GetSystemMetrics( 15) - 1, > "Height of owner drawn menu item is wrong. Got %d expected %d\n", > MOD_rc[0].bottom - MOD_rc[0].top, GetSystemMetrics( 15) - 1); > > > ret = DestroyMenu(hmenu); > (winetest_set_location("menu.c", 339), 0) ? 0 : winetest_ok(ret, "DestroyMenu failed with error %d\n", GetLastError()); > DestroyWindow(hwnd); >} > > >static void test_mbs_help( int ispop, int hassub, int mnuopt, > HWND hwnd, int arrowwidth, int count, HBITMAP hbmp, > SIZE bmpsize, LPCSTR text, SIZE size, SIZE sc_size) >{ > BOOL ret; > HMENU hmenu, submenu; > MENUITEMINFO mii={ sizeof( MENUITEMINFO )}; > MENUINFO mi; > RECT rc; > CHAR text_copy[16]; > int hastab, expect; > int failed = 0; > > MOD_GotDrawItemMsg = 0; > mii.fMask = 0x00000100 | 0x00000020 | 0x00000001; > mii.fType = 0; > mii.fState = 0x0008; > mii.dwItemData =0; > MODsizes[0] = bmpsize; > hastab = 0; > if( text ) { > char *p; > mii.fMask |= 0x00000040; > strcpy(text_copy, text); > mii.dwTypeData = text_copy; > if( ( p = (__extension__ (__builtin_constant_p ('\t') && !__builtin_constant_p (text) && ('\t') == '\0' ? (char *) __rawmemchr (text, '\t') : __builtin_strchr (text, '\t'))))) { > hastab = *(p + 1) ? 2 : 1; > } > } > > if(hastab && !ispop) return; > if( hbmp) { > mii.fMask |= 0x00000080; > mii.hbmpItem = hbmp; > } > submenu = CreateMenu(); > (winetest_set_location("menu.c", 380), 0) ? 0 : winetest_ok( submenu != 0, "CreateMenu failed with error %d\n", GetLastError()); > if( ispop) > hmenu = CreatePopupMenu(); > else > hmenu = CreateMenu(); > (winetest_set_location("menu.c", 385), 0) ? 0 : winetest_ok( hmenu != 0, "Create{Popup}Menu failed with error %d\n", GetLastError()); > if( hassub) { > mii.fMask |= 0x00000004; > mii.hSubMenu = submenu; > } > if( mnuopt) { > mi.cbSize = sizeof(mi); > mi.fMask = 0x00000010; > pGetMenuInfo( hmenu, &mi); > mi.dwStyle |= mnuopt == 1 ? 0x80000000 : 0x04000000; > ret = pSetMenuInfo( hmenu, &mi); > (winetest_set_location("menu.c", 396), 0) ? 0 : winetest_ok( ret, "SetMenuInfo failed with error %d\n", GetLastError()); > } > ret = InsertMenuItemA( hmenu, 0, 0, &mii); > (winetest_set_location("menu.c", 399), 0) ? 0 : winetest_ok( ret, "InsertMenuItem failed with error %d\n", GetLastError()); > failed = !ret; > if( winetest_debug) { > HDC hdc=GetDC(hwnd); > RECT rc = {100, 50, 400, 70}; > char buf[100]; > > sprintf( buf,"%d text \"%s\" mnuopt %d", count, text ? text: "(nil)", mnuopt); > FillRect( hdc, &rc, (HBRUSH) 5); > TextOutA( hdc, 100, 50, buf, strlen( buf)); > ReleaseDC( hwnd, hdc); > } > if(ispop) > ret = TrackPopupMenu( hmenu, 0x100, 100,100, 0, hwnd, ((void *)0)); > else { > ret = SetMenu( hwnd, hmenu); > (winetest_set_location("menu.c", 415), 0) ? 0 : winetest_ok(ret, "SetMenu failed with error %d\n", GetLastError()); > DrawMenuBar( hwnd); > } > ret = GetMenuItemRect( hwnd, hmenu, 0, &rc); > > if( ispop) > expect = ( text || hbmp ? > 4 + (mnuopt != 1 ? GetSystemMetrics(71) : 0) > : 0) + > arrowwidth + MOD_avec + (hbmp ? bmpsize.cx + 2 : 0) + > (text && hastab ? > MOD_avec + ( hastab==2 ? sc_size.cx : 0) : 0) + > (text ? 2 + (text[0] ? size.cx :0): 0) ; > else > expect = !(text || hbmp) ? 0 : > ( hbmp ? (text ? 2:0) + bmpsize.cx : 0 ) + > (text ? 2 * MOD_avec + (text[0] ? size.cx :0): 0) ; > (winetest_set_location("menu.c", 432), 0) ? 0 : winetest_ok( rc.right - rc.left == expect, > "menu width wrong, got %d expected %d\n", rc.right - rc.left, expect); > failed = failed || !(rc.right - rc.left == expect); > > if( ispop) > expect = (((( !(text || hbmp) ? GetSystemMetrics( 55)/2 : 0)) > (((((text ? (((2 + size.cy) > (MOD_hic + 4)) ? (2 + size.cy) : (MOD_hic + 4)) : 0)) > ((hbmp ? bmpsize.cy + 2 : 0))) ? ((text ? (((2 + size.cy) > (MOD_hic + 4)) ? (2 + size.cy) : (MOD_hic + 4)) : 0)) : ((hbmp ? bmpsize.cy + 2 : 0))))) ? (( !(text || hbmp) ? GetSystemMetrics( 55)/2 : 0)) : (((((text ? (((2 + size.cy) > (MOD_hic + 4)) ? (2 + size.cy) : (MOD_hic + 4)) : 0)) > ((hbmp ? bmpsize.cy + 2 : 0))) ? ((text ? (((2 + size.cy) > (MOD_hic + 4)) ? (2 + size.cy) : (MOD_hic + 4)) : 0)) : ((hbmp ? bmpsize.cy + 2 : 0))))); > > > else > expect = ( !(text || hbmp) ? GetSystemMetrics( 55)/2 : > (((GetSystemMetrics( 15) - 1) > ((hbmp ? bmpsize.cy : 0))) ? (GetSystemMetrics( 15) - 1) : ((hbmp ? bmpsize.cy : 0)))); > (winetest_set_location("menu.c", 443), 0) ? 0 : winetest_ok( rc.bottom - rc.top == expect, > "menu height wrong, got %d expected %d (%d)\n", > rc.bottom - rc.top, expect, GetSystemMetrics( 15)); > failed = failed || !(rc.bottom - rc.top == expect); > if( hbmp == ((HBITMAP) -1) && MOD_GotDrawItemMsg) { > > > expect = ispop ? (4 + ( mnuopt ? 0 : GetSystemMetrics(71))) > : 3; > (winetest_set_location("menu.c", 452), 0) ? 0 : winetest_ok( expect == MOD_rc[0].left, > "bitmap left is %d expected %d\n", MOD_rc[0].left, expect); > failed = failed || !(expect == MOD_rc[0].left); > > expect = (rc.bottom - rc.top - MOD_rc[0].bottom + MOD_rc[0].top) / 2; > (winetest_set_location("menu.c", 457), 0) ? 0 : winetest_ok( expect == MOD_rc[0].top, > "bitmap top is %d expected %d\n", MOD_rc[0].top, expect); > failed = failed || !(expect == MOD_rc[0].top); > } > > if( failed) { > (winetest_set_location("menu.c", 463), 0) ? (void)0 : winetest_trace("*** count %d text \"%s\" bitmap %p bmsize %d,%d textsize %d+%d,%d mnuopt %d hastab %d\n", > count, text ? text: "(nil)", hbmp, bmpsize.cx, bmpsize.cy, > size.cx, size.cy, sc_size.cx, mnuopt, hastab); > (winetest_set_location("menu.c", 466), 0) ? (void)0 : winetest_trace(" check %d,%d arrow %d avechar %d\n", > GetSystemMetrics(71 ), > GetSystemMetrics(72 ),arrowwidth, MOD_avec); > if( hbmp == ((HBITMAP) -1)) > (winetest_set_location("menu.c", 470), 0) ? (void)0 : winetest_trace( " rc %d,%d-%d,%d bmp.rc %d,%d-%d,%d\n", > rc.left, rc.top, rc.top, rc.bottom, MOD_rc[0].left, > MOD_rc[0].top,MOD_rc[0].right, MOD_rc[0].bottom); > } > > ret = DestroyMenu(submenu); > (winetest_set_location("menu.c", 476), 0) ? 0 : winetest_ok(ret, "DestroyMenu failed with error %d\n", GetLastError()); > ret = DestroyMenu(hmenu); > (winetest_set_location("menu.c", 478), 0) ? 0 : winetest_ok(ret, "DestroyMenu failed with error %d\n", GetLastError()); >} > > >static void test_menu_bmp_and_string(void) >{ > BYTE bmfill[300]; > HBITMAP hbm_arrow; > BITMAP bm; > INT arrowwidth; > HWND hwnd; > int count, szidx, txtidx, bmpidx, hassub, mnuopt, ispop; > > if( !pGetMenuInfo) > { > (winetest_set_location("menu.c", 493), 0) ? (void)0 : winetest_skip("GetMenuInfo is not available\n"); > return; > } > > memset( bmfill, 0xcc, sizeof( bmfill)); > hwnd = CreateWindowExA(0, ((LPTSTR)((ULONG_PTR)((WORD)(atomMenuCheckClass)))), ((void *)0), > 0x10000000L, ((INT)0x80000000), ((INT)0x80000000), 200, 200, > ((void *)0), ((void *)0), ((void *)0), ((void *)0)); > hbm_arrow=LoadBitmapA( 0, (CHAR*)32739); > GetObjectA( hbm_arrow, sizeof(bm), &bm); > arrowwidth = bm.bmWidth; > > (winetest_set_location("menu.c", 505), 0) ? 0 : winetest_ok(hwnd != ((void *)0), "CreateWindowEx failed with error %d\n", GetLastError()); > if( !hwnd) return; > SetWindowLongA( hwnd, (-4), (LONG)menu_ownerdraw_wnd_proc); > > if( winetest_debug) > (winetest_set_location("menu.c", 510), 0) ? (void)0 : winetest_trace(" check %d,%d arrow %d avechar %d\n", > GetSystemMetrics(71 ), > GetSystemMetrics(72 ),arrowwidth, MOD_avec); > count = 0; > MOD_maxid = 0; > for( ispop=1; ispop >= 0; ispop--){ > static SIZE bmsizes[]= { > {10,10},{38,38},{1,30},{55,5}}; > for( szidx=0; szidx < sizeof( bmsizes) / sizeof( SIZE); szidx++) { > HBITMAP hbm = CreateBitmap( bmsizes[szidx].cx, bmsizes[szidx].cy,1,1,bmfill); > HBITMAP bitmaps[] = { ((HBITMAP) -1), hbm, ((void *)0) }; > (winetest_set_location("menu.c", 521), 0) ? 0 : winetest_ok( (int)hbm, "CreateBitmap failed err %d\n", GetLastError()); > for( txtidx = 0; txtidx < sizeof(MOD_txtsizes)/sizeof(MOD_txtsizes[0]); txtidx++) { > for( hassub = 0; hassub < 2 ; hassub++) { > for( mnuopt = 0; mnuopt < 3 ; mnuopt++){ > for( bmpidx = 0; bmpidx <sizeof(bitmaps)/sizeof(HBITMAP); bmpidx++) { > > if( !bitmaps[bmpidx] && szidx > 0) continue; > if( !ispop && hassub) continue; > test_mbs_help( ispop, hassub, mnuopt, > hwnd, arrowwidth, ++count, > bitmaps[bmpidx], > bmsizes[szidx], > MOD_txtsizes[txtidx].text, > MOD_txtsizes[txtidx].size, > MOD_txtsizes[txtidx].sc_size); > } > } > } > } > DeleteObject( hbm); > } > } > > DestroyWindow(hwnd); >} > >static void test_menu_add_string( void ) >{ > HMENU hmenu; > MENUITEMINFO info; > BOOL rc; > int ret; > > char string[0x80]; > char string2[0x80]; > > char strback[0x80]; > WCHAR strbackW[0x80]; > static CHAR blah[] = "blah"; > static const WCHAR expectedString[] = {'D','u','m','m','y',' ','s','t','r','i','n','g', 0}; > > hmenu = CreateMenu(); > > memset( &info, 0, sizeof info ); > info.cbSize = sizeof info; > info.fMask = 0x00000100 | 0x00000040 | 0x00000001 | 0x00000002; > info.dwTypeData = blah; > info.cch = 6; > info.dwItemData = 0; > info.wID = 1; > info.fState = 0; > InsertMenuItemA(hmenu, 0, 1, &info ); > > memset( &info, 0, sizeof info ); > info.cbSize = sizeof info; > info.fMask = 0x00000100 | 0x00000040 | 0x00000001 | 0x00000020 | 0x00000002; > info.dwTypeData = string; > info.cch = sizeof string; > string[0] = 0; > GetMenuItemInfoA( hmenu, 0, 1, &info ); > > (winetest_set_location("menu.c", 582), 0) ? 0 : winetest_ok( !__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (string) && __builtin_constant_p ("blah") && (__s1_len = strlen (string), __s2_len = strlen ("blah"), (!((size_t)(const void *)((string) + 1) - (size_t)(const void *)(string) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("blah") + 1) - (size_t)(const void *)("blah") == 1) || __s2_len >= 4)) ? __builtin_strcmp (string, "blah") : (__builtin_constant_p (string) && ((size_t)(const void *)((string) + 1) - (size_t)(const void *)(string) == 1) && (__s1_len = strlen (string), __s1_len < 4) ? (__builtin_constant_p ("blah") && ((size_t)(const void *)(("blah") + 1) - (size_t)(const void *)("blah") == 1) ? __builtin_strcmp (string, "blah") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("blah"); register int __result = (((__const unsigned char *) (__const char *) (string))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (string))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (string))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (string))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("blah") && ((size_t)(const void *)(("blah") + 1) - (size_t)(const void *)("blah") == 1) && (__s2_len = strlen ("blah"), __s2_len < 4) ? (__builtin_constant_p (string) && ((size_t)(const void *)((string) + 1) - (size_t)(const void *)(string) == 1) ? __builtin_strcmp (string, "blah") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (string); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("blah"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("blah"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("blah"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("blah"))[3]); } } __result; }))) : __builtin_strcmp (string, "blah")))); }), "menu item name differed\n"); > > > strcpy(string, "Dummy string"); > memset(&info, 0x00, sizeof(info)); > info.cbSize= sizeof(MENUITEMINFO); > info.fMask= 0x00000100 | 0x00000040; > info.fType= 0x0100; > info.dwTypeData= string; > rc = InsertMenuItemA( hmenu, 0, 1, &info ); > (winetest_set_location("menu.c", 592), 0) ? 0 : winetest_ok (rc, "InsertMenuItem failed\n"); > > strcpy(string,"Garbage"); > (winetest_set_location("menu.c", 595), 0) ? 0 : winetest_ok (GetMenuStringA( hmenu, 0, strback, 99, 0x0400), "GetMenuString on ownerdraw entry failed\n"); > (winetest_set_location("menu.c", 596), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (strback) && __builtin_constant_p ("Dummy string") && (__s1_len = strlen (strback), __s2_len = strlen ("Dummy string"), (!((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Dummy string") + 1) - (size_t)(const void *)("Dummy string") == 1) || __s2_len >= 4)) ? __builtin_strcmp (strback, "Dummy string") : (__builtin_constant_p (strback) && ((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) && (__s1_len = strlen (strback), __s1_len < 4) ? (__builtin_constant_p ("Dummy string") && ((size_t)(const void *)(("Dummy string") + 1) - (size_t)(const void *)("Dummy string") == 1) ? __builtin_strcmp (strback, "Dummy string") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Dummy string"); register int __result = (((__const unsigned char *) (__const char *) (strback))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (strback))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (strback))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (strback))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Dummy string") && ((size_t)(const void *)(("Dummy string") + 1) - (size_t)(const void *)("Dummy string") == 1) && (__s2_len = strlen ("Dummy string"), __s2_len < 4) ? (__builtin_constant_p (strback) && ((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) ? __builtin_strcmp (strback, "Dummy string") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (strback); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Dummy string"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Dummy string"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Dummy string"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Dummy string"))[3]); } } __result; }))) : __builtin_strcmp (strback, "Dummy string")))); }), "Menu text from Ansi version incorrect\n"); > > SetLastError(0xdeadbeef); > ret = GetMenuStringW( hmenu, 0, (WCHAR *)strbackW, 99, 0x0400); > if (GetLastError() == 120) > (winetest_set_location("menu.c", 601), 0) ? (void)0 : winetest_skip("GetMenuStringW is not implemented\n"); > else > { > (winetest_set_location("menu.c", 604), 0) ? 0 : winetest_ok (ret, "GetMenuStringW on ownerdraw entry failed\n"); > (winetest_set_location("menu.c", 605), 0) ? 0 : winetest_ok (!lstrcmpW( strbackW, expectedString ), "Menu text from Unicode version incorrect\n"); > } > > > memset(&info, 0x00, sizeof(info)); > info.cbSize= sizeof(MENUITEMINFO); > info.fMask= 0x00000100; > info.fType= 0x0000; > info.dwTypeData= (char *)0xdeadbeef; > rc = SetMenuItemInfoA( hmenu, 0, 1, &info ); > (winetest_set_location("menu.c", 615), 0) ? 0 : winetest_ok (rc, "SetMenuItemInfo failed\n"); > > > (winetest_set_location("menu.c", 618), 0) ? 0 : winetest_ok (GetMenuStringA( hmenu, 0, strback, 99, 0x0400), "GetMenuString on ownerdraw entry failed\n"); > (winetest_set_location("menu.c", 619), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (strback) && __builtin_constant_p ("Dummy string") && (__s1_len = strlen (strback), __s2_len = strlen ("Dummy string"), (!((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Dummy string") + 1) - (size_t)(const void *)("Dummy string") == 1) || __s2_len >= 4)) ? __builtin_strcmp (strback, "Dummy string") : (__builtin_constant_p (strback) && ((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) && (__s1_len = strlen (strback), __s1_len < 4) ? (__builtin_constant_p ("Dummy string") && ((size_t)(const void *)(("Dummy string") + 1) - (size_t)(const void *)("Dummy string") == 1) ? __builtin_strcmp (strback, "Dummy string") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Dummy string"); register int __result = (((__const unsigned char *) (__const char *) (strback))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (strback))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (strback))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (strback))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Dummy string") && ((size_t)(const void *)(("Dummy string") + 1) - (size_t)(const void *)("Dummy string") == 1) && (__s2_len = strlen ("Dummy string"), __s2_len < 4) ? (__builtin_constant_p (strback) && ((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) ? __builtin_strcmp (strback, "Dummy string") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (strback); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Dummy string"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Dummy string"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Dummy string"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Dummy string"))[3]); } } __result; }))) : __builtin_strcmp (strback, "Dummy string")))); }), "Menu text from Ansi version incorrect\n"); > > > memset(&info, 0x00, sizeof(info)); > info.cbSize= sizeof(MENUITEMINFO); > info.fMask= 0x00000100; > info.fType= 0x0004; > info.dwTypeData= (char *)0xdeadbee2; > rc = SetMenuItemInfoA( hmenu, 0, 1, &info ); > (winetest_set_location("menu.c", 628), 0) ? 0 : winetest_ok (!rc, "SetMenuItemInfo unexpectedly worked\n"); > > > info.fType= 0x0100; > info.dwTypeData= (char *)0xdeadbee3; > rc = SetMenuItemInfoA( hmenu, 0, 1, &info ); > (winetest_set_location("menu.c", 634), 0) ? 0 : winetest_ok (rc, "SetMenuItemInfo failed\n"); > > > (winetest_set_location("menu.c", 637), 0) ? 0 : winetest_ok (GetMenuStringA( hmenu, 0, strback, 99, 0x0400), "GetMenuString on ownerdraw entry failed\n"); > (winetest_set_location("menu.c", 638), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (strback) && __builtin_constant_p ("Dummy string") && (__s1_len = strlen (strback), __s2_len = strlen ("Dummy string"), (!((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Dummy string") + 1) - (size_t)(const void *)("Dummy string") == 1) || __s2_len >= 4)) ? __builtin_strcmp (strback, "Dummy string") : (__builtin_constant_p (strback) && ((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) && (__s1_len = strlen (strback), __s1_len < 4) ? (__builtin_constant_p ("Dummy string") && ((size_t)(const void *)(("Dummy string") + 1) - (size_t)(const void *)("Dummy string") == 1) ? __builtin_strcmp (strback, "Dummy string") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Dummy string"); register int __result = (((__const unsigned char *) (__const char *) (strback))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (strback))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (strback))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (strback))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Dummy string") && ((size_t)(const void *)(("Dummy string") + 1) - (size_t)(const void *)("Dummy string") == 1) && (__s2_len = strlen ("Dummy string"), __s2_len < 4) ? (__builtin_constant_p (strback) && ((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) ? __builtin_strcmp (strback, "Dummy string") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (strback); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Dummy string"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Dummy string"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Dummy string"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Dummy string"))[3]); } } __result; }))) : __builtin_strcmp (strback, "Dummy string")))); }), "Menu text from Ansi version incorrect\n"); > > > memset(&info, 0x00, sizeof(info)); > info.cbSize= sizeof(MENUITEMINFO); > info.fMask= 0x00000040; > strcpy(string2, "string2"); > info.dwTypeData= string2; > rc = SetMenuItemInfoA( hmenu, 0, 1, &info ); > (winetest_set_location("menu.c", 647), 0) ? 0 : winetest_ok (rc, "SetMenuItemInfo failed\n"); > > (winetest_set_location("menu.c", 649), 0) ? 0 : winetest_ok (GetMenuStringA( hmenu, 0, strback, 99, 0x0400), "GetMenuString on ownerdraw entry failed\n"); > (winetest_set_location("menu.c", 650), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (strback) && __builtin_constant_p ("string2") && (__s1_len = strlen (strback), __s2_len = strlen ("string2"), (!((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("string2") + 1) - (size_t)(const void *)("string2") == 1) || __s2_len >= 4)) ? __builtin_strcmp (strback, "string2") : (__builtin_constant_p (strback) && ((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) && (__s1_len = strlen (strback), __s1_len < 4) ? (__builtin_constant_p ("string2") && ((size_t)(const void *)(("string2") + 1) - (size_t)(const void *)("string2") == 1) ? __builtin_strcmp (strback, "string2") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("string2"); register int __result = (((__const unsigned char *) (__const char *) (strback))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (strback))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (strback))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (strback))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("string2") && ((size_t)(const void *)(("string2") + 1) - (size_t)(const void *)("string2") == 1) && (__s2_len = strlen ("string2"), __s2_len < 4) ? (__builtin_constant_p (strback) && ((size_t)(const void *)((strback) + 1) - (size_t)(const void *)(strback) == 1) ? __builtin_strcmp (strback, "string2") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (strback); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("string2"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("string2"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("string2"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("string2"))[3]); } } __result; }))) : __builtin_strcmp (strback, "string2")))); }), "Menu text from Ansi version incorrect\n"); > > > memset(&info, 0x00, sizeof(info)); > info.cbSize= sizeof(MENUITEMINFO); > info.fMask= 0x00000100 | 0x00000040; > info.fType= 0x0100; > rc = InsertMenuItemA( hmenu, 0, 1, &info ); > (winetest_set_location("menu.c", 658), 0) ? 0 : winetest_ok (rc, "InsertMenuItem failed\n"); > (winetest_set_location("menu.c", 659), 0) ? 0 : winetest_ok (!GetMenuStringA( hmenu, 0, ((void *)0), 0, 0x0400), > "GetMenuString on ownerdraw entry succeeded.\n"); > SetLastError(0xdeadbeef); > ret = GetMenuStringW( hmenu, 0, ((void *)0), 0, 0x0400); > if (GetLastError() == 120) > (winetest_set_location("menu.c", 664), 0) ? (void)0 : winetest_skip("GetMenuStringW is not implemented\n"); > else > (winetest_set_location("menu.c", 666), 0) ? 0 : winetest_ok (!ret, "GetMenuStringW on ownerdraw entry succeeded.\n"); > > DestroyMenu( hmenu ); >} > > >static int strncmpW( const WCHAR *str1, const WCHAR *str2, int n ) >{ > if (n <= 0) return 0; > while ((--n > 0) && *str1 && (*str1 == *str2)) { str1++; str2++; } > return *str1 - *str2; >} > >static WCHAR *strcpyW( WCHAR *dst, const WCHAR *src ) >{ > WCHAR *p = dst; > while ((*p++ = *src++)); > return dst; >} ># 816 "menu.c" >static void test_menu_iteminfo( void ) >{ > int S=sizeof( MENUITEMINFOA); > int ansi = 1; > char txtA[]="wine"; > char initA[]="XYZ"; > char emptyA[]=""; > WCHAR txtW[]={'W','i','n','e',0}; > WCHAR initW[]={'X','Y','Z',0}; > WCHAR emptyW[]={0}; > void *txt, *init, *empty, *string; > HBITMAP hbm = CreateBitmap(1,1,1,1,((void *)0)); > char stringA[0x80]; > HMENU submenu=CreateMenu(); > > do { > if( ansi) {txt=txtA;init=initA;empty=emptyA;string=stringA;} > else {txt=txtW;init=initW;empty=emptyW;string=stringA;} > (winetest_set_location("menu.c", 834), 0) ? (void)0 : winetest_trace( "%s string %p hbm %p txt %p\n", ansi ? "ANSI tests: " : "Unicode tests:", string, hbm, txt); > > > { MENUITEMINFOA info1={ S,0x00000010,0x0000,0,0,(void*)0,(void*)0,(void*)0,0,(void*)txt,0,(void*)0 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 837), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 837), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 837), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 840), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 840), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 842), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 842), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 842), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0000|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)0,0,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 845), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 845), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 847), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 847), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 847), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 850), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 850), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0004|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 852), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 852), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 852), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 855), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 855), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 858), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 858), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 858), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)((void *)0),0,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),4,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 861), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 861), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 863), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 863), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 863), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,5,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 866), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 866), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 868), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 868), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 868), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,3,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 871), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 871), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000100|0x00000040,0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)((void *)0),0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 873), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 873), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 873), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)((void *)0),0,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),0,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 876), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 876), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010|0x00000040,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 879), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(0)) { (winetest_set_location("menu.c", 879), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 879), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA einfoA={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 882), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 882), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 884), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 884), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 884), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010|0x00000040,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 887), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(0)) (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok( (0)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok( (0)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 887), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010|0x00000100,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 889), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(0)) { (winetest_set_location("menu.c", 889), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 889), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA einfoA={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 892), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 892), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 894), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 894), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 894), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 897), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(0)) (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok( (0)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok( (0)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 897), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010|0x00000080,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 899), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(0)) { (winetest_set_location("menu.c", 899), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 899), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA einfoA={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 902), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 902), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 905), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 905), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 905), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010|0x00000004,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010|0x00000004,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 908), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 908), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 910), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 910), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 910), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010|0x00000001,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010|0x00000001,0x0000,0,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 913), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 913), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010|0x00000002,0x0000,-1,888,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 915), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 915), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 915), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010|0x00000002,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010|0x00000002,0x0000,-9,888,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 918), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 918), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010|0x00000020,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,999,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 920), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 920), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 920), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010|0x00000020,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010|0x00000020,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,999,(void*)string,4,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 923), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 923), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 927), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 927), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 927), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000040|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000040|0x00000100,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 930), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 930), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 933), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 933), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 933), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000040|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000040|0x00000100,0x0000|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,0,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 936), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 936), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)((void *)0),0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 938), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 938), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 938), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000040|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000040|0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,0,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 941), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 941), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)((void *)0),0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 943), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 943), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 943), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 946), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 946), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 948), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 948), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 948), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0,-9,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 951), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 951), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000040|0x00000100,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 954), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 954), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 954), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000040|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000040|0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 957), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 957), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000040|0x00000100,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 960), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 960), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 960), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),4,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 963), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 963), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000040|0x00000100,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)((void *)0),0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 965), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 965), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 965), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000040|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000040|0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,0,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 968), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 968), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000040|0x00000100,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)((void *)0),0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 970), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 970), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 970), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000040|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000040|0x00000100,0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,0,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 973), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 973), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > > { MENUITEMINFOA info1={ S,0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 977), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 977), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 977), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 980), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 980), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 982), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 982), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 982), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000080|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000080|0x00000100,0,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 985), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 985), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000080|0x00000100,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 988), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(0)) { (winetest_set_location("menu.c", 988), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 988), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA einfoA={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 991), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 991), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000080|0x00000100,0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 994), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 994), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 994), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000080|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000080|0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 997), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 997), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000100,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1000), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(0)) { (winetest_set_location("menu.c", 1000), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1000), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA einfoA={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1003), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1003), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > > { MENUITEMINFOA info1={ S,0x00000004|0x00000100,0x0000,-1,-1,(void*)submenu,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1007), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1007), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1007), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000004,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000004,-9,-9,-9,(void*)submenu,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1010), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1010), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000004|0x00000100,0x0000,-1,-1,(void*)submenu,(void*)-1,(void*)-1,-1,(void*)empty,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1012), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1012), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1012), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000004,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000004,-9,-9,-9,(void*)submenu,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1015), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1015), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000004|0x00000100,0x0000,-1,-1,(void*)submenu,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1018), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1018), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1018), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000040|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000040|0x00000100,0x0000|0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,0,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1021), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1021), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > { MENUITEMINFOA info2A={ S,0x00000004|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000004|0x00000100,0x0800,-9,-9,(void*)submenu,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1024), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1024), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000004|0x00000100,0x0000,-1,-1,(void*)999,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1027), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(0)) { (winetest_set_location("menu.c", 1027), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1027), 0) ? 0 : winetest_ok( (0)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA einfoA={ -1,-1,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1030), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1030), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0800,0,0,(void*)0,(void*)0,(void*)0,0,(void*)txt,0,(void*)0 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1033), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1033), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1033), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)0,0,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1036), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1036), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0004|0x0800,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1038), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1038), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1038), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004|0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1041), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1041), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > > { MENUITEMINFOA info1={ S,0x00000040|0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1045), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1045), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1045), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000080,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000080,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1048), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1048), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000100|0x00000040|0x00000080,0x0800,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1051), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1051), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1051), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000080,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000080,0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1054), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1054), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000100|0x00000040,0x0800,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1057), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1057), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1057), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),4,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1060), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1060), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000040|0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1062), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1062), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1062), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,4,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1065), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1065), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000100|0x00000040|0x00000080,0x0800,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1067), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1067), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1067), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0800|0x0004,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,4,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1070), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1070), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000100|0x00000040,0x0800|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1073), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1073), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1073), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0800|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),4,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1076), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1076), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000100|0x00000040|0x00000080,0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1078), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1078), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1078), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,4,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1081), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1081), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000100|0x00000040|0x00000080,0x0800|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1083), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1083), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1083), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0800|0x0004|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,4,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1086), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1086), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000040|0x00000100|0x00000002,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1089), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1089), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1089), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),4,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1092), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1092), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000040,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1095), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1095), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1095), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { SetLastError( 0xdeadbeef); if(ansi)ret = ModifyMenuA( hmenu, 0, 0x0100, (UINT_PTR)-1, (char*)787); else ret = ModifyMenuW( hmenu, 0, 0x0100, (UINT_PTR)-1, (WCHAR*)787); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1096), 0) ? (void)0 : winetest_skip("ModifyMenu%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1096), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA should have failed.\n"); else (winetest_set_location("menu.c", 1096), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000020,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000020,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,787,(void*)string,4,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1099), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1099), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000040,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1102), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1102), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1102), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { SetLastError( 0xdeadbeef); if(ansi)ret = ModifyMenuA( hmenu, 0, 0x0004, (UINT_PTR)545, (char*)hbm); else ret = ModifyMenuW( hmenu, 0, 0x0004, (UINT_PTR)545, (WCHAR*)hbm); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1103), 0) ? (void)0 : winetest_skip("ModifyMenu%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1103), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA should have failed.\n"); else (winetest_set_location("menu.c", 1103), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000080|0x00000002,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000080|0x00000002,0x0004,-9,545,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1106), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1106), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000080,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1109), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1109), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1109), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000080|0x00000002,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000080|0x00000002,0x0000,-9,0,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1112), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1112), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > if( !stop) { SetLastError( 0xdeadbeef); if(ansi)ret = ModifyMenuA( hmenu, 0, 0x0000, (UINT_PTR)545, (char*)txt); else ret = ModifyMenuW( hmenu, 0, 0x0000, (UINT_PTR)545, (WCHAR*)txt); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1113), 0) ? (void)0 : winetest_skip("ModifyMenu%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1113), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA should have failed.\n"); else (winetest_set_location("menu.c", 1113), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000080|0x00000002,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000080|0x00000002,0x0000,-9,545,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1116), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1116), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000080,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1119), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1119), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1119), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { SetLastError( 0xdeadbeef); if(ansi)ret = ModifyMenuA( hmenu, 0, 0x0000, (UINT_PTR)545, (char*)((void *)0)); else ret = ModifyMenuW( hmenu, 0, 0x0000, (UINT_PTR)545, (WCHAR*)((void *)0)); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1120), 0) ? (void)0 : winetest_skip("ModifyMenu%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1120), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA should have failed.\n"); else (winetest_set_location("menu.c", 1120), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000080|0x00000002,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000080|0x00000002,0x0800,-9,545,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,0,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1123), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1123), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1126), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1126), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1126), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { SetLastError( 0xdeadbeef); if(ansi)ret = ModifyMenuA( hmenu, 0, 0x0000, (UINT_PTR)545, (char*)empty); else ret = ModifyMenuW( hmenu, 0, 0x0000, (UINT_PTR)545, (WCHAR*)empty); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1127), 0) ? (void)0 : winetest_skip("ModifyMenu%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1127), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA should have failed.\n"); else (winetest_set_location("menu.c", 1127), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000080|0x00000002,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000080|0x00000002,0x0000,-9,545,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,0,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1130), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1130), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1133), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1133), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1133), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { SetLastError( 0xdeadbeef); if(ansi)ret = ModifyMenuA( hmenu, 0, 0x0100, (UINT_PTR)-1, (char*)232); else ret = ModifyMenuW( hmenu, 0, 0x0100, (UINT_PTR)-1, (WCHAR*)232); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1134), 0) ? (void)0 : winetest_skip("ModifyMenu%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1134), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA should have failed.\n"); else (winetest_set_location("menu.c", 1134), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000080|0x00000020,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000080|0x00000020,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,232,(void*)string,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1137), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1137), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000100|0x00000040|0x00000080,0x0800,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1140), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1140), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1140), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0,-9,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1143), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1143), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S - 4,0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1146), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1146), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1146), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),0,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1149), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1149), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S - 4,0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1151), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1151), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1151), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000080|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000080|0x00000100,0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1154), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1154), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S - 4,0x00000040|0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1156), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1156), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1156), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1159), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1159), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S - 4,0x00000100|0x00000040|0x00000080,0x0800,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1161), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1161), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1161), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),4,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1164), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1164), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S - 4,0x00000100|0x00000040|0x00000080,0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1166), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1166), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1166), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),4,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1169), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1169), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S - 4,0x00000100|0x00000040|0x00000080,0x0800|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,6,(void*)hbm }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1171), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1171), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1171), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0800|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),4,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1174), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1174), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010|0x00000020,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,343,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1177), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1177), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1177), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010|0x00000020,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010|0x00000020,0x0000|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,343,(void*)0,0,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1180), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1180), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010|0x00000020,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,343,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1182), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1182), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1182), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0000|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)0,0,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1185), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1185), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > { MENUITEMINFOA info1={ S,0x00000010,0x0000|0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,343,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1187), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1187), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1187), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010|0x00000020,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010|0x00000020,0x0000|0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,0,(void*)0,0,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1190), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1190), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0000,-2,-2,(void*)-2,(void*)-2,(void*)-2,-2,(void*)txt,-2,(void*)-2 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1193), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1193), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1193), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { MENUITEMINFOA info1={ S,0x00000010,0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1194), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1194), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1194), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000040|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000040|0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1197), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1197), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000040,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1200), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1200), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1200), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { SetLastError( 0xdeadbeef); if(ansi)ret = ModifyMenuA( hmenu, 0, 0x0010, (UINT_PTR)submenu, (char*)txt); else ret = ModifyMenuW( hmenu, 0, 0x0010, (UINT_PTR)submenu, (WCHAR*)txt); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1201), 0) ? (void)0 : winetest_skip("ModifyMenu%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1201), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA should have failed.\n"); else (winetest_set_location("menu.c", 1201), 0) ? 0 : winetest_ok( (1)==ret,"ModifyMenuA failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000100|0x00000040|0x00000004,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100|0x00000040|0x00000004,0x0000,-9,-9,(void*)submenu,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1204), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1204), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)0 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1207), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1207), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000040|0x00000100,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)((void *)0),0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1210), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1210), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1210), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { MENUITEMINFOA info1={ S,0x00000040,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)txt,-1,(void*)-1 }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1211), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1211), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1211), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000040|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000040|0x00000100,0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,4,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1214), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (txt) && strlen (txt) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (txt) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (txt), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (txt, info2->dwTypeData) : (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) && (__s1_len = strlen (txt), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (txt))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (txt))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (txt))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (txt) && ((size_t)(const void *)((txt) + 1) - (size_t)(const void *)(txt) == 1) ? __builtin_strcmp (txt, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (txt); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (txt, info2->dwTypeData)))); }) : strncmp (txt, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)txt, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1214), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000040|0x00000100,0x0000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)((void *)0),0,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1217), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1217), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1217), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { MENUITEMINFOA info1={ S,0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)hbm }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1218), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1218), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1218), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000080|0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000080|0x00000100,0x0800,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)string,80,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1221), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (init) && strlen (init) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (init) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (init), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (init, info2->dwTypeData) : (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) && (__s1_len = strlen (init), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (init))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (init))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (init))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (init) && ((size_t)(const void *)((init) + 1) - (size_t)(const void *)(init) == 1) ? __builtin_strcmp (init, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (init); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (init, info2->dwTypeData)))); }) : strncmp (init, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)init, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (0)){ (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1221), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > > > { MENUITEMINFOA info1={ S,0x00000010,0x0004 | 0x4000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)((LONG)(((WORD)((DWORD_PTR)(((HBITMAP) 5)) & 0xFFFF)) | ((DWORD)((WORD)((DWORD_PTR)(0x1234) & 0xFFFF))) << 16)),-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1226), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1226), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1226), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004 | 0x4000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((HBITMAP) 5),0,(void*)((HBITMAP) 5) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1229), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1229), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0004 | 0x0020 | 0x00000200L | 0x4000 | 0x00002000L,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1232), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1232), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1232), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004 | 0x0020 | 0x00000200L | 0x4000 | 0x00002000L,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1235), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1235), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1238), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1238), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1238), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { MENUITEMINFOA info1={ S,0x00000001,-1,0x0008 | 0x1000 | 0x00000003L | 0x0080,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1239), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1239), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1239), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000001,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000001,-9,0x0008 | 0x1000 | 0x00000003L | 0x0080,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1242), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1242), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1245), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1245), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1245), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { MENUITEMINFOA info1={ S,0x00000008,0x00000200L,-1,-1,(void*)-1,(void*)hbm,(void*)hbm,-1,(void*)-1,-1,(void*)-1 }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1246), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1246), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1246), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000008 | 0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000008 | 0x00000010,0x0004,-9,-9,(void*)0,(void*)hbm,(void*)hbm,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1249), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1249), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1252), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1252), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1252), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { MENUITEMINFOA info1={ S,0x00000100,0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)0x1234,-1,(void*)-1 }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1253), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1253), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1253), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1256), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1256), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004 | 0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1259), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1259), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > { MENUITEMINFOA info2A={ S,0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1262), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1262), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > if( !stop) { MENUITEMINFOA info1={ S,0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)((void *)0) }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1263), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1263), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1263), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),0,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1266), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1266), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > > > { MENUITEMINFOA info1={ S,0x00000010,0x0004 | 0x4000,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)((LONG)(((WORD)((DWORD_PTR)(((HBITMAP) 5)) & 0xFFFF)) | ((DWORD)((WORD)((DWORD_PTR)(0x1234) & 0xFFFF))) << 16)),-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1271), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1271), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1271), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004 | 0x4000,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((HBITMAP) 5),0,(void*)((HBITMAP) 5) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1274), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1274), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0004 | 0x0020 | 0x00000200L | 0x4000 | 0x00002000L,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1277), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1277), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1277), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004 | 0x0020 | 0x00000200L | 0x4000 | 0x00002000L,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1280), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1280), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1283), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1283), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1283), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { MENUITEMINFOA info1={ S,0x00000001,-1,0x0008 | 0x1000 | 0x00000003L | 0x0080,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)-1 }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1284), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1284), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1284), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000001,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000001,-9,0x0008 | 0x1000 | 0x00000003L | 0x0080,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1287), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1287), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1290), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1290), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1290), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { MENUITEMINFOA info1={ S,0x00000008,0x00000200L,-1,-1,(void*)-1,(void*)hbm,(void*)hbm,-1,(void*)-1,-1,(void*)-1 }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1291), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1291), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1291), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000008 | 0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000008 | 0x00000010,0x0004,-9,-9,(void*)0,(void*)hbm,(void*)hbm,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1294), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1294), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > > { MENUITEMINFOA info1={ S,0x00000010,0x0004,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)hbm,-1,(void*)-1 }; HMENU hmenu = CreateMenu(); BOOL ret, stop = 0; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = InsertMenuItemA(hmenu, 0, 1, &info1 ); else ret = InsertMenuItemW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1297), 0) ? (void)0 : winetest_skip("InsertMenuItem%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1297), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1297), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError()); > if( !stop) { MENUITEMINFOA info1={ S,0x00000100,0x0100,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)0x1234,-1,(void*)-1 }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1298), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1298), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1298), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1301), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1301), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0004 | 0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)hbm,0,(void*)hbm }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1304), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1304), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > { MENUITEMINFOA info2A={ S,0x00000100,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000100,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1307), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1307), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > if( !stop) { MENUITEMINFOA info1={ S,0x00000080,-1,-1,-1,(void*)-1,(void*)-1,(void*)-1,-1,(void*)-1,-1,(void*)((void *)0) }; SetLastError( 0xdeadbeef); if(ansi)strcpy( string, init); else strcpyW( (WCHAR*)string, (WCHAR*)init); if( ansi) ret = SetMenuItemInfoA(hmenu, 0, 1, &info1 ); else ret = SetMenuItemInfoW(hmenu, 0, 1, (MENUITEMINFOW*)&info1 ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1308), 0) ? (void)0 : winetest_skip("SetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) { (winetest_set_location("menu.c", 1308), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem should have failed.\n"); stop = 1; } else (winetest_set_location("menu.c", 1308), 0) ? 0 : winetest_ok( (1)==ret,"InsertMenuItem failed, err %d\n",GetLastError());} > { MENUITEMINFOA info2A={ S,0x00000010,-9,-9,-9,(void*)-9,(void*)-9,(void*)-9,-9,(void*)-9,-9,(void*)-9 }; MENUITEMINFOA einfoA={ S,0x00000010,0x0100,-9,-9,(void*)0,(void*)-9,(void*)-9,-9,(void*)((void *)0),0,(void*)((void *)0) }; MENUITEMINFOA *info2 = &info2A; MENUITEMINFOA *einfo = &einfoA; MENUITEMINFOW *info2W = (MENUITEMINFOW *)&info2A; if( !stop) { SetLastError( 0xdeadbeef); ret = ansi ? GetMenuItemInfoA( hmenu, 0, 1, info2 ) : GetMenuItemInfoW( hmenu, 0, 1, info2W ); if( GetLastError() == 120) { (winetest_set_location("menu.c", 1311), 0) ? (void)0 : winetest_skip("GetMenuItemInfo%s not implemented\n", ansi ? "A" : "W"); break; } if( !(1)) (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo should have failed.\n"); else { (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok( (1)==ret,"GetMenuItemInfo failed, err %d\n",GetLastError()); ret = memcmp( info2, einfo, sizeof einfoA); if( ret) { (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->fMask)==(int)((&einfoA)->fMask) || (int)((&info2A)->fMask)==(0xffff & (int)((&einfoA)->fMask)), "%s got 0x%x expected 0x%x\n", "fMask", (int)((&info2A)->fMask), (int)((&einfoA)->fMask)); (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->fType)==(int)((&einfoA)->fType) || (int)((&info2A)->fType)==(0xffff & (int)((&einfoA)->fType)), "%s got 0x%x expected 0x%x\n", "fType", (int)((&info2A)->fType), (int)((&einfoA)->fType)); (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->fState)==(int)((&einfoA)->fState) || (int)((&info2A)->fState)==(0xffff & (int)((&einfoA)->fState)), "%s got 0x%x expected 0x%x\n", "fState", (int)((&info2A)->fState), (int)((&einfoA)->fState)); (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->wID)==(int)((&einfoA)->wID) || (int)((&info2A)->wID)==(0xffff & (int)((&einfoA)->wID)), "%s got 0x%x expected 0x%x\n", "wID", (int)((&info2A)->wID), (int)((&einfoA)->wID)); (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->hSubMenu)==(int)((&einfoA)->hSubMenu) || (int)((&info2A)->hSubMenu)==(0xffff & (int)((&einfoA)->hSubMenu)), "%s got 0x%x expected 0x%x\n", "hSubMenu", (int)((&info2A)->hSubMenu), (int)((&einfoA)->hSubMenu)); (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpChecked)==(int)((&einfoA)->hbmpChecked) || (int)((&info2A)->hbmpChecked)==(0xffff & (int)((&einfoA)->hbmpChecked)), "%s got 0x%x expected 0x%x\n", "hbmpChecked", (int)((&info2A)->hbmpChecked), (int)((&einfoA)->hbmpChecked)); (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpUnchecked)==(int)((&einfoA)->hbmpUnchecked) || (int)((&info2A)->hbmpUnchecked)==(0xffff & (int)((&einfoA)->hbmpUnchecked)), "%s got 0x%x expected 0x%x\n", "hbmpUnchecked", (int)((&info2A)->hbmpUnchecked), (int)((&einfoA)->hbmpUnchecked)); (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->dwItemData)==(int)((&einfoA)->dwItemData) || (int)((&info2A)->dwItemData)==(0xffff & (int)((&einfoA)->dwItemData)), "%s got 0x%x expected 0x%x\n", "dwItemData", (int)((&info2A)->dwItemData), (int)((&einfoA)->dwItemData)); (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->dwTypeData)==(int)((&einfoA)->dwTypeData) || (int)((&info2A)->dwTypeData)==(0xffff & (int)((&einfoA)->dwTypeData)), "%s got 0x%x expected 0x%x\n", "dwTypeData", (int)((&info2A)->dwTypeData), (int)((&einfoA)->dwTypeData)); (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->cch)==(int)((&einfoA)->cch) || (int)((&info2A)->cch)==(0xffff & (int)((&einfoA)->cch)), "%s got 0x%x expected 0x%x\n", "cch", (int)((&info2A)->cch), (int)((&einfoA)->cch)); if( info2A.cbSize==sizeof(MENUITEMINFOA)) (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok((int)((&info2A)->hbmpItem)==(int)((&einfoA)->hbmpItem) || (int)((&info2A)->hbmpItem)==(0xffff & (int)((&einfoA)->hbmpItem)), "%s got 0x%x expected 0x%x\n", "hbmpItem", (int)((&info2A)->hbmpItem), (int)((&einfoA)->hbmpItem));} if( einfo->dwTypeData == string) { if(ansi) (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok( !(__extension__ (__builtin_constant_p (einfo->cch) && ((__builtin_constant_p (empty) && strlen (empty) < ((size_t) (einfo->cch))) || (__builtin_constant_p (info2->dwTypeData) && strlen (info2->dwTypeData) < ((size_t) (einfo->cch)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (empty) && __builtin_constant_p (info2->dwTypeData) && (__s1_len = strlen (empty), __s2_len = strlen (info2->dwTypeData), (!((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) || __s2_len >= 4)) ? __builtin_strcmp (empty, info2->dwTypeData) : (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) && (__s1_len = strlen (empty), __s1_len < 4) ? (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (info2->dwTypeData); register int __result = (((__const unsigned char *) (__const char *) (empty))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (empty))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (empty))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (info2->dwTypeData) && ((size_t)(const void *)((info2->dwTypeData) + 1) - (size_t)(const void *)(info2->dwTypeData) == 1) && (__s2_len = strlen (info2->dwTypeData), __s2_len < 4) ? (__builtin_constant_p (empty) && ((size_t)(const void *)((empty) + 1) - (size_t)(const void *)(empty) == 1) ? __builtin_strcmp (empty, info2->dwTypeData) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (empty); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (info2->dwTypeData))[3]); } } __result; }))) : __builtin_strcmp (empty, info2->dwTypeData)))); }) : strncmp (empty, info2->dwTypeData, einfo->cch))), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); else (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok( !strncmpW( (WCHAR*)empty, (WCHAR*)info2->dwTypeData, einfo->cch ), "menu item name differed \"%s\"\n", einfo->dwTypeData ? einfo->dwTypeData: ""); ret = ansi ? GetMenuStringA( hmenu, 0, string, 80, 0x0400) : GetMenuStringW( hmenu, 0, string, 80, 0x0400); if( (1)){ (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok( ret, "GetMenuString failed, err %d\n",GetLastError()); }else (winetest_set_location("menu.c", 1311), 0) ? 0 : winetest_ok( !ret, "GetMenuString should have failed\n"); } } }} > > > RemoveMenu(hmenu, 0, 1 ); DestroyMenu( hmenu ); DestroyMenu( submenu );submenu = CreateMenu();} > } while( !(ansi = !ansi) ); > DeleteObject( hbm); >} > > > > > >static void test_menu_search_bycommand( void ) >{ > HMENU hmenu, hmenuSub, hmenuSub2; > MENUITEMINFO info; > BOOL rc; > UINT id; > char strback[0x80]; > char strIn[0x80]; > static CHAR menuitem[] = "MenuItem", > menuitem2[] = "MenuItem 2"; > > > hmenu = CreateMenu(); > > memset( &info, 0, sizeof info ); > info.cbSize = sizeof info; > info.fMask = 0x00000100 | 0x00000040 | 0x00000002; > info.fType = 0x0000; > strcpy(strIn, "Case 1 MenuItem"); > info.dwTypeData = strIn; > info.wID = (UINT) 0x1234; > > rc = InsertMenuItemA(hmenu, 0, 1, &info ); > (winetest_set_location("menu.c", 1344), 0) ? 0 : winetest_ok (rc, "Inserting the menuitem failed\n"); > > id = GetMenuItemID(hmenu, 0); > (winetest_set_location("menu.c", 1347), 0) ? 0 : winetest_ok (id == 0x1234, "Getting the menuitem id failed(gave %x)\n", id); > > > memset( &info, 0, sizeof info ); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000100 | 0x00000002 | 0x00000040; > info.dwTypeData = strback; > info.cch = sizeof(strback); > > rc = GetMenuItemInfoA(hmenu, 0, 1, &info); > (winetest_set_location("menu.c", 1358), 0) ? 0 : winetest_ok (rc, "Getting the menu items info failed\n"); > (winetest_set_location("menu.c", 1359), 0) ? 0 : winetest_ok (info.wID == 0x1234, "IDs differ for the menuitem\n"); > (winetest_set_location("menu.c", 1360), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("Case 1 MenuItem") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("Case 1 MenuItem"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Case 1 MenuItem") + 1) - (size_t)(const void *)("Case 1 MenuItem") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "Case 1 MenuItem") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("Case 1 MenuItem") && ((size_t)(const void *)(("Case 1 MenuItem") + 1) - (size_t)(const void *)("Case 1 MenuItem") == 1) ? __builtin_strcmp (info.dwTypeData, "Case 1 MenuItem") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Case 1 MenuItem"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Case 1 MenuItem") && ((size_t)(const void *)(("Case 1 MenuItem") + 1) - (size_t)(const void *)("Case 1 MenuItem") == 1) && (__s2_len = strlen ("Case 1 MenuItem"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "Case 1 MenuItem") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Case 1 MenuItem"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Case 1 MenuItem"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Case 1 MenuItem"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Case 1 MenuItem"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "Case 1 MenuItem")))); }), "Returned item has wrong label\n"); > > > memset( &info, 0, sizeof info ); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000100 | 0x00000002 | 0x00000040; > info.dwTypeData = strback; > info.cch = sizeof(strback); > rc = GetMenuItemInfoA(hmenu, 0x1234, 0, &info); > > (winetest_set_location("menu.c", 1371), 0) ? 0 : winetest_ok (rc, "Getting the menu items info failed\n"); > (winetest_set_location("menu.c", 1372), 0) ? 0 : winetest_ok (info.wID == 0x1234, "IDs differ for the menuitem\n"); > (winetest_set_location("menu.c", 1373), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("Case 1 MenuItem") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("Case 1 MenuItem"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Case 1 MenuItem") + 1) - (size_t)(const void *)("Case 1 MenuItem") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "Case 1 MenuItem") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("Case 1 MenuItem") && ((size_t)(const void *)(("Case 1 MenuItem") + 1) - (size_t)(const void *)("Case 1 MenuItem") == 1) ? __builtin_strcmp (info.dwTypeData, "Case 1 MenuItem") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Case 1 MenuItem"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Case 1 MenuItem") && ((size_t)(const void *)(("Case 1 MenuItem") + 1) - (size_t)(const void *)("Case 1 MenuItem") == 1) && (__s2_len = strlen ("Case 1 MenuItem"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "Case 1 MenuItem") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Case 1 MenuItem"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Case 1 MenuItem"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Case 1 MenuItem"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Case 1 MenuItem"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "Case 1 MenuItem")))); }), "Returned item has wrong label\n"); > > DestroyMenu( hmenu ); > > > hmenu = CreateMenu(); > hmenuSub = CreateMenu(); > > strcpy(strIn, "Case 2 SubMenu"); > rc = InsertMenuA(hmenu, 0, 0x0400 | 0x0010 | 0x0000, (UINT_PTR)hmenuSub, strIn); > (winetest_set_location("menu.c", 1383), 0) ? 0 : winetest_ok (rc, "Inserting the popup menu into the main menu failed\n"); > > id = GetMenuItemID(hmenu, 0); > (winetest_set_location("menu.c", 1386), 0) ? 0 : winetest_ok (id == -1, "Getting the menuitem id unexpectedly worked (gave %x)\n", id); > > > memset( &info, 0, sizeof info ); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000100 | 0x00000002 | 0x00000040; > info.dwTypeData = strback; > info.cch = sizeof(strback); > info.wID = 0xdeadbeef; > > rc = GetMenuItemInfoA(hmenu, 0, 1, &info); > (winetest_set_location("menu.c", 1398), 0) ? 0 : winetest_ok (rc, "Getting the menu items info failed\n"); > (winetest_set_location("menu.c", 1399), 0) ? 0 : winetest_ok (info.wID == (UINT_PTR)hmenuSub, "IDs differ for the menuitem\n"); > (winetest_set_location("menu.c", 1400), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("Case 2 SubMenu") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("Case 2 SubMenu"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Case 2 SubMenu") + 1) - (size_t)(const void *)("Case 2 SubMenu") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "Case 2 SubMenu") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("Case 2 SubMenu") && ((size_t)(const void *)(("Case 2 SubMenu") + 1) - (size_t)(const void *)("Case 2 SubMenu") == 1) ? __builtin_strcmp (info.dwTypeData, "Case 2 SubMenu") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Case 2 SubMenu"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Case 2 SubMenu") && ((size_t)(const void *)(("Case 2 SubMenu") + 1) - (size_t)(const void *)("Case 2 SubMenu") == 1) && (__s2_len = strlen ("Case 2 SubMenu"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "Case 2 SubMenu") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Case 2 SubMenu"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Case 2 SubMenu"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Case 2 SubMenu"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Case 2 SubMenu"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "Case 2 SubMenu")))); }), "Returned item has wrong label\n"); > > > memset( &info, 0, sizeof info ); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000100 | 0x00000002 | 0x00000040; > info.dwTypeData = strback; > info.cch = sizeof(strback); > rc = GetMenuItemInfoA(hmenu, (UINT_PTR)hmenuSub, 0, &info); > > (winetest_set_location("menu.c", 1411), 0) ? 0 : winetest_ok (rc, "Getting the menu items info failed\n"); > (winetest_set_location("menu.c", 1412), 0) ? 0 : winetest_ok (info.wID == (UINT_PTR)hmenuSub, "IDs differ for the popup menu\n"); > (winetest_set_location("menu.c", 1413), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("Case 2 SubMenu") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("Case 2 SubMenu"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Case 2 SubMenu") + 1) - (size_t)(const void *)("Case 2 SubMenu") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "Case 2 SubMenu") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("Case 2 SubMenu") && ((size_t)(const void *)(("Case 2 SubMenu") + 1) - (size_t)(const void *)("Case 2 SubMenu") == 1) ? __builtin_strcmp (info.dwTypeData, "Case 2 SubMenu") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Case 2 SubMenu"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Case 2 SubMenu") && ((size_t)(const void *)(("Case 2 SubMenu") + 1) - (size_t)(const void *)("Case 2 SubMenu") == 1) && (__s2_len = strlen ("Case 2 SubMenu"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "Case 2 SubMenu") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Case 2 SubMenu"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Case 2 SubMenu"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Case 2 SubMenu"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Case 2 SubMenu"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "Case 2 SubMenu")))); }), "Returned item has wrong label\n"); > > > > > memset( &info, 0, sizeof info ); > info.cbSize = sizeof info; > info.fMask = 0x00000100 | 0x00000040 | 0x00000002; > info.fType = 0x0000; > strcpy(strIn, "Case 2 MenuItem 1"); > info.dwTypeData = strIn; > info.wID = (UINT_PTR) hmenuSub; > rc = InsertMenuItemA(hmenu, -1, 1, &info ); > (winetest_set_location("menu.c", 1426), 0) ? 0 : winetest_ok (rc, "Inserting the menuitem failed\n"); > > > memset( &info, 0, sizeof info ); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000100 | 0x00000002 | 0x00000040; > info.dwTypeData = strback; > info.cch = sizeof(strback); > rc = GetMenuItemInfoA(hmenu, (UINT_PTR)hmenuSub, 0, &info); > > (winetest_set_location("menu.c", 1437), 0) ? 0 : winetest_ok (rc, "Getting the menu items info failed\n"); > (winetest_set_location("menu.c", 1438), 0) ? 0 : winetest_ok (info.wID == (UINT_PTR)hmenuSub, "IDs differ for the popup menu\n"); > (winetest_set_location("menu.c", 1439), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("Case 2 MenuItem 1") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("Case 2 MenuItem 1"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Case 2 MenuItem 1") + 1) - (size_t)(const void *)("Case 2 MenuItem 1") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "Case 2 MenuItem 1") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("Case 2 MenuItem 1") && ((size_t)(const void *)(("Case 2 MenuItem 1") + 1) - (size_t)(const void *)("Case 2 MenuItem 1") == 1) ? __builtin_strcmp (info.dwTypeData, "Case 2 MenuItem 1") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Case 2 MenuItem 1"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Case 2 MenuItem 1") && ((size_t)(const void *)(("Case 2 MenuItem 1") + 1) - (size_t)(const void *)("Case 2 MenuItem 1") == 1) && (__s2_len = strlen ("Case 2 MenuItem 1"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "Case 2 MenuItem 1") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Case 2 MenuItem 1"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Case 2 MenuItem 1"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Case 2 MenuItem 1"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Case 2 MenuItem 1"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "Case 2 MenuItem 1")))); }), "Returned item has wrong label (%s)\n", info.dwTypeData); > > > > > memset( &info, 0, sizeof info ); > info.cbSize = sizeof info; > info.fMask = 0x00000100 | 0x00000040 | 0x00000002; > info.fType = 0x0000; > strcpy(strIn, "Case 2 MenuItem 2"); > info.dwTypeData = strIn; > info.wID = (UINT_PTR) hmenuSub; > rc = InsertMenuItemA(hmenu, 0, 1, &info ); > (winetest_set_location("menu.c", 1452), 0) ? 0 : winetest_ok (rc, "Inserting the menuitem failed\n"); > > > memset( &info, 0, sizeof info ); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000100 | 0x00000002 | 0x00000040; > info.dwTypeData = strback; > info.cch = sizeof(strback); > rc = GetMenuItemInfoA(hmenu, (UINT_PTR)hmenuSub, 0, &info); > > (winetest_set_location("menu.c", 1463), 0) ? 0 : winetest_ok (rc, "Getting the menu items info failed\n"); > (winetest_set_location("menu.c", 1464), 0) ? 0 : winetest_ok (info.wID == (UINT_PTR)hmenuSub, "IDs differ for the popup menu\n"); > (winetest_set_location("menu.c", 1465), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("Case 2 MenuItem 2") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("Case 2 MenuItem 2"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Case 2 MenuItem 2") + 1) - (size_t)(const void *)("Case 2 MenuItem 2") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "Case 2 MenuItem 2") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("Case 2 MenuItem 2") && ((size_t)(const void *)(("Case 2 MenuItem 2") + 1) - (size_t)(const void *)("Case 2 MenuItem 2") == 1) ? __builtin_strcmp (info.dwTypeData, "Case 2 MenuItem 2") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Case 2 MenuItem 2"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Case 2 MenuItem 2") && ((size_t)(const void *)(("Case 2 MenuItem 2") + 1) - (size_t)(const void *)("Case 2 MenuItem 2") == 1) && (__s2_len = strlen ("Case 2 MenuItem 2"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "Case 2 MenuItem 2") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Case 2 MenuItem 2"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Case 2 MenuItem 2"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Case 2 MenuItem 2"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Case 2 MenuItem 2"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "Case 2 MenuItem 2")))); }), "Returned item has wrong label (%s)\n", info.dwTypeData); > > DestroyMenu( hmenu ); > DestroyMenu( hmenuSub ); > > > > > > > hmenu = CreateMenu(); > hmenuSub = CreateMenu(); > > memset( &info, 0, sizeof info ); > info.cbSize = sizeof info; > info.fMask = 0x00000100 | 0x00000040 | 0x00000002; > info.fType = 0x0000; > info.dwTypeData = menuitem; > info.wID = (UINT_PTR) hmenuSub; > > rc = InsertMenuA(hmenu, 0, 0x0400 | 0x0010 | 0x0000, (UINT_PTR)hmenuSub, "Submenu"); > (winetest_set_location("menu.c", 1486), 0) ? 0 : winetest_ok (rc, "Inserting the popup menu into the main menu failed\n"); > > rc = InsertMenuItemA(hmenuSub, 0, 1, &info ); > (winetest_set_location("menu.c", 1489), 0) ? 0 : winetest_ok (rc, "Inserting the sub menu menuitem failed\n"); > > memset( &info, 0, sizeof info ); > info.cbSize = sizeof info; > info.fMask = 0x00000100 | 0x00000040 | 0x00000002; > info.fType = 0x0000; > info.dwTypeData = menuitem2; > info.wID = (UINT_PTR) hmenuSub; > > rc = InsertMenuItemA(hmenuSub, 1, 1, &info ); > (winetest_set_location("menu.c", 1499), 0) ? 0 : winetest_ok (rc, "Inserting the sub menu menuitem 2 failed\n"); > > > id = GetMenuItemID(hmenu, 0); > (winetest_set_location("menu.c", 1503), 0) ? 0 : winetest_ok (id == -1, "Getting the sub menu id should have failed because its a popup (gave %x)\n", id); > > > memset( &info, 0, sizeof info ); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000040 | 0x00000002; > info.dwTypeData = strback; > info.cch = sizeof(strback); > > rc = GetMenuItemInfoA(hmenu, (UINT_PTR)hmenuSub, 0, &info); > (winetest_set_location("menu.c", 1514), 0) ? 0 : winetest_ok (rc, "Getting the menus info failed\n"); > (winetest_set_location("menu.c", 1515), 0) ? 0 : winetest_ok (info.wID == (UINT_PTR)hmenuSub, "IDs differ for popup menu\n"); > (winetest_set_location("menu.c", 1516), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("MenuItem") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("MenuItem"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("MenuItem") + 1) - (size_t)(const void *)("MenuItem") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "MenuItem") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("MenuItem") && ((size_t)(const void *)(("MenuItem") + 1) - (size_t)(const void *)("MenuItem") == 1) ? __builtin_strcmp (info.dwTypeData, "MenuItem") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("MenuItem"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("MenuItem") && ((size_t)(const void *)(("MenuItem") + 1) - (size_t)(const void *)("MenuItem") == 1) && (__s2_len = strlen ("MenuItem"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "MenuItem") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("MenuItem"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("MenuItem"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("MenuItem"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("MenuItem"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "MenuItem")))); }), "Returned item has wrong label (%s)\n", info.dwTypeData); > DestroyMenu( hmenu ); > DestroyMenu( hmenuSub ); > > > > > > hmenu = CreateMenu(); > hmenuSub = CreateMenu(); > hmenuSub2 = CreateMenu(); > > rc = InsertMenuA(hmenu, 0, 0x0400 | 0x0010 | 0x0000, (UINT_PTR)hmenuSub, "Submenu"); > (winetest_set_location("menu.c", 1529), 0) ? 0 : winetest_ok (rc, "Inserting the popup menu into the main menu failed\n"); > > rc = InsertMenuA(hmenu, 1, 0x0400 | 0x0010 | 0x0000, (UINT_PTR)hmenuSub2, "Submenu2"); > (winetest_set_location("menu.c", 1532), 0) ? 0 : winetest_ok (rc, "Inserting the popup menu into the main menu failed\n"); > > memset( &info, 0, sizeof info ); > info.cbSize = sizeof info; > info.fMask = 0x00000100 | 0x00000040 | 0x00000002; > info.fType = 0x0000; > info.dwTypeData = menuitem; > info.wID = (UINT_PTR) hmenuSub; > > rc = InsertMenuItemA(hmenuSub2, 0, 1, &info ); > (winetest_set_location("menu.c", 1542), 0) ? 0 : winetest_ok (rc, "Inserting the sub menu menuitem failed\n"); > > memset( &info, 0, sizeof info ); > info.cbSize = sizeof info; > info.fMask = 0x00000100 | 0x00000040 | 0x00000002; > info.fType = 0x0000; > info.dwTypeData = menuitem2; > info.wID = (UINT_PTR) hmenuSub; > > rc = InsertMenuItemA(hmenuSub2, 1, 1, &info ); > (winetest_set_location("menu.c", 1552), 0) ? 0 : winetest_ok (rc, "Inserting the sub menu menuitem 2 failed\n"); > > > memset( &info, 0, sizeof info ); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000040 | 0x00000002; > info.dwTypeData = strback; > info.cch = sizeof(strback); > > rc = GetMenuItemInfoA(hmenu, (UINT_PTR)hmenuSub, 0, &info); > (winetest_set_location("menu.c", 1563), 0) ? 0 : winetest_ok (rc, "Getting the menus info failed\n"); > (winetest_set_location("menu.c", 1564), 0) ? 0 : winetest_ok (info.wID == (UINT_PTR)hmenuSub, "IDs differ for popup menu\n"); > (winetest_set_location("menu.c", 1565), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("MenuItem") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("MenuItem"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("MenuItem") + 1) - (size_t)(const void *)("MenuItem") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "MenuItem") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("MenuItem") && ((size_t)(const void *)(("MenuItem") + 1) - (size_t)(const void *)("MenuItem") == 1) ? __builtin_strcmp (info.dwTypeData, "MenuItem") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("MenuItem"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("MenuItem") && ((size_t)(const void *)(("MenuItem") + 1) - (size_t)(const void *)("MenuItem") == 1) && (__s2_len = strlen ("MenuItem"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "MenuItem") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("MenuItem"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("MenuItem"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("MenuItem"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("MenuItem"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "MenuItem")))); }), "Returned item has wrong label (%s)\n", info.dwTypeData); > > memset( &info, 0, sizeof info ); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000040 | 0x00000002; > info.dwTypeData = strback; > info.cch = sizeof(strback); > > rc = GetMenuItemInfoA(hmenu, (UINT_PTR)hmenuSub2, 0, &info); > (winetest_set_location("menu.c", 1575), 0) ? 0 : winetest_ok (rc, "Getting the menus info failed\n"); > (winetest_set_location("menu.c", 1576), 0) ? 0 : winetest_ok (info.wID == (UINT)hmenuSub2, "IDs differ for popup menu\n"); > (winetest_set_location("menu.c", 1577), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("Submenu2") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("Submenu2"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Submenu2") + 1) - (size_t)(const void *)("Submenu2") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "Submenu2") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("Submenu2") && ((size_t)(const void *)(("Submenu2") + 1) - (size_t)(const void *)("Submenu2") == 1) ? __builtin_strcmp (info.dwTypeData, "Submenu2") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Submenu2"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Submenu2") && ((size_t)(const void *)(("Submenu2") + 1) - (size_t)(const void *)("Submenu2") == 1) && (__s2_len = strlen ("Submenu2"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "Submenu2") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Submenu2"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Submenu2"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Submenu2"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Submenu2"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "Submenu2")))); }), "Returned item has wrong label (%s)\n", info.dwTypeData); > > DestroyMenu( hmenu ); > DestroyMenu( hmenuSub ); > DestroyMenu( hmenuSub2 ); ># 1590 "menu.c" > hmenu = CreateMenu(); > hmenuSub = CreateMenu(); > > rc = AppendMenuA(hmenu, 0x0010 | 0x0000, (UINT_PTR)hmenuSub, "Submenu"); > (winetest_set_location("menu.c", 1594), 0) ? 0 : winetest_ok (rc, "Appending the popup menu to the main menu failed\n"); > > rc = AppendMenuA(hmenuSub, 0x0000, 102, "Item"); > (winetest_set_location("menu.c", 1597), 0) ? 0 : winetest_ok (rc, "Appending the item to the popup menu failed\n"); > > > info.cbSize = sizeof(info); > info.fMask = 0x00000002; > info.wID = 101; > > rc = SetMenuItemInfoA(hmenu, 0, 1, &info); > (winetest_set_location("menu.c", 1605), 0) ? 0 : winetest_ok(rc, "Setting the ID for the popup menu failed\n"); > > > info.wID = 0; > rc = GetMenuItemInfoA(hmenu, 0, 1, &info); > (winetest_set_location("menu.c", 1610), 0) ? 0 : winetest_ok(rc, "Getting the ID for the popup menu failed\n"); > (winetest_set_location("menu.c", 1611), 0) ? 0 : winetest_ok(info.wID == 101, "The ID for the popup menu has not been set\n"); > > > memset( &info, 0, sizeof(info)); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000040 | 0x00000002; > info.dwTypeData = strback; > info.cch = sizeof(strback); > > rc = GetMenuItemInfoA(hmenu, 101, 0, &info); > (winetest_set_location("menu.c", 1622), 0) ? 0 : winetest_ok (rc, "Getting the menu info failed\n"); > (winetest_set_location("menu.c", 1623), 0) ? 0 : winetest_ok (info.wID == 101, "IDs differ\n"); > (winetest_set_location("menu.c", 1624), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("Submenu") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("Submenu"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Submenu") + 1) - (size_t)(const void *)("Submenu") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "Submenu") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("Submenu") && ((size_t)(const void *)(("Submenu") + 1) - (size_t)(const void *)("Submenu") == 1) ? __builtin_strcmp (info.dwTypeData, "Submenu") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Submenu"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Submenu") && ((size_t)(const void *)(("Submenu") + 1) - (size_t)(const void *)("Submenu") == 1) && (__s2_len = strlen ("Submenu"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "Submenu") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Submenu"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Submenu"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Submenu"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Submenu"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "Submenu")))); }), "Returned item has wrong label (%s)\n", info.dwTypeData); > > > memset( &info, 0, sizeof(info)); > strback[0] = 0x00; > info.cbSize = sizeof(MENUITEMINFO); > info.fMask = 0x00000040 | 0x00000002; > info.dwTypeData = strback; > info.cch = sizeof(strback); > > rc = GetMenuItemInfoA(hmenu, 102, 0, &info); > (winetest_set_location("menu.c", 1635), 0) ? 0 : winetest_ok (rc, "Getting the menu info failed\n"); > (winetest_set_location("menu.c", 1636), 0) ? 0 : winetest_ok (info.wID == 102, "IDs differ\n"); > (winetest_set_location("menu.c", 1637), 0) ? 0 : winetest_ok (!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (info.dwTypeData) && __builtin_constant_p ("Item") && (__s1_len = strlen (info.dwTypeData), __s2_len = strlen ("Item"), (!((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("Item") + 1) - (size_t)(const void *)("Item") == 1) || __s2_len >= 4)) ? __builtin_strcmp (info.dwTypeData, "Item") : (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) && (__s1_len = strlen (info.dwTypeData), __s1_len < 4) ? (__builtin_constant_p ("Item") && ((size_t)(const void *)(("Item") + 1) - (size_t)(const void *)("Item") == 1) ? __builtin_strcmp (info.dwTypeData, "Item") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("Item"); register int __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (info.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("Item") && ((size_t)(const void *)(("Item") + 1) - (size_t)(const void *)("Item") == 1) && (__s2_len = strlen ("Item"), __s2_len < 4) ? (__builtin_constant_p (info.dwTypeData) && ((size_t)(const void *)((info.dwTypeData) + 1) - (size_t)(const void *)(info.dwTypeData) == 1) ? __builtin_strcmp (info.dwTypeData, "Item") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (info.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("Item"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("Item"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("Item"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("Item"))[3]); } } __result; }))) : __builtin_strcmp (info.dwTypeData, "Item")))); }), "Returned item has wrong label (%s)\n", info.dwTypeData); > > DestroyMenu(hmenu); > DestroyMenu(hmenuSub); >} > >struct menu_item_pair_s { > UINT uMenu; > > > UINT uItem; >}; > >static struct menu_mouse_tests_s { > DWORD type; > struct menu_item_pair_s menu_item_pairs[5]; > WORD wVk[5]; > BOOL bMenuVisible; > BOOL _todo_wine; >} menu_tests[] = { > > { 1, {{0}}, {0xA4, 0}, 1, 0 }, > { 1, {{0}}, {0x1B, 0}, 0, 0 }, > { 1, {{0}}, {0xA4, 0}, 1, 0 }, > { 1, {{0}}, {'D', 0}, 0, 0 }, > { 1, {{0}}, {0xA4, 0}, 1, 0 }, > { 1, {{0}}, {'E', 0}, 0, 0 }, > { 1, {{0}}, {0xA4, 'M', 0}, 1, 0 }, > { 1, {{0}}, {0x1B, 0x1B, 0}, 0, 0 }, > { 1, {{0}}, {0xA4, 'M', 0x1B, 0}, 1, 0 }, > { 1, {{0}}, {0x1B, 0}, 0, 0 }, > { 1, {{0}}, {0xA4, 'M', 0}, 1, 0 }, > { 1, {{0}}, {'D', 0}, 0, 0 }, > { 1, {{0}}, {0xA4, 'M', 0}, 1, 0 }, > { 1, {{0}}, {'E', 0}, 0, 0 }, > { 1, {{0}}, {0xA4, 'M', 'P', 0}, 1, 0 }, > { 1, {{0}}, {'D', 0}, 0, 0 }, > { 1, {{0}}, {0xA4, 'M', 'P', 0}, 1, 0 }, > { 1, {{0}}, {'E', 0}, 0, 0 }, > > { 0, {{1, 2}, {0}}, {0}, 1, 1 }, > { 0, {{1, 1}, {0}}, {0}, 0, 0 }, > { 0, {{1, 0}, {0}}, {0}, 1, 1 }, > { 0, {{1, 1}, {0}}, {0}, 0, 0 }, > { 0, {{1, 0}, {2, 2}, {0}}, {0}, 1, 1 }, > { 0, {{2, 1}, {0}}, {0}, 0, 0 }, > { 0, {{1, 0}, {2, 0}, {0}}, {0}, 1, 1 }, > { 0, {{3, 0}, {0}}, {0}, 0, 0 }, > { 0, {{1, 0}, {2, 0}, {0}}, {0}, 1, 1 }, > { 0, {{3, 1}, {0}}, {0}, 1, 1 }, > { 0, {{1, 1}, {0}}, {0}, 0, 0 }, > { -1 } >}; > >static void send_key(WORD wVk) >{ > TEST_INPUT i[2]; > memset(&i, 0, 2*sizeof(INPUT)); > i[0].type = i[1].type = 1; > i[0].u.ki.wVk = i[1].u.ki.wVk = wVk; > i[1].u.ki.dwFlags = 0x0002; > pSendInput(2, (INPUT *) i, sizeof(INPUT)); >} > >static void click_menu(HANDLE hWnd, struct menu_item_pair_s *mi) >{ > HMENU hMenu = hMenus[mi->uMenu]; > TEST_INPUT i[3]; > MSG msg; > RECT r; > int screen_w = GetSystemMetrics(0); > int screen_h = GetSystemMetrics(1); > > GetMenuItemRect(mi->uMenu > 2 ? ((void *)0) : hWnd, hMenu, mi->uItem, &r); > > memset(&i, 0, 3*sizeof(INPUT)); > i[0].type = i[1].type = i[2].type = 0; > i[0].u.mi.dx = i[1].u.mi.dx = i[2].u.mi.dx > = ((r.left + 5) * 65535) / screen_w; > i[0].u.mi.dy = i[1].u.mi.dy = i[2].u.mi.dy > = ((r.top + 5) * 65535) / screen_h; > i[0].u.mi.dwFlags = i[1].u.mi.dwFlags = i[2].u.mi.dwFlags > = 0x8000; > i[0].u.mi.dwFlags |= 0x0001; > i[1].u.mi.dwFlags |= 0x0002; > i[2].u.mi.dwFlags |= 0x0004; > pSendInput(3, (INPUT *) i, sizeof(INPUT)); > > > while (PeekMessageA( &msg, 0, 0, 0, 0x0001 )) DispatchMessageA( &msg ); >} > >static DWORD __attribute__((__stdcall__)) test_menu_input_thread(LPVOID lpParameter) >{ > int i, j; > HANDLE hWnd = lpParameter; > > Sleep(500); > > for (i = 0; menu_tests[i].type != -1; i++) > { > int elapsed = 0; > > if (menu_tests[i].type == 1) > for (j = 0; menu_tests[i].wVk[j] != 0; j++) > send_key(menu_tests[i].wVk[j]); > else > for (j = 0; menu_tests[i].menu_item_pairs[j].uMenu != 0; j++) > click_menu(hWnd, &menu_tests[i].menu_item_pairs[j]); > > while (menu_tests[i].bMenuVisible != bMenuVisible) > { > if (elapsed > 200) > break; > elapsed += 20; > Sleep(20); > } > > if (menu_tests[i]._todo_wine) > { > for (winetest_start_todo("wine"); winetest_loop_todo(); winetest_end_todo("wine")) { > (winetest_set_location("menu.c", 1758), 0) ? 0 : winetest_ok(menu_tests[i].bMenuVisible == bMenuVisible, "test %d\n", i); > } > } > else > (winetest_set_location("menu.c", 1762), 0) ? 0 : winetest_ok(menu_tests[i].bMenuVisible == bMenuVisible, "test %d\n", i); > } > return 0; >} > >static LRESULT __attribute__((__stdcall__)) WndProc(HWND hWnd, UINT msg, WPARAM wParam, > LPARAM lParam) >{ > switch (msg) { > case 0x0211: > bMenuVisible = 1; > break; > case 0x0212: > bMenuVisible = 0; > break; > default: > return( DefWindowProcA( hWnd, msg, wParam, lParam ) ); > } > return 0; >} > >static void test_menu_input(void) { > MSG msg; > WNDCLASSA wclass; > HINSTANCE hInstance = GetModuleHandleA( ((void *)0) ); > HANDLE hThread, hWnd; > > wclass.lpszClassName = "MenuTestClass"; > wclass.style = 0x00000002 | 0x00000001; > wclass.lpfnWndProc = WndProc; > wclass.hInstance = hInstance; > wclass.hIcon = LoadIconA( 0, (LPSTR)(LPSTR)((ULONG_PTR)((WORD)(32512))) ); > wclass.hCursor = LoadCursorA( ((void *)0), (LPSTR)(LPSTR)((ULONG_PTR)((WORD)(32512)))); > wclass.hbrBackground = (HBRUSH)( 5 + 1); > wclass.lpszMenuName = 0; > wclass.cbClsExtra = 0; > wclass.cbWndExtra = 0; > ((RegisterClassA( &wclass )) ? (void) (0) : __assert_fail ("RegisterClassA( &wclass )", "menu.c", 1799, __PRETTY_FUNCTION__)); > ((hWnd = CreateWindowExA(0,wclass.lpszClassName,"MenuTest",(0x00000000L | 0x00C00000L | 0x00080000L | 0x00040000L| 0x00020000L | 0x00010000L),((INT)0x80000000),0,400,200,((void *)0),((void *)0),hInstance,((void *)0))) ? (void) (0) : __assert_fail ("hWnd = CreateWindowExA(0,wclass.lpszClassName,\"MenuTest\",(0x00000000L | 0x00C00000L | 0x00080000L | 0x00040000L| 0x00020000L | 0x00010000L),((INT)0x80000000),0,400,200,((void *)0),((void *)0),hInstance,((void *)0))", "menu.c", 1802, __PRETTY_FUNCTION__)); > > > > > hMenus[3] = CreatePopupMenu(); > AppendMenuA(hMenus[3], 0x0000, 0, "&Enabled"); > AppendMenuA(hMenus[3], 0x0000|0x0002, 0, "&Disabled"); > > hMenus[2] = CreatePopupMenu(); > AppendMenuA(hMenus[2], 0x0000|0x0010, (UINT_PTR) hMenus[3], "&Popup"); > AppendMenuA(hMenus[2], 0x0000, 0, "&Enabled"); > AppendMenuA(hMenus[2], 0x0000|0x0002, 0, "&Disabled"); > > hMenus[1] = CreateMenu(); > AppendMenuA(hMenus[1], 0x0000|0x0010, (UINT_PTR) hMenus[2], "&Menu"); > AppendMenuA(hMenus[1], 0x0000, 0, "&Enabled"); > AppendMenuA(hMenus[1], 0x0000|0x0002, 0, "&Disabled"); > > SetMenu(hWnd, hMenus[1]); > ShowWindow(hWnd, 5); > UpdateWindow(hWnd); > > hThread = CreateThread(((void *)0), 0, test_menu_input_thread, hWnd, 0, ((void *)0)); > while(1) > { > if (((DWORD) 0x00000102) != WaitForSingleObject(hThread, 50)) > break; > while (PeekMessageA(&msg, 0, 0, 0, 0x0001)) DispatchMessageA(&msg); > } > DestroyWindow(hWnd); >} > >static void test_menu_flags( void ) >{ > HMENU hMenu, hPopupMenu; > > hMenu = CreateMenu(); > hPopupMenu = CreatePopupMenu(); > > AppendMenuA(hMenu, 0x0010 | 0x0000, (UINT)hPopupMenu, "Popup"); > > AppendMenuA(hPopupMenu, 0x0000 | 0x0080 | 0x1000, 101, "Item 1"); > InsertMenuA(hPopupMenu, 1, 0x0400 | 0x0000 | 0x0080 | 0x1000, 102, "Item 2"); > AppendMenuA(hPopupMenu, 0x0000, 103, "Item 3"); > ModifyMenuA(hPopupMenu, 2, 0x0400 | 0x0000 | 0x0080 | 0x1000, 103, "Item 3"); > > (winetest_set_location("menu.c", 1847), 0) ? 0 : winetest_ok(GetMenuState(hPopupMenu, 0, 0x0400) & 0x0080, > "AppendMenu should accept MF_HILITE\n"); > (winetest_set_location("menu.c", 1849), 0) ? 0 : winetest_ok(GetMenuState(hPopupMenu, 1, 0x0400) & 0x0080, > "InsertMenu should accept MF_HILITE\n"); > (winetest_set_location("menu.c", 1851), 0) ? 0 : winetest_ok(GetMenuState(hPopupMenu, 2, 0x0400) & 0x0080, > "ModifyMenu should accept MF_HILITE\n"); > > (winetest_set_location("menu.c", 1854), 0) ? 0 : winetest_ok(!(GetMenuState(hPopupMenu, 0, 0x0400) & 0x1000), > "AppendMenu must not accept MF_DEFAULT\n"); > (winetest_set_location("menu.c", 1856), 0) ? 0 : winetest_ok(!(GetMenuState(hPopupMenu, 1, 0x0400) & 0x1000), > "InsertMenu must not accept MF_DEFAULT\n"); > (winetest_set_location("menu.c", 1858), 0) ? 0 : winetest_ok(!(GetMenuState(hPopupMenu, 2, 0x0400) & 0x1000), > "ModifyMenu must not accept MF_DEFAULT\n"); > > DestroyMenu(hMenu); >} > >static void test_menu_hilitemenuitem( void ) >{ > HMENU hMenu, hPopupMenu; > WNDCLASSA wclass; > HWND hWnd; > > wclass.lpszClassName = "HiliteMenuTestClass"; > wclass.style = 0x00000002 | 0x00000001; > wclass.lpfnWndProc = WndProc; > wclass.hInstance = GetModuleHandleA( ((void *)0) ); > wclass.hIcon = LoadIconA( 0, (LPSTR)(LPSTR)((ULONG_PTR)((WORD)(32512))) ); > wclass.hCursor = LoadCursorA( ((void *)0), (LPSTR)(LPSTR)((ULONG_PTR)((WORD)(32512)))); > wclass.hbrBackground = (HBRUSH)( 5 + 1); > wclass.lpszMenuName = 0; > wclass.cbClsExtra = 0; > wclass.cbWndExtra = 0; > ((RegisterClassA( &wclass )) ? (void) (0) : __assert_fail ("RegisterClassA( &wclass )", "menu.c", 1880, __PRETTY_FUNCTION__)); > ((hWnd = CreateWindowExA(0,wclass.lpszClassName,"HiliteMenuTest",(0x00000000L | 0x00C00000L | 0x00080000L | 0x00040000L| 0x00020000L | 0x00010000L),((INT)0x80000000),0,400,200,((void *)0),((void *)0),wclass.hInstance,((void *)0))) ? (void) (0) : __assert_fail ("hWnd = CreateWindowExA(0,wclass.lpszClassName,\"HiliteMenuTest\",(0x00000000L | 0x00C00000L | 0x00080000L | 0x00040000L| 0x00020000L | 0x00010000L),((INT)0x80000000),0,400,200,((void *)0),((void *)0),wclass.hInstance,((void *)0))", "menu.c", 1883, __PRETTY_FUNCTION__)); > > > > hMenu = CreateMenu(); > hPopupMenu = CreatePopupMenu(); > > AppendMenuA(hMenu, 0x0010 | 0x0000, (UINT)hPopupMenu, "Popup"); > > AppendMenuA(hPopupMenu, 0x0000, 101, "Item 1"); > AppendMenuA(hPopupMenu, 0x0000, 102, "Item 2"); > AppendMenuA(hPopupMenu, 0x0000, 103, "Item 3"); > > SetMenu(hWnd, hMenu); > > > > (winetest_set_location("menu.c", 1898), 0) ? 0 : winetest_ok(!(GetMenuState(hPopupMenu, 1, 0x0400) & 0x0080), > "HiliteMenuItem: Item 2 is hilited\n"); > > SetLastError(0xdeadbeef); > for (winetest_start_todo("wine"); winetest_loop_todo(); winetest_end_todo("wine")) > { > (winetest_set_location("menu.c", 1904), 0) ? 0 : winetest_ok(!HiliteMenuItem(((void *)0), hPopupMenu, 1, 0x0080 | 0x0400), > "HiliteMenuItem: call should have failed.\n"); > } > (winetest_set_location("menu.c", 1907), 0) ? 0 : winetest_ok(GetLastError() == 0xdeadbeef || > GetLastError() == 1400 , > "HiliteMenuItem: expected error ERROR_INVALID_WINDOW_HANDLE, got: %d\n", GetLastError()); > > SetLastError(0xdeadbeef); > (winetest_set_location("menu.c", 1912), 0) ? 0 : winetest_ok(!HiliteMenuItem(hWnd, ((void *)0), 1, 0x0080 | 0x0400), > "HiliteMenuItem: call should have failed.\n"); > (winetest_set_location("menu.c", 1914), 0) ? 0 : winetest_ok(GetLastError() == 0xdeadbeef || > GetLastError() == 1401 , > "HiliteMenuItem: expected error ERROR_INVALID_MENU_HANDLE, got: %d\n", GetLastError()); > > (winetest_set_location("menu.c", 1918), 0) ? 0 : winetest_ok(!(GetMenuState(hPopupMenu, 1, 0x0400) & 0x0080), > "HiliteMenuItem: Item 2 is hilited\n"); > > > > SetLastError(0xdeadbeef); > (winetest_set_location("menu.c", 1924), 0) ? 0 : winetest_ok(HiliteMenuItem(hWnd, hPopupMenu, 1, 0x0400), > "HiliteMenuItem: call should have succeeded.\n"); > (winetest_set_location("menu.c", 1926), 0) ? 0 : winetest_ok(GetLastError() == 0xdeadbeef, > "HiliteMenuItem: expected error 0xdeadbeef, got: %d\n", GetLastError()); > > (winetest_set_location("menu.c", 1929), 0) ? 0 : winetest_ok(!(GetMenuState(hPopupMenu, 1, 0x0400) & 0x0080), > "HiliteMenuItem: Item 2 is hilited\n"); > > SetLastError(0xdeadbeef); > for (winetest_start_todo("wine"); winetest_loop_todo(); winetest_end_todo("wine")) > { > (winetest_set_location("menu.c", 1935), 0) ? 0 : winetest_ok(HiliteMenuItem(hWnd, hPopupMenu, 1, 0x0080), > "HiliteMenuItem: call should have succeeded.\n"); > } > (winetest_set_location("menu.c", 1938), 0) ? 0 : winetest_ok(GetLastError() == 0xdeadbeef, > "HiliteMenuItem: expected error 0xdeadbeef, got: %d\n", GetLastError()); > > (winetest_set_location("menu.c", 1941), 0) ? 0 : winetest_ok(!(GetMenuState(hPopupMenu, 1, 0x0400) & 0x0080), > "HiliteMenuItem: Item 2 is hilited\n"); > > > > SetLastError(0xdeadbeef); > (winetest_set_location("menu.c", 1947), 0) ? 0 : winetest_ok(HiliteMenuItem(hWnd, hPopupMenu, 1, 0x0080 | 0x0400), > "HiliteMenuItem: call should not have failed.\n"); > (winetest_set_location("menu.c", 1949), 0) ? 0 : winetest_ok(GetLastError() == 0xdeadbeef, > "HiliteMenuItem: expected error 0xdeadbeef, got: %d\n", GetLastError()); > > for (winetest_start_todo("wine"); winetest_loop_todo(); winetest_end_todo("wine")) > { > (winetest_set_location("menu.c", 1954), 0) ? 0 : winetest_ok(GetMenuState(hPopupMenu, 1, 0x0400) & 0x0080, > "HiliteMenuItem: Item 2 is not hilited\n"); > } > > > > SetLastError(0xdeadbeef); > (winetest_set_location("menu.c", 1961), 0) ? 0 : winetest_ok(HiliteMenuItem(hWnd, hPopupMenu, 1, 0x0000 | 0x0400), > "HiliteMenuItem: call should not have failed.\n"); > (winetest_set_location("menu.c", 1963), 0) ? 0 : winetest_ok(GetLastError() == 0xdeadbeef, > "HiliteMenuItem: expected error 0xdeadbeef, got: %d\n", GetLastError()); > > (winetest_set_location("menu.c", 1966), 0) ? 0 : winetest_ok(!(GetMenuState(hPopupMenu, 1, 0x0400) & 0x0080), > "HiliteMenuItem: Item 2 is hilited\n"); > > > > SetLastError(0xdeadbeef); > (winetest_set_location("menu.c", 1972), 0) ? 0 : winetest_ok(HiliteMenuItem(hWnd, hPopupMenu, 103, 0x0080 | 0x0000), > "HiliteMenuItem: call should not have failed.\n"); > (winetest_set_location("menu.c", 1974), 0) ? 0 : winetest_ok(GetLastError() == 0xdeadbeef, > "HiliteMenuItem: expected error 0xdeadbeef, got: %d\n", GetLastError()); > > for (winetest_start_todo("wine"); winetest_loop_todo(); winetest_end_todo("wine")) > { > (winetest_set_location("menu.c", 1979), 0) ? 0 : winetest_ok(GetMenuState(hPopupMenu, 2, 0x0400) & 0x0080, > "HiliteMenuItem: Item 3 is not hilited\n"); > } > > > > SetLastError(0xdeadbeef); > (winetest_set_location("menu.c", 1986), 0) ? 0 : winetest_ok(HiliteMenuItem(hWnd, hPopupMenu, 103, 0x0000 | 0x0000), > "HiliteMenuItem: call should not have failed.\n"); > (winetest_set_location("menu.c", 1988), 0) ? 0 : winetest_ok(GetLastError() == 0xdeadbeef, > "HiliteMenuItem: expected error 0xdeadbeef, got: %d\n", GetLastError()); > > (winetest_set_location("menu.c", 1991), 0) ? 0 : winetest_ok(!(GetMenuState(hPopupMenu, 2, 0x0400) & 0x0080), > "HiliteMenuItem: Item 3 is hilited\n"); > > DestroyWindow(hWnd); >} > >static void check_menu_items(HMENU hmenu, UINT checked_cmd, UINT checked_type, > UINT checked_state) >{ > UINT i, count; > > count = GetMenuItemCount(hmenu); > > for (i = 0; i < count; i++) > { > BOOL ret; > MENUITEMINFO mii; > > memset(&mii, 0, sizeof(mii)); > mii.cbSize = sizeof(mii); > mii.fMask = 0x00000100 | 0x00000001 | 0x00000002 | 0x00000004; > ret = GetMenuItemInfoA(hmenu, i, 1, &mii); > (winetest_set_location("menu.c", 2013), 0) ? 0 : winetest_ok(ret, "GetMenuItemInfo(%u) failed\n", i); > > > > > if (mii.hSubMenu) > { > (winetest_set_location("menu.c", 2020), 0) ? 0 : winetest_ok((HMENU)mii.wID == mii.hSubMenu, "id %u: wID should be equal to hSubMenu\n", checked_cmd); > check_menu_items(mii.hSubMenu, checked_cmd, checked_type, checked_state); > } > else > { > if (mii.wID == checked_cmd) > { > (winetest_set_location("menu.c", 2027), 0) ? 0 : winetest_ok(mii.fType == checked_type, "id %u: expected fType %04x, got %04x\n", checked_cmd, checked_type, mii.fType); > (winetest_set_location("menu.c", 2028), 0) ? 0 : winetest_ok(mii.fState == checked_state, "id %u: expected fState %04x, got %04x\n", checked_cmd, checked_state, mii.fState); > (winetest_set_location("menu.c", 2029), 0) ? 0 : winetest_ok(mii.wID != 0, "id %u: not expected wID 0\n", checked_cmd); > } > else > { > (winetest_set_location("menu.c", 2033), 0) ? 0 : winetest_ok(mii.fType != 0x00000200L, "id %u: not expected fType MFT_RADIOCHECK on cmd %u\n", checked_cmd, mii.wID); > > if (mii.fType == 0x0800) > { > (winetest_set_location("menu.c", 2037), 0) ? 0 : winetest_ok(mii.fState == 0x00000003L, "id %u: expected fState MFS_GRAYED, got %04x\n", checked_cmd, mii.fState); > (winetest_set_location("menu.c", 2038), 0) ? 0 : winetest_ok(mii.wID == 0, "id %u: expected wID 0, got %u\n", checked_cmd, mii.wID); > } > else > { > (winetest_set_location("menu.c", 2042), 0) ? 0 : winetest_ok(mii.fState == 0, "id %u: expected fState 0, got %04x\n", checked_cmd, mii.fState); > (winetest_set_location("menu.c", 2043), 0) ? 0 : winetest_ok(mii.wID != 0, "id %u: not expected wID 0\n", checked_cmd); > } > } > } > } >} > >static void clear_ftype_and_state(HMENU hmenu, UINT id, UINT flags) >{ > BOOL ret; > MENUITEMINFO mii; > > memset(&mii, 0, sizeof(mii)); > mii.cbSize = sizeof(mii); > mii.fMask = 0x00000100 | 0x00000001; > ret = SetMenuItemInfoA(hmenu, id, (flags & 0x0400) != 0, &mii); > (winetest_set_location("menu.c", 2059), 0) ? 0 : winetest_ok(ret, "SetMenuItemInfo(%u) failed\n", id); >} > >static void test_CheckMenuRadioItem(void) >{ > BOOL ret; > HMENU hmenu; > > hmenu = LoadMenuA(GetModuleHandleA(0), (LPSTR)((ULONG_PTR)((WORD)(1)))); > ((hmenu != 0) ? (void) (0) : __assert_fail ("hmenu != 0", "menu.c", 2068, __PRETTY_FUNCTION__)); > > check_menu_items(hmenu, -1, 0, 0); > > ret = CheckMenuRadioItem(hmenu, 100, 100, 100, 0x0000); > (winetest_set_location("menu.c", 2073), 0) ? 0 : winetest_ok(ret, "CheckMenuRadioItem failed\n"); > check_menu_items(hmenu, 100, 0x00000200L, 0x0008); > > > ret = CheckMenuRadioItem(hmenu, 100, 100, -1, 0x0000); > (winetest_set_location("menu.c", 2078), 0) ? 0 : winetest_ok(!ret, "CheckMenuRadioItem should return FALSE\n"); > check_menu_items(hmenu, 100, 0x00000200L, 0); > > > clear_ftype_and_state(hmenu, 100, 0x0000); > check_menu_items(hmenu, -1, 0, 0); > > > ret = CheckMenuRadioItem(hmenu, 0, 300, 202, 0x0000); > (winetest_set_location("menu.c", 2087), 0) ? 0 : winetest_ok(!ret, "CheckMenuRadioItem should return FALSE\n"); > check_menu_items(hmenu, -1, 0, 0); > > ret = CheckMenuRadioItem(hmenu, 200, 300, 202, 0x0000); > (winetest_set_location("menu.c", 2091), 0) ? 0 : winetest_ok(ret, "CheckMenuRadioItem failed\n"); > check_menu_items(hmenu, 202, 0x00000200L, 0x0008); > > > ret = CheckMenuRadioItem(hmenu, 202, 202, -1, 0x0000); > (winetest_set_location("menu.c", 2096), 0) ? 0 : winetest_ok(!ret, "CheckMenuRadioItem should return FALSE\n"); > check_menu_items(hmenu, 202, 0x00000200L, 0); > > > clear_ftype_and_state(hmenu, 202, 0x0000); > check_menu_items(hmenu, -1, 0, 0); > > > ret = CheckMenuRadioItem(hmenu, 0, 300, 0, 0x0000); > (winetest_set_location("menu.c", 2105), 0) ? 0 : winetest_ok(!ret, "CheckMenuRadioItem should return FALSE\n"); > check_menu_items(hmenu, -1, 0, 0); >} > >static void test_menu_resource_layout(void) >{ > static const struct > { > MENUITEMTEMPLATEHEADER mith; > WORD data[14]; > } menu_template = > { > { 0, 0 }, > { > > 0x0000, 1, 'F', 0, > 0x0000, 2, 0, > 0x0800, 3, 0, > > 0x0000|0x0001|0x0080, 5, 'E', 0 > } > }; > static const struct > { > UINT type, state, id; > const char *str; > } menu_data[] = > { > { 0x0000, 0x0000, 1, "F" }, > { 0x0800, 0x0001|0x0002, 2, "" }, > { 0x0800, 0x0001|0x0002, 3, "" }, > > { 0x0000, 0x0001, 5, "E" }, > { 0x0800, 0x0001|0x0002, 6, "" }, > { 0x0000, 0x0000, 7, "" }, > { 0x0800, 0x0001|0x0002, 8, "" } > }; > HMENU hmenu; > UINT count, i; > BOOL ret; > > hmenu = LoadMenuIndirectA(&menu_template); > (winetest_set_location("menu.c", 2147), 0) ? 0 : winetest_ok(hmenu != 0, "LoadMenuIndirect error %u\n", GetLastError()); > > ret = AppendMenuA(hmenu, 0x0000, 6, ((void *)0)); > (winetest_set_location("menu.c", 2150), 0) ? 0 : winetest_ok(ret, "AppendMenu failed\n"); > ret = AppendMenuA(hmenu, 0x0000, 7, "\0"); > (winetest_set_location("menu.c", 2152), 0) ? 0 : winetest_ok(ret, "AppendMenu failed\n"); > ret = AppendMenuA(hmenu, 0x0800, 8, "separator"); > (winetest_set_location("menu.c", 2154), 0) ? 0 : winetest_ok(ret, "AppendMenu failed\n"); > > count = GetMenuItemCount(hmenu); > (winetest_set_location("menu.c", 2157), 0) ? 0 : winetest_ok(count == sizeof(menu_data)/sizeof(menu_data[0]), > "expected %u menu items, got %u\n", > (UINT)(sizeof(menu_data)/sizeof(menu_data[0])), count); > > for (i = 0; i < count; i++) > { > char buf[20]; > MENUITEMINFO mii; > > memset(&mii, 0, sizeof(mii)); > mii.cbSize = sizeof(mii); > mii.dwTypeData = buf; > mii.cch = sizeof(buf); > mii.fMask = 0x00000100 | 0x00000001 | 0x00000002 | 0x00000040; > ret = GetMenuItemInfoA(hmenu, i, 1, &mii); > (winetest_set_location("menu.c", 2172), 0) ? 0 : winetest_ok(ret, "GetMenuItemInfo(%u) failed\n", i); > > > > > (winetest_set_location("menu.c", 2177), 0) ? 0 : winetest_ok(mii.fType == menu_data[i].type, > "%u: expected fType %04x, got %04x\n", i, menu_data[i].type, mii.fType); > (winetest_set_location("menu.c", 2179), 0) ? 0 : winetest_ok(mii.fState == menu_data[i].state, > "%u: expected fState %04x, got %04x\n", i, menu_data[i].state, mii.fState); > (winetest_set_location("menu.c", 2181), 0) ? 0 : winetest_ok(mii.wID == menu_data[i].id, > "%u: expected wID %04x, got %04x\n", i, menu_data[i].id, mii.wID); > (winetest_set_location("menu.c", 2183), 0) ? 0 : winetest_ok(mii.cch == strlen(menu_data[i].str), > "%u: expected cch %u, got %u\n", i, (UINT)strlen(menu_data[i].str), mii.cch); > (winetest_set_location("menu.c", 2185), 0) ? 0 : winetest_ok(!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ((LPCSTR)mii.dwTypeData) && __builtin_constant_p (menu_data[i].str) && (__s1_len = strlen ((LPCSTR)mii.dwTypeData), __s2_len = strlen (menu_data[i].str), (!((size_t)(const void *)(((LPCSTR)mii.dwTypeData) + 1) - (size_t)(const void *)((LPCSTR)mii.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((menu_data[i].str) + 1) - (size_t)(const void *)(menu_data[i].str) == 1) || __s2_len >= 4)) ? __builtin_strcmp ((LPCSTR)mii.dwTypeData, menu_data[i].str) : (__builtin_constant_p ((LPCSTR)mii.dwTypeData) && ((size_t)(const void *)(((LPCSTR)mii.dwTypeData) + 1) - (size_t)(const void *)((LPCSTR)mii.dwTypeData) == 1) && (__s1_len = strlen ((LPCSTR)mii.dwTypeData), __s1_len < 4) ? (__builtin_constant_p (menu_data[i].str) && ((size_t)(const void *)((menu_data[i].str) + 1) - (size_t)(const void *)(menu_data[i].str) == 1) ? __builtin_strcmp ((LPCSTR)mii.dwTypeData, menu_data[i].str) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (menu_data[i].str); register int __result = (((__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (menu_data[i].str) && ((size_t)(const void *)((menu_data[i].str) + 1) - (size_t)(const void *)(menu_data[i].str) == 1) && (__s2_len = strlen (menu_data[i].str), __s2_len < 4) ? (__builtin_constant_p ((LPCSTR)mii.dwTypeData) && ((size_t)(const void *)(((LPCSTR)mii.dwTypeData) + 1) - (size_t)(const void *)((LPCSTR)mii.dwTypeData) == 1) ? __builtin_strcmp ((LPCSTR)mii.dwTypeData, menu_data[i].str) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (menu_data[i].str))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (menu_data[i].str))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (menu_data[i].str))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (menu_data[i].str))[3]); } } __result; }))) : __builtin_strcmp ((LPCSTR)mii.dwTypeData, menu_data[i].str)))); }), > "%u: expected dwTypeData %s, got %s\n", i, menu_data[i].str, (LPCSTR)mii.dwTypeData); > } > > DestroyMenu(hmenu); >} > >struct menu_data >{ > UINT type, id; > const char *str; >}; > >static HMENU create_menu_from_data(const struct menu_data *item, INT item_count) >{ > HMENU hmenu; > INT i; > BOOL ret; > > hmenu = CreateMenu(); > ((hmenu != 0) ? (void) (0) : __assert_fail ("hmenu != 0", "menu.c", 2205, __PRETTY_FUNCTION__)); > > for (i = 0; i < item_count; i++) > { > SetLastError(0xdeadbeef); > ret = AppendMenuA(hmenu, item[i].type, item[i].id, item[i].str); > (winetest_set_location("menu.c", 2211), 0) ? 0 : winetest_ok(ret, "%d: AppendMenu(%04x, %04x, %p) error %u\n", > i, item[i].type, item[i].id, item[i].str, GetLastError()); > } > return hmenu; >} > >static void compare_menu_data(HMENU hmenu, const struct menu_data *item, INT item_count) >{ > INT count, i; > BOOL ret; > > count = GetMenuItemCount(hmenu); > (winetest_set_location("menu.c", 2223), 0) ? 0 : winetest_ok(count == item_count, "expected %d, got %d menu items\n", count, item_count); > > for (i = 0; i < count; i++) > { > char buf[20]; > MENUITEMINFO mii; > > memset(&mii, 0, sizeof(mii)); > mii.cbSize = sizeof(mii); > mii.dwTypeData = buf; > mii.cch = sizeof(buf); > mii.fMask = 0x00000100 | 0x00000002 | 0x00000040 | 0x00000080; > ret = GetMenuItemInfoA(hmenu, i, 1, &mii); > (winetest_set_location("menu.c", 2236), 0) ? 0 : winetest_ok(ret, "GetMenuItemInfo(%u) failed\n", i); > > > > > (winetest_set_location("menu.c", 2241), 0) ? 0 : winetest_ok(mii.fType == item[i].type, > "%u: expected fType %04x, got %04x\n", i, item[i].type, mii.fType); > (winetest_set_location("menu.c", 2243), 0) ? 0 : winetest_ok(mii.wID == item[i].id, > "%u: expected wID %04x, got %04x\n", i, item[i].id, mii.wID); > if (item[i].type & (0x0004 | 0x0800)) > { > > > > (winetest_set_location("menu.c", 2250), 0) ? 0 : winetest_ok(((WORD)((DWORD_PTR)(mii.hbmpItem) & 0xFFFF)) == ((WORD)((DWORD_PTR)(item[i].str) & 0xFFFF)), > "%u: expected hbmpItem %p, got %p\n", i, item[i].str, mii.hbmpItem); > } > else > { > (winetest_set_location("menu.c", 2255), 0) ? 0 : winetest_ok(mii.cch == strlen(item[i].str), > "%u: expected cch %u, got %u\n", i, (UINT)strlen(item[i].str), mii.cch); > (winetest_set_location("menu.c", 2257), 0) ? 0 : winetest_ok(!__extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ((LPCSTR)mii.dwTypeData) && __builtin_constant_p (item[i].str) && (__s1_len = strlen ((LPCSTR)mii.dwTypeData), __s2_len = strlen (item[i].str), (!((size_t)(const void *)(((LPCSTR)mii.dwTypeData) + 1) - (size_t)(const void *)((LPCSTR)mii.dwTypeData) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((item[i].str) + 1) - (size_t)(const void *)(item[i].str) == 1) || __s2_len >= 4)) ? __builtin_strcmp ((LPCSTR)mii.dwTypeData, item[i].str) : (__builtin_constant_p ((LPCSTR)mii.dwTypeData) && ((size_t)(const void *)(((LPCSTR)mii.dwTypeData) + 1) - (size_t)(const void *)((LPCSTR)mii.dwTypeData) == 1) && (__s1_len = strlen ((LPCSTR)mii.dwTypeData), __s1_len < 4) ? (__builtin_constant_p (item[i].str) && ((size_t)(const void *)((item[i].str) + 1) - (size_t)(const void *)(item[i].str) == 1) ? __builtin_strcmp ((LPCSTR)mii.dwTypeData, item[i].str) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (item[i].str); register int __result = (((__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (item[i].str) && ((size_t)(const void *)((item[i].str) + 1) - (size_t)(const void *)(item[i].str) == 1) && (__s2_len = strlen (item[i].str), __s2_len < 4) ? (__builtin_constant_p ((LPCSTR)mii.dwTypeData) && ((size_t)(const void *)(((LPCSTR)mii.dwTypeData) + 1) - (size_t)(const void *)((LPCSTR)mii.dwTypeData) == 1) ? __builtin_strcmp ((LPCSTR)mii.dwTypeData, item[i].str) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) ((LPCSTR)mii.dwTypeData); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (item[i].str))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (item[i].str))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (item[i].str))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (item[i].str))[3]); } } __result; }))) : __builtin_strcmp ((LPCSTR)mii.dwTypeData, item[i].str)))); }), > "%u: expected dwTypeData %s, got %s\n", i, item[i].str, (LPCSTR)mii.dwTypeData); > } > } >} > >static void test_InsertMenu(void) >{ > > > > static const struct menu_data in1[] = > { > { 0x0000, 1, "File" }, > { 0x0004|0x4000, 0xf060, (LPSTR)((ULONG_PTR)((WORD)(1))) }, > { 0x0000|0x4000, 2, "Help" } > }; > static const struct menu_data out1[] = > { > { 0x0000, 1, "File" }, > { 0x0000|0x4000, 2, "Help" }, > { 0x0004|0x4000, 0xf060, (LPSTR)((ULONG_PTR)((WORD)(1))) } > }; > static const struct menu_data in2[] = > { > { 0x0000, 1, "File" }, > { 0x0004|0x4000, 0xf060, (LPSTR)((ULONG_PTR)((WORD)(100))) }, > { 0x0000|0x4000, 2, "Help" } > }; > static const struct menu_data out2[] = > { > { 0x0000, 1, "File" }, > { 0x0004|0x4000, 0xf060, (LPSTR)((ULONG_PTR)((WORD)(100))) }, > { 0x0000|0x4000, 2, "Help" } > }; > static const struct menu_data in3[] = > { > { 0x0000, 1, "File" }, > { 0x0800|0x4000, 0xf060, (LPSTR)((ULONG_PTR)((WORD)(1))) }, > { 0x0000|0x4000, 2, "Help" } > }; > static const struct menu_data out3[] = > { > { 0x0000, 1, "File" }, > { 0x0800|0x4000, 0xf060, (LPSTR)((ULONG_PTR)((WORD)(0))) }, > { 0x0000|0x4000, 2, "Help" }, > }; > static const struct menu_data in4[] = > { > { 0x0000, 1, "File" }, > { 0x0004|0x4000, 1, (LPSTR)((ULONG_PTR)((WORD)(1))) }, > { 0x0000|0x4000, 2, "Help" } > }; > static const struct menu_data out4[] = > { > { 0x0000, 1, "File" }, > { 0x0000|0x4000, 2, "Help" }, > { 0x0004|0x4000, 1, (LPSTR)((ULONG_PTR)((WORD)(1))) } > }; > HMENU hmenu; > > > > > hmenu = create_menu_from_data((in1), sizeof(in1)/sizeof((in1)[0])); > compare_menu_data((hmenu), (out1), sizeof(out1)/sizeof((out1)[0])); > DestroyMenu(hmenu); > > hmenu = create_menu_from_data((in2), sizeof(in2)/sizeof((in2)[0])); > compare_menu_data((hmenu), (out2), sizeof(out2)/sizeof((out2)[0])); > DestroyMenu(hmenu); > > hmenu = create_menu_from_data((in3), sizeof(in3)/sizeof((in3)[0])); > compare_menu_data((hmenu), (out3), sizeof(out3)/sizeof((out3)[0])); > DestroyMenu(hmenu); > > hmenu = create_menu_from_data((in4), sizeof(in4)/sizeof((in4)[0])); > compare_menu_data((hmenu), (out4), sizeof(out4)/sizeof((out4)[0])); > DestroyMenu(hmenu); > > > >} > >void func_menu(void) >{ > init_function_pointers(); > > register_menu_check_class(); > > test_menu_locked_by_window(); > test_menu_ownerdraw(); > test_menu_add_string(); > test_menu_iteminfo(); > test_menu_search_bycommand(); > test_menu_bmp_and_string(); > > if( !pSendInput) > (winetest_set_location("menu.c", 2355), 0) ? (void)0 : winetest_skip("SendInput is not available\n"); > else > test_menu_input(); > test_menu_flags(); > > test_menu_hilitemenuitem(); > test_CheckMenuRadioItem(); > test_menu_resource_layout(); > test_InsertMenu(); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 443165
: 302946