SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    May 2002
    Location
    France
    Posts
    29
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RegCreateKeyEx with SILK International

    Hi,
    I wrote this piece of code to Create a reg key using SILK International:

    //dll declaration
    private dll "advapi32.dll"
    LONG RegCreateKeyExW (LONG hKey, LPCSTR lpSubKey, LONG Reserved, LPCSTR lpClass, LONG dwOptions, LONG samDesired, LONG lpSecurityAttributes, out LONG phkResult, out LONG lpdwDisposition) alias "RegCreateKeyExW"

    //function call
    LONG hNewKey
    LONG lDisposition
    long lRet=RegCreateKeyExW (HKEY_CURRENT_USER, "Software\QAP\MachineData", 0, "", 0, KEY_READ, 0, hNewKey, lDisposition)

    -->doesn't work:returns an error code 998

    The same function call works fine with Silk "Standard" (using the the dll decl with RegCreateKeyEx alias in advapi32.dll)

    Does anyone know how to make it work please?

    Any help is gladly welcome..



    ------------------

  2. #2
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: RegCreateKeyEx with SILK International

    Did you try using Silk's Reg_CreateKey() function?

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:43 AM.

Copyright BetaSoft Inc.