ConvertSidToStringSid

Hi, we would like to know where is the declaration of the
ConvertSidToStringSid function. This function exist, because it is
documented in the MSDN.

Thank you in advance!


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

ConvertSidToStringSid :
The ConvertSidToStringSid function converts a SID to a string format suitable
for display, storage, or transmission.

To convert the string-format SID back to a valid, functional SID, call the
ConvertStringSidToSid function.

BOOL ConvertSidToStringSid(
PSID Sid, // SID
LPTSTR *StringSid // SID string
);
Parameters
Sid
[in] Pointer to the SID to convert.
StringSid
[out] Pointer to a variable that receives a pointer to a null-terminated SID
string. To free the returned buffer, call the LocalFree function.
Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error
information, call GetLastError. GetLastError may return one of the following
error codes.

Error Code Meaning
ERROR_NOT_ENOUGH_MEMORY Insufficient memory.
ERROR_NONE_MAPPED The SID could not be found in an account lookup operation.

Remarks
The ConvertSidToStringSid function uses the standard S-R-I-S-S… format for
SID strings. For more information about SID string notation, see SID
Components.

Requirements
Windows NT/2000: Requires Windows 2000.
Header: Declared in Sddl.h.
Library: Use Advapi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows 2000.

Search “ConvertSidToStringSid” keyword in MSDN u will get full information.

Regards,
Satish K.S

“Paulo Valerio, Ricardo Ramalho” wrote:
Hi, we would like to know where is the declaration of the
ConvertSidToStringSid function. This function exist, because it is
documented in the MSDN.

Thank you in advance!


You are currently subscribed to ntfsd as: xxxxx@aalayance.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I mean, we can’t find <sddl.h> anywhere.

----- Original Message -----
From: “Satish KS”
To: “File Systems Developers”
Sent: Wednesday, April 04, 2001 7:38 PM
Subject: [ntfsd] Re: [ConvertSidToStringSid]

> ConvertSidToStringSid :
> The ConvertSidToStringSid function converts a SID to a string format
suitable
> for display, storage, or transmission.
>
> To convert the string-format SID back to a valid, functional SID, call the
> ConvertStringSidToSid function.
>
> BOOL ConvertSidToStringSid(
> PSID Sid, // SID
> LPTSTR *StringSid // SID string
> );
> Parameters
> Sid
> [in] Pointer to the SID to convert.
> StringSid
> [out] Pointer to a variable that receives a pointer to a null-terminated
SID
> string. To free the returned buffer, call the LocalFree function.
> Return Values
> If the function succeeds, the return value is nonzero.
>
> If the function fails, the return value is zero. To get extended error
> information, call GetLastError. GetLastError may return one of the
following
> error codes.
>
> Error Code Meaning
> ERROR_NOT_ENOUGH_MEMORY Insufficient memory.
> ERROR_NONE_MAPPED The SID could not be found in an account lookup
operation.
>
>
> Remarks
> The ConvertSidToStringSid function uses the standard S-R-I-S-S… format
for
> SID strings. For more information about SID string notation, see SID
> Components.
>
> Requirements
> Windows NT/2000: Requires Windows 2000.
> Header: Declared in Sddl.h.
> Library: Use Advapi32.lib.
> Unicode: Implemented as Unicode and ANSI versions on Windows 2000.
>
> Search “ConvertSidToStringSid” keyword in MSDN u will get full
information.
>
> Regards,
> Satish K.S
>
>
> “Paulo Valerio, Ricardo Ramalho” wrote:
> Hi, we would like to know where is the declaration of the
> ConvertSidToStringSid function. This function exist, because it is
> documented in the MSDN.
>
> Thank you in advance!
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@aalayance.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@mail.gsd.inesc.pt
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com</sddl.h>

Look in the latest Platform SDK (freely available for download from
Microsoft).

  • Danilo

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Paulo Valerio,
Ricardo Ramalho
Sent: Wednesday, April 04, 2001 9:36 AM
To: File Systems Developers
Subject: [ntfsd] Re: [ConvertSidToStringSid]

