コード例 #1
0
ファイル: ChatAPI.cs プロジェクト: je-schindler/shadowAPI3
        public ChatAPI()
        {
            this.API_addBufferMessage = (API_AddBufferMessage)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?AddBufferMessage@Chat@SAMP@API@@YAXPB_W@Z"), typeof(API_AddBufferMessage));

            this.API_addMessage         = (API_AddMessage)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?AddMessage@Chat@SAMP@API@@YAXPB_W@Z"), typeof(API_AddMessage));
            this.API_clear              = (API_Clear)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Clear@Chat@SAMP@API@@YAXXZ"), typeof(API_Clear));
            this.API_getText            = (API_GetText)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?GetText@Chat@SAMP@API@@YAXPA_WH@Z"), typeof(API_GetText));
            this.API_setText            = (API_SetText)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetText@Chat@SAMP@API@@YAXPB_W@Z"), typeof(API_SetText));
            this.API_isOpen             = (API_IsOpen)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?IsOpen@Chat@SAMP@API@@YA_NXZ"), typeof(API_IsOpen));
            this.API_toggle             = (API_Toggle)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Toggle@Chat@SAMP@API@@YAX_N@Z"), typeof(API_Toggle));
            this.API_send               = (API_Send)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Send@Chat@SAMP@API@@YAXPB_W@Z"), typeof(API_Send));
            this.API_setCursorPosition1 = (API_SetCursorPosition1)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetCursorPosition@Chat@SAMP@API@@YAXH@Z"), typeof(API_SetCursorPosition1));
            this.API_setCursorPosition2 = (API_SetCursorPosition2)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetCursorPosition@Chat@SAMP@API@@YAXHH@Z"), typeof(API_SetCursorPosition2));
        }
コード例 #2
0
ファイル: TextAPI.cs プロジェクト: je-schindler/shadowAPI3
 public TextAPI()
 {
     this.API_create          = (API_Create)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Create@Text@Overlay@API@@YAHXZ"), typeof(API_Create));
     this.API_delete          = (API_Delete)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Delete@Text@Overlay@API@@YAXH@Z"), typeof(API_Delete));
     this.API_setText         = (API_SetText)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetText@Text@Overlay@API@@YAXHPB_W@Z"), typeof(API_SetText));
     this.API_setSize         = (API_SetSize)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetSize@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetSize));
     this.API_setColor        = (API_SetColor)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetColor@Text@Overlay@API@@YAXHK@Z"), typeof(API_SetColor));
     this.API_setX            = (API_SetX)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetX@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetX));
     this.API_setY            = (API_SetY)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetY@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetY));
     this.API_setActive       = (API_SetActive)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetActive@Text@Overlay@API@@YAXH_N@Z"), typeof(API_SetActive));
     this.API_setUseMaxWidth  = (API_SetUseMaxWidth)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetUseMaxWidth@Text@Overlay@API@@YAXH_N@Z"), typeof(API_SetUseMaxWidth));
     this.API_setUseMaxHeight = (API_SetUseMaxHeight)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetUseMaxHeight@Text@Overlay@API@@YAXH_N@Z"), typeof(API_SetUseMaxHeight));
     this.API_setMaxWidth     = (API_SetMaxWidth)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetMaxWidth@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetMaxWidth));
     this.API_setMaxHeight    = (API_SetMaxHeight)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetMaxHeight@Text@Overlay@API@@YAXHH@Z"), typeof(API_SetMaxHeight));
     this.API_getTextExtent   = (API_GetTextExtent)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?GetTextExtent@Text@Overlay@API@@YAXHAAH0@Z"), typeof(API_GetTextExtent));
 }
コード例 #3
0
ファイル: DialogAPI.cs プロジェクト: je-schindler/shadowAPI3
        public DialogAPI()
        {
            this.API_isOpen = (API_IsOpen)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?IsOpen@Dialog@SAMP@API@@YA_NXZ"), typeof(API_IsOpen));

            this.API_close                 = (API_Close)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Close@Dialog@SAMP@API@@YAXH@Z"), typeof(API_Close));
            this.API_getID                 = (API_GetID)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?GetID@Dialog@SAMP@API@@YAHXZ"), typeof(API_GetID));
            this.API_getText               = (API_GetText)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?GetText@Dialog@SAMP@API@@YAXPA_WH@Z"), typeof(API_GetText));
            this.API_setText               = (API_SetText)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SetText@Dialog@SAMP@API@@YAXPB_W@Z"), typeof(API_SetText));
            this.API_selectIndex           = (API_SelectIndex)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?SelectIndex@Dialog@SAMP@API@@YAXH@Z"), typeof(API_SelectIndex));
            this.API_getStringCount        = (API_GetStringCount)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?GetStringCount@Dialog@SAMP@API@@YAHXZ"), typeof(API_GetStringCount));
            this.API_getStringByIndex      = (API_GetStringByIndex)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?GetStringByIndex@Dialog@SAMP@API@@YAXHPA_WH@Z"), typeof(API_GetStringByIndex));
            this.API_block                 = (API_Block)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?Block@Dialog@SAMP@API@@YAXHPB_W@Z"), typeof(API_Block));
            this.API_blockHasBlockedDialog = (API_BlockHasBlockedDialog)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?BlockHasBlockedDialog@Dialog@SAMP@API@@YA_NXZ"), typeof(API_BlockHasBlockedDialog));
            this.API_blockNeedBlocking     = (API_BlockNeedBlocking)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?BlockHasNeedBlocking@Dialog@SAMP@API@@YA_NXZ"), typeof(API_BlockNeedBlocking));
            this.API_blockGetCaption       = (API_BlockGetCaption)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?BlockGetCaption@Dialog@SAMP@API@@YAXPA_WH@Z"), typeof(API_BlockGetCaption));
            this.API_blockGetText          = (API_BlockGetText)Marshal.GetDelegateForFunctionPointer(GeneralAPI.Instance.GetFunctionPointer("?BlockGetText@Dialog@SAMP@API@@YAXPA_WH@Z"), typeof(API_BlockGetText));
        }