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

ole32

.

   [In] ref Guid iidResult, [MarshalAs(UnmanagedType.Interface)] out Object

.

   <[In]> ByRef iidResult As Guid, <MarshalAs(UnmanagedType.Interface), Out> ByRef _

.

static extern Guid CLSIDFromProgIDEx(string lpszProgID);

.

  Friend Shared Function CLSIDFromProgIDEx(ByVal lpszProgID As String) As Guid

.

static extern Guid CLSIDFromProgIDEx(string lpszProgID);

.

  Friend Shared Function CLSIDFromProgIDEx(ByVal lpszProgID As String) As Guid

.

static extern Guid CLSIDFromString(string lpsz);

.

static extern int CLSIDFromString(string lpsz, out Guid guid);

.

One of the constructors of [Guid] accepts a string.

.
Summary
.

static extern int CoCreateGuid ( out Guid guid );

.

If you like the old-style GUIDs that are generated in sequential order and contain the machine's MAC address, try UuidCreateSequential.

.

Guid guid;

.

CoCreateGuid ( out guid );

.

string guid_s = guid.ToString();

.

Marshal.ThrowExceptionForHR ( CoCreateGuid ( out guid ) , new IntPtr ( -1 ) );

.

guid_s = guid.ToString();

.

System.Guid.NewGuid()

.
Documentation
[CoCreateGuid] on MSDN
.

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

.

Guid CLSID_ShellDesktop = new Guid("00021400-0000-0000-C000-000000000046");

.

Guid CLSID_ShellDesktop = new Guid("00021400-0000-0000-C000-000000000046");

.

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

.

Guid CLSID_ShellDesktop = new Guid("00021400-0000-0000-C000-000000000046");

.

Type shellDesktopType = Type.GetTypeFromCLSID(CLSID_ShellDesktop, true); // (Guid, serverName, throwOnError)

.

static extern object CoGetCallContext([In, MarshalAs(UnmanagedType.LPStruct)] Guid riid);

.

   [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid);

.

[GuidAttribute("00000029-0000-0000-C000-000000000046")]

.

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

.

   [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid);

.

    (<[In](), MarshalAs(UnmanagedType.LPStruct)> ByVal rclsid As Guid, _

.

    <[In](), MarshalAs(UnmanagedType.LPStruct)> ByVal riid As Guid) _

.

static extern int CoGetInstanceFromFile(IntPtr pServerInfo, [In] ref Guid

.

   Guid riid, [MarshalAs(UnmanagedType.IUnknown)] out object ppv);

.

   [In, MarshalAs(UnmanagedType.LPStruct)] Guid riid);

.

static extern int CoMarshalInterface(System.Runtime.InteropServices.ComTypes.IStream pStm, [In] ref Guid riid,

.

static extern int CoMarshalInterThreadInterfaceInStream([In] ref Guid riid,

.

    [MarshalAs(UnmanagedType.LPStruct)] Guid rclsid,

.

static extern int CoUnmarshalInterface(UCOMIStream pStm, [In] ref Guid riid,

.

static extern int CoUnmarshalInterface(System.Runtime.InteropServices.ComTypes.IStream pStm, [In] ref Guid riid,

.

static extern int CreateClassMoniker([In] ref Guid rclsid,

.

static extern IMoniker CreateClassMoniker([In, MarshalAs(UnmanagedType.LPStruct)]Guid guid);

.

The ref modifier or the [MarshalAs(LPStruct)] attribute are required on the guid parameter; otherwise it is marshaled incorrectly and the call will fail with an access violation.

.

    public bool PersistLoadComObject(object objComCtrl, string strGUID, byte[] buffer)

.

        Guid    IID_IPersistStreamInit = new Guid("7FD52380-4E07-101B-AE2D-08002B2EC713");

.

            if (CheckGUIDS(pPersistStream, strGUID))

.

     public bool CheckGUIDS(IPersistStreamInit pPersistStream, string strCtrlGUID)

.

          Guid ptrClsId = new Guid();

.

          string strStreamGUID = ptrClsId.ToString().ToUpper();

.

          if (strStreamGUID != strCtrlGUID.ToUpper())

.

          _strErrorMsg = strStreamGUID + " " + strCtrlGUID + " mismatch";

.

static extern int FmtIdToPropStgName([In] ref Guid pfmtid,

.

    <[In]()> ByRef FMTID As Guid, _

. .

   out Guid lpiid);

.

static extern Guid IIDFromString(string lpsz);

.

    static extern int IIDFromString(string lpsz, out Guid lpiid);

.

       Guid   g;

.

    static extern Guid IIDFromString(string lpsz);

.

       Guid   g = IIDFromString(iid);

.

[System.Guid] - overloaded constructor that takes a string.

.

    int cPages, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 6)] Guid[] lpPageClsID,

.

        Guid[] guidarray = cauuid.ToGuidArray();

.

        int nelements = guidarray.Length;

.

            o, nelements, guidarray, 0, 0, 0);

.

        [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 6)] Guid[] lpPageClsID,

.

static extern IOleObject OleCreateFromData (IDataObject pSrcDataObj, ref Guid riid, OLERENDER renderopt, IntPtr pFormatEtc, IOleClientSite pClientSite, IStorage pStg);

.

    UInt32 cPages, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 6)] Guid[] lpPageClsID,

