diff --git a/adm/cmake/occt_csf.cmake b/adm/cmake/occt_csf.cmake
index ec05ffc76a..da796d18f7 100644
--- a/adm/cmake/occt_csf.cmake
+++ b/adm/cmake/occt_csf.cmake
@@ -62,6 +62,7 @@ if (WIN32)
set (CSF_advapi32 "advapi32.lib")
set (CSF_gdi32 "gdi32.lib")
set (CSF_user32 "user32.lib")
+ set (CSF_shell32 "shell32.lib")
set (CSF_wsock32 "wsock32.lib")
set (CSF_psapi "psapi.lib")
set (CSF_d3d9 "D3D9.lib")
diff --git a/adm/genproj.tcl b/adm/genproj.tcl
index 31bb630d30..9039a5a2a1 100644
--- a/adm/genproj.tcl
+++ b/adm/genproj.tcl
@@ -1345,6 +1345,7 @@ proc osutils:csfList { theOS theCsfLibsMap theCsfFrmsMap } {
set aLibsMap(CSF_advapi32) "advapi32"
set aLibsMap(CSF_gdi32) "gdi32"
set aLibsMap(CSF_user32) "user32 comdlg32"
+ set aLibsMap(CSF_shell32) "shell32"
set aLibsMap(CSF_opengl32) "opengl32"
set aLibsMap(CSF_wsock32) "wsock32"
set aLibsMap(CSF_netapi32) "netapi32"
diff --git a/adm/templates/template.vc10 b/adm/templates/template.vc10
index 02440dfffe..d391c38006 100644
--- a/adm/templates/template.vc10
+++ b/adm/templates/template.vc10
@@ -110,7 +110,7 @@
NDEBUG;No_Exception;$(CSF_DEFINES);%(PreprocessorDefinitions)
- __TKDEP__;ws2_32.lib;%(AdditionalDependencies)
+ __TKDEP__
.\..\..\..\win32\__VCVER__\bin\__TKNAM__.dll
true
..\..\..\win32\__VCVER__\lib;$(CSF_OPT_LIB32);%(AdditionalLibraryDirectories)
@@ -159,7 +159,7 @@
_DEBUG;$(CSF_DEFINES);%(PreprocessorDefinitions)
- __TKDEP__;ws2_32.lib;%(AdditionalDependencies)
+ __TKDEP__
.\..\..\..\win32\__VCVER__\bind\__TKNAM__.dll
true
..\..\..\win32\__VCVER__\libd;$(CSF_OPT_LIB32D);%(AdditionalLibraryDirectories)
@@ -206,7 +206,7 @@
NDEBUG;No_Exception;$(CSF_DEFINES);%(PreprocessorDefinitions)
- __TKDEP__;ws2_32.lib;%(AdditionalDependencies)
+ __TKDEP__
.\..\..\..\win64\__VCVER__\bin\__TKNAM__.dll
true
..\..\..\win64\__VCVER__\lib;$(CSF_OPT_LIB64);%(AdditionalLibraryDirectories)
@@ -255,7 +255,7 @@
_DEBUG;$(CSF_DEFINES);%(PreprocessorDefinitions)
- __TKDEP__;ws2_32.lib;%(AdditionalDependencies)
+ __TKDEP__
.\..\..\..\win64\__VCVER__\bind\__TKNAM__.dll
true
..\..\..\win64\__VCVER__\libd;$(CSF_OPT_LIB64D);%(AdditionalLibraryDirectories)
diff --git a/adm/templates/template.vc10x b/adm/templates/template.vc10x
index 3adf048427..3b2d845aa5 100644
--- a/adm/templates/template.vc10x
+++ b/adm/templates/template.vc10x
@@ -103,7 +103,7 @@
NDEBUG;No_Exception;$(CSF_DEFINES);%(PreprocessorDefinitions)
- __TKDEP__;%(AdditionalDependencies)
+ __TKDEP__
true
..\..\..\win32\__VCVER__\lib;$(CSF_OPT_LIB32);%(AdditionalLibraryDirectories)
__VCReleasePDB__
@@ -149,7 +149,7 @@
_DEBUG;$(CSF_DEFINES);%(PreprocessorDefinitions)
- __TKDEP__;%(AdditionalDependencies)
+ __TKDEP__
true
..\..\..\win32\__VCVER__\libd;$(CSF_OPT_LIB32D);%(AdditionalLibraryDirectories)
true
@@ -193,7 +193,7 @@
NDEBUG;No_Exception;$(CSF_DEFINES);%(PreprocessorDefinitions)
- __TKDEP__;%(AdditionalDependencies)
+ __TKDEP__
true
..\..\..\win64\__VCVER__\lib;$(CSF_OPT_LIB64);%(AdditionalLibraryDirectories)
__VCReleasePDB__
@@ -238,7 +238,7 @@
_DEBUG;$(CSF_DEFINES);%(PreprocessorDefinitions)
- __TKDEP__;%(AdditionalDependencies)
+ __TKDEP__
true
..\..\..\win64\__VCVER__\libd;$(CSF_OPT_LIB64D);%(AdditionalLibraryDirectories)
true
diff --git a/src/TKDraw/EXTERNLIB b/src/TKDraw/EXTERNLIB
index 951aa231c9..1c1c76d0d1 100755
--- a/src/TKDraw/EXTERNLIB
+++ b/src/TKDraw/EXTERNLIB
@@ -15,6 +15,7 @@ CSF_XwLibs
CSF_gdi32
CSF_advapi32
CSF_user32
+CSF_shell32
CSF_TBB
CSF_objc
CSF_Appkit
diff --git a/src/TKIVtkDraw/EXTERNLIB b/src/TKIVtkDraw/EXTERNLIB
index a895f2d994..bf40a7d852 100644
--- a/src/TKIVtkDraw/EXTERNLIB
+++ b/src/TKIVtkDraw/EXTERNLIB
@@ -2,6 +2,7 @@ CSF_VTK
CSF_TclLibs
CSF_TclTkLibs
CSF_XwLibs
+CSF_user32
TKernel
TKBRep
TKDraw
diff --git a/src/TKService/EXTERNLIB b/src/TKService/EXTERNLIB
index 32aba57c23..6fb37e310f 100755
--- a/src/TKService/EXTERNLIB
+++ b/src/TKService/EXTERNLIB
@@ -7,6 +7,8 @@ TKG2d
TKG3d
TKTopAlgo
CSF_OpenGlLibs
+CSF_advapi32
+CSF_user32
CSF_XwLibs
CSF_dpsLibs
CSF_XmuLibs