DECLARE FUNCTION CreateMenu LIB "user32" ALIAS "CreateMenu" AS LONG
DECLARE FUNCTION CreatePopupMenu LIB "user32" ALIAS "CreatePopupMenu" AS LONG
DECLARE FUNCTION SetMenu LIB "user32" ALIAS "SetMenu"(hWnd AS LONG, hMenu AS LONG) AS LONG
DECLARE FUNCTION DrawMenuBar LIB "user32" ALIAS "DrawMenuBar" (hwnd AS LONG) AS LONG
DECLARE FUNCTION DestroyMenu LIB "user32" ALIAS "DestroyMenu" (hMenu AS LONG) AS LONG
DECLARE FUNCTION GetMenuItemCount LIB "user32" ALIAS "GetMenuItemCount" (hMenu AS LONG) AS LONG
CONST MIIM_STATE = &H1
CONST MIIM_ID = &H2
CONST MIIM_SUBMENU = &H4
CONST MIIM_CHECKMARKS = &H8
CONST MIIM_DATA = &H20
CONST MIIM_TYPE = &H10
CONST MFT_MENUBREAK = &H40
CONST MFT_OWNERDRAW = &H100
CONST MFT_RADIOCHECK = &H200
CONST MFT_RIGHTJUSTIFY = &H4000
CONST MFT_RIGHTORDER = &H2000
CONST MFT_SEPARATOR = &H800
CONST MFT_STRING = &H0
CONST MFS_DEFAULT = &H1000
CONST MFS_HILITE = &H80
CONST BIF_RETURNONLYFSDIRS = 1
CONST BIF_DONTGOBELOWDOMAIN = 2
TYPE BrowseInfo
hwndOwner AS LONG
pIDLRoot AS LONG
pszDisplayName AS LONG
lpszTitle AS LONG
ulFlags AS LONG
lpfnCallback AS LONG
lParam AS LONG
iImage AS LONG
END TYPE
DECLARE SUB CoTaskMemFree LIB "ole32.dll" ALIAS "CoTaskMemFree" ( hMem AS LONG)
DECLARE FUNCTION lstrcat LIB "kernel32" ALIAS "lstrcatA" (lpString1 AS STRING, lpString2 AS STRING) AS LONG
DECLARE FUNCTION SHBrowseForFolder LIB "shell32" ALIAS "SHBrowseForFolder" (lpbi AS BrowseInfo) AS LONG
DECLARE FUNCTION SHGetPathFromIDList LIB "shell32" ALIAS "SHGetPathFromIDList" (pidList AS LONG, lpBuffer AS STRING) AS LONG
|