我正在尝试使用以下方法在 VS2008 智能设备项目中调用 Windows CE 5 API 调用“ FindFirstChangeNotification ”:
Private Declare Function FindFirstChangeNotification Lib "coredll.dll" _
(ByVal lpPathName As String, ByVal bWatchSubtree As Long, _
ByVal dwNotifyFilter As Long) As Long
Dim strFolderPath As String = "\My Documents\My App Files\"
Dim ptrHandle as IntPtr = FindFirstChangeNotification(strFolderPath, 0, 1)
尝试此方法会导致“System.NotSupportedException”,我认为这是字符串类型的不兼容。尽管尝试了不同的编组行为,但几天后我仍然陷入困境。