RE: ConvertStringSidToSid , not defined??

From: Walter Poupore [MS] (waltpo_at_online.microsoft.com)
Date: 06/29/04

  • Next message: M.D: "Re: Windows XP is not locked when smart card is removed"
    Date: Mon, 28 Jun 2004 17:14:01 -0700
    
    

    The ConvertStringSidToSid function is conditionally defined, dependent on _WIN32_WINNT being defined as equal to or greater than 0x0500.

    If you add

        #define _WIN32_WINNT 0x0500

    above your #include statements, the code should compile.

    Optionally, you can set _WIN32_WINNT through a compiler option.

    For more details about _WIN32_WINNT, see http://msdn.microsoft.com/library/en-us/winprog/winprog/using_the_windows_headers.asp.

    --
    Walter Poupore [MS]
    -- 
    This posting is provided "As Is" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/cpyright.htm
    "EP" wrote:
    > I have a strange issue in VC7 trying to call ConvertStringSidToSid.
    > 
    > Every time I try to compile, it complains
    >     "ConvertStringSidToSid identifier not found, even with
    > argument-dependent lookup"
    > 
    > I've linked to advapi32 and included sddl.h.  This happens in an MFC
    > template project or a .Net C++ project.
    > 
    > The strangest thing is that I still get SDDL_REVISION_1 as defined (which is
    > in the same sddl.h file).
    > 
    > Has anyone figured out why this is?
    > 
    > 
    > 
    

  • Next message: M.D: "Re: Windows XP is not locked when smart card is removed"