
const
// module ID definitions
 SCE_SYSMODULE_INVALID                    =$0000;
 SCE_SYSMODULE_FIBER                      =$0006;
 SCE_SYSMODULE_ULT                        =$0007;
 SCE_SYSMODULE_NGS2                       =$000b;
 SCE_SYSMODULE_XML                        =$0017;
 SCE_SYSMODULE_NP_UTILITY                 =$0019;
 SCE_SYSMODULE_VOICE                      =$001a;
 SCE_SYSMODULE_VOICEQOS                   =$001b;
 SCE_SYSMODULE_NP_MATCHING2               =$001c;
 SCE_SYSMODULE_NP_SCORE_RANKING           =$001e;
 SCE_SYSMODULE_RUDP                       =$0021;
 SCE_SYSMODULE_NP_TUS                     =$002c;
 SCE_SYSMODULE_FACE                       =$0038;
 SCE_SYSMODULE_SMART                      =$0039;
 SCE_SYSMODULE_JSON                       =$0080;
 SCE_SYSMODULE_GAME_LIVE_STREAMING        =$0081;
 SCE_SYSMODULE_COMPANION_UTIL             =$0082;
 SCE_SYSMODULE_PLAYGO                     =$0083;
 SCE_SYSMODULE_FONT                       =$0084;
 SCE_SYSMODULE_VIDEO_RECORDING            =$0085;
 SCE_SYSMODULE_S3DCONVERSION              =$0086;
 SCE_SYSMODULE_AUDIODEC                   =$0088;
 SCE_SYSMODULE_JPEG_DEC                   =$008a;
 SCE_SYSMODULE_JPEG_ENC                   =$008b;
 SCE_SYSMODULE_PNG_DEC                    =$008c;
 SCE_SYSMODULE_PNG_ENC                    =$008d;
 SCE_SYSMODULE_VIDEODEC                   =$008e;
 SCE_SYSMODULE_MOVE                       =$008f;
 SCE_SYSMODULE_PAD_TRACKER                =$0091;
 SCE_SYSMODULE_DEPTH                      =$0092;
 SCE_SYSMODULE_HAND                       =$0093;
 SCE_SYSMODULE_LIBIME                     =$0095;
 SCE_SYSMODULE_IME_DIALOG                 =$0096;
 SCE_SYSMODULE_NP_PARTY                   =$0097;
 SCE_SYSMODULE_FONT_FT                    =$0098;
 SCE_SYSMODULE_FREETYPE_OT                =$0099;
 SCE_SYSMODULE_FREETYPE_OL                =$009a;
 SCE_SYSMODULE_FREETYPE_OPT_OL            =$009b;
 SCE_SYSMODULE_SCREEN_SHOT                =$009c;
 SCE_SYSMODULE_NP_AUTH                    =$009d;
 SCE_SYSMODULE_SULPHA                     =$009f;
 SCE_SYSMODULE_SAVE_DATA_DIALOG           =$00a0;
 SCE_SYSMODULE_INVITATION_DIALOG          =$00a2;
 SCE_SYSMODULE_DEBUG_KEYBOARD             =$00a3;
 SCE_SYSMODULE_MESSAGE_DIALOG             =$00a4;
 SCE_SYSMODULE_AV_PLAYER                  =$00a5;
 SCE_SYSMODULE_CONTENT_EXPORT             =$00a6;
 SCE_SYSMODULE_AUDIO_3D                   =$00a7;
 SCE_SYSMODULE_NP_COMMERCE                =$00a8;
 SCE_SYSMODULE_MOUSE                      =$00a9;
 SCE_SYSMODULE_COMPANION_HTTPD            =$00aa;
 SCE_SYSMODULE_WEB_BROWSER_DIALOG         =$00ab;
 SCE_SYSMODULE_ERROR_DIALOG               =$00ac;
 SCE_SYSMODULE_NP_TROPHY                  =$00ad;
 SCE_SYSMODULE_VIDEO_CORE_IF              =$00ae;
 SCE_SYSMODULE_VIDEO_CORE_SERVER_IF       =$00af;
 SCE_SYSMODULE_NP_SNS_FACEBOOK            =$00b0;
 SCE_SYSMODULE_MOVE_TRACKER               =$00b1;
 SCE_SYSMODULE_NP_PROFILE_DIALOG          =$00b2;
 SCE_SYSMODULE_NP_FRIEND_LIST_DIALOG      =$00b3;
 SCE_SYSMODULE_APP_CONTENT                =$00b4;
 SCE_SYSMODULE_NP_SIGNALING               =$00b5;
 SCE_SYSMODULE_REMOTE_PLAY                =$00b6;
 SCE_SYSMODULE_USBD                       =$00b7;
 SCE_SYSMODULE_GAME_CUSTOM_DATA_DIALOG    =$00b8;
 SCE_SYSMODULE_NP_EULA_DIALOG             =$00b9;
 SCE_SYSMODULE_RANDOM                     =$00ba;
 SCE_SYSMODULE_RESERVED2                  =$00bb;
 SCE_SYSMODULE_M4AAC_ENC                  =$00bc;
 SCE_SYSMODULE_AUDIODEC_CPU               =$00bd;
 SCE_SYSMODULE_AUDIODEC_CPU_DDP           =$00be;
 SCE_SYSMODULE_AUDIODEC_CPU_M4AAC         =$00c0;
 SCE_SYSMODULE_BEMP2_SYS                  =$00c1;
 SCE_SYSMODULE_BEISOBMF                   =$00c2;
 SCE_SYSMODULE_PLAY_READY                 =$00c3;
 SCE_SYSMODULE_VIDEO_NATIVE_EXT_ESSENTIAL =$00c4;
 SCE_SYSMODULE_ZLIB                       =$00c5;
 SCE_SYSMODULE_DTCP_IP                    =$00c6;
 SCE_SYSMODULE_CONTENT_SEARCH             =$00c7;
 SCE_SYSMODULE_SHARE_UTILITY              =$00c8;
 SCE_SYSMODULE_AUDIODEC_CPU_DTS_HD_LBR    =$00c9;
 SCE_SYSMODULE_DECI4H                     =$00ca;
 SCE_SYSMODULE_HEAD_TRACKER               =$00cb;
 SCE_SYSMODULE_GAME_UPDATE                =$00cc;
 SCE_SYSMODULE_AUTO_MOUNTER_CLIENT        =$00cd;
 SCE_SYSMODULE_SYSTEM_GESTURE             =$00ce;
 SCE_SYSMODULE_VIDEODEC2                  =$00cf;
 SCE_SYSMODULE_VDECWRAP                   =$00d0;
 SCE_SYSMODULE_AT9_ENC                    =$00d1;
 SCE_SYSMODULE_CONVERT_KEYCODE            =$00d2;
 SCE_SYSMODULE_SHARE_PLAY                 =$00d3;
 SCE_SYSMODULE_HMD                        =$00d4;
 SCE_SYSMODULE_USB_STORAGE                =$00d5;
 SCE_SYSMODULE_USB_STORAGE_DIALOG         =$00d6;
 SCE_SYSMODULE_DISC_MAP                   =$00d7;
 SCE_SYSMODULE_FACE_TRACKER               =$00d8;
 SCE_SYSMODULE_HAND_TRACKER               =$00d9;
 SCE_SYSMODULE_NP_SNS_YOUTUBE_DIALOG      =$00da;
 SCE_SYSMODULE_PROFILE_CACHE_EXTERNAL     =$00dc;
 SCE_SYSMODULE_MUSIC_PLAYER_SERVICE       =$00dd;
 SCE_SYSMODULE_SP_SYS_CALL_WRAPPER        =$00de;
 SCE_SYSMODULE_PS2_EMU_MENU_DIALOG        =$00df;
 SCE_SYSMODULE_NP_SNS_DIALYMOTION_DIALOG  =$00e0;
 SCE_SYSMODULE_AUDIODEC_CPU_HEVAG         =$00e1;
 SCE_SYSMODULE_LOGIN_DIALOG               =$00e2;
 SCE_SYSMODULE_LOGIN_SERVICE              =$00e3;
 SCE_SYSMODULE_SIGNIN_DIALOG              =$00e4;
 SCE_SYSMODULE_VDECSW                     =$00e5;
 SCE_SYSMODULE_CUSTOM_MUSIC_CORE          =$00e6;
 SCE_SYSMODULE_JSON2                      =$00e7;
 SCE_SYSMODULE_AUDIO_LATENCY_ESTIMATION   =$00e8;
 SCE_SYSMODULE_WK_FONT_CONFIG             =$00e9;
 SCE_SYSMODULE_RESERVED27                 =$00ea;
 SCE_SYSMODULE_HMD_SETUP_DIALOG           =$00eb;
 SCE_SYSMODULE_RESERVED28                 =$00ec;
 SCE_SYSMODULE_VR_TRACKER                 =$00ed;
 SCE_SYSMODULE_CONTENT_DELETE             =$00ee;
 SCE_SYSMODULE_IME_BACKEND                =$00ef;
 SCE_SYSMODULE_NET_CTL_AP_DIALOG          =$00f0;
 SCE_SYSMODULE_PLAYGO_DIALOG              =$00f1;
 SCE_SYSMODULE_SOCIAL_SCREEN              =$00f2;
 SCE_SYSMODULE_EDIT_MP4                   =$00f3;
 SCE_SYSMODULE_PSM_KIT_SYSTEM             =$00f5;
 SCE_SYSMODULE_TEXT_TO_SPEECH             =$00f6;
 SCE_SYSMODULE_NP_TOOLKIT                 =$00f7;
 SCE_SYSMODULE_CUSTOM_MUSIC_SERVICE       =$00f8;
 SCE_SYSMODULE_CL_SYS_CALL_WRAPPER        =$00f9;
 SCE_SYSMODULE_SYSTEM_LOGGER              =$00fa;
 SCE_SYSMODULE_BLUETOOTH_HID              =$00fb;
 SCE_SYSMODULE_VIDEO_DECODER_ARBITRATION  =$00fc;
 SCE_SYSMODULE_VR_SERVICE_DIALOG          =$00fd;
 SCE_SYSMODULE_JOB_MANAGER                =$00fe;
 SCE_SYSMODULE_RESERVED42                 =$00ff;
 SCE_SYSMODULE_SOCIAL_SCREEN_DIALOG       =$0100;
 SCE_SYSMODULE_RESERVED43                 =$0101;
 SCE_SYSMODULE_NP_TOOLKIT2                =$0102;
 SCE_SYSMODULE_RESERVED44                 =$0103;
 SCE_SYSMODULE_RESERVED45                 =$0104;
 SCE_SYSMODULE_CES_CS                     =$010c;
 SCE_SYSMODULE_PLAYER_INVITATION_DIALOG   =$010d;

 // Internal
 SCE_SYSMODULE_INTERNAL_AUDIOOUT           =$80000001; //libSceAudioOut
 SCE_SYSMODULE_INTERNAL_AUDIOIN            =$80000002; //libSceAudioIn
 SCE_SYSMODULE_INTERNAL_AV_CAPTURE         =$80000003; //libSceAvcap
 SCE_SYSMODULE_INTERNAL_SYSCORE            =$80000004; //libSceSysCore
 SCE_SYSMODULE_INTERNAL_CDLG_UTILITY_SERVER=$80000007; //libSceCdlgUtilServer
 SCE_SYSMODULE_INTERNAL_KEYBOARD           =$80000008; //libSceKeyboard
 SCE_SYSMODULE_INTERNAL_NETCTL             =$80000009; //libSceNetCtl
 SCE_SYSMODULE_INTERNAL_HTTP               =$8000000A; //libSceHttp
 SCE_SYSMODULE_INTERNAL_SSL                =$8000000B; //libSceSsl
 SCE_SYSMODULE_INTERNAL_NP_COMMON          =$8000000C; //libSceNpCommon
 SCE_SYSMODULE_INTERNAL_NP_MANAGER         =$8000000D; //libSceNpManager
 SCE_SYSMODULE_INTERNAL_NP_WEB_API         =$8000000E; //libSceNpWebApi
 SCE_SYSMODULE_INTERNAL_SAVE_DATA          =$8000000F; //libSceSaveData
 SCE_SYSMODULE_INTERNAL_SYSTEM_SERVICE     =$80000010; //libSceSystemService
 SCE_SYSMODULE_INTERNAL_USER_SERVICE       =$80000011; //libSceUserService
 SCE_SYSMODULE_INTERNAL_VISION_MANAGER     =$80000012; //libSceVisionManager
 SCE_SYSMODULE_INTERNAL_AC3_ENC            =$80000013; //libSceAc3Enc
 SCE_SYSMODULE_INTERNAL_APP_INST_UTIL      =$80000014; //libSceAppInstUtil
 SCE_SYSMODULE_INTERNAL_VDECCORE           =$80000015; //libSceVdecCore
 SCE_SYSMODULE_INTERNAL_VENCCORE           =$80000016; //libSceVencCore
 SCE_SYSMODULE_INTERNAL_HID_CONTROL        =$80000017; //libSceHidControl
 SCE_SYSMODULE_INTERNAL_COMMON_DIALOG      =$80000018; //libSceCommonDialog
 SCE_SYSMODULE_INTERNAL_PERF               =$80000019; //libScePerf
 SCE_SYSMODULE_INTERNAL_CAMERA             =$8000001A; //libSceCamera
 SCE_SYSMODULE_INTERNAL_NET                =$8000001C; //libSceNet
 SCE_SYSMODULE_INTERNAL_IPMI               =$8000001D; //libSceIpmi
 SCE_SYSMODULE_INTERNAL_VIDEO_OUT          =$80000022; //libSceVideoOut
 SCE_SYSMODULE_INTERNAL_BGFT               =$8000002A; //libSceBgft
 SCE_SYSMODULE_INTERNAL_PRECOMPILED_SHADERS=$80000064; //libScePrecompiledShaders
 SCE_SYSMODULE_INTERNAL_PAD                =$80000024; //libScePad

 SCE_SYSMODULE_ERROR_INVALID_VALUE=-2141581312; // 0x805A1000
 SCE_SYSMODULE_ERROR_UNLOADED     =-2141581311; // 0x805A1001
 SCE_SYSMODULE_ERROR_FATAL        =-2141581057; // 0x805A10FF
 SCE_SYSMODULE_LOADED             =0;

