Re: Help required to change function prototype

2006-09-07 Thread Andrew Talbot
Vitaliy Margolen wrote: > Dmitry Timoshkov wrote: >> "Robert Shearman" <[EMAIL PROTECTED]> wrote: >> Use LPCVOID instead of PCVOID. >>> >>> This is ntdll code and LPCVOID is a Win32 type. Don't use Win32 types >>> in ntdll code. >> >> Then simple 'const void *' should do the trick, sin

Re: Help required to change function prototype

2006-09-06 Thread Vitaliy Margolen
Dmitry Timoshkov wrote: > "Robert Shearman" <[EMAIL PROTECTED]> wrote: > >>> Use LPCVOID instead of PCVOID. >>> >> >> This is ntdll code and LPCVOID is a Win32 type. Don't use Win32 types >> in ntdll code. > > Then simple 'const void *' should do the trick, since introducing PCVOID > is not an op

Re: Help required to change function prototype

2006-09-06 Thread Dmitry Timoshkov
"Robert Shearman" <[EMAIL PROTECTED]> wrote: Use LPCVOID instead of PCVOID. This is ntdll code and LPCVOID is a Win32 type. Don't use Win32 types in ntdll code. Then simple 'const void *' should do the trick, since introducing PCVOID is not an option (a quick search reveals that it doesn't

Re: Help required to change function prototype

2006-09-06 Thread Robert Shearman
Dmitry Timoshkov wrote: "Andrew Talbot" <[EMAIL PROTECTED]> wrote: In file included from ../../include/thread.h:29, from relay.c:30: ../../include/winternl.h:1933: error: expected declaration specifiers or ... before PCVOID make[2]: *** [relay.o] Error 1 make[1]: *** [winebui

Re: Help required to change function prototype

2006-09-06 Thread Andrew Talbot
Dmitry Timoshkov wrote: > Use LPCVOID instead of PCVOID. Success! Thanks, Dmitry. -- Andy.

Re: Help required to change function prototype

2006-09-06 Thread Dmitry Timoshkov
"Andrew Talbot" <[EMAIL PROTECTED]> wrote: In file included from ../../include/thread.h:29, from relay.c:30: ../../include/winternl.h:1933: error: expected declaration specifiers or ... before PCVOID make[2]: *** [relay.o] Error 1 make[1]: *** [winebuild] Error 2 make: *** [tool

Re: Help required to change function prototype

2006-09-06 Thread Andrew Talbot
I also note that I need to change the equivalent Zw... function, too, but doing so, is not enough to solve the problem. -- Andy.

Help required to change function prototype

2006-09-06 Thread Andrew Talbot
Hi, I want to change UnmapViewOfFile() (in kernel) to take a LPCVOID, as per the SDK. To do that, I first need to constify one of the parameters of NtUnmapViewOfSection() (in ntdll), but changing it from PVOID to PCVOID in winternl.h breaks compilation (in the "make depend" stage), thus: In file