bring an already running app to the front

  • Thread starter Thread starter cj
  • Start date Start date
Mike S said:
But again, if you just declare this as the API Viewer declares it, with
everything as Long:

Private Declare Function ExitWindowsEx Lib "user32.dll" Alias
"ExitWindowsEx" ( _
ByVal uFlags As Long, ByVal dwReserved As Long _
) As Long

It will work just as good.

No, it won't work in VB.NET.
As I said, Long and Int32 are *equivalent*

No, they aren't. 'Long' maps to 'Int64' and thus the code will break.
as far as API Declares go because they are both 32 bits wide on 32-bit
versions of Windows.

No, 'Long' is 64 bits wide on both 32-bit and 64-bit systems.
As for Boolean and Long in the return values, it
actually doesn't matter if they are two different sizes

Sure, it matters. 'BOOL' is a 32-bit type and thus maps perfectly to
'Boolean' and/or 'Int32'.
 
Hi,

For WMI related question, I would suggest posting in the newsgroup below:

microsoft.public.win32.programmer.wmi

The reason why we recommend posting appropriately is you will get the most
qualified pool of respondents, and other partners who the newsgroups
regularly can either share their knowledge or learn from your interaction
with us. Thank you for your understanding.

Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Herfried said:
No, they aren't. 'Long' maps to 'Int64' and thus the code will break.

Oops. That was stupid of me. You're right, of course. I managed to mix
up the VB.NET and VB6 definitions of 'Long' throughout this thread ;-)

Mike S
 
Back
Top