.

   [In] ref Guid riid,

.

        Guid IID_IUnknown = new Guid("00000000-0000-0000-C000-000000000046");

.

   [In] ref Guid riid,

.

        Guid IID_IUnknown = new Guid("00000000-0000-0000-C000-000000000046");

.

static extern int OleRegGetUserType([In] ref Guid clsid, uint dwFormOfType,

.

  static extern int OleRegGetUserType([In] ref Guid clsid, uint dwFormOfType, out IntPtr pszBuff);

.

    Guid clsid = new Guid(0x3e6b91f5, 0xbc86, 0x40b8, 0x80, 0xc9, 0x41, 0xb3, 0x4b, 0x4e, 0x8f, 0x11);

.

static extern int ProgIDFromCLSID([In] ref Guid clsid,

.

static extern string ProgIDFromCLSID([In()]ref Guid clsid);

.

    static extern int ProgIDFromCLSID([In()]ref Guid clsid, [MarshalAs(UnmanagedType.LPWStr)]out string lplpszProgID);

.

       Guid   g = new Guid("88D969C0-F192-11D4-A65F-0040963251E5"); // MSXML 4.0 DOM.

.

    static extern string ProgIDFromCLSID([In()]ref Guid clsid);

.

       Guid   g = new Guid("88D969C0-F192-11D4-A65F-0040963251E5"); // MSXML 4.0 DOM.

.

    <Out()> ByRef FMTID As Guid) As Integer

.

    'A new Guid requires an array of exactly 16 bytes

.

    Dim fmtId As New Guid(idBytes)

.

Guids generated with this will return the name using the FmtIdToPropStgName Function, and can be used to generate a new IPropertyStorage interface with IPropertySetStorage.Create(). The name returned will be filled to 26 chars with the letter 'a' due to the fixed size of a Guid and the fact that we're passing all zeros in the BitArray after the name finishes to reach this size.

.

static extern Guid ReadClassStg(IStorage pStg);

.

static extern Guid ReadClassStm(UCOMIStream pStm);

33: STGC
.

   pStgOptions, IntPtr reserved2, [In] ref Guid riid,

.

   pStgOptions, IntPtr reserved2, [In] ref Guid riid,

.

   pStgOptions, IntPtr reserved2, [In] ref Guid riid,

.

static extern string StringFromCLSID([MarshalAs(UnmanagedType.LPStruct)] Guid rclsid);

.

Guid.ToString("B")

.
Summary
.

static extern int StringFromGUID2(

.

   [MarshalAs(UnmanagedType.LPStruct)] Guid rguid,

.

Guid.ToString("B")

.
Documentation
[StringFromGUID2] on MSDN
.

static extern string StringFromIID([MarshalAs(kklkjlkjm.LPStruct)] Guid refiid);

.

Guid.ToString("B")

.

    [In, MarshalAs(UnmanagedType.LPStruct)] Guid rclsid);

.

    [In, MarshalAs(UnmanagedType.LPStruct)] Guid rclsid);

