flat assembler
Message board for the users of flat assembler.

Index > Windows > weird RegCreateKeyEx

Author
Thread Post new topic Reply to topic
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
hi,
I'm writing a program that uses system registry. win32.hlp shows me, that RegCreateKeyEx has following arguments:
Code:
LONG RegCreateKeyEx(
    HKEY hKey,     // handle of an open key 
    LPCTSTR lpSubKey,      // address of subkey name 
    DWORD Reserved,       // reserved 
    LPTSTR lpClass,     // address of class string 
    DWORD dwOptions,     // special options flag 
    REGSAM samDesired,      // desired security access 
    LPSECURITY_ATTRIBUTES lpSecurityAttributes,  // address of key security structure 
    PHKEY phkResult,   // address of buffer for opened handle  
    LPDWORD lpdwDisposition         // address of disposition value buffer 
   );
    


and then, I can read:

Code:
[b]lpClass[/b] Points to a null-terminated string that specifies the class (object type) of this key. This parameter is ignored if the key already exists.
    


So actually it says nothing about what is lpClass. What's this for? What value should I give to it? Actually it works with a pointer to any string... So what's the meaning of this structure member? Confused

thanks
Post 11 Oct 2004, 14:25
View user's profile Send private message Visit poster's website Reply with quote
inskipp



Joined: 23 Jun 2003
Posts: 25
Location: Poland
inskipp
I don't now, but I always set it to 0 and it works also.
In MSDN it stays
"Windows Me/98/95: This parameter is used only for remote registry keys; it is ignored for local registry keys"
so I don't care.
Post 11 Oct 2004, 15:47
View user's profile Send private message ICQ Number Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner
from PSDK:

lpClass
[in] Pointer to a null-terminated string that specifies the class (object type) of this key. This parameter is ignored if the key already exists. No classes are currently defined; applications should pass a null string. Windows 95 and Windows 98 use this parameter only for remote registry keys; it is ignored for local registry keys. Windows NT/Windows 2000 supports this parameter for both local and remote registry keys.
Post 11 Oct 2004, 21:15
View user's profile Send private message Visit poster's website Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1092
Location: Poland
decard
Oh, PSDK was much clearer than win32.hlp. I should have switch to PSDK Wink Thanks.
Post 11 Oct 2004, 21:25
View user's profile Send private message Visit poster's website Reply with quote
inskipp



Joined: 23 Jun 2003
Posts: 25
Location: Poland
inskipp
Isn't win32.hlp a part of the PSDK ?
Post 14 Oct 2004, 16:26
View user's profile Send private message ICQ Number Reply with quote
vbVeryBeginner



Joined: 15 Aug 2004
Posts: 884
Location: \\world\asia\malaysia
vbVeryBeginner
win32.hlp is antique version of psdk (i guess)
Post 15 Oct 2004, 04:37
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.