Hi All,
Finally I am able to run this piece of code and was able to fetch the required domain information. As it was stated in previous mailchain, I reinstalled my SDK and started a new project....
Type: Posts; User: shivarajbm
Hi All,
Finally I am able to run this piece of code and was able to fetch the required domain information. As it was stated in previous mailchain, I reinstalled my SDK and started a new project....
Hi, I added only <Security.h> and modified the code to use TCHAR buffer.
TCHAR sBuffer[256];
DWORD Ret = sizeof(sBuffer);
if(GetUserNameEx(NameUserPrincipal,sBuffer,&Ret) == 0)
{
......
Hi,
After adding #define SECURITY_WIN32 in stdafx.h file it worked !!! But now hitting some issues wrt to the usage of GetUserNameEx function :(
my usage looks like
----------------------------...
Hi, Thanks for your suggestion. After including Secext.h and Security.h I am getting many errors as
error C2146: syntax error : missing ';' before identifier 'GetUserNameExA'
error C1189: #error :...
I am trying to use "GetUserNameEx" function with VS.Net but facing some trouble while compiling this. I am getting error as
"error C3861: 'GetUserNameEx': identifier not found, even with...