//
//
//
//
//
//
//
//
//
//
软件Tags:
易语言U盘弹出与插入源码系统结构:设置U盘状态,StateChange,IsClassUsb,SetupDiOpenClassRegKey,RegQueryValueEx,RegCloseKey,lstrcmpi,SetupDiGetClassDevs,SetupDiEnumDeviceInfo,LoadCursor,SetCursor,SetupDiSetClassInstallParams,SetupDiDestroyDeviceInfoList,CM_Get_Device_ID,SetupDiGetDeviceRegistryProperty,CM_Get_Parent,CM_Get_DevNode_Status,CM_Request_Device_Eject,SetupDiChangeState,SetWindowLong,RegisterDeviceNotification,UnregisterDeviceNotification,RtlMoveMemory_Ptr2DEV_BROADCAST_VOLUME,GetDriveType,CallWindowProc, ======窗口程序集1 || ||------__启动窗口_创建完毕 || ||------设置U盘状态 || ||------StateChange || ||------IsClassUsb || ||------_按钮1_被单击 || ||------_按钮2_被单击 || || ======调用的Dll || ||---[dll]------SetupDiOpenClassRegKey || ||---[dll]------RegQueryValueEx || ||---[dll]------RegCloseKey || ||---[dll]------lstrcmpi || ||---[dll]------SetupDiGetClassDevs || ||---[dll]------SetupDiEnumDeviceInfo || ||---[dll]------LoadCursor || ||---[dll]------SetCursor || ||---[dll]------SetupDiSetClassInstallParams || ||---[dll]------SetupDiDestroyDeviceInfoList || ||---[dll]------CM_Get_Device_ID || ||---[dll]------SetupDiGetDeviceRegistryProperty || ||---[dll]------CM_Get_Parent || ||---[dll]------CM_Get_DevNode_Status || ||---[dll]------CM_Request_Device_Eject || ||---[dll]------SetupDiChangeState || ||---[dll]------SetWindowLong || ||---[dll]------RegisterDeviceNotification || ||---[dll]------UnregisterDeviceNotification || ||---[dll]------RtlMoveMemory_Ptr2DEV_BROADCAST_VOLUME || ||---[dll]------GetDriveType || ||---[dll]------CallWindowProc 调用的DLL命令: .DLL命令SetupDiOpenClassRegKey,整数型,"setupapi.dll","SetupDiOpenClassRegKey" .参数ClassGuid,GUID .参数samDesired,整数型 .DLL命令RegQueryValueEx,整数型,"advapi32.dll","RegQueryValueExA" .参数hKey,整数型 .参数lpValueName,文本型 .参数lpReserved,整数型 .参数lpType,整数型,传址 .参数lpData,文本型 .参数lpcbData,整数型,传址 .DLL命令RegCloseKey,整数型,"advapi32.dll","RegCloseKey" .参数hKey,整数型 .DLL命令lstrcmpi,整数型,"kernel32.dll","lstrcmpiA" .参数lpString1,文本型 .参数lpString2,文本型 .DLL命令SetupDiGetClassDevs,整数型,"setupapi.dll","SetupDiGetClassDevsA" .参数ClassGuid,整数型 .参数Enumerator,整数型 .参数hwndParent,整数型 .参数Flags,整数型 .DLL命令SetupDiEnumDeviceInfo,整数型,"setupapi.dll","SetupDiEnumDeviceInfo" .参数DeviceInfoSet,整数型 .参数MemberIndex,整数型 .参数DeviceInfoData,SP_DEVINFO_DATA .DLL命令LoadCursor,整数型,"user32.dll","LoadCursorA" .参数hInstance,整数型 .参数lpCursorName,整数型 .DLL命令SetCursor,整数型,"user32.dll","SetCursor" .参数hCursor,整数型 .DLL命令SetupDiSetClassInstallParams,整数型,"setupapi.dll","SetupDiSetClassInstallParamsA" .参数DeviceInfoSet,整数型 .参数DeviceInfoData,SP_DEVINFO_DATA .参数ClassInstallParams,SP_PROPCHANGE_PARAMS .参数ClassInstallParamsSize,整数型 .DLL命令SetupDiDestroyDeviceInfoList,整数型,"setupapi.dll","SetupDiDestroyDeviceInfoList" .参数DeviceInfoSet,整数型 .DLL命令CM_Get_Device_ID,整数型,"setupapi.dll","CM_Get_Device_IDA" .参数dnDevInst,整数型 .参数Buffer,文本型 .参数BufferLen,整数型 .参数ulFlags,整数型 .DLL命令SetupDiGetDeviceRegistryProperty,整数型,"setupapi.dll","SetupDiGetDeviceRegistryPropertyA" .参数DeviceInfoSet,整数型 .参数DeviceInfoData,SP_DEVINFO_DATA,传址 .参数Property,整数型 .参数PropertyRegDataType,整数型,传址 .参数PropertyBuffer,文本型 .参数PropertyBufferSize,整数型 .参数RequiredSize,整数型,传址 .DLL命令CM_Get_Parent,整数型,"setupapi.dll","CM_Get_Parent" .参数pdnDevInst,整数型,传址 .参数dnDevInst,整数型 .参数ulFlags,整数型 .DLL命令CM_Get_DevNode_Status,整数型,"setupapi.dll","CM_Get_DevNode_Status" .参数arg1,整数型,传址 .参数arg2,整数型,传址 .参数arg3,整数型 .参数arg4,整数型 .DLL命令CM_Request_Device_Eject,整数型,"setupapi.dll","CM_Request_Device_EjectA" .参数dnDevInst,整数型 .参数pVetoType,整数型,传址 .参数pszVetoName,文本型 .参数ulNameLength,整数型 .参数ulFlags,整数型 .DLL命令SetupDiChangeState,整数型,"setupapi.dll","SetupDiChangeState" .参数arg1,整数型 .参数arg2,SP_DEVINFO_DATA .DLL命令SetWindowLong,整数型,"user32","SetWindowLongA" .参数hwnd,整数型 .参数nIndex,整数型 .参数dwNewLong,整数型 .DLL命令RegisterDeviceNotification,整数型,"user32.dll","RegisterDeviceNotificationA" .参数hRecipient,整数型 .参数NotificationFilter,DEV_BROADCAST_DEVICEINTERFACE .参数Flags,整数型 .DLL命令UnregisterDeviceNotification,整数型,"User32.dll" .参数Handle,整数型 .DLL命令RtlMoveMemory_Ptr2DEV_BROADCAST_VOLUME,,"kernel32","RtlMoveMemory" .参数Destination,DEV_BROADCAST_VOLUME .参数Source,整数型 .参数Length,整数型 .DLL命令GetDriveType,整数型,"kernel32","GetDriveTypeA" .参数nDrive,文本型 .DLL命令CallWindowProc,整数型,"user32","CallWindowProcA" .参数lpPrevWndFunc,整数型 .参数hwnd,整数型 .参数msg,整数型 .参数wParam,整数型 .参数lParam,整数型
