salprn.cxx (9f62ea84) | salprn.cxx (aa150a94) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 437 unchanged lines hidden (view full) --- 446 static sal_Bool(WINAPI*pGetDefaultPrinter)(LPWSTR,LPDWORD) = NULL; 447 // try to use GetDefaultPrinter API (not available prior to W2000) 448 if( bGetDefPrtAPI ) 449 { 450 bGetDefPrtAPI = false; 451 // check for W2k and XP 452 if( aSalShlData.maVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT && aSalShlData.maVersionInfo.dwMajorVersion >= 5 ) 453 { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 437 unchanged lines hidden (view full) --- 446 static sal_Bool(WINAPI*pGetDefaultPrinter)(LPWSTR,LPDWORD) = NULL; 447 // try to use GetDefaultPrinter API (not available prior to W2000) 448 if( bGetDefPrtAPI ) 449 { 450 bGetDefPrtAPI = false; 451 // check for W2k and XP 452 if( aSalShlData.maVersionInfo.dwPlatformId == VER_PLATFORM_WIN32_NT && aSalShlData.maVersionInfo.dwMajorVersion >= 5 ) 453 { |
454 OUString aLibraryName( RTL_CONSTASCII_USTRINGPARAM( "winspool.drv" ) ); 455 oslModule pLib = osl_loadModule( aLibraryName.pData, SAL_LOADMODULE_DEFAULT ); | 454 oslModule pLib = osl_loadAsciiModule( "winspool.drv", SAL_LOADMODULE_DEFAULT ); |
456 oslGenericFunction pFunc = NULL; 457 if( pLib ) | 455 oslGenericFunction pFunc = NULL; 456 if( pLib ) |
458 { 459 OUString queryFuncName( RTL_CONSTASCII_USTRINGPARAM( "GetDefaultPrinterW" ) ); 460 pFunc = osl_getFunctionSymbol( pLib, queryFuncName.pData ); 461 } | 457 pFunc = osl_getAsciiFunctionSymbol( pLib, "GetDefaultPrinterW" ); |
462 463 pGetDefaultPrinter = (sal_Bool(WINAPI*)(LPWSTR,LPDWORD)) pFunc; 464 } 465 } 466 if( pGetDefaultPrinter ) 467 { 468 DWORD nChars = 0; 469 pGetDefaultPrinter( NULL, &nChars ); --- 1899 unchanged lines hidden --- | 458 459 pGetDefaultPrinter = (sal_Bool(WINAPI*)(LPWSTR,LPDWORD)) pFunc; 460 } 461 } 462 if( pGetDefaultPrinter ) 463 { 464 DWORD nChars = 0; 465 pGetDefaultPrinter( NULL, &nChars ); --- 1899 unchanged lines hidden --- |