Primera app real de Windows 8 Metro desde FWH !!!
Posted: Thu Mar 29, 2012 12:24 pm
Primera ventana real de Windows 8 Metro usando el API WinRT desde FWH y Harbour !!!
www.FiveTechSoft.com
https://forums.fivetechsoft.com/
Code: Select all
static const IID IID_IApplication =
{
0x74B861A1, 0x7487, 0x46A9,
{ 0x9A, 0x6E, 0xC7, 0x8B, 0x51, 0x27, 0x26, 0xC5 }
};
Code: Select all
static const IID IID_IApplicationFactory =
{
0x93BBE361, 0xBE5A, 0x4EE3,
{ 0xB4, 0xA3, 0x95, 0x11, 0x8D, 0xC9, 0x7A, 0x89 }
};
Estimado AntonioAntonio Linares wrote:Para construir aplicaciones que usen el API WinRT de Windows 8, necesitamos enlazar combase.lib. Windows 8 proporciona combase.dll, y podemos extraer combase.def de esta forma:
impdef.exe combase.def combase.dll
Para construir la lib: (si usamos Borland)
implib.exe combase.lib combase.dll
Si usamos Microsoft C/C++:
lib.exe /DEF:combase.def /OUT:combase.lib
Code: Select all
IMPORTS
Linker producer: Borland
Imports from: C:\Windows\SYSTEM32\advapi32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835392 $49C840 %10010011100100001000000
First Thunk: 4835260 $49C7BC %10010011100011110111100
No
Hint
Ordinal
Name
1. - - RegCloseKey
Imports from: C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.839_none_ea8af107b9b5cbb4\comctl32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835405 $49C84D %10010011100100001001101
First Thunk: 4835268 $49C7C4 %10010011100011111000100
No
Hint
Ordinal
Name
1. - $11
Imports from: C:\Windows\SYSTEM32\comdlg32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835418 $49C85A %10010011100100001011010
First Thunk: 4835276 $49C7CC %10010011100011111001100
No
Hint
Ordinal
Name
1. - - FindTextA
Imports from: C:\Windows\SYSTEM32\gdi32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835431 $49C867 %10010011100100001100111
First Thunk: 4835284 $49C7D4 %10010011100011111010100
No
Hint
Ordinal
Name
1. - - Arc
Imports from: C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.10586.1106_none_db441c35bc7e4e5e\gdiplus.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835441 $49C871 %10010011100100001110001
First Thunk: 4835292 $49C7DC %10010011100011111011100
No
Hint
Ordinal
Name
1. - - GdipFree
Imports from: C:\Windows\SYSTEM32\kernel32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835453 $49C87D %10010011100100001111101
First Thunk: 4835300 $49C7E4 %10010011100011111100100
No
Hint
Ordinal
Name
1. - - LoadLibraryA
2. - - ExitProcess
3. - - GetProcAddress
4. - - VirtualProtect
Imports from: C:\Windows\SYSTEM32\msimg32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835466 $49C88A %10010011100100010001010
First Thunk: 4835320 $49C7F8 %10010011100011111111000
No
Hint
Ordinal
Name
1. - - AlphaBlend
Imports from: C:\Windows\SYSTEM32\ole32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835478 $49C896 %10010011100100010010110
First Thunk: 4835328 $49C800 %10010011100100000000000
No
Hint
Ordinal
Name
1. - - CoInitialize
Imports from: C:\Windows\SYSTEM32\oleaut32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835488 $49C8A0 %10010011100100010100000
First Thunk: 4835336 $49C808 %10010011100100000001000
No
Hint
Ordinal
Name
1. - $8
Imports from: C:\Windows\SYSTEM32\oledlg.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835501 $49C8AD %10010011100100010101101
First Thunk: 4835344 $49C810 %10010011100100000010000
No
Hint
Ordinal
Name
1. - $4
Imports from: C:\Windows\SYSTEM32\shell32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835512 $49C8B8 %10010011100100010111000
First Thunk: 4835352 $49C818 %10010011100100000011000
No
Hint
Ordinal
Name
1. - - ShellAboutA
Imports from: C:\Windows\SYSTEM32\user32.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835524 $49C8C4 %10010011100100011000100
First Thunk: 4835360 $49C820 %10010011100100000100000
No
Hint
Ordinal
Name
1. - - GetDC
Imports from: C:\Windows\SYSTEM32\version.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835535 $49C8CF %10010011100100011001111
First Thunk: 4835368 $49C828 %10010011100100000101000
No
Hint
Ordinal
Name
1. - - VerQueryValueA
Imports from: C:\Windows\SYSTEM32\winmm.dll
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835547 $49C8DB %10010011100100011011011
First Thunk: 4835376 $49C830 %10010011100100000110000
No
Hint
Ordinal
Name
1. - - waveOutOpen
Imports from: C:\Windows\SYSTEM32\winspool.drv
Image Import Descriptor
Original First Thunk: 0 $0 %0
Time/Date Stamp: 0 $0 %0
Forwarder Chain: 0 $0 %0
Name: 4835557 $49C8E5 %10010011100100011100101
First Thunk: 4835384 $49C838 %10010011100100000111000
No
Hint
Ordinal
Name
1. - - GetPrinterA