Where ODBC Connector is defined in Windows registry?

Good day!
I have an app which use ODBC Connector, and it don't works as well. When I trying to access ODBC programmatically, I get an error from ODBC Driver Manager, smth like: " Data source not found and no driver specified, the default "
(my OS language is different, so it's not verbatim).
I changed MySQL ODBC Connector many times, I tried different versions and tried specify driver in registry manualy (in branch HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI). Also, I had tried to track how does it work step by step, and I  stop at odbc32.dll. As I think it is ODBC Driver Manager which can't find smth necessary, but what?

This is more of a Windows Registry issue than a LabVIEW issue, does anyone know a good place to get support for that.  My Google-Fu is failing me .  All attempts to search for anything relating to Windows Registry and Icons tends to lead to changing the default icons in Windwos (My Computer, Recycle Bin, etc.).
Unless there is a way for me to add the .ICO as a resource within the .exe that defaults to the file somehow.  I'm not seeing anything within LabVIEW to facilitate this, however...

Similar Messages

  • Multi Org - Define Organisation window

    Please advise where to define organisations in Oracle Financials, if
    a)     One is not implementing Oracle HR.
    b)     If one is implementing Oracle HR as well.
    Oracle documentation says one should navigate to ‘Define Organisation window,’ but no indication of where to find the Define Organisation window (i.e. Oracle GL, System Administration, Oracle Fixed Assets, Oracle HR, etc.).
    By the way I am using Oracle 11.5.5.

    Hi Colin
    You can define it from any of the modules like AP,PO,AR,FA or GL wherever the menu is there. They all update the same HR table nmely HR_Organization_units.
    It really does not matter.
    If you have installed HR module, you can define it from HR module. However any module is fine as they all update the same HR table.
    Hope this clarifies.
    RK

  • Where are power options saved in the Windows registry?

    The problem is that a customer IT department did something wrong during deploying GP preferences. Now nothing is working and we have to delete all settings, that the new GP preferences I newly created will work.
    Now GP preferences is not working on 300 clients. I don't know what they have done. If we reinstall the clients, GP preferences (power settings) are working fine. They have only used GP preferences for power settings. No other changes before the problem started.
    My senior manager told me to delete power options / settings in the Windows registry. So I can delete this?
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\ControlPanel\NameSpace\{025A5937-A6BE-4686-A844-36FE4BEC8B6D}

    Hi
    Where are power options / settings from Windows 7 saved in the Windows registry? We deploy the energy settings via GPO’s.
    Many thanks in advance
    This topic first appeared in the Spiceworks Community

  • How to define target window when redirecting within frames using servlet?

    Howdy:
    Is there a way to define target window when redirecting within frames using servlets?
    How to do it in JSP as well?
    T.I.A.
    Oriental Spirit

    Your servlet (or JSP) can't decide where it is going to be displayed. The browser has already decided that when it makes the request to your servlet.

  • Creating a new key in Windows Registry

    Hello all,
    Have been trying to use JNIRegistry for creation of a new key in Windows' Registry, and it doesn't work.
    Would appreciate if anyone has an example of how to do it.
    thank you,
    Rami A.

    I presume your refering to:
    http://www.trustice.com/java/jnireg/
    Obviously JNIRegistry is not a standard part of Java as its OS specific.
    Why are you attempting to create a key in the registry with java?
    I would recommend you have a look at java.util.prefs.Preferences which
    uses the registry under Windows OS but also handles other os's in a way
    that is native to that os.
    If you have a burning need to use JNIReg, then can you please post the
    code that you used? A quick look at the docs for it tells me that you
    need to create a RegistryKey object for the place where you wish to
    create the key and then use createSubKey().
    Also the documentation mentions that the Key Class is a mirror of how
    the "Windows Registry API" works, and then says to have a gander at the
    "Windows Registry API" if you have any questions. I would suggest
    having a gander at www.msdn.com. Also try this link:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnovba01/html/RegistryMadeEasy.asp
    James.

  • Access Windows Registry for Silent PDF Printing

    Hi All,
    I am trying to print a form (created in Livecycle Designer ES2) silently to PDF upon the click of (javascript) button on the form. I have Win XP and Acrobat 9 Pro. I feel close to achieving the goal however after some time and effort I am not sure the approach I am leaning toward is possible. So far I have the following:
    1. By following the Acrobat SDK / JS for Acrobat API reference I have been able to use the PrintParams object to set print properties including the page(s) to print and printer selection, however the code only works if, for the fileName property, I specify file type as postscript (.ps), when .pdf is used it does not work. JS used on click_event of my form button:
    var myDoc = event.target;
    var pp = myDoc.getPrintParams();
    pp.interactive = pp.constants.handling.none;
    pp.fileName = "/C/Test.ps";    
    pp.printerName = "Adobe PDF";
    pp.firstPage = 2;
    myDoc.print(pp);
    This works however I really want the filename to be something like "/C/Test.pdf" which does not work
    2. I have since learned that the windows registry...Acrobat Distiller\PrinterJobControl can be manually modified so Adobe knows where to send the output file:
    Registry folder: HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl
    I created new string under above folder with properties below:
         String value name: C:\Program Files\Adobe\Acorbat 9.0\Acrobat\Acrobat.exe
         String value data: C:\Test.pdf
    The approach in 2. works in combination with the code in 1. (without the pp.filename property being specified) but the registry string would need to be manually created each time before printing which is not practical.
    Is anyone able to advise whether or not it is possible to create a new registry string using Javascript (looks like there are quite a few VBA examples of this for use with MSAccess) from acrobat? or maybe another way to print to a specified file to PDF using JS from Acrobat?
    Any help or advice is much appreciated,
    Kind regards,
    Adam

    So many security issues for the general public.
    You path name is not considered a "Safe Path", as it is a root directory and since many systems have system control files in the root directory, Adobe has blocked the access to this directory for security reasons.
    "Silent Printing" is possible to printer over the Internet and is considered a security risk, but you can write a special application level JavaScript function that could provide this on a single system.
    "Save as .."  is also considered a security risk and blocked except when a special application user written function is used.
    See the Acrobat JavaScript API Reference for more information about safe paths and silent printing and saving along with other restricted actions.

  • RUSSIAN_RUSSIA.UTF8 language parameter is not working in windows registry

    Hi All,
    We are using oracle 9i.
    We are storing some russian data in a database, the characterset we are using is UTF8. The NLS_LANG value we are using is RUSSIAN_CIS.CL8ISO8859P5.
    Databse properties for the database is as under
    NLS_LANGUAGE --> AMERICAN
    NLS_TERRITORY --> AMERICA
    NLS_CURRENCY --> $
    NLS_ISO_CURRENCY --> AMERICA
    NLS_NUMERIC_CHARACTERS --> .,
    NLS_CHARACTERSET --> UTF8
    NLS_CALENDAR -->GREGORIAN
    NLS_DATE_FORMAT --> YYYY-MM-DD:HH24:MI:SS
    NLS_DATE_LANGUAGE --> AMERICAN
    NLS_SORT --> BINARY
    NLS_TIME_FORMAT --> HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT --> DD-MON-RR HH.MI.SSXFFAM
    NLS_TIME_TZ_FORMAT --> HH.MI.SSXFF AM TZR
    NLS_COMP --> BINARY
    NLS_LENGTH_SEMANTICS -->BYTE
    NLS_NCHAR_CHARACTERSET --> AL16UTF16
    we want to display the same russian data in SQL*PLUS (which we are using as a client). For that we tried the above mentioned NLS_LANG parameter and we also tried
    NLS_LANG = RUSSIAN_CIS.CL8MSWIN1251. Both the NLS_LANG parameter is working fine.
    Now i want to store some hindi data into the database, and same we want to display in SQL*PLUS. What i read is that by defining the characterset UTF8 it is possible
    so i just tried RUSSIAN_RUSSIA.UTF8 as a NLS_LANG value, when i supply this value in windows registry(HKEY_LOCAL_MACHINE-->SOFTWARE-->ORACLE-->HOME0-->NLS_LANG) then it takes the value, but when i tried to connect the
    database then oracle throws an error
    INVALID VALUE SPECIFIED FOR NLS PARAMETER.
    I also tried to store and view only hindi data in SQL*PLUS by changing the two registry values as HKEY_LOCAL_MACHINE-->SOFTWARE-->ORACLE-->HOME0-->NLS_LANG = HINDI_INDIA.IN8ISCII and SQLPLUS_FONT_CHARSET= HINDI. Then also i'm unable to view hindi data from tables.
    Now what I want is that, to store and view hindi as well as russian data in a database and view the same in SQL*PLUS. Please help me out if thr is some solution for the same.
    Thanks & Regards
    Amit Pandey

    On Windows this issue has some complications and pitfalls, you should read on metalink:
    The correct NLS_LANG in a Windows Environment
    Note:179133.1
    Shortly, sqlplus is not a UNICODE client, you cannot use UTF8 as client characterset. I assume, currently you have an ANSI codepage, which supports cyrillic characters. When you now want to store and retrieve hindi characters, it's not sufficient to change the Oracle client characterset, you have to to change to the correct ANSI codepage, too.
    Werner

  • How to clean the windows registry after an unclean install or previous SP2/SP1 uninstall.

    How to clean the windows registry after an unclean install or previous SP2/SP1 uninstall.
    <b>Procedure:</b>
    Run regedit -
    1. Go to HKEY_LOCAL_MACHINE\Software and delete iPlanet folder,
    2. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services delete the entries for :  adminXXX-serv,  iAS60, slapd4.1, slapd-servername.
    Run regedt32 -
    1. Go to HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Enum/Root    changed the permission for key LEGACY_SLAPD-xxx from security, and delete it,    check in other controlSet (002/003) also,  including currentControlSet.
    If you are cleaning the Registry after an uninstall, than after cleaning
    registry delete the iAS home dir and "reboot" the computer.

    Sanjeev:
    Maybe you can help. I haven't been able to resolve this one "small" problem which is preventing me from rolling out iWS6.0 SP2. I created a new instance of the server using "Add Server" so that I have 2 Web sites (e.g. test1.domain.com and test2.domain.com), but the 2nd server instance is pointing to the same HTML location as the first (i.e. http://test2.domain.com takes you to the same location as http://test1.domain.com). What do I need to change and where to fix this? Need a VERY quick answer to this to implement a production Web server. I've tried the suggestions made so far (see: http://softwareforum.sun.com/servlet/ProcessRequest?RHIVEID=181&RPAGEID=135&HOID=50B500000008000000966A0000&UCATEGORY_0=_23_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=server+instances&USEARCHCONTEXT_QUESTION_S=0) but nothing has resolved this problem. If you have any ideas at all, I'd appreciate if you could let me know :)
    Thanks!

  • Illustrator Launch Error: Windows registry was not in the expected state.

    Hi All,
    I just upgraded to CS3 Design Premium, and I'm I'm getting the following error when I launch Illustrator:
    "The Windows registry was not in the expected state. PLease run the Illustrator installer to correct this problem. Illustrator will continue to run, but may not operate properly."
    I'm running Vista Ultimate x64 on a dual Xeon workstation with 4GB of RAM. I found the following article in the knowledgebase, but it did not solve the problem:
    http://www.adobe.com/go/kb401602
    I have also uninstalled CS2, reinstalled CS3 and reinstalled CS3 *again*.
    Illustrator does run, but it's slow and unstable. Any thoughts on what's going on and what I can do to fix it? Many thanks!
    --Jim.

    Hello, any solution on this problem? I've got the problem with Illustrator CS3, XP where I get the registry error at startup and I can't open any .ai files on my computer from explorer. I can open the files by opening from Illustrator. Here's my registry entry:
    Registry key not found: .ai
    Expected string: Adobe.Illustrator.13
    Registry key not found: .eps
    Expected string: Adobe.Illustrator.EPS
    Registry key not found: .hyp
    Expected string: Adobe.Illustrator.Hyphen
    Registry key not found: Adobe.Illustrator.Hyphen
    Expected string: Adobe Illustrator Hyphenation Dictionary
    Registry key not found: Adobe.Illustrator.Hyphen\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,4
    Registry key not found: .aip
    Expected string: Adobe.Illustrator.Plugin
    Registry key not found: Adobe.Illustrator.Plugin
    Expected string: Adobe Illustrator Plugin
    Registry key not found: Adobe.Illustrator.Plugin\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,5
    Registry key not found: .flt
    Expected string: Adobe.Illustrator.Filter
    Registry key not found: Adobe.Illustrator.Filter
    Expected string: Adobe Illustrator Filter
    Registry key not found: Adobe.Illustrator.Filter\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,6
    Registry key not found: .dct
    Expected string: Adobe.Illustrator.Dictionary
    Registry key not found: Adobe.Illustrator.Dictionary
    Expected string: Adobe Illustrator Spelling Dictionary
    Registry key not found: Adobe.Illustrator.Dictionary\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,7
    Registry key not found: .sbx
    Expected string: Adobe.Illustrator.Tsume
    Registry key not found: Adobe.Illustrator.Tsume
    Expected string: Adobe Illustrator Tsume File
    Registry key not found: Adobe.Illustrator.Tsume\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,8
    Registry key not found: .aia
    Expected string: Adobe.Illustrator.Action
    Registry key not found: Adobe.Illustrator.Action
    Expected string: Adobe Illustrator Action File
    Registry key not found: Adobe.Illustrator.Action\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,10
    Registry key validated: .ase
    Registry key validated: Adobe.Illustrator.SwatchExchange
    Registry key validated: Adobe.Illustrator.SwatchExchange\DefaultIcon
    Registry key validated: .acb
    Registry key validated: .acbl
    Registry key validated: Adobe.Illustrator.ColorBook
    Registry key validated: Adobe.Illustrator.ColorBook\DefaultIcon
    Registry key validated: .8bf
    Registry key validated: .8bi
    Registry key validated: Adobe.Photoshop.Plugin
    Registry key validated: Adobe.Photoshop.Plugin\DefaultIcon
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\ProgID
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\VersionIndependentProgID
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\LocalServer32
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\InProcHandler
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\InProcHandler32
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb\-3
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb\-2
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb\-1
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb\0
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\AuxUserType
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\AuxUserType\2
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\AuxUserType\3
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\MiscStatus
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\MiscStatus\4
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\Insertable
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\
    Registry key validated: Adobe.Illustrator.13\CLSID
    Registry key validated: Adobe.Illustrator.13\Insertable
    Registry key validated: Adobe.Illustrator.13\.ai\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.eps\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.prf\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.hyp\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.aip\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.flt\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.dct\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.sbx\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.8bf\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.8bi\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.aia\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.ase\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\shell
    Registry key validated: Adobe.Illustrator.13\shell\open
    Registry key validated: Adobe.Illustrator.13\shell\open\command
    Registry key validated: Adobe.Illustrator.13\shell\print\command
    Registry key validated: Adobe.Illustrator.13\shell\edit\command
    Registry key validated: Adobe.Illustrator.13\shell\edit
    Registry key not found: Adobe.Illustrator.EPS\
    Expected string: Encapsulated PostScript
    Registry key not found: Adobe.Illustrator.EPS\CLSID
    Expected string: {CFE97CDD-836F-4c78-B6B7-A36DD433892E}
    Registry key not found: Adobe.Illustrator.EPS\Insertable
    Expected string:
    Registry key not found: Adobe.Illustrator.EPS\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,2
    Registry key not found: Adobe.Illustrator.EPS\shell
    Expected string:
    Registry key not found: Adobe.Illustrator.EPS\shell\open
    Expected string:
    Registry key not found: Adobe.Illustrator.EPS\shell\open\command
    Expected string: "C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe" "%1"
    Registry key not found: Adobe.Illustrator.EPS\shell\print\command
    Expected string: "C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe" /p "%1"
    Registry key validated: Adobe.Illustrator.EPS\shell\edit\command
    Registry key validated: Adobe.Illustrator.EPS\shell\edit
    Registry key not found: Adobe.Illustrator\
    Expected string: Adobe Illustrator Artwork 13.0
    Registry key not found: Adobe.Illustrator\CLSID
    Expected string: {CFE97CDD-836F-4c78-B6B7-A36DD433892E}
    Registry key not found: Adobe.Illustrator\CurVer
    Expected string: Adobe.Illustrator.13
    Registry key validated: Adobe.Illustrator.13\protocol
    Registry key validated: Adobe.Illustrator.13\protocol\StdFileEditing
    Registry key validated: Adobe.Illustrator.13\protocol\StdFileEditing\server
    Registry key not found: Illustrator.Artwork\NotInsertable
    Expected string:
    Registry key validated: FileType\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}
    Registry key validated: FileType\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\0
    OK: Key not found as expected: Adobe.Illustrator.7\shellex\IconHandler
    OK: Key not found as expected: Adobe.Illustrator.7\shellex\PropertySheetHandlers\AIPage
    OK: Key not found as expected: Adobe.Illustrator.7\shellex\PropertySheetHandlers
    OK: Key not found as expected: Adobe.Illustrator.7\shellex
    OK: Key not found as expected: CLSID\{697EE7C0-334C-11D0-B826-0020AF

  • User defined fields window / formatted search

    HI
    I 've created a user defined field in the marketing documents
    I want tO put the result of a query into this field :
    I use a formatted search in order to have the result :
    SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = $[$4.0]
    My query is based on CardCode(item 4), but when the user defined field window is open, the item 4 is the cross of this form and i have the result next :
    SELECT T0.Balance FROM OCRD T0 WHERE T0.CardCode = N'RSRCButtonCloseBox'
    Thanks
    Sylvain

    Hi,
    It happened the same today for me, but using both, $[$4.0.0] and $[$4.1.0]... both of them return that RSRCButtonCloseBox....
    So, what is wrong here?
    Regards,
    Leo

  • LabSQL can not run with MySQL 64-bit ODBC connector

    I have developed a small piece of LabVIEW program to retrieve the data from MySQL database and displayed as curve with XY-Graph. The bridge between database and the program is the MySQL ODBC connector and the LabSQL VIs (which is quite useful). The program runs properly in my 32-bit computer for developing while a error caused in LabSQL part and stated that there is a architecture mismatch:
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application in ADO Connection Open.vi->WeatherDataRetrive.vi
    Is there anyone encountered similar problem and would you please provide some help?
    Many thanks in advance.
    Harry

    Are you using LabVIEW 32 Bit? Even if you run on Windows 64 Bit any DLL loaded on behalve of an application has to have the bitness of that application, not the bitness of the OS. And I'm pretty sure that the ADO/DAO interface that LabSQL is using will not provide any bridging if the ODBC driver is not in the same bitness as the calling application.
    So if you are using LabVIEW 32 Bit, install the 32 Bit MyODBC driver or change to using 64 Bit LabVIEW instead, although there might be other problems with ADO/DAO not working properly for a 64 Bit application.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Changing Windows Registry using Java

    hi...all,
    Any1 knows how to change windows registry using java. wheather is it possible ?? or there is any other alternative for same....

    Write a Java class which will create a temporary REG file... use regedit /s from Runtime.exec() and pass that file as argument.
    ***Annie***
    (Where the hell do these ideas come in my head!)

  • Uninstall Oracle - Clear windows registry

    Hi All,
    I like to know how to clear Windows Registry after unistalling Oracle and to install fresh version of Oracle. To avoid multiple Homes and some more..
    (I tried deleting every key by searching 'oracle' in regedit).
    Could anyone pls suggest the steps.
    Cheers

    Hi ,
    I have done the procedure many ... many times!!!!
    First you uninstall all Oracle products.... then you delete all occurences of 'oracle' found in the registry. Some keys in registry won't be deleted ... but don't worry....
    Then you restart your computer and all windows services should be deleted. Then you delete the remainings in oracle_home - i mean in the directory where oracle products were installed....
    You ' re ready for a new , fresh installllllllllll
    Good luck
    Simon

  • Java API to read the Encrypted Values from Windows Registry settings

    Is there any Java API to read the Encrypted Values from Windows Registry settings ?
    My Java Application invokes a 3rd party Tool that writes the key/value to windows registry settings under : “HKLM\Software\<3rdparty>\dataValue”.
    This entry is in BINARY and encrypted with 3DES, using crypto API from Microsoft.
    3rd party software to encrypt the data stored in registry it
    either uses C++ code: and uses the call “CryptProtectData” and “CryptUnProtectData” or
    If it is a .NET (C#) it uses the call “Protect” or “UnProtect” from class “ProtectData” of WinCrypt.h from the library “Crypt32.lib.
    Note: The data is encrypted using auto-generated machinekey and there is no public key shared to decrypt the Encrypted data.
    Since the data is encrypted using auto-generated machinekey the same can be decrypted from a .Net / C++ application using CryptUnprotectData or UnProtect() API of WinCrypt.h from the library “Crypt32.lib.
    To know more about Auto-Generated MachineKey in Windows refer the links below
    http://aspnetresources.com/tools/machineKey
    http://msdn.microsoft.com/en-us/library/ms998288.aspx
    I need to find a way in Java to find the equivalent API to decrypt (CryptUnprotectData) and Microsoft will automatically use the correct key.
    But i couldn't find any informato related to Java APIs to enrypt or decrypt data using auto-generated machinekey.
    Is there a way to read the encrypted data from Windows regsitry settings that is encrypted using the Auto-Generated Machine Key ?
    Kindly let me know if Java provides any such API or mechanism for this.

    If the symmetric key is "auto-generated" and is not being stored anywhere on the machine, it implies that the key is being regenerated based on known values on the machine. This is the same principle in generating 3DES keys using PBE (password-based-encryption). I would review the documentation on the C# side, figure out the algorithm or "seed" values being used by the algorithm, and then attempt to use the JCE to derive the 3DES key using PBE; you will need to provide the known values as parameters to the PBE key-generation function in JCE. Once derived, it can be used to decrypt the ciphertext from the Regiistry in exactly the same way as the CAPI/CNG framework.
    An alternate way for Java to use this key, is to write a JNI library that will call the native Windows code to do the decryption; then the Java program does not need to know details about the key.
    That said, there is a risk that if your code can derive the key based on known seeds, then so can an attacker. I don't know what your applicatiion is doing, but if this is anything related to compliance for some data-security regulation like PCI-DSS, then you will fail the audit (for being unable to prove you have adequate controls on the symmetric key) if a knowledgable QSA probes this design.
    Arshad Noor
    StrongAuth, Inc.

  • Print directly to the printer option in the Windows registry

    I need to find the location for the option to "Print directly to the printer" in the Windows registry.  I am trying to create a GPO to enable this option at login and I can't find the location for it.  Is this possible to do?  If not, is there another way to enable this at startup for all users?  We are running Adobe Acrobat X on Windows 7 Enterprise 32-bit.
    Thanks

    I guess that those of use responding don't know enough about the process you are trying to implement to be of help. Printing to network drives has been an issue for folks for a long time and a lot seems to depend on the network. That is probably of zero help and all I can suggest is just to hang on for someone who hopefully has an idea. If we can get a better handle on what you are trying to do, we might be able to make suggestions. However, I think our answers are not going to be there for the registry issue.

Maybe you are looking for