谁能提供c#中获取系统桌面所在路经的api函数的调用方法么?谢谢!
谁能提供c#中获取系统桌面所在路经的api函数的调用方法么?谢谢!
函数是SHGetPathFromIDList和SHGetSpecialFolderLocation
vb中的原型是
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long
Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As Long) As Long
我在c#中用,就是参数对部起来,谁能帮帮我,参数类型可能和vb有点不同