cfgmgr32

.

    ByRef ClassGuid As GUID, _

.

static extern uint CM_Get_Device_Interface_List(ref Guid interfaceClassGuid, string deviceID, char[] buffer, uint bufferLength, uint flags);

.

static Guid GUID_DEVINTERFACE_COMPORT = new Guid("{86E0D1E0-8089-11D0-9CE4-08003E301F73}");

.

  var cr = CM_Get_Device_Interface_List_Size(out uint size, ref GUID_DEVINTERFACE_COMPORT, null, CM_GET_DEVICE_INTERFACE_LIST_PRESENT);        

.

    cr = CM_Get_Device_Interface_List(ref GUID_DEVINTERFACE_COMPORT, null, data, (uint)data.Length, CM_GET_DEVICE_INTERFACE_LIST_PRESENT);

.

static extern uint CM_Get_Device_Interface_List_Size(out uint size, ref Guid interfaceClassGuid, string deviceID, uint flags);

.

     public DEVPROPKEY(Guid guid, uint pid) {

.

     _guid = guid;

.

     public Guid _guid;

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 ('-', '_');

.

    public string szHwProfileGuid;

.

        string lText=lProfile.szHwProfileGuid.ToString();

.

        SE_WMIGUID_OBJECT,

.

    // http://pluralsight.com/wiki/default.aspx/Keith.GuideBook/HowToImpersonateAUserGivenHerToken.html,

.

    // http://pluralsight.com/wiki/default.aspx/Keith.GuideBook/HowToCreateAWindowsPrincipalGivenAToken.html,

.
Summary
The RegisterTraceGuids function registers an event trace provider and the event trace classes that it uses to generate events. This function also specifies the function the provider uses to enable and disable tracing.
.

[DllImport("advapi32", EntryPoint = "RegisterTraceGuidsW", CharSet = CharSet.Unicode, ExactSpelling = true)]

.

static extern unsafe uint RegisterTraceGuids([In] EtwProc cbFunc, [In] void* context, [In] ref Guid controlGuid, [In] uint guidCount, ref TraceGuidRegistration guidReg, [In] string mofImagePath, [In] string mofResourceName, out ulong regHandle);

.

TraceGuidRegistration (http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/etw/etw/trace_guid_registration.asp)

.

    internal struct TraceGuidRegistration

.

        internal unsafe System.Guid* Guid;

.
Documentation
RegisterTraceGuids @msdn on MSDN
.
Summary
The RegisterTraceGuids function registers an event trace provider and the event trace classes that it uses to generate events. This function also specifies the function the provider uses to enable and disable tracing.
.

[DllImport("advapi32", EntryPoint = "RegisterTraceGuidsW", CharSet = CharSet.Unicode, ExactSpelling = true)]

.

static extern unsafe uint RegisterTraceGuids([In] EtwProc cbFunc, [In] void* context, [In] ref Guid controlGuid, [In] uint guidCount, ref TraceGuidRegistration guidReg, [In] string mofImagePath, [In] string mofResourceName, out ulong regHandle);

.

TraceGuidRegistration (http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/etw/etw/trace_guid_registration.asp)

.

    internal struct TraceGuidRegistration

.

        internal unsafe System.Guid* Guid;

.
Documentation
RegisterTraceGuids @msdn on MSDN
.

    SE_WMIGUID_OBJECT,S E_REGISTRY_WOW64_32KEY

.

Make sure that you call RegisterTraceGuids first to get your traceHandle.

.

        SE_WMIGUID_OBJECT,

.
Summary
The UnregisterTraceGuids function unregisters an event trace provider and its event trace classes.
.

static extern int UnregisterTraceGuids(ulong regHandle);

.
Documentation
[UnregisterTraceGuids] on MSDN

Structures

.

        public Guid catid;

57: CAUUID
.
Summary
The CAUUID structure is a Counted Array of UUID or GUID types.
58: 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

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


 
Access PInvoke.net directly from VS: