C++ code to print IADsTSUserEx properties


hi,

i trying write c++ code print terminal services properties. have added tsuserex.h error saying get_enableremotecontrol identifier not found. there references available help?

my code:

        iads *pobject;  	hresult hr;  	iadstsuserex *ptsuser = null;           variant var;                lpwstr pszattrs[] = { l"enableremotecontrol" };  	dword dwnumber = sizeof( pszattrs ) /sizeof(lpwstr);    	hr = adsbuildvararraystr( pszattrs, dwnumber, &var );  	hr = pobject->getinfoex(var, 0);  	long *pval;  	hr = get_enableremotecontrol(&pval);

hi,

as question related code, can post in our developer forums help.

developer forums

http://social.msdn.microsoft.com/forums/windowsdesktop/en-us/home?category=windowsdesktopdev

more information:

iadstsuserex properties

http://msdn.microsoft.com/en-us/library/windows/desktop/gg983034(v=vs.85).aspx

thanks.


best regards
jeremy wu



Windows Server  >  Remote Desktop Services (Terminal Services)



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS