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 "GUID" in [All]

ntdsapi

.

      // String-ized GUID as returned by IIDFromString().

.
Summary
.

    internal static extern void DsFreeSchemaGuidMap(

.

        IntPtr pGuidMap);

.

Declare Function DsFreeSchemaGuidMap Lib "ntdsapi.dll" (TODO) As TODO

.

        result = DsMapSchemaGuids(phDS, (uint)myGuids.Length, myGuids, out guidMap);

.

        DsFreeSchemaGuidMap(guidMap);

.
Documentation
[DsFreeSchemaGuidMap] on MSDN
.

    public struct GUID

.

        public GUID SiteObjectGuid;

.

        public GUID ComputerObjectGuid;

.

        public GUID ServerObjectGuid;

.

        public GUID NtdsDsaObjectGuid;

.

    internal static extern uint DsMapSchemaGuids(

.

        uint cGuids,

.

        Guid[] rGuids,

.

        out IntPtr ppGuidMap);

.

    Friend Shared Function DsMapSchemaGuids(hDs As IntPtr, cGuids As UInteger, rGuids As Guid(), ByRef ppGuidMap As IntPtr) As UInteger

.

Requires DsBind, recommend DsUnBind and DsFreeSchemaGuidMap

.

        IntPtr guidMap = new IntPtr(0);

