Microsoft Windows Vista Community Forums - Vistaheads
Driver Scanner 2009 - Free Scan Now



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Wie fügt man einen Port zu Windows Vista hinzu?

microsoft.public.de.windows.vista.installation



Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Reply
  #1 (permalink)  
Old 05-04-2007
Friedrich Dominicus
 

Posts: n/a
Wie fügt man einen Port zu Windows Vista hinzu?
Hier ein kleines Puzzle, folgt man der Dokumentation dient dazu
AddPort
The AddPort function adds the name of a port to the list of supported
ports. The AddPort function is exported by the port monitor.

Also gut also muß ja wohl der Port Monitor dieses Ding implementieren.
dafür benötig man den Docs zufole InitializePrintMonitor2, dazu steht in
der doc:
The InitializePrintMonitor2 function must be exported by language
monitors and by port monitor server DLLs.

also gut, die Struktur soll so aussehen:
http://msdn2.microsoft.com/en-us/library/aa506742.aspx


weiter unten liest man dann aber:
pfnAddPort
(Obsolete. Should be NULL.) Pointer to the print monitor's AddPort
function.
pfnAddPortEx
(Obsolete. Should be NULL.) Pointer to the print monitor's
AddPortEx function. (Port monitors only.)
pfnConfigurePort
(Obsolete. Should be NULL.) Pointer to the print monitor's
ConfigurePort function.
pfnDeletePort
(Obsolete. Should be NULL.) Pointer to the print monitor's
DeletePort function.


Also it exportierte Funktion soll auf NULL gesetzt sein und irgendetwas
machen? Was ja wohl irgendwie nicht funktionieren kann.

Also hat jemand eine "hasenreine" Lösung wie man AddPort auf Windows
Vista benutzen kann?

In dem sinnigen Beispiel localmon findet man:
MONITOR2 Monitor2 = {
sizeof(MONITOR2),
LcmEnumPorts,
LcmOpenPort,
NULL, // OpenPortEx is not supported
LcmStartDocPort,
LcmWritePort,
LcmReadPort,
LcmEndDocPort,
LcmClosePort,
NULL, // AddPort is not supported
LcmAddPortEx,
NULL, // ConfigurePort is not supported
NULL, // DeletePort is not supported
LcmGetPrinterDataFromPort,
LcmSetPortTimeOuts,
LcmXcvOpenPort,
LcmXcvDataPort,
LcmXcvClosePort,
LcmShutdown
};

Also zumindest eine Implementierung für das Hinzufügen eines Ports,
allerdings wiederspricht das komplett den Docs.

Offentsichtlich arbeitet das aber wohl zufriedenstellend. Also muß ich
das nun auch implementieren oder gibt es da eine wirklich "saubere" Lösung.

Ich denke keiner wird das ohne Mühe verstehen können, deswegen im
Vorraus eine großes Danke.....

Bis dann
Friedrich
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wie setzt man Benutzervariablen ohne Adminrechte? Axel Rinz microsoft.public.de.windows.vista.bedienung 2 06-20-2007 11:24
Windows clear do!? wie bekomt man in Windows vista die fenster tra DonyDon microsoft.public.windows.vista.performance maintenance 0 05-30-2007 22:44
USB port shuts down Windows Vista Juan microsoft.public.windows.vista hardware devices 2 05-29-2007 13:56
Wie kann man die Ordneransicht der Ordner VISTA/Programme und VISTA/Windows ändern? Mario Schieke microsoft.public.de.windows.vista.bedienung 12 05-27-2007 15:09
Wie Nachricht in Windows Mail, als Junkmail markieren? Mario Schieke microsoft.public.de.windows.vista.bedienung 3 04-11-2007 12:36


All times are GMT +1. The time now is 19:32.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119