Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "ConvertStringSidToSid" in [All]

advapi32

. .
Summary
The ConvertStringSidToSid function converts a string-format SID into a valid, functional SID. You can use this function to retrieve a SID that the ConvertSidToStringSid function converted to string format.
.

static extern bool ConvertStringSidToSid(

.

    Private Declare Auto Function ConvertStringSidToSid Lib "advapi32.dll" (StringSid As String, ByRef ptrSid As IntPtr) As Boolean

.

    static extern bool ConvertStringSidToSid(

.

                ConvertStringSidToSid(UserObject["SID"].ToString(), out SID_ptr);

.
Documentation
[ConvertStringSidToSid] on MSDN
.

    if ( !ConvertStringSidToSid(stringSid, out pSid) )

.

    'Input format is the format returned from "ConvertStringSidToSid"

.

private static extern bool ConvertStringSidToSid(String StringSid, ref IntPtr Sid);

.

        ConvertStringSidToSid(sid.ToString(), ref sidPtr);        


 
Access PInvoke.net directly from VS: