Communication between RASDDUI and RASDD

Hi,

I am presently developing a printer driver which is based on RASDD and
RASDDUI. The driver is presently working and I need to enhance this to
facilitate some extra features w.r.t UI. I have used “psrtui” (PostScript
UI) in order to do this. I took the sample source code and modified it to
suit the enhancement features. But, I am stuck at one point; I need to
override the “StartDoc” and “EndDoc” command strings (which are part of
printer driver dll data structure) such that these values are dynamically
taken from UI property sheet. Please let me know how to change the values
(and also make it persistent).

Thanks,
C S Babu

You can store the StartDoc and EndDoc command strings read from the
Printer UI into the private data of the printer driver. (‘pDev’ or
DEVMODE, don’t remember now, check the DDK docs). This structure is
passed to all entry points in the printer driver dll. You will have
access to these stings in the printer driver dll which you can send to
the printer. To make it persistent, you can save the printer settings
into the registry. The UI can read it from registry every time it pops
up.

Hope this helps …
-G

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@mailcity.com
Sent: Friday, November 08, 2002 12:43 PM
To: NT Developers Interest List
Subject: [ntdev] Communication between RASDDUI and RASDD

Hi,

I am presently developing a printer driver which is based on RASDD and
RASDDUI. The driver is presently working and I need to enhance this to
facilitate some extra features w.r.t UI. I have used “psrtui”
(PostScript
UI) in order to do this. I took the sample source code and modified it
to suit the enhancement features. But, I am stuck at one point; I need
to override the “StartDoc” and “EndDoc” command strings (which are part
of printer driver dll data structure) such that these values are
dynamically taken from UI property sheet. Please let me know how to
change the values (and also make it persistent).

Thanks,
C S Babu


You are currently subscribed to ntdev as: xxxxx@cisco.com
To unsubscribe send a blank email to %%email.unsub%%

But, the printer driver is designed uwing unitool. It appears to have only “bInitProc” as it procedure and rest details are stored in .gpc file. How this can be done ??
“Girish Kulkarni (kulkis)” wrote:You can store the StartDoc and EndDoc command strings read from the
Printer UI into the private data of the printer driver. (‘pDev’ or
DEVMODE, don’t remember now, check the DDK docs). This structure is
passed to all entry points in the printer driver dll. You will have
access to these stings in the printer driver dll which you can send to
the printer. To make it persistent, you can save the printer settings
into the registry. The UI can read it from registry every time it pops
up.

Hope this helps …
-G

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@mailcity.com
Sent: Friday, November 08, 2002 12:43 PM
To: NT Developers Interest List
Subject: [ntdev] Communication between RASDDUI and RASDD

Hi,

I am presently developing a printer driver which is based on RASDD and
RASDDUI. The driver is presently working and I need to enhance this to
facilitate some extra features w.r.t UI. I have used “psrtui”
(PostScript
UI) in order to do this. I took the sample source code and modified it
to suit the enhancement features. But, I am stuck at one point; I need
to override the “StartDoc” and “EndDoc” command strings (which are part
of printer driver dll data structure) such that these values are
dynamically taken from UI property sheet. Please let me know how to
change the values (and also make it persistent).

Thanks,
C S Babu


You are currently subscribed to ntdev as: xxxxx@cisco.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to %%email.unsub%%

---------------------------------
Do you Yahoo!?
U2 on LAUNCH - Exclusive medley & videos from Greatest Hits CD

As far as I know, (assuming you are developing for NT4) it is not
possible to do customization using UNITOOL. UNITOOL will provide you
with a predefined UI. All you can do is to change what goes into that
predefined UI. e.g. Paper Size supported is a fixed feature in the UI.
What different paper sizes you support is customizable.

Similarly, you can change the StartDoc and EndDoc commands. However,
there is no feature in the UI to do this dynamically.
Hence you will not be able to customize that.

However, this has changed with Win2K and above. You can do a lot of
customization.
Whatever you are looking at, can be achieved on Win2K. The DDK docs are
pretty clear on how you can do it.

NT4, I am not sure if it can be done.

-G

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of vivek kumar
Sent: Friday, November 08, 2002 2:37 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Communication between RASDDUI and RASDD

But, the printer driver is designed uwing unitool. It appears to have
only “bInitProc” as it procedure and rest details are stored in .gpc
file. How this can be done ??

“Girish Kulkarni (kulkis)” wrote:

You can store the StartDoc and EndDoc command strings read from the
Printer UI into the private data of the printer driver. (‘pDev’ or
DEVMODE, don’t remember now, check the DDK docs). This structure is
passed to all entry points in the printer driver dll. You will have
access to these stings in the printer driver dll which you can send to
the printer. To make it persistent, you can save the printer settings
into the registry. The UI can read it from registry every time it pops
up.

Hope this helps …
-G

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@mailcity.com
Sent: Friday, November 08, 2002 12:43 PM
To: NT Developers Interest List
Subject: [ntdev] Communication between RASDDUI and RASDD

Hi,

I am presently developing a pr! inter driver which is based on RADD and
RASDDUI. The driver is presently working and I need to enhance this to
facilitate some extra features w.r.t UI. I have used “psrtui”
(PostScript
UI) in order to do this. I took the sample source code and modified it
to suit the enhancement features. But, I am stuck at one point; I need
to override the “StartDoc” and “EndDoc” command strings (which are part
of printer driver dll data structure) such that these values are
dynamically taken from UI property sheet. Please let me know how to
change the values (and also make it persistent).

Thanks,
C S Babu


You are currently subscribed to ntdev as: xxxxx@cisco.com
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to %%email.unsub%%

_____

Do you Yahoo!?
U2 on http:
LAUNCH - Exclusive medley & videos from Greatest Hits CD — You are
currently subscribed to ntdev as: xxxxx@cisco.com To unsubscribe send a
blank email to %%email.unsub%%</http:>

You cannot customize the printer UI using rasddui. There is no plug-in
model on NT4. You can achieve this on W2K though. You had mentioned in
your other posting that you had developed a rasdd based driver for W2K
as well. That is not recommended. It would make more sense for you to
port the NT4 driver to W2K using the MDT and using unidrv. You can then
write a UI plug-in similar to the oemui sample in the W2K DDK to add
property sheets etc…

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@mailcity.com [mailto:xxxxx@mailcity.com]
Sent: Thursday, November 07, 2002 11:13 PM
To: NT Developers Interest List
Subject: [ntdev] Communication between RASDDUI and RASDD

Hi,

I am presently developing a printer driver which is based on RASDD and
RASDDUI. The driver is presently working and I need to enhance this to
facilitate some extra features w.r.t UI. I have used “psrtui”
(PostScript
UI) in order to do this. I took the sample source code and modified it
to suit the enhancement features. But, I am stuck at one point; I need
to override the “StartDoc” and “EndDoc” command strings (which are part
of printer driver dll data structure) such that these values are
dynamically taken from UI property sheet. Please let me know how to
change the values (and also make it persistent).

Thanks,
C S Babu


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%