| Revision | 3d65d2e97bfdf70a1f87521c5b6032118858bcec (tree) |
|---|---|
| Time | 2012-03-12 22:13:57 |
| Author | qwerty2501 <qwerty2501users.sourceforge.jp> |
| Commiter | qwerty2501 |
マニフェスト変更
| @@ -19,10 +19,16 @@ CAppModule _Module; | ||
| 19 | 19 | int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, |
| 20 | 20 | LPTSTR lpCmdLine, int nCmdShow) |
| 21 | 21 | { |
| 22 | + INITCOMMONCONTROLSEX icmc; | |
| 23 | + icmc.dwSize = sizeof(icmc); | |
| 24 | + icmc.dwICC = ICC_WIN95_CLASSES; | |
| 25 | + InitCommonControlsEx(&icmc); | |
| 22 | 26 | HINSTANCE hRich = LoadLibrary(CRichEditCtrl::GetLibraryName()); |
| 23 | 27 | int nRet = -1; |
| 24 | 28 | try{ |
| 25 | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 26 | 32 | // |
| 27 | 33 | //アプリケケーション初期化処理 |
| 28 | 34 | // |
| @@ -1,11 +1,18 @@ | ||
| 1 | 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
| 2 | 2 | <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> |
| 3 | -<assemblyIdentity | |
| 4 | - version="1.0.0.0" | |
| 5 | - processorArchitecture="X86" | |
| 6 | - name="CompanyName.ProductName.nlite" | |
| 7 | - type="win32" | |
| 8 | -/> | |
| 3 | + <assemblyIdentity | |
| 4 | + version="1.0.0.0" | |
| 5 | + processorArchitecture="X86" | |
| 6 | + name="CompanyName.ProductName.nlite" | |
| 7 | + type="win32"> | |
| 8 | + <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> | |
| 9 | + <security> | |
| 10 | + <requestedPrivileges> | |
| 11 | + <requestedExecutionLevel level="asInvoker"/> | |
| 12 | + </requestedPrivileges> | |
| 13 | + </security> | |
| 14 | + </trustInfo> | |
| 15 | + </assemblyIdentity> | |
| 9 | 16 | <description>アプリケーションの説明</description> |
| 10 | 17 | <dependency> |
| 11 | 18 | <dependentAssembly> |
| @@ -1,5 +1,5 @@ | ||
| 1 | -// Generated by ResEdit 1.5.9 | |
| 2 | -// Copyright (C) 2006-2011 | |
| 1 | +// Generated by ResEdit 1.5.10 | |
| 2 | +// Copyright (C) 2006-2012 | |
| 3 | 3 | // http://www.resedit.net |
| 4 | 4 | |
| 5 | 5 | #include <windows.h> |
| @@ -208,4 +208,4 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL | ||
| 208 | 208 | // Manifest resources |
| 209 | 209 | // |
| 210 | 210 | LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL |
| 211 | -CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "nlite.exe.manifest" | |
| 211 | +2 RT_MANIFEST ".\\nlite.exe.manifest" |
| @@ -28,27 +28,27 @@ | ||
| 28 | 28 | <ConfigurationType>Application</ConfigurationType> |
| 29 | 29 | <UseDebugLibraries>true</UseDebugLibraries> |
| 30 | 30 | <CharacterSet>Unicode</CharacterSet> |
| 31 | - <UseOfAtl>Static</UseOfAtl> | |
| 31 | + <UseOfAtl>false</UseOfAtl> | |
| 32 | 32 | </PropertyGroup> |
| 33 | 33 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-window|Win32'" Label="Configuration"> |
| 34 | 34 | <ConfigurationType>Application</ConfigurationType> |
| 35 | 35 | <UseDebugLibraries>true</UseDebugLibraries> |
| 36 | 36 | <CharacterSet>Unicode</CharacterSet> |
| 37 | - <UseOfAtl>Static</UseOfAtl> | |
| 37 | + <UseOfAtl>false</UseOfAtl> | |
| 38 | 38 | </PropertyGroup> |
| 39 | 39 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
| 40 | 40 | <ConfigurationType>Application</ConfigurationType> |
| 41 | 41 | <UseDebugLibraries>false</UseDebugLibraries> |
| 42 | 42 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 43 | 43 | <CharacterSet>Unicode</CharacterSet> |
| 44 | - <UseOfAtl>Static</UseOfAtl> | |
| 44 | + <UseOfAtl>false</UseOfAtl> | |
| 45 | 45 | </PropertyGroup> |
| 46 | 46 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Preview|Win32'" Label="Configuration"> |
| 47 | 47 | <ConfigurationType>Application</ConfigurationType> |
| 48 | 48 | <UseDebugLibraries>false</UseDebugLibraries> |
| 49 | 49 | <WholeProgramOptimization>true</WholeProgramOptimization> |
| 50 | 50 | <CharacterSet>Unicode</CharacterSet> |
| 51 | - <UseOfAtl>Static</UseOfAtl> | |
| 51 | + <UseOfAtl>false</UseOfAtl> | |
| 52 | 52 | </PropertyGroup> |
| 53 | 53 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 54 | 54 | <ImportGroup Label="ExtensionSettings"> |
| @@ -254,7 +254,9 @@ copy "$(targetdir)nlite.exe" "$(targetdir)nlite_preview\" /y | ||
| 254 | 254 | <ResourceCompile Include="nlite.rc" /> |
| 255 | 255 | </ItemGroup> |
| 256 | 256 | <ItemGroup> |
| 257 | - <Manifest Include="nlite.exe.manifest" /> | |
| 257 | + <Manifest Include="nlite.exe.manifest"> | |
| 258 | + <SubType>Designer</SubType> | |
| 259 | + </Manifest> | |
| 258 | 260 | </ItemGroup> |
| 259 | 261 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 260 | 262 | <ImportGroup Label="ExtensionTargets"> |
| @@ -6,8 +6,20 @@ | ||
| 6 | 6 | // SDKDDKVer.h をインクルードする前に、サポート対象とするプラットフォームを示すように _WIN32_WINNT マクロを設定します。 |
| 7 | 7 | |
| 8 | 8 | #include <WinSDKVer.h> |
| 9 | -#define _WIN32_WINNT 0x0501 //WindowsXPのバージョン | |
| 10 | -#define WINVER 0x0501 //WindowsXPのバージョン | |
| 9 | +#ifndef WINVER // 最低限必要なプラットフォームが Windows XP であることを指定します。 | |
| 10 | +#define WINVER 0x0501 // これを Windows の他のバージョン向けに適切な値に変更してください。 | |
| 11 | +#endif | |
| 12 | +#ifndef _WIN32_WINNT // 最低限必要なプラットフォームが Windows XP であることを指定します。 | |
| 13 | +#define _WIN32_WINNT 0x0501 // これを Windows の他のバージョン向けに適切な値に変更してください。 | |
| 14 | +#endif | |
| 15 | + | |
| 16 | +#ifndef _WIN32_WINDOWS // 最低限必要なプラットフォームが Windows 98 であることを指定します。 | |
| 17 | +#define _WIN32_WINDOWS 0x0410 // これを Windows Me またはそれ以降のバージョン向けに適切な値に変更してください。 | |
| 18 | +#endif | |
| 19 | + | |
| 20 | +#ifndef _WIN32_IE // 最低限必要なプラットフォームが Internet Explorer 6.0 であることを指定します。 | |
| 21 | +#define _WIN32_IE 0x0600 | |
| 22 | +#endif | |
| 11 | 23 | |
| 12 | 24 | #define NTDDI_VERSION NTDDI_WINXPSP3 |
| 13 | 25 |
| @@ -337,6 +337,7 @@ static INLINE COOKIE_RESULT GetCookieInternetExplorer(LPWSTR cookie,SIZE_T bufSi | ||
| 337 | 337 | |
| 338 | 338 | //保護モードフラグがTRUEならIEGetProtectedModeCookieでクッキーの値を取得 |
| 339 | 339 | if(isProtectedMode == TRUE){ |
| 340 | + | |
| 340 | 341 | cookieResult = IEGetProtectedModeCookie(url,key,cookie,&bufSize,0); |
| 341 | 342 | |
| 342 | 343 |