Novell Home

TID101531 (DQVer) - Delphi Sample: Verify the Volume Dir Attributes of NDS Queues

From Developer Community

DQVer is a Delphi 2.x/3.x application that illustrates the use of Delphi with NetWare APIs.

It will allow to scan for NDS Print Queues and fix errors that resulted from volume renames.

General information on how to use Delphi with the NetWare SDK can be found in the HOW-TO.DOC file.

To run the application, you need to have installed the NetWare Client32

DETAILED DESCRIPTION

This tool allows to check the NDS print queues of a selected container

Problem: The volume is stored in two locations of the NDS Print Queue object:

  • as Volume ID in the "Volume" attribute
  • as text in the "Queue Directory" attribute

When renaming a volume this has no effect on the volume ID, but the "Queue Directory" attribute is not updated. Hence the print queue becomes unusable and typically has to be recreated.

This utility scans the specified containers for print queues and verifies the queue directories and volume names. It verifies if the volume name is correctly saved in the "Queue Directory" attribute and allows to fix the 'Queue Directory' property if necessary.

Requirements: Admin rights on DS and file level


DQVer demonstrates the following NetWare API functions: NWCallsInit NWCCGetPrimConnRef NWCCOpenConnByRef NWDSAllocBuf NWDSComputeAttrValSize NWDSCreateContextHandle NWDSGetAttrCount NWDSGetAttrName NWDSGetAttrVal NWDSGetContext NWDSGetSyntaxID NWDSInitBuf NWDSModifyObject NWDSPutAttrName NWDSPutAttrVal NWDSPutChange NWDSRead NWDSSetContext NWInitUnicodeTables



DISCLAIMER THE ORIGIN OF THIS INFORMATION MAY BE INTERNAL OR EXTERNAL TO NOVELL. NOVELL MAKES EVERY EFFORT WITHIN ITS MEANS TO VERIFY THIS INFORMATION. HOWEVER, THE INFORMATION PROVIDED IN THIS DOCUMENT IS FOR YOUR INFORMATION ONLY. NOVELL MAKES NO EXPLICIT OR IMPLIED CLAIMS TO THE VALIDITY OF THIS INFORMATION.


Self-Extracting File Name: DQVER.EXE

Files Included: Size Date Time

DQVER.TXT (this file) QVERIFY.EXE 296960 3-5-98 7:59 AM DELPHI_U.PAS 39276 3-5-98 7:59 AM DELPHI_U.DCU 25227 3-5-98 7:59 AM MAIN1.PAS 17283 3-5-98 7:59 AM MAIN1.DCU 16123 3-5-98 7:59 AM HOW-TO.DOC 5958 3-5-98 7:59 AM MAIN1.DFM 3395 3-5-98 7:59 AM QVERIFY.DSK 3270 3-5-98 7:59 AM U_ABOUT.DCU 2406 3-5-98 7:59 AM U_ABOUT.DFM 1899 3-5-98 7:59 AM QVERIFY.DOF 932 3-5-98 7:59 AM QVERIFY.DPR 352 3-5-98 7:59 AM QVERIFY.RES 876 3-5-98 7:59 AM NWADMIN.ICO 766 3-5-98 7:59 AM U_ABOUT.PAS 610 3-5-98 7:59 AM READ.ME 889 3-5-98 7:59 AM DQVER.MSG 366 3-5-98 7:59 AM

dqver.exe

dqver.exe212.4 K2005-04-06

--devsup

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.