查看单个帖子
旧 2009-04-13, 10:18 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】determine if user is logged into pdmworks vaul

determine if user is logged into pdmworks vault
is there a way (through the api) to determine if a user is currently logged into a pdmworks vault?
i have a sw add-in that i want to use to refresh the local cache only on vaults that the user has logged into.
tia,
eric
traditional flint ridge greeting:
it's not much of a house, but we've got one heckuva basement!
directly through pdm/sw api, no. there may be a way through the registry or windows protected storage or the likes if you can get the info about where pdmw stores current session info.
if pdmworks enterprise, try this:
if not vault.isloggedin then
pdmwevault = mvault
if pdmwevault <> nothing then
vault.loginauto(pdmwevault, 0)
end if
end if
jeff
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)