<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.oehive.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>The OpenEdge Hive - Win32 API discussion</title>
 <link>http://www.oehive.org/taxonomy/term/118/0</link>
 <description></description>
 <language>oehive</language>
<item>
 <title>enumprinters not returning network printers in win-7?</title>
 <link>http://www.oehive.org/node/2141</link>
 <description>&lt;p&gt;I&#039;ve been using the enumprinters progress code example to get a list of available printers since windows NT... and I have some clients (and myself) running windows 7 without a problem, but I have a client who is now switching to win-7, and the enumprinters fails to include networked printers in the list of available printers.&lt;br /&gt;
Any ideas, what I am missing?&lt;/p&gt;
&lt;p&gt;here&#039;s a portion of the code I am using...&lt;/p&gt;
&lt;p&gt;SET-SIZE(pPrinterEnum) = 30.&lt;/p&gt;
&lt;p&gt;RUN EnumPrinters{&amp;amp;A} IN THIS-PROCEDURE (6,&quot;&quot;,2,&lt;br /&gt;
                                        GET-POINTER-VALUE(pPrinterEnum),&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/2141&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/2141#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Thu, 11 Oct 2012 19:05:57 +0000</pubDate>
 <dc:creator>russferrer</dc:creator>
 <guid isPermaLink="false">2141 at http://www.oehive.org</guid>
</item>
<item>
 <title>Library QuickPDF</title>
 <link>http://www.oehive.org/node/2056</link>
 <description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I am upset with trying to use functions from this library in OE 10.2A (as external). QuickPDF is for making PDF documents.&lt;/p&gt;
&lt;p&gt;Have you anybody experience with it?  &lt;/p&gt;
&lt;p&gt;The another way how to use it is through user&#039;s own dll library making in .NET (C#, C++) but I have no chance with success to call own defined functions in my library.&lt;/p&gt;
&lt;p&gt;My tries end with message &#039;Could not find the entrypoint  (3260)&#039;&lt;/p&gt;
&lt;p&gt;So please could you give me a help hand with a sample how to use own created library in OE?&lt;/p&gt;
&lt;p&gt;((using &#039;user32.dll&#039; and many other same kind is not problem))&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/2056&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/2056#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Sat, 04 Feb 2012 07:52:52 +0000</pubDate>
 <dc:creator>pavels</dc:creator>
 <guid isPermaLink="false">2056 at http://www.oehive.org</guid>
</item>
<item>
 <title>How to set duplex mode to printer using WinApi function</title>
 <link>http://www.oehive.org/node/1978</link>
 <description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Counld you please tell me how i can set duplex mode to default printer and check this mode on/off&lt;/p&gt;
&lt;p&gt;Thanx in advance&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/1978#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Fri, 10 Jun 2011 06:52:37 +0000</pubDate>
 <dc:creator>Admitry</dc:creator>
 <guid isPermaLink="false">1978 at http://www.oehive.org</guid>
</item>
<item>
 <title>How to get the printer port number using windows API call</title>
 <link>http://www.oehive.org/node/1941</link>
 <description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Using the Windows API call, could you please tell us how to get the port number of the printer. Because while setting the value of activeprinter method/property of MS word 2007 it requires &quot;printer name&quot; on &quot;port number&quot;.&lt;br /&gt;
The port number which we are trying to get by this method is equivalent to &#039;Session:printer-port&quot;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Ashwath&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/1941#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Tue, 22 Mar 2011 09:48:31 +0000</pubDate>
 <dc:creator>ashwathnp</dc:creator>
 <guid isPermaLink="false">1941 at http://www.oehive.org</guid>
</item>
<item>
 <title>How to add a print button(using win32 api in c)?</title>
 <link>http://www.oehive.org/node/1768</link>
 <description>&lt;p&gt;Hi,&lt;br /&gt;
 If any one give me the suggestion for adding a printer button on dialog box.&lt;/p&gt;
&lt;p&gt;please give me your constructive feedback.&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/1768#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Wed, 19 May 2010 11:38:45 +0000</pubDate>
 <dc:creator>vgsl.arul</dc:creator>
 <guid isPermaLink="false">1768 at http://www.oehive.org</guid>
</item>
<item>
 <title>How to do a post using the navigate method of web browser control?</title>
 <link>http://www.oehive.org/node/1722</link>
 <description>&lt;p&gt;I am trying to open a URL using webbrowser control by doing a HTTP POST with some xml data to the URL (instead of HTTP GET it normally does). However my code is not working:&lt;/p&gt;
&lt;p&gt;DEF VAR wkTarget        AS CHAR         NO-UNDO.&lt;br /&gt;
DEF VAR wkpostData      AS INT          NO-UNDO.            &lt;/p&gt;
&lt;p&gt;create &quot;InternetExplorer.Application&quot; chExplorer.&lt;br /&gt;
Assign&lt;br /&gt;
  chExplorer:menubar    = false&lt;br /&gt;
  chExplorer:addressbar = false&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/1722&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/1722#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Wed, 21 Apr 2010 08:29:44 +0000</pubDate>
 <dc:creator>sambaran</dc:creator>
 <guid isPermaLink="false">1722 at http://www.oehive.org</guid>
</item>
<item>
 <title>Treeview - Checkbox issue</title>
 <link>http://www.oehive.org/node/1700</link>
 <description>&lt;p&gt;Hi,&lt;br /&gt;
I am using a Treeview control (version 6.0) and it doesn&#039;t appear&lt;br /&gt;
to have the ability to disable checkboxes or grey them out from what I&lt;br /&gt;
can tell (if I&#039;m wrong, could someone tell me how?) &lt;/p&gt;
&lt;p&gt;Since it doesn&#039;t, I&#039;m at least trying to write code in the node click&lt;br /&gt;
event that will prevent the user from changing the value of the&lt;br /&gt;
checkbox when I need it to be disabled.  So I have code that sets the&lt;br /&gt;
Checked status back to what it originally was before the user clicked&lt;br /&gt;
on that node. &lt;/p&gt;
&lt;p&gt;The problem is that my code works fine, but that as soon as the event&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/1700&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/1700#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Mon, 05 Apr 2010 14:32:16 +0000</pubDate>
 <dc:creator>dwhite</dc:creator>
 <guid isPermaLink="false">1700 at http://www.oehive.org</guid>
</item>
<item>
 <title>How to open a xdp-file with the default command for opening a pdf-file</title>
 <link>http://www.oehive.org/node/1605</link>
 <description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I want open a file with an xdp-extention with the default program for a pdf-file.&lt;br /&gt;
I can&#039;t change the default program to open an xdp-file because that has stay another program (designing program)&lt;br /&gt;
So if i dubbelclick the xdp-file it has to open in the designer (default from installation) but if I open the file from my program (shellexecute) I want to open it with the default pdf-program.&lt;br /&gt;
Most of the time this will be a version of Acrobat but it can be another one.&lt;/p&gt;
&lt;p&gt;Problems:&lt;br /&gt;
I never know for sure what version of Acrobat the users have.&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.oehive.org/node/1605&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.oehive.org/node/1605#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Wed, 09 Dec 2009 14:17:11 +0000</pubDate>
 <dc:creator>Duze</dc:creator>
 <guid isPermaLink="false">1605 at http://www.oehive.org</guid>
</item>
<item>
 <title>Get the memory usage of all running processes.</title>
 <link>http://www.oehive.org/node/1540</link>
 <description>&lt;p&gt;Does anyone know a good way of getting the memory usage of all running processes.&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/1540#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Thu, 19 Nov 2009 16:41:46 +0000</pubDate>
 <dc:creator>tully</dc:creator>
 <guid isPermaLink="false">1540 at http://www.oehive.org</guid>
</item>
<item>
 <title>About WTSEnumerateSessions</title>
 <link>http://www.oehive.org/node/1520</link>
 <description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I try to use the API Function WTSEnumerateSessions to get a list of Terminal Server Sessions.&lt;br /&gt;
Of course, it doesn&#039;t work quite well, so any help would be highly appreciated.&lt;/p&gt;
&lt;p&gt;Look at the here-attached piece of code.&lt;br /&gt;
At line 64, replace &quot;TerminalServerName&quot; by a valid one and see what happen.&lt;br /&gt;
Apparently we have a valid handle to the server, the WTSEnumerateSessions returns the correct number of sessions, but I can&#039;t analyze the list of SessionId/Name/State.&lt;/p&gt;
&lt;br class=&quot;clear&quot; /&gt;&lt;div class=&quot;og_rss_groups&quot;&gt;&lt;ul class=&quot;links&quot;&gt;&lt;li  class=&quot;first last og_links&quot;&gt;&lt;a href=&quot;/win32api&quot; class=&quot;og_links&quot;&gt;Win32 API samples&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description>
 <comments>http://www.oehive.org/node/1520#comments</comments>
 <category domain="http://www.oehive.org/taxonomy/term/118">Win32 API discussion</category>
 <enclosure url="http://www.oehive.org/files/WTS3.p" length="5424" type="text/x-pascal" />
 <group domain="http://www.oehive.org/win32api">Win32 API samples</group>
 <pubDate>Mon, 21 Sep 2009 07:56:06 +0000</pubDate>
 <dc:creator>oli.dune</dc:creator>
 <guid isPermaLink="false">1520 at http://www.oehive.org</guid>
</item>
</channel>
</rss>
