Thread: 'GetUserNameEx': identifier not found error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Are you including the right header-file? Since it's a "Unicode/Ansi" function, it will have a macro somewhere that translates it to GetUserNameExA or GetUserNameExW for the Ansi and Unicode versions respectively. It looks like your linker is not looking for a A/W version of the function, which makes me think that you are not using the correct headerfile - but I'm only guessing.

    Quote Originally Posted by MSDN
    Declared in Secext.h; include Security.h.
    From:
    http://msdn2.microsoft.com/en-us/library/ms724435.aspx

    --
    Mats
    Last edited by matsp; 11-07-2007 at 04:13 AM.
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Quantum Random Bit Generator
    By shawnt in forum C++ Programming
    Replies: 62
    Last Post: 06-18-2008, 10:17 AM
  2. How to monitor process creation?
    By markiz in forum Windows Programming
    Replies: 31
    Last Post: 03-17-2008, 02:39 PM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  4. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM