Description:
The access path the server should associate with this item. By convention a pointer to a NUL string specifies that the server should selec t the access path. Support for accesspath is optional
NOTE: version 1 indicated that a NULL pointer would allow the server to pick the path however passing a NULL pointer will cause a fault in the proxy/stub code and thus is not allowed.
可以试试下面代码:(C#)
OPCITEMDEF[] Itemdefs = new OPCITEMDEF[1];
Itemdefs[0].szAccessPath = "";