.

        Guid[] myGuids = {

.

        new Guid("{e0fa1e69-9b45-11d0-afdd-00c04fd930c9}"),

.

        new Guid("{771727b1-31b8-4cdf-ae62-4fe39fadf89e}"),

.

        new Guid("{d5eb2eb7-be4e-463b-a214-634a44d7392e}"),

.

        new Guid("{e0fa1e8c-9b45-11d0-afdd-00c04fd930c9}")

.

        result = DsMapSchemaGuids(phDS, (uint)myGuids.Length, myGuids, out guidMap);

.

        DS_SCHEMA_GUID_MAP[] guidMapResult = parseGuids(guidMap, myGuids.Length, true);

.

        for (int i = 0; i < guidMapResult.Length; i++)

.

            Console.WriteLine("{0} = {1}", myGuids[i], guidMapResult[i].pName);

.

    internal static extern uint DsMapSchemaGuids(

.

        uint cGuids,

.

        Guid[] rGuids,

.

        out IntPtr ppGuidMap);

.

    internal static extern void DsFreeSchemaGuidMap(

.

        IntPtr pGuidMap);

.

    internal class GUID

.

    internal struct DS_SCHEMA_GUID_MAP

.

        internal GUID guid;

.

        internal uint guidType;

.

    private static DS_SCHEMA_GUID_MAP[] parseGuids(IntPtr guidMap, int numGuids, bool freePointer)

.

        int typeSize = Marshal.SizeOf(typeof(DS_SCHEMA_GUID_MAP));

.

        DS_SCHEMA_GUID_MAP[] schemaMap = new DS_SCHEMA_GUID_MAP[numGuids];

.

        IntPtr guidPointer = guidMap;

.

        for (int i = 0; i < numGuids; i++)

.

        schemaMap[i] = (DS_SCHEMA_GUID_MAP)Marshal.PtrToStructure(

.

                (long)guidPointer + i * typeSize

.

                typeof(DS_SCHEMA_GUID_MAP)

.

        DsFreeSchemaGuidMap(guidPointer);

.
Documentation
[DsMapSchemaGuids] on MSDN

iphlpapi

.
Summary
Provides "adapter index" to be used with other IP Helper API functions based on the adapter name string in the form of "\\DEVICE\\TCPIP_" + deviceGuid.
.

    public struct GUID {

.

        public GUID NetworkGuid;

Enums

.

    public static PropertyKey UI_PKEY_Enabled = new PropertyKey(new Guid(Convert.ToString(1, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_BOOL);

.

    public static PropertyKey UI_PKEY_LabelDescription = new PropertyKey(new Guid(Convert.ToString(2, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_Keytip = new PropertyKey(new Guid(Convert.ToString(3, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_Label = new PropertyKey(new Guid(Convert.ToString(4, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_TooltipDescription = new PropertyKey(new Guid(Convert.ToString(5, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_TooltipTitle = new PropertyKey(new Guid(Convert.ToString(6, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_LargeImage = new PropertyKey(new Guid(Convert.ToString(7, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UNKNOWN); // IUIImage

.

    public static PropertyKey UI_PKEY_LargeHighContrastImage = new PropertyKey(new Guid(Convert.ToString(8, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UNKNOWN); // IUIImage

.

    public static PropertyKey UI_PKEY_SmallImage = new PropertyKey(new Guid(Convert.ToString(9, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UNKNOWN); // IUIImage

.

    public static PropertyKey UI_PKEY_SmallHighContrastImage = new PropertyKey(new Guid(Convert.ToString(10, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UNKNOWN); // IUIImage

.

    internal static PropertyKey UI_PKEY_CommandId = new PropertyKey(new Guid(Convert.ToString(100, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);

.

    internal static PropertyKey UI_PKEY_ItemsSource = new PropertyKey(new Guid(Convert.ToString(101, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UNKNOWN); // IEnumUnknown or IUICollection

.

    internal static PropertyKey UI_PKEY_Categories = new PropertyKey(new Guid(Convert.ToString(102, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UNKNOWN); // IEnumUnknown or IUICollection

.

    internal static PropertyKey UI_PKEY_CategoryId = new PropertyKey(new Guid(Convert.ToString(103, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);

.

    internal static PropertyKey UI_PKEY_SelectedItem = new PropertyKey(new Guid(Convert.ToString(104, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);

.

    internal static PropertyKey UI_PKEY_CommandType = new PropertyKey(new Guid(Convert.ToString(105, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);

.

    internal static PropertyKey UI_PKEY_ItemImage = new PropertyKey(new Guid(Convert.ToString(106, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UNKNOWN); // IUIImage

.

    public static PropertyKey UI_PKEY_BooleanValue = new PropertyKey(new Guid(Convert.ToString(200, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_BOOL);

.

    public static PropertyKey UI_PKEY_DecimalValue = new PropertyKey(new Guid(Convert.ToString(201, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_DECIMAL);

.

    public static PropertyKey UI_PKEY_StringValue = new PropertyKey(new Guid(Convert.ToString(202, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_MaxValue = new PropertyKey(new Guid(Convert.ToString(203, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_DECIMAL);

.

    public static PropertyKey UI_PKEY_MinValue = new PropertyKey(new Guid(Convert.ToString(204, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_DECIMAL);

.

    public static PropertyKey UI_PKEY_Increment = new PropertyKey(new Guid(Convert.ToString(205, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_DECIMAL);

.

    public static PropertyKey UI_PKEY_DecimalPlaces = new PropertyKey(new Guid(Convert.ToString(206, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);

.

    public static PropertyKey UI_PKEY_FormatString = new PropertyKey(new Guid(Convert.ToString(207, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_RepresentativeString = new PropertyKey(new Guid(Convert.ToString(208, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_FontProperties = new PropertyKey(new Guid(Convert.ToString(300, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UNKNOWN); // IPropertyStore

.

    public static PropertyKey UI_PKEY_FontProperties_Family = new PropertyKey(new Guid(Convert.ToString(301, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_FontProperties_Size = new PropertyKey(new Guid(Convert.ToString(302, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_DECIMAL);

.

    public static PropertyKey UI_PKEY_FontProperties_Bold = new PropertyKey(new Guid(Convert.ToString(303, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_FONTPROPERTIES

.

    public static PropertyKey UI_PKEY_FontProperties_Italic = new PropertyKey(new Guid(Convert.ToString(304, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_FONTPROPERTIES

.

    public static PropertyKey UI_PKEY_FontProperties_Underline = new PropertyKey(new Guid(Convert.ToString(305, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_FONTPROPERTIES

.

    public static PropertyKey UI_PKEY_FontProperties_Strikethrough = new PropertyKey(new Guid(Convert.ToString(306, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_FONTPROPERTIES

.

    public static PropertyKey UI_PKEY_FontProperties_VerticalPositioning = new PropertyKey(new Guid(Convert.ToString(307, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_FONTVERTICALPOSITION

.

    public static PropertyKey UI_PKEY_FontProperties_ForegroundColor = new PropertyKey(new Guid(Convert.ToString(308, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // COLORREF

.

    public static PropertyKey UI_PKEY_FontProperties_BackgroundColor = new PropertyKey(new Guid(Convert.ToString(309, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // COLORREF

.

    public static PropertyKey UI_PKEY_FontProperties_ForegroundColorType = new PropertyKey(new Guid(Convert.ToString(310, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_SWATCHCOLORTYPE

.

    public static PropertyKey UI_PKEY_FontProperties_BackgroundColorType = new PropertyKey(new Guid(Convert.ToString(311, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_SWATCHCOLORTYPE

.

    public static PropertyKey UI_PKEY_FontProperties_ChangedProperties = new PropertyKey(new Guid(Convert.ToString(312, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UNKNOWN); // IPropertyStore

.

    public static PropertyKey UI_PKEY_FontProperties_DeltaSize = new PropertyKey(new Guid(Convert.ToString(313, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UINT); // UI_FONTDELTASIZE

.

    public static PropertyKey UI_PKEY_RecentItems = new PropertyKey(new Guid(Convert.ToString(350, 16).PadLeft(8, '0') + UI_PropertyKey), (int)(VarEnum.VT_ARRAY | VarEnum.VT_UNKNOWN));

.

    public static PropertyKey UI_PKEY_Pinned = new PropertyKey(new Guid(Convert.ToString(351, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_BOOL);

.

    public static PropertyKey UI_PKEY_Color = new PropertyKey(new Guid(Convert.ToString(400, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // COLORREF

.

    public static PropertyKey UI_PKEY_ColorType = new PropertyKey(new Guid(Convert.ToString(401, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_SWATCHCOLORTYPE

.

    public static PropertyKey UI_PKEY_ColorMode = new PropertyKey(new Guid(Convert.ToString(402, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_SWATCHCOLORMODE

.

    public static PropertyKey UI_PKEY_ThemeColorsCategoryLabel = new PropertyKey(new Guid(Convert.ToString(403, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_StandardColorsCategoryLabel = new PropertyKey(new Guid(Convert.ToString(404, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_RecentColorsCategoryLabel = new PropertyKey(new Guid(Convert.ToString(405, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_AutomaticColorLabel = new PropertyKey(new Guid(Convert.ToString(406, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_NoColorLabel = new PropertyKey(new Guid(Convert.ToString(407, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_MoreColorsLabel = new PropertyKey(new Guid(Convert.ToString(408, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_LPWSTR);

.

    public static PropertyKey UI_PKEY_ThemeColors = new PropertyKey(new Guid(Convert.ToString(409, 16).PadLeft(8, '0') + UI_PropertyKey), (int)(VarEnum.VT_VECTOR | VarEnum.VT_UI4));

.

    public static PropertyKey UI_PKEY_StandardColors = new PropertyKey(new Guid(Convert.ToString(400, 16).PadLeft(8, '0') + UI_PropertyKey), (int)(VarEnum.VT_VECTOR | VarEnum.VT_UI4));

.

    public static PropertyKey UI_PKEY_ThemeColorsTooltips = new PropertyKey(new Guid(Convert.ToString(411, 16).PadLeft(8, '0') + UI_PropertyKey), (int)(VarEnum.VT_VECTOR | VarEnum.VT_LPWSTR));

.

    public static PropertyKey UI_PKEY_StandardColorsTooltips = new PropertyKey(new Guid(Convert.ToString(412, 16).PadLeft(8, '0') + UI_PropertyKey), (int)(VarEnum.VT_VECTOR | VarEnum.VT_LPWSTR));

.

    public static PropertyKey UI_PKEY_Viewable = new PropertyKey(new Guid(Convert.ToString(1000, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_BOOL);

.

    public static PropertyKey UI_PKEY_Minimized = new PropertyKey(new Guid(Convert.ToString(1001, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_BOOL);

.

    public static PropertyKey UI_PKEY_QuickAccessToolbarDock = new PropertyKey(new Guid(Convert.ToString(1002, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);

.

    public static PropertyKey UI_PKEY_ContextAvailable = new PropertyKey(new Guid(Convert.ToString(1100, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4);

.

    public static PropertyKey UI_PKEY_GlobalBackgroundColor = new PropertyKey(new Guid(Convert.ToString(2000, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_HSBCOLOR

.

    public static PropertyKey UI_PKEY_GlobalHighlightColor = new PropertyKey(new Guid(Convert.ToString(2001, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_HSBCOLOR

.

    public static PropertyKey UI_PKEY_GlobalTextColor = new PropertyKey(new Guid(Convert.ToString(2002, 16).PadLeft(8, '0') + UI_PropertyKey), (int)VarEnum.VT_UI4); // UI_HSBCOLOR

.

  // String-ized GUID as returned by IIDFromString().

.

    ///The Active Directory GUID is unavailable and cannot be added to the Subject Alternate name.

.

    [Description("The Active Directory GUID is unavailable and cannot be added to the Subject Alternate name.")]

.

    public const int CERTSRV_E_SUBJECT_DIRECTORY_GUID_REQUIRED = unchecked((int)0x8009480E);

.

    ///A CLSID with the same GUID as the new application ID is already installed on this machine

.

    [Description("A CLSID with the same GUID as the new application ID is already installed on this machine")]

.

    '''The Active Directory GUID is unavailable and cannot be added to the Subject Alternate name.

.

    <Description("The Active Directory GUID is unavailable and cannot be added to the Subject Alternate name.")> _

.

    Public Const CERTSRV_E_SUBJECT_DIRECTORY_GUID_REQUIRED As Integer = CInt(&H8009480eUI)

.

    '''A CLSID with the same GUID as the new application ID is already installed on this machine

.

    <Description("A CLSID with the same GUID as the new application ID is already installed on this machine")> _

.

    TooManyGuidsRequested = 0xc0000082,

.

    GuidsExhausted = 0xc0000083,

.

    GuidPartitionTable = 1,

.

   /// user policy. See Print Management Step-by-Step Guide.

.

   /// computer policy. See Print Management Step-by-Step Guide.

.

    SE_WMIGUID_OBJECT,

.

    SE_WMIGUID_OBJECT

14: SPDRP
.

    /// Class (R--tied to ClassGUID)

.

    /// ClassGUID (R/W)

.

    SPDRP_CLASSGUID = 0x00000008,

.

    /// BusTypeGUID (R)

.

    SPDRP_BUSTYPEGUID = 0x00000013,

15: SPDRP
.

    SPDRP_CLASSGUID = 0x8,

.

    SPDRP_BUSTYPEGUID = 0x13,

.

    SPDRP_CLASSGUID = &H8

.

    SPDRP_BUSTYPEGUID = &H13

secur32

.

     /// A GUID string that the IIDFromString function returns

Structures

.

        public Guid catid;

18: CAUUID
.
Summary
The CAUUID structure is a Counted Array of UUID or GUID types.
19: DCB
.

Special thanks to Jay's Outlook MVP from Visual C# Community for the guidance.

.

        public Guid fmtid;

.

      public Guid dbcc_classguid;

.

      public Guid dbcc_classguid;

.

    Public dbcc_classguid As GUID

.

        public Guid GUID;                                            // Guid of this junction point

.

    public Guid    DomainGuid;

.

    public Guid DiskId;

.

        public Guid DomainGuid;

.

     public GUID SiteObjectGuid;

.

     public GUID ComputerObjectGuid;

.

     public GUID ServerObjectGuid;

.

     public GUID NtdsDsaObjectGuid;

.

       public Guid clsid;

.

    Public clsid As Guid

.

   public Guid guidPropSet;

.

    '    The globally unique identifier (GUID) that identifies the property set.

.

    Public guidPropSet As Guid

29: GUID
.
Summary
A made-up class that can be used when you need a pointer to a GUID and when you need to be able to pass null.
.

public class GuidClass

.

    public Guid TheGuid;

.

Structure GuidClass

.

   Public Guid TheGuid

.

Instead of this, you could choose to define such a parameter as an array of System.Guids and only ever use the first element.

.
Documentation
[GuidClass] on MSDN
.
Summary
A made-up class that can be used when you need a pointer to a GUID and when you need to be able to pass null.
.

public class GuidClass

.

    public Guid TheGuid;

.

Structure GuidClass

.

   Public Guid TheGuid

.

Instead of this, you could choose to define such a parameter as an array of System.Guids and only ever use the first element.

.
Documentation
[GuidClass] on MSDN
.

     public Guid AppId;

.

pApplicationId: a string that supplies a vendor-defined token. DIFxAPI uses this token to associate an application with the driver package. This token should be a unique application-specific value, such as a GUID. DIFxAPI does not enforce uniqueness among the tokens. If a caller supplies an INSTALLERINFO structure that specifies an association between an application and a driver package, this member must not be NULL or supply an empty string.

.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcondefaultmarshalingforstrings.asp

.

    [MarshalAs(UnmanagedType.LPStruct)]  public Guid pIID;

.

Change public Guid pIID to IntPtr and marshal your guid directly to an allocated memory block and this struct will work with CoCreateInstanceEx.

.

    Dim guidItem As Guid

.

   public Guid guidItem;

.

    public Guid clsid;

.

     Public clsid As Guid

.

    public Guid PartitionType;

.

    public Guid PartitionId;

.

  public Guid PowerSetting;

.

    public Guid fmtid;

.

  public Guid clsid;

.

    public  Guid     interfaceClassGuid;

.

    Public interfaceClassGuid As Guid

.

interfaceClassGuid, GUID of the device interface class.

.

   public Guid classGuid;

.

    Public classGuid As Guid

.

classGuid, GUID of the device interface class.

.

    /// FMTID (GUID) of the current property set, specified when the property set was initially created.

.

    public Guid fmtid;

.

    /// CLSID (GUID) associated with this property set, specified when the property set was initially created

.

    /// will be Guid.Empty.

.

    public Guid clsid;

.

        public Guid SubFormat;      

.

    Dim SubFormat As Guid

.

    Dim SubFormat As Guid

.

     public Guid IPDeviceID;

.

    public Guid interfaceGuid;

.

        Public interfaceGuid As Guid

49: _GUID
.

    internal struct GuidStruct

.

        internal GuidStruct Initialize()

.

        internal GuidStruct Initialize(string guid)

.

        ConvertirToGuidStruct(guid);

.

        internal void ConvertToGuidStruct(string guid)

.

        string[] guidTab = guid.Split(new char[] { ':', '-' });

.

        if (guidTab.Length == 5)

.

            this.Data1 = Convert.ToUInt32(guidTab[0], 16);

.

            this.Data2 = Convert.ToUInt16(guidTab[1], 16);

.

            this.Data3 = Convert.ToUInt16(guidTab[2], 16);

.

            byte[] data4Part1 = BitConverter.GetBytes(Convert.ToInt16(guidTab[3], 16));

.

            byte[] data4Part2 = BitConverter.GetBytes(Convert.ToInt64(guidTab[4], 16));

.

        string guid;

.

        guid = Data1.ToString("x").PadLeft(8, '0');

.

        guid += "-" + Data2.ToString("x").PadLeft(4, '0');

.

        guid += "-" + Data3.ToString("x").PadLeft(4, '0');

.

        guid += "-" + BitConverter.ToInt16(new byte[] { Data4[0], Data4[1] }, 0).ToString("x");

.

        guid += "-" + BitConverter.ToInt64(new byte[] { Data4[2], Data4[3], Data4[4], Data4[5], Data4[6], Data4[7], 0, 0 }, 0).ToString("x");

.

        return guid;

.

Structure _GUID

.
Documentation
[_GUID] on MSDN

netapi32

.

     public Guid DomainGuid;

.

     public Guid DomainGuid;

.

    [In] GuidClass DomainGuid,

.

DOMAIN_CONTROLLER_INFO, GuidClass

.

    public Guid   DomainGuid;

.

    [In] int DomainGuid,

.

     IntPtr DomainGuid,

.

    [In] IntPtr domainGuid,

.

    /// <summary>The DomainGuid member contains a valid domain GUID.</summary>

.

    /// <summary>Primary domain server GUID is present.</summary>

.

    DomainGuidPresent = 16777216

.

    public Guid DomainGuid;

.

            userNames += child.Name + "{" + child.Guid + "}" + Environment.NewLine;

coredll

.

KernelIoControl(IOCTL_HAL_GET_DEVICEID, 0, 0, buffer, GuidLength,out, bytesReturned);

.

public static readonly Guid ClsidKeyboard = new Guid("42429667-ae04-11d0-a4f8-00aa00a749b9");

.

public static readonly Guid ClsidLargeKB = new Guid("a523dfc7-1a7e-4af6-991a-510e75847828");

wintrust

.

     [In] [MarshalAs(UnmanagedType.LPStruct)] Guid pgActionID,

.

        // GUID of the action to perform

.

            [In] [MarshalAs(UnmanagedType.LPStruct)] Guid pgActionID,

.

            Guid guidAction = new Guid(WINTRUST_ACTION_GENERIC_VERIFY_V2);

.

            WinVerifyTrustResult result = WinVerifyTrust(INVALID_HANDLE_VALUE, guidAction, wtd);

.

        Guid action = new Guid(WINTRUST_ACTION_GENERIC_VERIFY_V2);

advapi32

.

    var guids = new Guid[categoryCount];

.

        guids[i] = (Guid)Marshal.PtrToStructure((IntPtr)elemOffs, typeof(Guid));

.

        elemOffs += Marshal.SizeOf(typeof(Guid));

.

         heartbeatThread.Name = "Heartbeat_$" + Guid.NewGuid ().ToString ().Replace ('-', '_');

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: