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
Download Visual Studio Add-In

Search Results for "DS_NAME_RESULT" in [All]

ntdsapi

.

The return value from DsCrackNames indicates errors such as invalid parameters or insufficient memory. However, problems in converting individual names are reported in the status member of the DS_NAME_RESULT_ITEM structure returned for each input name.

.

      // domain object resides in.  Thus DS_NAME_RESULT_ITEM?.pDomain

.

      public DS_NAME_RESULT_ITEM[] CrackNames(string[] names = null, DS_NAME_FLAGS flags = DS_NAME_FLAGS.DS_NAME_NO_FLAGS,

.

        DS_NAME_RESULT Result = (DS_NAME_RESULT)Marshal.PtrToStructure(pResult, typeof(DS_NAME_RESULT));

.

       public static extern void DsFreeNameResult(IntPtr pResult /* DS_NAME_RESULT* */);

.

       public struct DS_NAME_RESULT

.

      internal IntPtr rItems; // PDS_NAME_RESULT_ITEM

.

      public DS_NAME_RESULT_ITEM[] Items

.

           return new DS_NAME_RESULT_ITEM[0];

.

        var ResultArray = new DS_NAME_RESULT_ITEM[cItems];

.

        Type strType = typeof(DS_NAME_RESULT_ITEM);

.

           ResultArray[i] = (DS_NAME_RESULT_ITEM)Marshal.PtrToStructure(curptr, strType);

.

       public struct DS_NAME_RESULT_ITEM

.
Summary
The DsFreeNameResult function frees the memory held by a DS_NAME_RESULT structure. Use this function to free the memory allocated by the DsCrackNames function.
.

static public extern void DsFreeNameResult(IntPtr pResult /* DS_NAME_RESULT* */);

Structures

.
Summary
The DS_NAME_RESULT_ITEM structure contains a name converted by the DsCrackNames function, along with associated error and domain data.
.

private struct DS_NAME_RESULT_ITEM

.

Structure DS_NAME_RESULT_ITEM

.
Documentation
[DS_NAME_RESULT_ITEM] on MSDN

Enums

.
Summary
.

  // domain object resides in.  Thus DS_NAME_RESULT_ITEM?.pDomain


 
Access PInvoke.net directly from VS: