Hey,

I want to use GetUserNameEx(). According to the doc:

http://msdn.microsoft.com/en-us/library/aa916702.aspx

i have to include winbase.h

But including winbase.h leads to a lot of errors (DWORD not declared, 
etc...)

For the 1st param (NameFormat), I have to include windows.h, so it seems 
that it should be sufficient as windows.h include winbase.h.

But the enumeration values of EXTENDED_NAME_FORMAT are in secext.h and the 
enumeration is garded in that file by

#if (_WIN32_WINNT >= 0x0500)

in addition, including windows.h is not sufficient. I have to include 
security.h. But the msdn documentation does not mention it (actually, the 
doc of win32 mentions it... but not win ce doc).

So there are some problems using that function:

  * winbase.h can not be included (is it normal ?)
  * including windows.h does not seem to include security.h (same question)
  * secext.h has a guard for win nt (same question)

Vincent Torri

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to