comparison dwt/internal/win32/WINAPI.d @ 256:02962e389917

Fix build for non-TANGOSVN and protos for AssocQueryString link error, thanks torhu for the patch.
author Frank Benoit <benoit@tionex.de>
date Sat, 19 Jul 2008 16:18:28 +0200
parents fbb9174f2a2c
children f617e6ba3055
comparison
equal deleted inserted replaced
255:f6dba57ef627 256:02962e389917
9 public import dwt.internal.win32.WINTYPES; 9 public import dwt.internal.win32.WINTYPES;
10 //import tango_sys_win32.Types; 10 //import tango_sys_win32.Types;
11 //import STDWIN = tango_sys_win32.UserGdi; 11 //import STDWIN = tango_sys_win32.UserGdi;
12 12
13 version(TANGOSVN){ 13 version(TANGOSVN){
14 import tango.sys.win32.Types;
14 } 15 }
15 else{ // !TANGOSVN 16 else{ // !TANGOSVN
16 17
17 extern(Windows) 18 extern(Windows)
18 { 19 {
1753 } // !TANGOSVN 1754 } // !TANGOSVN
1754 //////////////////////////////////////////////////////////////////////////////////////// 1755 ////////////////////////////////////////////////////////////////////////////////////////
1755 // dwt 1756 // dwt
1756 //////////////////////////////////////////////////////////////////////////////////////// 1757 ////////////////////////////////////////////////////////////////////////////////////////
1757 1758
1758 HRESULT AssocQueryStringA(ASSOCF flags, int str, LPCTSTR pszAssoc, LPCTSTR pszExtra, LPTSTR pszOut, DWORD *pcchOut);
1759 HRESULT AssocQueryStringW(ASSOCF flags, int str, LPCTSTR pszAssoc, LPCTSTR pszExtra, LPTSTR pszOut, DWORD *pcchOut);
1760 alias HANDLE HPAINTBUFFER; 1759 alias HANDLE HPAINTBUFFER;
1761 1760
1762 extern (Windows){ 1761 extern (Windows){
1762 HRESULT AssocQueryStringA(ASSOCF flags, int str, LPCSTR pszAssoc, LPCSTR pszExtra, LPSTR pszOut, DWORD *pcchOut);
1763 HRESULT AssocQueryStringW(ASSOCF flags, int str, LPCWSTR pszAssoc, LPCWSTR pszExtra, LPWSTR pszOut, DWORD *pcchOut);
1763 int AddFontResourceExA(char* lpszFilename, int fl, void* pdv); 1764 int AddFontResourceExA(char* lpszFilename, int fl, void* pdv);
1764 int AddFontResourceExW(wchar* lpszFilename, int fl, void* pdv); 1765 int AddFontResourceExW(wchar* lpszFilename, int fl, void* pdv);
1765 1766
1766 BOOL AlphaBlend( 1767 BOOL AlphaBlend(
1767 HDC hdcDest, // handle to destination DC 1768 HDC hdcDest, // handle to destination DC