大佬们,怎样把以下这段代码中hr = CallObject (pIPropertyStore, #IPropertyStore_GetAt, i, pkey, , , , , , , )中的pkey键转换为字符串啊
这段代码来自精易模块中的GetIPropertyStore函数
hr = CallObject (pIPropertyStore, #IPropertyStore_GetCount, 取指针整数_ (dwCount ), , , , , , , , )如果真 (hr = #S_OK 且 dwCount > 0 )pkey = LocalAlloc ( #LMEM_ZEROINIT, 20 ) 变量循环首 (0, dwCount - 1, 1, i )memset (pkey, 0, 20 )hr = CallObject (pIPropertyStore, #IPropertyStore_GetAt, i, pkey, , , , , , , )如果真 (hr = #S_OK )memset (pv, 0, 16 )hr = CallObject (pIPropertyStore, #IPropertyStore_GetValue, pkey, pv, , , , , , , )如果真 (hr = #S_OK )vt = 指针_到短整数型_汇编 (pv )lVal = 指针_到长整数型_汇编 (pv + 8 )变量循环尾 ()LocalFree (pkey )
|