<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using NetShareGetInfo Win32 Api to obtain CIFS share information in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Using-NetShareGetInfo-Win32-Api-to-obtain-CIFS-share-information/m-p/17672#M7404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi Frank:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have two pieces of information for you, but I doubt either is going to help much (if at all):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(1) A "1003" means "ERROR_CAN_NOT_COMPLETE".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(2) I've used NetShareGetInfo quite a bit, and haven't had any problems with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Harry&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2008 14:15:37 GMT</pubDate>
    <dc:creator>hmmcintosh</dc:creator>
    <dc:date>2008-09-10T14:15:37Z</dc:date>
    <item>
      <title>Using NetShareGetInfo Win32 Api to obtain CIFS share information</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Using-NetShareGetInfo-Win32-Api-to-obtain-CIFS-share-information/m-p/17667#M7403</link>
      <description>&lt;P&gt;I need to use the Win32 NetShareGetInfo api to obtain a CIFS share definition&lt;/P&gt;
&lt;P&gt;on the filer and for various reasons in isn't convenient for me to use the ONTAP&lt;/P&gt;
&lt;P&gt;api to obtain the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example of calling the api is:&lt;/P&gt;
&lt;P&gt;/*=== Get actual path defined on remote machine ===*/&lt;/P&gt;
&lt;P&gt;result = NetShareGetInfo(hostName , /* remote server */&lt;/P&gt;
&lt;P&gt;shareName , /* share name */&lt;/P&gt;
&lt;P&gt;502 , /* level of share info */&lt;/P&gt;
&lt;P&gt;(LPBYTE *)&amp;amp;shi502P /* pointer to buffer address */&lt;/P&gt;
&lt;P&gt;);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The api works inconstantly with shares mapped to various filers with both&lt;/P&gt;
&lt;P&gt;a local filer root user and with a domain admin user.&lt;/P&gt;
&lt;P&gt;When the api fails it returns a result code of 1003 which I cannot find documented&lt;/P&gt;
&lt;P&gt;anywhere in the Microsoft SDK documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions/ideas would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:33:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Using-NetShareGetInfo-Win32-Api-to-obtain-CIFS-share-information/m-p/17667#M7403</guid>
      <dc:creator>FrankRamke</dc:creator>
      <dc:date>2025-06-05T07:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using NetShareGetInfo Win32 Api to obtain CIFS share information</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Using-NetShareGetInfo-Win32-Api-to-obtain-CIFS-share-information/m-p/17672#M7404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi Frank:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have two pieces of information for you, but I doubt either is going to help much (if at all):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(1) A "1003" means "ERROR_CAN_NOT_COMPLETE".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(2) I've used NetShareGetInfo quite a bit, and haven't had any problems with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Harry&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2008 14:15:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Using-NetShareGetInfo-Win32-Api-to-obtain-CIFS-share-information/m-p/17672#M7404</guid>
      <dc:creator>hmmcintosh</dc:creator>
      <dc:date>2008-09-10T14:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using NetShareGetInfo Win32 Api to obtain CIFS share information</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/Using-NetShareGetInfo-Win32-Api-to-obtain-CIFS-share-information/m-p/17676#M7405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having same issue. Did you get any information on this?&amp;nbsp; I am using NetgetShareInfo to get share info on netapp server but it is failing on some of the shares (Not all shares) and it is returning "(1003) Cannot complete this function". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea/suggestions, please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 14:14:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/Using-NetShareGetInfo-Win32-Api-to-obtain-CIFS-share-information/m-p/17676#M7405</guid>
      <dc:creator>SMEGHANI2009</dc:creator>
      <dc:date>2012-07-16T14:14:45Z</dc:date>
    </item>
  </channel>
</rss>

