5/27/2023 0 Comments Can t get clsid for pdf creatorPrivate Sub StringFromPointer(pOLESTR As Long, strOut As String) 'and place the bytes in the Visual Basic string buffer. 'This function takes a pointer to a Unicode string, a string buffer LngRet = ProgIDFromCLSID(udtCLSID, pProgID) ![]() LngRet = CLSIDFromString(StrPtr(strTemp), udtCLSID) LngRet = StringFromCLSID(udtCLSID, pCLSID) 'Convert CLSID to a string and get the pointer back. LngRet = CLSIDFromProgID(StrPtr(strTemp), udtCLSID) "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long) Private Declare Sub CopyMemory Lib "kernel32" Alias _ Private Declare Function CLSIDFromString _ Private Declare Function StringFromCLSID _ Lib "ole32.dll" (pCLSID As GUID, lpszProgID As Long) As Long ![]() Private Declare Function ProgIDFromCLSID _ Lib "ole32.dll" (ByVal lpszProgID As Long, _ Private Declare Function CLSIDFromProgID _ The following code will return the ClsId and ProgId - Option Explicit The registry (HKEY_CLASSES_ROOT\CLSID\) contains this information. CLSIDs belong to the COM objects that are in the DLL. Well, not all DLLs have CLSIDs (only ones that expose COM objects) and in fact the DLLs themselves do not have CLSIDs.
0 Comments
Leave a Reply. |