Search:

Type: Posts; User: shivarajbm

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    16,367

    Hi All, Finally I am able to run this piece of...

    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....
  2. Replies
    13
    Views
    16,367

    Hi, I added only and modified the...

    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)
    {
    ......
  3. Replies
    13
    Views
    16,367

    Hi, After adding #define SECURITY_WIN32 in...

    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
    ----------------------------...
  4. Replies
    13
    Views
    16,367

    Hi, Thanks for your suggestion. After including...

    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 :...
  5. Replies
    13
    Views
    16,367

    'GetUserNameEx': identifier not found 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...
Results 1 to 5 of 5