@@ -56,24 +56,24 @@ foreign import stdcall unsafe "windows.h EndUpdateResourceW"
5656
5757type ResourceType = LPCTSTR
5858
59- #{enum ResourceType, castUINTToPtr
60- , rT_ACCELERATOR = (UINT )RT_ACCELERATOR // Accelerator table
61- , rT_ANICURSOR = (UINT )RT_ANICURSOR // Animated cursor
62- , rT_ANIICON = (UINT )RT_ANIICON // Animated icon
63- , rT_BITMAP = (UINT )RT_BITMAP // Bitmap resource
64- , rT_CURSOR = (UINT )RT_CURSOR // Hardware - dependent cursor resource
65- , rT_DIALOG = (UINT )RT_DIALOG // Dialog box
66- , rT_FONT = (UINT )RT_FONT // Font resource
67- , rT_FONTDIR = (UINT )RT_FONTDIR // Font directory resource
68- , rT_GROUP_CURSOR = (UINT )RT_GROUP_CURSOR // Hardware - independent cursor resource
69- , rT_GROUP_ICON = (UINT )RT_GROUP_ICON // Hardware - independent icon resource
70- , rT_HTML = (UINT )RT_HTML // HTML document
71- , rT_ICON = (UINT )RT_ICON // Hardware - dependent icon resource
72- , rT_MENU = (UINT )RT_MENU // Menu resource
73- , rT_MESSAGETABLE = (UINT )RT_MESSAGETABLE // Message - table entry
74- , rT_RCDATA = (UINT )RT_RCDATA // Application - defined resource (raw data )
75- , rT_STRING = (UINT )RT_STRING // String - table entry
76- , rT_VERSION = (UINT )RT_VERSION // Version resource
59+ #{enum ResourceType, castUINTPtrToPtr
60+ , rT_ACCELERATOR = (UINT_PTR )RT_ACCELERATOR // Accelerator table
61+ , rT_ANICURSOR = (UINT_PTR )RT_ANICURSOR // Animated cursor
62+ , rT_ANIICON = (UINT_PTR )RT_ANIICON // Animated icon
63+ , rT_BITMAP = (UINT_PTR )RT_BITMAP // Bitmap resource
64+ , rT_CURSOR = (UINT_PTR )RT_CURSOR // Hardware - dependent cursor resource
65+ , rT_DIALOG = (UINT_PTR )RT_DIALOG // Dialog box
66+ , rT_FONT = (UINT_PTR )RT_FONT // Font resource
67+ , rT_FONTDIR = (UINT_PTR )RT_FONTDIR // Font directory resource
68+ , rT_GROUP_CURSOR = (UINT_PTR )RT_GROUP_CURSOR // Hardware - independent cursor resource
69+ , rT_GROUP_ICON = (UINT_PTR )RT_GROUP_ICON // Hardware - independent icon resource
70+ , rT_HTML = (UINT_PTR )RT_HTML // HTML document
71+ , rT_ICON = (UINT_PTR )RT_ICON // Hardware - dependent icon resource
72+ , rT_MENU = (UINT_PTR )RT_MENU // Menu resource
73+ , rT_MESSAGETABLE = (UINT_PTR )RT_MESSAGETABLE // Message - table entry
74+ , rT_RCDATA = (UINT_PTR )RT_RCDATA // Application - defined resource (raw data )
75+ , rT_STRING = (UINT_PTR )RT_STRING // String - table entry
76+ , rT_VERSION = (UINT_PTR )RT_VERSION // Version resource
7777 }
7878
7979findResource :: HMODULE -> String -> ResourceType -> IO HRSRC
0 commit comments