flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Missing RegOpenUserClassesRoot from api\advapi.inc

Author
Thread Post new topic Reply to topic
MattDiesel



Joined: 31 Oct 2010
Posts: 34
Location: England
MattDiesel 08 Mar 2011, 22:09
As a general rule, I have never had any problem with the includes other than a bit of confusion with LVITEM vs LV_ITEM. However, this was a bit odd: you are missing a line from api\advapi.inc which should read:

Code:
      RegOpenUserClassesRoot,'RegOpenUserClassesRoot',\    


Is there a reason this function was overlooked? It's not a new function or anything like that (Windows 2000 professional is the minimum OS).

Is this a fairly common thing having functions missing is it a one off?

Mat
Post 08 Mar 2011, 22:09
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2909
Location: 0x77760000
typedef 09 Mar 2011, 02:12
Well, I suggest, you correct it if you think it's not right.

LVITEM supersedes LV_ITEM http://msdn.microsoft.com/en-us/library/bb774760%28v=vs.85%29.aspx


Here

Code:
struct LVITEM
  mask          dd ?
  iItem          dd ?
  iSubItem     dd ?
  state          dd ?
  stateMask   dd ?
  pszText      db ? ; TCHAR Rolling Eyes
  cchTextMax dd ?
  iImage        dd ?
  lParam        LPARAM 
  iIndent       dd ?
  iGroupId     dd ?
  cColumns   dd ?
  puColumns  dd ?
  piColFmt     dd ?
  iGroup        dd ?
ends

    
Post 09 Mar 2011, 02:12
View user's profile Send private message Reply with quote
MattDiesel



Joined: 31 Oct 2010
Posts: 34
Location: England
MattDiesel 10 Mar 2011, 19:52
I am correcting as I go, my solution was actually just:

LVITEM fix LV_ITEM

for that particular problem...

Edit: Besides, I don't think that struct is right at all. pszText should be a pointer, so dd not db. The fact that it's a TCHAR doesn't matter to the struct.
Post 10 Mar 2011, 19:52
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20303
Location: In your JS exploiting you and your system
revolution 24 Mar 2011, 02:16
MattDiesel wrote:
Is there a reason this function was overlooked? It's not a new function or anything like that (Windows 2000 professional is the minimum OS).
"New" is a relative term.
MattDiesel wrote:
Is this a fairly common thing having functions missing is it a one off?
There will be many "missing" functions. Most of the existing definitions are from Win95 only.
Post 24 Mar 2011, 02:16
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.