Skip to content

Commit

Permalink
windows.ole32: add a couple of constants
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ilin authored and erg committed Mar 30, 2019
1 parent 88abc4e commit e2b689a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions basis/windows/dragdrop-listener/dragdrop-listener.factor
Expand Up @@ -7,8 +7,6 @@ ui.gestures windows.com windows.com.wrapper windows.dropfiles
windows.kernel32 windows.ole32 windows.user32 ;
IN: windows.dragdrop-listener

CONSTANT: E_OUTOFMEMORY -2147024882 ! 0x8007000e

: handle-data-object ( handler: ( hdrop -- x ) data-object -- filenames )
FORMATETC <struct>
CF_HDROP >>cfFormat
Expand Down
3 changes: 3 additions & 0 deletions basis/windows/ole32/ole32.factor
Expand Up @@ -33,8 +33,11 @@ CONSTANT: DRAGDROP_S_DROP 0x00040100
CONSTANT: DRAGDROP_S_CANCEL 0x00040101
CONSTANT: DRAGDROP_S_USEDEFAULTCURSORS 0x00040102

CONSTANT: E_NOTIMPL 0x80004001
CONSTANT: E_NOINTERFACE 0x80004002
CONSTANT: E_FAIL 0x80004005
CONSTANT: E_UNEXPECTED 0x8000FFFF
CONSTANT: E_OUTOFMEMORY 0x8007000E
CONSTANT: E_INVALIDARG 0x80070057

CONSTANT: MK_ALT 0x20
Expand Down

2 comments on commit e2b689a

@mrjbq7
Copy link
Member

@mrjbq7 mrjbq7 commented on e2b689a Mar 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IN: scratchpad 0x8007000e -2147024882 = .
f

So, which is more correct?

@alex-ilin
Copy link
Member Author

@alex-ilin alex-ilin commented on e2b689a Mar 30, 2019 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.