function GetSysmoduleName(id:Word):RawByteString;
begin
  Case id of
   SCE_SYSMODULE_FIBER                      :Result:='SCE_SYSMODULE_FIBER';
   SCE_SYSMODULE_ULT                        :Result:='SCE_SYSMODULE_ULT';
   SCE_SYSMODULE_NGS2                       :Result:='SCE_SYSMODULE_NGS2';
   SCE_SYSMODULE_XML                        :Result:='SCE_SYSMODULE_XML';
   SCE_SYSMODULE_NP_UTILITY                 :Result:='SCE_SYSMODULE_NP_UTILITY';
   SCE_SYSMODULE_VOICE                      :Result:='SCE_SYSMODULE_VOICE';
   SCE_SYSMODULE_VOICEQOS                   :Result:='SCE_SYSMODULE_VOICEQOS';
   SCE_SYSMODULE_NP_MATCHING2               :Result:='SCE_SYSMODULE_NP_MATCHING2';
   SCE_SYSMODULE_NP_SCORE_RANKING           :Result:='SCE_SYSMODULE_NP_SCORE_RANKING';
   SCE_SYSMODULE_RUDP                       :Result:='SCE_SYSMODULE_RUDP';
   SCE_SYSMODULE_NP_TUS                     :Result:='SCE_SYSMODULE_NP_TUS';
   SCE_SYSMODULE_FACE                       :Result:='SCE_SYSMODULE_FACE';
   SCE_SYSMODULE_SMART                      :Result:='SCE_SYSMODULE_SMART';
   SCE_SYSMODULE_JSON                       :Result:='SCE_SYSMODULE_JSON';
   SCE_SYSMODULE_GAME_LIVE_STREAMING        :Result:='SCE_SYSMODULE_GAME_LIVE_STREAMING';
   SCE_SYSMODULE_COMPANION_UTIL             :Result:='SCE_SYSMODULE_COMPANION_UTIL';
   SCE_SYSMODULE_PLAYGO                     :Result:='SCE_SYSMODULE_PLAYGO';
   SCE_SYSMODULE_FONT                       :Result:='SCE_SYSMODULE_FONT';
   SCE_SYSMODULE_VIDEO_RECORDING            :Result:='SCE_SYSMODULE_VIDEO_RECORDING';
   SCE_SYSMODULE_S3DCONVERSION              :Result:='SCE_SYSMODULE_S3DCONVERSION';
   SCE_SYSMODULE_AUDIODEC                   :Result:='SCE_SYSMODULE_AUDIODEC';
   SCE_SYSMODULE_JPEG_DEC                   :Result:='SCE_SYSMODULE_JPEG_DEC';
   SCE_SYSMODULE_JPEG_ENC                   :Result:='SCE_SYSMODULE_JPEG_ENC';
   SCE_SYSMODULE_PNG_DEC                    :Result:='SCE_SYSMODULE_PNG_DEC';
   SCE_SYSMODULE_PNG_ENC                    :Result:='SCE_SYSMODULE_PNG_ENC';
   SCE_SYSMODULE_VIDEODEC                   :Result:='SCE_SYSMODULE_VIDEODEC';
   SCE_SYSMODULE_MOVE                       :Result:='SCE_SYSMODULE_MOVE';
   SCE_SYSMODULE_PAD_TRACKER                :Result:='SCE_SYSMODULE_PAD_TRACKER';
   SCE_SYSMODULE_DEPTH                      :Result:='SCE_SYSMODULE_DEPTH';
   SCE_SYSMODULE_HAND                       :Result:='SCE_SYSMODULE_HAND';
   SCE_SYSMODULE_LIBIME                     :Result:='SCE_SYSMODULE_LIBIME';
   SCE_SYSMODULE_IME_DIALOG                 :Result:='SCE_SYSMODULE_IME_DIALOG';
   SCE_SYSMODULE_NP_PARTY                   :Result:='SCE_SYSMODULE_NP_PARTY';
   SCE_SYSMODULE_FONT_FT                    :Result:='SCE_SYSMODULE_FONT_FT';
   SCE_SYSMODULE_FREETYPE_OT                :Result:='SCE_SYSMODULE_FREETYPE_OT';
   SCE_SYSMODULE_FREETYPE_OL                :Result:='SCE_SYSMODULE_FREETYPE_OL';
   SCE_SYSMODULE_FREETYPE_OPT_OL            :Result:='SCE_SYSMODULE_FREETYPE_OPT_OL';
   SCE_SYSMODULE_SCREEN_SHOT                :Result:='SCE_SYSMODULE_SCREEN_SHOT';
   SCE_SYSMODULE_NP_AUTH                    :Result:='SCE_SYSMODULE_NP_AUTH';
   SCE_SYSMODULE_SULPHA                     :Result:='SCE_SYSMODULE_SULPHA';
   SCE_SYSMODULE_SAVE_DATA_DIALOG           :Result:='SCE_SYSMODULE_SAVE_DATA_DIALOG';
   SCE_SYSMODULE_INVITATION_DIALOG          :Result:='SCE_SYSMODULE_INVITATION_DIALOG';
   SCE_SYSMODULE_DEBUG_KEYBOARD             :Result:='SCE_SYSMODULE_DEBUG_KEYBOARD';
   SCE_SYSMODULE_MESSAGE_DIALOG             :Result:='SCE_SYSMODULE_MESSAGE_DIALOG';
   SCE_SYSMODULE_AV_PLAYER                  :Result:='SCE_SYSMODULE_AV_PLAYER';
   SCE_SYSMODULE_CONTENT_EXPORT             :Result:='SCE_SYSMODULE_CONTENT_EXPORT';
   SCE_SYSMODULE_AUDIO_3D                   :Result:='SCE_SYSMODULE_AUDIO_3D';
   SCE_SYSMODULE_NP_COMMERCE                :Result:='SCE_SYSMODULE_NP_COMMERCE';
   SCE_SYSMODULE_MOUSE                      :Result:='SCE_SYSMODULE_MOUSE';
   SCE_SYSMODULE_COMPANION_HTTPD            :Result:='SCE_SYSMODULE_COMPANION_HTTPD';
   SCE_SYSMODULE_WEB_BROWSER_DIALOG         :Result:='SCE_SYSMODULE_WEB_BROWSER_DIALOG';
   SCE_SYSMODULE_ERROR_DIALOG               :Result:='SCE_SYSMODULE_ERROR_DIALOG';
   SCE_SYSMODULE_NP_TROPHY                  :Result:='SCE_SYSMODULE_NP_TROPHY';
   SCE_SYSMODULE_VIDEO_CORE_IF              :Result:='SCE_SYSMODULE_VIDEO_CORE_IF';
   SCE_SYSMODULE_VIDEO_CORE_SERVER_IF       :Result:='SCE_SYSMODULE_VIDEO_CORE_SERVER_IF';
   SCE_SYSMODULE_NP_SNS_FACEBOOK            :Result:='SCE_SYSMODULE_NP_SNS_FACEBOOK';
   SCE_SYSMODULE_MOVE_TRACKER               :Result:='SCE_SYSMODULE_MOVE_TRACKER';
   SCE_SYSMODULE_NP_PROFILE_DIALOG          :Result:='SCE_SYSMODULE_NP_PROFILE_DIALOG';
   SCE_SYSMODULE_NP_FRIEND_LIST_DIALOG      :Result:='SCE_SYSMODULE_NP_FRIEND_LIST_DIALOG';
   SCE_SYSMODULE_APP_CONTENT                :Result:='SCE_SYSMODULE_APP_CONTENT';
   SCE_SYSMODULE_NP_SIGNALING               :Result:='SCE_SYSMODULE_NP_SIGNALING';
   SCE_SYSMODULE_REMOTE_PLAY                :Result:='SCE_SYSMODULE_REMOTE_PLAY';
   SCE_SYSMODULE_USBD                       :Result:='SCE_SYSMODULE_USBD';
   SCE_SYSMODULE_GAME_CUSTOM_DATA_DIALOG    :Result:='SCE_SYSMODULE_GAME_CUSTOM_DATA_DIALOG';
   SCE_SYSMODULE_NP_EULA_DIALOG             :Result:='SCE_SYSMODULE_NP_EULA_DIALOG';
   SCE_SYSMODULE_RANDOM                     :Result:='SCE_SYSMODULE_RANDOM';
   SCE_SYSMODULE_RESERVED2                  :Result:='SCE_SYSMODULE_RESERVED2';
   SCE_SYSMODULE_M4AAC_ENC                  :Result:='SCE_SYSMODULE_M4AAC_ENC';
   SCE_SYSMODULE_AUDIODEC_CPU               :Result:='SCE_SYSMODULE_AUDIODEC_CPU';
   SCE_SYSMODULE_AUDIODEC_CPU_DDP           :Result:='SCE_SYSMODULE_AUDIODEC_CPU_DDP';
   SCE_SYSMODULE_AUDIODEC_CPU_M4AAC         :Result:='SCE_SYSMODULE_AUDIODEC_CPU_M4AAC';
   SCE_SYSMODULE_BEMP2_SYS                  :Result:='SCE_SYSMODULE_BEMP2_SYS';
   SCE_SYSMODULE_BEISOBMF                   :Result:='SCE_SYSMODULE_BEISOBMF';
   SCE_SYSMODULE_PLAY_READY                 :Result:='SCE_SYSMODULE_PLAY_READY';
   SCE_SYSMODULE_VIDEO_NATIVE_EXT_ESSENTIAL :Result:='SCE_SYSMODULE_VIDEO_NATIVE_EXT_ESSENTIAL';
   SCE_SYSMODULE_ZLIB                       :Result:='SCE_SYSMODULE_ZLIB';
   SCE_SYSMODULE_DTCP_IP                    :Result:='SCE_SYSMODULE_DTCP_IP';
   SCE_SYSMODULE_CONTENT_SEARCH             :Result:='SCE_SYSMODULE_CONTENT_SEARCH';
   SCE_SYSMODULE_SHARE_UTILITY              :Result:='SCE_SYSMODULE_SHARE_UTILITY';
   SCE_SYSMODULE_AUDIODEC_CPU_DTS_HD_LBR    :Result:='SCE_SYSMODULE_AUDIODEC_CPU_DTS_HD_LBR';
   SCE_SYSMODULE_DECI4H                     :Result:='SCE_SYSMODULE_DECI4H';
   SCE_SYSMODULE_HEAD_TRACKER               :Result:='SCE_SYSMODULE_HEAD_TRACKER';
   SCE_SYSMODULE_GAME_UPDATE                :Result:='SCE_SYSMODULE_GAME_UPDATE';
   SCE_SYSMODULE_AUTO_MOUNTER_CLIENT        :Result:='SCE_SYSMODULE_AUTO_MOUNTER_CLIENT';
   SCE_SYSMODULE_SYSTEM_GESTURE             :Result:='SCE_SYSMODULE_SYSTEM_GESTURE';
   SCE_SYSMODULE_VIDEODEC2                  :Result:='SCE_SYSMODULE_VIDEODEC2';
   SCE_SYSMODULE_VDECWRAP                   :Result:='SCE_SYSMODULE_VDECWRAP';
   SCE_SYSMODULE_AT9_ENC                    :Result:='SCE_SYSMODULE_AT9_ENC';
   SCE_SYSMODULE_CONVERT_KEYCODE            :Result:='SCE_SYSMODULE_CONVERT_KEYCODE';
   SCE_SYSMODULE_SHARE_PLAY                 :Result:='SCE_SYSMODULE_SHARE_PLAY';
   SCE_SYSMODULE_HMD                        :Result:='SCE_SYSMODULE_HMD';
   SCE_SYSMODULE_USB_STORAGE                :Result:='SCE_SYSMODULE_USB_STORAGE';
   SCE_SYSMODULE_USB_STORAGE_DIALOG         :Result:='SCE_SYSMODULE_USB_STORAGE_DIALOG';
   SCE_SYSMODULE_DISC_MAP                   :Result:='SCE_SYSMODULE_DISC_MAP';
   SCE_SYSMODULE_FACE_TRACKER               :Result:='SCE_SYSMODULE_FACE_TRACKER';
   SCE_SYSMODULE_HAND_TRACKER               :Result:='SCE_SYSMODULE_HAND_TRACKER';
   SCE_SYSMODULE_NP_SNS_YOUTUBE_DIALOG      :Result:='SCE_SYSMODULE_NP_SNS_YOUTUBE_DIALOG';
   SCE_SYSMODULE_PROFILE_CACHE_EXTERNAL     :Result:='SCE_SYSMODULE_PROFILE_CACHE_EXTERNAL';
   SCE_SYSMODULE_MUSIC_PLAYER_SERVICE       :Result:='SCE_SYSMODULE_MUSIC_PLAYER_SERVICE';
   SCE_SYSMODULE_SP_SYS_CALL_WRAPPER        :Result:='SCE_SYSMODULE_SP_SYS_CALL_WRAPPER';
   SCE_SYSMODULE_PS2_EMU_MENU_DIALOG        :Result:='SCE_SYSMODULE_PS2_EMU_MENU_DIALOG';
   SCE_SYSMODULE_NP_SNS_DIALYMOTION_DIALOG  :Result:='SCE_SYSMODULE_NP_SNS_DIALYMOTION_DIALOG';
   SCE_SYSMODULE_AUDIODEC_CPU_HEVAG         :Result:='SCE_SYSMODULE_AUDIODEC_CPU_HEVAG';
   SCE_SYSMODULE_LOGIN_DIALOG               :Result:='SCE_SYSMODULE_LOGIN_DIALOG';
   SCE_SYSMODULE_LOGIN_SERVICE              :Result:='SCE_SYSMODULE_LOGIN_SERVICE';
   SCE_SYSMODULE_SIGNIN_DIALOG              :Result:='SCE_SYSMODULE_SIGNIN_DIALOG';
   SCE_SYSMODULE_VDECSW                     :Result:='SCE_SYSMODULE_VDECSW';
   SCE_SYSMODULE_CUSTOM_MUSIC_CORE          :Result:='SCE_SYSMODULE_CUSTOM_MUSIC_CORE';
   SCE_SYSMODULE_JSON2                      :Result:='SCE_SYSMODULE_JSON2';
   SCE_SYSMODULE_AUDIO_LATENCY_ESTIMATION   :Result:='SCE_SYSMODULE_AUDIO_LATENCY_ESTIMATION';
   SCE_SYSMODULE_WK_FONT_CONFIG             :Result:='SCE_SYSMODULE_WK_FONT_CONFIG';
   SCE_SYSMODULE_HMD_SETUP_DIALOG           :Result:='SCE_SYSMODULE_HMD_SETUP_DIALOG';
   SCE_SYSMODULE_VR_TRACKER                 :Result:='SCE_SYSMODULE_VR_TRACKER';
   SCE_SYSMODULE_CONTENT_DELETE             :Result:='SCE_SYSMODULE_CONTENT_DELETE';
   SCE_SYSMODULE_IME_BACKEND                :Result:='SCE_SYSMODULE_IME_BACKEND';
   SCE_SYSMODULE_NET_CTL_AP_DIALOG          :Result:='SCE_SYSMODULE_NET_CTL_AP_DIALOG';
   SCE_SYSMODULE_PLAYGO_DIALOG              :Result:='SCE_SYSMODULE_PLAYGO_DIALOG';
   SCE_SYSMODULE_SOCIAL_SCREEN              :Result:='SCE_SYSMODULE_SOCIAL_SCREEN';
   SCE_SYSMODULE_EDIT_MP4                   :Result:='SCE_SYSMODULE_EDIT_MP4';
   SCE_SYSMODULE_PSM_KIT_SYSTEM             :Result:='SCE_SYSMODULE_PSM_KIT_SYSTEM';
   SCE_SYSMODULE_TEXT_TO_SPEECH             :Result:='SCE_SYSMODULE_TEXT_TO_SPEECH';
   SCE_SYSMODULE_NP_TOOLKIT                 :Result:='SCE_SYSMODULE_NP_TOOLKIT';
   SCE_SYSMODULE_CUSTOM_MUSIC_SERVICE       :Result:='SCE_SYSMODULE_CUSTOM_MUSIC_SERVICE';
   SCE_SYSMODULE_CL_SYS_CALL_WRAPPER        :Result:='SCE_SYSMODULE_CL_SYS_CALL_WRAPPER';
   SCE_SYSMODULE_SYSTEM_LOGGER              :Result:='SCE_SYSMODULE_SYSTEM_LOGGER';
   SCE_SYSMODULE_BLUETOOTH_HID              :Result:='SCE_SYSMODULE_BLUETOOTH_HID';
   SCE_SYSMODULE_VIDEO_DECODER_ARBITRATION  :Result:='SCE_SYSMODULE_VIDEO_DECODER_ARBITRATION';
   SCE_SYSMODULE_VR_SERVICE_DIALOG          :Result:='SCE_SYSMODULE_VR_SERVICE_DIALOG';
   SCE_SYSMODULE_JOB_MANAGER                :Result:='SCE_SYSMODULE_JOB_MANAGER';
   SCE_SYSMODULE_SOCIAL_SCREEN_DIALOG       :Result:='SCE_SYSMODULE_SOCIAL_SCREEN_DIALOG';
   SCE_SYSMODULE_NP_TOOLKIT2                :Result:='SCE_SYSMODULE_NP_TOOLKIT2';
   SCE_SYSMODULE_CES_CS                     :Result:='SCE_SYSMODULE_CES_CS';
   SCE_SYSMODULE_PLAYER_INVITATION_DIALOG   :Result:='SCE_SYSMODULE_PLAYER_INVITATION_DIALOG';
   else
    Result:='0x'+HexStr(id,4);
  end;
