Windows XP API in Windows 2000 
Author Message
 Windows XP API in Windows 2000

Hello all,

I was wondering If any of you knew if it was possible to incorperate
functions from the Windows XP APIs into a Windows 2000 VB project.
There is a function called PrintWindow that apparently captures
bitmaps from any hwnd into a hDC of your choice (Much like the
wm_print message but works on any window)  This functionality is
exactly what I need (I also see a lot of others are looking for this
functionality based on other posts).  I was just wondering If there's
any way to safely run functions from XP dlls.

Thanks,

Steve



Mon, 08 Dec 2003 01:06:26 GMT  
 Windows XP API in Windows 2000
The doco's say this thing is prototyped in winspool.h and is in
winspool.lib. The docs are wrong; it is in winuser.h and user32.lib so your
chances are pretty much zero that you will be able to use this in W2K as
that lib is for user32.dll and I am doubting your system will be happy if
you update that DLL. You can take a swing at it on a test system for fun
though (this is a good example of why every developer needs VMWare
Workstation).

--
---
Joe Richards

Opinions expressed are, as always, Joe's and probably insulting to someone
somewhere so just relax. =)
http://www.joeware.net


Quote:
> Hello all,

> I was wondering If any of you knew if it was possible to incorperate
> functions from the Windows XP APIs into a Windows 2000 VB project.
> There is a function called PrintWindow that apparently captures
> bitmaps from any hwnd into a hDC of your choice (Much like the
> wm_print message but works on any window)  This functionality is
> exactly what I need (I also see a lot of others are looking for this
> functionality based on other posts).  I was just wondering If there's
> any way to safely run functions from XP dlls.

> Thanks,

> Steve



Mon, 08 Dec 2003 03:44:00 GMT  
 Windows XP API in Windows 2000
Even if it WERE in the spooler, that cannot really be updated this way,
either. So your answer is not only right, but its more right than you
realized!

--
MichKa

the only book on internationalization in VB at
http://www.i18nWithVB.com/


Quote:
> The doco's say this thing is prototyped in winspool.h and is in
> winspool.lib. The docs are wrong; it is in winuser.h and user32.lib so
your
> chances are pretty much zero that you will be able to use this in W2K as
> that lib is for user32.dll and I am doubting your system will be happy if
> you update that DLL. You can take a swing at it on a test system for fun
> though (this is a good example of why every developer needs VMWare
> Workstation).

> --
> ---
> Joe Richards

> Opinions expressed are, as always, Joe's and probably insulting to someone
> somewhere so just relax. =)
> http://www.joeware.net



> > Hello all,

> > I was wondering If any of you knew if it was possible to incorperate
> > functions from the Windows XP APIs into a Windows 2000 VB project.
> > There is a function called PrintWindow that apparently captures
> > bitmaps from any hwnd into a hDC of your choice (Much like the
> > wm_print message but works on any window)  This functionality is
> > exactly what I need (I also see a lot of others are looking for this
> > functionality based on other posts).  I was just wondering If there's
> > any way to safely run functions from XP dlls.

> > Thanks,

> > Steve



Mon, 08 Dec 2003 04:18:21 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Ann: Live Chat on VenturCom Boot-NIC - Windows 2000/XP/XP Embedded Diskless Network Boot

2. VBA 6.5, Windows 2000 and Windows API

3. Word 2000 from within VB: Windows 2000: error, Windows ME: ok

4. outlook 2000 within windows xp

5. Excel 2000, Windows XP, System.Runtime.InteropServices.COMException

6. GUI problems b/x windows xp and 2000

7. (2nd posting)Adding ActiveX EXE to Windows 2000/XP Services

8. Adding ActiveX EXE to Windows 2000/XP Services

9. Selecting Fonts within Windows 2000/xp Prof.

10. Crystal Reports 4.6 and Windows 2000 or XP problem

11. SQL Server 2000 with Windows XP?

12. Cannot connect to Access 2000 database in Windows XP with ADO (2.5)

 

 
Powered by phpBB® Forum Software