I mean, we can’t find <sddl.h> anywhere.
>
> ----- Original Message -----
> From: “Satish KS”
> To: “File Systems Developers”
> Sent: Wednesday, April 04, 2001 7:38 PM
> Subject: [ntfsd] Re: [ConvertSidToStringSid]
>
>
> > ConvertSidToStringSid :
> > The ConvertSidToStringSid function converts a SID to a string format
> suitable
> > for display, storage, or transmission.
> >
> > To convert the string-format SID back to a valid, functional
> SID, call the
> > ConvertStringSidToSid function.
> >
> > BOOL ConvertSidToStringSid(
> > PSID Sid, // SID
> > LPTSTR *StringSid // SID string
> > );
> > Parameters
> > Sid
> > [in] Pointer to the SID to convert.
> > StringSid
> > [out] Pointer to a variable that receives a pointer to a null-terminated
> SID
> > string. To free the returned buffer, call the LocalFree function.
> > Return Values
> > If the function succeeds, the return value is nonzero.
> >
> > If the function fails, the return value is zero. To get extended error
> > information, call GetLastError. GetLastError may return one of the
> following
> > error codes.
> >
> > Error Code Meaning
> > ERROR_NOT_ENOUGH_MEMORY Insufficient memory.
> > ERROR_NONE_MAPPED The SID could not be found in an account lookup
> operation.
> >
> >
> > Remarks
> > The ConvertSidToStringSid function uses the standard S-R-I-S-S… format
> for
> > SID strings. For more information about SID string notation, see SID
> > Components.
> >
> > Requirements
> > Windows NT/2000: Requires Windows 2000.
> > Header: Declared in Sddl.h.
> > Library: Use Advapi32.lib.
> > Unicode: Implemented as Unicode and ANSI versions on Windows 2000.
> >
> > Search “ConvertSidToStringSid” keyword in MSDN u will get full
> information.
> >
> > Regards,
> > Satish K.S
> >
> >
> > “Paulo Valerio, Ricardo Ramalho” wrote:
> > Hi, we would like to know where is the declaration of the
> > ConvertSidToStringSid function. This function exist, because it is
> > documented in the MSDN.
> >
> > Thank you in advance!
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@aalayance.com
> > To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@mail.gsd.inesc.pt
> > To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@MIT.EDU
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com</sddl.h>

>>I mean, we can’t find <sddl.h> anywhere.

I have searched in my advapi32.dll ( WinNT with SP5 ) i coulnt find.
I have searched in my advapi32.lib in VC++ Directory. i am not able to find.

Only things is u downloaded latest all SP for both compiler and OS and check
it.

Regards,
Satish K.S


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com</sddl.h>

I think it is only in windows 2000. You need to implement that
yourself in NT.

Jack

>>I mean, we can’t find <sddl.h> anywhere.
>
> I have searched in my advapi32.dll ( WinNT with SP5 ) i coulnt find.
> I have searched in my advapi32.lib in VC++ Directory. i am not able
to find.
>
> Only things is u downloaded latest all SP for both compiler and OS
and check
> it.
>
> Regards,
> Satish K.S
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@erinet.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com</sddl.h>

This should help.

HOWTO: Convert a Binary SID to Textual Form
http://support.microsoft.com/support/kb/articles/Q131/3/20.asp

Niraj

-----Original Message-----
From: Paulo Valerio, Ricardo Ramalho [mailto:xxxxx@mail.gsd.inesc.pt]
Sent: Wednesday, April 04, 2001 5:31 AM
To: File Systems Developers
Subject: [ntfsd] ConvertSidToStringSid

Hi, we would like to know where is the declaration of the
ConvertSidToStringSid function. This function exist, because it is
documented in the MSDN.
Thank you in advance!


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

And what about using of the following routine ?

NTSYSAPI
NTSTATUS
NTAPI
RtlConvertSidToUnicodeString (
IN OUT PUNICODE_STRING UnicodeString,
IN PSID Sid,
IN BOOLEAN AllocateString
);

It is implemented in both kernel and user mode.
And at least from NT 4.

Paul

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Jaiswal, Niraj
Sent: Thursday, April 05, 2001 4:46 AM
To: File Systems Developers
Subject: [ntfsd] RE: ConvertSidToStringSid

This should help.

HOWTO: Convert a Binary SID to Textual Form
http://support.microsoft.com/support/kb/articles/Q131/3/20.asp

Niraj

-----Original Message-----
From: Paulo Valerio, Ricardo Ramalho [mailto:xxxxx@mail.gsd.inesc.pt]
Sent: Wednesday, April 04, 2001 5:31 AM
To: File Systems Developers
Subject: [ntfsd] ConvertSidToStringSid

Hi, we would like to know where is the declaration of the
ConvertSidToStringSid function. This function exist, because it is
documented in the MSDN.
Thank you in advance!


You are currently subscribed to ntfsd as: xxxxx@compelson.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com