end;

function GetSysmoduleInternalName(id:DWord):RawByteString;
begin
  Case id of
   SCE_SYSMODULE_INTERNAL_AUDIOOUT           :Result:='SCE_SYSMODULE_INTERNAL_AUDIOOUT';
   SCE_SYSMODULE_INTERNAL_AUDIOIN            :Result:='SCE_SYSMODULE_INTERNAL_AUDIOIN';
   SCE_SYSMODULE_INTERNAL_AV_CAPTURE         :Result:='SCE_SYSMODULE_INTERNAL_AV_CAPTURE';
   SCE_SYSMODULE_INTERNAL_SYSCORE            :Result:='SCE_SYSMODULE_INTERNAL_SYSCORE';
   SCE_SYSMODULE_INTERNAL_CDLG_UTILITY_SERVER:Result:='SCE_SYSMODULE_INTERNAL_CDLG_UTILITY_SERVER';
   SCE_SYSMODULE_INTERNAL_KEYBOARD           :Result:='SCE_SYSMODULE_INTERNAL_KEYBOARD';
   SCE_SYSMODULE_INTERNAL_NETCTL             :Result:='SCE_SYSMODULE_INTERNAL_NETCTL';
   SCE_SYSMODULE_INTERNAL_HTTP               :Result:='SCE_SYSMODULE_INTERNAL_HTTP';
   SCE_SYSMODULE_INTERNAL_SSL                :Result:='SCE_SYSMODULE_INTERNAL_SSL';
   SCE_SYSMODULE_INTERNAL_NP_COMMON          :Result:='SCE_SYSMODULE_INTERNAL_NP_COMMON';
   SCE_SYSMODULE_INTERNAL_NP_MANAGER         :Result:='SCE_SYSMODULE_INTERNAL_NP_MANAGER';
   SCE_SYSMODULE_INTERNAL_NP_WEB_API         :Result:='SCE_SYSMODULE_INTERNAL_NP_WEB_API';
   SCE_SYSMODULE_INTERNAL_SAVE_DATA          :Result:='SCE_SYSMODULE_INTERNAL_SAVE_DATA';
   SCE_SYSMODULE_INTERNAL_SYSTEM_SERVICE     :Result:='SCE_SYSMODULE_INTERNAL_SYSTEM_SERVICE';
   SCE_SYSMODULE_INTERNAL_USER_SERVICE       :Result:='SCE_SYSMODULE_INTERNAL_USER_SERVICE';
   SCE_SYSMODULE_INTERNAL_VISION_MANAGER     :Result:='SCE_SYSMODULE_INTERNAL_VISION_MANAGER';
   SCE_SYSMODULE_INTERNAL_AC3_ENC            :Result:='SCE_SYSMODULE_INTERNAL_AC3_ENC';
   SCE_SYSMODULE_INTERNAL_APP_INST_UTIL      :Result:='SCE_SYSMODULE_INTERNAL_APP_INST_UTIL';
   SCE_SYSMODULE_INTERNAL_VDECCORE           :Result:='SCE_SYSMODULE_INTERNAL_VDECCORE';
   SCE_SYSMODULE_INTERNAL_VENCCORE           :Result:='SCE_SYSMODULE_INTERNAL_VENCCORE';
   SCE_SYSMODULE_INTERNAL_HID_CONTROL        :Result:='SCE_SYSMODULE_INTERNAL_HID_CONTROL';
   SCE_SYSMODULE_INTERNAL_COMMON_DIALOG      :Result:='SCE_SYSMODULE_INTERNAL_COMMON_DIALOG';
   SCE_SYSMODULE_INTERNAL_PERF               :Result:='SCE_SYSMODULE_INTERNAL_PERF';
   SCE_SYSMODULE_INTERNAL_CAMERA             :Result:='SCE_SYSMODULE_INTERNAL_CAMERA';
   SCE_SYSMODULE_INTERNAL_NET                :Result:='SCE_SYSMODULE_INTERNAL_NET';
   SCE_SYSMODULE_INTERNAL_IPMI               :Result:='SCE_SYSMODULE_INTERNAL_IPMI';
   SCE_SYSMODULE_INTERNAL_VIDEO_OUT          :Result:='SCE_SYSMODULE_INTERNAL_VIDEO_OUT';
   SCE_SYSMODULE_INTERNAL_BGFT               :Result:='SCE_SYSMODULE_INTERNAL_BGFT';
   SCE_SYSMODULE_INTERNAL_PRECOMPILED_SHADERS:Result:='SCE_SYSMODULE_INTERNAL_PRECOMPILED_SHADERS';
   SCE_SYSMODULE_INTERNAL_PAD                :Result:='SCE_SYSMODULE_INTERNAL_PAD';
  else
   Result:='0x'+HexStr(id,8);
end;


end;
