RE: Creating a directory with security attributes.

From: Steve Friedl [MVP] (SteveFriedlMVP_at_discussions.microsoft.com)
Date: 11/22/04


Date: Mon, 22 Nov 2004 14:29:03 -0800


"Kevin Burton" wrote:

> One more piece of information the call:
>
> ConvertStringSidToSid(_T("DU"), &pSid)
>
> Also returns an error, "The security ID structure is invalid"

It's not supposed to work: see the bottom of this page:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/sid_strings.asp?frame=true&hidetoc=true

The funky little tokens are not valid for this purpose.

I have spent a bunch of time digging into ADVAPI32 on my Win32 platform, and
I cannot see why it's not working. The "DU" token is found in the code, but
it's not clear why it fails.

I hope somebody else has some ideas...

Steve



Relevant Pages

  • Re: Confirm my Performance Test Against Java?
    ... account what was removed and I had in there on purpose. ... I was also purposefully making the Java and Ruby versions as similar to ... Counting versus Using the Tokens ... Obviously that is faster than what I had in the original code. ...
    (comp.lang.ruby)
  • Re: Writing fast(er) performing parsers in Perl
    ... > the runtime is being spent simply split'ing the lines into fields ... > (using the default whitespace splitting.) ... and only doing the more general split() if that probe failed [or ... isn't necessarily required to separate tokens. ...
    (comp.lang.perl.misc)
  • Re: Plain format basic text macro definitions (obeylines)
    ... I got stuck with the line after definition of ... For me that line is totally useless. ... I don't understand its purpose, ... During the \write, expandable tokens are expanded, unexpandable tokens ...
    (comp.text.tex)
  • Re: Plain format basic text macro definitions (obeylines)
    ... During the \write, expandable tokens are expanded, unexpandable tokens ... As I understand the purpose of that definition is the same as the ...
    (comp.text.tex)
  • Re: [RFC] C token counter
    ... While you are right, let's apply occam's razor: ... that the parts of /some/ specific tokens can be separated by ... these spaces do have a purpose. ... Nils ...
    (comp.lang.c)