LIBNIT_StringToSID

This function converts the specified string to Active Directory SID.

Syntax

#include <nitlibext.h>
int LIBNIT_StringToSID (
                         const char *sidstr,
                         NIT_SID_t *adsid
                       )

Parameters

sidstr

(IN) Specifies the string.

adsid

(OUT) Returns the Active Directory SID.

Return Values

0

NIT_SUCCESS

Success

-9014

NITERR_INVALID_PARAMETER

The parameters passed are NULL or invalid.