[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: mm timer
From:       Eric Pouech <Eric.Pouech () wanadoo ! fr>
Date:       1999-06-24 18:34:38
[Download RAW message or body]

sigh... that's right... let's get ready for another try...
hope this ain't the "never ending story" patch


Ulrich Weigand wrote:
> 
> > +    HANDLE                   hThisProcess;
> [snip]
> > +    HANDLE           ht = GetCurrentProcess();
> 
> This cannot work.  You'll have to use the process *ID*.
> Note that handles in general are only valid within one
> process, so you cannot compare the numerical value of
> a handle created in one process with one from another
> process (except for *global* handles, of course).
> 
> In the particular case of GetCurrentProcess(), it is even
> worse, as this always return simply CURRENT_PROCESS_PSEUDOHANDLE :-)
> 
> If you use GetCurrentProcessId() instead, it should work.
> 
> Bye,
> Ulrich
> 
> --
>   Ulrich Weigand,
>   IMMD 1, Universitaet Erlangen-Nuernberg,
>   Martensstr. 3, D-91058 Erlangen, Phone: +49 9131 85-7688

-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle


=========================================================================

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic