IPersistFile

ショートカットをファイルに保存するには、IPersistFileインターフェースが必要。
まずは、QueryInterfaceでポインタを取得する。

IPersistFile (objidl.h) - Win32 apps | Microsoft Docs

ポインタの値を出力。

tszSrcPath = c:\project\cloud\github.com\sample\com\ipersistfile\ipersistfile\sr
c\ipersistfile\release\test.txt
pShellLink success!, pShellLink = 0x004f1950
tszPath = C:\project\cloud\github.com\sample\com\ipersistfile\ipersistfile\src\i
persistfile\release\test.txt
pPersistFile success!, pPersistFile = 0x004f195c
続行するには何かキーを押してください . 

取得できた。

Sample/com/IPersistFile/IPersistFile/src/IPersistFile at master · bg1bgst333/Sample · GitHub